@vcp-dev/contracts 0.6.8 → 0.6.9

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.
@@ -12,6 +12,16 @@ export declare const DesignerPageResourceTypeSchema: z.ZodEnum<{
12
12
  pages: "pages";
13
13
  }>;
14
14
  export type DesignerPageResourceType = z.infer<typeof DesignerPageResourceTypeSchema>;
15
+ export declare const DesignerPageResourceSourceSchema: z.ZodObject<{
16
+ resource_id: z.ZodString;
17
+ resource_type: z.ZodEnum<{
18
+ page: "page";
19
+ pages: "pages";
20
+ }>;
21
+ resolved_version: z.ZodString;
22
+ template_page_id: z.ZodString;
23
+ }, z.core.$strict>;
24
+ export type DesignerPageResourceSource = z.infer<typeof DesignerPageResourceSourceSchema>;
15
25
  export interface DesignerPageCategoryNode {
16
26
  readonly id: string;
17
27
  readonly key: string;
@@ -83,6 +93,27 @@ export type PageResourcePageSelection = z.infer<typeof PageResourcePageSelection
83
93
  export declare const PageResourceDraftPageSchema: z.ZodObject<{
84
94
  template_page_id: z.ZodString;
85
95
  title: z.ZodString;
96
+ source: z.ZodOptional<z.ZodObject<{
97
+ resource_id: z.ZodString;
98
+ resource_type: z.ZodEnum<{
99
+ page: "page";
100
+ pages: "pages";
101
+ }>;
102
+ resolved_version: z.ZodString;
103
+ template_page_id: z.ZodString;
104
+ }, z.core.$strict>>;
105
+ blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
106
+ kind: z.ZodLiteral<"package-component">;
107
+ instance_id: z.ZodString;
108
+ component_id: z.ZodString;
109
+ label: z.ZodString;
110
+ }, z.core.$strict>, z.ZodObject<{
111
+ kind: z.ZodLiteral<"component-resource">;
112
+ instance_id: z.ZodString;
113
+ resource_id: z.ZodString;
114
+ resolved_version: z.ZodString;
115
+ label: z.ZodString;
116
+ }, z.core.$strict>], "kind">>>;
86
117
  route: z.ZodObject<{
87
118
  input: z.ZodString;
88
119
  append_random_suffix: z.ZodOptional<z.ZodBoolean>;
@@ -101,6 +132,27 @@ export declare const PageResourceDraftSchema: z.ZodObject<{
101
132
  pages: z.ZodArray<z.ZodObject<{
102
133
  template_page_id: z.ZodString;
103
134
  title: z.ZodString;
135
+ source: z.ZodOptional<z.ZodObject<{
136
+ resource_id: z.ZodString;
137
+ resource_type: z.ZodEnum<{
138
+ page: "page";
139
+ pages: "pages";
140
+ }>;
141
+ resolved_version: z.ZodString;
142
+ template_page_id: z.ZodString;
143
+ }, z.core.$strict>>;
144
+ blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
145
+ kind: z.ZodLiteral<"package-component">;
146
+ instance_id: z.ZodString;
147
+ component_id: z.ZodString;
148
+ label: z.ZodString;
149
+ }, z.core.$strict>, z.ZodObject<{
150
+ kind: z.ZodLiteral<"component-resource">;
151
+ instance_id: z.ZodString;
152
+ resource_id: z.ZodString;
153
+ resolved_version: z.ZodString;
154
+ label: z.ZodString;
155
+ }, z.core.$strict>], "kind">>>;
104
156
  route: z.ZodObject<{
105
157
  input: z.ZodString;
106
158
  append_random_suffix: z.ZodOptional<z.ZodBoolean>;
@@ -308,6 +360,12 @@ export type PageResourceRouteMapping = z.infer<typeof PageResourceRouteMappingSc
308
360
  export declare const DesignerPageResourceTemplateSchema: z.ZodObject<{
309
361
  template_page_id: z.ZodString;
310
362
  title: z.ZodString;
363
+ composition_supported: z.ZodBoolean;
364
+ blocks: z.ZodArray<z.ZodObject<{
365
+ instance_id: z.ZodString;
366
+ component_id: z.ZodString;
367
+ label: z.ZodString;
368
+ }, z.core.$strict>>;
311
369
  }, z.core.$strict>;
312
370
  export type DesignerPageResourceTemplate = z.infer<typeof DesignerPageResourceTemplateSchema>;
313
371
  export declare const DesignerPageResourcePreparationDataSchema: z.ZodObject<{
@@ -320,6 +378,12 @@ export declare const DesignerPageResourcePreparationDataSchema: z.ZodObject<{
320
378
  pages: z.ZodArray<z.ZodObject<{
321
379
  template_page_id: z.ZodString;
322
380
  title: z.ZodString;
381
+ composition_supported: z.ZodBoolean;
382
+ blocks: z.ZodArray<z.ZodObject<{
383
+ instance_id: z.ZodString;
384
+ component_id: z.ZodString;
385
+ label: z.ZodString;
386
+ }, z.core.$strict>>;
323
387
  }, z.core.$strict>>;
324
388
  }, z.core.$strict>;
325
389
  export type DesignerPageResourcePreparationData = z.infer<typeof DesignerPageResourcePreparationDataSchema>;
@@ -331,6 +395,48 @@ export declare const PrepareDesignerPageBodySchema: z.ZodObject<{
331
395
  version: z.ZodString;
332
396
  }, z.core.$strict>;
333
397
  export type PrepareDesignerPageBody = z.infer<typeof PrepareDesignerPageBodySchema>;
398
+ export declare const ComposeDesignerPageResourceBodySchema: z.ZodObject<{
399
+ draft: z.ZodObject<{
400
+ resource_id: z.ZodString;
401
+ resource_type: z.ZodEnum<{
402
+ page: "page";
403
+ pages: "pages";
404
+ }>;
405
+ resolved_version: z.ZodString;
406
+ pages: z.ZodArray<z.ZodObject<{
407
+ template_page_id: z.ZodString;
408
+ title: z.ZodString;
409
+ source: z.ZodOptional<z.ZodObject<{
410
+ resource_id: z.ZodString;
411
+ resource_type: z.ZodEnum<{
412
+ page: "page";
413
+ pages: "pages";
414
+ }>;
415
+ resolved_version: z.ZodString;
416
+ template_page_id: z.ZodString;
417
+ }, z.core.$strict>>;
418
+ blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
419
+ kind: z.ZodLiteral<"package-component">;
420
+ instance_id: z.ZodString;
421
+ component_id: z.ZodString;
422
+ label: z.ZodString;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ kind: z.ZodLiteral<"component-resource">;
425
+ instance_id: z.ZodString;
426
+ resource_id: z.ZodString;
427
+ resolved_version: z.ZodString;
428
+ label: z.ZodString;
429
+ }, z.core.$strict>], "kind">>>;
430
+ route: z.ZodObject<{
431
+ input: z.ZodString;
432
+ append_random_suffix: z.ZodOptional<z.ZodBoolean>;
433
+ random_suffix_length: z.ZodOptional<z.ZodNumber>;
434
+ final: z.ZodString;
435
+ }, z.core.$strict>;
436
+ }, z.core.$strict>>;
437
+ }, z.core.$strict>;
438
+ }, z.core.$strict>;
439
+ export type ComposeDesignerPageResourceBody = z.infer<typeof ComposeDesignerPageResourceBodySchema>;
334
440
  export declare const DesignerSitePageSchema: z.ZodObject<{
335
441
  title: z.ZodString;
336
442
  route_id: z.ZodString;
package/dist/index.d.ts CHANGED
@@ -1146,6 +1146,12 @@ export declare const PrepareDesignerPageResponseSchema: z.ZodObject<{
1146
1146
  pages: z.ZodArray<z.ZodObject<{
1147
1147
  template_page_id: z.ZodString;
1148
1148
  title: z.ZodString;
1149
+ composition_supported: z.ZodBoolean;
1150
+ blocks: z.ZodArray<z.ZodObject<{
1151
+ instance_id: z.ZodString;
1152
+ component_id: z.ZodString;
1153
+ label: z.ZodString;
1154
+ }, z.core.$strict>>;
1149
1155
  }, z.core.$strict>>;
1150
1156
  }, z.core.$strict>;
1151
1157
  message: z.ZodString;
@@ -2241,10 +2247,10 @@ export declare const CreateAgentRunResponseSchema: z.ZodObject<{
2241
2247
  export type CreateAgentRunResponse = z.infer<typeof CreateAgentRunResponseSchema>;
2242
2248
  export declare const SnapshotStatusSchema: z.ZodEnum<{
2243
2249
  failed: "failed";
2250
+ draft: "draft";
2244
2251
  candidate: "candidate";
2245
2252
  current: "current";
2246
2253
  deleting: "deleting";
2247
- draft: "draft";
2248
2254
  }>;
2249
2255
  export type SnapshotStatus = z.infer<typeof SnapshotStatusSchema>;
2250
2256
  export declare const SnapshotRecordSchema: z.ZodObject<{
@@ -2265,10 +2271,10 @@ export declare const SnapshotRecordSchema: z.ZodObject<{
2265
2271
  }>;
2266
2272
  status: z.ZodEnum<{
2267
2273
  failed: "failed";
2274
+ draft: "draft";
2268
2275
  candidate: "candidate";
2269
2276
  current: "current";
2270
2277
  deleting: "deleting";
2271
- draft: "draft";
2272
2278
  }>;
2273
2279
  created_at: z.ZodString;
2274
2280
  }, z.core.$strip>;
@@ -2288,9 +2294,9 @@ export declare const PersistSiteSnapshotRequestSchema: z.ZodObject<{
2288
2294
  }>;
2289
2295
  status: z.ZodDefault<z.ZodEnum<{
2290
2296
  failed: "failed";
2297
+ draft: "draft";
2291
2298
  candidate: "candidate";
2292
2299
  current: "current";
2293
- draft: "draft";
2294
2300
  }>>;
2295
2301
  source_run_id: z.ZodOptional<z.ZodString>;
2296
2302
  }, z.core.$strip>;
@@ -2529,10 +2535,10 @@ export declare const PersistSiteSnapshotResponseSchema: z.ZodObject<{
2529
2535
  }>;
2530
2536
  status: z.ZodEnum<{
2531
2537
  failed: "failed";
2538
+ draft: "draft";
2532
2539
  candidate: "candidate";
2533
2540
  current: "current";
2534
2541
  deleting: "deleting";
2535
- draft: "draft";
2536
2542
  }>;
2537
2543
  created_at: z.ZodString;
2538
2544
  }, z.core.$strip>;
@@ -2786,10 +2792,10 @@ export declare const PromoteSiteSnapshotResponseSchema: z.ZodObject<{
2786
2792
  }>;
2787
2793
  status: z.ZodEnum<{
2788
2794
  failed: "failed";
2795
+ draft: "draft";
2789
2796
  candidate: "candidate";
2790
2797
  current: "current";
2791
2798
  deleting: "deleting";
2792
- draft: "draft";
2793
2799
  }>;
2794
2800
  created_at: z.ZodString;
2795
2801
  }, z.core.$strip>;
