@vcp-dev/contracts 0.10.22 → 0.10.24

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.
@@ -301,6 +301,35 @@ export declare const RecoverDesignerPageProjectionResponseSchema: z.ZodObject<{
301
301
  }, z.core.$strict>;
302
302
  }, z.core.$strict>;
303
303
  export type RecoverDesignerPageProjectionResponse = z.infer<typeof RecoverDesignerPageProjectionResponseSchema>;
304
+ /** Read-only recovery gate; uncertainty must keep editing protected. */
305
+ export declare const CheckDesignerPageProjectionRequestSchema: z.ZodObject<{
306
+ snapshot_id: z.ZodUUID;
307
+ }, z.core.$strict>;
308
+ export type CheckDesignerPageProjectionRequest = z.infer<typeof CheckDesignerPageProjectionRequestSchema>;
309
+ export declare const CheckDesignerPageProjectionResultSchema: z.ZodObject<{
310
+ snapshot_id: z.ZodUUID;
311
+ status: z.ZodEnum<{
312
+ required: "required";
313
+ unknown: "unknown";
314
+ converged: "converged";
315
+ }>;
316
+ reason: z.ZodOptional<z.ZodString>;
317
+ }, z.core.$strict>;
318
+ export type CheckDesignerPageProjectionResult = z.infer<typeof CheckDesignerPageProjectionResultSchema>;
319
+ export declare const CheckDesignerPageProjectionResponseSchema: z.ZodObject<{
320
+ code: z.ZodLiteral<0>;
321
+ message: z.ZodLiteral<"ok">;
322
+ data: z.ZodObject<{
323
+ snapshot_id: z.ZodUUID;
324
+ status: z.ZodEnum<{
325
+ required: "required";
326
+ unknown: "unknown";
327
+ converged: "converged";
328
+ }>;
329
+ reason: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strict>;
331
+ }, z.core.$strict>;
332
+ export type CheckDesignerPageProjectionResponse = z.infer<typeof CheckDesignerPageProjectionResponseSchema>;
304
333
  export declare const DeleteDesignerPageErrorDetailsSchema: z.ZodObject<{
305
334
  source_committed: z.ZodBoolean;
306
335
  result_snapshot_id: z.ZodOptional<z.ZodUUID>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export { BlockInteractionSchema, type BlockInteraction, } from "./block-interaction.js";
3
+ export { NextPageCodeErrorSchema, isNextPageCodeErrorCode, type NextPageCodeError, } from "./next-page-code-error.js";
3
4
  import { type TemplateVersion } from "./template-version.js";
4
5
  export { ApiResponseSchema } from "./api-response.js";
5
6
  export type { ApiResponse } from "./api-response.js";
@@ -23,6 +24,7 @@ export * from "./designer-component-library.js";
23
24
  export * from "./designer-page-library.js";
24
25
  export * from "./component-i18n-resources.js";
25
26
  export * from "./migration-products.js";
27
+ export * from "./migration-product-breadcrumb.js";
26
28
  export { PLATFORM_OWNED_PAGE_SLUGS, PLATFORM_OWNED_ROUTE_FILE_PATHS, PAGE_SLUG_PATTERN, PAGE_SLUG_SEGMENT_PATTERN_SOURCE, canonicalizePageSlug, isCanonicalPageSlug, pageSlugToRouteFilePath, tryCanonicalizeAsciiPageSlug, } from "./page-slug.js";
27
29
  export * from "./site-deletion-blockers.js";
28
30
  export * from "./site-edit-capability.js";
@@ -3490,6 +3492,7 @@ export declare const PrepareVersionPreviewRequestSchema: z.ZodObject<{
3490
3492
  snapshot_id: z.ZodUUID;
3491
3493
  force_rehydrate: z.ZodOptional<z.ZodBoolean>;
3492
3494
  recovery_required: z.ZodOptional<z.ZodBoolean>;
3495
+ required_cms_site_id: z.ZodOptional<z.ZodString>;
3493
3496
  }, z.core.$strip>;
3494
3497
  export type PrepareVersionPreviewRequest = z.infer<typeof PrepareVersionPreviewRequestSchema>;
3495
3498
  export declare const PrepareVersionPreviewResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3502,12 +3505,31 @@ export declare const PrepareVersionPreviewResponseSchema: z.ZodDiscriminatedUnio
3502
3505
  code: z.ZodString;
3503
3506
  message: z.ZodString;
3504
3507
  retryable: z.ZodBoolean;
3508
+ snapshot_id: z.ZodOptional<z.ZodUUID>;
3509
+ code_error: z.ZodOptional<z.ZodObject<{
3510
+ code: z.ZodEnum<{
3511
+ NEXT_PAGE_CODE_ERROR: "NEXT_PAGE_CODE_ERROR";
3512
+ NEXT_CLIENT_COMPONENT_FUNCTION_PROP: "NEXT_CLIENT_COMPONENT_FUNCTION_PROP";
3513
+ }>;
3514
+ message: z.ZodString;
3515
+ messages: z.ZodArray<z.ZodString>;
3516
+ source_paths: z.ZodArray<z.ZodString>;
3517
+ components: z.ZodArray<z.ZodString>;
3518
+ stack: z.ZodArray<z.ZodObject<{
3519
+ file: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3520
+ line: z.ZodNumber;
3521
+ column: z.ZodNumber;
3522
+ function: z.ZodString;
3523
+ generated: z.ZodBoolean;
3524
+ }, z.core.$strict>>;
3525
+ }, z.core.$strict>>;
3505
3526
  }, z.core.$strip>], "status">;
