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