@@ -2815,10 +2821,10 @@ export declare const AbandonSiteSnapshotResponseSchema: z.ZodObject<{
2815
2821
  }>;
2816
2822
  status: z.ZodEnum<{
2817
2823
  failed: "failed";
2824
+ draft: "draft";
2818
2825
  candidate: "candidate";
2819
2826
  current: "current";
2820
2827
  deleting: "deleting";
2821
- draft: "draft";
2822
2828
  }>;
2823
2829
  created_at: z.ZodString;
2824
2830
  }, z.core.$strip>;
@@ -2882,10 +2888,10 @@ export declare const SiteVersionListItemSchema: z.ZodObject<{
2882
2888
  }>;
2883
2889
  status: z.ZodEnum<{
2884
2890
  failed: "failed";
2891
+ draft: "draft";
2885
2892
  candidate: "candidate";
2886
2893
  current: "current";
2887
2894
  deleting: "deleting";
2888
- draft: "draft";
2889
2895
  }>;
2890
2896
  }, z.core.$strip>;
2891
2897
  export type SiteVersionListItem = z.infer<typeof SiteVersionListItemSchema>;
@@ -3167,10 +3173,10 @@ export declare const PromoteTemplateUpgradeSnapshotResponseSchema: z.ZodObject<{
3167
3173
  }>;
