@arcforges/api-client 1.0.0-ci.195.1 → 1.0.0-ci.201.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +4 -4
- package/build-identity.json +43 -11
- package/dist/gen/http.d.ts +4 -0
- package/dist/gen/http.js +4 -0
- package/dist/shapes/gen/DeclarativePanel.d.ts +154 -0
- package/dist/shapes/gen/DeclarativePanel.js +2988 -0
- package/dist/shapes/gen/ExtensionManifest.d.ts +278 -0
- package/dist/shapes/gen/ExtensionManifest.js +3974 -0
- package/dist/shapes/gen/ExtensionWorkflow.d.ts +151 -0
- package/dist/shapes/gen/ExtensionWorkflow.js +2251 -0
- package/dist/shapes/gen/PolicyBody.d.ts +269 -0
- package/dist/shapes/gen/PolicyBody.js +4188 -0
- package/package.json +2 -2
- package/sbom.cdx.json +9 -9
- package/schemas/public/http/v1/manifest.schema.json +1459 -0
- package/schemas/public/http/v1/panel.schema.json +963 -0
- package/schemas/public/http/v1/policy-body.schema.json +1376 -0
- package/schemas/public/http/v1/workflow.schema.json +715 -0
- package/source.json +6 -2
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
export interface PolicyBody {
|
|
2
|
+
schemaVersion: string;
|
|
3
|
+
version: string;
|
|
4
|
+
parentVersion?: string;
|
|
5
|
+
issuedAt: string;
|
|
6
|
+
expiresAt: string;
|
|
7
|
+
rules: PolicyRule[];
|
|
8
|
+
experiments: PolicyExperiment[];
|
|
9
|
+
reason: string;
|
|
10
|
+
}
|
|
11
|
+
export interface PolicyExperiment {
|
|
12
|
+
experimentId: string;
|
|
13
|
+
version: string;
|
|
14
|
+
hypothesis: string;
|
|
15
|
+
subject: string;
|
|
16
|
+
eligibility: PolicyPredicate;
|
|
17
|
+
variants: PolicyVariant[];
|
|
18
|
+
allocation: number;
|
|
19
|
+
startsAt: string;
|
|
20
|
+
endsAt: string;
|
|
21
|
+
successMetrics: string[];
|
|
22
|
+
exitCriteria: string;
|
|
23
|
+
exclusionGroup?: string;
|
|
24
|
+
holdoutBasisPoints: number;
|
|
25
|
+
}
|
|
26
|
+
export type PolicyPredicate = PolicyAll | PolicyAny | PolicyNot | PolicyEqualText | PolicyEqualMajor | PolicyInText | PolicyInMajor | PolicyVersionAtLeast | PolicyPercent;
|
|
27
|
+
export interface PolicyAll {
|
|
28
|
+
op: string;
|
|
29
|
+
terms: PolicyPredicate[];
|
|
30
|
+
}
|
|
31
|
+
export interface PolicyAny {
|
|
32
|
+
op: string;
|
|
33
|
+
terms: PolicyPredicate[];
|
|
34
|
+
}
|
|
35
|
+
export interface PolicyEqualMajor {
|
|
36
|
+
op: string;
|
|
37
|
+
field: string;
|
|
38
|
+
value: number;
|
|
39
|
+
}
|
|
40
|
+
export interface PolicyEqualText {
|
|
41
|
+
op: string;
|
|
42
|
+
field: string;
|
|
43
|
+
value: string;
|
|
44
|
+
}
|
|
45
|
+
export interface PolicyInMajor {
|
|
46
|
+
op: string;
|
|
47
|
+
field: string;
|
|
48
|
+
values: number[];
|
|
49
|
+
}
|
|
50
|
+
export interface PolicyInText {
|
|
51
|
+
op: string;
|
|
52
|
+
field: string;
|
|
53
|
+
values: string[];
|
|
54
|
+
}
|
|
55
|
+
export interface PolicyNot {
|
|
56
|
+
op: string;
|
|
57
|
+
term: PolicyPredicate;
|
|
58
|
+
}
|
|
59
|
+
export interface PolicyPercent {
|
|
60
|
+
op: string;
|
|
61
|
+
subject: string;
|
|
62
|
+
salt: string;
|
|
63
|
+
allocation: number;
|
|
64
|
+
}
|
|
65
|
+
export type PolicyRule = PolicyStopRule | PolicyRevocationsRule | PolicyMinimumContractsRule | PolicyMinimumAppRule | PolicyCacheRule | PolicyPollRule | PolicyTraceSampleRule | PolicyTraceBufferRule | PolicyModelCallsRule | PolicyToolCallsRule | PolicyParallelToolsRule | PolicyActiveTimeRule | PolicySearchRule | PolicyDensityRule | PolicyHomeSummaryRule;
|
|
66
|
+
export interface PolicyActiveTimeRule {
|
|
67
|
+
ruleId: string;
|
|
68
|
+
key: string;
|
|
69
|
+
value: number;
|
|
70
|
+
scope: string;
|
|
71
|
+
target: PolicyTarget;
|
|
72
|
+
priority: number;
|
|
73
|
+
effectiveAt?: string;
|
|
74
|
+
expiresAt?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface PolicyCacheRule {
|
|
77
|
+
ruleId: string;
|
|
78
|
+
key: string;
|
|
79
|
+
value: number;
|
|
80
|
+
scope: string;
|
|
81
|
+
target: PolicyTarget;
|
|
82
|
+
priority: number;
|
|
83
|
+
effectiveAt?: string;
|
|
84
|
+
expiresAt?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface PolicyDensityRule {
|
|
87
|
+
ruleId: string;
|
|
88
|
+
key: string;
|
|
89
|
+
value: string;
|
|
90
|
+
scope: string;
|
|
91
|
+
target: PolicyTarget;
|
|
92
|
+
priority: number;
|
|
93
|
+
effectiveAt?: string;
|
|
94
|
+
expiresAt?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface PolicyHomeSummaryRule {
|
|
97
|
+
ruleId: string;
|
|
98
|
+
key: string;
|
|
99
|
+
value: string;
|
|
100
|
+
scope: string;
|
|
101
|
+
target: PolicyTarget;
|
|
102
|
+
priority: number;
|
|
103
|
+
effectiveAt?: string;
|
|
104
|
+
expiresAt?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface PolicyMinimumAppRule {
|
|
107
|
+
ruleId: string;
|
|
108
|
+
key: string;
|
|
109
|
+
value: PolicyMinimumApp[];
|
|
110
|
+
scope: string;
|
|
111
|
+
target: PolicyTarget;
|
|
112
|
+
priority: number;
|
|
113
|
+
effectiveAt?: string;
|
|
114
|
+
expiresAt?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface PolicyMinimumApp {
|
|
117
|
+
product: string;
|
|
118
|
+
platform: string;
|
|
119
|
+
minimumVersionName: string;
|
|
120
|
+
minimumVersionCode?: string;
|
|
121
|
+
}
|
|
122
|
+
export interface PolicyMinimumContractsRule {
|
|
123
|
+
ruleId: string;
|
|
124
|
+
key: string;
|
|
125
|
+
value: PolicyMinimumContracts;
|
|
126
|
+
scope: string;
|
|
127
|
+
target: PolicyTarget;
|
|
128
|
+
priority: number;
|
|
129
|
+
effectiveAt?: string;
|
|
130
|
+
expiresAt?: string;
|
|
131
|
+
}
|
|
132
|
+
export interface PolicyMinimumContracts {
|
|
133
|
+
publicMajor: number;
|
|
134
|
+
localMajor: number;
|
|
135
|
+
minimumRelease: string;
|
|
136
|
+
}
|
|
137
|
+
export interface PolicyModelCallsRule {
|
|
138
|
+
ruleId: string;
|
|
139
|
+
key: string;
|
|
140
|
+
value: number;
|
|
141
|
+
scope: string;
|
|
142
|
+
target: PolicyTarget;
|
|
143
|
+
priority: number;
|
|
144
|
+
effectiveAt?: string;
|
|
145
|
+
expiresAt?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface PolicyParallelToolsRule {
|
|
148
|
+
ruleId: string;
|
|
149
|
+
key: string;
|
|
150
|
+
value: number;
|
|
151
|
+
scope: string;
|
|
152
|
+
target: PolicyTarget;
|
|
153
|
+
priority: number;
|
|
154
|
+
effectiveAt?: string;
|
|
155
|
+
expiresAt?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface PolicyPollRule {
|
|
158
|
+
ruleId: string;
|
|
159
|
+
key: string;
|
|
160
|
+
value: number;
|
|
161
|
+
scope: string;
|
|
162
|
+
target: PolicyTarget;
|
|
163
|
+
priority: number;
|
|
164
|
+
effectiveAt?: string;
|
|
165
|
+
expiresAt?: string;
|
|
166
|
+
}
|
|
167
|
+
export interface PolicyRevocationsRule {
|
|
168
|
+
ruleId: string;
|
|
169
|
+
key: string;
|
|
170
|
+
value: PolicyRevokedVersion[];
|
|
171
|
+
scope: string;
|
|
172
|
+
target: PolicyTarget;
|
|
173
|
+
priority: number;
|
|
174
|
+
effectiveAt?: string;
|
|
175
|
+
expiresAt?: string;
|
|
176
|
+
}
|
|
177
|
+
export interface PolicyRevokedVersion {
|
|
178
|
+
packageId: string;
|
|
179
|
+
version: string;
|
|
180
|
+
hash: string;
|
|
181
|
+
reason: string;
|
|
182
|
+
}
|
|
183
|
+
export interface PolicySearchRule {
|
|
184
|
+
ruleId: string;
|
|
185
|
+
key: string;
|
|
186
|
+
value: boolean;
|
|
187
|
+
scope: string;
|
|
188
|
+
target: PolicyTarget;
|
|
189
|
+
priority: number;
|
|
190
|
+
effectiveAt?: string;
|
|
191
|
+
expiresAt?: string;
|
|
192
|
+
}
|
|
193
|
+
export interface PolicyStopRule {
|
|
194
|
+
ruleId: string;
|
|
195
|
+
key: string;
|
|
196
|
+
value: PolicyStop;
|
|
197
|
+
scope: string;
|
|
198
|
+
target: PolicyTarget;
|
|
199
|
+
priority: number;
|
|
200
|
+
effectiveAt?: string;
|
|
201
|
+
expiresAt?: string;
|
|
202
|
+
}
|
|
203
|
+
export interface PolicyStop {
|
|
204
|
+
mode: string;
|
|
205
|
+
reason: string;
|
|
206
|
+
effectiveAt: string;
|
|
207
|
+
until: string;
|
|
208
|
+
capabilities?: string[];
|
|
209
|
+
}
|
|
210
|
+
export type PolicyTarget = string | PolicyAll | PolicyAny | PolicyNot | PolicyEqualText | PolicyEqualMajor | PolicyInText | PolicyInMajor | PolicyVersionAtLeast | PolicyPercent;
|
|
211
|
+
export interface PolicyToolCallsRule {
|
|
212
|
+
ruleId: string;
|
|
213
|
+
key: string;
|
|
214
|
+
value: number;
|
|
215
|
+
scope: string;
|
|
216
|
+
target: PolicyTarget;
|
|
217
|
+
priority: number;
|
|
218
|
+
effectiveAt?: string;
|
|
219
|
+
expiresAt?: string;
|
|
220
|
+
}
|
|
221
|
+
export interface PolicyTraceBufferRule {
|
|
222
|
+
ruleId: string;
|
|
223
|
+
key: string;
|
|
224
|
+
value: number;
|
|
225
|
+
scope: string;
|
|
226
|
+
target: PolicyTarget;
|
|
227
|
+
priority: number;
|
|
228
|
+
effectiveAt?: string;
|
|
229
|
+
expiresAt?: string;
|
|
230
|
+
}
|
|
231
|
+
export interface PolicyTraceSampleRule {
|
|
232
|
+
ruleId: string;
|
|
233
|
+
key: string;
|
|
234
|
+
value: number;
|
|
235
|
+
scope: string;
|
|
236
|
+
target: PolicyTarget;
|
|
237
|
+
priority: number;
|
|
238
|
+
effectiveAt?: string;
|
|
239
|
+
expiresAt?: string;
|
|
240
|
+
}
|
|
241
|
+
export interface PolicyVariant {
|
|
242
|
+
variantId: string;
|
|
243
|
+
allocation: number;
|
|
244
|
+
values: PolicyPresentation;
|
|
245
|
+
}
|
|
246
|
+
export interface PolicyPresentation {
|
|
247
|
+
"ui.density"?: string;
|
|
248
|
+
"mobile.homeSummary"?: string;
|
|
249
|
+
}
|
|
250
|
+
export interface PolicyVersionAtLeast {
|
|
251
|
+
op: string;
|
|
252
|
+
field: string;
|
|
253
|
+
version: string;
|
|
254
|
+
}
|
|
255
|
+
export declare function isPolicyBody(value: unknown): value is PolicyBody;
|
|
256
|
+
/** The schema's declared UTF-8 document bound in bytes. */
|
|
257
|
+
export declare const policyBodyJsonMaxBytes = 1048576;
|
|
258
|
+
/** Parses one strict PolicyBody document; refusal kinds match the C# codec. */
|
|
259
|
+
export declare function tryParsePolicyBodyJson(input: Uint8Array | string): {
|
|
260
|
+
ok: true;
|
|
261
|
+
value: PolicyBody;
|
|
262
|
+
} | {
|
|
263
|
+
ok: false;
|
|
264
|
+
failure: "tooLarge" | "malformed" | "invalid";
|
|
265
|
+
};
|
|
266
|
+
/** Parses one strict PolicyBody document or throws an error carrying the refusal kind. */
|
|
267
|
+
export declare function parsePolicyBodyJson(input: Uint8Array | string): PolicyBody;
|
|
268
|
+
/** Writes compact UTF-8 in schema property order and refuses output the schema rejects. */
|
|
269
|
+
export declare function serializePolicyBodyJson(value: PolicyBody): Uint8Array;
|