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