@supernova-studio/client 0.46.1 → 0.46.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,3 +1,10 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+
1
8
  // ../model/dist/index.mjs
2
9
  import { z } from "zod";
3
10
  import { z as z2 } from "zod";
@@ -102,20 +109,20 @@ import { z as z98 } from "zod";
102
109
  import { z as z99 } from "zod";
103
110
  import { z as z100 } from "zod";
104
111
  import { z as z101 } from "zod";
112
+ import { z as z111 } from "zod";
105
113
  import { z as z102 } from "zod";
106
114
  import { z as z103 } from "zod";
107
- import { z as z104 } from "zod";
108
- import { z as z114 } from "zod";
109
115
  import { z as z105 } from "zod";
116
+ import { z as z104 } from "zod";
117
+ import { z as z107 } from "zod";
110
118
  import { z as z106 } from "zod";
119
+ import IPCIDR from "ip-cidr";
111
120
  import { z as z108 } from "zod";
112
- import { z as z107 } from "zod";
113
- import { z as z110 } from "zod";
114
121
  import { z as z109 } from "zod";
115
- import IPCIDR from "ip-cidr";
116
- import { z as z111 } from "zod";
122
+ import { z as z110 } from "zod";
117
123
  import { z as z112 } from "zod";
118
124
  import { z as z113 } from "zod";
125
+ import { z as z114 } from "zod";
119
126
  import { z as z115 } from "zod";
120
127
  import { z as z116 } from "zod";
121
128
  import { z as z117 } from "zod";
@@ -124,12 +131,12 @@ import { z as z119 } from "zod";
124
131
  import { z as z120 } from "zod";
125
132
  import { z as z121 } from "zod";
126
133
  import { z as z122 } from "zod";
134
+ import { z as z125 } from "zod";
127
135
  import { z as z123 } from "zod";
128
- import { z as z126 } from "zod";
129
136
  import { z as z124 } from "zod";
130
- import { z as z125 } from "zod";
131
- import { z as z127 } from "zod";
137
+ import { z as z126 } from "zod";
132
138
  import { z as z134 } from "zod";
139
+ import { z as z127 } from "zod";
133
140
  import { z as z128 } from "zod";
134
141
  import { z as z129 } from "zod";
135
142
  import { z as z130 } from "zod";
@@ -146,6 +153,10 @@ import { z as z141 } from "zod";
146
153
  import { z as z142 } from "zod";
147
154
  import { z as z143 } from "zod";
148
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";
159
+ import { z as z148 } from "zod";
149
160
  import slugifyImplementation from "@sindresorhus/slugify";
150
161
  var PluginOAuthRequestSchema = z.object({
151
162
  id: z.string(),
@@ -2212,390 +2223,392 @@ var DocumentationPage = z98.object({
2212
2223
  createdAt: z98.coerce.date(),
2213
2224
  updatedAt: z98.coerce.date()
2214
2225
  });
2215
- var DesignSystemVersionRoom = Entity.extend({
2216
- designSystemVersionId: z99.string(),
2217
- liveblocksId: z99.string()
2218
- });
2219
- var DesignSystemVersionRoomInternalSettings = z99.object({
2220
- routingVersion: z99.string()
2221
- });
2222
- var DesignSystemVersionRoomInitialState = z99.object({
2223
- pages: z99.array(DocumentationPageV2),
2224
- groups: z99.array(ElementGroup),
2225
- internalSettings: DesignSystemVersionRoomInternalSettings
2226
- });
2227
- var DesignSystemVersionRoomUpdate = z99.object({
2228
- pages: z99.array(DocumentationPageV2),
2229
- groups: z99.array(ElementGroup),
2230
- deletedPageIds: z99.array(z99.string()),
2231
- deletedGroupIds: z99.array(z99.string())
2232
- });
2233
- var DocumentationPageRoom = Entity.extend({
2234
- designSystemVersionId: z100.string(),
2235
- documentationPageId: z100.string(),
2236
- liveblocksId: z100.string(),
2237
- isDirty: z100.boolean()
2238
- });
2239
- var DocumentationPageRoomState = z100.object({
2240
- pageItems: z100.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2241
- itemConfiguration: DocumentationItemConfigurationV2
2242
- });
2243
- var DocumentationPageRoomRoomUpdate = z100.object({
2244
- page: DocumentationPageV2,
2245
- pageParent: ElementGroup
2246
- });
2247
- var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
2248
- pageItems: z100.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2249
- blockDefinitions: z100.array(PageBlockDefinition)
2250
- });
2251
- var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2252
- RoomTypeEnum2["DocumentationPage"] = "documentation-page";
2253
- RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
2254
- return RoomTypeEnum2;
2255
- })(RoomTypeEnum || {});
2256
- var RoomTypeSchema = z101.nativeEnum(RoomTypeEnum);
2257
- var RoomType = RoomTypeSchema.enum;
2258
- var ElementViewBaseColumnType = z102.enum(["Name", "Description", "Value", "UpdatedAt"]);
2259
- var ElementViewColumnType = z102.union([
2260
- z102.literal("BaseProperty"),
2261
- z102.literal("PropertyDefinition"),
2262
- z102.literal("Theme")
2226
+ var ElementViewBaseColumnType = z99.enum(["Name", "Description", "Value", "UpdatedAt"]);
2227
+ var ElementViewColumnType = z99.union([
2228
+ z99.literal("BaseProperty"),
2229
+ z99.literal("PropertyDefinition"),
2230
+ z99.literal("Theme")
2263
2231
  ]);
2264
- var ElementViewColumnSharedAttributes = z102.object({
2265
- id: z102.string(),
2266
- persistentId: z102.string(),
2267
- elementDataViewId: z102.string(),
2268
- sortPosition: z102.number(),
2269
- width: z102.number()
2232
+ var ElementViewColumnSharedAttributes = z99.object({
2233
+ id: z99.string(),
2234
+ persistentId: z99.string(),
2235
+ elementDataViewId: z99.string(),
2236
+ sortPosition: z99.number(),
2237
+ width: z99.number()
2270
2238
  });
2271
2239
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
2272
- type: z102.literal("BaseProperty"),
2240
+ type: z99.literal("BaseProperty"),
2273
2241
  basePropertyType: ElementViewBaseColumnType
2274
2242
  });
2275
2243
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
2276
- type: z102.literal("PropertyDefinition"),
2277
- propertyDefinitionId: z102.string()
2244
+ type: z99.literal("PropertyDefinition"),
2245
+ propertyDefinitionId: z99.string()
2278
2246
  });
2279
2247
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
2280
- type: z102.literal("Theme"),
2281
- themeId: z102.string()
2248
+ type: z99.literal("Theme"),
2249
+ themeId: z99.string()
2282
2250
  });
