@supernova-studio/model 0.47.9 → 0.47.11

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/dist/index.mjs CHANGED
@@ -55,12 +55,9 @@ var PostStripeCheckoutOutputSchema = z4.object({
55
55
  });
56
56
 
57
57
  // src/billing/customer.ts
58
- import { z as z6 } from "zod";
58
+ import { z as z5 } from "zod";
59
59
 
60
60
  // src/helpers/db.ts
61
- import {
62
- z as z5
63
- } from "zod";
64
61
  function zodCreateInputOmit() {
65
62
  return {
66
63
  id: true,
@@ -83,44 +80,44 @@ function nullishToOptional(type) {
83
80
  }
84
81
 
85
82
  // src/billing/customer.ts
86
- var Customer = z6.object({
87
- id: z6.string()
88
- });
89
- var Address = z6.object({
90
- street1: nullishToOptional(z6.string()),
91
- street2: nullishToOptional(z6.string()),
92
- city: nullishToOptional(z6.string()),
93
- postal: nullishToOptional(z6.string()),
94
- country: nullishToOptional(z6.string()),
95
- state: nullishToOptional(z6.string())
96
- });
97
- var BillingDetails = z6.object({
83
+ var Customer = z5.object({
84
+ id: z5.string()
85
+ });
86
+ var Address = z5.object({
87
+ street1: nullishToOptional(z5.string()),
88
+ street2: nullishToOptional(z5.string()),
89
+ city: nullishToOptional(z5.string()),
90
+ postal: nullishToOptional(z5.string()),
91
+ country: nullishToOptional(z5.string()),
92
+ state: nullishToOptional(z5.string())
93
+ });
94
+ var BillingDetails = z5.object({
98
95
  address: nullishToOptional(Address),
99
- email: nullishToOptional(z6.string()),
100
- companyName: nullishToOptional(z6.string()),
101
- companyId: nullishToOptional(z6.string()),
102
- notes: nullishToOptional(z6.string()),
103
- vat: nullishToOptional(z6.string()),
104
- poNumber: nullishToOptional(z6.string())
96
+ email: nullishToOptional(z5.string()),
97
+ companyName: nullishToOptional(z5.string()),
98
+ companyId: nullishToOptional(z5.string()),
99
+ notes: nullishToOptional(z5.string()),
100
+ vat: nullishToOptional(z5.string()),
101
+ poNumber: nullishToOptional(z5.string())
105
102
  });
106
103
 
107
104
  // src/billing/features.ts
108
- import { z as z7 } from "zod";
109
- var featureLimitedSchema = z7.object({
110
- max: z7.number(),
111
- errorMessage: z7.string(),
112
- errorReason: z7.string()
105
+ import { z as z6 } from "zod";
106
+ var featureLimitedSchema = z6.object({
107
+ max: z6.number(),
108
+ errorMessage: z6.string(),
109
+ errorReason: z6.string()
113
110
  });
114
- var featureToggleSchema = z7.object({
115
- enabled: z7.boolean(),
116
- errorMessage: z7.string(),
117
- errorReason: z7.string()
111
+ var featureToggleSchema = z6.object({
112
+ enabled: z6.boolean(),
113
+ errorMessage: z6.string(),
114
+ errorReason: z6.string()
118
115
  });
119
116
  var featureWithImportJobsSchema = featureLimitedSchema.extend({
120
- noImportJobsErrorMessage: z7.string(),
121
- noImportJobsErrorReason: z7.string()
117
+ noImportJobsErrorMessage: z6.string(),
118
+ noImportJobsErrorReason: z6.string()
122
119
  });
123
- var FeaturesSummary = z7.object({
120
+ var FeaturesSummary = z6.object({
124
121
  designSystems: featureLimitedSchema,
125
122
  designSystemSources: featureWithImportJobsSchema,
126
123
  designSystemVersions: featureLimitedSchema,
@@ -142,77 +139,77 @@ var FeaturesSummary = z7.object({
142
139
  });
143
140
 
144
141
  // src/billing/invoice.ts
145
- import { z as z8 } from "zod";
146
- var InvoiceSchema = z8.object({
147
- id: z8.string(),
148
- number: z8.string(),
149
- amount_due: z8.number(),
150
- date: z8.coerce.date(),
151
- hostedUrl: z8.string().url(),
142
+ import { z as z7 } from "zod";
143
+ var InvoiceSchema = z7.object({
144
+ id: z7.string(),
145
+ number: z7.string(),
146
+ amount_due: z7.number(),
147
+ date: z7.coerce.date(),
148
+ hostedUrl: z7.string().url(),
152
149
  card: CardSchema.nullish()
153
150
  });
154
- var PeriodSchema = z8.object({
155
- start: z8.coerce.date(),
156
- end: z8.coerce.date()
151
+ var PeriodSchema = z7.object({
152
+ start: z7.coerce.date(),
153
+ end: z7.coerce.date()
157
154
  });
158
- var InvoiceLineSchema = z8.object({
159
- amount: z8.number(),
155
+ var InvoiceLineSchema = z7.object({
156
+ amount: z7.number(),
160
157
  period: PeriodSchema,
161
- proration: z8.boolean(),
162
- description: z8.string(),
163
- type: z8.string()
158
+ proration: z7.boolean(),
159
+ description: z7.string(),
160
+ type: z7.string()
164
161
  });
165
- var InvoiceCouponSchema = z8.object({
166
- amount_off: z8.number(),
167
- percent_off: z8.number(),
168
- name: z8.string()
162
+ var InvoiceCouponSchema = z7.object({
163
+ amount_off: z7.number(),
164
+ percent_off: z7.number(),
165
+ name: z7.string()
169
166
  });
170
167
 
171
168
  // src/billing/portalSession.ts
172
- import { z as z9 } from "zod";
173
- var PostStripePortalUpdateSessionBodyInputSchema = z9.object({
174
- priceId: z9.string(),
175
- numberOfSeats: z9.number().int()
169
+ import { z as z8 } from "zod";
170
+ var PostStripePortalUpdateSessionBodyInputSchema = z8.object({
171
+ priceId: z8.string(),
172
+ numberOfSeats: z8.number().int()
176
173
  });
177
- var PostStripePortalSessionBodyInputSchema = z9.object({
178
- returnUrl: z9.string().url(),
174
+ var PostStripePortalSessionBodyInputSchema = z8.object({
175
+ returnUrl: z8.string().url(),
179
176
  update: PostStripePortalUpdateSessionBodyInputSchema.optional(),
180
- cancel: z9.boolean().optional()
177
+ cancel: z8.boolean().optional()
181
178
  });
182
- var PostStripePortalSessionOutputSchema = z9.object({
183
- id: z9.string(),
184
- url: z9.string().nullish()
179
+ var PostStripePortalSessionOutputSchema = z8.object({
180
+ id: z8.string(),
181
+ url: z8.string().nullish()
185
182
  });
186
183
 
187
184
  // src/billing/price.ts
188
- import { z as z10 } from "zod";
189
- var BillingIntervalSchema = z10.enum(["daily", "monthly", "weekly", "yearly"]);
190
- var PriceSchema = z10.object({
191
- stripePriceId: z10.string(),
192
- stripeProductId: z10.string(),
193
- stripeProductName: z10.string().optional(),
194
- stripeProductDescription: z10.string().optional(),
195
- active: z10.boolean(),
196
- amount: z10.number(),
185
+ import { z as z9 } from "zod";
186
+ var BillingIntervalSchema = z9.enum(["daily", "monthly", "weekly", "yearly"]);
187
+ var PriceSchema = z9.object({
188
+ stripePriceId: z9.string(),
189
+ stripeProductId: z9.string(),
190
+ stripeProductName: z9.string().optional(),
191
+ stripeProductDescription: z9.string().optional(),
192
+ active: z9.boolean(),
193
+ amount: z9.number(),
197
194
  interval: BillingIntervalSchema,
198
- isPricePerCreator: z10.boolean().optional(),
199
- isTrial: z10.boolean().optional(),
200
- isHidden: z10.boolean().optional(),
201
- minimumSeats: z10.number().optional(),
202
- legacyVersion: z10.string().optional(),
203
- featuresSet: z10.string().optional(),
204
- stripeProductFeatures: z10.array(z10.string()).optional(),
205
- stripeProductAdditionalFeatures: z10.array(z10.string()).optional()
195
+ isPricePerCreator: z9.boolean().optional(),
196
+ isTrial: z9.boolean().optional(),
197
+ isHidden: z9.boolean().optional(),
198
+ minimumSeats: z9.number().optional(),
199
+ legacyVersion: z9.string().optional(),
200
+ featuresSet: z9.string().optional(),
201
+ stripeProductFeatures: z9.array(z9.string()).optional(),
202
+ stripeProductAdditionalFeatures: z9.array(z9.string()).optional()
206
203
  });
207
204
 
208
205
  // src/billing/product.ts
209
- import { z as z11 } from "zod";
210
- var ProductCodeSchema = z11.enum(["free", "team", "company", "enterprise"]);
206
+ import { z as z10 } from "zod";
207
+ var ProductCodeSchema = z10.enum(["free", "team", "company", "enterprise"]);
211
208
  var ProductCode = ProductCodeSchema.enum;
212
209
 
213
210
  // src/billing/subscription.ts
214
- import { z as z12 } from "zod";
215
- var StripeSubscriptionStatusSchema = z12.enum([
211
+ import { z as z11 } from "zod";
212
+ var StripeSubscriptionStatusSchema = z11.enum([
216
213
  "trialing",
217
214
  "active",
218
215
  "past_due",
@@ -222,14 +219,14 @@ var StripeSubscriptionStatusSchema = z12.enum([
222
219
  "incomplete",
223
220
  "unknown"
224
221
  ]);
225
- var InternalStatusSchema = z12.enum(["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]);
226
- var BillingTypeSchema = z12.enum(["Auto", "Invoice"]);
222
+ var InternalStatusSchema = z11.enum(["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]);
223
+ var BillingTypeSchema = z11.enum(["Auto", "Invoice"]);
227
224
  var StripeSubscriptionStatus = StripeSubscriptionStatusSchema.enum;
228
225
  var InternalStatus = InternalStatusSchema.enum;
229
226
  var BillingType = BillingTypeSchema.enum;
230
- var Subscription = z12.object({
231
- stripeSubscriptionId: z12.string().nullish(),
232
- stripeCustomerId: z12.string().nullish(),
227
+ var Subscription = z11.object({
228
+ stripeSubscriptionId: z11.string().nullish(),
229
+ stripeCustomerId: z11.string().nullish(),
233
230
  status: InternalStatusSchema.optional(),
234
231
  subscriptionStatus: StripeSubscriptionStatusSchema.optional(),
235
232
  // the stripe API official status
@@ -237,77 +234,77 @@ var Subscription = z12.object({
237
234
  // TODO: delete when create/get workspace will stop using it in the former API
238
235
  product: ProductCodeSchema,
239
236
  featuresSummary: FeaturesSummary.optional(),
240
- stripeProductDescription: z12.string().optional(),
241
- stripeProductFeatures: z12.array(z12.string()).optional(),
242
- stripeProductAdditionalFeatures: z12.array(z12.string()).optional(),
243
- stripeSubscriptionMainItemId: z12.string().optional(),
244
- planPriceId: z12.string(),
237
+ stripeProductDescription: z11.string().optional(),
238
+ stripeProductFeatures: z11.array(z11.string()).optional(),
239
+ stripeProductAdditionalFeatures: z11.array(z11.string()).optional(),
240
+ stripeSubscriptionMainItemId: z11.string().optional(),
241
+ planPriceId: z11.string(),
245
242
  planInterval: BillingIntervalSchema,
246
- isPricePerCreator: z12.boolean().optional(),
247
- legacyVersion: z12.string().optional(),
248
- seats: z12.number(),
249
- seatLimit: z12.number(),
250
- currentPeriodStart: z12.string().optional(),
251
- currentPeriodEnd: z12.string().optional(),
252
- subscriptionStatusUpdatedAt: z12.string().optional(),
253
- cancelAt: z12.string().nullish(),
243
+ isPricePerCreator: z11.boolean().optional(),
244
+ legacyVersion: z11.string().optional(),
245
+ seats: z11.number(),
246
+ seatLimit: z11.number(),
247
+ currentPeriodStart: z11.string().optional(),
248
+ currentPeriodEnd: z11.string().optional(),
249
+ subscriptionStatusUpdatedAt: z11.string().optional(),
250
+ cancelAt: z11.string().nullish(),
254
251
  card: CardSchema.optional(),
255
252
  // New
256
- amount: z12.number().nullish(),
257
- isTrial: z12.boolean().optional(),
253
+ amount: z11.number().nullish(),
254
+ isTrial: z11.boolean().optional(),
258
255
  billingType: BillingTypeSchema.optional(),
259
- daysUntilDue: z12.number().optional()
256
+ daysUntilDue: z11.number().optional()
260
257
  });
261
258
 
262
259
  // src/common/entity.ts
263
- import { z as z13 } from "zod";
264
- var Entity = z13.object({
265
- id: z13.string(),
266
- createdAt: z13.coerce.date(),
267
- updatedAt: z13.coerce.date()
260
+ import { z as z12 } from "zod";
261
+ var Entity = z12.object({
262
+ id: z12.string(),
263
+ createdAt: z12.coerce.date(),
264
+ updatedAt: z12.coerce.date()
268
265
  });
269
266
 
270
267
  // src/common/object-meta.ts
271
- import { z as z14 } from "zod";
272
- var ObjectMeta = z14.object({
273
- name: z14.string(),
274
- description: z14.string().optional()
268
+ import { z as z13 } from "zod";
269
+ var ObjectMeta = z13.object({
270
+ name: z13.string(),
271
+ description: z13.string().optional()
275
272
  });
276
273
 
277
274
  // src/custom-domains/custom-domains.ts
278
- import { z as z15 } from "zod";
279
- var CustomDomain = z15.object({
280
- id: z15.string(),
281
- designSystemId: z15.string(),
282
- state: z15.string(),
283
- supernovaDomain: z15.string(),
284
- customerDomain: z15.string().nullish(),
285
- error: z15.string().nullish(),
286
- errorCode: z15.string().nullish()
275
+ import { z as z14 } from "zod";
276
+ var CustomDomain = z14.object({
277
+ id: z14.string(),
278
+ designSystemId: z14.string(),
279
+ state: z14.string(),
280
+ supernovaDomain: z14.string(),
281
+ customerDomain: z14.string().nullish(),
282
+ error: z14.string().nullish(),
283
+ errorCode: z14.string().nullish()
287
284
  });
288
285
 
289
286
  // src/docs-server/session.ts
290
- import { z as z24 } from "zod";
287
+ import { z as z23 } from "zod";
291
288
 
292
289
  // src/users/linked-integrations.ts
293
- import { z as z16 } from "zod";
294
- var IntegrationAuthType = z16.union([z16.literal("OAuth2"), z16.literal("PAT")]);
295
- var ExternalServiceType = z16.union([
296
- z16.literal("figma"),
297
- z16.literal("github"),
298
- z16.literal("azure"),
299
- z16.literal("gitlab"),
300
- z16.literal("bitbucket")
290
+ import { z as z15 } from "zod";
291
+ var IntegrationAuthType = z15.union([z15.literal("OAuth2"), z15.literal("PAT")]);
292
+ var ExternalServiceType = z15.union([
293
+ z15.literal("figma"),
294
+ z15.literal("github"),
295
+ z15.literal("azure"),
296
+ z15.literal("gitlab"),
297
+ z15.literal("bitbucket")
301
298
  ]);
302
- var IntegrationUserInfo = z16.object({
303
- id: z16.string(),
304
- handle: z16.string().optional(),
305
- avatarUrl: z16.string().optional(),
306
- email: z16.string().optional(),
299
+ var IntegrationUserInfo = z15.object({
300
+ id: z15.string(),
301
+ handle: z15.string().optional(),
302
+ avatarUrl: z15.string().optional(),
303
+ email: z15.string().optional(),
307
304
  authType: IntegrationAuthType.optional(),
308
- customUrl: z16.string().optional()
305
+ customUrl: z15.string().optional()
309
306
  });
310
- var UserLinkedIntegrations = z16.object({
307
+ var UserLinkedIntegrations = z15.object({
311
308
  figma: IntegrationUserInfo.optional(),
312
309
  github: IntegrationUserInfo.array().optional(),
313
310
  azure: IntegrationUserInfo.array().optional(),
@@ -316,35 +313,35 @@ var UserLinkedIntegrations = z16.object({
316
313
  });
317
314
 
318
315
  // src/users/user-create.ts
319
- import { z as z17 } from "zod";
320
- var CreateUserInput = z17.object({
321
- email: z17.string(),
322
- name: z17.string(),
323
- username: z17.string()
316
+ import { z as z16 } from "zod";
317
+ var CreateUserInput = z16.object({
318
+ email: z16.string(),
319
+ name: z16.string(),
320
+ username: z16.string()
324
321
  });
325
322
 
326
323
  // src/users/user-identity.ts
327
- import { z as z18 } from "zod";
328
- var UserIdentity = z18.object({
329
- id: z18.string(),
330
- userId: z18.string()
324
+ import { z as z17 } from "zod";
325
+ var UserIdentity = z17.object({
326
+ id: z17.string(),
327
+ userId: z17.string()
331
328
  });
332
329
 
333
330
  // src/users/user-minified.ts
334
- import { z as z19 } from "zod";
335
- var UserMinified = z19.object({
336
- id: z19.string(),
337
- name: z19.string(),
338
- email: z19.string(),
339
- avatar: z19.string().optional()
331
+ import { z as z18 } from "zod";
332
+ var UserMinified = z18.object({
333
+ id: z18.string(),
334
+ name: z18.string(),
335
+ email: z18.string(),
336
+ avatar: z18.string().optional()
340
337
  });
341
338
 
342
339
  // src/users/user-notification-settings.ts
343
- import { z as z20 } from "zod";
344
- var LiveblocksNotificationSettings = z20.object({
345
- sendCommentNotificationEmails: z20.boolean()
340
+ import { z as z19 } from "zod";
341
+ var LiveblocksNotificationSettings = z19.object({
342
+ sendCommentNotificationEmails: z19.boolean()
346
343
  });
347
- var UserNotificationSettings = z20.object({
344
+ var UserNotificationSettings = z19.object({
348
345
  liveblocksNotificationSettings: LiveblocksNotificationSettings
349
346
  });
350
347
  var defaultNotificationSettings = {
@@ -354,25 +351,25 @@ var defaultNotificationSettings = {
354
351
  };
355
352
 
356
353
  // src/users/user-profile.ts
357
- import { z as z21 } from "zod";
358
- var UserOnboardingDepartment = z21.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
359
- var UserOnboardingJobLevel = z21.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
360
- var UserOnboarding = z21.object({
361
- companyName: z21.string().optional(),
362
- numberOfPeopleInOrg: z21.string().optional(),
363
- numberOfPeopleInDesignTeam: z21.string().optional(),
354
+ import { z as z20 } from "zod";
355
+ var UserOnboardingDepartment = z20.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
356
+ var UserOnboardingJobLevel = z20.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
357
+ var UserOnboarding = z20.object({
358
+ companyName: z20.string().optional(),
359
+ numberOfPeopleInOrg: z20.string().optional(),
360
+ numberOfPeopleInDesignTeam: z20.string().optional(),
364
361
  department: UserOnboardingDepartment.optional(),
365
- jobTitle: z21.string().optional(),
366
- phase: z21.string().optional(),
362
+ jobTitle: z20.string().optional(),
363
+ phase: z20.string().optional(),
367
364
  jobLevel: UserOnboardingJobLevel.optional(),
368
- designSystemName: z21.string().optional(),
369
- defaultDestination: z21.string().optional(),
370
- figmaUrl: z21.string().optional()
371
- });
372
- var UserProfile = z21.object({
373
- name: z21.string(),
374
- avatar: z21.string().optional(),
375
- nickname: z21.string().optional(),
365
+ designSystemName: z20.string().optional(),
366
+ defaultDestination: z20.string().optional(),
367
+ figmaUrl: z20.string().optional()
368
+ });
369
+ var UserProfile = z20.object({
370
+ name: z20.string(),
371
+ avatar: z20.string().optional(),
372
+ nickname: z20.string().optional(),
376
373
  onboarding: UserOnboarding.optional()
377
374
  });
378
375
  var UserProfileUpdate = UserProfile.partial().omit({
@@ -380,206 +377,206 @@ var UserProfileUpdate = UserProfile.partial().omit({
380
377
  });
381
378
 
382
379
  // src/users/user-test.ts
383
- import { z as z22 } from "zod";
384
- var UserTest = z22.object({
385
- id: z22.string(),
386
- email: z22.string()
380
+ import { z as z21 } from "zod";
381
+ var UserTest = z21.object({
382
+ id: z21.string(),
383
+ email: z21.string()
387
384
  });
388
385
 
389
386
  // src/users/user.ts
390
- import { z as z23 } from "zod";
391
- var User = z23.object({
392
- id: z23.string(),
393
- email: z23.string(),
394
- emailVerified: z23.boolean(),
395
- createdAt: z23.coerce.date(),
396
- trialExpiresAt: z23.coerce.date().optional(),
387
+ import { z as z22 } from "zod";
388
+ var User = z22.object({
389
+ id: z22.string(),
390
+ email: z22.string(),
391
+ emailVerified: z22.boolean(),
392
+ createdAt: z22.coerce.date(),
393
+ trialExpiresAt: z22.coerce.date().optional(),
397
394
  profile: UserProfile,
398
395
  linkedIntegrations: UserLinkedIntegrations.optional(),
399
- loggedOutAt: z23.coerce.date().optional(),
400
- isProtected: z23.boolean()
396
+ loggedOutAt: z22.coerce.date().optional(),
397
+ isProtected: z22.boolean()
401
398
  });
402
399
 
403
400
  // src/docs-server/session.ts
404
- var NpmProxyToken = z24.object({
405
- access: z24.string(),
406
- expiresAt: z24.number()
401
+ var NpmProxyToken = z23.object({
402
+ access: z23.string(),
403
+ expiresAt: z23.number()
407
404
  });
408
- var SessionData = z24.object({
409
- returnToUrl: z24.string().optional(),
405
+ var SessionData = z23.object({
406
+ returnToUrl: z23.string().optional(),
410
407
  npmProxyToken: NpmProxyToken.optional()
411
408
  });
412
- var Session = z24.object({
413
- id: z24.string(),
414
- expiresAt: z24.coerce.date(),
415
- userId: z24.string().nullable(),
409
+ var Session = z23.object({
410
+ id: z23.string(),
411
+ expiresAt: z23.coerce.date(),
412
+ userId: z23.string().nullable(),
416
413
  data: SessionData
417
414
  });
418
- var AuthTokens = z24.object({
419
- access: z24.string(),
420
- refresh: z24.string()
415
+ var AuthTokens = z23.object({
416
+ access: z23.string(),
417
+ refresh: z23.string()
421
418
  });
422
- var UserSession = z24.object({
419
+ var UserSession = z23.object({
423
420
  session: Session,
424
421
  user: User.nullable()
425
422
  });
426
423
 
427
424
  // src/dsm/assets/asset-dynamo-record.ts
428
- import { z as z25 } from "zod";
429
- var AssetDynamoRecord = z25.object({
430
- path: z25.string(),
431
- id: z25.string(),
432
- designSystemId: z25.string(),
433
- expiresAt: z25.number()
425
+ import { z as z24 } from "zod";
426
+ var AssetDynamoRecord = z24.object({
427
+ path: z24.string(),
428
+ id: z24.string(),
429
+ designSystemId: z24.string(),
430
+ expiresAt: z24.number()
434
431
  });
435
432
 
436
433
  // src/dsm/assets/asset-reference.ts
437
- import { z as z26 } from "zod";
438
- var AssetReference = z26.object({
439
- id: z26.string(),
440
- designSystemVersionId: z26.string(),
441
- assetId: z26.string(),
442
- persistentId: z26.string()
434
+ import { z as z25 } from "zod";
435
+ var AssetReference = z25.object({
436
+ id: z25.string(),
437
+ designSystemVersionId: z25.string(),
438
+ assetId: z25.string(),
439
+ persistentId: z25.string()
443
440
  });
444
441
 
445
442
  // src/dsm/assets/asset-value.ts
446
- import { z as z27 } from "zod";
447
- var AssetValue = z27.object({});
443
+ import { z as z26 } from "zod";
444
+ var AssetValue = z26.object({});
448
445
 
449
446
  // src/dsm/assets/asset.ts
450
- import { z as z28 } from "zod";
451
- var AssetType = z28.enum(["Image", "Font"]);
452
- var AssetScope = z28.enum(["DocumentationFrame", "ComponentThumbnail", "DesignSystem", "Documentation"]);
453
- var AssetFontProperties = z28.object({
454
- family: z28.string(),
455
- subfamily: z28.string()
456
- });
457
- var AssetProperties = z28.union([
458
- z28.object({
459
- fontProperties: z28.array(AssetFontProperties)
447
+ import { z as z27 } from "zod";
448
+ var AssetType = z27.enum(["Image", "Font"]);
449
+ var AssetScope = z27.enum(["DocumentationFrame", "ComponentThumbnail", "DesignSystem", "Documentation"]);
450
+ var AssetFontProperties = z27.object({
451
+ family: z27.string(),
452
+ subfamily: z27.string()
453
+ });
454
+ var AssetProperties = z27.union([
455
+ z27.object({
456
+ fontProperties: z27.array(AssetFontProperties)
460
457
  }),
461
- z28.object({
462
- width: z28.number(),
463
- height: z28.number()
458
+ z27.object({
459
+ width: z27.number(),
460
+ height: z27.number()
464
461
  })
465
462
  ]);
466
- var AssetOrigin = z28.object({
467
- originKey: z28.string()
463
+ var AssetOrigin = z27.object({
464
+ originKey: z27.string()
468
465
  });
469
- var AssetProcessStatus = z28.enum(["Pending", "Uploaded", "Processed"]);
470
- var Asset = z28.object({
471
- id: z28.string(),
472
- designSystemId: z28.string().nullish(),
466
+ var AssetProcessStatus = z27.enum(["Pending", "Uploaded", "Processed"]);
467
+ var Asset = z27.object({
468
+ id: z27.string(),
469
+ designSystemId: z27.string().nullish(),
473
470
  type: AssetType,
474
- originalFileName: z28.string().nullish(),
475
- filePath: z28.string(),
471
+ originalFileName: z27.string().nullish(),
472
+ filePath: z27.string(),
476
473
  scope: AssetScope,
477
474
  properties: AssetProperties.nullish(),
478
475
  state: AssetProcessStatus.optional(),
479
476
  origin: AssetOrigin.optional(),
480
- originKey: z28.string().optional()
477
+ originKey: z27.string().optional()
481
478
  });
482
479
  function isImportedAsset(asset) {
483
480
  return !!asset.originKey;
484
481
  }
485
482
 
486
483
  // src/dsm/data-sources/data-source.ts
487
- import { z as z29 } from "zod";
488
- var DataSourceRemoteType = z29.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
489
- var DataSourceUploadRemoteSource = z29.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
490
- var DataSourceFigmaState = z29.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
491
- var DataSourceAutoImportMode = z29.enum(["Never", "Hourly"]);
492
- var DataSourceStats = z29.object({
484
+ import { z as z28 } from "zod";
485
+ var DataSourceRemoteType = z28.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
486
+ var DataSourceUploadRemoteSource = z28.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
487
+ var DataSourceFigmaState = z28.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
488
+ var DataSourceAutoImportMode = z28.enum(["Never", "Hourly"]);
489
+ var DataSourceStats = z28.object({
493
490
  tokens: zeroNumberByDefault(),
494
491
  components: zeroNumberByDefault(),
495
492
  assets: zeroNumberByDefault(),
496
493
  frames: zeroNumberByDefault()
497
494
  });
498
- var DataSourceFigmaFileData = z29.object({
499
- lastUpdatedAt: z29.coerce.date()
500
- });
501
- var DataSourceFigmaFileVersionData = z29.object({
502
- id: z29.string(),
503
- label: z29.string().optional(),
504
- description: z29.string().optional(),
505
- createdAt: z29.coerce.date()
495
+ var DataSourceFigmaFileData = z28.object({
496
+ lastUpdatedAt: z28.coerce.date()
506
497
  });
507
- var DataSourceFigmaScope = z29.object({
508
- assets: z29.boolean(),
509
- components: z29.boolean(),
510
- documentationFrames: z29.boolean(),
511
- tokens: z29.boolean(),
512
- themePersistentId: z29.string().optional(),
513
- isUnpublishedImportFallbackEnabled: z29.boolean()
514
- });
515
- var DataSourceFigmaImportMetadata = z29.object({
498
+ var DataSourceFigmaFileVersionData = z28.object({
499
+ id: z28.string(),
500
+ label: z28.string().optional(),
501
+ description: z28.string().optional(),
502
+ createdAt: z28.coerce.date()
503
+ });
504
+ var DataSourceFigmaScope = z28.object({
505
+ assets: z28.boolean(),
506
+ components: z28.boolean(),
507
+ documentationFrames: z28.boolean(),
508
+ tokens: z28.boolean(),
509
+ themePersistentId: z28.string().optional(),
510
+ isUnpublishedImportFallbackEnabled: z28.boolean()
511
+ });
512
+ var DataSourceFigmaImportMetadata = z28.object({
516
513
  fileData: DataSourceFigmaFileData.optional(),
517
514
  importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
518
515
  });
519
- var DataSourceFigmaRemote = z29.object({
520
- type: z29.literal(DataSourceRemoteType.Enum.Figma),
521
- fileId: z29.string(),
522
- preferredCredentialId: z29.string().optional(),
523
- ownerId: z29.string(),
516
+ var DataSourceFigmaRemote = z28.object({
517
+ type: z28.literal(DataSourceRemoteType.Enum.Figma),
518
+ fileId: z28.string(),
519
+ preferredCredentialId: z28.string().optional(),
520
+ ownerId: z28.string(),
524
521
  // todo remove or keep to reference who created data source
525
- ownerName: z29.string(),
522
+ ownerName: z28.string(),
526
523
  // todo probably remove
527
524
  scope: DataSourceFigmaScope,
528
525
  state: DataSourceFigmaState,
529
- requiresSync: z29.boolean().optional().transform((v) => v ?? false),
526
+ requiresSync: z28.boolean().optional().transform((v) => v ?? false),
530
527
  lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
531
- downloadChunkSize: z29.number().optional(),
532
- figmaRenderChunkSize: z29.number().optional(),
533
- maxFileDepth: z29.number().optional()
528
+ downloadChunkSize: z28.number().optional(),
529
+ figmaRenderChunkSize: z28.number().optional(),
530
+ maxFileDepth: z28.number().optional()
534
531
  });
535
- var DataSourceTokenStudioRemote = z29.object({
536
- type: z29.literal(DataSourceRemoteType.Enum.TokenStudio)
532
+ var DataSourceTokenStudioRemote = z28.object({
533
+ type: z28.literal(DataSourceRemoteType.Enum.TokenStudio)
537
534
  });
538
- var DataSourceUploadImportMetadata = z29.record(z29.any());
539
- var DataSourceUploadRemote = z29.object({
540
- type: z29.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
541
- remoteId: z29.string(),
535
+ var DataSourceUploadImportMetadata = z28.record(z28.any());
536
+ var DataSourceUploadRemote = z28.object({
537
+ type: z28.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
538
+ remoteId: z28.string(),
542
539
  remoteSourceType: DataSourceUploadRemoteSource,
543
540
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
544
541
  });
545
- var DataSourceRemote = z29.discriminatedUnion("type", [
542
+ var DataSourceRemote = z28.discriminatedUnion("type", [
546
543
  DataSourceFigmaRemote,
547
544
  DataSourceUploadRemote,
548
545
  DataSourceTokenStudioRemote
549
546
  ]);
550
- var DataSourceVersion = z29.object({
551
- id: z29.string(),
552
- createdAt: z29.coerce.date(),
553
- label: z29.string().nullish(),
554
- description: z29.string().nullish()
547
+ var DataSourceVersion = z28.object({
548
+ id: z28.string(),
549
+ createdAt: z28.coerce.date(),
550
+ label: z28.string().nullish(),
551
+ description: z28.string().nullish()
555
552
  });
556
553
  function zeroNumberByDefault() {
557
- return z29.number().nullish().transform((v) => v ?? 0);
554
+ return z28.number().nullish().transform((v) => v ?? 0);
558
555
  }
559
556
 
560
557
  // src/dsm/data-sources/import-job.ts
561
- import { z as z30 } from "zod";
562
- var ImportJobState = z30.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
563
- var ImportJobOperation = z30.enum(["Check", "Import"]);
558
+ import { z as z29 } from "zod";
559
+ var ImportJobState = z29.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
560
+ var ImportJobOperation = z29.enum(["Check", "Import"]);
564
561
  var ImportJob = Entity.extend({
565
- designSystemId: z30.string(),
566
- designSystemVersionId: z30.string(),
567
- sourceIds: z30.array(z30.string()),
562
+ designSystemId: z29.string(),
563
+ designSystemVersionId: z29.string(),
564
+ sourceIds: z29.array(z29.string()),
568
565
  state: ImportJobState,
569
- createdByUserId: z30.string().optional(),
570
- importContextId: z30.string(),
571
- error: z30.string().optional(),
566
+ createdByUserId: z29.string().optional(),
567
+ importContextId: z29.string(),
568
+ error: z29.string().optional(),
572
569
  sourceType: DataSourceRemoteType,
573
- importContextCleanedUp: z30.boolean()
570
+ importContextCleanedUp: z29.boolean()
574
571
  });
575
572
 
576
573
  // src/dsm/data-sources/import-summary.ts
577
- import { z as z99 } from "zod";
574
+ import { z as z98 } from "zod";
578
575
 
579
576
  // src/dsm/elements/data/base.ts
580
- import { z as z31 } from "zod";
581
- var TokenDataAliasSchema = z31.object({
582
- aliasTo: z31.string().optional().nullable().transform((v) => v ?? void 0)
577
+ import { z as z30 } from "zod";
578
+ var TokenDataAliasSchema = z30.object({
579
+ aliasTo: z30.string().optional().nullable().transform((v) => v ?? void 0)
583
580
  });
584
581
  function tokenAliasOrValue(value) {
585
582
  return TokenDataAliasSchema.extend({
@@ -588,68 +585,68 @@ function tokenAliasOrValue(value) {
588
585
  }
589
586
 
590
587
  // src/dsm/elements/data/blur.ts
591
- import { z as z33 } from "zod";
588
+ import { z as z32 } from "zod";
592
589
 
593
590
  // src/dsm/elements/data/dimension.ts
594
- import { z as z32 } from "zod";
595
- var DimensionUnit = z32.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
596
- var DimensionValue = z32.object({
591
+ import { z as z31 } from "zod";
592
+ var DimensionUnit = z31.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
593
+ var DimensionValue = z31.object({
597
594
  unit: DimensionUnit,
598
- measure: z32.number()
595
+ measure: z31.number()
599
596
  });
600
597
  var DimensionTokenData = tokenAliasOrValue(DimensionValue);
601
598
 
602
599
  // src/dsm/elements/data/blur.ts
603
- var BlurType = z33.enum(["Layer", "Background"]);
604
- var BlurValue = z33.object({
600
+ var BlurType = z32.enum(["Layer", "Background"]);
601
+ var BlurValue = z32.object({
605
602
  type: BlurType,
606
603
  radius: DimensionTokenData
607
604
  });
608
605
  var BlurTokenData = tokenAliasOrValue(BlurValue);
609
606
 
610
607
  // src/dsm/elements/data/border-radius.ts
611
- import { z as z34 } from "zod";
612
- var BorderRadiusUnit = z34.enum(["Pixels", "Rem", "Percent"]);
613
- var BorderRadiusValue = z34.object({
608
+ import { z as z33 } from "zod";
609
+ var BorderRadiusUnit = z33.enum(["Pixels", "Rem", "Percent"]);
610
+ var BorderRadiusValue = z33.object({
614
611
  unit: BorderRadiusUnit,
615
- measure: z34.number()
612
+ measure: z33.number()
616
613
  });
617
614
  var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
618
615
 
619
616
  // src/dsm/elements/data/border-width.ts
620
- import { z as z35 } from "zod";
621
- var BorderWidthUnit = z35.enum(["Pixels"]);
622
- var BorderWidthValue = z35.object({
617
+ import { z as z34 } from "zod";
618
+ var BorderWidthUnit = z34.enum(["Pixels"]);
619
+ var BorderWidthValue = z34.object({
623
620
  unit: BorderWidthUnit,
624
- measure: z35.number()
621
+ measure: z34.number()
625
622
  });
626
623
  var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
627
624
 
628
625
  // src/dsm/elements/data/border.ts
629
- import { z as z38 } from "zod";
626
+ import { z as z37 } from "zod";
630
627
 
631
628
  // src/dsm/elements/data/color.ts
632
- import { z as z37 } from "zod";
629
+ import { z as z36 } from "zod";
633
630
 
634
631
  // src/dsm/elements/data/opacity.ts
635
- import { z as z36 } from "zod";
636
- var OpacityValue = z36.object({
637
- unit: z36.enum(["Raw", "Pixels"]),
638
- measure: z36.number()
632
+ import { z as z35 } from "zod";
633
+ var OpacityValue = z35.object({
634
+ unit: z35.enum(["Raw", "Pixels"]),
635
+ measure: z35.number()
639
636
  });
640
637
  var OpacityTokenData = tokenAliasOrValue(OpacityValue);
641
638
 
642
639
  // src/dsm/elements/data/color.ts
643
- var ColorValue = z37.object({
640
+ var ColorValue = z36.object({
644
641
  opacity: OpacityTokenData,
645
- color: z37.string().or(TokenDataAliasSchema)
642
+ color: z36.string().or(TokenDataAliasSchema)
646
643
  });
647
644
  var ColorTokenData = tokenAliasOrValue(ColorValue);
648
645
 
649
646
  // src/dsm/elements/data/border.ts
650
- var BorderPosition = z38.enum(["Inside", "Center", "Outside"]);
651
- var BorderStyle = z38.enum(["Dashed", "Dotted", "Solid", "Groove"]);
652
- var BorderValue = z38.object({
647
+ var BorderPosition = z37.enum(["Inside", "Center", "Outside"]);
648
+ var BorderStyle = z37.enum(["Dashed", "Dotted", "Solid", "Groove"]);
649
+ var BorderValue = z37.object({
653
650
  color: ColorTokenData,
654
651
  width: BorderWidthTokenData,
655
652
  position: BorderPosition,
@@ -658,30 +655,30 @@ var BorderValue = z38.object({
658
655
  var BorderTokenData = tokenAliasOrValue(BorderValue);
659
656
 
660
657
  // src/dsm/elements/data/component.ts
661
- import { z as z39 } from "zod";
662
- var ComponentElementData = z39.object({
663
- value: z39.object({
664
- thumbnailImage: z39.object({
665
- value: z39.object({
666
- url: z39.string(),
667
- assetId: z39.string()
658
+ import { z as z38 } from "zod";
659
+ var ComponentElementData = z38.object({
660
+ value: z38.object({
661
+ thumbnailImage: z38.object({
662
+ value: z38.object({
663
+ url: z38.string(),
664
+ assetId: z38.string()
668
665
  })
669
666
  }),
670
- svg: z39.object({
671
- value: z39.object({
672
- url: z39.string(),
673
- assetId: z39.string()
667
+ svg: z38.object({
668
+ value: z38.object({
669
+ url: z38.string(),
670
+ assetId: z38.string()
674
671
  })
675
672
  }).optional()
676
673
  })
677
674
  });
678
675
 
679
676
  // src/dsm/elements/data/documentation-block-v1.ts
680
- import { z as z45 } from "zod";
677
+ import { z as z44 } from "zod";
681
678
 
682
679
  // src/dsm/elements/raw-element.ts
683
- import { z as z40 } from "zod";
684
- var DesignTokenType = z40.enum([
680
+ import { z as z39 } from "zod";
681
+ var DesignTokenType = z39.enum([
685
682
  "Color",
686
683
  "Border",
687
684
  "Gradient",
@@ -713,7 +710,7 @@ var DesignTokenType = z40.enum([
713
710
  ]);
714
711
  var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
715
712
  var DesignElementType = DesignTokenType.or(
716
- z40.enum([
713
+ z39.enum([
717
714
  "Component",
718
715
  "Theme",
719
716
  "Documentation",
@@ -728,7 +725,7 @@ var DesignElementType = DesignTokenType.or(
728
725
  function isTokenType(type) {
729
726
  return DesignTokenType.safeParse(type).success;
730
727
  }
731
- var DesignElementCategory = z40.enum([
728
+ var DesignElementCategory = z39.enum([
732
729
  "Token",
733
730
  "Component",
734
731
  "DesignSystemComponent",
@@ -736,94 +733,94 @@ var DesignElementCategory = z40.enum([
736
733
  "Theme",
737
734
  "PageBlock"
738
735
  ]);
739
- var DesignSystemElementExportProps = z40.object({
740
- isAsset: z40.boolean().nullish().transform((v) => v ?? false),
741
- codeName: z40.string().nullish()
742
- });
743
- var ShallowDesignElement = z40.object({
744
- id: z40.string(),
745
- persistentId: z40.string(),
746
- designSystemVersionId: z40.string(),
736
+ var DesignSystemElementExportProps = z39.object({
737
+ isAsset: z39.boolean().nullish().transform((v) => v ?? false),
738
+ codeName: z39.string().nullish()
739
+ });
740
+ var ShallowDesignElement = z39.object({
741
+ id: z39.string(),
742
+ persistentId: z39.string(),
743
+ designSystemVersionId: z39.string(),
747
744
  type: DesignElementType,
748
- brandPersistentId: z40.string().optional(),
749
- parentPersistentId: z40.string().optional(),
750
- shortPersistentId: z40.string().optional(),
745
+ brandPersistentId: z39.string().optional(),
746
+ parentPersistentId: z39.string().optional(),
747
+ shortPersistentId: z39.string().optional(),
751
748
  childType: DesignElementType.optional(),
752
- sortOrder: z40.number(),
753
- origin: z40.record(z40.any()).optional()
749
+ sortOrder: z39.number(),
750
+ origin: z39.record(z39.any()).optional()
754
751
  });
755
752
  var DesignElement = ShallowDesignElement.extend({
756
753
  meta: ObjectMeta,
757
- slug: z40.string().optional(),
758
- userSlug: z40.string().optional(),
759
- createdAt: z40.coerce.date(),
760
- updatedAt: z40.coerce.date(),
754
+ slug: z39.string().optional(),
755
+ userSlug: z39.string().optional(),
756
+ createdAt: z39.coerce.date(),
757
+ updatedAt: z39.coerce.date(),
761
758
  exportProperties: DesignSystemElementExportProps.optional(),
762
- data: z40.record(z40.any()),
763
- origin: z40.record(z40.any()).optional()
759
+ data: z39.record(z39.any()),
760
+ origin: z39.record(z39.any()).optional()
764
761
  });
765
762
  var HierarchicalElements = DesignTokenType.or(
766
- z40.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
763
+ z39.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
767
764
  );
768
765
 
769
766
  // src/dsm/properties/property-definition.ts
770
- import { z as z41 } from "zod";
771
- var ElementPropertyTypeSchema = z41.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
772
- var ElementPropertyTargetType = z41.enum(["Token", "Component", "DocumentationPage"]);
773
- var ElementPropertyLinkType = z41.enum(["FigmaComponent", "DocumentationPage"]);
767
+ import { z as z40 } from "zod";
768
+ var ElementPropertyTypeSchema = z40.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
769
+ var ElementPropertyTargetType = z40.enum(["Token", "Component", "DocumentationPage"]);
770
+ var ElementPropertyLinkType = z40.enum(["FigmaComponent", "DocumentationPage"]);
774
771
  var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
775
- var ColorTokenInlineData = z41.object({
776
- value: z41.string()
772
+ var ColorTokenInlineData = z40.object({
773
+ value: z40.string()
777
774
  });
778
- var ElementPropertyDefinitionOption = z41.object({
779
- id: z41.string(),
780
- name: z41.string(),
775
+ var ElementPropertyDefinitionOption = z40.object({
776
+ id: z40.string(),
777
+ name: z40.string(),
781
778
  backgroundColor: ColorTokenInlineData.optional()
782
779
  });
783
- var ElementPropertyDefinition = z41.object({
784
- id: z41.string(),
785
- designSystemVersionId: z41.string(),
786
- persistentId: z41.string(),
787
- name: z41.string(),
788
- codeName: z41.string().regex(CODE_NAME_REGEX),
789
- description: z41.string(),
780
+ var ElementPropertyDefinition = z40.object({
781
+ id: z40.string(),
782
+ designSystemVersionId: z40.string(),
783
+ persistentId: z40.string(),
784
+ name: z40.string(),
785
+ codeName: z40.string().regex(CODE_NAME_REGEX),
786
+ description: z40.string(),
790
787
  type: ElementPropertyTypeSchema,
791
788
  targetElementType: ElementPropertyTargetType,
792
- options: z41.array(ElementPropertyDefinitionOption).optional(),
789
+ options: z40.array(ElementPropertyDefinitionOption).optional(),
793
790
  linkElementType: ElementPropertyLinkType.optional()
794
791
  });
795
792
  var ElementPropertyType = ElementPropertyTypeSchema.enum;
796
793
 
797
794
  // src/dsm/properties/property-value.ts
798
- import { z as z42 } from "zod";
799
- var ElementPropertyValue = z42.object({
800
- id: z42.string(),
801
- designSystemVersionId: z42.string(),
802
- targetElementPersistentId: z42.string(),
803
- definitionPersistentId: z42.string(),
804
- stringValue: z42.string().nullish(),
805
- numberValue: z42.number().nullish(),
806
- booleanValue: z42.boolean().nullish(),
807
- referenceValue: z42.string().nullish(),
808
- referenceValuePreview: z42.string().optional()
795
+ import { z as z41 } from "zod";
796
+ var ElementPropertyValue = z41.object({
797
+ id: z41.string(),
798
+ designSystemVersionId: z41.string(),
799
+ targetElementPersistentId: z41.string(),
800
+ definitionPersistentId: z41.string(),
801
+ stringValue: z41.string().nullish(),
802
+ numberValue: z41.number().nullish(),
803
+ booleanValue: z41.boolean().nullish(),
804
+ referenceValue: z41.string().nullish(),
805
+ referenceValuePreview: z41.string().optional()
809
806
  });
810
807
 
811
808
  // src/dsm/elements/primitives/point.ts
812
- import { z as z43 } from "zod";
813
- var Point2D = z43.object({
814
- x: z43.number(),
815
- y: z43.number()
809
+ import { z as z42 } from "zod";
810
+ var Point2D = z42.object({
811
+ x: z42.number(),
812
+ y: z42.number()
816
813
  });
817
814
 
818
815
  // src/dsm/elements/primitives/size.ts
819
- import { z as z44 } from "zod";
816
+ import { z as z43 } from "zod";
820
817
  var nullSize = { height: -1, width: -1 };
821
818
  function isNullSize(size) {
822
819
  return size.height === nullSize.height && size.width === nullSize.width;
823
820
  }
824
- var Size = z44.object({
825
- width: z44.number().nullish().transform((v) => v ?? nullSize.width),
826
- height: z44.number().nullish().transform((v) => v ?? nullSize.height)
821
+ var Size = z43.object({
822
+ width: z43.number().nullish().transform((v) => v ?? nullSize.width),
823
+ height: z43.number().nullish().transform((v) => v ?? nullSize.height)
827
824
  });
828
825
  var SizeOrUndefined = Size.optional().transform((v) => {
829
826
  if (!v)
@@ -834,8 +831,8 @@ var SizeOrUndefined = Size.optional().transform((v) => {
834
831
  });
835
832
 
836
833
  // src/dsm/elements/data/documentation-block-v1.ts
837
- var PageBlockCalloutType = z45.enum(["Info", "Primary", "Success", "Warning", "Error"]);
838
- var PageBlockTypeV1 = z45.enum([
834
+ var PageBlockCalloutType = z44.enum(["Info", "Primary", "Success", "Warning", "Error"]);
835
+ var PageBlockTypeV1 = z44.enum([
839
836
  "Text",
840
837
  "Heading",
841
838
  "Code",
@@ -868,7 +865,7 @@ var PageBlockTypeV1 = z45.enum([
868
865
  "TableRow",
869
866
  "TableCell"
870
867
  ]);
871
- var PageBlockCodeLanguage = z45.enum([
868
+ var PageBlockCodeLanguage = z44.enum([
872
869
  "Angular",
873
870
  "Bash",
874
871
  "C",
@@ -902,70 +899,70 @@ var PageBlockCodeLanguage = z45.enum([
902
899
  "XML",
903
900
  "YAML"
904
901
  ]);
905
- var PageBlockAlignment = z45.enum(["Left", "Center", "Stretch", "Right"]);
906
- var PageBlockThemeType = z45.enum(["Override", "Comparison"]);
907
- var PageBlockAssetType = z45.enum(["image", "figmaFrame"]);
908
- var PageBlockTilesAlignment = z45.enum(["Center", "FrameHeight"]);
909
- var PageBlockTilesLayout = z45.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
910
- var PageBlockTheme = z45.object({
911
- themeIds: z45.array(z45.string()),
902
+ var PageBlockAlignment = z44.enum(["Left", "Center", "Stretch", "Right"]);
903
+ var PageBlockThemeType = z44.enum(["Override", "Comparison"]);
904
+ var PageBlockAssetType = z44.enum(["image", "figmaFrame"]);
905
+ var PageBlockTilesAlignment = z44.enum(["Center", "FrameHeight"]);
906
+ var PageBlockTilesLayout = z44.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
907
+ var PageBlockTheme = z44.object({
908
+ themeIds: z44.array(z44.string()),
912
909
  type: PageBlockThemeType
913
910
  });
914
- var PageBlockUrlPreview = z45.object({
915
- title: nullishToOptional(z45.string()),
916
- description: nullishToOptional(z45.string()),
917
- thumbnailUrl: nullishToOptional(z45.string())
918
- });
919
- var PageBlockFrameOrigin = z45.object({
920
- sourceFileName: nullishToOptional(z45.string()),
921
- title: nullishToOptional(z45.string()),
922
- previewUrl: nullishToOptional(z45.string()),
923
- valid: nullishToOptional(z45.boolean()),
924
- referenceId: nullishToOptional(z45.string()),
925
- assetId: nullishToOptional(z45.string()),
926
- assetScale: nullishToOptional(z45.number()),
927
- width: nullishToOptional(z45.number()),
928
- height: nullishToOptional(z45.number())
929
- });
930
- var PageBlockFrame = z45.object({
931
- persistentId: z45.string(),
932
- sourceId: z45.string(),
933
- sourceFrameId: z45.string(),
934
- title: nullishToOptional(z45.string()),
935
- description: nullishToOptional(z45.string()),
911
+ var PageBlockUrlPreview = z44.object({
912
+ title: nullishToOptional(z44.string()),
913
+ description: nullishToOptional(z44.string()),
914
+ thumbnailUrl: nullishToOptional(z44.string())
915
+ });
916
+ var PageBlockFrameOrigin = z44.object({
917
+ sourceFileName: nullishToOptional(z44.string()),
918
+ title: nullishToOptional(z44.string()),
919
+ previewUrl: nullishToOptional(z44.string()),
920
+ valid: nullishToOptional(z44.boolean()),
921
+ referenceId: nullishToOptional(z44.string()),
922
+ assetId: nullishToOptional(z44.string()),
923
+ assetScale: nullishToOptional(z44.number()),
924
+ width: nullishToOptional(z44.number()),
925
+ height: nullishToOptional(z44.number())
926
+ });
927
+ var PageBlockFrame = z44.object({
928
+ persistentId: z44.string(),
929
+ sourceId: z44.string(),
930
+ sourceFrameId: z44.string(),
931
+ title: nullishToOptional(z44.string()),
932
+ description: nullishToOptional(z44.string()),
936
933
  backgroundColor: nullishToOptional(ColorTokenInlineData),
937
934
  origin: nullishToOptional(PageBlockFrameOrigin)
938
935
  });
939
- var PageBlockAsset = z45.object({
936
+ var PageBlockAsset = z44.object({
940
937
  type: PageBlockAssetType,
941
- id: nullishToOptional(z45.string()),
942
- url: nullishToOptional(z45.string()),
938
+ id: nullishToOptional(z44.string()),
939
+ url: nullishToOptional(z44.string()),
943
940
  figmaFrame: nullishToOptional(PageBlockFrame)
944
941
  });
945
- var PageBlockLinkPreview = z45.object({
946
- title: nullishToOptional(z45.string()),
947
- valid: nullishToOptional(z45.boolean())
942
+ var PageBlockLinkPreview = z44.object({
943
+ title: nullishToOptional(z44.string()),
944
+ valid: nullishToOptional(z44.boolean())
948
945
  });
949
- var PageBlockShortcut = z45.object({
950
- persistentId: z45.string(),
951
- title: nullishToOptional(z45.string()),
952
- description: nullishToOptional(z45.string()),
946
+ var PageBlockShortcut = z44.object({
947
+ persistentId: z44.string(),
948
+ title: nullishToOptional(z44.string()),
949
+ description: nullishToOptional(z44.string()),
953
950
  asset: nullishToOptional(PageBlockAsset),
954
- documentationItemId: nullishToOptional(z45.string()),
955
- pageHeadingId: nullishToOptional(z45.string()),
956
- url: nullishToOptional(z45.string()),
957
- openInNewTab: nullishToOptional(z45.boolean()),
951
+ documentationItemId: nullishToOptional(z44.string()),
952
+ pageHeadingId: nullishToOptional(z44.string()),
953
+ url: nullishToOptional(z44.string()),
954
+ openInNewTab: nullishToOptional(z44.boolean()),
958
955
  urlPreview: nullishToOptional(PageBlockUrlPreview),
959
956
  documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
960
957
  });
961
- var PageBlockCustomBlockPropertyImageValue = z45.object({
958
+ var PageBlockCustomBlockPropertyImageValue = z44.object({
962
959
  asset: nullishToOptional(PageBlockAsset),
963
- assetId: nullishToOptional(z45.string()),
964
- assetUrl: nullishToOptional(z45.string())
960
+ assetId: nullishToOptional(z44.string()),
961
+ assetUrl: nullishToOptional(z44.string())
965
962
  });
966
- var PageBlockCustomBlockPropertyValue = z45.object({
967
- key: z45.string(),
968
- value: z45.any()
963
+ var PageBlockCustomBlockPropertyValue = z44.object({
964
+ key: z44.string(),
965
+ value: z44.any()
969
966
  // TODO Artem: for some reason there are cases when there's an array here in the DB
970
967
  // e.g. element id 67451 in the dev db
971
968
  // value: z
@@ -976,102 +973,102 @@ var PageBlockCustomBlockPropertyValue = z45.object({
976
973
  // .or(TypographyTokenData)
977
974
  // .or(PageBlockCustomBlockPropertyImageValue),
978
975
  });
979
- var PageBlockFigmaFrameProperties = z45.object({
976
+ var PageBlockFigmaFrameProperties = z44.object({
980
977
  color: nullishToOptional(
981
- z45.object({
982
- value: z45.string()
978
+ z44.object({
979
+ value: z44.string()
983
980
  })
984
981
  ),
985
982
  alignment: PageBlockTilesAlignment,
986
983
  layout: PageBlockTilesLayout,
987
984
  backgroundColor: nullishToOptional(ColorTokenInlineData),
988
- showTitles: z45.boolean()
985
+ showTitles: z44.boolean()
989
986
  });
990
- var PageBlockRenderCodeProperties = z45.object({
991
- showCode: z45.boolean(),
992
- showControls: z45.boolean().optional()
987
+ var PageBlockRenderCodeProperties = z44.object({
988
+ showCode: z44.boolean(),
989
+ showControls: z44.boolean().optional()
993
990
  });
994
- var PageBlockAssetComponent = z45.object({
995
- persistentId: z45.string(),
996
- componentAssetId: z45.string(),
997
- title: nullishToOptional(z45.string()),
998
- description: nullishToOptional(z45.string()),
991
+ var PageBlockAssetComponent = z44.object({
992
+ persistentId: z44.string(),
993
+ componentAssetId: z44.string(),
994
+ title: nullishToOptional(z44.string()),
995
+ description: nullishToOptional(z44.string()),
999
996
  backgroundColor: nullishToOptional(ColorTokenInlineData)
1000
997
  });
1001
- var PageBlockTableColumn = z45.object({
1002
- id: z45.string(),
998
+ var PageBlockTableColumn = z44.object({
999
+ id: z44.string(),
1003
1000
  width: DimensionTokenData
1004
1001
  });
1005
- var PageBlockTableProperties = z45.object({
1006
- showBorders: z45.boolean(),
1007
- showHeaderRow: z45.boolean(),
1008
- showHeaderColumn: z45.boolean(),
1009
- columns: z45.array(PageBlockTableColumn)
1002
+ var PageBlockTableProperties = z44.object({
1003
+ showBorders: z44.boolean(),
1004
+ showHeaderRow: z44.boolean(),
1005
+ showHeaderColumn: z44.boolean(),
1006
+ columns: z44.array(PageBlockTableColumn)
1010
1007
  });
1011
- var PageBlockTextSpanAttributeType = z45.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
1012
- var PageBlockTextSpanAttribute = z45.object({
1008
+ var PageBlockTextSpanAttributeType = z44.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
1009
+ var PageBlockTextSpanAttribute = z44.object({
1013
1010
  type: PageBlockTextSpanAttributeType,
1014
- link: nullishToOptional(z45.string()),
1015
- documentationItemId: nullishToOptional(z45.string()),
1016
- openInNewWindow: nullishToOptional(z45.boolean()),
1011
+ link: nullishToOptional(z44.string()),
1012
+ documentationItemId: nullishToOptional(z44.string()),
1013
+ openInNewWindow: nullishToOptional(z44.boolean()),
1017
1014
  // deprecated. use openInNewTab
1018
- openInNewTab: nullishToOptional(z45.boolean())
1015
+ openInNewTab: nullishToOptional(z44.boolean())
1019
1016
  });
1020
- var PageBlockTextSpan = z45.object({
1021
- text: z45.string(),
1022
- attributes: z45.array(PageBlockTextSpanAttribute)
1017
+ var PageBlockTextSpan = z44.object({
1018
+ text: z44.string(),
1019
+ attributes: z44.array(PageBlockTextSpanAttribute)
1023
1020
  });
1024
- var PageBlockText = z45.object({
1025
- spans: z45.array(PageBlockTextSpan)
1021
+ var PageBlockText = z44.object({
1022
+ spans: z44.array(PageBlockTextSpan)
1026
1023
  });
1027
- var PageBlockBaseV1 = z45.object({
1028
- persistentId: z45.string(),
1024
+ var PageBlockBaseV1 = z44.object({
1025
+ persistentId: z44.string(),
1029
1026
  type: PageBlockTypeV1,
1030
1027
  // Element linking
1031
- designObjectId: nullishToOptional(z45.string()),
1032
- designObjectIds: nullishToOptional(z45.array(z45.string())),
1033
- tokenType: nullishToOptional(DesignTokenType.or(z45.literal("Font"))),
1034
- showNestedGroups: nullishToOptional(z45.boolean()),
1035
- brandId: nullishToOptional(z45.string()),
1028
+ designObjectId: nullishToOptional(z44.string()),
1029
+ designObjectIds: nullishToOptional(z44.array(z44.string())),
1030
+ tokenType: nullishToOptional(DesignTokenType.or(z44.literal("Font"))),
1031
+ showNestedGroups: nullishToOptional(z44.boolean()),
1032
+ brandId: nullishToOptional(z44.string()),
1036
1033
  // Rich text
1037
1034
  text: nullishToOptional(PageBlockText),
1038
- caption: nullishToOptional(z45.string()),
1039
- headingType: nullishToOptional(z45.number().min(1).max(3)),
1035
+ caption: nullishToOptional(z44.string()),
1036
+ headingType: nullishToOptional(z44.number().min(1).max(3)),
1040
1037
  codeLanguage: nullishToOptional(PageBlockCodeLanguage),
1041
1038
  calloutType: nullishToOptional(PageBlockCalloutType),
1042
- urlInput: nullishToOptional(z45.string()),
1043
- url: nullishToOptional(z45.string()),
1039
+ urlInput: nullishToOptional(z44.string()),
1040
+ url: nullishToOptional(z44.string()),
1044
1041
  urlPreview: nullishToOptional(PageBlockUrlPreview),
1045
1042
  // Image
1046
1043
  asset: nullishToOptional(PageBlockAsset),
1047
1044
  alignment: nullishToOptional(PageBlockAlignment),
1048
1045
  // Shortcuts block
1049
- shortcuts: nullishToOptional(z45.array(PageBlockShortcut)),
1046
+ shortcuts: nullishToOptional(z44.array(PageBlockShortcut)),
1050
1047
  // Custom blocks
1051
- customBlockKey: nullishToOptional(z45.string()),
1052
- customBlockProperties: nullishToOptional(z45.array(PageBlockCustomBlockPropertyValue)),
1053
- variantKey: nullishToOptional(z45.string()),
1048
+ customBlockKey: nullishToOptional(z44.string()),
1049
+ customBlockProperties: nullishToOptional(z44.array(PageBlockCustomBlockPropertyValue)),
1050
+ variantKey: nullishToOptional(z44.string()),
1054
1051
  // Figma frames
1055
1052
  figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
1056
- figmaFrames: nullishToOptional(z45.array(PageBlockFrame)),
1053
+ figmaFrames: nullishToOptional(z44.array(PageBlockFrame)),
1057
1054
  // Generic
1058
1055
  size: nullishToOptional(Size),
1059
1056
  backgroundColor: nullishToOptional(ColorTokenInlineData),
1060
1057
  // Render code
1061
1058
  renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
1062
1059
  // Component assets
1063
- componentAssets: nullishToOptional(z45.array(PageBlockAssetComponent)),
1060
+ componentAssets: nullishToOptional(z44.array(PageBlockAssetComponent)),
1064
1061
  // Tables
1065
1062
  tableProperties: nullishToOptional(PageBlockTableProperties),
1066
- columnId: nullishToOptional(z45.string()),
1063
+ columnId: nullishToOptional(z44.string()),
1067
1064
  // Token spreadsheet
1068
1065
  theme: nullishToOptional(PageBlockTheme),
1069
- blacklistedElementProperties: nullishToOptional(z45.array(z45.string())),
1066
+ blacklistedElementProperties: nullishToOptional(z44.array(z44.string())),
1070
1067
  // Arbitrary
1071
- userMetadata: nullishToOptional(z45.string())
1068
+ userMetadata: nullishToOptional(z44.string())
1072
1069
  });
1073
1070
  var PageBlockV1 = PageBlockBaseV1.extend({
1074
- children: z45.lazy(
1071
+ children: z44.lazy(
1075
1072
  () => PageBlockV1.array().nullish().transform((t) => t ?? [])
1076
1073
  )
1077
1074
  });
@@ -1083,256 +1080,256 @@ function traversePageBlocksV1(blocks, action) {
1083
1080
  }
1084
1081
 
1085
1082
  // src/dsm/elements/data/documentation-block-v2.ts
1086
- import { z as z46 } from "zod";
1087
- var PageBlockLinkType = z46.enum(["DocumentationItem", "PageHeading", "Url"]);
1088
- var PageBlockImageType = z46.enum(["Resource", "FigmaNode"]);
1089
- var PageBlockImageAlignment = z46.enum(["Left", "Center", "Stretch"]);
1090
- var PageBlockTableCellAlignment = z46.enum(["Left", "Center", "Right"]);
1091
- var PageBlockPreviewContainerSize = z46.enum(["Centered", "NaturalHeight"]);
1092
- var PageBlockThemeDisplayMode = z46.enum(["Split", "Override"]);
1093
- var PageBlockImageResourceReference = z46.object({
1094
- resourceId: z46.string(),
1095
- url: z46.string()
1096
- });
1097
- var PageBlockResourceFrameNodeReference = z46.object({
1098
- sourceId: z46.string(),
1099
- frameReferenceId: z46.string()
1100
- });
1101
- var PageBlockImageReference = z46.object({
1083
+ import { z as z45 } from "zod";
1084
+ var PageBlockLinkType = z45.enum(["DocumentationItem", "PageHeading", "Url"]);
1085
+ var PageBlockImageType = z45.enum(["Resource", "FigmaNode"]);
1086
+ var PageBlockImageAlignment = z45.enum(["Left", "Center", "Stretch"]);
1087
+ var PageBlockTableCellAlignment = z45.enum(["Left", "Center", "Right"]);
1088
+ var PageBlockPreviewContainerSize = z45.enum(["Centered", "NaturalHeight"]);
1089
+ var PageBlockThemeDisplayMode = z45.enum(["Split", "Override"]);
1090
+ var PageBlockImageResourceReference = z45.object({
1091
+ resourceId: z45.string(),
1092
+ url: z45.string()
1093
+ });
1094
+ var PageBlockResourceFrameNodeReference = z45.object({
1095
+ sourceId: z45.string(),
1096
+ frameReferenceId: z45.string()
1097
+ });
1098
+ var PageBlockImageReference = z45.object({
1102
1099
  type: PageBlockImageType,
1103
1100
  resource: PageBlockImageResourceReference.optional(),
1104
1101
  figmaNode: PageBlockResourceFrameNodeReference.optional()
1105
1102
  });
1106
- var PageBlockColorV2 = z46.object({
1107
- value: z46.string(),
1108
- referencedTokenId: z46.string().optional()
1103
+ var PageBlockColorV2 = z45.object({
1104
+ value: z45.string(),
1105
+ referencedTokenId: z45.string().optional()
1109
1106
  });
1110
- var PageBlockAssetEntityMeta = z46.object({
1111
- title: z46.string().optional(),
1112
- description: z46.string().optional(),
1107
+ var PageBlockAssetEntityMeta = z45.object({
1108
+ title: z45.string().optional(),
1109
+ description: z45.string().optional(),
1113
1110
  backgroundColor: PageBlockColorV2.optional()
1114
1111
  });
1115
- var PageBlockFigmaNodeEntityMeta = z46.object({
1116
- title: z46.string().optional(),
1117
- description: z46.string().optional(),
1112
+ var PageBlockFigmaNodeEntityMeta = z45.object({
1113
+ title: z45.string().optional(),
1114
+ description: z45.string().optional(),
1118
1115
  backgroundColor: PageBlockColorV2.optional()
1119
1116
  });
1120
- var PageBlockAppearanceV2 = z46.object({
1117
+ var PageBlockAppearanceV2 = z45.object({
1121
1118
  itemBackgroundColor: PageBlockColorV2.optional(),
1122
- numberOfColumns: z46.number().optional()
1119
+ numberOfColumns: z45.number().optional()
1123
1120
  });
1124
- var PageBlockItemUntypedValue = z46.object({
1125
- value: z46.any()
1126
- }).and(z46.record(z46.any()));
1127
- var PageBlockLinkV2 = z46.object({
1121
+ var PageBlockItemUntypedValue = z45.object({
1122
+ value: z45.any()
1123
+ }).and(z45.record(z45.any()));
1124
+ var PageBlockLinkV2 = z45.object({
1128
1125
  type: PageBlockLinkType,
1129
- documentationItemId: z46.string().optional(),
1130
- pageHeadingId: z46.string().optional(),
1131
- url: z46.string().optional(),
1132
- openInNewTab: z46.boolean().optional()
1126
+ documentationItemId: z45.string().optional(),
1127
+ pageHeadingId: z45.string().optional(),
1128
+ url: z45.string().optional(),
1129
+ openInNewTab: z45.boolean().optional()
1133
1130
  });
1134
- var PageBlockItemV2 = z46.object({
1135
- id: z46.string(),
1131
+ var PageBlockItemV2 = z45.object({
1132
+ id: z45.string(),
1136
1133
  linksTo: PageBlockLinkV2.optional(),
1137
- props: z46.record(PageBlockItemUntypedValue)
1134
+ props: z45.record(PageBlockItemUntypedValue)
1138
1135
  });
1139
- var PageBlockDataV2 = z46.object({
1140
- packageId: z46.string(),
1141
- variantId: z46.string().optional(),
1142
- indentLevel: z46.number(),
1136
+ var PageBlockDataV2 = z45.object({
1137
+ packageId: z45.string(),
1138
+ variantId: z45.string().optional(),
1139
+ indentLevel: z45.number(),
1143
1140
  appearance: PageBlockAppearanceV2.optional(),
1144
- items: z46.array(PageBlockItemV2)
1141
+ items: z45.array(PageBlockItemV2)
1145
1142
  });
1146
- var PageBlockItemAssetValue = z46.object({
1147
- selectedPropertyIds: z46.array(z46.string()).optional(),
1148
- showSearch: z46.boolean().optional(),
1143
+ var PageBlockItemAssetValue = z45.object({
1144
+ selectedPropertyIds: z45.array(z45.string()).optional(),
1145
+ showSearch: z45.boolean().optional(),
1149
1146
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
1150
1147
  backgroundColor: PageBlockColorV2.optional(),
1151
- value: z46.array(
1152
- z46.object({
1153
- entityId: z46.string(),
1154
- entityType: z46.enum(["Asset", "AssetGroup"]),
1148
+ value: z45.array(
1149
+ z45.object({
1150
+ entityId: z45.string(),
1151
+ entityType: z45.enum(["Asset", "AssetGroup"]),
1155
1152
  entityMeta: PageBlockAssetEntityMeta.optional()
1156
1153
  })
1157
1154
  ).default([])
1158
1155
  });
1159
- var PageBlockItemAssetPropertyValue = z46.object({
1160
- value: z46.array(z46.string()).default([])
1156
+ var PageBlockItemAssetPropertyValue = z45.object({
1157
+ value: z45.array(z45.string()).default([])
1161
1158
  });
1162
- var PageBlockItemBooleanValue = z46.object({
1163
- value: z46.boolean()
1159
+ var PageBlockItemBooleanValue = z45.object({
1160
+ value: z45.boolean()
1164
1161
  });
1165
- var PageBlockItemCodeValue = z46.object({
1162
+ var PageBlockItemCodeValue = z45.object({
1166
1163
  format: PageBlockCodeLanguage.optional(),
1167
- caption: z46.string().optional(),
1168
- value: z46.string()
1169
- });
1170
- var PageBlockItemSandboxValue = z46.object({
1171
- showCode: z46.boolean().optional(),
1172
- showControls: z46.boolean().optional(),
1173
- backgroundColor: z46.string().optional(),
1174
- alignPreview: z46.enum(["Left", "Center"]).optional(),
1175
- previewHeight: z46.number().optional(),
1176
- value: z46.string()
1177
- });
1178
- var PageBlockItemColorValue = z46.record(z46.any());
1179
- var PageBlockItemComponentValue = z46.object({
1180
- selectedPropertyIds: z46.array(z46.string()).optional(),
1181
- value: z46.array(
1182
- z46.object({
1183
- entityId: z46.string(),
1184
- entityType: z46.enum(["Component", "ComponentGroup"])
1164
+ caption: z45.string().optional(),
1165
+ value: z45.string()
1166
+ });
1167
+ var PageBlockItemSandboxValue = z45.object({
1168
+ showCode: z45.boolean().optional(),
1169
+ showControls: z45.boolean().optional(),
1170
+ backgroundColor: z45.string().optional(),
1171
+ alignPreview: z45.enum(["Left", "Center"]).optional(),
1172
+ previewHeight: z45.number().optional(),
1173
+ value: z45.string()
1174
+ });
1175
+ var PageBlockItemColorValue = z45.record(z45.any());
1176
+ var PageBlockItemComponentValue = z45.object({
1177
+ selectedPropertyIds: z45.array(z45.string()).optional(),
1178
+ value: z45.array(
1179
+ z45.object({
1180
+ entityId: z45.string(),
1181
+ entityType: z45.enum(["Component", "ComponentGroup"])
1185
1182
  })
1186
1183
  ).default([])
1187
1184
  });
1188
- var PageBlockItemComponentPropertyValue = z46.object({
1189
- value: z46.string()
1190
- });
1191
- var PageBlockItemDividerValue = z46.object({});
1192
- var PageBlockItemEmbedValue = z46.object({
1193
- value: z46.string().optional(),
1194
- caption: z46.string().optional(),
1195
- height: z46.number().optional(),
1196
- openGraph: z46.object({
1197
- title: z46.string().optional(),
1198
- description: z46.string().optional(),
1199
- imageUrl: z46.string().optional()
1185
+ var PageBlockItemComponentPropertyValue = z45.object({
1186
+ value: z45.string()
1187
+ });
1188
+ var PageBlockItemDividerValue = z45.object({});
1189
+ var PageBlockItemEmbedValue = z45.object({
1190
+ value: z45.string().optional(),
1191
+ caption: z45.string().optional(),
1192
+ height: z45.number().optional(),
1193
+ openGraph: z45.object({
1194
+ title: z45.string().optional(),
1195
+ description: z45.string().optional(),
1196
+ imageUrl: z45.string().optional()
1200
1197
  }).optional()
1201
1198
  });
1202
- var PageBlockItemFigmaNodeValue = z46.object({
1203
- showSearch: z46.boolean().optional(),
1199
+ var PageBlockItemFigmaNodeValue = z45.object({
1200
+ showSearch: z45.boolean().optional(),
1204
1201
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
1205
1202
  backgroundColor: PageBlockColorV2.optional(),
1206
- showFrameDetails: z46.boolean().optional(),
1207
- value: z46.array(
1208
- z46.object({
1209
- entityId: z46.string(),
1203
+ showFrameDetails: z45.boolean().optional(),
1204
+ value: z45.array(
1205
+ z45.object({
1206
+ entityId: z45.string(),
1210
1207
  entityMeta: PageBlockFigmaNodeEntityMeta.optional()
1211
1208
  })
1212
1209
  ).default([])
1213
1210
  });
1214
- var PageBlockItemImageValue = z46.object({
1215
- alt: z46.string().optional(),
1216
- caption: z46.string().optional(),
1211
+ var PageBlockItemImageValue = z45.object({
1212
+ alt: z45.string().optional(),
1213
+ caption: z45.string().optional(),
1217
1214
  alignment: PageBlockImageAlignment.optional(),
1218
1215
  value: PageBlockImageReference.optional()
1219
1216
  });
1220
- var PageBlockItemMarkdownValue = z46.object({
1221
- value: z46.string()
1217
+ var PageBlockItemMarkdownValue = z45.object({
1218
+ value: z45.string()
1222
1219
  });
1223
- var PageBlockItemMultiRichTextValue = z46.object({
1220
+ var PageBlockItemMultiRichTextValue = z45.object({
1224
1221
  value: PageBlockText.array()
1225
1222
  });
1226
- var PageBlockItemMultiSelectValue = z46.object({
1227
- value: z46.array(z46.string()).default([])
1223
+ var PageBlockItemMultiSelectValue = z45.object({
1224
+ value: z45.array(z45.string()).default([])
1228
1225
  });
1229
- var PageBlockItemNumberValue = z46.object({
1230
- value: z46.number()
1226
+ var PageBlockItemNumberValue = z45.object({
1227
+ value: z45.number()
1231
1228
  });
1232
- var PageBlockItemRichTextValue = z46.object({
1229
+ var PageBlockItemRichTextValue = z45.object({
1233
1230
  value: PageBlockText,
1234
1231
  calloutType: PageBlockCalloutType.optional()
1235
1232
  });
1236
- var PageBlockItemSingleSelectValue = z46.object({
1237
- value: z46.string()
1233
+ var PageBlockItemSingleSelectValue = z45.object({
1234
+ value: z45.string()
1238
1235
  });
1239
- var PageBlockItemStorybookValue = z46.object({
1240
- caption: z46.string().optional(),
1241
- height: z46.number().optional(),
1242
- embedUrl: z46.string().optional(),
1243
- value: z46.string().optional()
1236
+ var PageBlockItemStorybookValue = z45.object({
1237
+ caption: z45.string().optional(),
1238
+ height: z45.number().optional(),
1239
+ embedUrl: z45.string().optional(),
1240
+ value: z45.string().optional()
1244
1241
  });
1245
- var PageBlockItemTextValue = z46.object({
1246
- value: z46.string()
1242
+ var PageBlockItemTextValue = z45.object({
1243
+ value: z45.string()
1247
1244
  });
1248
- var PageBlockItemTokenValue = z46.object({
1249
- selectedPropertyIds: z46.array(z46.string()).optional(),
1250
- selectedThemeIds: z46.array(z46.string()).optional(),
1245
+ var PageBlockItemTokenValue = z45.object({
1246
+ selectedPropertyIds: z45.array(z45.string()).optional(),
1247
+ selectedThemeIds: z45.array(z45.string()).optional(),
1251
1248
  themeDisplayMode: PageBlockThemeDisplayMode.optional(),
1252
- value: z46.array(
1253
- z46.object({
1254
- entityId: z46.string(),
1255
- entityType: z46.enum(["Token", "TokenGroup"]),
1256
- entityMeta: z46.object({
1257
- showNestedGroups: z46.boolean().optional()
1249
+ value: z45.array(
1250
+ z45.object({
1251
+ entityId: z45.string(),
1252
+ entityType: z45.enum(["Token", "TokenGroup"]),
1253
+ entityMeta: z45.object({
1254
+ showNestedGroups: z45.boolean().optional()
1258
1255
  }).optional()
1259
1256
  })
1260
1257
  ).default([])
1261
1258
  });
1262
- var PageBlockItemTokenPropertyValue = z46.object({
1263
- selectedPropertyIds: z46.array(z46.string()).optional(),
1264
- selectedThemeIds: z46.array(z46.string()).optional(),
1265
- value: z46.array(z46.string()).default([])
1259
+ var PageBlockItemTokenPropertyValue = z45.object({
1260
+ selectedPropertyIds: z45.array(z45.string()).optional(),
1261
+ selectedThemeIds: z45.array(z45.string()).optional(),
1262
+ value: z45.array(z45.string()).default([])
1266
1263
  });
1267
- var PageBlockItemTokenTypeValue = z46.object({
1268
- value: z46.array(DesignTokenType).default([])
1264
+ var PageBlockItemTokenTypeValue = z45.object({
1265
+ value: z45.array(DesignTokenType).default([])
1269
1266
  });
1270
- var PageBlockItemUrlValue = z46.object({
1271
- value: z46.string()
1267
+ var PageBlockItemUrlValue = z45.object({
1268
+ value: z45.string()
1272
1269
  });
1273
- var PageBlockItemTableRichTextNode = z46.object({
1274
- type: z46.literal("RichText"),
1275
- id: z46.string(),
1270
+ var PageBlockItemTableRichTextNode = z45.object({
1271
+ type: z45.literal("RichText"),
1272
+ id: z45.string(),
1276
1273
  value: PageBlockItemRichTextValue.shape.value
1277
1274
  });
1278
- var PageBlockItemTableMultiRichTextNode = z46.object({
1279
- type: z46.literal("MultiRichText"),
1275
+ var PageBlockItemTableMultiRichTextNode = z45.object({
1276
+ type: z45.literal("MultiRichText"),
1280
1277
  value: PageBlockItemMultiRichTextValue.shape.value
1281
1278
  });
1282
- var PageBlockItemTableImageNode = z46.object({
1283
- type: z46.literal("Image"),
1284
- id: z46.string(),
1279
+ var PageBlockItemTableImageNode = z45.object({
1280
+ type: z45.literal("Image"),
1281
+ id: z45.string(),
1285
1282
  caption: PageBlockItemImageValue.shape.caption,
1286
1283
  value: PageBlockItemImageValue.shape.value
1287
1284
  });
1288
- var PageBlockItemTableNode = z46.discriminatedUnion("type", [
1285
+ var PageBlockItemTableNode = z45.discriminatedUnion("type", [
1289
1286
  PageBlockItemTableRichTextNode,
1290
1287
  // PageBlockItemTableMultiRichTextNode,
1291
1288
  PageBlockItemTableImageNode
1292
1289
  ]);
1293
- var PageBlockItemTableCell = z46.object({
1294
- id: z46.string(),
1295
- nodes: z46.array(PageBlockItemTableNode),
1296
- columnWidth: z46.number().optional(),
1290
+ var PageBlockItemTableCell = z45.object({
1291
+ id: z45.string(),
1292
+ nodes: z45.array(PageBlockItemTableNode),
1293
+ columnWidth: z45.number().optional(),
1297
1294
  alignment: PageBlockTableCellAlignment
1298
1295
  });
1299
- var PageBlockItemTableRow = z46.object({
1300
- cells: z46.array(PageBlockItemTableCell)
1296
+ var PageBlockItemTableRow = z45.object({
1297
+ cells: z45.array(PageBlockItemTableCell)
1301
1298
  });
1302
- var PageBlockItemTableValue = z46.object({
1303
- highlightHeaderColumn: z46.boolean().optional(),
1304
- highlightHeaderRow: z46.boolean().optional(),
1305
- showBorder: z46.boolean().optional(),
1306
- value: z46.array(PageBlockItemTableRow).default([])
1299
+ var PageBlockItemTableValue = z45.object({
1300
+ highlightHeaderColumn: z45.boolean().optional(),
1301
+ highlightHeaderRow: z45.boolean().optional(),
1302
+ showBorder: z45.boolean().optional(),
1303
+ value: z45.array(PageBlockItemTableRow).default([])
1307
1304
  });
1308
1305
 
1309
1306
  // src/dsm/elements/data/documentation-page-v1.ts
1310
- import { z as z50 } from "zod";
1307
+ import { z as z49 } from "zod";
1311
1308
 
1312
1309
  // src/dsm/elements/data/documentation-v1.ts
1313
- import { z as z49 } from "zod";
1310
+ import { z as z48 } from "zod";
1314
1311
 
1315
1312
  // src/dsm/elements/data/item-header-v1.ts
1316
- import { z as z48 } from "zod";
1313
+ import { z as z47 } from "zod";
1317
1314
 
1318
1315
  // src/dsm/elements/data/item-header.ts
1319
- import { z as z47 } from "zod";
1320
- var DocumentationItemHeaderAlignmentSchema = z47.enum(["Left", "Center"]);
1321
- var DocumentationItemHeaderImageScaleTypeSchema = z47.enum(["AspectFill", "AspectFit"]);
1316
+ import { z as z46 } from "zod";
1317
+ var DocumentationItemHeaderAlignmentSchema = z46.enum(["Left", "Center"]);
1318
+ var DocumentationItemHeaderImageScaleTypeSchema = z46.enum(["AspectFill", "AspectFit"]);
1322
1319
  var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
1323
1320
  var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
1324
1321
 
1325
1322
  // src/dsm/elements/data/item-header-v1.ts
1326
- var DocumentationItemHeaderV1 = z48.object({
1327
- description: z48.string(),
1323
+ var DocumentationItemHeaderV1 = z47.object({
1324
+ description: z47.string(),
1328
1325
  alignment: DocumentationItemHeaderAlignmentSchema,
1329
1326
  foregroundColor: ColorTokenData.nullish(),
1330
1327
  backgroundColor: ColorTokenData.nullish(),
1331
1328
  backgroundImageAsset: PageBlockAsset.nullish(),
1332
1329
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1333
- showBackgroundOverlay: z48.boolean(),
1334
- showCoverText: z48.boolean(),
1335
- minHeight: z48.number().nullish()
1330
+ showBackgroundOverlay: z47.boolean(),
1331
+ showCoverText: z47.boolean(),
1332
+ minHeight: z47.number().nullish()
1336
1333
  });
1337
1334
  var defaultDocumentationItemHeaderV1 = {
1338
1335
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -1343,10 +1340,10 @@ var defaultDocumentationItemHeaderV1 = {
1343
1340
  };
1344
1341
 
1345
1342
  // src/dsm/elements/data/documentation-v1.ts
1346
- var DocumentationItemConfigurationV1 = z49.object({
1347
- showSidebar: z49.boolean(),
1348
- isPrivate: z49.boolean().optional(),
1349
- isHidden: z49.boolean().optional(),
1343
+ var DocumentationItemConfigurationV1 = z48.object({
1344
+ showSidebar: z48.boolean(),
1345
+ isPrivate: z48.boolean().optional(),
1346
+ isHidden: z48.boolean().optional(),
1350
1347
  header: DocumentationItemHeaderV1
1351
1348
  });
1352
1349
  var defaultDocumentationItemConfigurationV1 = {
@@ -1355,29 +1352,29 @@ var defaultDocumentationItemConfigurationV1 = {
1355
1352
  };
1356
1353
 
1357
1354
  // src/dsm/elements/data/documentation-page-v1.ts
1358
- var DocumentationPageDataV1 = z50.object({
1359
- blocks: z50.array(PageBlockV1),
1355
+ var DocumentationPageDataV1 = z49.object({
1356
+ blocks: z49.array(PageBlockV1),
1360
1357
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
1361
1358
  });
1362
1359
 
1363
1360
  // src/dsm/elements/data/documentation-page-v2.ts
1364
- import { z as z53 } from "zod";
1361
+ import { z as z52 } from "zod";
1365
1362
 
1366
1363
  // src/dsm/elements/data/documentation-v2.ts
1367
- import { z as z52 } from "zod";
1364
+ import { z as z51 } from "zod";
1368
1365
 
1369
1366
  // src/dsm/elements/data/item-header-v2.ts
1370
- import { z as z51 } from "zod";
1371
- var DocumentationItemHeaderV2 = z51.object({
1372
- description: z51.string(),
1367
+ import { z as z50 } from "zod";
1368
+ var DocumentationItemHeaderV2 = z50.object({
1369
+ description: z50.string(),
1373
1370
  alignment: DocumentationItemHeaderAlignmentSchema,
1374
1371
  foregroundColor: PageBlockColorV2.nullish(),
1375
1372
  backgroundColor: PageBlockColorV2.nullish(),
1376
1373
  backgroundImageAsset: PageBlockImageReference.nullish(),
1377
1374
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1378
- showBackgroundOverlay: z51.boolean(),
1379
- showCoverText: z51.boolean(),
1380
- minHeight: z51.number().nullish()
1375
+ showBackgroundOverlay: z50.boolean(),
1376
+ showCoverText: z50.boolean(),
1377
+ minHeight: z50.number().nullish()
1381
1378
  });
1382
1379
  var defaultDocumentationItemHeaderV2 = {
1383
1380
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -1388,10 +1385,10 @@ var defaultDocumentationItemHeaderV2 = {
1388
1385
  };
1389
1386
 
1390
1387
  // src/dsm/elements/data/documentation-v2.ts
1391
- var DocumentationItemConfigurationV2 = z52.object({
1392
- showSidebar: z52.boolean(),
1393
- isPrivate: z52.boolean().optional(),
1394
- isHidden: z52.boolean().optional(),
1388
+ var DocumentationItemConfigurationV2 = z51.object({
1389
+ showSidebar: z51.boolean(),
1390
+ isPrivate: z51.boolean().optional(),
1391
+ isHidden: z51.boolean().optional(),
1395
1392
  header: DocumentationItemHeaderV2
1396
1393
  });
1397
1394
  var defaultDocumentationItemConfigurationV2 = {
@@ -1402,122 +1399,122 @@ var defaultDocumentationItemConfigurationV2 = {
1402
1399
  };
1403
1400
 
1404
1401
  // src/dsm/elements/data/documentation-page-v2.ts
1405
- var DocumentationPageDataV2 = z53.object({
1402
+ var DocumentationPageDataV2 = z52.object({
1406
1403
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
1407
1404
  });
1408
1405
 
1409
1406
  // src/dsm/elements/data/documentation-section-v2.ts
1410
- import { z as z56 } from "zod";
1407
+ import { z as z55 } from "zod";
1411
1408
 
1412
1409
  // src/dsm/elements/page-block-v2.ts
1413
- import { z as z55 } from "zod";
1410
+ import { z as z54 } from "zod";
1414
1411
 
1415
1412
  // src/dsm/elements/base.ts
1416
- import { z as z54 } from "zod";
1417
- var DesignElementOrigin = z54.object({
1418
- id: z54.string(),
1419
- sourceId: z54.string(),
1420
- name: z54.string()
1421
- });
1422
- var DesignElementBase = z54.object({
1423
- id: z54.string(),
1424
- persistentId: z54.string(),
1413
+ import { z as z53 } from "zod";
1414
+ var DesignElementOrigin = z53.object({
1415
+ id: z53.string(),
1416
+ sourceId: z53.string(),
1417
+ name: z53.string()
1418
+ });
1419
+ var DesignElementBase = z53.object({
1420
+ id: z53.string(),
1421
+ persistentId: z53.string(),
1425
1422
  meta: ObjectMeta,
1426
- designSystemVersionId: z54.string(),
1427
- createdAt: z54.coerce.date(),
1428
- updatedAt: z54.coerce.date()
1423
+ designSystemVersionId: z53.string(),
1424
+ createdAt: z53.coerce.date(),
1425
+ updatedAt: z53.coerce.date()
1429
1426
  });
1430
1427
  var DesignElementImportedBase = DesignElementBase.extend({
1431
1428
  origin: DesignElementOrigin
1432
1429
  });
1433
- var DesignElementGroupablePart = z54.object({
1434
- parentPersistentId: z54.string().optional(),
1435
- sortOrder: z54.number()
1430
+ var DesignElementGroupablePart = z53.object({
1431
+ parentPersistentId: z53.string().optional(),
1432
+ sortOrder: z53.number()
1436
1433
  });
1437
1434
  var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
1438
1435
  var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
1439
- parentPersistentId: z54.string()
1436
+ parentPersistentId: z53.string()
1440
1437
  });
1441
- var DesignElementBrandedPart = z54.object({
1442
- brandPersistentId: z54.string()
1438
+ var DesignElementBrandedPart = z53.object({
1439
+ brandPersistentId: z53.string()
1443
1440
  });
1444
- var DesignElementSlugPart = z54.object({
1445
- slug: z54.string().optional(),
1446
- userSlug: z54.string().optional()
1441
+ var DesignElementSlugPart = z53.object({
1442
+ slug: z53.string().optional(),
1443
+ userSlug: z53.string().optional()
1447
1444
  });
1448
1445
 
1449
1446
  // src/dsm/elements/page-block-v2.ts
1450
1447
  var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
1451
1448
  data: PageBlockDataV2
1452
1449
  });
1453
- var PageBlockEditorModelV2 = z55.object({
1454
- id: z55.string(),
1455
- type: z55.literal("Block"),
1450
+ var PageBlockEditorModelV2 = z54.object({
1451
+ id: z54.string(),
1452
+ type: z54.literal("Block"),
1456
1453
  data: PageBlockDataV2
1457
1454
  });
1458
1455
 
1459
1456
  // src/dsm/elements/data/documentation-section-v2.ts
1460
- var PageSectionTypeV2 = z56.enum(["Tabs"]);
1461
- var PageSectionColumnV2 = z56.object({
1462
- id: z56.string(),
1463
- blocks: z56.array(PageBlockEditorModelV2)
1464
- });
1465
- var PageSectionItemV2 = z56.object({
1466
- id: z56.string(),
1467
- title: z56.string(),
1468
- columns: z56.array(PageSectionColumnV2)
1469
- });
1470
- var PageSectionPaddingV2 = z56.object({
1471
- top: z56.number().optional(),
1472
- bottom: z56.number().optional(),
1473
- left: z56.number().optional(),
1474
- right: z56.number().optional()
1475
- });
1476
- var PageSectionAppearanceV2 = z56.object({
1477
- expandToEdges: z56.boolean(),
1478
- contentExpandToEdges: z56.boolean(),
1457
+ var PageSectionTypeV2 = z55.enum(["Tabs"]);
1458
+ var PageSectionColumnV2 = z55.object({
1459
+ id: z55.string(),
1460
+ blocks: z55.array(PageBlockEditorModelV2)
1461
+ });
1462
+ var PageSectionItemV2 = z55.object({
1463
+ id: z55.string(),
1464
+ title: z55.string(),
1465
+ columns: z55.array(PageSectionColumnV2)
1466
+ });
1467
+ var PageSectionPaddingV2 = z55.object({
1468
+ top: z55.number().optional(),
1469
+ bottom: z55.number().optional(),
1470
+ left: z55.number().optional(),
1471
+ right: z55.number().optional()
1472
+ });
1473
+ var PageSectionAppearanceV2 = z55.object({
1474
+ expandToEdges: z55.boolean(),
1475
+ contentExpandToEdges: z55.boolean(),
1479
1476
  backgroundColor: PageBlockColorV2.optional(),
1480
1477
  foregroundColor: PageBlockColorV2.optional(),
1481
1478
  padding: PageSectionPaddingV2.optional()
1482
1479
  });
1483
- var PageSectionEditorModelV2 = z56.object({
1484
- id: z56.string(),
1485
- type: z56.literal("Section"),
1486
- variantId: z56.string().optional(),
1480
+ var PageSectionEditorModelV2 = z55.object({
1481
+ id: z55.string(),
1482
+ type: z55.literal("Section"),
1483
+ variantId: z55.string().optional(),
1487
1484
  sectionType: PageSectionTypeV2,
1488
1485
  appearance: PageSectionAppearanceV2,
1489
- items: z56.array(PageSectionItemV2)
1486
+ items: z55.array(PageSectionItemV2)
1490
1487
  });
1491
1488
 
1492
1489
  // src/dsm/elements/data/duration.ts
1493
- import { z as z57 } from "zod";
1494
- var DurationUnit = z57.enum(["Ms"]);
1495
- var DurationValue = z57.object({
1490
+ import { z as z56 } from "zod";
1491
+ var DurationUnit = z56.enum(["Ms"]);
1492
+ var DurationValue = z56.object({
1496
1493
  unit: DurationUnit,
1497
- measure: z57.number()
1494
+ measure: z56.number()
1498
1495
  });
1499
1496
  var DurationTokenData = tokenAliasOrValue(DurationValue);
1500
1497
 
1501
1498
  // src/dsm/elements/data/figma-file-structure.ts
1502
- import { z as z58 } from "zod";
1503
- var FigmaFileStructureNodeType = z58.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
1504
- var FigmaFileStructureNodeBase = z58.object({
1505
- id: z58.string(),
1506
- name: z58.string(),
1499
+ import { z as z57 } from "zod";
1500
+ var FigmaFileStructureNodeType = z57.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
1501
+ var FigmaFileStructureNodeBase = z57.object({
1502
+ id: z57.string(),
1503
+ name: z57.string(),
1507
1504
  type: FigmaFileStructureNodeType,
1508
1505
  size: SizeOrUndefined,
1509
- parentComponentSetId: z58.string().optional()
1506
+ parentComponentSetId: z57.string().optional()
1510
1507
  });
1511
1508
  var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
1512
- children: z58.lazy(() => FigmaFileStructureNode.array())
1509
+ children: z57.lazy(() => FigmaFileStructureNode.array())
1513
1510
  });
1514
- var FigmaFileStructureStatistics = z58.object({
1515
- frames: z58.number().nullable().optional().transform((v) => v ?? 0),
1516
- components: z58.number().nullable().optional().transform((v) => v ?? 0),
1517
- componentSets: z58.number().nullable().optional().transform((v) => v ?? 0)
1511
+ var FigmaFileStructureStatistics = z57.object({
1512
+ frames: z57.number().nullable().optional().transform((v) => v ?? 0),
1513
+ components: z57.number().nullable().optional().transform((v) => v ?? 0),
1514
+ componentSets: z57.number().nullable().optional().transform((v) => v ?? 0)
1518
1515
  });
1519
- var FigmaFileStructureElementData = z58.object({
1520
- value: z58.object({
1516
+ var FigmaFileStructureElementData = z57.object({
1517
+ value: z57.object({
1521
1518
  structure: FigmaFileStructureNode,
1522
1519
  assetsInFile: FigmaFileStructureStatistics
1523
1520
  })
@@ -1534,119 +1531,119 @@ function recursiveFigmaFileStructureToMap(node, map) {
1534
1531
  }
1535
1532
 
1536
1533
  // src/dsm/elements/data/figma-node-reference.ts
1537
- import { z as z59 } from "zod";
1538
- var FigmaNodeReferenceData = z59.object({
1539
- structureElementId: z59.string(),
1540
- nodeId: z59.string(),
1541
- fileId: z59.string().optional(),
1542
- valid: z59.boolean(),
1534
+ import { z as z58 } from "zod";
1535
+ var FigmaNodeReferenceData = z58.object({
1536
+ structureElementId: z58.string(),
1537
+ nodeId: z58.string(),
1538
+ fileId: z58.string().optional(),
1539
+ valid: z58.boolean(),
1543
1540
  // Asset data
1544
- assetId: z59.string().optional(),
1545
- assetScale: z59.number().optional(),
1546
- assetWidth: z59.number().optional(),
1547
- assetHeight: z59.number().optional(),
1548
- assetUrl: z59.string().optional(),
1549
- assetOriginKey: z59.string().optional()
1550
- });
1551
- var FigmaNodeReferenceElementData = z59.object({
1541
+ assetId: z58.string().optional(),
1542
+ assetScale: z58.number().optional(),
1543
+ assetWidth: z58.number().optional(),
1544
+ assetHeight: z58.number().optional(),
1545
+ assetUrl: z58.string().optional(),
1546
+ assetOriginKey: z58.string().optional()
1547
+ });
1548
+ var FigmaNodeReferenceElementData = z58.object({
1552
1549
  value: FigmaNodeReferenceData
1553
1550
  });
1554
1551
 
1555
1552
  // src/dsm/elements/data/font-family.ts
1556
- import { z as z60 } from "zod";
1557
- var FontFamilyValue = z60.string();
1553
+ import { z as z59 } from "zod";
1554
+ var FontFamilyValue = z59.string();
1558
1555
  var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
1559
1556
 
1560
1557
  // src/dsm/elements/data/font-size.ts
1561
- import { z as z61 } from "zod";
1562
- var FontSizeUnit = z61.enum(["Pixels", "Rem", "Percent"]);
1563
- var FontSizeValue = z61.object({
1558
+ import { z as z60 } from "zod";
1559
+ var FontSizeUnit = z60.enum(["Pixels", "Rem", "Percent"]);
1560
+ var FontSizeValue = z60.object({
1564
1561
  unit: FontSizeUnit,
1565
- measure: z61.number()
1562
+ measure: z60.number()
1566
1563
  });
1567
1564
  var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
1568
1565
 
1569
1566
  // src/dsm/elements/data/font-weight.ts
1570
- import { z as z62 } from "zod";
1571
- var FontWeightValue = z62.string();
1567
+ import { z as z61 } from "zod";
1568
+ var FontWeightValue = z61.string();
1572
1569
  var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
1573
1570
 
1574
1571
  // src/dsm/elements/data/gradient.ts
1575
- import { z as z63 } from "zod";
1576
- var GradientType = z63.enum(["Linear", "Radial", "Angular"]);
1577
- var GradientStop = z63.object({
1578
- position: z63.number(),
1572
+ import { z as z62 } from "zod";
1573
+ var GradientType = z62.enum(["Linear", "Radial", "Angular"]);
1574
+ var GradientStop = z62.object({
1575
+ position: z62.number(),
1579
1576
  color: ColorTokenData
1580
1577
  });
1581
- var GradientLayerValue = z63.object({
1578
+ var GradientLayerValue = z62.object({
1582
1579
  from: Point2D,
1583
1580
  to: Point2D,
1584
1581
  type: GradientType,
1585
- aspectRatio: nullishToOptional(z63.number()),
1582
+ aspectRatio: nullishToOptional(z62.number()),
1586
1583
  // z.number(),
1587
- stops: z63.array(GradientStop).min(2)
1584
+ stops: z62.array(GradientStop).min(2)
1588
1585
  });
1589
1586
  var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
1590
- var GradientTokenValue = z63.array(GradientLayerData);
1587
+ var GradientTokenValue = z62.array(GradientLayerData);
1591
1588
  var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
1592
1589
 
1593
1590
  // src/dsm/elements/data/group.ts
1594
- import { z as z64 } from "zod";
1595
- var DocumentationGroupBehavior = z64.enum(["Group", "Tabs"]);
1596
- var ElementGroupDataV1 = z64.object({
1591
+ import { z as z63 } from "zod";
1592
+ var DocumentationGroupBehavior = z63.enum(["Group", "Tabs"]);
1593
+ var ElementGroupDataV1 = z63.object({
1597
1594
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1598
1595
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
1599
1596
  });
1600
- var ElementGroupDataV2 = z64.object({
1597
+ var ElementGroupDataV2 = z63.object({
1601
1598
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1602
1599
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
1603
1600
  });
1604
1601
 
1605
1602
  // src/dsm/elements/data/letter-spacing.ts
1606
- import { z as z65 } from "zod";
1607
- var LetterSpacingUnit = z65.enum(["Pixels", "Rem", "Percent"]);
1608
- var LetterSpacingValue = z65.object({
1603
+ import { z as z64 } from "zod";
1604
+ var LetterSpacingUnit = z64.enum(["Pixels", "Rem", "Percent"]);
1605
+ var LetterSpacingValue = z64.object({
1609
1606
  unit: LetterSpacingUnit,
1610
- measure: z65.number()
1607
+ measure: z64.number()
1611
1608
  });
1612
1609
  var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
1613
1610
 
1614
1611
  // src/dsm/elements/data/line-height.ts
1615
- import { z as z66 } from "zod";
1616
- var LineHeightUnit = z66.enum(["Pixels", "Rem", "Percent", "Raw"]);
1617
- var LineHeightValue = z66.object({
1612
+ import { z as z65 } from "zod";
1613
+ var LineHeightUnit = z65.enum(["Pixels", "Rem", "Percent", "Raw"]);
1614
+ var LineHeightValue = z65.object({
1618
1615
  unit: LineHeightUnit,
1619
- measure: z66.number()
1616
+ measure: z65.number()
1620
1617
  });
1621
1618
  var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
1622
1619
 
1623
1620
  // src/dsm/elements/data/paragraph-indent.ts
1624
- import { z as z67 } from "zod";
1625
- var ParagraphIndentUnit = z67.enum(["Pixels", "Rem", "Percent"]);
1626
- var ParagraphIndentValue = z67.object({
1621
+ import { z as z66 } from "zod";
1622
+ var ParagraphIndentUnit = z66.enum(["Pixels", "Rem", "Percent"]);
1623
+ var ParagraphIndentValue = z66.object({
1627
1624
  unit: ParagraphIndentUnit,
1628
- measure: z67.number()
1625
+ measure: z66.number()
1629
1626
  });
1630
1627
  var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
1631
1628
 
1632
1629
  // src/dsm/elements/data/paragraph-spacing.ts
1633
- import { z as z68 } from "zod";
1634
- var ParagraphSpacingUnit = z68.enum(["Pixels", "Rem", "Percent"]);
1635
- var ParagraphSpacingValue = z68.object({
1630
+ import { z as z67 } from "zod";
1631
+ var ParagraphSpacingUnit = z67.enum(["Pixels", "Rem", "Percent"]);
1632
+ var ParagraphSpacingValue = z67.object({
1636
1633
  unit: ParagraphSpacingUnit,
1637
- measure: z68.number()
1634
+ measure: z67.number()
1638
1635
  });
1639
1636
  var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
1640
1637
 
1641
1638
  // src/dsm/elements/data/product-copy.ts
1642
- import { z as z69 } from "zod";
1643
- var ProductCopyValue = z69.string();
1639
+ import { z as z68 } from "zod";
1640
+ var ProductCopyValue = z68.string();
1644
1641
  var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
1645
1642
 
1646
1643
  // src/dsm/elements/data/safe-id.ts
1647
- import { z as z70 } from "zod";
1644
+ import { z as z69 } from "zod";
1648
1645
  var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
1649
- var SafeIdSchema = z70.string().refine(
1646
+ var SafeIdSchema = z69.string().refine(
1650
1647
  (value) => {
1651
1648
  return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
1652
1649
  },
@@ -1656,58 +1653,58 @@ var SafeIdSchema = z70.string().refine(
1656
1653
  );
1657
1654
 
1658
1655
  // src/dsm/elements/data/shadow.ts
1659
- import { z as z71 } from "zod";
1660
- var ShadowType = z71.enum(["Drop", "Inner"]);
1661
- var ShadowLayerValue = z71.object({
1656
+ import { z as z70 } from "zod";
1657
+ var ShadowType = z70.enum(["Drop", "Inner"]);
1658
+ var ShadowLayerValue = z70.object({
1662
1659
  color: ColorTokenData,
1663
- x: z71.number(),
1664
- y: z71.number(),
1665
- radius: z71.number(),
1666
- spread: z71.number(),
1660
+ x: z70.number(),
1661
+ y: z70.number(),
1662
+ radius: z70.number(),
1663
+ spread: z70.number(),
1667
1664
  opacity: OpacityTokenData.optional(),
1668
1665
  type: ShadowType
1669
1666
  });
1670
1667
  var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
1671
- var ShadowTokenData = tokenAliasOrValue(z71.array(ShadowTokenDataBase));
1668
+ var ShadowTokenData = tokenAliasOrValue(z70.array(ShadowTokenDataBase));
1672
1669
 
1673
1670
  // src/dsm/elements/data/size.ts
1674
- import { z as z72 } from "zod";
1675
- var SizeUnit = z72.enum(["Pixels", "Rem", "Percent"]);
1676
- var SizeValue = z72.object({
1671
+ import { z as z71 } from "zod";
1672
+ var SizeUnit = z71.enum(["Pixels", "Rem", "Percent"]);
1673
+ var SizeValue = z71.object({
1677
1674
  unit: SizeUnit,
1678
- measure: z72.number()
1675
+ measure: z71.number()
1679
1676
  });
1680
1677
  var SizeTokenData = tokenAliasOrValue(SizeValue);
1681
1678
 
1682
1679
  // src/dsm/elements/data/space.ts
1683
- import { z as z73 } from "zod";
1684
- var SpaceUnit = z73.enum(["Pixels", "Rem", "Percent"]);
1685
- var SpaceValue = z73.object({
1680
+ import { z as z72 } from "zod";
1681
+ var SpaceUnit = z72.enum(["Pixels", "Rem", "Percent"]);
1682
+ var SpaceValue = z72.object({
1686
1683
  unit: SpaceUnit,
1687
- measure: z73.number()
1684
+ measure: z72.number()
1688
1685
  });
1689
1686
  var SpaceTokenData = tokenAliasOrValue(SpaceValue);
1690
1687
 
1691
1688
  // src/dsm/elements/data/string.ts
1692
- import { z as z74 } from "zod";
1693
- var StringValue = z74.string();
1689
+ import { z as z73 } from "zod";
1690
+ var StringValue = z73.string();
1694
1691
  var StringTokenData = tokenAliasOrValue(StringValue);
1695
1692
 
1696
1693
  // src/dsm/elements/data/text-case.ts
1697
- import { z as z75 } from "zod";
1698
- var TextCase = z75.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
1694
+ import { z as z74 } from "zod";
1695
+ var TextCase = z74.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
1699
1696
  var TextCaseValue = TextCase;
1700
1697
  var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
1701
1698
 
1702
1699
  // src/dsm/elements/data/text-decoration.ts
1703
- import { z as z76 } from "zod";
1704
- var TextDecoration = z76.enum(["None", "Underline", "Strikethrough"]);
1700
+ import { z as z75 } from "zod";
1701
+ var TextDecoration = z75.enum(["None", "Underline", "Strikethrough"]);
1705
1702
  var TextDecorationValue = TextDecoration;
1706
1703
  var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
1707
1704
 
1708
1705
  // src/dsm/elements/data/typography.ts
1709
- import { z as z77 } from "zod";
1710
- var TypographyValue = z77.object({
1706
+ import { z as z76 } from "zod";
1707
+ var TypographyValue = z76.object({
1711
1708
  fontSize: FontSizeTokenData,
1712
1709
  fontFamily: FontFamilyTokenData,
1713
1710
  fontWeight: FontWeightTokenData,
@@ -1721,49 +1718,49 @@ var TypographyValue = z77.object({
1721
1718
  var TypographyTokenData = tokenAliasOrValue(TypographyValue);
1722
1719
 
1723
1720
  // src/dsm/elements/data/visibility.ts
1724
- import { z as z78 } from "zod";
1725
- var Visibility = z78.enum(["Hidden", "Visible"]);
1721
+ import { z as z77 } from "zod";
1722
+ var Visibility = z77.enum(["Hidden", "Visible"]);
1726
1723
  var VisibilityValue = Visibility;
1727
1724
  var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
1728
1725
 
1729
1726
  // src/dsm/elements/data/z-index.ts
1730
- import { z as z79 } from "zod";
1731
- var ZIndexUnit = z79.enum(["Raw"]);
1732
- var ZIndexValue = z79.object({
1727
+ import { z as z78 } from "zod";
1728
+ var ZIndexUnit = z78.enum(["Raw"]);
1729
+ var ZIndexValue = z78.object({
1733
1730
  unit: ZIndexUnit,
1734
- measure: z79.number()
1731
+ measure: z78.number()
1735
1732
  });
1736
1733
  var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
1737
1734
 
1738
1735
  // src/dsm/elements/component.ts
1739
- import { z as z80 } from "zod";
1740
- var ComponentOriginPart = z80.object({
1741
- nodeId: z80.string().optional(),
1742
- width: z80.number().optional(),
1743
- height: z80.number().optional()
1736
+ import { z as z79 } from "zod";
1737
+ var ComponentOriginPart = z79.object({
1738
+ nodeId: z79.string().optional(),
1739
+ width: z79.number().optional(),
1740
+ height: z79.number().optional()
1744
1741
  });
1745
- var ComponentAsset = z80.object({
1746
- assetId: z80.string(),
1747
- assetPath: z80.string()
1742
+ var ComponentAsset = z79.object({
1743
+ assetId: z79.string(),
1744
+ assetPath: z79.string()
1748
1745
  });
1749
1746
  var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
1750
1747
  var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
1751
1748
  origin: ComponentOrigin.optional(),
1752
1749
  thumbnail: ComponentAsset,
1753
1750
  svg: ComponentAsset.optional(),
1754
- isAsset: z80.boolean()
1751
+ isAsset: z79.boolean()
1755
1752
  });
1756
1753
  function isImportedComponent(component) {
1757
1754
  return !!component.origin;
1758
1755
  }
1759
1756
 
1760
1757
  // src/dsm/elements/documentation-page-v1.ts
1761
- import { z as z82 } from "zod";
1758
+ import { z as z81 } from "zod";
1762
1759
 
1763
1760
  // src/dsm/elements/group.ts
1764
- import { z as z81 } from "zod";
1761
+ import { z as z80 } from "zod";
1765
1762
  var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
1766
- shortPersistentId: z81.string().optional(),
1763
+ shortPersistentId: z80.string().optional(),
1767
1764
  childType: DesignElementType,
1768
1765
  data: ElementGroupDataV2.optional()
1769
1766
  });
@@ -1771,7 +1768,7 @@ var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
1771
1768
 
1772
1769
  // src/dsm/elements/documentation-page-v1.ts
1773
1770
  var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1774
- shortPersistentId: z82.string(),
1771
+ shortPersistentId: z81.string(),
1775
1772
  data: DocumentationPageDataV1
1776
1773
  });
1777
1774
  var DocumentationGroupV1 = ElementGroup.omit({
@@ -1781,21 +1778,21 @@ var DocumentationGroupV1 = ElementGroup.omit({
1781
1778
  });
1782
1779
 
1783
1780
  // src/dsm/elements/documentation-page-v2.ts
1784
- import { z as z83 } from "zod";
1781
+ import { z as z82 } from "zod";
1785
1782
  var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1786
- shortPersistentId: z83.string(),
1783
+ shortPersistentId: z82.string(),
1787
1784
  data: DocumentationPageDataV2.extend({
1788
- oldBlocks: z83.array(PageBlockV1).optional()
1785
+ oldBlocks: z82.array(PageBlockV1).optional()
1789
1786
  })
1790
1787
  });
1791
1788
 
1792
1789
  // src/dsm/elements/figma-file-structures.ts
1793
- import { z as z84 } from "zod";
1794
- var FigmaFileStructureOrigin = z84.object({
1795
- sourceId: z84.string(),
1796
- fileId: z84.string().optional()
1790
+ import { z as z83 } from "zod";
1791
+ var FigmaFileStructureOrigin = z83.object({
1792
+ sourceId: z83.string(),
1793
+ fileId: z83.string().optional()
1797
1794
  });
1798
- var FigmaFileStructureData = z84.object({
1795
+ var FigmaFileStructureData = z83.object({
1799
1796
  rootNode: FigmaFileStructureNode,
1800
1797
  assetsInFile: FigmaFileStructureStatistics
1801
1798
  });
@@ -1811,10 +1808,10 @@ function traverseStructure(node, action) {
1811
1808
  }
1812
1809
 
1813
1810
  // src/dsm/elements/figma-node-reference.ts
1814
- import { z as z85 } from "zod";
1815
- var FigmaNodeReferenceOrigin = z85.object({
1816
- sourceId: z85.string(),
1817
- parentName: z85.string().optional()
1811
+ import { z as z84 } from "zod";
1812
+ var FigmaNodeReferenceOrigin = z84.object({
1813
+ sourceId: z84.string(),
1814
+ parentName: z84.string().optional()
1818
1815
  });
1819
1816
  var FigmaNodeReference = DesignElementBase.extend({
1820
1817
  data: FigmaNodeReferenceData,
@@ -1822,13 +1819,13 @@ var FigmaNodeReference = DesignElementBase.extend({
1822
1819
  });
1823
1820
 
1824
1821
  // src/dsm/elements/theme.ts
1825
- import { z as z87 } from "zod";
1822
+ import { z as z86 } from "zod";
1826
1823
 
1827
1824
  // src/dsm/elements/tokens.ts
1828
- import { z as z86 } from "zod";
1829
- var DesignTokenOriginPart = z86.object({
1830
- referenceOriginId: z86.string().optional(),
1831
- referencePersistentId: z86.string().optional()
1825
+ import { z as z85 } from "zod";
1826
+ var DesignTokenOriginPart = z85.object({
1827
+ referenceOriginId: z85.string().optional(),
1828
+ referencePersistentId: z85.string().optional()
1832
1829
  });
1833
1830
  var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
1834
1831
  var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
@@ -1840,111 +1837,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
1840
1837
  brandPersistentId: true,
1841
1838
  designSystemVersionId: true
1842
1839
  });
1843
- var BlurTokenTypedData = z86.object({
1844
- type: z86.literal("Blur"),
1840
+ var BlurTokenTypedData = z85.object({
1841
+ type: z85.literal("Blur"),
1845
1842
  data: BlurTokenData
1846
1843
  });
1847
- var ColorTokenTypedData = z86.object({
1848
- type: z86.literal("Color"),
1844
+ var ColorTokenTypedData = z85.object({
1845
+ type: z85.literal("Color"),
1849
1846
  data: ColorTokenData
1850
1847
  });
1851
- var GradientTokenTypedData = z86.object({
1852
- type: z86.literal("Gradient"),
1848
+ var GradientTokenTypedData = z85.object({
1849
+ type: z85.literal("Gradient"),
1853
1850
  data: GradientTokenData
1854
1851
  });
1855
- var OpacityTokenTypedData = z86.object({
1856
- type: z86.literal("Opacity"),
1852
+ var OpacityTokenTypedData = z85.object({
1853
+ type: z85.literal("Opacity"),
1857
1854
  data: OpacityTokenData
1858
1855
  });
1859
- var ShadowTokenTypedData = z86.object({
1860
- type: z86.literal("Shadow"),
1856
+ var ShadowTokenTypedData = z85.object({
1857
+ type: z85.literal("Shadow"),
1861
1858
  data: ShadowTokenData
1862
1859
  });
1863
- var TypographyTokenTypedData = z86.object({
1864
- type: z86.literal("Typography"),
1860
+ var TypographyTokenTypedData = z85.object({
1861
+ type: z85.literal("Typography"),
1865
1862
  data: TypographyTokenData
1866
1863
  });
1867
- var StringTokenTypedData = z86.object({
1868
- type: z86.literal("String"),
1864
+ var StringTokenTypedData = z85.object({
1865
+ type: z85.literal("String"),
1869
1866
  data: StringTokenData
1870
1867
  });
1871
- var DimensionTokenTypedData = z86.object({
1872
- type: z86.literal("Dimension"),
1868
+ var DimensionTokenTypedData = z85.object({
1869
+ type: z85.literal("Dimension"),
1873
1870
  data: DimensionTokenData
1874
1871
  });
1875
- var FontSizeTokenTypedData = z86.object({
1876
- type: z86.literal("FontSize"),
1872
+ var FontSizeTokenTypedData = z85.object({
1873
+ type: z85.literal("FontSize"),
1877
1874
  data: FontSizeTokenData
1878
1875
  });
1879
- var FontFamilyTokenTypedData = z86.object({
1880
- type: z86.literal("FontFamily"),
1876
+ var FontFamilyTokenTypedData = z85.object({
1877
+ type: z85.literal("FontFamily"),
1881
1878
  data: FontFamilyTokenData
1882
1879
  });
1883
- var FontWeightTokenTypedData = z86.object({
1884
- type: z86.literal("FontWeight"),
1880
+ var FontWeightTokenTypedData = z85.object({
1881
+ type: z85.literal("FontWeight"),
1885
1882
  data: FontWeightTokenData
1886
1883
  });
1887
- var LetterSpacingTokenTypedData = z86.object({
1888
- type: z86.literal("LetterSpacing"),
1884
+ var LetterSpacingTokenTypedData = z85.object({
1885
+ type: z85.literal("LetterSpacing"),
1889
1886
  data: LetterSpacingTokenData
1890
1887
  });
1891
- var LineHeightTokenTypedData = z86.object({
1892
- type: z86.literal("LineHeight"),
1888
+ var LineHeightTokenTypedData = z85.object({
1889
+ type: z85.literal("LineHeight"),
1893
1890
  data: LineHeightTokenData
1894
1891
  });
1895
- var ParagraphSpacingTokenTypedData = z86.object({
1896
- type: z86.literal("ParagraphSpacing"),
1892
+ var ParagraphSpacingTokenTypedData = z85.object({
1893
+ type: z85.literal("ParagraphSpacing"),
1897
1894
  data: ParagraphSpacingTokenData
1898
1895
  });
1899
- var TextCaseTokenTypedData = z86.object({
1900
- type: z86.literal("TextCase"),
1896
+ var TextCaseTokenTypedData = z85.object({
1897
+ type: z85.literal("TextCase"),
1901
1898
  data: TextCaseTokenData
1902
1899
  });
1903
- var TextDecorationTokenTypedData = z86.object({
1904
- type: z86.literal("TextDecoration"),
1900
+ var TextDecorationTokenTypedData = z85.object({
1901
+ type: z85.literal("TextDecoration"),
1905
1902
  data: TextDecorationTokenData
1906
1903
  });
1907
- var BorderRadiusTokenTypedData = z86.object({
1908
- type: z86.literal("BorderRadius"),
1904
+ var BorderRadiusTokenTypedData = z85.object({
1905
+ type: z85.literal("BorderRadius"),
1909
1906
  data: BorderRadiusTokenData
1910
1907
  });
1911
- var BorderWidthTokenTypedData = z86.object({
1912
- type: z86.literal("BorderWidth"),
1908
+ var BorderWidthTokenTypedData = z85.object({
1909
+ type: z85.literal("BorderWidth"),
1913
1910
  data: BorderWidthTokenData
1914
1911
  });
1915
- var BorderTypedData = z86.object({
1916
- type: z86.literal("Border"),
1912
+ var BorderTypedData = z85.object({
1913
+ type: z85.literal("Border"),
1917
1914
  data: BorderTokenData
1918
1915
  });
1919
- var ProductCopyTypedData = z86.object({
1920
- type: z86.literal("ProductCopy"),
1916
+ var ProductCopyTypedData = z85.object({
1917
+ type: z85.literal("ProductCopy"),
1921
1918
  data: ProductCopyTokenData
1922
1919
  });
1923
- var SizeTypedData = z86.object({
1924
- type: z86.literal("Size"),
1920
+ var SizeTypedData = z85.object({
1921
+ type: z85.literal("Size"),
1925
1922
  data: SizeTokenData
1926
1923
  });
1927
- var SpaceTypedData = z86.object({
1928
- type: z86.literal("Space"),
1924
+ var SpaceTypedData = z85.object({
1925
+ type: z85.literal("Space"),
1929
1926
  data: SpaceTokenData
1930
1927
  });
1931
- var VisibilityTypedData = z86.object({
1932
- type: z86.literal("Visibility"),
1928
+ var VisibilityTypedData = z85.object({
1929
+ type: z85.literal("Visibility"),
1933
1930
  data: VisibilityTokenData
1934
1931
  });
1935
- var ZIndexTypedData = z86.object({
1936
- type: z86.literal("ZIndex"),
1932
+ var ZIndexTypedData = z85.object({
1933
+ type: z85.literal("ZIndex"),
1937
1934
  data: ZIndexTokenData
1938
1935
  });
1939
- var DurationTypedData = z86.object({
1940
- type: z86.literal("Duration"),
1936
+ var DurationTypedData = z85.object({
1937
+ type: z85.literal("Duration"),
1941
1938
  data: DurationTokenData
1942
1939
  });
1943
- var FontTypedData = z86.object({
1944
- type: z86.literal("Font"),
1945
- data: z86.record(z86.any())
1940
+ var FontTypedData = z85.object({
1941
+ type: z85.literal("Font"),
1942
+ data: z85.record(z85.any())
1946
1943
  });
1947
- var DesignTokenTypedData = z86.discriminatedUnion("type", [
1944
+ var DesignTokenTypedData = z85.discriminatedUnion("type", [
1948
1945
  BlurTokenTypedData,
1949
1946
  BorderRadiusTokenTypedData,
1950
1947
  BorderWidthTokenTypedData,
@@ -1994,32 +1991,32 @@ function designTokenTypeFilter(type) {
1994
1991
  var ThemeOverrideOriginPart = DesignTokenOriginPart;
1995
1992
  var ThemeOverrideOrigin = DesignTokenOrigin;
1996
1993
  var ThemeOverride = DesignTokenTypedData.and(
1997
- z87.object({
1998
- tokenPersistentId: z87.string(),
1994
+ z86.object({
1995
+ tokenPersistentId: z86.string(),
1999
1996
  origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
2000
1997
  })
2001
1998
  );
2002
- var ThemeElementData = z87.object({
2003
- value: z87.object({
2004
- overrides: z87.array(ThemeOverride)
1999
+ var ThemeElementData = z86.object({
2000
+ value: z86.object({
2001
+ overrides: z86.array(ThemeOverride)
2005
2002
  })
2006
2003
  });
2007
- var ThemeOriginPart = z87.object({});
2008
- var ThemeOriginObject = z87.object({
2009
- id: z87.string(),
2010
- name: z87.string()
2004
+ var ThemeOriginPart = z86.object({});
2005
+ var ThemeOriginObject = z86.object({
2006
+ id: z86.string(),
2007
+ name: z86.string()
2011
2008
  });
2012
- var ThemeOriginSource = z87.object({
2013
- sourceId: z87.string(),
2014
- sourceObjects: z87.array(ThemeOriginObject)
2009
+ var ThemeOriginSource = z86.object({
2010
+ sourceId: z86.string(),
2011
+ sourceObjects: z86.array(ThemeOriginObject)
2015
2012
  });
2016
- var ThemeOrigin = z87.object({
2017
- sources: z87.array(ThemeOriginSource)
2013
+ var ThemeOrigin = z86.object({
2014
+ sources: z86.array(ThemeOriginSource)
2018
2015
  });
2019
2016
  var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
2020
2017
  origin: ThemeOrigin.optional(),
2021
- overrides: z87.array(ThemeOverride),
2022
- codeName: z87.string()
2018
+ overrides: z86.array(ThemeOverride),
2019
+ codeName: z86.string()
2023
2020
  });
2024
2021
 
2025
2022
  // src/dsm/elements/utils.ts
@@ -2089,25 +2086,25 @@ var PageBlockDefinitionsMap = class {
2089
2086
  };
2090
2087
 
2091
2088
  // src/dsm/import/support/figma-files.ts
2092
- import { z as z88 } from "zod";
2093
- var FigmaFileDownloadScope = z88.object({
2094
- styles: z88.boolean(),
2095
- components: z88.boolean(),
2096
- currentVersion: z88.literal("__latest__").nullable(),
2097
- publishedVersion: z88.string().nullable(),
2098
- downloadChunkSize: z88.number().optional(),
2099
- maxFileDepth: z88.number().optional()
2089
+ import { z as z87 } from "zod";
2090
+ var FigmaFileDownloadScope = z87.object({
2091
+ styles: z87.boolean(),
2092
+ components: z87.boolean(),
2093
+ currentVersion: z87.literal("__latest__").nullable(),
2094
+ publishedVersion: z87.string().nullable(),
2095
+ downloadChunkSize: z87.number().optional(),
2096
+ maxFileDepth: z87.number().optional()
2100
2097
  });
2101
- var FigmaFileAccessData = z88.object({
2102
- accessToken: z88.string()
2098
+ var FigmaFileAccessData = z87.object({
2099
+ accessToken: z87.string()
2103
2100
  });
2104
2101
 
2105
2102
  // src/dsm/import/support/import-context.ts
2106
- import { z as z90 } from "zod";
2103
+ import { z as z89 } from "zod";
2107
2104
 
2108
2105
  // src/dsm/import/warning.ts
2109
- import { z as z89 } from "zod";
2110
- var ImportWarningType = z89.enum([
2106
+ import { z as z88 } from "zod";
2107
+ var ImportWarningType = z88.enum([
2111
2108
  "NoVersionFound",
2112
2109
  "UnsupportedFill",
2113
2110
  "UnsupportedStroke",
@@ -2122,49 +2119,49 @@ var ImportWarningType = z89.enum([
2122
2119
  "DuplicateImportedStylePath",
2123
2120
  "NoUnpublishedStyles"
2124
2121
  ]);
2125
- var ImportWarning = z89.object({
2122
+ var ImportWarning = z88.object({
2126
2123
  warningType: ImportWarningType,
2127
- componentId: z89.string().optional(),
2128
- componentName: z89.string().optional(),
2129
- styleId: z89.string().optional(),
2130
- styleName: z89.string().optional(),
2131
- unsupportedStyleValueType: z89.string().optional()
2124
+ componentId: z88.string().optional(),
2125
+ componentName: z88.string().optional(),
2126
+ styleId: z88.string().optional(),
2127
+ styleName: z88.string().optional(),
2128
+ unsupportedStyleValueType: z88.string().optional()
2132
2129
  });
2133
2130
 
2134
2131
  // src/dsm/import/support/import-context.ts
2135
- var ImportFunctionInput = z90.object({
2136
- importJobId: z90.string(),
2137
- importContextId: z90.string(),
2138
- designSystemId: z90.string().optional()
2132
+ var ImportFunctionInput = z89.object({
2133
+ importJobId: z89.string(),
2134
+ importContextId: z89.string(),
2135
+ designSystemId: z89.string().optional()
2139
2136
  });
2140
- var ImportedFigmaSourceData = z90.object({
2141
- sourceId: z90.string(),
2137
+ var ImportedFigmaSourceData = z89.object({
2138
+ sourceId: z89.string(),
2142
2139
  figmaRemote: DataSourceFigmaRemote
2143
2140
  });
2144
- var FigmaImportBaseContext = z90.object({
2145
- designSystemId: z90.string(),
2141
+ var FigmaImportBaseContext = z89.object({
2142
+ designSystemId: z89.string(),
2146
2143
  /**
2147
2144
  * Data required for accessing Figma files. This should contain access data for all file ids
2148
2145
  * mentioned in the `importedSourceDataBySourceId`
2149
2146
  *
2150
2147
  * fileId: file data
2151
2148
  */
2152
- fileAccessByFileId: z90.record(FigmaFileAccessData),
2149
+ fileAccessByFileId: z89.record(FigmaFileAccessData),
2153
2150
  /**
2154
2151
  * Figma source data for which import was requested
2155
2152
  *
2156
2153
  * sourceId: source data
2157
2154
  */
2158
- importedSourceDataBySourceId: z90.record(ImportedFigmaSourceData),
2155
+ importedSourceDataBySourceId: z89.record(ImportedFigmaSourceData),
2159
2156
  /**
2160
2157
  * Array of warnings that will be written into the import result summary at the end
2161
2158
  * of import job execution and displayed by the client.
2162
2159
  */
2163
- importWarnings: z90.record(ImportWarning.array()).default({})
2160
+ importWarnings: z89.record(ImportWarning.array()).default({})
2164
2161
  });
2165
2162
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
2166
- sourcesWithMissingAccess: z90.array(z90.string()).default([]),
2167
- shadowOpacityOptional: z90.boolean().default(false)
2163
+ sourcesWithMissingAccess: z89.array(z89.string()).default([]),
2164
+ shadowOpacityOptional: z89.boolean().default(false)
2168
2165
  });
2169
2166
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
2170
2167
  importMetadata: DataSourceFigmaImportMetadata
@@ -2176,79 +2173,79 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
2176
2173
  *
2177
2174
  * File id -> file download scope
2178
2175
  */
2179
- fileDownloadScopesByFileId: z90.record(FigmaFileDownloadScope),
2176
+ fileDownloadScopesByFileId: z89.record(FigmaFileDownloadScope),
2180
2177
  /**
2181
2178
  * Sources filtered down to the ones that have changed since last import and therefore need to be
2182
2179
  * imported again.
2183
2180
  *
2184
2181
  * Source id -> import metadata
2185
2182
  */
2186
- changedImportedSourceDataBySourceId: z90.record(ChangedImportedFigmaSourceData)
2183
+ changedImportedSourceDataBySourceId: z89.record(ChangedImportedFigmaSourceData)
2187
2184
  });
2188
2185
 
2189
2186
  // src/dsm/import/support/import-model-collections.ts
2190
- import { z as z98 } from "zod";
2187
+ import { z as z97 } from "zod";
2191
2188
 
2192
2189
  // src/dsm/import/image.ts
2193
- import { z as z91 } from "zod";
2194
- var ImageImportModelType = z91.enum(["Url", "FigmaRender"]);
2195
- var ImageImportModelBase = z91.object({
2190
+ import { z as z90 } from "zod";
2191
+ var ImageImportModelType = z90.enum(["Url", "FigmaRender"]);
2192
+ var ImageImportModelBase = z90.object({
2196
2193
  scope: AssetScope
2197
2194
  });
2198
2195
  var UrlImageImportModel = ImageImportModelBase.extend({
2199
- type: z91.literal(ImageImportModelType.enum.Url),
2200
- url: z91.string(),
2201
- originKey: z91.string(),
2202
- extension: z91.string()
2196
+ type: z90.literal(ImageImportModelType.enum.Url),
2197
+ url: z90.string(),
2198
+ originKey: z90.string(),
2199
+ extension: z90.string()
2203
2200
  });
2204
- var FigmaRenderFormat = z91.enum(["Svg", "Png"]);
2201
+ var FigmaRenderFormat = z90.enum(["Svg", "Png"]);
2205
2202
  var FigmaRenderBase = ImageImportModelBase.extend({
2206
- type: z91.literal(ImageImportModelType.enum.FigmaRender),
2207
- fileId: z91.string(),
2208
- fileVersionId: z91.string().optional(),
2209
- nodeId: z91.string(),
2210
- originKey: z91.string()
2203
+ type: z90.literal(ImageImportModelType.enum.FigmaRender),
2204
+ fileId: z90.string(),
2205
+ fileVersionId: z90.string().optional(),
2206
+ nodeId: z90.string(),
2207
+ originKey: z90.string()
2211
2208
  });
2212
2209
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
2213
- format: z91.literal(FigmaRenderFormat.enum.Png),
2214
- scale: z91.number()
2210
+ format: z90.literal(FigmaRenderFormat.enum.Png),
2211
+ scale: z90.number()
2215
2212
  });
2216
2213
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
2217
- format: z91.literal(FigmaRenderFormat.enum.Svg)
2214
+ format: z90.literal(FigmaRenderFormat.enum.Svg)
2218
2215
  });
2219
- var FigmaRenderImportModel = z91.discriminatedUnion("format", [
2216
+ var FigmaRenderImportModel = z90.discriminatedUnion("format", [
2220
2217
  FigmaPngRenderImportModel,
2221
2218
  FigmaSvgRenderImportModel
2222
2219
  ]);
2223
- var ImageImportModel = z91.union([UrlImageImportModel, FigmaRenderImportModel]);
2220
+ var ImageImportModel = z90.union([UrlImageImportModel, FigmaRenderImportModel]);
2224
2221
 
2225
2222
  // src/dsm/import/component.ts
2226
- import { z as z93 } from "zod";
2223
+ import { z as z92 } from "zod";
2227
2224
 
2228
2225
  // src/dsm/import/base.ts
2229
- import { z as z92 } from "zod";
2230
- var ImportModelBase = z92.object({
2231
- id: z92.string(),
2226
+ import { z as z91 } from "zod";
2227
+ var ImportModelBase = z91.object({
2228
+ id: z91.string(),
2232
2229
  meta: ObjectMeta,
2233
2230
  origin: DesignElementOrigin,
2234
- brandPersistentId: z92.string(),
2235
- sortOrder: z92.number()
2231
+ brandPersistentId: z91.string(),
2232
+ sortOrder: z91.number()
2236
2233
  });
2237
2234
  var ImportModelInputBase = ImportModelBase.omit({
2238
2235
  brandPersistentId: true,
2239
2236
  origin: true,
2240
2237
  sortOrder: true
2241
2238
  }).extend({
2242
- originId: z92.string(),
2243
- originMetadata: z92.record(z92.any())
2239
+ originId: z91.string(),
2240
+ originMetadata: z91.record(z91.any())
2244
2241
  });
2245
2242
 
2246
2243
  // src/dsm/import/component.ts
2247
- var ComponentImportModelPart = z93.object({
2244
+ var ComponentImportModelPart = z92.object({
2248
2245
  thumbnail: ImageImportModel
2249
2246
  });
2250
2247
  var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
2251
- isAsset: z93.boolean(),
2248
+ isAsset: z92.boolean(),
2252
2249
  svg: FigmaSvgRenderImportModel.optional(),
2253
2250
  origin: ComponentOrigin
2254
2251
  });
@@ -2261,49 +2258,49 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
2261
2258
  });
2262
2259
 
2263
2260
  // src/dsm/import/theme.ts
2264
- import { z as z94 } from "zod";
2261
+ import { z as z93 } from "zod";
2265
2262
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
2266
- z94.object({
2267
- id: z94.string(),
2263
+ z93.object({
2264
+ id: z93.string(),
2268
2265
  meta: ObjectMeta
2269
2266
  })
2270
2267
  );
2271
2268
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
2272
- z94.object({
2269
+ z93.object({
2273
2270
  origin: ThemeOverrideOrigin
2274
2271
  })
2275
2272
  );
2276
2273
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
2277
- z94.object({
2278
- originId: z94.string(),
2274
+ z93.object({
2275
+ originId: z93.string(),
2279
2276
  originMetadata: ThemeOverrideOriginPart
2280
2277
  })
2281
2278
  );
2282
- var ThemeImportModel = z94.object({
2279
+ var ThemeImportModel = z93.object({
2283
2280
  meta: ObjectMeta,
2284
- brandPersistentId: z94.string(),
2281
+ brandPersistentId: z93.string(),
2285
2282
  originSource: ThemeOriginSource,
2286
- overrides: z94.array(ThemeOverrideImportModel),
2287
- sortOrder: z94.number()
2283
+ overrides: z93.array(ThemeOverrideImportModel),
2284
+ sortOrder: z93.number()
2288
2285
  });
2289
- var ThemeImportModelInput = z94.object({
2286
+ var ThemeImportModelInput = z93.object({
2290
2287
  meta: ObjectMeta,
2291
- originObjects: z94.array(ThemeOriginObject),
2292
- overrides: z94.array(ThemeOverrideImportModelInput)
2288
+ originObjects: z93.array(ThemeOriginObject),
2289
+ overrides: z93.array(ThemeOverrideImportModelInput)
2293
2290
  });
2294
- var ThemeUpdateImportModel = z94.object({
2295
- themePersistentId: z94.string(),
2296
- overrides: z94.array(ThemeOverrideImportModel)
2291
+ var ThemeUpdateImportModel = z93.object({
2292
+ themePersistentId: z93.string(),
2293
+ overrides: z93.array(ThemeOverrideImportModel)
2297
2294
  });
2298
- var ThemeUpdateImportModelInput = z94.object({
2299
- themePersistentId: z94.string(),
2300
- overrides: z94.array(ThemeOverrideImportModelInput)
2295
+ var ThemeUpdateImportModelInput = z93.object({
2296
+ themePersistentId: z93.string(),
2297
+ overrides: z93.array(ThemeOverrideImportModelInput)
2301
2298
  });
2302
2299
 
2303
2300
  // src/dsm/import/tokens.ts
2304
- import { z as z95 } from "zod";
2305
- var DesignTokenImportModelPart = z95.object({
2306
- collection: z95.string().optional()
2301
+ import { z as z94 } from "zod";
2302
+ var DesignTokenImportModelPart = z94.object({
2303
+ collection: z94.string().optional()
2307
2304
  });
2308
2305
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
2309
2306
  origin: DesignTokenOrigin
@@ -2321,15 +2318,15 @@ function designTokenImportModelTypeFilter(type) {
2321
2318
  }
2322
2319
 
2323
2320
  // src/dsm/import/figma-frames.ts
2324
- import { z as z96 } from "zod";
2321
+ import { z as z95 } from "zod";
2325
2322
  var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
2326
2323
  image: FigmaPngRenderImportModel
2327
2324
  });
2328
2325
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
2329
- children: z96.lazy(() => FigmaFileStructureNodeImportModel.array())
2326
+ children: z95.lazy(() => FigmaFileStructureNodeImportModel.array())
2330
2327
  });
2331
- var FigmaFileStructureImportModelPart = z96.object({
2332
- data: z96.object({
2328
+ var FigmaFileStructureImportModelPart = z95.object({
2329
+ data: z95.object({
2333
2330
  rootNode: FigmaFileStructureNodeImportModel,
2334
2331
  assetsInFile: FigmaFileStructureStatistics
2335
2332
  })
@@ -2340,7 +2337,7 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
2340
2337
  var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
2341
2338
  FigmaFileStructureImportModelPart.shape
2342
2339
  ).extend({
2343
- fileVersionId: z96.string()
2340
+ fileVersionId: z95.string()
2344
2341
  });
2345
2342
  function figmaFileStructureImportModelToMap(root) {
2346
2343
  const map = /* @__PURE__ */ new Map();
@@ -2354,30 +2351,30 @@ function recursiveFigmaFileStructureToMap2(node, map) {
2354
2351
  }
2355
2352
 
2356
2353
  // src/dsm/import/data-source.ts
2357
- import { z as z97 } from "zod";
2358
- var DataSourceImportModel = z97.object({
2359
- id: z97.string(),
2360
- fileName: z97.string().optional(),
2361
- thumbnailUrl: z97.string().optional()
2354
+ import { z as z96 } from "zod";
2355
+ var DataSourceImportModel = z96.object({
2356
+ id: z96.string(),
2357
+ fileName: z96.string().optional(),
2358
+ thumbnailUrl: z96.string().optional()
2362
2359
  });
2363
2360
 
2364
2361
  // src/dsm/import/support/import-model-collections.ts
2365
- var ImportModelInputCollection = z98.object({
2362
+ var ImportModelInputCollection = z97.object({
2366
2363
  source: DataSourceImportModel,
2367
- tokens: z98.array(DesignTokenImportModelInput).default([]),
2368
- components: z98.array(ComponentImportModelInput).default([]),
2369
- assets: z98.array(AssetImportModelInput).default([]),
2370
- themeUpdates: z98.array(ThemeUpdateImportModelInput).default([]),
2371
- themes: z98.array(ThemeImportModelInput).default([]),
2364
+ tokens: z97.array(DesignTokenImportModelInput).default([]),
2365
+ components: z97.array(ComponentImportModelInput).default([]),
2366
+ assets: z97.array(AssetImportModelInput).default([]),
2367
+ themeUpdates: z97.array(ThemeUpdateImportModelInput).default([]),
2368
+ themes: z97.array(ThemeImportModelInput).default([]),
2372
2369
  figmaFileStructure: FigmaFileStructureImportModelInput.optional()
2373
2370
  });
2374
- var ImportModelCollection = z98.object({
2375
- sources: z98.array(DataSourceImportModel),
2376
- tokens: z98.array(DesignTokenImportModel).default([]),
2377
- components: z98.array(ComponentImportModel).default([]),
2378
- themeUpdates: z98.array(ThemeUpdateImportModel).default([]),
2379
- themes: z98.array(ThemeImportModel).default([]),
2380
- figmaFileStructures: z98.array(FigmaFileStructureImportModel)
2371
+ var ImportModelCollection = z97.object({
2372
+ sources: z97.array(DataSourceImportModel),
2373
+ tokens: z97.array(DesignTokenImportModel).default([]),
2374
+ components: z97.array(ComponentImportModel).default([]),
2375
+ themeUpdates: z97.array(ThemeUpdateImportModel).default([]),
2376
+ themes: z97.array(ThemeImportModel).default([]),
2377
+ figmaFileStructures: z97.array(FigmaFileStructureImportModel)
2381
2378
  });
2382
2379
  function addImportModelCollections(lhs, rhs) {
2383
2380
  return {
@@ -2391,17 +2388,17 @@ function addImportModelCollections(lhs, rhs) {
2391
2388
  }
2392
2389
 
2393
2390
  // src/dsm/data-sources/import-summary.ts
2394
- var FileStructureStats = z99.object({
2391
+ var FileStructureStats = z98.object({
2395
2392
  frames: zeroNumberByDefault2(),
2396
2393
  components: zeroNumberByDefault2(),
2397
2394
  componentSets: zeroNumberByDefault2()
2398
2395
  });
2399
2396
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
2400
2397
  // Backward compatibility
2401
- z99.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2398
+ z98.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2402
2399
  );
2403
- var SourceImportSummaryByTokenType = z99.record(SourceImportSummaryByTokenTypeKey, z99.number());
2404
- var SourceImportTokenSummary = z99.object({
2400
+ var SourceImportSummaryByTokenType = z98.record(SourceImportSummaryByTokenTypeKey, z98.number());
2401
+ var SourceImportTokenSummary = z98.object({
2405
2402
  tokensCreated: zeroNumberByDefault2(),
2406
2403
  tokensUpdated: zeroNumberByDefault2(),
2407
2404
  tokensDeleted: zeroNumberByDefault2(),
@@ -2409,7 +2406,7 @@ var SourceImportTokenSummary = z99.object({
2409
2406
  tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
2410
2407
  tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
2411
2408
  });
2412
- var SourceImportComponentSummary = z99.object({
2409
+ var SourceImportComponentSummary = z98.object({
2413
2410
  componentsCreated: zeroNumberByDefault2(),
2414
2411
  componentsUpdated: zeroNumberByDefault2(),
2415
2412
  componentsDeleted: zeroNumberByDefault2(),
@@ -2417,69 +2414,69 @@ var SourceImportComponentSummary = z99.object({
2417
2414
  componentAssetsUpdated: zeroNumberByDefault2(),
2418
2415
  componentAssetsDeleted: zeroNumberByDefault2()
2419
2416
  });
2420
- var SourceImportFrameSummary = z99.object({
2417
+ var SourceImportFrameSummary = z98.object({
2421
2418
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
2422
- invalidReferencesCount: nullishToOptional(z99.number().optional())
2423
- });
2424
- var SourceImportSummary = z99.object({
2425
- sourceId: nullishToOptional(z99.string()),
2426
- brandId: nullishToOptional(z99.string()),
2427
- versionId: nullishToOptional(z99.string()),
2428
- error: nullishToOptional(z99.any()),
2429
- isFailed: z99.boolean(),
2430
- warnings: z99.array(ImportWarning).nullish().transform((v) => v ?? []),
2419
+ invalidReferencesCount: nullishToOptional(z98.number().optional())
2420
+ });
2421
+ var SourceImportSummary = z98.object({
2422
+ sourceId: nullishToOptional(z98.string()),
2423
+ brandId: nullishToOptional(z98.string()),
2424
+ versionId: nullishToOptional(z98.string()),
2425
+ error: nullishToOptional(z98.any()),
2426
+ isFailed: z98.boolean(),
2427
+ warnings: z98.array(ImportWarning).nullish().transform((v) => v ?? []),
2431
2428
  ...SourceImportTokenSummary.shape,
2432
2429
  ...SourceImportComponentSummary.shape,
2433
2430
  ...FileStructureStats.shape
2434
2431
  });
2435
2432
  function zeroNumberByDefault2() {
2436
- return z99.number().nullish().transform((v) => v ?? 0);
2433
+ return z98.number().nullish().transform((v) => v ?? 0);
2437
2434
  }
2438
2435
 
2439
2436
  // src/dsm/documentation/block-definitions/aux.ts
2440
- import { z as z100 } from "zod";
2441
- var PageBlockDefinitionAppearance = z100.object({
2442
- isBordered: z100.boolean().optional(),
2443
- hasBackground: z100.boolean().optional(),
2444
- isEditorPresentationDifferent: z100.boolean().optional(),
2445
- showBlockHeaderInEditor: z100.boolean().optional()
2437
+ import { z as z99 } from "zod";
2438
+ var PageBlockDefinitionAppearance = z99.object({
2439
+ isBordered: z99.boolean().optional(),
2440
+ hasBackground: z99.boolean().optional(),
2441
+ isEditorPresentationDifferent: z99.boolean().optional(),
2442
+ showBlockHeaderInEditor: z99.boolean().optional()
2446
2443
  });
2447
2444
 
2448
2445
  // src/dsm/documentation/block-definitions/definition.ts
2449
- import { z as z103 } from "zod";
2446
+ import { z as z102 } from "zod";
2450
2447
 
2451
2448
  // src/dsm/documentation/block-definitions/item.ts
2452
- import { z as z102 } from "zod";
2449
+ import { z as z101 } from "zod";
2453
2450
 
2454
2451
  // src/dsm/documentation/block-definitions/variant.ts
2455
- import { z as z101 } from "zod";
2456
- var PageBlockDefinitionLayoutType = z101.enum(["Column", "Row"]);
2457
- var PageBlockDefinitionLayoutGap = z101.enum(["Small", "Medium", "Large", "None"]);
2458
- var PageBlockDefinitionLayoutAlign = z101.enum(["Start", "Center", "End"]);
2459
- var PageBlockDefinitionLayoutResizing = z101.enum(["Fill", "Hug"]);
2460
- var PageBlockDefinitionLayoutBase = z101.object({
2452
+ import { z as z100 } from "zod";
2453
+ var PageBlockDefinitionLayoutType = z100.enum(["Column", "Row"]);
2454
+ var PageBlockDefinitionLayoutGap = z100.enum(["Small", "Medium", "Large", "None"]);
2455
+ var PageBlockDefinitionLayoutAlign = z100.enum(["Start", "Center", "End"]);
2456
+ var PageBlockDefinitionLayoutResizing = z100.enum(["Fill", "Hug"]);
2457
+ var PageBlockDefinitionLayoutBase = z100.object({
2461
2458
  type: PageBlockDefinitionLayoutType,
2462
2459
  gap: PageBlockDefinitionLayoutGap.optional(),
2463
2460
  columnAlign: PageBlockDefinitionLayoutAlign.optional(),
2464
2461
  columnResizing: PageBlockDefinitionLayoutResizing.optional()
2465
2462
  });
2466
2463
  var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
2467
- children: z101.lazy(() => z101.array(PageBlockDefinitionLayout.or(z101.string())))
2468
- });
2469
- var PageBlockDefinitionVariant = z101.object({
2470
- id: z101.string(),
2471
- name: z101.string(),
2472
- image: z101.string().optional(),
2473
- description: z101.string().optional(),
2474
- documentationLink: z101.string().optional(),
2464
+ children: z100.lazy(() => z100.array(PageBlockDefinitionLayout.or(z100.string())))
2465
+ });
2466
+ var PageBlockDefinitionVariant = z100.object({
2467
+ id: z100.string(),
2468
+ name: z100.string(),
2469
+ image: z100.string().optional(),
2470
+ description: z100.string().optional(),
2471
+ documentationLink: z100.string().optional(),
2475
2472
  layout: PageBlockDefinitionLayout,
2476
- maxColumns: z101.number().optional(),
2477
- defaultColumns: z101.number().optional(),
2473
+ maxColumns: z100.number().optional(),
2474
+ defaultColumns: z100.number().optional(),
2478
2475
  appearance: PageBlockDefinitionAppearance.optional()
2479
2476
  });
2480
2477
 
2481
2478
  // src/dsm/documentation/block-definitions/item.ts
2482
- var PageBlockDefinitionPropertyType = z102.enum([
2479
+ var PageBlockDefinitionPropertyType = z101.enum([
2483
2480
  "RichText",
2484
2481
  "MultiRichText",
2485
2482
  "Text",
@@ -2506,7 +2503,7 @@ var PageBlockDefinitionPropertyType = z102.enum([
2506
2503
  "Storybook",
2507
2504
  "Color"
2508
2505
  ]);
2509
- var PageBlockDefinitionRichTextPropertyStyle = z102.enum([
2506
+ var PageBlockDefinitionRichTextPropertyStyle = z101.enum([
2510
2507
  "Title1",
2511
2508
  "Title2",
2512
2509
  "Title3",
@@ -2516,8 +2513,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z102.enum([
2516
2513
  "Callout",
2517
2514
  "Default"
2518
2515
  ]);
2519
- var PageBlockDefinitionMultiRichTextPropertyStyle = z102.enum(["OL", "UL", "Default"]);
2520
- var PageBlockDefinitionTextPropertyStyle = z102.enum([
2516
+ var PageBlockDefinitionMultiRichTextPropertyStyle = z101.enum(["OL", "UL", "Default"]);
2517
+ var PageBlockDefinitionTextPropertyStyle = z101.enum([
2521
2518
  "Title1",
2522
2519
  "Title2",
2523
2520
  "Title3",
@@ -2531,15 +2528,15 @@ var PageBlockDefinitionTextPropertyStyle = z102.enum([
2531
2528
  "SmallSemibold",
2532
2529
  "Custom"
2533
2530
  ]);
2534
- var PageBlockDefinitionTextPropertyColor = z102.enum(["Neutral", "NeutralFaded"]);
2535
- var PageBlockDefinitionBooleanPropertyStyle = z102.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2536
- var PageBlockDefinitionSingleSelectPropertyStyle = z102.enum([
2531
+ var PageBlockDefinitionTextPropertyColor = z101.enum(["Neutral", "NeutralFaded"]);
2532
+ var PageBlockDefinitionBooleanPropertyStyle = z101.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2533
+ var PageBlockDefinitionSingleSelectPropertyStyle = z101.enum([
2537
2534
  "SegmentedControl",
2538
2535
  "ToggleButton",
2539
2536
  "Select",
2540
2537
  "Checkbox"
2541
2538
  ]);
2542
- var PageBlockDefinitionSingleSelectPropertyColor = z102.enum([
2539
+ var PageBlockDefinitionSingleSelectPropertyColor = z101.enum([
2543
2540
  "Green",
2544
2541
  "Red",
2545
2542
  "Yellow",
@@ -2554,71 +2551,71 @@ var PageBlockDefinitionSingleSelectPropertyColor = z102.enum([
2554
2551
  "Cyan",
2555
2552
  "Fuchsia"
2556
2553
  ]);
2557
- var PageBlockDefinitionMultiSelectPropertyStyle = z102.enum(["SegmentedControl", "Select", "Checkbox"]);
2558
- var PageBlockDefinitionImageAspectRatio = z102.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2559
- var PageBlockDefinitionImageWidth = z102.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2560
- var PageBlockDefinitionSelectChoice = z102.object({
2561
- value: z102.string(),
2562
- name: z102.string(),
2563
- icon: z102.string().optional(),
2554
+ var PageBlockDefinitionMultiSelectPropertyStyle = z101.enum(["SegmentedControl", "Select", "Checkbox"]);
2555
+ var PageBlockDefinitionImageAspectRatio = z101.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2556
+ var PageBlockDefinitionImageWidth = z101.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2557
+ var PageBlockDefinitionSelectChoice = z101.object({
2558
+ value: z101.string(),
2559
+ name: z101.string(),
2560
+ icon: z101.string().optional(),
2564
2561
  color: PageBlockDefinitionSingleSelectPropertyColor.optional()
2565
2562
  });
2566
- var PageBlockDefinitionUntypedPropertyOptions = z102.record(z102.any());
2567
- var PageBlockDefinitionRichTextOptions = z102.object({
2563
+ var PageBlockDefinitionUntypedPropertyOptions = z101.record(z101.any());
2564
+ var PageBlockDefinitionRichTextOptions = z101.object({
2568
2565
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
2569
2566
  });
2570
- var PageBlockDefinitionMutiRichTextOptions = z102.object({
2567
+ var PageBlockDefinitionMutiRichTextOptions = z101.object({
2571
2568
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
2572
2569
  });
2573
- var PageBlockDefinitionTextOptions = z102.object({
2574
- placeholder: z102.string().optional(),
2575
- defaultValue: z102.string().optional(),
2570
+ var PageBlockDefinitionTextOptions = z101.object({
2571
+ placeholder: z101.string().optional(),
2572
+ defaultValue: z101.string().optional(),
2576
2573
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
2577
2574
  color: PageBlockDefinitionTextPropertyColor.optional()
2578
2575
  });
2579
- var PageBlockDefinitionSelectOptions = z102.object({
2576
+ var PageBlockDefinitionSelectOptions = z101.object({
2580
2577
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
2581
- defaultChoice: z102.string(),
2582
- choices: z102.array(PageBlockDefinitionSelectChoice)
2578
+ defaultChoice: z101.string(),
2579
+ choices: z101.array(PageBlockDefinitionSelectChoice)
2583
2580
  });
2584
- var PageBlockDefinitionImageOptions = z102.object({
2581
+ var PageBlockDefinitionImageOptions = z101.object({
2585
2582
  width: PageBlockDefinitionImageWidth.optional(),
2586
2583
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
2587
- allowCaption: z102.boolean().optional(),
2588
- recommendation: z102.string().optional()
2584
+ allowCaption: z101.boolean().optional(),
2585
+ recommendation: z101.string().optional()
2589
2586
  });
2590
- var PageBlockDefinitionBooleanOptions = z102.object({
2591
- defaultvalue: z102.boolean().optional(),
2587
+ var PageBlockDefinitionBooleanOptions = z101.object({
2588
+ defaultvalue: z101.boolean().optional(),
2592
2589
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
2593
2590
  });
2594
- var PageBlockDefinitionNumberOptions = z102.object({
2595
- defaultValue: z102.number(),
2596
- min: z102.number().optional(),
2597
- max: z102.number().optional(),
2598
- step: z102.number().optional(),
2599
- placeholder: z102.string().optional()
2591
+ var PageBlockDefinitionNumberOptions = z101.object({
2592
+ defaultValue: z101.number(),
2593
+ min: z101.number().optional(),
2594
+ max: z101.number().optional(),
2595
+ step: z101.number().optional(),
2596
+ placeholder: z101.string().optional()
2600
2597
  });
2601
- var PageBlockDefinitionComponentOptions = z102.object({
2602
- renderLayoutAs: z102.enum(["List", "Table"]).optional(),
2603
- allowPropertySelection: z102.boolean().optional()
2598
+ var PageBlockDefinitionComponentOptions = z101.object({
2599
+ renderLayoutAs: z101.enum(["List", "Table"]).optional(),
2600
+ allowPropertySelection: z101.boolean().optional()
2604
2601
  });
2605
- var PageBlockDefinitionProperty = z102.object({
2606
- id: z102.string(),
2607
- name: z102.string(),
2602
+ var PageBlockDefinitionProperty = z101.object({
2603
+ id: z101.string(),
2604
+ name: z101.string(),
2608
2605
  type: PageBlockDefinitionPropertyType,
2609
- description: z102.string().optional(),
2606
+ description: z101.string().optional(),
2610
2607
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
2611
- variantOptions: z102.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2608
+ variantOptions: z101.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2612
2609
  });
2613
- var PageBlockDefinitionItem = z102.object({
2614
- properties: z102.array(PageBlockDefinitionProperty),
2610
+ var PageBlockDefinitionItem = z101.object({
2611
+ properties: z101.array(PageBlockDefinitionProperty),
2615
2612
  appearance: PageBlockDefinitionAppearance.optional(),
2616
- variants: z102.array(PageBlockDefinitionVariant),
2617
- defaultVariantKey: z102.string()
2613
+ variants: z101.array(PageBlockDefinitionVariant),
2614
+ defaultVariantKey: z101.string()
2618
2615
  });
2619
2616
 
2620
2617
  // src/dsm/documentation/block-definitions/definition.ts
2621
- var PageBlockCategory = z103.enum([
2618
+ var PageBlockCategory = z102.enum([
2622
2619
  "Text",
2623
2620
  "Layout",
2624
2621
  "Media",
@@ -2632,318 +2629,318 @@ var PageBlockCategory = z103.enum([
2632
2629
  "Data",
2633
2630
  "Other"
2634
2631
  ]);
2635
- var PageBlockBehaviorDataType = z103.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2636
- var PageBlockBehaviorSelectionType = z103.enum(["Entity", "Group", "EntityAndGroup"]);
2637
- var PageBlockDefinitionBehavior = z103.object({
2632
+ var PageBlockBehaviorDataType = z102.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2633
+ var PageBlockBehaviorSelectionType = z102.enum(["Entity", "Group", "EntityAndGroup"]);
2634
+ var PageBlockDefinitionBehavior = z102.object({
2638
2635
  dataType: PageBlockBehaviorDataType,
2639
- items: z103.object({
2640
- numberOfItems: z103.number(),
2641
- allowLinks: z103.boolean(),
2642
- newItemLabel: z103.string().optional()
2636
+ items: z102.object({
2637
+ numberOfItems: z102.number(),
2638
+ allowLinks: z102.boolean(),
2639
+ newItemLabel: z102.string().optional()
2643
2640
  }).optional(),
2644
- entities: z103.object({
2641
+ entities: z102.object({
2645
2642
  selectionType: PageBlockBehaviorSelectionType,
2646
- maxSelected: z103.number()
2643
+ maxSelected: z102.number()
2647
2644
  }).optional()
2648
2645
  });
2649
- var PageBlockDefinitionOnboarding = z103.object({
2650
- helpText: z103.string(),
2651
- documentationLink: z103.string().optional()
2646
+ var PageBlockDefinitionOnboarding = z102.object({
2647
+ helpText: z102.string(),
2648
+ documentationLink: z102.string().optional()
2652
2649
  });
2653
- var PageBlockDefinition = z103.object({
2654
- id: z103.string(),
2655
- name: z103.string(),
2656
- description: z103.string(),
2650
+ var PageBlockDefinition = z102.object({
2651
+ id: z102.string(),
2652
+ name: z102.string(),
2653
+ description: z102.string(),
2657
2654
  category: PageBlockCategory,
2658
- icon: z103.string().optional(),
2659
- documentationLink: z103.string().optional(),
2660
- searchKeywords: z103.array(z103.string()).optional(),
2655
+ icon: z102.string().optional(),
2656
+ documentationLink: z102.string().optional(),
2657
+ searchKeywords: z102.array(z102.string()).optional(),
2661
2658
  item: PageBlockDefinitionItem,
2662
2659
  behavior: PageBlockDefinitionBehavior,
2663
- editorOptions: z103.object({
2660
+ editorOptions: z102.object({
2664
2661
  onboarding: PageBlockDefinitionOnboarding.optional()
2665
2662
  }),
2666
2663
  appearance: PageBlockDefinitionAppearance.optional()
2667
2664
  });
2668
2665
 
2669
2666
  // src/dsm/documentation/group.ts
2670
- import { z as z104 } from "zod";
2671
- var DocumentationPageGroup = z104.object({
2672
- type: z104.literal("ElementGroup"),
2673
- childType: z104.literal("DocumentationPage"),
2674
- id: z104.string(),
2675
- persistentId: z104.string(),
2676
- shortPersistentId: z104.string(),
2677
- designSystemVersionId: z104.string(),
2678
- parentPersistentId: z104.string().nullish(),
2679
- sortOrder: z104.number(),
2680
- title: z104.string(),
2681
- slug: z104.string(),
2682
- userSlug: z104.string().nullish(),
2683
- createdAt: z104.coerce.date(),
2684
- updatedAt: z104.coerce.date()
2667
+ import { z as z103 } from "zod";
2668
+ var DocumentationPageGroup = z103.object({
2669
+ type: z103.literal("ElementGroup"),
2670
+ childType: z103.literal("DocumentationPage"),
2671
+ id: z103.string(),
2672
+ persistentId: z103.string(),
2673
+ shortPersistentId: z103.string(),
2674
+ designSystemVersionId: z103.string(),
2675
+ parentPersistentId: z103.string().nullish(),
2676
+ sortOrder: z103.number(),
2677
+ title: z103.string(),
2678
+ slug: z103.string(),
2679
+ userSlug: z103.string().nullish(),
2680
+ createdAt: z103.coerce.date(),
2681
+ updatedAt: z103.coerce.date()
2685
2682
  });
2686
2683
 
2687
2684
  // src/dsm/documentation/link-preview.ts
2688
- import { z as z105 } from "zod";
2689
- var DocumentationLinkPreview = z105.object({
2690
- title: z105.string().optional(),
2691
- description: z105.string().optional(),
2685
+ import { z as z104 } from "zod";
2686
+ var DocumentationLinkPreview = z104.object({
2687
+ title: z104.string().optional(),
2688
+ description: z104.string().optional(),
2692
2689
  thumbnail: PageBlockImageReference.optional()
2693
2690
  });
2694
2691
 
2695
2692
  // src/dsm/documentation/page-anchor.ts
2696
- import { z as z106 } from "zod";
2697
- var DocumentationPageAnchor = z106.object({
2698
- blockId: z106.string(),
2699
- level: z106.number(),
2700
- text: z106.string()
2693
+ import { z as z105 } from "zod";
2694
+ var DocumentationPageAnchor = z105.object({
2695
+ blockId: z105.string(),
2696
+ level: z105.number(),
2697
+ text: z105.string()
2701
2698
  });
2702
2699
 
2703
2700
  // src/dsm/documentation/page-content-backup.ts
2701
+ import { z as z106 } from "zod";
2702
+ var DocumentationPageContentBackup = z106.object({
2703
+ id: z106.string(),
2704
+ designSystemVersionId: z106.string(),
2705
+ createdAt: z106.coerce.date(),
2706
+ updatedAt: z106.coerce.date(),
2707
+ documentationPageId: z106.string(),
2708
+ documentationPageName: z106.string(),
2709
+ storagePath: z106.string()
2710
+ });
2711
+
2712
+ // src/dsm/documentation/page-content.ts
2704
2713
  import { z as z107 } from "zod";
2705
- var DocumentationPageContentBackup = z107.object({
2714
+ var DocumentationPageContentItem = z107.discriminatedUnion("type", [
2715
+ PageBlockEditorModelV2,
2716
+ PageSectionEditorModelV2
2717
+ ]);
2718
+ var DocumentationPageContentData = z107.object({
2719
+ items: z107.array(DocumentationPageContentItem)
2720
+ });
2721
+ var DocumentationPageContent = z107.object({
2706
2722
  id: z107.string(),
2707
2723
  designSystemVersionId: z107.string(),
2708
2724
  createdAt: z107.coerce.date(),
2709
2725
  updatedAt: z107.coerce.date(),
2710
2726
  documentationPageId: z107.string(),
2711
- documentationPageName: z107.string(),
2712
- storagePath: z107.string()
2727
+ data: DocumentationPageContentData
2713
2728
  });
2714
2729
 
2715
- // src/dsm/documentation/page-content.ts
2730
+ // src/dsm/documentation/page.ts
2716
2731
  import { z as z108 } from "zod";
2717
- var DocumentationPageContentItem = z108.discriminatedUnion("type", [
2718
- PageBlockEditorModelV2,
2719
- PageSectionEditorModelV2
2720
- ]);
2721
- var DocumentationPageContentData = z108.object({
2722
- items: z108.array(DocumentationPageContentItem)
2723
- });
2724
- var DocumentationPageContent = z108.object({
2732
+ var DocumentationPage = z108.object({
2733
+ type: z108.literal("DocumentationPage"),
2725
2734
  id: z108.string(),
2735
+ persistentId: z108.string(),
2736
+ shortPersistentId: z108.string(),
2726
2737
  designSystemVersionId: z108.string(),
2738
+ parentPersistentId: z108.string().nullish(),
2739
+ sortOrder: z108.number(),
2740
+ title: z108.string(),
2741
+ slug: z108.string(),
2742
+ userSlug: z108.string().nullish(),
2727
2743
  createdAt: z108.coerce.date(),
2728
- updatedAt: z108.coerce.date(),
2729
- documentationPageId: z108.string(),
2730
- data: DocumentationPageContentData
2744
+ updatedAt: z108.coerce.date()
2731
2745
  });
2732
2746
 
2733
- // src/dsm/documentation/page.ts
2747
+ // src/dsm/documentation/thread.ts
2734
2748
  import { z as z109 } from "zod";
2735
- var DocumentationPage = z109.object({
2736
- type: z109.literal("DocumentationPage"),
2749
+ var DocumentationComment = z109.object({
2737
2750
  id: z109.string(),
2738
- persistentId: z109.string(),
2739
- shortPersistentId: z109.string(),
2751
+ authorId: z109.string(),
2752
+ threadId: z109.string(),
2753
+ roomId: z109.string(),
2754
+ createdAt: z109.coerce.date(),
2755
+ editedAt: z109.coerce.date().optional(),
2756
+ deletedAt: z109.coerce.date().optional(),
2757
+ body: z109.string()
2758
+ });
2759
+ var DocumentationCommentThread = z109.object({
2760
+ id: z109.string(),
2761
+ roomId: z109.string(),
2762
+ pagePersistentId: z109.string(),
2763
+ brandId: z109.string(),
2740
2764
  designSystemVersionId: z109.string(),
2741
- parentPersistentId: z109.string().nullish(),
2742
- sortOrder: z109.number(),
2743
- title: z109.string(),
2744
- slug: z109.string(),
2745
- userSlug: z109.string().nullish(),
2765
+ designSystemId: z109.string(),
2766
+ blockId: z109.string().optional(),
2767
+ resolved: z109.boolean(),
2746
2768
  createdAt: z109.coerce.date(),
2747
2769
  updatedAt: z109.coerce.date()
2748
2770
  });
2749
2771
 
2750
- // src/dsm/documentation/thread.ts
2751
- import { z as z110 } from "zod";
2752
- var DocumentationComment = z110.object({
2753
- id: z110.string(),
2754
- authorId: z110.string(),
2755
- threadId: z110.string(),
2756
- roomId: z110.string(),
2757
- createdAt: z110.coerce.date(),
2758
- editedAt: z110.coerce.date().optional(),
2759
- deletedAt: z110.coerce.date().optional(),
2760
- body: z110.string()
2761
- });
2762
- var DocumentationCommentThread = z110.object({
2763
- id: z110.string(),
2764
- roomId: z110.string(),
2765
- pagePersistentId: z110.string(),
2766
- brandId: z110.string(),
2767
- designSystemVersionId: z110.string(),
2768
- designSystemId: z110.string(),
2769
- blockId: z110.string().optional(),
2770
- resolved: z110.boolean(),
2771
- createdAt: z110.coerce.date(),
2772
- updatedAt: z110.coerce.date()
2773
- });
2774
-
2775
2772
  // src/dsm/views/column.ts
2776
- import { z as z111 } from "zod";
2777
- var ElementViewBaseColumnType = z111.enum(["Name", "Description", "Value", "UpdatedAt"]);
2778
- var ElementViewColumnType = z111.union([
2779
- z111.literal("BaseProperty"),
2780
- z111.literal("PropertyDefinition"),
2781
- z111.literal("Theme")
2773
+ import { z as z110 } from "zod";
2774
+ var ElementViewBaseColumnType = z110.enum(["Name", "Description", "Value", "UpdatedAt"]);
2775
+ var ElementViewColumnType = z110.union([
2776
+ z110.literal("BaseProperty"),
2777
+ z110.literal("PropertyDefinition"),
2778
+ z110.literal("Theme")
2782
2779
  ]);
2783
- var ElementViewColumnSharedAttributes = z111.object({
2784
- id: z111.string(),
2785
- persistentId: z111.string(),
2786
- elementDataViewId: z111.string(),
2787
- sortPosition: z111.number(),
2788
- width: z111.number()
2780
+ var ElementViewColumnSharedAttributes = z110.object({
2781
+ id: z110.string(),
2782
+ persistentId: z110.string(),
2783
+ elementDataViewId: z110.string(),
2784
+ sortPosition: z110.number(),
2785
+ width: z110.number()
2789
2786
  });
2790
2787
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
2791
- type: z111.literal("BaseProperty"),
2788
+ type: z110.literal("BaseProperty"),
2792
2789
  basePropertyType: ElementViewBaseColumnType
2793
2790
  });
2794
2791
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
2795
- type: z111.literal("PropertyDefinition"),
2796
- propertyDefinitionId: z111.string()
2792
+ type: z110.literal("PropertyDefinition"),
2793
+ propertyDefinitionId: z110.string()
2797
2794
  });
2798
2795
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
2799
- type: z111.literal("Theme"),
2800
- themeId: z111.string()
2796
+ type: z110.literal("Theme"),
2797
+ themeId: z110.string()
2801
2798
  });
2802
- var ElementViewColumn = z111.discriminatedUnion("type", [
2799
+ var ElementViewColumn = z110.discriminatedUnion("type", [
2803
2800
  ElementViewBasePropertyColumn,
2804
2801
  ElementViewPropertyDefinitionColumn,
2805
2802
  ElementViewThemeColumn
2806
2803
  ]);
2807
2804
 
2808
2805
  // src/dsm/views/view.ts
2809
- import { z as z112 } from "zod";
2810
- var ElementView = z112.object({
2811
- id: z112.string(),
2812
- persistentId: z112.string(),
2813
- designSystemVersionId: z112.string(),
2814
- name: z112.string(),
2815
- description: z112.string(),
2806
+ import { z as z111 } from "zod";
2807
+ var ElementView = z111.object({
2808
+ id: z111.string(),
2809
+ persistentId: z111.string(),
2810
+ designSystemVersionId: z111.string(),
2811
+ name: z111.string(),
2812
+ description: z111.string(),
2816
2813
  targetElementType: ElementPropertyTargetType,
2817
- isDefault: z112.boolean()
2814
+ isDefault: z111.boolean()
2818
2815
  });
2819
2816
 
2820
2817
  // src/dsm/brand.ts
2821
- import { z as z113 } from "zod";
2822
- var Brand = z113.object({
2823
- id: z113.string(),
2824
- designSystemVersionId: z113.string(),
2825
- persistentId: z113.string(),
2826
- name: z113.string(),
2827
- description: z113.string()
2818
+ import { z as z112 } from "zod";
2819
+ var Brand = z112.object({
2820
+ id: z112.string(),
2821
+ designSystemVersionId: z112.string(),
2822
+ persistentId: z112.string(),
2823
+ name: z112.string(),
2824
+ description: z112.string()
2828
2825
  });
2829
2826
 
2830
2827
  // src/dsm/design-system.ts
2831
- import { z as z124 } from "zod";
2828
+ import { z as z123 } from "zod";
2832
2829
 
2833
2830
  // src/workspace/npm-registry-settings.ts
2834
- import { z as z114 } from "zod";
2835
- var NpmRegistryAuthType = z114.enum(["Basic", "Bearer", "None", "Custom"]);
2836
- var NpmRegistryType = z114.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2837
- var NpmRegistryBasicAuthConfig = z114.object({
2838
- authType: z114.literal(NpmRegistryAuthType.Enum.Basic),
2839
- username: z114.string(),
2840
- password: z114.string()
2841
- });
2842
- var NpmRegistryBearerAuthConfig = z114.object({
2843
- authType: z114.literal(NpmRegistryAuthType.Enum.Bearer),
2844
- accessToken: z114.string()
2845
- });
2846
- var NpmRegistryNoAuthConfig = z114.object({
2847
- authType: z114.literal(NpmRegistryAuthType.Enum.None)
2848
- });
2849
- var NpmRegistrCustomAuthConfig = z114.object({
2850
- authType: z114.literal(NpmRegistryAuthType.Enum.Custom),
2851
- authHeaderName: z114.string(),
2852
- authHeaderValue: z114.string()
2853
- });
2854
- var NpmRegistryAuthConfig = z114.discriminatedUnion("authType", [
2831
+ import { z as z113 } from "zod";
2832
+ var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
2833
+ var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2834
+ var NpmRegistryBasicAuthConfig = z113.object({
2835
+ authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
2836
+ username: z113.string(),
2837
+ password: z113.string()
2838
+ });
2839
+ var NpmRegistryBearerAuthConfig = z113.object({
2840
+ authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
2841
+ accessToken: z113.string()
2842
+ });
2843
+ var NpmRegistryNoAuthConfig = z113.object({
2844
+ authType: z113.literal(NpmRegistryAuthType.Enum.None)
2845
+ });
2846
+ var NpmRegistrCustomAuthConfig = z113.object({
2847
+ authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
2848
+ authHeaderName: z113.string(),
2849
+ authHeaderValue: z113.string()
2850
+ });
2851
+ var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
2855
2852
  NpmRegistryBasicAuthConfig,
2856
2853
  NpmRegistryBearerAuthConfig,
2857
2854
  NpmRegistryNoAuthConfig,
2858
2855
  NpmRegistrCustomAuthConfig
2859
2856
  ]);
2860
- var NpmRegistryConfigBase = z114.object({
2857
+ var NpmRegistryConfigBase = z113.object({
2861
2858
  registryType: NpmRegistryType,
2862
- enabledScopes: z114.array(z114.string()),
2863
- customRegistryUrl: z114.string().optional(),
2864
- bypassProxy: z114.boolean().default(false),
2865
- npmProxyRegistryConfigId: z114.string().optional(),
2866
- npmProxyVersion: z114.number().optional()
2859
+ enabledScopes: z113.array(z113.string()),
2860
+ customRegistryUrl: z113.string().optional(),
2861
+ bypassProxy: z113.boolean().default(false),
2862
+ npmProxyRegistryConfigId: z113.string().optional(),
2863
+ npmProxyVersion: z113.number().optional()
2867
2864
  });
2868
2865
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2869
2866
 
2870
2867
  // src/workspace/sso-provider.ts
2871
- import { z as z115 } from "zod";
2872
- var SsoProvider = z115.object({
2873
- providerId: z115.string(),
2874
- defaultAutoInviteValue: z115.boolean(),
2875
- autoInviteDomains: z115.record(z115.string(), z115.boolean()),
2876
- skipDocsSupernovaLogin: z115.boolean(),
2877
- areInvitesDisabled: z115.boolean(),
2878
- isTestMode: z115.boolean(),
2879
- emailDomains: z115.array(z115.string()),
2880
- metadataXml: z115.string().nullish()
2868
+ import { z as z114 } from "zod";
2869
+ var SsoProvider = z114.object({
2870
+ providerId: z114.string(),
2871
+ defaultAutoInviteValue: z114.boolean(),
2872
+ autoInviteDomains: z114.record(z114.string(), z114.boolean()),
2873
+ skipDocsSupernovaLogin: z114.boolean(),
2874
+ areInvitesDisabled: z114.boolean(),
2875
+ isTestMode: z114.boolean(),
2876
+ emailDomains: z114.array(z114.string()),
2877
+ metadataXml: z114.string().nullish()
2881
2878
  });
2882
2879
 
2883
2880
  // src/workspace/user-invite.ts
2884
- import { z as z117 } from "zod";
2881
+ import { z as z116 } from "zod";
2885
2882
 
2886
2883
  // src/workspace/workspace-role.ts
2887
- import { z as z116 } from "zod";
2888
- var WorkspaceRoleSchema = z116.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2884
+ import { z as z115 } from "zod";
2885
+ var WorkspaceRoleSchema = z115.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2889
2886
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2890
2887
 
2891
2888
  // src/workspace/user-invite.ts
2892
2889
  var MAX_MEMBERS_COUNT = 100;
2893
- var UserInvite = z117.object({
2894
- email: z117.string().email().trim().transform((value) => value.toLowerCase()),
2890
+ var UserInvite = z116.object({
2891
+ email: z116.string().email().trim().transform((value) => value.toLowerCase()),
2895
2892
  role: WorkspaceRoleSchema
2896
2893
  });
2897
- var UserInvites = z117.array(UserInvite).max(MAX_MEMBERS_COUNT);
2894
+ var UserInvites = z116.array(UserInvite).max(MAX_MEMBERS_COUNT);
2898
2895
 
2899
2896
  // src/workspace/workspace-configuration.ts
2900
- import { z as z119 } from "zod";
2897
+ import { z as z118 } from "zod";
2901
2898
 
2902
2899
  // src/workspace/workspace.ts
2903
- import { z as z118 } from "zod";
2900
+ import { z as z117 } from "zod";
2904
2901
  import IPCIDR from "ip-cidr";
2905
2902
  var isValidCIDR = (value) => {
2906
2903
  return IPCIDR.isValidAddress(value);
2907
2904
  };
2908
- var WorkspaceIpWhitelistEntry = z118.object({
2909
- isEnabled: z118.boolean(),
2910
- name: z118.string(),
2911
- range: z118.string().refine(isValidCIDR, {
2905
+ var WorkspaceIpWhitelistEntry = z117.object({
2906
+ isEnabled: z117.boolean(),
2907
+ name: z117.string(),
2908
+ range: z117.string().refine(isValidCIDR, {
2912
2909
  message: "Invalid IP CIDR"
2913
2910
  })
2914
2911
  });
2915
- var WorkspaceIpSettings = z118.object({
2916
- isEnabledForCloud: z118.boolean(),
2917
- isEnabledForDocs: z118.boolean(),
2918
- entries: z118.array(WorkspaceIpWhitelistEntry)
2912
+ var WorkspaceIpSettings = z117.object({
2913
+ isEnabledForCloud: z117.boolean(),
2914
+ isEnabledForDocs: z117.boolean(),
2915
+ entries: z117.array(WorkspaceIpWhitelistEntry)
2919
2916
  });
2920
- var WorkspaceProfile = z118.object({
2921
- name: z118.string(),
2922
- handle: z118.string(),
2923
- color: z118.string(),
2924
- avatar: nullishToOptional(z118.string()),
2917
+ var WorkspaceProfile = z117.object({
2918
+ name: z117.string(),
2919
+ handle: z117.string(),
2920
+ color: z117.string(),
2921
+ avatar: nullishToOptional(z117.string()),
2925
2922
  billingDetails: nullishToOptional(BillingDetails)
2926
2923
  });
2927
2924
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
2928
2925
  avatar: true
2929
2926
  });
2930
- var Workspace = z118.object({
2931
- id: z118.string(),
2927
+ var Workspace = z117.object({
2928
+ id: z117.string(),
2932
2929
  profile: WorkspaceProfile,
2933
2930
  subscription: Subscription,
2934
2931
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2935
2932
  sso: nullishToOptional(SsoProvider),
2936
2933
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
2937
- designSystems: z118.array(DesignSystem).nullish()
2934
+ designSystems: z117.array(DesignSystem).nullish()
2938
2935
  });
2939
- var WorkspaceWithDesignSystems = z118.object({
2936
+ var WorkspaceWithDesignSystems = z117.object({
2940
2937
  workspace: Workspace,
2941
- designSystems: z118.array(DesignSystem)
2938
+ designSystems: z117.array(DesignSystem)
2942
2939
  });
2943
2940
 
2944
2941
  // src/workspace/workspace-configuration.ts
2945
- var WorkspaceConfigurationUpdate = z119.object({
2946
- id: z119.string(),
2942
+ var WorkspaceConfigurationUpdate = z118.object({
2943
+ id: z118.string(),
2947
2944
  ipWhitelist: WorkspaceIpSettings.optional(),
2948
2945
  sso: SsoProvider.optional(),
2949
2946
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -2951,16 +2948,16 @@ var WorkspaceConfigurationUpdate = z119.object({
2951
2948
  });
2952
2949
 
2953
2950
  // src/workspace/workspace-context.ts
2954
- import { z as z120 } from "zod";
2955
- var WorkspaceContext = z120.object({
2956
- workspaceId: z120.string(),
2951
+ import { z as z119 } from "zod";
2952
+ var WorkspaceContext = z119.object({
2953
+ workspaceId: z119.string(),
2957
2954
  product: ProductCodeSchema,
2958
2955
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2959
- publicDesignSystem: z120.boolean().optional()
2956
+ publicDesignSystem: z119.boolean().optional()
2960
2957
  });
2961
2958
 
2962
2959
  // src/workspace/workspace-create.ts
2963
- import { z as z121 } from "zod";
2960
+ import { z as z120 } from "zod";
2964
2961
 
2965
2962
  // src/utils/validation.ts
2966
2963
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
@@ -2970,18 +2967,18 @@ var WORKSPACE_NAME_MIN_LENGTH = 2;
2970
2967
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2971
2968
  var HANDLE_MIN_LENGTH = 2;
2972
2969
  var HANDLE_MAX_LENGTH = 64;
2973
- var CreateWorkspaceInput = z121.object({
2974
- name: z121.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2970
+ var CreateWorkspaceInput = z120.object({
2971
+ name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2975
2972
  product: ProductCodeSchema,
2976
- priceId: z121.string(),
2977
- billingEmail: z121.string().email().optional(),
2978
- handle: z121.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2973
+ priceId: z120.string(),
2974
+ billingEmail: z120.string().email().optional(),
2975
+ handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2979
2976
  invites: UserInvites.optional(),
2980
- promoCode: z121.string().optional(),
2977
+ promoCode: z120.string().optional(),
2981
2978
  status: InternalStatusSchema.optional(),
2982
2979
  planInterval: BillingIntervalSchema.optional(),
2983
- seats: z121.number().optional(),
2984
- seatLimit: z121.number().optional(),
2980
+ seats: z120.number().optional(),
2981
+ seatLimit: z120.number().optional(),
2985
2982
  card: CardSchema.optional(),
2986
2983
  sso: SsoProvider.optional(),
2987
2984
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -2989,268 +2986,269 @@ var CreateWorkspaceInput = z121.object({
2989
2986
  });
2990
2987
 
2991
2988
  // src/workspace/workspace-invitations.ts
2992
- import { z as z122 } from "zod";
2993
- var WorkspaceInvitation = z122.object({
2994
- id: z122.string(),
2995
- email: z122.string().email(),
2996
- createdAt: z122.coerce.date(),
2997
- resentAt: z122.coerce.date().nullish(),
2998
- role: z122.nativeEnum(WorkspaceRole),
2999
- workspaceId: z122.string(),
3000
- invitedBy: z122.string()
2989
+ import { z as z121 } from "zod";
2990
+ var WorkspaceInvitation = z121.object({
2991
+ id: z121.string(),
2992
+ email: z121.string().email(),
2993
+ createdAt: z121.coerce.date(),
2994
+ resentAt: z121.coerce.date().nullish(),
2995
+ role: z121.nativeEnum(WorkspaceRole),
2996
+ workspaceId: z121.string(),
2997
+ invitedBy: z121.string()
3001
2998
  });
3002
2999
 
3003
3000
  // src/workspace/workspace-membership.ts
3004
- import { z as z123 } from "zod";
3005
- var WorkspaceMembership = z123.object({
3006
- id: z123.string(),
3007
- userId: z123.string(),
3008
- workspaceId: z123.string(),
3009
- workspaceRole: z123.nativeEnum(WorkspaceRole),
3001
+ import { z as z122 } from "zod";
3002
+ var WorkspaceMembership = z122.object({
3003
+ id: z122.string(),
3004
+ userId: z122.string(),
3005
+ workspaceId: z122.string(),
3006
+ workspaceRole: z122.nativeEnum(WorkspaceRole),
3010
3007
  notificationSettings: UserNotificationSettings
3011
3008
  });
3012
- var UpdateMembershipRolesInput = z123.object({
3013
- members: z123.array(
3014
- z123.object({
3015
- userId: z123.string(),
3016
- role: z123.nativeEnum(WorkspaceRole)
3009
+ var UpdateMembershipRolesInput = z122.object({
3010
+ members: z122.array(
3011
+ z122.object({
3012
+ userId: z122.string(),
3013
+ role: z122.nativeEnum(WorkspaceRole)
3017
3014
  })
3018
3015
  )
3019
3016
  });
3020
3017
 
3021
3018
  // src/dsm/design-system.ts
3022
- var DesignSystemSwitcher = z124.object({
3023
- isEnabled: z124.boolean(),
3024
- designSystemIds: z124.array(z124.string())
3019
+ var DesignSystemSwitcher = z123.object({
3020
+ isEnabled: z123.boolean(),
3021
+ designSystemIds: z123.array(z123.string())
3025
3022
  });
3026
- var DesignSystem = z124.object({
3027
- id: z124.string(),
3028
- workspaceId: z124.string(),
3029
- name: z124.string(),
3030
- description: z124.string(),
3031
- docExporterId: nullishToOptional(z124.string()),
3032
- docSlug: z124.string(),
3033
- docUserSlug: nullishToOptional(z124.string()),
3034
- docSlugDeprecated: z124.string(),
3035
- isPublic: z124.boolean(),
3036
- isMultibrand: z124.boolean(),
3037
- docViewUrl: nullishToOptional(z124.string()),
3038
- basePrefixes: z124.array(z124.string()),
3023
+ var DesignSystem = z123.object({
3024
+ id: z123.string(),
3025
+ workspaceId: z123.string(),
3026
+ name: z123.string(),
3027
+ description: z123.string(),
3028
+ docExporterId: nullishToOptional(z123.string()),
3029
+ docSlug: z123.string(),
3030
+ docUserSlug: nullishToOptional(z123.string()),
3031
+ docSlugDeprecated: z123.string(),
3032
+ isPublic: z123.boolean(),
3033
+ isMultibrand: z123.boolean(),
3034
+ docViewUrl: nullishToOptional(z123.string()),
3035
+ basePrefixes: z123.array(z123.string()),
3039
3036
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
3040
- createdAt: z124.coerce.date(),
3041
- updatedAt: z124.coerce.date()
3037
+ createdAt: z123.coerce.date(),
3038
+ updatedAt: z123.coerce.date()
3042
3039
  });
3043
- var DesignSystemWithWorkspace = z124.object({
3040
+ var DesignSystemWithWorkspace = z123.object({
3044
3041
  designSystem: DesignSystem,
3045
3042
  workspace: Workspace
3046
3043
  });
3047
3044
 
3048
3045
  // src/dsm/desing-system-create.ts
3049
- import { z as z125 } from "zod";
3046
+ import { z as z124 } from "zod";
3050
3047
  var DS_NAME_MIN_LENGTH = 2;
3051
3048
  var DS_NAME_MAX_LENGTH = 64;
3052
3049
  var DS_DESC_MAX_LENGTH = 64;
3053
- var DesignSystemCreateInputMetadata = z125.object({
3054
- name: z125.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
3055
- description: z125.string().max(DS_DESC_MAX_LENGTH).trim()
3050
+ var DesignSystemCreateInputMetadata = z124.object({
3051
+ name: z124.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
3052
+ description: z124.string().max(DS_DESC_MAX_LENGTH).trim()
3056
3053
  });
3057
- var DesignSystemCreateInput = z125.object({
3054
+ var DesignSystemCreateInput = z124.object({
3058
3055
  meta: DesignSystemCreateInputMetadata,
3059
- workspaceId: z125.string(),
3060
- isPublic: z125.boolean().optional(),
3061
- basePrefixes: z125.array(z125.string()).optional(),
3062
- docUserSlug: z125.string().nullish().optional(),
3063
- source: z125.array(z125.string()).optional()
3056
+ workspaceId: z124.string(),
3057
+ isPublic: z124.boolean().optional(),
3058
+ basePrefixes: z124.array(z124.string()).optional(),
3059
+ docUserSlug: z124.string().nullish().optional(),
3060
+ source: z124.array(z124.string()).optional()
3064
3061
  });
3065
3062
 
3066
3063
  // src/dsm/desing-system-update.ts
3067
- import { z as z126 } from "zod";
3064
+ import { z as z125 } from "zod";
3068
3065
  var DS_NAME_MIN_LENGTH2 = 2;
3069
3066
  var DS_NAME_MAX_LENGTH2 = 64;
3070
3067
  var DS_DESC_MAX_LENGTH2 = 64;
3071
- var DesignSystemUpdateInputMetadata = z126.object({
3072
- name: z126.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
3073
- description: z126.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
3068
+ var DesignSystemUpdateInputMetadata = z125.object({
3069
+ name: z125.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
3070
+ description: z125.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
3074
3071
  });
3075
- var DesignSystemUpdateInput = z126.object({
3072
+ var DesignSystemUpdateInput = z125.object({
3076
3073
  meta: DesignSystemUpdateInputMetadata.optional(),
3077
- workspaceId: z126.string().optional(),
3078
- isPublic: z126.boolean().optional(),
3079
- basePrefixes: z126.array(z126.string()).optional(),
3080
- docUserSlug: z126.string().nullish().optional(),
3081
- source: z126.array(z126.string()).optional(),
3082
- name: z126.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
3083
- description: z126.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
3084
- docExporterId: z126.string().optional()
3074
+ workspaceId: z125.string().optional(),
3075
+ isPublic: z125.boolean().optional(),
3076
+ basePrefixes: z125.array(z125.string()).optional(),
3077
+ docUserSlug: z125.string().nullish().optional(),
3078
+ source: z125.array(z125.string()).optional(),
3079
+ name: z125.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
3080
+ description: z125.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
3081
+ docExporterId: z125.string().optional()
3085
3082
  });
3086
3083
 
3087
3084
  // src/dsm/exporter-property-values-collection.ts
3088
- import { z as z127 } from "zod";
3089
- var ExporterPropertyImageValue = z127.object({
3085
+ import { z as z126 } from "zod";
3086
+ var ExporterPropertyImageValue = z126.object({
3090
3087
  asset: PageBlockAsset.optional(),
3091
- assetId: z127.string().optional(),
3092
- assetUrl: z127.string().optional()
3093
- });
3094
- var ExporterPropertyValue = z127.object({
3095
- key: z127.string(),
3096
- value: z127.union([
3097
- z127.number(),
3098
- z127.string(),
3099
- z127.boolean(),
3088
+ assetId: z126.string().optional(),
3089
+ assetUrl: z126.string().optional()
3090
+ });
3091
+ var ExporterPropertyValue = z126.object({
3092
+ key: z126.string(),
3093
+ value: z126.union([
3094
+ z126.number(),
3095
+ z126.string(),
3096
+ z126.boolean(),
3100
3097
  ExporterPropertyImageValue,
3101
3098
  ColorTokenData,
3102
3099
  TypographyTokenData
3103
3100
  ])
3104
3101
  });
3105
- var ExporterPropertyValuesCollection = z127.object({
3106
- id: z127.string(),
3107
- designSystemId: z127.string(),
3108
- exporterId: z127.string(),
3109
- values: z127.array(ExporterPropertyValue)
3102
+ var ExporterPropertyValuesCollection = z126.object({
3103
+ id: z126.string(),
3104
+ designSystemId: z126.string(),
3105
+ exporterId: z126.string(),
3106
+ values: z126.array(ExporterPropertyValue)
3110
3107
  });
3111
3108
 
3112
3109
  // src/dsm/published-doc-page.ts
3113
- import { z as z128 } from "zod";
3110
+ import { z as z127 } from "zod";
3114
3111
  var SHORT_PERSISTENT_ID_LENGTH = 8;
3115
3112
  function tryParseShortPersistentId(url = "/") {
3116
3113
  const lastUrlPart = url.split("/").pop() || "";
3117
3114
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
3118
3115
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
3119
3116
  }
3120
- var PublishedDocPage = z128.object({
3121
- id: z128.string(),
3122
- publishedDocId: z128.string(),
3123
- pageShortPersistentId: z128.string(),
3124
- pathV1: z128.string(),
3125
- pathV2: z128.string(),
3126
- storagePath: z128.string(),
3127
- locale: z128.string().optional(),
3128
- isPrivate: z128.boolean(),
3129
- isHidden: z128.boolean(),
3130
- createdAt: z128.coerce.date(),
3131
- updatedAt: z128.coerce.date()
3117
+ var PublishedDocPage = z127.object({
3118
+ id: z127.string(),
3119
+ publishedDocId: z127.string(),
3120
+ pageShortPersistentId: z127.string(),
3121
+ pathV1: z127.string(),
3122
+ pathV2: z127.string(),
3123
+ storagePath: z127.string(),
3124
+ locale: z127.string().optional(),
3125
+ isPrivate: z127.boolean(),
3126
+ isHidden: z127.boolean(),
3127
+ createdAt: z127.coerce.date(),
3128
+ updatedAt: z127.coerce.date()
3132
3129
  });
3133
3130
 
3134
3131
  // src/dsm/published-doc.ts
3135
- import { z as z129 } from "zod";
3132
+ import { z as z128 } from "zod";
3136
3133
  var publishedDocEnvironments = ["Live", "Preview"];
3137
- var PublishedDocEnvironment = z129.enum(publishedDocEnvironments);
3138
- var PublishedDocsChecksums = z129.record(z129.string());
3139
- var PublishedDocRoutingVersion = z129.enum(["1", "2"]);
3140
- var PublishedDoc = z129.object({
3141
- id: z129.string(),
3142
- designSystemVersionId: z129.string(),
3143
- createdAt: z129.coerce.date(),
3144
- updatedAt: z129.coerce.date(),
3145
- lastPublishedAt: z129.coerce.date(),
3146
- isDefault: z129.boolean(),
3147
- isPublic: z129.boolean(),
3134
+ var PublishedDocEnvironment = z128.enum(publishedDocEnvironments);
3135
+ var PublishedDocsChecksums = z128.record(z128.string());
3136
+ var PublishedDocRoutingVersion = z128.enum(["1", "2"]);
3137
+ var PublishedDoc = z128.object({
3138
+ id: z128.string(),
3139
+ designSystemVersionId: z128.string(),
3140
+ createdAt: z128.coerce.date(),
3141
+ updatedAt: z128.coerce.date(),
3142
+ lastPublishedAt: z128.coerce.date(),
3143
+ isDefault: z128.boolean(),
3144
+ isPublic: z128.boolean(),
3148
3145
  environment: PublishedDocEnvironment,
3149
3146
  checksums: PublishedDocsChecksums,
3150
- storagePath: z129.string(),
3151
- wasMigrated: z129.boolean(),
3147
+ storagePath: z128.string(),
3148
+ wasMigrated: z128.boolean(),
3152
3149
  routingVersion: PublishedDocRoutingVersion,
3153
- usesLocalizations: z129.boolean(),
3154
- wasPublishedWithLocalizations: z129.boolean()
3150
+ usesLocalizations: z128.boolean(),
3151
+ wasPublishedWithLocalizations: z128.boolean()
3155
3152
  });
3156
3153
 
3157
3154
  // src/dsm/version.ts
3158
- import { z as z130 } from "zod";
3159
- var DesignSystemVersion = z130.object({
3160
- id: z130.string(),
3161
- version: z130.string(),
3162
- createdAt: z130.date(),
3163
- designSystemId: z130.string(),
3164
- name: z130.string(),
3165
- comment: z130.string(),
3166
- isReadonly: z130.boolean(),
3167
- changeLog: z130.string(),
3168
- parentId: z130.string().optional()
3169
- });
3170
- var VersionCreationJobStatus = z130.enum(["Success", "InProgress", "Error"]);
3171
- var VersionCreationJob = z130.object({
3172
- id: z130.string(),
3173
- version: z130.string(),
3174
- designSystemId: z130.string(),
3175
- designSystemVersionId: nullishToOptional(z130.string()),
3155
+ import { z as z129 } from "zod";
3156
+ var DesignSystemVersion = z129.object({
3157
+ id: z129.string(),
3158
+ version: z129.string(),
3159
+ createdAt: z129.date(),
3160
+ designSystemId: z129.string(),
3161
+ name: z129.string(),
3162
+ comment: z129.string(),
3163
+ isReadonly: z129.boolean(),
3164
+ changeLog: z129.string(),
3165
+ parentId: z129.string().optional()
3166
+ });
3167
+ var VersionCreationJobStatus = z129.enum(["Success", "InProgress", "Error"]);
3168
+ var VersionCreationJob = z129.object({
3169
+ id: z129.string(),
3170
+ version: z129.string(),
3171
+ designSystemId: z129.string(),
3172
+ designSystemVersionId: nullishToOptional(z129.string()),
3176
3173
  status: VersionCreationJobStatus,
3177
- errorMessage: nullishToOptional(z130.string())
3174
+ errorMessage: nullishToOptional(z129.string())
3178
3175
  });
3179
3176
 
3180
3177
  // src/export/export-runner/export-context.ts
3181
- import { z as z131 } from "zod";
3182
- var ExportJobDocumentationContext = z131.object({
3183
- isSingleVersionDocs: z131.boolean(),
3184
- versionSlug: z131.string(),
3178
+ import { z as z130 } from "zod";
3179
+ var ExportJobDocumentationContext = z130.object({
3180
+ isSingleVersionDocs: z130.boolean(),
3181
+ versionSlug: z130.string(),
3185
3182
  environment: PublishedDocEnvironment
3186
3183
  });
3187
- var ExportJobContext = z131.object({
3188
- apiUrl: z131.string(),
3189
- accessToken: z131.string(),
3190
- designSystemId: z131.string(),
3191
- designSystemVersionId: z131.string(),
3192
- brandId: z131.string().optional(),
3193
- exporterPackageUrl: z131.string(),
3184
+ var ExportJobContext = z130.object({
3185
+ apiUrl: z130.string(),
3186
+ accessToken: z130.string(),
3187
+ designSystemId: z130.string(),
3188
+ designSystemVersionId: z130.string(),
3189
+ brandId: z130.string().optional(),
3190
+ exporterPackageUrl: z130.string(),
3194
3191
  exporterPropertyValues: ExporterPropertyValue.array(),
3195
3192
  documentation: ExportJobDocumentationContext.optional()
3196
3193
  });
3197
3194
 
3198
3195
  // src/export/export-runner/exporter-payload.ts
3199
- import { z as z132 } from "zod";
3200
- var ExporterFunctionPayload = z132.object({
3201
- exportJobId: z132.string(),
3202
- exportContextId: z132.string(),
3203
- designSystemId: z132.string()
3196
+ import { z as z131 } from "zod";
3197
+ var ExporterFunctionPayload = z131.object({
3198
+ exportJobId: z131.string(),
3199
+ exportContextId: z131.string(),
3200
+ designSystemId: z131.string(),
3201
+ workspaceId: z131.string()
3204
3202
  });
3205
3203
 
3206
3204
  // src/export/export-destinations.ts
3207
- import { z as z133 } from "zod";
3205
+ import { z as z132 } from "zod";
3208
3206
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
3209
3207
  var BITBUCKET_MAX_LENGTH = 64;
3210
- var ExporterDestinationDocs = z133.object({
3208
+ var ExporterDestinationDocs = z132.object({
3211
3209
  environment: PublishedDocEnvironment
3212
3210
  });
3213
- var ExporterDestinationS3 = z133.object({});
3214
- var ExporterDestinationGithub = z133.object({
3215
- connectionId: z133.string(),
3216
- branch: z133.string(),
3217
- relativePath: z133.string()
3218
- // // +
3219
- // userId: z.coerce.string(),
3220
- });
3221
- var ExporterDestinationAzure = z133.object({
3222
- connectionId: z133.string(),
3223
- organizationId: z133.string(),
3224
- projectId: z133.string(),
3225
- repositoryId: z133.string(),
3226
- branch: z133.string(),
3227
- relativePath: z133.string()
3211
+ var ExporterDestinationS3 = z132.object({});
3212
+ var ExporterDestinationGithub = z132.object({
3213
+ url: z132.string(),
3214
+ branch: z132.string(),
3215
+ userId: z132.string(),
3216
+ connectionId: z132.string(),
3217
+ relativePath: z132.string()
3218
+ });
3219
+ var ExporterDestinationAzure = z132.object({
3220
+ connectionId: z132.string(),
3221
+ organizationId: z132.string(),
3222
+ projectId: z132.string(),
3223
+ repositoryId: z132.string(),
3224
+ branch: z132.string(),
3225
+ relativePath: z132.string()
3228
3226
  // // +
3229
3227
  // userId: z.coerce.string(),
3230
3228
  // url: z.string(),
3231
3229
  });
3232
- var ExporterDestinationGitlab = z133.object({
3233
- connectionId: z133.string(),
3234
- projectId: z133.string(),
3235
- branch: z133.string(),
3236
- relativePath: z133.string()
3230
+ var ExporterDestinationGitlab = z132.object({
3231
+ connectionId: z132.string(),
3232
+ projectId: z132.string(),
3233
+ branch: z132.string(),
3234
+ relativePath: z132.string()
3237
3235
  // // +
3238
3236
  // userId: z.coerce.string(),
3239
3237
  // url: z.string(),
3240
3238
  });
3241
- var ExporterDestinationBitbucket = z133.object({
3242
- connectionId: z133.string(),
3243
- workspaceSlug: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3244
- projectKey: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3245
- repoSlug: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3246
- branch: z133.string(),
3247
- relativePath: z133.string()
3239
+ var ExporterDestinationBitbucket = z132.object({
3240
+ connectionId: z132.string(),
3241
+ workspaceSlug: z132.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3242
+ projectKey: z132.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3243
+ repoSlug: z132.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3244
+ branch: z132.string(),
3245
+ relativePath: z132.string()
3248
3246
  // // +
3249
3247
  // userId: z.string(),
3250
3248
  // url: z.string(),
3251
3249
  });
3252
- var ExportDestinationsMap = z133.object({
3253
- webhookUrl: z133.string().optional(),
3250
+ var ExportDestinationsMap = z132.object({
3251
+ webhookUrl: z132.string().optional(),
3254
3252
  destinationSnDocs: ExporterDestinationDocs.optional(),
3255
3253
  destinationS3: ExporterDestinationS3.optional(),
3256
3254
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -3260,30 +3258,30 @@ var ExportDestinationsMap = z133.object({
3260
3258
  });
3261
3259
 
3262
3260
  // src/export/export-jobs.ts
3263
- import { z as z134 } from "zod";
3264
- var ExportJobDestinationType = z134.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
3265
- var ExportJobStatus = z134.enum(["InProgress", "Success", "Failed", "Timeout"]);
3266
- var ExportJobLogEntryType = z134.enum(["success", "info", "warning", "error", "user"]);
3267
- var ExportJobLogEntry = z134.object({
3268
- id: z134.string().optional(),
3269
- time: z134.coerce.date(),
3261
+ import { z as z133 } from "zod";
3262
+ var ExportJobDestinationType = z133.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
3263
+ var ExportJobStatus = z133.enum(["InProgress", "Success", "Failed", "Timeout"]);
3264
+ var ExportJobLogEntryType = z133.enum(["success", "info", "warning", "error", "user"]);
3265
+ var ExportJobLogEntry = z133.object({
3266
+ id: z133.string().optional(),
3267
+ time: z133.coerce.date(),
3270
3268
  type: ExportJobLogEntryType,
3271
- message: z134.string()
3269
+ message: z133.string()
3272
3270
  });
3273
- var ExportJobPullRequestDestinationResult = z134.object({
3274
- pullRequestUrl: z134.string()
3271
+ var ExportJobPullRequestDestinationResult = z133.object({
3272
+ pullRequestUrl: z133.string()
3275
3273
  });
3276
- var ExportJobS3DestinationResult = z134.object({
3277
- bucket: z134.string(),
3278
- urlPrefix: z134.string().optional(),
3279
- path: z134.string(),
3280
- files: z134.array(z134.string())
3274
+ var ExportJobS3DestinationResult = z133.object({
3275
+ bucket: z133.string(),
3276
+ urlPrefix: z133.string().optional(),
3277
+ path: z133.string(),
3278
+ files: z133.array(z133.string())
3281
3279
  });
3282
- var ExportJobDocsDestinationResult = z134.object({
3283
- url: z134.string()
3280
+ var ExportJobDocsDestinationResult = z133.object({
3281
+ url: z133.string()
3284
3282
  });
3285
- var ExportJobResult = z134.object({
3286
- error: z134.string().optional(),
3283
+ var ExportJobResult = z133.object({
3284
+ error: z133.string().optional(),
3287
3285
  s3: ExportJobS3DestinationResult.optional(),
3288
3286
  github: ExportJobPullRequestDestinationResult.optional(),
3289
3287
  azure: ExportJobPullRequestDestinationResult.optional(),
@@ -3291,28 +3289,27 @@ var ExportJobResult = z134.object({
3291
3289
  bitbucket: ExportJobPullRequestDestinationResult.optional(),
3292
3290
  sndocs: ExportJobDocsDestinationResult.optional()
3293
3291
  });
3294
- var ExportJob = z134.object({
3295
- id: z134.string(),
3296
- createdAt: z134.date(),
3297
- finishedAt: z134.date().optional(),
3298
- designSystemId: z134.string(),
3299
- designSystemVersionId: z134.string(),
3300
- workspaceId: z134.string(),
3301
- scheduleId: z134.string().nullish(),
3302
- exporterId: z134.string(),
3303
- brandId: z134.string().optional(),
3304
- themeId: z134.string().optional(),
3305
- estimatedExecutionTime: z134.number().optional(),
3292
+ var ExportJob = z133.object({
3293
+ id: z133.string(),
3294
+ createdAt: z133.date(),
3295
+ finishedAt: z133.date().optional(),
3296
+ designSystemId: z133.string(),
3297
+ designSystemVersionId: z133.string(),
3298
+ workspaceId: z133.string(),
3299
+ scheduleId: z133.string().nullish(),
3300
+ exporterId: z133.string(),
3301
+ brandId: z133.string().optional(),
3302
+ themeId: z133.string().optional(),
3303
+ estimatedExecutionTime: z133.number().optional(),
3306
3304
  status: ExportJobStatus,
3307
3305
  result: ExportJobResult.optional(),
3308
- createdByUserId: z134.string().optional(),
3306
+ createdByUserId: z133.string().optional(),
3309
3307
  // Destinations
3310
3308
  ...ExportDestinationsMap.shape
3311
3309
  });
3312
3310
  var ExportJobFindByFilter = ExportJob.pick({
3313
3311
  exporterId: true,
3314
3312
  designSystemVersionId: true,
3315
- destinations: true,
3316
3313
  createdByUserId: true,
3317
3314
  status: true,
3318
3315
  scheduleId: true,
@@ -3320,45 +3317,45 @@ var ExportJobFindByFilter = ExportJob.pick({
3320
3317
  themeId: true,
3321
3318
  brandId: true
3322
3319
  }).extend({
3323
- destinations: z134.array(ExportJobDestinationType),
3320
+ destinations: z133.array(ExportJobDestinationType),
3324
3321
  docsEnvironment: PublishedDocEnvironment
3325
3322
  }).partial();
3326
3323
 
3327
3324
  // src/export/export-schedule.ts
3328
- import { z as z135 } from "zod";
3329
- var ExporterScheduleEventType = z135.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3330
- var ExporterSchedule = z135.object({
3331
- id: z135.string(),
3332
- name: z135.string(),
3325
+ import { z as z134 } from "zod";
3326
+ var ExporterScheduleEventType = z134.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3327
+ var ExporterSchedule = z134.object({
3328
+ id: z134.string(),
3329
+ name: z134.string(),
3333
3330
  eventType: ExporterScheduleEventType,
3334
- isEnabled: z135.boolean(),
3335
- workspaceId: z135.string(),
3336
- designSystemId: z135.string(),
3337
- exporterId: z135.string(),
3338
- brandId: z135.string().optional(),
3339
- themeId: z135.string().optional(),
3331
+ isEnabled: z134.boolean(),
3332
+ workspaceId: z134.string(),
3333
+ designSystemId: z134.string(),
3334
+ exporterId: z134.string(),
3335
+ brandId: z134.string().optional(),
3336
+ themeId: z134.string().optional(),
3340
3337
  // Destinations
3341
3338
  ...ExportDestinationsMap.shape
3342
3339
  });
3343
3340
 
3344
3341
  // src/export/exporter-workspace-membership-role.ts
3345
- import { z as z136 } from "zod";
3346
- var ExporterWorkspaceMembershipRole = z136.enum(["Owner", "OwnerArchived", "User"]);
3342
+ import { z as z135 } from "zod";
3343
+ var ExporterWorkspaceMembershipRole = z135.enum(["Owner", "OwnerArchived", "User"]);
3347
3344
 
3348
3345
  // src/export/exporter-workspace-membership.ts
3349
- import { z as z137 } from "zod";
3350
- var ExporterWorkspaceMembership = z137.object({
3351
- id: z137.string(),
3352
- workspaceId: z137.string(),
3353
- exporterId: z137.string(),
3346
+ import { z as z136 } from "zod";
3347
+ var ExporterWorkspaceMembership = z136.object({
3348
+ id: z136.string(),
3349
+ workspaceId: z136.string(),
3350
+ exporterId: z136.string(),
3354
3351
  role: ExporterWorkspaceMembershipRole
3355
3352
  });
3356
3353
 
3357
3354
  // src/export/exporter.ts
3358
- import { z as z140 } from "zod";
3355
+ import { z as z139 } from "zod";
3359
3356
 
3360
3357
  // src/export/git-providers.ts
3361
- import { z as z138 } from "zod";
3358
+ import { z as z137 } from "zod";
3362
3359
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3363
3360
  GitProviderNames2["Azure"] = "azure";
3364
3361
  GitProviderNames2["Github"] = "github";
@@ -3366,11 +3363,11 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3366
3363
  GitProviderNames2["Bitbucket"] = "bitbucket";
3367
3364
  return GitProviderNames2;
3368
3365
  })(GitProviderNames || {});
3369
- var GitProvider = z138.nativeEnum(GitProviderNames);
3366
+ var GitProvider = z137.nativeEnum(GitProviderNames);
3370
3367
 
3371
3368
  // src/export/pulsar.ts
3372
- import { z as z139 } from "zod";
3373
- var PulsarPropertyType = z139.enum([
3369
+ import { z as z138 } from "zod";
3370
+ var PulsarPropertyType = z138.enum([
3374
3371
  "string",
3375
3372
  "number",
3376
3373
  "boolean",
@@ -3383,91 +3380,91 @@ var PulsarPropertyType = z139.enum([
3383
3380
  "tokenProperties",
3384
3381
  "tokenType"
3385
3382
  ]);
3386
- var PulsarBaseProperty = z139.object({
3387
- label: z139.string(),
3388
- key: z139.string(),
3389
- description: z139.string().nullish(),
3383
+ var PulsarBaseProperty = z138.object({
3384
+ label: z138.string(),
3385
+ key: z138.string(),
3386
+ description: z138.string().nullish(),
3390
3387
  type: PulsarPropertyType,
3391
- values: z139.array(z139.string()).nullish(),
3392
- default: z139.union([z139.string(), z139.boolean(), z139.number()]).nullish(),
3388
+ values: z138.array(z138.string()).nullish(),
3389
+ default: z138.union([z138.string(), z138.boolean(), z138.number()]).nullish(),
3393
3390
  // PulsarPropertyValueType //is optional?
3394
- inputType: z139.enum(["code", "plain"]).optional(),
3391
+ inputType: z138.enum(["code", "plain"]).optional(),
3395
3392
  //is optional?
3396
- isMultiline: z139.boolean().nullish()
3393
+ isMultiline: z138.boolean().nullish()
3397
3394
  });
3398
3395
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
3399
- category: z139.string()
3396
+ category: z138.string()
3400
3397
  });
3401
- var PulsarContributionVariant = z139.object({
3402
- key: z139.string(),
3403
- name: z139.string(),
3404
- isDefault: nullishToOptional(z139.boolean()),
3405
- description: nullishToOptional(z139.string()),
3406
- thumbnailURL: nullishToOptional(z139.string())
3407
- });
3408
- var PulsarCustomBlock = z139.object({
3409
- title: nullishToOptional(z139.string()),
3410
- key: z139.string(),
3411
- category: nullishToOptional(z139.string()),
3412
- description: nullishToOptional(z139.string()),
3413
- iconURL: nullishToOptional(z139.string()),
3414
- mode: nullishToOptional(z139.enum(["array", "block"])),
3415
- properties: nullishToOptional(z139.array(PulsarBaseProperty)).transform((v) => v ?? [])
3398
+ var PulsarContributionVariant = z138.object({
3399
+ key: z138.string(),
3400
+ name: z138.string(),
3401
+ isDefault: nullishToOptional(z138.boolean()),
3402
+ description: nullishToOptional(z138.string()),
3403
+ thumbnailURL: nullishToOptional(z138.string())
3404
+ });
3405
+ var PulsarCustomBlock = z138.object({
3406
+ title: nullishToOptional(z138.string()),
3407
+ key: z138.string(),
3408
+ category: nullishToOptional(z138.string()),
3409
+ description: nullishToOptional(z138.string()),
3410
+ iconURL: nullishToOptional(z138.string()),
3411
+ mode: nullishToOptional(z138.enum(["array", "block"])),
3412
+ properties: nullishToOptional(z138.array(PulsarBaseProperty)).transform((v) => v ?? [])
3416
3413
  });
3417
3414
 
3418
3415
  // src/export/exporter.ts
3419
- var ExporterType = z140.enum(["code", "documentation"]);
3420
- var ExporterSource = z140.enum(["git", "upload"]);
3421
- var ExporterTag = z140.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3422
- var ExporterDetails = z140.object({
3423
- description: z140.string(),
3424
- version: z140.string(),
3425
- routingVersion: nullishToOptional(z140.string()),
3426
- author: nullishToOptional(z140.string()),
3427
- organization: nullishToOptional(z140.string()),
3428
- homepage: nullishToOptional(z140.string()),
3429
- readme: nullishToOptional(z140.string()),
3430
- tags: nullishToOptional(z140.array(ExporterTag)).default([]),
3431
- packageId: nullishToOptional(z140.string().max(255)),
3432
- iconURL: nullishToOptional(z140.string()),
3433
- configurationProperties: nullishToOptional(z140.array(PulsarContributionConfigurationProperty)).default([]),
3434
- customBlocks: nullishToOptional(z140.array(PulsarCustomBlock)).default([]),
3435
- blockVariants: nullishToOptional(z140.record(z140.string(), z140.array(PulsarContributionVariant))).default({}),
3436
- usesBrands: nullishToOptional(z140.boolean()).default(false),
3437
- usesThemes: nullishToOptional(z140.boolean()).default(false),
3416
+ var ExporterType = z139.enum(["code", "documentation"]);
3417
+ var ExporterSource = z139.enum(["git", "upload"]);
3418
+ var ExporterTag = z139.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3419
+ var ExporterDetails = z139.object({
3420
+ description: z139.string(),
3421
+ version: z139.string(),
3422
+ routingVersion: nullishToOptional(z139.string()),
3423
+ author: nullishToOptional(z139.string()),
3424
+ organization: nullishToOptional(z139.string()),
3425
+ homepage: nullishToOptional(z139.string()),
3426
+ readme: nullishToOptional(z139.string()),
3427
+ tags: nullishToOptional(z139.array(ExporterTag)).default([]),
3428
+ packageId: nullishToOptional(z139.string().max(255)),
3429
+ iconURL: nullishToOptional(z139.string()),
3430
+ configurationProperties: nullishToOptional(z139.array(PulsarContributionConfigurationProperty)).default([]),
3431
+ customBlocks: nullishToOptional(z139.array(PulsarCustomBlock)).default([]),
3432
+ blockVariants: nullishToOptional(z139.record(z139.string(), z139.array(PulsarContributionVariant))).default({}),
3433
+ usesBrands: nullishToOptional(z139.boolean()).default(false),
3434
+ usesThemes: nullishToOptional(z139.boolean()).default(false),
3438
3435
  source: ExporterSource,
3439
3436
  gitProvider: nullishToOptional(GitProvider),
3440
- gitUrl: nullishToOptional(z140.string()),
3441
- gitBranch: nullishToOptional(z140.string()),
3442
- gitDirectory: nullishToOptional(z140.string())
3437
+ gitUrl: nullishToOptional(z139.string()),
3438
+ gitBranch: nullishToOptional(z139.string()),
3439
+ gitDirectory: nullishToOptional(z139.string())
3443
3440
  });
3444
- var Exporter = z140.object({
3445
- id: z140.string(),
3446
- createdAt: z140.coerce.date(),
3447
- name: z140.string(),
3448
- isPrivate: z140.boolean(),
3441
+ var Exporter = z139.object({
3442
+ id: z139.string(),
3443
+ createdAt: z139.coerce.date(),
3444
+ name: z139.string(),
3445
+ isPrivate: z139.boolean(),
3449
3446
  details: ExporterDetails,
3450
3447
  exporterType: nullishToOptional(ExporterType).default("code"),
3451
- storagePath: nullishToOptional(z140.string()).default("")
3448
+ storagePath: nullishToOptional(z139.string()).default("")
3452
3449
  });
3453
3450
 
3454
3451
  // src/feature-flags/feature-flags.ts
3455
- import { z as z141 } from "zod";
3456
- var FlaggedFeature = z141.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3457
- var FeatureFlagMap = z141.record(FlaggedFeature, z141.boolean());
3458
- var FeatureFlag = z141.object({
3459
- id: z141.string(),
3452
+ import { z as z140 } from "zod";
3453
+ var FlaggedFeature = z140.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3454
+ var FeatureFlagMap = z140.record(FlaggedFeature, z140.boolean());
3455
+ var FeatureFlag = z140.object({
3456
+ id: z140.string(),
3460
3457
  feature: FlaggedFeature,
3461
- createdAt: z141.coerce.date(),
3462
- enabled: z141.boolean(),
3463
- designSystemId: z141.string().optional()
3458
+ createdAt: z140.coerce.date(),
3459
+ enabled: z140.boolean(),
3460
+ designSystemId: z140.string().optional()
3464
3461
  });
3465
3462
 
3466
3463
  // src/integrations/external-oauth-request.ts
3467
- import { z as z143 } from "zod";
3464
+ import { z as z142 } from "zod";
3468
3465
 
3469
3466
  // src/integrations/oauth-providers.ts
3470
- import { z as z142 } from "zod";
3467
+ import { z as z141 } from "zod";
3471
3468
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3472
3469
  OAuthProviderNames2["Figma"] = "figma";
3473
3470
  OAuthProviderNames2["Azure"] = "azure";
@@ -3476,75 +3473,75 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3476
3473
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
3477
3474
  return OAuthProviderNames2;
3478
3475
  })(OAuthProviderNames || {});
3479
- var OAuthProviderSchema = z142.nativeEnum(OAuthProviderNames);
3476
+ var OAuthProviderSchema = z141.nativeEnum(OAuthProviderNames);
3480
3477
  var OAuthProvider = OAuthProviderSchema.enum;
3481
3478
 
3482
3479
  // src/integrations/external-oauth-request.ts
3483
- var ExternalOAuthRequest = z143.object({
3484
- id: z143.string(),
3480
+ var ExternalOAuthRequest = z142.object({
3481
+ id: z142.string(),
3485
3482
  provider: OAuthProviderSchema,
3486
- userId: z143.string(),
3487
- state: z143.string(),
3488
- createdAt: z143.coerce.date()
3483
+ userId: z142.string(),
3484
+ state: z142.string(),
3485
+ createdAt: z142.coerce.date()
3489
3486
  });
3490
3487
 
3491
3488
  // src/integrations/git.ts
3492
- import { z as z144 } from "zod";
3493
- var GitOrganization = z144.object({
3494
- id: z144.string(),
3495
- name: z144.string(),
3496
- url: z144.string()
3489
+ import { z as z143 } from "zod";
3490
+ var GitOrganization = z143.object({
3491
+ id: z143.string(),
3492
+ name: z143.string(),
3493
+ url: z143.string()
3497
3494
  });
3498
- var GitProject = z144.object({
3499
- id: z144.string(),
3500
- name: z144.string(),
3501
- url: z144.string()
3495
+ var GitProject = z143.object({
3496
+ id: z143.string(),
3497
+ name: z143.string(),
3498
+ url: z143.string()
3502
3499
  });
3503
- var GitRepository = z144.object({
3504
- id: z144.string(),
3505
- name: z144.string(),
3506
- url: z144.string(),
3507
- defaultBranch: z144.string()
3500
+ var GitRepository = z143.object({
3501
+ id: z143.string(),
3502
+ name: z143.string(),
3503
+ url: z143.string(),
3504
+ defaultBranch: z143.string()
3508
3505
  });
3509
- var GitBranch = z144.object({
3510
- name: z144.string(),
3511
- lastCommitId: z144.string()
3506
+ var GitBranch = z143.object({
3507
+ name: z143.string(),
3508
+ lastCommitId: z143.string()
3512
3509
  });
3513
3510
 
3514
3511
  // src/integrations/integration.ts
3515
- import { z as z145 } from "zod";
3516
- var IntegrationDesignSystem = z145.object({
3517
- designSystemId: z145.string(),
3518
- brandId: z145.string(),
3519
- title: z145.string().optional(),
3520
- userId: z145.string().optional(),
3521
- date: z145.coerce.date().optional()
3522
- });
3523
- var IntegrationCredentialsType = z145.enum(["OAuth2", "PAT", "GithubApp"]);
3524
- var IntegrationCredentialsProfile = z145.object({
3525
- id: z145.string(),
3526
- email: z145.string().optional(),
3527
- handle: z145.string().optional(),
3528
- type: z145.string().optional(),
3529
- avatarUrl: z145.string().optional(),
3530
- organization: z145.string().optional(),
3531
- installation: z145.string().optional()
3532
- });
3533
- var IntegrationCredentials = z145.object({
3534
- id: z145.string(),
3512
+ import { z as z144 } from "zod";
3513
+ var IntegrationDesignSystem = z144.object({
3514
+ designSystemId: z144.string(),
3515
+ brandId: z144.string(),
3516
+ title: z144.string().optional(),
3517
+ userId: z144.string().optional(),
3518
+ date: z144.coerce.date().optional()
3519
+ });
3520
+ var IntegrationCredentialsType = z144.enum(["OAuth2", "PAT", "GithubApp"]);
3521
+ var IntegrationCredentialsProfile = z144.object({
3522
+ id: z144.string(),
3523
+ email: z144.string().optional(),
3524
+ handle: z144.string().optional(),
3525
+ type: z144.string().optional(),
3526
+ avatarUrl: z144.string().optional(),
3527
+ organization: z144.string().optional(),
3528
+ installation: z144.string().optional()
3529
+ });
3530
+ var IntegrationCredentials = z144.object({
3531
+ id: z144.string(),
3535
3532
  type: IntegrationCredentialsType,
3536
- integrationId: z145.string(),
3537
- accessToken: z145.string(),
3538
- userId: z145.string(),
3539
- createdAt: z145.coerce.date(),
3540
- refreshToken: z145.string().optional(),
3541
- tokenName: z145.string().optional(),
3542
- expiresAt: z145.coerce.date().optional(),
3533
+ integrationId: z144.string(),
3534
+ accessToken: z144.string(),
3535
+ userId: z144.string(),
3536
+ createdAt: z144.coerce.date(),
3537
+ refreshToken: z144.string().optional(),
3538
+ tokenName: z144.string().optional(),
3539
+ expiresAt: z144.coerce.date().optional(),
3543
3540
  profile: IntegrationCredentialsProfile.optional(),
3544
- customUrl: z145.string().optional(),
3541
+ customUrl: z144.string().optional(),
3545
3542
  user: UserMinified.optional()
3546
3543
  });
3547
- var ExtendedIntegrationType = z145.enum([
3544
+ var ExtendedIntegrationType = z144.enum([
3548
3545
  "Figma",
3549
3546
  "Github",
3550
3547
  "Gitlab",
@@ -3554,25 +3551,25 @@ var ExtendedIntegrationType = z145.enum([
3554
3551
  "FigmaVariablesPlugin"
3555
3552
  ]);
3556
3553
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
3557
- var Integration = z145.object({
3558
- id: z145.string(),
3559
- workspaceId: z145.string(),
3554
+ var Integration = z144.object({
3555
+ id: z144.string(),
3556
+ workspaceId: z144.string(),
3560
3557
  type: IntegrationType,
3561
- createdAt: z145.coerce.date(),
3562
- integrationCredentials: z145.array(IntegrationCredentials).optional()
3558
+ createdAt: z144.coerce.date(),
3559
+ integrationCredentials: z144.array(IntegrationCredentials).optional()
3563
3560
  });
3564
3561
  var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
3565
- var IntegrationToken = z145.object({
3566
- access_token: z145.string(),
3567
- refresh_token: z145.string().optional(),
3568
- expires_in: z145.union([z145.number().optional(), z145.string().optional()]),
3569
- token_type: z145.string().optional(),
3570
- token_name: z145.string().optional(),
3571
- token_azure_organization_name: z145.string().optional(),
3562
+ var IntegrationToken = z144.object({
3563
+ access_token: z144.string(),
3564
+ refresh_token: z144.string().optional(),
3565
+ expires_in: z144.union([z144.number().optional(), z144.string().optional()]),
3566
+ token_type: z144.string().optional(),
3567
+ token_name: z144.string().optional(),
3568
+ token_azure_organization_name: z144.string().optional(),
3572
3569
  // Azure only
3573
- token_bitbucket_username: z145.string().optional(),
3570
+ token_bitbucket_username: z144.string().optional(),
3574
3571
  // Bitbucket only
3575
- custom_url: z145.string().optional().refine((value) => {
3572
+ custom_url: z144.string().optional().refine((value) => {
3576
3573
  if (!value)
3577
3574
  return true;
3578
3575
  if (forbiddenCustomUrldomainList.some((domain) => value.includes(domain)))
@@ -3598,131 +3595,131 @@ var IntegrationToken = z145.object({
3598
3595
  });
3599
3596
 
3600
3597
  // src/integrations/oauth-token.ts
3601
- import { z as z146 } from "zod";
3602
- var IntegrationTokenSchemaOld = z146.object({
3603
- id: z146.string(),
3598
+ import { z as z145 } from "zod";
3599
+ var IntegrationTokenSchemaOld = z145.object({
3600
+ id: z145.string(),
3604
3601
  provider: OAuthProviderSchema,
3605
- scope: z146.string(),
3606
- userId: z146.string(),
3607
- accessToken: z146.string(),
3608
- refreshToken: z146.string(),
3609
- expiresAt: z146.coerce.date(),
3610
- externalUserId: z146.string().nullish()
3602
+ scope: z145.string(),
3603
+ userId: z145.string(),
3604
+ accessToken: z145.string(),
3605
+ refreshToken: z145.string(),
3606
+ expiresAt: z145.coerce.date(),
3607
+ externalUserId: z145.string().nullish()
3611
3608
  });
3612
3609
 
3613
3610
  // src/integrations/workspace-oauth-requests.ts
3614
- import { z as z147 } from "zod";
3615
- var WorkspaceOAuthRequestSchema = z147.object({
3616
- id: z147.string(),
3617
- workspaceId: z147.string(),
3611
+ import { z as z146 } from "zod";
3612
+ var WorkspaceOAuthRequestSchema = z146.object({
3613
+ id: z146.string(),
3614
+ workspaceId: z146.string(),
3618
3615
  provider: OAuthProviderSchema,
3619
- userId: z147.string(),
3620
- createdAt: z147.coerce.date()
3616
+ userId: z146.string(),
3617
+ createdAt: z146.coerce.date()
3621
3618
  });
3622
3619
 
3623
3620
  // src/liveblocks/rooms/design-system-version-room.ts
3624
- import { z as z148 } from "zod";
3621
+ import { z as z147 } from "zod";
3625
3622
  var DesignSystemVersionRoom = Entity.extend({
3626
- designSystemVersionId: z148.string(),
3627
- liveblocksId: z148.string()
3623
+ designSystemVersionId: z147.string(),
3624
+ liveblocksId: z147.string()
3628
3625
  });
3629
- var DesignSystemVersionRoomInternalSettings = z148.object({
3630
- routingVersion: z148.string()
3626
+ var DesignSystemVersionRoomInternalSettings = z147.object({
3627
+ routingVersion: z147.string()
3631
3628
  });
3632
- var DesignSystemVersionRoomInitialState = z148.object({
3633
- pages: z148.array(DocumentationPageV2),
3634
- groups: z148.array(ElementGroup),
3629
+ var DesignSystemVersionRoomInitialState = z147.object({
3630
+ pages: z147.array(DocumentationPageV2),
3631
+ groups: z147.array(ElementGroup),
3635
3632
  internalSettings: DesignSystemVersionRoomInternalSettings
3636
3633
  });
3637
- var DesignSystemVersionRoomUpdate = z148.object({
3638
- pages: z148.array(DocumentationPageV2),
3639
- groups: z148.array(ElementGroup),
3640
- deletedPageIds: z148.array(z148.string()),
3641
- deletedGroupIds: z148.array(z148.string())
3634
+ var DesignSystemVersionRoomUpdate = z147.object({
3635
+ pages: z147.array(DocumentationPageV2),
3636
+ groups: z147.array(ElementGroup),
3637
+ deletedPageIds: z147.array(z147.string()),
3638
+ deletedGroupIds: z147.array(z147.string())
3642
3639
  });
3643
3640
 
3644
3641
  // src/liveblocks/rooms/documentation-page-room.ts
3645
- import { z as z149 } from "zod";
3642
+ import { z as z148 } from "zod";
3646
3643
  var DocumentationPageRoom = Entity.extend({
3647
- designSystemVersionId: z149.string(),
3648
- documentationPageId: z149.string(),
3649
- liveblocksId: z149.string(),
3650
- isDirty: z149.boolean()
3644
+ designSystemVersionId: z148.string(),
3645
+ documentationPageId: z148.string(),
3646
+ liveblocksId: z148.string(),
3647
+ isDirty: z148.boolean()
3651
3648
  });
3652
- var DocumentationPageRoomState = z149.object({
3653
- pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3649
+ var DocumentationPageRoomState = z148.object({
3650
+ pageItems: z148.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3654
3651
  itemConfiguration: DocumentationItemConfigurationV2
3655
3652
  });
3656
- var DocumentationPageRoomRoomUpdate = z149.object({
3653
+ var DocumentationPageRoomRoomUpdate = z148.object({
3657
3654
  page: DocumentationPageV2,
3658
3655
  pageParent: ElementGroup
3659
3656
  });
3660
3657
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3661
- pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3662
- blockDefinitions: z149.array(PageBlockDefinition)
3658
+ pageItems: z148.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3659
+ blockDefinitions: z148.array(PageBlockDefinition)
3663
3660
  });
3664
3661
 
3665
3662
  // src/liveblocks/rooms/room-type.ts
3666
- import { z as z150 } from "zod";
3663
+ import { z as z149 } from "zod";
3667
3664
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3668
3665
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
3669
3666
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
3670
3667
  RoomTypeEnum2["Workspace"] = "workspace";
3671
3668
  return RoomTypeEnum2;
3672
3669
  })(RoomTypeEnum || {});
3673
- var RoomTypeSchema = z150.nativeEnum(RoomTypeEnum);
3670
+ var RoomTypeSchema = z149.nativeEnum(RoomTypeEnum);
3674
3671
  var RoomType = RoomTypeSchema.enum;
3675
3672
 
3676
3673
  // src/liveblocks/rooms/workspace-room.ts
3677
- import { z as z151 } from "zod";
3674
+ import { z as z150 } from "zod";
3678
3675
  var WorkspaceRoom = Entity.extend({
3679
- workspaceId: z151.string(),
3680
- liveblocksId: z151.string()
3676
+ workspaceId: z150.string(),
3677
+ liveblocksId: z150.string()
3681
3678
  });
3682
3679
 
3683
3680
  // src/npm/npm-package.ts
3684
- import { z as z152 } from "zod";
3685
- var AnyRecord = z152.record(z152.any());
3681
+ import { z as z151 } from "zod";
3682
+ var AnyRecord = z151.record(z151.any());
3686
3683
  var NpmPackageVersionDist = AnyRecord.and(
3687
- z152.object({
3688
- tarball: z152.string()
3684
+ z151.object({
3685
+ tarball: z151.string()
3689
3686
  })
3690
3687
  );
3691
3688
  var NpmPackageVersion = AnyRecord.and(
3692
- z152.object({
3689
+ z151.object({
3693
3690
  dist: NpmPackageVersionDist
3694
3691
  })
3695
3692
  );
3696
3693
  var NpmPackage = AnyRecord.and(
3697
- z152.object({
3698
- _id: z152.string(),
3699
- name: z152.string(),
3694
+ z151.object({
3695
+ _id: z151.string(),
3696
+ name: z151.string(),
3700
3697
  // e.g. "latest": "1.2.3"
3701
- "dist-tags": z152.record(z152.string(), z152.string()),
3698
+ "dist-tags": z151.record(z151.string(), z151.string()),
3702
3699
  // "1.2.3": {...}
3703
- versions: z152.record(NpmPackageVersion)
3700
+ versions: z151.record(NpmPackageVersion)
3704
3701
  })
3705
3702
  );
3706
3703
 
3707
3704
  // src/npm/npm-proxy-token-payload.ts
3708
- import { z as z153 } from "zod";
3709
- var NpmProxyTokenPayload = z153.object({
3710
- npmProxyRegistryConfigId: z153.string()
3705
+ import { z as z152 } from "zod";
3706
+ var NpmProxyTokenPayload = z152.object({
3707
+ npmProxyRegistryConfigId: z152.string()
3711
3708
  });
3712
3709
 
3713
3710
  // src/tokens/personal-access-token.ts
3714
- import { z as z154 } from "zod";
3715
- var PersonalAccessToken = z154.object({
3716
- id: z154.string(),
3717
- userId: z154.string(),
3718
- workspaceId: z154.string().optional(),
3711
+ import { z as z153 } from "zod";
3712
+ var PersonalAccessToken = z153.object({
3713
+ id: z153.string(),
3714
+ userId: z153.string(),
3715
+ workspaceId: z153.string().optional(),
3719
3716
  workspaceRole: WorkspaceRoleSchema.optional(),
3720
- name: z154.string(),
3721
- hidden: z154.boolean(),
3722
- token: z154.string(),
3723
- scope: z154.string().optional(),
3724
- createdAt: z154.coerce.date(),
3725
- expireAt: z154.coerce.date().optional()
3717
+ name: z153.string(),
3718
+ hidden: z153.boolean(),
3719
+ token: z153.string(),
3720
+ scope: z153.string().optional(),
3721
+ createdAt: z153.coerce.date(),
3722
+ expireAt: z153.coerce.date().optional()
3726
3723
  });
3727
3724
 
3728
3725
  // src/utils/errors.ts
@@ -3780,7 +3777,7 @@ var SupernovaException = class _SupernovaException extends Error {
3780
3777
  return new _SupernovaException("MissingExporterPermission", message);
3781
3778
  }
3782
3779
  static missingIntegration(message) {
3783
- return new _SupernovaException("AccessDenied", message);
3780
+ return new _SupernovaException("MissingIntegration", message);
3784
3781
  }
3785
3782
  static noAccess(message) {
3786
3783
  return new _SupernovaException("NoAccess", message);
@@ -3860,26 +3857,26 @@ async function sleep(ms) {
3860
3857
  }
3861
3858
 
3862
3859
  // src/utils/content-loader-instruction.ts
3863
- import { z as z155 } from "zod";
3864
- var ContentLoadInstruction = z155.object({
3865
- from: z155.string(),
3866
- to: z155.string(),
3867
- authorizationHeaderKvsId: z155.string().optional(),
3868
- timeout: z155.number().optional()
3869
- });
3870
- var ContentLoaderPayload = z155.object({
3871
- type: z155.literal("Single"),
3860
+ import { z as z154 } from "zod";
3861
+ var ContentLoadInstruction = z154.object({
3862
+ from: z154.string(),
3863
+ to: z154.string(),
3864
+ authorizationHeaderKvsId: z154.string().optional(),
3865
+ timeout: z154.number().optional()
3866
+ });
3867
+ var ContentLoaderPayload = z154.object({
3868
+ type: z154.literal("Single"),
3872
3869
  instruction: ContentLoadInstruction
3873
3870
  }).or(
3874
- z155.object({
3875
- type: z155.literal("Multiple"),
3876
- loadingChunkSize: z155.number().optional(),
3877
- instructions: z155.array(ContentLoadInstruction)
3871
+ z154.object({
3872
+ type: z154.literal("Multiple"),
3873
+ loadingChunkSize: z154.number().optional(),
3874
+ instructions: z154.array(ContentLoadInstruction)
3878
3875
  })
3879
3876
  ).or(
3880
- z155.object({
3881
- type: z155.literal("S3"),
3882
- location: z155.string()
3877
+ z154.object({
3878
+ type: z154.literal("S3"),
3879
+ location: z154.string()
3883
3880
  })
3884
3881
  );
3885
3882