3168
3174
  status: z.ZodEnum<{
3169
3175
  failed: "failed";
3176
+ draft: "draft";
3170
3177
  candidate: "candidate";
3171
3178
  current: "current";
3172
3179
  deleting: "deleting";
3173
- draft: "draft";
3174
3180
  }>;
3175
3181
  created_at: z.ZodString;
3176
3182
  }, z.core.$strip>;
@@ -3197,10 +3203,10 @@ export declare const ListSiteVersionsResponseSchema: z.ZodObject<{
3197
3203
  }>;
3198
3204
  status: z.ZodEnum<{
3199
3205
  failed: "failed";
3206
+ draft: "draft";
3200
3207
  candidate: "candidate";
3201
3208
  current: "current";
3202
3209
  deleting: "deleting";
3203
- draft: "draft";
3204
3210
  }>;
3205
3211
  }, z.core.$strip>>;
3206
3212
  }, z.core.$strip>;
@@ -3439,10 +3445,10 @@ export declare const RestoreSiteSnapshotResponseSchema: z.ZodObject<{
3439
3445
  }>;
3440
3446
  status: z.ZodEnum<{
3441
3447
  failed: "failed";
3448
+ draft: "draft";
3442
3449
  candidate: "candidate";
3443
3450
  current: "current";
3444
3451
  deleting: "deleting";
3445
- draft: "draft";
3446
3452
  }>;
