@supernova-studio/client 0.46.0 → 0.46.4

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
@@ -109,20 +109,20 @@ import { z as z98 } from "zod";
109
109
  import { z as z99 } from "zod";
110
110
  import { z as z100 } from "zod";
111
111
  import { z as z101 } from "zod";
112
+ import { z as z111 } from "zod";
112
113
  import { z as z102 } from "zod";
113
114
  import { z as z103 } from "zod";
114
- import { z as z104 } from "zod";
115
- import { z as z114 } from "zod";
116
115
  import { z as z105 } from "zod";
116
+ import { z as z104 } from "zod";
117
+ import { z as z107 } from "zod";
117
118
  import { z as z106 } from "zod";
119
+ import IPCIDR from "ip-cidr";
118
120
  import { z as z108 } from "zod";
119
- import { z as z107 } from "zod";
120
- import { z as z110 } from "zod";
121
121
  import { z as z109 } from "zod";
122
- import IPCIDR from "ip-cidr";
123
- import { z as z111 } from "zod";
122
+ import { z as z110 } from "zod";
124
123
  import { z as z112 } from "zod";
125
124
  import { z as z113 } from "zod";
125
+ import { z as z114 } from "zod";
126
126
  import { z as z115 } from "zod";
127
127
  import { z as z116 } from "zod";
128
128
  import { z as z117 } from "zod";
@@ -131,21 +131,21 @@ import { z as z119 } from "zod";
131
131
  import { z as z120 } from "zod";
132
132
  import { z as z121 } from "zod";
133
133
  import { z as z122 } from "zod";
134
+ import { z as z125 } from "zod";
134
135
  import { z as z123 } from "zod";
135
- import { z as z126 } from "zod";
136
136
  import { z as z124 } from "zod";
137
- import { z as z125 } from "zod";
137
+ import { z as z126 } from "zod";
138
+ import { z as z133 } from "zod";
138
139
  import { z as z127 } from "zod";
139
- import { z as z134 } from "zod";
140
140
  import { z as z128 } from "zod";
141
141
  import { z as z129 } from "zod";
142
142
  import { z as z130 } from "zod";
143
143
  import { z as z131 } from "zod";
144
144
  import { z as z132 } from "zod";
145
- import { z as z133 } from "zod";
145
+ import { z as z134 } from "zod";
146
+ import { z as z136 } from "zod";
146
147
  import { z as z135 } from "zod";
147
148
  import { z as z137 } from "zod";
148
- import { z as z136 } from "zod";
149
149
  import { z as z138 } from "zod";
150
150
  import { z as z139 } from "zod";
151
151
  import { z as z140 } from "zod";
@@ -153,6 +153,9 @@ import { z as z141 } from "zod";
153
153
  import { z as z142 } from "zod";
154
154
  import { z as z143 } from "zod";
155
155
  import { z as z144 } from "zod";
156
+ import { z as z145 } from "zod";
157
+ import { z as z146 } from "zod";
158
+ import { z as z147 } from "zod";
156
159
  import slugifyImplementation from "@sindresorhus/slugify";
157
160
  var PluginOAuthRequestSchema = z.object({
158
161
  id: z.string(),
@@ -811,6 +814,7 @@ var PageBlockShortcut = z34.object({
811
814
  description: nullishToOptional(z34.string()),
812
815
  asset: nullishToOptional(PageBlockAsset),
813
816
  documentationItemId: nullishToOptional(z34.string()),
817
+ pageHeadingId: nullishToOptional(z34.string()),
814
818
  url: nullishToOptional(z34.string()),
815
819
  openInNewTab: nullishToOptional(z34.boolean()),
816
820
  urlPreview: nullishToOptional(PageBlockUrlPreview),
@@ -1499,7 +1503,8 @@ var FigmaFileStructure = DesignElementBase.extend({
1499
1503
  data: FigmaFileStructureData
1500
1504
  });
1501
1505
  var FigmaNodeReferenceOrigin = z74.object({
1502
- sourceId: z74.string()
1506
+ sourceId: z74.string(),
1507
+ parentName: z74.string().optional()
1503
1508
  });
1504
1509
  var FigmaNodeReference = DesignElementBase.extend({
1505
1510
  data: FigmaNodeReferenceData,
@@ -2217,382 +2222,392 @@ var DocumentationPage = z98.object({
2217
2222
  createdAt: z98.coerce.date(),
2218
2223
  updatedAt: z98.coerce.date()
2219
2224
  });
2220
- var DesignSystemVersionRoom = Entity.extend({
2221
- designSystemVersionId: z99.string(),
2222
- liveblocksId: z99.string()
2223
- });
2224
- var DesignSystemVersionRoomInternalSettings = z99.object({
2225
- routingVersion: z99.string()
2226
- });
2227
- var DesignSystemVersionRoomInitialState = z99.object({
2228
- pages: z99.array(DocumentationPageV2),
2229
- groups: z99.array(ElementGroup),
2230
- internalSettings: DesignSystemVersionRoomInternalSettings
2231
- });
2232
- var DesignSystemVersionRoomUpdate = z99.object({
2233
- pages: z99.array(DocumentationPageV2),
2234
- groups: z99.array(ElementGroup),
2235
- deletedPageIds: z99.array(z99.string()),
2236
- deletedGroupIds: z99.array(z99.string())
2237
- });
2238
- var DocumentationPageRoom = Entity.extend({
2239
- designSystemVersionId: z100.string(),
2240
- documentationPageId: z100.string(),
2241
- liveblocksId: z100.string(),
2242
- isDirty: z100.boolean()
2243
- });
2244
- var DocumentationPageRoomState = z100.object({
2245
- pageItems: z100.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2246
- itemConfiguration: DocumentationItemConfigurationV2
2247
- });
2248
- var DocumentationPageRoomRoomUpdate = z100.object({
2249
- page: DocumentationPageV2,
2250
- pageParent: ElementGroup
2251
- });
2252
- var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
2253
- pageItems: z100.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2254
- blockDefinitions: z100.array(PageBlockDefinition)
2255
- });
2256
- var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2257
- RoomTypeEnum2["DocumentationPage"] = "documentation-page";
2258
- RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
2259
- return RoomTypeEnum2;
2260
- })(RoomTypeEnum || {});
2261
- var RoomTypeSchema = z101.nativeEnum(RoomTypeEnum);
2262
- var RoomType = RoomTypeSchema.enum;
2263
- var ElementViewBaseColumnType = z102.enum(["Name", "Description", "Value", "UpdatedAt"]);
2264
- var ElementViewColumnType = z102.union([
2265
- z102.literal("BaseProperty"),
2266
- z102.literal("PropertyDefinition"),
2267
- z102.literal("Theme")
2225
+ var ElementViewBaseColumnType = z99.enum(["Name", "Description", "Value", "UpdatedAt"]);
2226
+ var ElementViewColumnType = z99.union([
2227
+ z99.literal("BaseProperty"),
2228
+ z99.literal("PropertyDefinition"),
2229
+ z99.literal("Theme")
2268
2230
  ]);
2269
- var ElementViewColumnSharedAttributes = z102.object({
2270
- id: z102.string(),
2271
- persistentId: z102.string(),
2272
- elementDataViewId: z102.string(),
2273
- sortPosition: z102.number(),
2274
- width: z102.number()
2231
+ var ElementViewColumnSharedAttributes = z99.object({
2232
+ id: z99.string(),
2233
+ persistentId: z99.string(),
2234
+ elementDataViewId: z99.string(),
2235
+ sortPosition: z99.number(),
2236
+ width: z99.number()
2275
2237
  });
2276
2238
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
2277
- type: z102.literal("BaseProperty"),
2239
+ type: z99.literal("BaseProperty"),
2278
2240
  basePropertyType: ElementViewBaseColumnType
2279
2241
  });
2280
2242
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
2281
- type: z102.literal("PropertyDefinition"),
2282
- propertyDefinitionId: z102.string()
2243
+ type: z99.literal("PropertyDefinition"),
2244
+ propertyDefinitionId: z99.string()
2283
2245
  });
2284
2246
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
2285
- type: z102.literal("Theme"),
2286
- themeId: z102.string()
2247
+ type: z99.literal("Theme"),
2248
+ themeId: z99.string()
2287
2249
  });
