@supernova-studio/client 0.36.0 → 0.36.2

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
@@ -1,3 +1,34 @@
1
+ // src/api/conversion/design-systems/brand.ts
2
+ function designSystemBrandToDto(brand) {
3
+ return {
4
+ id: brand.id,
5
+ designSystemVersionId: brand.designSystemVersionId,
6
+ persistentId: brand.persistentId,
7
+ meta: {
8
+ name: brand.name,
9
+ description: brand.description
10
+ }
11
+ };
12
+ }
13
+
14
+ // src/api/conversion/design-systems/elements/properties/property-definition.ts
15
+ function elementPropertyDefinitionToDto(elementProperyDefinition) {
16
+ return {
17
+ id: elementProperyDefinition.id,
18
+ designSystemVersionId: elementProperyDefinition.designSystemVersionId,
19
+ meta: {
20
+ name: elementProperyDefinition.name,
21
+ description: elementProperyDefinition.description
22
+ },
23
+ persistentId: elementProperyDefinition.persistentId,
24
+ type: elementProperyDefinition.type,
25
+ targetElementType: elementProperyDefinition.targetElementType,
26
+ codeName: elementProperyDefinition.codeName,
27
+ options: elementProperyDefinition.options,
28
+ linkElementType: elementProperyDefinition.linkElementType
29
+ };
30
+ }
31
+
1
32
  // ../model/dist/index.mjs
2
33
  import { z } from "zod";
3
34
  import { z as z2 } from "zod";
@@ -101,40 +132,44 @@ import { z as z97 } from "zod";
101
132
  import { z as z98 } from "zod";
102
133
  import { z as z99 } from "zod";
103
134
  import { z as z100 } from "zod";
104
- import { z as z110 } from "zod";
105
135
  import { z as z101 } from "zod";
106
136
  import { z as z102 } from "zod";
107
- import { z as z104 } from "zod";
108
137
  import { z as z103 } from "zod";
109
- import { z as z106 } from "zod";
138
+ import { z as z113 } from "zod";
139
+ import { z as z104 } from "zod";
110
140
  import { z as z105 } from "zod";
111
- import IPCIDR from "ip-cidr";
112
141
  import { z as z107 } from "zod";
113
- import { z as z108 } from "zod";
142
+ import { z as z106 } from "zod";
114
143
  import { z as z109 } from "zod";
144
+ import { z as z108 } from "zod";
145
+ import IPCIDR from "ip-cidr";
146
+ import { z as z110 } from "zod";
115
147
  import { z as z111 } from "zod";
116
148
  import { z as z112 } from "zod";
117
- import { z as z113 } from "zod";
118
149
  import { z as z114 } from "zod";
119
150
  import { z as z115 } from "zod";
120
151
  import { z as z116 } from "zod";
121
- import { z as z119 } from "zod";
122
152
  import { z as z117 } from "zod";
123
153
  import { z as z118 } from "zod";
154
+ import { z as z119 } from "zod";
124
155
  import { z as z120 } from "zod";
125
- import { z as z125 } from "zod";
156
+ import { z as z123 } from "zod";
126
157
  import { z as z121 } from "zod";
127
158
  import { z as z122 } from "zod";
128
- import { z as z123 } from "zod";
129
159
  import { z as z124 } from "zod";
160
+ import { z as z129 } from "zod";
161
+ import { z as z125 } from "zod";
130
162
  import { z as z126 } from "zod";
131
- import { z as z128 } from "zod";
132
163
  import { z as z127 } from "zod";
133
- import { z as z129 } from "zod";
164
+ import { z as z128 } from "zod";
134
165
  import { z as z130 } from "zod";
135
- import { z as z131 } from "zod";
136
166
  import { z as z132 } from "zod";
167
+ import { z as z131 } from "zod";
137
168
  import { z as z133 } from "zod";
169
+ import { z as z134 } from "zod";
170
+ import { z as z135 } from "zod";
171
+ import { z as z136 } from "zod";
172
+ import { z as z137 } from "zod";
138
173
  import slugifyImplementation from "@sindresorhus/slugify";
