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