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