@vcp-dev/contracts 0.6.11 → 0.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.
Files changed (70) hide show
  1. package/README.md +5 -4
  2. package/dist/business-facts.d.ts +23 -0
  3. package/dist/cms-page-directory.d.ts +40 -4
  4. package/dist/colorway-distinctness.js +1 -1
  5. package/dist/connect-dynamic-collection.d.ts +6 -6
  6. package/dist/connect-form.d.ts +6 -6
  7. package/dist/conversion-hints.d.ts +37 -0
  8. package/dist/crawler-task-service.d.ts +244 -2
  9. package/dist/custom-domain.d.ts +119 -239
  10. package/dist/customer-materials.d.ts +5 -5
  11. package/dist/deployment-lifecycle.d.ts +45 -0
  12. package/dist/design-tokens.d.ts +1 -0
  13. package/dist/design-tokens.js +1 -1
  14. package/dist/e2b-preview-proxy.d.ts +5 -0
  15. package/dist/external-site-edit.d.ts +9 -0
  16. package/dist/firecrawl-internal.d.ts +19 -0
  17. package/dist/font-catalog.d.ts +5 -2
  18. package/dist/form-design.d.ts +54 -12
  19. package/dist/google-search-console.d.ts +1 -0
  20. package/dist/index.d.ts +3095 -818
  21. package/dist/index.js +1 -1
  22. package/dist/industry-classification.d.ts +43 -0
  23. package/dist/input-context-bundle.d.ts +10 -0
  24. package/dist/internal-entity-id.d.ts +1 -0
  25. package/dist/knowledge-category.d.ts +20 -0
  26. package/dist/knowledge-source-readiness.d.ts +94 -0
  27. package/dist/launcher-prompt-templates.d.ts +117 -14
  28. package/dist/migration-products.d.ts +45 -0
  29. package/dist/page-slug.d.ts +2 -0
  30. package/dist/page-template.d.ts +95 -0
  31. package/dist/site-build.d.ts +563 -0
  32. package/dist/site-design-presets.d.ts +20 -0
  33. package/dist/site-edit-capability.d.ts +13 -1
  34. package/dist/site-edit-class-name-source.d.ts +40 -8
  35. package/dist/site-edit-command-result.d.ts +15 -4
  36. package/dist/site-edit-composition.d.ts +13 -0
  37. package/dist/site-edit-event.d.ts +68 -14
  38. package/dist/site-edit-history-status.d.ts +193 -0
  39. package/dist/site-edit-operation.d.ts +152 -51
  40. package/dist/site-edit-page-composition.d.ts +101 -22
  41. package/dist/site-edit-patch-plan.d.ts +49 -3
  42. package/dist/site-edit-render-document.d.ts +54 -8
  43. package/dist/site-edit-session.d.ts +5 -2
  44. package/dist/site-edit-source.d.ts +60 -11
  45. package/dist/site-edit-version.d.ts +1 -1
  46. package/dist/site-extra-requirement.d.ts +31 -0
  47. package/dist/site-locale.d.ts +20 -0
  48. package/dist/site-localization-fields.d.ts +196 -0
  49. package/dist/site-localization-scope.d.ts +95 -0
  50. package/dist/site-preview.d.ts +15 -0
  51. package/dist/site-publish-domain.d.ts +680 -0
  52. package/dist/site-publish-workflow.d.ts +612 -0
  53. package/dist/site-workflow-completions.d.ts +163 -0
  54. package/dist/site-workflow.d.ts +231 -211
  55. package/dist/sitemap-navigation.d.ts +4 -1
  56. package/dist/step2-page-selection.d.ts +88 -0
  57. package/dist/step2-site-initialization.d.ts +321 -30
  58. package/dist/step3-digital-employee-analysis.d.ts +177 -211
  59. package/dist/step4-diagnosis.d.ts +72 -4
  60. package/dist/step5-strategy.d.ts +5549 -170
  61. package/dist/step6-design.d.ts +778 -464
  62. package/dist/subsite-localization-input.d.ts +121 -0
  63. package/dist/subsite-mount-path.d.ts +23 -0
  64. package/dist/subsite-visible-text-export.d.ts +22 -0
  65. package/dist/template-upgrade-observability.d.ts +2 -2
  66. package/dist/theme-presets.d.ts +56 -1
  67. package/dist/workspace-design-apply.d.ts +5 -0
  68. package/dist/workspace-resource-operation.d.ts +58 -24
  69. package/package.json +1 -1
  70. package/dist/publish-quality.d.ts +0 -92
@@ -1,297 +1,177 @@
1
1
  import { z } from "zod";
