@zephytiju/juntai-typescript-sdk 3.6.0 → 3.7.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.7.0
4
+
5
+ - 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`.
6
+ - Verify exact candidate discovery, typed inspector declarations, null default absence, boolean Schema definitions, saved allocation, and explicit denial/oversize errors through the installed aggregate consumer fixture.
7
+ - Extend generated Build compiler selection to exact 1.2.0 while preserving the historical 1.1.0 request and receipt types; verify both through the installed aggregate package. Pin published Build Service 1.2.0 at source `0c4dd23fbb7c830ac60a5c9810fa5ec07f501a96`, OpenAPI SHA-256 `b1ade0ca183abe5de71ebb9f80d7fc43b858cff9d9033745da308dc1e2c52523`.
8
+
3
9
  ## 3.6.0
4
10
 
5
11
  - Refresh LatticeModelConfigurationService to immutable 0.4.0, source `f54b7271115de8a830b6ece69dc0e2845010c634`, OpenAPI SHA-256 `8482bbc4b4ca2f414d446fd5f57b8a6025a5d14c2781644bfcbda438dbfffa6a`.
package/README.md CHANGED
@@ -25,7 +25,9 @@ All imports resolve from this one aggregate dependency; there are no service-spe
25
25
 
26
26
  Axiom Definition exposes generated pipeline creation and discovery, revision history, validation, readiness, release, and release-search contracts. Axiom Operations exposes generated execution and production-activity discovery, import validation and submission, checkpoint inspection, source-gap search, redrive, and waiver contracts. Both clients preserve the owning services' required tenant, request, authorization, idempotency, cursor, and stable-error types without handwritten Axiom DTOs.
27
27
 
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.1.0`. 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.
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
+
30
+ 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.
29
31
 
30
32
  IAM consumers inject the session-aware fetch supplied by `ConsolePageContext`; the client neither owns credentials nor calls a protected origin directly:
31
33
 
