@zephytiju/juntai-typescript-sdk 3.3.0 → 3.5.0
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 +13 -0
- package/README.md +27 -0
- package/dist/clients/lattice.ontology/index.d.ts +5 -0
- package/dist/clients/lattice.ontology/index.js +4 -0
- package/dist/clients/lattice.runtime-generation/index.d.ts +5 -0
- package/dist/clients/lattice.runtime-generation/index.js +4 -0
- package/dist/generated/lattice.ontology/client/client.gen.d.ts +2 -0
- package/dist/generated/lattice.ontology/client/client.gen.js +216 -0
- package/dist/generated/lattice.ontology/client/index.d.ts +10 -0
- package/dist/generated/lattice.ontology/client/index.js +6 -0
- package/dist/generated/lattice.ontology/client/types.gen.d.ts +120 -0
- package/dist/generated/lattice.ontology/client/types.gen.js +2 -0
- package/dist/generated/lattice.ontology/client/utils.gen.d.ts +37 -0
- package/dist/generated/lattice.ontology/client/utils.gen.js +228 -0
- package/dist/generated/lattice.ontology/client.gen.d.ts +12 -0
- package/dist/generated/lattice.ontology/client.gen.js +3 -0
- package/dist/generated/lattice.ontology/core/auth.gen.d.ts +25 -0
- package/dist/generated/lattice.ontology/core/auth.gen.js +14 -0
- package/dist/generated/lattice.ontology/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/lattice.ontology/core/bodySerializer.gen.js +57 -0
- package/dist/generated/lattice.ontology/core/params.gen.d.ts +43 -0
- package/dist/generated/lattice.ontology/core/params.gen.js +109 -0
- package/dist/generated/lattice.ontology/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/lattice.ontology/core/pathSerializer.gen.js +106 -0
- package/dist/generated/lattice.ontology/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/lattice.ontology/core/queryKeySerializer.gen.js +92 -0
- package/dist/generated/lattice.ontology/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/lattice.ontology/core/serverSentEvents.gen.js +132 -0
- package/dist/generated/lattice.ontology/core/types.gen.d.ts +83 -0
- package/dist/generated/lattice.ontology/core/types.gen.js +2 -0
- package/dist/generated/lattice.ontology/core/utils.gen.d.ts +19 -0
- package/dist/generated/lattice.ontology/core/utils.gen.js +87 -0
- package/dist/generated/lattice.ontology/index.d.ts +2 -0
- package/dist/generated/lattice.ontology/index.js +2 -0
- package/dist/generated/lattice.ontology/sdk.gen.d.ts +103 -0
- package/dist/generated/lattice.ontology/sdk.gen.js +242 -0
- package/dist/generated/lattice.ontology/types.gen.d.ts +3704 -0
- package/dist/generated/lattice.ontology/types.gen.js +2 -0
- package/dist/generated/lattice.runtime-generation/client/client.gen.d.ts +2 -0
- package/dist/generated/lattice.runtime-generation/client/client.gen.js +216 -0
- package/dist/generated/lattice.runtime-generation/client/index.d.ts +10 -0
- package/dist/generated/lattice.runtime-generation/client/index.js +6 -0
- package/dist/generated/lattice.runtime-generation/client/types.gen.d.ts +120 -0
- package/dist/generated/lattice.runtime-generation/client/types.gen.js +2 -0
- package/dist/generated/lattice.runtime-generation/client/utils.gen.d.ts +37 -0
- package/dist/generated/lattice.runtime-generation/client/utils.gen.js +228 -0
- package/dist/generated/lattice.runtime-generation/client.gen.d.ts +12 -0
- package/dist/generated/lattice.runtime-generation/client.gen.js +3 -0
- package/dist/generated/lattice.runtime-generation/core/auth.gen.d.ts +25 -0
- package/dist/generated/lattice.runtime-generation/core/auth.gen.js +14 -0
- package/dist/generated/lattice.runtime-generation/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/lattice.runtime-generation/core/bodySerializer.gen.js +57 -0
- package/dist/generated/lattice.runtime-generation/core/params.gen.d.ts +43 -0
- package/dist/generated/lattice.runtime-generation/core/params.gen.js +109 -0
- package/dist/generated/lattice.runtime-generation/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/lattice.runtime-generation/core/pathSerializer.gen.js +106 -0
- package/dist/generated/lattice.runtime-generation/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/lattice.runtime-generation/core/queryKeySerializer.gen.js +92 -0
- package/dist/generated/lattice.runtime-generation/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/lattice.runtime-generation/core/serverSentEvents.gen.js +132 -0
- package/dist/generated/lattice.runtime-generation/core/types.gen.d.ts +83 -0
- package/dist/generated/lattice.runtime-generation/core/types.gen.js +2 -0
- package/dist/generated/lattice.runtime-generation/core/utils.gen.d.ts +19 -0
- package/dist/generated/lattice.runtime-generation/core/utils.gen.js +87 -0
- package/dist/generated/lattice.runtime-generation/index.d.ts +2 -0
- package/dist/generated/lattice.runtime-generation/index.js +2 -0
- package/dist/generated/lattice.runtime-generation/sdk.gen.d.ts +39 -0
- package/dist/generated/lattice.runtime-generation/sdk.gen.js +54 -0
- package/dist/generated/lattice.runtime-generation/types.gen.d.ts +966 -0
- package/dist/generated/lattice.runtime-generation/types.gen.js +2 -0
- package/dist/generated/platform.blueprint/index.d.ts +1 -1
- package/dist/generated/platform.blueprint/types.gen.d.ts +41 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -1
- package/dist/release-manifest.json +36 -8
- package/package.json +11 -1
- package/sources/openapi.lock.json +46 -8
|
@@ -0,0 +1,966 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* ApplicationVersion
|
|
6
|
+
*/
|
|
7
|
+
export type ApplicationVersion = {
|
|
8
|
+
/**
|
|
9
|
+
* Application Id
|
|
10
|
+
*/
|
|
11
|
+
application_id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Approval Evidence
|
|
14
|
+
*/
|
|
15
|
+
approval_evidence: {
|
|
16
|
+
[key: string]: JsonValue;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Built At
|
|
20
|
+
*/
|
|
21
|
+
built_at: string;
|
|
22
|
+
/**
|
|
23
|
+
* Package Version
|
|
24
|
+
*/
|
|
25
|
+
package_version: string;
|
|
26
|
+
snapshot: Snapshot;
|
|
27
|
+
/**
|
|
28
|
+
* Source Commit
|
|
29
|
+
*/
|
|
30
|
+
source_commit: string;
|
|
31
|
+
/**
|
|
32
|
+
* Source Repository
|
|
33
|
+
*/
|
|
34
|
+
source_repository: string;
|
|
35
|
+
/**
|
|
36
|
+
* Version Id
|
|
37
|
+
*/
|
|
38
|
+
version_id: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* BuildResult
|
|
42
|
+
*/
|
|
43
|
+
export type BuildResult = {
|
|
44
|
+
/**
|
|
45
|
+
* Build Id
|
|
46
|
+
*/
|
|
47
|
+
build_id: string;
|
|
48
|
+
/**
|
|
49
|
+
* Capability Pin
|
|
50
|
+
*/
|
|
51
|
+
capability_pin: {
|
|
52
|
+
[key: string]: JsonValue;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Contribution Receipt
|
|
56
|
+
*/
|
|
57
|
+
contribution_receipt?: {
|
|
58
|
+
[key: string]: JsonValue;
|
|
59
|
+
} | null;
|
|
60
|
+
/**
|
|
61
|
+
* Contribution Status
|
|
62
|
+
*/
|
|
63
|
+
contribution_status: 'pending' | 'committed';
|
|
64
|
+
/**
|
|
65
|
+
* Documentation Unit Id
|
|
66
|
+
*/
|
|
67
|
+
documentation_unit_id: string;
|
|
68
|
+
/**
|
|
69
|
+
* Expires At
|
|
70
|
+
*/
|
|
71
|
+
expires_at?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* References
|
|
74
|
+
*/
|
|
75
|
+
references: {
|
|
76
|
+
[key: string]: ExactReference;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Test Fleet Only
|
|
80
|
+
*/
|
|
81
|
+
test_fleet_only: boolean;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* EvidencePage
|
|
85
|
+
*/
|
|
86
|
+
export type EvidencePage = {
|
|
87
|
+
/**
|
|
88
|
+
* Byte Length
|
|
89
|
+
*/
|
|
90
|
+
byte_length: number;
|
|
91
|
+
/**
|
|
92
|
+
* Next Offset
|
|
93
|
+
*/
|
|
94
|
+
next_offset?: number | null;
|
|
95
|
+
/**
|
|
96
|
+
* Offset
|
|
97
|
+
*/
|
|
98
|
+
offset: number;
|
|
99
|
+
/**
|
|
100
|
+
* Operation Status
|
|
101
|
+
*/
|
|
102
|
+
operation_status: 'queued' | 'resolving' | 'building' | 'verifying' | 'publishing' | 'contributing' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
|
103
|
+
/**
|
|
104
|
+
* Payload Base64
|
|
105
|
+
*/
|
|
106
|
+
payload_base64: string;
|
|
107
|
+
reference: ExactReference;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* ExactReference
|
|
111
|
+
*/
|
|
112
|
+
export type ExactReference = {
|
|
113
|
+
/**
|
|
114
|
+
* Digest
|
|
115
|
+
*/
|
|
116
|
+
digest: string;
|
|
117
|
+
/**
|
|
118
|
+
* Kind
|
|
119
|
+
*/
|
|
120
|
+
kind: string;
|
|
121
|
+
/**
|
|
122
|
+
* Name
|
|
123
|
+
*/
|
|
124
|
+
name: string;
|
|
125
|
+
/**
|
|
126
|
+
* Namespace
|
|
127
|
+
*/
|
|
128
|
+
namespace: string;
|
|
129
|
+
/**
|
|
130
|
+
* Profile
|
|
131
|
+
*/
|
|
132
|
+
profile?: 'artifact';
|
|
133
|
+
/**
|
|
134
|
+
* Resourceid
|
|
135
|
+
*/
|
|
136
|
+
resourceId: string;
|
|
137
|
+
/**
|
|
138
|
+
* Version
|
|
139
|
+
*/
|
|
140
|
+
version: string;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* GenerationOperation
|
|
144
|
+
*/
|
|
145
|
+
export type GenerationOperation = {
|
|
146
|
+
/**
|
|
147
|
+
* Accepted At
|
|
148
|
+
*/
|
|
149
|
+
accepted_at: string;
|
|
150
|
+
/**
|
|
151
|
+
* Application Id
|
|
152
|
+
*/
|
|
153
|
+
application_id: string;
|
|
154
|
+
/**
|
|
155
|
+
* Application Version Id
|
|
156
|
+
*/
|
|
157
|
+
application_version_id: string;
|
|
158
|
+
/**
|
|
159
|
+
* Attempt
|
|
160
|
+
*/
|
|
161
|
+
attempt: number;
|
|
162
|
+
/**
|
|
163
|
+
* Correlation Id
|
|
164
|
+
*/
|
|
165
|
+
correlation_id: string;
|
|
166
|
+
error?: StableError | null;
|
|
167
|
+
/**
|
|
168
|
+
* Evidence
|
|
169
|
+
*/
|
|
170
|
+
evidence?: Array<{
|
|
171
|
+
[key: string]: JsonValue;
|
|
172
|
+
}>;
|
|
173
|
+
/**
|
|
174
|
+
* Generation Operation Id
|
|
175
|
+
*/
|
|
176
|
+
generation_operation_id: string;
|
|
177
|
+
/**
|
|
178
|
+
* Input Digest
|
|
179
|
+
*/
|
|
180
|
+
input_digest: string;
|
|
181
|
+
progress: Progress;
|
|
182
|
+
request: GenerationRequest;
|
|
183
|
+
result?: BuildResult | null;
|
|
184
|
+
/**
|
|
185
|
+
* Revision
|
|
186
|
+
*/
|
|
187
|
+
revision: number;
|
|
188
|
+
/**
|
|
189
|
+
* Stage
|
|
190
|
+
*/
|
|
191
|
+
stage: 'resolve' | 'verify' | 'compile' | 'generate' | 'assemble' | 'conform' | 'export' | 'publish' | 'contribute';
|
|
192
|
+
/**
|
|
193
|
+
* Status
|
|
194
|
+
*/
|
|
195
|
+
status: 'queued' | 'resolving' | 'building' | 'verifying' | 'publishing' | 'contributing' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
|
196
|
+
/**
|
|
197
|
+
* Terminal At
|
|
198
|
+
*/
|
|
199
|
+
terminal_at?: string | null;
|
|
200
|
+
/**
|
|
201
|
+
* Trace Id
|
|
202
|
+
*/
|
|
203
|
+
trace_id: string;
|
|
204
|
+
/**
|
|
205
|
+
* Updated At
|
|
206
|
+
*/
|
|
207
|
+
updated_at: string;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* GenerationRequest
|
|
211
|
+
*/
|
|
212
|
+
export type GenerationRequest = {
|
|
213
|
+
/**
|
|
214
|
+
* Api Version
|
|
215
|
+
*/
|
|
216
|
+
api_version?: 'lattice.generation-request/v1';
|
|
217
|
+
application: ApplicationVersion;
|
|
218
|
+
/**
|
|
219
|
+
* Application Id
|
|
220
|
+
*/
|
|
221
|
+
application_id: string;
|
|
222
|
+
/**
|
|
223
|
+
* Application Version Id
|
|
224
|
+
*/
|
|
225
|
+
application_version_id: string;
|
|
226
|
+
dependency_lock: ExactReference;
|
|
227
|
+
/**
|
|
228
|
+
* Idempotency Key
|
|
229
|
+
*/
|
|
230
|
+
idempotency_key: string;
|
|
231
|
+
/**
|
|
232
|
+
* Purpose
|
|
233
|
+
*/
|
|
234
|
+
purpose: 'release' | 'preview';
|
|
235
|
+
/**
|
|
236
|
+
* Requested Outputs
|
|
237
|
+
*/
|
|
238
|
+
requested_outputs?: Array<'runtime' | 'model-imports' | 'openapi' | 'evidence' | 'meridian-resources' | 'agent-capability'>;
|
|
239
|
+
runtime_profile: ExactReference;
|
|
240
|
+
snapshot: ExactReference;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* HTTPValidationError
|
|
244
|
+
*/
|
|
245
|
+
export type HttpValidationError = {
|
|
246
|
+
/**
|
|
247
|
+
* Detail
|
|
248
|
+
*/
|
|
249
|
+
detail?: Array<ValidationError>;
|
|
250
|
+
};
|
|
251
|
+
export type JsonValue = unknown;
|
|
252
|
+
/**
|
|
253
|
+
* OperationPage
|
|
254
|
+
*/
|
|
255
|
+
export type OperationPage = {
|
|
256
|
+
/**
|
|
257
|
+
* Items
|
|
258
|
+
*/
|
|
259
|
+
items: Array<GenerationOperation>;
|
|
260
|
+
/**
|
|
261
|
+
* Next Cursor
|
|
262
|
+
*/
|
|
263
|
+
next_cursor?: string | null;
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Progress
|
|
267
|
+
*/
|
|
268
|
+
export type Progress = {
|
|
269
|
+
/**
|
|
270
|
+
* Completed
|
|
271
|
+
*/
|
|
272
|
+
completed: number;
|
|
273
|
+
/**
|
|
274
|
+
* Total
|
|
275
|
+
*/
|
|
276
|
+
total?: 9;
|
|
277
|
+
/**
|
|
278
|
+
* Unit
|
|
279
|
+
*/
|
|
280
|
+
unit?: 'stage';
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Snapshot
|
|
284
|
+
*/
|
|
285
|
+
export type Snapshot = {
|
|
286
|
+
/**
|
|
287
|
+
* Artifact Id
|
|
288
|
+
*/
|
|
289
|
+
artifact_id: string;
|
|
290
|
+
/**
|
|
291
|
+
* Compilation Input Digest
|
|
292
|
+
*/
|
|
293
|
+
compilation_input_digest: string;
|
|
294
|
+
/**
|
|
295
|
+
* Digest
|
|
296
|
+
*/
|
|
297
|
+
digest: string;
|
|
298
|
+
/**
|
|
299
|
+
* Draft Revision
|
|
300
|
+
*/
|
|
301
|
+
draft_revision?: number | null;
|
|
302
|
+
/**
|
|
303
|
+
* Manifest
|
|
304
|
+
*/
|
|
305
|
+
manifest?: {
|
|
306
|
+
[key: string]: JsonValue;
|
|
307
|
+
} | null;
|
|
308
|
+
/**
|
|
309
|
+
* Purpose
|
|
310
|
+
*/
|
|
311
|
+
purpose: 'release' | 'preview';
|
|
312
|
+
/**
|
|
313
|
+
* Resource Reference
|
|
314
|
+
*/
|
|
315
|
+
resource_reference?: {
|
|
316
|
+
[key: string]: JsonValue;
|
|
317
|
+
} | null;
|
|
318
|
+
/**
|
|
319
|
+
* Retention Seconds
|
|
320
|
+
*/
|
|
321
|
+
retention_seconds?: number | null;
|
|
322
|
+
/**
|
|
323
|
+
* Version Id
|
|
324
|
+
*/
|
|
325
|
+
version_id: string;
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* StableError
|
|
329
|
+
*/
|
|
330
|
+
export type StableError = {
|
|
331
|
+
/**
|
|
332
|
+
* Code
|
|
333
|
+
*/
|
|
334
|
+
code: string;
|
|
335
|
+
/**
|
|
336
|
+
* Retryable
|
|
337
|
+
*/
|
|
338
|
+
retryable?: boolean;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* ValidationError
|
|
342
|
+
*/
|
|
343
|
+
export type ValidationError = {
|
|
344
|
+
/**
|
|
345
|
+
* Context
|
|
346
|
+
*/
|
|
347
|
+
ctx?: {
|
|
348
|
+
[key: string]: unknown;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* Input
|
|
352
|
+
*/
|
|
353
|
+
input?: unknown;
|
|
354
|
+
/**
|
|
355
|
+
* Location
|
|
356
|
+
*/
|
|
357
|
+
loc: Array<string | number>;
|
|
358
|
+
/**
|
|
359
|
+
* Message
|
|
360
|
+
*/
|
|
361
|
+
msg: string;
|
|
362
|
+
/**
|
|
363
|
+
* Error Type
|
|
364
|
+
*/
|
|
365
|
+
type: string;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* _HTTPErrorDetails
|
|
369
|
+
*/
|
|
370
|
+
export type HttpErrorDetails = {
|
|
371
|
+
/**
|
|
372
|
+
* Issues
|
|
373
|
+
*/
|
|
374
|
+
issues?: Array<HttpValidationIssue>;
|
|
375
|
+
/**
|
|
376
|
+
* Request Id
|
|
377
|
+
*/
|
|
378
|
+
request_id: string;
|
|
379
|
+
/**
|
|
380
|
+
* Truncated
|
|
381
|
+
*/
|
|
382
|
+
truncated?: boolean;
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* _HTTPErrorEnvelope
|
|
386
|
+
*/
|
|
387
|
+
export type HttpErrorEnvelope = {
|
|
388
|
+
/**
|
|
389
|
+
* Code
|
|
390
|
+
*/
|
|
391
|
+
code: string;
|
|
392
|
+
details: HttpErrorDetails;
|
|
393
|
+
/**
|
|
394
|
+
* Message
|
|
395
|
+
*/
|
|
396
|
+
message: string;
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* _HTTPValidationIssue
|
|
400
|
+
*
|
|
401
|
+
* A bounded validation issue safe to return across the HTTP boundary.
|
|
402
|
+
*/
|
|
403
|
+
export type HttpValidationIssue = {
|
|
404
|
+
/**
|
|
405
|
+
* Location
|
|
406
|
+
*/
|
|
407
|
+
location: Array<string | number>;
|
|
408
|
+
/**
|
|
409
|
+
* Type
|
|
410
|
+
*/
|
|
411
|
+
type: string;
|
|
412
|
+
};
|
|
413
|
+
export type ListGenerationOperationsData = {
|
|
414
|
+
body?: never;
|
|
415
|
+
headers: {
|
|
416
|
+
/**
|
|
417
|
+
* Application scope, checked by Juntai IAM policy.
|
|
418
|
+
*/
|
|
419
|
+
'X-Juntai-Application-ID': string;
|
|
420
|
+
};
|
|
421
|
+
path?: never;
|
|
422
|
+
query?: {
|
|
423
|
+
/**
|
|
424
|
+
* Version Id
|
|
425
|
+
*/
|
|
426
|
+
version_id?: string | null;
|
|
427
|
+
/**
|
|
428
|
+
* Status
|
|
429
|
+
*/
|
|
430
|
+
status?: string | null;
|
|
431
|
+
/**
|
|
432
|
+
* Profile Digest
|
|
433
|
+
*/
|
|
434
|
+
profile_digest?: string | null;
|
|
435
|
+
/**
|
|
436
|
+
* Snapshot Digest
|
|
437
|
+
*/
|
|
438
|
+
snapshot_digest?: string | null;
|
|
439
|
+
/**
|
|
440
|
+
* Created After
|
|
441
|
+
*/
|
|
442
|
+
created_after?: string | null;
|
|
443
|
+
/**
|
|
444
|
+
* Cursor
|
|
445
|
+
*/
|
|
446
|
+
cursor?: string | null;
|
|
447
|
+
/**
|
|
448
|
+
* Limit
|
|
449
|
+
*/
|
|
450
|
+
limit?: number;
|
|
451
|
+
};
|
|
452
|
+
url: '/v1/generations';
|
|
453
|
+
};
|
|
454
|
+
export type ListGenerationOperationsErrors = {
|
|
455
|
+
/**
|
|
456
|
+
* Request does not match the endpoint contract
|
|
457
|
+
*/
|
|
458
|
+
400: HttpErrorEnvelope;
|
|
459
|
+
/**
|
|
460
|
+
* Access token or application scope is invalid
|
|
461
|
+
*/
|
|
462
|
+
401: {
|
|
463
|
+
code: string;
|
|
464
|
+
correlation_id?: string;
|
|
465
|
+
};
|
|
466
|
+
/**
|
|
467
|
+
* Request is not authorized for the destination
|
|
468
|
+
*/
|
|
469
|
+
403: HttpErrorEnvelope;
|
|
470
|
+
/**
|
|
471
|
+
* Destination or entity was not found
|
|
472
|
+
*/
|
|
473
|
+
404: HttpErrorEnvelope;
|
|
474
|
+
/**
|
|
475
|
+
* Request body read deadline exceeded
|
|
476
|
+
*/
|
|
477
|
+
408: {
|
|
478
|
+
code: string;
|
|
479
|
+
correlation_id?: string;
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* Request authority has already been consumed
|
|
483
|
+
*/
|
|
484
|
+
409: HttpErrorEnvelope;
|
|
485
|
+
/**
|
|
486
|
+
* Preview or immutable evidence has expired
|
|
487
|
+
*/
|
|
488
|
+
410: {
|
|
489
|
+
code: string;
|
|
490
|
+
correlation_id?: string;
|
|
491
|
+
};
|
|
492
|
+
/**
|
|
493
|
+
* Request size limit exceeded
|
|
494
|
+
*/
|
|
495
|
+
413: {
|
|
496
|
+
code: string;
|
|
497
|
+
correlation_id?: string;
|
|
498
|
+
};
|
|
499
|
+
/**
|
|
500
|
+
* Generation request violates a domain constraint
|
|
501
|
+
*/
|
|
502
|
+
422: HttpErrorEnvelope;
|
|
503
|
+
/**
|
|
504
|
+
* Request failed inside the framework boundary
|
|
505
|
+
*/
|
|
506
|
+
500: HttpErrorEnvelope;
|
|
507
|
+
/**
|
|
508
|
+
* HTTP adapter is not accepting requests
|
|
509
|
+
*/
|
|
510
|
+
503: HttpErrorEnvelope;
|
|
511
|
+
/**
|
|
512
|
+
* Request deadline was exceeded
|
|
513
|
+
*/
|
|
514
|
+
504: HttpErrorEnvelope;
|
|
515
|
+
};
|
|
516
|
+
export type ListGenerationOperationsError = ListGenerationOperationsErrors[keyof ListGenerationOperationsErrors];
|
|
517
|
+
export type ListGenerationOperationsResponses = {
|
|
518
|
+
/**
|
|
519
|
+
* Successful Response
|
|
520
|
+
*/
|
|
521
|
+
200: OperationPage;
|
|
522
|
+
};
|
|
523
|
+
export type ListGenerationOperationsResponse = ListGenerationOperationsResponses[keyof ListGenerationOperationsResponses];
|
|
524
|
+
export type CreateGenerationOperationData = {
|
|
525
|
+
body: GenerationRequest;
|
|
526
|
+
headers: {
|
|
527
|
+
/**
|
|
528
|
+
* Application scope, checked by Juntai IAM policy.
|
|
529
|
+
*/
|
|
530
|
+
'X-Juntai-Application-ID': string;
|
|
531
|
+
};
|
|
532
|
+
path?: never;
|
|
533
|
+
query?: never;
|
|
534
|
+
url: '/v1/generations';
|
|
535
|
+
};
|
|
536
|
+
export type CreateGenerationOperationErrors = {
|
|
537
|
+
/**
|
|
538
|
+
* Request does not match the endpoint contract
|
|
539
|
+
*/
|
|
540
|
+
400: HttpErrorEnvelope;
|
|
541
|
+
/**
|
|
542
|
+
* Access token or application scope is invalid
|
|
543
|
+
*/
|
|
544
|
+
401: {
|
|
545
|
+
code: string;
|
|
546
|
+
correlation_id?: string;
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* Request is not authorized for the destination
|
|
550
|
+
*/
|
|
551
|
+
403: HttpErrorEnvelope;
|
|
552
|
+
/**
|
|
553
|
+
* Destination or entity was not found
|
|
554
|
+
*/
|
|
555
|
+
404: HttpErrorEnvelope;
|
|
556
|
+
/**
|
|
557
|
+
* Request body read deadline exceeded
|
|
558
|
+
*/
|
|
559
|
+
408: {
|
|
560
|
+
code: string;
|
|
561
|
+
correlation_id?: string;
|
|
562
|
+
};
|
|
563
|
+
/**
|
|
564
|
+
* Request authority has already been consumed
|
|
565
|
+
*/
|
|
566
|
+
409: HttpErrorEnvelope;
|
|
567
|
+
/**
|
|
568
|
+
* Preview or immutable evidence has expired
|
|
569
|
+
*/
|
|
570
|
+
410: {
|
|
571
|
+
code: string;
|
|
572
|
+
correlation_id?: string;
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
* Request size limit exceeded
|
|
576
|
+
*/
|
|
577
|
+
413: {
|
|
578
|
+
code: string;
|
|
579
|
+
correlation_id?: string;
|
|
580
|
+
};
|
|
581
|
+
/**
|
|
582
|
+
* Generation request violates a domain constraint
|
|
583
|
+
*/
|
|
584
|
+
422: HttpErrorEnvelope;
|
|
585
|
+
/**
|
|
586
|
+
* Request failed inside the framework boundary
|
|
587
|
+
*/
|
|
588
|
+
500: HttpErrorEnvelope;
|
|
589
|
+
/**
|
|
590
|
+
* HTTP adapter is not accepting requests
|
|
591
|
+
*/
|
|
592
|
+
503: HttpErrorEnvelope;
|
|
593
|
+
/**
|
|
594
|
+
* Request deadline was exceeded
|
|
595
|
+
*/
|
|
596
|
+
504: HttpErrorEnvelope;
|
|
597
|
+
};
|
|
598
|
+
export type CreateGenerationOperationError = CreateGenerationOperationErrors[keyof CreateGenerationOperationErrors];
|
|
599
|
+
export type CreateGenerationOperationResponses = {
|
|
600
|
+
/**
|
|
601
|
+
* Successful Response
|
|
602
|
+
*/
|
|
603
|
+
200: GenerationOperation;
|
|
604
|
+
};
|
|
605
|
+
export type CreateGenerationOperationResponse = CreateGenerationOperationResponses[keyof CreateGenerationOperationResponses];
|
|
606
|
+
export type GetGenerationOperationData = {
|
|
607
|
+
body?: never;
|
|
608
|
+
headers: {
|
|
609
|
+
/**
|
|
610
|
+
* Application scope, checked by Juntai IAM policy.
|
|
611
|
+
*/
|
|
612
|
+
'X-Juntai-Application-ID': string;
|
|
613
|
+
};
|
|
614
|
+
path: {
|
|
615
|
+
/**
|
|
616
|
+
* Generation Operation Id
|
|
617
|
+
*/
|
|
618
|
+
generation_operation_id: string;
|
|
619
|
+
};
|
|
620
|
+
query?: never;
|
|
621
|
+
url: '/v1/generations/{generation_operation_id}';
|
|
622
|
+
};
|
|
623
|
+
export type GetGenerationOperationErrors = {
|
|
624
|
+
/**
|
|
625
|
+
* Request does not match the endpoint contract
|
|
626
|
+
*/
|
|
627
|
+
400: HttpErrorEnvelope;
|
|
628
|
+
/**
|
|
629
|
+
* Access token or application scope is invalid
|
|
630
|
+
*/
|
|
631
|
+
401: {
|
|
632
|
+
code: string;
|
|
633
|
+
correlation_id?: string;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* Request is not authorized for the destination
|
|
637
|
+
*/
|
|
638
|
+
403: HttpErrorEnvelope;
|
|
639
|
+
/**
|
|
640
|
+
* Destination or entity was not found
|
|
641
|
+
*/
|
|
642
|
+
404: HttpErrorEnvelope;
|
|
643
|
+
/**
|
|
644
|
+
* Request body read deadline exceeded
|
|
645
|
+
*/
|
|
646
|
+
408: {
|
|
647
|
+
code: string;
|
|
648
|
+
correlation_id?: string;
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* Request authority has already been consumed
|
|
652
|
+
*/
|
|
653
|
+
409: HttpErrorEnvelope;
|
|
654
|
+
/**
|
|
655
|
+
* Preview or immutable evidence has expired
|
|
656
|
+
*/
|
|
657
|
+
410: {
|
|
658
|
+
code: string;
|
|
659
|
+
correlation_id?: string;
|
|
660
|
+
};
|
|
661
|
+
/**
|
|
662
|
+
* Request size limit exceeded
|
|
663
|
+
*/
|
|
664
|
+
413: {
|
|
665
|
+
code: string;
|
|
666
|
+
correlation_id?: string;
|
|
667
|
+
};
|
|
668
|
+
/**
|
|
669
|
+
* Generation request violates a domain constraint
|
|
670
|
+
*/
|
|
671
|
+
422: HttpErrorEnvelope;
|
|
672
|
+
/**
|
|
673
|
+
* Request failed inside the framework boundary
|
|
674
|
+
*/
|
|
675
|
+
500: HttpErrorEnvelope;
|
|
676
|
+
/**
|
|
677
|
+
* HTTP adapter is not accepting requests
|
|
678
|
+
*/
|
|
679
|
+
503: HttpErrorEnvelope;
|
|
680
|
+
/**
|
|
681
|
+
* Request deadline was exceeded
|
|
682
|
+
*/
|
|
683
|
+
504: HttpErrorEnvelope;
|
|
684
|
+
};
|
|
685
|
+
export type GetGenerationOperationError = GetGenerationOperationErrors[keyof GetGenerationOperationErrors];
|
|
686
|
+
export type GetGenerationOperationResponses = {
|
|
687
|
+
/**
|
|
688
|
+
* Successful Response
|
|
689
|
+
*/
|
|
690
|
+
200: GenerationOperation;
|
|
691
|
+
};
|
|
692
|
+
export type GetGenerationOperationResponse = GetGenerationOperationResponses[keyof GetGenerationOperationResponses];
|
|
693
|
+
export type GetGenerationEvidenceData = {
|
|
694
|
+
body?: never;
|
|
695
|
+
headers: {
|
|
696
|
+
/**
|
|
697
|
+
* Application scope, checked by Juntai IAM policy.
|
|
698
|
+
*/
|
|
699
|
+
'X-Juntai-Application-ID': string;
|
|
700
|
+
};
|
|
701
|
+
path: {
|
|
702
|
+
/**
|
|
703
|
+
* Generation Operation Id
|
|
704
|
+
*/
|
|
705
|
+
generation_operation_id: string;
|
|
706
|
+
};
|
|
707
|
+
query: {
|
|
708
|
+
/**
|
|
709
|
+
* Expected Digest
|
|
710
|
+
*/
|
|
711
|
+
expected_digest: string;
|
|
712
|
+
/**
|
|
713
|
+
* Offset
|
|
714
|
+
*/
|
|
715
|
+
offset?: number;
|
|
716
|
+
/**
|
|
717
|
+
* Limit
|
|
718
|
+
*/
|
|
719
|
+
limit?: number;
|
|
720
|
+
};
|
|
721
|
+
url: '/v1/generations/{generation_operation_id}/evidence';
|
|
722
|
+
};
|
|
723
|
+
export type GetGenerationEvidenceErrors = {
|
|
724
|
+
/**
|
|
725
|
+
* Request does not match the endpoint contract
|
|
726
|
+
*/
|
|
727
|
+
400: HttpErrorEnvelope;
|
|
728
|
+
/**
|
|
729
|
+
* Access token or application scope is invalid
|
|
730
|
+
*/
|
|
731
|
+
401: {
|
|
732
|
+
code: string;
|
|
733
|
+
correlation_id?: string;
|
|
734
|
+
};
|
|
735
|
+
/**
|
|
736
|
+
* Request is not authorized for the destination
|
|
737
|
+
*/
|
|
738
|
+
403: HttpErrorEnvelope;
|
|
739
|
+
/**
|
|
740
|
+
* Destination or entity was not found
|
|
741
|
+
*/
|
|
742
|
+
404: HttpErrorEnvelope;
|
|
743
|
+
/**
|
|
744
|
+
* Request body read deadline exceeded
|
|
745
|
+
*/
|
|
746
|
+
408: {
|
|
747
|
+
code: string;
|
|
748
|
+
correlation_id?: string;
|
|
749
|
+
};
|
|
750
|
+
/**
|
|
751
|
+
* Request authority has already been consumed
|
|
752
|
+
*/
|
|
753
|
+
409: HttpErrorEnvelope;
|
|
754
|
+
/**
|
|
755
|
+
* Preview or immutable evidence has expired
|
|
756
|
+
*/
|
|
757
|
+
410: {
|
|
758
|
+
code: string;
|
|
759
|
+
correlation_id?: string;
|
|
760
|
+
};
|
|
761
|
+
/**
|
|
762
|
+
* Request size limit exceeded
|
|
763
|
+
*/
|
|
764
|
+
413: {
|
|
765
|
+
code: string;
|
|
766
|
+
correlation_id?: string;
|
|
767
|
+
};
|
|
768
|
+
/**
|
|
769
|
+
* Generation request violates a domain constraint
|
|
770
|
+
*/
|
|
771
|
+
422: HttpErrorEnvelope;
|
|
772
|
+
/**
|
|
773
|
+
* Request failed inside the framework boundary
|
|
774
|
+
*/
|
|
775
|
+
500: HttpErrorEnvelope;
|
|
776
|
+
/**
|
|
777
|
+
* HTTP adapter is not accepting requests
|
|
778
|
+
*/
|
|
779
|
+
503: HttpErrorEnvelope;
|
|
780
|
+
/**
|
|
781
|
+
* Request deadline was exceeded
|
|
782
|
+
*/
|
|
783
|
+
504: HttpErrorEnvelope;
|
|
784
|
+
};
|
|
785
|
+
export type GetGenerationEvidenceError = GetGenerationEvidenceErrors[keyof GetGenerationEvidenceErrors];
|
|
786
|
+
export type GetGenerationEvidenceResponses = {
|
|
787
|
+
/**
|
|
788
|
+
* Successful Response
|
|
789
|
+
*/
|
|
790
|
+
200: EvidencePage;
|
|
791
|
+
};
|
|
792
|
+
export type GetGenerationEvidenceResponse = GetGenerationEvidenceResponses[keyof GetGenerationEvidenceResponses];
|
|
793
|
+
export type GetGenerationBuildResultData = {
|
|
794
|
+
body?: never;
|
|
795
|
+
headers: {
|
|
796
|
+
/**
|
|
797
|
+
* Application scope, checked by Juntai IAM policy.
|
|
798
|
+
*/
|
|
799
|
+
'X-Juntai-Application-ID': string;
|
|
800
|
+
};
|
|
801
|
+
path: {
|
|
802
|
+
/**
|
|
803
|
+
* Generation Operation Id
|
|
804
|
+
*/
|
|
805
|
+
generation_operation_id: string;
|
|
806
|
+
};
|
|
807
|
+
query?: never;
|
|
808
|
+
url: '/v1/generations/{generation_operation_id}/result';
|
|
809
|
+
};
|
|
810
|
+
export type GetGenerationBuildResultErrors = {
|
|
811
|
+
/**
|
|
812
|
+
* Request does not match the endpoint contract
|
|
813
|
+
*/
|
|
814
|
+
400: HttpErrorEnvelope;
|
|
815
|
+
/**
|
|
816
|
+
* Access token or application scope is invalid
|
|
817
|
+
*/
|
|
818
|
+
401: {
|
|
819
|
+
code: string;
|
|
820
|
+
correlation_id?: string;
|
|
821
|
+
};
|
|
822
|
+
/**
|
|
823
|
+
* Request is not authorized for the destination
|
|
824
|
+
*/
|
|
825
|
+
403: HttpErrorEnvelope;
|
|
826
|
+
/**
|
|
827
|
+
* Destination or entity was not found
|
|
828
|
+
*/
|
|
829
|
+
404: HttpErrorEnvelope;
|
|
830
|
+
/**
|
|
831
|
+
* Request body read deadline exceeded
|
|
832
|
+
*/
|
|
833
|
+
408: {
|
|
834
|
+
code: string;
|
|
835
|
+
correlation_id?: string;
|
|
836
|
+
};
|
|
837
|
+
/**
|
|
838
|
+
* Request authority has already been consumed
|
|
839
|
+
*/
|
|
840
|
+
409: HttpErrorEnvelope;
|
|
841
|
+
/**
|
|
842
|
+
* Preview or immutable evidence has expired
|
|
843
|
+
*/
|
|
844
|
+
410: {
|
|
845
|
+
code: string;
|
|
846
|
+
correlation_id?: string;
|
|
847
|
+
};
|
|
848
|
+
/**
|
|
849
|
+
* Request size limit exceeded
|
|
850
|
+
*/
|
|
851
|
+
413: {
|
|
852
|
+
code: string;
|
|
853
|
+
correlation_id?: string;
|
|
854
|
+
};
|
|
855
|
+
/**
|
|
856
|
+
* Generation request violates a domain constraint
|
|
857
|
+
*/
|
|
858
|
+
422: HttpErrorEnvelope;
|
|
859
|
+
/**
|
|
860
|
+
* Request failed inside the framework boundary
|
|
861
|
+
*/
|
|
862
|
+
500: HttpErrorEnvelope;
|
|
863
|
+
/**
|
|
864
|
+
* HTTP adapter is not accepting requests
|
|
865
|
+
*/
|
|
866
|
+
503: HttpErrorEnvelope;
|
|
867
|
+
/**
|
|
868
|
+
* Request deadline was exceeded
|
|
869
|
+
*/
|
|
870
|
+
504: HttpErrorEnvelope;
|
|
871
|
+
};
|
|
872
|
+
export type GetGenerationBuildResultError = GetGenerationBuildResultErrors[keyof GetGenerationBuildResultErrors];
|
|
873
|
+
export type GetGenerationBuildResultResponses = {
|
|
874
|
+
/**
|
|
875
|
+
* Successful Response
|
|
876
|
+
*/
|
|
877
|
+
200: BuildResult;
|
|
878
|
+
};
|
|
879
|
+
export type GetGenerationBuildResultResponse = GetGenerationBuildResultResponses[keyof GetGenerationBuildResultResponses];
|
|
880
|
+
export type CancelGenerationOperationData = {
|
|
881
|
+
body?: never;
|
|
882
|
+
headers: {
|
|
883
|
+
/**
|
|
884
|
+
* Application scope, checked by Juntai IAM policy.
|
|
885
|
+
*/
|
|
886
|
+
'X-Juntai-Application-ID': string;
|
|
887
|
+
};
|
|
888
|
+
path: {
|
|
889
|
+
/**
|
|
890
|
+
* Generation Operation Id
|
|
891
|
+
*/
|
|
892
|
+
generation_operation_id: string;
|
|
893
|
+
};
|
|
894
|
+
query?: never;
|
|
895
|
+
url: '/v1/generations/{generation_operation_id}:cancel';
|
|
896
|
+
};
|
|
897
|
+
export type CancelGenerationOperationErrors = {
|
|
898
|
+
/**
|
|
899
|
+
* Request does not match the endpoint contract
|
|
900
|
+
*/
|
|
901
|
+
400: HttpErrorEnvelope;
|
|
902
|
+
/**
|
|
903
|
+
* Access token or application scope is invalid
|
|
904
|
+
*/
|
|
905
|
+
401: {
|
|
906
|
+
code: string;
|
|
907
|
+
correlation_id?: string;
|
|
908
|
+
};
|
|
909
|
+
/**
|
|
910
|
+
* Request is not authorized for the destination
|
|
911
|
+
*/
|
|
912
|
+
403: HttpErrorEnvelope;
|
|
913
|
+
/**
|
|
914
|
+
* Destination or entity was not found
|
|
915
|
+
*/
|
|
916
|
+
404: HttpErrorEnvelope;
|
|
917
|
+
/**
|
|
918
|
+
* Request body read deadline exceeded
|
|
919
|
+
*/
|
|
920
|
+
408: {
|
|
921
|
+
code: string;
|
|
922
|
+
correlation_id?: string;
|
|
923
|
+
};
|
|
924
|
+
/**
|
|
925
|
+
* Request authority has already been consumed
|
|
926
|
+
*/
|
|
927
|
+
409: HttpErrorEnvelope;
|
|
928
|
+
/**
|
|
929
|
+
* Preview or immutable evidence has expired
|
|
930
|
+
*/
|
|
931
|
+
410: {
|
|
932
|
+
code: string;
|
|
933
|
+
correlation_id?: string;
|
|
934
|
+
};
|
|
935
|
+
/**
|
|
936
|
+
* Request size limit exceeded
|
|
937
|
+
*/
|
|
938
|
+
413: {
|
|
939
|
+
code: string;
|
|
940
|
+
correlation_id?: string;
|
|
941
|
+
};
|
|
942
|
+
/**
|
|
943
|
+
* Generation request violates a domain constraint
|
|
944
|
+
*/
|
|
945
|
+
422: HttpErrorEnvelope;
|
|
946
|
+
/**
|
|
947
|
+
* Request failed inside the framework boundary
|
|
948
|
+
*/
|
|
949
|
+
500: HttpErrorEnvelope;
|
|
950
|
+
/**
|
|
951
|
+
* HTTP adapter is not accepting requests
|
|
952
|
+
*/
|
|
953
|
+
503: HttpErrorEnvelope;
|
|
954
|
+
/**
|
|
955
|
+
* Request deadline was exceeded
|
|
956
|
+
*/
|
|
957
|
+
504: HttpErrorEnvelope;
|
|
958
|
+
};
|
|
959
|
+
export type CancelGenerationOperationError = CancelGenerationOperationErrors[keyof CancelGenerationOperationErrors];
|
|
960
|
+
export type CancelGenerationOperationResponses = {
|
|
961
|
+
/**
|
|
962
|
+
* Successful Response
|
|
963
|
+
*/
|
|
964
|
+
200: GenerationOperation;
|
|
965
|
+
};
|
|
966
|
+
export type CancelGenerationOperationResponse = CancelGenerationOperationResponses[keyof CancelGenerationOperationResponses];
|