@supernova-studio/client 0.46.1 → 0.46.4

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