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