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