2
- export declare const CUSTOM_DOMAIN_STATUSES: readonly ["pending_dns", "active"];
3
- export declare const CustomDomainStatusSchema: z.ZodEnum<{
2
+ /** The lifecycle observed by Cloud for one configured hostname. */
3
+ export declare const DOMAIN_OBSERVED_STATUSES: readonly ["pending_dns", "active", "failed", "removing"];
4
+ export declare const DomainObservedStatusSchema: z.ZodEnum<{
5
+ failed: "failed";
4
6
  pending_dns: "pending_dns";
5
7
  active: "active";
8
+ removing: "removing";
6
9
  }>;
7
- export type CustomDomainStatus = z.infer<typeof CustomDomainStatusSchema>;
8
- export declare const CustomDomainDnsRecordPurposeSchema: z.ZodEnum<{
9
- unknown: "unknown";
10
- ownershipVerification: "ownershipVerification";
11
- certificateValidation: "certificateValidation";
10
+ export type DomainObservedStatus = z.infer<typeof DomainObservedStatusSchema>;
11
+ /** How Cloud routes traffic for a configured hostname. */
12
+ export declare const DOMAIN_ROUTING_MODES: readonly ["serve_site", "redirect_301"];
13
+ export declare const DomainRoutingModeSchema: z.ZodEnum<{
14
+ serve_site: "serve_site";
15
+ redirect_301: "redirect_301";
16
+ }>;
17
+ export type DomainRoutingMode = z.infer<typeof DomainRoutingModeSchema>;
18
+ /** The reason a DNS record is required by Cloud. */
19
+ export declare const DOMAIN_DNS_PURPOSES: readonly ["traffic", "ownership", "certificate_delegation"];
20
+ export declare const DomainDnsPurposeSchema: z.ZodEnum<{
12
21
  traffic: "traffic";
22
+ ownership: "ownership";
23
+ certificate_delegation: "certificate_delegation";
13
24
  }>;
14
- export type CustomDomainDnsRecordPurpose = z.infer<typeof CustomDomainDnsRecordPurposeSchema>;
15
- export declare const CustomDomainDnsRecordStatusSchema: z.ZodEnum<{
25
+ export type DomainDnsPurpose = z.infer<typeof DomainDnsPurposeSchema>;
26
+ export declare const DOMAIN_DNS_VERIFICATION_STATUSES: readonly ["pending", "verified"];
27
+ export declare const DomainDnsVerificationStatusSchema: z.ZodEnum<{
16
28
  pending: "pending";
17
- matched: "matched";
29
+ verified: "verified";
18
30
  }>;
19
- export type CustomDomainDnsRecordStatus = z.infer<typeof CustomDomainDnsRecordStatusSchema>;
20
- export declare const CustomDomainDnsRecordSchema: z.ZodObject<{
21
- id: z.ZodString;
22
- type: z.ZodString;
23
- name: z.ZodString;
24
- value: z.ZodString;
31
+ export type DomainDnsVerificationStatus = z.infer<typeof DomainDnsVerificationStatusSchema>;
32
+ export declare const DomainOperationTypeSchema: z.ZodEnum<{
33
+ prepare_configuration: "prepare_configuration";
34
+ apply_configuration: "apply_configuration";
35
+ verify_dns: "verify_dns";
36
+ }>;
37
+ export type DomainOperationType = z.infer<typeof DomainOperationTypeSchema>;
38
+ export declare const DomainOperationStatusSchema: z.ZodEnum<{
39
+ failed: "failed";
40
+ succeeded: "succeeded";
41
+ accepted: "accepted";
42
+ running: "running";
43
+ }>;
44
+ export type DomainOperationStatus = z.infer<typeof DomainOperationStatusSchema>;
45
+ export declare const DomainOperationErrorSchema: z.ZodObject<{
46
+ code: z.ZodString;
47
+ message: z.ZodString;
48
+ }, z.core.$strict>;
49
+ export type DomainOperationError = z.infer<typeof DomainOperationErrorSchema>;
50
+ export declare const DomainDnsRecordSchema: z.ZodObject<{
25
51
  purpose: z.ZodEnum<{
26
- unknown: "unknown";
27
- ownershipVerification: "ownershipVerification";
28
- certificateValidation: "certificateValidation";
29
52
  traffic: "traffic";
53
+ ownership: "ownership";
54
+ certificate_delegation: "certificate_delegation";
30
55
  }>;
31
- required: z.ZodBoolean;
32
- status: z.ZodOptional<z.ZodEnum<{
56
+ type: z.ZodString;
57
+ name: z.ZodString;
58
+ value: z.ZodString;
59
+ verificationStatus: z.ZodEnum<{
33
60
  pending: "pending";
34
- matched: "matched";
35
- }>>;
61
+ verified: "verified";
62
+ }>;
36
63
  }, z.core.$strict>;
37
- export type CustomDomainDnsRecord = z.infer<typeof CustomDomainDnsRecordSchema>;
38
- export declare const SiteCustomDomainSchema: z.ZodObject<{
64
+ export type DomainDnsRecord = z.infer<typeof DomainDnsRecordSchema>;
65
+ export declare const DomainRecordSchema: z.ZodObject<{
39
66
  id: z.ZodString;
40
- domainId: z.ZodOptional<z.ZodString>;
41
67
  hostname: z.ZodString;
42
- displayHostname: z.ZodString;
43
- asciiHostname: z.ZodString;
44
- status: z.ZodEnum<{
68
+ isPrimary: z.ZodBoolean;
69
+ routingMode: z.ZodEnum<{
70
+ serve_site: "serve_site";
71
+ redirect_301: "redirect_301";
72
+ }>;
73
+ observedStatus: z.ZodEnum<{
74
+ failed: "failed";
45
75
  pending_dns: "pending_dns";
46
76
  active: "active";
77
+ removing: "removing";
47
78
  }>;
48
- isPrimary: z.ZodBoolean;
49
- deletable: z.ZodBoolean;
79
+ lastVerifiedAt: z.ZodNullable<z.ZodString>;
50
80
  dnsRecords: z.ZodArray<z.ZodObject<{
51
- id: z.ZodString;
52
- type: z.ZodString;
53
- name: z.ZodString;
54
- value: z.ZodString;
55
81
  purpose: z.ZodEnum<{
56
- unknown: "unknown";
57
- ownershipVerification: "ownershipVerification";
58
- certificateValidation: "certificateValidation";
59
82
  traffic: "traffic";
83
+ ownership: "ownership";
84
+ certificate_delegation: "certificate_delegation";
60
85
  }>;
61
- required: z.ZodBoolean;
62
- status: z.ZodOptional<z.ZodEnum<{
86
+ type: z.ZodString;
87
+ name: z.ZodString;
88
+ value: z.ZodString;
89
+ verificationStatus: z.ZodEnum<{
63
90
  pending: "pending";
64
- matched: "matched";
65
- }>>;
91
+ verified: "verified";
92
+ }>;
66
93
  }, z.core.$strict>>;
67
- createdAt: z.ZodNullable<z.ZodString>;
68
- checkedAt: z.ZodNullable<z.ZodString>;
69
- }, z.core.$strict>;
70
- export type SiteCustomDomain = z.infer<typeof SiteCustomDomainSchema>;
71
- export declare const DefaultPublishDomainSchema: z.ZodObject<{
72
- hostname: z.ZodString;
73
- url: z.ZodString;
74
- status: z.ZodLiteral<"ready">;
75
94
  }, z.core.$strict>;
76
- export type DefaultPublishDomain = z.infer<typeof DefaultPublishDomainSchema>;
77
- export declare const ListSiteDomainsDataSchema: z.ZodObject<{
78
- defaultDomain: z.ZodObject<{
79
- hostname: z.ZodString;
80
- url: z.ZodString;
81
- status: z.ZodLiteral<"ready">;
82
- }, z.core.$strict>;
83
- currentDomain: z.ZodNullable<z.ZodObject<{
95
+ export type DomainRecord = z.infer<typeof DomainRecordSchema>;
96
+ export declare const DomainConfigurationSchema: z.ZodObject<{
97
+ primaryDomain: z.ZodNullable<z.ZodObject<{
84
98
  id: z.ZodString;
85
- domainId: z.ZodOptional<z.ZodString>;
86
99
  hostname: z.ZodString;
87
- displayHostname: z.ZodString;
88
- asciiHostname: z.ZodString;
89
- status: z.ZodEnum<{
100
+ isPrimary: z.ZodBoolean;
101
+ routingMode: z.ZodEnum<{
102
+ serve_site: "serve_site";
103
+ redirect_301: "redirect_301";
104
+ }>;
105
+ observedStatus: z.ZodEnum<{
106
+ failed: "failed";
90
107
  pending_dns: "pending_dns";
91
108
  active: "active";
109
+ removing: "removing";
92
110
  }>;
93
- isPrimary: z.ZodBoolean;
94
- deletable: z.ZodBoolean;
111
+ lastVerifiedAt: z.ZodNullable<z.ZodString>;
95
112
  dnsRecords: z.ZodArray<z.ZodObject<{
96
- id: z.ZodString;
97
- type: z.ZodString;
98
- name: z.ZodString;
99
- value: z.ZodString;
100
113
  purpose: z.ZodEnum<{
101
- unknown: "unknown";
102
- ownershipVerification: "ownershipVerification";
103
- certificateValidation: "certificateValidation";
104
114
  traffic: "traffic";
115
+ ownership: "ownership";
116
+ certificate_delegation: "certificate_delegation";
105
117
  }>;
106
- required: z.ZodBoolean;
107
- status: z.ZodOptional<z.ZodEnum<{
108
- pending: "pending";
109
- matched: "matched";
110
- }>>;
111
- }, z.core.$strict>>;
112
- createdAt: z.ZodNullable<z.ZodString>;
113
- checkedAt: z.ZodNullable<z.ZodString>;
114
- }, z.core.$strict>>;
115
- customDomains: z.ZodArray<z.ZodObject<{
116
- id: z.ZodString;
117
- domainId: z.ZodOptional<z.ZodString>;
118
- hostname: z.ZodString;
119
- displayHostname: z.ZodString;
120
- asciiHostname: z.ZodString;
121
- status: z.ZodEnum<{
122
- pending_dns: "pending_dns";
123
- active: "active";
124
- }>;
125
- isPrimary: z.ZodBoolean;
126
- deletable: z.ZodBoolean;
127
- dnsRecords: z.ZodArray<z.ZodObject<{
128
- id: z.ZodString;
129
118
  type: z.ZodString;
130
119
  name: z.ZodString;
131
120
  value: z.ZodString;
132
- purpose: z.ZodEnum<{
133
- unknown: "unknown";
134
- ownershipVerification: "ownershipVerification";
135
- certificateValidation: "certificateValidation";
136
- traffic: "traffic";
137
- }>;
138
- required: z.ZodBoolean;
139
- status: z.ZodOptional<z.ZodEnum<{
121
+ verificationStatus: z.ZodEnum<{
140
122
  pending: "pending";
141
- matched: "matched";
142
- }>>;
123
+ verified: "verified";
124
+ }>;
143
125
  }, z.core.$strict>>;
144
- createdAt: z.ZodNullable<z.ZodString>;
145
- checkedAt: z.ZodNullable<z.ZodString>;
146
126
  }, z.core.$strict>>;
147
- }, z.core.$strict>;
148
- export type ListSiteDomainsData = z.infer<typeof ListSiteDomainsDataSchema>;
149
- export declare const BindSiteDomainRequestSchema: z.ZodObject<{
150
- hostname: z.ZodString;
151
- }, z.core.$strict>;
152
- export type BindSiteDomainRequest = z.infer<typeof BindSiteDomainRequestSchema>;
153
- export declare const BindSiteDomainDataSchema: z.ZodObject<{
154
- domain: z.ZodObject<{
127
+ redirectDomains: z.ZodArray<z.ZodObject<{
155
128
  id: z.ZodString;
156
- domainId: z.ZodOptional<z.ZodString>;
157
129
  hostname: z.ZodString;
158
- displayHostname: z.ZodString;
159
- asciiHostname: z.ZodString;
160
- status: z.ZodEnum<{
161
- pending_dns: "pending_dns";
162
- active: "active";
163
- }>;
164
130
  isPrimary: z.ZodBoolean;
165
- deletable: z.ZodBoolean;
166
- dnsRecords: z.ZodArray<z.ZodObject<{
167
- id: z.ZodString;
168
- type: z.ZodString;
169
- name: z.ZodString;
170
- value: z.ZodString;
171
- purpose: z.ZodEnum<{
172
- unknown: "unknown";
173
- ownershipVerification: "ownershipVerification";
174
- certificateValidation: "certificateValidation";
175
- traffic: "traffic";
176
- }>;
177
- required: z.ZodBoolean;
178
- status: z.ZodOptional<z.ZodEnum<{
179
- pending: "pending";
180
- matched: "matched";
181
- }>>;
182
- }, z.core.$strict>>;
183
- createdAt: z.ZodNullable<z.ZodString>;
184
- checkedAt: z.ZodNullable<z.ZodString>;
185
- }, z.core.$strict>;
186
- }, z.core.$strict>;
187
- export type BindSiteDomainData = z.infer<typeof BindSiteDomainDataSchema>;
188
- export declare const ActivatePrimarySiteDomainDataSchema: z.ZodObject<{
189
- domain: z.ZodObject<{
190
- id: z.ZodString;
191
- domainId: z.ZodOptional<z.ZodString>;
192
- hostname: z.ZodString;
193
- displayHostname: z.ZodString;
194
- asciiHostname: z.ZodString;
195
- status: z.ZodEnum<{
196
- pending_dns: "pending_dns";
197
- active: "active";
131
+ routingMode: z.ZodEnum<{
132
+ serve_site: "serve_site";
133
+ redirect_301: "redirect_301";
198
134
  }>;
199
- isPrimary: z.ZodBoolean;
200
- deletable: z.ZodBoolean;
201
- dnsRecords: z.ZodArray<z.ZodObject<{
202
- id: z.ZodString;
203
- type: z.ZodString;
204
- name: z.ZodString;
205
- value: z.ZodString;
206
- purpose: z.ZodEnum<{
207
- unknown: "unknown";
208
- ownershipVerification: "ownershipVerification";
209
- certificateValidation: "certificateValidation";
210
- traffic: "traffic";
211
- }>;
212
- required: z.ZodBoolean;
213
- status: z.ZodOptional<z.ZodEnum<{
214
- pending: "pending";
215
- matched: "matched";
216
- }>>;
217
- }, z.core.$strict>>;
218
- createdAt: z.ZodNullable<z.ZodString>;
219
- checkedAt: z.ZodNullable<z.ZodString>;
220
- }, z.core.$strict>;
221
- primaryActivated: z.ZodBoolean;
222
- }, z.core.$strict>;
223
- export type ActivatePrimarySiteDomainData = z.infer<typeof ActivatePrimarySiteDomainDataSchema>;
224
- export declare const VerifySiteDomainDataSchema: z.ZodObject<{
225
- domain: z.ZodObject<{
226
- id: z.ZodString;
227
- domainId: z.ZodOptional<z.ZodString>;
228
- hostname: z.ZodString;
229
- displayHostname: z.ZodString;
230
- asciiHostname: z.ZodString;
231
- status: z.ZodEnum<{
135
+ observedStatus: z.ZodEnum<{
136
+ failed: "failed";
232
137
  pending_dns: "pending_dns";
233
138
  active: "active";
139
+ removing: "removing";
234
140
  }>;
235
- isPrimary: z.ZodBoolean;
236
- deletable: z.ZodBoolean;
141
+ lastVerifiedAt: z.ZodNullable<z.ZodString>;
237
142
  dnsRecords: z.ZodArray<z.ZodObject<{
238
- id: z.ZodString;
239
- type: z.ZodString;
240
- name: z.ZodString;
241
- value: z.ZodString;
242
143
  purpose: z.ZodEnum<{
243
- unknown: "unknown";
244
- ownershipVerification: "ownershipVerification";
245
- certificateValidation: "certificateValidation";
246
144
  traffic: "traffic";
145
+ ownership: "ownership";
146
+ certificate_delegation: "certificate_delegation";
247
147
  }>;
248
- required: z.ZodBoolean;
249
- status: z.ZodOptional<z.ZodEnum<{
250
- pending: "pending";
251
- matched: "matched";
252
- }>>;
253
- }, z.core.$strict>>;
254
- createdAt: z.ZodNullable<z.ZodString>;
255
- checkedAt: z.ZodNullable<z.ZodString>;
256
- }, z.core.$strict>;
257
- }, z.core.$strict>;
258
- export type VerifySiteDomainData = z.infer<typeof VerifySiteDomainDataSchema>;
259
- export declare const GetSiteDomainDetailDataSchema: z.ZodObject<{
260
- domain: z.ZodObject<{
261
- id: z.ZodString;
262
- domainId: z.ZodOptional<z.ZodString>;
263
- hostname: z.ZodString;
264
- displayHostname: z.ZodString;
265
- asciiHostname: z.ZodString;
266
- status: z.ZodEnum<{
267
- pending_dns: "pending_dns";
268
- active: "active";
269
- }>;
270
- isPrimary: z.ZodBoolean;
271
- deletable: z.ZodBoolean;
272
- dnsRecords: z.ZodArray<z.ZodObject<{
273
- id: z.ZodString;
274
148
  type: z.ZodString;
275
149
  name: z.ZodString;
276
150
  value: z.ZodString;
277
- purpose: z.ZodEnum<{
278
- unknown: "unknown";
279
- ownershipVerification: "ownershipVerification";
280
- certificateValidation: "certificateValidation";
281
- traffic: "traffic";
282
- }>;
283
- required: z.ZodBoolean;
284
- status: z.ZodOptional<z.ZodEnum<{
151
+ verificationStatus: z.ZodEnum<{
285
152
  pending: "pending";
286
- matched: "matched";
287
- }>>;
153
+ verified: "verified";
154
+ }>;
288
155
  }, z.core.$strict>>;
289
- createdAt: z.ZodNullable<z.ZodString>;
290
- checkedAt: z.ZodNullable<z.ZodString>;
291
- }, z.core.$strict>;
156
+ }, z.core.$strict>>;
292
157
  }, z.core.$strict>;
293
- export type GetSiteDomainDetailData = z.infer<typeof GetSiteDomainDetailDataSchema>;
294
- export declare const DeleteSiteDomainDataSchema: z.ZodObject<{
295
- deleted: z.ZodBoolean;
158
+ export type DomainConfiguration = z.infer<typeof DomainConfigurationSchema>;
159
+ export declare const DomainOperationSchema: z.ZodObject<{
160
+ id: z.ZodString;
161
+ type: z.ZodEnum<{
162
+ prepare_configuration: "prepare_configuration";
163
+ apply_configuration: "apply_configuration";
164
+ verify_dns: "verify_dns";
165
+ }>;
166
+ status: z.ZodEnum<{
167
+ failed: "failed";
168
+ succeeded: "succeeded";
169
+ accepted: "accepted";
170
+ running: "running";
171
+ }>;
172
+ error: z.ZodNullable<z.ZodObject<{
173
+ code: z.ZodString;
174
+ message: z.ZodString;
175
+ }, z.core.$strict>>;
296
176
  }, z.core.$strict>;
297
- export type DeleteSiteDomainData = z.infer<typeof DeleteSiteDomainDataSchema>;
177
+ export type DomainOperation = z.infer<typeof DomainOperationSchema>;
@@ -24,7 +24,7 @@ export declare const CustomerMaterialsDraftSchema: z.ZodObject<{
24
24
  contact_info: z.ZodString;
25
25
  timezone: z.ZodString;
26
26
  launch_timing: z.ZodString;
27
- input_source_ids: z.ZodArray<z.ZodUUID>;
27
+ input_source_ids: z.ZodArray<z.ZodString>;
28
28
  }, z.core.$strict>;
29
29
  export type CustomerMaterialsDraft = z.infer<typeof CustomerMaterialsDraftSchema>;
30
30
  export declare const CustomerMaterialsStatusSchema: z.ZodEnum<{
@@ -56,7 +56,7 @@ export declare const CustomerMaterialsRecordSchema: z.ZodObject<{
56
56
  contact_info: z.ZodString;
57
57
  timezone: z.ZodString;
58
58
  launch_timing: z.ZodString;
59
- input_source_ids: z.ZodArray<z.ZodUUID>;
59
+ input_source_ids: z.ZodArray<z.ZodString>;
60
60
  id: z.ZodUUID;
61
61
  tenant_id: z.ZodString;
62
62
  site_id: z.ZodUUID;
@@ -96,7 +96,7 @@ export declare const CustomerMaterialsResponseSchema: z.ZodObject<{
96
96
  contact_info: z.ZodString;
97
97
  timezone: z.ZodString;
98
98
  launch_timing: z.ZodString;
99
- input_source_ids: z.ZodArray<z.ZodUUID>;
99
+ input_source_ids: z.ZodArray<z.ZodString>;
100
100
  id: z.ZodUUID;
101
101
  tenant_id: z.ZodString;
102
102
  site_id: z.ZodUUID;
@@ -138,7 +138,7 @@ export declare const CustomerMaterialsDraftResponseSchema: z.ZodObject<{
138
138
  contact_info: z.ZodString;
139
139
  timezone: z.ZodString;
140
140
  launch_timing: z.ZodString;
141
- input_source_ids: z.ZodArray<z.ZodUUID>;
141
+ input_source_ids: z.ZodArray<z.ZodString>;
142
142
  id: z.ZodUUID;
143
143
  tenant_id: z.ZodString;
144
144
  site_id: z.ZodUUID;
@@ -179,7 +179,7 @@ export declare const CustomerMaterialsNullableResponseSchema: z.ZodObject<{
179
179
  contact_info: z.ZodString;
180
180
  timezone: z.ZodString;
181
181
  launch_timing: z.ZodString;
182
- input_source_ids: z.ZodArray<z.ZodUUID>;
182
+ input_source_ids: z.ZodArray<z.ZodString>;
183
183
  id: z.ZodUUID;
184
184
  tenant_id: z.ZodString;
185
185
  site_id: z.ZodUUID;
@@ -0,0 +1,45 @@
1
+ import { DEPLOYMENT_STATUSES } from "./deployment-runtime.js";
2
+ export type DeploymentLifecycleStatus = (typeof DEPLOYMENT_STATUSES)[number];
3
+ /**
4
+ * The single production contract for durable deployment status transitions.
5
+ *
6
+ * `deploy_failed` is the generic terminal failure used by the executor's
7
+ * unexpected-error path and by the expired-lease sweeper, so every active
8
+ * phase may enter it. Phase-specific failures remain restricted to the phase
9
+ * that owns them. `cleanup_failed` is retained as a legacy terminal database
10
+ * value; current cleanup failures are warnings and never rewrite `released`.
11
+ */
12
+ export declare const DEPLOYMENT_LIFECYCLE_TRANSITIONS: {
13
+ readonly queued: readonly ["preparing_source", "lock_failed", "deploy_failed"];
14
+ readonly preparing_source: readonly ["building", "source_prepare_failed", "deploy_failed"];
15
+ readonly building: readonly ["artifact_ready", "build_failed", "artifact_fetch_failed", "artifact_validation_failed", "deploy_failed"];
16
+ readonly artifact_ready: readonly ["deploying", "deploy_failed"];
17
+ readonly deploying: readonly ["released", "deploy_failed"];
18
+ readonly released: readonly [];
19
+ readonly lock_failed: readonly [];
20
+ readonly source_prepare_failed: readonly [];
21
+ readonly build_failed: readonly [];
22
+ readonly artifact_fetch_failed: readonly [];
23
+ readonly artifact_validation_failed: readonly [];
24
+ readonly deploy_failed: readonly [];
25
+ readonly cleanup_failed: readonly [];
26
+ };
27
+ export declare const DEPLOYMENT_ACTIVE_STATUSES: readonly DeploymentLifecycleStatus[];
28
+ export declare const DEPLOYMENT_TERMINAL_STATUSES: readonly DeploymentLifecycleStatus[];
29
+ export declare const DEPLOYMENT_TRANSITION_ERROR_CODE: "DEPLOYMENT_TRANSITION_INVALID";
30
+ export declare class DeploymentTransitionError extends Error {
31
+ readonly currentStatus: DeploymentLifecycleStatus;
32
+ readonly nextStatus: DeploymentLifecycleStatus;
33
+ readonly code: "DEPLOYMENT_TRANSITION_INVALID";
34
+ constructor(currentStatus: DeploymentLifecycleStatus, nextStatus: DeploymentLifecycleStatus);
35
+ }
36
+ export declare function getDeploymentTransitionTargets(currentStatus: DeploymentLifecycleStatus): readonly DeploymentLifecycleStatus[];
37
+ export declare function getDeploymentTransitionPredecessors(nextStatus: DeploymentLifecycleStatus): readonly DeploymentLifecycleStatus[];
38
+ export declare function isDeploymentActiveStatus(status: DeploymentLifecycleStatus): boolean;
39
+ export declare function isDeploymentTerminalStatus(status: DeploymentLifecycleStatus): boolean;
40
+ export declare function assertDeploymentTransition(currentStatus: DeploymentLifecycleStatus, nextStatus: DeploymentLifecycleStatus): DeploymentLifecycleStatus;
41
+ /**
42
+ * Returns the official transitions after `queued` for deterministic workers.
43
+ * Consumers must still persist each transition through the shared validator.
44
+ */
45
+ export declare function getDeploymentHappyPathTransitions(): readonly DeploymentLifecycleStatus[];
@@ -4,6 +4,7 @@ export type DesignSurfaceMode = "light" | "dark";
4
4
  export interface DesignColorSeeds {
5
5
  primary?: string;
6
6
  accent?: string;
7
+ foreground?: string;
7
8
  neutral?: string;
8
9
  supporting?: string[];
9
10
  }
@@ -1 +1 @@
1
- import{converter as H,parse as m,wcagContrast as b}from"culori";var p=H("oklch"),M=4.5,e={paper:"oklch(0.92 0.008 250)",cream:"oklch(0.90 0.035 85)",sand:"oklch(0.75 0.05 78)",stone:"oklch(0.60 0.02 75)",ash:"oklch(0.60 0.012 250)",slate:"oklch(0.45 0.025 250)",charcoal:"oklch(0.30 0.015 255)",ink:"oklch(0.25 0.04 260)",sky:"oklch(0.72 0.12 230)",blue:"oklch(0.58 0.17 250)","medical blue":"oklch(0.58 0.12 235)",indigo:"oklch(0.50 0.18 280)",navy:"oklch(0.40 0.10 258)",ocean:"oklch(0.55 0.13 220)","slate blue":"oklch(0.46 0.06 245)",teal:"oklch(0.60 0.12 195)","soft aqua":"oklch(0.78 0.07 190)",mint:"oklch(0.78 0.10 165)",sage:"oklch(0.65 0.05 145)",green:"oklch(0.58 0.15 145)","clinical green":"oklch(0.62 0.12 155)",emerald:"oklch(0.60 0.16 155)",forest:"oklch(0.45 0.10 145)",olive:"oklch(0.58 0.08 115)",lime:"oklch(0.72 0.17 130)",yellow:"oklch(0.82 0.15 100)",gold:"oklch(0.72 0.14 85)",amber:"oklch(0.70 0.16 70)",orange:"oklch(0.66 0.18 55)",coral:"oklch(0.68 0.16 32)",terracotta:"oklch(0.55 0.12 42)",rust:"oklch(0.50 0.13 38)",brown:"oklch(0.45 0.07 55)",rose:"oklch(0.65 0.16 18)",red:"oklch(0.58 0.20 25)",crimson:"oklch(0.52 0.20 22)",wine:"oklch(0.42 0.13 18)",pink:"oklch(0.72 0.14 0)",magenta:"oklch(0.60 0.22 345)",lavender:"oklch(0.72 0.08 295)",violet:"oklch(0.58 0.19 295)",purple:"oklch(0.52 0.19 305)",plum:"oklch(0.45 0.13 325)",electric:"oklch(0.62 0.23 285)","clean white":"oklch(0.97 0.01 245)","cool gray":"oklch(0.62 0.02 245)",zinc:"oklch(0.60 0.012 250)",gray:"oklch(0.60 0.012 250)",grey:"oklch(0.60 0.012 250)",neutral:"oklch(0.60 0.005 250)",gunmetal:"oklch(0.30 0.015 255)"},q={\u84DD:e.blue,\u84DD\u8272:e.blue,\u5929\u84DD:e.sky,\u5929\u84DD\u8272:e.sky,\u6D45\u84DD:e.sky,\u6E56\u84DD:e.ocean,\u6D77\u84DD:e.ocean,\u6DF1\u84DD:e.navy,\u85CF\u84DD:e.navy,\u85CF\u9752:e.navy,\u6D77\u519B\u84DD:e.navy,\u6DF1\u6D77\u519B\u84DD:e.navy,\u5348\u591C\u84DD:e.navy,\u975B\u84DD:e.indigo,\u975B\u9752:e.indigo,\u94A2\u84DD:e["slate blue"],\u9752:e.teal,\u9752\u8272:e.teal,\u84DD\u7EFF:e.teal,\u7EFF:e.green,\u7EFF\u8272:e.green,\u6D45\u7EFF:e.mint,\u8584\u8377\u7EFF:e.mint,\u8349\u7EFF:e.lime,\u6A44\u6984\u7EFF:e.olive,\u58A8\u7EFF:e.forest,\u6DF1\u7EFF:e.forest,\u68EE\u6797\u7EFF:e.forest,\u7FE0\u7EFF:e.emerald,\u7956\u6BCD\u7EFF:e.emerald,\u9EC4:e.yellow,\u9EC4\u8272:e.yellow,\u91D1:e.gold,\u91D1\u8272:e.gold,\u91D1\u9EC4:e.gold,\u7425\u73C0:e.amber,\u7425\u73C0\u8272:e.amber,\u6A59:e.orange,\u6A59\u8272:e.orange,\u6A58\u8272:e.orange,\u6A58\u9EC4:e.orange,\u6D3B\u529B\u6A59:e.orange,\u6696\u6A59:e.orange,\u73CA\u745A:e.coral,\u73CA\u745A\u6A59:e.coral,\u9676\u571F:e.terracotta,\u8D64\u9676:e.terracotta,\u9508\u7EA2:e.rust,\u68D5:e.brown,\u68D5\u8272:e.brown,\u8910\u8272:e.brown,\u5496\u5561\u8272:e.brown,\u7EA2:e.red,\u7EA2\u8272:e.red,\u6731\u7EA2:e.red,\u7EEF\u7EA2:e.crimson,\u6DF1\u7EA2:e.crimson,\u9152\u7EA2:e.wine,\u73AB\u7470:e.rose,\u73AB\u7EA2:e.rose,\u7C89:e.pink,\u7C89\u8272:e.pink,\u7C89\u7EA2:e.pink,\u6D0B\u7EA2:e.magenta,\u54C1\u7EA2:e.magenta,\u7D2B:e.purple,\u7D2B\u8272:e.purple,\u6DE1\u7D2B:e.lavender,\u85B0\u8863\u8349:e.lavender,\u7D2B\u7F57\u5170:e.violet,\u6885\u7EA2:e.plum,\u7070:e.gray,\u7070\u8272:e.gray,\u6D45\u7070:e.gray,\u6DE1\u7070:e.gray,\u51B7\u7070:e["cool gray"],\u51B7\u7070\u767D:e["cool gray"],\u6696\u7070:e.stone,\u6DF1\u7070:e.slate,\u77F3\u58A8\u7070:e.slate,\u77F3\u677F\u7070:e.slate,\u70AD\u7070:e.charcoal,\u70AD\u9ED1:e.charcoal,\u58A8:e.ink,\u58A8\u8272:e.ink,\u9ED1:e.ink,\u9ED1\u8272:e.ink,\u767D:e["clean white"],\u767D\u8272:e["clean white"],\u7C73\u767D:e.cream,\u7C73\u8272:e.cream,\u8C61\u7259\u767D:e.cream,\u5976\u6CB9\u767D:e.cream,\u6C99\u8272:e.sand},T={...e,...q};function oe(c){let o=c.colorSeeds??{primary:"slate",accent:"blue",neutral:"zinc"},r=c.surfaceMode,n=v(o.primary||"slate"),t=l(n),s=l(v(o.accent||"blue")),u=o.neutral?v(o.neutral):W(n),a=h(u.h),d,i,k,g,S,w;r==="dark"?(d=l({mode:"oklch",l:.14,c:.03,h:a}),i=l({mode:"oklch",l:.95,c:.02,h:a}),k=l({mode:"oklch",l:.2,c:.04,h:a}),g=l({mode:"oklch",l:.29,c:.05,h:a}),S=l({mode:"oklch",l:.78,c:.02,h:a}),w=l({mode:"oklch",l:.35,c:.06,h:a})):(d=l({mode:"oklch",l:.98,c:.01,h:a}),i=l({mode:"oklch",l:.2,c:.02,h:a}),k=l({mode:"oklch",l:.96,c:.015,h:a}),g=l({mode:"oklch",l:.92,c:.02,h:a}),S=l({mode:"oklch",l:.43,c:.02,h:a}),w=l({mode:"oklch",l:.84,c:.025,h:a}));let f=c.imagePalette;if(f){let L=typeof f.background=="string"&&x(f.background),I=L&&Y(f.background,r);L&&I&&(d=l(v(f.background))),I&&typeof f.card=="string"&&x(f.card)&&(k=l(v(f.card))),I&&typeof f.muted=="string"&&x(f.muted)&&(g=l(v(f.muted))),typeof f.foreground=="string"&&x(f.foreground)?i=G(l(v(f.foreground)),d,M):L&&I&&(i=y(d)),typeof f.border=="string"&&x(f.border)&&(w=Q(l(v(f.border)),d))}let A=r!=="dark",_={"--background":d,"--foreground":i,"--card":k,"--card-foreground":i,"--muted":g,"--muted-foreground":S,"--border":w,"--input":w,"--ring":s,"--primary":t,"--primary-foreground":y(t),"--primary-hover":O(t,A),"--accent":s,"--accent-foreground":y(s),"--accent-ink":C(s,d),"--accent-subtle":X(s,A),"--accent-hover":O(s,A),"--overlay-on-dark":l({mode:"oklch",l:.96,c:.02,h:a}),"--overlay-on-light":l({mode:"oklch",l:.2,c:.02,h:a})},N=i,P=y(i),R=F(i,a),D=C(s,i),B=p(m(t)??t),$=h(B?.h),V=F(t,$),z=C(s,t);return J({..._,...{"--surface-inverse":N,"--surface-inverse-foreground":P,"--surface-inverse-muted":R,"--surface-inverse-accent-ink":D,"--surface-primary-muted":V,"--surface-primary-accent-ink":z}},o)}function J(c,o){let r=l({mode:"oklch",l:.58,c:.22,h:28}),n=l({mode:"oklch",l:.6,c:.14,h:150}),t=l({mode:"oklch",l:.75,c:.15,h:75}),s={...c,"--popover":"var(--card)","--popover-foreground":"var(--card-foreground)","--secondary":"var(--muted)","--secondary-foreground":"var(--foreground)","--destructive":r,"--destructive-foreground":y(r),"--success":n,"--success-foreground":y(n),"--warning":t,"--warning-foreground":y(t)},[u,a]=K(o,s);return s["--supporting-0"]=u,s["--supporting-1"]=a,j(s["--accent"]).forEach((i,k)=>{s[`--chart-${k+1}`]=i}),s}function K(c,o){let t=(c.supporting??[]).filter(u=>!!(u&&u.trim())).slice(0,2).map(u=>l(v(u))),s=[o["--primary"],o["--accent"]];for(;t.length<2;)t.push(s[t.length]);return[t[0],t[1]]}function x(c){let o=(c??"").trim();if(!o||o.startsWith("#")&&!/^#[0-9A-Fa-f]{3,8}$/.test(o))return!1;let r=T[o.toLowerCase()]??o;return!!m(r)}function v(c,o="paper"){let r=(c??"").trim();if(!r)return v(o);let n=T[r.toLowerCase()]??r,t=m(n);if(t){let s=p(t);if(s)return s}return U(r)}function U(c){let o=2166136261,r=c.toLowerCase();for(let u=0;u<r.length;u++)o^=r.charCodeAt(u),o=Math.imul(o,16777619)>>>0;let n=o%360,t=.08+(o>>>9)%9/100;return{mode:"oklch",l:.52+(o>>>18)%16/100,c:t,h:n}}function W(c){return{mode:"oklch",l:.6,c:.02,h:h(c.h)}}function O(c,o){let r=p(m(c)??c);if(!r)return c;let n=o?-.06:.06,t=Math.max(.06,Math.min(.97,h(r.l)+n));return l({mode:"oklch",l:t,c:h(r.c),h:h(r.h)})}function X(c,o){let r=p(m(c)??c),n=h(r?.h),t=Math.min(h(r?.c),o?.05:.06);return l({mode:"oklch",l:o?.95:.24,c:t,h:n})}function j(c){let o=p(m(c)??c),r=h(o?.h),n=Math.max(.12,Math.min(h(o?.c),.16));return[0,72,144,216,288].map(t=>l({mode:"oklch",l:.62,c:n,h:(r+t)%360}))}function y(c){let o=m(c),r=o?p(o):void 0,n=h(r?.h),t={mode:"oklch",l:.99,c:.01,h:n},s={mode:"oklch",l:.18,c:.02,h:n},u=b(o??c,t),a=b(o??c,s);return l(u>=a?t:s)}function G(c,o,r){let n=p(m(c)??c);if(!n)return y(o);if(b(c,o)>=r)return l(n);let t=p(m(o)??o),u=(t?h(t.l)>=.5:!0)?-.02:.02,a=h(n.l),d=h(n.c),i=h(n.h);for(let k=1;k<=50;k++){let g=a+u*k;if(g<=0||g>=1)break;let S={mode:"oklch",l:g,c:d,h:i};if(b(S,o)>=r)return l(S)}return y(o)}var E=1.3;function Q(c,o){let r=p(m(c)??c);if(!r)return c;if(b(c,o)>=E)return l(r);let n=p(m(o)??o),s=(n?h(n.l)>=.5:!0)?-.03:.03,u=h(r.l),a=h(r.c),d=h(r.h);for(let i=1;i<=40;i++){let k=u+s*i;if(k<=0||k>=1)break;let g={mode:"oklch",l:k,c:a,h:d};if(b(g,o)>=E)return l(g)}return c}function Y(c,o){let r=p(m(c)??c);if(!r)return!1;let n=h(r.l)>=.5;return o==="dark"?!n:n}function C(c,o){let r=p(m(c)??c);if(!r)return c;let n=h(r.h),t=h(r.c),s=h(r.l),u=p(m(o)??o),d=(u?h(u.l)>=.5:!0)?-.02:.02;for(let i=0;i<=50;i++){let k=s+d*i;if(k<=0||k>=1)break;let g={mode:"oklch",l:k,c:t,h:n};if(b(g,o)>=M)return l(g)}return y(o)}function F(c,o){let r=p(m(c)??c),t=(r?h(r.l):.5)>=.5,s=t?.75:.35,u=t?-.02:.02;for(let a=0;a<=50;a++){let d=s+u*a;if(d<=0||d>=1)break;let i={mode:"oklch",l:d,c:.02,h:o};if(b(i,c)>=M)return l(i)}return y(c)}function h(c){return typeof c=="number"&&Number.isFinite(c)?c:0}function l(c){let o=h(c.l),r=h(c.c),n=h(c.h);return`oklch(${o.toFixed(2)} ${r.toFixed(2)} ${n.toFixed(2)})`}export{T as SEMANTIC_SEED_ALIASES,C as accentInkFor,y as bestForegroundFor,h as channel,oe as deriveDesignColors,G as ensureReadableInk,x as isResolvableDesignColorSeed,l as oklchString};
1
+ import{converter as q,parse as m,wcagContrast as b}from"culori";var p=q("oklch"),A=4.5,e={paper:"oklch(0.92 0.008 250)",cream:"oklch(0.90 0.035 85)",sand:"oklch(0.75 0.05 78)",stone:"oklch(0.60 0.02 75)",ash:"oklch(0.60 0.012 250)",slate:"oklch(0.45 0.025 250)",charcoal:"oklch(0.30 0.015 255)",ink:"oklch(0.25 0.04 260)",sky:"oklch(0.72 0.12 230)",blue:"oklch(0.58 0.17 250)","medical blue":"oklch(0.58 0.12 235)",indigo:"oklch(0.50 0.18 280)",navy:"oklch(0.40 0.10 258)",ocean:"oklch(0.55 0.13 220)","slate blue":"oklch(0.46 0.06 245)",teal:"oklch(0.60 0.12 195)","soft aqua":"oklch(0.78 0.07 190)",mint:"oklch(0.78 0.10 165)",sage:"oklch(0.65 0.05 145)",green:"oklch(0.58 0.15 145)","clinical green":"oklch(0.62 0.12 155)",emerald:"oklch(0.60 0.16 155)",forest:"oklch(0.45 0.10 145)",olive:"oklch(0.58 0.08 115)",lime:"oklch(0.72 0.17 130)",yellow:"oklch(0.82 0.15 100)",gold:"oklch(0.72 0.14 85)",amber:"oklch(0.70 0.16 70)",orange:"oklch(0.66 0.18 55)",coral:"oklch(0.68 0.16 32)",terracotta:"oklch(0.55 0.12 42)",rust:"oklch(0.50 0.13 38)",brown:"oklch(0.45 0.07 55)",rose:"oklch(0.65 0.16 18)",red:"oklch(0.58 0.20 25)",crimson:"oklch(0.52 0.20 22)",wine:"oklch(0.42 0.13 18)",pink:"oklch(0.72 0.14 0)",magenta:"oklch(0.60 0.22 345)",lavender:"oklch(0.72 0.08 295)",violet:"oklch(0.58 0.19 295)",purple:"oklch(0.52 0.19 305)",plum:"oklch(0.45 0.13 325)",electric:"oklch(0.62 0.23 285)","clean white":"oklch(0.97 0.01 245)","cool gray":"oklch(0.62 0.02 245)",zinc:"oklch(0.60 0.012 250)",gray:"oklch(0.60 0.012 250)",grey:"oklch(0.60 0.012 250)",neutral:"oklch(0.60 0.005 250)",gunmetal:"oklch(0.30 0.015 255)"},J={\u84DD:e.blue,\u84DD\u8272:e.blue,\u5929\u84DD:e.sky,\u5929\u84DD\u8272:e.sky,\u6D45\u84DD:e.sky,\u6E56\u84DD:e.ocean,\u6D77\u84DD:e.ocean,\u6DF1\u84DD:e.navy,\u85CF\u84DD:e.navy,\u85CF\u9752:e.navy,\u6D77\u519B\u84DD:e.navy,\u6DF1\u6D77\u519B\u84DD:e.navy,\u5348\u591C\u84DD:e.navy,\u975B\u84DD:e.indigo,\u975B\u9752:e.indigo,\u94A2\u84DD:e["slate blue"],\u9752:e.teal,\u9752\u8272:e.teal,\u84DD\u7EFF:e.teal,\u7EFF:e.green,\u7EFF\u8272:e.green,\u6D45\u7EFF:e.mint,\u8584\u8377\u7EFF:e.mint,\u8349\u7EFF:e.lime,\u6A44\u6984\u7EFF:e.olive,\u58A8\u7EFF:e.forest,\u6DF1\u7EFF:e.forest,\u68EE\u6797\u7EFF:e.forest,\u7FE0\u7EFF:e.emerald,\u7956\u6BCD\u7EFF:e.emerald,\u9EC4:e.yellow,\u9EC4\u8272:e.yellow,\u91D1:e.gold,\u91D1\u8272:e.gold,\u91D1\u9EC4:e.gold,\u7425\u73C0:e.amber,\u7425\u73C0\u8272:e.amber,\u6A59:e.orange,\u6A59\u8272:e.orange,\u6A58\u8272:e.orange,\u6A58\u9EC4:e.orange,\u6D3B\u529B\u6A59:e.orange,\u6696\u6A59:e.orange,\u73CA\u745A:e.coral,\u73CA\u745A\u6A59:e.coral,\u9676\u571F:e.terracotta,\u8D64\u9676:e.terracotta,\u9508\u7EA2:e.rust,\u68D5:e.brown,\u68D5\u8272:e.brown,\u8910\u8272:e.brown,\u5496\u5561\u8272:e.brown,\u7EA2:e.red,\u7EA2\u8272:e.red,\u6731\u7EA2:e.red,\u7EEF\u7EA2:e.crimson,\u6DF1\u7EA2:e.crimson,\u9152\u7EA2:e.wine,\u73AB\u7470:e.rose,\u73AB\u7EA2:e.rose,\u7C89:e.pink,\u7C89\u8272:e.pink,\u7C89\u7EA2:e.pink,\u6D0B\u7EA2:e.magenta,\u54C1\u7EA2:e.magenta,\u7D2B:e.purple,\u7D2B\u8272:e.purple,\u6DE1\u7D2B:e.lavender,\u85B0\u8863\u8349:e.lavender,\u7D2B\u7F57\u5170:e.violet,\u6885\u7EA2:e.plum,\u7070:e.gray,\u7070\u8272:e.gray,\u6D45\u7070:e.gray,\u6DE1\u7070:e.gray,\u51B7\u7070:e["cool gray"],\u51B7\u7070\u767D:e["cool gray"],\u6696\u7070:e.stone,\u6DF1\u7070:e.slate,\u77F3\u58A8\u7070:e.slate,\u77F3\u677F\u7070:e.slate,\u70AD\u7070:e.charcoal,\u70AD\u9ED1:e.charcoal,\u58A8:e.ink,\u58A8\u8272:e.ink,\u9ED1:e.ink,\u9ED1\u8272:e.ink,\u767D:e["clean white"],\u767D\u8272:e["clean white"],\u7C73\u767D:e.cream,\u7C73\u8272:e.cream,\u8C61\u7259\u767D:e.cream,\u5976\u6CB9\u767D:e.cream,\u6C99\u8272:e.sand},_={...e,...J};function oe(c){let o=c.colorSeeds??{primary:"slate",accent:"blue",neutral:"zinc"},r=c.surfaceMode,n=y(o.primary||"slate"),t=l(n),s=l(y(o.accent||"blue")),u=o.neutral?y(o.neutral):X(n),a=h(u.h),d,i,k,g,S,x;r==="dark"?(d=l({mode:"oklch",l:.14,c:.03,h:a}),i=l({mode:"oklch",l:.95,c:.02,h:a}),k=l({mode:"oklch",l:.2,c:.04,h:a}),g=l({mode:"oklch",l:.29,c:.05,h:a}),S=l({mode:"oklch",l:.78,c:.02,h:a}),x=l({mode:"oklch",l:.35,c:.06,h:a})):(d=l({mode:"oklch",l:.98,c:.01,h:a}),i=l({mode:"oklch",l:.2,c:.02,h:a}),k=l({mode:"oklch",l:.96,c:.015,h:a}),g=l({mode:"oklch",l:.92,c:.02,h:a}),S=l({mode:"oklch",l:.43,c:.02,h:a}),x=l({mode:"oklch",l:.84,c:.025,h:a}));let f=c.imagePalette;if(f){let C=typeof f.background=="string"&&w(f.background),I=C&&Y(f.background,r);C&&I&&(d=l(y(f.background))),I&&typeof f.card=="string"&&w(f.card)&&(k=l(y(f.card))),I&&typeof f.muted=="string"&&w(f.muted)&&(g=l(y(f.muted))),typeof f.foreground=="string"&&w(f.foreground)?i=E(l(y(f.foreground)),d,A):C&&I&&(i=v(d)),typeof f.border=="string"&&w(f.border)&&(x=Q(l(y(f.border)),d))}typeof o.foreground=="string"&&w(o.foreground)&&(i=E(l(y(o.foreground)),d,A));let L=r!=="dark",N={"--background":d,"--foreground":i,"--card":k,"--card-foreground":i,"--muted":g,"--muted-foreground":S,"--border":x,"--input":x,"--ring":s,"--primary":t,"--primary-foreground":v(t),"--primary-hover":O(t,L),"--accent":s,"--accent-foreground":v(s),"--accent-ink":M(s,d),"--accent-subtle":j(s,L),"--accent-hover":O(s,L),"--overlay-on-dark":l({mode:"oklch",l:.96,c:.02,h:a}),"--overlay-on-light":l({mode:"oklch",l:.2,c:.02,h:a})},P=i,R=v(i),D=T(i,a),B=M(s,i),$=p(m(t)??t),V=h($?.h),z=T(t,V),H=M(s,t);return K({...N,...{"--surface-inverse":P,"--surface-inverse-foreground":R,"--surface-inverse-muted":D,"--surface-inverse-accent-ink":B,"--surface-primary-muted":z,"--surface-primary-accent-ink":H}},o)}function K(c,o){let r=l({mode:"oklch",l:.58,c:.22,h:28}),n=l({mode:"oklch",l:.6,c:.14,h:150}),t=l({mode:"oklch",l:.75,c:.15,h:75}),s={...c,"--popover":"var(--card)","--popover-foreground":"var(--card-foreground)","--secondary":"var(--muted)","--secondary-foreground":"var(--foreground)","--destructive":r,"--destructive-foreground":v(r),"--success":n,"--success-foreground":v(n),"--warning":t,"--warning-foreground":v(t)},[u,a]=U(o,s);return s["--supporting-0"]=u,s["--supporting-1"]=a,G(s["--accent"]).forEach((i,k)=>{s[`--chart-${k+1}`]=i}),s}function U(c,o){let t=(c.supporting??[]).filter(u=>!!(u&&u.trim())).slice(0,2).map(u=>l(y(u))),s=[o["--primary"],o["--accent"]];for(;t.length<2;)t.push(s[t.length]);return[t[0],t[1]]}function w(c){let o=(c??"").trim();if(!o||o.startsWith("#")&&!/^#[0-9A-Fa-f]{3,8}$/.test(o))return!1;let r=_[o.toLowerCase()]??o;return!!m(r)}function y(c,o="paper"){let r=(c??"").trim();if(!r)return y(o);let n=_[r.toLowerCase()]??r,t=m(n);if(t){let s=p(t);if(s)return s}return W(r)}function W(c){let o=2166136261,r=c.toLowerCase();for(let u=0;u<r.length;u++)o^=r.charCodeAt(u),o=Math.imul(o,16777619)>>>0;let n=o%360,t=.08+(o>>>9)%9/100;return{mode:"oklch",l:.52+(o>>>18)%16/100,c:t,h:n}}function X(c){return{mode:"oklch",l:.6,c:.02,h:h(c.h)}}function O(c,o){let r=p(m(c)??c);if(!r)return c;let n=o?-.06:.06,t=Math.max(.06,Math.min(.97,h(r.l)+n));return l({mode:"oklch",l:t,c:h(r.c),h:h(r.h)})}function j(c,o){let r=p(m(c)??c),n=h(r?.h),t=Math.min(h(r?.c),o?.05:.06);return l({mode:"oklch",l:o?.95:.24,c:t,h:n})}function G(c){let o=p(m(c)??c),r=h(o?.h),n=Math.max(.12,Math.min(h(o?.c),.16));return[0,72,144,216,288].map(t=>l({mode:"oklch",l:.62,c:n,h:(r+t)%360}))}function v(c){let o=m(c),r=o?p(o):void 0,n=h(r?.h),t={mode:"oklch",l:.99,c:.01,h:n},s={mode:"oklch",l:.18,c:.02,h:n},u=b(o??c,t),a=b(o??c,s);return l(u>=a?t:s)}function E(c,o,r){let n=p(m(c)??c);if(!n)return v(o);if(b(c,o)>=r)return l(n);let t=p(m(o)??o),u=(t?h(t.l)>=.5:!0)?-.02:.02,a=h(n.l),d=h(n.c),i=h(n.h);for(let k=1;k<=50;k++){let g=a+u*k;if(g<=0||g>=1)break;let S={mode:"oklch",l:g,c:d,h:i};if(b(S,o)>=r)return l(S)}return v(o)}var F=1.3;function Q(c,o){let r=p(m(c)??c);if(!r)return c;if(b(c,o)>=F)return l(r);let n=p(m(o)??o),s=(n?h(n.l)>=.5:!0)?-.03:.03,u=h(r.l),a=h(r.c),d=h(r.h);for(let i=1;i<=40;i++){let k=u+s*i;if(k<=0||k>=1)break;let g={mode:"oklch",l:k,c:a,h:d};if(b(g,o)>=F)return l(g)}return c}function Y(c,o){let r=p(m(c)??c);if(!r)return!1;let n=h(r.l)>=.5;return o==="dark"?!n:n}function M(c,o){let r=p(m(c)??c);if(!r)return c;let n=h(r.h),t=h(r.c),s=h(r.l),u=p(m(o)??o),d=(u?h(u.l)>=.5:!0)?-.02:.02;for(let i=0;i<=50;i++){let k=s+d*i;if(k<=0||k>=1)break;let g={mode:"oklch",l:k,c:t,h:n};if(b(g,o)>=A)return l(g)}return v(o)}function T(c,o){let r=p(m(c)??c),t=(r?h(r.l):.5)>=.5,s=t?.75:.35,u=t?-.02:.02;for(let a=0;a<=50;a++){let d=s+u*a;if(d<=0||d>=1)break;let i={mode:"oklch",l:d,c:.02,h:o};if(b(i,c)>=A)return l(i)}return v(c)}function h(c){return typeof c=="number"&&Number.isFinite(c)?c:0}function l(c){let o=h(c.l),r=h(c.c),n=h(c.h);return`oklch(${o.toFixed(2)} ${r.toFixed(2)} ${n.toFixed(2)})`}export{_ as SEMANTIC_SEED_ALIASES,M as accentInkFor,v as bestForegroundFor,h as channel,oe as deriveDesignColors,E as ensureReadableInk,w as isResolvableDesignColorSeed,l as oklchString};
@@ -0,0 +1,5 @@
1
+ export declare function parseE2bPreviewProxyDomain(value: string | null | undefined): string | null;
2
+ export declare function buildE2bBrowserPreviewUrl(input: {
3
+ sandboxId: string;
4
+ proxyDomain: string | null | undefined;
5
+ }): string | null;
@@ -34,6 +34,7 @@ export declare const ExternalSiteEditDegradedReasonSchema: z.ZodEnum<{
34
34
  patch_protected_dropped: "patch_protected_dropped";
35
35
  preview_build_failed: "preview_build_failed";
36
36
  preview_runtime_degraded: "preview_runtime_degraded";
37
+ build_not_verified: "build_not_verified";
37
38
  external_blocked: "external_blocked";
38
39
  cms_reconcile_failed: "cms_reconcile_failed";
39
40
  run_expired: "run_expired";
@@ -96,6 +97,7 @@ export declare const ExternalSiteEditTaskSchema: z.ZodObject<{
96
97
  patch_protected_dropped: "patch_protected_dropped";
97
98
  preview_build_failed: "preview_build_failed";
98
99
  preview_runtime_degraded: "preview_runtime_degraded";
100
+ build_not_verified: "build_not_verified";
99
101
  external_blocked: "external_blocked";
100
102
  cms_reconcile_failed: "cms_reconcile_failed";
101
103
  run_expired: "run_expired";
@@ -107,6 +109,7 @@ export declare const ExternalSiteEditTaskSchema: z.ZodObject<{
107
109
  preview_url: z.ZodNullable<z.ZodString>;
108
110
  summary: z.ZodNullable<z.ZodString>;
109
111
  error_code: z.ZodNullable<z.ZodString>;
112
+ build_verified: z.ZodNullable<z.ZodBoolean>;
110
113
  callback_status: z.ZodEnum<{
111
114
  failed: "failed";
112
115
  pending: "pending";
@@ -143,6 +146,7 @@ export declare const CreateExternalSiteEditResponseSchema: z.ZodObject<{
143
146
  patch_protected_dropped: "patch_protected_dropped";
144
147
  preview_build_failed: "preview_build_failed";
145
148
  preview_runtime_degraded: "preview_runtime_degraded";
149
+ build_not_verified: "build_not_verified";
146
150
  external_blocked: "external_blocked";
147
151
  cms_reconcile_failed: "cms_reconcile_failed";
148
152
  run_expired: "run_expired";
@@ -154,6 +158,7 @@ export declare const CreateExternalSiteEditResponseSchema: z.ZodObject<{
154
158
  preview_url: z.ZodNullable<z.ZodString>;
155
159
  summary: z.ZodNullable<z.ZodString>;
156
160
  error_code: z.ZodNullable<z.ZodString>;
161
+ build_verified: z.ZodNullable<z.ZodBoolean>;
157
162
  callback_status: z.ZodEnum<{
158
163
  failed: "failed";
159
164
  pending: "pending";
@@ -191,6 +196,7 @@ export declare const GetExternalSiteEditResponseSchema: z.ZodObject<{
191
196
  patch_protected_dropped: "patch_protected_dropped";
192
197
  preview_build_failed: "preview_build_failed";
193
198
  preview_runtime_degraded: "preview_runtime_degraded";
199
+ build_not_verified: "build_not_verified";
194
200
  external_blocked: "external_blocked";
195
201
  cms_reconcile_failed: "cms_reconcile_failed";
196
202
  run_expired: "run_expired";
@@ -202,6 +208,7 @@ export declare const GetExternalSiteEditResponseSchema: z.ZodObject<{
202
208
  preview_url: z.ZodNullable<z.ZodString>;
203
209
  summary: z.ZodNullable<z.ZodString>;
204
210
  error_code: z.ZodNullable<z.ZodString>;
211
+ build_verified: z.ZodNullable<z.ZodBoolean>;
205
212
  callback_status: z.ZodEnum<{
206
213
  failed: "failed";
207
214
  pending: "pending";
@@ -239,6 +246,7 @@ export declare const ExternalSiteEditCallbackPayloadSchema: z.ZodObject<{
239
246
  patch_protected_dropped: "patch_protected_dropped";
240
247
  preview_build_failed: "preview_build_failed";
241
248
  preview_runtime_degraded: "preview_runtime_degraded";
249
+ build_not_verified: "build_not_verified";
242
250
  external_blocked: "external_blocked";
243
251
  cms_reconcile_failed: "cms_reconcile_failed";
244
252
  run_expired: "run_expired";
@@ -248,6 +256,7 @@ export declare const ExternalSiteEditCallbackPayloadSchema: z.ZodObject<{
248
256
  preview_url: z.ZodNullable<z.ZodString>;
249
257
  summary: z.ZodNullable<z.ZodString>;
250
258
  error_code: z.ZodNullable<z.ZodString>;
259
+ build_verified: z.ZodNullable<z.ZodBoolean>;
251
260
  retryable: z.ZodBoolean;
252
261
  finished_at: z.ZodString;
253
262
  }, z.core.$strict>;