2283
- var ElementViewColumn = z102.discriminatedUnion("type", [
2251
+ var ElementViewColumn = z99.discriminatedUnion("type", [
2284
2252
  ElementViewBasePropertyColumn,
2285
2253
  ElementViewPropertyDefinitionColumn,
2286
2254
  ElementViewThemeColumn
2287
2255
  ]);
2288
- var ElementView = z103.object({
2289
- id: z103.string(),
2290
- persistentId: z103.string(),
2291
- designSystemVersionId: z103.string(),
2292
- name: z103.string(),
2293
- description: z103.string(),
2256
+ var ElementView = z100.object({
2257
+ id: z100.string(),
2258
+ persistentId: z100.string(),
2259
+ designSystemVersionId: z100.string(),
2260
+ name: z100.string(),
2261
+ description: z100.string(),
2294
2262
  targetElementType: ElementPropertyTargetType,
2295
- isDefault: z103.boolean()
2296
- });
2297
- var Brand = z104.object({
2298
- id: z104.string(),
2299
- designSystemVersionId: z104.string(),
2300
- persistentId: z104.string(),
2301
- name: z104.string(),
2302
- description: z104.string()
2303
- });
2304
- var NpmRegistryAuthType = z105.enum(["Basic", "Bearer", "None", "Custom"]);
2305
- var NpmRegistryType = z105.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2306
- var NpmRegistryBasicAuthConfig = z105.object({
2307
- authType: z105.literal(NpmRegistryAuthType.Enum.Basic),
2308
- username: z105.string(),
2309
- password: z105.string()
2310
- });
2311
- var NpmRegistryBearerAuthConfig = z105.object({
2312
- authType: z105.literal(NpmRegistryAuthType.Enum.Bearer),
2313
- accessToken: z105.string()
2314
- });
2315
- var NpmRegistryNoAuthConfig = z105.object({
2316
- authType: z105.literal(NpmRegistryAuthType.Enum.None)
2317
- });
2318
- var NpmRegistrCustomAuthConfig = z105.object({
2319
- authType: z105.literal(NpmRegistryAuthType.Enum.Custom),
2320
- authHeaderName: z105.string(),
2321
- authHeaderValue: z105.string()
2322
- });
2323
- var NpmRegistryAuthConfig = z105.discriminatedUnion("authType", [
2263
+ isDefault: z100.boolean()
2264
+ });
2265
+ var Brand = z101.object({
2266
+ id: z101.string(),
2267
+ designSystemVersionId: z101.string(),
2268
+ persistentId: z101.string(),
2269
+ name: z101.string(),
2270
+ description: z101.string()
2271
+ });
2272
+ var NpmRegistryAuthType = z102.enum(["Basic", "Bearer", "None", "Custom"]);
2273
+ var NpmRegistryType = z102.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2274
+ var NpmRegistryBasicAuthConfig = z102.object({
2275
+ authType: z102.literal(NpmRegistryAuthType.Enum.Basic),
2276
+ username: z102.string(),
2277
+ password: z102.string()
2278
+ });
2279
+ var NpmRegistryBearerAuthConfig = z102.object({
2280
+ authType: z102.literal(NpmRegistryAuthType.Enum.Bearer),
2281
+ accessToken: z102.string()
2282
+ });
2283
+ var NpmRegistryNoAuthConfig = z102.object({
2284
+ authType: z102.literal(NpmRegistryAuthType.Enum.None)
2285
+ });
2286
+ var NpmRegistrCustomAuthConfig = z102.object({
2287
+ authType: z102.literal(NpmRegistryAuthType.Enum.Custom),
2288
+ authHeaderName: z102.string(),
2289
+ authHeaderValue: z102.string()
2290
+ });
2291
+ var NpmRegistryAuthConfig = z102.discriminatedUnion("authType", [
2324
2292
  NpmRegistryBasicAuthConfig,
2325
2293
  NpmRegistryBearerAuthConfig,
2326
2294
  NpmRegistryNoAuthConfig,
2327
2295
  NpmRegistrCustomAuthConfig
2328
2296
  ]);
2329
- var NpmRegistryConfigBase = z105.object({
2297
+ var NpmRegistryConfigBase = z102.object({
2330
2298
  registryType: NpmRegistryType,
2331
- enabledScopes: z105.array(z105.string()),
2332
- customRegistryUrl: z105.string().optional(),
2333
- bypassProxy: z105.boolean().default(false),
2334
- npmProxyRegistryConfigId: z105.string().optional(),
2335
- npmProxyVersion: z105.number().optional()
2299
+ enabledScopes: z102.array(z102.string()),
2300
+ customRegistryUrl: z102.string().optional(),
2301
+ bypassProxy: z102.boolean().default(false),
2302
+ npmProxyRegistryConfigId: z102.string().optional(),
2303
+ npmProxyVersion: z102.number().optional()
2336
2304
  });
2337
2305
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2338
- var SsoProvider = z106.object({
2339
- providerId: z106.string(),
2340
- defaultAutoInviteValue: z106.boolean(),
2341
- autoInviteDomains: z106.record(z106.string(), z106.boolean()),
2342
- skipDocsSupernovaLogin: z106.boolean(),
2343
- areInvitesDisabled: z106.boolean(),
2344
- isTestMode: z106.boolean(),
2345
- emailDomains: z106.array(z106.string()),
2346
- metadataXml: z106.string().nullish()
2347
- });
2348
- var WorkspaceRoleSchema = z107.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2306
+ var SsoProvider = z103.object({
2307
+ providerId: z103.string(),
2308
+ defaultAutoInviteValue: z103.boolean(),
2309
+ autoInviteDomains: z103.record(z103.string(), z103.boolean()),
2310
+ skipDocsSupernovaLogin: z103.boolean(),
2311
+ areInvitesDisabled: z103.boolean(),
2312
+ isTestMode: z103.boolean(),
2313
+ emailDomains: z103.array(z103.string()),
2314
+ metadataXml: z103.string().nullish()
2315
+ });
2316
+ var WorkspaceRoleSchema = z104.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2349
2317
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2350
2318
  var MAX_MEMBERS_COUNT = 100;
2351
- var UserInvite = z108.object({
2352
- email: z108.string().email().trim().transform((value) => value.toLowerCase()),
2319
+ var UserInvite = z105.object({
2320
+ email: z105.string().email().trim().transform((value) => value.toLowerCase()),
2353
2321
  role: WorkspaceRoleSchema
2354
2322
  });
2355
- var UserInvites = z108.array(UserInvite).max(MAX_MEMBERS_COUNT);
2323
+ var UserInvites = z105.array(UserInvite).max(MAX_MEMBERS_COUNT);
2356
2324
  var isValidCIDR = (value) => {
2357
2325
  return IPCIDR.isValidAddress(value);
2358
2326
  };
2359
- var WorkspaceIpWhitelistEntry = z109.object({
2360
- isEnabled: z109.boolean(),
2361
- name: z109.string(),
2362
- range: z109.string().refine(isValidCIDR, {
2327
+ var WorkspaceIpWhitelistEntry = z106.object({
2328
+ isEnabled: z106.boolean(),
2329
+ name: z106.string(),
2330
+ range: z106.string().refine(isValidCIDR, {
2363
2331
  message: "Invalid IP CIDR"
2364
2332
  })
2365
2333
  });
2366
- var WorkspaceIpSettings = z109.object({
2367
- isEnabledForCloud: z109.boolean(),
2368
- isEnabledForDocs: z109.boolean(),
2369
- entries: z109.array(WorkspaceIpWhitelistEntry)
2334
+ var WorkspaceIpSettings = z106.object({
2335
+ isEnabledForCloud: z106.boolean(),
2336
+ isEnabledForDocs: z106.boolean(),
2337
+ entries: z106.array(WorkspaceIpWhitelistEntry)
2370
2338
  });
2371
- var WorkspaceProfile = z109.object({
2372
- name: z109.string(),
2373
- handle: z109.string(),
2374
- color: z109.string(),
2375
- avatar: nullishToOptional(z109.string()),
2339
+ var WorkspaceProfile = z106.object({
2340
+ name: z106.string(),
2341
+ handle: z106.string(),
2342
+ color: z106.string(),
2343
+ avatar: nullishToOptional(z106.string()),
2376
2344
  billingDetails: nullishToOptional(BillingDetails)
2377
2345
  });
2378
- var Workspace = z109.object({
2379
- id: z109.string(),
2346
+ var Workspace = z106.object({
2347
+ id: z106.string(),
2380
2348
  profile: WorkspaceProfile,
2381
2349
  subscription: Subscription,
2382
2350
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2383
2351
  sso: nullishToOptional(SsoProvider),
2384
2352
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
2385
- designSystems: z109.array(DesignSystem).nullish()
2353
+ designSystems: z106.array(DesignSystem).nullish()
2386
2354
  });
2387
- var WorkspaceWithDesignSystems = z109.object({
2355
+ var WorkspaceWithDesignSystems = z106.object({
2388
2356
  workspace: Workspace,
2389
- designSystems: z109.array(DesignSystem)
2357
+ designSystems: z106.array(DesignSystem)
2390
2358
  });
2391
- var WorkspaceContext = z110.object({
2392
- workspaceId: z110.string(),
2359
+ var WorkspaceContext = z107.object({
2360
+ workspaceId: z107.string(),
2393
2361
  product: ProductCodeSchema,
2394
2362
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2395
- publicDesignSystem: z110.boolean().optional()
2363
+ publicDesignSystem: z107.boolean().optional()
2396
2364
  });
2397
2365
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
2398
2366
  var WORKSPACE_NAME_MIN_LENGTH = 2;
2399
2367
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2400
2368
  var HANDLE_MIN_LENGTH = 2;
2401
2369
  var HANDLE_MAX_LENGTH = 64;
2402
- var CreateWorkspaceInput = z111.object({
2403
- name: z111.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2370
+ var CreateWorkspaceInput = z108.object({
2371
+ name: z108.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2404
2372
  product: ProductCodeSchema,
2405
- priceId: z111.string(),
2406
- billingEmail: z111.string().email().optional(),
2407
- handle: z111.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2373
+ priceId: z108.string(),
2374
+ billingEmail: z108.string().email().optional(),
2375
+ handle: z108.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2408
2376
  invites: UserInvites.optional(),
2409
- promoCode: z111.string().optional(),
2377
+ promoCode: z108.string().optional(),
2410
2378
  status: InternalStatusSchema.optional(),
2411
2379
  planInterval: BillingIntervalSchema.optional(),
2412
- seats: z111.number().optional(),
2413
- seatLimit: z111.number().optional(),
2380
+ seats: z108.number().optional(),
2381
+ seatLimit: z108.number().optional(),
2414
2382
  card: CardSchema.optional(),
2415
2383
  sso: SsoProvider.optional(),
2416
2384
  npmRegistrySettings: NpmRegistryConfig.optional(),
2417
2385
  ipWhitelist: WorkspaceIpSettings.optional()
2418
2386
  });
2419
- var WorkspaceInvitation = z112.object({
2420
- id: z112.string(),
2421
- email: z112.string().email(),
2422
- createdAt: z112.coerce.date(),
2423
- resentAt: z112.coerce.date().nullish(),
2424
- role: z112.nativeEnum(WorkspaceRole),
2425
- workspaceId: z112.string(),
2426
- invitedBy: z112.string()
2427
- });
2428
- var WorkspaceMembership = z113.object({
2429
- id: z113.string(),
2430
- userId: z113.string(),
2431
- workspaceId: z113.string(),
2432
- workspaceRole: z113.nativeEnum(WorkspaceRole)
2433
- });
2434
- var UpdateMembershipRolesInput = z113.object({
2435
- members: z113.array(
2436
- z113.object({
2437
- userId: z113.string(),
2438
- role: z113.nativeEnum(WorkspaceRole)
2387
+ var WorkspaceInvitation = z109.object({
2388
+ id: z109.string(),
2389
+ email: z109.string().email(),
2390
+ createdAt: z109.coerce.date(),
2391
+ resentAt: z109.coerce.date().nullish(),
2392
+ role: z109.nativeEnum(WorkspaceRole),
2393
+ workspaceId: z109.string(),
2394
+ invitedBy: z109.string()
2395
+ });
2396
+ var WorkspaceMembership = z110.object({
2397
+ id: z110.string(),
2398
+ userId: z110.string(),
2399
+ workspaceId: z110.string(),
2400
+ workspaceRole: z110.nativeEnum(WorkspaceRole)
2401
+ });
2402
+ var UpdateMembershipRolesInput = z110.object({
2403
+ members: z110.array(
2404
+ z110.object({
2405
+ userId: z110.string(),
2406
+ role: z110.nativeEnum(WorkspaceRole)
2439
2407
  })
2440
2408
  )
2441
2409
  });
2442
- var DesignSystemSwitcher = z114.object({
2443
- isEnabled: z114.boolean(),
2444
- designSystemIds: z114.array(z114.string())
2445
- });
2446
- var DesignSystem = z114.object({
2447
- id: z114.string(),
2448
- workspaceId: z114.string(),
2449
- name: z114.string(),
2450
- description: z114.string(),
2451
- docExporterId: nullishToOptional(z114.string()),
2452
- docSlug: z114.string(),
2453
- docUserSlug: nullishToOptional(z114.string()),
2454
- docSlugDeprecated: z114.string(),
2455
- isPublic: z114.boolean(),
2456
- isMultibrand: z114.boolean(),
2457
- docViewUrl: nullishToOptional(z114.string()),
2458
- basePrefixes: z114.array(z114.string()),
2410
+ var DesignSystemSwitcher = z111.object({
2411
+ isEnabled: z111.boolean(),
2412
+ designSystemIds: z111.array(z111.string())
2413
+ });
2414
+ var DesignSystem = z111.object({
2415
+ id: z111.string(),
2416
+ workspaceId: z111.string(),
2417
+ name: z111.string(),
2418
+ description: z111.string(),
2419
+ docExporterId: nullishToOptional(z111.string()),
2420
+ docSlug: z111.string(),
2421
+ docUserSlug: nullishToOptional(z111.string()),
2422
+ docSlugDeprecated: z111.string(),
2423
+ isPublic: z111.boolean(),
2424
+ isMultibrand: z111.boolean(),
2425
+ docViewUrl: nullishToOptional(z111.string()),
2426
+ basePrefixes: z111.array(z111.string()),
2459
2427
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2460
- createdAt: z114.coerce.date(),
2461
- updatedAt: z114.coerce.date()
2428
+ createdAt: z111.coerce.date(),
2429
+ updatedAt: z111.coerce.date()
2462
2430
  });
2463
- var DesignSystemWithWorkspace = z114.object({
2431
+ var DesignSystemWithWorkspace = z111.object({
2464
2432
  designSystem: DesignSystem,
2465
2433
  workspace: Workspace
2466
2434
  });
2467
2435
  var DS_NAME_MIN_LENGTH = 2;
2468
2436
  var DS_NAME_MAX_LENGTH = 64;
2469
2437
  var DS_DESC_MAX_LENGTH = 64;
2470
- var DesignSystemCreateInputMetadata = z115.object({
2471
- name: z115.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2472
- description: z115.string().max(DS_DESC_MAX_LENGTH).trim()
2438
+ var DesignSystemCreateInputMetadata = z112.object({
2439
+ name: z112.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2440
+ description: z112.string().max(DS_DESC_MAX_LENGTH).trim()
2473
2441
  });
2474
- var DesignSystemCreateInput = z115.object({
2442
+ var DesignSystemCreateInput = z112.object({
2475
2443
  meta: DesignSystemCreateInputMetadata,
2476
- workspaceId: z115.string(),
2477
- isPublic: z115.boolean().optional(),
2478
- basePrefixes: z115.array(z115.string()).optional(),
2479
- docUserSlug: z115.string().nullish().optional(),
2480
- source: z115.array(z115.string()).optional()
2444
+ workspaceId: z112.string(),
2445
+ isPublic: z112.boolean().optional(),
2446
+ basePrefixes: z112.array(z112.string()).optional(),
2447
+ docUserSlug: z112.string().nullish().optional(),
2448
+ source: z112.array(z112.string()).optional()
2481
2449
  });
2482
2450
  var DS_NAME_MIN_LENGTH2 = 2;
2483
2451
  var DS_NAME_MAX_LENGTH2 = 64;
2484
2452
  var DS_DESC_MAX_LENGTH2 = 64;
2485
- var DesignSystemUpdateInputMetadata = z116.object({
2486
- name: z116.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2487
- description: z116.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2453
+ var DesignSystemUpdateInputMetadata = z113.object({
2454
+ name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2455
+ description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2488
2456
  });
2489
- var DesignSystemUpdateInput = z116.object({
2457
+ var DesignSystemUpdateInput = z113.object({
2490
2458
  meta: DesignSystemUpdateInputMetadata.optional(),
2491
- workspaceId: z116.string().optional(),
2492
- isPublic: z116.boolean().optional(),
2493
- basePrefixes: z116.array(z116.string()).optional(),
2494
- docUserSlug: z116.string().nullish().optional(),
2495
- source: z116.array(z116.string()).optional(),
2496
- name: z116.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2497
- description: z116.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2498
- docExporterId: z116.string().optional()
2499
- });
2500
- var ExporterPropertyImageValue = z117.object({
2459
+ workspaceId: z113.string().optional(),
2460
+ isPublic: z113.boolean().optional(),
2461
+ basePrefixes: z113.array(z113.string()).optional(),
2462
+ docUserSlug: z113.string().nullish().optional(),
2463
+ source: z113.array(z113.string()).optional(),
2464
+ name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2465
+ description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2466
+ docExporterId: z113.string().optional()
2467
+ });
2468
+ var ExporterPropertyImageValue = z114.object({
2501
2469
  asset: PageBlockAsset.optional(),
2502
- assetId: z117.string().optional(),
2503
- assetUrl: z117.string().optional()
2504
- });
2505
- var ExporterPropertyValue = z117.object({
2506
- key: z117.string(),
2507
- value: z117.union([
2508
- z117.number(),
2509
- z117.string(),
2510
- z117.boolean(),
2470
+ assetId: z114.string().optional(),
2471
+ assetUrl: z114.string().optional()
2472
+ });
2473
+ var ExporterPropertyValue = z114.object({
2474
+ key: z114.string(),
2475
+ value: z114.union([
2476
+ z114.number(),
2477
+ z114.string(),
2478
+ z114.boolean(),
2511
2479
  ExporterPropertyImageValue,
2512
2480
  ColorTokenData,
2513
2481
  TypographyTokenData
2514
2482
  ])
2515
2483
  });
2516
- var ExporterPropertyValuesCollection = z117.object({
2517
- id: z117.string(),
2518
- designSystemId: z117.string(),
2519
- exporterId: z117.string(),
2520
- values: z117.array(ExporterPropertyValue)
2521
- });
2522
- var PublishedDocPage = z118.object({
2523
- id: z118.string(),
2524
- publishedDocId: z118.string(),
2525
- pageShortPersistentId: z118.string(),
2526
- pathV1: z118.string(),
2527
- pathV2: z118.string(),
2528
- storagePath: z118.string(),
2529
- locale: z118.string().optional(),
2530
- isPrivate: z118.boolean(),
2531
- isHidden: z118.boolean(),
2532
- createdAt: z118.coerce.date(),
2533
- updatedAt: z118.coerce.date()
2484
+ var ExporterPropertyValuesCollection = z114.object({
2485
+ id: z114.string(),
2486
+ designSystemId: z114.string(),
2487
+ exporterId: z114.string(),
2488
+ values: z114.array(ExporterPropertyValue)
2489
+ });
2490
+ var PublishedDocPage = z115.object({
2491
+ id: z115.string(),
2492
+ publishedDocId: z115.string(),
2493
+ pageShortPersistentId: z115.string(),
2494
+ pathV1: z115.string(),
2495
+ pathV2: z115.string(),
2496
+ storagePath: z115.string(),
2497
+ locale: z115.string().optional(),
2498
+ isPrivate: z115.boolean(),
2499
+ isHidden: z115.boolean(),
2500
+ createdAt: z115.coerce.date(),
2501
+ updatedAt: z115.coerce.date()
2534
2502
  });
2535
2503
  var publishedDocEnvironments = ["Live", "Preview"];
2536
- var PublishedDocEnvironment = z119.enum(publishedDocEnvironments);
2537
- var PublishedDocsChecksums = z119.record(z119.string());
2538
- var PublishedDocRoutingVersion = z119.enum(["1", "2"]);
2539
- var PublishedDoc = z119.object({
2540
- id: z119.string(),
2541
- designSystemVersionId: z119.string(),
2542
- createdAt: z119.coerce.date(),
2543
- updatedAt: z119.coerce.date(),
2544
- lastPublishedAt: z119.coerce.date(),
2545
- isDefault: z119.boolean(),
2546
- isPublic: z119.boolean(),
2504
+ var PublishedDocEnvironment = z116.enum(publishedDocEnvironments);
2505
+ var PublishedDocsChecksums = z116.record(z116.string());
2506
+ var PublishedDocRoutingVersion = z116.enum(["1", "2"]);
2507
+ var PublishedDoc = z116.object({
2508
+ id: z116.string(),
2509
+ designSystemVersionId: z116.string(),
2510
+ createdAt: z116.coerce.date(),
2511
+ updatedAt: z116.coerce.date(),
2512
+ lastPublishedAt: z116.coerce.date(),
2513
+ isDefault: z116.boolean(),
2514
+ isPublic: z116.boolean(),
2547
2515
  environment: PublishedDocEnvironment,
2548
2516
  checksums: PublishedDocsChecksums,
2549
- storagePath: z119.string(),
2550
- wasMigrated: z119.boolean(),
2517
+ storagePath: z116.string(),
2518
+ wasMigrated: z116.boolean(),
2551
2519
  routingVersion: PublishedDocRoutingVersion,
2552
- usesLocalizations: z119.boolean(),
2553
- wasPublishedWithLocalizations: z119.boolean()
2554
- });
2555
- var DesignSystemVersion = z120.object({
2556
- id: z120.string(),
2557
- version: z120.string(),
2558
- createdAt: z120.date(),
2559
- designSystemId: z120.string(),
2560
- name: z120.string(),
2561
- comment: z120.string(),
2562
- isReadonly: z120.boolean(),
2563
- changeLog: z120.string(),
2564
- parentId: z120.string().optional()
2565
- });
2566
- var VersionCreationJobStatus = z120.enum(["Success", "InProgress", "Error"]);
2567
- var VersionCreationJob = z120.object({
2568
- _id: z120.string().optional(),
2569
- version: z120.string(),
2570
- designSystemId: z120.string(),
2571
- designSystemVersionId: nullishToOptional(z120.string()),
2520
+ usesLocalizations: z116.boolean(),
2521
+ wasPublishedWithLocalizations: z116.boolean()
2522
+ });
2523
+ var DesignSystemVersion = z117.object({
2524
+ id: z117.string(),
2525
+ version: z117.string(),
2526
+ createdAt: z117.date(),
2527
+ designSystemId: z117.string(),
2528
+ name: z117.string(),
2529
+ comment: z117.string(),
2530
+ isReadonly: z117.boolean(),
2531
+ changeLog: z117.string(),
2532
+ parentId: z117.string().optional()
2533
+ });
2534
+ var VersionCreationJobStatus = z117.enum(["Success", "InProgress", "Error"]);
2535
+ var VersionCreationJob = z117.object({
2536
+ id: z117.string(),
2537
+ version: z117.string(),
2538
+ designSystemId: z117.string(),
2539
+ designSystemVersionId: nullishToOptional(z117.string()),
2572
2540
  status: VersionCreationJobStatus,
2573
- errorMessage: nullishToOptional(z120.string())
2574
- });
2575
- var ExporterJobDestination = z121.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2576
- var ExporterJobStatus = z121.enum(["InProgress", "Success", "Failed", "Timeout"]);
2577
- var ExporterJobLogEntryType = z121.enum(["success", "info", "warning", "error", "user"]);
2578
- var ExporterJobLogEntry = z121.object({
2579
- id: z121.string().optional(),
2580
- time: z121.coerce.date(),
2541
+ errorMessage: nullishToOptional(z117.string())
2542
+ });
2543
+ var ExporterDestinationSnDocs = z118.object({
2544
+ environment: PublishedDocEnvironment
2545
+ });
2546
+ var ExporterDestinationS3 = z118.object({});
2547
+ var ExporterDestinationGithub = z118.object({
2548
+ connectionId: z118.string(),
2549
+ url: z118.string(),
2550
+ branch: z118.string(),
2551
+ relativePath: z118.string(),
2552
+ // +
2553
+ userId: z118.coerce.string()
2554
+ });
2555
+ var ExporterDestinationAzure = z118.object({
2556
+ connectionId: z118.string(),
2557
+ organizationId: z118.string(),
2558
+ projectId: z118.string(),
2559
+ repositoryId: z118.string(),
2560
+ branch: z118.string(),
2561
+ relativePath: z118.string(),
2562
+ // +
2563
+ userId: z118.coerce.string(),
2564
+ url: z118.string()
2565
+ });
2566
+ var ExporterDestinationGitlab = z118.object({
2567
+ connectionId: z118.string(),
2568
+ projectId: z118.string(),
2569
+ branch: z118.string(),
2570
+ relativePath: z118.string(),
2571
+ // +
2572
+ userId: z118.coerce.string(),
2573
+ url: z118.string()
2574
+ });
2575
+ var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2576
+ var BITBUCKET_MAX_LENGTH = 64;
2577
+ var ExporterDestinationBitbucket = z118.object({
2578
+ connectionId: z118.string(),
2579
+ workspaceSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2580
+ projectKey: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2581
+ repoSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2582
+ branch: z118.string(),
2583
+ relativePath: z118.string(),
2584
+ // +
2585
+ userId: z118.coerce.string(),
2586
+ url: z118.string()
2587
+ });
2588
+ var ExporterJobDestination = z119.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2589
+ var ExporterJobStatus = z119.enum(["InProgress", "Success", "Failed", "Timeout"]);
2590
+ var ExporterJobLogEntryType = z119.enum(["success", "info", "warning", "error", "user"]);
2591
+ var ExporterJobLogEntry = z119.object({
2592
+ id: z119.string().optional(),
2593
+ time: z119.coerce.date(),
2581
2594
  type: ExporterJobLogEntryType,
2582
- message: z121.string()
2595
+ message: z119.string()
2583
2596
  });
2584
- var ExporterJobResultPullRequestDestination = z121.object({
2585
- pullRequestUrl: z121.string()
2597
+ var ExporterJobResultPullRequestDestination = z119.object({
2598
+ pullRequestUrl: z119.string()
2586
2599
  });
2587
- var ExporterJobResultS3Destination = z121.object({
2588
- bucket: z121.string(),
2589
- urlPrefix: z121.string().optional(),
2590
- path: z121.string(),
2591
- files: z121.array(z121.string())
2600
+ var ExporterJobResultS3Destination = z119.object({
2601
+ bucket: z119.string(),
2602
+ urlPrefix: z119.string().optional(),
2603
+ path: z119.string(),
2604
+ files: z119.array(z119.string())
2592
2605
  });
2593
- var ExporterJobResultDocsDestination = z121.object({
2594
- url: z121.string()
2606
+ var ExporterJobResultDocsDestination = z119.object({
2607
+ url: z119.string()
2595
2608
  });
2596
- var ExporterJobResult = z121.object({
2597
- error: z121.string().optional(),
2598
- logs: z121.array(ExporterJobLogEntry).optional(),
2609
+ var ExporterJobResult = z119.object({
2610
+ error: z119.string().optional(),
2611
+ logs: z119.array(ExporterJobLogEntry).optional(),
2599
2612
  s3: ExporterJobResultS3Destination.optional(),
2600
2613
  github: ExporterJobResultPullRequestDestination.optional(),
2601
2614
  azure: ExporterJobResultPullRequestDestination.optional(),
@@ -2603,68 +2616,23 @@ var ExporterJobResult = z121.object({
2603
2616
  bitbucket: ExporterJobResultPullRequestDestination.optional(),
2604
2617
  sndocs: ExporterJobResultDocsDestination.optional()
2605
2618
  });
2606
- var ExporterDestinationSnDocs = z121.object({
2607
- environment: PublishedDocEnvironment
2608
- });
2609
- var ExporterDestinationS3 = z121.object({});
2610
- var ExporterDestinationGithub = z121.object({
2611
- connectionId: z121.string(),
2612
- url: z121.string(),
2613
- branch: z121.string(),
2614
- relativePath: z121.string(),
2615
- // +
2616
- userId: z121.coerce.string()
2617
- });
2618
- var ExporterDestinationAzure = z121.object({
2619
- connectionId: z121.string(),
2620
- organizationId: z121.string(),
2621
- projectId: z121.string(),
2622
- repositoryId: z121.string(),
2623
- branch: z121.string(),
2624
- relativePath: z121.string(),
2625
- // +
2626
- userId: z121.coerce.string(),
2627
- url: z121.string()
2628
- });
2629
- var ExporterDestinationGitlab = z121.object({
2630
- connectionId: z121.string(),
2631
- projectId: z121.string(),
2632
- branch: z121.string(),
2633
- relativePath: z121.string(),
2634
- // +
2635
- userId: z121.coerce.string(),
2636
- url: z121.string()
2637
- });
2638
- var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2639
- var BITBUCKET_MAX_LENGTH = 64;
2640
- var ExporterDestinationBitbucket = z121.object({
2641
- connectionId: z121.string(),
2642
- workspaceSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2643
- projectKey: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2644
- repoSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2645
- branch: z121.string(),
2646
- relativePath: z121.string(),
2647
- // +
2648
- userId: z121.coerce.string(),
2649
- url: z121.string()
2650
- });
2651
- var ExporterJob = z121.object({
2652
- id: z121.coerce.string(),
2653
- createdAt: z121.coerce.date(),
2654
- finishedAt: z121.coerce.date().optional(),
2655
- designSystemId: z121.coerce.string(),
2656
- designSystemVersionId: z121.coerce.string(),
2657
- workspaceId: z121.coerce.string(),
2658
- scheduleId: z121.coerce.string().nullish(),
2659
- exporterId: z121.coerce.string(),
2660
- brandId: z121.coerce.string().optional(),
2661
- themeId: z121.coerce.string().optional(),
2662
- estimatedExecutionTime: z121.number().optional(),
2619
+ var ExporterJob = z119.object({
2620
+ id: z119.coerce.string(),
2621
+ createdAt: z119.coerce.date(),
2622
+ finishedAt: z119.coerce.date().optional(),
2623
+ designSystemId: z119.coerce.string(),
2624
+ designSystemVersionId: z119.coerce.string(),
2625
+ workspaceId: z119.coerce.string(),
2626
+ scheduleId: z119.coerce.string().nullish(),
2627
+ exporterId: z119.coerce.string(),
2628
+ brandId: z119.coerce.string().optional(),
2629
+ themeId: z119.coerce.string().optional(),
2630
+ estimatedExecutionTime: z119.number().optional(),
2663
2631
  status: ExporterJobStatus,
2664
2632
  result: ExporterJobResult.optional(),
2665
- createdByUserId: z121.string().optional(),
2633
+ createdByUserId: z119.string().optional(),
2666
2634
  // CodegenDestinationsModel
2667
- webhookUrl: z121.string().optional(),
2635
+ webhookUrl: z119.string().optional(),
2668
2636
  destinationSnDocs: ExporterDestinationSnDocs.optional(),
2669
2637
  destinationS3: ExporterDestinationS3.optional(),
2670
2638
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -2683,14 +2651,34 @@ var ExporterJobFindByFilter = ExporterJob.pick({
2683
2651
  themeId: true,
2684
2652
  brandId: true
2685
2653
  }).extend({
2686
- destinations: z121.array(ExporterJobDestination),
2654
+ destinations: z119.array(ExporterJobDestination),
2687
2655
  docsEnvironment: PublishedDocEnvironment
2688
2656
  }).partial();
2689
- var ExporterWorkspaceMembershipRole = z122.enum(["Owner", "OwnerArchived", "User"]);
2690
- var ExporterWorkspaceMembership = z123.object({
2691
- id: z123.string(),
2692
- workspaceId: z123.string(),
2693
- exporterId: z123.string(),
2657
+ var ExporterScheduleEventType = z120.enum(["InProgress", "Success", "Failed", "Timeout"]);
2658
+ var ExporterSchedule = z120.object({
2659
+ id: z120.coerce.string(),
2660
+ name: z120.coerce.string(),
2661
+ eventType: ExporterScheduleEventType,
2662
+ isEnabled: z120.coerce.boolean(),
2663
+ workspaceId: z120.coerce.string(),
2664
+ designSystemId: z120.coerce.string(),
2665
+ exporterId: z120.coerce.string(),
2666
+ brandId: z120.coerce.string().optional(),
2667
+ themeId: z120.coerce.string().optional(),
2668
+ // CodegenDestinationsModel
2669
+ webhookUrl: z120.string().optional(),
2670
+ destinationSnDocs: ExporterDestinationSnDocs.optional(),
2671
+ destinationS3: ExporterDestinationS3.optional(),
2672
+ destinationGithub: ExporterDestinationGithub.optional(),
2673
+ destinationAzure: ExporterDestinationAzure.optional(),
2674
+ destinationGitlab: ExporterDestinationGitlab.optional(),
2675
+ destinationBitbucket: ExporterDestinationBitbucket.optional()
2676
+ });
2677
+ var ExporterWorkspaceMembershipRole = z121.enum(["Owner", "OwnerArchived", "User"]);
2678
+ var ExporterWorkspaceMembership = z122.object({
2679
+ id: z122.string(),
2680
+ workspaceId: z122.string(),
2681
+ exporterId: z122.string(),
2694
2682
  role: ExporterWorkspaceMembershipRole
2695
2683
  });
2696
2684
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
@@ -2700,8 +2688,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2700
2688
  GitProviderNames2["Bitbucket"] = "bitbucket";
2701
2689
  return GitProviderNames2;
2702
2690
  })(GitProviderNames || {});
2703
- var GitProvider = z124.nativeEnum(GitProviderNames);
2704
- var PulsarPropertyType = z125.enum([
2691
+ var GitProvider = z123.nativeEnum(GitProviderNames);
2692
+ var PulsarPropertyType = z124.enum([
2705
2693
  "string",
2706
2694
  "number",
2707
2695
  "boolean",
@@ -2714,111 +2702,117 @@ var PulsarPropertyType = z125.enum([
2714
2702
  "tokenProperties",
2715
2703
  "tokenType"
2716
2704
  ]);
2717
- var PulsarBaseProperty = z125.object({
2718
- label: z125.string(),
2719
- key: z125.string(),
2720
- description: z125.string().nullish(),
2705
+ var PulsarBaseProperty = z124.object({
2706
+ label: z124.string(),
2707
+ key: z124.string(),
2708
+ description: z124.string().nullish(),
2721
2709
  type: PulsarPropertyType,
2722
- values: z125.array(z125.string()).nullish(),
2723
- default: z125.union([z125.string(), z125.boolean(), z125.number()]).nullish(),
2710
+ values: z124.array(z124.string()).nullish(),
2711
+ default: z124.union([z124.string(), z124.boolean(), z124.number()]).nullish(),
2724
2712
  // PulsarPropertyValueType //is optional?
2725
- inputType: z125.enum(["code", "plain"]).optional(),
2713
+ inputType: z124.enum(["code", "plain"]).optional(),
2726
2714
  //is optional?
2727
- isMultiline: z125.boolean().nullish()
2715
+ isMultiline: z124.boolean().nullish()
2728
2716
  });
2729
2717
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
2730
- category: z125.string()
2731
- });
2732
- var PulsarContributionVariant = z125.object({
2733
- key: z125.string(),
2734
- name: z125.string(),
2735
- isDefault: nullishToOptional(z125.boolean()),
2736
- description: nullishToOptional(z125.string()),
2737
- thumbnailURL: nullishToOptional(z125.string())
2738
- });
2739
- var PulsarCustomBlock = z125.object({
2740
- title: nullishToOptional(z125.string()),
2741
- key: z125.string(),
2742
- category: nullishToOptional(z125.string()),
2743
- description: nullishToOptional(z125.string()),
2718
+ category: z124.string()
2719
+ });
2720
+ var PulsarContributionVariant = z124.object({
2721
+ key: z124.string(),
2722
+ name: z124.string(),
2723
+ isDefault: nullishToOptional(z124.boolean()),
2724
+ description: nullishToOptional(z124.string()),
2725
+ thumbnailURL: nullishToOptional(z124.string())
2726
+ });
2727
+ var PulsarCustomBlock = z124.object({
2728
+ title: nullishToOptional(z124.string()),
2729
+ key: z124.string(),
2730
+ category: nullishToOptional(z124.string()),
2731
+ description: nullishToOptional(z124.string()),
2732
+ iconURL: nullishToOptional(z124.string()),
2733
+ mode: nullishToOptional(z124.enum(["array", "block"])),
2734
+ properties: nullishToOptional(z124.array(PulsarBaseProperty)).transform((v) => v ?? [])
2735
+ });
2736
+ var ExporterType = z125.enum(["code", "documentation"]);
2737
+ var ExporterSource = z125.enum(["git", "upload"]);
2738
+ var ExporterTag = z125.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2739
+ var ExporterDetails = z125.object({
2740
+ description: z125.string(),
2741
+ version: z125.string(),
2742
+ routingVersion: nullishToOptional(z125.string()),
2743
+ author: nullishToOptional(z125.string()),
2744
+ organization: nullishToOptional(z125.string()),
2745
+ homepage: nullishToOptional(z125.string()),
2746
+ readme: nullishToOptional(z125.string()),
2747
+ tags: nullishToOptional(z125.array(ExporterTag)).default([]),
2748
+ packageId: nullishToOptional(z125.string().max(255)),
2744
2749
  iconURL: nullishToOptional(z125.string()),
2745
- mode: nullishToOptional(z125.enum(["array", "block"])),
2746
- properties: nullishToOptional(z125.array(PulsarBaseProperty)).transform((v) => v ?? [])
2747
- });
2748
- var ExporterType = z126.enum(["code", "documentation"]);
2749
- var ExporterSource = z126.enum(["git", "upload"]);
2750
- var ExporterTag = z126.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2751
- var ExporterDetails = z126.object({
2752
- description: z126.string(),
2753
- version: z126.string(),
2754
- routingVersion: nullishToOptional(z126.string()),
2755
- author: nullishToOptional(z126.string()),
2756
- organization: nullishToOptional(z126.string()),
2757
- homepage: nullishToOptional(z126.string()),
2758
- readme: nullishToOptional(z126.string()),
2759
- tags: nullishToOptional(z126.array(ExporterTag)).default([]),
2760
- packageId: nullishToOptional(z126.string().max(255)),
2761
- iconURL: nullishToOptional(z126.string()),
2762
- configurationProperties: nullishToOptional(z126.array(PulsarContributionConfigurationProperty)).default([]),
2763
- customBlocks: nullishToOptional(z126.array(PulsarCustomBlock)).default([]),
2764
- blockVariants: nullishToOptional(z126.record(z126.string(), z126.array(PulsarContributionVariant))).default({}),
2765
- usesBrands: nullishToOptional(z126.boolean()).default(false),
2766
- usesThemes: nullishToOptional(z126.boolean()).default(false),
2750
+ configurationProperties: nullishToOptional(z125.array(PulsarContributionConfigurationProperty)).default([]),
2751
+ customBlocks: nullishToOptional(z125.array(PulsarCustomBlock)).default([]),
2752
+ blockVariants: nullishToOptional(z125.record(z125.string(), z125.array(PulsarContributionVariant))).default({}),
2753
+ usesBrands: nullishToOptional(z125.boolean()).default(false),
2754
+ usesThemes: nullishToOptional(z125.boolean()).default(false),
2767
2755
  source: ExporterSource,
2768
2756
  gitProvider: nullishToOptional(GitProvider),
2769
- gitUrl: nullishToOptional(z126.string()),
2770
- gitBranch: nullishToOptional(z126.string()),
2771
- gitDirectory: nullishToOptional(z126.string())
2757
+ gitUrl: nullishToOptional(z125.string()),
2758
+ gitBranch: nullishToOptional(z125.string()),
2759
+ gitDirectory: nullishToOptional(z125.string())
2772
2760
  });
2773
- var Exporter = z126.object({
2774
- id: z126.string(),
2775
- createdAt: z126.coerce.date(),
2776
- name: z126.string(),
2777
- isPrivate: z126.boolean(),
2761
+ var Exporter = z125.object({
2762
+ id: z125.string(),
2763
+ createdAt: z125.coerce.date(),
2764
+ name: z125.string(),
2765
+ isPrivate: z125.boolean(),
2778
2766
  details: ExporterDetails,
2779
2767
  exporterType: nullishToOptional(ExporterType).default("code"),
2780
- storagePath: nullishToOptional(z126.string()).default("")
2768
+ storagePath: nullishToOptional(z125.string()).default("")
2781
2769
  });
2782
- var CustomDomain = z127.object({
2783
- id: z127.string(),
2784
- designSystemId: z127.string(),
2785
- state: z127.string(),
2786
- supernovaDomain: z127.string(),
2787
- customerDomain: z127.string().nullish(),
2788
- error: z127.string().nullish(),
2789
- errorCode: z127.string().nullish()
2790
- });
2791
- var IntegrationAuthType = z128.union([z128.literal("OAuth2"), z128.literal("PAT")]);
2792
- var ExternalServiceType = z128.union([
2793
- z128.literal("figma"),
2794
- z128.literal("github"),
2795
- z128.literal("azure"),
2796
- z128.literal("gitlab"),
2797
- z128.literal("bitbucket")
2770
+ var CustomDomain = z126.object({
2771
+ id: z126.string(),
2772
+ designSystemId: z126.string(),
2773
+ state: z126.string(),
2774
+ supernovaDomain: z126.string(),
2775
+ customerDomain: z126.string().nullish(),
2776
+ error: z126.string().nullish(),
2777
+ errorCode: z126.string().nullish()
2778
+ });
2779
+ var IntegrationAuthType = z127.union([z127.literal("OAuth2"), z127.literal("PAT")]);
2780
+ var ExternalServiceType = z127.union([
2781
+ z127.literal("figma"),
2782
+ z127.literal("github"),
2783
+ z127.literal("azure"),
2784
+ z127.literal("gitlab"),
2785
+ z127.literal("bitbucket")
2798
2786
  ]);
2799
- var IntegrationUserInfo = z128.object({
2800
- id: z128.string(),
2801
- handle: z128.string().optional(),
2802
- avatarUrl: z128.string().optional(),
2803
- email: z128.string().optional(),
2787
+ var IntegrationUserInfo = z127.object({
2788
+ id: z127.string(),
2789
+ handle: z127.string().optional(),
2790
+ avatarUrl: z127.string().optional(),
2791
+ email: z127.string().optional(),
2804
2792
  authType: IntegrationAuthType.optional(),
2805
- customUrl: z128.string().optional()
2793
+ customUrl: z127.string().optional()
2806
2794
  });
2807
- var UserLinkedIntegrations = z128.object({
2795
+ var UserLinkedIntegrations = z127.object({
2808
2796
  figma: IntegrationUserInfo.optional(),
2809
2797
  github: IntegrationUserInfo.array().optional(),
2810
2798
  azure: IntegrationUserInfo.array().optional(),
2811
2799
  gitlab: IntegrationUserInfo.array().optional(),
2812
2800
  bitbucket: IntegrationUserInfo.array().optional()
2813
2801
  });
2814
- var CreateUserInput = z129.object({
2815
- email: z129.string(),
2816
- name: z129.string(),
2817
- username: z129.string()
2802
+ var CreateUserInput = z128.object({
2803
+ email: z128.string(),
2804
+ name: z128.string(),
2805
+ username: z128.string()
2818
2806
  });
2819
- var UserIdentity = z130.object({
2807
+ var UserIdentity = z129.object({
2808
+ id: z129.string(),
2809
+ userId: z129.string()
2810
+ });
2811
+ var UserMinified = z130.object({
2820
2812
  id: z130.string(),
2821
- userId: z130.string()
2813
+ name: z130.string(),
2814
+ email: z130.string(),
2815
+ avatar: z130.string().optional()
2822
2816
  });
2823
2817
  var UserOnboardingDepartment = z131.enum(["Design", "Engineering", "Brand", "Other"]);
2824
2818
  var UserOnboardingJobLevel = z131.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
@@ -2900,10 +2894,18 @@ var ExternalOAuthRequest = z137.object({
2900
2894
  state: z137.string(),
2901
2895
  createdAt: z137.coerce.date()
2902
2896
  });
2897
+ var IntegrationDesignSystem = z138.object({
2898
+ designSystemId: z138.string(),
2899
+ brandId: z138.string(),
2900
+ title: z138.string().optional(),
2901
+ userId: z138.string().optional(),
2902
+ date: z138.coerce.date().optional()
2903
+ });
2903
2904
  var IntegrationCredentialsType = z138.enum(["OAuth2", "PAT", "GithubApp"]);
2904
2905
  var IntegrationCredentialsProfile = z138.object({
2905
2906
  id: z138.string(),
2906
- username: z138.string().optional(),
2907
+ email: z138.string().optional(),
2908
+ handle: z138.string().optional(),
2907
2909
  avatarUrl: z138.string().optional()
2908
2910
  });
2909
2911
  var IntegrationCredentials = z138.object({
@@ -2914,10 +2916,22 @@ var IntegrationCredentials = z138.object({
2914
2916
  userId: z138.string(),
2915
2917
  createdAt: z138.coerce.date(),
2916
2918
  refreshToken: z138.string().optional(),
2919
+ tokenName: z138.string().optional(),
2920
+ expiresAt: z138.coerce.date().optional(),
2917
2921
  profile: IntegrationCredentialsProfile.optional(),
2918
- customUrl: z138.string().optional()
2922
+ customUrl: z138.string().optional(),
2923
+ user: UserMinified.optional()
2919
2924
  });
2920
- var IntegrationType = z138.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
2925
+ var ExtendedIntegrationType = z138.enum([
2926
+ "Figma",
2927
+ "Github",
2928
+ "Gitlab",
2929
+ "Bitbucket",
2930
+ "Azure",
2931
+ "TokenStudio",
2932
+ "FigmaVariablesPlugin"
2933
+ ]);
2934
+ var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
2921
2935
  var Integration = z138.object({
2922
2936
  id: z138.string(),
2923
2937
  workspaceId: z138.string(),
@@ -2929,8 +2943,13 @@ var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org",
2929
2943
  var IntegrationTokenResponse = z138.object({
2930
2944
  access_token: z138.string(),
2931
2945
  refresh_token: z138.string().optional(),
2932
- expires_in: z138.number().optional(),
2946
+ expires_in: z138.union([z138.number().optional(), z138.string().optional()]),
2933
2947
  token_type: z138.string().optional(),
2948
+ token_name: z138.string().optional(),
2949
+ token_azure_organization_name: z138.string().optional(),
2950
+ // Azure only
2951
+ token_bitbucket_username: z138.string().optional(),
2952
+ // Bitbucket only
2934
2953
  custom_url: z138.string().optional().refine((value) => {
2935
2954
  if (!value)
2936
2955
  return true;
@@ -2938,12 +2957,20 @@ var IntegrationTokenResponse = z138.object({
2938
2957
  return false;
2939
2958
  return true;
2940
2959
  }, "Custom URL validation failed")
2941
- }).transform((data) => {
2960
+ }).refine((data) => {
2961
+ if (data.custom_url && data.token_azure_organization_name) {
2962
+ return false;
2963
+ }
2964
+ return true;
2965
+ }, "Custom URL and Azure organization name cannot be present at the same time").transform((data) => {
2942
2966
  return {
2943
2967
  accessToken: data.access_token,
2944
2968
  refreshToken: data.refresh_token,
2945
- expiresIn: data.expires_in,
2969
+ expiresIn: typeof data.expires_in === "string" ? Number(data.expires_in) : data.expires_in,
2946
2970
  tokenType: data.token_type,
2971
+ tokenName: data.token_name,
2972
+ tokenBitbucketUsername: data.token_bitbucket_username,
2973
+ tokenAzureOrganizationName: data.token_azure_organization_name,
2947
2974
  customUrl: data.custom_url
2948
2975
  };
2949
2976
  });
@@ -2964,41 +2991,89 @@ var WorkspaceOAuthRequestSchema = z140.object({
2964
2991
  userId: z140.string(),
2965
2992
  createdAt: z140.coerce.date()
2966
2993
  });
2967
- var AnyRecord = z141.record(z141.any());
2994
+ var DesignSystemVersionRoom = Entity.extend({
2995
+ designSystemVersionId: z141.string(),
2996
+ liveblocksId: z141.string()
2997
+ });
2998
+ var DesignSystemVersionRoomInternalSettings = z141.object({
2999
+ routingVersion: z141.string()
3000
+ });
3001
+ var DesignSystemVersionRoomInitialState = z141.object({
3002
+ pages: z141.array(DocumentationPageV2),
3003
+ groups: z141.array(ElementGroup),
3004
+ internalSettings: DesignSystemVersionRoomInternalSettings
3005
+ });
3006
+ var DesignSystemVersionRoomUpdate = z141.object({
3007
+ pages: z141.array(DocumentationPageV2),
3008
+ groups: z141.array(ElementGroup),
3009
+ deletedPageIds: z141.array(z141.string()),
3010
+ deletedGroupIds: z141.array(z141.string())
3011
+ });
3012
+ var DocumentationPageRoom = Entity.extend({
3013
+ designSystemVersionId: z142.string(),
3014
+ documentationPageId: z142.string(),
3015
+ liveblocksId: z142.string(),
3016
+ isDirty: z142.boolean()
3017
+ });
3018
+ var DocumentationPageRoomState = z142.object({
3019
+ pageItems: z142.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3020
+ itemConfiguration: DocumentationItemConfigurationV2
3021
+ });
3022
+ var DocumentationPageRoomRoomUpdate = z142.object({
3023
+ page: DocumentationPageV2,
3024
+ pageParent: ElementGroup
3025
+ });
3026
+ var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3027
+ pageItems: z142.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3028
+ blockDefinitions: z142.array(PageBlockDefinition)
3029
+ });
3030
+ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3031
+ RoomTypeEnum2["DocumentationPage"] = "documentation-page";
3032
+ RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
3033
+ RoomTypeEnum2["Workspace"] = "workspace";
3034
+ return RoomTypeEnum2;
3035
+ })(RoomTypeEnum || {});
3036
+ var RoomTypeSchema = z143.nativeEnum(RoomTypeEnum);
3037
+ var RoomType = RoomTypeSchema.enum;
3038
+ var WorkspaceRoom = Entity.extend({
3039
+ workspaceId: z144.string(),
3040
+ liveblocksId: z144.string()
3041
+ });
3042
+ var AnyRecord = z145.record(z145.any());
2968
3043
  var NpmPackageVersionDist = AnyRecord.and(
2969
- z141.object({
2970
- tarball: z141.string()
3044
+ z145.object({
3045
+ tarball: z145.string()
2971
3046
  })
2972
3047
  );
2973
3048
  var NpmPackageVersion = AnyRecord.and(
2974
- z141.object({
3049
+ z145.object({
2975
3050
  dist: NpmPackageVersionDist
2976
3051
  })
2977
3052
  );
2978
3053
  var NpmPackage = AnyRecord.and(
2979
- z141.object({
2980
- _id: z141.string(),
2981
- name: z141.string(),
3054
+ z145.object({
3055
+ _id: z145.string(),
3056
+ name: z145.string(),
2982
3057
  // e.g. "latest": "1.2.3"
2983
- "dist-tags": z141.record(z141.string(), z141.string()),
3058
+ "dist-tags": z145.record(z145.string(), z145.string()),
2984
3059
  // "1.2.3": {...}
2985
- versions: z141.record(NpmPackageVersion)
3060
+ versions: z145.record(NpmPackageVersion)
2986
3061
  })
2987
3062
  );
2988
- var NpmProxyTokenPayload = z142.object({
2989
- npmProxyRegistryConfigId: z142.string()
3063
+ var NpmProxyTokenPayload = z146.object({
3064
+ npmProxyRegistryConfigId: z146.string()
2990
3065
  });
2991
- var PersonalAccessToken = z143.object({
2992
- id: z143.string(),
2993
- userId: z143.string(),
2994
- workspaceId: z143.string().optional(),
3066
+ var PersonalAccessToken = z147.object({
3067
+ id: z147.string(),
3068
+ userId: z147.string(),
3069
+ workspaceId: z147.string().optional(),
2995
3070
  workspaceRole: WorkspaceRoleSchema.optional(),
2996
- name: z143.string(),
2997
- hidden: z143.boolean(),
2998
- token: z143.string(),
2999
- scope: z143.string().optional(),
3000
- createdAt: z143.coerce.date(),
3001
- expireAt: z143.coerce.date().optional()
3071
+ name: z147.string(),
3072
+ hidden: z147.boolean(),
3073
+ token: z147.string(),
3074
+ scope: z147.string().optional(),
3075
+ createdAt: z147.coerce.date(),
3076
+ expireAt: z147.coerce.date().optional()
3002
3077
  });
3003
3078
  var SupernovaException = class _SupernovaException extends Error {
3004
3079
  //
@@ -3086,25 +3161,25 @@ function groupBy(items, keyFn) {
3086
3161
  }
3087
3162
  return result;
3088
3163
  }
3089
- var ContentLoadInstruction = z144.object({
3090
- from: z144.string(),
3091
- to: z144.string(),
3092
- authorizationHeaderKvsId: z144.string().optional(),
3093
- timeout: z144.number().optional()
3094
- });
3095
- var ContentLoaderPayload = z144.object({
3096
- type: z144.literal("Single"),
3164
+ var ContentLoadInstruction = z148.object({
3165
+ from: z148.string(),
3166
+ to: z148.string(),
3167
+ authorizationHeaderKvsId: z148.string().optional(),
3168
+ timeout: z148.number().optional()
3169
+ });
3170
+ var ContentLoaderPayload = z148.object({
3171
+ type: z148.literal("Single"),
3097
3172
  instruction: ContentLoadInstruction
3098
3173
  }).or(
3099
- z144.object({
3100
- type: z144.literal("Multiple"),
3101
- loadingChunkSize: z144.number().optional(),
3102
- instructions: z144.array(ContentLoadInstruction)
3174
+ z148.object({
3175
+ type: z148.literal("Multiple"),
3176
+ loadingChunkSize: z148.number().optional(),
3177
+ instructions: z148.array(ContentLoadInstruction)
3103
3178
  })
3104
3179
  ).or(
3105
- z144.object({
3106
- type: z144.literal("S3"),
3107
- location: z144.string()
3180
+ z148.object({
3181
+ type: z148.literal("S3"),
3182
+ location: z148.string()
3108
3183
  })
3109
3184
  );
3110
3185
  function slugify(str, options) {
@@ -4067,92 +4142,97 @@ function documentationPageToDTOV1(page, pagePathMap) {
4067
4142
 
4068
4143
  // src/api/conversion/integrations/integration.ts
4069
4144
  function integrationToDto(integration) {
4145
+ if (integration.integrationCredentials) {
4146
+ integration.integrationCredentials.forEach((credential) => {
4147
+ credential.accessToken = "";
4148
+ delete credential.refreshToken;
4149
+ });
4150
+ }
4070
4151
  return {
4071
4152
  id: integration.id,
4072
4153
  workspaceId: integration.workspaceId,
4073
4154
  type: integration.type,
4074
4155
  createdAt: integration.createdAt,
4075
- integrationCredentials: integration.integrationCredentials ?? void 0
4156
+ integrationCredentials: integration.integrationCredentials ?? void 0,
4157
+ integrationDesignSystems: integration.integrationDesignSystems ?? void 0
4076
4158
  };
4077
4159
  }
4078
4160
 
4079
4161
  // src/api/dto/design-systems/brand.ts
4080
- import { z as z145 } from "zod";
4081
- var DTOBrand = z145.object({
4082
- id: z145.string(),
4083
- designSystemVersionId: z145.string(),
4084
- persistentId: z145.string(),
4162
+ import { z as z149 } from "zod";
4163
+ var DTOBrand = z149.object({
4164
+ id: z149.string(),
4165
+ designSystemVersionId: z149.string(),
4166
+ persistentId: z149.string(),
4085
4167
  meta: ObjectMeta
4086
4168
  });
4087
- var DTOBrandGetResponse = z145.object({ brand: DTOBrand });
4088
- var DTOBrandCreateResponse = z145.object({
4169
+ var DTOBrandGetResponse = z149.object({ brand: DTOBrand });
4170
+ var DTOBrandCreateResponse = z149.object({
4089
4171
  brand: DTOBrand
4090
4172
  });
4091
- var DTOBrandsListResponse = z145.object({ brands: z145.array(DTOBrand) });
4173
+ var DTOBrandsListResponse = z149.object({ brands: z149.array(DTOBrand) });
4092
4174
 
4093
4175
  // src/api/dto/design-systems/design-system.ts
4094
- import { z as z146 } from "zod";
4176
+ import { z as z150 } from "zod";
4095
4177
  var DTODesignSystem = DesignSystem.omit({
4096
4178
  name: true,
4097
4179
  description: true,
4098
4180
  docExporterId: true
4099
4181
  }).extend({
4100
4182
  meta: ObjectMeta,
4101
- docExporterId: z146.string()
4183
+ docExporterId: z150.string()
4102
4184
  });
4103
4185
 
4104
4186
  // src/api/dto/design-systems/exporter-property.ts
4105
- import { z as z147 } from "zod";
4106
- var DTOExporterProperty = z147.any({});
4107
- var DTOExporterPropertyListResponse = z147.object({ items: z147.array(DTOExporterProperty) });
4187
+ import { z as z151 } from "zod";
4188
+ var DTOExporterProperty = z151.any({});
4189
+ var DTOExporterPropertyListResponse = z151.object({ items: z151.array(DTOExporterProperty) });
4108
4190
 
4109
4191
  // src/api/dto/design-systems/version.ts
4110
- import { z as z154 } from "zod";
4192
+ import { z as z158 } from "zod";
4111
4193
 
4112
4194
  // src/api/payloads/design-systems/brand.ts
4113
- import { z as z148 } from "zod";
4114
- var DTOCreateBrandInput = z148.object({
4115
- persistentId: z148.string().uuid(),
4116
- meta: z148.object({
4117
- name: z148.string(),
4118
- description: z148.string()
4195
+ import { z as z152 } from "zod";
4196
+ var DTOCreateBrandInput = z152.object({
4197
+ persistentId: z152.string().uuid(),
4198
+ meta: z152.object({
4199
+ name: z152.string(),
4200
+ description: z152.string()
4119
4201
  })
4120
4202
  });
4121
4203
 
4122
4204
  // src/api/payloads/design-systems/version.ts
4123
- import { z as z149 } from "zod";
4124
- var ObjectMeta2 = z149.object({
4125
- name: z149.string().max(150).optional(),
4126
- description: z149.string().max(2e3).optional()
4127
- });
4128
- function validateSemver(version) {
4129
- const semverRegex = /^(\d+)\.(\d+)(?:\.(\d+))?(?:-([\da-z-]+(?:\.[\da-z-]+)*))?(?:\+([\da-z-]+(?:\.[\da-z-]+)*))?$/i;
4130
- const semverRegexWithSingleDigit = /^(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:-([\da-z-]+(?:\.[\da-z-]+)*))?(?:\+([\da-z-]+(?:\.[\da-z-]+)*))?$/i;
4131
- const isValidSemver = semverRegex.test(version) || semverRegexWithSingleDigit.test(version);
4132
- return isValidSemver;
4205
+ import { z as z153 } from "zod";
4206
+ var ObjectMeta2 = z153.object({
4207
+ name: z153.string().max(150).optional(),
4208
+ description: z153.string().max(2e3).optional()
4209
+ });
4210
+ function validateDesignSystemVersion(version) {
4211
+ const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
4212
+ return urlCompliantRegex.test(version);
4133
4213
  }
4134
- var DTOCreateVersionInput = z149.object({
4214
+ var DTOCreateVersionInput = z153.object({
4135
4215
  meta: ObjectMeta2,
4136
- version: z149.string().refine(validateSemver, {
4216
+ version: z153.string().refine(validateDesignSystemVersion, {
4137
4217
  message: "Invalid semantic versioning format"
4138
4218
  }),
4139
- changeLog: z149.string().max(2e3).optional()
4219
+ changeLog: z153.string().max(2e3).optional()
4140
4220
  });
4141
4221
 
4142
4222
  // src/api/payloads/documentation/block-definitions.ts
4143
- import { z as z150 } from "zod";
4144
- var DTOGetBlockDefinitionsOutput = z150.object({
4145
- definitions: z150.array(PageBlockDefinition)
4223
+ import { z as z154 } from "zod";
4224
+ var DTOGetBlockDefinitionsOutput = z154.object({
4225
+ definitions: z154.array(PageBlockDefinition)
4146
4226
  });
4147
4227
 
4148
4228
  // src/api/payloads/liveblocks/auth.ts
4149
- import { z as z151 } from "zod";
4150
- var DTOLiveblocksAuthRequest = z151.object({
4151
- room: z151.string().optional()
4229
+ import { z as z155 } from "zod";
4230
+ var DTOLiveblocksAuthRequest = z155.object({
4231
+ room: z155.string().optional()
4152
4232
  });
4153
4233
 
4154
4234
  // src/api/payloads/workspaces/workspace-configuration.ts
4155
- import { z as z152 } from "zod";
4235
+ import { z as z156 } from "zod";
4156
4236
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4157
4237
  function validateSsoPayload(ssoPayload) {
4158
4238
  const keys = [];
@@ -4175,21 +4255,21 @@ function validateSsoPayload(ssoPayload) {
4175
4255
  keys
4176
4256
  };
4177
4257
  }
4178
- var NpmRegistryInput = z152.object({
4179
- enabledScopes: z152.array(z152.string()),
4180
- customRegistryUrl: z152.string().optional(),
4181
- bypassProxy: z152.boolean().optional(),
4182
- npmProxyRegistryConfigId: z152.string().optional(),
4183
- npmProxyVersion: z152.number().optional(),
4184
- registryType: z152.string(),
4185
- authType: z152.string(),
4186
- authHeaderName: z152.string(),
4187
- authHeaderValue: z152.string(),
4188
- accessToken: z152.string(),
4189
- username: z152.string(),
4190
- password: z152.string()
4191
- });
4192
- var WorkspaceConfigurationPayload = z152.object({
4258
+ var NpmRegistryInput = z156.object({
4259
+ enabledScopes: z156.array(z156.string()),
4260
+ customRegistryUrl: z156.string().optional(),
4261
+ bypassProxy: z156.boolean().optional(),
4262
+ npmProxyRegistryConfigId: z156.string().optional(),
4263
+ npmProxyVersion: z156.number().optional(),
4264
+ registryType: z156.string(),
4265
+ authType: z156.string(),
4266
+ authHeaderName: z156.string(),
4267
+ authHeaderValue: z156.string(),
4268
+ accessToken: z156.string(),
4269
+ username: z156.string(),
4270
+ password: z156.string()
4271
+ });
4272
+ var WorkspaceConfigurationPayload = z156.object({
4193
4273
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
4194
4274
  sso: SsoProvider.partial().optional(),
4195
4275
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -4197,117 +4277,118 @@ var WorkspaceConfigurationPayload = z152.object({
4197
4277
  });
4198
4278
 
4199
4279
  // src/api/payloads/workspaces/workspace-integrations.ts
4200
- import { z as z153 } from "zod";
4201
- var DTOWorkspaceIntegrationOauthInput = z153.object({
4280
+ import { z as z157 } from "zod";
4281
+ var DTOWorkspaceIntegrationOauthInput = z157.object({
4202
4282
  type: IntegrationType
4203
4283
  });
4204
- var DTOWorkspaceIntegrationPATInput = z153.object({
4205
- userId: z153.string(),
4284
+ var DTOWorkspaceIntegrationPATInput = z157.object({
4285
+ userId: z157.string(),
4206
4286
  type: IntegrationType,
4207
4287
  token: IntegrationTokenResponse
4208
4288
  });
4209
4289
 
4210
4290
  // src/api/dto/design-systems/version.ts
4211
- var DTODesignSystemVersion = z154.object({
4212
- id: z154.string(),
4213
- createdAt: z154.date(),
4291
+ var DTODesignSystemVersion = z158.object({
4292
+ id: z158.string(),
4293
+ createdAt: z158.date(),
4214
4294
  meta: ObjectMeta,
4215
- version: z154.string(),
4216
- isReadonly: z154.boolean(),
4217
- changeLog: z154.string(),
4218
- designSystemId: z154.string()
4295
+ version: z158.string(),
4296
+ isReadonly: z158.boolean(),
4297
+ changeLog: z158.string(),
4298
+ designSystemId: z158.string()
4219
4299
  });
4220
- var DTODesignSystemVersionsListResponse = z154.object({
4221
- designSystemVersions: z154.array(DTODesignSystemVersion)
4300
+ var DTODesignSystemVersionsListResponse = z158.object({
4301
+ designSystemVersions: z158.array(DTODesignSystemVersion)
4222
4302
  });
4223
- var DTODesignSystemVersionGetResponse = z154.object({
4303
+ var DTODesignSystemVersionGetResponse = z158.object({
4224
4304
  designSystemVersion: DTODesignSystemVersion
4225
4305
  });
4226
- var DTODesignSystemVersionCreationResponse = z154.object({
4306
+ var DTODesignSystemVersionCreationResponse = z158.object({
4227
4307
  meta: ObjectMeta,
4228
- version: z154.string(),
4229
- changeLog: z154.string(),
4230
- isReadOnly: z154.boolean(),
4231
- designSystemId: z154.string(),
4232
- jobId: z154.string()
4233
- });
4234
- var VersionSQSPayload = z154.object({
4235
- jobId: z154.string(),
4236
- designSystemId: z154.string(),
4308
+ version: z158.string(),
4309
+ changeLog: z158.string(),
4310
+ isReadOnly: z158.boolean(),
4311
+ designSystemId: z158.string(),
4312
+ jobId: z158.string()
4313
+ });
4314
+ var VersionSQSPayload = z158.object({
4315
+ jobId: z158.string(),
4316
+ designSystemId: z158.string(),
4237
4317
  input: DTOCreateVersionInput
4238
4318
  });
4239
- var DTODesignSystemVersionJobStatusResponse = z154.object({
4240
- job: VersionCreationJob.omit({
4241
- _id: true
4242
- })
4319
+ var DTODesignSystemVersionJobsResponse = z158.object({
4320
+ jobs: z158.array(VersionCreationJob)
4321
+ });
4322
+ var DTODesignSystemVersionJobStatusResponse = z158.object({
4323
+ job: VersionCreationJob
4243
4324
  });
4244
4325
 
4245
4326
  // src/api/dto/design-systems/view.ts
4246
- import { z as z155 } from "zod";
4247
- var DTOElementViewColumnSharedAttributes = z155.object({
4248
- id: z155.string(),
4249
- persistentId: z155.string(),
4250
- width: z155.number()
4327
+ import { z as z159 } from "zod";
4328
+ var DTOElementViewColumnSharedAttributes = z159.object({
4329
+ id: z159.string(),
4330
+ persistentId: z159.string(),
4331
+ width: z159.number()
4251
4332
  });
4252
4333
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
4253
- type: z155.literal("BaseProperty"),
4334
+ type: z159.literal("BaseProperty"),
4254
4335
  basePropertyType: ElementViewBaseColumnType
4255
4336
  });
4256
4337
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
4257
- type: z155.literal("PropertyDefinition"),
4258
- propertyDefinitionId: z155.string()
4338
+ type: z159.literal("PropertyDefinition"),
4339
+ propertyDefinitionId: z159.string()
4259
4340
  });
4260
4341
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
4261
- type: z155.literal("Theme"),
4262
- themeId: z155.string()
4342
+ type: z159.literal("Theme"),
4343
+ themeId: z159.string()
4263
4344
  });
4264
- var DTOElementViewColumn = z155.discriminatedUnion("type", [
4345
+ var DTOElementViewColumn = z159.discriminatedUnion("type", [
4265
4346
  DTOElementViewBasePropertyColumn,
4266
4347
  DTOElementViewPropertyDefinitionColumn,
4267
4348
  DTOElementViewThemeColumn
4268
4349
  ]);
4269
- var DTOElementView = z155.object({
4350
+ var DTOElementView = z159.object({
4270
4351
  meta: ObjectMeta,
4271
- persistentId: z155.string(),
4352
+ persistentId: z159.string(),
4272
4353
  targetElementType: ElementPropertyTargetType,
4273
- id: z155.string(),
4274
- isDefault: z155.boolean(),
4275
- columns: z155.array(DTOElementViewColumn)
4354
+ id: z159.string(),
4355
+ isDefault: z159.boolean(),
4356
+ columns: z159.array(DTOElementViewColumn)
4276
4357
  });
4277
- var DTOElementViewsListResponse = z155.object({
4278
- elementDataViews: z155.array(DTOElementView)
4358
+ var DTOElementViewsListResponse = z159.object({
4359
+ elementDataViews: z159.array(DTOElementView)
4279
4360
  });
4280
4361
 
4281
4362
  // src/api/dto/documentation/anchor.ts
4282
- import { z as z156 } from "zod";
4363
+ import { z as z160 } from "zod";
4283
4364
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
4284
- var DTOGetDocumentationPageAnchorsResponse = z156.object({
4285
- anchors: z156.array(DTODocumentationPageAnchor)
4365
+ var DTOGetDocumentationPageAnchorsResponse = z160.object({
4366
+ anchors: z160.array(DTODocumentationPageAnchor)
4286
4367
  });
4287
4368
 
4288
4369
  // src/api/dto/documentation/link-preview.ts
4289
- import { z as z157 } from "zod";
4290
- var DTODocumentationLinkPreviewResponse = z157.object({
4370
+ import { z as z161 } from "zod";
4371
+ var DTODocumentationLinkPreviewResponse = z161.object({
4291
4372
  linkPreview: DocumentationLinkPreview
4292
4373
  });
4293
- var DTODocumentationLinkPreviewRequest = z157.object({
4294
- url: z157.string().optional(),
4295
- documentationItemPersistentId: z157.string().optional()
4374
+ var DTODocumentationLinkPreviewRequest = z161.object({
4375
+ url: z161.string().optional(),
4376
+ documentationItemPersistentId: z161.string().optional()
4296
4377
  });
4297
4378
 
4298
4379
  // src/api/dto/elements/documentation/group-action.ts
4299
- import { z as z160 } from "zod";
4380
+ import { z as z164 } from "zod";
4300
4381
 
4301
4382
  // src/api/dto/elements/documentation/group-v2.ts
4302
- import { z as z159 } from "zod";
4383
+ import { z as z163 } from "zod";
4303
4384
 
4304
4385
  // src/api/dto/elements/documentation/item-configuration-v2.ts
4305
- import { z as z158 } from "zod";
4386
+ import { z as z162 } from "zod";
4306
4387
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
4307
- var DTODocumentationItemConfigurationV2 = z158.object({
4308
- showSidebar: z158.boolean(),
4309
- isPrivate: z158.boolean(),
4310
- isHidden: z158.boolean(),
4388
+ var DTODocumentationItemConfigurationV2 = z162.object({
4389
+ showSidebar: z162.boolean(),
4390
+ isPrivate: z162.boolean(),
4391
+ isHidden: z162.boolean(),
4311
4392
  header: DTODocumentationItemHeaderV2
4312
4393
  });
4313
4394
 
@@ -4321,136 +4402,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
4321
4402
  data: true,
4322
4403
  shortPersistentId: true
4323
4404
  }).extend({
4324
- title: z159.string(),
4325
- isRoot: z159.boolean(),
4326
- childrenIds: z159.array(z159.string()),
4405
+ title: z163.string(),
4406
+ isRoot: z163.boolean(),
4407
+ childrenIds: z163.array(z163.string()),
4327
4408
  groupBehavior: DocumentationGroupBehavior,
4328
- shortPersistentId: z159.string(),
4409
+ shortPersistentId: z163.string(),
4329
4410
  configuration: DTODocumentationItemConfigurationV2,
4330
- type: z159.literal("Group")
4411
+ type: z163.literal("Group")
4331
4412
  });
4332
4413
  var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
4333
- var DTOCreateDocumentationGroupInput = z159.object({
4414
+ var DTOCreateDocumentationGroupInput = z163.object({
4334
4415
  // Identifier
4335
- persistentId: z159.string().uuid(),
4416
+ persistentId: z163.string().uuid(),
4336
4417
  // Group properties
4337
- title: z159.string(),
4418
+ title: z163.string(),
4338
4419
  configuration: DTODocumentationItemConfigurationV2.optional(),
4339
4420
  // Group placement properties
4340
- afterPersistentId: z159.string().uuid().nullish(),
4341
- parentPersistentId: z159.string().uuid()
4421
+ afterPersistentId: z163.string().uuid().nullish(),
4422
+ parentPersistentId: z163.string().uuid()
4342
4423
  });
4343
- var DTOUpdateDocumentationGroupInput = z159.object({
4424
+ var DTOUpdateDocumentationGroupInput = z163.object({
4344
4425
  // Identifier of the group to update
4345
- id: z159.string(),
4426
+ id: z163.string(),
4346
4427
  // Group properties
4347
- title: z159.string().optional(),
4428
+ title: z163.string().optional(),
4348
4429
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4349
4430
  });
4350
- var DTOMoveDocumentationGroupInput = z159.object({
4431
+ var DTOMoveDocumentationGroupInput = z163.object({
4351
4432
  // Identifier of the group to update
4352
- id: z159.string(),
4433
+ id: z163.string(),
4353
4434
  // Group placement properties
4354
- parentPersistentId: z159.string().uuid(),
4355
- afterPersistentId: z159.string().uuid().nullish()
4435
+ parentPersistentId: z163.string().uuid(),
4436
+ afterPersistentId: z163.string().uuid().nullish()
4356
4437
  });
4357
- var DTODuplicateDocumentationGroupInput = z159.object({
4438
+ var DTODuplicateDocumentationGroupInput = z163.object({
4358
4439
  // Identifier of the group to duplicate from
4359
- id: z159.string(),
4440
+ id: z163.string(),
4360
4441
  // New group persistent id
4361
- persistentId: z159.string().uuid(),
4442
+ persistentId: z163.string().uuid(),
4362
4443
  // Group placement properties
4363
- afterPersistentId: z159.string().uuid().nullish(),
4364
- parentPersistentId: z159.string().uuid()
4444
+ afterPersistentId: z163.string().uuid().nullish(),
4445
+ parentPersistentId: z163.string().uuid()
4365
4446
  });
4366
- var DTOCreateDocumentationTabInput = z159.object({
4447
+ var DTOCreateDocumentationTabInput = z163.object({
4367
4448
  // New group persistent id
4368
- persistentId: z159.string().uuid(),
4449
+ persistentId: z163.string().uuid(),
4369
4450
  // If this is page, we will attempt to convert it to tab
4370
4451
  // If this is tab group, we will add a new tab to it
4371
- fromItemPersistentId: z159.string(),
4372
- tabName: z159.string()
4452
+ fromItemPersistentId: z163.string(),
4453
+ tabName: z163.string()
4373
4454
  });
4374
- var DTODeleteDocumentationTabGroupInput = z159.object({
4455
+ var DTODeleteDocumentationTabGroupInput = z163.object({
4375
4456
  // Deleted group id
4376
- id: z159.string()
4457
+ id: z163.string()
4377
4458
  });
4378
- var DTODeleteDocumentationGroupInput = z159.object({
4459
+ var DTODeleteDocumentationGroupInput = z163.object({
4379
4460
  // Identifier
4380
- id: z159.string(),
4461
+ id: z163.string(),
4381
4462
  // Deletion options
4382
- deleteSubtree: z159.boolean().default(false)
4463
+ deleteSubtree: z163.boolean().default(false)
4383
4464
  });
4384
4465
 
4385
4466
  // src/api/dto/elements/documentation/group-action.ts
4386
- var SuccessPayload = z160.object({
4387
- success: z160.literal(true)
4467
+ var SuccessPayload = z164.object({
4468
+ success: z164.literal(true)
4388
4469
  });
4389
- var DTODocumentationGroupCreateActionOutputV2 = z160.object({
4390
- type: z160.literal("DocumentationGroupCreate"),
4470
+ var DTODocumentationGroupCreateActionOutputV2 = z164.object({
4471
+ type: z164.literal("DocumentationGroupCreate"),
4391
4472
  output: SuccessPayload
4392
4473
  });
4393
- var DTODocumentationTabCreateActionOutputV2 = z160.object({
4394
- type: z160.literal("DocumentationTabCreate"),
4474
+ var DTODocumentationTabCreateActionOutputV2 = z164.object({
4475
+ type: z164.literal("DocumentationTabCreate"),
4395
4476
  output: SuccessPayload
4396
4477
  });
4397
- var DTODocumentationGroupUpdateActionOutputV2 = z160.object({
4398
- type: z160.literal("DocumentationGroupUpdate"),
4478
+ var DTODocumentationGroupUpdateActionOutputV2 = z164.object({
4479
+ type: z164.literal("DocumentationGroupUpdate"),
4399
4480
  output: SuccessPayload
4400
4481
  });
4401
- var DTODocumentationGroupMoveActionOutputV2 = z160.object({
4402
- type: z160.literal("DocumentationGroupMove"),
4482
+ var DTODocumentationGroupMoveActionOutputV2 = z164.object({
4483
+ type: z164.literal("DocumentationGroupMove"),
4403
4484
  output: SuccessPayload
4404
4485
  });
4405
- var DTODocumentationGroupDuplicateActionOutputV2 = z160.object({
4406
- type: z160.literal("DocumentationGroupDuplicate"),
4486
+ var DTODocumentationGroupDuplicateActionOutputV2 = z164.object({
4487
+ type: z164.literal("DocumentationGroupDuplicate"),
4407
4488
  output: SuccessPayload
4408
4489
  });
4409
- var DTODocumentationGroupDeleteActionOutputV2 = z160.object({
4410
- type: z160.literal("DocumentationGroupDelete"),
4490
+ var DTODocumentationGroupDeleteActionOutputV2 = z164.object({
4491
+ type: z164.literal("DocumentationGroupDelete"),
4411
4492
  output: SuccessPayload
4412
4493
  });
4413
- var DTODocumentationTabGroupDeleteActionOutputV2 = z160.object({
4414
- type: z160.literal("DocumentationTabGroupDelete"),
4494
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z164.object({
4495
+ type: z164.literal("DocumentationTabGroupDelete"),
4415
4496
  output: SuccessPayload
4416
4497
  });
4417
- var DTODocumentationGroupCreateActionInputV2 = z160.object({
4418
- type: z160.literal("DocumentationGroupCreate"),
4498
+ var DTODocumentationGroupCreateActionInputV2 = z164.object({
4499
+ type: z164.literal("DocumentationGroupCreate"),
4419
4500
  input: DTOCreateDocumentationGroupInput
4420
4501
  });
4421
- var DTODocumentationTabCreateActionInputV2 = z160.object({
4422
- type: z160.literal("DocumentationTabCreate"),
4502
+ var DTODocumentationTabCreateActionInputV2 = z164.object({
4503
+ type: z164.literal("DocumentationTabCreate"),
4423
4504
  input: DTOCreateDocumentationTabInput
4424
4505
  });
4425
- var DTODocumentationGroupUpdateActionInputV2 = z160.object({
4426
- type: z160.literal("DocumentationGroupUpdate"),
4506
+ var DTODocumentationGroupUpdateActionInputV2 = z164.object({
4507
+ type: z164.literal("DocumentationGroupUpdate"),
4427
4508
  input: DTOUpdateDocumentationGroupInput
4428
4509
  });
4429
- var DTODocumentationGroupMoveActionInputV2 = z160.object({
4430
- type: z160.literal("DocumentationGroupMove"),
4510
+ var DTODocumentationGroupMoveActionInputV2 = z164.object({
4511
+ type: z164.literal("DocumentationGroupMove"),
4431
4512
  input: DTOMoveDocumentationGroupInput
4432
4513
  });
4433
- var DTODocumentationGroupDuplicateActionInputV2 = z160.object({
4434
- type: z160.literal("DocumentationGroupDuplicate"),
4514
+ var DTODocumentationGroupDuplicateActionInputV2 = z164.object({
4515
+ type: z164.literal("DocumentationGroupDuplicate"),
4435
4516
  input: DTODuplicateDocumentationGroupInput
4436
4517
  });
4437
- var DTODocumentationGroupDeleteActionInputV2 = z160.object({
4438
- type: z160.literal("DocumentationGroupDelete"),
4518
+ var DTODocumentationGroupDeleteActionInputV2 = z164.object({
4519
+ type: z164.literal("DocumentationGroupDelete"),
4439
4520
  input: DTODeleteDocumentationGroupInput
4440
4521
  });
4441
- var DTODocumentationTabGroupDeleteActionInputV2 = z160.object({
4442
- type: z160.literal("DocumentationTabGroupDelete"),
4522
+ var DTODocumentationTabGroupDeleteActionInputV2 = z164.object({
4523
+ type: z164.literal("DocumentationTabGroupDelete"),
4443
4524
  input: DTODeleteDocumentationTabGroupInput
4444
4525
  });
4445
4526
 
4446
4527
  // src/api/dto/elements/documentation/group-v1.ts
4447
- import { z as z162 } from "zod";
4528
+ import { z as z166 } from "zod";
4448
4529
 
4449
4530
  // src/api/dto/elements/documentation/item-configuration-v1.ts
4450
- import { z as z161 } from "zod";
4451
- var DocumentationColorV1 = z161.object({
4452
- aliasTo: z161.string().optional(),
4453
- value: z161.string().optional()
4531
+ import { z as z165 } from "zod";
4532
+ var DocumentationColorV1 = z165.object({
4533
+ aliasTo: z165.string().optional(),
4534
+ value: z165.string().optional()
4454
4535
  });
4455
4536
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4456
4537
  foregroundColor: true,
@@ -4459,10 +4540,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4459
4540
  foregroundColor: DocumentationColorV1.optional(),
4460
4541
  backgroundColor: DocumentationColorV1.optional()
4461
4542
  });
4462
- var DTODocumentationItemConfigurationV1 = z161.object({
4463
- showSidebar: z161.boolean(),
4464
- isPrivate: z161.boolean(),
4465
- isHidden: z161.boolean(),
4543
+ var DTODocumentationItemConfigurationV1 = z165.object({
4544
+ showSidebar: z165.boolean(),
4545
+ isPrivate: z165.boolean(),
4546
+ isHidden: z165.boolean(),
4466
4547
  header: DTODocumentationItemHeaderV1
4467
4548
  });
4468
4549
 
@@ -4476,130 +4557,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
4476
4557
  data: true,
4477
4558
  shortPersistentId: true
4478
4559
  }).extend({
4479
- title: z162.string(),
4480
- isRoot: z162.boolean(),
4481
- childrenIds: z162.array(z162.string()),
4560
+ title: z166.string(),
4561
+ isRoot: z166.boolean(),
4562
+ childrenIds: z166.array(z166.string()),
4482
4563
  groupBehavior: DocumentationGroupBehavior,
4483
- shortPersistentId: z162.string(),
4484
- type: z162.literal("Group")
4564
+ shortPersistentId: z166.string(),
4565
+ type: z166.literal("Group")
4485
4566
  });
4486
4567
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
4487
4568
  configuration: DTODocumentationItemConfigurationV1
4488
4569
  });
4489
4570
 
4490
4571
  // src/api/dto/elements/documentation/page-actions-v2.ts
4491
- import { z as z164 } from "zod";
4572
+ import { z as z168 } from "zod";
4492
4573
 
4493
4574
  // src/api/dto/elements/documentation/page-v2.ts
4494
- import { z as z163 } from "zod";
4575
+ import { z as z167 } from "zod";
4495
4576
  var DTODocumentationPageV2 = DocumentationPageV2.omit({
4496
4577
  data: true,
4497
4578
  meta: true,
4498
4579
  parentPersistentId: true,
4499
4580
  sortOrder: true
4500
4581
  }).extend({
4501
- title: z163.string(),
4502
- path: z163.string(),
4503
- type: z163.literal("Page"),
4582
+ title: z167.string(),
4583
+ path: z167.string(),
4584
+ type: z167.literal("Page"),
4504
4585
  configuration: DTODocumentationItemConfigurationV2
4505
4586
  });
4506
4587
  var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
4507
- var DTODocumentationHierarchyV2 = z163.object({
4508
- pages: z163.array(DTODocumentationPageStructureV2),
4509
- groups: z163.array(DTODocumentationGroupStructureV2)
4588
+ var DTODocumentationHierarchyV2 = z167.object({
4589
+ pages: z167.array(DTODocumentationPageStructureV2),
4590
+ groups: z167.array(DTODocumentationGroupStructureV2)
4510
4591
  });
4511
- var DTOCreateDocumentationPageInputV2 = z163.object({
4592
+ var DTOCreateDocumentationPageInputV2 = z167.object({
4512
4593
  // Identifier
4513
- persistentId: z163.string().uuid(),
4594
+ persistentId: z167.string().uuid(),
4514
4595
  // Page properties
4515
- title: z163.string(),
4596
+ title: z167.string(),
4516
4597
  configuration: DTODocumentationItemConfigurationV2.optional(),
4517
4598
  // Page placement properties
4518
- parentPersistentId: z163.string().uuid(),
4519
- afterPersistentId: z163.string().uuid().nullish()
4599
+ parentPersistentId: z167.string().uuid(),
4600
+ afterPersistentId: z167.string().uuid().nullish()
4520
4601
  });
4521
- var DTOUpdateDocumentationPageInputV2 = z163.object({
4602
+ var DTOUpdateDocumentationPageInputV2 = z167.object({
4522
4603
  // Identifier of the group to update
4523
- id: z163.string(),
4604
+ id: z167.string(),
4524
4605
  // Page properties
4525
- title: z163.string().optional(),
4606
+ title: z167.string().optional(),
4526
4607
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4527
4608
  });
4528
- var DTOMoveDocumentationPageInputV2 = z163.object({
4609
+ var DTOMoveDocumentationPageInputV2 = z167.object({
4529
4610
  // Identifier of the group to update
4530
- id: z163.string(),
4611
+ id: z167.string(),
4531
4612
  // Page placement properties
4532
- parentPersistentId: z163.string().uuid(),
4533
- afterPersistentId: z163.string().uuid().nullish()
4613
+ parentPersistentId: z167.string().uuid(),
4614
+ afterPersistentId: z167.string().uuid().nullish()
4534
4615
  });
4535
- var DTODuplicateDocumentationPageInputV2 = z163.object({
4616
+ var DTODuplicateDocumentationPageInputV2 = z167.object({
4536
4617
  // Identifier of the page to duplicate from
4537
- id: z163.string(),
4618
+ id: z167.string(),
4538
4619
  // New page persistent id
4539
- persistentId: z163.string().uuid(),
4620
+ persistentId: z167.string().uuid(),
4540
4621
  // Page placement properties
4541
- parentPersistentId: z163.string().uuid(),
4542
- afterPersistentId: z163.string().uuid().nullish()
4622
+ parentPersistentId: z167.string().uuid(),
4623
+ afterPersistentId: z167.string().uuid().nullish()
4543
4624
  });
4544
- var DTODeleteDocumentationPageInputV2 = z163.object({
4625
+ var DTODeleteDocumentationPageInputV2 = z167.object({
4545
4626
  // Identifier
4546
- id: z163.string()
4627
+ id: z167.string()
4547
4628
  });
4548
4629
 
4549
4630
  // src/api/dto/elements/documentation/page-actions-v2.ts
4550
- var SuccessPayload2 = z164.object({
4551
- success: z164.literal(true)
4631
+ var SuccessPayload2 = z168.object({
4632
+ success: z168.literal(true)
4552
4633
  });
4553
- var DTODocumentationPageCreateActionOutputV2 = z164.object({
4554
- type: z164.literal("DocumentationPageCreate"),
4634
+ var DTODocumentationPageCreateActionOutputV2 = z168.object({
4635
+ type: z168.literal("DocumentationPageCreate"),
4555
4636
  output: SuccessPayload2
4556
4637
  });
4557
- var DTODocumentationPageUpdateActionOutputV2 = z164.object({
4558
- type: z164.literal("DocumentationPageUpdate"),
4638
+ var DTODocumentationPageUpdateActionOutputV2 = z168.object({
4639
+ type: z168.literal("DocumentationPageUpdate"),
4559
4640
  output: SuccessPayload2
4560
4641
  });
4561
- var DTODocumentationPageMoveActionOutputV2 = z164.object({
4562
- type: z164.literal("DocumentationPageMove"),
4642
+ var DTODocumentationPageMoveActionOutputV2 = z168.object({
4643
+ type: z168.literal("DocumentationPageMove"),
4563
4644
  output: SuccessPayload2
4564
4645
  });
4565
- var DTODocumentationPageDuplicateActionOutputV2 = z164.object({
4566
- type: z164.literal("DocumentationPageDuplicate"),
4646
+ var DTODocumentationPageDuplicateActionOutputV2 = z168.object({
4647
+ type: z168.literal("DocumentationPageDuplicate"),
4567
4648
  output: SuccessPayload2
4568
4649
  });
4569
- var DTODocumentationPageDeleteActionOutputV2 = z164.object({
4570
- type: z164.literal("DocumentationPageDelete"),
4650
+ var DTODocumentationPageDeleteActionOutputV2 = z168.object({
4651
+ type: z168.literal("DocumentationPageDelete"),
4571
4652
  output: SuccessPayload2
4572
4653
  });
4573
- var DTODocumentationPageCreateActionInputV2 = z164.object({
4574
- type: z164.literal("DocumentationPageCreate"),
4654
+ var DTODocumentationPageCreateActionInputV2 = z168.object({
4655
+ type: z168.literal("DocumentationPageCreate"),
4575
4656
  input: DTOCreateDocumentationPageInputV2
4576
4657
  });
4577
- var DTODocumentationPageUpdateActionInputV2 = z164.object({
4578
- type: z164.literal("DocumentationPageUpdate"),
4658
+ var DTODocumentationPageUpdateActionInputV2 = z168.object({
4659
+ type: z168.literal("DocumentationPageUpdate"),
4579
4660
  input: DTOUpdateDocumentationPageInputV2
4580
4661
  });
4581
- var DTODocumentationPageMoveActionInputV2 = z164.object({
4582
- type: z164.literal("DocumentationPageMove"),
4662
+ var DTODocumentationPageMoveActionInputV2 = z168.object({
4663
+ type: z168.literal("DocumentationPageMove"),
4583
4664
  input: DTOMoveDocumentationPageInputV2
4584
4665
  });
4585
- var DTODocumentationPageDuplicateActionInputV2 = z164.object({
4586
- type: z164.literal("DocumentationPageDuplicate"),
4666
+ var DTODocumentationPageDuplicateActionInputV2 = z168.object({
4667
+ type: z168.literal("DocumentationPageDuplicate"),
4587
4668
  input: DTODuplicateDocumentationPageInputV2
4588
4669
  });
4589
- var DTODocumentationPageDeleteActionInputV2 = z164.object({
4590
- type: z164.literal("DocumentationPageDelete"),
4670
+ var DTODocumentationPageDeleteActionInputV2 = z168.object({
4671
+ type: z168.literal("DocumentationPageDelete"),
4591
4672
  input: DTODeleteDocumentationPageInputV2
4592
4673
  });
4593
4674
 
4594
4675
  // src/api/dto/elements/documentation/page-content.ts
4595
- import { z as z165 } from "zod";
4676
+ import { z as z169 } from "zod";
4596
4677
  var DTODocumentationPageContent = DocumentationPageContent;
4597
- var DTODocumentationPageContentGetResponse = z165.object({
4678
+ var DTODocumentationPageContentGetResponse = z169.object({
4598
4679
  pageContent: DTODocumentationPageContent
4599
4680
  });
4600
4681
 
4601
4682
  // src/api/dto/elements/documentation/page-v1.ts
4602
- import { z as z166 } from "zod";
4683
+ import { z as z170 } from "zod";
4603
4684
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
4604
4685
  data: true,
4605
4686
  meta: true,
@@ -4607,30 +4688,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
4607
4688
  sortOrder: true
4608
4689
  }).extend({
4609
4690
  configuration: DTODocumentationItemConfigurationV1,
4610
- blocks: z166.array(PageBlockV1),
4611
- title: z166.string(),
4612
- path: z166.string()
4691
+ blocks: z170.array(PageBlockV1),
4692
+ title: z170.string(),
4693
+ path: z170.string()
4613
4694
  });
4614
4695
 
4615
4696
  // src/api/dto/elements/figma-nodes/figma-node.ts
4616
- import { z as z167 } from "zod";
4617
- var DTOFigmaNodeOrigin = z167.object({
4618
- sourceId: z167.string(),
4619
- fileId: z167.string().optional(),
4620
- parentName: z167.string().optional()
4697
+ import { z as z171 } from "zod";
4698
+ var DTOFigmaNodeOrigin = z171.object({
4699
+ sourceId: z171.string(),
4700
+ fileId: z171.string().optional(),
4701
+ parentName: z171.string().optional()
4621
4702
  });
4622
- var DTOFigmaNodeData = z167.object({
4703
+ var DTOFigmaNodeData = z171.object({
4623
4704
  // Id of the node in the Figma file
4624
- figmaNodeId: z167.string(),
4705
+ figmaNodeId: z171.string(),
4625
4706
  // Validity
4626
- isValid: z167.boolean(),
4707
+ isValid: z171.boolean(),
4627
4708
  // Asset data
4628
- assetId: z167.string(),
4629
- assetUrl: z167.string(),
4709
+ assetId: z171.string(),
4710
+ assetUrl: z171.string(),
4630
4711
  // Asset metadata
4631
- assetScale: z167.number(),
4632
- assetWidth: z167.number().optional(),
4633
- assetHeight: z167.number().optional()
4712
+ assetScale: z171.number(),
4713
+ assetWidth: z171.number().optional(),
4714
+ assetHeight: z171.number().optional()
4634
4715
  });
4635
4716
  var DTOFigmaNode = FigmaFileStructure.omit({
4636
4717
  data: true,
@@ -4639,105 +4720,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
4639
4720
  data: DTOFigmaNodeData,
4640
4721
  origin: DTOFigmaNodeOrigin
4641
4722
  });
4642
- var DTOFigmaNodeRenderInput = z167.object({
4723
+ var DTOFigmaNodeRenderInput = z171.object({
4643
4724
  // Id of a design system's data source representing a linked Figma file
4644
- sourceId: z167.string(),
4725
+ sourceId: z171.string(),
4645
4726
  // Id of a node within the Figma file
4646
- figmaFileNodeId: z167.string()
4727
+ figmaFileNodeId: z171.string()
4647
4728
  });
4648
4729
 
4649
4730
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
4650
- import { z as z168 } from "zod";
4651
- var DTOFigmaNodeRenderActionOutput = z168.object({
4652
- type: z168.literal("FigmaNodeRender"),
4653
- figmaNodes: z168.array(DTOFigmaNode)
4731
+ import { z as z172 } from "zod";
4732
+ var DTOFigmaNodeRenderActionOutput = z172.object({
4733
+ type: z172.literal("FigmaNodeRender"),
4734
+ figmaNodes: z172.array(DTOFigmaNode)
4654
4735
  });
4655
- var DTOFigmaNodeRenderActionInput = z168.object({
4656
- type: z168.literal("FigmaNodeRender"),
4736
+ var DTOFigmaNodeRenderActionInput = z172.object({
4737
+ type: z172.literal("FigmaNodeRender"),
4657
4738
  input: DTOFigmaNodeRenderInput.array()
4658
4739
  });
4659
4740
 
4660
4741
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4661
- import { z as z170 } from "zod";
4742
+ import { z as z174 } from "zod";
4662
4743
 
4663
4744
  // src/api/dto/elements/properties/property-definitions.ts
4664
- import { z as z169 } from "zod";
4745
+ import { z as z173 } from "zod";
4665
4746
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
4666
- var DTOElementPropertyDefinition = z169.object({
4667
- id: z169.string(),
4668
- designSystemVersionId: z169.string(),
4747
+ var DTOElementPropertyDefinition = z173.object({
4748
+ id: z173.string(),
4749
+ designSystemVersionId: z173.string(),
4669
4750
  meta: ObjectMeta,
4670
- persistentId: z169.string(),
4751
+ persistentId: z173.string(),
4671
4752
  type: ElementPropertyTypeSchema,
4672
4753
  targetElementType: ElementPropertyTargetType,
4673
- codeName: z169.string().regex(CODE_NAME_REGEX2),
4674
- options: z169.array(ElementPropertyDefinitionOption).optional(),
4754
+ codeName: z173.string().regex(CODE_NAME_REGEX2),
4755
+ options: z173.array(ElementPropertyDefinitionOption).optional(),
4675
4756
  linkElementType: ElementPropertyLinkType.optional()
4676
4757
  });
4677
- var DTOElementPropertyDefinitionsGetResponse = z169.object({
4678
- definitions: z169.array(DTOElementPropertyDefinition)
4758
+ var DTOElementPropertyDefinitionsGetResponse = z173.object({
4759
+ definitions: z173.array(DTOElementPropertyDefinition)
4679
4760
  });
4680
4761
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
4681
4762
  id: true,
4682
4763
  designSystemVersionId: true
4683
4764
  });
4684
- var DTOUpdateElementPropertyDefinitionInputV2 = z169.object({
4685
- id: z169.string(),
4686
- name: z169.string().optional(),
4687
- description: z169.string().optional(),
4688
- codeName: z169.string().regex(CODE_NAME_REGEX2).optional(),
4689
- options: z169.array(ElementPropertyDefinitionOption).optional()
4765
+ var DTOUpdateElementPropertyDefinitionInputV2 = z173.object({
4766
+ id: z173.string(),
4767
+ name: z173.string().optional(),
4768
+ description: z173.string().optional(),
4769
+ codeName: z173.string().regex(CODE_NAME_REGEX2).optional(),
4770
+ options: z173.array(ElementPropertyDefinitionOption).optional()
4690
4771
  });
4691
- var DTODeleteElementPropertyDefinitionInputV2 = z169.object({
4692
- id: z169.string()
4772
+ var DTODeleteElementPropertyDefinitionInputV2 = z173.object({
4773
+ id: z173.string()
4693
4774
  });
4694
4775
 
4695
4776
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4696
- var SuccessPayload3 = z170.object({
4697
- success: z170.literal(true)
4777
+ var SuccessPayload3 = z174.object({
4778
+ success: z174.literal(true)
4698
4779
  });
4699
- var DTOPropertyDefinitionCreateActionOutputV2 = z170.object({
4700
- type: z170.literal("PropertyDefinitionCreate"),
4780
+ var DTOPropertyDefinitionCreateActionOutputV2 = z174.object({
4781
+ type: z174.literal("PropertyDefinitionCreate"),
4701
4782
  definition: DTOElementPropertyDefinition
4702
4783
  });
4703
- var DTOPropertyDefinitionUpdateActionOutputV2 = z170.object({
4704
- type: z170.literal("PropertyDefinitionUpdate"),
4784
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z174.object({
4785
+ type: z174.literal("PropertyDefinitionUpdate"),
4705
4786
  definition: DTOElementPropertyDefinition
4706
4787
  });
4707
- var DTOPropertyDefinitionDeleteActionOutputV2 = z170.object({
4708
- type: z170.literal("PropertyDefinitionDelete"),
4788
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z174.object({
4789
+ type: z174.literal("PropertyDefinitionDelete"),
4709
4790
  output: SuccessPayload3
4710
4791
  });
4711
- var DTOPropertyDefinitionCreateActionInputV2 = z170.object({
4712
- type: z170.literal("PropertyDefinitionCreate"),
4792
+ var DTOPropertyDefinitionCreateActionInputV2 = z174.object({
4793
+ type: z174.literal("PropertyDefinitionCreate"),
4713
4794
  input: DTOCreateElementPropertyDefinitionInputV2
4714
4795
  });
4715
- var DTOPropertyDefinitionUpdateActionInputV2 = z170.object({
4716
- type: z170.literal("PropertyDefinitionUpdate"),
4796
+ var DTOPropertyDefinitionUpdateActionInputV2 = z174.object({
4797
+ type: z174.literal("PropertyDefinitionUpdate"),
4717
4798
  input: DTOUpdateElementPropertyDefinitionInputV2
4718
4799
  });
4719
- var DTOPropertyDefinitionDeleteActionInputV2 = z170.object({
4720
- type: z170.literal("PropertyDefinitionDelete"),
4800
+ var DTOPropertyDefinitionDeleteActionInputV2 = z174.object({
4801
+ type: z174.literal("PropertyDefinitionDelete"),
4721
4802
  input: DTODeleteElementPropertyDefinitionInputV2
4722
4803
  });
4723
4804
 
4724
4805
  // src/api/dto/elements/properties/property-values.ts
4725
- import { z as z171 } from "zod";
4726
- var DTOElementPropertyValue = z171.object({
4727
- id: z171.string(),
4728
- designSystemVersionId: z171.string(),
4729
- definitionId: z171.string(),
4730
- targetElementId: z171.string(),
4731
- value: z171.union([z171.string(), z171.number(), z171.boolean()]).optional(),
4732
- valuePreview: z171.string().optional()
4806
+ import { z as z175 } from "zod";
4807
+ var DTOElementPropertyValue = z175.object({
4808
+ id: z175.string(),
4809
+ designSystemVersionId: z175.string(),
4810
+ definitionId: z175.string(),
4811
+ targetElementId: z175.string(),
4812
+ value: z175.union([z175.string(), z175.number(), z175.boolean()]).optional(),
4813
+ valuePreview: z175.string().optional()
4733
4814
  });
4734
- var DTOElementPropertyValuesGetResponse = z171.object({
4735
- values: z171.array(DTOElementPropertyValue)
4815
+ var DTOElementPropertyValuesGetResponse = z175.object({
4816
+ values: z175.array(DTOElementPropertyValue)
4736
4817
  });
4737
4818
 
4738
4819
  // src/api/dto/elements/elements-action-v2.ts
4739
- import { z as z172 } from "zod";
4740
- var DTOElementActionOutput = z172.discriminatedUnion("type", [
4820
+ import { z as z176 } from "zod";
4821
+ var DTOElementActionOutput = z176.discriminatedUnion("type", [
4741
4822
  // Documentation pages
4742
4823
  DTODocumentationPageCreateActionOutputV2,
4743
4824
  DTODocumentationPageUpdateActionOutputV2,
@@ -4759,7 +4840,7 @@ var DTOElementActionOutput = z172.discriminatedUnion("type", [
4759
4840
  DTOPropertyDefinitionUpdateActionOutputV2,
4760
4841
  DTOPropertyDefinitionDeleteActionOutputV2
4761
4842
  ]);
4762
- var DTOElementActionInput = z172.discriminatedUnion("type", [
4843
+ var DTOElementActionInput = z176.discriminatedUnion("type", [
4763
4844
  // Documentation pages
4764
4845
  DTODocumentationPageCreateActionInputV2,
4765
4846
  DTODocumentationPageUpdateActionInputV2,
@@ -4783,72 +4864,73 @@ var DTOElementActionInput = z172.discriminatedUnion("type", [
4783
4864
  ]);
4784
4865
 
4785
4866
  // src/api/dto/elements/get-elements-v2.ts
4786
- import { z as z173 } from "zod";
4787
- var DTOElementsGetTypeFilter = z173.enum(["FigmaNode"]);
4788
- var DTOElementsGetQuerySchema = z173.object({
4789
- types: z173.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
4867
+ import { z as z177 } from "zod";
4868
+ var DTOElementsGetTypeFilter = z177.enum(["FigmaNode"]);
4869
+ var DTOElementsGetQuerySchema = z177.object({
4870
+ types: z177.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
4790
4871
  });
4791
- var DTOElementsGetOutput = z173.object({
4792
- figmaNodes: z173.array(DTOFigmaNode).optional()
4872
+ var DTOElementsGetOutput = z177.object({
4873
+ figmaNodes: z177.array(DTOFigmaNode).optional()
4793
4874
  });
4794
4875
 
4795
4876
  // src/api/dto/workspaces/integrations.ts
4796
- import { z as z174 } from "zod";
4797
- var DTOIntegration = z174.object({
4798
- id: z174.string(),
4799
- workspaceId: z174.string(),
4800
- type: IntegrationType,
4801
- createdAt: z174.coerce.date(),
4802
- integrationCredentials: z174.array(IntegrationCredentials).optional()
4803
- });
4804
- var DTOIntegrationOAuthGetResponse = z174.object({
4805
- url: z174.string()
4806
- });
4807
- var DTOIntegrationPostResponse = z174.object({
4877
+ import { z as z178 } from "zod";
4878
+ var DTOIntegration = z178.object({
4879
+ id: z178.string(),
4880
+ workspaceId: z178.string(),
4881
+ type: ExtendedIntegrationType,
4882
+ createdAt: z178.coerce.date(),
4883
+ integrationCredentials: z178.array(IntegrationCredentials).optional(),
4884
+ integrationDesignSystems: z178.array(IntegrationDesignSystem).optional()
4885
+ });
4886
+ var DTOIntegrationOAuthGetResponse = z178.object({
4887
+ url: z178.string()
4888
+ });
4889
+ var DTOIntegrationPostResponse = z178.object({
4808
4890
  integration: DTOIntegration
4809
4891
  });
4810
- var DTOIntegrationsGetListResponse = z174.object({
4892
+ var DTOIntegrationsGetListResponse = z178.object({
4811
4893
  integrations: DTOIntegration.array()
4812
4894
  });
4813
4895
 
4814
4896
  // src/api/dto/workspaces/membership.ts
4815
- import { z as z177 } from "zod";
4897
+ import { z as z181 } from "zod";
4816
4898
 
4817
4899
  // src/api/dto/workspaces/workspace.ts
4818
- import { z as z176 } from "zod";
4900
+ import { z as z180 } from "zod";
4819
4901
 
4820
4902
  // src/api/dto/workspaces/npm-registry.ts
4821
- import { z as z175 } from "zod";
4822
- var DTONpmRegistryConfig = z175.object({
4903
+ import { z as z179 } from "zod";
4904
+ var DTONpmRegistryConfig = z179.object({
4823
4905
  // Registry basic configuration
4824
4906
  registryType: NpmRegistryType,
4825
- registryUrl: z175.string(),
4826
- customRegistryUrl: z175.string().optional(),
4907
+ registryUrl: z179.string(),
4908
+ customRegistryUrl: z179.string().optional(),
4827
4909
  // URL of Supernova NPM packages proxy
4828
- proxyUrl: z175.string(),
4910
+ proxyUrl: z179.string(),
4829
4911
  // Auth configuration
4830
4912
  authType: NpmRegistryAuthType,
4831
- accessToken: z175.literal("redacted").optional(),
4832
- username: z175.string().optional(),
4833
- password: z175.literal("redacted").optional(),
4913
+ accessToken: z179.literal("redacted").optional(),
4914
+ username: z179.string().optional(),
4915
+ password: z179.literal("redacted").optional(),
4834
4916
  // NPM package scopes for whih the proxy should be enabled
4835
- enabledScopes: z175.array(z175.string()),
4917
+ enabledScopes: z179.array(z179.string()),
4836
4918
  // True if client should bypass Supernova proxy and connect directly to the registry
4837
4919
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
4838
- bypassProxy: z175.boolean()
4920
+ bypassProxy: z179.boolean()
4839
4921
  });
4840
4922
 
4841
4923
  // src/api/dto/workspaces/workspace.ts
4842
- var DTOWorkspace = z176.object({
4843
- id: z176.string(),
4924
+ var DTOWorkspace = z180.object({
4925
+ id: z180.string(),
4844
4926
  profile: WorkspaceProfile,
4845
4927
  subscription: Subscription,
4846
4928
  npmRegistry: DTONpmRegistryConfig.optional()
4847
4929
  });
4848
4930
 
4849
4931
  // src/api/dto/workspaces/membership.ts
4850
- var DTOWorkspaceRole = z177.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
4851
- var DTOUserWorkspaceMembership = z177.object({
4932
+ var DTOWorkspaceRole = z181.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
4933
+ var DTOUserWorkspaceMembership = z181.object({
4852
4934
  // Workspace the user is a member of
4853
4935
  workspace: DTOWorkspace,
4854
4936
  // Assigned role the user has in the workspace
@@ -4858,14 +4940,14 @@ var DTOUserWorkspaceMembership = z177.object({
4858
4940
  // when a workspace's subscription is downgraded to free tier
4859
4941
  effectiveRole: DTOWorkspaceRole
4860
4942
  });
4861
- var DTOUserWorkspaceMembershipsResponse = z177.object({
4862
- membership: z177.array(DTOUserWorkspaceMembership)
4943
+ var DTOUserWorkspaceMembershipsResponse = z181.object({
4944
+ membership: z181.array(DTOUserWorkspaceMembership)
4863
4945
  });
4864
4946
 
4865
4947
  // src/yjs/design-system-content/documentation-hierarchy.ts
4866
- import { z as z178 } from "zod";
4867
- var DocumentationHierarchySettings = z178.object({
4868
- routingVersion: z178.string()
4948
+ import { z as z182 } from "zod";
4949
+ var DocumentationHierarchySettings = z182.object({
4950
+ routingVersion: z182.string()
4869
4951
  });
4870
4952
  function documentationHierarchyToYjs(doc, transaction) {
4871
4953
  doc.transact((trx) => {
@@ -4936,13 +5018,13 @@ function getInternalSettingsYMap(doc) {
4936
5018
  }
4937
5019
 
4938
5020
  // src/yjs/design-system-content/item-configuration.ts
4939
- import { z as z179 } from "zod";
4940
- var DTODocumentationPageRoomHeaderData = z179.object({
4941
- title: z179.string(),
5021
+ import { z as z183 } from "zod";
5022
+ var DTODocumentationPageRoomHeaderData = z183.object({
5023
+ title: z183.string(),
4942
5024
  configuration: DTODocumentationItemConfigurationV2
4943
5025
  });
4944
- var DTODocumentationPageRoomHeaderDataUpdate = z179.object({
4945
- title: z179.string().optional(),
5026
+ var DTODocumentationPageRoomHeaderDataUpdate = z183.object({
5027
+ title: z183.string().optional(),
4946
5028
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
4947
5029
  });
4948
5030
  function itemConfigurationToYjs(yDoc, item) {
@@ -4993,7 +5075,7 @@ function yjsToItemConfiguration(yDoc) {
4993
5075
  header: rawHeader
4994
5076
  };
4995
5077
  return {
4996
- title: z179.string().parse(title),
5078
+ title: z183.string().parse(title),
4997
5079
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
4998
5080
  };
4999
5081
  }
@@ -5003,9 +5085,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
5003
5085
  var PageSectionEditorModel = PageSectionEditorModelV2;
5004
5086
 
5005
5087
  // src/yjs/docs-editor/model/page.ts
5006
- import { z as z180 } from "zod";
5007
- var DocumentationPageEditorModel = z180.object({
5008
- blocks: z180.array(PageBlockEditorModel.or(PageSectionEditorModel))
5088
+ import { z as z184 } from "zod";
5089
+ var DocumentationPageEditorModel = z184.object({
5090
+ blocks: z184.array(PageBlockEditorModel.or(PageSectionEditorModel))
5009
5091
  });
5010
5092
 
5011
5093
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -5755,6 +5837,9 @@ var BlockDefinitionUtils = {
5755
5837
 
5756
5838
  // src/yjs/docs-editor/list-tree-builder.ts
5757
5839
  var ListTreeBuilder = class {
5840
+ constructor() {
5841
+ __publicField(this, "rootNode");
5842
+ }
5758
5843
  addWithProperty(block, multiRichTextProperty) {
5759
5844
  const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
5760
5845
  return this.add(block, multiRichTextProperty.id, parsedOptions?.multiRichTextStyle || "OL");
@@ -7974,7 +8059,7 @@ var blocks = [
7974
8059
 
7975
8060
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
7976
8061
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
7977
- import { z as z181 } from "zod";
8062
+ import { z as z185 } from "zod";
7978
8063
  function yDocToPage(yDoc, definitions) {
7979
8064
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
7980
8065
  }
@@ -8017,7 +8102,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
8017
8102
  return null;
8018
8103
  return {
8019
8104
  id,
8020
- title: getProsemirrorAttribute(prosemirrorNode, "title", z181.string()) ?? "",
8105
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z185.string()) ?? "",
8021
8106
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
8022
8107
  };
8023
8108
  }
@@ -8052,7 +8137,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
8052
8137
  });
8053
8138
  }
8054
8139
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
8055
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z181.string());
8140
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z185.string());
8056
8141
  if (!definitionId) {
8057
8142
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
8058
8143
  return [];
@@ -8094,7 +8179,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
8094
8179
  if (!id)
8095
8180
  return null;
8096
8181
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8097
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z181.string().optional()));
8182
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z185.string().optional()));
8098
8183
  return {
8099
8184
  // TODO Artem: indent
8100
8185
  id,
@@ -8221,10 +8306,10 @@ function parseRichTextAttribute(mark) {
8221
8306
  return null;
8222
8307
  }
8223
8308
  function parseProsemirrorLink(mark) {
8224
- const href = getProsemirrorAttribute(mark, "href", z181.string().optional());
8309
+ const href = getProsemirrorAttribute(mark, "href", z185.string().optional());
8225
8310
  if (!href)
8226
8311
  return null;
8227
- const target = getProsemirrorAttribute(mark, "target", z181.string().optional());
8312
+ const target = getProsemirrorAttribute(mark, "target", z185.string().optional());
8228
8313
  const openInNewTab = target === "_blank";
8229
8314
  if (href.startsWith("@")) {
8230
8315
  return {
@@ -8247,7 +8332,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
8247
8332
  if (!id)
8248
8333
  return null;
8249
8334
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8250
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z181.boolean().optional()) !== false;
8335
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z185.boolean().optional()) !== false;
8251
8336
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
8252
8337
  if (!tableChild) {
8253
8338
  return emptyTable(id, variantId, 0);
@@ -8294,9 +8379,9 @@ function parseAsTableCell(prosemirrorNode) {
8294
8379
  const id = getProsemirrorBlockId(prosemirrorNode);
8295
8380
  if (!id)
8296
8381
  return null;
8297
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z181.string().optional());
8382
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z185.string().optional());
8298
8383
  let columnWidth;
8299
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z181.array(z181.number()).optional());
8384
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z185.array(z185.number()).optional());
8300
8385
  if (columnWidthArray) {
8301
8386
  columnWidth = columnWidthArray[0];
8302
8387
  }
@@ -8334,7 +8419,7 @@ function parseAsTableNode(prosemirrorNode) {
8334
8419
  value: parseRichText(prosemirrorNode.content ?? [])
8335
8420
  };
8336
8421
  case "image":
8337
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z181.string());
8422
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z185.string());
8338
8423
  if (!items)
8339
8424
  return null;
8340
8425
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -8439,7 +8524,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
8439
8524
  };
8440
8525
  }
8441
8526
  function parseBlockItems(prosemirrorNode, definition) {
8442
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z181.string());
8527
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z185.string());
8443
8528
  if (!itemsString)
8444
8529
  return null;
8445
8530
  const itemsJson = JSON.parse(itemsString);
@@ -8451,18 +8536,18 @@ function parseBlockItems(prosemirrorNode, definition) {
8451
8536
  }
8452
8537
  function parseAppearance(prosemirrorNode) {
8453
8538
  let appearance = {};
8454
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z181.string().optional());
8539
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z185.string().optional());
8455
8540
  if (rawAppearanceString) {
8456
8541
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
8457
8542
  if (parsedAppearance.success) {
8458
8543
  appearance = parsedAppearance.data;
8459
8544
  }
8460
8545
  }
8461
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z181.number().optional());
8546
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z185.number().optional());
8462
8547
  if (columns) {
8463
8548
  appearance.numberOfColumns = columns;
8464
8549
  }
8465
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z181.string().optional());
8550
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z185.string().optional());
8466
8551
  if (backgroundColor) {
8467
8552
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
8468
8553
  if (parsedColor.success) {
@@ -8553,13 +8638,13 @@ function valueSchemaForPropertyType(type) {
8553
8638
  }
8554
8639
  }
8555
8640
  function getProsemirrorBlockId(prosemirrorNode) {
8556
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z181.string());
8641
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z185.string());
8557
8642
  if (!id)
8558
8643
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
8559
8644
  return id;
8560
8645
  }
8561
8646
  function getProsemirrorBlockVariantId(prosemirrorNode) {
8562
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z181.string()));
8647
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z185.string()));
8563
8648
  }
8564
8649
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
8565
8650
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -8603,6 +8688,7 @@ export {
8603
8688
  DTODesignSystemVersionCreationResponse,
8604
8689
  DTODesignSystemVersionGetResponse,
8605
8690
  DTODesignSystemVersionJobStatusResponse,
8691
+ DTODesignSystemVersionJobsResponse,
8606
8692
  DTODesignSystemVersionsListResponse,
8607
8693
  DTODocumentationGroupCreateActionInputV2,
8608
8694
  DTODocumentationGroupCreateActionOutputV2,
@@ -8738,7 +8824,7 @@ export {
8738
8824
  prosemirrorNodesToBlocks,
8739
8825
  serializeAsCustomBlock,
8740
8826
  shallowProsemirrorNodeToBlock,
8741
- validateSemver,
8827
+ validateDesignSystemVersion,
8742
8828
  validateSsoPayload,
8743
8829
  yDocToPage,
8744
8830
  yXmlFragmentToPage,