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