@vcp-dev/contracts 0.8.5 → 0.9.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.
@@ -29,10 +29,22 @@ export declare const DomainDnsVerificationStatusSchema: z.ZodEnum<{
29
29
  verified: "verified";
30
30
  }>;
31
31
  export type DomainDnsVerificationStatus = z.infer<typeof DomainDnsVerificationStatusSchema>;
32
+ export declare const DOMAIN_DNS_REMEDIATION_STATUSES: readonly ["not_applicable", "unavailable", "not_needed", "auto_applied", "confirmation_required", "blocked"];
33
+ export declare const DomainDnsRemediationStatusSchema: z.ZodEnum<{
34
+ not_applicable: "not_applicable";
35
+ unavailable: "unavailable";
36
+ not_needed: "not_needed";
37
+ auto_applied: "auto_applied";
38
+ confirmation_required: "confirmation_required";
39
+ blocked: "blocked";
40
+ }>;
41
+ export type DomainDnsRemediationStatus = z.infer<typeof DomainDnsRemediationStatusSchema>;
32
42
  export declare const DomainOperationTypeSchema: z.ZodEnum<{
33
43
  prepare_configuration: "prepare_configuration";
34
44
  apply_configuration: "apply_configuration";
35
45
  verify_dns: "verify_dns";
46
+ remediate_dns: "remediate_dns";
47
+ confirm_dns_remediation: "confirm_dns_remediation";
36
48
  }>;
37
49
  export type DomainOperationType = z.infer<typeof DomainOperationTypeSchema>;
38
50
  export declare const DomainOperationStatusSchema: z.ZodEnum<{
@@ -73,6 +85,77 @@ export declare const DomainDnsVerificationResultSchema: z.ZodObject<{
73
85
  }, z.core.$strict>>;
74
86
  }, z.core.$strict>;
75
87
  export type DomainDnsVerificationResult = z.infer<typeof DomainDnsVerificationResultSchema>;
