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