@supernova-studio/model 1.4.3 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +432 -308
- package/dist/index.d.ts +432 -308
- package/dist/index.js +32 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +734 -704
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -289,7 +289,7 @@ var CustomDomain = z14.object({
|
|
|
289
289
|
});
|
|
290
290
|
|
|
291
291
|
// src/data-dumps/code-integration-dump.ts
|
|
292
|
-
import { z as
|
|
292
|
+
import { z as z154 } from "zod";
|
|
293
293
|
|
|
294
294
|
// src/export/exporter.ts
|
|
295
295
|
import { z as z18 } from "zod";
|
|
@@ -457,10 +457,10 @@ var Exporter = z18.object({
|
|
|
457
457
|
});
|
|
458
458
|
|
|
459
459
|
// src/export/pipeline.ts
|
|
460
|
-
import { z as
|
|
460
|
+
import { z as z153 } from "zod";
|
|
461
461
|
|
|
462
462
|
// src/export/export-destinations.ts
|
|
463
|
-
import { z as
|
|
463
|
+
import { z as z152 } from "zod";
|
|
464
464
|
|
|
465
465
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
466
466
|
import { z as z19 } from "zod";
|
|
@@ -2566,7 +2566,8 @@ var PageBlockItemFigmaComponentValue = z46.object({
|
|
|
2566
2566
|
entityId: z46.string(),
|
|
2567
2567
|
entityType: z46.enum(["FigmaComponent"]),
|
|
2568
2568
|
entityMeta: z46.object({
|
|
2569
|
-
selectedComponentProperties: z46.string().array().optional()
|
|
2569
|
+
selectedComponentProperties: z46.string().array().optional(),
|
|
2570
|
+
selectedComponentVariants: z46.record(z46.string().array()).optional()
|
|
2570
2571
|
}).optional()
|
|
2571
2572
|
})
|
|
2572
2573
|
).default([])
|
|
@@ -4326,122 +4327,148 @@ var FigmaNodeRendererPayload = z119.object({
|
|
|
4326
4327
|
figmaNodePersistentIds: z119.string().array()
|
|
4327
4328
|
});
|
|
4328
4329
|
|
|
4330
|
+
// src/dsm/figma-node-structures/structure-data.ts
|
|
4331
|
+
import { z as z120 } from "zod";
|
|
4332
|
+
var FigmaNodeStructureDataV2 = z120.object({
|
|
4333
|
+
rootNode: FigmaFileStructureNodeImportModel,
|
|
4334
|
+
assetsInFile: z120.object({
|
|
4335
|
+
components: z120.number(),
|
|
4336
|
+
componentSets: z120.number(),
|
|
4337
|
+
frames: z120.number()
|
|
4338
|
+
})
|
|
4339
|
+
});
|
|
4340
|
+
|
|
4341
|
+
// src/dsm/figma-node-structures/structure.ts
|
|
4342
|
+
import { z as z121 } from "zod";
|
|
4343
|
+
var FigmaNodeStructureStateV2 = z121.enum(["InProgress", "Success", "Failed"]);
|
|
4344
|
+
var FigmaNodeStructureV2 = z121.object({
|
|
4345
|
+
id: z121.string(),
|
|
4346
|
+
designSystemId: z121.string(),
|
|
4347
|
+
sourceId: z121.string(),
|
|
4348
|
+
storagePath: z121.string().optional(),
|
|
4349
|
+
createdAt: z121.coerce.date(),
|
|
4350
|
+
updatedAt: z121.coerce.date(),
|
|
4351
|
+
importState: FigmaNodeStructureStateV2,
|
|
4352
|
+
// TODO Artem: remove after migration
|
|
4353
|
+
isFromLegacyStorage: z121.boolean()
|
|
4354
|
+
});
|
|
4355
|
+
|
|
4329
4356
|
// src/dsm/membership/design-system-membership.ts
|
|
4330
|
-
import { z as
|
|
4357
|
+
import { z as z142 } from "zod";
|
|
4331
4358
|
|
|
4332
4359
|
// src/workspace/npm-registry-settings.ts
|
|
4333
|
-
import { z as
|
|
4334
|
-
var NpmRegistryAuthType =
|
|
4335
|
-
var NpmRegistryType =
|
|
4336
|
-
var NpmRegistryBasicAuthConfig =
|
|
4337
|
-
authType:
|
|
4338
|
-
username:
|
|
4339
|
-
password:
|
|
4340
|
-
});
|
|
4341
|
-
var NpmRegistryBearerAuthConfig =
|
|
4342
|
-
authType:
|
|
4343
|
-
accessToken:
|
|
4344
|
-
});
|
|
4345
|
-
var NpmRegistryNoAuthConfig =
|
|
4346
|
-
authType:
|
|
4347
|
-
});
|
|
4348
|
-
var NpmRegistrCustomAuthConfig =
|
|
4349
|
-
authType:
|
|
4350
|
-
authHeaderName:
|
|
4351
|
-
authHeaderValue:
|
|
4352
|
-
});
|
|
4353
|
-
var NpmRegistryAuthConfig =
|
|
4360
|
+
import { z as z122 } from "zod";
|
|
4361
|
+
var NpmRegistryAuthType = z122.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4362
|
+
var NpmRegistryType = z122.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4363
|
+
var NpmRegistryBasicAuthConfig = z122.object({
|
|
4364
|
+
authType: z122.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4365
|
+
username: z122.string(),
|
|
4366
|
+
password: z122.string()
|
|
4367
|
+
});
|
|
4368
|
+
var NpmRegistryBearerAuthConfig = z122.object({
|
|
4369
|
+
authType: z122.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4370
|
+
accessToken: z122.string()
|
|
4371
|
+
});
|
|
4372
|
+
var NpmRegistryNoAuthConfig = z122.object({
|
|
4373
|
+
authType: z122.literal(NpmRegistryAuthType.Enum.None)
|
|
4374
|
+
});
|
|
4375
|
+
var NpmRegistrCustomAuthConfig = z122.object({
|
|
4376
|
+
authType: z122.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4377
|
+
authHeaderName: z122.string(),
|
|
4378
|
+
authHeaderValue: z122.string()
|
|
4379
|
+
});
|
|
4380
|
+
var NpmRegistryAuthConfig = z122.discriminatedUnion("authType", [
|
|
4354
4381
|
NpmRegistryBasicAuthConfig,
|
|
4355
4382
|
NpmRegistryBearerAuthConfig,
|
|
4356
4383
|
NpmRegistryNoAuthConfig,
|
|
4357
4384
|
NpmRegistrCustomAuthConfig
|
|
4358
4385
|
]);
|
|
4359
|
-
var NpmRegistryConfigBase =
|
|
4386
|
+
var NpmRegistryConfigBase = z122.object({
|
|
4360
4387
|
registryType: NpmRegistryType,
|
|
4361
|
-
enabledScopes:
|
|
4362
|
-
customRegistryUrl:
|
|
4363
|
-
bypassProxy:
|
|
4364
|
-
npmProxyRegistryConfigId:
|
|
4365
|
-
npmProxyVersion:
|
|
4388
|
+
enabledScopes: z122.array(z122.string()),
|
|
4389
|
+
customRegistryUrl: z122.string().optional(),
|
|
4390
|
+
bypassProxy: z122.boolean().default(false),
|
|
4391
|
+
npmProxyRegistryConfigId: z122.string().optional(),
|
|
4392
|
+
npmProxyVersion: z122.number().optional()
|
|
4366
4393
|
});
|
|
4367
4394
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4368
4395
|
|
|
4369
4396
|
// src/workspace/sso-provider.ts
|
|
4370
|
-
import { z as
|
|
4371
|
-
var SsoProvider =
|
|
4372
|
-
providerId:
|
|
4373
|
-
defaultAutoInviteValue:
|
|
4374
|
-
autoInviteDomains:
|
|
4375
|
-
skipDocsSupernovaLogin:
|
|
4376
|
-
areInvitesDisabled:
|
|
4377
|
-
isTestMode:
|
|
4378
|
-
emailDomains:
|
|
4379
|
-
metadataXml:
|
|
4397
|
+
import { z as z123 } from "zod";
|
|
4398
|
+
var SsoProvider = z123.object({
|
|
4399
|
+
providerId: z123.string(),
|
|
4400
|
+
defaultAutoInviteValue: z123.boolean(),
|
|
4401
|
+
autoInviteDomains: z123.record(z123.string(), z123.boolean()),
|
|
4402
|
+
skipDocsSupernovaLogin: z123.boolean(),
|
|
4403
|
+
areInvitesDisabled: z123.boolean(),
|
|
4404
|
+
isTestMode: z123.boolean(),
|
|
4405
|
+
emailDomains: z123.array(z123.string()),
|
|
4406
|
+
metadataXml: z123.string().nullish()
|
|
4380
4407
|
});
|
|
4381
4408
|
|
|
4382
4409
|
// src/workspace/user-invite.ts
|
|
4383
|
-
import { z as
|
|
4410
|
+
import { z as z125 } from "zod";
|
|
4384
4411
|
|
|
4385
4412
|
// src/workspace/workspace-role.ts
|
|
4386
|
-
import { z as
|
|
4387
|
-
var WorkspaceRoleSchema =
|
|
4413
|
+
import { z as z124 } from "zod";
|
|
4414
|
+
var WorkspaceRoleSchema = z124.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4388
4415
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4389
4416
|
|
|
4390
4417
|
// src/workspace/user-invite.ts
|
|
4391
4418
|
var MAX_MEMBERS_COUNT = 100;
|
|
4392
|
-
var UserInvite =
|
|
4393
|
-
email:
|
|
4419
|
+
var UserInvite = z125.object({
|
|
4420
|
+
email: z125.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4394
4421
|
role: WorkspaceRoleSchema
|
|
4395
4422
|
});
|
|
4396
|
-
var UserInvites =
|
|
4423
|
+
var UserInvites = z125.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4397
4424
|
|
|
4398
4425
|
// src/workspace/workspace-configuration.ts
|
|
4399
|
-
import { z as
|
|
4426
|
+
import { z as z127 } from "zod";
|
|
4400
4427
|
|
|
4401
4428
|
// src/workspace/workspace.ts
|
|
4402
4429
|
import IPCIDR from "ip-cidr";
|
|
4403
|
-
import { z as
|
|
4430
|
+
import { z as z126 } from "zod";
|
|
4404
4431
|
var isValidCIDR = (value) => {
|
|
4405
4432
|
return IPCIDR.isValidAddress(value);
|
|
4406
4433
|
};
|
|
4407
|
-
var WorkspaceIpWhitelistEntry =
|
|
4408
|
-
isEnabled:
|
|
4409
|
-
name:
|
|
4410
|
-
range:
|
|
4434
|
+
var WorkspaceIpWhitelistEntry = z126.object({
|
|
4435
|
+
isEnabled: z126.boolean(),
|
|
4436
|
+
name: z126.string(),
|
|
4437
|
+
range: z126.string().refine(isValidCIDR, {
|
|
4411
4438
|
message: "Invalid IP CIDR"
|
|
4412
4439
|
})
|
|
4413
4440
|
});
|
|
4414
|
-
var WorkspaceIpSettings =
|
|
4415
|
-
isEnabledForCloud:
|
|
4416
|
-
isEnabledForDocs:
|
|
4417
|
-
entries:
|
|
4441
|
+
var WorkspaceIpSettings = z126.object({
|
|
4442
|
+
isEnabledForCloud: z126.boolean(),
|
|
4443
|
+
isEnabledForDocs: z126.boolean(),
|
|
4444
|
+
entries: z126.array(WorkspaceIpWhitelistEntry)
|
|
4418
4445
|
});
|
|
4419
|
-
var WorkspaceProfile =
|
|
4420
|
-
name:
|
|
4421
|
-
handle:
|
|
4422
|
-
color:
|
|
4423
|
-
avatar: nullishToOptional(
|
|
4446
|
+
var WorkspaceProfile = z126.object({
|
|
4447
|
+
name: z126.string(),
|
|
4448
|
+
handle: z126.string(),
|
|
4449
|
+
color: z126.string(),
|
|
4450
|
+
avatar: nullishToOptional(z126.string()),
|
|
4424
4451
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4425
4452
|
});
|
|
4426
4453
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4427
4454
|
avatar: true
|
|
4428
4455
|
});
|
|
4429
|
-
var Workspace =
|
|
4430
|
-
id:
|
|
4456
|
+
var Workspace = z126.object({
|
|
4457
|
+
id: z126.string(),
|
|
4431
4458
|
profile: WorkspaceProfile,
|
|
4432
4459
|
subscription: Subscription,
|
|
4433
4460
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4434
4461
|
sso: nullishToOptional(SsoProvider),
|
|
4435
4462
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4436
4463
|
});
|
|
4437
|
-
var WorkspaceWithDesignSystems =
|
|
4464
|
+
var WorkspaceWithDesignSystems = z126.object({
|
|
4438
4465
|
workspace: Workspace,
|
|
4439
|
-
designSystems:
|
|
4466
|
+
designSystems: z126.array(DesignSystem)
|
|
4440
4467
|
});
|
|
4441
4468
|
|
|
4442
4469
|
// src/workspace/workspace-configuration.ts
|
|
4443
|
-
var WorkspaceConfigurationUpdate =
|
|
4444
|
-
id:
|
|
4470
|
+
var WorkspaceConfigurationUpdate = z127.object({
|
|
4471
|
+
id: z127.string(),
|
|
4445
4472
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4446
4473
|
sso: SsoProvider.optional(),
|
|
4447
4474
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -4449,59 +4476,59 @@ var WorkspaceConfigurationUpdate = z125.object({
|
|
|
4449
4476
|
});
|
|
4450
4477
|
|
|
4451
4478
|
// src/workspace/workspace-context.ts
|
|
4452
|
-
import { z as
|
|
4453
|
-
var WorkspaceContext =
|
|
4454
|
-
workspaceId:
|
|
4479
|
+
import { z as z128 } from "zod";
|
|
4480
|
+
var WorkspaceContext = z128.object({
|
|
4481
|
+
workspaceId: z128.string(),
|
|
4455
4482
|
product: ProductCodeSchema,
|
|
4456
4483
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4457
|
-
publicDesignSystem:
|
|
4484
|
+
publicDesignSystem: z128.boolean().optional()
|
|
4458
4485
|
});
|
|
4459
4486
|
|
|
4460
4487
|
// src/workspace/workspace-create.ts
|
|
4461
|
-
import { z as
|
|
4488
|
+
import { z as z129 } from "zod";
|
|
4462
4489
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4463
4490
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4464
4491
|
var HANDLE_MIN_LENGTH = 2;
|
|
4465
4492
|
var HANDLE_MAX_LENGTH = 64;
|
|
4466
|
-
var CreateWorkspaceInput =
|
|
4467
|
-
name:
|
|
4468
|
-
handle:
|
|
4493
|
+
var CreateWorkspaceInput = z129.object({
|
|
4494
|
+
name: z129.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4495
|
+
handle: z129.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
4469
4496
|
});
|
|
4470
4497
|
|
|
4471
4498
|
// src/workspace/workspace-invitations.ts
|
|
4472
|
-
import { z as
|
|
4473
|
-
var WorkspaceInvitation =
|
|
4474
|
-
id:
|
|
4475
|
-
email:
|
|
4476
|
-
createdAt:
|
|
4477
|
-
resentAt:
|
|
4478
|
-
role:
|
|
4479
|
-
workspaceId:
|
|
4480
|
-
invitedBy:
|
|
4499
|
+
import { z as z130 } from "zod";
|
|
4500
|
+
var WorkspaceInvitation = z130.object({
|
|
4501
|
+
id: z130.string(),
|
|
4502
|
+
email: z130.string().email(),
|
|
4503
|
+
createdAt: z130.coerce.date(),
|
|
4504
|
+
resentAt: z130.coerce.date().nullish(),
|
|
4505
|
+
role: z130.nativeEnum(WorkspaceRole),
|
|
4506
|
+
workspaceId: z130.string(),
|
|
4507
|
+
invitedBy: z130.string()
|
|
4481
4508
|
});
|
|
4482
4509
|
|
|
4483
4510
|
// src/workspace/workspace-membership.ts
|
|
4484
|
-
import { z as
|
|
4511
|
+
import { z as z139 } from "zod";
|
|
4485
4512
|
|
|
4486
4513
|
// src/users/linked-integrations.ts
|
|
4487
|
-
import { z as
|
|
4488
|
-
var IntegrationAuthType =
|
|
4489
|
-
var ExternalServiceType =
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4514
|
+
import { z as z131 } from "zod";
|
|
4515
|
+
var IntegrationAuthType = z131.union([z131.literal("OAuth2"), z131.literal("PAT")]);
|
|
4516
|
+
var ExternalServiceType = z131.union([
|
|
4517
|
+
z131.literal("figma"),
|
|
4518
|
+
z131.literal("github"),
|
|
4519
|
+
z131.literal("azure"),
|
|
4520
|
+
z131.literal("gitlab"),
|
|
4521
|
+
z131.literal("bitbucket")
|
|
4495
4522
|
]);
|
|
4496
|
-
var IntegrationUserInfo =
|
|
4497
|
-
id:
|
|
4498
|
-
handle:
|
|
4499
|
-
avatarUrl:
|
|
4500
|
-
email:
|
|
4523
|
+
var IntegrationUserInfo = z131.object({
|
|
4524
|
+
id: z131.string(),
|
|
4525
|
+
handle: z131.string().optional(),
|
|
4526
|
+
avatarUrl: z131.string().optional(),
|
|
4527
|
+
email: z131.string().optional(),
|
|
4501
4528
|
authType: IntegrationAuthType.optional(),
|
|
4502
|
-
customUrl:
|
|
4529
|
+
customUrl: z131.string().optional()
|
|
4503
4530
|
});
|
|
4504
|
-
var UserLinkedIntegrations =
|
|
4531
|
+
var UserLinkedIntegrations = z131.object({
|
|
4505
4532
|
figma: IntegrationUserInfo.optional(),
|
|
4506
4533
|
github: IntegrationUserInfo.array().optional(),
|
|
4507
4534
|
azure: IntegrationUserInfo.array().optional(),
|
|
@@ -4510,38 +4537,38 @@ var UserLinkedIntegrations = z129.object({
|
|
|
4510
4537
|
});
|
|
4511
4538
|
|
|
4512
4539
|
// src/users/user-analytics-cleanup-schedule.ts
|
|
4513
|
-
import { z as
|
|
4514
|
-
var UserAnalyticsCleanupSchedule =
|
|
4515
|
-
userId:
|
|
4516
|
-
createdAt:
|
|
4517
|
-
deleteAt:
|
|
4540
|
+
import { z as z132 } from "zod";
|
|
4541
|
+
var UserAnalyticsCleanupSchedule = z132.object({
|
|
4542
|
+
userId: z132.string(),
|
|
4543
|
+
createdAt: z132.coerce.date(),
|
|
4544
|
+
deleteAt: z132.coerce.date()
|
|
4518
4545
|
});
|
|
4519
4546
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4520
4547
|
createdAt: true
|
|
4521
4548
|
});
|
|
4522
4549
|
|
|
4523
4550
|
// src/users/user-identity.ts
|
|
4524
|
-
import { z as
|
|
4525
|
-
var UserIdentity =
|
|
4526
|
-
id:
|
|
4527
|
-
userId:
|
|
4551
|
+
import { z as z133 } from "zod";
|
|
4552
|
+
var UserIdentity = z133.object({
|
|
4553
|
+
id: z133.string(),
|
|
4554
|
+
userId: z133.string()
|
|
4528
4555
|
});
|
|
4529
4556
|
|
|
4530
4557
|
// src/users/user-minified.ts
|
|
4531
|
-
import { z as
|
|
4532
|
-
var UserMinified =
|
|
4533
|
-
id:
|
|
4534
|
-
name:
|
|
4535
|
-
email:
|
|
4536
|
-
avatar:
|
|
4558
|
+
import { z as z134 } from "zod";
|
|
4559
|
+
var UserMinified = z134.object({
|
|
4560
|
+
id: z134.string(),
|
|
4561
|
+
name: z134.string(),
|
|
4562
|
+
email: z134.string(),
|
|
4563
|
+
avatar: z134.string().optional()
|
|
4537
4564
|
});
|
|
4538
4565
|
|
|
4539
4566
|
// src/users/user-notification-settings.ts
|
|
4540
|
-
import { z as
|
|
4541
|
-
var LiveblocksNotificationSettings =
|
|
4542
|
-
sendCommentNotificationEmails:
|
|
4567
|
+
import { z as z135 } from "zod";
|
|
4568
|
+
var LiveblocksNotificationSettings = z135.object({
|
|
4569
|
+
sendCommentNotificationEmails: z135.boolean()
|
|
4543
4570
|
});
|
|
4544
|
-
var UserNotificationSettings =
|
|
4571
|
+
var UserNotificationSettings = z135.object({
|
|
4545
4572
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4546
4573
|
});
|
|
4547
4574
|
var defaultNotificationSettings = {
|
|
@@ -4551,11 +4578,11 @@ var defaultNotificationSettings = {
|
|
|
4551
4578
|
};
|
|
4552
4579
|
|
|
4553
4580
|
// src/users/user-profile.ts
|
|
4554
|
-
import { z as
|
|
4555
|
-
var UserOnboardingDepartment =
|
|
4556
|
-
var UserOnboardingJobLevel =
|
|
4557
|
-
var UserTheme =
|
|
4558
|
-
preset:
|
|
4581
|
+
import { z as z136 } from "zod";
|
|
4582
|
+
var UserOnboardingDepartment = z136.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4583
|
+
var UserOnboardingJobLevel = z136.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4584
|
+
var UserTheme = z136.object({
|
|
4585
|
+
preset: z136.enum([
|
|
4559
4586
|
"Custom",
|
|
4560
4587
|
"Default",
|
|
4561
4588
|
"HighContrast",
|
|
@@ -4566,32 +4593,32 @@ var UserTheme = z134.object({
|
|
|
4566
4593
|
"SystemPreference",
|
|
4567
4594
|
"Sepia"
|
|
4568
4595
|
]).optional(),
|
|
4569
|
-
backgroundColor:
|
|
4570
|
-
accentColor:
|
|
4571
|
-
contrast:
|
|
4572
|
-
isSecondaryEnabled:
|
|
4573
|
-
secondaryBackgroundColor:
|
|
4574
|
-
secondaryContrast:
|
|
4575
|
-
isEditorWhite:
|
|
4576
|
-
});
|
|
4577
|
-
var UserOnboarding =
|
|
4578
|
-
companyName:
|
|
4579
|
-
numberOfPeopleInOrg:
|
|
4580
|
-
numberOfPeopleInDesignTeam:
|
|
4596
|
+
backgroundColor: z136.string().optional(),
|
|
4597
|
+
accentColor: z136.string().optional(),
|
|
4598
|
+
contrast: z136.number().min(16).max(100).optional(),
|
|
4599
|
+
isSecondaryEnabled: z136.boolean().optional(),
|
|
4600
|
+
secondaryBackgroundColor: z136.string().optional(),
|
|
4601
|
+
secondaryContrast: z136.number().min(16).max(100).optional(),
|
|
4602
|
+
isEditorWhite: z136.boolean().optional()
|
|
4603
|
+
});
|
|
4604
|
+
var UserOnboarding = z136.object({
|
|
4605
|
+
companyName: z136.string().optional(),
|
|
4606
|
+
numberOfPeopleInOrg: z136.string().optional(),
|
|
4607
|
+
numberOfPeopleInDesignTeam: z136.string().optional(),
|
|
4581
4608
|
department: UserOnboardingDepartment.optional(),
|
|
4582
|
-
jobTitle:
|
|
4583
|
-
phase:
|
|
4609
|
+
jobTitle: z136.string().optional(),
|
|
4610
|
+
phase: z136.string().optional(),
|
|
4584
4611
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4585
|
-
designSystemName:
|
|
4586
|
-
defaultDestination:
|
|
4587
|
-
figmaUrl:
|
|
4588
|
-
isPageDraftOnboardingFinished:
|
|
4589
|
-
isApprovalsOnboardingFinished:
|
|
4590
|
-
});
|
|
4591
|
-
var UserProfile =
|
|
4592
|
-
name:
|
|
4593
|
-
avatar:
|
|
4594
|
-
nickname:
|
|
4612
|
+
designSystemName: z136.string().optional(),
|
|
4613
|
+
defaultDestination: z136.string().optional(),
|
|
4614
|
+
figmaUrl: z136.string().optional(),
|
|
4615
|
+
isPageDraftOnboardingFinished: z136.boolean().optional(),
|
|
4616
|
+
isApprovalsOnboardingFinished: z136.boolean().optional()
|
|
4617
|
+
});
|
|
4618
|
+
var UserProfile = z136.object({
|
|
4619
|
+
name: z136.string(),
|
|
4620
|
+
avatar: z136.string().optional(),
|
|
4621
|
+
nickname: z136.string().optional(),
|
|
4595
4622
|
onboarding: UserOnboarding.optional(),
|
|
4596
4623
|
theme: UserTheme.optional()
|
|
4597
4624
|
});
|
|
@@ -4600,50 +4627,50 @@ var UserProfileUpdate = UserProfile.partial().omit({
|
|
|
4600
4627
|
});
|
|
4601
4628
|
|
|
4602
4629
|
// src/users/user-test.ts
|
|
4603
|
-
import { z as
|
|
4604
|
-
var UserTest =
|
|
4605
|
-
id:
|
|
4606
|
-
email:
|
|
4630
|
+
import { z as z137 } from "zod";
|
|
4631
|
+
var UserTest = z137.object({
|
|
4632
|
+
id: z137.string(),
|
|
4633
|
+
email: z137.string()
|
|
4607
4634
|
});
|
|
4608
4635
|
|
|
4609
4636
|
// src/users/user.ts
|
|
4610
|
-
import { z as
|
|
4611
|
-
var UserSource =
|
|
4612
|
-
var User =
|
|
4613
|
-
id:
|
|
4614
|
-
email:
|
|
4615
|
-
emailVerified:
|
|
4616
|
-
createdAt:
|
|
4617
|
-
trialExpiresAt:
|
|
4637
|
+
import { z as z138 } from "zod";
|
|
4638
|
+
var UserSource = z138.enum(["SignUp", "Invite", "SSO"]);
|
|
4639
|
+
var User = z138.object({
|
|
4640
|
+
id: z138.string(),
|
|
4641
|
+
email: z138.string(),
|
|
4642
|
+
emailVerified: z138.boolean(),
|
|
4643
|
+
createdAt: z138.coerce.date(),
|
|
4644
|
+
trialExpiresAt: z138.coerce.date().optional(),
|
|
4618
4645
|
profile: UserProfile,
|
|
4619
4646
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4620
|
-
loggedOutAt:
|
|
4621
|
-
isProtected:
|
|
4647
|
+
loggedOutAt: z138.coerce.date().optional(),
|
|
4648
|
+
isProtected: z138.boolean(),
|
|
4622
4649
|
source: UserSource.optional()
|
|
4623
4650
|
});
|
|
4624
4651
|
|
|
4625
4652
|
// src/workspace/workspace-membership.ts
|
|
4626
|
-
var WorkspaceMembership =
|
|
4627
|
-
id:
|
|
4628
|
-
userId:
|
|
4629
|
-
workspaceId:
|
|
4630
|
-
workspaceRole:
|
|
4653
|
+
var WorkspaceMembership = z139.object({
|
|
4654
|
+
id: z139.string(),
|
|
4655
|
+
userId: z139.string(),
|
|
4656
|
+
workspaceId: z139.string(),
|
|
4657
|
+
workspaceRole: z139.nativeEnum(WorkspaceRole),
|
|
4631
4658
|
notificationSettings: UserNotificationSettings,
|
|
4632
|
-
isPrimaryOwner:
|
|
4633
|
-
});
|
|
4634
|
-
var UpdateMembershipRolesInput =
|
|
4635
|
-
members:
|
|
4636
|
-
|
|
4637
|
-
userId:
|
|
4638
|
-
role:
|
|
4639
|
-
isPrimaryOwner:
|
|
4659
|
+
isPrimaryOwner: z139.boolean().nullish()
|
|
4660
|
+
});
|
|
4661
|
+
var UpdateMembershipRolesInput = z139.object({
|
|
4662
|
+
members: z139.array(
|
|
4663
|
+
z139.object({
|
|
4664
|
+
userId: z139.string(),
|
|
4665
|
+
role: z139.nativeEnum(WorkspaceRole),
|
|
4666
|
+
isPrimaryOwner: z139.boolean().optional()
|
|
4640
4667
|
})
|
|
4641
4668
|
)
|
|
4642
4669
|
});
|
|
4643
4670
|
|
|
4644
4671
|
// src/dsm/membership/ds-role.ts
|
|
4645
|
-
import { z as
|
|
4646
|
-
var DesignSystemRole =
|
|
4672
|
+
import { z as z140 } from "zod";
|
|
4673
|
+
var DesignSystemRole = z140.enum([
|
|
4647
4674
|
WorkspaceRole.Admin,
|
|
4648
4675
|
WorkspaceRole.Contributor,
|
|
4649
4676
|
WorkspaceRole.Creator,
|
|
@@ -4667,46 +4694,46 @@ function workspaceRoleToDesignSystemRole(role) {
|
|
|
4667
4694
|
}
|
|
4668
4695
|
|
|
4669
4696
|
// src/dsm/membership/invitations.ts
|
|
4670
|
-
import { z as
|
|
4671
|
-
var DesignSystemInvitation =
|
|
4672
|
-
id:
|
|
4673
|
-
designSystemId:
|
|
4674
|
-
workspaceInvitationId:
|
|
4697
|
+
import { z as z141 } from "zod";
|
|
4698
|
+
var DesignSystemInvitation = z141.object({
|
|
4699
|
+
id: z141.string(),
|
|
4700
|
+
designSystemId: z141.string(),
|
|
4701
|
+
workspaceInvitationId: z141.string(),
|
|
4675
4702
|
designSystemRole: DesignSystemRole.optional(),
|
|
4676
4703
|
workspaceRole: WorkspaceRoleSchema
|
|
4677
4704
|
});
|
|
4678
4705
|
|
|
4679
4706
|
// src/dsm/membership/design-system-membership.ts
|
|
4680
|
-
var DesignSystemMembership =
|
|
4681
|
-
id:
|
|
4682
|
-
userId:
|
|
4683
|
-
designSystemId:
|
|
4707
|
+
var DesignSystemMembership = z142.object({
|
|
4708
|
+
id: z142.string(),
|
|
4709
|
+
userId: z142.string(),
|
|
4710
|
+
designSystemId: z142.string(),
|
|
4684
4711
|
designSystemRole: DesignSystemRole.optional(),
|
|
4685
|
-
workspaceMembershipId:
|
|
4712
|
+
workspaceMembershipId: z142.string(),
|
|
4686
4713
|
workspaceRole: WorkspaceRoleSchema
|
|
4687
4714
|
});
|
|
4688
|
-
var DesignSystemMembers =
|
|
4715
|
+
var DesignSystemMembers = z142.object({
|
|
4689
4716
|
members: DesignSystemMembership.array(),
|
|
4690
4717
|
invitations: DesignSystemInvitation.array()
|
|
4691
4718
|
});
|
|
4692
|
-
var DesignSystemPendingMemberInvitation =
|
|
4693
|
-
inviteId:
|
|
4719
|
+
var DesignSystemPendingMemberInvitation = z142.object({
|
|
4720
|
+
inviteId: z142.string(),
|
|
4694
4721
|
/**
|
|
4695
4722
|
* Role that the user will have in the design system, undefined
|
|
4696
4723
|
* if it should be inherited from the workspace
|
|
4697
4724
|
*/
|
|
4698
4725
|
designSystemRole: DesignSystemRole.optional()
|
|
4699
4726
|
});
|
|
4700
|
-
var DesignSystemUserInvitation =
|
|
4701
|
-
userId:
|
|
4727
|
+
var DesignSystemUserInvitation = z142.object({
|
|
4728
|
+
userId: z142.string(),
|
|
4702
4729
|
/**
|
|
4703
4730
|
* Role that the user will have in the design system, undefined
|
|
4704
4731
|
* if it should be inherited from the workspace
|
|
4705
4732
|
*/
|
|
4706
4733
|
designSystemRole: DesignSystemRole.optional()
|
|
4707
4734
|
});
|
|
4708
|
-
var DesignSystemInvite =
|
|
4709
|
-
email:
|
|
4735
|
+
var DesignSystemInvite = z142.object({
|
|
4736
|
+
email: z142.string(),
|
|
4710
4737
|
workspaceRole: WorkspaceRoleSchema,
|
|
4711
4738
|
/**
|
|
4712
4739
|
* Role that the user will have in the design system, undefined
|
|
@@ -4714,282 +4741,282 @@ var DesignSystemInvite = z140.object({
|
|
|
4714
4741
|
*/
|
|
4715
4742
|
designSystemRole: DesignSystemRole.optional()
|
|
4716
4743
|
});
|
|
4717
|
-
var DesignSystemMemberUpdate =
|
|
4718
|
-
userId:
|
|
4744
|
+
var DesignSystemMemberUpdate = z142.object({
|
|
4745
|
+
userId: z142.string(),
|
|
4719
4746
|
designSystemRole: DesignSystemRole.nullable()
|
|
4720
4747
|
});
|
|
4721
|
-
var DesignSystemInviteUpdate =
|
|
4748
|
+
var DesignSystemInviteUpdate = z142.object({
|
|
4722
4749
|
/**
|
|
4723
4750
|
* Workspace invitation id
|
|
4724
4751
|
*/
|
|
4725
|
-
inviteId:
|
|
4752
|
+
inviteId: z142.string(),
|
|
4726
4753
|
designSystemRole: DesignSystemRole.nullable()
|
|
4727
4754
|
});
|
|
4728
|
-
var DesignSystemMembershipUpdates =
|
|
4755
|
+
var DesignSystemMembershipUpdates = z142.object({
|
|
4729
4756
|
usersToInvite: DesignSystemUserInvitation.array().optional(),
|
|
4730
4757
|
invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
|
|
4731
4758
|
emailsToInvite: DesignSystemInvite.array().optional(),
|
|
4732
4759
|
usersToUpdate: DesignSystemMemberUpdate.array().optional(),
|
|
4733
4760
|
invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
|
|
4734
|
-
removeUserIds:
|
|
4735
|
-
deleteInvitationIds:
|
|
4761
|
+
removeUserIds: z142.string().array().optional(),
|
|
4762
|
+
deleteInvitationIds: z142.string().array().optional()
|
|
4736
4763
|
});
|
|
4737
4764
|
|
|
4738
4765
|
// src/dsm/views/column.ts
|
|
4739
|
-
import { z as
|
|
4740
|
-
var ElementViewBaseColumnType =
|
|
4741
|
-
var ElementViewColumnType =
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4766
|
+
import { z as z143 } from "zod";
|
|
4767
|
+
var ElementViewBaseColumnType = z143.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
4768
|
+
var ElementViewColumnType = z143.union([
|
|
4769
|
+
z143.literal("BaseProperty"),
|
|
4770
|
+
z143.literal("PropertyDefinition"),
|
|
4771
|
+
z143.literal("Theme")
|
|
4745
4772
|
]);
|
|
4746
|
-
var ElementViewColumnSharedAttributes =
|
|
4747
|
-
id:
|
|
4748
|
-
persistentId:
|
|
4749
|
-
elementDataViewId:
|
|
4750
|
-
sortPosition:
|
|
4751
|
-
width:
|
|
4773
|
+
var ElementViewColumnSharedAttributes = z143.object({
|
|
4774
|
+
id: z143.string(),
|
|
4775
|
+
persistentId: z143.string(),
|
|
4776
|
+
elementDataViewId: z143.string(),
|
|
4777
|
+
sortPosition: z143.number(),
|
|
4778
|
+
width: z143.number()
|
|
4752
4779
|
});
|
|
4753
4780
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
4754
|
-
type:
|
|
4781
|
+
type: z143.literal("BaseProperty"),
|
|
4755
4782
|
basePropertyType: ElementViewBaseColumnType
|
|
4756
4783
|
});
|
|
4757
4784
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
4758
|
-
type:
|
|
4759
|
-
propertyDefinitionId:
|
|
4785
|
+
type: z143.literal("PropertyDefinition"),
|
|
4786
|
+
propertyDefinitionId: z143.string()
|
|
4760
4787
|
});
|
|
4761
4788
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
4762
|
-
type:
|
|
4763
|
-
themeId:
|
|
4789
|
+
type: z143.literal("Theme"),
|
|
4790
|
+
themeId: z143.string()
|
|
4764
4791
|
});
|
|
4765
|
-
var ElementViewColumn =
|
|
4792
|
+
var ElementViewColumn = z143.discriminatedUnion("type", [
|
|
4766
4793
|
ElementViewBasePropertyColumn,
|
|
4767
4794
|
ElementViewPropertyDefinitionColumn,
|
|
4768
4795
|
ElementViewThemeColumn
|
|
4769
4796
|
]);
|
|
4770
4797
|
|
|
4771
4798
|
// src/dsm/views/view.ts
|
|
4772
|
-
import { z as
|
|
4773
|
-
var ElementView =
|
|
4774
|
-
id:
|
|
4775
|
-
persistentId:
|
|
4776
|
-
designSystemVersionId:
|
|
4777
|
-
name:
|
|
4778
|
-
description:
|
|
4799
|
+
import { z as z144 } from "zod";
|
|
4800
|
+
var ElementView = z144.object({
|
|
4801
|
+
id: z144.string(),
|
|
4802
|
+
persistentId: z144.string(),
|
|
4803
|
+
designSystemVersionId: z144.string(),
|
|
4804
|
+
name: z144.string(),
|
|
4805
|
+
description: z144.string(),
|
|
4779
4806
|
targetElementType: ElementPropertyTargetType,
|
|
4780
|
-
isDefault:
|
|
4807
|
+
isDefault: z144.boolean()
|
|
4781
4808
|
});
|
|
4782
4809
|
|
|
4783
4810
|
// src/dsm/brand.ts
|
|
4784
|
-
import { z as
|
|
4785
|
-
var Brand =
|
|
4786
|
-
id:
|
|
4787
|
-
designSystemVersionId:
|
|
4788
|
-
persistentId:
|
|
4789
|
-
name:
|
|
4790
|
-
description:
|
|
4811
|
+
import { z as z145 } from "zod";
|
|
4812
|
+
var Brand = z145.object({
|
|
4813
|
+
id: z145.string(),
|
|
4814
|
+
designSystemVersionId: z145.string(),
|
|
4815
|
+
persistentId: z145.string(),
|
|
4816
|
+
name: z145.string(),
|
|
4817
|
+
description: z145.string()
|
|
4791
4818
|
});
|
|
4792
4819
|
|
|
4793
4820
|
// src/dsm/design-system.ts
|
|
4794
|
-
import { z as
|
|
4795
|
-
var DesignSystemAccessMode =
|
|
4796
|
-
var DesignSystemSwitcher =
|
|
4797
|
-
isEnabled:
|
|
4798
|
-
designSystemIds:
|
|
4821
|
+
import { z as z146 } from "zod";
|
|
4822
|
+
var DesignSystemAccessMode = z146.enum(["Open", "InviteOnly"]);
|
|
4823
|
+
var DesignSystemSwitcher = z146.object({
|
|
4824
|
+
isEnabled: z146.boolean(),
|
|
4825
|
+
designSystemIds: z146.array(z146.string())
|
|
4799
4826
|
});
|
|
4800
|
-
var DesignSystem =
|
|
4801
|
-
id:
|
|
4802
|
-
workspaceId:
|
|
4803
|
-
name:
|
|
4804
|
-
description:
|
|
4805
|
-
docExporterId: nullishToOptional(
|
|
4806
|
-
docSlug:
|
|
4807
|
-
docUserSlug: nullishToOptional(
|
|
4808
|
-
docSlugDeprecated:
|
|
4809
|
-
isMultibrand:
|
|
4810
|
-
docViewUrl: nullishToOptional(
|
|
4811
|
-
basePrefixes:
|
|
4827
|
+
var DesignSystem = z146.object({
|
|
4828
|
+
id: z146.string(),
|
|
4829
|
+
workspaceId: z146.string(),
|
|
4830
|
+
name: z146.string(),
|
|
4831
|
+
description: z146.string(),
|
|
4832
|
+
docExporterId: nullishToOptional(z146.string()),
|
|
4833
|
+
docSlug: z146.string(),
|
|
4834
|
+
docUserSlug: nullishToOptional(z146.string()),
|
|
4835
|
+
docSlugDeprecated: z146.string(),
|
|
4836
|
+
isMultibrand: z146.boolean(),
|
|
4837
|
+
docViewUrl: nullishToOptional(z146.string()),
|
|
4838
|
+
basePrefixes: z146.array(z146.string()),
|
|
4812
4839
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
4813
|
-
isApprovalFeatureEnabled:
|
|
4814
|
-
approvalRequiredForPublishing:
|
|
4840
|
+
isApprovalFeatureEnabled: z146.boolean(),
|
|
4841
|
+
approvalRequiredForPublishing: z146.boolean(),
|
|
4815
4842
|
accessMode: DesignSystemAccessMode,
|
|
4816
|
-
membersGenerated:
|
|
4817
|
-
createdAt:
|
|
4818
|
-
updatedAt:
|
|
4843
|
+
membersGenerated: z146.boolean(),
|
|
4844
|
+
createdAt: z146.coerce.date(),
|
|
4845
|
+
updatedAt: z146.coerce.date()
|
|
4819
4846
|
});
|
|
4820
4847
|
|
|
4821
4848
|
// src/dsm/exporter-property-values-collection.ts
|
|
4822
|
-
import { z as
|
|
4823
|
-
var ExporterPropertyImageValue =
|
|
4849
|
+
import { z as z147 } from "zod";
|
|
4850
|
+
var ExporterPropertyImageValue = z147.object({
|
|
4824
4851
|
asset: PageBlockAsset.optional(),
|
|
4825
|
-
assetId:
|
|
4826
|
-
assetUrl:
|
|
4827
|
-
});
|
|
4828
|
-
var ExporterConfigurationPropertyValue =
|
|
4829
|
-
key:
|
|
4830
|
-
value:
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4852
|
+
assetId: z147.string().optional(),
|
|
4853
|
+
assetUrl: z147.string().optional()
|
|
4854
|
+
});
|
|
4855
|
+
var ExporterConfigurationPropertyValue = z147.object({
|
|
4856
|
+
key: z147.string(),
|
|
4857
|
+
value: z147.union([
|
|
4858
|
+
z147.number(),
|
|
4859
|
+
z147.string(),
|
|
4860
|
+
z147.boolean(),
|
|
4834
4861
|
ExporterPropertyImageValue,
|
|
4835
4862
|
ColorTokenData,
|
|
4836
4863
|
TypographyTokenData
|
|
4837
4864
|
])
|
|
4838
4865
|
});
|
|
4839
|
-
var ExporterPropertyValuesCollection =
|
|
4840
|
-
id:
|
|
4841
|
-
designSystemId:
|
|
4842
|
-
exporterId:
|
|
4843
|
-
values:
|
|
4866
|
+
var ExporterPropertyValuesCollection = z147.object({
|
|
4867
|
+
id: z147.string(),
|
|
4868
|
+
designSystemId: z147.string(),
|
|
4869
|
+
exporterId: z147.string(),
|
|
4870
|
+
values: z147.array(ExporterConfigurationPropertyValue)
|
|
4844
4871
|
});
|
|
4845
4872
|
|
|
4846
4873
|
// src/dsm/published-doc-page-visits.ts
|
|
4847
|
-
import { z as
|
|
4848
|
-
var PublishedDocPageVisitsEntry =
|
|
4849
|
-
id:
|
|
4850
|
-
versionId:
|
|
4851
|
-
pagePersistentId:
|
|
4852
|
-
locale:
|
|
4853
|
-
timestamp:
|
|
4854
|
-
visits:
|
|
4874
|
+
import { z as z148 } from "zod";
|
|
4875
|
+
var PublishedDocPageVisitsEntry = z148.object({
|
|
4876
|
+
id: z148.string(),
|
|
4877
|
+
versionId: z148.string(),
|
|
4878
|
+
pagePersistentId: z148.string(),
|
|
4879
|
+
locale: z148.string().optional(),
|
|
4880
|
+
timestamp: z148.coerce.date(),
|
|
4881
|
+
visits: z148.number()
|
|
4855
4882
|
});
|
|
4856
4883
|
|
|
4857
4884
|
// src/dsm/published-doc-page.ts
|
|
4858
|
-
import { z as
|
|
4885
|
+
import { z as z149 } from "zod";
|
|
4859
4886
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4860
4887
|
function tryParseShortPersistentId(url = "/") {
|
|
4861
4888
|
const lastUrlPart = url.split("/").pop() || "";
|
|
4862
4889
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4863
4890
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4864
4891
|
}
|
|
4865
|
-
var PublishedDocPage =
|
|
4866
|
-
id:
|
|
4867
|
-
publishedDocId:
|
|
4868
|
-
pageShortPersistentId:
|
|
4869
|
-
pagePersistentId:
|
|
4870
|
-
pathV1:
|
|
4871
|
-
pathV2:
|
|
4872
|
-
storagePath:
|
|
4873
|
-
locale:
|
|
4874
|
-
isPrivate:
|
|
4875
|
-
isHidden:
|
|
4876
|
-
createdAt:
|
|
4877
|
-
updatedAt:
|
|
4892
|
+
var PublishedDocPage = z149.object({
|
|
4893
|
+
id: z149.string(),
|
|
4894
|
+
publishedDocId: z149.string(),
|
|
4895
|
+
pageShortPersistentId: z149.string(),
|
|
4896
|
+
pagePersistentId: z149.string().optional(),
|
|
4897
|
+
pathV1: z149.string(),
|
|
4898
|
+
pathV2: z149.string(),
|
|
4899
|
+
storagePath: z149.string(),
|
|
4900
|
+
locale: z149.string().optional(),
|
|
4901
|
+
isPrivate: z149.boolean(),
|
|
4902
|
+
isHidden: z149.boolean(),
|
|
4903
|
+
createdAt: z149.coerce.date(),
|
|
4904
|
+
updatedAt: z149.coerce.date()
|
|
4878
4905
|
});
|
|
4879
4906
|
|
|
4880
4907
|
// src/dsm/published-doc.ts
|
|
4881
|
-
import { z as
|
|
4908
|
+
import { z as z150 } from "zod";
|
|
4882
4909
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4883
|
-
var PublishedDocEnvironment =
|
|
4884
|
-
var PublishedDocsChecksums =
|
|
4885
|
-
var PublishedDocRoutingVersion =
|
|
4886
|
-
var PublishedDoc =
|
|
4887
|
-
id:
|
|
4888
|
-
designSystemVersionId:
|
|
4889
|
-
createdAt:
|
|
4890
|
-
updatedAt:
|
|
4891
|
-
lastPublishedAt:
|
|
4892
|
-
isDefault:
|
|
4893
|
-
isPublic:
|
|
4910
|
+
var PublishedDocEnvironment = z150.enum(publishedDocEnvironments);
|
|
4911
|
+
var PublishedDocsChecksums = z150.record(z150.string());
|
|
4912
|
+
var PublishedDocRoutingVersion = z150.enum(["1", "2"]);
|
|
4913
|
+
var PublishedDoc = z150.object({
|
|
4914
|
+
id: z150.string(),
|
|
4915
|
+
designSystemVersionId: z150.string(),
|
|
4916
|
+
createdAt: z150.coerce.date(),
|
|
4917
|
+
updatedAt: z150.coerce.date(),
|
|
4918
|
+
lastPublishedAt: z150.coerce.date(),
|
|
4919
|
+
isDefault: z150.boolean(),
|
|
4920
|
+
isPublic: z150.boolean(),
|
|
4894
4921
|
environment: PublishedDocEnvironment,
|
|
4895
4922
|
checksums: PublishedDocsChecksums,
|
|
4896
|
-
storagePath:
|
|
4897
|
-
wasMigrated:
|
|
4923
|
+
storagePath: z150.string(),
|
|
4924
|
+
wasMigrated: z150.boolean(),
|
|
4898
4925
|
routingVersion: PublishedDocRoutingVersion,
|
|
4899
|
-
usesLocalizations:
|
|
4900
|
-
wasPublishedWithLocalizations:
|
|
4901
|
-
tokenCount:
|
|
4902
|
-
assetCount:
|
|
4926
|
+
usesLocalizations: z150.boolean(),
|
|
4927
|
+
wasPublishedWithLocalizations: z150.boolean(),
|
|
4928
|
+
tokenCount: z150.number(),
|
|
4929
|
+
assetCount: z150.number()
|
|
4903
4930
|
});
|
|
4904
4931
|
|
|
4905
4932
|
// src/dsm/version.ts
|
|
4906
|
-
import { z as
|
|
4907
|
-
var DesignSystemVersion =
|
|
4908
|
-
id:
|
|
4909
|
-
version:
|
|
4910
|
-
createdAt:
|
|
4911
|
-
designSystemId:
|
|
4912
|
-
name:
|
|
4913
|
-
comment:
|
|
4914
|
-
isReadonly:
|
|
4915
|
-
changeLog:
|
|
4916
|
-
parentId:
|
|
4917
|
-
isDraftsFeatureAdopted:
|
|
4918
|
-
});
|
|
4919
|
-
var VersionCreationJobStatus =
|
|
4920
|
-
var VersionCreationJob =
|
|
4921
|
-
id:
|
|
4922
|
-
version:
|
|
4923
|
-
designSystemId:
|
|
4924
|
-
designSystemVersionId: nullishToOptional(
|
|
4933
|
+
import { z as z151 } from "zod";
|
|
4934
|
+
var DesignSystemVersion = z151.object({
|
|
4935
|
+
id: z151.string(),
|
|
4936
|
+
version: z151.string(),
|
|
4937
|
+
createdAt: z151.coerce.date(),
|
|
4938
|
+
designSystemId: z151.string(),
|
|
4939
|
+
name: z151.string(),
|
|
4940
|
+
comment: z151.string(),
|
|
4941
|
+
isReadonly: z151.boolean(),
|
|
4942
|
+
changeLog: z151.string(),
|
|
4943
|
+
parentId: z151.string().optional(),
|
|
4944
|
+
isDraftsFeatureAdopted: z151.boolean()
|
|
4945
|
+
});
|
|
4946
|
+
var VersionCreationJobStatus = z151.enum(["Success", "InProgress", "Error"]);
|
|
4947
|
+
var VersionCreationJob = z151.object({
|
|
4948
|
+
id: z151.string(),
|
|
4949
|
+
version: z151.string(),
|
|
4950
|
+
designSystemId: z151.string(),
|
|
4951
|
+
designSystemVersionId: nullishToOptional(z151.string()),
|
|
4925
4952
|
status: VersionCreationJobStatus,
|
|
4926
|
-
errorMessage: nullishToOptional(
|
|
4953
|
+
errorMessage: nullishToOptional(z151.string())
|
|
4927
4954
|
});
|
|
4928
4955
|
|
|
4929
4956
|
// src/export/export-destinations.ts
|
|
4930
4957
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
4931
4958
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
4932
|
-
var ExportJobDocumentationChanges =
|
|
4933
|
-
pagePersistentIds:
|
|
4934
|
-
groupPersistentIds:
|
|
4959
|
+
var ExportJobDocumentationChanges = z152.object({
|
|
4960
|
+
pagePersistentIds: z152.string().array(),
|
|
4961
|
+
groupPersistentIds: z152.string().array()
|
|
4935
4962
|
});
|
|
4936
|
-
var ExporterDestinationDocs =
|
|
4963
|
+
var ExporterDestinationDocs = z152.object({
|
|
4937
4964
|
environment: PublishedDocEnvironment,
|
|
4938
4965
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
4939
4966
|
});
|
|
4940
|
-
var GitCommonDestinationOptions =
|
|
4941
|
-
branch:
|
|
4942
|
-
relativePath: nullishToOptional(
|
|
4943
|
-
purgeDirectory: nullishToOptional(
|
|
4944
|
-
commitAuthorName: nullishToOptional(
|
|
4945
|
-
commitAuthorEmail: nullishToOptional(
|
|
4946
|
-
commitMessage: nullishToOptional(
|
|
4947
|
-
pullRequestTitle: nullishToOptional(
|
|
4948
|
-
pullRequestDescription: nullishToOptional(
|
|
4949
|
-
});
|
|
4950
|
-
var ExporterDestinationS3 =
|
|
4951
|
-
var ExporterDestinationGithub =
|
|
4952
|
-
credentialId:
|
|
4967
|
+
var GitCommonDestinationOptions = z152.object({
|
|
4968
|
+
branch: z152.string(),
|
|
4969
|
+
relativePath: nullishToOptional(z152.string()),
|
|
4970
|
+
purgeDirectory: nullishToOptional(z152.boolean()),
|
|
4971
|
+
commitAuthorName: nullishToOptional(z152.string()),
|
|
4972
|
+
commitAuthorEmail: nullishToOptional(z152.string()),
|
|
4973
|
+
commitMessage: nullishToOptional(z152.string()),
|
|
4974
|
+
pullRequestTitle: nullishToOptional(z152.string()),
|
|
4975
|
+
pullRequestDescription: nullishToOptional(z152.string())
|
|
4976
|
+
});
|
|
4977
|
+
var ExporterDestinationS3 = z152.object({});
|
|
4978
|
+
var ExporterDestinationGithub = z152.object({
|
|
4979
|
+
credentialId: z152.string().optional(),
|
|
4953
4980
|
// Repository
|
|
4954
|
-
url:
|
|
4981
|
+
url: z152.string(),
|
|
4955
4982
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4956
|
-
connectionId: nullishToOptional(
|
|
4957
|
-
userId: nullishToOptional(
|
|
4983
|
+
connectionId: nullishToOptional(z152.string()),
|
|
4984
|
+
userId: nullishToOptional(z152.number())
|
|
4958
4985
|
}).extend(GitCommonDestinationOptions.shape);
|
|
4959
|
-
var ExporterDestinationAzure =
|
|
4960
|
-
credentialId:
|
|
4986
|
+
var ExporterDestinationAzure = z152.object({
|
|
4987
|
+
credentialId: z152.string().optional(),
|
|
4961
4988
|
// Repository
|
|
4962
|
-
organizationId:
|
|
4963
|
-
projectId:
|
|
4964
|
-
repositoryId:
|
|
4989
|
+
organizationId: z152.string(),
|
|
4990
|
+
projectId: z152.string(),
|
|
4991
|
+
repositoryId: z152.string(),
|
|
4965
4992
|
// Maybe not needed
|
|
4966
|
-
url: nullishToOptional(
|
|
4993
|
+
url: nullishToOptional(z152.string()),
|
|
4967
4994
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4968
|
-
connectionId: nullishToOptional(
|
|
4969
|
-
userId: nullishToOptional(
|
|
4995
|
+
connectionId: nullishToOptional(z152.string()),
|
|
4996
|
+
userId: nullishToOptional(z152.number())
|
|
4970
4997
|
}).extend(GitCommonDestinationOptions.shape);
|
|
4971
|
-
var ExporterDestinationGitlab =
|
|
4972
|
-
credentialId:
|
|
4998
|
+
var ExporterDestinationGitlab = z152.object({
|
|
4999
|
+
credentialId: z152.string().optional(),
|
|
4973
5000
|
// Repository
|
|
4974
|
-
projectId:
|
|
5001
|
+
projectId: z152.string(),
|
|
4975
5002
|
// Maybe not needed
|
|
4976
|
-
url: nullishToOptional(
|
|
5003
|
+
url: nullishToOptional(z152.string()),
|
|
4977
5004
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4978
|
-
connectionId: nullishToOptional(
|
|
4979
|
-
userId: nullishToOptional(
|
|
5005
|
+
connectionId: nullishToOptional(z152.string()),
|
|
5006
|
+
userId: nullishToOptional(z152.number())
|
|
4980
5007
|
}).extend(GitCommonDestinationOptions.shape);
|
|
4981
|
-
var ExporterDestinationBitbucket =
|
|
4982
|
-
credentialId:
|
|
5008
|
+
var ExporterDestinationBitbucket = z152.object({
|
|
5009
|
+
credentialId: z152.string().optional(),
|
|
4983
5010
|
// Repository
|
|
4984
|
-
workspaceSlug:
|
|
4985
|
-
projectKey:
|
|
4986
|
-
repoSlug:
|
|
5011
|
+
workspaceSlug: z152.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5012
|
+
projectKey: z152.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5013
|
+
repoSlug: z152.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4987
5014
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4988
|
-
connectionId: nullishToOptional(
|
|
4989
|
-
userId: nullishToOptional(
|
|
5015
|
+
connectionId: nullishToOptional(z152.string()),
|
|
5016
|
+
userId: nullishToOptional(z152.number())
|
|
4990
5017
|
}).extend(GitCommonDestinationOptions.shape);
|
|
4991
|
-
var ExportDestinationsMap =
|
|
4992
|
-
webhookUrl:
|
|
5018
|
+
var ExportDestinationsMap = z152.object({
|
|
5019
|
+
webhookUrl: z152.string().optional(),
|
|
4993
5020
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
4994
5021
|
destinationS3: ExporterDestinationS3.optional(),
|
|
4995
5022
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -4997,8 +5024,8 @@ var ExportDestinationsMap = z150.object({
|
|
|
4997
5024
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
4998
5025
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
4999
5026
|
});
|
|
5000
|
-
var ExportDestinationsMapUpdate =
|
|
5001
|
-
webhookUrl:
|
|
5027
|
+
var ExportDestinationsMapUpdate = z152.object({
|
|
5028
|
+
webhookUrl: z152.string().nullish(),
|
|
5002
5029
|
destinationSnDocs: ExporterDestinationDocs.nullish(),
|
|
5003
5030
|
destinationS3: ExporterDestinationS3.nullish(),
|
|
5004
5031
|
destinationGithub: ExporterDestinationGithub.nullish(),
|
|
@@ -5008,115 +5035,115 @@ var ExportDestinationsMapUpdate = z150.object({
|
|
|
5008
5035
|
});
|
|
5009
5036
|
|
|
5010
5037
|
// src/export/pipeline.ts
|
|
5011
|
-
var PipelineEventType =
|
|
5012
|
-
var PipelineDestinationGitType =
|
|
5013
|
-
var PipelineDestinationExtraType =
|
|
5014
|
-
var PipelineDestinationType =
|
|
5015
|
-
var Pipeline =
|
|
5016
|
-
id:
|
|
5017
|
-
name:
|
|
5038
|
+
var PipelineEventType = z153.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
5039
|
+
var PipelineDestinationGitType = z153.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
5040
|
+
var PipelineDestinationExtraType = z153.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
5041
|
+
var PipelineDestinationType = z153.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
5042
|
+
var Pipeline = z153.object({
|
|
5043
|
+
id: z153.string(),
|
|
5044
|
+
name: z153.string(),
|
|
5018
5045
|
eventType: PipelineEventType,
|
|
5019
|
-
isEnabled:
|
|
5020
|
-
workspaceId:
|
|
5021
|
-
designSystemId:
|
|
5022
|
-
exporterId:
|
|
5023
|
-
brandPersistentId:
|
|
5024
|
-
themePersistentId:
|
|
5025
|
-
themePersistentIds:
|
|
5046
|
+
isEnabled: z153.boolean(),
|
|
5047
|
+
workspaceId: z153.string(),
|
|
5048
|
+
designSystemId: z153.string(),
|
|
5049
|
+
exporterId: z153.string(),
|
|
5050
|
+
brandPersistentId: z153.string().optional(),
|
|
5051
|
+
themePersistentId: z153.string().optional(),
|
|
5052
|
+
themePersistentIds: z153.string().array().optional(),
|
|
5026
5053
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5027
|
-
isExporterDeprecated:
|
|
5054
|
+
isExporterDeprecated: z153.boolean(),
|
|
5028
5055
|
// Destinations
|
|
5029
5056
|
...ExportDestinationsMap.shape
|
|
5030
5057
|
});
|
|
5031
5058
|
|
|
5032
5059
|
// src/data-dumps/code-integration-dump.ts
|
|
5033
|
-
var ExportJobDump =
|
|
5034
|
-
id:
|
|
5035
|
-
createdAt:
|
|
5036
|
-
finishedAt:
|
|
5037
|
-
exportArtefacts:
|
|
5060
|
+
var ExportJobDump = z154.object({
|
|
5061
|
+
id: z154.string(),
|
|
5062
|
+
createdAt: z154.coerce.date(),
|
|
5063
|
+
finishedAt: z154.coerce.date(),
|
|
5064
|
+
exportArtefacts: z154.string()
|
|
5038
5065
|
});
|
|
5039
|
-
var CodeIntegrationDump =
|
|
5066
|
+
var CodeIntegrationDump = z154.object({
|
|
5040
5067
|
exporters: Exporter.array(),
|
|
5041
5068
|
pipelines: Pipeline.array(),
|
|
5042
5069
|
exportJobs: ExportJobDump.array()
|
|
5043
5070
|
});
|
|
5044
5071
|
|
|
5045
5072
|
// src/data-dumps/design-system-dump.ts
|
|
5046
|
-
import { z as
|
|
5073
|
+
import { z as z161 } from "zod";
|
|
5047
5074
|
|
|
5048
5075
|
// src/data-dumps/design-system-version-dump.ts
|
|
5049
|
-
import { z as
|
|
5076
|
+
import { z as z160 } from "zod";
|
|
5050
5077
|
|
|
5051
5078
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
5052
|
-
import { z as
|
|
5079
|
+
import { z as z155 } from "zod";
|
|
5053
5080
|
var DesignSystemVersionRoom = Entity.extend({
|
|
5054
|
-
designSystemVersionId:
|
|
5055
|
-
liveblocksId:
|
|
5056
|
-
});
|
|
5057
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
5058
|
-
routingVersion:
|
|
5059
|
-
isDraftFeatureAdopted:
|
|
5060
|
-
isApprovalFeatureEnabled:
|
|
5061
|
-
approvalRequiredForPublishing:
|
|
5062
|
-
});
|
|
5063
|
-
var DesignSystemVersionRoomInitialState =
|
|
5064
|
-
pages:
|
|
5065
|
-
groups:
|
|
5066
|
-
pageSnapshots:
|
|
5067
|
-
groupSnapshots:
|
|
5068
|
-
pageApprovals:
|
|
5081
|
+
designSystemVersionId: z155.string(),
|
|
5082
|
+
liveblocksId: z155.string()
|
|
5083
|
+
});
|
|
5084
|
+
var DesignSystemVersionRoomInternalSettings = z155.object({
|
|
5085
|
+
routingVersion: z155.string(),
|
|
5086
|
+
isDraftFeatureAdopted: z155.boolean(),
|
|
5087
|
+
isApprovalFeatureEnabled: z155.boolean(),
|
|
5088
|
+
approvalRequiredForPublishing: z155.boolean()
|
|
5089
|
+
});
|
|
5090
|
+
var DesignSystemVersionRoomInitialState = z155.object({
|
|
5091
|
+
pages: z155.array(DocumentationPageV2),
|
|
5092
|
+
groups: z155.array(ElementGroup),
|
|
5093
|
+
pageSnapshots: z155.array(DocumentationPageSnapshot),
|
|
5094
|
+
groupSnapshots: z155.array(ElementGroupSnapshot),
|
|
5095
|
+
pageApprovals: z155.array(DocumentationPageApproval),
|
|
5069
5096
|
internalSettings: DesignSystemVersionRoomInternalSettings,
|
|
5070
|
-
pageHashes:
|
|
5071
|
-
});
|
|
5072
|
-
var DesignSystemVersionRoomUpdate =
|
|
5073
|
-
pages:
|
|
5074
|
-
groups:
|
|
5075
|
-
pageIdsToDelete:
|
|
5076
|
-
groupIdsToDelete:
|
|
5077
|
-
pageSnapshots:
|
|
5078
|
-
groupSnapshots:
|
|
5079
|
-
pageSnapshotIdsToDelete:
|
|
5080
|
-
groupSnapshotIdsToDelete:
|
|
5081
|
-
pageHashesToUpdate:
|
|
5082
|
-
pageApprovals:
|
|
5083
|
-
pageApprovalIdsToDelete:
|
|
5084
|
-
executedTransactionIds:
|
|
5097
|
+
pageHashes: z155.record(z155.string()).optional()
|
|
5098
|
+
});
|
|
5099
|
+
var DesignSystemVersionRoomUpdate = z155.object({
|
|
5100
|
+
pages: z155.array(DocumentationPageV2),
|
|
5101
|
+
groups: z155.array(ElementGroup),
|
|
5102
|
+
pageIdsToDelete: z155.array(z155.string()),
|
|
5103
|
+
groupIdsToDelete: z155.array(z155.string()),
|
|
5104
|
+
pageSnapshots: z155.array(DocumentationPageSnapshot),
|
|
5105
|
+
groupSnapshots: z155.array(ElementGroupSnapshot),
|
|
5106
|
+
pageSnapshotIdsToDelete: z155.array(z155.string()),
|
|
5107
|
+
groupSnapshotIdsToDelete: z155.array(z155.string()),
|
|
5108
|
+
pageHashesToUpdate: z155.record(z155.string(), z155.string()),
|
|
5109
|
+
pageApprovals: z155.array(DocumentationPageApproval),
|
|
5110
|
+
pageApprovalIdsToDelete: z155.array(z155.string()),
|
|
5111
|
+
executedTransactionIds: z155.array(z155.string())
|
|
5085
5112
|
});
|
|
5086
5113
|
|
|
5087
5114
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
5088
|
-
import { z as
|
|
5115
|
+
import { z as z156 } from "zod";
|
|
5089
5116
|
var DocumentationPageRoom = Entity.extend({
|
|
5090
|
-
designSystemVersionId:
|
|
5091
|
-
documentationPageId:
|
|
5092
|
-
liveblocksId:
|
|
5093
|
-
isDirty:
|
|
5117
|
+
designSystemVersionId: z156.string(),
|
|
5118
|
+
documentationPageId: z156.string(),
|
|
5119
|
+
liveblocksId: z156.string(),
|
|
5120
|
+
isDirty: z156.boolean()
|
|
5094
5121
|
});
|
|
5095
|
-
var DocumentationPageRoomState =
|
|
5096
|
-
pageItems:
|
|
5122
|
+
var DocumentationPageRoomState = z156.object({
|
|
5123
|
+
pageItems: z156.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5097
5124
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
5098
5125
|
});
|
|
5099
|
-
var DocumentationPageRoomRoomUpdate =
|
|
5126
|
+
var DocumentationPageRoomRoomUpdate = z156.object({
|
|
5100
5127
|
page: DocumentationPageV2,
|
|
5101
5128
|
pageParent: ElementGroup
|
|
5102
5129
|
});
|
|
5103
5130
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
5104
|
-
pageItems:
|
|
5105
|
-
blockDefinitions:
|
|
5131
|
+
pageItems: z156.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5132
|
+
blockDefinitions: z156.array(PageBlockDefinition)
|
|
5106
5133
|
});
|
|
5107
|
-
var RestoredDocumentationPage =
|
|
5134
|
+
var RestoredDocumentationPage = z156.object({
|
|
5108
5135
|
page: DocumentationPageV2,
|
|
5109
5136
|
pageParent: ElementGroup,
|
|
5110
5137
|
pageContent: DocumentationPageContentData,
|
|
5111
|
-
contentHash:
|
|
5138
|
+
contentHash: z156.string()
|
|
5112
5139
|
});
|
|
5113
|
-
var RestoredDocumentationGroup =
|
|
5140
|
+
var RestoredDocumentationGroup = z156.object({
|
|
5114
5141
|
group: ElementGroup,
|
|
5115
5142
|
parent: ElementGroup
|
|
5116
5143
|
});
|
|
5117
5144
|
|
|
5118
5145
|
// src/liveblocks/rooms/room-type.ts
|
|
5119
|
-
import { z as
|
|
5146
|
+
import { z as z157 } from "zod";
|
|
5120
5147
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
5121
5148
|
RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
|
|
5122
5149
|
RoomTypeEnum2["DocumentationPage"] = "doc-page";
|
|
@@ -5124,36 +5151,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
5124
5151
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
5125
5152
|
return RoomTypeEnum2;
|
|
5126
5153
|
})(RoomTypeEnum || {});
|
|
5127
|
-
var RoomTypeSchema =
|
|
5154
|
+
var RoomTypeSchema = z157.nativeEnum(RoomTypeEnum);
|
|
5128
5155
|
var RoomType = RoomTypeSchema.enum;
|
|
5129
5156
|
|
|
5130
5157
|
// src/liveblocks/rooms/workspace-room.ts
|
|
5131
|
-
import { z as
|
|
5158
|
+
import { z as z158 } from "zod";
|
|
5132
5159
|
var WorkspaceRoom = Entity.extend({
|
|
5133
|
-
workspaceId:
|
|
5134
|
-
liveblocksId:
|
|
5160
|
+
workspaceId: z158.string(),
|
|
5161
|
+
liveblocksId: z158.string()
|
|
5135
5162
|
});
|
|
5136
5163
|
|
|
5137
5164
|
// src/data-dumps/published-docs-dump.ts
|
|
5138
|
-
import { z as
|
|
5139
|
-
var PublishedDocsDump =
|
|
5165
|
+
import { z as z159 } from "zod";
|
|
5166
|
+
var PublishedDocsDump = z159.object({
|
|
5140
5167
|
documentation: PublishedDoc,
|
|
5141
5168
|
pages: PublishedDocPage.array()
|
|
5142
5169
|
});
|
|
5143
5170
|
|
|
5144
5171
|
// src/data-dumps/design-system-version-dump.ts
|
|
5145
|
-
var DocumentationThreadDump =
|
|
5172
|
+
var DocumentationThreadDump = z160.object({
|
|
5146
5173
|
thread: DocumentationCommentThread,
|
|
5147
5174
|
comments: DocumentationComment.array()
|
|
5148
5175
|
});
|
|
5149
|
-
var DocumentationPageRoomDump =
|
|
5176
|
+
var DocumentationPageRoomDump = z160.object({
|
|
5150
5177
|
room: DocumentationPageRoom,
|
|
5151
5178
|
threads: DocumentationThreadDump.array()
|
|
5152
5179
|
});
|
|
5153
|
-
var DesignSystemVersionMultiplayerDump =
|
|
5180
|
+
var DesignSystemVersionMultiplayerDump = z160.object({
|
|
5154
5181
|
documentationPages: DocumentationPageRoomDump.array()
|
|
5155
5182
|
});
|
|
5156
|
-
var DesignSystemVersionDump =
|
|
5183
|
+
var DesignSystemVersionDump = z160.object({
|
|
5157
5184
|
version: DesignSystemVersion,
|
|
5158
5185
|
brands: Brand.array(),
|
|
5159
5186
|
elements: DesignElement.array(),
|
|
@@ -5168,7 +5195,7 @@ var DesignSystemVersionDump = z158.object({
|
|
|
5168
5195
|
});
|
|
5169
5196
|
|
|
5170
5197
|
// src/data-dumps/design-system-dump.ts
|
|
5171
|
-
var DesignSystemDump =
|
|
5198
|
+
var DesignSystemDump = z161.object({
|
|
5172
5199
|
designSystem: DesignSystem,
|
|
5173
5200
|
dataSources: DataSource.array(),
|
|
5174
5201
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -5177,50 +5204,50 @@ var DesignSystemDump = z159.object({
|
|
|
5177
5204
|
});
|
|
5178
5205
|
|
|
5179
5206
|
// src/data-dumps/user-data-dump.ts
|
|
5180
|
-
import { z as
|
|
5207
|
+
import { z as z164 } from "zod";
|
|
5181
5208
|
|
|
5182
5209
|
// src/data-dumps/workspace-dump.ts
|
|
5183
|
-
import { z as
|
|
5210
|
+
import { z as z163 } from "zod";
|
|
5184
5211
|
|
|
5185
5212
|
// src/integrations/integration.ts
|
|
5186
|
-
import { z as
|
|
5187
|
-
var IntegrationDesignSystem =
|
|
5188
|
-
designSystemId:
|
|
5189
|
-
brandId:
|
|
5190
|
-
title:
|
|
5191
|
-
userId:
|
|
5192
|
-
date:
|
|
5193
|
-
});
|
|
5194
|
-
var IntegrationCredentialsType =
|
|
5195
|
-
var IntegrationCredentialsState =
|
|
5196
|
-
var IntegrationCredentialsProfile =
|
|
5197
|
-
id: nullishToOptional(
|
|
5198
|
-
email: nullishToOptional(
|
|
5199
|
-
handle: nullishToOptional(
|
|
5200
|
-
type: nullishToOptional(
|
|
5201
|
-
avatarUrl: nullishToOptional(
|
|
5202
|
-
organization: nullishToOptional(
|
|
5203
|
-
collection: nullishToOptional(
|
|
5204
|
-
});
|
|
5205
|
-
var IntegrationCredentials =
|
|
5206
|
-
id:
|
|
5213
|
+
import { z as z162 } from "zod";
|
|
5214
|
+
var IntegrationDesignSystem = z162.object({
|
|
5215
|
+
designSystemId: z162.string(),
|
|
5216
|
+
brandId: z162.string(),
|
|
5217
|
+
title: z162.string().optional(),
|
|
5218
|
+
userId: z162.string().optional(),
|
|
5219
|
+
date: z162.coerce.date().optional()
|
|
5220
|
+
});
|
|
5221
|
+
var IntegrationCredentialsType = z162.enum(["OAuth2", "PAT"]);
|
|
5222
|
+
var IntegrationCredentialsState = z162.enum(["Active", "Inactive"]);
|
|
5223
|
+
var IntegrationCredentialsProfile = z162.object({
|
|
5224
|
+
id: nullishToOptional(z162.string()),
|
|
5225
|
+
email: nullishToOptional(z162.string()),
|
|
5226
|
+
handle: nullishToOptional(z162.string()),
|
|
5227
|
+
type: nullishToOptional(z162.string()),
|
|
5228
|
+
avatarUrl: nullishToOptional(z162.string()),
|
|
5229
|
+
organization: nullishToOptional(z162.string()),
|
|
5230
|
+
collection: nullishToOptional(z162.string())
|
|
5231
|
+
});
|
|
5232
|
+
var IntegrationCredentials = z162.object({
|
|
5233
|
+
id: z162.string(),
|
|
5207
5234
|
type: IntegrationCredentialsType,
|
|
5208
|
-
integrationId:
|
|
5209
|
-
accessToken:
|
|
5210
|
-
userId:
|
|
5211
|
-
createdAt:
|
|
5212
|
-
refreshToken:
|
|
5213
|
-
tokenName:
|
|
5214
|
-
expiresAt:
|
|
5215
|
-
refreshedAt:
|
|
5216
|
-
username:
|
|
5217
|
-
appInstallationId:
|
|
5235
|
+
integrationId: z162.string(),
|
|
5236
|
+
accessToken: z162.string(),
|
|
5237
|
+
userId: z162.string(),
|
|
5238
|
+
createdAt: z162.coerce.date(),
|
|
5239
|
+
refreshToken: z162.string().optional(),
|
|
5240
|
+
tokenName: z162.string().optional(),
|
|
5241
|
+
expiresAt: z162.coerce.date().optional(),
|
|
5242
|
+
refreshedAt: z162.coerce.date().optional(),
|
|
5243
|
+
username: z162.string().optional(),
|
|
5244
|
+
appInstallationId: z162.string().optional(),
|
|
5218
5245
|
profile: IntegrationCredentialsProfile.optional(),
|
|
5219
|
-
customUrl:
|
|
5246
|
+
customUrl: z162.string().optional(),
|
|
5220
5247
|
state: IntegrationCredentialsState,
|
|
5221
5248
|
user: UserMinified.optional()
|
|
5222
5249
|
});
|
|
5223
|
-
var ExtendedIntegrationType =
|
|
5250
|
+
var ExtendedIntegrationType = z162.enum([
|
|
5224
5251
|
"Figma",
|
|
5225
5252
|
"Github",
|
|
5226
5253
|
"Gitlab",
|
|
@@ -5231,26 +5258,26 @@ var ExtendedIntegrationType = z160.enum([
|
|
|
5231
5258
|
]);
|
|
5232
5259
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
5233
5260
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
5234
|
-
var Integration =
|
|
5235
|
-
id:
|
|
5236
|
-
workspaceId:
|
|
5261
|
+
var Integration = z162.object({
|
|
5262
|
+
id: z162.string(),
|
|
5263
|
+
workspaceId: z162.string(),
|
|
5237
5264
|
type: IntegrationType,
|
|
5238
|
-
createdAt:
|
|
5239
|
-
integrationCredentials:
|
|
5240
|
-
});
|
|
5241
|
-
var IntegrationToken =
|
|
5242
|
-
access_token:
|
|
5243
|
-
refresh_token:
|
|
5244
|
-
expires_in:
|
|
5245
|
-
token_type:
|
|
5246
|
-
token_name:
|
|
5247
|
-
token_azure_organization_name:
|
|
5265
|
+
createdAt: z162.coerce.date(),
|
|
5266
|
+
integrationCredentials: z162.array(IntegrationCredentials).optional()
|
|
5267
|
+
});
|
|
5268
|
+
var IntegrationToken = z162.object({
|
|
5269
|
+
access_token: z162.string(),
|
|
5270
|
+
refresh_token: z162.string().optional(),
|
|
5271
|
+
expires_in: z162.union([z162.number().optional(), z162.string().optional()]),
|
|
5272
|
+
token_type: z162.string().optional(),
|
|
5273
|
+
token_name: z162.string().optional(),
|
|
5274
|
+
token_azure_organization_name: z162.string().optional(),
|
|
5248
5275
|
// Azure Cloud PAT only
|
|
5249
|
-
token_azure_collection_name:
|
|
5276
|
+
token_azure_collection_name: z162.string().optional(),
|
|
5250
5277
|
// Azure Server PAT only
|
|
5251
|
-
token_bitbucket_username:
|
|
5278
|
+
token_bitbucket_username: z162.string().optional(),
|
|
5252
5279
|
// Bitbucket only
|
|
5253
|
-
custom_url:
|
|
5280
|
+
custom_url: z162.string().optional().transform((value) => {
|
|
5254
5281
|
if (!value?.trim())
|
|
5255
5282
|
return void 0;
|
|
5256
5283
|
return formatCustomUrl(value);
|
|
@@ -5288,7 +5315,7 @@ function formatCustomUrl(url) {
|
|
|
5288
5315
|
}
|
|
5289
5316
|
|
|
5290
5317
|
// src/data-dumps/workspace-dump.ts
|
|
5291
|
-
var WorkspaceDump =
|
|
5318
|
+
var WorkspaceDump = z163.object({
|
|
5292
5319
|
workspace: Workspace,
|
|
5293
5320
|
designSystems: DesignSystemDump.array(),
|
|
5294
5321
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -5296,122 +5323,122 @@ var WorkspaceDump = z161.object({
|
|
|
5296
5323
|
});
|
|
5297
5324
|
|
|
5298
5325
|
// src/data-dumps/user-data-dump.ts
|
|
5299
|
-
var UserDump =
|
|
5326
|
+
var UserDump = z164.object({
|
|
5300
5327
|
user: User,
|
|
5301
5328
|
workspaces: WorkspaceDump.array()
|
|
5302
5329
|
});
|
|
5303
5330
|
|
|
5304
5331
|
// src/docs-server/session.ts
|
|
5305
|
-
import { z as
|
|
5306
|
-
var NpmProxyToken =
|
|
5307
|
-
access:
|
|
5308
|
-
expiresAt:
|
|
5332
|
+
import { z as z165 } from "zod";
|
|
5333
|
+
var NpmProxyToken = z165.object({
|
|
5334
|
+
access: z165.string(),
|
|
5335
|
+
expiresAt: z165.number()
|
|
5309
5336
|
});
|
|
5310
|
-
var SessionData =
|
|
5311
|
-
returnToUrl:
|
|
5337
|
+
var SessionData = z165.object({
|
|
5338
|
+
returnToUrl: z165.string().optional(),
|
|
5312
5339
|
npmProxyToken: NpmProxyToken.optional()
|
|
5313
5340
|
});
|
|
5314
|
-
var Session =
|
|
5315
|
-
id:
|
|
5316
|
-
expiresAt:
|
|
5317
|
-
userId:
|
|
5341
|
+
var Session = z165.object({
|
|
5342
|
+
id: z165.string(),
|
|
5343
|
+
expiresAt: z165.coerce.date(),
|
|
5344
|
+
userId: z165.string().nullable(),
|
|
5318
5345
|
data: SessionData
|
|
5319
5346
|
});
|
|
5320
|
-
var AuthTokens =
|
|
5321
|
-
access:
|
|
5322
|
-
refresh:
|
|
5347
|
+
var AuthTokens = z165.object({
|
|
5348
|
+
access: z165.string(),
|
|
5349
|
+
refresh: z165.string()
|
|
5323
5350
|
});
|
|
5324
|
-
var UserSession =
|
|
5351
|
+
var UserSession = z165.object({
|
|
5325
5352
|
session: Session,
|
|
5326
5353
|
user: User.nullable()
|
|
5327
5354
|
});
|
|
5328
5355
|
|
|
5329
5356
|
// src/emails/design-system-invite.ts
|
|
5330
|
-
import { z as
|
|
5331
|
-
var DesignSystemInviteEmailRecipient =
|
|
5332
|
-
email:
|
|
5357
|
+
import { z as z166 } from "zod";
|
|
5358
|
+
var DesignSystemInviteEmailRecipient = z166.object({
|
|
5359
|
+
email: z166.string(),
|
|
5333
5360
|
role: WorkspaceRoleSchema
|
|
5334
5361
|
});
|
|
5335
|
-
var DesignSystemInviteEmailData =
|
|
5362
|
+
var DesignSystemInviteEmailData = z166.object({
|
|
5336
5363
|
workspace: Workspace,
|
|
5337
5364
|
designSystem: DesignSystem,
|
|
5338
5365
|
invitedBy: User,
|
|
5339
|
-
documentationDomain:
|
|
5366
|
+
documentationDomain: z166.string().optional()
|
|
5340
5367
|
});
|
|
5341
5368
|
|
|
5342
5369
|
// src/emails/workspace-invite.ts
|
|
5343
|
-
import { z as
|
|
5344
|
-
var WorkspaceInviteEmailRecipient =
|
|
5345
|
-
email:
|
|
5370
|
+
import { z as z167 } from "zod";
|
|
5371
|
+
var WorkspaceInviteEmailRecipient = z167.object({
|
|
5372
|
+
email: z167.string(),
|
|
5346
5373
|
role: WorkspaceRoleSchema
|
|
5347
5374
|
});
|
|
5348
|
-
var WorkspaceInviteEmailData =
|
|
5375
|
+
var WorkspaceInviteEmailData = z167.object({
|
|
5349
5376
|
workspace: Workspace,
|
|
5350
5377
|
invitedBy: User,
|
|
5351
|
-
documentationDomain:
|
|
5378
|
+
documentationDomain: z167.string().optional()
|
|
5352
5379
|
});
|
|
5353
5380
|
|
|
5354
5381
|
// src/events/base.ts
|
|
5355
|
-
import { z as
|
|
5382
|
+
import { z as z170 } from "zod";
|
|
5356
5383
|
|
|
5357
5384
|
// src/events/data-source-imported.ts
|
|
5358
|
-
import { z as
|
|
5359
|
-
var EventDataSourceImported =
|
|
5360
|
-
type:
|
|
5361
|
-
workspaceId:
|
|
5362
|
-
designSystemId:
|
|
5385
|
+
import { z as z168 } from "zod";
|
|
5386
|
+
var EventDataSourceImported = z168.object({
|
|
5387
|
+
type: z168.literal("DataSourceImported"),
|
|
5388
|
+
workspaceId: z168.string(),
|
|
5389
|
+
designSystemId: z168.string()
|
|
5363
5390
|
});
|
|
5364
5391
|
|
|
5365
5392
|
// src/events/version-released.ts
|
|
5366
|
-
import { z as
|
|
5367
|
-
var EventVersionReleased =
|
|
5368
|
-
type:
|
|
5369
|
-
workspaceId:
|
|
5370
|
-
designSystemId:
|
|
5371
|
-
versionId:
|
|
5393
|
+
import { z as z169 } from "zod";
|
|
5394
|
+
var EventVersionReleased = z169.object({
|
|
5395
|
+
type: z169.literal("DesignSystemVersionReleased"),
|
|
5396
|
+
workspaceId: z169.string(),
|
|
5397
|
+
designSystemId: z169.string(),
|
|
5398
|
+
versionId: z169.string()
|
|
5372
5399
|
});
|
|
5373
5400
|
|
|
5374
5401
|
// src/events/base.ts
|
|
5375
|
-
var Event =
|
|
5402
|
+
var Event = z170.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
5376
5403
|
|
|
5377
5404
|
// src/export/export-runner/export-context.ts
|
|
5378
|
-
import { z as
|
|
5379
|
-
var ExportJobDocumentationContext =
|
|
5380
|
-
isSingleVersionDocs:
|
|
5381
|
-
versionSlug:
|
|
5405
|
+
import { z as z171 } from "zod";
|
|
5406
|
+
var ExportJobDocumentationContext = z171.object({
|
|
5407
|
+
isSingleVersionDocs: z171.boolean(),
|
|
5408
|
+
versionSlug: z171.string(),
|
|
5382
5409
|
environment: PublishedDocEnvironment
|
|
5383
5410
|
});
|
|
5384
|
-
var ExportJobContext =
|
|
5385
|
-
apiUrl:
|
|
5386
|
-
accessToken:
|
|
5387
|
-
designSystemId:
|
|
5388
|
-
designSystemName:
|
|
5389
|
-
exporterId:
|
|
5390
|
-
versionId:
|
|
5391
|
-
brandId:
|
|
5392
|
-
themeId:
|
|
5393
|
-
themePersistentIds:
|
|
5394
|
-
exporterName:
|
|
5411
|
+
var ExportJobContext = z171.object({
|
|
5412
|
+
apiUrl: z171.string(),
|
|
5413
|
+
accessToken: z171.string(),
|
|
5414
|
+
designSystemId: z171.string(),
|
|
5415
|
+
designSystemName: z171.string(),
|
|
5416
|
+
exporterId: z171.string(),
|
|
5417
|
+
versionId: z171.string(),
|
|
5418
|
+
brandId: z171.string().optional(),
|
|
5419
|
+
themeId: z171.string().optional(),
|
|
5420
|
+
themePersistentIds: z171.string().array().optional(),
|
|
5421
|
+
exporterName: z171.string(),
|
|
5395
5422
|
documentation: ExportJobDocumentationContext.optional()
|
|
5396
5423
|
});
|
|
5397
|
-
var ExportJobExporterConfiguration =
|
|
5398
|
-
exporterPackageUrl:
|
|
5424
|
+
var ExportJobExporterConfiguration = z171.object({
|
|
5425
|
+
exporterPackageUrl: z171.string(),
|
|
5399
5426
|
exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
|
|
5400
5427
|
exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
|
|
5401
5428
|
});
|
|
5402
5429
|
|
|
5403
5430
|
// src/export/export-runner/exporter-payload.ts
|
|
5404
|
-
import { z as
|
|
5405
|
-
var ExporterFunctionPayload =
|
|
5406
|
-
exportJobId:
|
|
5407
|
-
exportContextId:
|
|
5408
|
-
designSystemId:
|
|
5409
|
-
workspaceId:
|
|
5431
|
+
import { z as z172 } from "zod";
|
|
5432
|
+
var ExporterFunctionPayload = z172.object({
|
|
5433
|
+
exportJobId: z172.string(),
|
|
5434
|
+
exportContextId: z172.string(),
|
|
5435
|
+
designSystemId: z172.string(),
|
|
5436
|
+
workspaceId: z172.string()
|
|
5410
5437
|
});
|
|
5411
5438
|
|
|
5412
5439
|
// src/export/export-jobs.ts
|
|
5413
|
-
import { z as
|
|
5414
|
-
var ExportJobDestinationType =
|
|
5440
|
+
import { z as z173 } from "zod";
|
|
5441
|
+
var ExportJobDestinationType = z173.enum([
|
|
5415
5442
|
"s3",
|
|
5416
5443
|
"webhookUrl",
|
|
5417
5444
|
"github",
|
|
@@ -5420,30 +5447,30 @@ var ExportJobDestinationType = z171.enum([
|
|
|
5420
5447
|
"gitlab",
|
|
5421
5448
|
"bitbucket"
|
|
5422
5449
|
]);
|
|
5423
|
-
var ExportJobStatus =
|
|
5424
|
-
var ExportJobLogEntryType =
|
|
5425
|
-
var ExportJobLogEntry =
|
|
5426
|
-
id:
|
|
5427
|
-
time:
|
|
5450
|
+
var ExportJobStatus = z173.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
5451
|
+
var ExportJobLogEntryType = z173.enum(["success", "info", "warning", "error", "user"]);
|
|
5452
|
+
var ExportJobLogEntry = z173.object({
|
|
5453
|
+
id: z173.string().optional(),
|
|
5454
|
+
time: z173.coerce.date(),
|
|
5428
5455
|
type: ExportJobLogEntryType,
|
|
5429
|
-
message:
|
|
5456
|
+
message: z173.string()
|
|
5430
5457
|
});
|
|
5431
|
-
var ExportJobPullRequestDestinationResult =
|
|
5432
|
-
pullRequestUrl:
|
|
5458
|
+
var ExportJobPullRequestDestinationResult = z173.object({
|
|
5459
|
+
pullRequestUrl: z173.string()
|
|
5433
5460
|
});
|
|
5434
|
-
var ExportJobS3DestinationResult =
|
|
5435
|
-
bucket:
|
|
5436
|
-
urlPrefix:
|
|
5437
|
-
path:
|
|
5438
|
-
files:
|
|
5439
|
-
url: nullishToOptional(
|
|
5440
|
-
urls: nullishToOptional(
|
|
5461
|
+
var ExportJobS3DestinationResult = z173.object({
|
|
5462
|
+
bucket: z173.string(),
|
|
5463
|
+
urlPrefix: z173.string().optional(),
|
|
5464
|
+
path: z173.string(),
|
|
5465
|
+
files: z173.array(z173.string()),
|
|
5466
|
+
url: nullishToOptional(z173.string()),
|
|
5467
|
+
urls: nullishToOptional(z173.string().array())
|
|
5441
5468
|
});
|
|
5442
|
-
var ExportJobDocsDestinationResult =
|
|
5443
|
-
url:
|
|
5469
|
+
var ExportJobDocsDestinationResult = z173.object({
|
|
5470
|
+
url: z173.string()
|
|
5444
5471
|
});
|
|
5445
|
-
var ExportJobResult =
|
|
5446
|
-
error:
|
|
5472
|
+
var ExportJobResult = z173.object({
|
|
5473
|
+
error: z173.string().optional(),
|
|
5447
5474
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
5448
5475
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
5449
5476
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -5452,22 +5479,22 @@ var ExportJobResult = z171.object({
|
|
|
5452
5479
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
5453
5480
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
5454
5481
|
});
|
|
5455
|
-
var ExportJob =
|
|
5456
|
-
id:
|
|
5457
|
-
createdAt:
|
|
5458
|
-
finishedAt:
|
|
5459
|
-
designSystemId:
|
|
5460
|
-
designSystemVersionId:
|
|
5461
|
-
workspaceId:
|
|
5462
|
-
scheduleId:
|
|
5463
|
-
exporterId:
|
|
5464
|
-
brandId:
|
|
5465
|
-
themeId:
|
|
5466
|
-
themePersistentIds:
|
|
5467
|
-
estimatedExecutionTime:
|
|
5482
|
+
var ExportJob = z173.object({
|
|
5483
|
+
id: z173.string(),
|
|
5484
|
+
createdAt: z173.coerce.date(),
|
|
5485
|
+
finishedAt: z173.coerce.date().optional(),
|
|
5486
|
+
designSystemId: z173.string(),
|
|
5487
|
+
designSystemVersionId: z173.string(),
|
|
5488
|
+
workspaceId: z173.string(),
|
|
5489
|
+
scheduleId: z173.string().nullish(),
|
|
5490
|
+
exporterId: z173.string(),
|
|
5491
|
+
brandId: z173.string().optional(),
|
|
5492
|
+
themeId: z173.string().optional(),
|
|
5493
|
+
themePersistentIds: z173.string().array().optional(),
|
|
5494
|
+
estimatedExecutionTime: z173.number().optional(),
|
|
5468
5495
|
status: ExportJobStatus,
|
|
5469
5496
|
result: ExportJobResult.optional(),
|
|
5470
|
-
createdByUserId:
|
|
5497
|
+
createdByUserId: z173.string().optional(),
|
|
5471
5498
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5472
5499
|
// Destinations
|
|
5473
5500
|
...ExportDestinationsMap.shape
|
|
@@ -5482,36 +5509,36 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
5482
5509
|
themeId: true,
|
|
5483
5510
|
brandId: true
|
|
5484
5511
|
}).extend({
|
|
5485
|
-
destinations:
|
|
5512
|
+
destinations: z173.array(ExportJobDestinationType),
|
|
5486
5513
|
docsEnvironment: PublishedDocEnvironment
|
|
5487
5514
|
}).partial();
|
|
5488
5515
|
|
|
5489
5516
|
// src/export/exporter-list-query.ts
|
|
5490
|
-
import { z as
|
|
5491
|
-
var ExporterType2 =
|
|
5492
|
-
var ListExporterQuery =
|
|
5493
|
-
limit:
|
|
5494
|
-
offset:
|
|
5517
|
+
import { z as z174 } from "zod";
|
|
5518
|
+
var ExporterType2 = z174.enum(["documentation", "code"]);
|
|
5519
|
+
var ListExporterQuery = z174.object({
|
|
5520
|
+
limit: z174.number().optional(),
|
|
5521
|
+
offset: z174.number().optional(),
|
|
5495
5522
|
type: ExporterType2.optional(),
|
|
5496
|
-
search:
|
|
5523
|
+
search: z174.string().optional()
|
|
5497
5524
|
});
|
|
5498
5525
|
|
|
5499
5526
|
// src/export/exporter-workspace-membership-role.ts
|
|
5500
|
-
import { z as
|
|
5501
|
-
var ExporterWorkspaceMembershipRole =
|
|
5527
|
+
import { z as z175 } from "zod";
|
|
5528
|
+
var ExporterWorkspaceMembershipRole = z175.enum(["Owner", "OwnerArchived", "User"]);
|
|
5502
5529
|
|
|
5503
5530
|
// src/export/exporter-workspace-membership.ts
|
|
5504
|
-
import { z as
|
|
5505
|
-
var ExporterWorkspaceMembership =
|
|
5506
|
-
id:
|
|
5507
|
-
workspaceId:
|
|
5508
|
-
exporterId:
|
|
5531
|
+
import { z as z176 } from "zod";
|
|
5532
|
+
var ExporterWorkspaceMembership = z176.object({
|
|
5533
|
+
id: z176.string(),
|
|
5534
|
+
workspaceId: z176.string(),
|
|
5535
|
+
exporterId: z176.string(),
|
|
5509
5536
|
role: ExporterWorkspaceMembershipRole
|
|
5510
5537
|
});
|
|
5511
5538
|
|
|
5512
5539
|
// src/feature-flags/feature-flags.ts
|
|
5513
|
-
import { z as
|
|
5514
|
-
var FlaggedFeature =
|
|
5540
|
+
import { z as z177 } from "zod";
|
|
5541
|
+
var FlaggedFeature = z177.enum([
|
|
5515
5542
|
"FigmaImporterV2",
|
|
5516
5543
|
"ShadowOpacityOptional",
|
|
5517
5544
|
"DisableImporter",
|
|
@@ -5522,20 +5549,20 @@ var FlaggedFeature = z175.enum([
|
|
|
5522
5549
|
"NonCompatibleTypeChanges",
|
|
5523
5550
|
"TypographyUseFontStyle"
|
|
5524
5551
|
]);
|
|
5525
|
-
var FeatureFlagMap =
|
|
5526
|
-
var FeatureFlag =
|
|
5527
|
-
id:
|
|
5552
|
+
var FeatureFlagMap = z177.record(FlaggedFeature, z177.boolean());
|
|
5553
|
+
var FeatureFlag = z177.object({
|
|
5554
|
+
id: z177.string(),
|
|
5528
5555
|
feature: FlaggedFeature,
|
|
5529
|
-
createdAt:
|
|
5530
|
-
enabled:
|
|
5531
|
-
designSystemId:
|
|
5556
|
+
createdAt: z177.coerce.date(),
|
|
5557
|
+
enabled: z177.boolean(),
|
|
5558
|
+
designSystemId: z177.string().optional()
|
|
5532
5559
|
});
|
|
5533
5560
|
|
|
5534
5561
|
// src/integrations/external-oauth-request.ts
|
|
5535
|
-
import { z as
|
|
5562
|
+
import { z as z179 } from "zod";
|
|
5536
5563
|
|
|
5537
5564
|
// src/integrations/oauth-providers.ts
|
|
5538
|
-
import { z as
|
|
5565
|
+
import { z as z178 } from "zod";
|
|
5539
5566
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5540
5567
|
OAuthProviderNames2["Figma"] = "figma";
|
|
5541
5568
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -5544,128 +5571,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
5544
5571
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
5545
5572
|
return OAuthProviderNames2;
|
|
5546
5573
|
})(OAuthProviderNames || {});
|
|
5547
|
-
var OAuthProviderSchema =
|
|
5574
|
+
var OAuthProviderSchema = z178.nativeEnum(OAuthProviderNames);
|
|
5548
5575
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
5549
5576
|
|
|
5550
5577
|
// src/integrations/external-oauth-request.ts
|
|
5551
|
-
var ExternalOAuthRequest =
|
|
5552
|
-
id:
|
|
5578
|
+
var ExternalOAuthRequest = z179.object({
|
|
5579
|
+
id: z179.string(),
|
|
5553
5580
|
provider: OAuthProviderSchema,
|
|
5554
|
-
userId:
|
|
5555
|
-
state:
|
|
5556
|
-
createdAt:
|
|
5581
|
+
userId: z179.string(),
|
|
5582
|
+
state: z179.string(),
|
|
5583
|
+
createdAt: z179.coerce.date()
|
|
5557
5584
|
});
|
|
5558
5585
|
|
|
5559
5586
|
// src/integrations/git.ts
|
|
5560
|
-
import { z as
|
|
5561
|
-
var GitObjectsQuery =
|
|
5562
|
-
organization:
|
|
5587
|
+
import { z as z180 } from "zod";
|
|
5588
|
+
var GitObjectsQuery = z180.object({
|
|
5589
|
+
organization: z180.string().optional(),
|
|
5563
5590
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5564
|
-
project:
|
|
5591
|
+
project: z180.string().optional(),
|
|
5565
5592
|
// Only for Bitbucket and Azure
|
|
5566
|
-
repository:
|
|
5593
|
+
repository: z180.string().optional(),
|
|
5567
5594
|
// For all providers. For Gitlab, it's called "project".
|
|
5568
|
-
branch:
|
|
5595
|
+
branch: z180.string().optional(),
|
|
5569
5596
|
// For all providers.
|
|
5570
|
-
user:
|
|
5597
|
+
user: z180.string().optional()
|
|
5571
5598
|
// Gitlab user
|
|
5572
5599
|
});
|
|
5573
|
-
var GitOrganization =
|
|
5574
|
-
id:
|
|
5575
|
-
name:
|
|
5576
|
-
url:
|
|
5577
|
-
slug:
|
|
5578
|
-
});
|
|
5579
|
-
var GitProject =
|
|
5580
|
-
id:
|
|
5581
|
-
name:
|
|
5582
|
-
url:
|
|
5583
|
-
slug:
|
|
5584
|
-
});
|
|
5585
|
-
var GitRepository =
|
|
5586
|
-
id:
|
|
5587
|
-
name:
|
|
5588
|
-
url:
|
|
5589
|
-
slug:
|
|
5600
|
+
var GitOrganization = z180.object({
|
|
5601
|
+
id: z180.string(),
|
|
5602
|
+
name: z180.string(),
|
|
5603
|
+
url: z180.string(),
|
|
5604
|
+
slug: z180.string()
|
|
5605
|
+
});
|
|
5606
|
+
var GitProject = z180.object({
|
|
5607
|
+
id: z180.string(),
|
|
5608
|
+
name: z180.string(),
|
|
5609
|
+
url: z180.string(),
|
|
5610
|
+
slug: z180.string()
|
|
5611
|
+
});
|
|
5612
|
+
var GitRepository = z180.object({
|
|
5613
|
+
id: z180.string(),
|
|
5614
|
+
name: z180.string(),
|
|
5615
|
+
url: z180.string(),
|
|
5616
|
+
slug: z180.string(),
|
|
5590
5617
|
/**
|
|
5591
5618
|
* Can be undefined when:
|
|
5592
5619
|
* - there are no branches in the repository yet
|
|
5593
5620
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5594
5621
|
*/
|
|
5595
|
-
defaultBranch:
|
|
5622
|
+
defaultBranch: z180.string().optional()
|
|
5596
5623
|
});
|
|
5597
|
-
var GitBranch =
|
|
5598
|
-
name:
|
|
5599
|
-
lastCommitId:
|
|
5624
|
+
var GitBranch = z180.object({
|
|
5625
|
+
name: z180.string(),
|
|
5626
|
+
lastCommitId: z180.string()
|
|
5600
5627
|
});
|
|
5601
5628
|
|
|
5602
5629
|
// src/integrations/oauth-token.ts
|
|
5603
|
-
import { z as
|
|
5604
|
-
var IntegrationTokenSchemaOld =
|
|
5605
|
-
id:
|
|
5630
|
+
import { z as z181 } from "zod";
|
|
5631
|
+
var IntegrationTokenSchemaOld = z181.object({
|
|
5632
|
+
id: z181.string(),
|
|
5606
5633
|
provider: OAuthProviderSchema,
|
|
5607
|
-
scope:
|
|
5608
|
-
userId:
|
|
5609
|
-
accessToken:
|
|
5610
|
-
refreshToken:
|
|
5611
|
-
expiresAt:
|
|
5612
|
-
externalUserId:
|
|
5634
|
+
scope: z181.string(),
|
|
5635
|
+
userId: z181.string(),
|
|
5636
|
+
accessToken: z181.string(),
|
|
5637
|
+
refreshToken: z181.string(),
|
|
5638
|
+
expiresAt: z181.coerce.date(),
|
|
5639
|
+
externalUserId: z181.string().nullish()
|
|
5613
5640
|
});
|
|
5614
5641
|
|
|
5615
5642
|
// src/integrations/workspace-oauth-requests.ts
|
|
5616
|
-
import { z as
|
|
5617
|
-
var WorkspaceOAuthRequestSchema =
|
|
5618
|
-
id:
|
|
5619
|
-
workspaceId:
|
|
5643
|
+
import { z as z182 } from "zod";
|
|
5644
|
+
var WorkspaceOAuthRequestSchema = z182.object({
|
|
5645
|
+
id: z182.string(),
|
|
5646
|
+
workspaceId: z182.string(),
|
|
5620
5647
|
provider: OAuthProviderSchema,
|
|
5621
|
-
userId:
|
|
5622
|
-
createdAt:
|
|
5648
|
+
userId: z182.string(),
|
|
5649
|
+
createdAt: z182.coerce.date()
|
|
5623
5650
|
});
|
|
5624
5651
|
|
|
5625
5652
|
// src/npm/npm-package.ts
|
|
5626
|
-
import { z as
|
|
5627
|
-
var AnyRecord =
|
|
5653
|
+
import { z as z183 } from "zod";
|
|
5654
|
+
var AnyRecord = z183.record(z183.any());
|
|
5628
5655
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5629
|
-
|
|
5630
|
-
tarball:
|
|
5656
|
+
z183.object({
|
|
5657
|
+
tarball: z183.string()
|
|
5631
5658
|
})
|
|
5632
5659
|
);
|
|
5633
5660
|
var NpmPackageVersion = AnyRecord.and(
|
|
5634
|
-
|
|
5661
|
+
z183.object({
|
|
5635
5662
|
dist: NpmPackageVersionDist
|
|
5636
5663
|
})
|
|
5637
5664
|
);
|
|
5638
5665
|
var NpmPackage = AnyRecord.and(
|
|
5639
|
-
|
|
5640
|
-
_id:
|
|
5641
|
-
name:
|
|
5666
|
+
z183.object({
|
|
5667
|
+
_id: z183.string(),
|
|
5668
|
+
name: z183.string(),
|
|
5642
5669
|
// e.g. "latest": "1.2.3"
|
|
5643
|
-
"dist-tags":
|
|
5670
|
+
"dist-tags": z183.record(z183.string(), z183.string()),
|
|
5644
5671
|
// "1.2.3": {...}
|
|
5645
|
-
versions:
|
|
5672
|
+
versions: z183.record(NpmPackageVersion)
|
|
5646
5673
|
})
|
|
5647
5674
|
);
|
|
5648
5675
|
|
|
5649
5676
|
// src/npm/npm-proxy-token-payload.ts
|
|
5650
|
-
import { z as
|
|
5651
|
-
var NpmProxyTokenPayload =
|
|
5652
|
-
npmProxyRegistryConfigId:
|
|
5677
|
+
import { z as z184 } from "zod";
|
|
5678
|
+
var NpmProxyTokenPayload = z184.object({
|
|
5679
|
+
npmProxyRegistryConfigId: z184.string()
|
|
5653
5680
|
});
|
|
5654
5681
|
|
|
5655
5682
|
// src/tokens/personal-access-token.ts
|
|
5656
|
-
import { z as
|
|
5657
|
-
var PersonalAccessToken =
|
|
5658
|
-
id:
|
|
5659
|
-
userId:
|
|
5660
|
-
workspaceId:
|
|
5661
|
-
designSystemId:
|
|
5683
|
+
import { z as z185 } from "zod";
|
|
5684
|
+
var PersonalAccessToken = z185.object({
|
|
5685
|
+
id: z185.string(),
|
|
5686
|
+
userId: z185.string(),
|
|
5687
|
+
workspaceId: z185.string().optional(),
|
|
5688
|
+
designSystemId: z185.string().optional(),
|
|
5662
5689
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5663
|
-
name:
|
|
5664
|
-
hidden:
|
|
5665
|
-
token:
|
|
5666
|
-
scope:
|
|
5667
|
-
createdAt:
|
|
5668
|
-
expireAt:
|
|
5690
|
+
name: z185.string(),
|
|
5691
|
+
hidden: z185.boolean(),
|
|
5692
|
+
token: z185.string(),
|
|
5693
|
+
scope: z185.string().optional(),
|
|
5694
|
+
createdAt: z185.coerce.date(),
|
|
5695
|
+
expireAt: z185.coerce.date().optional()
|
|
5669
5696
|
});
|
|
5670
5697
|
export {
|
|
5671
5698
|
Address,
|
|
@@ -5940,6 +5967,9 @@ export {
|
|
|
5940
5967
|
FigmaNodeRenderState,
|
|
5941
5968
|
FigmaNodeRenderedImage,
|
|
5942
5969
|
FigmaNodeRendererPayload,
|
|
5970
|
+
FigmaNodeStructureDataV2,
|
|
5971
|
+
FigmaNodeStructureStateV2,
|
|
5972
|
+
FigmaNodeStructureV2,
|
|
5943
5973
|
FigmaPngRenderImportModel,
|
|
5944
5974
|
FigmaRenderFormat,
|
|
5945
5975
|
FigmaRenderImportModel,
|