88
+ export declare const DomainDnsRemediationRecordSchema: z.ZodObject<{
89
+ type: z.ZodString;
90
+ name: z.ZodString;
91
+ value: z.ZodString;
92
+ ttl: z.ZodNullable<z.ZodNumber>;
93
+ }, z.core.$strict>;
94
+ export type DomainDnsRemediationRecord = z.infer<typeof DomainDnsRemediationRecordSchema>;
95
+ export declare const DomainDnsRemediationChangeSchema: z.ZodObject<{
96
+ purpose: z.ZodEnum<{
97
+ traffic: "traffic";
98
+ ownership: "ownership";
99
+ certificate_delegation: "certificate_delegation";
100
+ }>;
101
+ action: z.ZodEnum<{
102
+ blocked: "blocked";
103
+ none: "none";
104
+ create: "create";
105
+ update: "update";
106
+ }>;
107
+ before: z.ZodNullable<z.ZodObject<{
108
+ type: z.ZodString;
109
+ name: z.ZodString;
110
+ value: z.ZodString;
111
+ ttl: z.ZodNullable<z.ZodNumber>;
112
+ }, z.core.$strict>>;
113
+ after: z.ZodNullable<z.ZodObject<{
114
+ type: z.ZodString;
115
+ name: z.ZodString;
116
+ value: z.ZodString;
117
+ ttl: z.ZodNullable<z.ZodNumber>;
118
+ }, z.core.$strict>>;
119
+ }, z.core.$strict>;
120
+ export type DomainDnsRemediationChange = z.infer<typeof DomainDnsRemediationChangeSchema>;
121
+ /** Browser-safe diagnostics from one completed Cloud remediate_dns operation. */
122
+ export declare const DomainDnsRemediationResultSchema: z.ZodObject<{
123
+ domainId: z.ZodString;
124
+ status: z.ZodEnum<{
125
+ not_applicable: "not_applicable";
126
+ unavailable: "unavailable";
127
+ not_needed: "not_needed";
128
+ auto_applied: "auto_applied";
129
+ confirmation_required: "confirmation_required";
130
+ blocked: "blocked";
131
+ }>;
132
+ changes: z.ZodArray<z.ZodObject<{
133
+ purpose: z.ZodEnum<{
134
+ traffic: "traffic";
135
+ ownership: "ownership";
136
+ certificate_delegation: "certificate_delegation";
137
+ }>;
138
+ action: z.ZodEnum<{
139
+ blocked: "blocked";
140
+ none: "none";
141
+ create: "create";
142
+ update: "update";
143
+ }>;
144
+ before: z.ZodNullable<z.ZodObject<{
145
+ type: z.ZodString;
146
+ name: z.ZodString;
147
+ value: z.ZodString;
148
+ ttl: z.ZodNullable<z.ZodNumber>;
149
+ }, z.core.$strict>>;
150
+ after: z.ZodNullable<z.ZodObject<{
151
+ type: z.ZodString;
152
+ name: z.ZodString;
153
+ value: z.ZodString;
154
+ ttl: z.ZodNullable<z.ZodNumber>;
155
+ }, z.core.$strict>>;
156
+ }, z.core.$strict>>;
157
+ }, z.core.$strict>;
158
+ export type DomainDnsRemediationResult = z.infer<typeof DomainDnsRemediationResultSchema>;
76
159
  export declare const DomainDnsRecordSchema: z.ZodObject<{
77
160
  purpose: z.ZodEnum<{
78
161
  traffic: "traffic";
@@ -188,6 +271,8 @@ export declare const DomainOperationSchema: z.ZodObject<{
188
271
  prepare_configuration: "prepare_configuration";
189
272
  apply_configuration: "apply_configuration";
190
273
  verify_dns: "verify_dns";
274
+ remediate_dns: "remediate_dns";
275
+ confirm_dns_remediation: "confirm_dns_remediation";
191
276
  }>;
192
277
  status: z.ZodEnum<{
193
278
  failed: "failed";
@@ -199,7 +284,7 @@ export declare const DomainOperationSchema: z.ZodObject<{
199
284
  code: z.ZodString;
200
285
  message: z.ZodString;
201
286
  }, z.core.$strict>>;
202
- result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
287
+ result: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
203
288
  ready: z.ZodBoolean;
204
289
  providerReady: z.ZodBoolean;
205
290
  dnsVerified: z.ZodBoolean;
@@ -212,6 +297,41 @@ export declare const DomainOperationSchema: z.ZodObject<{
212
297
  verified: z.ZodBoolean;
213
298
  observedValues: z.ZodArray<z.ZodString>;
214
299
  }, z.core.$strict>>;
215
- }, z.core.$strict>>>;
300
+ }, z.core.$strict>, z.ZodObject<{
301
+ domainId: z.ZodString;
302
+ status: z.ZodEnum<{
303
+ not_applicable: "not_applicable";
304
+ unavailable: "unavailable";
305
+ not_needed: "not_needed";
306
+ auto_applied: "auto_applied";
307
+ confirmation_required: "confirmation_required";
308
+ blocked: "blocked";
309
+ }>;
310
+ changes: z.ZodArray<z.ZodObject<{
311
+ purpose: z.ZodEnum<{
312
+ traffic: "traffic";
313
+ ownership: "ownership";
314
+ certificate_delegation: "certificate_delegation";
315
+ }>;
316
+ action: z.ZodEnum<{
317
+ blocked: "blocked";
318
+ none: "none";
319
+ create: "create";
320
+ update: "update";
321
+ }>;
322
+ before: z.ZodNullable<z.ZodObject<{
323
+ type: z.ZodString;
324
+ name: z.ZodString;
325
+ value: z.ZodString;
326
+ ttl: z.ZodNullable<z.ZodNumber>;
327
+ }, z.core.$strict>>;
328
+ after: z.ZodNullable<z.ZodObject<{
329
+ type: z.ZodString;
330
+ name: z.ZodString;
331
+ value: z.ZodString;
332
+ ttl: z.ZodNullable<z.ZodNumber>;
333
+ }, z.core.$strict>>;
334
+ }, z.core.$strict>>;
335
+ }, z.core.$strict>]>>>;
216
336
  }, z.core.$strict>;
217
337
  export type DomainOperation = z.infer<typeof DomainOperationSchema>;
@@ -2062,11 +2062,11 @@ export declare const FormDesignErrorCodeSchema: z.ZodEnum<{
2062
2062
  }>;
2063
2063
  export type FormDesignErrorCode = z.infer<typeof FormDesignErrorCodeSchema>;
2064
2064
  export declare const FormDesignOperationNextActionSchema: z.ZodEnum<{
2065
+ none: "none";
2065
2066
  wait: "wait";
2066
2067
  resume: "resume";
2067
2068
  retry_new_operation: "retry_new_operation";
2068
2069
  manual_recovery: "manual_recovery";
2069
- none: "none";
2070
2070
  }>;