@@ -29,7 +29,7 @@ export type BuildRequest = {
29
29
  /**
30
30
  * Builderreleaseid
31
31
  */
32
- builderReleaseId: 'prism-builder@1.1.0';
32
+ builderReleaseId: 'prism-builder@1.1.0' | 'prism-builder@1.2.0';
33
33
  /**
34
34
  * Operatingsystemid
35
35
  */
@@ -133,7 +133,7 @@ export type OutputReceipt = {
133
133
  /**
134
134
  * Builder Release
135
135
  */
136
- builder_release: 'prism-builder@1.1.0';
136
+ builder_release: 'prism-builder@1.1.0' | 'prism-builder@1.2.0';
137
137
  /**
138
138
  * Configuration Id
139
139
  */
@@ -186,7 +186,7 @@ export type Provenance = {
186
186
  /**
187
187
  * Builderrelease
188
188
  */
189
- builderRelease: 'prism-builder@1.1.0';
189
+ builderRelease: 'prism-builder@1.1.0' | 'prism-builder@1.2.0';
190
190
  /**
191
191
  * Configurationdigest
192
192
  */
@@ -1,2 +1,2 @@
1
1
  export { activateUiPageRevision, applyLayoutVariant, commitUiPageRevision, createOperatingSystem, createUiPage, getLayoutTemplateRelease, getOperatingSystem, getOperatingSystemDraft, getOperatingSystemRevision, getUiPageDraft, getUiPageRevision, listLayoutTemplateReleases, listOperatingSystemRevisions, listOperatingSystems, listUiPageRevisions, listUiPages, markOperatingSystemReadyForRelease, type Options, registerLayoutTemplateRelease, updateUiPageDraft } from './sdk.gen.js';
2
- export type { ActivatePage, ActivateUiPageRevisionData, ActivateUiPageRevisionError, ActivateUiPageRevisionErrors, ActivateUiPageRevisionResponse, ActivateUiPageRevisionResponses, AlignmentConfig, ApplyLayoutVariantData, ApplyLayoutVariantError, ApplyLayoutVariantErrors, ApplyLayoutVariantResponse, ApplyLayoutVariantResponses, ApplyVariant, Binding, BreakpointInput, BreakpointOutput, ClientOptions, CommitUiPageRevisionData, CommitUiPageRevisionError, CommitUiPageRevisionErrors, CommitUiPageRevisionResponse, CommitUiPageRevisionResponses, ComponentInput, ComponentOutput, ComponentPin, ComponentRelease, CompositionError, Constraints, ContextTarget, CreateOperatingSystemData, CreateOperatingSystemError, CreateOperatingSystemErrors, CreateOperatingSystemResponse, CreateOperatingSystemResponses, CreateOs, CreatePage, CreateUiPageData, CreateUiPageError, CreateUiPageErrors, CreateUiPageResponse, CreateUiPageResponses, DomainSource, GetLayoutTemplateReleaseData, GetLayoutTemplateReleaseError, GetLayoutTemplateReleaseErrors, GetLayoutTemplateReleaseResponse, GetLayoutTemplateReleaseResponses, GetOperatingSystemData, GetOperatingSystemDraftData, GetOperatingSystemDraftError, GetOperatingSystemDraftErrors, GetOperatingSystemDraftResponse, GetOperatingSystemDraftResponses, GetOperatingSystemError, GetOperatingSystemErrors, GetOperatingSystemResponse, GetOperatingSystemResponses, GetOperatingSystemRevisionData, GetOperatingSystemRevisionError, GetOperatingSystemRevisionErrors, GetOperatingSystemRevisionResponse, GetOperatingSystemRevisionResponses, GetUiPageDraftData, GetUiPageDraftError, GetUiPageDraftErrors, GetUiPageDraftResponse, GetUiPageDraftResponses, GetUiPageRevisionData, GetUiPageRevisionError, GetUiPageRevisionErrors, GetUiPageRevisionResponse, GetUiPageRevisionResponses, GridAreaInput, GridAreaOutput, GridConfigInput, GridConfigOutput, HttpErrorDetails, HttpErrorEnvelope, HttpValidationError, HttpValidationIssue, InputTarget, IntentTarget, JsonValue, KeySource, LayoutNodeInput, LayoutNodeOutput, LayoutRegionInput, LayoutRegionOutput, ListLayoutTemplateReleasesData, ListLayoutTemplateReleasesError, ListLayoutTemplateReleasesErrors, ListLayoutTemplateReleasesResponse, ListLayoutTemplateReleasesResponses, ListOperatingSystemRevisionsData, ListOperatingSystemRevisionsError, ListOperatingSystemRevisionsErrors, ListOperatingSystemRevisionsResponse, ListOperatingSystemRevisionsResponses, ListOperatingSystemsData, ListOperatingSystemsError, ListOperatingSystemsErrors, ListOperatingSystemsResponse, ListOperatingSystemsResponses, ListUiPageRevisionsData, ListUiPageRevisionsError, ListUiPageRevisionsErrors, ListUiPageRevisionsResponse, ListUiPageRevisionsResponses, ListUiPagesData, ListUiPagesError, ListUiPagesErrors, ListUiPagesResponse, ListUiPagesResponses, LiteralSource, LocaleSource, MarkOperatingSystemReadyForReleaseData, MarkOperatingSystemReadyForReleaseError, MarkOperatingSystemReadyForReleaseErrors, MarkOperatingSystemReadyForReleaseResponse, MarkOperatingSystemReadyForReleaseResponses, NavigationEntry, NavigationSnapshot, NavigationTarget, OsDraft, OsIdentity, OsRevision, OutputSource, PageAssignment, PageDocumentInput, PageDocumentOutput, PageIdentity, PageRevision, Provenance, RegisterLayoutTemplateReleaseData, RegisterLayoutTemplateReleaseError, RegisterLayoutTemplateReleaseErrors, RegisterLayoutTemplateReleaseResponse, RegisterLayoutTemplateReleaseResponses, ResourceDocumentOsDraft, ResourceDocumentOsIdentity, ResourceDocumentOsRevision, ResourceDocumentPageDocument, ResourceDocumentPageIdentity, ResourceDocumentPageRevision, ResourceDocumentTemplateRelease, ResourcePageOsIdentity, ResourcePageOsRevision, ResourcePagePageIdentity, ResourcePagePageRevision, ResourcePageTemplateRelease, ResponsiveConfigInput, ResponsiveConfigOutput, SchemaPin, StackConfigInput, StackConfigOutput, StateSource, TemplateRef, TemplateRelease, UpdateUiPageDraftData, UpdateUiPageDraftError, UpdateUiPageDraftErrors, UpdateUiPageDraftResponse, UpdateUiPageDraftResponses, ValidationError } from './types.gen.js';
2
+ export type { ActivatePage, ActivateUiPageRevisionData, ActivateUiPageRevisionError, ActivateUiPageRevisionErrors, ActivateUiPageRevisionResponse, ActivateUiPageRevisionResponses, AlignmentConfig, ApplyLayoutVariantData, ApplyLayoutVariantError, ApplyLayoutVariantErrors, ApplyLayoutVariantResponse, ApplyLayoutVariantResponses, ApplyVariant, AuthoringCapabilities, AuthoringContext, AuthoringDefinition, AuthoringPresentation, AuthoringProjection, AuthoringRelease, AuthoringSpan, AuthoringVariant, Binding, BreakpointInput, BreakpointOutput, ClientOptions, CommitUiPageRevisionData, CommitUiPageRevisionError, CommitUiPageRevisionErrors, CommitUiPageRevisionResponse, CommitUiPageRevisionResponses, Compatibility, CompatibilityReason, ComponentInput, ComponentOutput, ComponentPin, ComponentRelease, CompositionError, Constraints, ContextTarget, CreateOperatingSystemData, CreateOperatingSystemError, CreateOperatingSystemErrors, CreateOperatingSystemResponse, CreateOperatingSystemResponses, CreateOs, CreatePage, CreateUiPageData, CreateUiPageError, CreateUiPageErrors, CreateUiPageResponse, CreateUiPageResponses, DomainSource, GetLayoutTemplateReleaseData, GetLayoutTemplateReleaseError, GetLayoutTemplateReleaseErrors, GetLayoutTemplateReleaseResponse, GetLayoutTemplateReleaseResponses, GetOperatingSystemData, GetOperatingSystemDraftData, GetOperatingSystemDraftError, GetOperatingSystemDraftErrors, GetOperatingSystemDraftResponse, GetOperatingSystemDraftResponses, GetOperatingSystemError, GetOperatingSystemErrors, GetOperatingSystemResponse, GetOperatingSystemResponses, GetOperatingSystemRevisionData, GetOperatingSystemRevisionError, GetOperatingSystemRevisionErrors, GetOperatingSystemRevisionResponse, GetOperatingSystemRevisionResponses, GetUiPageDraftData, GetUiPageDraftError, GetUiPageDraftErrors, GetUiPageDraftResponse, GetUiPageDraftResponses, GetUiPageRevisionData, GetUiPageRevisionError, GetUiPageRevisionErrors, GetUiPageRevisionResponse, GetUiPageRevisionResponses, GridAreaInput, GridAreaOutput, GridConfigInput, GridConfigOutput, HttpErrorDetails, HttpErrorEnvelope, HttpValidationError, HttpValidationIssue, InputTarget, IntentTarget, JsonValue, KeySource, LayoutNodeInput, LayoutNodeOutput, LayoutRegionInput, LayoutRegionOutput, ListLayoutTemplateReleasesData, ListLayoutTemplateReleasesError, ListLayoutTemplateReleasesErrors, ListLayoutTemplateReleasesResponse, ListLayoutTemplateReleasesResponses, ListOperatingSystemRevisionsData, ListOperatingSystemRevisionsError, ListOperatingSystemRevisionsErrors, ListOperatingSystemRevisionsResponse, ListOperatingSystemRevisionsResponses, ListOperatingSystemsData, ListOperatingSystemsError, ListOperatingSystemsErrors, ListOperatingSystemsResponse, ListOperatingSystemsResponses, ListUiPageRevisionsData, ListUiPageRevisionsError, ListUiPageRevisionsErrors, ListUiPageRevisionsResponse, ListUiPageRevisionsResponses, ListUiPagesData, ListUiPagesError, ListUiPagesErrors, ListUiPagesResponse, ListUiPagesResponses, LiteralSource, LocaleSource, MarkOperatingSystemReadyForReleaseData, MarkOperatingSystemReadyForReleaseError, MarkOperatingSystemReadyForReleaseErrors, MarkOperatingSystemReadyForReleaseResponse, MarkOperatingSystemReadyForReleaseResponses, NavigationEntry, NavigationSnapshot, NavigationTarget, OsDraft, OsIdentity, OsRevision, OutputSource, PageAssignment, PageDocumentInput, PageDocumentOutput, PageDraftResponse, PageIdentity, PageRevision, Provenance, RegisterLayoutTemplateReleaseData, RegisterLayoutTemplateReleaseError, RegisterLayoutTemplateReleaseErrors, RegisterLayoutTemplateReleaseResponse, RegisterLayoutTemplateReleaseResponses, ResourceDocumentOsDraft, ResourceDocumentOsIdentity, ResourceDocumentOsRevision, ResourceDocumentPageDocument, ResourceDocumentPageIdentity, ResourceDocumentPageRevision, ResourceDocumentTemplateRelease, ResourcePageOsIdentity, ResourcePageOsRevision, ResourcePagePageIdentity, ResourcePagePageRevision, ResourcePageTemplateRelease, ResponsiveConfigInput, ResponsiveConfigOutput, SchemaPin, SplitAllocation, SplitShare, StackConfigInput, StackConfigOutput, StateSource, TemplateRef, TemplateRelease, UpdateUiPageDraftData, UpdateUiPageDraftError, UpdateUiPageDraftErrors, UpdateUiPageDraftResponse, UpdateUiPageDraftResponses, ValidationError, VariantCompatibility } from './types.gen.js';
@@ -71,6 +71,8 @@ export declare const activateUiPageRevision: <ThrowOnError extends boolean = fal
71
71
  export declare const applyLayoutVariant: <ThrowOnError extends boolean = false>(options: Options<ApplyLayoutVariantData, ThrowOnError>) => RequestResult<ApplyLayoutVariantResponses, ApplyLayoutVariantErrors, ThrowOnError>;
72
72
  /**
73
73
  * Get Page Draft
74
+ *
75
+ * Read the current Draft and ETag. includeAuthoring=true adds a transient, authorized exact-release metadata projection. Supply blueprintAssetId, blueprintVersionId and targetSlotId together for an unplaced candidate (no known binding fingerprint required), or instanceId for one saved instance. With no selector, project all current instances with deduplicated releases and definitions. Selectors require includeAuthoring=true and cannot be mixed. The optional If-Match header checks the evaluated Draft ETag. Limits: 1 MiB projection, 128 contexts, 32 releases, 256 definitions and 256 variants per release. Oversize returns 413; invalid metadata, stale pins and dependencies fail explicitly without a partial projection. Ordinary Draft reads remain independent of authoring metadata resolution.
74
76
  */
75
77
  export declare const getUiPageDraft: <ThrowOnError extends boolean = false>(options: Options<GetUiPageDraftData, ThrowOnError>) => RequestResult<GetUiPageDraftResponses, GetUiPageDraftErrors, ThrowOnError>;
76
78
  /**
@@ -134,6 +134,8 @@ export const applyLayoutVariant = (options) => (options.client ?? client).post({
134
134
  });
135
135
  /**
136
136
  * Get Page Draft
137
+ *
138
+ * Read the current Draft and ETag. includeAuthoring=true adds a transient, authorized exact-release metadata projection. Supply blueprintAssetId, blueprintVersionId and targetSlotId together for an unplaced candidate (no known binding fingerprint required), or instanceId for one saved instance. With no selector, project all current instances with deduplicated releases and definitions. Selectors require includeAuthoring=true and cannot be mixed. The optional If-Match header checks the evaluated Draft ETag. Limits: 1 MiB projection, 128 contexts, 32 releases, 256 definitions and 256 variants per release. Oversize returns 413; invalid metadata, stale pins and dependencies fail explicitly without a partial projection. Ordinary Draft reads remain independent of authoring metadata resolution.
137
139
  */
138
140
  export const getUiPageDraft = (options) => (options.client ?? client).get({
139
141
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -53,6 +53,590 @@ export type ApplyVariant = {
53
53
  */
54
54
  key: string;
55
55
  };
56
+ /**
57
+ * AuthoringCapabilities
58
+ */
59
+ export type AuthoringCapabilities = {
60
+ /**
61
+ * Aspectratio
62
+ */
63
+ aspectRatio?: number | null;
64
+ maximumSpan?: AuthoringSpan | null;
65
+ minimumSpan?: AuthoringSpan | null;
66
+ /**
67
+ * Overflow
68
+ */
69
+ overflow?: 'host' | 'component' | 'clip' | null;
70
+ preferredSpan?: AuthoringSpan | null;
71
+ /**
72
+ * Resizable
73
+ */
74
+ resizable?: boolean | null;
75
+ /**
76
+ * Responsive
77
+ */
78
+ responsive?: boolean | null;
79
+ /**
80
+ * Supportedroles
81
+ */
82
+ supportedRoles: Array<string>;
83
+ };
84
+ /**
85
+ * AuthoringContext
86
+ */
87
+ export type AuthoringContext = {
88
+ insertion: Compatibility;
89
+ /**
90
+ * Instanceid
91
+ */
92
+ instanceId?: string | null;
93
+ /**
94
+ * Releasekey
95
+ */
96
+ releaseKey: string;
97
+ /**
98
+ * Requirescustomlayout
99
+ */
100
+ requiresCustomLayout: boolean;
101
+ /**
102
+ * Targetslotid
103
+ */
104
+ targetSlotId: string;
105
+ /**
106
+ * Variants
107
+ */
108
+ variants: Array<VariantCompatibility>;
109
+ };
110
+ /**
111
+ * AuthoringDefinition
112
+ */
113
+ export type AuthoringDefinition = {
114
+ /**
115
+ * Definition
116
+ */
117
+ definition: {
118
+ [key: string]: JsonValue;
119
+ } | boolean;
120
+ /**
121
+ * ExactSchemaRef
122
+ */
123
+ reference: {
124
+ /**
125
+ * Catalog
126
+ */
127
+ catalog: string;
128
+ /**
129
+ * Digest
130
+ */
131
+ digest: string;
132
+ /**
133
+ * Schema
134
+ */
135
+ schema: string;
136
+ /**
137
+ * Version
138
+ */
139
+ version: string;
140
+ };
141
+ };
142
+ /**
143
+ * AuthoringPresentation
144
+ */
145
+ export type AuthoringPresentation = {
146
+ /**
147
+ * Category
148
+ */
149
+ category: string;
150
+ /**
151
+ * Compatibledistributions
152
+ */
153
+ compatibleDistributions: Array<string>;
154
+ /**
155
+ * Compatiblelayoutroles
156
+ */
157
+ compatibleLayoutRoles?: Array<string> | null;
158
+ /**
159
+ * Compatibleslotroles
160
+ */
161
+ compatibleSlotRoles?: Array<string> | null;
162
+ /**
163
+ * Description
164
+ */
165
+ description?: string | null;
166
+ /**
167
+ * Documentationurl
168
+ */
169
+ documentationUrl?: string | null;
170
+ /**
171
+ * Iconref
172
+ */
173
+ iconRef?: string | null;
174
+ /**
175
+ * Label
176
+ */
177
+ label: string;
178
+ /**
179
+ * Previewfixture
180
+ */
181
+ previewFixture?: string | null;
182
+ /**
183
+ * Requiredcapabilities
184
+ */
185
+ requiredCapabilities?: Array<string> | null;
186
+ /**
187
+ * Searchterms
188
+ */
189
+ searchTerms: Array<string>;
190
+ };
191
+ /**
192
+ * AuthoringProjection
193
+ *
194
+ * Snapshot only: at most 1 MiB, 128 contexts, 32 releases, 256 definitions.
195
+ *
196
+ * Over-limit/dependency failures return an explicit HTTP error. Select one
197
+ * instance or exact candidate to bound a page-wide read; nothing is truncated.
198
+ */
199
+ export type AuthoringProjection = {
200
+ /**
201
+ * Contexts
202
+ */
203
+ contexts: Array<AuthoringContext>;
204
+ /**
205
+ * Definitions
206
+ */
207
+ definitions: Array<AuthoringDefinition>;
208
+ /**
209
+ * Evaluateddraftetag
210
+ */
211
+ evaluatedDraftEtag: string;
212
+ /**
213
+ * Releases
214
+ */
215
+ releases: Array<AuthoringRelease>;
216
+ templateRelease: TemplateRef;
217
+ /**
218
+ * Version
219
+ */
220
+ version: 1;
221
+ };
222
+ /**
223
+ * AuthoringRelease
224
+ */
225
+ export type AuthoringRelease = {
226
+ /**
227
+ * Bindingfingerprint
228
+ */
229
+ bindingFingerprint: string;
230
+ componentRelease: ComponentRelease;
231
+ /**
232
+ * SchemaContract
233
+ *
234
+ * Resolved immutable declarations, with no local definition names to interpret.
235
+ */
236
+ declarations: {
237
+ /**
238
+ * Actions
239
+ */
240
+ actions: Array<{
241
+ /**
242
+ * Key
243
+ */
244
+ key: string;
245
+ /**
246
+ * Label
247
+ */
248
+ label: string;
249
+ /**
250
+ * ExactSchemaRef
251
+ */
252
+ request_schema_ref: {
253
+ /**
254
+ * Catalog
255
+ */
256
+ catalog: string;
257
+ /**
258
+ * Digest
259
+ */
260
+ digest: string;
261
+ /**
262
+ * Schema
263
+ */
264
+ schema: string;
265
+ /**
266
+ * Version
267
+ */
268
+ version: string;
269
+ };
270
+ response_schema_ref: {
271
+ /**
272
+ * Catalog
273
+ */
274
+ catalog: string;
275
+ /**
276
+ * Digest
277
+ */
278
+ digest: string;
279
+ /**
280
+ * Schema
281
+ */
282
+ schema: string;
283
+ /**
284
+ * Version
285
+ */
286
+ version: string;
287
+ } | null;
288
+ }>;
289
+ /**
290
+ * ConfigurationSchema[ExactSchemaRef]
291
+ */
292
+ configuration: {
293
+ defaults: unknown;
294
+ /**
295
+ * Inspector Hints
296
+ */
297
+ inspector_hints: {
298
+ [key: string]: unknown;
299
+ };
300
+ /**
301
+ * ExactSchemaRef
302
+ */
303
+ schema_ref: {
304
+ /**
305
+ * Catalog
306
+ */
307
+ catalog: string;
308
+ /**
309
+ * Digest
310
+ */
311
+ digest: string;
312
+ /**
313
+ * Schema
314
+ */
315
+ schema: string;
316
+ /**
317
+ * Version
318
+ */
319
+ version: string;
320
+ };
321
+ };
322
+ /**
323
+ * Events
324
+ */
325
+ events: Array<{
326
+ /**
327
+ * Key
328
+ */
329
+ key: string;
330
+ /**
331
+ * Label
332
+ */
333
+ label: string;
334
+ /**
335
+ * ExactSchemaRef
336
+ */
337
+ payload_schema_ref: {
338
+ /**
339
+ * Catalog
340
+ */
341
+ catalog: string;
342
+ /**
343
+ * Digest
344
+ */
345
+ digest: string;
346
+ /**
347
+ * Schema
348
+ */
349
+ schema: string;
350
+ /**
351
+ * Version
352
+ */
353
+ version: string;
354
+ };
355
+ }>;
356
+ /**
357
+ * Inputs
358
+ */
359
+ inputs: Array<{
360
+ /**
361
+ * Key
362
+ */
363
+ key: string;
364
+ /**
365
+ * Label
366
+ */
367
+ label: string;
368
+ /**
369
+ * Max Bytes
370
+ */
371
+ max_bytes: number | null;
372
+ /**
373
+ * Required
374
+ */
375
+ required: boolean;
376
+ /**
377
+ * ExactSchemaRef
378
+ */
379
+ schema_ref: {
380
+ /**
381
+ * Catalog
382
+ */
383
+ catalog: string;
384
+ /**
385
+ * Digest
386
+ */
387
+ digest: string;
388
+ /**
389
+ * Schema
390
+ */
391
+ schema: string;
392
+ /**
393
+ * Version
394
+ */
395
+ version: string;
396
+ };
397
+ /**
398
+ * Value Semantics
399
+ */
400
+ value_semantics: 'stable-identifier' | 'bounded-value';
401
+ }>;
402
+ /**
403
+ * Intents
404
+ */
405
+ intents: Array<{
406
+ /**
407
+ * Key
408
+ */
409
+ key: string;
410
+ /**
411
+ * Label
412
+ */
413
+ label: string;
414
+ /**
415
+ * ExactSchemaRef
416
+ */
417
+ payload_schema_ref: {
418
+ /**
419
+ * Catalog
420
+ */
421
+ catalog: string;
422
+ /**
423
+ * Digest
424
+ */
425
+ digest: string;
426
+ /**
427
+ * Schema
428
+ */
429
+ schema: string;
430
+ /**
431
+ * Version
432
+ */
433
+ version: string;
434
+ };
435
+ }>;
436
+ /**
437
+ * Outputs
438
+ */
439
+ outputs: Array<{
440
+ /**
441
+ * Key
442
+ */
443
+ key: string;
444
+ /**
445
+ * Label
446
+ */
447
+ label: string;
448
+ /**
449
+ * Max Bytes
450
+ */
451
+ max_bytes: number | null;
452
+ /**
453
+ * ExactSchemaRef
454
+ */
455
+ schema_ref: {
456
+ /**
457
+ * Catalog
458
+ */
459
+ catalog: string;
460
+ /**
461
+ * Digest
462
+ */
463
+ digest: string;
464
+ /**
465
+ * Schema
466
+ */
467
+ schema: string;
468
+ /**
469
+ * Version
470
+ */
471
+ version: string;
472
+ };
473
+ /**
474
+ * Value Semantics
475
+ */
476
+ value_semantics: 'stable-identifier' | 'bounded-value';
477
+ }>;
478
+ /**
479
+ * Slots
480
+ */
481
+ slots: Array<{
482
+ /**
483
+ * Accepted Roles
484
+ */
485
+ accepted_roles: Array<string>;
486
+ /**
487
+ * Cardinality
488
+ */
489
+ cardinality: 'zero-or-one' | 'exactly-one' | 'zero-or-more' | 'one-or-more';
490
+ /**
491
+ * Key
492
+ */
493
+ key: string;
494
+ /**
495
+ * Label
496
+ */
497
+ label: string;
498
+ /**
499
+ * Nesting Depth
500
+ */
501
+ nesting_depth: number;
502
+ /**
503
+ * ExactSchemaRef
504
+ */
505
+ payload_schema_ref: {
506
+ /**
507
+ * Catalog
508
+ */
509
+ catalog: string;
510
+ /**
511
+ * Digest
512
+ */
513
+ digest: string;
514
+ /**
515
+ * Schema
516
+ */
517
+ schema: string;
518
+ /**
519
+ * Version
520
+ */
521
+ version: string;
522
+ };
523
+ }>;
524
+ /**
525
+ * State
526
+ */
527
+ state: Array<{
528
+ /**
529
+ * Key
530
+ */
531
+ key: string;
532
+ /**
533
+ * Label
534
+ */
535
+ label: string;
536
+ /**
537
+ * Max Bytes
538
+ */
539
+ max_bytes: number | null;
540
+ /**
541
+ * ExactSchemaRef
542
+ */
543
+ schema_ref: {
544
+ /**
545
+ * Catalog
546
+ */
547
+ catalog: string;
548
+ /**
549
+ * Digest
550
+ */
551
+ digest: string;
552
+ /**
553
+ * Schema
554
+ */
555
+ schema: string;
556
+ /**
557
+ * Version
558
+ */
559
+ version: string;
560
+ };
561
+ /**
562
+ * Value Semantics
563
+ */
564
+ value_semantics: 'stable-identifier' | 'bounded-value';
565
+ }>;
566
+ };
567
+ /**
568
+ * Defaultvariantkey
569
+ */
570
+ defaultVariantKey: string | null;
571
+ layoutCapabilities: AuthoringCapabilities;
572
+ presentation: AuthoringPresentation;
573
+ /**
574
+ * Releasekey
575
+ */
576
+ releaseKey: string;
577
+ /**
578
+ * Sdkmajor
579
+ */
580
+ sdkMajor: number;
581
+ /**
582
+ * Variants
583
+ */
584
+ variants: Array<AuthoringVariant>;
585
+ };
586
+ /**
587
+ * AuthoringSpan
588
+ */
589
+ export type AuthoringSpan = {
590
+ /**
591
+ * Columns
592
+ */
593
+ columns: number;
594
+ /**
595
+ * Rows
596
+ */
597
+ rows: number;
598
+ };
599
+ /**
600
+ * AuthoringVariant
601
+ */
602
+ export type AuthoringVariant = {
603
+ /**
604
+ * Description
605
+ */
606
+ description?: string | null;
607
+ /**
608
+ * Isdefault
609
+ */
610
+ isDefault: boolean;
611
+ /**
612
+ * Key
613
+ */
614
+ key: string;
615
+ /**
616
+ * Label
617
+ */
618
+ label: string;
619
+ /**
620
+ * Layoutconfig
621
+ */
622
+ layoutConfig: ({
623
+ kind: 'alignment';
624
+ } & AlignmentConfig) | ({
625
+ kind: 'stack';
626
+ } & StackConfigOutput) | ({
627
+ kind: 'grid';
628
+ } & GridConfigOutput) | ({
629
+ kind: 'responsive';
630
+ } & ResponsiveConfigOutput);
631
+ /**
632
+ * Layoutconfigdigest
633
+ */
634
+ layoutConfigDigest: string;
635
+ /**
636
+ * Layoutconfigversion
637
+ */
638
+ layoutConfigVersion: 1;
639
+ };
56
640
  /**
57
641
  * Binding
58
642
  */
@@ -128,6 +712,40 @@ export type BreakpointOutput = {
128
712
  */
129
713
  minWidth: number;
130
714
  };
715
+ /**
716
+ * Compatibility
717
+ */
718
+ export type Compatibility = {
719
+ /**
720
+ * Reasons
721
+ */
722
+ reasons: Array<CompatibilityReason>;
723
+ /**
724
+ * Status
725
+ */
726
+ status: 'compatible' | 'incompatible';
727
+ };
728
+ /**
729
+ * CompatibilityReason
730
+ */
731
+ export type CompatibilityReason = {
732
+ /**
733
+ * Code
734
+ */
735
+ code: string;
736
+ /**
737
+ * Message
738
+ */
739
+ message: string;
740
+ /**
741
+ * Path
742
+ */
743
+ path: string;
744
+ /**
745
+ * Targetid
746
+ */
747
+ targetId: string;
748
+ };
131
749
  /**
132
750
  * Component
133
751
  */
@@ -561,6 +1179,12 @@ export type LayoutNodeInput = {
561
1179
  * Slotname
562
1180
  */
563
1181
  slotName?: string | null;
1182
+ /**
1183
+ * Splitallocation
1184
+ *
1185
+ * Optional selected shares for a template-declared resizable split. Positive integer units total 1000000; immediate child IDs occur exactly once in child order. Omit for legacy behavior; explicit null is invalid. Requires compatible readers.
1186
+ */
1187
+ splitAllocation?: SplitAllocation;
564
1188
  };
565
1189
  /**
566
1190
  * LayoutNode
@@ -595,6 +1219,12 @@ export type LayoutNodeOutput = {
595
1219
  * Slotname
596
1220
  */
597
1221
  slotName?: string | null;
1222
+ /**
1223
+ * Splitallocation
1224
+ *
1225
+ * Optional selected shares for a template-declared resizable split. Positive integer units total 1000000; immediate child IDs occur exactly once in child order. Omit for legacy behavior; explicit null is invalid. Requires compatible readers.
1226
+ */
1227
+ splitAllocation?: SplitAllocation;
598
1228
  };
599
1229
  /**
600
1230
  * LayoutRegion
@@ -890,6 +1520,37 @@ export type PageDocumentOutput = {
890
1520
  navigationStyle: 'left' | 'top' | 'both';
891
1521
  templateRelease: TemplateRef;
892
1522
  };
1523
+ /**
1524
+ * PageDraftResponse
1525
+ */
1526
+ export type PageDraftResponse = {
1527
+ authoring?: AuthoringProjection | null;
1528
+ /**
1529
+ * Digest
1530
+ */
1531
+ digest?: string | null;
1532
+ document: PageDocumentOutput;
1533
+ /**
1534
+ * Etag
1535
+ */
1536
+ etag?: string | null;
1537
+ /**
1538
+ * Id
1539
+ */
1540
+ id: string;
1541
+ /**
1542
+ * Lasteditedat
1543
+ */
1544
+ lastEditedAt?: string | null;
1545
+ /**
1546
+ * Lasteditorid
1547
+ */
1548
+ lastEditorId?: string | null;
1549
+ /**
1550
+ * State
1551
+ */
1552
+ state?: string | null;
1553
+ };
893
1554
  /**
894
1555
  * PageIdentity
895
1556
  */
@@ -1337,6 +1998,32 @@ export type SchemaPin = {
1337
1998
  */
1338
1999
  version: string;
1339
2000
  };
2001
+ /**
2002
+ * SplitAllocation
2003
+ */
2004
+ export type SplitAllocation = {
2005
+ /**
2006
+ * Shares
2007
+ */
2008
+ shares: Array<SplitShare>;
2009
+ /**
2010
+ * Version
2011
+ */
2012
+ version: 1;
2013
+ };
2014
+ /**
2015
+ * SplitShare
2016
+ */
2017
+ export type SplitShare = {
2018
+ /**
2019
+ * Childid
2020
+ */
2021
+ childId: string;
2022
+ /**
2023
+ * Units
2024
+ */
2025
+ units: number;
2026
+ };
1340
2027
  /**
1341
2028
  * StackConfig
1342
2029
  */
@@ -1460,6 +2147,16 @@ export type ValidationError = {
1460
2147
  */
1461
2148
  type: string;
1462
2149
  };
2150
+ /**
2151
+ * VariantCompatibility
2152
+ */
2153
+ export type VariantCompatibility = {
2154
+ compatibility: Compatibility;
2155
+ /**
2156
+ * Key
2157
+ */
2158
+ key: string;
2159
+ };
1463
2160
  /**
1464
2161
  * _HTTPErrorDetails
1465
2162
  */
@@ -2429,13 +3126,40 @@ export type ApplyLayoutVariantResponses = {
2429
3126
  export type ApplyLayoutVariantResponse = ApplyLayoutVariantResponses[keyof ApplyLayoutVariantResponses];
2430
3127
  export type GetUiPageDraftData = {
2431
3128
  body?: never;
3129
+ headers?: {
3130
+ /**
3131
+ * Optional current Draft ETag for an authoring projection.
3132
+ */
3133
+ 'If-Match'?: string;
3134
+ };
2432
3135
  path: {
2433
3136
  /**
2434
3137
  * Page Id
2435
3138
  */
2436
3139
  page_id: string;
2437
3140
  };
2438
- query?: never;
3141
+ query?: {
3142
+ /**
3143
+ * Includeauthoring
3144
+ */
3145
+ includeAuthoring?: boolean;
3146
+ /**
3147
+ * Blueprintassetid
3148
+ */
3149
+ blueprintAssetId?: string | null;
3150
+ /**
3151
+ * Blueprintversionid
3152
+ */
3153
+ blueprintVersionId?: string | null;
3154
+ /**
3155
+ * Targetslotid
3156
+ */
3157
+ targetSlotId?: string | null;
3158
+ /**
3159
+ * Instanceid
3160
+ */
3161
+ instanceId?: string | null;
3162
+ };
2439
3163
  url: '/v1/ui-pages/{page_id}/draft';
2440
3164
  };
2441
3165
  export type GetUiPageDraftErrors = {
@@ -2485,7 +3209,7 @@ export type GetUiPageDraftResponses = {
2485
3209
  /**
2486
3210
  * Successful Response
2487
3211
  */
2488
- 200: ResourceDocumentPageDocument;
3212
+ 200: PageDraftResponse;
2489
3213
  };
2490
3214
  export type GetUiPageDraftResponse = GetUiPageDraftResponses[keyof GetUiPageDraftResponses];
2491
3215
  export type UpdateUiPageDraftData = {
@@ -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.6.0"
5
+ "version": "3.7.0"
6
6
  },
7
7
  "openapiLock": {
8
8
  "path": "sources/openapi.lock.json",
9
- "sha256": "0adc361f227141be3b41379d6102c134b01bdfaa7fb87db4edeaf1bb5d5d3175"
9
+ "sha256": "02fb906655d3beb487172b8e28e2a15bde3cea50f4a12620e25df42c40e23f99"
10
10
  },
11
11
  "generator": {
12
12
  "name": "@hey-api/openapi-ts",
@@ -156,31 +156,31 @@
156
156
  },
157
157
  {
158
158
  "serviceId": "prism.build",
159
- "serviceVersion": "1.0.0",
159
+ "serviceVersion": "1.2.0",
160
160
  "ownerRepository": "https://github.com/zephytiju/PrismBuildService",
161
- "sourceCommit": "aaeeb942a930701c7465a54b9aa3f1325f09bfc5",
162
- "artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismBuildService/aaeeb942a930701c7465a54b9aa3f1325f09bfc5/openapi/prism-build.v1.json",
163
- "artifactManifestDigest": "sha256:cf332c94d3733ef5ba0562d9b9132e4850e747d877690c0a5fb5b2fc4d60df05",
161
+ "sourceCommit": "0c4dd23fbb7c830ac60a5c9810fa5ec07f501a96",
162
+ "artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismBuildService/0c4dd23fbb7c830ac60a5c9810fa5ec07f501a96/openapi/prism-build.v1.json",
163
+ "artifactManifestDigest": "sha256:b1ade0ca183abe5de71ebb9f80d7fc43b858cff9d9033745da308dc1e2c52523",
164
164
  "openapiPath": "openapi/prism-build.v1.json",
165
- "openapiSha256": "cf332c94d3733ef5ba0562d9b9132e4850e747d877690c0a5fb5b2fc4d60df05",
165
+ "openapiSha256": "b1ade0ca183abe5de71ebb9f80d7fc43b858cff9d9033745da308dc1e2c52523",
166
166
  "generatorProfile": "juntai.fuse.profile.http/v1",
167
167
  "namespace": "prismBuild",
168
168
  "outputPath": "src/generated/prism.build",
169
- "outputSha256": "30d0ce86c96eeb9db9d380ee5a1b2e3274ff5687d9b9a7abb143c0c95ff7459d"
169
+ "outputSha256": "abf35af93b90fed63391b84c195bc2f964bdd8edb4a2c1cbce6ff8bd5607313b"
170
170
  },
171
171
  {
172
172
  "serviceId": "prism.composition",
173
- "serviceVersion": "1.0.0",
173
+ "serviceVersion": "1.2.0",
174
174
  "ownerRepository": "https://github.com/zephytiju/PrismCompositionService",
175
- "sourceCommit": "8fcf6fcc5f19c167664b259b566d6c6e28212c95",
176
- "artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismCompositionService/8fcf6fcc5f19c167664b259b566d6c6e28212c95/contracts/openapi.v1.json",
177
- "artifactManifestDigest": "sha256:e20be8283fe7bc163284a226853bb710ed0e4d45c8830b81600f32d389fde66f",
175
+ "sourceCommit": "c7133c391278d852b3e7e80f617223a4e1b31e46",
176
+ "artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismCompositionService/c7133c391278d852b3e7e80f617223a4e1b31e46/contracts/openapi.v1.json",
177
+ "artifactManifestDigest": "sha256:d2f1dcff7d533d5995b4547062d2ad38f9cfe703f99f14a594a2994bf47a01ab",
178
178
  "openapiPath": "contracts/openapi.v1.json",
179
- "openapiSha256": "e20be8283fe7bc163284a226853bb710ed0e4d45c8830b81600f32d389fde66f",
179
+ "openapiSha256": "d2f1dcff7d533d5995b4547062d2ad38f9cfe703f99f14a594a2994bf47a01ab",
180
180
  "generatorProfile": "juntai.fuse.profile.http/v1",
181
181
  "namespace": "prismComposition",
182
182
  "outputPath": "src/generated/prism.composition",
183
- "outputSha256": "cd68165dd808c7882b9192bf81929a8d7d95f19befa45ddce1fda837940914f7"
183
+ "outputSha256": "e325ad3117f91284310a0a120a300ae0c04d3e09318b4de102c3a4020006ab5a"
184
184
  }
185
185
  ]
186
186
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zephytiju/juntai-typescript-sdk",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "Aggregate generated TypeScript clients for Console-facing Juntai services",
5
5
  "repository": {
6
6
  "type": "git",
@@ -200,39 +200,39 @@
200
200
  "serviceId": "prism.build",
201
201
  "ownerTeam": "Juntai Platform Team",
202
202
  "ownerRepository": "https://github.com/zephytiju/PrismBuildService",
203
- "sourceCommit": "aaeeb942a930701c7465a54b9aa3f1325f09bfc5",
204
- "serviceVersion": "1.0.0",
205
- "artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismBuildService/aaeeb942a930701c7465a54b9aa3f1325f09bfc5/openapi/prism-build.v1.json",
206
- "artifactManifestDigest": "sha256:cf332c94d3733ef5ba0562d9b9132e4850e747d877690c0a5fb5b2fc4d60df05",
203
+ "sourceCommit": "0c4dd23fbb7c830ac60a5c9810fa5ec07f501a96",
204
+ "serviceVersion": "1.2.0",
205
+ "artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismBuildService/0c4dd23fbb7c830ac60a5c9810fa5ec07f501a96/openapi/prism-build.v1.json",
206
+ "artifactManifestDigest": "sha256:b1ade0ca183abe5de71ebb9f80d7fc43b858cff9d9033745da308dc1e2c52523",
207
207
  "openapiPath": "openapi/prism-build.v1.json",
208
- "openapiSha256": "cf332c94d3733ef5ba0562d9b9132e4850e747d877690c0a5fb5b2fc4d60df05",
209
- "snapshotPath": "sources/artifacts/prism.build/cf332c94d3733ef5ba0562d9b9132e4850e747d877690c0a5fb5b2fc4d60df05.json",
208
+ "openapiSha256": "b1ade0ca183abe5de71ebb9f80d7fc43b858cff9d9033745da308dc1e2c52523",
209
+ "snapshotPath": "sources/artifacts/prism.build/b1ade0ca183abe5de71ebb9f80d7fc43b858cff9d9033745da308dc1e2c52523.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
- "compatibility": "initial",
214
+ "compatibility": "compatible",
215
215
  "outputPath": "src/generated/prism.build",
216
- "outputSha256": "30d0ce86c96eeb9db9d380ee5a1b2e3274ff5687d9b9a7abb143c0c95ff7459d"
216
+ "outputSha256": "abf35af93b90fed63391b84c195bc2f964bdd8edb4a2c1cbce6ff8bd5607313b"
217
217
  },
218
218
  {
219
219
  "serviceId": "prism.composition",
220
220
  "ownerTeam": "Juntai Platform Team",
221
221
  "ownerRepository": "https://github.com/zephytiju/PrismCompositionService",
222
- "sourceCommit": "8fcf6fcc5f19c167664b259b566d6c6e28212c95",
223
- "serviceVersion": "1.0.0",
224
- "artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismCompositionService/8fcf6fcc5f19c167664b259b566d6c6e28212c95/contracts/openapi.v1.json",
225
- "artifactManifestDigest": "sha256:e20be8283fe7bc163284a226853bb710ed0e4d45c8830b81600f32d389fde66f",
222
+ "sourceCommit": "c7133c391278d852b3e7e80f617223a4e1b31e46",
223
+ "serviceVersion": "1.2.0",
224
+ "artifactLocator": "https://raw.githubusercontent.com/zephytiju/PrismCompositionService/c7133c391278d852b3e7e80f617223a4e1b31e46/contracts/openapi.v1.json",
225
+ "artifactManifestDigest": "sha256:d2f1dcff7d533d5995b4547062d2ad38f9cfe703f99f14a594a2994bf47a01ab",
226
226
  "openapiPath": "contracts/openapi.v1.json",
227
- "openapiSha256": "e20be8283fe7bc163284a226853bb710ed0e4d45c8830b81600f32d389fde66f",
228
- "snapshotPath": "sources/artifacts/prism.composition/e20be8283fe7bc163284a226853bb710ed0e4d45c8830b81600f32d389fde66f.json",
227
+ "openapiSha256": "d2f1dcff7d533d5995b4547062d2ad38f9cfe703f99f14a594a2994bf47a01ab",
228
+ "snapshotPath": "sources/artifacts/prism.composition/d2f1dcff7d533d5995b4547062d2ad38f9cfe703f99f14a594a2994bf47a01ab.json",
229
229
  "generatorName": "@hey-api/openapi-ts",
230
230
  "generatorVersion": "0.99.0",
231
231
  "generatorProfile": "juntai.fuse.profile.http/v1",
232
232
  "namespace": "prismComposition",
233
- "compatibility": "initial",
233
+ "compatibility": "compatible",
234
234
  "outputPath": "src/generated/prism.composition",
235
- "outputSha256": "cd68165dd808c7882b9192bf81929a8d7d95f19befa45ddce1fda837940914f7"
235
+ "outputSha256": "e325ad3117f91284310a0a120a300ae0c04d3e09318b4de102c3a4020006ab5a"
236
236
  }
237
237
  ]
238
238
  }