-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathtypes.ts
108 lines (104 loc) · 2.17 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import type { ComponentType, SVGProps } from 'react';
export type EcosystemElement = {
vendor?: string;
href: string;
logo: ComponentType<SVGProps<SVGSVGElement>>;
title: string;
description: string;
allTechnologies: Technology[];
technology: Technology;
parentTechnology?: Technology;
type: Type;
vendorOfficial: boolean;
category: Category[];
};
export type Technology =
| 'JavaScript'
| 'Java'
| 'Go'
| 'PHP'
| '.NET'
| 'Kotlin'
| 'Python'
| 'Swift'
| 'Rust'
| 'Ruby'
| 'React'
| 'Angular'
| 'Rust'
| 'NestJS'
| 'Next.js'
| 'SvelteKit';
export type Category = 'Server' | 'Client';
export type Type = 'Hook' | 'Provider' | 'SDK' | 'OFREP API';
export type SdkCompatibility = {
/**
* The name of the SDK
*
* @example Java
*/
name: string;
/**
* The path in the docs to the SDK
*
* @example /docs/reference/technologies/server/java
*/
path: string;
/**
* The type of SDK based on the static and dynamic paradigms
*
* @example server
*/
category: Category;
spec: {
/**
* The version of the spec the SDK is compliant with
*
* @example v0.7.0
*/
version: string;
/**
* The URL to the related spec release
*
* @example https://github.com/open-feature/spec/releases/tag/v0.7.0
*/
href: string;
};
release: {
/**
* The version of the SDK package, library, or artifact
*
* @example 1.7.0
*/
version: string;
/**
* The URL to the released SDK release
*
* @example https://github.com/open-feature/java-sdk/releases/tag/v1.7.0
*/
href: string;
/**
* The stability of the SDK based on the latest released version. Sub-1.0
* SDKs are considered unstable.
*
* @example true
*/
stable: boolean;
};
features: {
[key: string]: {
/**
* The status of the feature represented as an emoji.
*
* @example ✅
*/
status: string;
/**
* The path to the SDK doc with an anchor to the specific feature.
*
* @example /docs/reference/technologies/server/java#providers
*/
path: string;
};
};
};