3506
3527
  export type PrepareVersionPreviewResponse = z.infer<typeof PrepareVersionPreviewResponseSchema>;
3507
3528
  export declare const InternalPrepareSubsitePreviewRequestSchema: z.ZodObject<{
3508
3529
  tenant_id: z.ZodString;
3509
3530
  site_id: z.ZodUUID;
3510
3531
  snapshot_id: z.ZodUUID;
3532
+ cms_site_id: z.ZodOptional<z.ZodString>;
3511
3533
  }, z.core.$strict>;
3512
3534
  export type InternalPrepareSubsitePreviewRequest = z.infer<typeof InternalPrepareSubsitePreviewRequestSchema>;
3513
3535
  export declare const InternalPrepareSubsitePreviewResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3520,6 +3542,24 @@ export declare const InternalPrepareSubsitePreviewResponseSchema: z.ZodDiscrimin
3520
3542
  code: z.ZodString;
3521
3543
  message: z.ZodString;
3522
3544
  retryable: z.ZodBoolean;
3545
+ snapshot_id: z.ZodOptional<z.ZodUUID>;
3546
+ code_error: z.ZodOptional<z.ZodObject<{
3547
+ code: z.ZodEnum<{
3548
+ NEXT_PAGE_CODE_ERROR: "NEXT_PAGE_CODE_ERROR";
3549
+ NEXT_CLIENT_COMPONENT_FUNCTION_PROP: "NEXT_CLIENT_COMPONENT_FUNCTION_PROP";
3550
+ }>;
3551
+ message: z.ZodString;
3552
+ messages: z.ZodArray<z.ZodString>;
3553
+ source_paths: z.ZodArray<z.ZodString>;
3554
+ components: z.ZodArray<z.ZodString>;
3555
+ stack: z.ZodArray<z.ZodObject<{
3556
+ file: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3557
+ line: z.ZodNumber;
3558
+ column: z.ZodNumber;
3559
+ function: z.ZodString;
3560
+ generated: z.ZodBoolean;
3561
+ }, z.core.$strict>>;
3562
+ }, z.core.$strict>>;
3523
3563
  }, z.core.$strip>], "status">;
3524
3564
  export type InternalPrepareSubsitePreviewResponse = z.infer<typeof InternalPrepareSubsitePreviewResponseSchema>;
3525
3565
  export declare const DeploymentStatusSchema: z.ZodEnum<{
@@ -20263,10 +20303,10 @@ export declare const REST_API_ENDPOINTS: readonly [{
20263
20303
  readonly method: "POST";
20264
20304
  readonly path: "/sites/:site_id/publish-workflow/:workflow_id/repair-task";
20265
20305
  readonly tag: "publish-workflow";
20266
- readonly summary: "Idempotently create the publish repair task.";
20306
+ readonly summary: "Retired repair task entry: returns 409 WORKSPACE_REPAIR_REQUIRED; use the Workspace repair action.";
20267
20307
  readonly status: "implemented";
20268
20308
  readonly request_body_schema: "SitePublishWorkflowRevisionRequestSchema";
20269
- readonly response_schema: "SitePublishWorkflowQualityResponseSchema";
20309
+ readonly response_schema: "ApiErrorEnvelopeSchema";
20270
20310
  }, {
20271
20311
  readonly method: "GET";
20272
20312
  readonly path: "/sites/:site_id/publish-workflow/:workflow_id";
@@ -21203,7 +21243,7 @@ export declare const WorkspaceClientMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
21203
21243
  }, z.core.$strict>;
21204
21244
  }, z.core.$strip>, z.ZodObject<{
21205
21245
  kind: z.ZodLiteral<"move-node">;
21206
- target: z.ZodUnion<readonly [z.ZodObject<{
21246
+ target: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
21207
21247
  relation: z.ZodEnum<{
21208
21248
  before: "before";
21209
21249
  after: "after";
@@ -21231,6 +21271,13 @@ export declare const WorkspaceClientMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
21231
21271
  prepend: "prepend";
21232
21272
  append: "append";
21233
21273
  }>;
21274
+ }, z.core.$strict>]>, z.ZodObject<{
21275
+ kind: z.ZodLiteral<"source-sibling">;
21276
+ relation: z.ZodEnum<{
21277
+ before: "before";
21278
+ after: "after";
21279
+ }>;
21280
+ anchorKey: z.ZodString;
21234
21281
  }, z.core.$strict>]>;
21235
21282
  preserveBindings: z.ZodOptional<z.ZodBoolean>;
21236
21283
  }, z.core.$strip>, z.ZodObject<{
@@ -22456,7 +22503,7 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
22456
22503
  }, z.core.$strict>;
22457
22504
  }, z.core.$strip>, z.ZodObject<{
22458
22505
  kind: z.ZodLiteral<"move-node">;
22459
- target: z.ZodUnion<readonly [z.ZodObject<{
22506
+ target: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
22460
22507
  relation: z.ZodEnum<{
22461
22508
  before: "before";
22462
22509
  after: "after";
@@ -22484,6 +22531,13 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
22484
22531
  prepend: "prepend";
22485
22532
  append: "append";
22486
22533
  }>;
22534
+ }, z.core.$strict>]>, z.ZodObject<{
22535
+ kind: z.ZodLiteral<"source-sibling">;
22536
+ relation: z.ZodEnum<{
22537
+ before: "before";
22538
+ after: "after";
22539
+ }>;
22540
+ anchorKey: z.ZodString;
22487
22541
  }, z.core.$strict>]>;
22488
22542
  preserveBindings: z.ZodOptional<z.ZodBoolean>;
22489
22543
  }, z.core.$strip>, z.ZodObject<{