2071
2071
  export declare const FormDesignPreviewRefreshStatusSchema: z.ZodEnum<{
2072
2072
  failed: "failed";
@@ -2134,11 +2134,11 @@ export declare const FormDesignOperationSchema: z.ZodObject<{
2134
2134
  }>>;
2135
2135
  retryable: z.ZodBoolean;
2136
2136
  next_action: z.ZodEnum<{
2137
+ none: "none";
2137
2138
  wait: "wait";
2138
2139
  resume: "resume";
2139
2140
  retry_new_operation: "retry_new_operation";
2140
2141
  manual_recovery: "manual_recovery";
2141
- none: "none";
2142
2142
  }>;
2143
2143
  preview_refresh_status: z.ZodEnum<{
2144
2144
  failed: "failed";
@@ -2211,11 +2211,11 @@ export declare const FormDesignOperationResponseSchema: z.ZodObject<{
2211
2211
  }>>;
2212
2212
  retryable: z.ZodBoolean;
2213
2213
  next_action: z.ZodEnum<{
2214
+ none: "none";
2214
2215
  wait: "wait";
2215
2216
  resume: "resume";
2216
2217
  retry_new_operation: "retry_new_operation";
2217
2218
  manual_recovery: "manual_recovery";
2218
- none: "none";
2219
2219
  }>;
2220
2220
  preview_refresh_status: z.ZodEnum<{
2221
2221
  failed: "failed";
@@ -2289,11 +2289,11 @@ export declare const FormDesignSaveResponseSchema: z.ZodObject<{
2289
2289
  }>>;
2290
2290
  retryable: z.ZodBoolean;
2291
2291
  next_action: z.ZodEnum<{
2292
+ none: "none";
2292
2293
  wait: "wait";
2293
2294
  resume: "resume";
2294
2295
  retry_new_operation: "retry_new_operation";
2295
2296
  manual_recovery: "manual_recovery";
2296
- none: "none";
2297
2297
  }>;
2298
2298
  preview_refresh_status: z.ZodEnum<{
2299
2299
  failed: "failed";
@@ -2366,11 +2366,11 @@ export declare const FormDesignQueryResponseSchema: z.ZodObject<{
2366
2366
  }>>;
2367
2367
  retryable: z.ZodBoolean;
2368
2368
  next_action: z.ZodEnum<{
2369
+ none: "none";
2369
2370
  wait: "wait";
2370
2371
  resume: "resume";
2371
2372
  retry_new_operation: "retry_new_operation";
2372
2373
  manual_recovery: "manual_recovery";
2373
- none: "none";
2374
2374
  }>;
2375
2375
  preview_refresh_status: z.ZodEnum<{
2376
2376
  failed: "failed";
@@ -2449,11 +2449,11 @@ export declare const FormDesignResumeResponseSchema: z.ZodObject<{
2449
2449
  }>>;
2450
2450
  retryable: z.ZodBoolean;
2451
2451
  next_action: z.ZodEnum<{
2452
+ none: "none";
2452
2453
  wait: "wait";
2453
2454
  resume: "resume";
2454
2455
  retry_new_operation: "retry_new_operation";
2455
2456
  manual_recovery: "manual_recovery";
2456
- none: "none";
2457
2457
  }>;
2458
2458
  preview_refresh_status: z.ZodEnum<{
2459
2459
  failed: "failed";
@@ -2528,11 +2528,11 @@ export declare const FormDesignOperationRecordSchema: z.ZodObject<{
2528
2528
  }>>;
2529
2529
  retryable: z.ZodBoolean;
2530
2530
  next_action: z.ZodEnum<{
2531
+ none: "none";
2531
2532
  wait: "wait";
2532
2533
  resume: "resume";
2533
2534
  retry_new_operation: "retry_new_operation";
2534
2535
  manual_recovery: "manual_recovery";
2535
- none: "none";
2536
2536
  }>;
2537
2537
  preview_refresh_status: z.ZodEnum<{
2538
2538
  failed: "failed";
@@ -2830,11 +2830,11 @@ export declare const FormDesignOperationTransitionRequestSchema: z.ZodObject<{
2830
2830
  }>>>;
2831
2831
  retryable: z.ZodOptional<z.ZodBoolean>;
2832
2832
  next_action: z.ZodOptional<z.ZodEnum<{
2833
+ none: "none";
2833
2834
  wait: "wait";
2834
2835
  resume: "resume";
2835
2836
  retry_new_operation: "retry_new_operation";
2836
2837
  manual_recovery: "manual_recovery";
2837
- none: "none";
2838
2838
  }>>;
2839
2839
  preview_refresh_status: z.ZodOptional<z.ZodEnum<{
2840
2840
  failed: "failed";
package/dist/index.d.ts CHANGED
@@ -6279,24 +6279,6 @@ export declare const Step5SitemapDecisionSchema: z.ZodObject<{
6279
6279
  }, z.core.$strict>>>;
6280
6280
  }, z.core.$strict>;
6281
6281
  export type Step5SitemapDecision = z.infer<typeof Step5SitemapDecisionSchema>;
6282
- export declare const Step5StructurePlanPageSchema: z.ZodObject<{
6283
- order: z.ZodNumber;
6284
- menu_label: z.ZodString;
6285
- decision_stage: z.ZodString;
6286
- visitor_task: z.ZodString;
6287
- primary_cta: z.ZodString;
6288
- }, z.core.$strict>;
6289
- export type Step5StructurePlanPage = z.infer<typeof Step5StructurePlanPageSchema>;
6290
- export declare const Step5StructurePlanSchema: z.ZodObject<{
6291
- pages: z.ZodArray<z.ZodObject<{
6292
- order: z.ZodNumber;
6293
- menu_label: z.ZodString;
6294
- decision_stage: z.ZodString;
6295
- visitor_task: z.ZodString;
6296
- primary_cta: z.ZodString;
6297
- }, z.core.$strict>>;
6298
- }, z.core.$strict>;
6299
- export type Step5StructurePlan = z.infer<typeof Step5StructurePlanSchema>;
6300
6282
  /** Trusted VCP API → Sitemap Agent source;浏览器不能提交这些身份与策略字段。 */
6301
6283
  export declare const Step5SitemapSourceSchema: z.ZodObject<{
6302
6284
  kind: z.ZodLiteral<"step5_strategy">;
@@ -6341,15 +6323,6 @@ export declare const Step5SitemapSourceSchema: z.ZodObject<{
6341
6323
  region: z.ZodString;
6342
6324
  }, z.core.$strict>>>;
6343
6325
  }, z.core.$strict>>;
6344
- structure_plan: z.ZodOptional<z.ZodObject<{
6345
- pages: z.ZodArray<z.ZodObject<{
6346
- order: z.ZodNumber;
6347
- menu_label: z.ZodString;
6348
- decision_stage: z.ZodString;
6349
- visitor_task: z.ZodString;
6350
- primary_cta: z.ZodString;
6351
- }, z.core.$strict>>;
6352
- }, z.core.$strict>>;
6353
6326
  seo_keywords: z.ZodOptional<z.ZodArray<z.ZodObject<{
6354
6327
  id: z.ZodString;
6355
6328
  keyword: z.ZodString;
@@ -7015,15 +6988,6 @@ export declare const Step5SitemapRunInputSchema: z.ZodObject<{
7015
6988
  region: z.ZodString;
7016
6989
  }, z.core.$strict>>>;
7017
6990
  }, z.core.$strict>>;
7018
- structure_plan: z.ZodOptional<z.ZodObject<{
7019
- pages: z.ZodArray<z.ZodObject<{
7020
- order: z.ZodNumber;
7021
- menu_label: z.ZodString;
7022
- decision_stage: z.ZodString;
7023
- visitor_task: z.ZodString;
7024
- primary_cta: z.ZodString;
7025
- }, z.core.$strict>>;
7026
- }, z.core.$strict>>;
7027
6991
  seo_keywords: z.ZodOptional<z.ZodArray<z.ZodObject<{
7028
6992
  id: z.ZodString;
7029
6993
  keyword: z.ZodString;
@@ -7685,15 +7649,6 @@ export declare const SitemapGenerationInputSchema: z.ZodUnion<readonly [z.ZodObj
7685
7649
  region: z.ZodString;
7686
7650
  }, z.core.$strict>>>;
7687
7651
  }, z.core.$strict>>;
7688
- structure_plan: z.ZodOptional<z.ZodObject<{
7689
- pages: z.ZodArray<z.ZodObject<{
7690
- order: z.ZodNumber;
7691
- menu_label: z.ZodString;
7692
- decision_stage: z.ZodString;
7693
- visitor_task: z.ZodString;
7694
- primary_cta: z.ZodString;
7695
- }, z.core.$strict>>;
7696
- }, z.core.$strict>>;
7697
7652
  seo_keywords: z.ZodOptional<z.ZodArray<z.ZodObject<{
7698
7653
  id: z.ZodString;
7699
7654
  keyword: z.ZodString;
@@ -12343,8 +12298,8 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12343
12298
  block_id: z.ZodString;
12344
12299
  change_type: z.ZodEnum<{
12345
12300
  delete: "delete";
12346
- move: "move";
12347
12301
  update: "update";
12302
+ move: "move";
12348
12303
  add: "add";
12349
12304
  }>;
12350
12305
  at: z.ZodString;
@@ -13208,8 +13163,8 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
13208
13163
  block_id: z.ZodString;
13209
13164
  change_type: z.ZodEnum<{
13210
13165
  delete: "delete";
13211
- move: "move";
13212
13166
  update: "update";
13167
+ move: "move";
13213
13168
  add: "add";
13214
13169
  }>;
13215
13170
  at: z.ZodString;
@@ -14070,8 +14025,8 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
14070
14025
  block_id: z.ZodString;
14071
14026
  change_type: z.ZodEnum<{
14072
14027
  delete: "delete";
14073
- move: "move";
14074
14028
  update: "update";
14029
+ move: "move";
14075
14030
  add: "add";
14076
14031
  }>;
14077
14032
  at: z.ZodString;
@@ -14971,8 +14926,8 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
14971
14926
  block_id: z.ZodString;
14972
14927
  change_type: z.ZodEnum<{
14973
14928
  delete: "delete";
14974
- move: "move";
14975
14929
  update: "update";
14930
+ move: "move";
14976
14931
  add: "add";
14977
14932
  }>;
14978
14933
  at: z.ZodString;
@@ -15873,8 +15828,8 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
15873
15828
  block_id: z.ZodString;
15874
15829
  change_type: z.ZodEnum<{
15875
15830
  delete: "delete";
15876
- move: "move";
15877
15831
  update: "update";
15832
+ move: "move";
15878
15833
  add: "add";
15879
15834
  }>;
15880
15835
  at: z.ZodString;
@@ -16743,8 +16698,8 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
16743
16698
  block_id: z.ZodString;
16744
16699
  change_type: z.ZodEnum<{
16745
16700
  delete: "delete";
16746
- move: "move";
16747
16701
  update: "update";
16702
+ move: "move";
16748
16703
  add: "add";
16749
16704
  }>;
16750
16705
  at: z.ZodString;
@@ -18047,6 +18002,13 @@ export declare const REST_API_ENDPOINTS: readonly [{
18047
18002
  readonly summary: "Read the authoritative site domain configuration.";
18048
18003
  readonly status: "implemented";
18049
18004
  readonly response_schema: "GetSiteDomainConfigurationResponseSchema";
18005
+ }, {
18006
+ readonly method: "GET";
18007
+ readonly path: "/internal/sites/:site_id/active-domain";
18008
+ readonly tag: "internal/active-domain";
18009
+ readonly summary: "Read whether an internal site has an active primary domain.";
18010
+ readonly status: "implemented";
18011
+ readonly response_schema: "GetActiveSiteDomainResponseSchema";
18050
18012
  }, {
18051
18013
  readonly method: "POST";
18052
18014
  readonly path: "/sites/:site_id/publish-workflows/:workflow_id/domain/check";
@@ -18069,6 +18031,14 @@ export declare const REST_API_ENDPOINTS: readonly [{
18069
18031
  readonly summary: "Recover or reconcile the current publish workflow domain operation.";
18070
18032
  readonly status: "implemented";
18071
18033
  readonly response_schema: "ReconcileSitePublishDomainOperationResponseSchema";
18034
+ }, {
18035
+ readonly method: "POST";
18036
+ readonly path: "/sites/:site_id/publish-workflows/:workflow_id/domain/remediation/confirm";
18037
+ readonly tag: "publish-workflow";
18038
+ readonly summary: "Confirm the current DNS remediation plan.";
18039
+ readonly status: "implemented";
18040
+ readonly request_body_schema: "ConfirmSitePublishDomainRemediationRequestSchema";
18041
+ readonly response_schema: "ConfirmSitePublishDomainRemediationResponseSchema";
18072
18042
  }, {
18073
18043
  readonly method: "POST";
18074
18044
  readonly path: "/sites/:site_id/integrations/gsc/auth/start";