2288
- var ElementViewColumn = z102.discriminatedUnion("type", [
2250
+ var ElementViewColumn = z99.discriminatedUnion("type", [
2289
2251
  ElementViewBasePropertyColumn,
2290
2252
  ElementViewPropertyDefinitionColumn,
2291
2253
  ElementViewThemeColumn
2292
2254
  ]);
2293
- var ElementView = z103.object({
2294
- id: z103.string(),
2295
- persistentId: z103.string(),
2296
- designSystemVersionId: z103.string(),
2297
- name: z103.string(),
2298
- description: z103.string(),
2255
+ var ElementView = z100.object({
2256
+ id: z100.string(),
2257
+ persistentId: z100.string(),
2258
+ designSystemVersionId: z100.string(),
2259
+ name: z100.string(),
2260
+ description: z100.string(),
2299
2261
  targetElementType: ElementPropertyTargetType,
2300
- isDefault: z103.boolean()
2301
- });
2302
- var Brand = z104.object({
2303
- id: z104.string(),
2304
- designSystemVersionId: z104.string(),
2305
- persistentId: z104.string(),
2306
- name: z104.string(),
2307
- description: z104.string()
2308
- });
2309
- var NpmRegistryAuthType = z105.enum(["Basic", "Bearer", "None", "Custom"]);
2310
- var NpmRegistryType = z105.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2311
- var NpmRegistryBasicAuthConfig = z105.object({
2312
- authType: z105.literal(NpmRegistryAuthType.Enum.Basic),
2313
- username: z105.string(),
2314
- password: z105.string()
2315
- });
2316
- var NpmRegistryBearerAuthConfig = z105.object({
2317
- authType: z105.literal(NpmRegistryAuthType.Enum.Bearer),
2318
- accessToken: z105.string()
2319
- });
2320
- var NpmRegistryNoAuthConfig = z105.object({
2321
- authType: z105.literal(NpmRegistryAuthType.Enum.None)
2322
- });
2323
- var NpmRegistrCustomAuthConfig = z105.object({
2324
- authType: z105.literal(NpmRegistryAuthType.Enum.Custom),
2325
- authHeaderName: z105.string(),
2326
- authHeaderValue: z105.string()
2327
- });
2328
- var NpmRegistryAuthConfig = z105.discriminatedUnion("authType", [
2262
+ isDefault: z100.boolean()
2263
+ });
2264
+ var Brand = z101.object({
2265
+ id: z101.string(),
2266
+ designSystemVersionId: z101.string(),
2267
+ persistentId: z101.string(),
2268
+ name: z101.string(),
2269
+ description: z101.string()
2270
+ });
2271
+ var NpmRegistryAuthType = z102.enum(["Basic", "Bearer", "None", "Custom"]);
2272
+ var NpmRegistryType = z102.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2273
+ var NpmRegistryBasicAuthConfig = z102.object({
2274
+ authType: z102.literal(NpmRegistryAuthType.Enum.Basic),
2275
+ username: z102.string(),
2276
+ password: z102.string()
2277
+ });
2278
+ var NpmRegistryBearerAuthConfig = z102.object({
2279
+ authType: z102.literal(NpmRegistryAuthType.Enum.Bearer),
2280
+ accessToken: z102.string()
2281
+ });
2282
+ var NpmRegistryNoAuthConfig = z102.object({
2283
+ authType: z102.literal(NpmRegistryAuthType.Enum.None)
2284
+ });
2285
+ var NpmRegistrCustomAuthConfig = z102.object({
2286
+ authType: z102.literal(NpmRegistryAuthType.Enum.Custom),
2287
+ authHeaderName: z102.string(),
2288
+ authHeaderValue: z102.string()
2289
+ });
2290
+ var NpmRegistryAuthConfig = z102.discriminatedUnion("authType", [
2329
2291
  NpmRegistryBasicAuthConfig,
2330
2292
  NpmRegistryBearerAuthConfig,
2331
2293
  NpmRegistryNoAuthConfig,
2332
2294
  NpmRegistrCustomAuthConfig
2333
2295
  ]);
2334
- var NpmRegistryConfigBase = z105.object({
2296
+ var NpmRegistryConfigBase = z102.object({
2335
2297
  registryType: NpmRegistryType,
2336
- enabledScopes: z105.array(z105.string()),
2337
- customRegistryUrl: z105.string().optional(),
2338
- bypassProxy: z105.boolean().default(false),
2339
- npmProxyRegistryConfigId: z105.string().optional(),
2340
- npmProxyVersion: z105.number().optional()
2298
+ enabledScopes: z102.array(z102.string()),
2299
+ customRegistryUrl: z102.string().optional(),
2300
+ bypassProxy: z102.boolean().default(false),
2301
+ npmProxyRegistryConfigId: z102.string().optional(),
2302
+ npmProxyVersion: z102.number().optional()
2341
2303
  });
2342
2304
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2343
- var SsoProvider = z106.object({
2344
- providerId: z106.string(),
2345
- defaultAutoInviteValue: z106.boolean(),
2346
- autoInviteDomains: z106.record(z106.string(), z106.boolean()),
2347
- skipDocsSupernovaLogin: z106.boolean(),
2348
- areInvitesDisabled: z106.boolean(),
2349
- isTestMode: z106.boolean(),
2350
- emailDomains: z106.array(z106.string()),
2351
- metadataXml: z106.string().nullish()
2352
- });
2353
- var WorkspaceRoleSchema = z107.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2305
+ var SsoProvider = z103.object({
2306
+ providerId: z103.string(),
2307
+ defaultAutoInviteValue: z103.boolean(),
2308
+ autoInviteDomains: z103.record(z103.string(), z103.boolean()),
2309
+ skipDocsSupernovaLogin: z103.boolean(),
2310
+ areInvitesDisabled: z103.boolean(),
2311
+ isTestMode: z103.boolean(),
2312
+ emailDomains: z103.array(z103.string()),
2313
+ metadataXml: z103.string().nullish()
2314
+ });
2315
+ var WorkspaceRoleSchema = z104.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2354
2316
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2355
2317
  var MAX_MEMBERS_COUNT = 100;
2356
- var UserInvite = z108.object({
2357
- email: z108.string().email().trim().transform((value) => value.toLowerCase()),
2318
+ var UserInvite = z105.object({
2319
+ email: z105.string().email().trim().transform((value) => value.toLowerCase()),
2358
2320
  role: WorkspaceRoleSchema
2359
2321
  });
2360
- var UserInvites = z108.array(UserInvite).max(MAX_MEMBERS_COUNT);
2322
+ var UserInvites = z105.array(UserInvite).max(MAX_MEMBERS_COUNT);
2361
2323
  var isValidCIDR = (value) => {
2362
2324
  return IPCIDR.isValidAddress(value);
2363
2325
  };
2364
- var WorkspaceIpWhitelistEntry = z109.object({
2365
- isEnabled: z109.boolean(),
2366
- name: z109.string(),
2367
- range: z109.string().refine(isValidCIDR, {
2326
+ var WorkspaceIpWhitelistEntry = z106.object({
2327
+ isEnabled: z106.boolean(),
2328
+ name: z106.string(),
2329
+ range: z106.string().refine(isValidCIDR, {
2368
2330
  message: "Invalid IP CIDR"
2369
2331
  })
2370
2332
  });
2371
- var WorkspaceIpSettings = z109.object({
2372
- isEnabledForCloud: z109.boolean(),
2373
- isEnabledForDocs: z109.boolean(),
2374
- entries: z109.array(WorkspaceIpWhitelistEntry)
2333
+ var WorkspaceIpSettings = z106.object({
2334
+ isEnabledForCloud: z106.boolean(),
2335
+ isEnabledForDocs: z106.boolean(),
2336
+ entries: z106.array(WorkspaceIpWhitelistEntry)
2375
2337
  });
2376
- var WorkspaceProfile = z109.object({
2377
- name: z109.string(),
2378
- handle: z109.string(),
2379
- color: z109.string(),
2380
- avatar: nullishToOptional(z109.string()),
2338
+ var WorkspaceProfile = z106.object({
2339
+ name: z106.string(),
2340
+ handle: z106.string(),
2341
+ color: z106.string(),
2342
+ avatar: nullishToOptional(z106.string()),
2381
2343
  billingDetails: nullishToOptional(BillingDetails)
2382
2344
  });
2383
- var Workspace = z109.object({
2384
- id: z109.string(),
2345
+ var Workspace = z106.object({
2346
+ id: z106.string(),
2385
2347
  profile: WorkspaceProfile,
2386
2348
  subscription: Subscription,
2387
2349
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2388
2350
  sso: nullishToOptional(SsoProvider),
2389
2351
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
2390
- designSystems: z109.array(DesignSystem).nullish()
2352
+ designSystems: z106.array(DesignSystem).nullish()
2391
2353
  });
2392
- var WorkspaceWithDesignSystems = z109.object({
2354
+ var WorkspaceWithDesignSystems = z106.object({
2393
2355
  workspace: Workspace,
2394
- designSystems: z109.array(DesignSystem)
2356
+ designSystems: z106.array(DesignSystem)
2395
2357
  });
2396
- var WorkspaceContext = z110.object({
2397
- workspaceId: z110.string(),
2358
+ var WorkspaceContext = z107.object({
2359
+ workspaceId: z107.string(),
2398
2360
  product: ProductCodeSchema,
2399
2361
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2400
- publicDesignSystem: z110.boolean().optional()
2362
+ publicDesignSystem: z107.boolean().optional()
2401
2363
  });
2402
2364
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
2403
2365
  var WORKSPACE_NAME_MIN_LENGTH = 2;
2404
2366
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2405
2367
  var HANDLE_MIN_LENGTH = 2;
2406
2368
  var HANDLE_MAX_LENGTH = 64;
2407
- var CreateWorkspaceInput = z111.object({
2408
- name: z111.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2369
+ var CreateWorkspaceInput = z108.object({
2370
+ name: z108.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2409
2371
  product: ProductCodeSchema,
2410
- priceId: z111.string(),
2411
- billingEmail: z111.string().email().optional(),
2412
- handle: z111.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2372
+ priceId: z108.string(),
2373
+ billingEmail: z108.string().email().optional(),
2374
+ handle: z108.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2413
2375
  invites: UserInvites.optional(),
2414
- promoCode: z111.string().optional(),
2376
+ promoCode: z108.string().optional(),
2415
2377
  status: InternalStatusSchema.optional(),
2416
2378
  planInterval: BillingIntervalSchema.optional(),
2417
- seats: z111.number().optional(),
2418
- seatLimit: z111.number().optional(),
2379
+ seats: z108.number().optional(),
2380
+ seatLimit: z108.number().optional(),
2419
2381
  card: CardSchema.optional(),
2420
2382
  sso: SsoProvider.optional(),
2421
2383
  npmRegistrySettings: NpmRegistryConfig.optional(),
2422
2384
  ipWhitelist: WorkspaceIpSettings.optional()
2423
2385
  });
2424
- var WorkspaceInvitation = z112.object({
2425
- id: z112.string(),
2426
- email: z112.string().email(),
2427
- createdAt: z112.coerce.date(),
2428
- resentAt: z112.coerce.date().nullish(),
2429
- role: z112.nativeEnum(WorkspaceRole),
2430
- workspaceId: z112.string(),
2431
- invitedBy: z112.string()
2432
- });
2433
- var WorkspaceMembership = z113.object({
2434
- id: z113.string(),
2435
- userId: z113.string(),
2436
- workspaceId: z113.string(),
2437
- workspaceRole: z113.nativeEnum(WorkspaceRole)
2438
- });
2439
- var UpdateMembershipRolesInput = z113.object({
2440
- members: z113.array(
2441
- z113.object({
2442
- userId: z113.string(),
2443
- role: z113.nativeEnum(WorkspaceRole)
2386
+ var WorkspaceInvitation = z109.object({
2387
+ id: z109.string(),
2388
+ email: z109.string().email(),
2389
+ createdAt: z109.coerce.date(),
2390
+ resentAt: z109.coerce.date().nullish(),
2391
+ role: z109.nativeEnum(WorkspaceRole),
2392
+ workspaceId: z109.string(),
2393
+ invitedBy: z109.string()
2394
+ });
2395
+ var WorkspaceMembership = z110.object({
2396
+ id: z110.string(),
2397
+ userId: z110.string(),
2398
+ workspaceId: z110.string(),
2399
+ workspaceRole: z110.nativeEnum(WorkspaceRole)
2400
+ });
2401
+ var UpdateMembershipRolesInput = z110.object({
2402
+ members: z110.array(
2403
+ z110.object({
2404
+ userId: z110.string(),
2405
+ role: z110.nativeEnum(WorkspaceRole)
2444
2406
  })
2445
2407
  )
2446
2408
  });
2447
- var DesignSystemSwitcher = z114.object({
2448
- isEnabled: z114.boolean(),
2449
- designSystemIds: z114.array(z114.string())
2450
- });
2451
- var DesignSystem = z114.object({
2452
- id: z114.string(),
2453
- workspaceId: z114.string(),
2454
- name: z114.string(),
2455
- description: z114.string(),
2456
- docExporterId: nullishToOptional(z114.string()),
2457
- docSlug: z114.string(),
2458
- docUserSlug: nullishToOptional(z114.string()),
2459
- docSlugDeprecated: z114.string(),
2460
- isPublic: z114.boolean(),
2461
- isMultibrand: z114.boolean(),
2462
- docViewUrl: nullishToOptional(z114.string()),
2463
- basePrefixes: z114.array(z114.string()),
2409
+ var DesignSystemSwitcher = z111.object({
2410
+ isEnabled: z111.boolean(),
2411
+ designSystemIds: z111.array(z111.string())
2412
+ });
2413
+ var DesignSystem = z111.object({
2414
+ id: z111.string(),
2415
+ workspaceId: z111.string(),
2416
+ name: z111.string(),
2417
+ description: z111.string(),
2418
+ docExporterId: nullishToOptional(z111.string()),
2419
+ docSlug: z111.string(),
2420
+ docUserSlug: nullishToOptional(z111.string()),
2421
+ docSlugDeprecated: z111.string(),
2422
+ isPublic: z111.boolean(),
2423
+ isMultibrand: z111.boolean(),
2424
+ docViewUrl: nullishToOptional(z111.string()),
2425
+ basePrefixes: z111.array(z111.string()),
2464
2426
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2465
- createdAt: z114.coerce.date(),
2466
- updatedAt: z114.coerce.date()
2427
+ createdAt: z111.coerce.date(),
2428
+ updatedAt: z111.coerce.date()
2467
2429
  });
2468
- var DesignSystemWithWorkspace = z114.object({
2430
+ var DesignSystemWithWorkspace = z111.object({
2469
2431
  designSystem: DesignSystem,
2470
2432
  workspace: Workspace
2471
2433
  });
2472
2434
  var DS_NAME_MIN_LENGTH = 2;
2473
2435
  var DS_NAME_MAX_LENGTH = 64;
2474
2436
  var DS_DESC_MAX_LENGTH = 64;
2475
- var DesignSystemCreateInputMetadata = z115.object({
2476
- name: z115.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2477
- description: z115.string().max(DS_DESC_MAX_LENGTH).trim()
2437
+ var DesignSystemCreateInputMetadata = z112.object({
2438
+ name: z112.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2439
+ description: z112.string().max(DS_DESC_MAX_LENGTH).trim()
2478
2440
  });
2479
- var DesignSystemCreateInput = z115.object({
2441
+ var DesignSystemCreateInput = z112.object({
2480
2442
  meta: DesignSystemCreateInputMetadata,
2481
- workspaceId: z115.string(),
2482
- isPublic: z115.boolean().optional(),
2483
- basePrefixes: z115.array(z115.string()).optional(),
2484
- docUserSlug: z115.string().nullish().optional(),
2485
- source: z115.array(z115.string()).optional()
2443
+ workspaceId: z112.string(),
2444
+ isPublic: z112.boolean().optional(),
2445
+ basePrefixes: z112.array(z112.string()).optional(),
2446
+ docUserSlug: z112.string().nullish().optional(),
2447
+ source: z112.array(z112.string()).optional()
2486
2448
  });
2487
2449
  var DS_NAME_MIN_LENGTH2 = 2;
2488
2450
  var DS_NAME_MAX_LENGTH2 = 64;
2489
2451
  var DS_DESC_MAX_LENGTH2 = 64;
2490
- var DesignSystemUpdateInputMetadata = z116.object({
2491
- name: z116.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2492
- description: z116.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2452
+ var DesignSystemUpdateInputMetadata = z113.object({
2453
+ name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2454
+ description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2493
2455
  });
2494
- var DesignSystemUpdateInput = z116.object({
2456
+ var DesignSystemUpdateInput = z113.object({
2495
2457
  meta: DesignSystemUpdateInputMetadata.optional(),
2496
- workspaceId: z116.string().optional(),
2497
- isPublic: z116.boolean().optional(),
2498
- basePrefixes: z116.array(z116.string()).optional(),
2499
- docUserSlug: z116.string().nullish().optional(),
2500
- source: z116.array(z116.string()).optional(),
2501
- name: z116.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2502
- description: z116.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2503
- docExporterId: z116.string().optional()
2504
- });
2505
- var ExporterPropertyImageValue = z117.object({
2458
+ workspaceId: z113.string().optional(),
2459
+ isPublic: z113.boolean().optional(),
2460
+ basePrefixes: z113.array(z113.string()).optional(),
2461
+ docUserSlug: z113.string().nullish().optional(),
2462
+ source: z113.array(z113.string()).optional(),
2463
+ name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2464
+ description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2465
+ docExporterId: z113.string().optional()
2466
+ });
2467
+ var ExporterPropertyImageValue = z114.object({
2506
2468
  asset: PageBlockAsset.optional(),
2507
- assetId: z117.string().optional(),
2508
- assetUrl: z117.string().optional()
2509
- });
2510
- var ExporterPropertyValue = z117.object({
2511
- key: z117.string(),
2512
- value: z117.union([
2513
- z117.number(),
2514
- z117.string(),
2515
- z117.boolean(),
2469
+ assetId: z114.string().optional(),
2470
+ assetUrl: z114.string().optional()
2471
+ });
2472
+ var ExporterPropertyValue = z114.object({
2473
+ key: z114.string(),
2474
+ value: z114.union([
2475
+ z114.number(),
2476
+ z114.string(),
2477
+ z114.boolean(),
2516
2478
  ExporterPropertyImageValue,
2517
2479
  ColorTokenData,
2518
2480
  TypographyTokenData
2519
2481
  ])
2520
2482
  });
2521
- var ExporterPropertyValuesCollection = z117.object({
2522
- id: z117.string(),
2523
- designSystemId: z117.string(),
2524
- exporterId: z117.string(),
2525
- values: z117.array(ExporterPropertyValue)
2526
- });
2527
- var PublishedDocPage = z118.object({
2528
- id: z118.string(),
2529
- publishedDocId: z118.string(),
2530
- pageShortPersistentId: z118.string(),
2531
- pathV1: z118.string(),
2532
- pathV2: z118.string(),
2533
- storagePath: z118.string(),
2534
- fallbackPublicPath: z118.string().optional(),
2535
- locale: z118.string().optional(),
2536
- isPrivate: z118.boolean(),
2537
- isHidden: z118.boolean(),
2538
- createdAt: z118.coerce.date(),
2539
- updatedAt: z118.coerce.date()
2483
+ var ExporterPropertyValuesCollection = z114.object({
2484
+ id: z114.string(),
2485
+ designSystemId: z114.string(),
2486
+ exporterId: z114.string(),
2487
+ values: z114.array(ExporterPropertyValue)
2488
+ });
2489
+ var PublishedDocPage = z115.object({
2490
+ id: z115.string(),
2491
+ publishedDocId: z115.string(),
2492
+ pageShortPersistentId: z115.string(),
2493
+ pathV1: z115.string(),
2494
+ pathV2: z115.string(),
2495
+ storagePath: z115.string(),
2496
+ locale: z115.string().optional(),
2497
+ isPrivate: z115.boolean(),
2498
+ isHidden: z115.boolean(),
2499
+ createdAt: z115.coerce.date(),
2500
+ updatedAt: z115.coerce.date()
2540
2501
  });
2541
2502
  var publishedDocEnvironments = ["Live", "Preview"];
2542
- var PublishedDocEnvironment = z119.enum(publishedDocEnvironments);
2543
- var PublishedDocsChecksums = z119.record(z119.string());
2544
- var PublishedDocRoutingVersion = z119.enum(["1", "2"]);
2545
- var PublishedDoc = z119.object({
2546
- id: z119.string(),
2547
- designSystemVersionId: z119.string(),
2548
- createdAt: z119.coerce.date(),
2549
- updatedAt: z119.coerce.date(),
2550
- lastPublishedAt: z119.coerce.date(),
2551
- isDefault: z119.boolean(),
2552
- isPublic: z119.boolean(),
2503
+ var PublishedDocEnvironment = z116.enum(publishedDocEnvironments);
2504
+ var PublishedDocsChecksums = z116.record(z116.string());
2505
+ var PublishedDocRoutingVersion = z116.enum(["1", "2"]);
2506
+ var PublishedDoc = z116.object({
2507
+ id: z116.string(),
2508
+ designSystemVersionId: z116.string(),
2509
+ createdAt: z116.coerce.date(),
2510
+ updatedAt: z116.coerce.date(),
2511
+ lastPublishedAt: z116.coerce.date(),
2512
+ isDefault: z116.boolean(),
2513
+ isPublic: z116.boolean(),
2553
2514
  environment: PublishedDocEnvironment,
2554
2515
  checksums: PublishedDocsChecksums,
2555
- storagePath: z119.string(),
2556
- wasMigrated: z119.boolean(),
2516
+ storagePath: z116.string(),
2517
+ wasMigrated: z116.boolean(),
2557
2518
  routingVersion: PublishedDocRoutingVersion,
2558
- usesLocalizations: z119.boolean(),
2559
- wasPublishedWithLocalizations: z119.boolean()
2560
- });
2561
- var DesignSystemVersion = z120.object({
2562
- id: z120.string(),
2563
- version: z120.string(),
2564
- createdAt: z120.date(),
2565
- designSystemId: z120.string(),
2566
- name: z120.string(),
2567
- comment: z120.string(),
2568
- isReadonly: z120.boolean(),
2569
- changeLog: z120.string(),
2570
- parentId: z120.string().optional()
2571
- });
2572
- var ExporterJobDestination = z121.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2573
- var ExporterJobStatus = z121.enum(["InProgress", "Success", "Failed", "Timeout"]);
2574
- var ExporterJobLogEntryType = z121.enum(["success", "info", "warning", "error", "user"]);
2575
- var ExporterJobLogEntry = z121.object({
2576
- id: z121.string().optional(),
2577
- time: z121.coerce.date(),
2519
+ usesLocalizations: z116.boolean(),
2520
+ wasPublishedWithLocalizations: z116.boolean()
2521
+ });
2522
+ var DesignSystemVersion = z117.object({
2523
+ id: z117.string(),
2524
+ version: z117.string(),
2525
+ createdAt: z117.date(),
2526
+ designSystemId: z117.string(),
2527
+ name: z117.string(),
2528
+ comment: z117.string(),
2529
+ isReadonly: z117.boolean(),
2530
+ changeLog: z117.string(),
2531
+ parentId: z117.string().optional()
2532
+ });
2533
+ var VersionCreationJobStatus = z117.enum(["Success", "InProgress", "Error"]);
2534
+ var VersionCreationJob = z117.object({
2535
+ id: z117.string(),
2536
+ version: z117.string(),
2537
+ designSystemId: z117.string(),
2538
+ designSystemVersionId: nullishToOptional(z117.string()),
2539
+ status: VersionCreationJobStatus,
2540
+ errorMessage: nullishToOptional(z117.string())
2541
+ });
2542
+ var ExporterDestinationSnDocs = z118.object({
2543
+ environment: PublishedDocEnvironment
2544
+ });
2545
+ var ExporterDestinationS3 = z118.object({});
2546
+ var ExporterDestinationGithub = z118.object({
2547
+ connectionId: z118.string(),
2548
+ url: z118.string(),
2549
+ branch: z118.string(),
2550
+ relativePath: z118.string(),
2551
+ // +
2552
+ userId: z118.coerce.string()
2553
+ });
2554
+ var ExporterDestinationAzure = z118.object({
2555
+ connectionId: z118.string(),
2556
+ organizationId: z118.string(),
2557
+ projectId: z118.string(),
2558
+ repositoryId: z118.string(),
2559
+ branch: z118.string(),
2560
+ relativePath: z118.string(),
2561
+ // +
2562
+ userId: z118.coerce.string(),
2563
+ url: z118.string()
2564
+ });
2565
+ var ExporterDestinationGitlab = z118.object({
2566
+ connectionId: z118.string(),
2567
+ projectId: z118.string(),
2568
+ branch: z118.string(),
2569
+ relativePath: z118.string(),
2570
+ // +
2571
+ userId: z118.coerce.string(),
2572
+ url: z118.string()
2573
+ });
2574
+ var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2575
+ var BITBUCKET_MAX_LENGTH = 64;
2576
+ var ExporterDestinationBitbucket = z118.object({
2577
+ connectionId: z118.string(),
2578
+ workspaceSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2579
+ projectKey: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2580
+ repoSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2581
+ branch: z118.string(),
2582
+ relativePath: z118.string(),
2583
+ // +
2584
+ userId: z118.coerce.string(),
2585
+ url: z118.string()
2586
+ });
2587
+ var ExporterJobDestination = z119.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2588
+ var ExporterJobStatus = z119.enum(["InProgress", "Success", "Failed", "Timeout"]);
2589
+ var ExporterJobLogEntryType = z119.enum(["success", "info", "warning", "error", "user"]);
2590
+ var ExporterJobLogEntry = z119.object({
2591
+ id: z119.string().optional(),
2592
+ time: z119.coerce.date(),
2578
2593
  type: ExporterJobLogEntryType,
2579
- message: z121.string()
2594
+ message: z119.string()
2580
2595
  });
2581
- var ExporterJobResultPullRequestDestination = z121.object({
2582
- pullRequestUrl: z121.string()
2596
+ var ExporterJobResultPullRequestDestination = z119.object({
2597
+ pullRequestUrl: z119.string()
2583
2598
  });
2584
- var ExporterJobResultS3Destination = z121.object({
2585
- bucket: z121.string(),
2586
- urlPrefix: z121.string().optional(),
2587
- path: z121.string(),
2588
- files: z121.array(z121.string())
2599
+ var ExporterJobResultS3Destination = z119.object({
2600
+ bucket: z119.string(),
2601
+ urlPrefix: z119.string().optional(),
2602
+ path: z119.string(),
2603
+ files: z119.array(z119.string())
2589
2604
  });
2590
- var ExporterJobResultDocsDestination = z121.object({
2591
- url: z121.string()
2605
+ var ExporterJobResultDocsDestination = z119.object({
2606
+ url: z119.string()
2592
2607
  });
2593
- var ExporterJobResult = z121.object({
2594
- error: z121.string().optional(),
2595
- logs: z121.array(ExporterJobLogEntry).optional(),
2608
+ var ExporterJobResult = z119.object({
2609
+ error: z119.string().optional(),
2610
+ logs: z119.array(ExporterJobLogEntry).optional(),
2596
2611
  s3: ExporterJobResultS3Destination.optional(),
2597
2612
  github: ExporterJobResultPullRequestDestination.optional(),
2598
2613
  azure: ExporterJobResultPullRequestDestination.optional(),
@@ -2600,68 +2615,23 @@ var ExporterJobResult = z121.object({
2600
2615
  bitbucket: ExporterJobResultPullRequestDestination.optional(),
2601
2616
  sndocs: ExporterJobResultDocsDestination.optional()
2602
2617
  });
2603
- var ExporterDestinationSnDocs = z121.object({
2604
- environment: PublishedDocEnvironment
2605
- });
2606
- var ExporterDestinationS3 = z121.object({});
2607
- var ExporterDestinationGithub = z121.object({
2608
- connectionId: z121.string(),
2609
- url: z121.string(),
2610
- branch: z121.string(),
2611
- relativePath: z121.string(),
2612
- // +
2613
- userId: z121.coerce.string()
2614
- });
2615
- var ExporterDestinationAzure = z121.object({
2616
- connectionId: z121.string(),
2617
- organizationId: z121.string(),
2618
- projectId: z121.string(),
2619
- repositoryId: z121.string(),
2620
- branch: z121.string(),
2621
- relativePath: z121.string(),
2622
- // +
2623
- userId: z121.coerce.string(),
2624
- url: z121.string()
2625
- });
2626
- var ExporterDestinationGitlab = z121.object({
2627
- connectionId: z121.string(),
2628
- projectId: z121.string(),
2629
- branch: z121.string(),
2630
- relativePath: z121.string(),
2631
- // +
2632
- userId: z121.coerce.string(),
2633
- url: z121.string()
2634
- });
2635
- var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2636
- var BITBUCKET_MAX_LENGTH = 64;
2637
- var ExporterDestinationBitbucket = z121.object({
2638
- connectionId: z121.string(),
2639
- workspaceSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2640
- projectKey: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2641
- repoSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2642
- branch: z121.string(),
2643
- relativePath: z121.string(),
2644
- // +
2645
- userId: z121.coerce.string(),
2646
- url: z121.string()
2647
- });
2648
- var ExporterJob = z121.object({
2649
- id: z121.coerce.string(),
2650
- createdAt: z121.coerce.date(),
2651
- finishedAt: z121.coerce.date().optional(),
2652
- designSystemId: z121.coerce.string(),
2653
- designSystemVersionId: z121.coerce.string(),
2654
- workspaceId: z121.coerce.string(),
2655
- scheduleId: z121.coerce.string().nullish(),
2656
- exporterId: z121.coerce.string(),
2657
- brandId: z121.coerce.string().optional(),
2658
- themeId: z121.coerce.string().optional(),
2659
- estimatedExecutionTime: z121.number().optional(),
2618
+ var ExporterJob = z119.object({
2619
+ id: z119.coerce.string(),
2620
+ createdAt: z119.coerce.date(),
2621
+ finishedAt: z119.coerce.date().optional(),
2622
+ designSystemId: z119.coerce.string(),
2623
+ designSystemVersionId: z119.coerce.string(),
2624
+ workspaceId: z119.coerce.string(),
2625
+ scheduleId: z119.coerce.string().nullish(),
2626
+ exporterId: z119.coerce.string(),
2627
+ brandId: z119.coerce.string().optional(),
2628
+ themeId: z119.coerce.string().optional(),
2629
+ estimatedExecutionTime: z119.number().optional(),
2660
2630
  status: ExporterJobStatus,
2661
2631
  result: ExporterJobResult.optional(),
2662
- createdByUserId: z121.string().optional(),
2632
+ createdByUserId: z119.string().optional(),
2663
2633
  // CodegenDestinationsModel
2664
- webhookUrl: z121.string().optional(),
2634
+ webhookUrl: z119.string().optional(),
2665
2635
  destinationSnDocs: ExporterDestinationSnDocs.optional(),
2666
2636
  destinationS3: ExporterDestinationS3.optional(),
2667
2637
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -2680,14 +2650,34 @@ var ExporterJobFindByFilter = ExporterJob.pick({
2680
2650
  themeId: true,
2681
2651
  brandId: true
2682
2652
  }).extend({
2683
- destinations: z121.array(ExporterJobDestination),
2653
+ destinations: z119.array(ExporterJobDestination),
2684
2654
  docsEnvironment: PublishedDocEnvironment
2685
2655
  }).partial();
2686
- var ExporterWorkspaceMembershipRole = z122.enum(["Owner", "OwnerArchived", "User"]);
2687
- var ExporterWorkspaceMembership = z123.object({
2688
- id: z123.string(),
2689
- workspaceId: z123.string(),
2690
- exporterId: z123.string(),
2656
+ var ExporterScheduleEventType = z120.enum(["InProgress", "Success", "Failed", "Timeout"]);
2657
+ var ExporterSchedule = z120.object({
2658
+ id: z120.coerce.string(),
2659
+ name: z120.coerce.string(),
2660
+ eventType: ExporterScheduleEventType,
2661
+ isEnabled: z120.coerce.boolean(),
2662
+ workspaceId: z120.coerce.string(),
2663
+ designSystemId: z120.coerce.string(),
2664
+ exporterId: z120.coerce.string(),
2665
+ brandId: z120.coerce.string().optional(),
2666
+ themeId: z120.coerce.string().optional(),
2667
+ // CodegenDestinationsModel
2668
+ webhookUrl: z120.string().optional(),
2669
+ destinationSnDocs: ExporterDestinationSnDocs.optional(),
2670
+ destinationS3: ExporterDestinationS3.optional(),
2671
+ destinationGithub: ExporterDestinationGithub.optional(),
2672
+ destinationAzure: ExporterDestinationAzure.optional(),
2673
+ destinationGitlab: ExporterDestinationGitlab.optional(),
2674
+ destinationBitbucket: ExporterDestinationBitbucket.optional()
2675
+ });
2676
+ var ExporterWorkspaceMembershipRole = z121.enum(["Owner", "OwnerArchived", "User"]);
2677
+ var ExporterWorkspaceMembership = z122.object({
2678
+ id: z122.string(),
2679
+ workspaceId: z122.string(),
2680
+ exporterId: z122.string(),
2691
2681
  role: ExporterWorkspaceMembershipRole
2692
2682
  });
2693
2683
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
@@ -2697,8 +2687,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2697
2687
  GitProviderNames2["Bitbucket"] = "bitbucket";
2698
2688
  return GitProviderNames2;
2699
2689
  })(GitProviderNames || {});
2700
- var GitProvider = z124.nativeEnum(GitProviderNames);
2701
- var PulsarPropertyType = z125.enum([
2690
+ var GitProvider = z123.nativeEnum(GitProviderNames);
2691
+ var PulsarPropertyType = z124.enum([
2702
2692
  "string",
2703
2693
  "number",
2704
2694
  "boolean",
@@ -2711,174 +2701,174 @@ var PulsarPropertyType = z125.enum([
2711
2701
  "tokenProperties",
2712
2702
  "tokenType"
2713
2703
  ]);
2714
- var PulsarBaseProperty = z125.object({
2715
- label: z125.string(),
2716
- key: z125.string(),
2717
- description: z125.string().nullish(),
2704
+ var PulsarBaseProperty = z124.object({
2705
+ label: z124.string(),
2706
+ key: z124.string(),
2707
+ description: z124.string().nullish(),
2718
2708
  type: PulsarPropertyType,
2719
- values: z125.array(z125.string()).nullish(),
2720
- default: z125.union([z125.string(), z125.boolean(), z125.number()]).nullish(),
2709
+ values: z124.array(z124.string()).nullish(),
2710
+ default: z124.union([z124.string(), z124.boolean(), z124.number()]).nullish(),
2721
2711
  // PulsarPropertyValueType //is optional?
2722
- inputType: z125.enum(["code", "plain"]).optional(),
2712
+ inputType: z124.enum(["code", "plain"]).optional(),
2723
2713
  //is optional?
2724
- isMultiline: z125.boolean().nullish()
2714
+ isMultiline: z124.boolean().nullish()
2725
2715
  });
2726
2716
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
2727
- category: z125.string()
2728
- });
2729
- var PulsarContributionVariant = z125.object({
2730
- key: z125.string(),
2731
- name: z125.string(),
2732
- isDefault: nullishToOptional(z125.boolean()),
2733
- description: nullishToOptional(z125.string()),
2734
- thumbnailURL: nullishToOptional(z125.string())
2735
- });
2736
- var PulsarCustomBlock = z125.object({
2737
- title: nullishToOptional(z125.string()),
2738
- key: z125.string(),
2739
- category: nullishToOptional(z125.string()),
2740
- description: nullishToOptional(z125.string()),
2717
+ category: z124.string()
2718
+ });
2719
+ var PulsarContributionVariant = z124.object({
2720
+ key: z124.string(),
2721
+ name: z124.string(),
2722
+ isDefault: nullishToOptional(z124.boolean()),
2723
+ description: nullishToOptional(z124.string()),
2724
+ thumbnailURL: nullishToOptional(z124.string())
2725
+ });
2726
+ var PulsarCustomBlock = z124.object({
2727
+ title: nullishToOptional(z124.string()),
2728
+ key: z124.string(),
2729
+ category: nullishToOptional(z124.string()),
2730
+ description: nullishToOptional(z124.string()),
2731
+ iconURL: nullishToOptional(z124.string()),
2732
+ mode: nullishToOptional(z124.enum(["array", "block"])),
2733
+ properties: nullishToOptional(z124.array(PulsarBaseProperty)).transform((v) => v ?? [])
2734
+ });
2735
+ var ExporterType = z125.enum(["code", "documentation"]);
2736
+ var ExporterSource = z125.enum(["git", "upload"]);
2737
+ var ExporterTag = z125.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2738
+ var ExporterDetails = z125.object({
2739
+ description: z125.string(),
2740
+ version: z125.string(),
2741
+ routingVersion: nullishToOptional(z125.string()),
2742
+ author: nullishToOptional(z125.string()),
2743
+ organization: nullishToOptional(z125.string()),
2744
+ homepage: nullishToOptional(z125.string()),
2745
+ readme: nullishToOptional(z125.string()),
2746
+ tags: nullishToOptional(z125.array(ExporterTag)).default([]),
2747
+ packageId: nullishToOptional(z125.string().max(255)),
2741
2748
  iconURL: nullishToOptional(z125.string()),
2742
- mode: nullishToOptional(z125.enum(["array", "block"])),
2743
- properties: nullishToOptional(z125.array(PulsarBaseProperty)).transform((v) => v ?? [])
2744
- });
2745
- var ExporterType = z126.enum(["code", "documentation"]);
2746
- var ExporterSource = z126.enum(["git", "upload"]);
2747
- var ExporterTag = z126.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2748
- var ExporterDetails = z126.object({
2749
- description: z126.string(),
2750
- version: z126.string(),
2751
- routingVersion: nullishToOptional(z126.string()),
2752
- author: nullishToOptional(z126.string()),
2753
- organization: nullishToOptional(z126.string()),
2754
- homepage: nullishToOptional(z126.string()),
2755
- readme: nullishToOptional(z126.string()),
2756
- tags: nullishToOptional(z126.array(ExporterTag)).default([]),
2757
- packageId: nullishToOptional(z126.string().max(255)),
2758
- iconURL: nullishToOptional(z126.string()),
2759
- configurationProperties: nullishToOptional(z126.array(PulsarContributionConfigurationProperty)).default([]),
2760
- customBlocks: nullishToOptional(z126.array(PulsarCustomBlock)).default([]),
2761
- blockVariants: nullishToOptional(z126.record(z126.string(), z126.array(PulsarContributionVariant))).default({}),
2762
- usesBrands: nullishToOptional(z126.boolean()).default(false),
2763
- usesThemes: nullishToOptional(z126.boolean()).default(false),
2749
+ configurationProperties: nullishToOptional(z125.array(PulsarContributionConfigurationProperty)).default([]),
2750
+ customBlocks: nullishToOptional(z125.array(PulsarCustomBlock)).default([]),
2751
+ blockVariants: nullishToOptional(z125.record(z125.string(), z125.array(PulsarContributionVariant))).default({}),
2752
+ usesBrands: nullishToOptional(z125.boolean()).default(false),
2753
+ usesThemes: nullishToOptional(z125.boolean()).default(false),
2764
2754
  source: ExporterSource,
2765
2755
  gitProvider: nullishToOptional(GitProvider),
2766
- gitUrl: nullishToOptional(z126.string()),
2767
- gitBranch: nullishToOptional(z126.string()),
2768
- gitDirectory: nullishToOptional(z126.string())
2756
+ gitUrl: nullishToOptional(z125.string()),
2757
+ gitBranch: nullishToOptional(z125.string()),
2758
+ gitDirectory: nullishToOptional(z125.string())
2769
2759
  });
2770
- var Exporter = z126.object({
2771
- id: z126.string(),
2772
- createdAt: z126.coerce.date(),
2773
- name: z126.string(),
2774
- isPrivate: z126.boolean(),
2760
+ var Exporter = z125.object({
2761
+ id: z125.string(),
2762
+ createdAt: z125.coerce.date(),
2763
+ name: z125.string(),
2764
+ isPrivate: z125.boolean(),
2775
2765
  details: ExporterDetails,
2776
2766
  exporterType: nullishToOptional(ExporterType).default("code"),
2777
- storagePath: nullishToOptional(z126.string()).default("")
2767
+ storagePath: nullishToOptional(z125.string()).default("")
2778
2768
  });
2779
- var CustomDomain = z127.object({
2780
- id: z127.string(),
2781
- designSystemId: z127.string(),
2782
- state: z127.string(),
2783
- supernovaDomain: z127.string(),
2784
- customerDomain: z127.string().nullish(),
2785
- error: z127.string().nullish(),
2786
- errorCode: z127.string().nullish()
2787
- });
2788
- var IntegrationAuthType = z128.union([z128.literal("OAuth2"), z128.literal("PAT")]);
2789
- var ExternalServiceType = z128.union([
2790
- z128.literal("figma"),
2791
- z128.literal("github"),
2792
- z128.literal("azure"),
2793
- z128.literal("gitlab"),
2794
- z128.literal("bitbucket")
2769
+ var CustomDomain = z126.object({
2770
+ id: z126.string(),
2771
+ designSystemId: z126.string(),
2772
+ state: z126.string(),
2773
+ supernovaDomain: z126.string(),
2774
+ customerDomain: z126.string().nullish(),
2775
+ error: z126.string().nullish(),
2776
+ errorCode: z126.string().nullish()
2777
+ });
2778
+ var IntegrationAuthType = z127.union([z127.literal("OAuth2"), z127.literal("PAT")]);
2779
+ var ExternalServiceType = z127.union([
2780
+ z127.literal("figma"),
2781
+ z127.literal("github"),
2782
+ z127.literal("azure"),
2783
+ z127.literal("gitlab"),
2784
+ z127.literal("bitbucket")
2795
2785
  ]);
2796
- var IntegrationUserInfo = z128.object({
2797
- id: z128.string(),
2798
- handle: z128.string().optional(),
2799
- avatarUrl: z128.string().optional(),
2800
- email: z128.string().optional(),
2786
+ var IntegrationUserInfo = z127.object({
2787
+ id: z127.string(),
2788
+ handle: z127.string().optional(),
2789
+ avatarUrl: z127.string().optional(),
2790
+ email: z127.string().optional(),
2801
2791
  authType: IntegrationAuthType.optional(),
2802
- customUrl: z128.string().optional()
2792
+ customUrl: z127.string().optional()
2803
2793
  });
2804
- var UserLinkedIntegrations = z128.object({
2794
+ var UserLinkedIntegrations = z127.object({
2805
2795
  figma: IntegrationUserInfo.optional(),
2806
2796
  github: IntegrationUserInfo.array().optional(),
2807
2797
  azure: IntegrationUserInfo.array().optional(),
2808
2798
  gitlab: IntegrationUserInfo.array().optional(),
2809
2799
  bitbucket: IntegrationUserInfo.array().optional()
2810
2800
  });
2811
- var CreateUserInput = z129.object({
2812
- email: z129.string(),
2813
- name: z129.string(),
2814
- username: z129.string()
2815
- });
2816
- var UserIdentity = z130.object({
2817
- id: z130.string(),
2818
- userId: z130.string()
2819
- });
2820
- var UserOnboardingDepartment = z131.enum(["Design", "Engineering", "Brand", "Other"]);
2821
- var UserOnboardingJobLevel = z131.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2822
- var UserOnboarding = z131.object({
2823
- companyName: z131.string().optional(),
2824
- numberOfPeopleInOrg: z131.string().optional(),
2825
- numberOfPeopleInDesignTeam: z131.string().optional(),
2801
+ var CreateUserInput = z128.object({
2802
+ email: z128.string(),
2803
+ name: z128.string(),
2804
+ username: z128.string()
2805
+ });
2806
+ var UserIdentity = z129.object({
2807
+ id: z129.string(),
2808
+ userId: z129.string()
2809
+ });
2810
+ var UserOnboardingDepartment = z130.enum(["Design", "Engineering", "Brand", "Other"]);
2811
+ var UserOnboardingJobLevel = z130.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2812
+ var UserOnboarding = z130.object({
2813
+ companyName: z130.string().optional(),
2814
+ numberOfPeopleInOrg: z130.string().optional(),
2815
+ numberOfPeopleInDesignTeam: z130.string().optional(),
2826
2816
  department: UserOnboardingDepartment.optional(),
2827
- jobTitle: z131.string().optional(),
2828
- phase: z131.string().optional(),
2817
+ jobTitle: z130.string().optional(),
2818
+ phase: z130.string().optional(),
2829
2819
  jobLevel: UserOnboardingJobLevel.optional()
2830
2820
  });
2831
- var UserProfile = z131.object({
2832
- name: z131.string(),
2833
- avatar: z131.string().optional(),
2834
- nickname: z131.string().optional(),
2821
+ var UserProfile = z130.object({
2822
+ name: z130.string(),
2823
+ avatar: z130.string().optional(),
2824
+ nickname: z130.string().optional(),
2835
2825
  onboarding: UserOnboarding.optional()
2836
2826
  });
2837
- var UserTest = z132.object({
2838
- id: z132.string(),
2839
- email: z132.string()
2827
+ var UserTest = z131.object({
2828
+ id: z131.string(),
2829
+ email: z131.string()
2840
2830
  });
2841
- var User = z133.object({
2842
- id: z133.string(),
2843
- email: z133.string(),
2844
- emailVerified: z133.boolean(),
2845
- createdAt: z133.coerce.date(),
2846
- trialExpiresAt: z133.coerce.date().optional(),
2831
+ var User = z132.object({
2832
+ id: z132.string(),
2833
+ email: z132.string(),
2834
+ emailVerified: z132.boolean(),
2835
+ createdAt: z132.coerce.date(),
2836
+ trialExpiresAt: z132.coerce.date().optional(),
2847
2837
  profile: UserProfile,
2848
2838
  linkedIntegrations: UserLinkedIntegrations.optional(),
2849
- loggedOutAt: z133.coerce.date().optional(),
2850
- isProtected: z133.boolean()
2839
+ loggedOutAt: z132.coerce.date().optional(),
2840
+ isProtected: z132.boolean()
2851
2841
  });
2852
- var NpmProxyToken = z134.object({
2853
- access: z134.string(),
2854
- expiresAt: z134.number()
2842
+ var NpmProxyToken = z133.object({
2843
+ access: z133.string(),
2844
+ expiresAt: z133.number()
2855
2845
  });
2856
- var SessionData = z134.object({
2857
- returnToUrl: z134.string().optional(),
2846
+ var SessionData = z133.object({
2847
+ returnToUrl: z133.string().optional(),
2858
2848
  npmProxyToken: NpmProxyToken.optional()
2859
2849
  });
2860
- var Session = z134.object({
2861
- id: z134.string(),
2862
- expiresAt: z134.coerce.date(),
2863
- userId: z134.string().nullable(),
2850
+ var Session = z133.object({
2851
+ id: z133.string(),
2852
+ expiresAt: z133.coerce.date(),
2853
+ userId: z133.string().nullable(),
2864
2854
  data: SessionData
2865
2855
  });
2866
- var AuthTokens = z134.object({
2867
- access: z134.string(),
2868
- refresh: z134.string()
2856
+ var AuthTokens = z133.object({
2857
+ access: z133.string(),
2858
+ refresh: z133.string()
2869
2859
  });
2870
- var UserSession = z134.object({
2860
+ var UserSession = z133.object({
2871
2861
  session: Session,
2872
2862
  user: User.nullable()
2873
2863
  });
2874
- var FlaggedFeature = z135.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
2875
- var FeatureFlagMap = z135.record(FlaggedFeature, z135.boolean());
2876
- var FeatureFlag = z135.object({
2877
- id: z135.string(),
2864
+ var FlaggedFeature = z134.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
2865
+ var FeatureFlagMap = z134.record(FlaggedFeature, z134.boolean());
2866
+ var FeatureFlag = z134.object({
2867
+ id: z134.string(),
2878
2868
  feature: FlaggedFeature,
2879
- createdAt: z135.coerce.date(),
2880
- enabled: z135.boolean(),
2881
- designSystemId: z135.string().optional()
2869
+ createdAt: z134.coerce.date(),
2870
+ enabled: z134.boolean(),
2871
+ designSystemId: z134.string().optional()
2882
2872
  });
2883
2873
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2884
2874
  OAuthProviderNames2["Figma"] = "figma";
@@ -2888,114 +2878,194 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2888
2878
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
2889
2879
  return OAuthProviderNames2;
2890
2880
  })(OAuthProviderNames || {});
2891
- var OAuthProviderSchema = z136.nativeEnum(OAuthProviderNames);
2881
+ var OAuthProviderSchema = z135.nativeEnum(OAuthProviderNames);
2892
2882
  var OAuthProvider = OAuthProviderSchema.enum;
2893
- var ExternalOAuthRequest = z137.object({
2894
- id: z137.string(),
2883
+ var ExternalOAuthRequest = z136.object({
2884
+ id: z136.string(),
2895
2885
  provider: OAuthProviderSchema,
2896
- userId: z137.string(),
2897
- state: z137.string(),
2898
- createdAt: z137.coerce.date()
2899
- });
2900
- var IntegrationCredentialsType = z138.enum(["OAuth2", "PAT", "GithubApp"]);
2901
- var IntegrationCredentialsProfile = z138.object({
2902
- id: z138.string(),
2903
- username: z138.string().optional(),
2904
- avatarUrl: z138.string().optional()
2886
+ userId: z136.string(),
2887
+ state: z136.string(),
2888
+ createdAt: z136.coerce.date()
2889
+ });
2890
+ var IntegrationDesignSystem = z137.object({
2891
+ designSystemId: z137.string(),
2892
+ brandId: z137.string(),
2893
+ title: z137.string().optional(),
2894
+ userId: z137.string().optional(),
2895
+ date: z137.coerce.date().optional()
2896
+ });
2897
+ var IntegrationCredentialsType = z137.enum(["OAuth2", "PAT", "GithubApp"]);
2898
+ var IntegrationCredentialsProfile = z137.object({
2899
+ id: z137.string(),
2900
+ email: z137.string().optional(),
2901
+ handle: z137.string().optional(),
2902
+ avatarUrl: z137.string().optional()
2905
2903
  });
2906
- var IntegrationCredentials = z138.object({
2907
- id: z138.string(),
2904
+ var IntegrationCredentials = z137.object({
2905
+ id: z137.string(),
2908
2906
  type: IntegrationCredentialsType,
2909
- integrationId: z138.string(),
2910
- accessToken: z138.string(),
2911
- userId: z138.string(),
2912
- createdAt: z138.coerce.date(),
2913
- refreshToken: z138.string().optional(),
2907
+ integrationId: z137.string(),
2908
+ accessToken: z137.string(),
2909
+ userId: z137.string(),
2910
+ createdAt: z137.coerce.date(),
2911
+ refreshToken: z137.string().optional(),
2912
+ tokenName: z137.string().optional(),
2913
+ expiresAt: z137.coerce.date().optional(),
2914
2914
  profile: IntegrationCredentialsProfile.optional(),
2915
- customUrl: z138.string().optional()
2915
+ customUrl: z137.string().optional()
2916
2916
  });
2917
- var IntegrationType = z138.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
2918
- var Integration = z138.object({
2919
- id: z138.string(),
2920
- workspaceId: z138.string(),
2917
+ var ExtendedIntegrationType = z137.enum([
2918
+ "Figma",
2919
+ "Github",
2920
+ "Gitlab",
2921
+ "Bitbucket",
2922
+ "Azure",
2923
+ "TokenStudio",
2924
+ "FigmaVariablesPlugin"
2925
+ ]);
2926
+ var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
2927
+ var Integration = z137.object({
2928
+ id: z137.string(),
2929
+ workspaceId: z137.string(),
2921
2930
  type: IntegrationType,
2922
- createdAt: z138.coerce.date(),
2923
- integrationCredentials: z138.array(IntegrationCredentials).optional()
2931
+ createdAt: z137.coerce.date(),
2932
+ integrationCredentials: z137.array(IntegrationCredentials).optional()
2924
2933
  });
2925
2934
  var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
2926
- var IntegrationTokenResponse = z138.object({
2927
- access_token: z138.string(),
2928
- refresh_token: z138.string().optional(),
2929
- expires_in: z138.number().optional(),
2930
- token_type: z138.string().optional(),
2931
- custom_url: z138.string().optional().refine((value) => {
2935
+ var IntegrationTokenResponse = z137.object({
2936
+ access_token: z137.string(),
2937
+ refresh_token: z137.string().optional(),
2938
+ expires_in: z137.union([z137.number().optional(), z137.string().optional()]),
2939
+ token_type: z137.string().optional(),
2940
+ token_name: z137.string().optional(),
2941
+ token_azure_organization_name: z137.string().optional(),
2942
+ // Azure only
2943
+ token_bitbucket_username: z137.string().optional(),
2944
+ // Bitbucket only
2945
+ custom_url: z137.string().optional().refine((value) => {
2932
2946
  if (!value)
2933
2947
  return true;
2934
2948
  if (forbiddenCustomUrldomainList.some((domain) => value.includes(domain)))
2935
2949
  return false;
2936
2950
  return true;
2937
2951
  }, "Custom URL validation failed")
2938
- }).transform((data) => {
2952
+ }).refine((data) => {
2953
+ if (data.custom_url && data.token_azure_organization_name) {
2954
+ return false;
2955
+ }
2956
+ return true;
2957
+ }, "Custom URL and Azure organization name cannot be present at the same time").transform((data) => {
2939
2958
  return {
2940
2959
  accessToken: data.access_token,
2941
2960
  refreshToken: data.refresh_token,
2942
- expiresIn: data.expires_in,
2961
+ expiresIn: typeof data.expires_in === "string" ? Number(data.expires_in) : data.expires_in,
2943
2962
  tokenType: data.token_type,
2963
+ tokenName: data.token_name,
2964
+ tokenBitbucketUsername: data.token_bitbucket_username,
2965
+ tokenAzureOrganizationName: data.token_azure_organization_name,
2944
2966
  customUrl: data.custom_url
2945
2967
  };
2946
2968
  });
2947
- var IntegrationTokenSchema = z139.object({
2969
+ var IntegrationTokenSchema = z138.object({
2970
+ id: z138.string(),
2971
+ provider: OAuthProviderSchema,
2972
+ scope: z138.string(),
2973
+ userId: z138.string(),
2974
+ accessToken: z138.string(),
2975
+ refreshToken: z138.string(),
2976
+ expiresAt: z138.coerce.date(),
2977
+ externalUserId: z138.string().nullish()
2978
+ });
2979
+ var WorkspaceOAuthRequestSchema = z139.object({
2948
2980
  id: z139.string(),
2981
+ workspaceId: z139.string(),
2949
2982
  provider: OAuthProviderSchema,
2950
- scope: z139.string(),
2951
2983
  userId: z139.string(),
2952
- accessToken: z139.string(),
2953
- refreshToken: z139.string(),
2954
- expiresAt: z139.coerce.date(),
2955
- externalUserId: z139.string().nullish()
2956
- });
2957
- var WorkspaceOAuthRequestSchema = z140.object({
2958
- id: z140.string(),
2959
- workspaceId: z140.string(),
2960
- provider: OAuthProviderSchema,
2961
- userId: z140.string(),
2962
- createdAt: z140.coerce.date()
2984
+ createdAt: z139.coerce.date()
2963
2985
  });
2964
- var AnyRecord = z141.record(z141.any());
2986
+ var DesignSystemVersionRoom = Entity.extend({
2987
+ designSystemVersionId: z140.string(),
2988
+ liveblocksId: z140.string()
2989
+ });
2990
+ var DesignSystemVersionRoomInternalSettings = z140.object({
2991
+ routingVersion: z140.string()
2992
+ });
2993
+ var DesignSystemVersionRoomInitialState = z140.object({
2994
+ pages: z140.array(DocumentationPageV2),
2995
+ groups: z140.array(ElementGroup),
2996
+ internalSettings: DesignSystemVersionRoomInternalSettings
2997
+ });
2998
+ var DesignSystemVersionRoomUpdate = z140.object({
2999
+ pages: z140.array(DocumentationPageV2),
3000
+ groups: z140.array(ElementGroup),
3001
+ deletedPageIds: z140.array(z140.string()),
3002
+ deletedGroupIds: z140.array(z140.string())
3003
+ });
3004
+ var DocumentationPageRoom = Entity.extend({
3005
+ designSystemVersionId: z141.string(),
3006
+ documentationPageId: z141.string(),
3007
+ liveblocksId: z141.string(),
3008
+ isDirty: z141.boolean()
3009
+ });
3010
+ var DocumentationPageRoomState = z141.object({
3011
+ pageItems: z141.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3012
+ itemConfiguration: DocumentationItemConfigurationV2
3013
+ });
3014
+ var DocumentationPageRoomRoomUpdate = z141.object({
3015
+ page: DocumentationPageV2,
3016
+ pageParent: ElementGroup
3017
+ });
3018
+ var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3019
+ pageItems: z141.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3020
+ blockDefinitions: z141.array(PageBlockDefinition)
3021
+ });
3022
+ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3023
+ RoomTypeEnum2["DocumentationPage"] = "documentation-page";
3024
+ RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
3025
+ RoomTypeEnum2["Workspace"] = "workspace";
3026
+ return RoomTypeEnum2;
3027
+ })(RoomTypeEnum || {});
3028
+ var RoomTypeSchema = z142.nativeEnum(RoomTypeEnum);
3029
+ var RoomType = RoomTypeSchema.enum;
3030
+ var WorkspaceRoom = Entity.extend({
3031
+ workspaceId: z143.string(),
3032
+ liveblocksId: z143.string()
3033
+ });
3034
+ var AnyRecord = z144.record(z144.any());
2965
3035
  var NpmPackageVersionDist = AnyRecord.and(
2966
- z141.object({
2967
- tarball: z141.string()
3036
+ z144.object({
3037
+ tarball: z144.string()
2968
3038
  })
2969
3039
  );
2970
3040
  var NpmPackageVersion = AnyRecord.and(
2971
- z141.object({
3041
+ z144.object({
2972
3042
  dist: NpmPackageVersionDist
2973
3043
  })
2974
3044
  );
2975
3045
  var NpmPackage = AnyRecord.and(
2976
- z141.object({
2977
- _id: z141.string(),
2978
- name: z141.string(),
3046
+ z144.object({
3047
+ _id: z144.string(),
3048
+ name: z144.string(),
2979
3049
  // e.g. "latest": "1.2.3"
2980
- "dist-tags": z141.record(z141.string(), z141.string()),
3050
+ "dist-tags": z144.record(z144.string(), z144.string()),
2981
3051
  // "1.2.3": {...}
2982
- versions: z141.record(NpmPackageVersion)
3052
+ versions: z144.record(NpmPackageVersion)
2983
3053
  })
2984
3054
  );
2985
- var NpmProxyTokenPayload = z142.object({
2986
- npmProxyRegistryConfigId: z142.string()
3055
+ var NpmProxyTokenPayload = z145.object({
3056
+ npmProxyRegistryConfigId: z145.string()
2987
3057
  });
2988
- var PersonalAccessToken = z143.object({
2989
- id: z143.string(),
2990
- userId: z143.string(),
2991
- workspaceId: z143.string().optional(),
3058
+ var PersonalAccessToken = z146.object({
3059
+ id: z146.string(),
3060
+ userId: z146.string(),
3061
+ workspaceId: z146.string().optional(),
2992
3062
  workspaceRole: WorkspaceRoleSchema.optional(),
2993
- name: z143.string(),
2994
- hidden: z143.boolean(),
2995
- token: z143.string(),
2996
- scope: z143.string().optional(),
2997
- createdAt: z143.coerce.date(),
2998
- expireAt: z143.coerce.date().optional()
3063
+ name: z146.string(),
3064
+ hidden: z146.boolean(),
3065
+ token: z146.string(),
3066
+ scope: z146.string().optional(),
3067
+ createdAt: z146.coerce.date(),
3068
+ expireAt: z146.coerce.date().optional()
2999
3069
  });
3000
3070
  var SupernovaException = class _SupernovaException extends Error {
3001
3071
  //
@@ -3083,25 +3153,25 @@ function groupBy(items, keyFn) {
3083
3153
  }
3084
3154
  return result;
3085
3155
  }
3086
- var ContentLoadInstruction = z144.object({
3087
- from: z144.string(),
3088
- to: z144.string(),
3089
- authorizationHeaderKvsId: z144.string().optional(),
3090
- timeout: z144.number().optional()
3091
- });
3092
- var ContentLoaderPayload = z144.object({
3093
- type: z144.literal("Single"),
3156
+ var ContentLoadInstruction = z147.object({
3157
+ from: z147.string(),
3158
+ to: z147.string(),
3159
+ authorizationHeaderKvsId: z147.string().optional(),
3160
+ timeout: z147.number().optional()
3161
+ });
3162
+ var ContentLoaderPayload = z147.object({
3163
+ type: z147.literal("Single"),
3094
3164
  instruction: ContentLoadInstruction
3095
3165
  }).or(
3096
- z144.object({
3097
- type: z144.literal("Multiple"),
3098
- loadingChunkSize: z144.number().optional(),
3099
- instructions: z144.array(ContentLoadInstruction)
3166
+ z147.object({
3167
+ type: z147.literal("Multiple"),
3168
+ loadingChunkSize: z147.number().optional(),
3169
+ instructions: z147.array(ContentLoadInstruction)
3100
3170
  })
3101
3171
  ).or(
3102
- z144.object({
3103
- type: z144.literal("S3"),
3104
- location: z144.string()
3172
+ z147.object({
3173
+ type: z147.literal("S3"),
3174
+ location: z147.string()
3105
3175
  })
3106
3176
  );
3107
3177
  function slugify(str, options) {
@@ -4069,85 +4139,86 @@ function integrationToDto(integration) {
4069
4139
  workspaceId: integration.workspaceId,
4070
4140
  type: integration.type,
4071
4141
  createdAt: integration.createdAt,
4072
- integrationCredentials: integration.integrationCredentials ?? void 0
4142
+ integrationCredentials: integration.integrationCredentials ?? void 0,
4143
+ integrationDesignSystems: integration.integrationDesignSystems ?? void 0
4073
4144
  };
4074
4145
  }
4075
4146
 
4076
4147
  // src/api/dto/design-systems/brand.ts
4077
- import { z as z145 } from "zod";
4078
- var DTOBrand = z145.object({
4079
- id: z145.string(),
4080
- designSystemVersionId: z145.string(),
4081
- persistentId: z145.string(),
4148
+ import { z as z148 } from "zod";
4149
+ var DTOBrand = z148.object({
4150
+ id: z148.string(),
4151
+ designSystemVersionId: z148.string(),
4152
+ persistentId: z148.string(),
4082
4153
  meta: ObjectMeta
4083
4154
  });
4084
- var DTOBrandGetResponse = z145.object({ brand: DTOBrand });
4085
- var DTOBrandCreateResponse = z145.object({
4155
+ var DTOBrandGetResponse = z148.object({ brand: DTOBrand });
4156
+ var DTOBrandCreateResponse = z148.object({
4086
4157
  brand: DTOBrand
4087
4158
  });
4088
- var DTOBrandsListResponse = z145.object({ brands: z145.array(DTOBrand) });
4159
+ var DTOBrandsListResponse = z148.object({ brands: z148.array(DTOBrand) });
4089
4160
 
4090
4161
  // src/api/dto/design-systems/design-system.ts
4091
- import { z as z146 } from "zod";
4162
+ import { z as z149 } from "zod";
4092
4163
  var DTODesignSystem = DesignSystem.omit({
4093
4164
  name: true,
4094
4165
  description: true,
4095
4166
  docExporterId: true
4096
4167
  }).extend({
4097
4168
  meta: ObjectMeta,
4098
- docExporterId: z146.string()
4169
+ docExporterId: z149.string()
4099
4170
  });
4100
4171
 
4101
4172
  // src/api/dto/design-systems/exporter-property.ts
4102
- import { z as z147 } from "zod";
4103
- var DTOExporterProperty = z147.any({});
4104
- var DTOExporterPropertyListResponse = z147.object({ items: z147.array(DTOExporterProperty) });
4173
+ import { z as z150 } from "zod";
4174
+ var DTOExporterProperty = z150.any({});
4175
+ var DTOExporterPropertyListResponse = z150.object({ items: z150.array(DTOExporterProperty) });
4105
4176
 
4106
4177
  // src/api/dto/design-systems/version.ts
4107
- import { z as z154 } from "zod";
4178
+ import { z as z157 } from "zod";
4108
4179
 
4109
4180
  // src/api/payloads/design-systems/brand.ts
4110
- import { z as z148 } from "zod";
4111
- var DTOCreateBrandInput = z148.object({
4112
- persistentId: z148.string().uuid(),
4113
- meta: z148.object({
4114
- name: z148.string(),
4115
- description: z148.string()
4181
+ import { z as z151 } from "zod";
4182
+ var DTOCreateBrandInput = z151.object({
4183
+ persistentId: z151.string().uuid(),
4184
+ meta: z151.object({
4185
+ name: z151.string(),
4186
+ description: z151.string()
4116
4187
  })
4117
4188
  });
4118
4189
 
4119
4190
  // src/api/payloads/design-systems/version.ts
4120
- import { z as z149 } from "zod";
4121
- var ObjectMeta2 = z149.object({
4122
- name: z149.string().max(150).optional(),
4123
- description: z149.string().max(2e3).optional()
4191
+ import { z as z152 } from "zod";
4192
+ var ObjectMeta2 = z152.object({
4193
+ name: z152.string().max(150).optional(),
4194
+ description: z152.string().max(2e3).optional()
4124
4195
  });
4125
- function validateSemver(version) {
4126
- const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
4127
- return semverRegex.test(version);
4196
+ function validateDesignSystemVersion(version) {
4197
+ const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
4198
+ return urlCompliantRegex.test(version);
4128
4199
  }
4129
- var DTOCreateVersionInput = z149.object({
4200
+ var DTOCreateVersionInput = z152.object({
4130
4201
  meta: ObjectMeta2,
4131
- version: z149.string().refine(validateSemver, {
4202
+ version: z152.string().refine(validateDesignSystemVersion, {
4132
4203
  message: "Invalid semantic versioning format"
4133
4204
  }),
4134
- changeLog: z149.string().max(2e3).optional()
4205
+ changeLog: z152.string().max(2e3).optional()
4135
4206
  });
4136
4207
 
4137
4208
  // src/api/payloads/documentation/block-definitions.ts
4138
- import { z as z150 } from "zod";
4139
- var DTOGetBlockDefinitionsOutput = z150.object({
4140
- definitions: z150.array(PageBlockDefinition)
4209
+ import { z as z153 } from "zod";
4210
+ var DTOGetBlockDefinitionsOutput = z153.object({
4211
+ definitions: z153.array(PageBlockDefinition)
4141
4212
  });
4142
4213
 
4143
4214
  // src/api/payloads/liveblocks/auth.ts
4144
- import { z as z151 } from "zod";
4145
- var DTOLiveblocksAuthRequest = z151.object({
4146
- room: z151.string().optional()
4215
+ import { z as z154 } from "zod";
4216
+ var DTOLiveblocksAuthRequest = z154.object({
4217
+ room: z154.string().optional()
4147
4218
  });
4148
4219
 
4149
4220
  // src/api/payloads/workspaces/workspace-configuration.ts
4150
- import { z as z152 } from "zod";
4221
+ import { z as z155 } from "zod";
4151
4222
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4152
4223
  function validateSsoPayload(ssoPayload) {
4153
4224
  const keys = [];
@@ -4170,21 +4241,21 @@ function validateSsoPayload(ssoPayload) {
4170
4241
  keys
4171
4242
  };
4172
4243
  }
4173
- var NpmRegistryInput = z152.object({
4174
- enabledScopes: z152.array(z152.string()),
4175
- customRegistryUrl: z152.string().optional(),
4176
- bypassProxy: z152.boolean().optional(),
4177
- npmProxyRegistryConfigId: z152.string().optional(),
4178
- npmProxyVersion: z152.number().optional(),
4179
- registryType: z152.string(),
4180
- authType: z152.string(),
4181
- authHeaderName: z152.string(),
4182
- authHeaderValue: z152.string(),
4183
- accessToken: z152.string(),
4184
- username: z152.string(),
4185
- password: z152.string()
4186
- });
4187
- var WorkspaceConfigurationPayload = z152.object({
4244
+ var NpmRegistryInput = z155.object({
4245
+ enabledScopes: z155.array(z155.string()),
4246
+ customRegistryUrl: z155.string().optional(),
4247
+ bypassProxy: z155.boolean().optional(),
4248
+ npmProxyRegistryConfigId: z155.string().optional(),
4249
+ npmProxyVersion: z155.number().optional(),
4250
+ registryType: z155.string(),
4251
+ authType: z155.string(),
4252
+ authHeaderName: z155.string(),
4253
+ authHeaderValue: z155.string(),
4254
+ accessToken: z155.string(),
4255
+ username: z155.string(),
4256
+ password: z155.string()
4257
+ });
4258
+ var WorkspaceConfigurationPayload = z155.object({
4188
4259
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
4189
4260
  sso: SsoProvider.partial().optional(),
4190
4261
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -4192,110 +4263,118 @@ var WorkspaceConfigurationPayload = z152.object({
4192
4263
  });
4193
4264
 
4194
4265
  // src/api/payloads/workspaces/workspace-integrations.ts
4195
- import { z as z153 } from "zod";
4196
- var DTOWorkspaceIntegrationOauthInput = z153.object({
4266
+ import { z as z156 } from "zod";
4267
+ var DTOWorkspaceIntegrationOauthInput = z156.object({
4197
4268
  type: IntegrationType
4198
4269
  });
4199
- var DTOWorkspaceIntegrationPATInput = z153.object({
4200
- userId: z153.string(),
4270
+ var DTOWorkspaceIntegrationPATInput = z156.object({
4271
+ userId: z156.string(),
4201
4272
  type: IntegrationType,
4202
4273
  token: IntegrationTokenResponse
4203
4274
  });
4204
4275
 
4205
4276
  // src/api/dto/design-systems/version.ts
4206
- var DTODesignSystemVersion = z154.object({
4207
- id: z154.string(),
4208
- createdAt: z154.date(),
4277
+ var DTODesignSystemVersion = z157.object({
4278
+ id: z157.string(),
4279
+ createdAt: z157.date(),
4209
4280
  meta: ObjectMeta,
4210
- version: z154.string(),
4211
- isReadonly: z154.boolean(),
4212
- changeLog: z154.string(),
4213
- designSystemId: z154.string()
4281
+ version: z157.string(),
4282
+ isReadonly: z157.boolean(),
4283
+ changeLog: z157.string(),
4284
+ designSystemId: z157.string()
4214
4285
  });
4215
- var DTODesignSystemVersionsListResponse = z154.object({
4216
- designSystemVersions: z154.array(DTODesignSystemVersion)
4286
+ var DTODesignSystemVersionsListResponse = z157.object({
4287
+ designSystemVersions: z157.array(DTODesignSystemVersion)
4217
4288
  });
4218
- var DTODesignSystemVersionGetResponse = z154.object({
4289
+ var DTODesignSystemVersionGetResponse = z157.object({
4219
4290
  designSystemVersion: DTODesignSystemVersion
4220
4291
  });
4221
- var DTODesignSystemVersionCreationResponse = z154.object({
4292
+ var DTODesignSystemVersionCreationResponse = z157.object({
4222
4293
  meta: ObjectMeta,
4223
- version: z154.string(),
4224
- changeLog: z154.string(),
4225
- isReadOnly: z154.boolean(),
4226
- designSystemId: z154.string()
4227
- });
4228
- var VersionSQSPayload = z154.object({
4229
- designSystemId: z154.string(),
4294
+ version: z157.string(),
4295
+ changeLog: z157.string(),
4296
+ isReadOnly: z157.boolean(),
4297
+ designSystemId: z157.string(),
4298
+ jobId: z157.string()
4299
+ });
4300
+ var VersionSQSPayload = z157.object({
4301
+ jobId: z157.string(),
4302
+ designSystemId: z157.string(),
4230
4303
  input: DTOCreateVersionInput
4231
4304
  });
4305
+ var DTODesignSystemVersionJobsResponse = z157.object({
4306
+ jobs: z157.array(VersionCreationJob)
4307
+ });
4308
+ var DTODesignSystemVersionJobStatusResponse = z157.object({
4309
+ job: VersionCreationJob
4310
+ });
4232
4311
 
4233
4312
  // src/api/dto/design-systems/view.ts
4234
- import { z as z155 } from "zod";
4235
- var DTOElementViewColumnSharedAttributes = z155.object({
4236
- id: z155.string(),
4237
- persistentId: z155.string(),
4238
- width: z155.number()
4313
+ import { z as z158 } from "zod";
4314
+ var DTOElementViewColumnSharedAttributes = z158.object({
4315
+ id: z158.string(),
4316
+ persistentId: z158.string(),
4317
+ width: z158.number()
4239
4318
  });
4240
4319
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
4241
- type: z155.literal("BaseProperty"),
4320
+ type: z158.literal("BaseProperty"),
4242
4321
  basePropertyType: ElementViewBaseColumnType
4243
4322
  });
4244
4323
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
4245
- type: z155.literal("PropertyDefinition"),
4246
- propertyDefinitionId: z155.string()
4324
+ type: z158.literal("PropertyDefinition"),
4325
+ propertyDefinitionId: z158.string()
4247
4326
  });
4248
4327
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
4249
- type: z155.literal("Theme"),
4250
- themeId: z155.string()
4328
+ type: z158.literal("Theme"),
4329
+ themeId: z158.string()
4251
4330
  });
4252
- var DTOElementViewColumn = z155.discriminatedUnion("type", [
4331
+ var DTOElementViewColumn = z158.discriminatedUnion("type", [
4253
4332
  DTOElementViewBasePropertyColumn,
4254
4333
  DTOElementViewPropertyDefinitionColumn,
4255
4334
  DTOElementViewThemeColumn
4256
4335
  ]);
4257
- var DTOElementView = z155.object({
4336
+ var DTOElementView = z158.object({
4258
4337
  meta: ObjectMeta,
4259
- persistentId: z155.string(),
4338
+ persistentId: z158.string(),
4260
4339
  targetElementType: ElementPropertyTargetType,
4261
- id: z155.string(),
4262
- isDefault: z155.boolean(),
4263
- columns: z155.array(DTOElementViewColumn)
4340
+ id: z158.string(),
4341
+ isDefault: z158.boolean(),
4342
+ columns: z158.array(DTOElementViewColumn)
4264
4343
  });
4265
- var DTOElementViewsListResponse = z155.object({
4266
- elementDataViews: z155.array(DTOElementView)
4344
+ var DTOElementViewsListResponse = z158.object({
4345
+ elementDataViews: z158.array(DTOElementView)
4267
4346
  });
4268
4347
 
4269
4348
  // src/api/dto/documentation/anchor.ts
4270
- import { z as z156 } from "zod";
4349
+ import { z as z159 } from "zod";
4271
4350
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
4272
- var DTOGetDocumentationPageAnchorsResponse = z156.object({
4273
- anchors: z156.array(DTODocumentationPageAnchor)
4351
+ var DTOGetDocumentationPageAnchorsResponse = z159.object({
4352
+ anchors: z159.array(DTODocumentationPageAnchor)
4274
4353
  });
4275
4354
 
4276
4355
  // src/api/dto/documentation/link-preview.ts
4277
- import { z as z157 } from "zod";
4278
- var DTODocumentationLinkPreviewResponse = z157.object({
4356
+ import { z as z160 } from "zod";
4357
+ var DTODocumentationLinkPreviewResponse = z160.object({
4279
4358
  linkPreview: DocumentationLinkPreview
4280
4359
  });
4281
- var DTODocumentationLinkPreviewRequest = z157.object({
4282
- url: z157.string().optional(),
4283
- documentationItemPersistentId: z157.string().optional()
4360
+ var DTODocumentationLinkPreviewRequest = z160.object({
4361
+ url: z160.string().optional(),
4362
+ documentationItemPersistentId: z160.string().optional()
4284
4363
  });
4285
4364
 
4286
4365
  // src/api/dto/elements/documentation/group-action.ts
4287
- import { z as z160 } from "zod";
4366
+ import { z as z163 } from "zod";
4288
4367
 
4289
4368
  // src/api/dto/elements/documentation/group-v2.ts
4290
- import { z as z159 } from "zod";
4369
+ import { z as z162 } from "zod";
4291
4370
 
4292
4371
  // src/api/dto/elements/documentation/item-configuration-v2.ts
4293
- import { z as z158 } from "zod";
4372
+ import { z as z161 } from "zod";
4294
4373
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
4295
- var DTODocumentationItemConfigurationV2 = z158.object({
4296
- showSidebar: z158.boolean(),
4297
- isPrivate: z158.boolean(),
4298
- isHidden: z158.boolean(),
4374
+ var DTODocumentationItemConfigurationV2 = z161.object({
4375
+ showSidebar: z161.boolean(),
4376
+ isPrivate: z161.boolean(),
4377
+ isHidden: z161.boolean(),
4299
4378
  header: DTODocumentationItemHeaderV2
4300
4379
  });
4301
4380
 
@@ -4309,136 +4388,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
4309
4388
  data: true,
4310
4389
  shortPersistentId: true
4311
4390
  }).extend({
4312
- title: z159.string(),
4313
- isRoot: z159.boolean(),
4314
- childrenIds: z159.array(z159.string()),
4391
+ title: z162.string(),
4392
+ isRoot: z162.boolean(),
4393
+ childrenIds: z162.array(z162.string()),
4315
4394
  groupBehavior: DocumentationGroupBehavior,
4316
- shortPersistentId: z159.string(),
4395
+ shortPersistentId: z162.string(),
4317
4396
  configuration: DTODocumentationItemConfigurationV2,
4318
- type: z159.literal("Group")
4397
+ type: z162.literal("Group")
4319
4398
  });
4320
4399
  var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
4321
- var DTOCreateDocumentationGroupInput = z159.object({
4400
+ var DTOCreateDocumentationGroupInput = z162.object({
4322
4401
  // Identifier
4323
- persistentId: z159.string().uuid(),
4402
+ persistentId: z162.string().uuid(),
4324
4403
  // Group properties
4325
- title: z159.string(),
4404
+ title: z162.string(),
4326
4405
  configuration: DTODocumentationItemConfigurationV2.optional(),
4327
4406
  // Group placement properties
4328
- afterPersistentId: z159.string().uuid().nullish(),
4329
- parentPersistentId: z159.string().uuid()
4407
+ afterPersistentId: z162.string().uuid().nullish(),
4408
+ parentPersistentId: z162.string().uuid()
4330
4409
  });
4331
- var DTOUpdateDocumentationGroupInput = z159.object({
4410
+ var DTOUpdateDocumentationGroupInput = z162.object({
4332
4411
  // Identifier of the group to update
4333
- id: z159.string(),
4412
+ id: z162.string(),
4334
4413
  // Group properties
4335
- title: z159.string().optional(),
4414
+ title: z162.string().optional(),
4336
4415
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4337
4416
  });
4338
- var DTOMoveDocumentationGroupInput = z159.object({
4417
+ var DTOMoveDocumentationGroupInput = z162.object({
4339
4418
  // Identifier of the group to update
4340
- id: z159.string(),
4419
+ id: z162.string(),
4341
4420
  // Group placement properties
4342
- parentPersistentId: z159.string().uuid(),
4343
- afterPersistentId: z159.string().uuid().nullish()
4421
+ parentPersistentId: z162.string().uuid(),
4422
+ afterPersistentId: z162.string().uuid().nullish()
4344
4423
  });
4345
- var DTODuplicateDocumentationGroupInput = z159.object({
4424
+ var DTODuplicateDocumentationGroupInput = z162.object({
4346
4425
  // Identifier of the group to duplicate from
4347
- id: z159.string(),
4426
+ id: z162.string(),
4348
4427
  // New group persistent id
4349
- persistentId: z159.string().uuid(),
4428
+ persistentId: z162.string().uuid(),
4350
4429
  // Group placement properties
4351
- afterPersistentId: z159.string().uuid().nullish(),
4352
- parentPersistentId: z159.string().uuid()
4430
+ afterPersistentId: z162.string().uuid().nullish(),
4431
+ parentPersistentId: z162.string().uuid()
4353
4432
  });
4354
- var DTOCreateDocumentationTabInput = z159.object({
4433
+ var DTOCreateDocumentationTabInput = z162.object({
4355
4434
  // New group persistent id
4356
- persistentId: z159.string().uuid(),
4435
+ persistentId: z162.string().uuid(),
4357
4436
  // If this is page, we will attempt to convert it to tab
4358
4437
  // If this is tab group, we will add a new tab to it
4359
- fromItemPersistentId: z159.string(),
4360
- tabName: z159.string()
4438
+ fromItemPersistentId: z162.string(),
4439
+ tabName: z162.string()
4361
4440
  });
4362
- var DTODeleteDocumentationTabGroupInput = z159.object({
4441
+ var DTODeleteDocumentationTabGroupInput = z162.object({
4363
4442
  // Deleted group id
4364
- id: z159.string()
4443
+ id: z162.string()
4365
4444
  });
4366
- var DTODeleteDocumentationGroupInput = z159.object({
4445
+ var DTODeleteDocumentationGroupInput = z162.object({
4367
4446
  // Identifier
4368
- id: z159.string(),
4447
+ id: z162.string(),
4369
4448
  // Deletion options
4370
- deleteSubtree: z159.boolean().default(false)
4449
+ deleteSubtree: z162.boolean().default(false)
4371
4450
  });
4372
4451
 
4373
4452
  // src/api/dto/elements/documentation/group-action.ts
4374
- var SuccessPayload = z160.object({
4375
- success: z160.literal(true)
4453
+ var SuccessPayload = z163.object({
4454
+ success: z163.literal(true)
4376
4455
  });
4377
- var DTODocumentationGroupCreateActionOutputV2 = z160.object({
4378
- type: z160.literal("DocumentationGroupCreate"),
4456
+ var DTODocumentationGroupCreateActionOutputV2 = z163.object({
4457
+ type: z163.literal("DocumentationGroupCreate"),
4379
4458
  output: SuccessPayload
4380
4459
  });
4381
- var DTODocumentationTabCreateActionOutputV2 = z160.object({
4382
- type: z160.literal("DocumentationTabCreate"),
4460
+ var DTODocumentationTabCreateActionOutputV2 = z163.object({
4461
+ type: z163.literal("DocumentationTabCreate"),
4383
4462
  output: SuccessPayload
4384
4463
  });
4385
- var DTODocumentationGroupUpdateActionOutputV2 = z160.object({
4386
- type: z160.literal("DocumentationGroupUpdate"),
4464
+ var DTODocumentationGroupUpdateActionOutputV2 = z163.object({
4465
+ type: z163.literal("DocumentationGroupUpdate"),
4387
4466
  output: SuccessPayload
4388
4467
  });
4389
- var DTODocumentationGroupMoveActionOutputV2 = z160.object({
4390
- type: z160.literal("DocumentationGroupMove"),
4468
+ var DTODocumentationGroupMoveActionOutputV2 = z163.object({
4469
+ type: z163.literal("DocumentationGroupMove"),
4391
4470
  output: SuccessPayload
4392
4471
  });
4393
- var DTODocumentationGroupDuplicateActionOutputV2 = z160.object({
4394
- type: z160.literal("DocumentationGroupDuplicate"),
4472
+ var DTODocumentationGroupDuplicateActionOutputV2 = z163.object({
4473
+ type: z163.literal("DocumentationGroupDuplicate"),
4395
4474
  output: SuccessPayload
4396
4475
  });
4397
- var DTODocumentationGroupDeleteActionOutputV2 = z160.object({
4398
- type: z160.literal("DocumentationGroupDelete"),
4476
+ var DTODocumentationGroupDeleteActionOutputV2 = z163.object({
4477
+ type: z163.literal("DocumentationGroupDelete"),
4399
4478
  output: SuccessPayload
4400
4479
  });
4401
- var DTODocumentationTabGroupDeleteActionOutputV2 = z160.object({
4402
- type: z160.literal("DocumentationTabGroupDelete"),
4480
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z163.object({
4481
+ type: z163.literal("DocumentationTabGroupDelete"),
4403
4482
  output: SuccessPayload
4404
4483
  });
4405
- var DTODocumentationGroupCreateActionInputV2 = z160.object({
4406
- type: z160.literal("DocumentationGroupCreate"),
4484
+ var DTODocumentationGroupCreateActionInputV2 = z163.object({
4485
+ type: z163.literal("DocumentationGroupCreate"),
4407
4486
  input: DTOCreateDocumentationGroupInput
4408
4487
  });
4409
- var DTODocumentationTabCreateActionInputV2 = z160.object({
4410
- type: z160.literal("DocumentationTabCreate"),
4488
+ var DTODocumentationTabCreateActionInputV2 = z163.object({
4489
+ type: z163.literal("DocumentationTabCreate"),
4411
4490
  input: DTOCreateDocumentationTabInput
4412
4491
  });
4413
- var DTODocumentationGroupUpdateActionInputV2 = z160.object({
4414
- type: z160.literal("DocumentationGroupUpdate"),
4492
+ var DTODocumentationGroupUpdateActionInputV2 = z163.object({
4493
+ type: z163.literal("DocumentationGroupUpdate"),
4415
4494
  input: DTOUpdateDocumentationGroupInput
4416
4495
  });
4417
- var DTODocumentationGroupMoveActionInputV2 = z160.object({
4418
- type: z160.literal("DocumentationGroupMove"),
4496
+ var DTODocumentationGroupMoveActionInputV2 = z163.object({
4497
+ type: z163.literal("DocumentationGroupMove"),
4419
4498
  input: DTOMoveDocumentationGroupInput
4420
4499
  });
4421
- var DTODocumentationGroupDuplicateActionInputV2 = z160.object({
4422
- type: z160.literal("DocumentationGroupDuplicate"),
4500
+ var DTODocumentationGroupDuplicateActionInputV2 = z163.object({
4501
+ type: z163.literal("DocumentationGroupDuplicate"),
4423
4502
  input: DTODuplicateDocumentationGroupInput
4424
4503
  });
4425
- var DTODocumentationGroupDeleteActionInputV2 = z160.object({
4426
- type: z160.literal("DocumentationGroupDelete"),
4504
+ var DTODocumentationGroupDeleteActionInputV2 = z163.object({
4505
+ type: z163.literal("DocumentationGroupDelete"),
4427
4506
  input: DTODeleteDocumentationGroupInput
4428
4507
  });
4429
- var DTODocumentationTabGroupDeleteActionInputV2 = z160.object({
4430
- type: z160.literal("DocumentationTabGroupDelete"),
4508
+ var DTODocumentationTabGroupDeleteActionInputV2 = z163.object({
4509
+ type: z163.literal("DocumentationTabGroupDelete"),
4431
4510
  input: DTODeleteDocumentationTabGroupInput
4432
4511
  });
4433
4512
 
4434
4513
  // src/api/dto/elements/documentation/group-v1.ts
4435
- import { z as z162 } from "zod";
4514
+ import { z as z165 } from "zod";
4436
4515
 
4437
4516
  // src/api/dto/elements/documentation/item-configuration-v1.ts
4438
- import { z as z161 } from "zod";
4439
- var DocumentationColorV1 = z161.object({
4440
- aliasTo: z161.string().optional(),
4441
- value: z161.string().optional()
4517
+ import { z as z164 } from "zod";
4518
+ var DocumentationColorV1 = z164.object({
4519
+ aliasTo: z164.string().optional(),
4520
+ value: z164.string().optional()
4442
4521
  });
4443
4522
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4444
4523
  foregroundColor: true,
@@ -4447,10 +4526,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4447
4526
  foregroundColor: DocumentationColorV1.optional(),
4448
4527
  backgroundColor: DocumentationColorV1.optional()
4449
4528
  });
4450
- var DTODocumentationItemConfigurationV1 = z161.object({
4451
- showSidebar: z161.boolean(),
4452
- isPrivate: z161.boolean(),
4453
- isHidden: z161.boolean(),
4529
+ var DTODocumentationItemConfigurationV1 = z164.object({
4530
+ showSidebar: z164.boolean(),
4531
+ isPrivate: z164.boolean(),
4532
+ isHidden: z164.boolean(),
4454
4533
  header: DTODocumentationItemHeaderV1
4455
4534
  });
4456
4535
 
@@ -4464,130 +4543,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
4464
4543
  data: true,
4465
4544
  shortPersistentId: true
4466
4545
  }).extend({
4467
- title: z162.string(),
4468
- isRoot: z162.boolean(),
4469
- childrenIds: z162.array(z162.string()),
4546
+ title: z165.string(),
4547
+ isRoot: z165.boolean(),
4548
+ childrenIds: z165.array(z165.string()),
4470
4549
  groupBehavior: DocumentationGroupBehavior,
4471
- shortPersistentId: z162.string(),
4472
- type: z162.literal("Group")
4550
+ shortPersistentId: z165.string(),
4551
+ type: z165.literal("Group")
4473
4552
  });
4474
4553
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
4475
4554
  configuration: DTODocumentationItemConfigurationV1
4476
4555
  });
4477
4556
 
4478
4557
  // src/api/dto/elements/documentation/page-actions-v2.ts
4479
- import { z as z164 } from "zod";
4558
+ import { z as z167 } from "zod";
4480
4559
 
4481
4560
  // src/api/dto/elements/documentation/page-v2.ts
4482
- import { z as z163 } from "zod";
4561
+ import { z as z166 } from "zod";
4483
4562
  var DTODocumentationPageV2 = DocumentationPageV2.omit({
4484
4563
  data: true,
4485
4564
  meta: true,
4486
4565
  parentPersistentId: true,
4487
4566
  sortOrder: true
4488
4567
  }).extend({
4489
- title: z163.string(),
4490
- path: z163.string(),
4491
- type: z163.literal("Page"),
4568
+ title: z166.string(),
4569
+ path: z166.string(),
4570
+ type: z166.literal("Page"),
4492
4571
  configuration: DTODocumentationItemConfigurationV2
4493
4572
  });
4494
4573
  var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
4495
- var DTODocumentationHierarchyV2 = z163.object({
4496
- pages: z163.array(DTODocumentationPageStructureV2),
4497
- groups: z163.array(DTODocumentationGroupStructureV2)
4574
+ var DTODocumentationHierarchyV2 = z166.object({
4575
+ pages: z166.array(DTODocumentationPageStructureV2),
4576
+ groups: z166.array(DTODocumentationGroupStructureV2)
4498
4577
  });
4499
- var DTOCreateDocumentationPageInputV2 = z163.object({
4578
+ var DTOCreateDocumentationPageInputV2 = z166.object({
4500
4579
  // Identifier
4501
- persistentId: z163.string().uuid(),
4580
+ persistentId: z166.string().uuid(),
4502
4581
  // Page properties
4503
- title: z163.string(),
4582
+ title: z166.string(),
4504
4583
  configuration: DTODocumentationItemConfigurationV2.optional(),
4505
4584
  // Page placement properties
4506
- parentPersistentId: z163.string().uuid(),
4507
- afterPersistentId: z163.string().uuid().nullish()
4585
+ parentPersistentId: z166.string().uuid(),
4586
+ afterPersistentId: z166.string().uuid().nullish()
4508
4587
  });
4509
- var DTOUpdateDocumentationPageInputV2 = z163.object({
4588
+ var DTOUpdateDocumentationPageInputV2 = z166.object({
4510
4589
  // Identifier of the group to update
4511
- id: z163.string(),
4590
+ id: z166.string(),
4512
4591
  // Page properties
4513
- title: z163.string().optional(),
4592
+ title: z166.string().optional(),
4514
4593
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4515
4594
  });
4516
- var DTOMoveDocumentationPageInputV2 = z163.object({
4595
+ var DTOMoveDocumentationPageInputV2 = z166.object({
4517
4596
  // Identifier of the group to update
4518
- id: z163.string(),
4597
+ id: z166.string(),
4519
4598
  // Page placement properties
4520
- parentPersistentId: z163.string().uuid(),
4521
- afterPersistentId: z163.string().uuid().nullish()
4599
+ parentPersistentId: z166.string().uuid(),
4600
+ afterPersistentId: z166.string().uuid().nullish()
4522
4601
  });
4523
- var DTODuplicateDocumentationPageInputV2 = z163.object({
4602
+ var DTODuplicateDocumentationPageInputV2 = z166.object({
4524
4603
  // Identifier of the page to duplicate from
4525
- id: z163.string(),
4604
+ id: z166.string(),
4526
4605
  // New page persistent id
4527
- persistentId: z163.string().uuid(),
4606
+ persistentId: z166.string().uuid(),
4528
4607
  // Page placement properties
4529
- parentPersistentId: z163.string().uuid(),
4530
- afterPersistentId: z163.string().uuid().nullish()
4608
+ parentPersistentId: z166.string().uuid(),
4609
+ afterPersistentId: z166.string().uuid().nullish()
4531
4610
  });
4532
- var DTODeleteDocumentationPageInputV2 = z163.object({
4611
+ var DTODeleteDocumentationPageInputV2 = z166.object({
4533
4612
  // Identifier
4534
- id: z163.string()
4613
+ id: z166.string()
4535
4614
  });
4536
4615
 
4537
4616
  // src/api/dto/elements/documentation/page-actions-v2.ts
4538
- var SuccessPayload2 = z164.object({
4539
- success: z164.literal(true)
4617
+ var SuccessPayload2 = z167.object({
4618
+ success: z167.literal(true)
4540
4619
  });
4541
- var DTODocumentationPageCreateActionOutputV2 = z164.object({
4542
- type: z164.literal("DocumentationPageCreate"),
4620
+ var DTODocumentationPageCreateActionOutputV2 = z167.object({
4621
+ type: z167.literal("DocumentationPageCreate"),
4543
4622
  output: SuccessPayload2
4544
4623
  });
4545
- var DTODocumentationPageUpdateActionOutputV2 = z164.object({
4546
- type: z164.literal("DocumentationPageUpdate"),
4624
+ var DTODocumentationPageUpdateActionOutputV2 = z167.object({
4625
+ type: z167.literal("DocumentationPageUpdate"),
4547
4626
  output: SuccessPayload2
4548
4627
  });
4549
- var DTODocumentationPageMoveActionOutputV2 = z164.object({
4550
- type: z164.literal("DocumentationPageMove"),
4628
+ var DTODocumentationPageMoveActionOutputV2 = z167.object({
4629
+ type: z167.literal("DocumentationPageMove"),
4551
4630
  output: SuccessPayload2
4552
4631
  });
4553
- var DTODocumentationPageDuplicateActionOutputV2 = z164.object({
4554
- type: z164.literal("DocumentationPageDuplicate"),
4632
+ var DTODocumentationPageDuplicateActionOutputV2 = z167.object({
4633
+ type: z167.literal("DocumentationPageDuplicate"),
4555
4634
  output: SuccessPayload2
4556
4635
  });
4557
- var DTODocumentationPageDeleteActionOutputV2 = z164.object({
4558
- type: z164.literal("DocumentationPageDelete"),
4636
+ var DTODocumentationPageDeleteActionOutputV2 = z167.object({
4637
+ type: z167.literal("DocumentationPageDelete"),
4559
4638
  output: SuccessPayload2
4560
4639
  });
4561
- var DTODocumentationPageCreateActionInputV2 = z164.object({
4562
- type: z164.literal("DocumentationPageCreate"),
4640
+ var DTODocumentationPageCreateActionInputV2 = z167.object({
4641
+ type: z167.literal("DocumentationPageCreate"),
4563
4642
  input: DTOCreateDocumentationPageInputV2
4564
4643
  });
4565
- var DTODocumentationPageUpdateActionInputV2 = z164.object({
4566
- type: z164.literal("DocumentationPageUpdate"),
4644
+ var DTODocumentationPageUpdateActionInputV2 = z167.object({
4645
+ type: z167.literal("DocumentationPageUpdate"),
4567
4646
  input: DTOUpdateDocumentationPageInputV2
4568
4647
  });
4569
- var DTODocumentationPageMoveActionInputV2 = z164.object({
4570
- type: z164.literal("DocumentationPageMove"),
4648
+ var DTODocumentationPageMoveActionInputV2 = z167.object({
4649
+ type: z167.literal("DocumentationPageMove"),
4571
4650
  input: DTOMoveDocumentationPageInputV2
4572
4651
  });
4573
- var DTODocumentationPageDuplicateActionInputV2 = z164.object({
4574
- type: z164.literal("DocumentationPageDuplicate"),
4652
+ var DTODocumentationPageDuplicateActionInputV2 = z167.object({
4653
+ type: z167.literal("DocumentationPageDuplicate"),
4575
4654
  input: DTODuplicateDocumentationPageInputV2
4576
4655
  });
4577
- var DTODocumentationPageDeleteActionInputV2 = z164.object({
4578
- type: z164.literal("DocumentationPageDelete"),
4656
+ var DTODocumentationPageDeleteActionInputV2 = z167.object({
4657
+ type: z167.literal("DocumentationPageDelete"),
4579
4658
  input: DTODeleteDocumentationPageInputV2
4580
4659
  });
4581
4660
 
4582
4661
  // src/api/dto/elements/documentation/page-content.ts
4583
- import { z as z165 } from "zod";
4662
+ import { z as z168 } from "zod";
4584
4663
  var DTODocumentationPageContent = DocumentationPageContent;
4585
- var DTODocumentationPageContentGetResponse = z165.object({
4664
+ var DTODocumentationPageContentGetResponse = z168.object({
4586
4665
  pageContent: DTODocumentationPageContent
4587
4666
  });
4588
4667
 
4589
4668
  // src/api/dto/elements/documentation/page-v1.ts
4590
- import { z as z166 } from "zod";
4669
+ import { z as z169 } from "zod";
4591
4670
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
4592
4671
  data: true,
4593
4672
  meta: true,
@@ -4595,130 +4674,137 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
4595
4674
  sortOrder: true
4596
4675
  }).extend({
4597
4676
  configuration: DTODocumentationItemConfigurationV1,
4598
- blocks: z166.array(PageBlockV1),
4599
- title: z166.string(),
4600
- path: z166.string()
4677
+ blocks: z169.array(PageBlockV1),
4678
+ title: z169.string(),
4679
+ path: z169.string()
4601
4680
  });
4602
4681
 
4603
4682
  // src/api/dto/elements/figma-nodes/figma-node.ts
4604
- import { z as z167 } from "zod";
4605
- var DTOFigmaNodeData = z167.object({
4683
+ import { z as z170 } from "zod";
4684
+ var DTOFigmaNodeOrigin = z170.object({
4685
+ sourceId: z170.string(),
4686
+ fileId: z170.string().optional(),
4687
+ parentName: z170.string().optional()
4688
+ });
4689
+ var DTOFigmaNodeData = z170.object({
4606
4690
  // Id of the node in the Figma file
4607
- figmaNodeId: z167.string(),
4691
+ figmaNodeId: z170.string(),
4608
4692
  // Validity
4609
- isValid: z167.boolean(),
4693
+ isValid: z170.boolean(),
4610
4694
  // Asset data
4611
- assetId: z167.string(),
4612
- assetUrl: z167.string(),
4695
+ assetId: z170.string(),
4696
+ assetUrl: z170.string(),
4613
4697
  // Asset metadata
4614
- assetScale: z167.number(),
4615
- assetWidth: z167.number().optional(),
4616
- assetHeight: z167.number().optional()
4698
+ assetScale: z170.number(),
4699
+ assetWidth: z170.number().optional(),
4700
+ assetHeight: z170.number().optional()
4617
4701
  });
4618
4702
  var DTOFigmaNode = FigmaFileStructure.omit({
4619
- data: true
4703
+ data: true,
4704
+ origin: true
4620
4705
  }).extend({
4621
- data: DTOFigmaNodeData
4706
+ data: DTOFigmaNodeData,
4707
+ origin: DTOFigmaNodeOrigin
4622
4708
  });
4623
- var DTOFigmaNodeRenderInput = z167.object({
4709
+ var DTOFigmaNodeRenderInput = z170.object({
4624
4710
  // Id of a design system's data source representing a linked Figma file
4625
- sourceId: z167.string(),
4711
+ sourceId: z170.string(),
4626
4712
  // Id of a node within the Figma file
4627
- figmaFileNodeId: z167.string()
4713
+ figmaFileNodeId: z170.string()
4628
4714
  });
4629
4715
 
4630
4716
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
4631
- import { z as z168 } from "zod";
4632
- var DTOFigmaNodeRenderActionOutput = z168.object({
4633
- type: z168.literal("FigmaNodeRender"),
4634
- figmaNodes: z168.array(DTOFigmaNode)
4717
+ import { z as z171 } from "zod";
4718
+ var DTOFigmaNodeRenderActionOutput = z171.object({
4719
+ type: z171.literal("FigmaNodeRender"),
4720
+ figmaNodes: z171.array(DTOFigmaNode)
4635
4721
  });
4636
- var DTOFigmaNodeRenderActionInput = z168.object({
4637
- type: z168.literal("FigmaNodeRender"),
4722
+ var DTOFigmaNodeRenderActionInput = z171.object({
4723
+ type: z171.literal("FigmaNodeRender"),
4638
4724
  input: DTOFigmaNodeRenderInput.array()
4639
4725
  });
4640
4726
 
4641
4727
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4642
- import { z as z170 } from "zod";
4728
+ import { z as z173 } from "zod";
4643
4729
 
4644
4730
  // src/api/dto/elements/properties/property-definitions.ts
4645
- import { z as z169 } from "zod";
4731
+ import { z as z172 } from "zod";
4646
4732
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
4647
- var DTOElementPropertyDefinition = z169.object({
4648
- id: z169.string(),
4649
- designSystemVersionId: z169.string(),
4733
+ var DTOElementPropertyDefinition = z172.object({
4734
+ id: z172.string(),
4735
+ designSystemVersionId: z172.string(),
4650
4736
  meta: ObjectMeta,
4651
- persistentId: z169.string(),
4737
+ persistentId: z172.string(),
4652
4738
  type: ElementPropertyTypeSchema,
4653
4739
  targetElementType: ElementPropertyTargetType,
4654
- codeName: z169.string().regex(CODE_NAME_REGEX2),
4655
- options: z169.array(ElementPropertyDefinitionOption).optional(),
4740
+ codeName: z172.string().regex(CODE_NAME_REGEX2),
4741
+ options: z172.array(ElementPropertyDefinitionOption).optional(),
4656
4742
  linkElementType: ElementPropertyLinkType.optional()
4657
4743
  });
4658
- var DTOElementPropertyDefinitionsGetResponse = z169.object({
4659
- definitions: z169.array(DTOElementPropertyDefinition)
4744
+ var DTOElementPropertyDefinitionsGetResponse = z172.object({
4745
+ definitions: z172.array(DTOElementPropertyDefinition)
4660
4746
  });
4661
4747
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
4662
4748
  id: true,
4663
4749
  designSystemVersionId: true
4664
4750
  });
4665
- var DTOUpdateElementPropertyDefinitionInputV2 = z169.object({
4666
- id: z169.string(),
4667
- name: z169.string().optional(),
4668
- description: z169.string().optional(),
4669
- codeName: z169.string().regex(CODE_NAME_REGEX2).optional(),
4670
- options: z169.array(ElementPropertyDefinitionOption).optional()
4751
+ var DTOUpdateElementPropertyDefinitionInputV2 = z172.object({
4752
+ id: z172.string(),
4753
+ name: z172.string().optional(),
4754
+ description: z172.string().optional(),
4755
+ codeName: z172.string().regex(CODE_NAME_REGEX2).optional(),
4756
+ options: z172.array(ElementPropertyDefinitionOption).optional()
4671
4757
  });
4672
- var DTODeleteElementPropertyDefinitionInputV2 = z169.object({
4673
- id: z169.string()
4758
+ var DTODeleteElementPropertyDefinitionInputV2 = z172.object({
4759
+ id: z172.string()
4674
4760
  });
4675
4761
 
4676
4762
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4677
- var SuccessPayload3 = z170.object({
4678
- success: z170.literal(true)
4763
+ var SuccessPayload3 = z173.object({
4764
+ success: z173.literal(true)
4679
4765
  });
4680
- var DTOPropertyDefinitionCreateActionOutputV2 = z170.object({
4681
- type: z170.literal("PropertyDefinitionCreate"),
4766
+ var DTOPropertyDefinitionCreateActionOutputV2 = z173.object({
4767
+ type: z173.literal("PropertyDefinitionCreate"),
4682
4768
  definition: DTOElementPropertyDefinition
4683
4769
  });
4684
- var DTOPropertyDefinitionUpdateActionOutputV2 = z170.object({
4685
- type: z170.literal("PropertyDefinitionUpdate"),
4770
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z173.object({
4771
+ type: z173.literal("PropertyDefinitionUpdate"),
4686
4772
  definition: DTOElementPropertyDefinition
4687
4773
  });
4688
- var DTOPropertyDefinitionDeleteActionOutputV2 = z170.object({
4689
- type: z170.literal("PropertyDefinitionDelete"),
4774
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z173.object({
4775
+ type: z173.literal("PropertyDefinitionDelete"),
4690
4776
  output: SuccessPayload3
4691
4777
  });
4692
- var DTOPropertyDefinitionCreateActionInputV2 = z170.object({
4693
- type: z170.literal("PropertyDefinitionCreate"),
4778
+ var DTOPropertyDefinitionCreateActionInputV2 = z173.object({
4779
+ type: z173.literal("PropertyDefinitionCreate"),
4694
4780
  input: DTOCreateElementPropertyDefinitionInputV2
4695
4781
  });
4696
- var DTOPropertyDefinitionUpdateActionInputV2 = z170.object({
4697
- type: z170.literal("PropertyDefinitionUpdate"),
4782
+ var DTOPropertyDefinitionUpdateActionInputV2 = z173.object({
4783
+ type: z173.literal("PropertyDefinitionUpdate"),
4698
4784
  input: DTOUpdateElementPropertyDefinitionInputV2
4699
4785
  });
4700
- var DTOPropertyDefinitionDeleteActionInputV2 = z170.object({
4701
- type: z170.literal("PropertyDefinitionDelete"),
4786
+ var DTOPropertyDefinitionDeleteActionInputV2 = z173.object({
4787
+ type: z173.literal("PropertyDefinitionDelete"),
4702
4788
  input: DTODeleteElementPropertyDefinitionInputV2
4703
4789
  });
4704
4790
 
4705
4791
  // src/api/dto/elements/properties/property-values.ts
4706
- import { z as z171 } from "zod";
4707
- var DTOElementPropertyValue = z171.object({
4708
- id: z171.string(),
4709
- designSystemVersionId: z171.string(),
4710
- definitionId: z171.string(),
4711
- targetElementId: z171.string(),
4712
- value: z171.union([z171.string(), z171.number(), z171.boolean()]).optional(),
4713
- valuePreview: z171.string().optional()
4792
+ import { z as z174 } from "zod";
4793
+ var DTOElementPropertyValue = z174.object({
4794
+ id: z174.string(),
4795
+ designSystemVersionId: z174.string(),
4796
+ definitionId: z174.string(),
4797
+ targetElementId: z174.string(),
4798
+ value: z174.union([z174.string(), z174.number(), z174.boolean()]).optional(),
4799
+ valuePreview: z174.string().optional()
4714
4800
  });
4715
- var DTOElementPropertyValuesGetResponse = z171.object({
4716
- values: z171.array(DTOElementPropertyValue)
4801
+ var DTOElementPropertyValuesGetResponse = z174.object({
4802
+ values: z174.array(DTOElementPropertyValue)
4717
4803
  });
4718
4804
 
4719
4805
  // src/api/dto/elements/elements-action-v2.ts
4720
- import { z as z172 } from "zod";
4721
- var DTOElementActionOutput = z172.discriminatedUnion("type", [
4806
+ import { z as z175 } from "zod";
4807
+ var DTOElementActionOutput = z175.discriminatedUnion("type", [
4722
4808
  // Documentation pages
4723
4809
  DTODocumentationPageCreateActionOutputV2,
4724
4810
  DTODocumentationPageUpdateActionOutputV2,
@@ -4740,7 +4826,7 @@ var DTOElementActionOutput = z172.discriminatedUnion("type", [
4740
4826
  DTOPropertyDefinitionUpdateActionOutputV2,
4741
4827
  DTOPropertyDefinitionDeleteActionOutputV2
4742
4828
  ]);
4743
- var DTOElementActionInput = z172.discriminatedUnion("type", [
4829
+ var DTOElementActionInput = z175.discriminatedUnion("type", [
4744
4830
  // Documentation pages
4745
4831
  DTODocumentationPageCreateActionInputV2,
4746
4832
  DTODocumentationPageUpdateActionInputV2,
@@ -4764,72 +4850,73 @@ var DTOElementActionInput = z172.discriminatedUnion("type", [
4764
4850
  ]);
4765
4851
 
4766
4852
  // src/api/dto/elements/get-elements-v2.ts
4767
- import { z as z173 } from "zod";
4768
- var DTOElementsGetTypeFilter = z173.enum(["FigmaNode"]);
4769
- var DTOElementsGetQuerySchema = z173.object({
4770
- types: z173.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
4853
+ import { z as z176 } from "zod";
4854
+ var DTOElementsGetTypeFilter = z176.enum(["FigmaNode"]);
4855
+ var DTOElementsGetQuerySchema = z176.object({
4856
+ types: z176.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
4771
4857
  });
4772
- var DTOElementsGetOutput = z173.object({
4773
- figmaNodes: z173.array(DTOFigmaNode).optional()
4858
+ var DTOElementsGetOutput = z176.object({
4859
+ figmaNodes: z176.array(DTOFigmaNode).optional()
4774
4860
  });
4775
4861
 
4776
4862
  // src/api/dto/workspaces/integrations.ts
4777
- import { z as z174 } from "zod";
4778
- var DTOIntegration = z174.object({
4779
- id: z174.string(),
4780
- workspaceId: z174.string(),
4781
- type: IntegrationType,
4782
- createdAt: z174.coerce.date(),
4783
- integrationCredentials: z174.array(IntegrationCredentials).optional()
4784
- });
4785
- var DTOIntegrationOAuthGetResponse = z174.object({
4786
- url: z174.string()
4787
- });
4788
- var DTOIntegrationPostResponse = z174.object({
4863
+ import { z as z177 } from "zod";
4864
+ var DTOIntegration = z177.object({
4865
+ id: z177.string(),
4866
+ workspaceId: z177.string(),
4867
+ type: ExtendedIntegrationType,
4868
+ createdAt: z177.coerce.date(),
4869
+ integrationCredentials: z177.array(IntegrationCredentials).optional(),
4870
+ integrationDesignSystems: z177.array(IntegrationDesignSystem).optional()
4871
+ });
4872
+ var DTOIntegrationOAuthGetResponse = z177.object({
4873
+ url: z177.string()
4874
+ });
4875
+ var DTOIntegrationPostResponse = z177.object({
4789
4876
  integration: DTOIntegration
4790
4877
  });
4791
- var DTOIntegrationsGetListResponse = z174.object({
4878
+ var DTOIntegrationsGetListResponse = z177.object({
4792
4879
  integrations: DTOIntegration.array()
4793
4880
  });
4794
4881
 
4795
4882
  // src/api/dto/workspaces/membership.ts
4796
- import { z as z177 } from "zod";
4883
+ import { z as z180 } from "zod";
4797
4884
 
4798
4885
  // src/api/dto/workspaces/workspace.ts
4799
- import { z as z176 } from "zod";
4886
+ import { z as z179 } from "zod";
4800
4887
 
4801
4888
  // src/api/dto/workspaces/npm-registry.ts
4802
- import { z as z175 } from "zod";
4803
- var DTONpmRegistryConfig = z175.object({
4889
+ import { z as z178 } from "zod";
4890
+ var DTONpmRegistryConfig = z178.object({
4804
4891
  // Registry basic configuration
4805
4892
  registryType: NpmRegistryType,
4806
- registryUrl: z175.string(),
4807
- customRegistryUrl: z175.string().optional(),
4893
+ registryUrl: z178.string(),
4894
+ customRegistryUrl: z178.string().optional(),
4808
4895
  // URL of Supernova NPM packages proxy
4809
- proxyUrl: z175.string(),
4896
+ proxyUrl: z178.string(),
4810
4897
  // Auth configuration
4811
4898
  authType: NpmRegistryAuthType,
4812
- accessToken: z175.literal("redacted").optional(),
4813
- username: z175.string().optional(),
4814
- password: z175.literal("redacted").optional(),
4899
+ accessToken: z178.literal("redacted").optional(),
4900
+ username: z178.string().optional(),
4901
+ password: z178.literal("redacted").optional(),
4815
4902
  // NPM package scopes for whih the proxy should be enabled
4816
- enabledScopes: z175.array(z175.string()),
4903
+ enabledScopes: z178.array(z178.string()),
4817
4904
  // True if client should bypass Supernova proxy and connect directly to the registry
4818
4905
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
4819
- bypassProxy: z175.boolean()
4906
+ bypassProxy: z178.boolean()
4820
4907
  });
4821
4908
 
4822
4909
  // src/api/dto/workspaces/workspace.ts
4823
- var DTOWorkspace = z176.object({
4824
- id: z176.string(),
4910
+ var DTOWorkspace = z179.object({
4911
+ id: z179.string(),
4825
4912
  profile: WorkspaceProfile,
4826
4913
  subscription: Subscription,
4827
4914
  npmRegistry: DTONpmRegistryConfig.optional()
4828
4915
  });
4829
4916
 
4830
4917
  // src/api/dto/workspaces/membership.ts
4831
- var DTOWorkspaceRole = z177.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
4832
- var DTOUserWorkspaceMembership = z177.object({
4918
+ var DTOWorkspaceRole = z180.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
4919
+ var DTOUserWorkspaceMembership = z180.object({
4833
4920
  // Workspace the user is a member of
4834
4921
  workspace: DTOWorkspace,
4835
4922
  // Assigned role the user has in the workspace
@@ -4839,14 +4926,14 @@ var DTOUserWorkspaceMembership = z177.object({
4839
4926
  // when a workspace's subscription is downgraded to free tier
4840
4927
  effectiveRole: DTOWorkspaceRole
4841
4928
  });
4842
- var DTOUserWorkspaceMembershipsResponse = z177.object({
4843
- membership: z177.array(DTOUserWorkspaceMembership)
4929
+ var DTOUserWorkspaceMembershipsResponse = z180.object({
4930
+ membership: z180.array(DTOUserWorkspaceMembership)
4844
4931
  });
4845
4932
 
4846
4933
  // src/yjs/design-system-content/documentation-hierarchy.ts
4847
- import { z as z178 } from "zod";
4848
- var DocumentationHierarchySettings = z178.object({
4849
- routingVersion: z178.string()
4934
+ import { z as z181 } from "zod";
4935
+ var DocumentationHierarchySettings = z181.object({
4936
+ routingVersion: z181.string()
4850
4937
  });
4851
4938
  function documentationHierarchyToYjs(doc, transaction) {
4852
4939
  doc.transact((trx) => {
@@ -4917,13 +5004,13 @@ function getInternalSettingsYMap(doc) {
4917
5004
  }
4918
5005
 
4919
5006
  // src/yjs/design-system-content/item-configuration.ts
4920
- import { z as z179 } from "zod";
4921
- var DTODocumentationPageRoomHeaderData = z179.object({
4922
- title: z179.string(),
5007
+ import { z as z182 } from "zod";
5008
+ var DTODocumentationPageRoomHeaderData = z182.object({
5009
+ title: z182.string(),
4923
5010
  configuration: DTODocumentationItemConfigurationV2
4924
5011
  });
4925
- var DTODocumentationPageRoomHeaderDataUpdate = z179.object({
4926
- title: z179.string().optional(),
5012
+ var DTODocumentationPageRoomHeaderDataUpdate = z182.object({
5013
+ title: z182.string().optional(),
4927
5014
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
4928
5015
  });
4929
5016
  function itemConfigurationToYjs(yDoc, item) {
@@ -4974,7 +5061,7 @@ function yjsToItemConfiguration(yDoc) {
4974
5061
  header: rawHeader
4975
5062
  };
4976
5063
  return {
4977
- title: z179.string().parse(title),
5064
+ title: z182.string().parse(title),
4978
5065
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
4979
5066
  };
4980
5067
  }
@@ -4984,9 +5071,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
4984
5071
  var PageSectionEditorModel = PageSectionEditorModelV2;
4985
5072
 
4986
5073
  // src/yjs/docs-editor/model/page.ts
4987
- import { z as z180 } from "zod";
4988
- var DocumentationPageEditorModel = z180.object({
4989
- blocks: z180.array(PageBlockEditorModel.or(PageSectionEditorModel))
5074
+ import { z as z183 } from "zod";
5075
+ var DocumentationPageEditorModel = z183.object({
5076
+ blocks: z183.array(PageBlockEditorModel.or(PageSectionEditorModel))
4990
5077
  });
4991
5078
 
4992
5079
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -7958,7 +8045,7 @@ var blocks = [
7958
8045
 
7959
8046
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
7960
8047
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
7961
- import { z as z181 } from "zod";
8048
+ import { z as z184 } from "zod";
7962
8049
  function yDocToPage(yDoc, definitions) {
7963
8050
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
7964
8051
  }
@@ -8001,7 +8088,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
8001
8088
  return null;
8002
8089
  return {
8003
8090
  id,
8004
- title: getProsemirrorAttribute(prosemirrorNode, "title", z181.string()) ?? "",
8091
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z184.string()) ?? "",
8005
8092
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
8006
8093
  };
8007
8094
  }
@@ -8036,7 +8123,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
8036
8123
  });
8037
8124
  }
8038
8125
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
8039
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z181.string());
8126
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z184.string());
8040
8127
  if (!definitionId) {
8041
8128
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
8042
8129
  return [];
@@ -8078,7 +8165,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
8078
8165
  if (!id)
8079
8166
  return null;
8080
8167
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8081
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z181.string().optional()));
8168
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z184.string().optional()));
8082
8169
  return {
8083
8170
  // TODO Artem: indent
8084
8171
  id,
@@ -8205,10 +8292,10 @@ function parseRichTextAttribute(mark) {
8205
8292
  return null;
8206
8293
  }
8207
8294
  function parseProsemirrorLink(mark) {
8208
- const href = getProsemirrorAttribute(mark, "href", z181.string().optional());
8295
+ const href = getProsemirrorAttribute(mark, "href", z184.string().optional());
8209
8296
  if (!href)
8210
8297
  return null;
8211
- const target = getProsemirrorAttribute(mark, "target", z181.string().optional());
8298
+ const target = getProsemirrorAttribute(mark, "target", z184.string().optional());
8212
8299
  const openInNewTab = target === "_blank";
8213
8300
  if (href.startsWith("@")) {
8214
8301
  return {
@@ -8231,7 +8318,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
8231
8318
  if (!id)
8232
8319
  return null;
8233
8320
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8234
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z181.boolean().optional()) !== false;
8321
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z184.boolean().optional()) !== false;
8235
8322
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
8236
8323
  if (!tableChild) {
8237
8324
  return emptyTable(id, variantId, 0);
@@ -8278,9 +8365,9 @@ function parseAsTableCell(prosemirrorNode) {
8278
8365
  const id = getProsemirrorBlockId(prosemirrorNode);
8279
8366
  if (!id)
8280
8367
  return null;
8281
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z181.string().optional());
8368
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z184.string().optional());
8282
8369
  let columnWidth;
8283
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z181.array(z181.number()).optional());
8370
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z184.array(z184.number()).optional());
8284
8371
  if (columnWidthArray) {
8285
8372
  columnWidth = columnWidthArray[0];
8286
8373
  }
@@ -8318,7 +8405,7 @@ function parseAsTableNode(prosemirrorNode) {
8318
8405
  value: parseRichText(prosemirrorNode.content ?? [])
8319
8406
  };
8320
8407
  case "image":
8321
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z181.string());
8408
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z184.string());
8322
8409
  if (!items)
8323
8410
  return null;
8324
8411
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -8423,7 +8510,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
8423
8510
  };
8424
8511
  }
8425
8512
  function parseBlockItems(prosemirrorNode, definition) {
8426
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z181.string());
8513
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z184.string());
8427
8514
  if (!itemsString)
8428
8515
  return null;
8429
8516
  const itemsJson = JSON.parse(itemsString);
@@ -8435,18 +8522,18 @@ function parseBlockItems(prosemirrorNode, definition) {
8435
8522
  }
8436
8523
  function parseAppearance(prosemirrorNode) {
8437
8524
  let appearance = {};
8438
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z181.string().optional());
8525
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z184.string().optional());
8439
8526
  if (rawAppearanceString) {
8440
8527
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
8441
8528
  if (parsedAppearance.success) {
8442
8529
  appearance = parsedAppearance.data;
8443
8530
  }
8444
8531
  }
8445
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z181.number().optional());
8532
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z184.number().optional());
8446
8533
  if (columns) {
8447
8534
  appearance.numberOfColumns = columns;
8448
8535
  }
8449
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z181.string().optional());
8536
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z184.string().optional());
8450
8537
  if (backgroundColor) {
8451
8538
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
8452
8539
  if (parsedColor.success) {
@@ -8537,13 +8624,13 @@ function valueSchemaForPropertyType(type) {
8537
8624
  }
8538
8625
  }
8539
8626
  function getProsemirrorBlockId(prosemirrorNode) {
8540
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z181.string());
8627
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z184.string());
8541
8628
  if (!id)
8542
8629
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
8543
8630
  return id;
8544
8631
  }
8545
8632
  function getProsemirrorBlockVariantId(prosemirrorNode) {
8546
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z181.string()));
8633
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z184.string()));
8547
8634
  }
8548
8635
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
8549
8636
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -8586,6 +8673,8 @@ export {
8586
8673
  DTODesignSystemVersion,
8587
8674
  DTODesignSystemVersionCreationResponse,
8588
8675
  DTODesignSystemVersionGetResponse,
8676
+ DTODesignSystemVersionJobStatusResponse,
8677
+ DTODesignSystemVersionJobsResponse,
8589
8678
  DTODesignSystemVersionsListResponse,
8590
8679
  DTODocumentationGroupCreateActionInputV2,
8591
8680
  DTODocumentationGroupCreateActionOutputV2,
@@ -8650,6 +8739,7 @@ export {
8650
8739
  DTOExporterPropertyListResponse,
8651
8740
  DTOFigmaNode,
8652
8741
  DTOFigmaNodeData,
8742
+ DTOFigmaNodeOrigin,
8653
8743
  DTOFigmaNodeRenderActionInput,
8654
8744
  DTOFigmaNodeRenderActionOutput,
8655
8745
  DTOFigmaNodeRenderInput,
@@ -8720,7 +8810,7 @@ export {
8720
8810
  prosemirrorNodesToBlocks,
8721
8811
  serializeAsCustomBlock,
8722
8812
  shallowProsemirrorNodeToBlock,
8723
- validateSemver,
8813
+ validateDesignSystemVersion,
8724
8814
  validateSsoPayload,
8725
8815
  yDocToPage,
8726
8816
  yXmlFragmentToPage,