@tangleai/outcomes 0.24.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/CHANGELOG.md +28 -0
- package/LICENSE +21 -0
- package/README.md +142 -0
- package/docs/ADAPTERS.md +215 -0
- package/package.json +80 -0
- package/schemas/direction-delta.schema.json +55 -0
- package/schemas/exact-match.schema.json +88 -0
- package/schemas/outcomes.contract.json +4084 -0
- package/schemas/outcomes.schema.json +3936 -0
- package/src/adapters/direction-delta.d.ts +2 -0
- package/src/adapters/direction-delta.gen.d.ts +13 -0
- package/src/adapters/direction-delta.gen.js +3 -0
- package/src/adapters/direction-delta.js +29 -0
- package/src/adapters/exact-match.d.ts +2 -0
- package/src/adapters/exact-match.gen.d.ts +39 -0
- package/src/adapters/exact-match.gen.js +3 -0
- package/src/adapters/exact-match.js +40 -0
- package/src/adapters.d.ts +50 -0
- package/src/adapters.js +1 -0
- package/src/contract.d.ts +3285 -0
- package/src/contract.js +6 -0
- package/src/domain.d.ts +19 -0
- package/src/domain.js +45 -0
- package/src/errors.d.ts +23 -0
- package/src/errors.js +11 -0
- package/src/evaluation.d.ts +49 -0
- package/src/evaluation.js +174 -0
- package/src/handlers.d.ts +15 -0
- package/src/handlers.js +18 -0
- package/src/history.d.ts +4 -0
- package/src/history.js +56 -0
- package/src/identity.d.ts +9 -0
- package/src/identity.js +17 -0
- package/src/index.d.ts +15 -0
- package/src/index.js +9 -0
- package/src/operations.d.ts +16 -0
- package/src/operations.js +108 -0
- package/src/outcomes.contracts.gen.d.ts +1767 -0
- package/src/outcomes.contracts.gen.js +3 -0
- package/src/persistence.d.ts +10 -0
- package/src/persistence.js +88 -0
- package/src/projection.d.ts +13 -0
- package/src/projection.js +59 -0
- package/src/promotion.d.ts +17 -0
- package/src/promotion.js +96 -0
- package/src/proposal-operation.d.ts +17 -0
- package/src/proposal-operation.js +110 -0
- package/src/proposer.d.ts +107 -0
- package/src/proposer.js +89 -0
- package/src/refinement.d.ts +40 -0
- package/src/refinement.js +167 -0
- package/src/resolution.d.ts +12 -0
- package/src/resolution.js +62 -0
- package/src/schema.d.ts +8 -0
- package/src/schema.js +34 -0
- package/src/scoring.d.ts +15 -0
- package/src/scoring.js +37 -0
- package/src/service-context.d.ts +50 -0
- package/src/service-context.js +81 -0
- package/src/service.d.ts +22 -0
- package/src/service.js +159 -0
- package/src/store.d.ts +42 -0
- package/src/store.js +70 -0
- package/src/transitions.d.ts +7 -0
- package/src/transitions.js +56 -0
|
@@ -0,0 +1,1767 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schema constraints this type cannot express: minItems=0
|
|
3
|
+
*/
|
|
4
|
+
export type JsonAnyOf5 = Array<Json>;
|
|
5
|
+
export type Json = null | string | number | boolean | JsonAnyOf5 | {
|
|
6
|
+
[key: string]: Json;
|
|
7
|
+
};
|
|
8
|
+
export interface Scope {
|
|
9
|
+
/**
|
|
10
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
11
|
+
*/
|
|
12
|
+
namespace: string;
|
|
13
|
+
/**
|
|
14
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
15
|
+
*/
|
|
16
|
+
domain: string;
|
|
17
|
+
/**
|
|
18
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
19
|
+
*/
|
|
20
|
+
subject: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
24
|
+
*/
|
|
25
|
+
export type HeadVersionIdAnyOf1 = string;
|
|
26
|
+
export interface Head {
|
|
27
|
+
versionId: HeadVersionIdAnyOf1 | null;
|
|
28
|
+
/**
|
|
29
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
30
|
+
*/
|
|
31
|
+
revision: number;
|
|
32
|
+
}
|
|
33
|
+
export interface Issue {
|
|
34
|
+
code: "OUTC1001" | "OUTC1002" | "OUTC1003" | "OUTC1004" | "OUTC1005" | "OUTC1006" | "OUTC1007" | "OUTC1008" | "OUTC1009" | "OUTC1010" | "OUTC1011" | "OUTC1012" | "OUTC1013" | "OUTC1014" | "OUTC1015" | "OUTC1016" | "OUTC1017" | "OUTC1018" | "OUTC1019";
|
|
35
|
+
path: string;
|
|
36
|
+
/**
|
|
37
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
38
|
+
*/
|
|
39
|
+
detail: string;
|
|
40
|
+
retryable: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface ResultOneOf1 {
|
|
43
|
+
ok: true;
|
|
44
|
+
value: Json;
|
|
45
|
+
replayed: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
48
|
+
*/
|
|
49
|
+
writes: number;
|
|
50
|
+
}
|
|
51
|
+
export interface ResultOneOf2 {
|
|
52
|
+
ok: false;
|
|
53
|
+
/**
|
|
54
|
+
* Schema constraints this type cannot express: minItems=1
|
|
55
|
+
*/
|
|
56
|
+
issues: Array<Issue>;
|
|
57
|
+
}
|
|
58
|
+
export type Result = ResultOneOf1 | ResultOneOf2;
|
|
59
|
+
export interface Policy {
|
|
60
|
+
/**
|
|
61
|
+
* Schema constraints this type cannot express: type="integer", minimum=1
|
|
62
|
+
*/
|
|
63
|
+
maxVersions: number;
|
|
64
|
+
/**
|
|
65
|
+
* Schema constraints this type cannot express: type="integer", minimum=1
|
|
66
|
+
*/
|
|
67
|
+
maxPayloadBytes: number;
|
|
68
|
+
/**
|
|
69
|
+
* Schema constraints this type cannot express: type="integer", minimum=1
|
|
70
|
+
*/
|
|
71
|
+
maxOperations: number;
|
|
72
|
+
/**
|
|
73
|
+
* Schema constraints this type cannot express: type="integer", minimum=1
|
|
74
|
+
*/
|
|
75
|
+
maxChangedLeaves: number;
|
|
76
|
+
/**
|
|
77
|
+
* Schema constraints this type cannot express: type="integer", minimum=1
|
|
78
|
+
*/
|
|
79
|
+
maxReflectionBytes: number;
|
|
80
|
+
}
|
|
81
|
+
export interface AdapterIdentity {
|
|
82
|
+
/**
|
|
83
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
/**
|
|
87
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
88
|
+
*/
|
|
89
|
+
revision: string;
|
|
90
|
+
/**
|
|
91
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
92
|
+
*/
|
|
93
|
+
inputSchema: string;
|
|
94
|
+
/**
|
|
95
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
96
|
+
*/
|
|
97
|
+
outputSchema: string;
|
|
98
|
+
/**
|
|
99
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
100
|
+
*/
|
|
101
|
+
resolutionSchema: string;
|
|
102
|
+
/**
|
|
103
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
104
|
+
*/
|
|
105
|
+
artifactSchema: string;
|
|
106
|
+
/**
|
|
107
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
108
|
+
*/
|
|
109
|
+
scorerRevision: string;
|
|
110
|
+
}
|
|
111
|
+
export interface ConfigurationOneOf1 {
|
|
112
|
+
kind: "scripted";
|
|
113
|
+
/**
|
|
114
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
115
|
+
*/
|
|
116
|
+
revision: string;
|
|
117
|
+
}
|
|
118
|
+
export interface ConfigurationOneOf2 {
|
|
119
|
+
kind: "model";
|
|
120
|
+
/**
|
|
121
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
122
|
+
*/
|
|
123
|
+
identityId: string;
|
|
124
|
+
}
|
|
125
|
+
export type Configuration = ConfigurationOneOf1 | ConfigurationOneOf2;
|
|
126
|
+
/**
|
|
127
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
128
|
+
*/
|
|
129
|
+
export type Hash = string;
|
|
130
|
+
export interface Source {
|
|
131
|
+
/**
|
|
132
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
133
|
+
*/
|
|
134
|
+
sourceId: string;
|
|
135
|
+
/**
|
|
136
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
137
|
+
*/
|
|
138
|
+
scopeId: string;
|
|
139
|
+
/**
|
|
140
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
141
|
+
*/
|
|
142
|
+
subject: string;
|
|
143
|
+
/**
|
|
144
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
145
|
+
*/
|
|
146
|
+
issuer: string;
|
|
147
|
+
/**
|
|
148
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
149
|
+
*/
|
|
150
|
+
observedAt: string;
|
|
151
|
+
payload: Json;
|
|
152
|
+
/**
|
|
153
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
154
|
+
*/
|
|
155
|
+
digest: string;
|
|
156
|
+
decisionId: Hash | null;
|
|
157
|
+
}
|
|
158
|
+
export interface SourceRef {
|
|
159
|
+
/**
|
|
160
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
161
|
+
*/
|
|
162
|
+
sourceId: string;
|
|
163
|
+
/**
|
|
164
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
165
|
+
*/
|
|
166
|
+
digest: string;
|
|
167
|
+
}
|
|
168
|
+
export interface EvaluationCase {
|
|
169
|
+
/**
|
|
170
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
171
|
+
*/
|
|
172
|
+
id: string;
|
|
173
|
+
/**
|
|
174
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
175
|
+
*/
|
|
176
|
+
domain: string;
|
|
177
|
+
input: Json;
|
|
178
|
+
source: Source;
|
|
179
|
+
}
|
|
180
|
+
export interface CaseResult {
|
|
181
|
+
/**
|
|
182
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
183
|
+
*/
|
|
184
|
+
id: string;
|
|
185
|
+
/**
|
|
186
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
187
|
+
*/
|
|
188
|
+
contentDigest: string;
|
|
189
|
+
output: Json;
|
|
190
|
+
baselineOutput: Json;
|
|
191
|
+
category: "success" | "partial" | "failure";
|
|
192
|
+
baselineCategory: "success" | "partial" | "failure";
|
|
193
|
+
utility: number;
|
|
194
|
+
baselineUtility: number;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
198
|
+
*/
|
|
199
|
+
export type ProjectionItemBeforeAnyOf1 = string;
|
|
200
|
+
/**
|
|
201
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
202
|
+
*/
|
|
203
|
+
export type ProjectionItemAfterAnyOf1 = string;
|
|
204
|
+
export interface ProjectionItem {
|
|
205
|
+
/**
|
|
206
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
207
|
+
*/
|
|
208
|
+
memoryId: string;
|
|
209
|
+
before: ProjectionItemBeforeAnyOf1 | null;
|
|
210
|
+
after: ProjectionItemAfterAnyOf1 | null;
|
|
211
|
+
status: "applied" | "missing";
|
|
212
|
+
changed: boolean;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
216
|
+
*/
|
|
217
|
+
export type DecisionExpectedResolutionAtAnyOf1 = string;
|
|
218
|
+
/**
|
|
219
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
220
|
+
*/
|
|
221
|
+
export type DecisionMemoryIdsItem = string;
|
|
222
|
+
/**
|
|
223
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
224
|
+
*/
|
|
225
|
+
export type DecisionUsedVersionIdAnyOf1 = string;
|
|
226
|
+
export interface Decision {
|
|
227
|
+
schemaVersion: 1;
|
|
228
|
+
/**
|
|
229
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
230
|
+
*/
|
|
231
|
+
id: string;
|
|
232
|
+
/**
|
|
233
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
234
|
+
*/
|
|
235
|
+
scopeId: string;
|
|
236
|
+
/**
|
|
237
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
238
|
+
*/
|
|
239
|
+
artifactKey: string;
|
|
240
|
+
/**
|
|
241
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
242
|
+
*/
|
|
243
|
+
recordedAt: string;
|
|
244
|
+
kind: "decision";
|
|
245
|
+
/**
|
|
246
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
247
|
+
*/
|
|
248
|
+
decisionKey: string;
|
|
249
|
+
scope: Scope;
|
|
250
|
+
adapter: AdapterIdentity;
|
|
251
|
+
input: Json;
|
|
252
|
+
output: Json;
|
|
253
|
+
/**
|
|
254
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
255
|
+
*/
|
|
256
|
+
decidedAt: string;
|
|
257
|
+
/**
|
|
258
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
259
|
+
*/
|
|
260
|
+
cutoffAt: string;
|
|
261
|
+
expectedResolutionAt: DecisionExpectedResolutionAtAnyOf1 | null;
|
|
262
|
+
/**
|
|
263
|
+
* Schema constraints this type cannot express: minItems=0
|
|
264
|
+
*/
|
|
265
|
+
memoryIds: Array<DecisionMemoryIdsItem>;
|
|
266
|
+
configuration: Configuration;
|
|
267
|
+
usedVersionId: DecisionUsedVersionIdAnyOf1 | null;
|
|
268
|
+
staticPayload: Json;
|
|
269
|
+
}
|
|
270
|
+
export interface Resolution {
|
|
271
|
+
schemaVersion: 1;
|
|
272
|
+
/**
|
|
273
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
274
|
+
*/
|
|
275
|
+
id: string;
|
|
276
|
+
/**
|
|
277
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
278
|
+
*/
|
|
279
|
+
scopeId: string;
|
|
280
|
+
/**
|
|
281
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
282
|
+
*/
|
|
283
|
+
artifactKey: string;
|
|
284
|
+
/**
|
|
285
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
286
|
+
*/
|
|
287
|
+
recordedAt: string;
|
|
288
|
+
kind: "resolution";
|
|
289
|
+
/**
|
|
290
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
291
|
+
*/
|
|
292
|
+
decisionId: string;
|
|
293
|
+
/**
|
|
294
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
295
|
+
*/
|
|
296
|
+
resolverRevision: string;
|
|
297
|
+
/**
|
|
298
|
+
* Schema constraints this type cannot express: minItems=1
|
|
299
|
+
*/
|
|
300
|
+
sources: Array<Source>;
|
|
301
|
+
payload: Json;
|
|
302
|
+
/**
|
|
303
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
304
|
+
*/
|
|
305
|
+
receivedAt: string;
|
|
306
|
+
late: boolean | null;
|
|
307
|
+
/**
|
|
308
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
309
|
+
*/
|
|
310
|
+
resolutionSchema: string;
|
|
311
|
+
}
|
|
312
|
+
export interface Score {
|
|
313
|
+
schemaVersion: 1;
|
|
314
|
+
/**
|
|
315
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
316
|
+
*/
|
|
317
|
+
id: string;
|
|
318
|
+
/**
|
|
319
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
320
|
+
*/
|
|
321
|
+
scopeId: string;
|
|
322
|
+
/**
|
|
323
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
324
|
+
*/
|
|
325
|
+
artifactKey: string;
|
|
326
|
+
/**
|
|
327
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
328
|
+
*/
|
|
329
|
+
recordedAt: string;
|
|
330
|
+
kind: "score";
|
|
331
|
+
/**
|
|
332
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
333
|
+
*/
|
|
334
|
+
decisionId: string;
|
|
335
|
+
/**
|
|
336
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
337
|
+
*/
|
|
338
|
+
resolutionId: string;
|
|
339
|
+
/**
|
|
340
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
341
|
+
*/
|
|
342
|
+
scorerRevision: string;
|
|
343
|
+
outcome: "success" | "partial" | "failure";
|
|
344
|
+
utility: number;
|
|
345
|
+
diagnostics: Json;
|
|
346
|
+
/**
|
|
347
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
348
|
+
*/
|
|
349
|
+
policyId: string;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
353
|
+
*/
|
|
354
|
+
export type ProjectionIntentMemoryIdsItem = string;
|
|
355
|
+
export interface ProjectionIntent {
|
|
356
|
+
schemaVersion: 1;
|
|
357
|
+
/**
|
|
358
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
359
|
+
*/
|
|
360
|
+
id: string;
|
|
361
|
+
/**
|
|
362
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
363
|
+
*/
|
|
364
|
+
scopeId: string;
|
|
365
|
+
/**
|
|
366
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
367
|
+
*/
|
|
368
|
+
artifactKey: string;
|
|
369
|
+
/**
|
|
370
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
371
|
+
*/
|
|
372
|
+
recordedAt: string;
|
|
373
|
+
kind: "projectionIntent";
|
|
374
|
+
/**
|
|
375
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
376
|
+
*/
|
|
377
|
+
scoreId: string;
|
|
378
|
+
/**
|
|
379
|
+
* Schema constraints this type cannot express: minItems=0
|
|
380
|
+
*/
|
|
381
|
+
memoryIds: Array<ProjectionIntentMemoryIdsItem>;
|
|
382
|
+
/**
|
|
383
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
384
|
+
*/
|
|
385
|
+
authorizationId: string;
|
|
386
|
+
/**
|
|
387
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
388
|
+
*/
|
|
389
|
+
policyId: string;
|
|
390
|
+
}
|
|
391
|
+
export interface ProjectionReceipt {
|
|
392
|
+
schemaVersion: 1;
|
|
393
|
+
/**
|
|
394
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
395
|
+
*/
|
|
396
|
+
id: string;
|
|
397
|
+
/**
|
|
398
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
399
|
+
*/
|
|
400
|
+
scopeId: string;
|
|
401
|
+
/**
|
|
402
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
403
|
+
*/
|
|
404
|
+
artifactKey: string;
|
|
405
|
+
/**
|
|
406
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
407
|
+
*/
|
|
408
|
+
recordedAt: string;
|
|
409
|
+
kind: "projectionReceipt";
|
|
410
|
+
/**
|
|
411
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
412
|
+
*/
|
|
413
|
+
scoreId: string;
|
|
414
|
+
/**
|
|
415
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
416
|
+
*/
|
|
417
|
+
intentId: string;
|
|
418
|
+
/**
|
|
419
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
420
|
+
*/
|
|
421
|
+
policyId: string;
|
|
422
|
+
/**
|
|
423
|
+
* Schema constraints this type cannot express: minItems=0
|
|
424
|
+
*/
|
|
425
|
+
items: Array<ProjectionItem>;
|
|
426
|
+
/**
|
|
427
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
428
|
+
*/
|
|
429
|
+
applied: number;
|
|
430
|
+
/**
|
|
431
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
432
|
+
*/
|
|
433
|
+
missing: number;
|
|
434
|
+
/**
|
|
435
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
436
|
+
*/
|
|
437
|
+
changedMemoryWrites: number;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
441
|
+
*/
|
|
442
|
+
export type ReflectionScoreIdsItem = string;
|
|
443
|
+
/**
|
|
444
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
445
|
+
*/
|
|
446
|
+
export type ReflectionParentVersionIdAnyOf1 = string;
|
|
447
|
+
/**
|
|
448
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
449
|
+
*/
|
|
450
|
+
export type ReflectionCitationsItem = string;
|
|
451
|
+
export interface Reflection {
|
|
452
|
+
schemaVersion: 1;
|
|
453
|
+
/**
|
|
454
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
455
|
+
*/
|
|
456
|
+
id: string;
|
|
457
|
+
/**
|
|
458
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
459
|
+
*/
|
|
460
|
+
scopeId: string;
|
|
461
|
+
/**
|
|
462
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
463
|
+
*/
|
|
464
|
+
artifactKey: string;
|
|
465
|
+
/**
|
|
466
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
467
|
+
*/
|
|
468
|
+
recordedAt: string;
|
|
469
|
+
kind: "reflection";
|
|
470
|
+
/**
|
|
471
|
+
* Schema constraints this type cannot express: minItems=1, maxItems=128
|
|
472
|
+
*/
|
|
473
|
+
scoreIds: Array<ReflectionScoreIdsItem>;
|
|
474
|
+
parentVersionId: ReflectionParentVersionIdAnyOf1 | null;
|
|
475
|
+
configuration: Configuration;
|
|
476
|
+
text: string;
|
|
477
|
+
/**
|
|
478
|
+
* Schema constraints this type cannot express: minItems=1, maxItems=128
|
|
479
|
+
*/
|
|
480
|
+
citations: Array<ReflectionCitationsItem>;
|
|
481
|
+
/**
|
|
482
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
483
|
+
*/
|
|
484
|
+
attemptId: string;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
488
|
+
*/
|
|
489
|
+
export type ArtifactVersionParentVersionIdAnyOf1 = string;
|
|
490
|
+
export interface ArtifactVersion {
|
|
491
|
+
schemaVersion: 1;
|
|
492
|
+
/**
|
|
493
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
494
|
+
*/
|
|
495
|
+
id: string;
|
|
496
|
+
/**
|
|
497
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
498
|
+
*/
|
|
499
|
+
scopeId: string;
|
|
500
|
+
/**
|
|
501
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
502
|
+
*/
|
|
503
|
+
artifactKey: string;
|
|
504
|
+
/**
|
|
505
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
506
|
+
*/
|
|
507
|
+
recordedAt: string;
|
|
508
|
+
kind: "artifactVersion";
|
|
509
|
+
parentVersionId: ArtifactVersionParentVersionIdAnyOf1 | null;
|
|
510
|
+
payload: Json;
|
|
511
|
+
/**
|
|
512
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
513
|
+
*/
|
|
514
|
+
payloadSchema: string;
|
|
515
|
+
adapter: AdapterIdentity;
|
|
516
|
+
/**
|
|
517
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
518
|
+
*/
|
|
519
|
+
reflectionId: string;
|
|
520
|
+
mode: "create" | "evolve";
|
|
521
|
+
/**
|
|
522
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
523
|
+
*/
|
|
524
|
+
policyId: string;
|
|
525
|
+
policy: Policy;
|
|
526
|
+
/**
|
|
527
|
+
* Schema constraints this type cannot express: minItems=0
|
|
528
|
+
*/
|
|
529
|
+
issues: Array<Issue>;
|
|
530
|
+
expectedHead: Head;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
534
|
+
*/
|
|
535
|
+
export type EvaluationRegistrationTrainingScoreIdsItem = string;
|
|
536
|
+
/**
|
|
537
|
+
* Schema constraints this type cannot express: minimum=0
|
|
538
|
+
*/
|
|
539
|
+
export type EvaluationRegistrationMaxCostAnyOf1 = number;
|
|
540
|
+
export interface EvaluationRegistration {
|
|
541
|
+
schemaVersion: 1;
|
|
542
|
+
/**
|
|
543
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
544
|
+
*/
|
|
545
|
+
id: string;
|
|
546
|
+
/**
|
|
547
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
548
|
+
*/
|
|
549
|
+
scopeId: string;
|
|
550
|
+
/**
|
|
551
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
552
|
+
*/
|
|
553
|
+
artifactKey: string;
|
|
554
|
+
/**
|
|
555
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
556
|
+
*/
|
|
557
|
+
recordedAt: string;
|
|
558
|
+
kind: "evaluationRegistration";
|
|
559
|
+
/**
|
|
560
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
561
|
+
*/
|
|
562
|
+
slotId: string;
|
|
563
|
+
/**
|
|
564
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
565
|
+
*/
|
|
566
|
+
versionId: string;
|
|
567
|
+
expectedHead: Head;
|
|
568
|
+
/**
|
|
569
|
+
* Schema constraints this type cannot express: minItems=1
|
|
570
|
+
*/
|
|
571
|
+
trainingScoreIds: Array<EvaluationRegistrationTrainingScoreIdsItem>;
|
|
572
|
+
/**
|
|
573
|
+
* Schema constraints this type cannot express: minItems=1, maxItems=128
|
|
574
|
+
*/
|
|
575
|
+
cases: Array<EvaluationCase>;
|
|
576
|
+
/**
|
|
577
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
578
|
+
*/
|
|
579
|
+
evaluatorRevision: string;
|
|
580
|
+
/**
|
|
581
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
582
|
+
*/
|
|
583
|
+
gatePolicyId: string;
|
|
584
|
+
/**
|
|
585
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
586
|
+
*/
|
|
587
|
+
maxPhysicalRequests: number;
|
|
588
|
+
maxCost: EvaluationRegistrationMaxCostAnyOf1 | null;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
592
|
+
*/
|
|
593
|
+
export type EvaluationTrainingScoreIdsItem = string;
|
|
594
|
+
export interface Evaluation {
|
|
595
|
+
schemaVersion: 1;
|
|
596
|
+
/**
|
|
597
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
598
|
+
*/
|
|
599
|
+
id: string;
|
|
600
|
+
/**
|
|
601
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
602
|
+
*/
|
|
603
|
+
scopeId: string;
|
|
604
|
+
/**
|
|
605
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
606
|
+
*/
|
|
607
|
+
artifactKey: string;
|
|
608
|
+
/**
|
|
609
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
610
|
+
*/
|
|
611
|
+
recordedAt: string;
|
|
612
|
+
kind: "evaluation";
|
|
613
|
+
/**
|
|
614
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
615
|
+
*/
|
|
616
|
+
versionId: string;
|
|
617
|
+
/**
|
|
618
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
619
|
+
*/
|
|
620
|
+
registrationId: string;
|
|
621
|
+
expectedHead: Head;
|
|
622
|
+
/**
|
|
623
|
+
* Schema constraints this type cannot express: minItems=1
|
|
624
|
+
*/
|
|
625
|
+
trainingScoreIds: Array<EvaluationTrainingScoreIdsItem>;
|
|
626
|
+
/**
|
|
627
|
+
* Schema constraints this type cannot express: minItems=0
|
|
628
|
+
*/
|
|
629
|
+
caseResults: Array<CaseResult>;
|
|
630
|
+
/**
|
|
631
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
632
|
+
*/
|
|
633
|
+
caseReportId: string;
|
|
634
|
+
/**
|
|
635
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
636
|
+
*/
|
|
637
|
+
evaluatorRevision: string;
|
|
638
|
+
/**
|
|
639
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
640
|
+
*/
|
|
641
|
+
gatePolicyId: string;
|
|
642
|
+
eligible: boolean;
|
|
643
|
+
/**
|
|
644
|
+
* Schema constraints this type cannot express: minItems=0
|
|
645
|
+
*/
|
|
646
|
+
issues: Array<Issue>;
|
|
647
|
+
meanDelta: number | null;
|
|
648
|
+
/**
|
|
649
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
650
|
+
*/
|
|
651
|
+
physicalRequests: number;
|
|
652
|
+
cost: number | null;
|
|
653
|
+
}
|
|
654
|
+
export interface Approval {
|
|
655
|
+
schemaVersion: 1;
|
|
656
|
+
/**
|
|
657
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
658
|
+
*/
|
|
659
|
+
id: string;
|
|
660
|
+
/**
|
|
661
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
662
|
+
*/
|
|
663
|
+
scopeId: string;
|
|
664
|
+
/**
|
|
665
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
666
|
+
*/
|
|
667
|
+
artifactKey: string;
|
|
668
|
+
/**
|
|
669
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
670
|
+
*/
|
|
671
|
+
recordedAt: string;
|
|
672
|
+
kind: "approval";
|
|
673
|
+
action: "promote" | "rollback";
|
|
674
|
+
/**
|
|
675
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
676
|
+
*/
|
|
677
|
+
actorId: string;
|
|
678
|
+
/**
|
|
679
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
680
|
+
*/
|
|
681
|
+
authorityId: string;
|
|
682
|
+
/**
|
|
683
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
684
|
+
*/
|
|
685
|
+
versionId: string;
|
|
686
|
+
/**
|
|
687
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
688
|
+
*/
|
|
689
|
+
evaluationId: string;
|
|
690
|
+
expectedHead: Head;
|
|
691
|
+
/**
|
|
692
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
693
|
+
*/
|
|
694
|
+
gatePolicyId: string;
|
|
695
|
+
/**
|
|
696
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
697
|
+
*/
|
|
698
|
+
reason: string;
|
|
699
|
+
requestId: Hash;
|
|
700
|
+
}
|
|
701
|
+
export interface ActivationEvent {
|
|
702
|
+
schemaVersion: 1;
|
|
703
|
+
/**
|
|
704
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
705
|
+
*/
|
|
706
|
+
id: string;
|
|
707
|
+
/**
|
|
708
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
709
|
+
*/
|
|
710
|
+
scopeId: string;
|
|
711
|
+
/**
|
|
712
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
713
|
+
*/
|
|
714
|
+
artifactKey: string;
|
|
715
|
+
/**
|
|
716
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
717
|
+
*/
|
|
718
|
+
recordedAt: string;
|
|
719
|
+
kind: "activationEvent";
|
|
720
|
+
action: "promote" | "rollback";
|
|
721
|
+
/**
|
|
722
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
723
|
+
*/
|
|
724
|
+
approvalId: string;
|
|
725
|
+
previousHead: Head;
|
|
726
|
+
nextHead: Head;
|
|
727
|
+
/**
|
|
728
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
729
|
+
*/
|
|
730
|
+
versionId: string;
|
|
731
|
+
/**
|
|
732
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
733
|
+
*/
|
|
734
|
+
evaluationId: string;
|
|
735
|
+
}
|
|
736
|
+
export interface OperationReceipt {
|
|
737
|
+
schemaVersion: 1;
|
|
738
|
+
/**
|
|
739
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
740
|
+
*/
|
|
741
|
+
id: string;
|
|
742
|
+
/**
|
|
743
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
744
|
+
*/
|
|
745
|
+
scopeId: string;
|
|
746
|
+
/**
|
|
747
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
748
|
+
*/
|
|
749
|
+
artifactKey: string;
|
|
750
|
+
/**
|
|
751
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
752
|
+
*/
|
|
753
|
+
recordedAt: string;
|
|
754
|
+
kind: "operationReceipt";
|
|
755
|
+
/**
|
|
756
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
757
|
+
*/
|
|
758
|
+
requestKey: string;
|
|
759
|
+
/**
|
|
760
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
761
|
+
*/
|
|
762
|
+
inputDigest: string;
|
|
763
|
+
/**
|
|
764
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
765
|
+
*/
|
|
766
|
+
operation: string;
|
|
767
|
+
result: Result;
|
|
768
|
+
/**
|
|
769
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
770
|
+
*/
|
|
771
|
+
requestId: string;
|
|
772
|
+
}
|
|
773
|
+
export interface AttemptEvent {
|
|
774
|
+
schemaVersion: 1;
|
|
775
|
+
/**
|
|
776
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
777
|
+
*/
|
|
778
|
+
id: string;
|
|
779
|
+
/**
|
|
780
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
781
|
+
*/
|
|
782
|
+
scopeId: string;
|
|
783
|
+
/**
|
|
784
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
785
|
+
*/
|
|
786
|
+
artifactKey: string;
|
|
787
|
+
/**
|
|
788
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
789
|
+
*/
|
|
790
|
+
recordedAt: string;
|
|
791
|
+
kind: "attemptEvent";
|
|
792
|
+
/**
|
|
793
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
794
|
+
*/
|
|
795
|
+
requestId: string;
|
|
796
|
+
stage: "reserved" | "dispatched" | "ready" | "retryable" | "uncertain" | "refused" | "completed" | "reconciled";
|
|
797
|
+
/**
|
|
798
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
799
|
+
*/
|
|
800
|
+
inputDigest: string;
|
|
801
|
+
details: Json;
|
|
802
|
+
}
|
|
803
|
+
export type OutcomeRecord = Decision | Resolution | Score | ProjectionIntent | ProjectionReceipt | Reflection | ArtifactVersion | EvaluationRegistration | Evaluation | Approval | ActivationEvent | OperationReceipt | AttemptEvent;
|
|
804
|
+
/**
|
|
805
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
806
|
+
*/
|
|
807
|
+
export type HeadRowEventIdAnyOf1 = string;
|
|
808
|
+
export interface HeadRow {
|
|
809
|
+
/**
|
|
810
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
811
|
+
*/
|
|
812
|
+
id: string;
|
|
813
|
+
/**
|
|
814
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
815
|
+
*/
|
|
816
|
+
scopeId: string;
|
|
817
|
+
/**
|
|
818
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
819
|
+
*/
|
|
820
|
+
artifactKey: string;
|
|
821
|
+
head: Head;
|
|
822
|
+
eventId: HeadRowEventIdAnyOf1 | null;
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
826
|
+
*/
|
|
827
|
+
export type KeyRowValueAnyOf1 = string;
|
|
828
|
+
/**
|
|
829
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
830
|
+
*/
|
|
831
|
+
export type KeyRowValueAnyOf2 = number;
|
|
832
|
+
export interface KeyRow {
|
|
833
|
+
/**
|
|
834
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
835
|
+
*/
|
|
836
|
+
id: string;
|
|
837
|
+
/**
|
|
838
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
839
|
+
*/
|
|
840
|
+
scopeId: string;
|
|
841
|
+
value: KeyRowValueAnyOf1 | KeyRowValueAnyOf2;
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
845
|
+
*/
|
|
846
|
+
export type OperationReceiptIdAnyOf1 = string;
|
|
847
|
+
export interface Operation {
|
|
848
|
+
/**
|
|
849
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
850
|
+
*/
|
|
851
|
+
id: string;
|
|
852
|
+
/**
|
|
853
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
854
|
+
*/
|
|
855
|
+
scopeId: string;
|
|
856
|
+
/**
|
|
857
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
858
|
+
*/
|
|
859
|
+
artifactKey: string;
|
|
860
|
+
/**
|
|
861
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
862
|
+
*/
|
|
863
|
+
requestKey: string;
|
|
864
|
+
/**
|
|
865
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
866
|
+
*/
|
|
867
|
+
operation: string;
|
|
868
|
+
/**
|
|
869
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
870
|
+
*/
|
|
871
|
+
inputDigest: string;
|
|
872
|
+
state: "reserved" | "dispatched" | "ready" | "retryable" | "uncertain" | "completed";
|
|
873
|
+
receiptId: OperationReceiptIdAnyOf1 | null;
|
|
874
|
+
output: Json;
|
|
875
|
+
capacityReserved: boolean;
|
|
876
|
+
/**
|
|
877
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
878
|
+
*/
|
|
879
|
+
attempt: number;
|
|
880
|
+
/**
|
|
881
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
882
|
+
*/
|
|
883
|
+
preparationWrites: number;
|
|
884
|
+
}
|
|
885
|
+
export interface StoredRecord {
|
|
886
|
+
/**
|
|
887
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
888
|
+
*/
|
|
889
|
+
id: string;
|
|
890
|
+
/**
|
|
891
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
892
|
+
*/
|
|
893
|
+
scopeId: string;
|
|
894
|
+
/**
|
|
895
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
896
|
+
*/
|
|
897
|
+
artifactKey: string;
|
|
898
|
+
/**
|
|
899
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
900
|
+
*/
|
|
901
|
+
kind: string;
|
|
902
|
+
/**
|
|
903
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
904
|
+
*/
|
|
905
|
+
seq: number;
|
|
906
|
+
record: OutcomeRecord;
|
|
907
|
+
}
|
|
908
|
+
export interface ConfidencePolicy {
|
|
909
|
+
/**
|
|
910
|
+
* Schema constraints this type cannot express: minimum=0
|
|
911
|
+
*/
|
|
912
|
+
successBoost: number;
|
|
913
|
+
/**
|
|
914
|
+
* Schema constraints this type cannot express: minimum=0
|
|
915
|
+
*/
|
|
916
|
+
failurePenalty: number;
|
|
917
|
+
/**
|
|
918
|
+
* Schema constraints this type cannot express: minimum=0
|
|
919
|
+
*/
|
|
920
|
+
partialBoost: number;
|
|
921
|
+
/**
|
|
922
|
+
* Schema constraints this type cannot express: minimum=0, maximum=1
|
|
923
|
+
*/
|
|
924
|
+
minConfidence: number;
|
|
925
|
+
/**
|
|
926
|
+
* Schema constraints this type cannot express: minimum=0, maximum=1
|
|
927
|
+
*/
|
|
928
|
+
maxConfidence: number;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
932
|
+
*/
|
|
933
|
+
export type CreateInputExpectedResolutionAtAnyOf1 = string;
|
|
934
|
+
/**
|
|
935
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
936
|
+
*/
|
|
937
|
+
export type CreateInputMemoryIdsItem = string;
|
|
938
|
+
/**
|
|
939
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
940
|
+
*/
|
|
941
|
+
export type CreateInputUsedVersionIdAnyOf1 = string;
|
|
942
|
+
export interface CreateInput {
|
|
943
|
+
/**
|
|
944
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
945
|
+
*/
|
|
946
|
+
decisionKey: string;
|
|
947
|
+
adapter: AdapterIdentity;
|
|
948
|
+
input: Json;
|
|
949
|
+
output: Json;
|
|
950
|
+
/**
|
|
951
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
952
|
+
*/
|
|
953
|
+
decidedAt: string;
|
|
954
|
+
/**
|
|
955
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
956
|
+
*/
|
|
957
|
+
cutoffAt: string;
|
|
958
|
+
expectedResolutionAt: CreateInputExpectedResolutionAtAnyOf1 | null;
|
|
959
|
+
/**
|
|
960
|
+
* Schema constraints this type cannot express: minItems=0
|
|
961
|
+
*/
|
|
962
|
+
memoryIds: Array<CreateInputMemoryIdsItem>;
|
|
963
|
+
configuration: Configuration;
|
|
964
|
+
usedVersionId: CreateInputUsedVersionIdAnyOf1 | null;
|
|
965
|
+
staticPayload: Json;
|
|
966
|
+
}
|
|
967
|
+
export interface ResolveInput {
|
|
968
|
+
/**
|
|
969
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
970
|
+
*/
|
|
971
|
+
decisionId: string;
|
|
972
|
+
/**
|
|
973
|
+
* Schema constraints this type cannot express: minItems=1, maxItems=16
|
|
974
|
+
*/
|
|
975
|
+
evidence: Array<SourceRef>;
|
|
976
|
+
/**
|
|
977
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
978
|
+
*/
|
|
979
|
+
receivedAt: string;
|
|
980
|
+
}
|
|
981
|
+
export interface ScoreInput {
|
|
982
|
+
/**
|
|
983
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
984
|
+
*/
|
|
985
|
+
resolutionId: string;
|
|
986
|
+
}
|
|
987
|
+
export interface ProjectInput {
|
|
988
|
+
/**
|
|
989
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
990
|
+
*/
|
|
991
|
+
scoreId: string;
|
|
992
|
+
}
|
|
993
|
+
export type Patch = {
|
|
994
|
+
op: "add" | "replace" | "test";
|
|
995
|
+
path: string;
|
|
996
|
+
value: Json;
|
|
997
|
+
} | {
|
|
998
|
+
op: "remove";
|
|
999
|
+
path: string;
|
|
1000
|
+
};
|
|
1001
|
+
/**
|
|
1002
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1003
|
+
*/
|
|
1004
|
+
export type ReflectInputScoreIdsItem = string;
|
|
1005
|
+
/**
|
|
1006
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1007
|
+
*/
|
|
1008
|
+
export type ReflectInputParentVersionIdAnyOf1 = string;
|
|
1009
|
+
/**
|
|
1010
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1011
|
+
*/
|
|
1012
|
+
export type ReflectInputCitationsItem = string;
|
|
1013
|
+
export interface ReflectInput {
|
|
1014
|
+
mode: "create" | "evolve";
|
|
1015
|
+
/**
|
|
1016
|
+
* Schema constraints this type cannot express: minItems=1, maxItems=128
|
|
1017
|
+
*/
|
|
1018
|
+
scoreIds: Array<ReflectInputScoreIdsItem>;
|
|
1019
|
+
parentVersionId: ReflectInputParentVersionIdAnyOf1 | null;
|
|
1020
|
+
payload: Json;
|
|
1021
|
+
/**
|
|
1022
|
+
* Schema constraints this type cannot express: minItems=0
|
|
1023
|
+
*/
|
|
1024
|
+
patch: Array<Patch>;
|
|
1025
|
+
text: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* Schema constraints this type cannot express: minItems=1, maxItems=128
|
|
1028
|
+
*/
|
|
1029
|
+
citations: Array<ReflectInputCitationsItem>;
|
|
1030
|
+
configuration: Configuration;
|
|
1031
|
+
}
|
|
1032
|
+
export interface EvaluateInput {
|
|
1033
|
+
/**
|
|
1034
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1035
|
+
*/
|
|
1036
|
+
versionId: string;
|
|
1037
|
+
/**
|
|
1038
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1039
|
+
*/
|
|
1040
|
+
slotId: string;
|
|
1041
|
+
}
|
|
1042
|
+
export interface ApproveInput {
|
|
1043
|
+
action: "promote" | "rollback";
|
|
1044
|
+
/**
|
|
1045
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1046
|
+
*/
|
|
1047
|
+
versionId: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1050
|
+
*/
|
|
1051
|
+
evaluationId: string;
|
|
1052
|
+
expectedHead: Head;
|
|
1053
|
+
/**
|
|
1054
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1055
|
+
*/
|
|
1056
|
+
reason: string;
|
|
1057
|
+
}
|
|
1058
|
+
export interface PromoteInput {
|
|
1059
|
+
/**
|
|
1060
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1061
|
+
*/
|
|
1062
|
+
approvalId: string;
|
|
1063
|
+
}
|
|
1064
|
+
export interface RollbackInput {
|
|
1065
|
+
/**
|
|
1066
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1067
|
+
*/
|
|
1068
|
+
approvalId: string;
|
|
1069
|
+
}
|
|
1070
|
+
export interface ReconcileInput {
|
|
1071
|
+
/**
|
|
1072
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1073
|
+
*/
|
|
1074
|
+
attemptId: string;
|
|
1075
|
+
evidence: SourceRef;
|
|
1076
|
+
}
|
|
1077
|
+
export interface InspectInput {
|
|
1078
|
+
/**
|
|
1079
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1080
|
+
*/
|
|
1081
|
+
id: string;
|
|
1082
|
+
includeLineage?: boolean;
|
|
1083
|
+
}
|
|
1084
|
+
export type InjectInput = Record<string, never>;
|
|
1085
|
+
export interface Cursor {
|
|
1086
|
+
/**
|
|
1087
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1088
|
+
*/
|
|
1089
|
+
scopeId: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1092
|
+
*/
|
|
1093
|
+
artifactKey: string;
|
|
1094
|
+
/**
|
|
1095
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1096
|
+
*/
|
|
1097
|
+
after: number;
|
|
1098
|
+
/**
|
|
1099
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1100
|
+
*/
|
|
1101
|
+
upper: number;
|
|
1102
|
+
/**
|
|
1103
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1104
|
+
*/
|
|
1105
|
+
filterId: string;
|
|
1106
|
+
}
|
|
1107
|
+
export interface HistoryInput {
|
|
1108
|
+
/**
|
|
1109
|
+
* Schema constraints this type cannot express: type="integer", minimum=1, maximum=200
|
|
1110
|
+
*/
|
|
1111
|
+
pageSize?: number;
|
|
1112
|
+
cursor?: Cursor | null;
|
|
1113
|
+
}
|
|
1114
|
+
export interface CreateCommand {
|
|
1115
|
+
/**
|
|
1116
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1117
|
+
*/
|
|
1118
|
+
scopeId: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1121
|
+
*/
|
|
1122
|
+
artifactKey: string;
|
|
1123
|
+
/**
|
|
1124
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1125
|
+
*/
|
|
1126
|
+
requestKey: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1129
|
+
*/
|
|
1130
|
+
at: string;
|
|
1131
|
+
input: CreateInput;
|
|
1132
|
+
}
|
|
1133
|
+
export interface ResolveCommand {
|
|
1134
|
+
/**
|
|
1135
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1136
|
+
*/
|
|
1137
|
+
scopeId: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1140
|
+
*/
|
|
1141
|
+
artifactKey: string;
|
|
1142
|
+
/**
|
|
1143
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1144
|
+
*/
|
|
1145
|
+
requestKey: string;
|
|
1146
|
+
/**
|
|
1147
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1148
|
+
*/
|
|
1149
|
+
at: string;
|
|
1150
|
+
input: ResolveInput;
|
|
1151
|
+
}
|
|
1152
|
+
export interface ScoreCommand {
|
|
1153
|
+
/**
|
|
1154
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1155
|
+
*/
|
|
1156
|
+
scopeId: string;
|
|
1157
|
+
/**
|
|
1158
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1159
|
+
*/
|
|
1160
|
+
artifactKey: string;
|
|
1161
|
+
/**
|
|
1162
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1163
|
+
*/
|
|
1164
|
+
requestKey: string;
|
|
1165
|
+
/**
|
|
1166
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1167
|
+
*/
|
|
1168
|
+
at: string;
|
|
1169
|
+
input: ScoreInput;
|
|
1170
|
+
}
|
|
1171
|
+
export interface ProjectCommand {
|
|
1172
|
+
/**
|
|
1173
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1174
|
+
*/
|
|
1175
|
+
scopeId: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1178
|
+
*/
|
|
1179
|
+
artifactKey: string;
|
|
1180
|
+
/**
|
|
1181
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1182
|
+
*/
|
|
1183
|
+
requestKey: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1186
|
+
*/
|
|
1187
|
+
at: string;
|
|
1188
|
+
input: ProjectInput;
|
|
1189
|
+
}
|
|
1190
|
+
export interface ReflectCommand {
|
|
1191
|
+
/**
|
|
1192
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1193
|
+
*/
|
|
1194
|
+
scopeId: string;
|
|
1195
|
+
/**
|
|
1196
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1197
|
+
*/
|
|
1198
|
+
artifactKey: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1201
|
+
*/
|
|
1202
|
+
requestKey: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1205
|
+
*/
|
|
1206
|
+
at: string;
|
|
1207
|
+
input: ReflectInput;
|
|
1208
|
+
}
|
|
1209
|
+
export interface EvaluateCommand {
|
|
1210
|
+
/**
|
|
1211
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1212
|
+
*/
|
|
1213
|
+
scopeId: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1216
|
+
*/
|
|
1217
|
+
artifactKey: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1220
|
+
*/
|
|
1221
|
+
requestKey: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1224
|
+
*/
|
|
1225
|
+
at: string;
|
|
1226
|
+
input: EvaluateInput;
|
|
1227
|
+
}
|
|
1228
|
+
export interface ApproveCommand {
|
|
1229
|
+
/**
|
|
1230
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1231
|
+
*/
|
|
1232
|
+
scopeId: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1235
|
+
*/
|
|
1236
|
+
artifactKey: string;
|
|
1237
|
+
/**
|
|
1238
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1239
|
+
*/
|
|
1240
|
+
requestKey: string;
|
|
1241
|
+
/**
|
|
1242
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1243
|
+
*/
|
|
1244
|
+
at: string;
|
|
1245
|
+
input: ApproveInput;
|
|
1246
|
+
}
|
|
1247
|
+
export interface PromoteCommand {
|
|
1248
|
+
/**
|
|
1249
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1250
|
+
*/
|
|
1251
|
+
scopeId: string;
|
|
1252
|
+
/**
|
|
1253
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1254
|
+
*/
|
|
1255
|
+
artifactKey: string;
|
|
1256
|
+
/**
|
|
1257
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1258
|
+
*/
|
|
1259
|
+
requestKey: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1262
|
+
*/
|
|
1263
|
+
at: string;
|
|
1264
|
+
input: PromoteInput;
|
|
1265
|
+
}
|
|
1266
|
+
export interface RollbackCommand {
|
|
1267
|
+
/**
|
|
1268
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1269
|
+
*/
|
|
1270
|
+
scopeId: string;
|
|
1271
|
+
/**
|
|
1272
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1273
|
+
*/
|
|
1274
|
+
artifactKey: string;
|
|
1275
|
+
/**
|
|
1276
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1277
|
+
*/
|
|
1278
|
+
requestKey: string;
|
|
1279
|
+
/**
|
|
1280
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1281
|
+
*/
|
|
1282
|
+
at: string;
|
|
1283
|
+
input: RollbackInput;
|
|
1284
|
+
}
|
|
1285
|
+
export interface ReconcileCommand {
|
|
1286
|
+
/**
|
|
1287
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1288
|
+
*/
|
|
1289
|
+
scopeId: string;
|
|
1290
|
+
/**
|
|
1291
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1292
|
+
*/
|
|
1293
|
+
artifactKey: string;
|
|
1294
|
+
/**
|
|
1295
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1296
|
+
*/
|
|
1297
|
+
requestKey: string;
|
|
1298
|
+
/**
|
|
1299
|
+
* Schema constraints this type cannot express: pattern="^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1300
|
+
*/
|
|
1301
|
+
at: string;
|
|
1302
|
+
input: ReconcileInput;
|
|
1303
|
+
}
|
|
1304
|
+
export interface InspectCommand {
|
|
1305
|
+
/**
|
|
1306
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1307
|
+
*/
|
|
1308
|
+
scopeId: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1311
|
+
*/
|
|
1312
|
+
artifactKey: string;
|
|
1313
|
+
input: InspectInput;
|
|
1314
|
+
}
|
|
1315
|
+
export interface InjectCommand {
|
|
1316
|
+
/**
|
|
1317
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1318
|
+
*/
|
|
1319
|
+
scopeId: string;
|
|
1320
|
+
/**
|
|
1321
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1322
|
+
*/
|
|
1323
|
+
artifactKey: string;
|
|
1324
|
+
input: InjectInput;
|
|
1325
|
+
}
|
|
1326
|
+
export interface HistoryCommand {
|
|
1327
|
+
/**
|
|
1328
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1329
|
+
*/
|
|
1330
|
+
scopeId: string;
|
|
1331
|
+
/**
|
|
1332
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1333
|
+
*/
|
|
1334
|
+
artifactKey: string;
|
|
1335
|
+
input: HistoryInput;
|
|
1336
|
+
}
|
|
1337
|
+
export type Category = "success" | "partial" | "failure";
|
|
1338
|
+
/**
|
|
1339
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1340
|
+
*/
|
|
1341
|
+
export type EvaluationSlotTrainingScoreIdsItem = string;
|
|
1342
|
+
/**
|
|
1343
|
+
* Schema constraints this type cannot express: minimum=0
|
|
1344
|
+
*/
|
|
1345
|
+
export type EvaluationSlotMaxCostAnyOf1 = number;
|
|
1346
|
+
export interface EvaluationSlot {
|
|
1347
|
+
/**
|
|
1348
|
+
* Schema constraints this type cannot express: minLength=1, pattern="\\S"
|
|
1349
|
+
*/
|
|
1350
|
+
slotId: string;
|
|
1351
|
+
/**
|
|
1352
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1353
|
+
*/
|
|
1354
|
+
versionId: string;
|
|
1355
|
+
expectedHead: Head;
|
|
1356
|
+
/**
|
|
1357
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1358
|
+
*/
|
|
1359
|
+
trainingScoreIds: Array<EvaluationSlotTrainingScoreIdsItem>;
|
|
1360
|
+
/**
|
|
1361
|
+
* Schema constraints this type cannot express: minItems=1, maxItems=128
|
|
1362
|
+
*/
|
|
1363
|
+
cases: Array<EvaluationCase>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1366
|
+
*/
|
|
1367
|
+
evaluatorRevision: string;
|
|
1368
|
+
/**
|
|
1369
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1370
|
+
*/
|
|
1371
|
+
gatePolicyId: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1374
|
+
*/
|
|
1375
|
+
maxPhysicalRequests: number;
|
|
1376
|
+
maxCost: EvaluationSlotMaxCostAnyOf1 | null;
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* Schema constraints this type cannot express: pattern="^[a-f0-9]{64}$"
|
|
1380
|
+
*/
|
|
1381
|
+
export type ProposalCitationsItem = string;
|
|
1382
|
+
export interface Proposal {
|
|
1383
|
+
payload: Json;
|
|
1384
|
+
/**
|
|
1385
|
+
* Schema constraints this type cannot express: minItems=0
|
|
1386
|
+
*/
|
|
1387
|
+
patch: Array<Patch>;
|
|
1388
|
+
text: string;
|
|
1389
|
+
/**
|
|
1390
|
+
* Schema constraints this type cannot express: minItems=1, maxItems=128
|
|
1391
|
+
*/
|
|
1392
|
+
citations: Array<ProposalCitationsItem>;
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* Schema constraints this type cannot express: minimum=0
|
|
1396
|
+
*/
|
|
1397
|
+
export type ProposalReplyCostAnyOf1 = number;
|
|
1398
|
+
export interface ProposalReply {
|
|
1399
|
+
proposal: Proposal | null;
|
|
1400
|
+
/**
|
|
1401
|
+
* Schema constraints this type cannot express: maxItems=8
|
|
1402
|
+
*/
|
|
1403
|
+
issues: Array<Issue>;
|
|
1404
|
+
requestDigest: Hash;
|
|
1405
|
+
identityId: Hash;
|
|
1406
|
+
/**
|
|
1407
|
+
* Schema constraints this type cannot express: type="integer", minimum=0, maximum=1
|
|
1408
|
+
*/
|
|
1409
|
+
physicalRequests: number;
|
|
1410
|
+
replayed: boolean;
|
|
1411
|
+
usage: Json;
|
|
1412
|
+
usageKnown: boolean;
|
|
1413
|
+
cost: ProposalReplyCostAnyOf1 | null;
|
|
1414
|
+
outputDigest: Hash;
|
|
1415
|
+
}
|
|
1416
|
+
export interface DispatchSnapshot {
|
|
1417
|
+
input: ReflectInput;
|
|
1418
|
+
head: Head;
|
|
1419
|
+
previous: Json;
|
|
1420
|
+
identity: Json;
|
|
1421
|
+
requestDigest: Hash;
|
|
1422
|
+
}
|
|
1423
|
+
export interface PreparedModelOutput {
|
|
1424
|
+
input: ReflectInput;
|
|
1425
|
+
head: Head;
|
|
1426
|
+
previous: Json;
|
|
1427
|
+
reply: ProposalReply;
|
|
1428
|
+
}
|
|
1429
|
+
export interface ReconciliationProofOneOf1 {
|
|
1430
|
+
attemptId: Hash;
|
|
1431
|
+
/**
|
|
1432
|
+
* Schema constraints this type cannot express: type="integer", minimum=1
|
|
1433
|
+
*/
|
|
1434
|
+
attempt: number;
|
|
1435
|
+
inputDigest: Hash;
|
|
1436
|
+
kind: "retained-output";
|
|
1437
|
+
reply: ProposalReply;
|
|
1438
|
+
}
|
|
1439
|
+
export interface ReconciliationProofOneOf2 {
|
|
1440
|
+
attemptId: Hash;
|
|
1441
|
+
/**
|
|
1442
|
+
* Schema constraints this type cannot express: type="integer", minimum=1
|
|
1443
|
+
*/
|
|
1444
|
+
attempt: number;
|
|
1445
|
+
inputDigest: Hash;
|
|
1446
|
+
kind: "no-dispatch";
|
|
1447
|
+
/**
|
|
1448
|
+
* Schema constraints this type cannot express: minLength=1, maxLength=2048
|
|
1449
|
+
*/
|
|
1450
|
+
reason: string;
|
|
1451
|
+
}
|
|
1452
|
+
export type ReconciliationProof = ReconciliationProofOneOf1 | ReconciliationProofOneOf2;
|
|
1453
|
+
export interface Principal {
|
|
1454
|
+
/**
|
|
1455
|
+
* Schema constraints this type cannot express: minLength=1
|
|
1456
|
+
*/
|
|
1457
|
+
id: string;
|
|
1458
|
+
authorityId: Hash;
|
|
1459
|
+
approve: boolean;
|
|
1460
|
+
reconcile: boolean;
|
|
1461
|
+
}
|
|
1462
|
+
export interface HistoryEntry {
|
|
1463
|
+
/**
|
|
1464
|
+
* Schema constraints this type cannot express: type="integer", minimum=1
|
|
1465
|
+
*/
|
|
1466
|
+
sequence: number;
|
|
1467
|
+
record: OutcomeRecord;
|
|
1468
|
+
}
|
|
1469
|
+
export interface Inspection {
|
|
1470
|
+
record: OutcomeRecord;
|
|
1471
|
+
lineage: Array<ArtifactVersion>;
|
|
1472
|
+
}
|
|
1473
|
+
export interface HistoryPage {
|
|
1474
|
+
/**
|
|
1475
|
+
* Schema constraints this type cannot express: maxItems=200
|
|
1476
|
+
*/
|
|
1477
|
+
entries: Array<HistoryEntry>;
|
|
1478
|
+
cursor: Cursor | null;
|
|
1479
|
+
/**
|
|
1480
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1481
|
+
*/
|
|
1482
|
+
upper: number;
|
|
1483
|
+
}
|
|
1484
|
+
export interface CreateValue {
|
|
1485
|
+
decisionId: Hash;
|
|
1486
|
+
}
|
|
1487
|
+
export interface CreateResultOneOf1 {
|
|
1488
|
+
ok: true;
|
|
1489
|
+
value: CreateValue;
|
|
1490
|
+
replayed: boolean;
|
|
1491
|
+
/**
|
|
1492
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1493
|
+
*/
|
|
1494
|
+
writes: number;
|
|
1495
|
+
}
|
|
1496
|
+
export interface CreateResultOneOf2 {
|
|
1497
|
+
ok: false;
|
|
1498
|
+
/**
|
|
1499
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1500
|
+
*/
|
|
1501
|
+
issues: Array<Issue>;
|
|
1502
|
+
}
|
|
1503
|
+
export type CreateResult = CreateResultOneOf1 | CreateResultOneOf2;
|
|
1504
|
+
export interface ResolveValue {
|
|
1505
|
+
resolutionId: Hash;
|
|
1506
|
+
}
|
|
1507
|
+
export interface ResolveResultOneOf1 {
|
|
1508
|
+
ok: true;
|
|
1509
|
+
value: ResolveValue;
|
|
1510
|
+
replayed: boolean;
|
|
1511
|
+
/**
|
|
1512
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1513
|
+
*/
|
|
1514
|
+
writes: number;
|
|
1515
|
+
}
|
|
1516
|
+
export interface ResolveResultOneOf2 {
|
|
1517
|
+
ok: false;
|
|
1518
|
+
/**
|
|
1519
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1520
|
+
*/
|
|
1521
|
+
issues: Array<Issue>;
|
|
1522
|
+
}
|
|
1523
|
+
export type ResolveResult = ResolveResultOneOf1 | ResolveResultOneOf2;
|
|
1524
|
+
export interface ScoreValue {
|
|
1525
|
+
scoreId: Hash;
|
|
1526
|
+
projectionIntentId: Hash;
|
|
1527
|
+
}
|
|
1528
|
+
export interface ScoreResultOneOf1 {
|
|
1529
|
+
ok: true;
|
|
1530
|
+
value: ScoreValue;
|
|
1531
|
+
replayed: boolean;
|
|
1532
|
+
/**
|
|
1533
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1534
|
+
*/
|
|
1535
|
+
writes: number;
|
|
1536
|
+
}
|
|
1537
|
+
export interface ScoreResultOneOf2 {
|
|
1538
|
+
ok: false;
|
|
1539
|
+
/**
|
|
1540
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1541
|
+
*/
|
|
1542
|
+
issues: Array<Issue>;
|
|
1543
|
+
}
|
|
1544
|
+
export type ScoreResult = ScoreResultOneOf1 | ScoreResultOneOf2;
|
|
1545
|
+
export interface ProjectValue {
|
|
1546
|
+
projectionReceiptId: Hash;
|
|
1547
|
+
/**
|
|
1548
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1549
|
+
*/
|
|
1550
|
+
applied: number;
|
|
1551
|
+
/**
|
|
1552
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1553
|
+
*/
|
|
1554
|
+
missing: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1557
|
+
*/
|
|
1558
|
+
changedMemoryWrites: number;
|
|
1559
|
+
}
|
|
1560
|
+
export interface ProjectResultOneOf1 {
|
|
1561
|
+
ok: true;
|
|
1562
|
+
value: ProjectValue;
|
|
1563
|
+
replayed: boolean;
|
|
1564
|
+
/**
|
|
1565
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1566
|
+
*/
|
|
1567
|
+
writes: number;
|
|
1568
|
+
}
|
|
1569
|
+
export interface ProjectResultOneOf2 {
|
|
1570
|
+
ok: false;
|
|
1571
|
+
/**
|
|
1572
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1573
|
+
*/
|
|
1574
|
+
issues: Array<Issue>;
|
|
1575
|
+
}
|
|
1576
|
+
export type ProjectResult = ProjectResultOneOf1 | ProjectResultOneOf2;
|
|
1577
|
+
export interface ReflectValue {
|
|
1578
|
+
reflectionId: Hash;
|
|
1579
|
+
versionId: Hash | null;
|
|
1580
|
+
noOp: boolean;
|
|
1581
|
+
issues: Array<Issue>;
|
|
1582
|
+
}
|
|
1583
|
+
export interface ReflectResultOneOf1 {
|
|
1584
|
+
ok: true;
|
|
1585
|
+
value: ReflectValue;
|
|
1586
|
+
replayed: boolean;
|
|
1587
|
+
/**
|
|
1588
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1589
|
+
*/
|
|
1590
|
+
writes: number;
|
|
1591
|
+
}
|
|
1592
|
+
export interface ReflectResultOneOf2 {
|
|
1593
|
+
ok: false;
|
|
1594
|
+
/**
|
|
1595
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1596
|
+
*/
|
|
1597
|
+
issues: Array<Issue>;
|
|
1598
|
+
}
|
|
1599
|
+
export type ReflectResult = ReflectResultOneOf1 | ReflectResultOneOf2;
|
|
1600
|
+
export interface EvaluateValue {
|
|
1601
|
+
evaluationId: Hash;
|
|
1602
|
+
eligible: boolean;
|
|
1603
|
+
issues: Array<Issue>;
|
|
1604
|
+
caseReportId: Hash;
|
|
1605
|
+
}
|
|
1606
|
+
export interface EvaluateResultOneOf1 {
|
|
1607
|
+
ok: true;
|
|
1608
|
+
value: EvaluateValue;
|
|
1609
|
+
replayed: boolean;
|
|
1610
|
+
/**
|
|
1611
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1612
|
+
*/
|
|
1613
|
+
writes: number;
|
|
1614
|
+
}
|
|
1615
|
+
export interface EvaluateResultOneOf2 {
|
|
1616
|
+
ok: false;
|
|
1617
|
+
/**
|
|
1618
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1619
|
+
*/
|
|
1620
|
+
issues: Array<Issue>;
|
|
1621
|
+
}
|
|
1622
|
+
export type EvaluateResult = EvaluateResultOneOf1 | EvaluateResultOneOf2;
|
|
1623
|
+
export interface ApproveValue {
|
|
1624
|
+
approvalId: Hash;
|
|
1625
|
+
}
|
|
1626
|
+
export interface ApproveResultOneOf1 {
|
|
1627
|
+
ok: true;
|
|
1628
|
+
value: ApproveValue;
|
|
1629
|
+
replayed: boolean;
|
|
1630
|
+
/**
|
|
1631
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1632
|
+
*/
|
|
1633
|
+
writes: number;
|
|
1634
|
+
}
|
|
1635
|
+
export interface ApproveResultOneOf2 {
|
|
1636
|
+
ok: false;
|
|
1637
|
+
/**
|
|
1638
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1639
|
+
*/
|
|
1640
|
+
issues: Array<Issue>;
|
|
1641
|
+
}
|
|
1642
|
+
export type ApproveResult = ApproveResultOneOf1 | ApproveResultOneOf2;
|
|
1643
|
+
export interface PromoteValue {
|
|
1644
|
+
activationEventId: Hash;
|
|
1645
|
+
head: Head;
|
|
1646
|
+
}
|
|
1647
|
+
export interface PromoteResultOneOf1 {
|
|
1648
|
+
ok: true;
|
|
1649
|
+
value: PromoteValue;
|
|
1650
|
+
replayed: boolean;
|
|
1651
|
+
/**
|
|
1652
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1653
|
+
*/
|
|
1654
|
+
writes: number;
|
|
1655
|
+
}
|
|
1656
|
+
export interface PromoteResultOneOf2 {
|
|
1657
|
+
ok: false;
|
|
1658
|
+
/**
|
|
1659
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1660
|
+
*/
|
|
1661
|
+
issues: Array<Issue>;
|
|
1662
|
+
}
|
|
1663
|
+
export type PromoteResult = PromoteResultOneOf1 | PromoteResultOneOf2;
|
|
1664
|
+
export interface RollbackValue {
|
|
1665
|
+
activationEventId: Hash;
|
|
1666
|
+
head: Head;
|
|
1667
|
+
}
|
|
1668
|
+
export interface RollbackResultOneOf1 {
|
|
1669
|
+
ok: true;
|
|
1670
|
+
value: RollbackValue;
|
|
1671
|
+
replayed: boolean;
|
|
1672
|
+
/**
|
|
1673
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1674
|
+
*/
|
|
1675
|
+
writes: number;
|
|
1676
|
+
}
|
|
1677
|
+
export interface RollbackResultOneOf2 {
|
|
1678
|
+
ok: false;
|
|
1679
|
+
/**
|
|
1680
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1681
|
+
*/
|
|
1682
|
+
issues: Array<Issue>;
|
|
1683
|
+
}
|
|
1684
|
+
export type RollbackResult = RollbackResultOneOf1 | RollbackResultOneOf2;
|
|
1685
|
+
export interface InjectValue {
|
|
1686
|
+
payload: Json;
|
|
1687
|
+
versionId: Hash;
|
|
1688
|
+
evaluationId: Hash;
|
|
1689
|
+
activationEventId: Hash;
|
|
1690
|
+
head: Head;
|
|
1691
|
+
}
|
|
1692
|
+
export interface InjectResultOneOf1 {
|
|
1693
|
+
ok: true;
|
|
1694
|
+
value: InjectValue;
|
|
1695
|
+
replayed: boolean;
|
|
1696
|
+
/**
|
|
1697
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1698
|
+
*/
|
|
1699
|
+
writes: number;
|
|
1700
|
+
}
|
|
1701
|
+
export interface InjectResultOneOf2 {
|
|
1702
|
+
ok: false;
|
|
1703
|
+
/**
|
|
1704
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1705
|
+
*/
|
|
1706
|
+
issues: Array<Issue>;
|
|
1707
|
+
}
|
|
1708
|
+
export type InjectResult = InjectResultOneOf1 | InjectResultOneOf2;
|
|
1709
|
+
export type InspectValue = OutcomeRecord | Inspection;
|
|
1710
|
+
export interface InspectResultOneOf1 {
|
|
1711
|
+
ok: true;
|
|
1712
|
+
value: InspectValue;
|
|
1713
|
+
replayed: boolean;
|
|
1714
|
+
/**
|
|
1715
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1716
|
+
*/
|
|
1717
|
+
writes: number;
|
|
1718
|
+
}
|
|
1719
|
+
export interface InspectResultOneOf2 {
|
|
1720
|
+
ok: false;
|
|
1721
|
+
/**
|
|
1722
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1723
|
+
*/
|
|
1724
|
+
issues: Array<Issue>;
|
|
1725
|
+
}
|
|
1726
|
+
export type InspectResult = InspectResultOneOf1 | InspectResultOneOf2;
|
|
1727
|
+
export type HistoryValue = HistoryPage;
|
|
1728
|
+
export interface HistoryResultOneOf1 {
|
|
1729
|
+
ok: true;
|
|
1730
|
+
value: HistoryValue;
|
|
1731
|
+
replayed: boolean;
|
|
1732
|
+
/**
|
|
1733
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1734
|
+
*/
|
|
1735
|
+
writes: number;
|
|
1736
|
+
}
|
|
1737
|
+
export interface HistoryResultOneOf2 {
|
|
1738
|
+
ok: false;
|
|
1739
|
+
/**
|
|
1740
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1741
|
+
*/
|
|
1742
|
+
issues: Array<Issue>;
|
|
1743
|
+
}
|
|
1744
|
+
export type HistoryResult = HistoryResultOneOf1 | HistoryResultOneOf2;
|
|
1745
|
+
export interface ReconcileValue {
|
|
1746
|
+
attemptId: Hash;
|
|
1747
|
+
reconciliationId: Hash;
|
|
1748
|
+
state: "retryable" | "ready";
|
|
1749
|
+
}
|
|
1750
|
+
export interface ReconcileResultOneOf1 {
|
|
1751
|
+
ok: true;
|
|
1752
|
+
value: ReconcileValue;
|
|
1753
|
+
replayed: boolean;
|
|
1754
|
+
/**
|
|
1755
|
+
* Schema constraints this type cannot express: type="integer", minimum=0
|
|
1756
|
+
*/
|
|
1757
|
+
writes: number;
|
|
1758
|
+
}
|
|
1759
|
+
export interface ReconcileResultOneOf2 {
|
|
1760
|
+
ok: false;
|
|
1761
|
+
/**
|
|
1762
|
+
* Schema constraints this type cannot express: minItems=1
|
|
1763
|
+
*/
|
|
1764
|
+
issues: Array<Issue>;
|
|
1765
|
+
}
|
|
1766
|
+
export type ReconcileResult = ReconcileResultOneOf1 | ReconcileResultOneOf2;
|
|
1767
|
+
export type Outcomes = OutcomeRecord;
|