@supernova-studio/client 0.54.33 → 0.54.35
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 +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +37 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +920 -901
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/transport/request-executor-error.ts +36 -5
package/dist/index.mjs
CHANGED
|
@@ -162,23 +162,24 @@ import { z as z153 } from "zod";
|
|
|
162
162
|
import { z as z152 } from "zod";
|
|
163
163
|
import { z as z151 } from "zod";
|
|
164
164
|
import { z as z154 } from "zod";
|
|
165
|
-
import { z as z157 } from "zod";
|
|
166
165
|
import { z as z155 } from "zod";
|
|
167
|
-
import { z as z156 } from "zod";
|
|
168
166
|
import { z as z158 } from "zod";
|
|
167
|
+
import { z as z156 } from "zod";
|
|
168
|
+
import { z as z157 } from "zod";
|
|
169
169
|
import { z as z159 } from "zod";
|
|
170
170
|
import { z as z160 } from "zod";
|
|
171
171
|
import { z as z161 } from "zod";
|
|
172
172
|
import { z as z162 } from "zod";
|
|
173
173
|
import { z as z163 } from "zod";
|
|
174
|
-
import { z as z165 } from "zod";
|
|
175
174
|
import { z as z164 } from "zod";
|
|
176
175
|
import { z as z166 } from "zod";
|
|
176
|
+
import { z as z165 } from "zod";
|
|
177
177
|
import { z as z167 } from "zod";
|
|
178
178
|
import { z as z168 } from "zod";
|
|
179
179
|
import { z as z169 } from "zod";
|
|
180
180
|
import { z as z170 } from "zod";
|
|
181
181
|
import { z as z171 } from "zod";
|
|
182
|
+
import { z as z172 } from "zod";
|
|
182
183
|
var __defProp2 = Object.defineProperty;
|
|
183
184
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
184
185
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -3666,20 +3667,7 @@ var HANDLE_MIN_LENGTH = 2;
|
|
|
3666
3667
|
var HANDLE_MAX_LENGTH = 64;
|
|
3667
3668
|
var CreateWorkspaceInput = z120.object({
|
|
3668
3669
|
name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
3669
|
-
|
|
3670
|
-
priceId: z120.string(),
|
|
3671
|
-
billingEmail: z120.string().email().optional(),
|
|
3672
|
-
handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
3673
|
-
invites: UserInvites.optional(),
|
|
3674
|
-
promoCode: z120.string().optional(),
|
|
3675
|
-
status: InternalStatusSchema.optional(),
|
|
3676
|
-
planInterval: BillingIntervalSchema.optional(),
|
|
3677
|
-
seats: z120.number().optional(),
|
|
3678
|
-
seatLimit: z120.number().optional(),
|
|
3679
|
-
card: CardSchema.optional(),
|
|
3680
|
-
sso: SsoProvider.optional(),
|
|
3681
|
-
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
3682
|
-
ipWhitelist: WorkspaceIpSettings.optional()
|
|
3670
|
+
handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
3683
3671
|
});
|
|
3684
3672
|
var WorkspaceInvitation = z121.object({
|
|
3685
3673
|
id: z121.string(),
|
|
@@ -4331,45 +4319,54 @@ var UserSession = z154.object({
|
|
|
4331
4319
|
session: Session,
|
|
4332
4320
|
user: User.nullable()
|
|
4333
4321
|
});
|
|
4334
|
-
var
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
designSystemId: z155.string()
|
|
4322
|
+
var DesignSystemInviteEmailRecipient = z155.object({
|
|
4323
|
+
email: z155.string(),
|
|
4324
|
+
role: WorkspaceRoleSchema
|
|
4338
4325
|
});
|
|
4339
|
-
var
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
versionId: z156.string()
|
|
4326
|
+
var DesignSystemInviteEmailData = z155.object({
|
|
4327
|
+
designSystem: DesignSystem,
|
|
4328
|
+
invitedBy: User,
|
|
4329
|
+
documentationDomain: z155.string().optional()
|
|
4344
4330
|
});
|
|
4345
|
-
var
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4331
|
+
var EventDataSourceImported = z156.object({
|
|
4332
|
+
type: z156.literal("DataSourceImported"),
|
|
4333
|
+
workspaceId: z156.string(),
|
|
4334
|
+
designSystemId: z156.string()
|
|
4335
|
+
});
|
|
4336
|
+
var EventVersionReleased = z157.object({
|
|
4337
|
+
type: z157.literal("DesignSystemVersionReleased"),
|
|
4338
|
+
workspaceId: z157.string(),
|
|
4339
|
+
designSystemId: z157.string(),
|
|
4340
|
+
versionId: z157.string()
|
|
4341
|
+
});
|
|
4342
|
+
var Event = z158.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4343
|
+
var ExportJobDocumentationContext = z159.object({
|
|
4344
|
+
isSingleVersionDocs: z159.boolean(),
|
|
4345
|
+
versionSlug: z159.string(),
|
|
4349
4346
|
environment: PublishedDocEnvironment
|
|
4350
4347
|
});
|
|
4351
|
-
var ExportJobContext =
|
|
4352
|
-
apiUrl:
|
|
4353
|
-
accessToken:
|
|
4354
|
-
designSystemId:
|
|
4355
|
-
designSystemName:
|
|
4356
|
-
exporterId:
|
|
4357
|
-
versionId:
|
|
4358
|
-
brandId:
|
|
4359
|
-
themeId:
|
|
4360
|
-
themePersistentIds:
|
|
4361
|
-
exporterName:
|
|
4362
|
-
exporterPackageUrl:
|
|
4348
|
+
var ExportJobContext = z159.object({
|
|
4349
|
+
apiUrl: z159.string(),
|
|
4350
|
+
accessToken: z159.string(),
|
|
4351
|
+
designSystemId: z159.string(),
|
|
4352
|
+
designSystemName: z159.string(),
|
|
4353
|
+
exporterId: z159.string(),
|
|
4354
|
+
versionId: z159.string(),
|
|
4355
|
+
brandId: z159.string().optional(),
|
|
4356
|
+
themeId: z159.string().optional(),
|
|
4357
|
+
themePersistentIds: z159.string().array().optional(),
|
|
4358
|
+
exporterName: z159.string(),
|
|
4359
|
+
exporterPackageUrl: z159.string(),
|
|
4363
4360
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4364
4361
|
documentation: ExportJobDocumentationContext.optional()
|
|
4365
4362
|
});
|
|
4366
|
-
var ExporterFunctionPayload =
|
|
4367
|
-
exportJobId:
|
|
4368
|
-
exportContextId:
|
|
4369
|
-
designSystemId:
|
|
4370
|
-
workspaceId:
|
|
4363
|
+
var ExporterFunctionPayload = z160.object({
|
|
4364
|
+
exportJobId: z160.string(),
|
|
4365
|
+
exportContextId: z160.string(),
|
|
4366
|
+
designSystemId: z160.string(),
|
|
4367
|
+
workspaceId: z160.string()
|
|
4371
4368
|
});
|
|
4372
|
-
var ExportJobDestinationType =
|
|
4369
|
+
var ExportJobDestinationType = z161.enum([
|
|
4373
4370
|
"s3",
|
|
4374
4371
|
"webhookUrl",
|
|
4375
4372
|
"github",
|
|
@@ -4378,30 +4375,30 @@ var ExportJobDestinationType = z160.enum([
|
|
|
4378
4375
|
"gitlab",
|
|
4379
4376
|
"bitbucket"
|
|
4380
4377
|
]);
|
|
4381
|
-
var ExportJobStatus =
|
|
4382
|
-
var ExportJobLogEntryType =
|
|
4383
|
-
var ExportJobLogEntry =
|
|
4384
|
-
id:
|
|
4385
|
-
time:
|
|
4378
|
+
var ExportJobStatus = z161.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4379
|
+
var ExportJobLogEntryType = z161.enum(["success", "info", "warning", "error", "user"]);
|
|
4380
|
+
var ExportJobLogEntry = z161.object({
|
|
4381
|
+
id: z161.string().optional(),
|
|
4382
|
+
time: z161.coerce.date(),
|
|
4386
4383
|
type: ExportJobLogEntryType,
|
|
4387
|
-
message:
|
|
4384
|
+
message: z161.string()
|
|
4388
4385
|
});
|
|
4389
|
-
var ExportJobPullRequestDestinationResult =
|
|
4390
|
-
pullRequestUrl:
|
|
4386
|
+
var ExportJobPullRequestDestinationResult = z161.object({
|
|
4387
|
+
pullRequestUrl: z161.string()
|
|
4391
4388
|
});
|
|
4392
|
-
var ExportJobS3DestinationResult =
|
|
4393
|
-
bucket:
|
|
4394
|
-
urlPrefix:
|
|
4395
|
-
path:
|
|
4396
|
-
files:
|
|
4397
|
-
url: nullishToOptional(
|
|
4398
|
-
urls: nullishToOptional(
|
|
4389
|
+
var ExportJobS3DestinationResult = z161.object({
|
|
4390
|
+
bucket: z161.string(),
|
|
4391
|
+
urlPrefix: z161.string().optional(),
|
|
4392
|
+
path: z161.string(),
|
|
4393
|
+
files: z161.array(z161.string()),
|
|
4394
|
+
url: nullishToOptional(z161.string()),
|
|
4395
|
+
urls: nullishToOptional(z161.string().array())
|
|
4399
4396
|
});
|
|
4400
|
-
var ExportJobDocsDestinationResult =
|
|
4401
|
-
url:
|
|
4397
|
+
var ExportJobDocsDestinationResult = z161.object({
|
|
4398
|
+
url: z161.string()
|
|
4402
4399
|
});
|
|
4403
|
-
var ExportJobResult =
|
|
4404
|
-
error:
|
|
4400
|
+
var ExportJobResult = z161.object({
|
|
4401
|
+
error: z161.string().optional(),
|
|
4405
4402
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4406
4403
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4407
4404
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4410,22 +4407,22 @@ var ExportJobResult = z160.object({
|
|
|
4410
4407
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4411
4408
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4412
4409
|
});
|
|
4413
|
-
var ExportJob =
|
|
4414
|
-
id:
|
|
4415
|
-
createdAt:
|
|
4416
|
-
finishedAt:
|
|
4417
|
-
designSystemId:
|
|
4418
|
-
designSystemVersionId:
|
|
4419
|
-
workspaceId:
|
|
4420
|
-
scheduleId:
|
|
4421
|
-
exporterId:
|
|
4422
|
-
brandId:
|
|
4423
|
-
themeId:
|
|
4424
|
-
themePersistentIds:
|
|
4425
|
-
estimatedExecutionTime:
|
|
4410
|
+
var ExportJob = z161.object({
|
|
4411
|
+
id: z161.string(),
|
|
4412
|
+
createdAt: z161.coerce.date(),
|
|
4413
|
+
finishedAt: z161.coerce.date().optional(),
|
|
4414
|
+
designSystemId: z161.string(),
|
|
4415
|
+
designSystemVersionId: z161.string(),
|
|
4416
|
+
workspaceId: z161.string(),
|
|
4417
|
+
scheduleId: z161.string().nullish(),
|
|
4418
|
+
exporterId: z161.string(),
|
|
4419
|
+
brandId: z161.string().optional(),
|
|
4420
|
+
themeId: z161.string().optional(),
|
|
4421
|
+
themePersistentIds: z161.string().array().optional(),
|
|
4422
|
+
estimatedExecutionTime: z161.number().optional(),
|
|
4426
4423
|
status: ExportJobStatus,
|
|
4427
4424
|
result: ExportJobResult.optional(),
|
|
4428
|
-
createdByUserId:
|
|
4425
|
+
createdByUserId: z161.string().optional(),
|
|
4429
4426
|
// Destinations
|
|
4430
4427
|
...ExportDestinationsMap.shape
|
|
4431
4428
|
});
|
|
@@ -4439,24 +4436,24 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4439
4436
|
themeId: true,
|
|
4440
4437
|
brandId: true
|
|
4441
4438
|
}).extend({
|
|
4442
|
-
destinations:
|
|
4439
|
+
destinations: z161.array(ExportJobDestinationType),
|
|
4443
4440
|
docsEnvironment: PublishedDocEnvironment
|
|
4444
4441
|
}).partial();
|
|
4445
|
-
var ExporterWorkspaceMembershipRole =
|
|
4446
|
-
var ExporterWorkspaceMembership =
|
|
4447
|
-
id:
|
|
4448
|
-
workspaceId:
|
|
4449
|
-
exporterId:
|
|
4442
|
+
var ExporterWorkspaceMembershipRole = z162.enum(["Owner", "OwnerArchived", "User"]);
|
|
4443
|
+
var ExporterWorkspaceMembership = z163.object({
|
|
4444
|
+
id: z163.string(),
|
|
4445
|
+
workspaceId: z163.string(),
|
|
4446
|
+
exporterId: z163.string(),
|
|
4450
4447
|
role: ExporterWorkspaceMembershipRole
|
|
4451
4448
|
});
|
|
4452
|
-
var FlaggedFeature =
|
|
4453
|
-
var FeatureFlagMap =
|
|
4454
|
-
var FeatureFlag =
|
|
4455
|
-
id:
|
|
4449
|
+
var FlaggedFeature = z164.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
|
|
4450
|
+
var FeatureFlagMap = z164.record(FlaggedFeature, z164.boolean());
|
|
4451
|
+
var FeatureFlag = z164.object({
|
|
4452
|
+
id: z164.string(),
|
|
4456
4453
|
feature: FlaggedFeature,
|
|
4457
|
-
createdAt:
|
|
4458
|
-
enabled:
|
|
4459
|
-
designSystemId:
|
|
4454
|
+
createdAt: z164.coerce.date(),
|
|
4455
|
+
enabled: z164.boolean(),
|
|
4456
|
+
designSystemId: z164.string().optional()
|
|
4460
4457
|
});
|
|
4461
4458
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4462
4459
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -4466,107 +4463,107 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4466
4463
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4467
4464
|
return OAuthProviderNames2;
|
|
4468
4465
|
})(OAuthProviderNames || {});
|
|
4469
|
-
var OAuthProviderSchema =
|
|
4466
|
+
var OAuthProviderSchema = z165.nativeEnum(OAuthProviderNames);
|
|
4470
4467
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4471
|
-
var ExternalOAuthRequest =
|
|
4472
|
-
id:
|
|
4468
|
+
var ExternalOAuthRequest = z166.object({
|
|
4469
|
+
id: z166.string(),
|
|
4473
4470
|
provider: OAuthProviderSchema,
|
|
4474
|
-
userId:
|
|
4475
|
-
state:
|
|
4476
|
-
createdAt:
|
|
4471
|
+
userId: z166.string(),
|
|
4472
|
+
state: z166.string(),
|
|
4473
|
+
createdAt: z166.coerce.date()
|
|
4477
4474
|
});
|
|
4478
|
-
var GitObjectsQuery =
|
|
4479
|
-
organization:
|
|
4475
|
+
var GitObjectsQuery = z167.object({
|
|
4476
|
+
organization: z167.string().optional(),
|
|
4480
4477
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4481
|
-
project:
|
|
4478
|
+
project: z167.string().optional(),
|
|
4482
4479
|
// Only for Bitbucket and Azure
|
|
4483
|
-
repository:
|
|
4480
|
+
repository: z167.string().optional(),
|
|
4484
4481
|
// For all providers. For Gitlab, it's called "project".
|
|
4485
|
-
branch:
|
|
4482
|
+
branch: z167.string().optional(),
|
|
4486
4483
|
// For all providers.
|
|
4487
|
-
user:
|
|
4484
|
+
user: z167.string().optional()
|
|
4488
4485
|
// Gitlab user
|
|
4489
4486
|
});
|
|
4490
|
-
var GitOrganization =
|
|
4491
|
-
id:
|
|
4492
|
-
name:
|
|
4493
|
-
url:
|
|
4494
|
-
slug:
|
|
4487
|
+
var GitOrganization = z167.object({
|
|
4488
|
+
id: z167.string(),
|
|
4489
|
+
name: z167.string(),
|
|
4490
|
+
url: z167.string(),
|
|
4491
|
+
slug: z167.string()
|
|
4495
4492
|
});
|
|
4496
|
-
var GitProject =
|
|
4497
|
-
id:
|
|
4498
|
-
name:
|
|
4499
|
-
url:
|
|
4500
|
-
slug:
|
|
4493
|
+
var GitProject = z167.object({
|
|
4494
|
+
id: z167.string(),
|
|
4495
|
+
name: z167.string(),
|
|
4496
|
+
url: z167.string(),
|
|
4497
|
+
slug: z167.string()
|
|
4501
4498
|
});
|
|
4502
|
-
var GitRepository =
|
|
4503
|
-
id:
|
|
4504
|
-
name:
|
|
4505
|
-
url:
|
|
4506
|
-
slug:
|
|
4499
|
+
var GitRepository = z167.object({
|
|
4500
|
+
id: z167.string(),
|
|
4501
|
+
name: z167.string(),
|
|
4502
|
+
url: z167.string(),
|
|
4503
|
+
slug: z167.string(),
|
|
4507
4504
|
/**
|
|
4508
4505
|
* Can be undefined when:
|
|
4509
4506
|
* - there are no branches in the repository yet
|
|
4510
4507
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4511
4508
|
*/
|
|
4512
|
-
defaultBranch:
|
|
4509
|
+
defaultBranch: z167.string().optional()
|
|
4513
4510
|
});
|
|
4514
|
-
var GitBranch =
|
|
4515
|
-
name:
|
|
4516
|
-
lastCommitId:
|
|
4511
|
+
var GitBranch = z167.object({
|
|
4512
|
+
name: z167.string(),
|
|
4513
|
+
lastCommitId: z167.string()
|
|
4517
4514
|
});
|
|
4518
|
-
var IntegrationTokenSchemaOld =
|
|
4519
|
-
id: z167.string(),
|
|
4520
|
-
provider: OAuthProviderSchema,
|
|
4521
|
-
scope: z167.string(),
|
|
4522
|
-
userId: z167.string(),
|
|
4523
|
-
accessToken: z167.string(),
|
|
4524
|
-
refreshToken: z167.string(),
|
|
4525
|
-
expiresAt: z167.coerce.date(),
|
|
4526
|
-
externalUserId: z167.string().nullish()
|
|
4527
|
-
});
|
|
4528
|
-
var WorkspaceOAuthRequestSchema = z168.object({
|
|
4515
|
+
var IntegrationTokenSchemaOld = z168.object({
|
|
4529
4516
|
id: z168.string(),
|
|
4530
|
-
workspaceId: z168.string(),
|
|
4531
4517
|
provider: OAuthProviderSchema,
|
|
4518
|
+
scope: z168.string(),
|
|
4532
4519
|
userId: z168.string(),
|
|
4533
|
-
|
|
4520
|
+
accessToken: z168.string(),
|
|
4521
|
+
refreshToken: z168.string(),
|
|
4522
|
+
expiresAt: z168.coerce.date(),
|
|
4523
|
+
externalUserId: z168.string().nullish()
|
|
4524
|
+
});
|
|
4525
|
+
var WorkspaceOAuthRequestSchema = z169.object({
|
|
4526
|
+
id: z169.string(),
|
|
4527
|
+
workspaceId: z169.string(),
|
|
4528
|
+
provider: OAuthProviderSchema,
|
|
4529
|
+
userId: z169.string(),
|
|
4530
|
+
createdAt: z169.coerce.date()
|
|
4534
4531
|
});
|
|
4535
|
-
var AnyRecord =
|
|
4532
|
+
var AnyRecord = z170.record(z170.any());
|
|
4536
4533
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4537
|
-
|
|
4538
|
-
tarball:
|
|
4534
|
+
z170.object({
|
|
4535
|
+
tarball: z170.string()
|
|
4539
4536
|
})
|
|
4540
4537
|
);
|
|
4541
4538
|
var NpmPackageVersion = AnyRecord.and(
|
|
4542
|
-
|
|
4539
|
+
z170.object({
|
|
4543
4540
|
dist: NpmPackageVersionDist
|
|
4544
4541
|
})
|
|
4545
4542
|
);
|
|
4546
4543
|
var NpmPackage = AnyRecord.and(
|
|
4547
|
-
|
|
4548
|
-
_id:
|
|
4549
|
-
name:
|
|
4544
|
+
z170.object({
|
|
4545
|
+
_id: z170.string(),
|
|
4546
|
+
name: z170.string(),
|
|
4550
4547
|
// e.g. "latest": "1.2.3"
|
|
4551
|
-
"dist-tags":
|
|
4548
|
+
"dist-tags": z170.record(z170.string(), z170.string()),
|
|
4552
4549
|
// "1.2.3": {...}
|
|
4553
|
-
versions:
|
|
4550
|
+
versions: z170.record(NpmPackageVersion)
|
|
4554
4551
|
})
|
|
4555
4552
|
);
|
|
4556
|
-
var NpmProxyTokenPayload =
|
|
4557
|
-
npmProxyRegistryConfigId:
|
|
4553
|
+
var NpmProxyTokenPayload = z171.object({
|
|
4554
|
+
npmProxyRegistryConfigId: z171.string()
|
|
4558
4555
|
});
|
|
4559
|
-
var PersonalAccessToken =
|
|
4560
|
-
id:
|
|
4561
|
-
userId:
|
|
4562
|
-
workspaceId:
|
|
4556
|
+
var PersonalAccessToken = z172.object({
|
|
4557
|
+
id: z172.string(),
|
|
4558
|
+
userId: z172.string(),
|
|
4559
|
+
workspaceId: z172.string().optional(),
|
|
4563
4560
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
4564
|
-
name:
|
|
4565
|
-
hidden:
|
|
4566
|
-
token:
|
|
4567
|
-
scope:
|
|
4568
|
-
createdAt:
|
|
4569
|
-
expireAt:
|
|
4561
|
+
name: z172.string(),
|
|
4562
|
+
hidden: z172.boolean(),
|
|
4563
|
+
token: z172.string(),
|
|
4564
|
+
scope: z172.string().optional(),
|
|
4565
|
+
createdAt: z172.coerce.date(),
|
|
4566
|
+
expireAt: z172.coerce.date().optional()
|
|
4570
4567
|
});
|
|
4571
4568
|
|
|
4572
4569
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
@@ -4983,204 +4980,204 @@ function integrationCredentialToDto(credential) {
|
|
|
4983
4980
|
}
|
|
4984
4981
|
|
|
4985
4982
|
// src/api/dto/aux/pagination.ts
|
|
4986
|
-
import { z as
|
|
4987
|
-
var DTOPagination =
|
|
4988
|
-
limit:
|
|
4989
|
-
offset:
|
|
4983
|
+
import { z as z173 } from "zod";
|
|
4984
|
+
var DTOPagination = z173.object({
|
|
4985
|
+
limit: z173.string().optional(),
|
|
4986
|
+
offset: z173.string().optional()
|
|
4990
4987
|
});
|
|
4991
4988
|
|
|
4992
4989
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
4993
|
-
import { z as
|
|
4990
|
+
import { z as z198 } from "zod";
|
|
4994
4991
|
|
|
4995
4992
|
// src/api/dto/design-systems/brand.ts
|
|
4996
|
-
import { z as
|
|
4997
|
-
var DTOBrand =
|
|
4998
|
-
id:
|
|
4999
|
-
designSystemVersionId:
|
|
5000
|
-
persistentId:
|
|
4993
|
+
import { z as z174 } from "zod";
|
|
4994
|
+
var DTOBrand = z174.object({
|
|
4995
|
+
id: z174.string(),
|
|
4996
|
+
designSystemVersionId: z174.string(),
|
|
4997
|
+
persistentId: z174.string(),
|
|
5001
4998
|
meta: ObjectMeta
|
|
5002
4999
|
});
|
|
5003
|
-
var DTOBrandGetResponse =
|
|
5004
|
-
var DTOBrandCreateResponse =
|
|
5000
|
+
var DTOBrandGetResponse = z174.object({ brand: DTOBrand });
|
|
5001
|
+
var DTOBrandCreateResponse = z174.object({
|
|
5005
5002
|
brand: DTOBrand
|
|
5006
5003
|
});
|
|
5007
|
-
var DTOBrandsListResponse =
|
|
5004
|
+
var DTOBrandsListResponse = z174.object({ brands: z174.array(DTOBrand) });
|
|
5008
5005
|
|
|
5009
5006
|
// src/api/dto/design-systems/data-source.ts
|
|
5010
|
-
import { z as
|
|
5011
|
-
var DTODataSourceFigmaFileVersion =
|
|
5012
|
-
id:
|
|
5013
|
-
created_at:
|
|
5014
|
-
label:
|
|
5015
|
-
description:
|
|
5016
|
-
});
|
|
5017
|
-
var DTODataSourceFigmaCloud =
|
|
5018
|
-
fileId:
|
|
5007
|
+
import { z as z175 } from "zod";
|
|
5008
|
+
var DTODataSourceFigmaFileVersion = z175.object({
|
|
5009
|
+
id: z175.string(),
|
|
5010
|
+
created_at: z175.coerce.date(),
|
|
5011
|
+
label: z175.string(),
|
|
5012
|
+
description: z175.string()
|
|
5013
|
+
});
|
|
5014
|
+
var DTODataSourceFigmaCloud = z175.object({
|
|
5015
|
+
fileId: z175.string(),
|
|
5019
5016
|
state: DataSourceFigmaState,
|
|
5020
5017
|
autoImportMode: DataSourceAutoImportMode,
|
|
5021
|
-
fileThumbnailUrl:
|
|
5018
|
+
fileThumbnailUrl: z175.string().optional(),
|
|
5022
5019
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5023
|
-
lastImportedAt:
|
|
5020
|
+
lastImportedAt: z175.date().nullish(),
|
|
5024
5021
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5025
|
-
lastUpdatesCheckedAt:
|
|
5026
|
-
ownerId:
|
|
5027
|
-
ownerUserName:
|
|
5028
|
-
preferredCredentialId:
|
|
5022
|
+
lastUpdatesCheckedAt: z175.date().nullish(),
|
|
5023
|
+
ownerId: z175.string(),
|
|
5024
|
+
ownerUserName: z175.string().optional(),
|
|
5025
|
+
preferredCredentialId: z175.string().optional(),
|
|
5029
5026
|
stats: DataSourceStats
|
|
5030
5027
|
});
|
|
5031
|
-
var DTODataSourceFigma =
|
|
5032
|
-
id:
|
|
5033
|
-
type:
|
|
5034
|
-
fileName:
|
|
5028
|
+
var DTODataSourceFigma = z175.object({
|
|
5029
|
+
id: z175.string(),
|
|
5030
|
+
type: z175.literal(DataSourceRemoteType.Enum.Figma),
|
|
5031
|
+
fileName: z175.string(),
|
|
5035
5032
|
scope: DataSourceFigmaScope,
|
|
5036
|
-
brandId:
|
|
5037
|
-
themeId:
|
|
5033
|
+
brandId: z175.string(),
|
|
5034
|
+
themeId: z175.string().nullish(),
|
|
5038
5035
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
5039
|
-
tokenStudio:
|
|
5040
|
-
upload:
|
|
5041
|
-
figmaVariablesPlugin:
|
|
5042
|
-
});
|
|
5043
|
-
var DTODataSourceTokenStudio =
|
|
5044
|
-
id:
|
|
5045
|
-
type:
|
|
5046
|
-
fileName:
|
|
5047
|
-
brandId:
|
|
5048
|
-
themeId:
|
|
5049
|
-
cloud:
|
|
5050
|
-
tokenStudio:
|
|
5051
|
-
settings:
|
|
5052
|
-
dryRun:
|
|
5053
|
-
verbose:
|
|
5054
|
-
preciseCopy:
|
|
5036
|
+
tokenStudio: z175.literal(null),
|
|
5037
|
+
upload: z175.literal(null),
|
|
5038
|
+
figmaVariablesPlugin: z175.literal(null)
|
|
5039
|
+
});
|
|
5040
|
+
var DTODataSourceTokenStudio = z175.object({
|
|
5041
|
+
id: z175.string(),
|
|
5042
|
+
type: z175.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5043
|
+
fileName: z175.string(),
|
|
5044
|
+
brandId: z175.string(),
|
|
5045
|
+
themeId: z175.string().nullish(),
|
|
5046
|
+
cloud: z175.literal(null),
|
|
5047
|
+
tokenStudio: z175.object({
|
|
5048
|
+
settings: z175.object({
|
|
5049
|
+
dryRun: z175.boolean(),
|
|
5050
|
+
verbose: z175.boolean(),
|
|
5051
|
+
preciseCopy: z175.boolean()
|
|
5055
5052
|
}),
|
|
5056
|
-
connectionName:
|
|
5057
|
-
lastImportedAt:
|
|
5058
|
-
lastImportedResults:
|
|
5059
|
-
|
|
5060
|
-
mapping:
|
|
5061
|
-
tokenSets:
|
|
5062
|
-
supernovaBrand:
|
|
5063
|
-
supernovaTheme:
|
|
5053
|
+
connectionName: z175.string(),
|
|
5054
|
+
lastImportedAt: z175.date(),
|
|
5055
|
+
lastImportedResults: z175.array(
|
|
5056
|
+
z175.object({
|
|
5057
|
+
mapping: z175.object({
|
|
5058
|
+
tokenSets: z175.array(z175.string()),
|
|
5059
|
+
supernovaBrand: z175.string(),
|
|
5060
|
+
supernovaTheme: z175.string().optional()
|
|
5064
5061
|
}),
|
|
5065
|
-
isFailed:
|
|
5066
|
-
tokensCreated:
|
|
5067
|
-
tokensDeleted:
|
|
5068
|
-
tokensUpdated:
|
|
5062
|
+
isFailed: z175.boolean(),
|
|
5063
|
+
tokensCreated: z175.number(),
|
|
5064
|
+
tokensDeleted: z175.number(),
|
|
5065
|
+
tokensUpdated: z175.number()
|
|
5069
5066
|
})
|
|
5070
5067
|
)
|
|
5071
5068
|
}),
|
|
5072
|
-
upload:
|
|
5073
|
-
figmaVariablesPlugin:
|
|
5074
|
-
});
|
|
5075
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5076
|
-
id:
|
|
5077
|
-
type:
|
|
5078
|
-
fileName:
|
|
5079
|
-
brandId:
|
|
5080
|
-
themeId:
|
|
5081
|
-
cloud:
|
|
5082
|
-
tokenStudio:
|
|
5083
|
-
upload:
|
|
5084
|
-
remoteId:
|
|
5069
|
+
upload: z175.literal(null),
|
|
5070
|
+
figmaVariablesPlugin: z175.literal(null)
|
|
5071
|
+
});
|
|
5072
|
+
var DTODataSourceFigmaVariablesPlugin = z175.object({
|
|
5073
|
+
id: z175.string(),
|
|
5074
|
+
type: z175.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5075
|
+
fileName: z175.string(),
|
|
5076
|
+
brandId: z175.string(),
|
|
5077
|
+
themeId: z175.literal(null),
|
|
5078
|
+
cloud: z175.literal(null),
|
|
5079
|
+
tokenStudio: z175.literal(null),
|
|
5080
|
+
upload: z175.object({
|
|
5081
|
+
remoteId: z175.string(),
|
|
5085
5082
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5086
|
-
lastImportedAt:
|
|
5083
|
+
lastImportedAt: z175.date().optional(),
|
|
5087
5084
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5088
5085
|
}),
|
|
5089
|
-
figmaVariablesPlugin:
|
|
5090
|
-
fileId:
|
|
5091
|
-
lastImportedAt:
|
|
5086
|
+
figmaVariablesPlugin: z175.object({
|
|
5087
|
+
fileId: z175.string(),
|
|
5088
|
+
lastImportedAt: z175.date().optional(),
|
|
5092
5089
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5093
5090
|
})
|
|
5094
5091
|
});
|
|
5095
|
-
var DTODataSource =
|
|
5092
|
+
var DTODataSource = z175.discriminatedUnion("type", [
|
|
5096
5093
|
DTODataSourceFigma,
|
|
5097
5094
|
DTODataSourceFigmaVariablesPlugin,
|
|
5098
5095
|
DTODataSourceTokenStudio
|
|
5099
5096
|
]);
|
|
5100
|
-
var DTODataSourcesListResponse =
|
|
5101
|
-
sources:
|
|
5097
|
+
var DTODataSourcesListResponse = z175.object({
|
|
5098
|
+
sources: z175.array(DTODataSource)
|
|
5102
5099
|
});
|
|
5103
|
-
var DTODataSourceCreationResponse =
|
|
5100
|
+
var DTODataSourceCreationResponse = z175.object({
|
|
5104
5101
|
source: DTODataSource
|
|
5105
5102
|
});
|
|
5106
5103
|
|
|
5107
5104
|
// src/api/dto/design-systems/design-system.ts
|
|
5108
|
-
import { z as
|
|
5105
|
+
import { z as z176 } from "zod";
|
|
5109
5106
|
var DTODesignSystem = DesignSystem.omit({
|
|
5110
5107
|
name: true,
|
|
5111
5108
|
description: true,
|
|
5112
5109
|
docExporterId: true
|
|
5113
5110
|
}).extend({
|
|
5114
5111
|
meta: ObjectMeta,
|
|
5115
|
-
docExporterId:
|
|
5116
|
-
sources:
|
|
5112
|
+
docExporterId: z176.string(),
|
|
5113
|
+
sources: z176.array(z176.any()),
|
|
5117
5114
|
role: WorkspaceRoleSchema.optional()
|
|
5118
5115
|
});
|
|
5119
|
-
var DTODesignSystemResponse =
|
|
5116
|
+
var DTODesignSystemResponse = z176.object({
|
|
5120
5117
|
designSystem: DTODesignSystem
|
|
5121
5118
|
});
|
|
5122
|
-
var DTODesignSystemsListResponse =
|
|
5119
|
+
var DTODesignSystemsListResponse = z176.object({
|
|
5123
5120
|
designSystems: DTODesignSystem.array()
|
|
5124
5121
|
});
|
|
5125
|
-
var DTODesignSystemCreateInput =
|
|
5126
|
-
workspaceId:
|
|
5122
|
+
var DTODesignSystemCreateInput = z176.object({
|
|
5123
|
+
workspaceId: z176.string(),
|
|
5127
5124
|
meta: ObjectMeta.optional(),
|
|
5128
|
-
name:
|
|
5129
|
-
description:
|
|
5125
|
+
name: z176.string().min(2).max(64).optional(),
|
|
5126
|
+
description: z176.string().max(1024).optional(),
|
|
5130
5127
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5131
|
-
inviteUserIds:
|
|
5128
|
+
inviteUserIds: z176.string().array().optional()
|
|
5132
5129
|
});
|
|
5133
5130
|
|
|
5134
5131
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5135
|
-
import { z as
|
|
5136
|
-
var DTODiffCountBase =
|
|
5137
|
-
created:
|
|
5138
|
-
updated:
|
|
5139
|
-
deleted:
|
|
5132
|
+
import { z as z177 } from "zod";
|
|
5133
|
+
var DTODiffCountBase = z177.object({
|
|
5134
|
+
created: z177.number(),
|
|
5135
|
+
updated: z177.number(),
|
|
5136
|
+
deleted: z177.number()
|
|
5140
5137
|
});
|
|
5141
|
-
var DTODesignElementsDataDiffResponse =
|
|
5138
|
+
var DTODesignElementsDataDiffResponse = z177.object({
|
|
5142
5139
|
tokens: DTODiffCountBase,
|
|
5143
5140
|
assets: DTODiffCountBase
|
|
5144
5141
|
});
|
|
5145
5142
|
|
|
5146
5143
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5147
|
-
import { z as
|
|
5148
|
-
var DTOExporterProperty =
|
|
5149
|
-
var DTOExporterPropertyListResponse =
|
|
5144
|
+
import { z as z178 } from "zod";
|
|
5145
|
+
var DTOExporterProperty = z178.any({});
|
|
5146
|
+
var DTOExporterPropertyListResponse = z178.object({ items: z178.array(DTOExporterProperty) });
|
|
5150
5147
|
|
|
5151
5148
|
// src/api/dto/design-systems/members.ts
|
|
5152
|
-
import { z as
|
|
5153
|
-
var DTODesignSystemMember =
|
|
5154
|
-
userId:
|
|
5149
|
+
import { z as z179 } from "zod";
|
|
5150
|
+
var DTODesignSystemMember = z179.object({
|
|
5151
|
+
userId: z179.string()
|
|
5155
5152
|
});
|
|
5156
|
-
var DTODesignSystemInvitation =
|
|
5157
|
-
id:
|
|
5158
|
-
workspaceInvitationId:
|
|
5153
|
+
var DTODesignSystemInvitation = z179.object({
|
|
5154
|
+
id: z179.string(),
|
|
5155
|
+
workspaceInvitationId: z179.string()
|
|
5159
5156
|
});
|
|
5160
|
-
var DTODesignSystemMemberListResponse =
|
|
5157
|
+
var DTODesignSystemMemberListResponse = z179.object({
|
|
5161
5158
|
members: DTODesignSystemMember.array(),
|
|
5162
5159
|
invitations: DTODesignSystemInvitation.array()
|
|
5163
5160
|
});
|
|
5164
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5165
|
-
ok:
|
|
5161
|
+
var DTODesignSystemMembersUpdateResponse = z179.object({
|
|
5162
|
+
ok: z179.literal(true)
|
|
5166
5163
|
});
|
|
5167
5164
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5168
5165
|
|
|
5169
5166
|
// src/api/dto/design-systems/version.ts
|
|
5170
|
-
import { z as
|
|
5167
|
+
import { z as z190 } from "zod";
|
|
5171
5168
|
|
|
5172
5169
|
// src/api/payloads/design-systems/brand.ts
|
|
5173
|
-
import { z as
|
|
5174
|
-
var DTOCreateBrandInput =
|
|
5175
|
-
persistentId:
|
|
5176
|
-
meta:
|
|
5177
|
-
name:
|
|
5178
|
-
description:
|
|
5170
|
+
import { z as z180 } from "zod";
|
|
5171
|
+
var DTOCreateBrandInput = z180.object({
|
|
5172
|
+
persistentId: z180.string().uuid(),
|
|
5173
|
+
meta: z180.object({
|
|
5174
|
+
name: z180.string(),
|
|
5175
|
+
description: z180.string()
|
|
5179
5176
|
})
|
|
5180
5177
|
});
|
|
5181
5178
|
|
|
5182
5179
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5183
|
-
import { z as
|
|
5180
|
+
import { z as z181 } from "zod";
|
|
5184
5181
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5185
5182
|
id: true,
|
|
5186
5183
|
workspaceId: true,
|
|
@@ -5192,40 +5189,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5192
5189
|
}).extend({
|
|
5193
5190
|
meta: ObjectMeta.partial().optional()
|
|
5194
5191
|
});
|
|
5195
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5192
|
+
var DTODesignSystemUpdateAccessModeInput = z181.object({
|
|
5196
5193
|
accessMode: DesignSystemAccessMode,
|
|
5197
|
-
retain:
|
|
5198
|
-
userIds:
|
|
5199
|
-
inviteIds:
|
|
5194
|
+
retain: z181.object({
|
|
5195
|
+
userIds: z181.string().array(),
|
|
5196
|
+
inviteIds: z181.string().array()
|
|
5200
5197
|
}).optional()
|
|
5201
5198
|
});
|
|
5202
5199
|
|
|
5203
5200
|
// src/api/payloads/design-systems/version.ts
|
|
5204
|
-
import { z as
|
|
5205
|
-
var ObjectMeta2 =
|
|
5206
|
-
name:
|
|
5207
|
-
description:
|
|
5201
|
+
import { z as z182 } from "zod";
|
|
5202
|
+
var ObjectMeta2 = z182.object({
|
|
5203
|
+
name: z182.string().max(150).optional(),
|
|
5204
|
+
description: z182.string().max(2e3).optional()
|
|
5208
5205
|
});
|
|
5209
5206
|
function validateDesignSystemVersion(version) {
|
|
5210
5207
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5211
5208
|
return urlCompliantRegex.test(version);
|
|
5212
5209
|
}
|
|
5213
|
-
var DTOCreateVersionInput =
|
|
5210
|
+
var DTOCreateVersionInput = z182.object({
|
|
5214
5211
|
meta: ObjectMeta2,
|
|
5215
|
-
version:
|
|
5212
|
+
version: z182.string().refine(validateDesignSystemVersion, {
|
|
5216
5213
|
message: "Invalid semantic versioning format"
|
|
5217
5214
|
}),
|
|
5218
|
-
changeLog:
|
|
5215
|
+
changeLog: z182.string().optional()
|
|
5219
5216
|
});
|
|
5220
|
-
var DTOUpdateVersionInput =
|
|
5217
|
+
var DTOUpdateVersionInput = z182.object({
|
|
5221
5218
|
meta: ObjectMeta2,
|
|
5222
|
-
version:
|
|
5219
|
+
version: z182.string(),
|
|
5223
5220
|
// required for PUT, but not editable
|
|
5224
|
-
changeLog:
|
|
5221
|
+
changeLog: z182.string()
|
|
5225
5222
|
});
|
|
5226
5223
|
|
|
5227
5224
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5228
|
-
import { z as
|
|
5225
|
+
import { z as z183 } from "zod";
|
|
5229
5226
|
|
|
5230
5227
|
// src/api/dto/documentation/block-definition.ts
|
|
5231
5228
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5237,60 +5234,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5237
5234
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5238
5235
|
|
|
5239
5236
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5240
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5241
|
-
definitions:
|
|
5237
|
+
var DTOGetBlockDefinitionsOutput = z183.object({
|
|
5238
|
+
definitions: z183.array(DTOPageBlockDefinition)
|
|
5242
5239
|
});
|
|
5243
5240
|
|
|
5244
5241
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5245
|
-
import { z as
|
|
5246
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5247
|
-
environment:
|
|
5242
|
+
import { z as z184 } from "zod";
|
|
5243
|
+
var DTODocumentationPublishTypeQueryParams = z184.object({
|
|
5244
|
+
environment: z184.enum(["Live", "Preview"])
|
|
5248
5245
|
});
|
|
5249
5246
|
|
|
5250
5247
|
// src/api/payloads/export/pipeline.ts
|
|
5251
|
-
import { z as
|
|
5252
|
-
var DTOPipelineCreateBody =
|
|
5253
|
-
name:
|
|
5254
|
-
exporterId:
|
|
5255
|
-
designSystemId:
|
|
5256
|
-
isEnabled:
|
|
5248
|
+
import { z as z185 } from "zod";
|
|
5249
|
+
var DTOPipelineCreateBody = z185.object({
|
|
5250
|
+
name: z185.string(),
|
|
5251
|
+
exporterId: z185.string(),
|
|
5252
|
+
designSystemId: z185.string(),
|
|
5253
|
+
isEnabled: z185.boolean(),
|
|
5257
5254
|
eventType: PipelineEventType,
|
|
5258
|
-
brandPersistentId:
|
|
5259
|
-
themePersistentId:
|
|
5260
|
-
themePersistentIds:
|
|
5255
|
+
brandPersistentId: z185.string().optional(),
|
|
5256
|
+
themePersistentId: z185.string().optional(),
|
|
5257
|
+
themePersistentIds: z185.string().array().optional(),
|
|
5261
5258
|
destination: PipelineDestinationType.optional(),
|
|
5262
5259
|
gitQuery: GitObjectsQuery,
|
|
5263
|
-
destinations:
|
|
5260
|
+
destinations: z185.object({
|
|
5264
5261
|
s3: ExporterDestinationS3.nullish(),
|
|
5265
5262
|
azure: ExporterDestinationAzure.nullish(),
|
|
5266
5263
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5267
5264
|
github: ExporterDestinationGithub.nullish(),
|
|
5268
5265
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5269
5266
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5270
|
-
webhookUrl:
|
|
5267
|
+
webhookUrl: z185.string().nullish()
|
|
5271
5268
|
})
|
|
5272
5269
|
});
|
|
5273
5270
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5274
|
-
id:
|
|
5271
|
+
id: z185.string()
|
|
5275
5272
|
});
|
|
5276
|
-
var DTOPipelineTriggerBody =
|
|
5277
|
-
designSystemVersionId:
|
|
5273
|
+
var DTOPipelineTriggerBody = z185.object({
|
|
5274
|
+
designSystemVersionId: z185.string()
|
|
5278
5275
|
});
|
|
5279
5276
|
|
|
5280
5277
|
// src/api/payloads/liveblocks/auth.ts
|
|
5281
|
-
import { z as
|
|
5282
|
-
var DTOLiveblocksAuthRequest =
|
|
5283
|
-
room:
|
|
5278
|
+
import { z as z186 } from "zod";
|
|
5279
|
+
var DTOLiveblocksAuthRequest = z186.object({
|
|
5280
|
+
room: z186.string().optional()
|
|
5284
5281
|
});
|
|
5285
5282
|
|
|
5286
5283
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5287
|
-
import { z as
|
|
5288
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5284
|
+
import { z as z187 } from "zod";
|
|
5285
|
+
var DTOUpdateUserNotificationSettingsPayload = z187.object({
|
|
5289
5286
|
notificationSettings: UserNotificationSettings
|
|
5290
5287
|
});
|
|
5291
|
-
var DTOUserNotificationSettingsResponse =
|
|
5292
|
-
userId:
|
|
5293
|
-
workspaceId:
|
|
5288
|
+
var DTOUserNotificationSettingsResponse = z187.object({
|
|
5289
|
+
userId: z187.string(),
|
|
5290
|
+
workspaceId: z187.string(),
|
|
5294
5291
|
notificationSettings: UserNotificationSettings
|
|
5295
5292
|
});
|
|
5296
5293
|
|
|
@@ -5298,7 +5295,7 @@ var DTOUserNotificationSettingsResponse = z186.object({
|
|
|
5298
5295
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5299
5296
|
|
|
5300
5297
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5301
|
-
import { z as
|
|
5298
|
+
import { z as z188 } from "zod";
|
|
5302
5299
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5303
5300
|
function validateSsoPayload(ssoPayload) {
|
|
5304
5301
|
const keys = [];
|
|
@@ -5321,21 +5318,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5321
5318
|
keys
|
|
5322
5319
|
};
|
|
5323
5320
|
}
|
|
5324
|
-
var NpmRegistryInput =
|
|
5325
|
-
enabledScopes:
|
|
5326
|
-
customRegistryUrl:
|
|
5327
|
-
bypassProxy:
|
|
5328
|
-
npmProxyRegistryConfigId:
|
|
5329
|
-
npmProxyVersion:
|
|
5330
|
-
registryType:
|
|
5331
|
-
authType:
|
|
5332
|
-
authHeaderName:
|
|
5333
|
-
authHeaderValue:
|
|
5334
|
-
accessToken:
|
|
5335
|
-
username:
|
|
5336
|
-
password:
|
|
5337
|
-
});
|
|
5338
|
-
var WorkspaceConfigurationPayload =
|
|
5321
|
+
var NpmRegistryInput = z188.object({
|
|
5322
|
+
enabledScopes: z188.array(z188.string()),
|
|
5323
|
+
customRegistryUrl: z188.string().optional(),
|
|
5324
|
+
bypassProxy: z188.boolean().optional(),
|
|
5325
|
+
npmProxyRegistryConfigId: z188.string().optional(),
|
|
5326
|
+
npmProxyVersion: z188.number().optional(),
|
|
5327
|
+
registryType: z188.string(),
|
|
5328
|
+
authType: z188.string(),
|
|
5329
|
+
authHeaderName: z188.string(),
|
|
5330
|
+
authHeaderValue: z188.string(),
|
|
5331
|
+
accessToken: z188.string(),
|
|
5332
|
+
username: z188.string(),
|
|
5333
|
+
password: z188.string()
|
|
5334
|
+
});
|
|
5335
|
+
var WorkspaceConfigurationPayload = z188.object({
|
|
5339
5336
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5340
5337
|
sso: SsoProvider.partial().optional(),
|
|
5341
5338
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5343,211 +5340,211 @@ var WorkspaceConfigurationPayload = z187.object({
|
|
|
5343
5340
|
});
|
|
5344
5341
|
|
|
5345
5342
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5346
|
-
import { z as
|
|
5347
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5343
|
+
import { z as z189 } from "zod";
|
|
5344
|
+
var DTOWorkspaceIntegrationOauthInput = z189.object({
|
|
5348
5345
|
type: IntegrationType
|
|
5349
5346
|
});
|
|
5350
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5351
|
-
userId:
|
|
5347
|
+
var DTOWorkspaceIntegrationPATInput = z189.object({
|
|
5348
|
+
userId: z189.string(),
|
|
5352
5349
|
type: IntegrationType,
|
|
5353
5350
|
token: IntegrationToken
|
|
5354
5351
|
});
|
|
5355
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5356
|
-
organization:
|
|
5352
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z189.object({
|
|
5353
|
+
organization: z189.string().optional(),
|
|
5357
5354
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5358
|
-
project:
|
|
5355
|
+
project: z189.string().optional(),
|
|
5359
5356
|
// Only for Bitbucket and Azure
|
|
5360
|
-
repository:
|
|
5357
|
+
repository: z189.string().optional(),
|
|
5361
5358
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5362
|
-
branch:
|
|
5359
|
+
branch: z189.string().optional(),
|
|
5363
5360
|
// For all providers, useful for PR creations.
|
|
5364
|
-
user:
|
|
5361
|
+
user: z189.string().optional()
|
|
5365
5362
|
// Only for Gitlab User Repositories
|
|
5366
5363
|
});
|
|
5367
5364
|
|
|
5368
5365
|
// src/api/dto/design-systems/version.ts
|
|
5369
|
-
var DTODesignSystemVersion =
|
|
5370
|
-
id:
|
|
5371
|
-
createdAt:
|
|
5366
|
+
var DTODesignSystemVersion = z190.object({
|
|
5367
|
+
id: z190.string(),
|
|
5368
|
+
createdAt: z190.date(),
|
|
5372
5369
|
meta: ObjectMeta,
|
|
5373
|
-
version:
|
|
5374
|
-
isReadonly:
|
|
5375
|
-
changeLog:
|
|
5376
|
-
designSystemId:
|
|
5370
|
+
version: z190.string(),
|
|
5371
|
+
isReadonly: z190.boolean(),
|
|
5372
|
+
changeLog: z190.string(),
|
|
5373
|
+
designSystemId: z190.string()
|
|
5377
5374
|
});
|
|
5378
|
-
var DTODesignSystemVersionsListResponse =
|
|
5379
|
-
designSystemVersions:
|
|
5375
|
+
var DTODesignSystemVersionsListResponse = z190.object({
|
|
5376
|
+
designSystemVersions: z190.array(DTODesignSystemVersion)
|
|
5380
5377
|
});
|
|
5381
|
-
var DTODesignSystemVersionGetResponse =
|
|
5378
|
+
var DTODesignSystemVersionGetResponse = z190.object({
|
|
5382
5379
|
designSystemVersion: DTODesignSystemVersion
|
|
5383
5380
|
});
|
|
5384
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5381
|
+
var DTODesignSystemVersionCreationResponse = z190.object({
|
|
5385
5382
|
meta: ObjectMeta,
|
|
5386
|
-
version:
|
|
5387
|
-
changeLog:
|
|
5388
|
-
isReadOnly:
|
|
5389
|
-
designSystemId:
|
|
5390
|
-
jobId:
|
|
5391
|
-
});
|
|
5392
|
-
var VersionSQSPayload =
|
|
5393
|
-
jobId:
|
|
5394
|
-
designSystemId:
|
|
5383
|
+
version: z190.string(),
|
|
5384
|
+
changeLog: z190.string(),
|
|
5385
|
+
isReadOnly: z190.boolean(),
|
|
5386
|
+
designSystemId: z190.string(),
|
|
5387
|
+
jobId: z190.string()
|
|
5388
|
+
});
|
|
5389
|
+
var VersionSQSPayload = z190.object({
|
|
5390
|
+
jobId: z190.string(),
|
|
5391
|
+
designSystemId: z190.string(),
|
|
5395
5392
|
input: DTOCreateVersionInput
|
|
5396
5393
|
});
|
|
5397
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5398
|
-
jobs:
|
|
5394
|
+
var DTODesignSystemVersionJobsResponse = z190.object({
|
|
5395
|
+
jobs: z190.array(VersionCreationJob)
|
|
5399
5396
|
});
|
|
5400
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5397
|
+
var DTODesignSystemVersionJobStatusResponse = z190.object({
|
|
5401
5398
|
job: VersionCreationJob
|
|
5402
5399
|
});
|
|
5403
5400
|
|
|
5404
5401
|
// src/api/dto/design-systems/view.ts
|
|
5405
|
-
import { z as
|
|
5406
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5407
|
-
id:
|
|
5408
|
-
persistentId:
|
|
5409
|
-
width:
|
|
5402
|
+
import { z as z191 } from "zod";
|
|
5403
|
+
var DTOElementViewColumnSharedAttributes = z191.object({
|
|
5404
|
+
id: z191.string(),
|
|
5405
|
+
persistentId: z191.string(),
|
|
5406
|
+
width: z191.number()
|
|
5410
5407
|
});
|
|
5411
5408
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5412
|
-
type:
|
|
5409
|
+
type: z191.literal("BaseProperty"),
|
|
5413
5410
|
basePropertyType: ElementViewBaseColumnType
|
|
5414
5411
|
});
|
|
5415
5412
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5416
|
-
type:
|
|
5417
|
-
propertyDefinitionId:
|
|
5413
|
+
type: z191.literal("PropertyDefinition"),
|
|
5414
|
+
propertyDefinitionId: z191.string()
|
|
5418
5415
|
});
|
|
5419
5416
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5420
|
-
type:
|
|
5421
|
-
themeId:
|
|
5417
|
+
type: z191.literal("Theme"),
|
|
5418
|
+
themeId: z191.string()
|
|
5422
5419
|
});
|
|
5423
|
-
var DTOElementViewColumn =
|
|
5420
|
+
var DTOElementViewColumn = z191.discriminatedUnion("type", [
|
|
5424
5421
|
DTOElementViewBasePropertyColumn,
|
|
5425
5422
|
DTOElementViewPropertyDefinitionColumn,
|
|
5426
5423
|
DTOElementViewThemeColumn
|
|
5427
5424
|
]);
|
|
5428
|
-
var DTOElementView =
|
|
5425
|
+
var DTOElementView = z191.object({
|
|
5429
5426
|
meta: ObjectMeta,
|
|
5430
|
-
persistentId:
|
|
5427
|
+
persistentId: z191.string(),
|
|
5431
5428
|
targetElementType: ElementPropertyTargetType,
|
|
5432
|
-
id:
|
|
5433
|
-
isDefault:
|
|
5434
|
-
columns:
|
|
5429
|
+
id: z191.string(),
|
|
5430
|
+
isDefault: z191.boolean(),
|
|
5431
|
+
columns: z191.array(DTOElementViewColumn)
|
|
5435
5432
|
});
|
|
5436
|
-
var DTOElementViewsListResponse =
|
|
5437
|
-
elementDataViews:
|
|
5433
|
+
var DTOElementViewsListResponse = z191.object({
|
|
5434
|
+
elementDataViews: z191.array(DTOElementView)
|
|
5438
5435
|
});
|
|
5439
5436
|
|
|
5440
5437
|
// src/api/dto/workspaces/git.ts
|
|
5441
|
-
import { z as
|
|
5442
|
-
var DTOGitOrganization =
|
|
5443
|
-
id:
|
|
5444
|
-
name:
|
|
5445
|
-
url:
|
|
5446
|
-
slug:
|
|
5438
|
+
import { z as z192 } from "zod";
|
|
5439
|
+
var DTOGitOrganization = z192.object({
|
|
5440
|
+
id: z192.string(),
|
|
5441
|
+
name: z192.string(),
|
|
5442
|
+
url: z192.string(),
|
|
5443
|
+
slug: z192.string()
|
|
5447
5444
|
});
|
|
5448
|
-
var DTOGitProject =
|
|
5449
|
-
id:
|
|
5450
|
-
name:
|
|
5451
|
-
url:
|
|
5452
|
-
slug:
|
|
5445
|
+
var DTOGitProject = z192.object({
|
|
5446
|
+
id: z192.string(),
|
|
5447
|
+
name: z192.string(),
|
|
5448
|
+
url: z192.string(),
|
|
5449
|
+
slug: z192.string()
|
|
5453
5450
|
});
|
|
5454
|
-
var DTOGitRepository =
|
|
5455
|
-
id:
|
|
5456
|
-
name:
|
|
5457
|
-
url:
|
|
5458
|
-
slug:
|
|
5459
|
-
defaultBranch:
|
|
5451
|
+
var DTOGitRepository = z192.object({
|
|
5452
|
+
id: z192.string(),
|
|
5453
|
+
name: z192.string(),
|
|
5454
|
+
url: z192.string(),
|
|
5455
|
+
slug: z192.string(),
|
|
5456
|
+
defaultBranch: z192.string().optional()
|
|
5460
5457
|
});
|
|
5461
|
-
var DTOGitBranch =
|
|
5462
|
-
name:
|
|
5463
|
-
lastCommitId:
|
|
5458
|
+
var DTOGitBranch = z192.object({
|
|
5459
|
+
name: z192.string(),
|
|
5460
|
+
lastCommitId: z192.string()
|
|
5464
5461
|
});
|
|
5465
5462
|
|
|
5466
5463
|
// src/api/dto/workspaces/integrations.ts
|
|
5467
|
-
import { z as
|
|
5464
|
+
import { z as z193 } from "zod";
|
|
5468
5465
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5469
5466
|
accessToken: true,
|
|
5470
5467
|
refreshToken: true
|
|
5471
5468
|
});
|
|
5472
|
-
var DTOIntegration =
|
|
5473
|
-
id:
|
|
5474
|
-
workspaceId:
|
|
5469
|
+
var DTOIntegration = z193.object({
|
|
5470
|
+
id: z193.string(),
|
|
5471
|
+
workspaceId: z193.string(),
|
|
5475
5472
|
type: ExtendedIntegrationType,
|
|
5476
|
-
createdAt:
|
|
5477
|
-
integrationCredentials:
|
|
5478
|
-
integrationDesignSystems:
|
|
5473
|
+
createdAt: z193.coerce.date(),
|
|
5474
|
+
integrationCredentials: z193.array(DTOIntegrationCredentials).optional(),
|
|
5475
|
+
integrationDesignSystems: z193.array(IntegrationDesignSystem).optional()
|
|
5479
5476
|
});
|
|
5480
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5481
|
-
url:
|
|
5477
|
+
var DTOIntegrationOAuthGetResponse = z193.object({
|
|
5478
|
+
url: z193.string()
|
|
5482
5479
|
});
|
|
5483
|
-
var DTOIntegrationPostResponse =
|
|
5480
|
+
var DTOIntegrationPostResponse = z193.object({
|
|
5484
5481
|
integration: DTOIntegration
|
|
5485
5482
|
});
|
|
5486
|
-
var DTOIntegrationsGetListResponse =
|
|
5483
|
+
var DTOIntegrationsGetListResponse = z193.object({
|
|
5487
5484
|
integrations: DTOIntegration.array()
|
|
5488
5485
|
});
|
|
5489
5486
|
|
|
5490
5487
|
// src/api/dto/workspaces/invitations.ts
|
|
5491
|
-
import { z as
|
|
5492
|
-
var DTOWorkspaceInvitationInput =
|
|
5493
|
-
email:
|
|
5488
|
+
import { z as z194 } from "zod";
|
|
5489
|
+
var DTOWorkspaceInvitationInput = z194.object({
|
|
5490
|
+
email: z194.string().email(),
|
|
5494
5491
|
role: WorkspaceRoleSchema
|
|
5495
5492
|
});
|
|
5496
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5493
|
+
var DTOWorkspaceInvitationsListInput = z194.object({
|
|
5497
5494
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5498
|
-
designSystemId:
|
|
5495
|
+
designSystemId: z194.string().optional()
|
|
5499
5496
|
});
|
|
5500
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5497
|
+
var DTOWorkspaceInvitationsResponse = z194.object({
|
|
5501
5498
|
invitations: WorkspaceInvitation.array()
|
|
5502
5499
|
});
|
|
5503
5500
|
|
|
5504
5501
|
// src/api/dto/workspaces/membership.ts
|
|
5505
|
-
import { z as
|
|
5502
|
+
import { z as z197 } from "zod";
|
|
5506
5503
|
|
|
5507
5504
|
// src/api/dto/workspaces/workspace.ts
|
|
5508
|
-
import { z as
|
|
5505
|
+
import { z as z196 } from "zod";
|
|
5509
5506
|
|
|
5510
5507
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5511
|
-
import { z as
|
|
5508
|
+
import { z as z195 } from "zod";
|
|
5512
5509
|
var DTONpmRegistryConfigConstants = {
|
|
5513
5510
|
passwordPlaceholder: "redacted"
|
|
5514
5511
|
};
|
|
5515
|
-
var DTONpmRegistryConfig =
|
|
5512
|
+
var DTONpmRegistryConfig = z195.object({
|
|
5516
5513
|
// Registry basic configuration
|
|
5517
5514
|
registryType: NpmRegistryType,
|
|
5518
|
-
registryUrl:
|
|
5519
|
-
customRegistryUrl:
|
|
5515
|
+
registryUrl: z195.string(),
|
|
5516
|
+
customRegistryUrl: z195.string().optional(),
|
|
5520
5517
|
// URL of Supernova NPM packages proxy
|
|
5521
|
-
proxyUrl:
|
|
5518
|
+
proxyUrl: z195.string(),
|
|
5522
5519
|
// Auth configuration
|
|
5523
5520
|
authType: NpmRegistryAuthType,
|
|
5524
|
-
accessToken:
|
|
5525
|
-
username:
|
|
5526
|
-
password:
|
|
5521
|
+
accessToken: z195.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5522
|
+
username: z195.string().optional(),
|
|
5523
|
+
password: z195.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5527
5524
|
// NPM package scopes for whih the proxy should be enabled
|
|
5528
|
-
enabledScopes:
|
|
5525
|
+
enabledScopes: z195.array(z195.string()),
|
|
5529
5526
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5530
5527
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5531
|
-
bypassProxy:
|
|
5528
|
+
bypassProxy: z195.boolean()
|
|
5532
5529
|
});
|
|
5533
5530
|
|
|
5534
5531
|
// src/api/dto/workspaces/workspace.ts
|
|
5535
|
-
var DTOWorkspace =
|
|
5536
|
-
id:
|
|
5532
|
+
var DTOWorkspace = z196.object({
|
|
5533
|
+
id: z196.string(),
|
|
5537
5534
|
profile: WorkspaceProfile,
|
|
5538
5535
|
subscription: Subscription,
|
|
5539
5536
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5540
5537
|
});
|
|
5541
|
-
var DTOWorkspaceCreateInput =
|
|
5542
|
-
name:
|
|
5538
|
+
var DTOWorkspaceCreateInput = z196.object({
|
|
5539
|
+
name: z196.string()
|
|
5543
5540
|
});
|
|
5544
|
-
var DTOWorkspaceResponse =
|
|
5541
|
+
var DTOWorkspaceResponse = z196.object({
|
|
5545
5542
|
workspace: DTOWorkspace
|
|
5546
5543
|
});
|
|
5547
5544
|
|
|
5548
5545
|
// src/api/dto/workspaces/membership.ts
|
|
5549
|
-
var DTOWorkspaceRole =
|
|
5550
|
-
var DTOUserWorkspaceMembership =
|
|
5546
|
+
var DTOWorkspaceRole = z197.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5547
|
+
var DTOUserWorkspaceMembership = z197.object({
|
|
5551
5548
|
// Workspace the user is a member of
|
|
5552
5549
|
workspace: DTOWorkspace,
|
|
5553
5550
|
// Assigned role the user has in the workspace
|
|
@@ -5557,18 +5554,18 @@ var DTOUserWorkspaceMembership = z196.object({
|
|
|
5557
5554
|
// when a workspace's subscription is downgraded to free tier
|
|
5558
5555
|
effectiveRole: DTOWorkspaceRole
|
|
5559
5556
|
});
|
|
5560
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5561
|
-
membership:
|
|
5557
|
+
var DTOUserWorkspaceMembershipsResponse = z197.object({
|
|
5558
|
+
membership: z197.array(DTOUserWorkspaceMembership)
|
|
5562
5559
|
});
|
|
5563
5560
|
|
|
5564
5561
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5565
|
-
var DTOAppBootstrapDataQuery =
|
|
5566
|
-
preferredWorkspaceId:
|
|
5567
|
-
preferredDesignSystemId:
|
|
5568
|
-
preferredVersionId:
|
|
5569
|
-
preferredBrandId:
|
|
5562
|
+
var DTOAppBootstrapDataQuery = z198.object({
|
|
5563
|
+
preferredWorkspaceId: z198.string().optional(),
|
|
5564
|
+
preferredDesignSystemId: z198.string().optional(),
|
|
5565
|
+
preferredVersionId: z198.string().optional(),
|
|
5566
|
+
preferredBrandId: z198.string().optional()
|
|
5570
5567
|
});
|
|
5571
|
-
var DTOAppBootstrapDataResponse =
|
|
5568
|
+
var DTOAppBootstrapDataResponse = z198.object({
|
|
5572
5569
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5573
5570
|
designSystem: DTODesignSystem.optional(),
|
|
5574
5571
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5576,19 +5573,19 @@ var DTOAppBootstrapDataResponse = z197.object({
|
|
|
5576
5573
|
});
|
|
5577
5574
|
|
|
5578
5575
|
// src/api/dto/documentation/anchor.ts
|
|
5579
|
-
import { z as
|
|
5576
|
+
import { z as z199 } from "zod";
|
|
5580
5577
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5581
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5582
|
-
anchors:
|
|
5578
|
+
var DTOGetDocumentationPageAnchorsResponse = z199.object({
|
|
5579
|
+
anchors: z199.array(DTODocumentationPageAnchor)
|
|
5583
5580
|
});
|
|
5584
5581
|
|
|
5585
5582
|
// src/api/dto/documentation/approvals.ts
|
|
5586
|
-
import { z as
|
|
5583
|
+
import { z as z200 } from "zod";
|
|
5587
5584
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5588
|
-
var DTODocumentationGroupApprovalState =
|
|
5589
|
-
persistentId:
|
|
5590
|
-
groupId:
|
|
5591
|
-
designSystemVersionId:
|
|
5585
|
+
var DTODocumentationGroupApprovalState = z200.object({
|
|
5586
|
+
persistentId: z200.string(),
|
|
5587
|
+
groupId: z200.string(),
|
|
5588
|
+
designSystemVersionId: z200.string(),
|
|
5592
5589
|
approvalState: DocumentationPageApprovalState
|
|
5593
5590
|
});
|
|
5594
5591
|
|
|
@@ -5596,68 +5593,68 @@ var DTODocumentationGroupApprovalState = z199.object({
|
|
|
5596
5593
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5597
5594
|
|
|
5598
5595
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5599
|
-
import { z as
|
|
5596
|
+
import { z as z205 } from "zod";
|
|
5600
5597
|
|
|
5601
5598
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5602
|
-
import { z as
|
|
5599
|
+
import { z as z204 } from "zod";
|
|
5603
5600
|
|
|
5604
5601
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5605
|
-
import { z as
|
|
5602
|
+
import { z as z202 } from "zod";
|
|
5606
5603
|
|
|
5607
5604
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5608
|
-
import { z as
|
|
5605
|
+
import { z as z201 } from "zod";
|
|
5609
5606
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5610
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5611
|
-
showSidebar:
|
|
5612
|
-
isPrivate:
|
|
5613
|
-
isHidden:
|
|
5607
|
+
var DTODocumentationItemConfigurationV2 = z201.object({
|
|
5608
|
+
showSidebar: z201.boolean(),
|
|
5609
|
+
isPrivate: z201.boolean(),
|
|
5610
|
+
isHidden: z201.boolean(),
|
|
5614
5611
|
header: DTODocumentationItemHeaderV2
|
|
5615
5612
|
});
|
|
5616
5613
|
|
|
5617
5614
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5618
|
-
var DTODocumentationDraftChangeType =
|
|
5619
|
-
var DTODocumentationDraftStateCreated =
|
|
5620
|
-
changeType:
|
|
5621
|
-
});
|
|
5622
|
-
var DTODocumentationDraftStateUpdated =
|
|
5623
|
-
changeType:
|
|
5624
|
-
changes:
|
|
5625
|
-
previousTitle:
|
|
5615
|
+
var DTODocumentationDraftChangeType = z202.enum(["Created", "Updated", "Deleted"]);
|
|
5616
|
+
var DTODocumentationDraftStateCreated = z202.object({
|
|
5617
|
+
changeType: z202.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5618
|
+
});
|
|
5619
|
+
var DTODocumentationDraftStateUpdated = z202.object({
|
|
5620
|
+
changeType: z202.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5621
|
+
changes: z202.object({
|
|
5622
|
+
previousTitle: z202.string().optional(),
|
|
5626
5623
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5627
|
-
previousContentHash:
|
|
5624
|
+
previousContentHash: z202.string().optional()
|
|
5628
5625
|
})
|
|
5629
5626
|
});
|
|
5630
|
-
var DTODocumentationDraftStateDeleted =
|
|
5631
|
-
changeType:
|
|
5632
|
-
deletedAt:
|
|
5633
|
-
deletedByUserId:
|
|
5627
|
+
var DTODocumentationDraftStateDeleted = z202.object({
|
|
5628
|
+
changeType: z202.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5629
|
+
deletedAt: z202.coerce.date(),
|
|
5630
|
+
deletedByUserId: z202.string()
|
|
5634
5631
|
});
|
|
5635
|
-
var DTODocumentationDraftState =
|
|
5632
|
+
var DTODocumentationDraftState = z202.discriminatedUnion("changeType", [
|
|
5636
5633
|
DTODocumentationDraftStateCreated,
|
|
5637
5634
|
DTODocumentationDraftStateUpdated,
|
|
5638
5635
|
DTODocumentationDraftStateDeleted
|
|
5639
5636
|
]);
|
|
5640
5637
|
|
|
5641
5638
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5642
|
-
import { z as
|
|
5643
|
-
var DTODocumentationPublishMetadata =
|
|
5644
|
-
lastPublishedByUserId:
|
|
5645
|
-
lastPublishedAt:
|
|
5639
|
+
import { z as z203 } from "zod";
|
|
5640
|
+
var DTODocumentationPublishMetadata = z203.object({
|
|
5641
|
+
lastPublishedByUserId: z203.string(),
|
|
5642
|
+
lastPublishedAt: z203.coerce.date()
|
|
5646
5643
|
});
|
|
5647
5644
|
|
|
5648
5645
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5649
|
-
var DTODocumentationPageV2 =
|
|
5650
|
-
id:
|
|
5651
|
-
persistentId:
|
|
5652
|
-
designSystemVersionId:
|
|
5653
|
-
title:
|
|
5646
|
+
var DTODocumentationPageV2 = z204.object({
|
|
5647
|
+
id: z204.string(),
|
|
5648
|
+
persistentId: z204.string(),
|
|
5649
|
+
designSystemVersionId: z204.string(),
|
|
5650
|
+
title: z204.string(),
|
|
5654
5651
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5655
|
-
shortPersistentId:
|
|
5656
|
-
slug:
|
|
5657
|
-
userSlug:
|
|
5658
|
-
createdAt:
|
|
5659
|
-
updatedAt:
|
|
5660
|
-
path:
|
|
5652
|
+
shortPersistentId: z204.string(),
|
|
5653
|
+
slug: z204.string().optional(),
|
|
5654
|
+
userSlug: z204.string().optional(),
|
|
5655
|
+
createdAt: z204.coerce.date(),
|
|
5656
|
+
updatedAt: z204.coerce.date(),
|
|
5657
|
+
path: z204.string(),
|
|
5661
5658
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5662
5659
|
draftState: DTODocumentationDraftState.optional(),
|
|
5663
5660
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5665,197 +5662,197 @@ var DTODocumentationPageV2 = z203.object({
|
|
|
5665
5662
|
/** Defines the approval state of the documentation page */
|
|
5666
5663
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5667
5664
|
// Backward compatibility
|
|
5668
|
-
type:
|
|
5665
|
+
type: z204.literal("Page")
|
|
5669
5666
|
});
|
|
5670
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5667
|
+
var DTOCreateDocumentationPageInputV2 = z204.object({
|
|
5671
5668
|
// Identifier
|
|
5672
|
-
persistentId:
|
|
5669
|
+
persistentId: z204.string().uuid(),
|
|
5673
5670
|
// Page properties
|
|
5674
|
-
title:
|
|
5671
|
+
title: z204.string(),
|
|
5675
5672
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5676
5673
|
// Page placement properties
|
|
5677
|
-
parentPersistentId:
|
|
5678
|
-
afterPersistentId:
|
|
5674
|
+
parentPersistentId: z204.string().uuid(),
|
|
5675
|
+
afterPersistentId: z204.string().uuid().nullish()
|
|
5679
5676
|
});
|
|
5680
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5677
|
+
var DTOUpdateDocumentationPageInputV2 = z204.object({
|
|
5681
5678
|
// Identifier of the group to update
|
|
5682
|
-
id:
|
|
5679
|
+
id: z204.string(),
|
|
5683
5680
|
// Page properties
|
|
5684
|
-
title:
|
|
5681
|
+
title: z204.string().optional(),
|
|
5685
5682
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5686
5683
|
});
|
|
5687
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5684
|
+
var DTOMoveDocumentationPageInputV2 = z204.object({
|
|
5688
5685
|
// Identifier of the group to update
|
|
5689
|
-
id:
|
|
5686
|
+
id: z204.string(),
|
|
5690
5687
|
// Page placement properties
|
|
5691
|
-
parentPersistentId:
|
|
5692
|
-
afterPersistentId:
|
|
5688
|
+
parentPersistentId: z204.string().uuid(),
|
|
5689
|
+
afterPersistentId: z204.string().uuid().nullish()
|
|
5693
5690
|
});
|
|
5694
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5691
|
+
var DTODuplicateDocumentationPageInputV2 = z204.object({
|
|
5695
5692
|
// Identifier of the page to duplicate from
|
|
5696
|
-
id:
|
|
5693
|
+
id: z204.string(),
|
|
5697
5694
|
// New page persistent id
|
|
5698
|
-
persistentId:
|
|
5695
|
+
persistentId: z204.string().uuid(),
|
|
5699
5696
|
// Page placement properties
|
|
5700
|
-
parentPersistentId:
|
|
5701
|
-
afterPersistentId:
|
|
5697
|
+
parentPersistentId: z204.string().uuid(),
|
|
5698
|
+
afterPersistentId: z204.string().uuid().nullish()
|
|
5702
5699
|
});
|
|
5703
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5700
|
+
var DTODeleteDocumentationPageInputV2 = z204.object({
|
|
5704
5701
|
// Identifier
|
|
5705
|
-
id:
|
|
5702
|
+
id: z204.string()
|
|
5706
5703
|
});
|
|
5707
|
-
var DTORestoreDocumentationPageInput =
|
|
5708
|
-
persistentId:
|
|
5709
|
-
snapshotId:
|
|
5704
|
+
var DTORestoreDocumentationPageInput = z204.object({
|
|
5705
|
+
persistentId: z204.string(),
|
|
5706
|
+
snapshotId: z204.string().optional()
|
|
5710
5707
|
});
|
|
5711
|
-
var DTORestoreDocumentationGroupInput =
|
|
5712
|
-
persistentId:
|
|
5713
|
-
snapshotId:
|
|
5708
|
+
var DTORestoreDocumentationGroupInput = z204.object({
|
|
5709
|
+
persistentId: z204.string(),
|
|
5710
|
+
snapshotId: z204.string().optional()
|
|
5714
5711
|
});
|
|
5715
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5716
|
-
persistentId:
|
|
5712
|
+
var DTODocumentationPageApprovalStateChangeInput = z204.object({
|
|
5713
|
+
persistentId: z204.string(),
|
|
5717
5714
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5718
5715
|
});
|
|
5719
5716
|
|
|
5720
5717
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5721
|
-
var DTODocumentationPageSnapshot =
|
|
5722
|
-
id:
|
|
5723
|
-
designSystemVersionId:
|
|
5724
|
-
createdAt:
|
|
5725
|
-
updatedAt:
|
|
5718
|
+
var DTODocumentationPageSnapshot = z205.object({
|
|
5719
|
+
id: z205.string(),
|
|
5720
|
+
designSystemVersionId: z205.string(),
|
|
5721
|
+
createdAt: z205.string(),
|
|
5722
|
+
updatedAt: z205.string(),
|
|
5726
5723
|
documentationPage: DTODocumentationPageV2,
|
|
5727
|
-
pageContentHash:
|
|
5724
|
+
pageContentHash: z205.string(),
|
|
5728
5725
|
reason: DesignElementSnapshotReason
|
|
5729
5726
|
});
|
|
5730
5727
|
|
|
5731
5728
|
// src/api/dto/documentation/link-preview.ts
|
|
5732
|
-
import { z as
|
|
5733
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5729
|
+
import { z as z206 } from "zod";
|
|
5730
|
+
var DTODocumentationLinkPreviewResponse = z206.object({
|
|
5734
5731
|
linkPreview: DocumentationLinkPreview
|
|
5735
5732
|
});
|
|
5736
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5737
|
-
url:
|
|
5738
|
-
documentationItemPersistentId:
|
|
5733
|
+
var DTODocumentationLinkPreviewRequest = z206.object({
|
|
5734
|
+
url: z206.string().optional(),
|
|
5735
|
+
documentationItemPersistentId: z206.string().optional()
|
|
5739
5736
|
});
|
|
5740
5737
|
|
|
5741
5738
|
// src/api/dto/documentation/publish.ts
|
|
5742
|
-
import { z as
|
|
5739
|
+
import { z as z210 } from "zod";
|
|
5743
5740
|
|
|
5744
5741
|
// src/api/dto/export/exporter.ts
|
|
5745
|
-
import { z as
|
|
5746
|
-
var DTOExporterType =
|
|
5747
|
-
var DTOExporterSource =
|
|
5748
|
-
var DTOExporterMembershipRole =
|
|
5749
|
-
var DTOExporter =
|
|
5750
|
-
id:
|
|
5751
|
-
name:
|
|
5752
|
-
isPrivate:
|
|
5742
|
+
import { z as z207 } from "zod";
|
|
5743
|
+
var DTOExporterType = z207.enum(["documentation", "code"]);
|
|
5744
|
+
var DTOExporterSource = z207.enum(["git", "upload"]);
|
|
5745
|
+
var DTOExporterMembershipRole = z207.enum(["Owner", "OwnerArchived", "User"]);
|
|
5746
|
+
var DTOExporter = z207.object({
|
|
5747
|
+
id: z207.string(),
|
|
5748
|
+
name: z207.string(),
|
|
5749
|
+
isPrivate: z207.boolean(),
|
|
5753
5750
|
exporterType: DTOExporterType,
|
|
5754
|
-
isDefaultDocumentationExporter:
|
|
5755
|
-
iconURL:
|
|
5751
|
+
isDefaultDocumentationExporter: z207.boolean(),
|
|
5752
|
+
iconURL: z207.string().optional(),
|
|
5756
5753
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5757
5754
|
customBlocks: PulsarCustomBlock.array(),
|
|
5758
|
-
blockVariants:
|
|
5759
|
-
usesBrands:
|
|
5760
|
-
usesThemes:
|
|
5755
|
+
blockVariants: z207.record(z207.string(), PulsarContributionVariant.array()),
|
|
5756
|
+
usesBrands: z207.boolean(),
|
|
5757
|
+
usesThemes: z207.boolean(),
|
|
5761
5758
|
source: DTOExporterSource,
|
|
5762
|
-
gitUrl:
|
|
5763
|
-
gitBranch:
|
|
5764
|
-
gitDirectory:
|
|
5759
|
+
gitUrl: z207.string().optional(),
|
|
5760
|
+
gitBranch: z207.string().optional(),
|
|
5761
|
+
gitDirectory: z207.string().optional()
|
|
5765
5762
|
});
|
|
5766
|
-
var DTOExporterMembership =
|
|
5767
|
-
workspaceId:
|
|
5768
|
-
exporterId:
|
|
5763
|
+
var DTOExporterMembership = z207.object({
|
|
5764
|
+
workspaceId: z207.string(),
|
|
5765
|
+
exporterId: z207.string(),
|
|
5769
5766
|
role: DTOExporterMembershipRole
|
|
5770
5767
|
});
|
|
5771
|
-
var DTOExporterCreateOutput =
|
|
5768
|
+
var DTOExporterCreateOutput = z207.object({
|
|
5772
5769
|
exporter: DTOExporter,
|
|
5773
5770
|
membership: DTOExporterMembership
|
|
5774
5771
|
});
|
|
5775
|
-
var DTOExporterGitProviderEnum =
|
|
5776
|
-
var DTOExporterCreateInput =
|
|
5777
|
-
url:
|
|
5772
|
+
var DTOExporterGitProviderEnum = z207.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5773
|
+
var DTOExporterCreateInput = z207.object({
|
|
5774
|
+
url: z207.string(),
|
|
5778
5775
|
provider: DTOExporterGitProviderEnum
|
|
5779
5776
|
});
|
|
5780
|
-
var DTOExporterUpdateInput =
|
|
5781
|
-
url:
|
|
5777
|
+
var DTOExporterUpdateInput = z207.object({
|
|
5778
|
+
url: z207.string().optional()
|
|
5782
5779
|
});
|
|
5783
5780
|
|
|
5784
5781
|
// src/api/dto/export/filter.ts
|
|
5785
5782
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5786
5783
|
|
|
5787
5784
|
// src/api/dto/export/job.ts
|
|
5788
|
-
import { z as
|
|
5789
|
-
var DTOExportJobCreatedBy =
|
|
5790
|
-
userId:
|
|
5791
|
-
userName:
|
|
5785
|
+
import { z as z208 } from "zod";
|
|
5786
|
+
var DTOExportJobCreatedBy = z208.object({
|
|
5787
|
+
userId: z208.string(),
|
|
5788
|
+
userName: z208.string()
|
|
5792
5789
|
});
|
|
5793
|
-
var DTOExportJobDesignSystemPreview =
|
|
5794
|
-
id:
|
|
5790
|
+
var DTOExportJobDesignSystemPreview = z208.object({
|
|
5791
|
+
id: z208.string(),
|
|
5795
5792
|
meta: ObjectMeta
|
|
5796
5793
|
});
|
|
5797
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5798
|
-
id:
|
|
5794
|
+
var DTOExportJobDesignSystemVersionPreview = z208.object({
|
|
5795
|
+
id: z208.string(),
|
|
5799
5796
|
meta: ObjectMeta,
|
|
5800
|
-
version:
|
|
5801
|
-
isReadonly:
|
|
5797
|
+
version: z208.string(),
|
|
5798
|
+
isReadonly: z208.boolean()
|
|
5802
5799
|
});
|
|
5803
|
-
var DTOExportJobDestinations =
|
|
5800
|
+
var DTOExportJobDestinations = z208.object({
|
|
5804
5801
|
s3: ExporterDestinationS3.optional(),
|
|
5805
5802
|
azure: ExporterDestinationAzure.optional(),
|
|
5806
5803
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5807
5804
|
github: ExporterDestinationGithub.optional(),
|
|
5808
5805
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5809
5806
|
documentation: ExporterDestinationDocs.optional(),
|
|
5810
|
-
webhookUrl:
|
|
5807
|
+
webhookUrl: z208.string().optional()
|
|
5811
5808
|
});
|
|
5812
5809
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5813
5810
|
sndocs: true
|
|
5814
5811
|
}).extend({
|
|
5815
5812
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5816
5813
|
});
|
|
5817
|
-
var DTOExportJob =
|
|
5818
|
-
id:
|
|
5819
|
-
createdAt:
|
|
5820
|
-
finishedAt:
|
|
5821
|
-
index:
|
|
5814
|
+
var DTOExportJob = z208.object({
|
|
5815
|
+
id: z208.string(),
|
|
5816
|
+
createdAt: z208.coerce.date(),
|
|
5817
|
+
finishedAt: z208.coerce.date().optional(),
|
|
5818
|
+
index: z208.number().optional(),
|
|
5822
5819
|
status: ExportJobStatus,
|
|
5823
|
-
estimatedExecutionTime:
|
|
5820
|
+
estimatedExecutionTime: z208.number().optional(),
|
|
5824
5821
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5825
5822
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5826
5823
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5827
5824
|
destinations: DTOExportJobDestinations,
|
|
5828
|
-
exporterId:
|
|
5829
|
-
scheduleId:
|
|
5825
|
+
exporterId: z208.string(),
|
|
5826
|
+
scheduleId: z208.string().optional(),
|
|
5830
5827
|
result: DTOExportJobResult.optional(),
|
|
5831
|
-
brandPersistentId:
|
|
5832
|
-
themePersistentId:
|
|
5833
|
-
themePersistentIds:
|
|
5828
|
+
brandPersistentId: z208.string().optional(),
|
|
5829
|
+
themePersistentId: z208.string().optional(),
|
|
5830
|
+
themePersistentIds: z208.string().array().optional()
|
|
5834
5831
|
});
|
|
5835
|
-
var DTOExportJobResponse =
|
|
5832
|
+
var DTOExportJobResponse = z208.object({
|
|
5836
5833
|
job: DTOExportJob
|
|
5837
5834
|
});
|
|
5838
5835
|
|
|
5839
5836
|
// src/api/dto/export/pipeline.ts
|
|
5840
|
-
import { z as
|
|
5841
|
-
var DTOPipeline =
|
|
5842
|
-
id:
|
|
5843
|
-
name:
|
|
5837
|
+
import { z as z209 } from "zod";
|
|
5838
|
+
var DTOPipeline = z209.object({
|
|
5839
|
+
id: z209.string(),
|
|
5840
|
+
name: z209.string(),
|
|
5844
5841
|
eventType: PipelineEventType,
|
|
5845
|
-
isEnabled:
|
|
5846
|
-
workspaceId:
|
|
5847
|
-
designSystemId:
|
|
5848
|
-
exporterId:
|
|
5849
|
-
brandPersistentId:
|
|
5850
|
-
themePersistentId:
|
|
5851
|
-
themePersistentIds:
|
|
5842
|
+
isEnabled: z209.boolean(),
|
|
5843
|
+
workspaceId: z209.string(),
|
|
5844
|
+
designSystemId: z209.string(),
|
|
5845
|
+
exporterId: z209.string(),
|
|
5846
|
+
brandPersistentId: z209.string().optional(),
|
|
5847
|
+
themePersistentId: z209.string().optional(),
|
|
5848
|
+
themePersistentIds: z209.string().array().optional(),
|
|
5852
5849
|
...ExportDestinationsMap.shape,
|
|
5853
5850
|
latestJobs: DTOExportJob.array()
|
|
5854
5851
|
});
|
|
5855
5852
|
|
|
5856
5853
|
// src/api/dto/documentation/publish.ts
|
|
5857
5854
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5858
|
-
var DTOPublishDocumentationRequest =
|
|
5855
|
+
var DTOPublishDocumentationRequest = z210.object({
|
|
5859
5856
|
environment: PublishedDocEnvironment,
|
|
5860
5857
|
/**
|
|
5861
5858
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5863,42 +5860,42 @@ var DTOPublishDocumentationRequest = z209.object({
|
|
|
5863
5860
|
*/
|
|
5864
5861
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5865
5862
|
});
|
|
5866
|
-
var DTOPublishDocumentationResponse =
|
|
5863
|
+
var DTOPublishDocumentationResponse = z210.object({
|
|
5867
5864
|
job: DTOExportJob
|
|
5868
5865
|
});
|
|
5869
5866
|
|
|
5870
5867
|
// src/api/dto/elements/components/figma-component.ts
|
|
5871
|
-
import { z as
|
|
5868
|
+
import { z as z211 } from "zod";
|
|
5872
5869
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
5873
|
-
var DTOFigmaComponentPropertyMap =
|
|
5874
|
-
var DTOFigmaComponent =
|
|
5875
|
-
id:
|
|
5876
|
-
persistentId:
|
|
5877
|
-
designSystemVersionId:
|
|
5878
|
-
brandId:
|
|
5879
|
-
thumbnailUrl:
|
|
5880
|
-
svgUrl:
|
|
5881
|
-
exportProperties:
|
|
5882
|
-
isAsset:
|
|
5870
|
+
var DTOFigmaComponentPropertyMap = z211.record(DTOFigmaComponentProperty);
|
|
5871
|
+
var DTOFigmaComponent = z211.object({
|
|
5872
|
+
id: z211.string(),
|
|
5873
|
+
persistentId: z211.string(),
|
|
5874
|
+
designSystemVersionId: z211.string(),
|
|
5875
|
+
brandId: z211.string(),
|
|
5876
|
+
thumbnailUrl: z211.string().optional(),
|
|
5877
|
+
svgUrl: z211.string().optional(),
|
|
5878
|
+
exportProperties: z211.object({
|
|
5879
|
+
isAsset: z211.boolean()
|
|
5883
5880
|
}),
|
|
5884
|
-
createdAt:
|
|
5885
|
-
updatedAt:
|
|
5881
|
+
createdAt: z211.coerce.date(),
|
|
5882
|
+
updatedAt: z211.coerce.date(),
|
|
5886
5883
|
meta: ObjectMeta,
|
|
5887
5884
|
originComponent: FigmaComponentOrigin.optional(),
|
|
5888
|
-
parentComponentPersistentId:
|
|
5889
|
-
childrenPersistentIds:
|
|
5885
|
+
parentComponentPersistentId: z211.string().optional(),
|
|
5886
|
+
childrenPersistentIds: z211.string().array().optional(),
|
|
5890
5887
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
5891
|
-
variantPropertyValues:
|
|
5888
|
+
variantPropertyValues: z211.record(z211.string()).optional()
|
|
5892
5889
|
});
|
|
5893
|
-
var DTOFigmaComponentListResponse =
|
|
5890
|
+
var DTOFigmaComponentListResponse = z211.object({
|
|
5894
5891
|
components: DTOFigmaComponent.array()
|
|
5895
5892
|
});
|
|
5896
5893
|
|
|
5897
5894
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5898
|
-
import { z as
|
|
5895
|
+
import { z as z213 } from "zod";
|
|
5899
5896
|
|
|
5900
5897
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
5901
|
-
import { z as
|
|
5898
|
+
import { z as z212 } from "zod";
|
|
5902
5899
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
5903
5900
|
sortOrder: true,
|
|
5904
5901
|
parentPersistentId: true,
|
|
@@ -5908,13 +5905,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5908
5905
|
data: true,
|
|
5909
5906
|
shortPersistentId: true
|
|
5910
5907
|
}).extend({
|
|
5911
|
-
title:
|
|
5912
|
-
isRoot:
|
|
5913
|
-
childrenIds:
|
|
5908
|
+
title: z212.string(),
|
|
5909
|
+
isRoot: z212.boolean(),
|
|
5910
|
+
childrenIds: z212.array(z212.string()),
|
|
5914
5911
|
groupBehavior: DocumentationGroupBehavior,
|
|
5915
|
-
shortPersistentId:
|
|
5912
|
+
shortPersistentId: z212.string(),
|
|
5916
5913
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5917
|
-
type:
|
|
5914
|
+
type: z212.literal("Group"),
|
|
5918
5915
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
5919
5916
|
draftState: DTODocumentationDraftState.optional(),
|
|
5920
5917
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -5922,127 +5919,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5922
5919
|
//** An approval state for frontend to utilize. */
|
|
5923
5920
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
5924
5921
|
});
|
|
5925
|
-
var DTOCreateDocumentationGroupInput =
|
|
5922
|
+
var DTOCreateDocumentationGroupInput = z212.object({
|
|
5926
5923
|
// Identifier
|
|
5927
|
-
persistentId:
|
|
5924
|
+
persistentId: z212.string().uuid(),
|
|
5928
5925
|
// Group properties
|
|
5929
|
-
title:
|
|
5926
|
+
title: z212.string(),
|
|
5930
5927
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5931
5928
|
// Group placement properties
|
|
5932
|
-
afterPersistentId:
|
|
5933
|
-
parentPersistentId:
|
|
5929
|
+
afterPersistentId: z212.string().uuid().nullish(),
|
|
5930
|
+
parentPersistentId: z212.string().uuid()
|
|
5934
5931
|
});
|
|
5935
|
-
var DTOUpdateDocumentationGroupInput =
|
|
5932
|
+
var DTOUpdateDocumentationGroupInput = z212.object({
|
|
5936
5933
|
// Identifier of the group to update
|
|
5937
|
-
id:
|
|
5934
|
+
id: z212.string(),
|
|
5938
5935
|
// Group properties
|
|
5939
|
-
title:
|
|
5936
|
+
title: z212.string().optional(),
|
|
5940
5937
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5941
5938
|
});
|
|
5942
|
-
var DTOMoveDocumentationGroupInput =
|
|
5939
|
+
var DTOMoveDocumentationGroupInput = z212.object({
|
|
5943
5940
|
// Identifier of the group to update
|
|
5944
|
-
id:
|
|
5941
|
+
id: z212.string(),
|
|
5945
5942
|
// Group placement properties
|
|
5946
|
-
parentPersistentId:
|
|
5947
|
-
afterPersistentId:
|
|
5943
|
+
parentPersistentId: z212.string().uuid(),
|
|
5944
|
+
afterPersistentId: z212.string().uuid().nullish()
|
|
5948
5945
|
});
|
|
5949
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5946
|
+
var DTODuplicateDocumentationGroupInput = z212.object({
|
|
5950
5947
|
// Identifier of the group to duplicate from
|
|
5951
|
-
id:
|
|
5948
|
+
id: z212.string(),
|
|
5952
5949
|
// New group persistent id
|
|
5953
|
-
persistentId:
|
|
5950
|
+
persistentId: z212.string().uuid(),
|
|
5954
5951
|
// Group placement properties
|
|
5955
|
-
afterPersistentId:
|
|
5956
|
-
parentPersistentId:
|
|
5952
|
+
afterPersistentId: z212.string().uuid().nullish(),
|
|
5953
|
+
parentPersistentId: z212.string().uuid()
|
|
5957
5954
|
});
|
|
5958
|
-
var DTOCreateDocumentationTabInput =
|
|
5955
|
+
var DTOCreateDocumentationTabInput = z212.object({
|
|
5959
5956
|
// New group persistent id
|
|
5960
|
-
persistentId:
|
|
5957
|
+
persistentId: z212.string().uuid(),
|
|
5961
5958
|
// If this is page, we will attempt to convert it to tab
|
|
5962
5959
|
// If this is tab group, we will add a new tab to it
|
|
5963
|
-
fromItemPersistentId:
|
|
5964
|
-
tabName:
|
|
5960
|
+
fromItemPersistentId: z212.string(),
|
|
5961
|
+
tabName: z212.string()
|
|
5965
5962
|
});
|
|
5966
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5963
|
+
var DTODeleteDocumentationTabGroupInput = z212.object({
|
|
5967
5964
|
// Deleted group id
|
|
5968
|
-
id:
|
|
5965
|
+
id: z212.string()
|
|
5969
5966
|
});
|
|
5970
|
-
var DTODeleteDocumentationGroupInput =
|
|
5967
|
+
var DTODeleteDocumentationGroupInput = z212.object({
|
|
5971
5968
|
// Identifier
|
|
5972
|
-
id:
|
|
5969
|
+
id: z212.string(),
|
|
5973
5970
|
// Deletion options
|
|
5974
|
-
deleteSubtree:
|
|
5971
|
+
deleteSubtree: z212.boolean().default(false)
|
|
5975
5972
|
});
|
|
5976
5973
|
|
|
5977
5974
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5978
|
-
var SuccessPayload =
|
|
5979
|
-
success:
|
|
5975
|
+
var SuccessPayload = z213.object({
|
|
5976
|
+
success: z213.literal(true)
|
|
5980
5977
|
});
|
|
5981
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5982
|
-
type:
|
|
5978
|
+
var DTODocumentationGroupCreateActionOutputV2 = z213.object({
|
|
5979
|
+
type: z213.literal("DocumentationGroupCreate"),
|
|
5983
5980
|
output: SuccessPayload
|
|
5984
5981
|
});
|
|
5985
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5986
|
-
type:
|
|
5982
|
+
var DTODocumentationTabCreateActionOutputV2 = z213.object({
|
|
5983
|
+
type: z213.literal("DocumentationTabCreate"),
|
|
5987
5984
|
output: SuccessPayload
|
|
5988
5985
|
});
|
|
5989
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5990
|
-
type:
|
|
5986
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z213.object({
|
|
5987
|
+
type: z213.literal("DocumentationGroupUpdate"),
|
|
5991
5988
|
output: SuccessPayload
|
|
5992
5989
|
});
|
|
5993
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5994
|
-
type:
|
|
5990
|
+
var DTODocumentationGroupMoveActionOutputV2 = z213.object({
|
|
5991
|
+
type: z213.literal("DocumentationGroupMove"),
|
|
5995
5992
|
output: SuccessPayload
|
|
5996
5993
|
});
|
|
5997
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5998
|
-
type:
|
|
5994
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z213.object({
|
|
5995
|
+
type: z213.literal("DocumentationGroupDuplicate"),
|
|
5999
5996
|
output: SuccessPayload
|
|
6000
5997
|
});
|
|
6001
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6002
|
-
type:
|
|
5998
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z213.object({
|
|
5999
|
+
type: z213.literal("DocumentationGroupDelete"),
|
|
6003
6000
|
output: SuccessPayload
|
|
6004
6001
|
});
|
|
6005
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6006
|
-
type:
|
|
6002
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z213.object({
|
|
6003
|
+
type: z213.literal("DocumentationTabGroupDelete"),
|
|
6007
6004
|
output: SuccessPayload
|
|
6008
6005
|
});
|
|
6009
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6010
|
-
type:
|
|
6006
|
+
var DTODocumentationGroupCreateActionInputV2 = z213.object({
|
|
6007
|
+
type: z213.literal("DocumentationGroupCreate"),
|
|
6011
6008
|
input: DTOCreateDocumentationGroupInput
|
|
6012
6009
|
});
|
|
6013
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6014
|
-
type:
|
|
6010
|
+
var DTODocumentationTabCreateActionInputV2 = z213.object({
|
|
6011
|
+
type: z213.literal("DocumentationTabCreate"),
|
|
6015
6012
|
input: DTOCreateDocumentationTabInput
|
|
6016
6013
|
});
|
|
6017
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6018
|
-
type:
|
|
6014
|
+
var DTODocumentationGroupUpdateActionInputV2 = z213.object({
|
|
6015
|
+
type: z213.literal("DocumentationGroupUpdate"),
|
|
6019
6016
|
input: DTOUpdateDocumentationGroupInput
|
|
6020
6017
|
});
|
|
6021
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6022
|
-
type:
|
|
6018
|
+
var DTODocumentationGroupMoveActionInputV2 = z213.object({
|
|
6019
|
+
type: z213.literal("DocumentationGroupMove"),
|
|
6023
6020
|
input: DTOMoveDocumentationGroupInput
|
|
6024
6021
|
});
|
|
6025
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6026
|
-
type:
|
|
6022
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z213.object({
|
|
6023
|
+
type: z213.literal("DocumentationGroupDuplicate"),
|
|
6027
6024
|
input: DTODuplicateDocumentationGroupInput
|
|
6028
6025
|
});
|
|
6029
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6030
|
-
type:
|
|
6026
|
+
var DTODocumentationGroupDeleteActionInputV2 = z213.object({
|
|
6027
|
+
type: z213.literal("DocumentationGroupDelete"),
|
|
6031
6028
|
input: DTODeleteDocumentationGroupInput
|
|
6032
6029
|
});
|
|
6033
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6034
|
-
type:
|
|
6030
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z213.object({
|
|
6031
|
+
type: z213.literal("DocumentationTabGroupDelete"),
|
|
6035
6032
|
input: DTODeleteDocumentationTabGroupInput
|
|
6036
6033
|
});
|
|
6037
6034
|
|
|
6038
6035
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6039
|
-
import { z as
|
|
6036
|
+
import { z as z215 } from "zod";
|
|
6040
6037
|
|
|
6041
6038
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6042
|
-
import { z as
|
|
6043
|
-
var DocumentationColorV1 =
|
|
6044
|
-
aliasTo:
|
|
6045
|
-
value:
|
|
6039
|
+
import { z as z214 } from "zod";
|
|
6040
|
+
var DocumentationColorV1 = z214.object({
|
|
6041
|
+
aliasTo: z214.string().optional(),
|
|
6042
|
+
value: z214.string().optional()
|
|
6046
6043
|
});
|
|
6047
6044
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6048
6045
|
foregroundColor: true,
|
|
@@ -6051,10 +6048,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6051
6048
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6052
6049
|
backgroundColor: DocumentationColorV1.optional()
|
|
6053
6050
|
});
|
|
6054
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6055
|
-
showSidebar:
|
|
6056
|
-
isPrivate:
|
|
6057
|
-
isHidden:
|
|
6051
|
+
var DTODocumentationItemConfigurationV1 = z214.object({
|
|
6052
|
+
showSidebar: z214.boolean(),
|
|
6053
|
+
isPrivate: z214.boolean(),
|
|
6054
|
+
isHidden: z214.boolean(),
|
|
6058
6055
|
header: DTODocumentationItemHeaderV1
|
|
6059
6056
|
});
|
|
6060
6057
|
|
|
@@ -6068,27 +6065,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6068
6065
|
data: true,
|
|
6069
6066
|
shortPersistentId: true
|
|
6070
6067
|
}).extend({
|
|
6071
|
-
title:
|
|
6072
|
-
isRoot:
|
|
6073
|
-
childrenIds:
|
|
6068
|
+
title: z215.string(),
|
|
6069
|
+
isRoot: z215.boolean(),
|
|
6070
|
+
childrenIds: z215.array(z215.string()),
|
|
6074
6071
|
groupBehavior: DocumentationGroupBehavior,
|
|
6075
|
-
shortPersistentId:
|
|
6076
|
-
type:
|
|
6072
|
+
shortPersistentId: z215.string(),
|
|
6073
|
+
type: z215.literal("Group")
|
|
6077
6074
|
});
|
|
6078
6075
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6079
6076
|
configuration: DTODocumentationItemConfigurationV1
|
|
6080
6077
|
});
|
|
6081
6078
|
|
|
6082
6079
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6083
|
-
import { z as
|
|
6084
|
-
var DTODocumentationHierarchyV2 =
|
|
6085
|
-
pages:
|
|
6080
|
+
import { z as z216 } from "zod";
|
|
6081
|
+
var DTODocumentationHierarchyV2 = z216.object({
|
|
6082
|
+
pages: z216.array(
|
|
6086
6083
|
DTODocumentationPageV2.extend({
|
|
6087
6084
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6088
6085
|
draftState: DTODocumentationDraftState.optional()
|
|
6089
6086
|
})
|
|
6090
6087
|
),
|
|
6091
|
-
groups:
|
|
6088
|
+
groups: z216.array(
|
|
6092
6089
|
DTODocumentationGroupV2.extend({
|
|
6093
6090
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6094
6091
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6097,84 +6094,84 @@ var DTODocumentationHierarchyV2 = z215.object({
|
|
|
6097
6094
|
});
|
|
6098
6095
|
|
|
6099
6096
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6100
|
-
import { z as
|
|
6101
|
-
var SuccessPayload2 =
|
|
6102
|
-
success:
|
|
6097
|
+
import { z as z217 } from "zod";
|
|
6098
|
+
var SuccessPayload2 = z217.object({
|
|
6099
|
+
success: z217.literal(true)
|
|
6103
6100
|
});
|
|
6104
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6105
|
-
type:
|
|
6101
|
+
var DTODocumentationPageCreateActionOutputV2 = z217.object({
|
|
6102
|
+
type: z217.literal("DocumentationPageCreate"),
|
|
6106
6103
|
output: SuccessPayload2
|
|
6107
6104
|
});
|
|
6108
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6109
|
-
type:
|
|
6105
|
+
var DTODocumentationPageUpdateActionOutputV2 = z217.object({
|
|
6106
|
+
type: z217.literal("DocumentationPageUpdate"),
|
|
6110
6107
|
output: SuccessPayload2
|
|
6111
6108
|
});
|
|
6112
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6113
|
-
type:
|
|
6109
|
+
var DTODocumentationPageMoveActionOutputV2 = z217.object({
|
|
6110
|
+
type: z217.literal("DocumentationPageMove"),
|
|
6114
6111
|
output: SuccessPayload2
|
|
6115
6112
|
});
|
|
6116
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6117
|
-
type:
|
|
6113
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z217.object({
|
|
6114
|
+
type: z217.literal("DocumentationPageDuplicate"),
|
|
6118
6115
|
output: SuccessPayload2
|
|
6119
6116
|
});
|
|
6120
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6121
|
-
type:
|
|
6117
|
+
var DTODocumentationPageDeleteActionOutputV2 = z217.object({
|
|
6118
|
+
type: z217.literal("DocumentationPageDelete"),
|
|
6122
6119
|
output: SuccessPayload2
|
|
6123
6120
|
});
|
|
6124
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6125
|
-
type:
|
|
6121
|
+
var DTODocumentationPageRestoreActionOutput = z217.object({
|
|
6122
|
+
type: z217.literal("DocumentationPageRestore"),
|
|
6126
6123
|
output: SuccessPayload2
|
|
6127
6124
|
});
|
|
6128
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6129
|
-
type:
|
|
6125
|
+
var DTODocumentationGroupRestoreActionOutput = z217.object({
|
|
6126
|
+
type: z217.literal("DocumentationGroupRestore"),
|
|
6130
6127
|
output: SuccessPayload2
|
|
6131
6128
|
});
|
|
6132
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6133
|
-
type:
|
|
6129
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z217.object({
|
|
6130
|
+
type: z217.literal("DocumentationPageApprovalStateChange"),
|
|
6134
6131
|
output: SuccessPayload2
|
|
6135
6132
|
});
|
|
6136
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6137
|
-
type:
|
|
6133
|
+
var DTODocumentationPageCreateActionInputV2 = z217.object({
|
|
6134
|
+
type: z217.literal("DocumentationPageCreate"),
|
|
6138
6135
|
input: DTOCreateDocumentationPageInputV2
|
|
6139
6136
|
});
|
|
6140
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6141
|
-
type:
|
|
6137
|
+
var DTODocumentationPageUpdateActionInputV2 = z217.object({
|
|
6138
|
+
type: z217.literal("DocumentationPageUpdate"),
|
|
6142
6139
|
input: DTOUpdateDocumentationPageInputV2
|
|
6143
6140
|
});
|
|
6144
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6145
|
-
type:
|
|
6141
|
+
var DTODocumentationPageMoveActionInputV2 = z217.object({
|
|
6142
|
+
type: z217.literal("DocumentationPageMove"),
|
|
6146
6143
|
input: DTOMoveDocumentationPageInputV2
|
|
6147
6144
|
});
|
|
6148
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6149
|
-
type:
|
|
6145
|
+
var DTODocumentationPageDuplicateActionInputV2 = z217.object({
|
|
6146
|
+
type: z217.literal("DocumentationPageDuplicate"),
|
|
6150
6147
|
input: DTODuplicateDocumentationPageInputV2
|
|
6151
6148
|
});
|
|
6152
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6153
|
-
type:
|
|
6149
|
+
var DTODocumentationPageDeleteActionInputV2 = z217.object({
|
|
6150
|
+
type: z217.literal("DocumentationPageDelete"),
|
|
6154
6151
|
input: DTODeleteDocumentationPageInputV2
|
|
6155
6152
|
});
|
|
6156
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6157
|
-
type:
|
|
6153
|
+
var DTODocumentationPageRestoreActionInput = z217.object({
|
|
6154
|
+
type: z217.literal("DocumentationPageRestore"),
|
|
6158
6155
|
input: DTORestoreDocumentationPageInput
|
|
6159
6156
|
});
|
|
6160
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6161
|
-
type:
|
|
6157
|
+
var DTODocumentationGroupRestoreActionInput = z217.object({
|
|
6158
|
+
type: z217.literal("DocumentationGroupRestore"),
|
|
6162
6159
|
input: DTORestoreDocumentationGroupInput
|
|
6163
6160
|
});
|
|
6164
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6165
|
-
type:
|
|
6161
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z217.object({
|
|
6162
|
+
type: z217.literal("DocumentationPageApprovalStateChange"),
|
|
6166
6163
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6167
6164
|
});
|
|
6168
6165
|
|
|
6169
6166
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6170
|
-
import { z as
|
|
6167
|
+
import { z as z218 } from "zod";
|
|
6171
6168
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6172
|
-
var DTODocumentationPageContentGetResponse =
|
|
6169
|
+
var DTODocumentationPageContentGetResponse = z218.object({
|
|
6173
6170
|
pageContent: DTODocumentationPageContent
|
|
6174
6171
|
});
|
|
6175
6172
|
|
|
6176
6173
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6177
|
-
import { z as
|
|
6174
|
+
import { z as z219 } from "zod";
|
|
6178
6175
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6179
6176
|
data: true,
|
|
6180
6177
|
meta: true,
|
|
@@ -6182,32 +6179,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6182
6179
|
sortOrder: true
|
|
6183
6180
|
}).extend({
|
|
6184
6181
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6185
|
-
blocks:
|
|
6186
|
-
title:
|
|
6187
|
-
path:
|
|
6182
|
+
blocks: z219.array(PageBlockV1),
|
|
6183
|
+
title: z219.string(),
|
|
6184
|
+
path: z219.string()
|
|
6188
6185
|
});
|
|
6189
6186
|
|
|
6190
6187
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6191
|
-
import { z as
|
|
6188
|
+
import { z as z220 } from "zod";
|
|
6192
6189
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6193
|
-
var DTOFigmaNodeOrigin =
|
|
6194
|
-
sourceId:
|
|
6195
|
-
fileId:
|
|
6196
|
-
parentName:
|
|
6190
|
+
var DTOFigmaNodeOrigin = z220.object({
|
|
6191
|
+
sourceId: z220.string(),
|
|
6192
|
+
fileId: z220.string().optional(),
|
|
6193
|
+
parentName: z220.string().optional()
|
|
6197
6194
|
});
|
|
6198
|
-
var DTOFigmaNodeData =
|
|
6195
|
+
var DTOFigmaNodeData = z220.object({
|
|
6199
6196
|
// Id of the node in the Figma file
|
|
6200
|
-
figmaNodeId:
|
|
6197
|
+
figmaNodeId: z220.string(),
|
|
6201
6198
|
// Validity
|
|
6202
|
-
isValid:
|
|
6199
|
+
isValid: z220.boolean(),
|
|
6203
6200
|
// Asset data
|
|
6204
|
-
assetId:
|
|
6205
|
-
assetUrl:
|
|
6201
|
+
assetId: z220.string(),
|
|
6202
|
+
assetUrl: z220.string(),
|
|
6206
6203
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6207
6204
|
// Asset metadata
|
|
6208
|
-
assetScale:
|
|
6209
|
-
assetWidth:
|
|
6210
|
-
assetHeight:
|
|
6205
|
+
assetScale: z220.number(),
|
|
6206
|
+
assetWidth: z220.number().optional(),
|
|
6207
|
+
assetHeight: z220.number().optional()
|
|
6211
6208
|
});
|
|
6212
6209
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6213
6210
|
data: true,
|
|
@@ -6216,15 +6213,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6216
6213
|
data: DTOFigmaNodeData,
|
|
6217
6214
|
origin: DTOFigmaNodeOrigin
|
|
6218
6215
|
});
|
|
6219
|
-
var DTOFigmaNodeRenderInput =
|
|
6216
|
+
var DTOFigmaNodeRenderInput = z220.object({
|
|
6220
6217
|
/**
|
|
6221
6218
|
* Id of a design system's data source representing a linked Figma file
|
|
6222
6219
|
*/
|
|
6223
|
-
sourceId:
|
|
6220
|
+
sourceId: z220.string(),
|
|
6224
6221
|
/**
|
|
6225
6222
|
* Id of a node within the Figma file
|
|
6226
6223
|
*/
|
|
6227
|
-
figmaFileNodeId:
|
|
6224
|
+
figmaFileNodeId: z220.string(),
|
|
6228
6225
|
/**
|
|
6229
6226
|
* Format in which the node must be rendered, png by default.
|
|
6230
6227
|
*/
|
|
@@ -6232,97 +6229,97 @@ var DTOFigmaNodeRenderInput = z219.object({
|
|
|
6232
6229
|
});
|
|
6233
6230
|
|
|
6234
6231
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6235
|
-
import { z as
|
|
6236
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6237
|
-
type:
|
|
6238
|
-
figmaNodes:
|
|
6232
|
+
import { z as z221 } from "zod";
|
|
6233
|
+
var DTOFigmaNodeRenderActionOutput = z221.object({
|
|
6234
|
+
type: z221.literal("FigmaNodeRender"),
|
|
6235
|
+
figmaNodes: z221.array(DTOFigmaNode)
|
|
6239
6236
|
});
|
|
6240
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6241
|
-
type:
|
|
6237
|
+
var DTOFigmaNodeRenderActionInput = z221.object({
|
|
6238
|
+
type: z221.literal("FigmaNodeRender"),
|
|
6242
6239
|
input: DTOFigmaNodeRenderInput.array()
|
|
6243
6240
|
});
|
|
6244
6241
|
|
|
6245
6242
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6246
|
-
import { z as
|
|
6243
|
+
import { z as z223 } from "zod";
|
|
6247
6244
|
|
|
6248
6245
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6249
|
-
import { z as
|
|
6246
|
+
import { z as z222 } from "zod";
|
|
6250
6247
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6251
|
-
var DTOElementPropertyDefinition =
|
|
6252
|
-
id:
|
|
6253
|
-
designSystemVersionId:
|
|
6248
|
+
var DTOElementPropertyDefinition = z222.object({
|
|
6249
|
+
id: z222.string(),
|
|
6250
|
+
designSystemVersionId: z222.string(),
|
|
6254
6251
|
meta: ObjectMeta,
|
|
6255
|
-
persistentId:
|
|
6252
|
+
persistentId: z222.string(),
|
|
6256
6253
|
type: ElementPropertyTypeSchema,
|
|
6257
6254
|
targetElementType: ElementPropertyTargetType,
|
|
6258
|
-
codeName:
|
|
6259
|
-
options:
|
|
6255
|
+
codeName: z222.string().regex(CODE_NAME_REGEX2),
|
|
6256
|
+
options: z222.array(ElementPropertyDefinitionOption).optional(),
|
|
6260
6257
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6261
6258
|
});
|
|
6262
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6263
|
-
definitions:
|
|
6259
|
+
var DTOElementPropertyDefinitionsGetResponse = z222.object({
|
|
6260
|
+
definitions: z222.array(DTOElementPropertyDefinition)
|
|
6264
6261
|
});
|
|
6265
6262
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6266
6263
|
id: true,
|
|
6267
6264
|
designSystemVersionId: true
|
|
6268
6265
|
});
|
|
6269
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6270
|
-
id:
|
|
6271
|
-
name:
|
|
6272
|
-
description:
|
|
6273
|
-
codeName:
|
|
6274
|
-
options:
|
|
6266
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z222.object({
|
|
6267
|
+
id: z222.string(),
|
|
6268
|
+
name: z222.string().optional(),
|
|
6269
|
+
description: z222.string().optional(),
|
|
6270
|
+
codeName: z222.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6271
|
+
options: z222.array(ElementPropertyDefinitionOption).optional()
|
|
6275
6272
|
});
|
|
6276
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6277
|
-
id:
|
|
6273
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z222.object({
|
|
6274
|
+
id: z222.string()
|
|
6278
6275
|
});
|
|
6279
6276
|
|
|
6280
6277
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6281
|
-
var SuccessPayload3 =
|
|
6282
|
-
success:
|
|
6278
|
+
var SuccessPayload3 = z223.object({
|
|
6279
|
+
success: z223.literal(true)
|
|
6283
6280
|
});
|
|
6284
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6285
|
-
type:
|
|
6281
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z223.object({
|
|
6282
|
+
type: z223.literal("PropertyDefinitionCreate"),
|
|
6286
6283
|
definition: DTOElementPropertyDefinition
|
|
6287
6284
|
});
|
|
6288
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6289
|
-
type:
|
|
6285
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z223.object({
|
|
6286
|
+
type: z223.literal("PropertyDefinitionUpdate"),
|
|
6290
6287
|
definition: DTOElementPropertyDefinition
|
|
6291
6288
|
});
|
|
6292
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6293
|
-
type:
|
|
6289
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z223.object({
|
|
6290
|
+
type: z223.literal("PropertyDefinitionDelete"),
|
|
6294
6291
|
output: SuccessPayload3
|
|
6295
6292
|
});
|
|
6296
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6297
|
-
type:
|
|
6293
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z223.object({
|
|
6294
|
+
type: z223.literal("PropertyDefinitionCreate"),
|
|
6298
6295
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6299
6296
|
});
|
|
6300
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6301
|
-
type:
|
|
6297
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z223.object({
|
|
6298
|
+
type: z223.literal("PropertyDefinitionUpdate"),
|
|
6302
6299
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6303
6300
|
});
|
|
6304
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6305
|
-
type:
|
|
6301
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z223.object({
|
|
6302
|
+
type: z223.literal("PropertyDefinitionDelete"),
|
|
6306
6303
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6307
6304
|
});
|
|
6308
6305
|
|
|
6309
6306
|
// src/api/dto/elements/properties/property-values.ts
|
|
6310
|
-
import { z as
|
|
6311
|
-
var DTOElementPropertyValue =
|
|
6312
|
-
id:
|
|
6313
|
-
designSystemVersionId:
|
|
6314
|
-
definitionId:
|
|
6315
|
-
targetElementId:
|
|
6316
|
-
value:
|
|
6317
|
-
valuePreview:
|
|
6307
|
+
import { z as z224 } from "zod";
|
|
6308
|
+
var DTOElementPropertyValue = z224.object({
|
|
6309
|
+
id: z224.string(),
|
|
6310
|
+
designSystemVersionId: z224.string(),
|
|
6311
|
+
definitionId: z224.string(),
|
|
6312
|
+
targetElementId: z224.string(),
|
|
6313
|
+
value: z224.union([z224.string(), z224.number(), z224.boolean()]).optional(),
|
|
6314
|
+
valuePreview: z224.string().optional()
|
|
6318
6315
|
});
|
|
6319
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6320
|
-
values:
|
|
6316
|
+
var DTOElementPropertyValuesGetResponse = z224.object({
|
|
6317
|
+
values: z224.array(DTOElementPropertyValue)
|
|
6321
6318
|
});
|
|
6322
6319
|
|
|
6323
6320
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6324
|
-
import { z as
|
|
6325
|
-
var DTOElementActionOutput =
|
|
6321
|
+
import { z as z225 } from "zod";
|
|
6322
|
+
var DTOElementActionOutput = z225.discriminatedUnion("type", [
|
|
6326
6323
|
// Documentation pages
|
|
6327
6324
|
DTODocumentationPageCreateActionOutputV2,
|
|
6328
6325
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6349,7 +6346,7 @@ var DTOElementActionOutput = z224.discriminatedUnion("type", [
|
|
|
6349
6346
|
// Approvals
|
|
6350
6347
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6351
6348
|
]);
|
|
6352
|
-
var DTOElementActionInput =
|
|
6349
|
+
var DTOElementActionInput = z225.discriminatedUnion("type", [
|
|
6353
6350
|
// Documentation pages
|
|
6354
6351
|
DTODocumentationPageCreateActionInputV2,
|
|
6355
6352
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6378,60 +6375,60 @@ var DTOElementActionInput = z224.discriminatedUnion("type", [
|
|
|
6378
6375
|
]);
|
|
6379
6376
|
|
|
6380
6377
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6381
|
-
import { z as
|
|
6382
|
-
var DTOElementsGetTypeFilter =
|
|
6383
|
-
var DTOElementsGetQuerySchema =
|
|
6384
|
-
types:
|
|
6378
|
+
import { z as z226 } from "zod";
|
|
6379
|
+
var DTOElementsGetTypeFilter = z226.enum(["FigmaNode"]);
|
|
6380
|
+
var DTOElementsGetQuerySchema = z226.object({
|
|
6381
|
+
types: z226.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6385
6382
|
});
|
|
6386
|
-
var DTOElementsGetOutput =
|
|
6387
|
-
figmaNodes:
|
|
6383
|
+
var DTOElementsGetOutput = z226.object({
|
|
6384
|
+
figmaNodes: z226.array(DTOFigmaNode).optional()
|
|
6388
6385
|
});
|
|
6389
6386
|
|
|
6390
6387
|
// src/api/dto/figma-components/assets/download.ts
|
|
6391
|
-
import { z as
|
|
6392
|
-
var DTOAssetRenderConfiguration =
|
|
6393
|
-
prefix:
|
|
6394
|
-
suffix:
|
|
6395
|
-
scale:
|
|
6396
|
-
format:
|
|
6397
|
-
});
|
|
6398
|
-
var DTORenderedAssetFile =
|
|
6399
|
-
assetId:
|
|
6400
|
-
fileName:
|
|
6401
|
-
sourceUrl:
|
|
6388
|
+
import { z as z227 } from "zod";
|
|
6389
|
+
var DTOAssetRenderConfiguration = z227.object({
|
|
6390
|
+
prefix: z227.string().optional(),
|
|
6391
|
+
suffix: z227.string().optional(),
|
|
6392
|
+
scale: z227.enum(["x1", "x2", "x3", "x4"]),
|
|
6393
|
+
format: z227.enum(["png", "pdf", "svg"])
|
|
6394
|
+
});
|
|
6395
|
+
var DTORenderedAssetFile = z227.object({
|
|
6396
|
+
assetId: z227.string(),
|
|
6397
|
+
fileName: z227.string(),
|
|
6398
|
+
sourceUrl: z227.string(),
|
|
6402
6399
|
settings: DTOAssetRenderConfiguration,
|
|
6403
|
-
originalName:
|
|
6400
|
+
originalName: z227.string()
|
|
6404
6401
|
});
|
|
6405
|
-
var DTODownloadAssetsRequest =
|
|
6406
|
-
persistentIds:
|
|
6402
|
+
var DTODownloadAssetsRequest = z227.object({
|
|
6403
|
+
persistentIds: z227.array(z227.string().uuid()).optional(),
|
|
6407
6404
|
settings: DTOAssetRenderConfiguration.array()
|
|
6408
6405
|
});
|
|
6409
|
-
var DTODownloadAssetsResponse =
|
|
6406
|
+
var DTODownloadAssetsResponse = z227.object({
|
|
6410
6407
|
items: DTORenderedAssetFile.array()
|
|
6411
6408
|
});
|
|
6412
6409
|
|
|
6413
6410
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6414
|
-
import { z as
|
|
6415
|
-
var DTOLiveblocksAuthResponse =
|
|
6416
|
-
token:
|
|
6411
|
+
import { z as z228 } from "zod";
|
|
6412
|
+
var DTOLiveblocksAuthResponse = z228.object({
|
|
6413
|
+
token: z228.string()
|
|
6417
6414
|
});
|
|
6418
6415
|
|
|
6419
6416
|
// src/api/dto/users/authenticated-user.ts
|
|
6420
|
-
import { z as
|
|
6417
|
+
import { z as z230 } from "zod";
|
|
6421
6418
|
|
|
6422
6419
|
// src/api/dto/users/user.ts
|
|
6423
|
-
import { z as
|
|
6424
|
-
var DTOUserProfile =
|
|
6425
|
-
name:
|
|
6426
|
-
nickname:
|
|
6427
|
-
avatar:
|
|
6428
|
-
});
|
|
6429
|
-
var DTOUser =
|
|
6430
|
-
id:
|
|
6431
|
-
email:
|
|
6420
|
+
import { z as z229 } from "zod";
|
|
6421
|
+
var DTOUserProfile = z229.object({
|
|
6422
|
+
name: z229.string(),
|
|
6423
|
+
nickname: z229.string().optional(),
|
|
6424
|
+
avatar: z229.string().optional()
|
|
6425
|
+
});
|
|
6426
|
+
var DTOUser = z229.object({
|
|
6427
|
+
id: z229.string(),
|
|
6428
|
+
email: z229.string(),
|
|
6432
6429
|
profile: DTOUserProfile
|
|
6433
6430
|
});
|
|
6434
|
-
var DTOUserGetResponse =
|
|
6431
|
+
var DTOUserGetResponse = z229.object({
|
|
6435
6432
|
user: DTOUser
|
|
6436
6433
|
});
|
|
6437
6434
|
|
|
@@ -6439,34 +6436,34 @@ var DTOUserGetResponse = z228.object({
|
|
|
6439
6436
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6440
6437
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6441
6438
|
var DTOUserSource = UserSource;
|
|
6442
|
-
var DTOUserOnboarding =
|
|
6443
|
-
companyName:
|
|
6444
|
-
numberOfPeopleInOrg:
|
|
6445
|
-
numberOfPeopleInDesignTeam:
|
|
6439
|
+
var DTOUserOnboarding = z230.object({
|
|
6440
|
+
companyName: z230.string().optional(),
|
|
6441
|
+
numberOfPeopleInOrg: z230.string().optional(),
|
|
6442
|
+
numberOfPeopleInDesignTeam: z230.string().optional(),
|
|
6446
6443
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6447
|
-
jobTitle:
|
|
6448
|
-
phase:
|
|
6444
|
+
jobTitle: z230.string().optional(),
|
|
6445
|
+
phase: z230.string().optional(),
|
|
6449
6446
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6450
|
-
designSystemName:
|
|
6451
|
-
defaultDestination:
|
|
6452
|
-
isPageDraftOnboardingFinished:
|
|
6447
|
+
designSystemName: z230.string().optional(),
|
|
6448
|
+
defaultDestination: z230.string().optional(),
|
|
6449
|
+
isPageDraftOnboardingFinished: z230.boolean().optional()
|
|
6453
6450
|
});
|
|
6454
6451
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6455
6452
|
onboarding: DTOUserOnboarding.optional()
|
|
6456
6453
|
});
|
|
6457
6454
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6458
6455
|
profile: DTOAuthenticatedUserProfile,
|
|
6459
|
-
createdAt:
|
|
6460
|
-
loggedOutAt:
|
|
6456
|
+
createdAt: z230.coerce.date(),
|
|
6457
|
+
loggedOutAt: z230.coerce.date().optional(),
|
|
6461
6458
|
source: DTOUserSource.optional()
|
|
6462
6459
|
});
|
|
6463
|
-
var DTOAuthenticatedUserResponse =
|
|
6460
|
+
var DTOAuthenticatedUserResponse = z230.object({
|
|
6464
6461
|
user: DTOAuthenticatedUser
|
|
6465
6462
|
});
|
|
6466
6463
|
|
|
6467
6464
|
// src/api/dto/users/update.ts
|
|
6468
|
-
import { z as
|
|
6469
|
-
var DTOUserProfileUpdateResponse =
|
|
6465
|
+
import { z as z231 } from "zod";
|
|
6466
|
+
var DTOUserProfileUpdateResponse = z231.object({
|
|
6470
6467
|
user: User
|
|
6471
6468
|
});
|
|
6472
6469
|
|
|
@@ -6489,7 +6486,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
6489
6486
|
};
|
|
6490
6487
|
|
|
6491
6488
|
// src/api/endpoints/design-systems.ts
|
|
6492
|
-
import { z as
|
|
6489
|
+
import { z as z232 } from "zod";
|
|
6493
6490
|
var DesignSystemsEndpoint = class {
|
|
6494
6491
|
constructor(requestExecutor) {
|
|
6495
6492
|
this.requestExecutor = requestExecutor;
|
|
@@ -6503,10 +6500,10 @@ var DesignSystemsEndpoint = class {
|
|
|
6503
6500
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
6504
6501
|
}
|
|
6505
6502
|
get(dsId) {
|
|
6506
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6503
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z232.any());
|
|
6507
6504
|
}
|
|
6508
6505
|
delete(dsId) {
|
|
6509
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6506
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z232.any(), { method: "DELETE" });
|
|
6510
6507
|
}
|
|
6511
6508
|
update(dsId, body) {
|
|
6512
6509
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -6551,7 +6548,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
6551
6548
|
};
|
|
6552
6549
|
|
|
6553
6550
|
// src/api/endpoints/workspace-members.ts
|
|
6554
|
-
import { z as
|
|
6551
|
+
import { z as z233 } from "zod";
|
|
6555
6552
|
var WorkspaceMembersEndpoint = class {
|
|
6556
6553
|
constructor(requestExecutor) {
|
|
6557
6554
|
this.requestExecutor = requestExecutor;
|
|
@@ -6568,7 +6565,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6568
6565
|
});
|
|
6569
6566
|
}
|
|
6570
6567
|
invite(workspaceId, body) {
|
|
6571
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
6568
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z233.any(), { method: "POST", body });
|
|
6572
6569
|
}
|
|
6573
6570
|
delete(workspaceId, userId) {
|
|
6574
6571
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -6578,7 +6575,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6578
6575
|
};
|
|
6579
6576
|
|
|
6580
6577
|
// src/api/endpoints/workspaces.ts
|
|
6581
|
-
import { z as
|
|
6578
|
+
import { z as z234 } from "zod";
|
|
6582
6579
|
var WorkspacesEndpoint = class {
|
|
6583
6580
|
constructor(requestExecutor) {
|
|
6584
6581
|
this.requestExecutor = requestExecutor;
|
|
@@ -6598,34 +6595,56 @@ var WorkspacesEndpoint = class {
|
|
|
6598
6595
|
});
|
|
6599
6596
|
}
|
|
6600
6597
|
delete(workspaceId) {
|
|
6601
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
6598
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z234.any(), { method: "DELETE" });
|
|
6602
6599
|
}
|
|
6603
6600
|
subscription(workspaceId) {
|
|
6604
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
6601
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z234.any(), { method: "GET" });
|
|
6605
6602
|
}
|
|
6606
6603
|
};
|
|
6607
6604
|
|
|
6608
6605
|
// src/api/transport/request-executor-error.ts
|
|
6609
6606
|
var RequestExecutorError = class _RequestExecutorError extends Error {
|
|
6610
|
-
constructor(type, message, cause) {
|
|
6607
|
+
constructor(type, message, errorCode, cause) {
|
|
6611
6608
|
super(`${type}: ${message}`, { cause });
|
|
6612
6609
|
__publicField(this, "type");
|
|
6610
|
+
__publicField(this, "errorCode");
|
|
6613
6611
|
this.type = type;
|
|
6612
|
+
this.errorCode = errorCode;
|
|
6613
|
+
}
|
|
6614
|
+
static tryParseErrorCode(body) {
|
|
6615
|
+
try {
|
|
6616
|
+
const errorObj = JSON.parse(body);
|
|
6617
|
+
if (errorObj && typeof errorObj.errorCode === "string") {
|
|
6618
|
+
return errorObj.errorCode;
|
|
6619
|
+
}
|
|
6620
|
+
return null;
|
|
6621
|
+
} catch (e) {
|
|
6622
|
+
return null;
|
|
6623
|
+
}
|
|
6614
6624
|
}
|
|
6615
6625
|
static serverError(endpoint, status, bodyText) {
|
|
6616
|
-
return new _RequestExecutorError(
|
|
6617
|
-
|
|
6626
|
+
return new _RequestExecutorError(
|
|
6627
|
+
"ServerError",
|
|
6628
|
+
`Endpoint ${endpoint} returned ${status}
|
|
6629
|
+
${bodyText}`,
|
|
6630
|
+
this.tryParseErrorCode(bodyText)
|
|
6631
|
+
);
|
|
6618
6632
|
}
|
|
6619
6633
|
static responseParsingError(endpoint, cause) {
|
|
6620
|
-
return new _RequestExecutorError(
|
|
6634
|
+
return new _RequestExecutorError(
|
|
6635
|
+
"ResponseParsingError",
|
|
6636
|
+
`Endpoint ${endpoint} returned incompatible JSON`,
|
|
6637
|
+
void 0,
|
|
6638
|
+
cause
|
|
6639
|
+
);
|
|
6621
6640
|
}
|
|
6622
6641
|
};
|
|
6623
6642
|
|
|
6624
6643
|
// src/api/transport/request-executor.ts
|
|
6625
6644
|
import fetch from "node-fetch";
|
|
6626
|
-
import { z as
|
|
6627
|
-
var ResponseWrapper =
|
|
6628
|
-
result:
|
|
6645
|
+
import { z as z235 } from "zod";
|
|
6646
|
+
var ResponseWrapper = z235.object({
|
|
6647
|
+
result: z235.record(z235.any())
|
|
6629
6648
|
});
|
|
6630
6649
|
var RequestExecutor = class {
|
|
6631
6650
|
constructor(testServerConfig) {
|
|
@@ -6747,7 +6766,7 @@ function generateHash(input, debug = false) {
|
|
|
6747
6766
|
}
|
|
6748
6767
|
|
|
6749
6768
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6750
|
-
import { z as
|
|
6769
|
+
import { z as z236 } from "zod";
|
|
6751
6770
|
|
|
6752
6771
|
// src/yjs/version-room/base.ts
|
|
6753
6772
|
var VersionRoomBaseYDoc = class {
|
|
@@ -7276,24 +7295,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
7276
7295
|
};
|
|
7277
7296
|
|
|
7278
7297
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7279
|
-
var DocumentationHierarchySettings =
|
|
7280
|
-
routingVersion:
|
|
7281
|
-
isDraftFeatureAdopted:
|
|
7282
|
-
isApprovalFeatureEnabled:
|
|
7283
|
-
approvalRequiredForPublishing:
|
|
7298
|
+
var DocumentationHierarchySettings = z236.object({
|
|
7299
|
+
routingVersion: z236.string(),
|
|
7300
|
+
isDraftFeatureAdopted: z236.boolean(),
|
|
7301
|
+
isApprovalFeatureEnabled: z236.boolean(),
|
|
7302
|
+
approvalRequiredForPublishing: z236.boolean()
|
|
7284
7303
|
});
|
|
7285
7304
|
function yjsToDocumentationHierarchy(doc) {
|
|
7286
7305
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
7287
7306
|
}
|
|
7288
7307
|
|
|
7289
7308
|
// src/yjs/design-system-content/item-configuration.ts
|
|
7290
|
-
import { z as
|
|
7291
|
-
var DTODocumentationPageRoomHeaderData =
|
|
7292
|
-
title:
|
|
7309
|
+
import { z as z237 } from "zod";
|
|
7310
|
+
var DTODocumentationPageRoomHeaderData = z237.object({
|
|
7311
|
+
title: z237.string(),
|
|
7293
7312
|
configuration: DTODocumentationItemConfigurationV2
|
|
7294
7313
|
});
|
|
7295
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
7296
|
-
title:
|
|
7314
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z237.object({
|
|
7315
|
+
title: z237.string().optional(),
|
|
7297
7316
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
7298
7317
|
});
|
|
7299
7318
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7344,7 +7363,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7344
7363
|
header: rawHeader
|
|
7345
7364
|
};
|
|
7346
7365
|
return {
|
|
7347
|
-
title:
|
|
7366
|
+
title: z237.string().parse(title),
|
|
7348
7367
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7349
7368
|
};
|
|
7350
7369
|
}
|
|
@@ -7354,9 +7373,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7354
7373
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7355
7374
|
|
|
7356
7375
|
// src/yjs/docs-editor/model/page.ts
|
|
7357
|
-
import { z as
|
|
7358
|
-
var DocumentationPageEditorModel =
|
|
7359
|
-
blocks:
|
|
7376
|
+
import { z as z238 } from "zod";
|
|
7377
|
+
var DocumentationPageEditorModel = z238.object({
|
|
7378
|
+
blocks: z238.array(DocumentationPageContentItem)
|
|
7360
7379
|
});
|
|
7361
7380
|
|
|
7362
7381
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -10707,7 +10726,7 @@ var blocks = [
|
|
|
10707
10726
|
|
|
10708
10727
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
10709
10728
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
10710
|
-
import { z as
|
|
10729
|
+
import { z as z239 } from "zod";
|
|
10711
10730
|
function yDocToPage(yDoc, definitions) {
|
|
10712
10731
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
10713
10732
|
}
|
|
@@ -10787,7 +10806,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
10787
10806
|
return null;
|
|
10788
10807
|
return {
|
|
10789
10808
|
id,
|
|
10790
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
10809
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z239.string()) ?? "",
|
|
10791
10810
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
10792
10811
|
};
|
|
10793
10812
|
}
|
|
@@ -10822,7 +10841,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
10822
10841
|
});
|
|
10823
10842
|
}
|
|
10824
10843
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
10825
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
10844
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z239.string());
|
|
10826
10845
|
if (!definitionId) {
|
|
10827
10846
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
10828
10847
|
return [];
|
|
@@ -10864,7 +10883,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
10864
10883
|
if (!id)
|
|
10865
10884
|
return null;
|
|
10866
10885
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10867
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
10886
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z239.string().optional()));
|
|
10868
10887
|
return {
|
|
10869
10888
|
id,
|
|
10870
10889
|
type: "Block",
|
|
@@ -10992,10 +11011,10 @@ function parseRichTextAttribute(mark) {
|
|
|
10992
11011
|
return null;
|
|
10993
11012
|
}
|
|
10994
11013
|
function parseProsemirrorLink(mark) {
|
|
10995
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
11014
|
+
const href = getProsemirrorAttribute(mark, "href", z239.string().optional());
|
|
10996
11015
|
if (!href)
|
|
10997
11016
|
return null;
|
|
10998
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
11017
|
+
const target = getProsemirrorAttribute(mark, "target", z239.string().optional());
|
|
10999
11018
|
const openInNewTab = target === "_blank";
|
|
11000
11019
|
if (href.startsWith("@")) {
|
|
11001
11020
|
return {
|
|
@@ -11014,10 +11033,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11014
11033
|
}
|
|
11015
11034
|
}
|
|
11016
11035
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11017
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
11036
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z239.string().optional());
|
|
11018
11037
|
if (!highlightId)
|
|
11019
11038
|
return null;
|
|
11020
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
11039
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z239.boolean().optional()) ?? false;
|
|
11021
11040
|
return {
|
|
11022
11041
|
type: "Comment",
|
|
11023
11042
|
commentHighlightId: highlightId,
|
|
@@ -11029,7 +11048,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11029
11048
|
if (!id)
|
|
11030
11049
|
return null;
|
|
11031
11050
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11032
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
11051
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z239.boolean().optional()) !== false;
|
|
11033
11052
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11034
11053
|
if (!tableChild) {
|
|
11035
11054
|
return emptyTable(id, variantId, 0);
|
|
@@ -11076,9 +11095,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11076
11095
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11077
11096
|
if (!id)
|
|
11078
11097
|
return null;
|
|
11079
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11098
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z239.string().optional());
|
|
11080
11099
|
let columnWidth;
|
|
11081
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11100
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z239.array(z239.number()).nullish());
|
|
11082
11101
|
if (columnWidthArray) {
|
|
11083
11102
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11084
11103
|
}
|
|
@@ -11116,7 +11135,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11116
11135
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11117
11136
|
};
|
|
11118
11137
|
case "image":
|
|
11119
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11138
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z239.string());
|
|
11120
11139
|
if (!items)
|
|
11121
11140
|
return null;
|
|
11122
11141
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11236,7 +11255,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11236
11255
|
);
|
|
11237
11256
|
}
|
|
11238
11257
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11239
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11258
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z239.string());
|
|
11240
11259
|
if (!itemsString)
|
|
11241
11260
|
return null;
|
|
11242
11261
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11248,18 +11267,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11248
11267
|
}
|
|
11249
11268
|
function parseAppearance(prosemirrorNode) {
|
|
11250
11269
|
let appearance = {};
|
|
11251
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11270
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z239.string().optional());
|
|
11252
11271
|
if (rawAppearanceString) {
|
|
11253
11272
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11254
11273
|
if (parsedAppearance.success) {
|
|
11255
11274
|
appearance = parsedAppearance.data;
|
|
11256
11275
|
}
|
|
11257
11276
|
}
|
|
11258
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11277
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z239.number().optional());
|
|
11259
11278
|
if (columns) {
|
|
11260
11279
|
appearance.numberOfColumns = columns;
|
|
11261
11280
|
}
|
|
11262
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11281
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z239.string().optional());
|
|
11263
11282
|
if (backgroundColor) {
|
|
11264
11283
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11265
11284
|
if (parsedColor.success) {
|
|
@@ -11354,13 +11373,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11354
11373
|
}
|
|
11355
11374
|
}
|
|
11356
11375
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11357
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11376
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z239.string());
|
|
11358
11377
|
if (!id)
|
|
11359
11378
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11360
11379
|
return id;
|
|
11361
11380
|
}
|
|
11362
11381
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11363
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11382
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z239.string()));
|
|
11364
11383
|
}
|
|
11365
11384
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11366
11385
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|