@supernova-studio/model 0.59.9 → 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 +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +759 -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/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,115 +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:
|
|
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),
|
|
5023
5034
|
internalSettings: DesignSystemVersionRoomInternalSettings,
|
|
5024
|
-
pageHashes:
|
|
5025
|
-
});
|
|
5026
|
-
var DesignSystemVersionRoomUpdate =
|
|
5027
|
-
pages:
|
|
5028
|
-
groups:
|
|
5029
|
-
pageIdsToDelete:
|
|
5030
|
-
groupIdsToDelete:
|
|
5031
|
-
pageSnapshots:
|
|
5032
|
-
groupSnapshots:
|
|
5033
|
-
pageSnapshotIdsToDelete:
|
|
5034
|
-
groupSnapshotIdsToDelete:
|
|
5035
|
-
pageHashesToUpdate:
|
|
5036
|
-
pageApprovals:
|
|
5037
|
-
pageApprovalIdsToDelete:
|
|
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())
|
|
5038
5049
|
});
|
|
5039
5050
|
|
|
5040
5051
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
5041
|
-
import { z as
|
|
5052
|
+
import { z as z152 } from "zod";
|
|
5042
5053
|
var DocumentationPageRoom = Entity.extend({
|
|
5043
|
-
designSystemVersionId:
|
|
5044
|
-
documentationPageId:
|
|
5045
|
-
liveblocksId:
|
|
5046
|
-
isDirty:
|
|
5054
|
+
designSystemVersionId: z152.string(),
|
|
5055
|
+
documentationPageId: z152.string(),
|
|
5056
|
+
liveblocksId: z152.string(),
|
|
5057
|
+
isDirty: z152.boolean()
|
|
5047
5058
|
});
|
|
5048
|
-
var DocumentationPageRoomState =
|
|
5049
|
-
pageItems:
|
|
5059
|
+
var DocumentationPageRoomState = z152.object({
|
|
5060
|
+
pageItems: z152.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5050
5061
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
5051
5062
|
});
|
|
5052
|
-
var DocumentationPageRoomRoomUpdate =
|
|
5063
|
+
var DocumentationPageRoomRoomUpdate = z152.object({
|
|
5053
5064
|
page: DocumentationPageV2,
|
|
5054
5065
|
pageParent: ElementGroup
|
|
5055
5066
|
});
|
|
5056
5067
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
5057
|
-
pageItems:
|
|
5058
|
-
blockDefinitions:
|
|
5068
|
+
pageItems: z152.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5069
|
+
blockDefinitions: z152.array(PageBlockDefinition)
|
|
5059
5070
|
});
|
|
5060
|
-
var RestoredDocumentationPage =
|
|
5071
|
+
var RestoredDocumentationPage = z152.object({
|
|
5061
5072
|
page: DocumentationPageV2,
|
|
5062
5073
|
pageParent: ElementGroup,
|
|
5063
5074
|
pageContent: DocumentationPageContentData,
|
|
5064
|
-
contentHash:
|
|
5065
|
-
snapshotId:
|
|
5066
|
-
roomId:
|
|
5075
|
+
contentHash: z152.string(),
|
|
5076
|
+
snapshotId: z152.string(),
|
|
5077
|
+
roomId: z152.string().optional()
|
|
5067
5078
|
});
|
|
5068
|
-
var RestoredDocumentationGroup =
|
|
5079
|
+
var RestoredDocumentationGroup = z152.object({
|
|
5069
5080
|
group: ElementGroup,
|
|
5070
5081
|
parent: ElementGroup
|
|
5071
5082
|
});
|
|
5072
5083
|
|
|
5073
5084
|
// src/liveblocks/rooms/room-type.ts
|
|
5074
|
-
import { z as
|
|
5085
|
+
import { z as z153 } from "zod";
|
|
5075
5086
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
5076
5087
|
RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
|
|
5077
5088
|
RoomTypeEnum2["DocumentationPage"] = "doc-page";
|
|
@@ -5079,36 +5090,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
5079
5090
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
5080
5091
|
return RoomTypeEnum2;
|
|
5081
5092
|
})(RoomTypeEnum || {});
|
|
5082
|
-
var RoomTypeSchema =
|
|
5093
|
+
var RoomTypeSchema = z153.nativeEnum(RoomTypeEnum);
|
|
5083
5094
|
var RoomType = RoomTypeSchema.enum;
|
|
5084
5095
|
|
|
5085
5096
|
// src/liveblocks/rooms/workspace-room.ts
|
|
5086
|
-
import { z as
|
|
5097
|
+
import { z as z154 } from "zod";
|
|
5087
5098
|
var WorkspaceRoom = Entity.extend({
|
|
5088
|
-
workspaceId:
|
|
5089
|
-
liveblocksId:
|
|
5099
|
+
workspaceId: z154.string(),
|
|
5100
|
+
liveblocksId: z154.string()
|
|
5090
5101
|
});
|
|
5091
5102
|
|
|
5092
5103
|
// src/data-dumps/published-docs-dump.ts
|
|
5093
|
-
import { z as
|
|
5094
|
-
var PublishedDocsDump =
|
|
5104
|
+
import { z as z155 } from "zod";
|
|
5105
|
+
var PublishedDocsDump = z155.object({
|
|
5095
5106
|
documentation: PublishedDoc,
|
|
5096
5107
|
pages: PublishedDocPage.array()
|
|
5097
5108
|
});
|
|
5098
5109
|
|
|
5099
5110
|
// src/data-dumps/design-system-version-dump.ts
|
|
5100
|
-
var DocumentationThreadDump =
|
|
5111
|
+
var DocumentationThreadDump = z156.object({
|
|
5101
5112
|
thread: DocumentationCommentThread,
|
|
5102
5113
|
comments: DocumentationComment.array()
|
|
5103
5114
|
});
|
|
5104
|
-
var DocumentationPageRoomDump =
|
|
5115
|
+
var DocumentationPageRoomDump = z156.object({
|
|
5105
5116
|
room: DocumentationPageRoom,
|
|
5106
5117
|
threads: DocumentationThreadDump.array()
|
|
5107
5118
|
});
|
|
5108
|
-
var DesignSystemVersionMultiplayerDump =
|
|
5119
|
+
var DesignSystemVersionMultiplayerDump = z156.object({
|
|
5109
5120
|
documentationPages: DocumentationPageRoomDump.array()
|
|
5110
5121
|
});
|
|
5111
|
-
var DesignSystemVersionDump =
|
|
5122
|
+
var DesignSystemVersionDump = z156.object({
|
|
5112
5123
|
version: DesignSystemVersion,
|
|
5113
5124
|
brands: Brand.array(),
|
|
5114
5125
|
elements: DesignElement.array(),
|
|
@@ -5123,7 +5134,7 @@ var DesignSystemVersionDump = z155.object({
|
|
|
5123
5134
|
});
|
|
5124
5135
|
|
|
5125
5136
|
// src/data-dumps/design-system-dump.ts
|
|
5126
|
-
var DesignSystemDump =
|
|
5137
|
+
var DesignSystemDump = z157.object({
|
|
5127
5138
|
designSystem: DesignSystem,
|
|
5128
5139
|
dataSources: DataSource.array(),
|
|
5129
5140
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -5132,50 +5143,50 @@ var DesignSystemDump = z156.object({
|
|
|
5132
5143
|
});
|
|
5133
5144
|
|
|
5134
5145
|
// src/data-dumps/user-data-dump.ts
|
|
5135
|
-
import { z as
|
|
5146
|
+
import { z as z160 } from "zod";
|
|
5136
5147
|
|
|
5137
5148
|
// src/data-dumps/workspace-dump.ts
|
|
5138
|
-
import { z as
|
|
5149
|
+
import { z as z159 } from "zod";
|
|
5139
5150
|
|
|
5140
5151
|
// src/integrations/integration.ts
|
|
5141
|
-
import { z as
|
|
5142
|
-
var IntegrationDesignSystem =
|
|
5143
|
-
designSystemId:
|
|
5144
|
-
brandId:
|
|
5145
|
-
title:
|
|
5146
|
-
userId:
|
|
5147
|
-
date:
|
|
5148
|
-
});
|
|
5149
|
-
var IntegrationCredentialsType =
|
|
5150
|
-
var IntegrationCredentialsState =
|
|
5151
|
-
var IntegrationCredentialsProfile =
|
|
5152
|
-
id: nullishToOptional(
|
|
5153
|
-
email: nullishToOptional(
|
|
5154
|
-
handle: nullishToOptional(
|
|
5155
|
-
type: nullishToOptional(
|
|
5156
|
-
avatarUrl: nullishToOptional(
|
|
5157
|
-
organization: nullishToOptional(
|
|
5158
|
-
collection: nullishToOptional(
|
|
5159
|
-
});
|
|
5160
|
-
var IntegrationCredentials =
|
|
5161
|
-
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(),
|
|
5162
5173
|
type: IntegrationCredentialsType,
|
|
5163
|
-
integrationId:
|
|
5164
|
-
accessToken:
|
|
5165
|
-
userId:
|
|
5166
|
-
createdAt:
|
|
5167
|
-
refreshToken:
|
|
5168
|
-
tokenName:
|
|
5169
|
-
expiresAt:
|
|
5170
|
-
refreshedAt:
|
|
5171
|
-
username:
|
|
5172
|
-
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(),
|
|
5173
5184
|
profile: IntegrationCredentialsProfile.optional(),
|
|
5174
|
-
customUrl:
|
|
5185
|
+
customUrl: z158.string().optional(),
|
|
5175
5186
|
state: IntegrationCredentialsState,
|
|
5176
5187
|
user: UserMinified.optional()
|
|
5177
5188
|
});
|
|
5178
|
-
var ExtendedIntegrationType =
|
|
5189
|
+
var ExtendedIntegrationType = z158.enum([
|
|
5179
5190
|
"Figma",
|
|
5180
5191
|
"Github",
|
|
5181
5192
|
"Gitlab",
|
|
@@ -5186,26 +5197,26 @@ var ExtendedIntegrationType = z157.enum([
|
|
|
5186
5197
|
]);
|
|
5187
5198
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
5188
5199
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
5189
|
-
var Integration =
|
|
5190
|
-
id:
|
|
5191
|
-
workspaceId:
|
|
5200
|
+
var Integration = z158.object({
|
|
5201
|
+
id: z158.string(),
|
|
5202
|
+
workspaceId: z158.string(),
|
|
5192
5203
|
type: IntegrationType,
|
|
5193
|
-
createdAt:
|
|
5194
|
-
integrationCredentials:
|
|
5195
|
-
});
|
|
5196
|
-
var IntegrationToken =
|
|
5197
|
-
access_token:
|
|
5198
|
-
refresh_token:
|
|
5199
|
-
expires_in:
|
|
5200
|
-
token_type:
|
|
5201
|
-
token_name:
|
|
5202
|
-
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(),
|
|
5203
5214
|
// Azure Cloud PAT only
|
|
5204
|
-
token_azure_collection_name:
|
|
5215
|
+
token_azure_collection_name: z158.string().optional(),
|
|
5205
5216
|
// Azure Server PAT only
|
|
5206
|
-
token_bitbucket_username:
|
|
5217
|
+
token_bitbucket_username: z158.string().optional(),
|
|
5207
5218
|
// Bitbucket only
|
|
5208
|
-
custom_url:
|
|
5219
|
+
custom_url: z158.string().optional().transform((value) => {
|
|
5209
5220
|
if (!value?.trim())
|
|
5210
5221
|
return void 0;
|
|
5211
5222
|
return formatCustomUrl(value);
|
|
@@ -5243,7 +5254,7 @@ function formatCustomUrl(url) {
|
|
|
5243
5254
|
}
|
|
5244
5255
|
|
|
5245
5256
|
// src/data-dumps/workspace-dump.ts
|
|
5246
|
-
var WorkspaceDump =
|
|
5257
|
+
var WorkspaceDump = z159.object({
|
|
5247
5258
|
workspace: Workspace,
|
|
5248
5259
|
designSystems: DesignSystemDump.array(),
|
|
5249
5260
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -5251,122 +5262,122 @@ var WorkspaceDump = z158.object({
|
|
|
5251
5262
|
});
|
|
5252
5263
|
|
|
5253
5264
|
// src/data-dumps/user-data-dump.ts
|
|
5254
|
-
var UserDump =
|
|
5265
|
+
var UserDump = z160.object({
|
|
5255
5266
|
user: User,
|
|
5256
5267
|
workspaces: WorkspaceDump.array()
|
|
5257
5268
|
});
|
|
5258
5269
|
|
|
5259
5270
|
// src/docs-server/session.ts
|
|
5260
|
-
import { z as
|
|
5261
|
-
var NpmProxyToken =
|
|
5262
|
-
access:
|
|
5263
|
-
expiresAt:
|
|
5271
|
+
import { z as z161 } from "zod";
|
|
5272
|
+
var NpmProxyToken = z161.object({
|
|
5273
|
+
access: z161.string(),
|
|
5274
|
+
expiresAt: z161.number()
|
|
5264
5275
|
});
|
|
5265
|
-
var SessionData =
|
|
5266
|
-
returnToUrl:
|
|
5276
|
+
var SessionData = z161.object({
|
|
5277
|
+
returnToUrl: z161.string().optional(),
|
|
5267
5278
|
npmProxyToken: NpmProxyToken.optional()
|
|
5268
5279
|
});
|
|
5269
|
-
var Session =
|
|
5270
|
-
id:
|
|
5271
|
-
expiresAt:
|
|
5272
|
-
userId:
|
|
5280
|
+
var Session = z161.object({
|
|
5281
|
+
id: z161.string(),
|
|
5282
|
+
expiresAt: z161.coerce.date(),
|
|
5283
|
+
userId: z161.string().nullable(),
|
|
5273
5284
|
data: SessionData
|
|
5274
5285
|
});
|
|
5275
|
-
var AuthTokens =
|
|
5276
|
-
access:
|
|
5277
|
-
refresh:
|
|
5286
|
+
var AuthTokens = z161.object({
|
|
5287
|
+
access: z161.string(),
|
|
5288
|
+
refresh: z161.string()
|
|
5278
5289
|
});
|
|
5279
|
-
var UserSession =
|
|
5290
|
+
var UserSession = z161.object({
|
|
5280
5291
|
session: Session,
|
|
5281
5292
|
user: User.nullable()
|
|
5282
5293
|
});
|
|
5283
5294
|
|
|
5284
5295
|
// src/emails/design-system-invite.ts
|
|
5285
|
-
import { z as
|
|
5286
|
-
var DesignSystemInviteEmailRecipient =
|
|
5287
|
-
email:
|
|
5296
|
+
import { z as z162 } from "zod";
|
|
5297
|
+
var DesignSystemInviteEmailRecipient = z162.object({
|
|
5298
|
+
email: z162.string(),
|
|
5288
5299
|
role: WorkspaceRoleSchema
|
|
5289
5300
|
});
|
|
5290
|
-
var DesignSystemInviteEmailData =
|
|
5301
|
+
var DesignSystemInviteEmailData = z162.object({
|
|
5291
5302
|
workspace: Workspace,
|
|
5292
5303
|
designSystem: DesignSystem,
|
|
5293
5304
|
invitedBy: User,
|
|
5294
|
-
documentationDomain:
|
|
5305
|
+
documentationDomain: z162.string().optional()
|
|
5295
5306
|
});
|
|
5296
5307
|
|
|
5297
5308
|
// src/emails/workspace-invite.ts
|
|
5298
|
-
import { z as
|
|
5299
|
-
var WorkspaceInviteEmailRecipient =
|
|
5300
|
-
email:
|
|
5309
|
+
import { z as z163 } from "zod";
|
|
5310
|
+
var WorkspaceInviteEmailRecipient = z163.object({
|
|
5311
|
+
email: z163.string(),
|
|
5301
5312
|
role: WorkspaceRoleSchema
|
|
5302
5313
|
});
|
|
5303
|
-
var WorkspaceInviteEmailData =
|
|
5314
|
+
var WorkspaceInviteEmailData = z163.object({
|
|
5304
5315
|
workspace: Workspace,
|
|
5305
5316
|
invitedBy: User,
|
|
5306
|
-
documentationDomain:
|
|
5317
|
+
documentationDomain: z163.string().optional()
|
|
5307
5318
|
});
|
|
5308
5319
|
|
|
5309
5320
|
// src/events/base.ts
|
|
5310
|
-
import { z as
|
|
5321
|
+
import { z as z166 } from "zod";
|
|
5311
5322
|
|
|
5312
5323
|
// src/events/data-source-imported.ts
|
|
5313
|
-
import { z as
|
|
5314
|
-
var EventDataSourceImported =
|
|
5315
|
-
type:
|
|
5316
|
-
workspaceId:
|
|
5317
|
-
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()
|
|
5318
5329
|
});
|
|
5319
5330
|
|
|
5320
5331
|
// src/events/version-released.ts
|
|
5321
|
-
import { z as
|
|
5322
|
-
var EventVersionReleased =
|
|
5323
|
-
type:
|
|
5324
|
-
workspaceId:
|
|
5325
|
-
designSystemId:
|
|
5326
|
-
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()
|
|
5327
5338
|
});
|
|
5328
5339
|
|
|
5329
5340
|
// src/events/base.ts
|
|
5330
|
-
var Event =
|
|
5341
|
+
var Event = z166.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
5331
5342
|
|
|
5332
5343
|
// src/export/export-runner/export-context.ts
|
|
5333
|
-
import { z as
|
|
5334
|
-
var ExportJobDocumentationContext =
|
|
5335
|
-
isSingleVersionDocs:
|
|
5336
|
-
versionSlug:
|
|
5344
|
+
import { z as z167 } from "zod";
|
|
5345
|
+
var ExportJobDocumentationContext = z167.object({
|
|
5346
|
+
isSingleVersionDocs: z167.boolean(),
|
|
5347
|
+
versionSlug: z167.string(),
|
|
5337
5348
|
environment: PublishedDocEnvironment
|
|
5338
5349
|
});
|
|
5339
|
-
var ExportJobContext =
|
|
5340
|
-
apiUrl:
|
|
5341
|
-
accessToken:
|
|
5342
|
-
designSystemId:
|
|
5343
|
-
designSystemName:
|
|
5344
|
-
exporterId:
|
|
5345
|
-
versionId:
|
|
5346
|
-
brandId:
|
|
5347
|
-
themeId:
|
|
5348
|
-
themePersistentIds:
|
|
5349
|
-
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(),
|
|
5350
5361
|
documentation: ExportJobDocumentationContext.optional()
|
|
5351
5362
|
});
|
|
5352
|
-
var ExportJobExporterConfiguration =
|
|
5353
|
-
exporterPackageUrl:
|
|
5363
|
+
var ExportJobExporterConfiguration = z167.object({
|
|
5364
|
+
exporterPackageUrl: z167.string(),
|
|
5354
5365
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
5355
5366
|
exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional()
|
|
5356
5367
|
});
|
|
5357
5368
|
|
|
5358
5369
|
// src/export/export-runner/exporter-payload.ts
|
|
5359
|
-
import { z as
|
|
5360
|
-
var ExporterFunctionPayload =
|
|
5361
|
-
exportJobId:
|
|
5362
|
-
exportContextId:
|
|
5363
|
-
designSystemId:
|
|
5364
|
-
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()
|
|
5365
5376
|
});
|
|
5366
5377
|
|
|
5367
5378
|
// src/export/export-jobs.ts
|
|
5368
|
-
import { z as
|
|
5369
|
-
var ExportJobDestinationType =
|
|
5379
|
+
import { z as z169 } from "zod";
|
|
5380
|
+
var ExportJobDestinationType = z169.enum([
|
|
5370
5381
|
"s3",
|
|
5371
5382
|
"webhookUrl",
|
|
5372
5383
|
"github",
|
|
@@ -5375,30 +5386,30 @@ var ExportJobDestinationType = z168.enum([
|
|
|
5375
5386
|
"gitlab",
|
|
5376
5387
|
"bitbucket"
|
|
5377
5388
|
]);
|
|
5378
|
-
var ExportJobStatus =
|
|
5379
|
-
var ExportJobLogEntryType =
|
|
5380
|
-
var ExportJobLogEntry =
|
|
5381
|
-
id:
|
|
5382
|
-
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(),
|
|
5383
5394
|
type: ExportJobLogEntryType,
|
|
5384
|
-
message:
|
|
5395
|
+
message: z169.string()
|
|
5385
5396
|
});
|
|
5386
|
-
var ExportJobPullRequestDestinationResult =
|
|
5387
|
-
pullRequestUrl:
|
|
5397
|
+
var ExportJobPullRequestDestinationResult = z169.object({
|
|
5398
|
+
pullRequestUrl: z169.string()
|
|
5388
5399
|
});
|
|
5389
|
-
var ExportJobS3DestinationResult =
|
|
5390
|
-
bucket:
|
|
5391
|
-
urlPrefix:
|
|
5392
|
-
path:
|
|
5393
|
-
files:
|
|
5394
|
-
url: nullishToOptional(
|
|
5395
|
-
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())
|
|
5396
5407
|
});
|
|
5397
|
-
var ExportJobDocsDestinationResult =
|
|
5398
|
-
url:
|
|
5408
|
+
var ExportJobDocsDestinationResult = z169.object({
|
|
5409
|
+
url: z169.string()
|
|
5399
5410
|
});
|
|
5400
|
-
var ExportJobResult =
|
|
5401
|
-
error:
|
|
5411
|
+
var ExportJobResult = z169.object({
|
|
5412
|
+
error: z169.string().optional(),
|
|
5402
5413
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
5403
5414
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
5404
5415
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -5407,22 +5418,22 @@ var ExportJobResult = z168.object({
|
|
|
5407
5418
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
5408
5419
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
5409
5420
|
});
|
|
5410
|
-
var ExportJob =
|
|
5411
|
-
id:
|
|
5412
|
-
createdAt:
|
|
5413
|
-
finishedAt:
|
|
5414
|
-
designSystemId:
|
|
5415
|
-
designSystemVersionId:
|
|
5416
|
-
workspaceId:
|
|
5417
|
-
scheduleId:
|
|
5418
|
-
exporterId:
|
|
5419
|
-
brandId:
|
|
5420
|
-
themeId:
|
|
5421
|
-
themePersistentIds:
|
|
5422
|
-
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(),
|
|
5423
5434
|
status: ExportJobStatus,
|
|
5424
5435
|
result: ExportJobResult.optional(),
|
|
5425
|
-
createdByUserId:
|
|
5436
|
+
createdByUserId: z169.string().optional(),
|
|
5426
5437
|
exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
|
|
5427
5438
|
// Destinations
|
|
5428
5439
|
...ExportDestinationsMap.shape
|
|
@@ -5437,26 +5448,26 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
5437
5448
|
themeId: true,
|
|
5438
5449
|
brandId: true
|
|
5439
5450
|
}).extend({
|
|
5440
|
-
destinations:
|
|
5451
|
+
destinations: z169.array(ExportJobDestinationType),
|
|
5441
5452
|
docsEnvironment: PublishedDocEnvironment
|
|
5442
5453
|
}).partial();
|
|
5443
5454
|
|
|
5444
5455
|
// src/export/exporter-workspace-membership-role.ts
|
|
5445
|
-
import { z as
|
|
5446
|
-
var ExporterWorkspaceMembershipRole =
|
|
5456
|
+
import { z as z170 } from "zod";
|
|
5457
|
+
var ExporterWorkspaceMembershipRole = z170.enum(["Owner", "OwnerArchived", "User"]);
|
|
5447
5458
|
|
|
5448
5459
|
// src/export/exporter-workspace-membership.ts
|
|
5449
|
-
import { z as
|
|
5450
|
-
var ExporterWorkspaceMembership =
|
|
5451
|
-
id:
|
|
5452
|
-
workspaceId:
|
|
5453
|
-
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(),
|
|
5454
5465
|
role: ExporterWorkspaceMembershipRole
|
|
5455
5466
|
});
|
|
5456
5467
|
|
|
5457
5468
|
// src/feature-flags/feature-flags.ts
|
|
5458
|
-
import { z as
|
|
5459
|
-
var FlaggedFeature =
|
|
5469
|
+
import { z as z172 } from "zod";
|
|
5470
|
+
var FlaggedFeature = z172.enum([
|
|
5460
5471
|
"FigmaImporterV2",
|
|
5461
5472
|
"ShadowOpacityOptional",
|
|
5462
5473
|
"DisableImporter",
|
|
@@ -5466,20 +5477,20 @@ var FlaggedFeature = z171.enum([
|
|
|
5466
5477
|
"ShadowPropsKeepAliases",
|
|
5467
5478
|
"NonCompatibleTypeChanges"
|
|
5468
5479
|
]);
|
|
5469
|
-
var FeatureFlagMap =
|
|
5470
|
-
var FeatureFlag =
|
|
5471
|
-
id:
|
|
5480
|
+
var FeatureFlagMap = z172.record(FlaggedFeature, z172.boolean());
|
|
5481
|
+
var FeatureFlag = z172.object({
|
|
5482
|
+
id: z172.string(),
|
|
5472
5483
|
feature: FlaggedFeature,
|
|
5473
|
-
createdAt:
|
|
5474
|
-
enabled:
|
|
5475
|
-
designSystemId:
|
|
5484
|
+
createdAt: z172.coerce.date(),
|
|
5485
|
+
enabled: z172.boolean(),
|
|
5486
|
+
designSystemId: z172.string().optional()
|
|
5476
5487
|
});
|
|
5477
5488
|
|
|
5478
5489
|
// src/integrations/external-oauth-request.ts
|
|
5479
|
-
import { z as
|
|
5490
|
+
import { z as z174 } from "zod";
|
|
5480
5491
|
|
|
5481
5492
|
// src/integrations/oauth-providers.ts
|
|
5482
|
-
import { z as
|
|
5493
|
+
import { z as z173 } from "zod";
|
|
5483
5494
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5484
5495
|
OAuthProviderNames2["Figma"] = "figma";
|
|
5485
5496
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -5488,128 +5499,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
5488
5499
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
5489
5500
|
return OAuthProviderNames2;
|
|
5490
5501
|
})(OAuthProviderNames || {});
|
|
5491
|
-
var OAuthProviderSchema =
|
|
5502
|
+
var OAuthProviderSchema = z173.nativeEnum(OAuthProviderNames);
|
|
5492
5503
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
5493
5504
|
|
|
5494
5505
|
// src/integrations/external-oauth-request.ts
|
|
5495
|
-
var ExternalOAuthRequest =
|
|
5496
|
-
id:
|
|
5506
|
+
var ExternalOAuthRequest = z174.object({
|
|
5507
|
+
id: z174.string(),
|
|
5497
5508
|
provider: OAuthProviderSchema,
|
|
5498
|
-
userId:
|
|
5499
|
-
state:
|
|
5500
|
-
createdAt:
|
|
5509
|
+
userId: z174.string(),
|
|
5510
|
+
state: z174.string(),
|
|
5511
|
+
createdAt: z174.coerce.date()
|
|
5501
5512
|
});
|
|
5502
5513
|
|
|
5503
5514
|
// src/integrations/git.ts
|
|
5504
|
-
import { z as
|
|
5505
|
-
var GitObjectsQuery =
|
|
5506
|
-
organization:
|
|
5515
|
+
import { z as z175 } from "zod";
|
|
5516
|
+
var GitObjectsQuery = z175.object({
|
|
5517
|
+
organization: z175.string().optional(),
|
|
5507
5518
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5508
|
-
project:
|
|
5519
|
+
project: z175.string().optional(),
|
|
5509
5520
|
// Only for Bitbucket and Azure
|
|
5510
|
-
repository:
|
|
5521
|
+
repository: z175.string().optional(),
|
|
5511
5522
|
// For all providers. For Gitlab, it's called "project".
|
|
5512
|
-
branch:
|
|
5523
|
+
branch: z175.string().optional(),
|
|
5513
5524
|
// For all providers.
|
|
5514
|
-
user:
|
|
5525
|
+
user: z175.string().optional()
|
|
5515
5526
|
// Gitlab user
|
|
5516
5527
|
});
|
|
5517
|
-
var GitOrganization =
|
|
5518
|
-
id:
|
|
5519
|
-
name:
|
|
5520
|
-
url:
|
|
5521
|
-
slug:
|
|
5528
|
+
var GitOrganization = z175.object({
|
|
5529
|
+
id: z175.string(),
|
|
5530
|
+
name: z175.string(),
|
|
5531
|
+
url: z175.string(),
|
|
5532
|
+
slug: z175.string()
|
|
5522
5533
|
});
|
|
5523
|
-
var GitProject =
|
|
5524
|
-
id:
|
|
5525
|
-
name:
|
|
5526
|
-
url:
|
|
5527
|
-
slug:
|
|
5534
|
+
var GitProject = z175.object({
|
|
5535
|
+
id: z175.string(),
|
|
5536
|
+
name: z175.string(),
|
|
5537
|
+
url: z175.string(),
|
|
5538
|
+
slug: z175.string()
|
|
5528
5539
|
});
|
|
5529
|
-
var GitRepository =
|
|
5530
|
-
id:
|
|
5531
|
-
name:
|
|
5532
|
-
url:
|
|
5533
|
-
slug:
|
|
5540
|
+
var GitRepository = z175.object({
|
|
5541
|
+
id: z175.string(),
|
|
5542
|
+
name: z175.string(),
|
|
5543
|
+
url: z175.string(),
|
|
5544
|
+
slug: z175.string(),
|
|
5534
5545
|
/**
|
|
5535
5546
|
* Can be undefined when:
|
|
5536
5547
|
* - there are no branches in the repository yet
|
|
5537
5548
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5538
5549
|
*/
|
|
5539
|
-
defaultBranch:
|
|
5550
|
+
defaultBranch: z175.string().optional()
|
|
5540
5551
|
});
|
|
5541
|
-
var GitBranch =
|
|
5542
|
-
name:
|
|
5543
|
-
lastCommitId:
|
|
5552
|
+
var GitBranch = z175.object({
|
|
5553
|
+
name: z175.string(),
|
|
5554
|
+
lastCommitId: z175.string()
|
|
5544
5555
|
});
|
|
5545
5556
|
|
|
5546
5557
|
// src/integrations/oauth-token.ts
|
|
5547
|
-
import { z as
|
|
5548
|
-
var IntegrationTokenSchemaOld =
|
|
5549
|
-
id:
|
|
5558
|
+
import { z as z176 } from "zod";
|
|
5559
|
+
var IntegrationTokenSchemaOld = z176.object({
|
|
5560
|
+
id: z176.string(),
|
|
5550
5561
|
provider: OAuthProviderSchema,
|
|
5551
|
-
scope:
|
|
5552
|
-
userId:
|
|
5553
|
-
accessToken:
|
|
5554
|
-
refreshToken:
|
|
5555
|
-
expiresAt:
|
|
5556
|
-
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()
|
|
5557
5568
|
});
|
|
5558
5569
|
|
|
5559
5570
|
// src/integrations/workspace-oauth-requests.ts
|
|
5560
|
-
import { z as
|
|
5561
|
-
var WorkspaceOAuthRequestSchema =
|
|
5562
|
-
id:
|
|
5563
|
-
workspaceId:
|
|
5571
|
+
import { z as z177 } from "zod";
|
|
5572
|
+
var WorkspaceOAuthRequestSchema = z177.object({
|
|
5573
|
+
id: z177.string(),
|
|
5574
|
+
workspaceId: z177.string(),
|
|
5564
5575
|
provider: OAuthProviderSchema,
|
|
5565
|
-
userId:
|
|
5566
|
-
createdAt:
|
|
5576
|
+
userId: z177.string(),
|
|
5577
|
+
createdAt: z177.coerce.date()
|
|
5567
5578
|
});
|
|
5568
5579
|
|
|
5569
5580
|
// src/npm/npm-package.ts
|
|
5570
|
-
import { z as
|
|
5571
|
-
var AnyRecord =
|
|
5581
|
+
import { z as z178 } from "zod";
|
|
5582
|
+
var AnyRecord = z178.record(z178.any());
|
|
5572
5583
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5573
|
-
|
|
5574
|
-
tarball:
|
|
5584
|
+
z178.object({
|
|
5585
|
+
tarball: z178.string()
|
|
5575
5586
|
})
|
|
5576
5587
|
);
|
|
5577
5588
|
var NpmPackageVersion = AnyRecord.and(
|
|
5578
|
-
|
|
5589
|
+
z178.object({
|
|
5579
5590
|
dist: NpmPackageVersionDist
|
|
5580
5591
|
})
|
|
5581
5592
|
);
|
|
5582
5593
|
var NpmPackage = AnyRecord.and(
|
|
5583
|
-
|
|
5584
|
-
_id:
|
|
5585
|
-
name:
|
|
5594
|
+
z178.object({
|
|
5595
|
+
_id: z178.string(),
|
|
5596
|
+
name: z178.string(),
|
|
5586
5597
|
// e.g. "latest": "1.2.3"
|
|
5587
|
-
"dist-tags":
|
|
5598
|
+
"dist-tags": z178.record(z178.string(), z178.string()),
|
|
5588
5599
|
// "1.2.3": {...}
|
|
5589
|
-
versions:
|
|
5600
|
+
versions: z178.record(NpmPackageVersion)
|
|
5590
5601
|
})
|
|
5591
5602
|
);
|
|
5592
5603
|
|
|
5593
5604
|
// src/npm/npm-proxy-token-payload.ts
|
|
5594
|
-
import { z as
|
|
5595
|
-
var NpmProxyTokenPayload =
|
|
5596
|
-
npmProxyRegistryConfigId:
|
|
5605
|
+
import { z as z179 } from "zod";
|
|
5606
|
+
var NpmProxyTokenPayload = z179.object({
|
|
5607
|
+
npmProxyRegistryConfigId: z179.string()
|
|
5597
5608
|
});
|
|
5598
5609
|
|
|
5599
5610
|
// src/tokens/personal-access-token.ts
|
|
5600
|
-
import { z as
|
|
5601
|
-
var PersonalAccessToken =
|
|
5602
|
-
id:
|
|
5603
|
-
userId:
|
|
5604
|
-
workspaceId:
|
|
5605
|
-
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(),
|
|
5606
5617
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5607
|
-
name:
|
|
5608
|
-
hidden:
|
|
5609
|
-
token:
|
|
5610
|
-
scope:
|
|
5611
|
-
createdAt:
|
|
5612
|
-
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()
|
|
5613
5624
|
});
|
|
5614
5625
|
export {
|
|
5615
5626
|
Address,
|
|
@@ -6102,6 +6113,7 @@ export {
|
|
|
6102
6113
|
PageBlockUrlPreview,
|
|
6103
6114
|
PageBlockV1,
|
|
6104
6115
|
PageBlockV2,
|
|
6116
|
+
PageRedirect,
|
|
6105
6117
|
PageSectionAppearanceV2,
|
|
6106
6118
|
PageSectionColumnV2,
|
|
6107
6119
|
PageSectionEditorModelV2,
|