139
174
  var PluginOAuthRequestSchema = z.object({
140
175
  id: z.string(),
@@ -290,7 +325,7 @@ var PriceSchema = z9.object({
290
325
  stripeProductFeatures: z9.array(z9.string()).optional(),
291
326
  stripeProductAdditionalFeatures: z9.array(z9.string()).optional()
292
327
  });
293
- var ProductCodeSchema = z10.enum(["free", "team", "team_test", "company", "enterprise"]);
328
+ var ProductCodeSchema = z10.enum(["free", "team", "company", "enterprise"]);
294
329
  var ProductCode = ProductCodeSchema.enum;
295
330
  var StripeSubscriptionStatusSchema = z11.enum([
296
331
  "trialing",
@@ -619,7 +654,7 @@ var DesignElement = ShallowDesignElement.extend({
619
654
  var HierarchicalElements = DesignTokenType.or(
620
655
  z29.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
621
656
  );
622
- var ElementPropertyType = z30.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
657
+ var ElementPropertyTypeSchema = z30.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
623
658
  var ElementPropertyTargetType = z30.enum(["Token", "Component", "DocumentationPage"]);
624
659
  var ElementPropertyLinkType = z30.enum(["FigmaComponent", "DocumentationPage"]);
625
660
  var ColorTokenInlineData = z30.object({
@@ -637,11 +672,12 @@ var ElementPropertyDefinition = z30.object({
637
672
  name: z30.string(),
638
673
  codeName: z30.string(),
639
674
  description: z30.string(),
640
- type: ElementPropertyType,
675
+ type: ElementPropertyTypeSchema,
641
676
  targetElementType: ElementPropertyTargetType,
642
- options: z30.array(ElementPropertyDefinitionOption).nullish(),
643
- linkElementType: ElementPropertyLinkType.nullish()
677
+ options: z30.array(ElementPropertyDefinitionOption).optional(),
678
+ linkElementType: ElementPropertyLinkType.optional()
644
679
  });
680
+ var ElementPropertyType = ElementPropertyTypeSchema.enum;
645
681
  var ElementPropertyValue = z31.object({
646
682
  id: z31.string(),
647
683
  designSystemVersionId: z31.string(),
@@ -651,7 +687,7 @@ var ElementPropertyValue = z31.object({
651
687
  numberValue: z31.number().nullish(),
652
688
  booleanValue: z31.boolean().nullish(),
653
689
  referenceValue: z31.string().nullish(),
654
- referenceValuePreview: z31.string().nullish()
690
+ referenceValuePreview: z31.string().optional()
655
691
  });
656
692
  var Point2D = z32.object({
657
693
  x: z32.number(),
@@ -2212,166 +2248,212 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2212
2248
  })(RoomTypeEnum || {});
2213
2249
  var RoomTypeSchema = z100.nativeEnum(RoomTypeEnum);
2214
2250
  var RoomType = RoomTypeSchema.enum;
2215
- var NpmRegistryAuthType = z101.enum(["Basic", "Bearer", "None", "Custom"]);
2216
- var NpmRegistryType = z101.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2217
- var NpmRegistryBasicAuthConfig = z101.object({
2218
- authType: z101.literal(NpmRegistryAuthType.Enum.Basic),
2219
- username: z101.string(),
2220
- password: z101.string()
2221
- });
2222
- var NpmRegistryBearerAuthConfig = z101.object({
2223
- authType: z101.literal(NpmRegistryAuthType.Enum.Bearer),
2224
- accessToken: z101.string()
2225
- });
2226
- var NpmRegistryNoAuthConfig = z101.object({
2227
- authType: z101.literal(NpmRegistryAuthType.Enum.None)
2228
- });
2229
- var NpmRegistrCustomAuthConfig = z101.object({
2230
- authType: z101.literal(NpmRegistryAuthType.Enum.Custom),
2231
- authHeaderName: z101.string(),
2232
- authHeaderValue: z101.string()
2233
- });
2234
- var NpmRegistryAuthConfig = z101.discriminatedUnion("authType", [
2251
+ var ElementViewBaseColumnType = z101.enum(["Name", "Description", "Value", "UpdatedAt"]);
2252
+ var ElementViewColumnType = z101.union([
2253
+ z101.literal("BaseProperty"),
2254
+ z101.literal("PropertyDefinition"),
2255
+ z101.literal("Theme")
2256
+ ]);
2257
+ var ElementViewColumnSharedAttributes = z101.object({
2258
+ id: z101.string(),
2259
+ persistentId: z101.string(),
2260
+ elementDataViewId: z101.string(),
2261
+ sortPosition: z101.number(),
2262
+ width: z101.number()
2263
+ });
2264
+ var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
2265
+ type: z101.literal("BaseProperty"),
2266
+ basePropertyType: ElementViewBaseColumnType
2267
+ });
2268
+ var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
2269
+ type: z101.literal("PropertyDefinition"),
2270
+ propertyDefinitionId: z101.string()
2271
+ });
2272
+ var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
2273
+ type: z101.literal("Theme"),
2274
+ themeId: z101.string()
2275
+ });
2276
+ var ElementViewColumn = z101.discriminatedUnion("type", [
2277
+ ElementViewBasePropertyColumn,
2278
+ ElementViewPropertyDefinitionColumn,
2279
+ ElementViewThemeColumn
2280
+ ]);
2281
+ var ElementView = z102.object({
2282
+ id: z102.string(),
2283
+ persistentId: z102.string(),
2284
+ designSystemVersionId: z102.string(),
2285
+ name: z102.string(),
2286
+ description: z102.string(),
2287
+ targetElementType: ElementPropertyTargetType,
2288
+ isDefault: z102.boolean()
2289
+ });
2290
+ var Brand = z103.object({
2291
+ id: z103.string(),
2292
+ designSystemVersionId: z103.string(),
2293
+ persistentId: z103.string(),
2294
+ name: z103.string(),
2295
+ description: z103.string()
2296
+ });
2297
+ var NpmRegistryAuthType = z104.enum(["Basic", "Bearer", "None", "Custom"]);
2298
+ var NpmRegistryType = z104.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2299
+ var NpmRegistryBasicAuthConfig = z104.object({
2300
+ authType: z104.literal(NpmRegistryAuthType.Enum.Basic),
2301
+ username: z104.string(),
2302
+ password: z104.string()
2303
+ });
2304
+ var NpmRegistryBearerAuthConfig = z104.object({
2305
+ authType: z104.literal(NpmRegistryAuthType.Enum.Bearer),
2306
+ accessToken: z104.string()
2307
+ });
2308
+ var NpmRegistryNoAuthConfig = z104.object({
2309
+ authType: z104.literal(NpmRegistryAuthType.Enum.None)
2310
+ });
2311
+ var NpmRegistrCustomAuthConfig = z104.object({
2312
+ authType: z104.literal(NpmRegistryAuthType.Enum.Custom),
2313
+ authHeaderName: z104.string(),
2314
+ authHeaderValue: z104.string()
2315
+ });
2316
+ var NpmRegistryAuthConfig = z104.discriminatedUnion("authType", [
2235
2317
  NpmRegistryBasicAuthConfig,
2236
2318
  NpmRegistryBearerAuthConfig,
2237
2319
  NpmRegistryNoAuthConfig,
2238
2320
  NpmRegistrCustomAuthConfig
2239
2321
  ]);
2240
- var NpmRegistryConfigBase = z101.object({
2322
+ var NpmRegistryConfigBase = z104.object({
2241
2323
  registryType: NpmRegistryType,
2242
- enabledScopes: z101.array(z101.string()),
2243
- customRegistryUrl: z101.string().optional(),
2244
- bypassProxy: z101.boolean().default(false),
2245
- npmProxyRegistryConfigId: z101.string().optional(),
2246
- npmProxyVersion: z101.number().optional()
2324
+ enabledScopes: z104.array(z104.string()),
2325
+ customRegistryUrl: z104.string().optional(),
2326
+ bypassProxy: z104.boolean().default(false),
2327
+ npmProxyRegistryConfigId: z104.string().optional(),
2328
+ npmProxyVersion: z104.number().optional()
2247
2329
  });
2248
2330
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2249
- var SsoProvider = z102.object({
2250
- providerId: z102.string(),
2251
- defaultAutoInviteValue: z102.boolean(),
2252
- autoInviteDomains: z102.record(z102.string(), z102.boolean()),
2253
- skipDocsSupernovaLogin: z102.boolean(),
2254
- areInvitesDisabled: z102.boolean(),
2255
- isTestMode: z102.boolean(),
2256
- emailDomains: z102.array(z102.string()),
2257
- metadataXml: z102.string().nullish()
2258
- });
2259
- var WorkspaceRoleSchema = z103.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2331
+ var SsoProvider = z105.object({
2332
+ providerId: z105.string(),
2333
+ defaultAutoInviteValue: z105.boolean(),
2334
+ autoInviteDomains: z105.record(z105.string(), z105.boolean()),
2335
+ skipDocsSupernovaLogin: z105.boolean(),
2336
+ areInvitesDisabled: z105.boolean(),
2337
+ isTestMode: z105.boolean(),
2338
+ emailDomains: z105.array(z105.string()),
2339
+ metadataXml: z105.string().nullish()
2340
+ });
2341
+ var WorkspaceRoleSchema = z106.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2260
2342
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2261
2343
  var MAX_MEMBERS_COUNT = 100;
2262
- var UserInvite = z104.object({
2263
- email: z104.string().email().trim().transform((value) => value.toLowerCase()),
2344
+ var UserInvite = z107.object({
2345
+ email: z107.string().email().trim().transform((value) => value.toLowerCase()),
2264
2346
  role: WorkspaceRoleSchema
2265
2347
  });
2266
- var UserInvites = z104.array(UserInvite).max(MAX_MEMBERS_COUNT);
2348
+ var UserInvites = z107.array(UserInvite).max(MAX_MEMBERS_COUNT);
2267
2349
  var isValidCIDR = (value) => {
2268
2350
  return IPCIDR.isValidAddress(value);
2269
2351
  };
2270
- var WorkspaceIpWhitelistEntry = z105.object({
2271
- isEnabled: z105.boolean(),
2272
- name: z105.string(),
2273
- range: z105.string().refine(isValidCIDR, {
2352
+ var WorkspaceIpWhitelistEntry = z108.object({
2353
+ isEnabled: z108.boolean(),
2354
+ name: z108.string(),
2355
+ range: z108.string().refine(isValidCIDR, {
2274
2356
  message: "Invalid IP CIDR"
2275
2357
  })
2276
2358
  });
2277
- var WorkspaceIpSettings = z105.object({
2278
- isEnabledForCloud: z105.boolean(),
2279
- isEnabledForDocs: z105.boolean(),
2280
- entries: z105.array(WorkspaceIpWhitelistEntry)
2359
+ var WorkspaceIpSettings = z108.object({
2360
+ isEnabledForCloud: z108.boolean(),
2361
+ isEnabledForDocs: z108.boolean(),
2362
+ entries: z108.array(WorkspaceIpWhitelistEntry)
2281
2363
  });
2282
- var WorkspaceProfile = z105.object({
2283
- name: z105.string(),
2284
- handle: z105.string(),
2285
- color: z105.string(),
2286
- avatar: nullishToOptional(z105.string()),
2364
+ var WorkspaceProfile = z108.object({
2365
+ name: z108.string(),
2366
+ handle: z108.string(),
2367
+ color: z108.string(),
2368
+ avatar: nullishToOptional(z108.string()),
2287
2369
  billingDetails: nullishToOptional(BillingDetails)
2288
2370
  });
2289
- var Workspace = z105.object({
2290
- id: z105.string(),
2371
+ var Workspace = z108.object({
2372
+ id: z108.string(),
2291
2373
  profile: WorkspaceProfile,
2292
2374
  subscription: Subscription,
2293
2375
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2294
2376
  sso: nullishToOptional(SsoProvider),
2295
2377
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
2296
- designSystems: z105.array(DesignSystem).nullish()
2378
+ designSystems: z108.array(DesignSystem).nullish()
2297
2379
  });
2298
- var WorkspaceWithDesignSystems = z105.object({
2380
+ var WorkspaceWithDesignSystems = z108.object({
2299
2381
  workspace: Workspace,
2300
- designSystems: z105.array(DesignSystem)
2382
+ designSystems: z108.array(DesignSystem)
2301
2383
  });
2302
- var WorkspaceContext = z106.object({
2303
- workspaceId: z106.string(),
2384
+ var WorkspaceContext = z109.object({
2385
+ workspaceId: z109.string(),
2304
2386
  product: ProductCodeSchema,
2305
2387
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2306
- publicDesignSystem: z106.boolean().optional()
2388
+ publicDesignSystem: z109.boolean().optional()
2307
2389
  });
2308
2390
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
2309
2391
  var WORKSPACE_NAME_MIN_LENGTH = 2;
2310
2392
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2311
2393
  var HANDLE_MIN_LENGTH = 2;
2312
2394
  var HANDLE_MAX_LENGTH = 64;
2313
- var CreateWorkspaceInput = z107.object({
2314
- name: z107.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2395
+ var CreateWorkspaceInput = z110.object({
2396
+ name: z110.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2315
2397
  product: ProductCodeSchema,
2316
- priceId: z107.string(),
2317
- billingEmail: z107.string().email().optional(),
2318
- handle: z107.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2398
+ priceId: z110.string(),
2399
+ billingEmail: z110.string().email().optional(),
2400
+ handle: z110.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2319
2401
  invites: UserInvites.optional(),
2320
- promoCode: z107.string().optional(),
2402
+ promoCode: z110.string().optional(),
2321
2403
  status: InternalStatusSchema.optional(),
2322
2404
  planInterval: BillingIntervalSchema.optional(),
2323
- seats: z107.number().optional(),
2324
- seatLimit: z107.number().optional(),
2405
+ seats: z110.number().optional(),
2406
+ seatLimit: z110.number().optional(),
2325
2407
  card: CardSchema.optional(),
2326
2408
  sso: SsoProvider.optional(),
2327
2409
  npmRegistrySettings: NpmRegistryConfig.optional(),
2328
2410
  ipWhitelist: WorkspaceIpSettings.optional()
2329
2411
  });
2330
- var WorkspaceInvitation = z108.object({
2331
- id: z108.string(),
2332
- email: z108.string().email(),
2333
- createdAt: z108.coerce.date(),
2334
- resentAt: z108.coerce.date().nullish(),
2335
- role: z108.nativeEnum(WorkspaceRole),
2336
- workspaceId: z108.string(),
2337
- invitedBy: z108.string()
2338
- });
2339
- var WorkspaceMembership = z109.object({
2340
- id: z109.string(),
2341
- userId: z109.string(),
2342
- workspaceId: z109.string(),
2343
- workspaceRole: z109.nativeEnum(WorkspaceRole)
2344
- });
2345
- var UpdateMembershipRolesInput = z109.object({
2346
- members: z109.array(
2347
- z109.object({
2348
- userId: z109.string(),
2349
- role: z109.nativeEnum(WorkspaceRole)
2412
+ var WorkspaceInvitation = z111.object({
2413
+ id: z111.string(),
2414
+ email: z111.string().email(),
2415
+ createdAt: z111.coerce.date(),
2416
+ resentAt: z111.coerce.date().nullish(),
2417
+ role: z111.nativeEnum(WorkspaceRole),
2418
+ workspaceId: z111.string(),
2419
+ invitedBy: z111.string()
2420
+ });
2421
+ var WorkspaceMembership = z112.object({
2422
+ id: z112.string(),
2423
+ userId: z112.string(),
2424
+ workspaceId: z112.string(),
2425
+ workspaceRole: z112.nativeEnum(WorkspaceRole)
2426
+ });
2427
+ var UpdateMembershipRolesInput = z112.object({
2428
+ members: z112.array(
2429
+ z112.object({
2430
+ userId: z112.string(),
2431
+ role: z112.nativeEnum(WorkspaceRole)
2350
2432
  })
2351
2433
  )
2352
2434
  });
2353
- var DesignSystemSwitcher = z110.object({
2354
- isEnabled: z110.boolean(),
2355
- designSystemIds: z110.array(z110.string())
2356
- });
2357
- var DesignSystem = z110.object({
2358
- id: z110.string(),
2359
- workspaceId: z110.string(),
2360
- name: z110.string(),
2361
- description: z110.string(),
2362
- docExporterId: nullishToOptional(z110.string()),
2363
- docSlug: z110.string(),
2364
- docUserSlug: nullishToOptional(z110.string()),
2365
- docSlugDeprecated: z110.string(),
2366
- isPublic: z110.boolean(),
2367
- isMultibrand: z110.boolean(),
2368
- docViewUrl: nullishToOptional(z110.string()),
2369
- basePrefixes: z110.array(z110.string()),
2435
+ var DesignSystemSwitcher = z113.object({
2436
+ isEnabled: z113.boolean(),
2437
+ designSystemIds: z113.array(z113.string())
2438
+ });
2439
+ var DesignSystem = z113.object({
2440
+ id: z113.string(),
2441
+ workspaceId: z113.string(),
2442
+ name: z113.string(),
2443
+ description: z113.string(),
2444
+ docExporterId: nullishToOptional(z113.string()),
2445
+ docSlug: z113.string(),
2446
+ docUserSlug: nullishToOptional(z113.string()),
2447
+ docSlugDeprecated: z113.string(),
2448
+ isPublic: z113.boolean(),
2449
+ isMultibrand: z113.boolean(),
2450
+ docViewUrl: nullishToOptional(z113.string()),
2451
+ basePrefixes: z113.array(z113.string()),
2370
2452
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2371
- createdAt: z110.coerce.date(),
2372
- updatedAt: z110.coerce.date()
2453
+ createdAt: z113.coerce.date(),
2454
+ updatedAt: z113.coerce.date()
2373
2455
  });
2374
- var DesignSystemWithWorkspace = z110.object({
2456
+ var DesignSystemWithWorkspace = z113.object({
2375
2457
  designSystem: DesignSystem,
2376
2458
  workspace: Workspace
2377
2459
  });
@@ -2379,81 +2461,92 @@ var DS_NAME_MIN_LENGTH = 2;
2379
2461
  var DS_NAME_MAX_LENGTH = 64;
2380
2462
  var DS_DESC_MIN_LENGTH = 2;
2381
2463
  var DS_DESC_MAX_LENGTH = 64;
2382
- var DesignSystemCreateInputMetadata = z111.object({
2383
- name: z111.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2384
- description: z111.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2464
+ var DesignSystemCreateInputMetadata = z114.object({
2465
+ name: z114.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2466
+ description: z114.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2385
2467
  });
2386
- var DesignSystemCreateInput = z111.object({
2468
+ var DesignSystemCreateInput = z114.object({
2387
2469
  meta: DesignSystemCreateInputMetadata,
2388
- workspaceId: z111.string(),
2389
- isPublic: z111.boolean().optional(),
2390
- basePrefixes: z111.array(z111.string()).optional(),
2391
- docUserSlug: z111.string().nullish().optional(),
2392
- source: z111.array(z111.string()).optional()
2470
+ workspaceId: z114.string(),
2471
+ isPublic: z114.boolean().optional(),
2472
+ basePrefixes: z114.array(z114.string()).optional(),
2473
+ docUserSlug: z114.string().nullish().optional(),
2474
+ source: z114.array(z114.string()).optional()
2393
2475
  });
2394
2476
  var DS_NAME_MIN_LENGTH2 = 2;
2395
2477
  var DS_NAME_MAX_LENGTH2 = 64;
2396
2478
  var DS_DESC_MIN_LENGTH2 = 2;
2397
2479
  var DS_DESC_MAX_LENGTH2 = 64;
2398
- var DesignSystemUpdateInputMetadata = z112.object({
2399
- name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2400
- description: z112.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2480
+ var DesignSystemUpdateInputMetadata = z115.object({
2481
+ name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2482
+ description: z115.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2401
2483
  });
2402
- var DesignSystemUpdateInput = z112.object({
2484
+ var DesignSystemUpdateInput = z115.object({
2403
2485
  meta: DesignSystemUpdateInputMetadata.optional(),
2404
- workspaceId: z112.string().optional(),
2405
- isPublic: z112.boolean().optional(),
2406
- basePrefixes: z112.array(z112.string()).optional(),
2407
- docUserSlug: z112.string().nullish().optional(),
2408
- source: z112.array(z112.string()).optional(),
2409
- name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2410
- description: z112.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2411
- docExporterId: z112.string().optional()
2486
+ workspaceId: z115.string().optional(),
2487
+ isPublic: z115.boolean().optional(),
2488
+ basePrefixes: z115.array(z115.string()).optional(),
2489
+ docUserSlug: z115.string().nullish().optional(),
2490
+ source: z115.array(z115.string()).optional(),
2491
+ name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2492
+ description: z115.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2493
+ docExporterId: z115.string().optional()
2412
2494
  });
2413
2495
  var publishedDocEnvironments = ["Live", "Preview"];
2414
- var PublishedDocEnvironment = z113.enum(publishedDocEnvironments);
2415
- var PublishedDocsChecksums = z113.record(z113.string());
2416
- var PublishedDocRoutingVersion = z113.enum(["1", "2"]);
2417
- var PublishedDoc = z113.object({
2418
- id: z113.string(),
2419
- designSystemVersionId: z113.string(),
2420
- createdAt: z113.coerce.date(),
2421
- updatedAt: z113.coerce.date(),
2422
- lastPublishedAt: z113.coerce.date(),
2423
- isDefault: z113.boolean(),
2424
- isPublic: z113.boolean(),
2496
+ var PublishedDocEnvironment = z116.enum(publishedDocEnvironments);
2497
+ var PublishedDocsChecksums = z116.record(z116.string());
2498
+ var PublishedDocRoutingVersion = z116.enum(["1", "2"]);
2499
+ var PublishedDoc = z116.object({
2500
+ id: z116.string(),
2501
+ designSystemVersionId: z116.string(),
2502
+ createdAt: z116.coerce.date(),
2503
+ updatedAt: z116.coerce.date(),
2504
+ lastPublishedAt: z116.coerce.date(),
2505
+ isDefault: z116.boolean(),
2506
+ isPublic: z116.boolean(),
2425
2507
  environment: PublishedDocEnvironment,
2426
2508
  checksums: PublishedDocsChecksums,
2427
- storagePath: z113.string(),
2428
- wasMigrated: z113.boolean(),
2509
+ storagePath: z116.string(),
2510
+ wasMigrated: z116.boolean(),
2429
2511
  routingVersion: PublishedDocRoutingVersion,
2430
- usesLocalizations: z113.boolean(),
2431
- wasPublishedWithLocalizations: z113.boolean()
2432
- });
2433
- var ExporterJobDestination = z114.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2434
- var ExporterJobStatus = z114.enum(["InProgress", "Success", "Failed", "Timeout"]);
2435
- var ExporterJobLogEntryType = z114.enum(["success", "info", "warning", "error", "user"]);
2436
- var ExporterJobLogEntry = z114.object({
2437
- id: z114.string().optional(),
2438
- time: z114.coerce.date(),
2512
+ usesLocalizations: z116.boolean(),
2513
+ wasPublishedWithLocalizations: z116.boolean()
2514
+ });
2515
+ var DesignSystemVersion = z117.object({
2516
+ id: z117.string(),
2517
+ version: z117.string(),
2518
+ createdAt: z117.date(),
2519
+ designSystemId: z117.string(),
2520
+ name: z117.string(),
2521
+ comment: z117.string(),
2522
+ isReadonly: z117.boolean(),
2523
+ changeLog: z117.string(),
2524
+ parentId: z117.string().optional()
2525
+ });
2526
+ var ExporterJobDestination = z118.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2527
+ var ExporterJobStatus = z118.enum(["InProgress", "Success", "Failed", "Timeout"]);
2528
+ var ExporterJobLogEntryType = z118.enum(["success", "info", "warning", "error", "user"]);
2529
+ var ExporterJobLogEntry = z118.object({
2530
+ id: z118.string().optional(),
2531
+ time: z118.coerce.date(),
2439
2532
  type: ExporterJobLogEntryType,
2440
- message: z114.string()
2533
+ message: z118.string()
2441
2534
  });
2442
- var ExporterJobResultPullRequestDestination = z114.object({
2443
- pullRequestUrl: z114.string()
2535
+ var ExporterJobResultPullRequestDestination = z118.object({
2536
+ pullRequestUrl: z118.string()
2444
2537
  });
2445
- var ExporterJobResultS3Destination = z114.object({
2446
- bucket: z114.string(),
2447
- urlPrefix: z114.string().optional(),
2448
- path: z114.string(),
2449
- files: z114.array(z114.string())
2538
+ var ExporterJobResultS3Destination = z118.object({
2539
+ bucket: z118.string(),
2540
+ urlPrefix: z118.string().optional(),
2541
+ path: z118.string(),
2542
+ files: z118.array(z118.string())
2450
2543
  });
2451
- var ExporterJobResultDocsDestination = z114.object({
2452
- url: z114.string()
2544
+ var ExporterJobResultDocsDestination = z118.object({
2545
+ url: z118.string()
2453
2546
  });
2454
- var ExporterJobResult = z114.object({
2455
- error: z114.string().optional(),
2456
- logs: z114.array(ExporterJobLogEntry).optional(),
2547
+ var ExporterJobResult = z118.object({
2548
+ error: z118.string().optional(),
2549
+ logs: z118.array(ExporterJobLogEntry).optional(),
2457
2550
  s3: ExporterJobResultS3Destination.optional(),
2458
2551
  github: ExporterJobResultPullRequestDestination.optional(),
2459
2552
  azure: ExporterJobResultPullRequestDestination.optional(),
@@ -2461,68 +2554,68 @@ var ExporterJobResult = z114.object({
2461
2554
  bitbucket: ExporterJobResultPullRequestDestination.optional(),
2462
2555
  sndocs: ExporterJobResultDocsDestination.optional()
2463
2556
  });
2464
- var ExporterDestinationSnDocs = z114.object({
2557
+ var ExporterDestinationSnDocs = z118.object({
2465
2558
  environment: PublishedDocEnvironment
2466
2559
  });
2467
- var ExporterDestinationS3 = z114.object({});
2468
- var ExporterDestinationGithub = z114.object({
2469
- connectionId: z114.string(),
2470
- url: z114.string(),
2471
- branch: z114.string(),
2472
- relativePath: z114.string(),
2560
+ var ExporterDestinationS3 = z118.object({});
2561
+ var ExporterDestinationGithub = z118.object({
2562
+ connectionId: z118.string(),
2563
+ url: z118.string(),
2564
+ branch: z118.string(),
2565
+ relativePath: z118.string(),
2473
2566
  // +
2474
- userId: z114.coerce.string()
2475
- });
2476
- var ExporterDestinationAzure = z114.object({
2477
- connectionId: z114.string(),
2478
- organizationId: z114.string(),
2479
- projectId: z114.string(),
2480
- repositoryId: z114.string(),
2481
- branch: z114.string(),
2482
- relativePath: z114.string(),
2567
+ userId: z118.coerce.string()
2568
+ });
2569
+ var ExporterDestinationAzure = z118.object({
2570
+ connectionId: z118.string(),
2571
+ organizationId: z118.string(),
2572
+ projectId: z118.string(),
2573
+ repositoryId: z118.string(),
2574
+ branch: z118.string(),
2575
+ relativePath: z118.string(),
2483
2576
  // +
2484
- userId: z114.coerce.string(),
2485
- url: z114.string()
2486
- });
2487
- var ExporterDestinationGitlab = z114.object({
2488
- connectionId: z114.string(),
2489
- projectId: z114.string(),
2490
- branch: z114.string(),
2491
- relativePath: z114.string(),
2577
+ userId: z118.coerce.string(),
2578
+ url: z118.string()
2579
+ });
2580
+ var ExporterDestinationGitlab = z118.object({
2581
+ connectionId: z118.string(),
2582
+ projectId: z118.string(),
2583
+ branch: z118.string(),
2584
+ relativePath: z118.string(),
2492
2585
  // +
2493
- userId: z114.coerce.string(),
2494
- url: z114.string()
2586
+ userId: z118.coerce.string(),
2587
+ url: z118.string()
2495
2588
  });
2496
2589
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2497
2590
  var BITBUCKET_MAX_LENGTH = 64;
2498
- var ExporterDestinationBitbucket = z114.object({
2499
- connectionId: z114.string(),
2500
- workspaceSlug: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2501
- projectKey: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2502
- repoSlug: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2503
- branch: z114.string(),
2504
- relativePath: z114.string(),
2591
+ var ExporterDestinationBitbucket = z118.object({
2592
+ connectionId: z118.string(),
2593
+ workspaceSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2594
+ projectKey: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2595
+ repoSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2596
+ branch: z118.string(),
2597
+ relativePath: z118.string(),
2505
2598
  // +
2506
- userId: z114.coerce.string(),
2507
- url: z114.string()
2508
- });
2509
- var ExporterJob = z114.object({
2510
- id: z114.coerce.string(),
2511
- createdAt: z114.coerce.date(),
2512
- finishedAt: z114.coerce.date().optional(),
2513
- designSystemId: z114.coerce.string(),
2514
- designSystemVersionId: z114.coerce.string(),
2515
- workspaceId: z114.coerce.string(),
2516
- scheduleId: z114.coerce.string().nullish(),
2517
- exporterId: z114.coerce.string(),
2518
- brandId: z114.coerce.string().optional(),
2519
- themeId: z114.coerce.string().optional(),
2520
- estimatedExecutionTime: z114.number().optional(),
2599
+ userId: z118.coerce.string(),
2600
+ url: z118.string()
2601
+ });
2602
+ var ExporterJob = z118.object({
2603
+ id: z118.coerce.string(),
2604
+ createdAt: z118.coerce.date(),
2605
+ finishedAt: z118.coerce.date().optional(),
2606
+ designSystemId: z118.coerce.string(),
2607
+ designSystemVersionId: z118.coerce.string(),
2608
+ workspaceId: z118.coerce.string(),
2609
+ scheduleId: z118.coerce.string().nullish(),
2610
+ exporterId: z118.coerce.string(),
2611
+ brandId: z118.coerce.string().optional(),
2612
+ themeId: z118.coerce.string().optional(),
2613
+ estimatedExecutionTime: z118.number().optional(),
2521
2614
  status: ExporterJobStatus,
2522
2615
  result: ExporterJobResult.optional(),
2523
- createdByUserId: z114.string().optional(),
2616
+ createdByUserId: z118.string().optional(),
2524
2617
  // CodegenDestinationsModel
2525
- webhookUrl: z114.string().optional(),
2618
+ webhookUrl: z118.string().optional(),
2526
2619
  destinationSnDocs: ExporterDestinationSnDocs.optional(),
2527
2620
  destinationS3: ExporterDestinationS3.optional(),
2528
2621
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -2541,14 +2634,14 @@ var ExporterJobFindByFilter = ExporterJob.pick({
2541
2634
  themeId: true,
2542
2635
  brandId: true
2543
2636
  }).extend({
2544
- destinations: z114.array(ExporterJobDestination),
2637
+ destinations: z118.array(ExporterJobDestination),
2545
2638
  docsEnvironment: PublishedDocEnvironment
2546
2639
  }).partial();
2547
- var ExporterWorkspaceMembershipRole = z115.enum(["Owner", "OwnerArchived", "User"]);
2548
- var ExporterWorkspaceMembership = z116.object({
2549
- id: z116.string(),
2550
- workspaceId: z116.string(),
2551
- exporterId: z116.string(),
2640
+ var ExporterWorkspaceMembershipRole = z119.enum(["Owner", "OwnerArchived", "User"]);
2641
+ var ExporterWorkspaceMembership = z120.object({
2642
+ id: z120.string(),
2643
+ workspaceId: z120.string(),
2644
+ exporterId: z120.string(),
2552
2645
  role: ExporterWorkspaceMembershipRole
2553
2646
  });
2554
2647
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
@@ -2558,8 +2651,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2558
2651
  GitProviderNames2["Bitbucket"] = "bitbucket";
2559
2652
  return GitProviderNames2;
2560
2653
  })(GitProviderNames || {});
2561
- var GitProvider = z117.nativeEnum(GitProviderNames);
2562
- var PulsarPropertyType = z118.enum([
2654
+ var GitProvider = z121.nativeEnum(GitProviderNames);
2655
+ var PulsarPropertyType = z122.enum([
2563
2656
  "string",
2564
2657
  "number",
2565
2658
  "boolean",
@@ -2572,164 +2665,164 @@ var PulsarPropertyType = z118.enum([
2572
2665
  "tokenProperties",
2573
2666
  "tokenType"
2574
2667
  ]);
2575
- var PulsarBaseProperty = z118.object({
2576
- label: z118.string(),
2577
- key: z118.string(),
2578
- description: z118.string().nullish(),
2668
+ var PulsarBaseProperty = z122.object({
2669
+ label: z122.string(),
2670
+ key: z122.string(),
2671
+ description: z122.string().nullish(),
2579
2672
  type: PulsarPropertyType,
2580
- values: z118.array(z118.string()).nullish(),
2581
- default: z118.union([z118.string(), z118.boolean(), z118.number()]).nullish(),
2673
+ values: z122.array(z122.string()).nullish(),
2674
+ default: z122.union([z122.string(), z122.boolean(), z122.number()]).nullish(),
2582
2675
  // PulsarPropertyValueType //is optional?
2583
- inputType: z118.enum(["code", "plain"]).optional(),
2676
+ inputType: z122.enum(["code", "plain"]).optional(),
2584
2677
  //is optional?
2585
- isMultiline: z118.boolean().nullish()
2678
+ isMultiline: z122.boolean().nullish()
2586
2679
  });
2587
2680
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
2588
- category: z118.string()
2589
- });
2590
- var PulsarContributionVariant = z118.object({
2591
- key: z118.string(),
2592
- name: z118.string(),
2593
- isDefault: nullishToOptional(z118.boolean()),
2594
- description: nullishToOptional(z118.string()),
2595
- thumbnailURL: nullishToOptional(z118.string())
2596
- });
2597
- var PulsarCustomBlock = z118.object({
2598
- title: nullishToOptional(z118.string()),
2599
- key: z118.string(),
2600
- category: nullishToOptional(z118.string()),
2601
- description: nullishToOptional(z118.string()),
2602
- iconURL: nullishToOptional(z118.string()),
2603
- mode: nullishToOptional(z118.enum(["array", "block"])),
2604
- properties: nullishToOptional(z118.array(PulsarBaseProperty)).transform((v) => v ?? [])
2605
- });
2606
- var ExporterType = z119.enum(["code", "documentation"]);
2607
- var ExporterSource = z119.enum(["git", "upload"]);
2608
- var ExporterTag = z119.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2609
- var ExporterDetails = z119.object({
2610
- description: z119.string(),
2611
- version: z119.string(),
2612
- routingVersion: nullishToOptional(z119.string()),
2613
- author: nullishToOptional(z119.string()),
2614
- organization: nullishToOptional(z119.string()),
2615
- homepage: nullishToOptional(z119.string()),
2616
- readme: nullishToOptional(z119.string()),
2617
- tags: nullishToOptional(z119.array(ExporterTag)).default([]),
2618
- packageId: nullishToOptional(z119.string().max(255)),
2619
- iconURL: nullishToOptional(z119.string()),
2620
- configurationProperties: nullishToOptional(z119.array(PulsarContributionConfigurationProperty)).default([]),
2621
- customBlocks: nullishToOptional(z119.array(PulsarCustomBlock)).default([]),
2622
- blockVariants: nullishToOptional(z119.record(z119.string(), z119.array(PulsarContributionVariant))).default({}),
2623
- usesBrands: nullishToOptional(z119.boolean()).default(false),
2624
- usesThemes: nullishToOptional(z119.boolean()).default(false),
2681
+ category: z122.string()
2682
+ });
2683
+ var PulsarContributionVariant = z122.object({
2684
+ key: z122.string(),
2685
+ name: z122.string(),
2686
+ isDefault: nullishToOptional(z122.boolean()),
2687
+ description: nullishToOptional(z122.string()),
2688
+ thumbnailURL: nullishToOptional(z122.string())
2689
+ });
2690
+ var PulsarCustomBlock = z122.object({
2691
+ title: nullishToOptional(z122.string()),
2692
+ key: z122.string(),
2693
+ category: nullishToOptional(z122.string()),
2694
+ description: nullishToOptional(z122.string()),
2695
+ iconURL: nullishToOptional(z122.string()),
2696
+ mode: nullishToOptional(z122.enum(["array", "block"])),
2697
+ properties: nullishToOptional(z122.array(PulsarBaseProperty)).transform((v) => v ?? [])
2698
+ });
2699
+ var ExporterType = z123.enum(["code", "documentation"]);
2700
+ var ExporterSource = z123.enum(["git", "upload"]);
2701
+ var ExporterTag = z123.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2702
+ var ExporterDetails = z123.object({
2703
+ description: z123.string(),
2704
+ version: z123.string(),
2705
+ routingVersion: nullishToOptional(z123.string()),
2706
+ author: nullishToOptional(z123.string()),
2707
+ organization: nullishToOptional(z123.string()),
2708
+ homepage: nullishToOptional(z123.string()),
2709
+ readme: nullishToOptional(z123.string()),
2710
+ tags: nullishToOptional(z123.array(ExporterTag)).default([]),
2711
+ packageId: nullishToOptional(z123.string().max(255)),
2712
+ iconURL: nullishToOptional(z123.string()),
2713
+ configurationProperties: nullishToOptional(z123.array(PulsarContributionConfigurationProperty)).default([]),
2714
+ customBlocks: nullishToOptional(z123.array(PulsarCustomBlock)).default([]),
2715
+ blockVariants: nullishToOptional(z123.record(z123.string(), z123.array(PulsarContributionVariant))).default({}),
2716
+ usesBrands: nullishToOptional(z123.boolean()).default(false),
2717
+ usesThemes: nullishToOptional(z123.boolean()).default(false),
2625
2718
  source: ExporterSource,
2626
2719
  gitProvider: nullishToOptional(GitProvider),
2627
- gitUrl: nullishToOptional(z119.string()),
2628
- gitBranch: nullishToOptional(z119.string()),
2629
- gitDirectory: nullishToOptional(z119.string())
2630
- });
2631
- var Exporter = z119.object({
2632
- id: z119.string(),
2633
- createdAt: z119.coerce.date(),
2634
- name: z119.string(),
2635
- isPrivate: z119.boolean(),
2720
+ gitUrl: nullishToOptional(z123.string()),
2721
+ gitBranch: nullishToOptional(z123.string()),
2722
+ gitDirectory: nullishToOptional(z123.string())
2723
+ });
2724
+ var Exporter = z123.object({
2725
+ id: z123.string(),
2726
+ createdAt: z123.coerce.date(),
2727
+ name: z123.string(),
2728
+ isPrivate: z123.boolean(),
2636
2729
  details: ExporterDetails,
2637
2730
  exporterType: nullishToOptional(ExporterType).default("code"),
2638
- storagePath: nullishToOptional(z119.string()).default("")
2731
+ storagePath: nullishToOptional(z123.string()).default("")
2639
2732
  });
2640
- var CustomDomain = z120.object({
2641
- id: z120.string(),
2642
- designSystemId: z120.string(),
2643
- state: z120.string(),
2644
- supernovaDomain: z120.string(),
2645
- customerDomain: z120.string().nullish(),
2646
- error: z120.string().nullish(),
2647
- errorCode: z120.string().nullish()
2648
- });
2649
- var IntegrationAuthType = z121.union([z121.literal("OAuth2"), z121.literal("PAT")]);
2650
- var ExternalServiceType = z121.union([
2651
- z121.literal("figma"),
2652
- z121.literal("github"),
2653
- z121.literal("azure"),
2654
- z121.literal("gitlab"),
2655
- z121.literal("bitbucket")
2733
+ var CustomDomain = z124.object({
2734
+ id: z124.string(),
2735
+ designSystemId: z124.string(),
2736
+ state: z124.string(),
2737
+ supernovaDomain: z124.string(),
2738
+ customerDomain: z124.string().nullish(),
2739
+ error: z124.string().nullish(),
2740
+ errorCode: z124.string().nullish()
2741
+ });
2742
+ var IntegrationAuthType = z125.union([z125.literal("OAuth2"), z125.literal("PAT")]);
2743
+ var ExternalServiceType = z125.union([
2744
+ z125.literal("figma"),
2745
+ z125.literal("github"),
2746
+ z125.literal("azure"),
2747
+ z125.literal("gitlab"),
2748
+ z125.literal("bitbucket")
2656
2749
  ]);
2657
- var IntegrationUserInfo = z121.object({
2658
- id: z121.string(),
2659
- handle: z121.string().optional(),
2660
- avatarUrl: z121.string().optional(),
2661
- email: z121.string().optional(),
2750
+ var IntegrationUserInfo = z125.object({
2751
+ id: z125.string(),
2752
+ handle: z125.string().optional(),
2753
+ avatarUrl: z125.string().optional(),
2754
+ email: z125.string().optional(),
2662
2755
  authType: IntegrationAuthType.optional(),
2663
- customUrl: z121.string().optional()
2756
+ customUrl: z125.string().optional()
2664
2757
  });
2665
- var UserLinkedIntegrations = z121.object({
2758
+ var UserLinkedIntegrations = z125.object({
2666
2759
  figma: IntegrationUserInfo.optional(),
2667
2760
  github: IntegrationUserInfo.array().optional(),
2668
2761
  azure: IntegrationUserInfo.array().optional(),
2669
2762
  gitlab: IntegrationUserInfo.array().optional(),
2670
2763
  bitbucket: IntegrationUserInfo.array().optional()
2671
2764
  });
2672
- var UserIdentity = z122.object({
2673
- id: z122.string(),
2674
- userId: z122.string()
2675
- });
2676
- var UserOnboardingDepartment = z123.enum(["Design", "Engineering", "Brand", "Other"]);
2677
- var UserOnboardingJobLevel = z123.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2678
- var UserOnboarding = z123.object({
2679
- companyName: z123.string().optional(),
2680
- numberOfPeopleInOrg: z123.string().optional(),
2681
- numberOfPeopleInDesignTeam: z123.string().optional(),
2765
+ var UserIdentity = z126.object({
2766
+ id: z126.string(),
2767
+ userId: z126.string()
2768
+ });
2769
+ var UserOnboardingDepartment = z127.enum(["Design", "Engineering", "Brand", "Other"]);
2770
+ var UserOnboardingJobLevel = z127.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2771
+ var UserOnboarding = z127.object({
2772
+ companyName: z127.string().optional(),
2773
+ numberOfPeopleInOrg: z127.string().optional(),
2774
+ numberOfPeopleInDesignTeam: z127.string().optional(),
2682
2775
  department: UserOnboardingDepartment.optional(),
2683
- jobTitle: z123.string().optional(),
2684
- phase: z123.string().optional(),
2776
+ jobTitle: z127.string().optional(),
2777
+ phase: z127.string().optional(),
2685
2778
  jobLevel: UserOnboardingJobLevel.optional()
2686
2779
  });
2687
- var UserProfile = z123.object({
2688
- name: z123.string(),
2689
- avatar: z123.string().optional(),
2690
- nickname: z123.string().optional(),
2780
+ var UserProfile = z127.object({
2781
+ name: z127.string(),
2782
+ avatar: z127.string().optional(),
2783
+ nickname: z127.string().optional(),
2691
2784
  onboarding: UserOnboarding.optional()
2692
2785
  });
2693
- var User = z124.object({
2694
- id: z124.string(),
2695
- email: z124.string(),
2696
- emailVerified: z124.boolean(),
2697
- createdAt: z124.coerce.date(),
2698
- trialExpiresAt: z124.coerce.date().optional(),
2786
+ var User = z128.object({
2787
+ id: z128.string(),
2788
+ email: z128.string(),
2789
+ emailVerified: z128.boolean(),
2790
+ createdAt: z128.coerce.date(),
2791
+ trialExpiresAt: z128.coerce.date().optional(),
2699
2792
  profile: UserProfile,
2700
2793
  linkedIntegrations: UserLinkedIntegrations.optional(),
2701
- loggedOutAt: z124.coerce.date().optional(),
2702
- isProtected: z124.boolean()
2794
+ loggedOutAt: z128.coerce.date().optional(),
2795
+ isProtected: z128.boolean()
2703
2796
  });
2704
- var NpmProxyToken = z125.object({
2705
- access: z125.string(),
2706
- expiresAt: z125.number()
2797
+ var NpmProxyToken = z129.object({
2798
+ access: z129.string(),
2799
+ expiresAt: z129.number()
2707
2800
  });
2708
- var SessionData = z125.object({
2709
- returnToUrl: z125.string().optional(),
2801
+ var SessionData = z129.object({
2802
+ returnToUrl: z129.string().optional(),
2710
2803
  npmProxyToken: NpmProxyToken.optional()
2711
2804
  });
2712
- var Session = z125.object({
2713
- id: z125.string(),
2714
- expiresAt: z125.coerce.date(),
2715
- userId: z125.string().nullable(),
2805
+ var Session = z129.object({
2806
+ id: z129.string(),
2807
+ expiresAt: z129.coerce.date(),
2808
+ userId: z129.string().nullable(),
2716
2809
  data: SessionData
2717
2810
  });
2718
- var AuthTokens = z125.object({
2719
- access: z125.string(),
2720
- refresh: z125.string()
2811
+ var AuthTokens = z129.object({
2812
+ access: z129.string(),
2813
+ refresh: z129.string()
2721
2814
  });
2722
- var UserSession = z125.object({
2815
+ var UserSession = z129.object({
2723
2816
  session: Session,
2724
2817
  user: User.nullable()
2725
2818
  });
2726
- var FlaggedFeature = z126.enum(["FigmaImporterV2"]);
2727
- var FeatureFlagMap = z126.record(FlaggedFeature, z126.boolean());
2728
- var FeatureFlag = z126.object({
2729
- id: z126.string(),
2819
+ var FlaggedFeature = z130.enum(["FigmaImporterV2"]);
2820
+ var FeatureFlagMap = z130.record(FlaggedFeature, z130.boolean());
2821
+ var FeatureFlag = z130.object({
2822
+ id: z130.string(),
2730
2823
  feature: FlaggedFeature,
2731
- createdAt: z126.coerce.date(),
2732
- enabled: z126.boolean()
2824
+ createdAt: z130.coerce.date(),
2825
+ enabled: z130.boolean()
2733
2826
  });
2734
2827
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2735
2828
  OAuthProviderNames2["Figma"] = "figma";
@@ -2739,60 +2832,60 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2739
2832
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
2740
2833
  return OAuthProviderNames2;
2741
2834
  })(OAuthProviderNames || {});
2742
- var OAuthProviderSchema = z127.nativeEnum(OAuthProviderNames);
2835
+ var OAuthProviderSchema = z131.nativeEnum(OAuthProviderNames);
2743
2836
  var OAuthProvider = OAuthProviderSchema.enum;
2744
- var ExternalOAuthRequest = z128.object({
2745
- id: z128.string(),
2837
+ var ExternalOAuthRequest = z132.object({
2838
+ id: z132.string(),
2746
2839
  provider: OAuthProviderSchema,
2747
- userId: z128.string(),
2748
- state: z128.string(),
2749
- createdAt: z128.coerce.date()
2840
+ userId: z132.string(),
2841
+ state: z132.string(),
2842
+ createdAt: z132.coerce.date()
2750
2843
  });
2751
- var IntegrationTokenSchema = z129.object({
2752
- id: z129.string(),
2844
+ var IntegrationTokenSchema = z133.object({
2845
+ id: z133.string(),
2753
2846
  provider: OAuthProviderSchema,
2754
- scope: z129.string(),
2755
- userId: z129.string(),
2756
- accessToken: z129.string(),
2757
- refreshToken: z129.string(),
2758
- expiresAt: z129.coerce.date(),
2759
- externalUserId: z129.string().nullish()
2760
- });
2761
- var AnyRecord = z130.record(z130.any());
2847
+ scope: z133.string(),
2848
+ userId: z133.string(),
2849
+ accessToken: z133.string(),
2850
+ refreshToken: z133.string(),
2851
+ expiresAt: z133.coerce.date(),
2852
+ externalUserId: z133.string().nullish()
2853
+ });
2854
+ var AnyRecord = z134.record(z134.any());
2762
2855
  var NpmPackageVersionDist = AnyRecord.and(
2763
- z130.object({
2764
- tarball: z130.string()
2856
+ z134.object({
2857
+ tarball: z134.string()
2765
2858
  })
2766
2859
  );
2767
2860
  var NpmPackageVersion = AnyRecord.and(
2768
- z130.object({
2861
+ z134.object({
2769
2862
  dist: NpmPackageVersionDist
2770
2863
  })
2771
2864
  );
2772
2865
  var NpmPackage = AnyRecord.and(
2773
- z130.object({
2774
- _id: z130.string(),
2775
- name: z130.string(),
2866
+ z134.object({
2867
+ _id: z134.string(),
2868
+ name: z134.string(),
2776
2869
  // e.g. "latest": "1.2.3"
2777
- "dist-tags": z130.record(z130.string(), z130.string()),
2870
+ "dist-tags": z134.record(z134.string(), z134.string()),
2778
2871
  // "1.2.3": {...}
2779
- versions: z130.record(NpmPackageVersion)
2872
+ versions: z134.record(NpmPackageVersion)
2780
2873
  })
2781
2874
  );
2782
- var NpmProxyTokenPayload = z131.object({
2783
- npmProxyRegistryConfigId: z131.string()
2784
- });
2785
- var PersonalAccessToken = z132.object({
2786
- id: z132.string(),
2787
- userId: z132.string(),
2788
- name: z132.string(),
2789
- token: z132.string(),
2790
- createdAt: z132.coerce.date(),
2791
- hidden: z132.boolean(),
2792
- workspaceId: z132.string().optional(),
2875
+ var NpmProxyTokenPayload = z135.object({
2876
+ npmProxyRegistryConfigId: z135.string()
2877
+ });
2878
+ var PersonalAccessToken = z136.object({
2879
+ id: z136.string(),
2880
+ userId: z136.string(),
2881
+ name: z136.string(),
2882
+ token: z136.string(),
2883
+ createdAt: z136.coerce.date(),
2884
+ hidden: z136.boolean(),
2885
+ workspaceId: z136.string().optional(),
2793
2886
  workspaceRole: WorkspaceRoleSchema.optional(),
2794
- expireAt: z132.coerce.date().optional(),
2795
- scope: z132.string().optional()
2887
+ expireAt: z136.coerce.date().optional(),
2888
+ scope: z136.string().optional()
2796
2889
  });
2797
2890
  var SupernovaException = class _SupernovaException extends Error {
2798
2891
  //
@@ -2877,25 +2970,25 @@ function groupBy(items, keyFn) {
2877
2970
  }
2878
2971
  return result;
2879
2972
  }
2880
- var ContentLoadInstruction = z133.object({
2881
- from: z133.string(),
2882
- to: z133.string(),
2883
- authorizationHeaderKvsId: z133.string().optional(),
2884
- timeout: z133.number().optional()
2885
- });
2886
- var ContentLoaderPayload = z133.object({
2887
- type: z133.literal("Single"),
2973
+ var ContentLoadInstruction = z137.object({
2974
+ from: z137.string(),
2975
+ to: z137.string(),
2976
+ authorizationHeaderKvsId: z137.string().optional(),
2977
+ timeout: z137.number().optional()
2978
+ });
2979
+ var ContentLoaderPayload = z137.object({
2980
+ type: z137.literal("Single"),
2888
2981
  instruction: ContentLoadInstruction
2889
2982
  }).or(
2890
- z133.object({
2891
- type: z133.literal("Multiple"),
2892
- loadingChunkSize: z133.number().optional(),
2893
- instructions: z133.array(ContentLoadInstruction)
2983
+ z137.object({
2984
+ type: z137.literal("Multiple"),
2985
+ loadingChunkSize: z137.number().optional(),
2986
+ instructions: z137.array(ContentLoadInstruction)
2894
2987
  })
2895
2988
  ).or(
2896
- z133.object({
2897
- type: z133.literal("S3"),
2898
- location: z133.string()
2989
+ z137.object({
2990
+ type: z137.literal("S3"),
2991
+ location: z137.string()
2899
2992
  })
2900
2993
  );
2901
2994
  function slugify(str, options) {
@@ -3523,6 +3616,48 @@ var RESERVED_SLUGS = [
3523
3616
  ];
3524
3617
  var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
3525
3618
 
3619
+ // src/api/conversion/design-systems/elements/properties/property-value.ts
3620
+ function elementPropertyValueToDto(elementPropertyValue) {
3621
+ let value;
3622
+ let valuePreview;
3623
+ if (elementPropertyValue.stringValue) {
3624
+ value = elementPropertyValue.stringValue;
3625
+ } else if (elementPropertyValue.numberValue) {
3626
+ value = elementPropertyValue.numberValue;
3627
+ } else if (typeof elementPropertyValue.booleanValue === "boolean") {
3628
+ value = elementPropertyValue.booleanValue;
3629
+ } else if (elementPropertyValue.referenceValue) {
3630
+ value = elementPropertyValue.referenceValue;
3631
+ valuePreview = elementPropertyValue.referenceValuePreview;
3632
+ } else {
3633
+ throw SupernovaException.shouldNotHappen(`Invalid element property value, id: ${elementPropertyValue.id}`);
3634
+ }
3635
+ return {
3636
+ id: elementPropertyValue.id,
3637
+ designSystemVersionId: elementPropertyValue.designSystemVersionId,
3638
+ definitionId: elementPropertyValue.definitionPersistentId,
3639
+ targetElementId: elementPropertyValue.targetElementPersistentId,
3640
+ value,
3641
+ valuePreview
3642
+ };
3643
+ }
3644
+
3645
+ // src/api/conversion/design-systems/view.ts
3646
+ function elementViewToDto(elementView, columns) {
3647
+ columns.sort((lhs, rhs) => lhs.sortPosition - rhs.sortPosition);
3648
+ return {
3649
+ id: elementView.id,
3650
+ persistentId: elementView.persistentId,
3651
+ targetElementType: elementView.targetElementType,
3652
+ isDefault: elementView.isDefault,
3653
+ meta: {
3654
+ name: elementView.name,
3655
+ description: elementView.description
3656
+ },
3657
+ columns
3658
+ };
3659
+ }
3660
+
3526
3661
  // src/api/conversion/documentation/documentation-page-to-dto-utils.ts
3527
3662
  function buildDocPagePublishPaths(groups, pages) {
3528
3663
  const groupPersistentIdToGroupMap = mapByUnique(groups, (group) => group.persistentId);
@@ -3683,6 +3818,22 @@ function documentationPagesToDTOV1(pages, groups) {
3683
3818
  });
3684
3819
  }
3685
3820
 
3821
+ // src/api/conversion/design-system/version-to-dto.ts
3822
+ function designSystemVersionToDto(version) {
3823
+ return {
3824
+ id: version.id,
3825
+ designSystemId: version.designSystemId,
3826
+ createdAt: version.createdAt,
3827
+ meta: {
3828
+ name: version.name,
3829
+ description: version.comment
3830
+ },
3831
+ version: version.version,
3832
+ changeLog: version.changeLog,
3833
+ isReadonly: version.isReadonly
3834
+ };
3835
+ }
3836
+
3686
3837
  // src/api/dto/design-systems/design-system.ts
3687
3838
  var DTODesignSystem = DesignSystem.omit({
3688
3839
  name: true,
@@ -3691,21 +3842,86 @@ var DTODesignSystem = DesignSystem.omit({
3691
3842
  meta: ObjectMeta
3692
3843
  });
3693
3844
 
3845
+ // src/api/dto/design-systems/brand.ts
3846
+ import { z as z138 } from "zod";
3847
+ var DTOBrand = z138.object({
3848
+ id: z138.string(),
3849
+ designSystemVersionId: z138.string(),
3850
+ persistentId: z138.string(),
3851
+ meta: ObjectMeta
3852
+ });
3853
+ var DTOBrandGetResponse = z138.object({ brand: DTOBrand });
3854
+ var DTOBrandsListResponse = z138.object({ brands: z138.array(DTOBrand) });
3855
+
3856
+ // src/api/dto/design-systems/view.ts
3857
+ import { z as z139 } from "zod";
3858
+ var DTOElementViewColumnSharedAttributes = z139.object({
3859
+ id: z139.string(),
3860
+ persistentId: z139.string(),
3861
+ width: z139.number()
3862
+ });
3863
+ var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
3864
+ type: z139.literal("BaseProperty"),
3865
+ basePropertyType: ElementViewBaseColumnType
3866
+ });
3867
+ var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
3868
+ type: z139.literal("PropertyDefinition"),
3869
+ propertyDefinitionId: z139.string()
3870
+ });
3871
+ var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
3872
+ type: z139.literal("Theme"),
3873
+ themeId: z139.string()
3874
+ });
3875
+ var DTOElementViewColumn = z139.discriminatedUnion("type", [
3876
+ DTOElementViewBasePropertyColumn,
3877
+ DTOElementViewPropertyDefinitionColumn,
3878
+ DTOElementViewThemeColumn
3879
+ ]);
3880
+ var DTOElementView = z139.object({
3881
+ meta: ObjectMeta,
3882
+ persistentId: z139.string(),
3883
+ targetElementType: ElementPropertyTargetType,
3884
+ id: z139.string(),
3885
+ isDefault: z139.boolean(),
3886
+ columns: z139.array(DTOElementViewColumn)
3887
+ });
3888
+ var DTOElementViewsListResponse = z139.object({
3889
+ elementDataViews: z139.array(DTOElementView)
3890
+ });
3891
+
3892
+ // src/api/dto/design-systems/version.ts
3893
+ import { z as z140 } from "zod";
3894
+ var DTODesignSystemVersion = z140.object({
3895
+ id: z140.string(),
3896
+ createdAt: z140.date(),
3897
+ meta: ObjectMeta,
3898
+ version: z140.string(),
3899
+ isReadonly: z140.boolean(),
3900
+ changeLog: z140.string(),
3901
+ designSystemId: z140.string()
3902
+ });
3903
+ var DTODesignSystemVersionsListResponse = z140.object({
3904
+ designSystemVersions: z140.array(DTODesignSystemVersion)
3905
+ });
3906
+ var DTODesignSystemVersionGetResponse = z140.object({
3907
+ designSystemVersion: DTODesignSystemVersion
3908
+ });
3909
+
3694
3910
  // src/api/dto/documentation/link-preview.ts
3695
- import { z as z134 } from "zod";
3696
- var DTODocumentationLinkPreviewResponse = z134.object({
3911
+ import { z as z141 } from "zod";
3912
+ var DTODocumentationLinkPreviewResponse = z141.object({
3697
3913
  linkPreview: DocumentationLinkPreview
3698
3914
  });
3699
- var DTODocumentationLinkPreviewRequest = z134.object({
3700
- url: z134.string().optional(),
3701
- documentationItemPersistentId: z134.string().optional()
3915
+ var DTODocumentationLinkPreviewRequest = z141.object({
3916
+ url: z141.string().optional(),
3917
+ documentationItemPersistentId: z141.string().optional()
3702
3918
  });
3703
3919
 
3704
3920
  // src/api/dto/elements/documentation/group-action.ts
3705
- import { z as z136 } from "zod";
3921
+ import { z as z143 } from "zod";
3706
3922
 
3707
3923
  // src/api/dto/elements/documentation/group.ts
3708
- import { z as z135 } from "zod";
3924
+ import { z as z142 } from "zod";
3709
3925
  var DTODocumentationGroupStructureV2 = ElementGroup.omit({
3710
3926
  sortOrder: true,
3711
3927
  parentPersistentId: true,
@@ -3715,287 +3931,318 @@ var DTODocumentationGroupStructureV2 = ElementGroup.omit({
3715
3931
  data: true,
3716
3932
  shortPersistentId: true
3717
3933
  }).extend({
3718
- title: z135.string(),
3719
- isRoot: z135.boolean(),
3720
- childrenIds: z135.array(z135.string()),
3934
+ title: z142.string(),
3935
+ isRoot: z142.boolean(),
3936
+ childrenIds: z142.array(z142.string()),
3721
3937
  groupBehavior: DocumentationGroupBehavior,
3722
- shortPersistentId: z135.string(),
3723
- type: z135.literal("Group")
3938
+ shortPersistentId: z142.string(),
3939
+ type: z142.literal("Group")
3724
3940
  });
3725
3941
  var DTODocumentationGroupV2 = DTODocumentationGroupStructureV2.extend({
3726
3942
  configuration: DocumentationItemConfigurationV2
3727
3943
  });
3728
- var DTOCreateDocumentationGroupInput = z135.object({
3944
+ var DTOCreateDocumentationGroupInput = z142.object({
3729
3945
  // Identifier
3730
- persistentId: z135.string().uuid(),
3946
+ persistentId: z142.string().uuid(),
3731
3947
  // Group properties
3732
- title: z135.string(),
3948
+ title: z142.string(),
3733
3949
  configuration: DocumentationItemConfigurationV2.optional(),
3734
3950
  // Group placement properties
3735
- afterPersistentId: z135.string().uuid().optional(),
3736
- parentPersistentId: z135.string().uuid()
3951
+ afterPersistentId: z142.string().uuid().optional(),
3952
+ parentPersistentId: z142.string().uuid()
3737
3953
  });
3738
- var DTOUpdateDocumentationGroupInput = z135.object({
3954
+ var DTOUpdateDocumentationGroupInput = z142.object({
3739
3955
  // Identifier of the group to update
3740
- id: z135.string(),
3956
+ id: z142.string(),
3741
3957
  // Group properties
3742
- title: z135.string().optional(),
3958
+ title: z142.string().optional(),
3743
3959
  configuration: DocumentationItemConfigurationV2.optional()
3744
3960
  });
3745
- var DTOMoveDocumentationGroupInput = z135.object({
3961
+ var DTOMoveDocumentationGroupInput = z142.object({
3746
3962
  // Identifier of the group to update
3747
- id: z135.string(),
3963
+ id: z142.string(),
3748
3964
  // Group placement properties
3749
- parentPersistentId: z135.string().uuid(),
3750
- afterPersistentId: z135.string().uuid().optional()
3965
+ parentPersistentId: z142.string().uuid(),
3966
+ afterPersistentId: z142.string().uuid().optional()
3751
3967
  });
3752
- var DTODuplicateDocumentationGroupInput = z135.object({
3968
+ var DTODuplicateDocumentationGroupInput = z142.object({
3753
3969
  // Identifier of the group to duplicate from
3754
- id: z135.string(),
3970
+ id: z142.string(),
3755
3971
  // New group persistent id
3756
- persistentId: z135.string().uuid(),
3972
+ persistentId: z142.string().uuid(),
3757
3973
  // Group placement properties
3758
- afterPersistentId: z135.string().uuid().optional(),
3759
- parentPersistentId: z135.string().uuid()
3974
+ afterPersistentId: z142.string().uuid().optional(),
3975
+ parentPersistentId: z142.string().uuid()
3760
3976
  });
3761
- var DTOCreateDocumentationTabInput = z135.object({
3977
+ var DTOCreateDocumentationTabInput = z142.object({
3762
3978
  // New group persistent id
3763
- persistentId: z135.string().uuid(),
3979
+ persistentId: z142.string().uuid(),
3764
3980
  // If this is page, we will attempt to convert it to tab
3765
3981
  // If this is tab group, we will add a new tab to it
3766
- fromItemPersistentId: z135.string(),
3767
- tabName: z135.string()
3982
+ fromItemPersistentId: z142.string(),
3983
+ tabName: z142.string()
3768
3984
  });
3769
- var DTODeleteDocumentationTabGroupInput = z135.object({
3985
+ var DTODeleteDocumentationTabGroupInput = z142.object({
3770
3986
  // Deleted group id
3771
- id: z135.string()
3987
+ id: z142.string()
3772
3988
  });
3773
- var DTODeleteDocumentationGroupInput = z135.object({
3989
+ var DTODeleteDocumentationGroupInput = z142.object({
3774
3990
  // Identifier
3775
- id: z135.string(),
3991
+ id: z142.string(),
3776
3992
  // Deletion options
3777
- deleteSubtree: z135.boolean().default(false)
3993
+ deleteSubtree: z142.boolean().default(false)
3778
3994
  });
3779
3995
 
3780
3996
  // src/api/dto/elements/documentation/group-action.ts
3781
- var SuccessPayload = z136.object({
3782
- success: z136.literal(true)
3997
+ var SuccessPayload = z143.object({
3998
+ success: z143.literal(true)
3783
3999
  });
3784
- var DTODocumentationGroupCreateActionOutputV2 = z136.object({
3785
- type: z136.literal("DocumentationGroupCreate"),
4000
+ var DTODocumentationGroupCreateActionOutputV2 = z143.object({
4001
+ type: z143.literal("DocumentationGroupCreate"),
3786
4002
  output: SuccessPayload
3787
4003
  });
3788
- var DTODocumentationTabCreateActionOutputV2 = z136.object({
3789
- type: z136.literal("DocumentationTabCreate"),
4004
+ var DTODocumentationTabCreateActionOutputV2 = z143.object({
4005
+ type: z143.literal("DocumentationTabCreate"),
3790
4006
  output: SuccessPayload
3791
4007
  });
3792
- var DTODocumentationGroupUpdateActionOutputV2 = z136.object({
3793
- type: z136.literal("DocumentationGroupUpdate"),
4008
+ var DTODocumentationGroupUpdateActionOutputV2 = z143.object({
4009
+ type: z143.literal("DocumentationGroupUpdate"),
3794
4010
  output: SuccessPayload
3795
4011
  });
3796
- var DTODocumentationGroupMoveActionOutputV2 = z136.object({
3797
- type: z136.literal("DocumentationGroupMove"),
4012
+ var DTODocumentationGroupMoveActionOutputV2 = z143.object({
4013
+ type: z143.literal("DocumentationGroupMove"),
3798
4014
  output: SuccessPayload
3799
4015
  });
3800
- var DTODocumentationGroupDuplicateActionOutputV2 = z136.object({
3801
- type: z136.literal("DocumentationGroupDuplicate"),
4016
+ var DTODocumentationGroupDuplicateActionOutputV2 = z143.object({
4017
+ type: z143.literal("DocumentationGroupDuplicate"),
3802
4018
  output: SuccessPayload
3803
4019
  });
3804
- var DTODocumentationGroupDeleteActionOutputV2 = z136.object({
3805
- type: z136.literal("DocumentationGroupDelete"),
4020
+ var DTODocumentationGroupDeleteActionOutputV2 = z143.object({
4021
+ type: z143.literal("DocumentationGroupDelete"),
3806
4022
  output: SuccessPayload
3807
4023
  });
3808
- var DTODocumentationTabGroupDeleteActionOutputV2 = z136.object({
3809
- type: z136.literal("DocumentationTabGroupDelete"),
4024
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z143.object({
4025
+ type: z143.literal("DocumentationTabGroupDelete"),
3810
4026
  output: SuccessPayload
3811
4027
  });
3812
- var DTODocumentationGroupCreateActionInputV2 = z136.object({
3813
- type: z136.literal("DocumentationGroupCreate"),
4028
+ var DTODocumentationGroupCreateActionInputV2 = z143.object({
4029
+ type: z143.literal("DocumentationGroupCreate"),
3814
4030
  input: DTOCreateDocumentationGroupInput
3815
4031
  });
3816
- var DTODocumentationTabCreateActionInputV2 = z136.object({
3817
- type: z136.literal("DocumentationTabCreate"),
4032
+ var DTODocumentationTabCreateActionInputV2 = z143.object({
4033
+ type: z143.literal("DocumentationTabCreate"),
3818
4034
  input: DTOCreateDocumentationTabInput
3819
4035
  });
3820
- var DTODocumentationGroupUpdateActionInputV2 = z136.object({
3821
- type: z136.literal("DocumentationGroupUpdate"),
4036
+ var DTODocumentationGroupUpdateActionInputV2 = z143.object({
4037
+ type: z143.literal("DocumentationGroupUpdate"),
3822
4038
  input: DTOUpdateDocumentationGroupInput
3823
4039
  });
3824
- var DTODocumentationGroupMoveActionInputV2 = z136.object({
3825
- type: z136.literal("DocumentationGroupMove"),
4040
+ var DTODocumentationGroupMoveActionInputV2 = z143.object({
4041
+ type: z143.literal("DocumentationGroupMove"),
3826
4042
  input: DTOMoveDocumentationGroupInput
3827
4043
  });
3828
- var DTODocumentationGroupDuplicateActionInputV2 = z136.object({
3829
- type: z136.literal("DocumentationGroupDuplicate"),
4044
+ var DTODocumentationGroupDuplicateActionInputV2 = z143.object({
4045
+ type: z143.literal("DocumentationGroupDuplicate"),
3830
4046
  input: DTODuplicateDocumentationGroupInput
3831
4047
  });
3832
- var DTODocumentationGroupDeleteActionInputV2 = z136.object({
3833
- type: z136.literal("DocumentationGroupDelete"),
4048
+ var DTODocumentationGroupDeleteActionInputV2 = z143.object({
4049
+ type: z143.literal("DocumentationGroupDelete"),
3834
4050
  input: DTODeleteDocumentationGroupInput
3835
4051
  });
3836
- var DTODocumentationTabGroupDeleteActionInputV2 = z136.object({
3837
- type: z136.literal("DocumentationTabGroupDelete"),
4052
+ var DTODocumentationTabGroupDeleteActionInputV2 = z143.object({
4053
+ type: z143.literal("DocumentationTabGroupDelete"),
3838
4054
  input: DTODeleteDocumentationTabGroupInput
3839
4055
  });
3840
4056
 
3841
4057
  // src/api/dto/elements/documentation/page-actions-v2.ts
3842
- import { z as z138 } from "zod";
4058
+ import { z as z145 } from "zod";
3843
4059
 
3844
4060
  // src/api/dto/elements/documentation/page-v2.ts
3845
- import { z as z137 } from "zod";
4061
+ import { z as z144 } from "zod";
3846
4062
  var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
3847
4063
  data: true,
3848
4064
  meta: true,
3849
4065
  parentPersistentId: true,
3850
4066
  sortOrder: true
3851
4067
  }).extend({
3852
- title: z137.string(),
3853
- path: z137.string(),
3854
- type: z137.literal("Page")
4068
+ title: z144.string(),
4069
+ path: z144.string(),
4070
+ type: z144.literal("Page")
3855
4071
  });
3856
4072
  var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend({
3857
4073
  configuration: DocumentationItemConfigurationV2
3858
4074
  });
3859
- var DTODocumentationHierarchyV2 = z137.object({
3860
- pages: z137.array(DTODocumentationPageStructureV2),
3861
- groups: z137.array(DTODocumentationGroupStructureV2)
4075
+ var DTODocumentationHierarchyV2 = z144.object({
4076
+ pages: z144.array(DTODocumentationPageStructureV2),
4077
+ groups: z144.array(DTODocumentationGroupStructureV2)
3862
4078
  });
3863
- var DTOCreateDocumentationPageInputV2 = z137.object({
4079
+ var DTOCreateDocumentationPageInputV2 = z144.object({
3864
4080
  // Identifier
3865
- persistentId: z137.string().uuid(),
4081
+ persistentId: z144.string().uuid(),
3866
4082
  // Page properties
3867
- title: z137.string(),
4083
+ title: z144.string(),
3868
4084
  configuration: DocumentationItemConfigurationV2.optional(),
3869
4085
  // Page placement properties
3870
- parentPersistentId: z137.string().uuid(),
3871
- afterPersistentId: z137.string().uuid().optional()
4086
+ parentPersistentId: z144.string().uuid(),
4087
+ afterPersistentId: z144.string().uuid().optional()
3872
4088
  });
3873
- var DTOUpdateDocumentationPageInputV2 = z137.object({
4089
+ var DTOUpdateDocumentationPageInputV2 = z144.object({
3874
4090
  // Identifier of the group to update
3875
- id: z137.string(),
4091
+ id: z144.string(),
3876
4092
  // Page properties
3877
- title: z137.string().optional(),
4093
+ title: z144.string().optional(),
3878
4094
  configuration: DocumentationItemConfigurationV2.optional()
3879
4095
  });
3880
- var DTOMoveDocumentationPageInputV2 = z137.object({
4096
+ var DTOMoveDocumentationPageInputV2 = z144.object({
3881
4097
  // Identifier of the group to update
3882
- id: z137.string(),
4098
+ id: z144.string(),
3883
4099
  // Page placement properties
3884
- parentPersistentId: z137.string().uuid(),
3885
- afterPersistentId: z137.string().uuid().optional()
4100
+ parentPersistentId: z144.string().uuid(),
4101
+ afterPersistentId: z144.string().uuid().optional()
3886
4102
  });
3887
- var DTODuplicateDocumentationPageInputV2 = z137.object({
4103
+ var DTODuplicateDocumentationPageInputV2 = z144.object({
3888
4104
  // Identifier of the page to duplicate from
3889
- id: z137.string(),
4105
+ id: z144.string(),
3890
4106
  // New page persistent id
3891
- persistentId: z137.string().uuid(),
4107
+ persistentId: z144.string().uuid(),
3892
4108
  // Page placement properties
3893
- parentPersistentId: z137.string().uuid(),
3894
- afterPersistentId: z137.string().uuid().optional()
4109
+ parentPersistentId: z144.string().uuid(),
4110
+ afterPersistentId: z144.string().uuid().optional()
3895
4111
  });
3896
- var DTODeleteDocumentationPageInputV2 = z137.object({
4112
+ var DTODeleteDocumentationPageInputV2 = z144.object({
3897
4113
  // Identifier
3898
- id: z137.string()
4114
+ id: z144.string()
3899
4115
  });
3900
4116
 
3901
4117
  // src/api/dto/elements/documentation/page-actions-v2.ts
3902
- var SuccessPayload2 = z138.object({
3903
- success: z138.literal(true)
4118
+ var SuccessPayload2 = z145.object({
4119
+ success: z145.literal(true)
3904
4120
  });
3905
- var DTODocumentationPageCreateActionOutputV2 = z138.object({
3906
- type: z138.literal("DocumentationPageCreate"),
4121
+ var DTODocumentationPageCreateActionOutputV2 = z145.object({
4122
+ type: z145.literal("DocumentationPageCreate"),
3907
4123
  output: SuccessPayload2
3908
4124
  });
3909
- var DTODocumentationPageUpdateActionOutputV2 = z138.object({
3910
- type: z138.literal("DocumentationPageUpdate"),
4125
+ var DTODocumentationPageUpdateActionOutputV2 = z145.object({
4126
+ type: z145.literal("DocumentationPageUpdate"),
3911
4127
  output: SuccessPayload2
3912
4128
  });
3913
- var DTODocumentationPageMoveActionOutputV2 = z138.object({
3914
- type: z138.literal("DocumentationPageMove"),
4129
+ var DTODocumentationPageMoveActionOutputV2 = z145.object({
4130
+ type: z145.literal("DocumentationPageMove"),
3915
4131
  output: SuccessPayload2
3916
4132
  });
3917
- var DTODocumentationPageDuplicateActionOutputV2 = z138.object({
3918
- type: z138.literal("DocumentationPageDuplicate"),
4133
+ var DTODocumentationPageDuplicateActionOutputV2 = z145.object({
4134
+ type: z145.literal("DocumentationPageDuplicate"),
3919
4135
  output: SuccessPayload2
3920
4136
  });
3921
- var DTODocumentationPageDeleteActionOutputV2 = z138.object({
3922
- type: z138.literal("DocumentationPageDelete"),
4137
+ var DTODocumentationPageDeleteActionOutputV2 = z145.object({
4138
+ type: z145.literal("DocumentationPageDelete"),
3923
4139
  output: SuccessPayload2
3924
4140
  });
3925
- var DTODocumentationPageCreateActionInputV2 = z138.object({
3926
- type: z138.literal("DocumentationPageCreate"),
4141
+ var DTODocumentationPageCreateActionInputV2 = z145.object({
4142
+ type: z145.literal("DocumentationPageCreate"),
3927
4143
  input: DTOCreateDocumentationPageInputV2
3928
4144
  });
3929
- var DTODocumentationPageUpdateActionInputV2 = z138.object({
3930
- type: z138.literal("DocumentationPageUpdate"),
4145
+ var DTODocumentationPageUpdateActionInputV2 = z145.object({
4146
+ type: z145.literal("DocumentationPageUpdate"),
3931
4147
  input: DTOUpdateDocumentationPageInputV2
3932
4148
  });
3933
- var DTODocumentationPageMoveActionInputV2 = z138.object({
3934
- type: z138.literal("DocumentationPageMove"),
4149
+ var DTODocumentationPageMoveActionInputV2 = z145.object({
4150
+ type: z145.literal("DocumentationPageMove"),
3935
4151
  input: DTOMoveDocumentationPageInputV2
3936
4152
  });
3937
- var DTODocumentationPageDuplicateActionInputV2 = z138.object({
3938
- type: z138.literal("DocumentationPageDuplicate"),
4153
+ var DTODocumentationPageDuplicateActionInputV2 = z145.object({
4154
+ type: z145.literal("DocumentationPageDuplicate"),
3939
4155
  input: DTODuplicateDocumentationPageInputV2
3940
4156
  });
3941
- var DTODocumentationPageDeleteActionInputV2 = z138.object({
3942
- type: z138.literal("DocumentationPageDelete"),
4157
+ var DTODocumentationPageDeleteActionInputV2 = z145.object({
4158
+ type: z145.literal("DocumentationPageDelete"),
3943
4159
  input: DTODeleteDocumentationPageInputV2
3944
4160
  });
3945
4161
 
3946
4162
  // src/api/dto/elements/documentation/page-v1.ts
3947
- import { z as z139 } from "zod";
4163
+ import { z as z146 } from "zod";
3948
4164
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
3949
4165
  data: true,
3950
4166
  meta: true,
3951
4167
  parentPersistentId: true,
3952
4168
  sortOrder: true
3953
4169
  }).extend(DocumentationPageV1.shape.data.shape).extend({
3954
- title: z139.string(),
3955
- path: z139.string()
4170
+ title: z146.string(),
4171
+ path: z146.string()
3956
4172
  });
3957
4173
 
3958
4174
  // src/api/dto/elements/figma-nodes/figma-node.ts
3959
- import { z as z140 } from "zod";
3960
- var DTOFigmaNodeData = z140.object({
4175
+ import { z as z147 } from "zod";
4176
+ var DTOFigmaNodeData = z147.object({
3961
4177
  // Id of the node in the Figma file
3962
- figmaNodeId: z140.string(),
4178
+ figmaNodeId: z147.string(),
3963
4179
  // Validity
3964
- isValid: z140.boolean(),
4180
+ isValid: z147.boolean(),
3965
4181
  // Asset data
3966
- assetId: z140.string(),
3967
- assetUrl: z140.string(),
4182
+ assetId: z147.string(),
4183
+ assetUrl: z147.string(),
3968
4184
  // Asset metadata
3969
- assetScale: z140.number(),
3970
- assetWidth: z140.number().optional(),
3971
- assetHeight: z140.number().optional()
4185
+ assetScale: z147.number(),
4186
+ assetWidth: z147.number().optional(),
4187
+ assetHeight: z147.number().optional()
3972
4188
  });
3973
4189
  var DTOFigmaNode = FigmaFileStructure.omit({
3974
4190
  data: true
3975
4191
  }).extend({
3976
4192
  data: DTOFigmaNodeData
3977
4193
  });
3978
- var DTOFigmaNodeRenderInput = z140.object({
4194
+ var DTOFigmaNodeRenderInput = z147.object({
3979
4195
  // Id of a design system's data source representing a linked Figma file
3980
- sourceId: z140.string(),
4196
+ sourceId: z147.string(),
3981
4197
  // Id of a node within the Figma file
3982
- figmaFileNodeId: z140.string()
4198
+ figmaFileNodeId: z147.string()
3983
4199
  });
3984
4200
 
3985
4201
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
3986
- import { z as z141 } from "zod";
3987
- var DTOFigmaNodeRenderActionOutput = z141.object({
3988
- type: z141.literal("FigmaNodeRender"),
3989
- figmaNodes: z141.array(DTOFigmaNode)
4202
+ import { z as z148 } from "zod";
4203
+ var DTOFigmaNodeRenderActionOutput = z148.object({
4204
+ type: z148.literal("FigmaNodeRender"),
4205
+ figmaNodes: z148.array(DTOFigmaNode)
3990
4206
  });
3991
- var DTOFigmaNodeRenderActionInput = z141.object({
3992
- type: z141.literal("FigmaNodeRender"),
4207
+ var DTOFigmaNodeRenderActionInput = z148.object({
4208
+ type: z148.literal("FigmaNodeRender"),
3993
4209
  input: DTOFigmaNodeRenderInput.array()
3994
4210
  });
3995
4211
 
4212
+ // src/api/dto/elements/properties/property-definitions.ts
4213
+ import { z as z149 } from "zod";
4214
+ var DTOElementPropertyDefinition = z149.object({
4215
+ id: z149.string(),
4216
+ designSystemVersionId: z149.string(),
4217
+ meta: ObjectMeta,
4218
+ persistentId: z149.string(),
4219
+ type: ElementPropertyTypeSchema,
4220
+ targetElementType: ElementPropertyTargetType,
4221
+ codeName: z149.string(),
4222
+ options: z149.array(ElementPropertyDefinitionOption).optional(),
4223
+ linkElementType: ElementPropertyLinkType.optional()
4224
+ });
4225
+ var DTOElementPropertyDefinitionsGetResponse = z149.object({
4226
+ definitions: z149.array(DTOElementPropertyDefinition)
4227
+ });
4228
+
4229
+ // src/api/dto/elements/properties/property-values.ts
4230
+ import { z as z150 } from "zod";
4231
+ var DTOElementPropertyValue = z150.object({
4232
+ id: z150.string(),
4233
+ designSystemVersionId: z150.string(),
4234
+ definitionId: z150.string(),
4235
+ targetElementId: z150.string(),
4236
+ value: z150.union([z150.string(), z150.number(), z150.boolean()]).optional(),
4237
+ valuePreview: z150.string().optional()
4238
+ });
4239
+ var DTOElementPropertyValuesGetResponse = z150.object({
4240
+ values: z150.array(DTOElementPropertyValue)
4241
+ });
4242
+
3996
4243
  // src/api/dto/elements/elements-action-v2.ts
3997
- import { z as z142 } from "zod";
3998
- var DTOElementActionOutput = z142.discriminatedUnion("type", [
4244
+ import { z as z151 } from "zod";
4245
+ var DTOElementActionOutput = z151.discriminatedUnion("type", [
3999
4246
  // Documentation pages
4000
4247
  DTODocumentationPageCreateActionOutputV2,
4001
4248
  DTODocumentationPageUpdateActionOutputV2,
@@ -4013,7 +4260,7 @@ var DTOElementActionOutput = z142.discriminatedUnion("type", [
4013
4260
  // Figma frames
4014
4261
  DTOFigmaNodeRenderActionOutput
4015
4262
  ]);
4016
- var DTOElementActionInput = z142.discriminatedUnion("type", [
4263
+ var DTOElementActionInput = z151.discriminatedUnion("type", [
4017
4264
  // Documentation pages
4018
4265
  DTODocumentationPageCreateActionInputV2,
4019
4266
  DTODocumentationPageUpdateActionInputV2,
@@ -4033,53 +4280,53 @@ var DTOElementActionInput = z142.discriminatedUnion("type", [
4033
4280
  ]);
4034
4281
 
4035
4282
  // src/api/dto/elements/get-elements-v2.ts
4036
- import { z as z143 } from "zod";
4037
- var DTOElementsGetTypeFilter = z143.enum(["FigmaNode"]);
4038
- var DTOElementsGetQuerySchema = z143.object({
4039
- types: z143.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
4283
+ import { z as z152 } from "zod";
4284
+ var DTOElementsGetTypeFilter = z152.enum(["FigmaNode"]);
4285
+ var DTOElementsGetQuerySchema = z152.object({
4286
+ types: z152.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
4040
4287
  });
4041
- var DTOElementsGetOutput = z143.object({
4042
- figmaNodes: z143.array(DTOFigmaNode).optional()
4288
+ var DTOElementsGetOutput = z152.object({
4289
+ figmaNodes: z152.array(DTOFigmaNode).optional()
4043
4290
  });
4044
4291
 
4045
4292
  // src/api/dto/workspaces/membership.ts
4046
- import { z as z146 } from "zod";
4293
+ import { z as z155 } from "zod";
4047
4294
 
4048
4295
  // src/api/dto/workspaces/workspace.ts
4049
- import { z as z145 } from "zod";
4296
+ import { z as z154 } from "zod";
4050
4297
 
4051
4298
  // src/api/dto/workspaces/npm-registry.ts
4052
- import { z as z144 } from "zod";
4053
- var DTONpmRegistryConfig = z144.object({
4299
+ import { z as z153 } from "zod";
4300
+ var DTONpmRegistryConfig = z153.object({
4054
4301
  // Registry basic configuration
4055
4302
  registryType: NpmRegistryType,
4056
- registryUrl: z144.string(),
4057
- customRegistryUrl: z144.string().optional(),
4303
+ registryUrl: z153.string(),
4304
+ customRegistryUrl: z153.string().optional(),
4058
4305
  // URL of Supernova NPM packages proxy
4059
- proxyUrl: z144.string(),
4306
+ proxyUrl: z153.string(),
4060
4307
  // Auth configuration
4061
4308
  authType: NpmRegistryAuthType,
4062
- accessToken: z144.literal("redacted").optional(),
4063
- username: z144.string().optional(),
4064
- password: z144.literal("redacted").optional(),
4309
+ accessToken: z153.literal("redacted").optional(),
4310
+ username: z153.string().optional(),
4311
+ password: z153.literal("redacted").optional(),
4065
4312
  // NPM package scopes for whih the proxy should be enabled
4066
- enabledScopes: z144.array(z144.string()),
4313
+ enabledScopes: z153.array(z153.string()),
4067
4314
  // True if client should bypass Supernova proxy and connect directly to the registry
4068
4315
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
4069
- bypassProxy: z144.boolean()
4316
+ bypassProxy: z153.boolean()
4070
4317
  });
4071
4318
 
4072
4319
  // src/api/dto/workspaces/workspace.ts
4073
- var DTOWorkspace = z145.object({
4074
- id: z145.string(),
4320
+ var DTOWorkspace = z154.object({
4321
+ id: z154.string(),
4075
4322
  profile: WorkspaceProfile,
4076
4323
  subscription: Subscription,
4077
4324
  npmRegistry: DTONpmRegistryConfig.optional()
4078
4325
  });
4079
4326
 
4080
4327
  // src/api/dto/workspaces/membership.ts
4081
- var DTOWorkspaceRole = z146.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
4082
- var DTOUserWorkspaceMembership = z146.object({
4328
+ var DTOWorkspaceRole = z155.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
4329
+ var DTOUserWorkspaceMembership = z155.object({
4083
4330
  // Workspace the user is a member of
4084
4331
  workspace: DTOWorkspace,
4085
4332
  // Assigned role the user has in the workspace
@@ -4089,24 +4336,24 @@ var DTOUserWorkspaceMembership = z146.object({
4089
4336
  // when a workspace's subscription is downgraded to free tier
4090
4337
  effectiveRole: DTOWorkspaceRole
4091
4338
  });
4092
- var DTOUserWorkspaceMembershipsResponse = z146.object({
4093
- membership: z146.array(DTOUserWorkspaceMembership)
4339
+ var DTOUserWorkspaceMembershipsResponse = z155.object({
4340
+ membership: z155.array(DTOUserWorkspaceMembership)
4094
4341
  });
4095
4342
 
4096
4343
  // src/api/payloads/documentation/block-definitions.ts
4097
- import { z as z147 } from "zod";
4098
- var DTOGetBlockDefinitionsOutput = z147.object({
4099
- definitions: z147.array(PageBlockDefinition)
4344
+ import { z as z156 } from "zod";
4345
+ var DTOGetBlockDefinitionsOutput = z156.object({
4346
+ definitions: z156.array(PageBlockDefinition)
4100
4347
  });
4101
4348
 
4102
4349
  // src/api/payloads/liveblocks/auth.ts
4103
- import { z as z148 } from "zod";
4104
- var DTOLiveblocksAuthRequest = z148.object({
4105
- room: z148.string()
4350
+ import { z as z157 } from "zod";
4351
+ var DTOLiveblocksAuthRequest = z157.object({
4352
+ room: z157.string()
4106
4353
  });
4107
4354
 
4108
4355
  // src/api/payloads/workspaces/workspace-configuration.ts
4109
- import { z as z149 } from "zod";
4356
+ import { z as z158 } from "zod";
4110
4357
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4111
4358
  function validateSsoPayload(ssoPayload) {
4112
4359
  const keys = [];
@@ -4129,21 +4376,21 @@ function validateSsoPayload(ssoPayload) {
4129
4376
  keys
4130
4377
  };
4131
4378
  }
4132
- var NpmRegistryInput = z149.object({
4133
- enabledScopes: z149.array(z149.string()),
4134
- customRegistryUrl: z149.string().optional(),
4135
- bypassProxy: z149.boolean().optional(),
4136
- npmProxyRegistryConfigId: z149.string().optional(),
4137
- npmProxyVersion: z149.number().optional(),
4138
- registryType: z149.string(),
4139
- authType: z149.string(),
4140
- authHeaderName: z149.string(),
4141
- authHeaderValue: z149.string(),
4142
- accessToken: z149.string(),
4143
- username: z149.string(),
4144
- password: z149.string()
4145
- });
4146
- var WorkspaceConfigurationPayload = z149.object({
4379
+ var NpmRegistryInput = z158.object({
4380
+ enabledScopes: z158.array(z158.string()),
4381
+ customRegistryUrl: z158.string().optional(),
4382
+ bypassProxy: z158.boolean().optional(),
4383
+ npmProxyRegistryConfigId: z158.string().optional(),
4384
+ npmProxyVersion: z158.number().optional(),
4385
+ registryType: z158.string(),
4386
+ authType: z158.string(),
4387
+ authHeaderName: z158.string(),
4388
+ authHeaderValue: z158.string(),
4389
+ accessToken: z158.string(),
4390
+ username: z158.string(),
4391
+ password: z158.string()
4392
+ });
4393
+ var WorkspaceConfigurationPayload = z158.object({
4147
4394
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
4148
4395
  sso: SsoProvider.partial().optional(),
4149
4396
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -4202,13 +4449,13 @@ function getGroupsYMap(doc) {
4202
4449
  }
4203
4450
 
4204
4451
  // src/yjs/design-system-content/item-configuration.ts
4205
- import { z as z150 } from "zod";
4206
- var DTODocumentationPageRoomHeaderData = z150.object({
4207
- title: z150.string(),
4452
+ import { z as z159 } from "zod";
4453
+ var DTODocumentationPageRoomHeaderData = z159.object({
4454
+ title: z159.string(),
4208
4455
  configuration: DocumentationItemConfigurationV2
4209
4456
  });
4210
- var DTODocumentationPageRoomHeaderDataUpdate = z150.object({
4211
- title: z150.string().optional(),
4457
+ var DTODocumentationPageRoomHeaderDataUpdate = z159.object({
4458
+ title: z159.string().optional(),
4212
4459
  configuration: DocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
4213
4460
  });
4214
4461
  function itemConfigurationToYjs(yDoc, item) {
@@ -4257,7 +4504,7 @@ function yjsToItemConfiguration(yDoc) {
4257
4504
  header: rawHeader
4258
4505
  };
4259
4506
  return {
4260
- title: z150.string().parse(title),
4507
+ title: z159.string().parse(title),
4261
4508
  configuration: DocumentationItemConfigurationV2.parse(rawConfig)
4262
4509
  };
4263
4510
  }
@@ -4267,9 +4514,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
4267
4514
  var PageSectionEditorModel = PageSectionEditorModelV2;
4268
4515
 
4269
4516
  // src/yjs/docs-editor/model/page.ts
4270
- import { z as z151 } from "zod";
4271
- var DocumentationPageEditorModel = z151.object({
4272
- blocks: z151.array(PageBlockEditorModel.or(PageSectionEditorModel))
4517
+ import { z as z160 } from "zod";
4518
+ var DocumentationPageEditorModel = z160.object({
4519
+ blocks: z160.array(PageBlockEditorModel.or(PageSectionEditorModel))
4273
4520
  });
4274
4521
 
4275
4522
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -7230,7 +7477,7 @@ var blocks = [
7230
7477
 
7231
7478
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
7232
7479
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
7233
- import { z as z152 } from "zod";
7480
+ import { z as z161 } from "zod";
7234
7481
  function yDocToPage(yDoc, definitions) {
7235
7482
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
7236
7483
  }
@@ -7273,7 +7520,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
7273
7520
  return null;
7274
7521
  return {
7275
7522
  id,
7276
- title: getProsemirrorAttribute(prosemirrorNode, "title", z152.string()) ?? "",
7523
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z161.string()) ?? "",
7277
7524
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
7278
7525
  };
7279
7526
  }
@@ -7308,7 +7555,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
7308
7555
  });
7309
7556
  }
7310
7557
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
7311
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z152.string());
7558
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z161.string());
7312
7559
  if (!definitionId) {
7313
7560
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
7314
7561
  return [];
@@ -7350,7 +7597,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
7350
7597
  if (!id)
7351
7598
  return null;
7352
7599
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
7353
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z152.string().optional()));
7600
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z161.string().optional()));
7354
7601
  return {
7355
7602
  // TODO Artem: indent
7356
7603
  id,
@@ -7474,10 +7721,10 @@ function parseRichTextAttribute(mark) {
7474
7721
  return null;
7475
7722
  }
7476
7723
  function parseProsemirrorLink(mark) {
7477
- const href = getProsemirrorAttribute(mark, "href", z152.string().optional());
7724
+ const href = getProsemirrorAttribute(mark, "href", z161.string().optional());
7478
7725
  if (!href)
7479
7726
  return null;
7480
- const target = getProsemirrorAttribute(mark, "target", z152.string().optional());
7727
+ const target = getProsemirrorAttribute(mark, "target", z161.string().optional());
7481
7728
  const openInNewWindow = target === "_blank";
7482
7729
  if (href.startsWith("@")) {
7483
7730
  return {
@@ -7498,7 +7745,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
7498
7745
  if (!id)
7499
7746
  return null;
7500
7747
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
7501
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z152.boolean().optional()) !== false;
7748
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z161.boolean().optional()) !== false;
7502
7749
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
7503
7750
  if (!tableChild) {
7504
7751
  return emptyTable(id, variantId, 0);
@@ -7545,9 +7792,9 @@ function parseAsTableCell(prosemirrorNode) {
7545
7792
  const id = getProsemirrorBlockId(prosemirrorNode);
7546
7793
  if (!id)
7547
7794
  return null;
7548
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z152.string().optional());
7795
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z161.string().optional());
7549
7796
  let columnWidth;
7550
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z152.array(z152.number()).optional());
7797
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z161.array(z161.number()).optional());
7551
7798
  if (columnWidthArray) {
7552
7799
  columnWidth = columnWidthArray[0];
7553
7800
  }
@@ -7585,7 +7832,7 @@ function parseAsTableNode(prosemirrorNode) {
7585
7832
  value: parseRichText(prosemirrorNode.content ?? [])
7586
7833
  };
7587
7834
  case "image":
7588
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z152.string());
7835
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z161.string());
7589
7836
  if (!items)
7590
7837
  return null;
7591
7838
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -7690,7 +7937,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
7690
7937
  };
7691
7938
  }
7692
7939
  function parseBlockItems(prosemirrorNode, definition) {
7693
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z152.string());
7940
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z161.string());
7694
7941
  if (!itemsString)
7695
7942
  return null;
7696
7943
  const itemsJson = JSON.parse(itemsString);
@@ -7702,18 +7949,18 @@ function parseBlockItems(prosemirrorNode, definition) {
7702
7949
  }
7703
7950
  function parseAppearance(prosemirrorNode) {
7704
7951
  let appearance = {};
7705
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z152.string().optional());
7952
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z161.string().optional());
7706
7953
  if (rawAppearanceString) {
7707
7954
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
7708
7955
  if (parsedAppearance.success) {
7709
7956
  appearance = parsedAppearance.data;
7710
7957
  }
7711
7958
  }
7712
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z152.number().optional());
7959
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z161.number().optional());
7713
7960
  if (columns) {
7714
7961
  appearance.numberOfColumns = columns;
7715
7962
  }
7716
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z152.string().optional());
7963
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z161.string().optional());
7717
7964
  if (backgroundColor) {
7718
7965
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
7719
7966
  if (parsedColor.success) {
@@ -7740,7 +7987,7 @@ function parseItem(rawItem, definition) {
7740
7987
  if (validationResult.success) {
7741
7988
  sanitizedProps[property.id] = validationResult.data;
7742
7989
  } else {
7743
- console.log(validationResult.error.flatten());
7990
+ console.log(validationResult.error.toString());
7744
7991
  }
7745
7992
  }
7746
7993
  return {
@@ -7804,13 +8051,13 @@ function valueSchemaForPropertyType(type) {
7804
8051
  }
7805
8052
  }
7806
8053
  function getProsemirrorBlockId(prosemirrorNode) {
7807
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z152.string());
8054
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z161.string());
7808
8055
  if (!id)
7809
8056
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
7810
8057
  return id;
7811
8058
  }
7812
8059
  function getProsemirrorBlockVariantId(prosemirrorNode) {
7813
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z152.string()));
8060
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z161.string()));
7814
8061
  }
7815
8062
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
7816
8063
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -7835,6 +8082,9 @@ function mapByUnique2(items, keyFn) {
7835
8082
  export {
7836
8083
  BlockDefinitionUtils,
7837
8084
  BlockParsingUtils,
8085
+ DTOBrand,
8086
+ DTOBrandGetResponse,
8087
+ DTOBrandsListResponse,
7838
8088
  DTOCreateDocumentationGroupInput,
7839
8089
  DTOCreateDocumentationPageInputV2,
7840
8090
  DTOCreateDocumentationTabInput,
@@ -7842,6 +8092,9 @@ export {
7842
8092
  DTODeleteDocumentationPageInputV2,
7843
8093
  DTODeleteDocumentationTabGroupInput,
7844
8094
  DTODesignSystem,
8095
+ DTODesignSystemVersion,
8096
+ DTODesignSystemVersionGetResponse,
8097
+ DTODesignSystemVersionsListResponse,
7845
8098
  DTODocumentationGroupCreateActionInputV2,
7846
8099
  DTODocumentationGroupCreateActionOutputV2,
7847
8100
  DTODocumentationGroupDeleteActionInputV2,
@@ -7879,6 +8132,17 @@ export {
7879
8132
  DTODuplicateDocumentationPageInputV2,
7880
8133
  DTOElementActionInput,
7881
8134
  DTOElementActionOutput,
8135
+ DTOElementPropertyDefinition,
8136
+ DTOElementPropertyDefinitionsGetResponse,
8137
+ DTOElementPropertyValue,
8138
+ DTOElementPropertyValuesGetResponse,
8139
+ DTOElementView,
8140
+ DTOElementViewBasePropertyColumn,
8141
+ DTOElementViewColumn,
8142
+ DTOElementViewColumnSharedAttributes,
8143
+ DTOElementViewPropertyDefinitionColumn,
8144
+ DTOElementViewThemeColumn,
8145
+ DTOElementViewsListResponse,
7882
8146
  DTOElementsGetOutput,
7883
8147
  DTOElementsGetQuerySchema,
7884
8148
  DTOElementsGetTypeFilter,
@@ -7908,6 +8172,8 @@ export {
7908
8172
  blockToProsemirrorNode,
7909
8173
  buildDocPagePublishPaths,
7910
8174
  calculateElementParentChain,
8175
+ designSystemBrandToDto,
8176
+ designSystemVersionToDto,
7911
8177
  documentationElementsToHierarchyDto,
7912
8178
  documentationHierarchyToYjs,
7913
8179
  documentationPagesToDTOV1,
@@ -7915,6 +8181,9 @@ export {
7915
8181
  documentationPagesToStructureDTOV2,
7916
8182
  elementGroupsToDocumentationGroupDTO,
7917
8183
  elementGroupsToDocumentationGroupStructureDTO,
8184
+ elementPropertyDefinitionToDto,
8185
+ elementPropertyValueToDto,
8186
+ elementViewToDto,
7918
8187
  getMockPageBlockDefinitions,
7919
8188
  itemConfigurationToYjs,
7920
8189
  pageToProsemirrorDoc,