@zephytiju/juntai-typescript-sdk 3.7.0 → 3.8.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 +5 -0
- package/README.md +2 -0
- package/dist/generated/prism.build/index.d.ts +2 -2
- package/dist/generated/prism.build/index.js +1 -1
- package/dist/generated/prism.build/sdk.gen.d.ts +7 -1
- package/dist/generated/prism.build/sdk.gen.js +10 -0
- package/dist/generated/prism.build/types.gen.d.ts +118 -0
- package/dist/release-manifest.json +8 -8
- package/package.json +1 -1
- package/sources/openapi.lock.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.8.0
|
|
4
|
+
|
|
5
|
+
- Add generated `resolveBuildSubmission` and `BuildSubmissionResolution` from Build Service 1.3.0, commit `a8501c1b8983bd8afeb33dfa5a438bd452c27208`, OpenAPI SHA-256 `ca3f27fff5a26922f672d2f9a6ce3ea5e6f8f3837729956f9ae0634267db5a52`. The safe GET carries the original required identity header and exact application ID.
|
|
6
|
+
- Preserve scoped absence, identity expiry, authorization and storage errors; recovery never automatically repeats create or retry. Verify the public installed operation, exact input/expiry preservation and safe transport behavior in the clean aggregate consumer.
|
|
7
|
+
|
|
3
8
|
## 3.7.0
|
|
4
9
|
|
|
5
10
|
- Add the generated Composition Draft authoring projection, typed declarations and original Schema definitions, candidate/instance selectors, optional ETag guard, and durable split allocation. Pin published Composition Service 1.2.0 at source `c7133c391278d852b3e7e80f617223a4e1b31e46`, OpenAPI SHA-256 `d2f1dcff7d533d5995b4547062d2ad38f9cfe703f99f14a594a2994bf47a01ab`.
|
package/README.md
CHANGED
|
@@ -27,6 +27,8 @@ Axiom Definition exposes generated pipeline creation and discovery, revision his
|
|
|
27
27
|
|
|
28
28
|
Prism Composition exposes Operating System and UI-page authoring, exact revisions, layout-variant application, and Ready for release. Prism Build exposes build creation, lookup, pagination, and deliberate retry for exact Ready-for-release revisions with `prism-builder@1.2.0`; historical `prism-builder@1.1.0` requests and receipts remain supported. Inject `context.fetch` and the reviewed same-origin gateway base URL for each service. Draft mutations preserve `If-Match`; commands preserve `Idempotency-Key`. After an ambiguous response, recover by the existing operation identity instead of automatically replaying the command. A successful build confirms publication and association; application sealing and deployment remain with Application Metadata and Vangu.
|
|
29
29
|
|
|
30
|
+
Version 3.8.0 adds `resolveBuildSubmission` from Build Service 1.3.0. Pass the original `Idempotency-Key` header and exact `application_id` path value to recover `{build, identityExpiresAt}` without a request body or query. `SUBMISSION_NOT_FOUND` is point-in-time absence; `SUBMISSION_IDENTITY_EXPIRED` is unresolved recovery. Neither permits automatic create/retry or payload matching. Preserve a scoped local identity before submitting, and keep it out of URLs and telemetry. The returned BuildView is authoritative under current application/build read access.
|
|
31
|
+
|
|
30
32
|
Version 3.7.0 pins Composition and Build Service 1.2.0. `getUiPageDraft` accepts `includeAuthoring: true` with `blueprintAssetId`, `blueprintVersionId`, and `targetSlotId` for an unplaced candidate, or `instanceId` for one saved instance; omitting selectors projects the current instances. Candidate discovery requires no prior binding fingerprint. The generated projection includes typed declarations, original Schema definitions (including boolean schemas), preset digests and explicit default absence. Save optional `LayoutNodeInput.splitAllocation` with version `1` and positive child-ID shares totaling `1000000`; exact template validation and persistence belong to Composition. Allocated snapshots require Builder 1.2.0. Authorization, stale ETag, incompatible metadata and oversize errors remain visible to callers.
|
|
31
33
|
|
|
32
34
|
IAM consumers inject the session-aware fetch supplied by `ConsolePageContext`; the client neither owns credentials nor calls a protected origin directly:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createBuild, getBuild, listBuilds, type Options, retryBuild } from './sdk.gen.js';
|
|
2
|
-
export type { BuildPage, BuildRequest, BuildState, BuildView, ClientOptions, CreateBuildData, CreateBuildError, CreateBuildErrors, CreateBuildResponse, CreateBuildResponses, Failure, GetBuildData, GetBuildError, GetBuildErrors, GetBuildResponse, GetBuildResponses, HttpErrorDetails, HttpErrorEnvelope, HttpValidationError, HttpValidationIssue, ListBuildsData, ListBuildsError, ListBuildsErrors, ListBuildsResponse, ListBuildsResponses, OutputReceipt, Provenance, RetryBuildData, RetryBuildError, RetryBuildErrors, RetryBuildResponse, RetryBuildResponses, ValidationError } from './types.gen.js';
|
|
1
|
+
export { createBuild, getBuild, listBuilds, type Options, resolveBuildSubmission, retryBuild } from './sdk.gen.js';
|
|
2
|
+
export type { BuildPage, BuildRequest, BuildState, BuildSubmissionResolution, BuildView, ClientOptions, CreateBuildData, CreateBuildError, CreateBuildErrors, CreateBuildResponse, CreateBuildResponses, Failure, GetBuildData, GetBuildError, GetBuildErrors, GetBuildResponse, GetBuildResponses, HttpErrorDetails, HttpErrorEnvelope, HttpValidationError, HttpValidationIssue, ListBuildsData, ListBuildsError, ListBuildsErrors, ListBuildsResponse, ListBuildsResponses, OutputReceipt, Provenance, ResolveBuildSubmissionData, ResolveBuildSubmissionError, ResolveBuildSubmissionErrors, ResolveBuildSubmissionResponse, ResolveBuildSubmissionResponses, RetryBuildData, RetryBuildError, RetryBuildErrors, RetryBuildResponse, RetryBuildResponses, ValidationError } from './types.gen.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export { createBuild, getBuild, listBuilds, retryBuild } from './sdk.gen.js';
|
|
2
|
+
export { createBuild, getBuild, listBuilds, resolveBuildSubmission, retryBuild } from './sdk.gen.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
|
|
2
|
-
import type { CreateBuildData, CreateBuildErrors, CreateBuildResponses, GetBuildData, GetBuildErrors, GetBuildResponses, ListBuildsData, ListBuildsErrors, ListBuildsResponses, RetryBuildData, RetryBuildErrors, RetryBuildResponses } from './types.gen.js';
|
|
2
|
+
import type { CreateBuildData, CreateBuildErrors, CreateBuildResponses, GetBuildData, GetBuildErrors, GetBuildResponses, ListBuildsData, ListBuildsErrors, ListBuildsResponses, ResolveBuildSubmissionData, ResolveBuildSubmissionErrors, ResolveBuildSubmissionResponses, RetryBuildData, RetryBuildErrors, RetryBuildResponses } from './types.gen.js';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -13,6 +13,12 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
13
13
|
*/
|
|
14
14
|
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Resolve Build Submission
|
|
18
|
+
*
|
|
19
|
+
* Resolve the original submission identity by safe read. Absence or expiry does not prove that the original create failed and never authorizes replay.
|
|
20
|
+
*/
|
|
21
|
+
export declare const resolveBuildSubmission: <ThrowOnError extends boolean = false>(options: Options<ResolveBuildSubmissionData, ThrowOnError>) => RequestResult<ResolveBuildSubmissionResponses, ResolveBuildSubmissionErrors, ThrowOnError>;
|
|
16
22
|
/**
|
|
17
23
|
* List Builds
|
|
18
24
|
*/
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { client } from './client.gen.js';
|
|
3
|
+
/**
|
|
4
|
+
* Resolve Build Submission
|
|
5
|
+
*
|
|
6
|
+
* Resolve the original submission identity by safe read. Absence or expiry does not prove that the original create failed and never authorizes replay.
|
|
7
|
+
*/
|
|
8
|
+
export const resolveBuildSubmission = (options) => (options.client ?? client).get({
|
|
9
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
10
|
+
url: '/v1/applications/{application_id}/build-submissions/resolve',
|
|
11
|
+
...options
|
|
12
|
+
});
|
|
3
13
|
/**
|
|
4
14
|
* List Builds
|
|
5
15
|
*/
|
|
@@ -43,6 +43,16 @@ export type BuildRequest = {
|
|
|
43
43
|
* BuildState
|
|
44
44
|
*/
|
|
45
45
|
export type BuildState = 'REQUESTED' | 'BUILDING' | 'PUBLISHING' | 'ASSOCIATING' | 'SUCCEEDED' | 'FAILED';
|
|
46
|
+
/**
|
|
47
|
+
* BuildSubmissionResolution
|
|
48
|
+
*/
|
|
49
|
+
export type BuildSubmissionResolution = {
|
|
50
|
+
build: BuildView;
|
|
51
|
+
/**
|
|
52
|
+
* Identityexpiresat
|
|
53
|
+
*/
|
|
54
|
+
identityExpiresAt: string;
|
|
55
|
+
};
|
|
46
56
|
/**
|
|
47
57
|
* BuildView
|
|
48
58
|
*/
|
|
@@ -273,6 +283,114 @@ export type HttpValidationIssue = {
|
|
|
273
283
|
*/
|
|
274
284
|
type: string;
|
|
275
285
|
};
|
|
286
|
+
export type ResolveBuildSubmissionData = {
|
|
287
|
+
body?: never;
|
|
288
|
+
headers: {
|
|
289
|
+
'Idempotency-Key': string;
|
|
290
|
+
};
|
|
291
|
+
path: {
|
|
292
|
+
/**
|
|
293
|
+
* Application Id
|
|
294
|
+
*/
|
|
295
|
+
application_id: string;
|
|
296
|
+
};
|
|
297
|
+
query?: never;
|
|
298
|
+
url: '/v1/applications/{application_id}/build-submissions/resolve';
|
|
299
|
+
};
|
|
300
|
+
export type ResolveBuildSubmissionErrors = {
|
|
301
|
+
/**
|
|
302
|
+
* Stable, redacted build diagnostic
|
|
303
|
+
*/
|
|
304
|
+
400: {
|
|
305
|
+
code: 'IDEMPOTENCY_KEY_REQUIRED';
|
|
306
|
+
retryable: boolean;
|
|
307
|
+
stage: string;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Stable, redacted build diagnostic
|
|
311
|
+
*/
|
|
312
|
+
401: {
|
|
313
|
+
code: string;
|
|
314
|
+
retryable: boolean;
|
|
315
|
+
stage: string;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Stable, redacted build diagnostic
|
|
319
|
+
*/
|
|
320
|
+
403: {
|
|
321
|
+
code: string;
|
|
322
|
+
retryable: boolean;
|
|
323
|
+
stage: string;
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Stable, redacted build diagnostic
|
|
327
|
+
*/
|
|
328
|
+
404: {
|
|
329
|
+
code: 'SUBMISSION_NOT_FOUND';
|
|
330
|
+
retryable: boolean;
|
|
331
|
+
stage: string;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Stable, redacted build diagnostic
|
|
335
|
+
*/
|
|
336
|
+
409: {
|
|
337
|
+
code: string;
|
|
338
|
+
retryable: boolean;
|
|
339
|
+
stage: string;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* Stable, redacted build diagnostic
|
|
343
|
+
*/
|
|
344
|
+
410: {
|
|
345
|
+
code: 'SUBMISSION_IDENTITY_EXPIRED';
|
|
346
|
+
retryable: boolean;
|
|
347
|
+
stage: string;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Stable, redacted build diagnostic
|
|
351
|
+
*/
|
|
352
|
+
412: {
|
|
353
|
+
code: string;
|
|
354
|
+
retryable: boolean;
|
|
355
|
+
stage: string;
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Stable, redacted build diagnostic
|
|
359
|
+
*/
|
|
360
|
+
413: {
|
|
361
|
+
code: string;
|
|
362
|
+
retryable: boolean;
|
|
363
|
+
stage: string;
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* Request failed inside the framework boundary
|
|
367
|
+
*/
|
|
368
|
+
500: HttpErrorEnvelope;
|
|
369
|
+
/**
|
|
370
|
+
* Stable, redacted build diagnostic
|
|
371
|
+
*/
|
|
372
|
+
503: {
|
|
373
|
+
code: 'AUTHORIZATION_UNAVAILABLE' | 'STORAGE_UNAVAILABLE' | 'STORAGE_INTEGRITY' | 'SERVICE_UNAVAILABLE';
|
|
374
|
+
retryable: boolean;
|
|
375
|
+
stage: string;
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* Stable, redacted build diagnostic
|
|
379
|
+
*/
|
|
380
|
+
504: {
|
|
381
|
+
code: string;
|
|
382
|
+
retryable: boolean;
|
|
383
|
+
stage: string;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
export type ResolveBuildSubmissionError = ResolveBuildSubmissionErrors[keyof ResolveBuildSubmissionErrors];
|
|
387
|
+
export type ResolveBuildSubmissionResponses = {
|
|
388
|
+
/**
|
|
389
|
+
* Successful Response
|
|
390
|
+
*/
|
|
391
|
+
200: BuildSubmissionResolution;
|
|
392
|
+
};
|
|
393
|
+
export type ResolveBuildSubmissionResponse = ResolveBuildSubmissionResponses[keyof ResolveBuildSubmissionResponses];
|
|
276
394
|
export type ListBuildsData = {
|
|
277
395
|
body?: never;
|
|
278
396
|
path: {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"schemaVersion": "juntai.typescript-sdk/release-manifest/v1",
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "@zephytiju/juntai-typescript-sdk",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.8.0"
|
|
6
6
|
},
|
|
7
7
|
"openapiLock": {
|
|
8
8
|
"path": "sources/openapi.lock.json",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "eaa91712e1d27c50dca863a8ae4a61cc37a6be749e2e9e6693a6418699855cad"
|
|
10
10
|
},
|
|
11
11
|
"generator": {
|
|
12
12
|
"name": "@hey-api/openapi-ts",
|
|
@@ -156,17 +156,17 @@
|
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"serviceId": "prism.build",
|
|
159
|
-
"serviceVersion": "1.
|
|
159
|
+
"serviceVersion": "1.3.0",
|
|
160
160
|
"ownerRepository": "https://github.com/zephytiju/PrismBuildService",
|
|
161
|
-
"sourceCommit": "
|
|
162
|
-
"artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismBuildService/
|
|
163
|
-
"artifactManifestDigest": "sha256:
|
|
161
|
+
"sourceCommit": "a8501c1b8983bd8afeb33dfa5a438bd452c27208",
|
|
162
|
+
"artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismBuildService/a8501c1b8983bd8afeb33dfa5a438bd452c27208/openapi/prism-build.v1.json",
|
|
163
|
+
"artifactManifestDigest": "sha256:ca3f27fff5a26922f672d2f9a6ce3ea5e6f8f3837729956f9ae0634267db5a52",
|
|
164
164
|
"openapiPath": "openapi/prism-build.v1.json",
|
|
165
|
-
"openapiSha256": "
|
|
165
|
+
"openapiSha256": "ca3f27fff5a26922f672d2f9a6ce3ea5e6f8f3837729956f9ae0634267db5a52",
|
|
166
166
|
"generatorProfile": "juntai.fuse.profile.http/v1",
|
|
167
167
|
"namespace": "prismBuild",
|
|
168
168
|
"outputPath": "src/generated/prism.build",
|
|
169
|
-
"outputSha256": "
|
|
169
|
+
"outputSha256": "bbfe448f424174c9c34624c56f26dcecde05fd1b1e0a3e55727dc0d43526fdf8"
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
"serviceId": "prism.composition",
|
package/package.json
CHANGED
|
@@ -200,20 +200,20 @@
|
|
|
200
200
|
"serviceId": "prism.build",
|
|
201
201
|
"ownerTeam": "Juntai Platform Team",
|
|
202
202
|
"ownerRepository": "https://github.com/zephytiju/PrismBuildService",
|
|
203
|
-
"sourceCommit": "
|
|
204
|
-
"serviceVersion": "1.
|
|
205
|
-
"artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismBuildService/
|
|
206
|
-
"artifactManifestDigest": "sha256:
|
|
203
|
+
"sourceCommit": "a8501c1b8983bd8afeb33dfa5a438bd452c27208",
|
|
204
|
+
"serviceVersion": "1.3.0",
|
|
205
|
+
"artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismBuildService/a8501c1b8983bd8afeb33dfa5a438bd452c27208/openapi/prism-build.v1.json",
|
|
206
|
+
"artifactManifestDigest": "sha256:ca3f27fff5a26922f672d2f9a6ce3ea5e6f8f3837729956f9ae0634267db5a52",
|
|
207
207
|
"openapiPath": "openapi/prism-build.v1.json",
|
|
208
|
-
"openapiSha256": "
|
|
209
|
-
"snapshotPath": "sources/artifacts/prism.build/
|
|
208
|
+
"openapiSha256": "ca3f27fff5a26922f672d2f9a6ce3ea5e6f8f3837729956f9ae0634267db5a52",
|
|
209
|
+
"snapshotPath": "sources/artifacts/prism.build/ca3f27fff5a26922f672d2f9a6ce3ea5e6f8f3837729956f9ae0634267db5a52.json",
|
|
210
210
|
"generatorName": "@hey-api/openapi-ts",
|
|
211
211
|
"generatorVersion": "0.99.0",
|
|
212
212
|
"generatorProfile": "juntai.fuse.profile.http/v1",
|
|
213
213
|
"namespace": "prismBuild",
|
|
214
214
|
"compatibility": "compatible",
|
|
215
215
|
"outputPath": "src/generated/prism.build",
|
|
216
|
-
"outputSha256": "
|
|
216
|
+
"outputSha256": "bbfe448f424174c9c34624c56f26dcecde05fd1b1e0a3e55727dc0d43526fdf8"
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
"serviceId": "prism.composition",
|