3447
3453
  created_at: z.ZodString;
3448
3454
  }, z.core.$strip>;
@@ -12570,6 +12576,15 @@ export declare const REST_API_ENDPOINTS: readonly [{
12570
12576
  readonly status: "implemented";
12571
12577
  readonly request_body_schema: "EnhanceDesignerPageResourceBodySchema";
12572
12578
  readonly response_schema: "EnhanceDesignerPageResourceResponseSchema";
12579
+ }, {
12580
+ readonly method: "POST";
12581
+ readonly path: "/sites/:site_id/designer/page-resources/compose";
12582
+ readonly tag: "designer-page-library";
12583
+ readonly summary: "Compose exact page and component resources into one strict page artifact.";
12584
+ readonly status: "implemented";
12585
+ readonly request_body_schema: "ComposeDesignerPageResourceBodySchema";
12586
+ readonly response_schema: "InstallDesignerPageResponseSchema";
12587
+ readonly notes: readonly ["The server installs every immutable source, validates ordered page blocks, scopes component materializations, and returns one artifact without exposing resource-platform credentials."];
12573
12588
  }, {
12574
12589
  readonly method: "POST";
12575
12590
  readonly path: "/sites/:site_id/designer/page-resources/blank";
@@ -15046,8 +15061,8 @@ export declare const ApplyPatchBatchPatchSchema: z.ZodObject<{
15046
15061
  export declare const MediaRequestOwnerSchema: z.ZodObject<{
15047
15062
  kind: z.ZodEnum<{
15048
15063
  page: "page";
15049
- site: "site";
15050
15064
  block: "block";
15065
+ site: "site";
15051
15066
  chrome: "chrome";
15052
15067
  }>;
15053
15068
  id: z.ZodString;
@@ -15058,8 +15073,8 @@ export declare const WorkspaceMediaRequestSchema: z.ZodObject<{
15058
15073
  owner: z.ZodObject<{
15059
15074
  kind: z.ZodEnum<{
15060
15075
  page: "page";
15061
- site: "site";
15062
15076
  block: "block";
15077
+ site: "site";
15063
15078
  chrome: "chrome";
15064
15079
  }>;
15065
15080
  id: z.ZodString;
@@ -15110,8 +15125,8 @@ export declare const ApplyPatchBatchInputSchema: z.ZodObject<{
15110
15125
  owner: z.ZodObject<{
15111
15126
  kind: z.ZodEnum<{
15112
15127
  page: "page";
15113
- site: "site";
15114
15128
  block: "block";
15129
+ site: "site";
15115
15130
  chrome: "chrome";
15116
15131
  }>;
15117
15132
  id: z.ZodString;
@@ -15173,8 +15188,8 @@ export declare const ApplyPatchBatchToolInputSchema: z.ZodObject<{
15173
15188
  owner: z.ZodObject<{
15174
15189
  kind: z.ZodEnum<{
15175
15190
  page: "page";
15176
- site: "site";
15177
15191
  block: "block";
15192
+ site: "site";
15178
15193
  chrome: "chrome";
15179
15194
  }>;
15180
15195
  id: z.ZodString;