@supernova-studio/client 0.47.15 → 0.47.17
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 +4337 -214
- package/dist/index.d.ts +4337 -214
- package/dist/index.js +156 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +575 -422
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/data-source.ts +122 -0
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/export/exporter.ts +68 -0
- package/src/api/dto/export/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -2949,7 +2949,7 @@ var PulsarCustomBlock = z139.object({
|
|
|
2949
2949
|
var ExporterType = z140.enum(["code", "documentation"]);
|
|
2950
2950
|
var ExporterSource = z140.enum(["git", "upload"]);
|
|
2951
2951
|
var ExporterTag = z140.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2952
|
-
var
|
|
2952
|
+
var ExporterPulsarDetails = z140.object({
|
|
2953
2953
|
description: z140.string(),
|
|
2954
2954
|
version: z140.string(),
|
|
2955
2955
|
routingVersion: nullishToOptional(z140.string()),
|
|
@@ -2964,7 +2964,9 @@ var ExporterDetails = z140.object({
|
|
|
2964
2964
|
customBlocks: nullishToOptional(z140.array(PulsarCustomBlock)).default([]),
|
|
2965
2965
|
blockVariants: nullishToOptional(z140.record(z140.string(), z140.array(PulsarContributionVariant))).default({}),
|
|
2966
2966
|
usesBrands: nullishToOptional(z140.boolean()).default(false),
|
|
2967
|
-
usesThemes: nullishToOptional(z140.boolean()).default(false)
|
|
2967
|
+
usesThemes: nullishToOptional(z140.boolean()).default(false)
|
|
2968
|
+
});
|
|
2969
|
+
var ExporterDetails = ExporterPulsarDetails.extend({
|
|
2968
2970
|
source: ExporterSource,
|
|
2969
2971
|
gitProvider: nullishToOptional(GitProvider),
|
|
2970
2972
|
gitUrl: nullishToOptional(z140.string()),
|
|
@@ -3068,6 +3070,7 @@ var ExtendedIntegrationType = z145.enum([
|
|
|
3068
3070
|
"FigmaVariablesPlugin"
|
|
3069
3071
|
]);
|
|
3070
3072
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
3073
|
+
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
3071
3074
|
var Integration = z145.object({
|
|
3072
3075
|
id: z145.string(),
|
|
3073
3076
|
workspaceId: z145.string(),
|
|
@@ -4341,79 +4344,177 @@ var DTOBrandCreateResponse = z156.object({
|
|
|
4341
4344
|
});
|
|
4342
4345
|
var DTOBrandsListResponse = z156.object({ brands: z156.array(DTOBrand) });
|
|
4343
4346
|
|
|
4344
|
-
// src/api/dto/design-systems/
|
|
4347
|
+
// src/api/dto/design-systems/data-source.ts
|
|
4345
4348
|
import { z as z157 } from "zod";
|
|
4349
|
+
var DTODataSourceFigmaFileVersion = z157.object({
|
|
4350
|
+
id: z157.string(),
|
|
4351
|
+
created_at: z157.coerce.date(),
|
|
4352
|
+
label: z157.string(),
|
|
4353
|
+
description: z157.string()
|
|
4354
|
+
});
|
|
4355
|
+
var DTODataSourceFigmaCloud = z157.object({
|
|
4356
|
+
fileId: z157.string(),
|
|
4357
|
+
state: DataSourceFigmaState,
|
|
4358
|
+
autoImportMode: DataSourceAutoImportMode,
|
|
4359
|
+
fileThumbnailUrl: z157.string().optional(),
|
|
4360
|
+
lastImportResult: SourceImportSummary.nullish(),
|
|
4361
|
+
lastImportedAt: z157.date().nullish(),
|
|
4362
|
+
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
4363
|
+
lastUpdatesCheckedAt: z157.date().nullish(),
|
|
4364
|
+
ownerId: z157.string(),
|
|
4365
|
+
ownerUserName: z157.string().optional(),
|
|
4366
|
+
preferredCredentialId: z157.string().optional(),
|
|
4367
|
+
stats: DataSourceStats
|
|
4368
|
+
});
|
|
4369
|
+
var DTODataSourceFigma = z157.object({
|
|
4370
|
+
id: z157.string(),
|
|
4371
|
+
type: z157.literal(DataSourceRemoteType.Enum.Figma),
|
|
4372
|
+
fileName: z157.string(),
|
|
4373
|
+
scope: DataSourceFigmaScope,
|
|
4374
|
+
brandId: z157.string(),
|
|
4375
|
+
themeId: z157.string().nullish(),
|
|
4376
|
+
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
4377
|
+
tokenStudio: z157.literal(null),
|
|
4378
|
+
upload: z157.literal(null),
|
|
4379
|
+
figmaVariablesPlugin: z157.literal(null)
|
|
4380
|
+
});
|
|
4381
|
+
var DTODataSourceTokenStudio = z157.object({
|
|
4382
|
+
id: z157.string(),
|
|
4383
|
+
type: z157.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
4384
|
+
fileName: z157.string(),
|
|
4385
|
+
brandId: z157.string(),
|
|
4386
|
+
themeId: z157.string().nullish(),
|
|
4387
|
+
cloud: z157.literal(null),
|
|
4388
|
+
tokenStudio: z157.object({
|
|
4389
|
+
settings: z157.object({
|
|
4390
|
+
dryRun: z157.boolean(),
|
|
4391
|
+
verbose: z157.boolean(),
|
|
4392
|
+
preciseCopy: z157.boolean()
|
|
4393
|
+
}),
|
|
4394
|
+
connectionName: z157.string(),
|
|
4395
|
+
lastImportedAt: z157.date(),
|
|
4396
|
+
lastImportedResults: z157.array(
|
|
4397
|
+
z157.object({
|
|
4398
|
+
mapping: z157.object({
|
|
4399
|
+
tokenSets: z157.array(z157.string()),
|
|
4400
|
+
supernovaBrand: z157.string(),
|
|
4401
|
+
supernovaTheme: z157.string().optional()
|
|
4402
|
+
}),
|
|
4403
|
+
isFailed: z157.boolean(),
|
|
4404
|
+
tokensCreated: z157.number(),
|
|
4405
|
+
tokensDeleted: z157.number(),
|
|
4406
|
+
tokensUpdated: z157.number()
|
|
4407
|
+
})
|
|
4408
|
+
)
|
|
4409
|
+
}),
|
|
4410
|
+
upload: z157.literal(null),
|
|
4411
|
+
figmaVariablesPlugin: z157.literal(null)
|
|
4412
|
+
});
|
|
4413
|
+
var DTODataSourceFigmaVariablesPlugin = z157.object({
|
|
4414
|
+
id: z157.string(),
|
|
4415
|
+
type: z157.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
4416
|
+
fileName: z157.string(),
|
|
4417
|
+
brandId: z157.string(),
|
|
4418
|
+
themeId: z157.literal(null),
|
|
4419
|
+
cloud: z157.literal(null),
|
|
4420
|
+
tokenStudio: z157.literal(null),
|
|
4421
|
+
upload: z157.object({
|
|
4422
|
+
remoteId: z157.string(),
|
|
4423
|
+
remoteSourceType: DataSourceUploadRemoteSource,
|
|
4424
|
+
lastImportedAt: z157.date().optional(),
|
|
4425
|
+
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
4426
|
+
}),
|
|
4427
|
+
figmaVariablesPlugin: z157.object({
|
|
4428
|
+
fileId: z157.string(),
|
|
4429
|
+
lastImportedAt: z157.date().optional(),
|
|
4430
|
+
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
4431
|
+
})
|
|
4432
|
+
});
|
|
4433
|
+
var DTODataSource = z157.discriminatedUnion("type", [
|
|
4434
|
+
DTODataSourceFigma,
|
|
4435
|
+
DTODataSourceFigmaVariablesPlugin,
|
|
4436
|
+
DTODataSourceTokenStudio
|
|
4437
|
+
]);
|
|
4438
|
+
var DTODataSourcesListResponse = z157.object({
|
|
4439
|
+
sources: z157.array(DTODataSource)
|
|
4440
|
+
});
|
|
4441
|
+
var DTODataSourceCreationResponse = z157.object({
|
|
4442
|
+
source: DTODataSource
|
|
4443
|
+
});
|
|
4444
|
+
|
|
4445
|
+
// src/api/dto/design-systems/design-system.ts
|
|
4446
|
+
import { z as z158 } from "zod";
|
|
4346
4447
|
var DTODesignSystem = DesignSystem.omit({
|
|
4347
4448
|
name: true,
|
|
4348
4449
|
description: true,
|
|
4349
4450
|
docExporterId: true
|
|
4350
4451
|
}).extend({
|
|
4351
4452
|
meta: ObjectMeta,
|
|
4352
|
-
docExporterId:
|
|
4453
|
+
docExporterId: z158.string()
|
|
4353
4454
|
});
|
|
4354
4455
|
|
|
4355
4456
|
// src/api/dto/design-systems/exporter-property.ts
|
|
4356
|
-
import { z as
|
|
4357
|
-
var DTOExporterProperty =
|
|
4358
|
-
var DTOExporterPropertyListResponse =
|
|
4457
|
+
import { z as z159 } from "zod";
|
|
4458
|
+
var DTOExporterProperty = z159.any({});
|
|
4459
|
+
var DTOExporterPropertyListResponse = z159.object({ items: z159.array(DTOExporterProperty) });
|
|
4359
4460
|
|
|
4360
4461
|
// src/api/dto/design-systems/version.ts
|
|
4361
|
-
import { z as
|
|
4462
|
+
import { z as z167 } from "zod";
|
|
4362
4463
|
|
|
4363
4464
|
// src/api/payloads/design-systems/brand.ts
|
|
4364
|
-
import { z as
|
|
4365
|
-
var DTOCreateBrandInput =
|
|
4366
|
-
persistentId:
|
|
4367
|
-
meta:
|
|
4368
|
-
name:
|
|
4369
|
-
description:
|
|
4465
|
+
import { z as z160 } from "zod";
|
|
4466
|
+
var DTOCreateBrandInput = z160.object({
|
|
4467
|
+
persistentId: z160.string().uuid(),
|
|
4468
|
+
meta: z160.object({
|
|
4469
|
+
name: z160.string(),
|
|
4470
|
+
description: z160.string()
|
|
4370
4471
|
})
|
|
4371
4472
|
});
|
|
4372
4473
|
|
|
4373
4474
|
// src/api/payloads/design-systems/version.ts
|
|
4374
|
-
import { z as
|
|
4375
|
-
var ObjectMeta2 =
|
|
4376
|
-
name:
|
|
4377
|
-
description:
|
|
4475
|
+
import { z as z161 } from "zod";
|
|
4476
|
+
var ObjectMeta2 = z161.object({
|
|
4477
|
+
name: z161.string().max(150).optional(),
|
|
4478
|
+
description: z161.string().max(2e3).optional()
|
|
4378
4479
|
});
|
|
4379
4480
|
function validateDesignSystemVersion(version) {
|
|
4380
4481
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
4381
4482
|
return urlCompliantRegex.test(version);
|
|
4382
4483
|
}
|
|
4383
|
-
var DTOCreateVersionInput =
|
|
4484
|
+
var DTOCreateVersionInput = z161.object({
|
|
4384
4485
|
meta: ObjectMeta2,
|
|
4385
|
-
version:
|
|
4486
|
+
version: z161.string().refine(validateDesignSystemVersion, {
|
|
4386
4487
|
message: "Invalid semantic versioning format"
|
|
4387
4488
|
}),
|
|
4388
|
-
changeLog:
|
|
4489
|
+
changeLog: z161.string().optional()
|
|
4389
4490
|
});
|
|
4390
|
-
var DTOUpdateVersionInput =
|
|
4491
|
+
var DTOUpdateVersionInput = z161.object({
|
|
4391
4492
|
meta: ObjectMeta2,
|
|
4392
|
-
version:
|
|
4493
|
+
version: z161.string(),
|
|
4393
4494
|
// required for PUT, but not editable
|
|
4394
|
-
changeLog:
|
|
4495
|
+
changeLog: z161.string()
|
|
4395
4496
|
});
|
|
4396
4497
|
|
|
4397
4498
|
// src/api/payloads/documentation/block-definitions.ts
|
|
4398
|
-
import { z as
|
|
4399
|
-
var DTOGetBlockDefinitionsOutput =
|
|
4400
|
-
definitions:
|
|
4499
|
+
import { z as z162 } from "zod";
|
|
4500
|
+
var DTOGetBlockDefinitionsOutput = z162.object({
|
|
4501
|
+
definitions: z162.array(PageBlockDefinition)
|
|
4401
4502
|
});
|
|
4402
4503
|
|
|
4403
4504
|
// src/api/payloads/liveblocks/auth.ts
|
|
4404
|
-
import { z as
|
|
4405
|
-
var DTOLiveblocksAuthRequest =
|
|
4406
|
-
room:
|
|
4505
|
+
import { z as z163 } from "zod";
|
|
4506
|
+
var DTOLiveblocksAuthRequest = z163.object({
|
|
4507
|
+
room: z163.string().optional()
|
|
4407
4508
|
});
|
|
4408
4509
|
|
|
4409
4510
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
4410
|
-
import { z as
|
|
4411
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
4511
|
+
import { z as z164 } from "zod";
|
|
4512
|
+
var DTOUpdateUserNotificationSettingsPayload = z164.object({
|
|
4412
4513
|
notificationSettings: UserNotificationSettings
|
|
4413
4514
|
});
|
|
4414
|
-
var DTOUserNotificationSettingsResponse =
|
|
4415
|
-
userId:
|
|
4416
|
-
workspaceId:
|
|
4515
|
+
var DTOUserNotificationSettingsResponse = z164.object({
|
|
4516
|
+
userId: z164.string(),
|
|
4517
|
+
workspaceId: z164.string(),
|
|
4417
4518
|
notificationSettings: UserNotificationSettings
|
|
4418
4519
|
});
|
|
4419
4520
|
|
|
@@ -4421,7 +4522,7 @@ var DTOUserNotificationSettingsResponse = z163.object({
|
|
|
4421
4522
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
4422
4523
|
|
|
4423
4524
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
4424
|
-
import { z as
|
|
4525
|
+
import { z as z165 } from "zod";
|
|
4425
4526
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
4426
4527
|
function validateSsoPayload(ssoPayload) {
|
|
4427
4528
|
const keys = [];
|
|
@@ -4444,21 +4545,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
4444
4545
|
keys
|
|
4445
4546
|
};
|
|
4446
4547
|
}
|
|
4447
|
-
var NpmRegistryInput =
|
|
4448
|
-
enabledScopes:
|
|
4449
|
-
customRegistryUrl:
|
|
4450
|
-
bypassProxy:
|
|
4451
|
-
npmProxyRegistryConfigId:
|
|
4452
|
-
npmProxyVersion:
|
|
4453
|
-
registryType:
|
|
4454
|
-
authType:
|
|
4455
|
-
authHeaderName:
|
|
4456
|
-
authHeaderValue:
|
|
4457
|
-
accessToken:
|
|
4458
|
-
username:
|
|
4459
|
-
password:
|
|
4460
|
-
});
|
|
4461
|
-
var WorkspaceConfigurationPayload =
|
|
4548
|
+
var NpmRegistryInput = z165.object({
|
|
4549
|
+
enabledScopes: z165.array(z165.string()),
|
|
4550
|
+
customRegistryUrl: z165.string().optional(),
|
|
4551
|
+
bypassProxy: z165.boolean().optional(),
|
|
4552
|
+
npmProxyRegistryConfigId: z165.string().optional(),
|
|
4553
|
+
npmProxyVersion: z165.number().optional(),
|
|
4554
|
+
registryType: z165.string(),
|
|
4555
|
+
authType: z165.string(),
|
|
4556
|
+
authHeaderName: z165.string(),
|
|
4557
|
+
authHeaderValue: z165.string(),
|
|
4558
|
+
accessToken: z165.string(),
|
|
4559
|
+
username: z165.string(),
|
|
4560
|
+
password: z165.string()
|
|
4561
|
+
});
|
|
4562
|
+
var WorkspaceConfigurationPayload = z165.object({
|
|
4462
4563
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
4463
4564
|
sso: SsoProvider.partial().optional(),
|
|
4464
4565
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -4466,130 +4567,130 @@ var WorkspaceConfigurationPayload = z164.object({
|
|
|
4466
4567
|
});
|
|
4467
4568
|
|
|
4468
4569
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
4469
|
-
import { z as
|
|
4470
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
4570
|
+
import { z as z166 } from "zod";
|
|
4571
|
+
var DTOWorkspaceIntegrationOauthInput = z166.object({
|
|
4471
4572
|
type: IntegrationType
|
|
4472
4573
|
});
|
|
4473
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
4474
|
-
userId:
|
|
4574
|
+
var DTOWorkspaceIntegrationPATInput = z166.object({
|
|
4575
|
+
userId: z166.string(),
|
|
4475
4576
|
type: IntegrationType,
|
|
4476
4577
|
token: IntegrationToken
|
|
4477
4578
|
});
|
|
4478
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
4479
|
-
organization:
|
|
4579
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z166.object({
|
|
4580
|
+
organization: z166.string().optional(),
|
|
4480
4581
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4481
|
-
project:
|
|
4582
|
+
project: z166.string().optional(),
|
|
4482
4583
|
// Only for Bitbucket and Azure
|
|
4483
|
-
repository:
|
|
4584
|
+
repository: z166.string().optional(),
|
|
4484
4585
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
4485
|
-
branch:
|
|
4586
|
+
branch: z166.string().optional(),
|
|
4486
4587
|
// For all providers.
|
|
4487
|
-
user:
|
|
4588
|
+
user: z166.string().optional()
|
|
4488
4589
|
// Only for Gitlab
|
|
4489
4590
|
});
|
|
4490
4591
|
|
|
4491
4592
|
// src/api/dto/design-systems/version.ts
|
|
4492
|
-
var DTODesignSystemVersion =
|
|
4493
|
-
id:
|
|
4494
|
-
createdAt:
|
|
4593
|
+
var DTODesignSystemVersion = z167.object({
|
|
4594
|
+
id: z167.string(),
|
|
4595
|
+
createdAt: z167.date(),
|
|
4495
4596
|
meta: ObjectMeta,
|
|
4496
|
-
version:
|
|
4497
|
-
isReadonly:
|
|
4498
|
-
changeLog:
|
|
4499
|
-
designSystemId:
|
|
4597
|
+
version: z167.string(),
|
|
4598
|
+
isReadonly: z167.boolean(),
|
|
4599
|
+
changeLog: z167.string(),
|
|
4600
|
+
designSystemId: z167.string()
|
|
4500
4601
|
});
|
|
4501
|
-
var DTODesignSystemVersionsListResponse =
|
|
4502
|
-
designSystemVersions:
|
|
4602
|
+
var DTODesignSystemVersionsListResponse = z167.object({
|
|
4603
|
+
designSystemVersions: z167.array(DTODesignSystemVersion)
|
|
4503
4604
|
});
|
|
4504
|
-
var DTODesignSystemVersionGetResponse =
|
|
4605
|
+
var DTODesignSystemVersionGetResponse = z167.object({
|
|
4505
4606
|
designSystemVersion: DTODesignSystemVersion
|
|
4506
4607
|
});
|
|
4507
|
-
var DTODesignSystemVersionCreationResponse =
|
|
4608
|
+
var DTODesignSystemVersionCreationResponse = z167.object({
|
|
4508
4609
|
meta: ObjectMeta,
|
|
4509
|
-
version:
|
|
4510
|
-
changeLog:
|
|
4511
|
-
isReadOnly:
|
|
4512
|
-
designSystemId:
|
|
4513
|
-
jobId:
|
|
4514
|
-
});
|
|
4515
|
-
var VersionSQSPayload =
|
|
4516
|
-
jobId:
|
|
4517
|
-
designSystemId:
|
|
4610
|
+
version: z167.string(),
|
|
4611
|
+
changeLog: z167.string(),
|
|
4612
|
+
isReadOnly: z167.boolean(),
|
|
4613
|
+
designSystemId: z167.string(),
|
|
4614
|
+
jobId: z167.string()
|
|
4615
|
+
});
|
|
4616
|
+
var VersionSQSPayload = z167.object({
|
|
4617
|
+
jobId: z167.string(),
|
|
4618
|
+
designSystemId: z167.string(),
|
|
4518
4619
|
input: DTOCreateVersionInput
|
|
4519
4620
|
});
|
|
4520
|
-
var DTODesignSystemVersionJobsResponse =
|
|
4521
|
-
jobs:
|
|
4621
|
+
var DTODesignSystemVersionJobsResponse = z167.object({
|
|
4622
|
+
jobs: z167.array(VersionCreationJob)
|
|
4522
4623
|
});
|
|
4523
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
4624
|
+
var DTODesignSystemVersionJobStatusResponse = z167.object({
|
|
4524
4625
|
job: VersionCreationJob
|
|
4525
4626
|
});
|
|
4526
4627
|
|
|
4527
4628
|
// src/api/dto/design-systems/view.ts
|
|
4528
|
-
import { z as
|
|
4529
|
-
var DTOElementViewColumnSharedAttributes =
|
|
4530
|
-
id:
|
|
4531
|
-
persistentId:
|
|
4532
|
-
width:
|
|
4629
|
+
import { z as z168 } from "zod";
|
|
4630
|
+
var DTOElementViewColumnSharedAttributes = z168.object({
|
|
4631
|
+
id: z168.string(),
|
|
4632
|
+
persistentId: z168.string(),
|
|
4633
|
+
width: z168.number()
|
|
4533
4634
|
});
|
|
4534
4635
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4535
|
-
type:
|
|
4636
|
+
type: z168.literal("BaseProperty"),
|
|
4536
4637
|
basePropertyType: ElementViewBaseColumnType
|
|
4537
4638
|
});
|
|
4538
4639
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4539
|
-
type:
|
|
4540
|
-
propertyDefinitionId:
|
|
4640
|
+
type: z168.literal("PropertyDefinition"),
|
|
4641
|
+
propertyDefinitionId: z168.string()
|
|
4541
4642
|
});
|
|
4542
4643
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4543
|
-
type:
|
|
4544
|
-
themeId:
|
|
4644
|
+
type: z168.literal("Theme"),
|
|
4645
|
+
themeId: z168.string()
|
|
4545
4646
|
});
|
|
4546
|
-
var DTOElementViewColumn =
|
|
4647
|
+
var DTOElementViewColumn = z168.discriminatedUnion("type", [
|
|
4547
4648
|
DTOElementViewBasePropertyColumn,
|
|
4548
4649
|
DTOElementViewPropertyDefinitionColumn,
|
|
4549
4650
|
DTOElementViewThemeColumn
|
|
4550
4651
|
]);
|
|
4551
|
-
var DTOElementView =
|
|
4652
|
+
var DTOElementView = z168.object({
|
|
4552
4653
|
meta: ObjectMeta,
|
|
4553
|
-
persistentId:
|
|
4654
|
+
persistentId: z168.string(),
|
|
4554
4655
|
targetElementType: ElementPropertyTargetType,
|
|
4555
|
-
id:
|
|
4556
|
-
isDefault:
|
|
4557
|
-
columns:
|
|
4656
|
+
id: z168.string(),
|
|
4657
|
+
isDefault: z168.boolean(),
|
|
4658
|
+
columns: z168.array(DTOElementViewColumn)
|
|
4558
4659
|
});
|
|
4559
|
-
var DTOElementViewsListResponse =
|
|
4560
|
-
elementDataViews:
|
|
4660
|
+
var DTOElementViewsListResponse = z168.object({
|
|
4661
|
+
elementDataViews: z168.array(DTOElementView)
|
|
4561
4662
|
});
|
|
4562
4663
|
|
|
4563
4664
|
// src/api/dto/documentation/anchor.ts
|
|
4564
|
-
import { z as
|
|
4665
|
+
import { z as z169 } from "zod";
|
|
4565
4666
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
4566
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
4567
|
-
anchors:
|
|
4667
|
+
var DTOGetDocumentationPageAnchorsResponse = z169.object({
|
|
4668
|
+
anchors: z169.array(DTODocumentationPageAnchor)
|
|
4568
4669
|
});
|
|
4569
4670
|
|
|
4570
4671
|
// src/api/dto/documentation/link-preview.ts
|
|
4571
|
-
import { z as
|
|
4572
|
-
var DTODocumentationLinkPreviewResponse =
|
|
4672
|
+
import { z as z170 } from "zod";
|
|
4673
|
+
var DTODocumentationLinkPreviewResponse = z170.object({
|
|
4573
4674
|
linkPreview: DocumentationLinkPreview
|
|
4574
4675
|
});
|
|
4575
|
-
var DTODocumentationLinkPreviewRequest =
|
|
4576
|
-
url:
|
|
4577
|
-
documentationItemPersistentId:
|
|
4676
|
+
var DTODocumentationLinkPreviewRequest = z170.object({
|
|
4677
|
+
url: z170.string().optional(),
|
|
4678
|
+
documentationItemPersistentId: z170.string().optional()
|
|
4578
4679
|
});
|
|
4579
4680
|
|
|
4580
4681
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4581
|
-
import { z as
|
|
4682
|
+
import { z as z173 } from "zod";
|
|
4582
4683
|
|
|
4583
4684
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
4584
|
-
import { z as
|
|
4685
|
+
import { z as z172 } from "zod";
|
|
4585
4686
|
|
|
4586
4687
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
4587
|
-
import { z as
|
|
4688
|
+
import { z as z171 } from "zod";
|
|
4588
4689
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
4589
|
-
var DTODocumentationItemConfigurationV2 =
|
|
4590
|
-
showSidebar:
|
|
4591
|
-
isPrivate:
|
|
4592
|
-
isHidden:
|
|
4690
|
+
var DTODocumentationItemConfigurationV2 = z171.object({
|
|
4691
|
+
showSidebar: z171.boolean(),
|
|
4692
|
+
isPrivate: z171.boolean(),
|
|
4693
|
+
isHidden: z171.boolean(),
|
|
4593
4694
|
header: DTODocumentationItemHeaderV2
|
|
4594
4695
|
});
|
|
4595
4696
|
|
|
@@ -4603,136 +4704,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
4603
4704
|
data: true,
|
|
4604
4705
|
shortPersistentId: true
|
|
4605
4706
|
}).extend({
|
|
4606
|
-
title:
|
|
4607
|
-
isRoot:
|
|
4608
|
-
childrenIds:
|
|
4707
|
+
title: z172.string(),
|
|
4708
|
+
isRoot: z172.boolean(),
|
|
4709
|
+
childrenIds: z172.array(z172.string()),
|
|
4609
4710
|
groupBehavior: DocumentationGroupBehavior,
|
|
4610
|
-
shortPersistentId:
|
|
4711
|
+
shortPersistentId: z172.string(),
|
|
4611
4712
|
configuration: DTODocumentationItemConfigurationV2,
|
|
4612
|
-
type:
|
|
4713
|
+
type: z172.literal("Group")
|
|
4613
4714
|
});
|
|
4614
4715
|
var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
|
|
4615
|
-
var DTOCreateDocumentationGroupInput =
|
|
4716
|
+
var DTOCreateDocumentationGroupInput = z172.object({
|
|
4616
4717
|
// Identifier
|
|
4617
|
-
persistentId:
|
|
4718
|
+
persistentId: z172.string().uuid(),
|
|
4618
4719
|
// Group properties
|
|
4619
|
-
title:
|
|
4720
|
+
title: z172.string(),
|
|
4620
4721
|
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4621
4722
|
// Group placement properties
|
|
4622
|
-
afterPersistentId:
|
|
4623
|
-
parentPersistentId:
|
|
4723
|
+
afterPersistentId: z172.string().uuid().nullish(),
|
|
4724
|
+
parentPersistentId: z172.string().uuid()
|
|
4624
4725
|
});
|
|
4625
|
-
var DTOUpdateDocumentationGroupInput =
|
|
4726
|
+
var DTOUpdateDocumentationGroupInput = z172.object({
|
|
4626
4727
|
// Identifier of the group to update
|
|
4627
|
-
id:
|
|
4728
|
+
id: z172.string(),
|
|
4628
4729
|
// Group properties
|
|
4629
|
-
title:
|
|
4730
|
+
title: z172.string().optional(),
|
|
4630
4731
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4631
4732
|
});
|
|
4632
|
-
var DTOMoveDocumentationGroupInput =
|
|
4733
|
+
var DTOMoveDocumentationGroupInput = z172.object({
|
|
4633
4734
|
// Identifier of the group to update
|
|
4634
|
-
id:
|
|
4735
|
+
id: z172.string(),
|
|
4635
4736
|
// Group placement properties
|
|
4636
|
-
parentPersistentId:
|
|
4637
|
-
afterPersistentId:
|
|
4737
|
+
parentPersistentId: z172.string().uuid(),
|
|
4738
|
+
afterPersistentId: z172.string().uuid().nullish()
|
|
4638
4739
|
});
|
|
4639
|
-
var DTODuplicateDocumentationGroupInput =
|
|
4740
|
+
var DTODuplicateDocumentationGroupInput = z172.object({
|
|
4640
4741
|
// Identifier of the group to duplicate from
|
|
4641
|
-
id:
|
|
4742
|
+
id: z172.string(),
|
|
4642
4743
|
// New group persistent id
|
|
4643
|
-
persistentId:
|
|
4744
|
+
persistentId: z172.string().uuid(),
|
|
4644
4745
|
// Group placement properties
|
|
4645
|
-
afterPersistentId:
|
|
4646
|
-
parentPersistentId:
|
|
4746
|
+
afterPersistentId: z172.string().uuid().nullish(),
|
|
4747
|
+
parentPersistentId: z172.string().uuid()
|
|
4647
4748
|
});
|
|
4648
|
-
var DTOCreateDocumentationTabInput =
|
|
4749
|
+
var DTOCreateDocumentationTabInput = z172.object({
|
|
4649
4750
|
// New group persistent id
|
|
4650
|
-
persistentId:
|
|
4751
|
+
persistentId: z172.string().uuid(),
|
|
4651
4752
|
// If this is page, we will attempt to convert it to tab
|
|
4652
4753
|
// If this is tab group, we will add a new tab to it
|
|
4653
|
-
fromItemPersistentId:
|
|
4654
|
-
tabName:
|
|
4754
|
+
fromItemPersistentId: z172.string(),
|
|
4755
|
+
tabName: z172.string()
|
|
4655
4756
|
});
|
|
4656
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
4757
|
+
var DTODeleteDocumentationTabGroupInput = z172.object({
|
|
4657
4758
|
// Deleted group id
|
|
4658
|
-
id:
|
|
4759
|
+
id: z172.string()
|
|
4659
4760
|
});
|
|
4660
|
-
var DTODeleteDocumentationGroupInput =
|
|
4761
|
+
var DTODeleteDocumentationGroupInput = z172.object({
|
|
4661
4762
|
// Identifier
|
|
4662
|
-
id:
|
|
4763
|
+
id: z172.string(),
|
|
4663
4764
|
// Deletion options
|
|
4664
|
-
deleteSubtree:
|
|
4765
|
+
deleteSubtree: z172.boolean().default(false)
|
|
4665
4766
|
});
|
|
4666
4767
|
|
|
4667
4768
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4668
|
-
var SuccessPayload =
|
|
4669
|
-
success:
|
|
4769
|
+
var SuccessPayload = z173.object({
|
|
4770
|
+
success: z173.literal(true)
|
|
4670
4771
|
});
|
|
4671
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
4672
|
-
type:
|
|
4772
|
+
var DTODocumentationGroupCreateActionOutputV2 = z173.object({
|
|
4773
|
+
type: z173.literal("DocumentationGroupCreate"),
|
|
4673
4774
|
output: SuccessPayload
|
|
4674
4775
|
});
|
|
4675
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
4676
|
-
type:
|
|
4776
|
+
var DTODocumentationTabCreateActionOutputV2 = z173.object({
|
|
4777
|
+
type: z173.literal("DocumentationTabCreate"),
|
|
4677
4778
|
output: SuccessPayload
|
|
4678
4779
|
});
|
|
4679
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
4680
|
-
type:
|
|
4780
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z173.object({
|
|
4781
|
+
type: z173.literal("DocumentationGroupUpdate"),
|
|
4681
4782
|
output: SuccessPayload
|
|
4682
4783
|
});
|
|
4683
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
4684
|
-
type:
|
|
4784
|
+
var DTODocumentationGroupMoveActionOutputV2 = z173.object({
|
|
4785
|
+
type: z173.literal("DocumentationGroupMove"),
|
|
4685
4786
|
output: SuccessPayload
|
|
4686
4787
|
});
|
|
4687
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
4688
|
-
type:
|
|
4788
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z173.object({
|
|
4789
|
+
type: z173.literal("DocumentationGroupDuplicate"),
|
|
4689
4790
|
output: SuccessPayload
|
|
4690
4791
|
});
|
|
4691
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
4692
|
-
type:
|
|
4792
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z173.object({
|
|
4793
|
+
type: z173.literal("DocumentationGroupDelete"),
|
|
4693
4794
|
output: SuccessPayload
|
|
4694
4795
|
});
|
|
4695
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
4696
|
-
type:
|
|
4796
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z173.object({
|
|
4797
|
+
type: z173.literal("DocumentationTabGroupDelete"),
|
|
4697
4798
|
output: SuccessPayload
|
|
4698
4799
|
});
|
|
4699
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
4700
|
-
type:
|
|
4800
|
+
var DTODocumentationGroupCreateActionInputV2 = z173.object({
|
|
4801
|
+
type: z173.literal("DocumentationGroupCreate"),
|
|
4701
4802
|
input: DTOCreateDocumentationGroupInput
|
|
4702
4803
|
});
|
|
4703
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
4704
|
-
type:
|
|
4804
|
+
var DTODocumentationTabCreateActionInputV2 = z173.object({
|
|
4805
|
+
type: z173.literal("DocumentationTabCreate"),
|
|
4705
4806
|
input: DTOCreateDocumentationTabInput
|
|
4706
4807
|
});
|
|
4707
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
4708
|
-
type:
|
|
4808
|
+
var DTODocumentationGroupUpdateActionInputV2 = z173.object({
|
|
4809
|
+
type: z173.literal("DocumentationGroupUpdate"),
|
|
4709
4810
|
input: DTOUpdateDocumentationGroupInput
|
|
4710
4811
|
});
|
|
4711
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
4712
|
-
type:
|
|
4812
|
+
var DTODocumentationGroupMoveActionInputV2 = z173.object({
|
|
4813
|
+
type: z173.literal("DocumentationGroupMove"),
|
|
4713
4814
|
input: DTOMoveDocumentationGroupInput
|
|
4714
4815
|
});
|
|
4715
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
4716
|
-
type:
|
|
4816
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z173.object({
|
|
4817
|
+
type: z173.literal("DocumentationGroupDuplicate"),
|
|
4717
4818
|
input: DTODuplicateDocumentationGroupInput
|
|
4718
4819
|
});
|
|
4719
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
4720
|
-
type:
|
|
4820
|
+
var DTODocumentationGroupDeleteActionInputV2 = z173.object({
|
|
4821
|
+
type: z173.literal("DocumentationGroupDelete"),
|
|
4721
4822
|
input: DTODeleteDocumentationGroupInput
|
|
4722
4823
|
});
|
|
4723
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
4724
|
-
type:
|
|
4824
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z173.object({
|
|
4825
|
+
type: z173.literal("DocumentationTabGroupDelete"),
|
|
4725
4826
|
input: DTODeleteDocumentationTabGroupInput
|
|
4726
4827
|
});
|
|
4727
4828
|
|
|
4728
4829
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
4729
|
-
import { z as
|
|
4830
|
+
import { z as z175 } from "zod";
|
|
4730
4831
|
|
|
4731
4832
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
4732
|
-
import { z as
|
|
4733
|
-
var DocumentationColorV1 =
|
|
4734
|
-
aliasTo:
|
|
4735
|
-
value:
|
|
4833
|
+
import { z as z174 } from "zod";
|
|
4834
|
+
var DocumentationColorV1 = z174.object({
|
|
4835
|
+
aliasTo: z174.string().optional(),
|
|
4836
|
+
value: z174.string().optional()
|
|
4736
4837
|
});
|
|
4737
4838
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
4738
4839
|
foregroundColor: true,
|
|
@@ -4741,10 +4842,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
4741
4842
|
foregroundColor: DocumentationColorV1.optional(),
|
|
4742
4843
|
backgroundColor: DocumentationColorV1.optional()
|
|
4743
4844
|
});
|
|
4744
|
-
var DTODocumentationItemConfigurationV1 =
|
|
4745
|
-
showSidebar:
|
|
4746
|
-
isPrivate:
|
|
4747
|
-
isHidden:
|
|
4845
|
+
var DTODocumentationItemConfigurationV1 = z174.object({
|
|
4846
|
+
showSidebar: z174.boolean(),
|
|
4847
|
+
isPrivate: z174.boolean(),
|
|
4848
|
+
isHidden: z174.boolean(),
|
|
4748
4849
|
header: DTODocumentationItemHeaderV1
|
|
4749
4850
|
});
|
|
4750
4851
|
|
|
@@ -4758,130 +4859,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
4758
4859
|
data: true,
|
|
4759
4860
|
shortPersistentId: true
|
|
4760
4861
|
}).extend({
|
|
4761
|
-
title:
|
|
4762
|
-
isRoot:
|
|
4763
|
-
childrenIds:
|
|
4862
|
+
title: z175.string(),
|
|
4863
|
+
isRoot: z175.boolean(),
|
|
4864
|
+
childrenIds: z175.array(z175.string()),
|
|
4764
4865
|
groupBehavior: DocumentationGroupBehavior,
|
|
4765
|
-
shortPersistentId:
|
|
4766
|
-
type:
|
|
4866
|
+
shortPersistentId: z175.string(),
|
|
4867
|
+
type: z175.literal("Group")
|
|
4767
4868
|
});
|
|
4768
4869
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
4769
4870
|
configuration: DTODocumentationItemConfigurationV1
|
|
4770
4871
|
});
|
|
4771
4872
|
|
|
4772
4873
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4773
|
-
import { z as
|
|
4874
|
+
import { z as z177 } from "zod";
|
|
4774
4875
|
|
|
4775
4876
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
4776
|
-
import { z as
|
|
4877
|
+
import { z as z176 } from "zod";
|
|
4777
4878
|
var DTODocumentationPageV2 = DocumentationPageV2.omit({
|
|
4778
4879
|
data: true,
|
|
4779
4880
|
meta: true,
|
|
4780
4881
|
parentPersistentId: true,
|
|
4781
4882
|
sortOrder: true
|
|
4782
4883
|
}).extend({
|
|
4783
|
-
title:
|
|
4784
|
-
path:
|
|
4785
|
-
type:
|
|
4884
|
+
title: z176.string(),
|
|
4885
|
+
path: z176.string(),
|
|
4886
|
+
type: z176.literal("Page"),
|
|
4786
4887
|
configuration: DTODocumentationItemConfigurationV2
|
|
4787
4888
|
});
|
|
4788
4889
|
var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
|
|
4789
|
-
var DTODocumentationHierarchyV2 =
|
|
4790
|
-
pages:
|
|
4791
|
-
groups:
|
|
4890
|
+
var DTODocumentationHierarchyV2 = z176.object({
|
|
4891
|
+
pages: z176.array(DTODocumentationPageStructureV2),
|
|
4892
|
+
groups: z176.array(DTODocumentationGroupStructureV2)
|
|
4792
4893
|
});
|
|
4793
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
4894
|
+
var DTOCreateDocumentationPageInputV2 = z176.object({
|
|
4794
4895
|
// Identifier
|
|
4795
|
-
persistentId:
|
|
4896
|
+
persistentId: z176.string().uuid(),
|
|
4796
4897
|
// Page properties
|
|
4797
|
-
title:
|
|
4898
|
+
title: z176.string(),
|
|
4798
4899
|
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4799
4900
|
// Page placement properties
|
|
4800
|
-
parentPersistentId:
|
|
4801
|
-
afterPersistentId:
|
|
4901
|
+
parentPersistentId: z176.string().uuid(),
|
|
4902
|
+
afterPersistentId: z176.string().uuid().nullish()
|
|
4802
4903
|
});
|
|
4803
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
4904
|
+
var DTOUpdateDocumentationPageInputV2 = z176.object({
|
|
4804
4905
|
// Identifier of the group to update
|
|
4805
|
-
id:
|
|
4906
|
+
id: z176.string(),
|
|
4806
4907
|
// Page properties
|
|
4807
|
-
title:
|
|
4908
|
+
title: z176.string().optional(),
|
|
4808
4909
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4809
4910
|
});
|
|
4810
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
4911
|
+
var DTOMoveDocumentationPageInputV2 = z176.object({
|
|
4811
4912
|
// Identifier of the group to update
|
|
4812
|
-
id:
|
|
4913
|
+
id: z176.string(),
|
|
4813
4914
|
// Page placement properties
|
|
4814
|
-
parentPersistentId:
|
|
4815
|
-
afterPersistentId:
|
|
4915
|
+
parentPersistentId: z176.string().uuid(),
|
|
4916
|
+
afterPersistentId: z176.string().uuid().nullish()
|
|
4816
4917
|
});
|
|
4817
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
4918
|
+
var DTODuplicateDocumentationPageInputV2 = z176.object({
|
|
4818
4919
|
// Identifier of the page to duplicate from
|
|
4819
|
-
id:
|
|
4920
|
+
id: z176.string(),
|
|
4820
4921
|
// New page persistent id
|
|
4821
|
-
persistentId:
|
|
4922
|
+
persistentId: z176.string().uuid(),
|
|
4822
4923
|
// Page placement properties
|
|
4823
|
-
parentPersistentId:
|
|
4824
|
-
afterPersistentId:
|
|
4924
|
+
parentPersistentId: z176.string().uuid(),
|
|
4925
|
+
afterPersistentId: z176.string().uuid().nullish()
|
|
4825
4926
|
});
|
|
4826
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
4927
|
+
var DTODeleteDocumentationPageInputV2 = z176.object({
|
|
4827
4928
|
// Identifier
|
|
4828
|
-
id:
|
|
4929
|
+
id: z176.string()
|
|
4829
4930
|
});
|
|
4830
4931
|
|
|
4831
4932
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4832
|
-
var SuccessPayload2 =
|
|
4833
|
-
success:
|
|
4933
|
+
var SuccessPayload2 = z177.object({
|
|
4934
|
+
success: z177.literal(true)
|
|
4834
4935
|
});
|
|
4835
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
4836
|
-
type:
|
|
4936
|
+
var DTODocumentationPageCreateActionOutputV2 = z177.object({
|
|
4937
|
+
type: z177.literal("DocumentationPageCreate"),
|
|
4837
4938
|
output: SuccessPayload2
|
|
4838
4939
|
});
|
|
4839
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
4840
|
-
type:
|
|
4940
|
+
var DTODocumentationPageUpdateActionOutputV2 = z177.object({
|
|
4941
|
+
type: z177.literal("DocumentationPageUpdate"),
|
|
4841
4942
|
output: SuccessPayload2
|
|
4842
4943
|
});
|
|
4843
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
4844
|
-
type:
|
|
4944
|
+
var DTODocumentationPageMoveActionOutputV2 = z177.object({
|
|
4945
|
+
type: z177.literal("DocumentationPageMove"),
|
|
4845
4946
|
output: SuccessPayload2
|
|
4846
4947
|
});
|
|
4847
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
4848
|
-
type:
|
|
4948
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z177.object({
|
|
4949
|
+
type: z177.literal("DocumentationPageDuplicate"),
|
|
4849
4950
|
output: SuccessPayload2
|
|
4850
4951
|
});
|
|
4851
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
4852
|
-
type:
|
|
4952
|
+
var DTODocumentationPageDeleteActionOutputV2 = z177.object({
|
|
4953
|
+
type: z177.literal("DocumentationPageDelete"),
|
|
4853
4954
|
output: SuccessPayload2
|
|
4854
4955
|
});
|
|
4855
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
4856
|
-
type:
|
|
4956
|
+
var DTODocumentationPageCreateActionInputV2 = z177.object({
|
|
4957
|
+
type: z177.literal("DocumentationPageCreate"),
|
|
4857
4958
|
input: DTOCreateDocumentationPageInputV2
|
|
4858
4959
|
});
|
|
4859
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
4860
|
-
type:
|
|
4960
|
+
var DTODocumentationPageUpdateActionInputV2 = z177.object({
|
|
4961
|
+
type: z177.literal("DocumentationPageUpdate"),
|
|
4861
4962
|
input: DTOUpdateDocumentationPageInputV2
|
|
4862
4963
|
});
|
|
4863
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
4864
|
-
type:
|
|
4964
|
+
var DTODocumentationPageMoveActionInputV2 = z177.object({
|
|
4965
|
+
type: z177.literal("DocumentationPageMove"),
|
|
4865
4966
|
input: DTOMoveDocumentationPageInputV2
|
|
4866
4967
|
});
|
|
4867
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
4868
|
-
type:
|
|
4968
|
+
var DTODocumentationPageDuplicateActionInputV2 = z177.object({
|
|
4969
|
+
type: z177.literal("DocumentationPageDuplicate"),
|
|
4869
4970
|
input: DTODuplicateDocumentationPageInputV2
|
|
4870
4971
|
});
|
|
4871
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
4872
|
-
type:
|
|
4972
|
+
var DTODocumentationPageDeleteActionInputV2 = z177.object({
|
|
4973
|
+
type: z177.literal("DocumentationPageDelete"),
|
|
4873
4974
|
input: DTODeleteDocumentationPageInputV2
|
|
4874
4975
|
});
|
|
4875
4976
|
|
|
4876
4977
|
// src/api/dto/elements/documentation/page-content.ts
|
|
4877
|
-
import { z as
|
|
4978
|
+
import { z as z178 } from "zod";
|
|
4878
4979
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
4879
|
-
var DTODocumentationPageContentGetResponse =
|
|
4980
|
+
var DTODocumentationPageContentGetResponse = z178.object({
|
|
4880
4981
|
pageContent: DTODocumentationPageContent
|
|
4881
4982
|
});
|
|
4882
4983
|
|
|
4883
4984
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
4884
|
-
import { z as
|
|
4985
|
+
import { z as z179 } from "zod";
|
|
4885
4986
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
4886
4987
|
data: true,
|
|
4887
4988
|
meta: true,
|
|
@@ -4889,30 +4990,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
4889
4990
|
sortOrder: true
|
|
4890
4991
|
}).extend({
|
|
4891
4992
|
configuration: DTODocumentationItemConfigurationV1,
|
|
4892
|
-
blocks:
|
|
4893
|
-
title:
|
|
4894
|
-
path:
|
|
4993
|
+
blocks: z179.array(PageBlockV1),
|
|
4994
|
+
title: z179.string(),
|
|
4995
|
+
path: z179.string()
|
|
4895
4996
|
});
|
|
4896
4997
|
|
|
4897
4998
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
4898
|
-
import { z as
|
|
4899
|
-
var DTOFigmaNodeOrigin =
|
|
4900
|
-
sourceId:
|
|
4901
|
-
fileId:
|
|
4902
|
-
parentName:
|
|
4999
|
+
import { z as z180 } from "zod";
|
|
5000
|
+
var DTOFigmaNodeOrigin = z180.object({
|
|
5001
|
+
sourceId: z180.string(),
|
|
5002
|
+
fileId: z180.string().optional(),
|
|
5003
|
+
parentName: z180.string().optional()
|
|
4903
5004
|
});
|
|
4904
|
-
var DTOFigmaNodeData =
|
|
5005
|
+
var DTOFigmaNodeData = z180.object({
|
|
4905
5006
|
// Id of the node in the Figma file
|
|
4906
|
-
figmaNodeId:
|
|
5007
|
+
figmaNodeId: z180.string(),
|
|
4907
5008
|
// Validity
|
|
4908
|
-
isValid:
|
|
5009
|
+
isValid: z180.boolean(),
|
|
4909
5010
|
// Asset data
|
|
4910
|
-
assetId:
|
|
4911
|
-
assetUrl:
|
|
5011
|
+
assetId: z180.string(),
|
|
5012
|
+
assetUrl: z180.string(),
|
|
4912
5013
|
// Asset metadata
|
|
4913
|
-
assetScale:
|
|
4914
|
-
assetWidth:
|
|
4915
|
-
assetHeight:
|
|
5014
|
+
assetScale: z180.number(),
|
|
5015
|
+
assetWidth: z180.number().optional(),
|
|
5016
|
+
assetHeight: z180.number().optional()
|
|
4916
5017
|
});
|
|
4917
5018
|
var DTOFigmaNode = FigmaFileStructure.omit({
|
|
4918
5019
|
data: true,
|
|
@@ -4921,105 +5022,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
|
|
|
4921
5022
|
data: DTOFigmaNodeData,
|
|
4922
5023
|
origin: DTOFigmaNodeOrigin
|
|
4923
5024
|
});
|
|
4924
|
-
var DTOFigmaNodeRenderInput =
|
|
5025
|
+
var DTOFigmaNodeRenderInput = z180.object({
|
|
4925
5026
|
// Id of a design system's data source representing a linked Figma file
|
|
4926
|
-
sourceId:
|
|
5027
|
+
sourceId: z180.string(),
|
|
4927
5028
|
// Id of a node within the Figma file
|
|
4928
|
-
figmaFileNodeId:
|
|
5029
|
+
figmaFileNodeId: z180.string()
|
|
4929
5030
|
});
|
|
4930
5031
|
|
|
4931
5032
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
4932
|
-
import { z as
|
|
4933
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
4934
|
-
type:
|
|
4935
|
-
figmaNodes:
|
|
5033
|
+
import { z as z181 } from "zod";
|
|
5034
|
+
var DTOFigmaNodeRenderActionOutput = z181.object({
|
|
5035
|
+
type: z181.literal("FigmaNodeRender"),
|
|
5036
|
+
figmaNodes: z181.array(DTOFigmaNode)
|
|
4936
5037
|
});
|
|
4937
|
-
var DTOFigmaNodeRenderActionInput =
|
|
4938
|
-
type:
|
|
5038
|
+
var DTOFigmaNodeRenderActionInput = z181.object({
|
|
5039
|
+
type: z181.literal("FigmaNodeRender"),
|
|
4939
5040
|
input: DTOFigmaNodeRenderInput.array()
|
|
4940
5041
|
});
|
|
4941
5042
|
|
|
4942
5043
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
4943
|
-
import { z as
|
|
5044
|
+
import { z as z183 } from "zod";
|
|
4944
5045
|
|
|
4945
5046
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
4946
|
-
import { z as
|
|
5047
|
+
import { z as z182 } from "zod";
|
|
4947
5048
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
4948
|
-
var DTOElementPropertyDefinition =
|
|
4949
|
-
id:
|
|
4950
|
-
designSystemVersionId:
|
|
5049
|
+
var DTOElementPropertyDefinition = z182.object({
|
|
5050
|
+
id: z182.string(),
|
|
5051
|
+
designSystemVersionId: z182.string(),
|
|
4951
5052
|
meta: ObjectMeta,
|
|
4952
|
-
persistentId:
|
|
5053
|
+
persistentId: z182.string(),
|
|
4953
5054
|
type: ElementPropertyTypeSchema,
|
|
4954
5055
|
targetElementType: ElementPropertyTargetType,
|
|
4955
|
-
codeName:
|
|
4956
|
-
options:
|
|
5056
|
+
codeName: z182.string().regex(CODE_NAME_REGEX2),
|
|
5057
|
+
options: z182.array(ElementPropertyDefinitionOption).optional(),
|
|
4957
5058
|
linkElementType: ElementPropertyLinkType.optional()
|
|
4958
5059
|
});
|
|
4959
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
4960
|
-
definitions:
|
|
5060
|
+
var DTOElementPropertyDefinitionsGetResponse = z182.object({
|
|
5061
|
+
definitions: z182.array(DTOElementPropertyDefinition)
|
|
4961
5062
|
});
|
|
4962
5063
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
4963
5064
|
id: true,
|
|
4964
5065
|
designSystemVersionId: true
|
|
4965
5066
|
});
|
|
4966
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
4967
|
-
id:
|
|
4968
|
-
name:
|
|
4969
|
-
description:
|
|
4970
|
-
codeName:
|
|
4971
|
-
options:
|
|
5067
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z182.object({
|
|
5068
|
+
id: z182.string(),
|
|
5069
|
+
name: z182.string().optional(),
|
|
5070
|
+
description: z182.string().optional(),
|
|
5071
|
+
codeName: z182.string().regex(CODE_NAME_REGEX2).optional(),
|
|
5072
|
+
options: z182.array(ElementPropertyDefinitionOption).optional()
|
|
4972
5073
|
});
|
|
4973
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
4974
|
-
id:
|
|
5074
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z182.object({
|
|
5075
|
+
id: z182.string()
|
|
4975
5076
|
});
|
|
4976
5077
|
|
|
4977
5078
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
4978
|
-
var SuccessPayload3 =
|
|
4979
|
-
success:
|
|
5079
|
+
var SuccessPayload3 = z183.object({
|
|
5080
|
+
success: z183.literal(true)
|
|
4980
5081
|
});
|
|
4981
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
4982
|
-
type:
|
|
5082
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z183.object({
|
|
5083
|
+
type: z183.literal("PropertyDefinitionCreate"),
|
|
4983
5084
|
definition: DTOElementPropertyDefinition
|
|
4984
5085
|
});
|
|
4985
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
4986
|
-
type:
|
|
5086
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z183.object({
|
|
5087
|
+
type: z183.literal("PropertyDefinitionUpdate"),
|
|
4987
5088
|
definition: DTOElementPropertyDefinition
|
|
4988
5089
|
});
|
|
4989
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
4990
|
-
type:
|
|
5090
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z183.object({
|
|
5091
|
+
type: z183.literal("PropertyDefinitionDelete"),
|
|
4991
5092
|
output: SuccessPayload3
|
|
4992
5093
|
});
|
|
4993
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
4994
|
-
type:
|
|
5094
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z183.object({
|
|
5095
|
+
type: z183.literal("PropertyDefinitionCreate"),
|
|
4995
5096
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
4996
5097
|
});
|
|
4997
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
4998
|
-
type:
|
|
5098
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z183.object({
|
|
5099
|
+
type: z183.literal("PropertyDefinitionUpdate"),
|
|
4999
5100
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
5000
5101
|
});
|
|
5001
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
5002
|
-
type:
|
|
5102
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z183.object({
|
|
5103
|
+
type: z183.literal("PropertyDefinitionDelete"),
|
|
5003
5104
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
5004
5105
|
});
|
|
5005
5106
|
|
|
5006
5107
|
// src/api/dto/elements/properties/property-values.ts
|
|
5007
|
-
import { z as
|
|
5008
|
-
var DTOElementPropertyValue =
|
|
5009
|
-
id:
|
|
5010
|
-
designSystemVersionId:
|
|
5011
|
-
definitionId:
|
|
5012
|
-
targetElementId:
|
|
5013
|
-
value:
|
|
5014
|
-
valuePreview:
|
|
5108
|
+
import { z as z184 } from "zod";
|
|
5109
|
+
var DTOElementPropertyValue = z184.object({
|
|
5110
|
+
id: z184.string(),
|
|
5111
|
+
designSystemVersionId: z184.string(),
|
|
5112
|
+
definitionId: z184.string(),
|
|
5113
|
+
targetElementId: z184.string(),
|
|
5114
|
+
value: z184.union([z184.string(), z184.number(), z184.boolean()]).optional(),
|
|
5115
|
+
valuePreview: z184.string().optional()
|
|
5015
5116
|
});
|
|
5016
|
-
var DTOElementPropertyValuesGetResponse =
|
|
5017
|
-
values:
|
|
5117
|
+
var DTOElementPropertyValuesGetResponse = z184.object({
|
|
5118
|
+
values: z184.array(DTOElementPropertyValue)
|
|
5018
5119
|
});
|
|
5019
5120
|
|
|
5020
5121
|
// src/api/dto/elements/elements-action-v2.ts
|
|
5021
|
-
import { z as
|
|
5022
|
-
var DTOElementActionOutput =
|
|
5122
|
+
import { z as z185 } from "zod";
|
|
5123
|
+
var DTOElementActionOutput = z185.discriminatedUnion("type", [
|
|
5023
5124
|
// Documentation pages
|
|
5024
5125
|
DTODocumentationPageCreateActionOutputV2,
|
|
5025
5126
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -5041,7 +5142,7 @@ var DTOElementActionOutput = z184.discriminatedUnion("type", [
|
|
|
5041
5142
|
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
5042
5143
|
DTOPropertyDefinitionDeleteActionOutputV2
|
|
5043
5144
|
]);
|
|
5044
|
-
var DTOElementActionInput =
|
|
5145
|
+
var DTOElementActionInput = z185.discriminatedUnion("type", [
|
|
5045
5146
|
// Documentation pages
|
|
5046
5147
|
DTODocumentationPageCreateActionInputV2,
|
|
5047
5148
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -5065,152 +5166,189 @@ var DTOElementActionInput = z184.discriminatedUnion("type", [
|
|
|
5065
5166
|
]);
|
|
5066
5167
|
|
|
5067
5168
|
// src/api/dto/elements/get-elements-v2.ts
|
|
5068
|
-
import { z as
|
|
5069
|
-
var DTOElementsGetTypeFilter =
|
|
5070
|
-
var DTOElementsGetQuerySchema =
|
|
5071
|
-
types:
|
|
5169
|
+
import { z as z186 } from "zod";
|
|
5170
|
+
var DTOElementsGetTypeFilter = z186.enum(["FigmaNode"]);
|
|
5171
|
+
var DTOElementsGetQuerySchema = z186.object({
|
|
5172
|
+
types: z186.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
5173
|
+
});
|
|
5174
|
+
var DTOElementsGetOutput = z186.object({
|
|
5175
|
+
figmaNodes: z186.array(DTOFigmaNode).optional()
|
|
5072
5176
|
});
|
|
5073
|
-
|
|
5074
|
-
|
|
5177
|
+
|
|
5178
|
+
// src/api/dto/export/exporter.ts
|
|
5179
|
+
import { z as z187 } from "zod";
|
|
5180
|
+
var DTOExporterType = z187.enum(["documentation", "code"]);
|
|
5181
|
+
var DTOExporterSource = z187.enum(["git", "upload"]);
|
|
5182
|
+
var DTOExporterMembershipRole = z187.enum(["Owner", "OwnerArchived", "User"]);
|
|
5183
|
+
var DTOExporter = z187.object({
|
|
5184
|
+
id: z187.string(),
|
|
5185
|
+
name: z187.string(),
|
|
5186
|
+
isPrivate: z187.boolean(),
|
|
5187
|
+
exporterType: DTOExporterType,
|
|
5188
|
+
isDefaultDocumentationExporter: z187.boolean(),
|
|
5189
|
+
iconURL: z187.string().optional(),
|
|
5190
|
+
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5191
|
+
customBlocks: PulsarCustomBlock.array(),
|
|
5192
|
+
blockVariants: PulsarContributionVariant.array(),
|
|
5193
|
+
usesBrands: z187.boolean(),
|
|
5194
|
+
usesThemes: z187.boolean(),
|
|
5195
|
+
source: DTOExporterSource,
|
|
5196
|
+
gitUrl: z187.string().optional(),
|
|
5197
|
+
gitBranch: z187.string().optional(),
|
|
5198
|
+
gitDirectory: z187.string().optional()
|
|
5199
|
+
});
|
|
5200
|
+
var DTOExporterMembership = z187.object({
|
|
5201
|
+
workspaceId: z187.string(),
|
|
5202
|
+
exporterId: z187.string(),
|
|
5203
|
+
role: DTOExporterMembershipRole
|
|
5204
|
+
});
|
|
5205
|
+
var DTOExporterCreateOutput = z187.object({
|
|
5206
|
+
exporter: DTOExporter,
|
|
5207
|
+
membership: DTOExporterMembership
|
|
5208
|
+
});
|
|
5209
|
+
var DTOExporterGitProviderEnum = z187.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5210
|
+
var DTOExporterCreateInput = z187.object({
|
|
5211
|
+
url: z187.string(),
|
|
5212
|
+
provider: DTOExporterGitProviderEnum.optional()
|
|
5075
5213
|
});
|
|
5076
5214
|
|
|
5077
5215
|
// src/api/dto/export/job.ts
|
|
5078
|
-
import { z as
|
|
5079
|
-
var DTOExportJobCreatedBy =
|
|
5080
|
-
userId:
|
|
5081
|
-
userName:
|
|
5216
|
+
import { z as z188 } from "zod";
|
|
5217
|
+
var DTOExportJobCreatedBy = z188.object({
|
|
5218
|
+
userId: z188.string(),
|
|
5219
|
+
userName: z188.string()
|
|
5082
5220
|
});
|
|
5083
|
-
var DTOExportJobDesignSystemPreview =
|
|
5084
|
-
id:
|
|
5221
|
+
var DTOExportJobDesignSystemPreview = z188.object({
|
|
5222
|
+
id: z188.string(),
|
|
5085
5223
|
meta: ObjectMeta
|
|
5086
5224
|
});
|
|
5087
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5088
|
-
id:
|
|
5225
|
+
var DTOExportJobDesignSystemVersionPreview = z188.object({
|
|
5226
|
+
id: z188.string(),
|
|
5089
5227
|
meta: ObjectMeta,
|
|
5090
|
-
version:
|
|
5091
|
-
isReadonly:
|
|
5228
|
+
version: z188.string(),
|
|
5229
|
+
isReadonly: z188.boolean()
|
|
5092
5230
|
});
|
|
5093
|
-
var DTOExportJobDestinations =
|
|
5231
|
+
var DTOExportJobDestinations = z188.object({
|
|
5094
5232
|
s3: ExporterDestinationS3.optional(),
|
|
5095
5233
|
azure: ExporterDestinationAzure.optional(),
|
|
5096
5234
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5097
5235
|
github: ExporterDestinationGithub.optional(),
|
|
5098
5236
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5099
5237
|
documentation: ExporterDestinationDocs.optional(),
|
|
5100
|
-
webhookUrl:
|
|
5238
|
+
webhookUrl: z188.string().optional()
|
|
5101
5239
|
});
|
|
5102
|
-
var DTOExportJob =
|
|
5103
|
-
id:
|
|
5104
|
-
createdAt:
|
|
5105
|
-
finishedAt:
|
|
5106
|
-
index:
|
|
5240
|
+
var DTOExportJob = z188.object({
|
|
5241
|
+
id: z188.string(),
|
|
5242
|
+
createdAt: z188.date(),
|
|
5243
|
+
finishedAt: z188.date().optional(),
|
|
5244
|
+
index: z188.number().optional(),
|
|
5107
5245
|
status: ExportJobStatus,
|
|
5108
|
-
estimatedExecutionTime:
|
|
5246
|
+
estimatedExecutionTime: z188.number().optional(),
|
|
5109
5247
|
createdBy: DTOExportJobCreatedBy,
|
|
5110
5248
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5111
5249
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5112
5250
|
destinations: DTOExportJobDestinations,
|
|
5113
|
-
exporterId:
|
|
5114
|
-
scheduleId:
|
|
5251
|
+
exporterId: z188.string(),
|
|
5252
|
+
scheduleId: z188.string(),
|
|
5115
5253
|
result: ExportJobResult.optional()
|
|
5116
5254
|
});
|
|
5117
5255
|
|
|
5118
5256
|
// src/api/dto/liveblocks/auth-response.ts
|
|
5119
|
-
import { z as
|
|
5120
|
-
var DTOLiveblocksAuthResponse =
|
|
5121
|
-
token:
|
|
5257
|
+
import { z as z189 } from "zod";
|
|
5258
|
+
var DTOLiveblocksAuthResponse = z189.object({
|
|
5259
|
+
token: z189.string()
|
|
5122
5260
|
});
|
|
5123
5261
|
|
|
5124
5262
|
// src/api/dto/users/profile/update.ts
|
|
5125
|
-
import { z as
|
|
5126
|
-
var DTOUserProfileUpdateResponse =
|
|
5263
|
+
import { z as z190 } from "zod";
|
|
5264
|
+
var DTOUserProfileUpdateResponse = z190.object({
|
|
5127
5265
|
user: User
|
|
5128
5266
|
});
|
|
5129
5267
|
|
|
5130
5268
|
// src/api/dto/workspaces/git.ts
|
|
5131
|
-
import { z as
|
|
5132
|
-
var DTOGitOrganization =
|
|
5133
|
-
id:
|
|
5134
|
-
name:
|
|
5135
|
-
url:
|
|
5136
|
-
});
|
|
5137
|
-
var DTOGitProject =
|
|
5138
|
-
id:
|
|
5139
|
-
name:
|
|
5140
|
-
url:
|
|
5141
|
-
});
|
|
5142
|
-
var DTOGitRepository =
|
|
5143
|
-
id:
|
|
5144
|
-
name:
|
|
5145
|
-
url:
|
|
5146
|
-
defaultBranch:
|
|
5147
|
-
});
|
|
5148
|
-
var DTOGitBranch =
|
|
5149
|
-
name:
|
|
5150
|
-
lastCommitId:
|
|
5269
|
+
import { z as z191 } from "zod";
|
|
5270
|
+
var DTOGitOrganization = z191.object({
|
|
5271
|
+
id: z191.string(),
|
|
5272
|
+
name: z191.string(),
|
|
5273
|
+
url: z191.string()
|
|
5274
|
+
});
|
|
5275
|
+
var DTOGitProject = z191.object({
|
|
5276
|
+
id: z191.string(),
|
|
5277
|
+
name: z191.string(),
|
|
5278
|
+
url: z191.string()
|
|
5279
|
+
});
|
|
5280
|
+
var DTOGitRepository = z191.object({
|
|
5281
|
+
id: z191.string(),
|
|
5282
|
+
name: z191.string(),
|
|
5283
|
+
url: z191.string(),
|
|
5284
|
+
defaultBranch: z191.string()
|
|
5285
|
+
});
|
|
5286
|
+
var DTOGitBranch = z191.object({
|
|
5287
|
+
name: z191.string(),
|
|
5288
|
+
lastCommitId: z191.string()
|
|
5151
5289
|
});
|
|
5152
5290
|
|
|
5153
5291
|
// src/api/dto/workspaces/integrations.ts
|
|
5154
|
-
import { z as
|
|
5155
|
-
var DTOIntegration =
|
|
5156
|
-
id:
|
|
5157
|
-
workspaceId:
|
|
5292
|
+
import { z as z192 } from "zod";
|
|
5293
|
+
var DTOIntegration = z192.object({
|
|
5294
|
+
id: z192.string(),
|
|
5295
|
+
workspaceId: z192.string(),
|
|
5158
5296
|
type: ExtendedIntegrationType,
|
|
5159
|
-
createdAt:
|
|
5160
|
-
integrationCredentials:
|
|
5161
|
-
integrationDesignSystems:
|
|
5297
|
+
createdAt: z192.coerce.date(),
|
|
5298
|
+
integrationCredentials: z192.array(IntegrationCredentials).optional(),
|
|
5299
|
+
integrationDesignSystems: z192.array(IntegrationDesignSystem).optional()
|
|
5162
5300
|
});
|
|
5163
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5164
|
-
url:
|
|
5301
|
+
var DTOIntegrationOAuthGetResponse = z192.object({
|
|
5302
|
+
url: z192.string()
|
|
5165
5303
|
});
|
|
5166
|
-
var DTOIntegrationPostResponse =
|
|
5304
|
+
var DTOIntegrationPostResponse = z192.object({
|
|
5167
5305
|
integration: DTOIntegration
|
|
5168
5306
|
});
|
|
5169
|
-
var DTOIntegrationsGetListResponse =
|
|
5307
|
+
var DTOIntegrationsGetListResponse = z192.object({
|
|
5170
5308
|
integrations: DTOIntegration.array()
|
|
5171
5309
|
});
|
|
5172
5310
|
|
|
5173
5311
|
// src/api/dto/workspaces/membership.ts
|
|
5174
|
-
import { z as
|
|
5312
|
+
import { z as z195 } from "zod";
|
|
5175
5313
|
|
|
5176
5314
|
// src/api/dto/workspaces/workspace.ts
|
|
5177
|
-
import { z as
|
|
5315
|
+
import { z as z194 } from "zod";
|
|
5178
5316
|
|
|
5179
5317
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5180
|
-
import { z as
|
|
5318
|
+
import { z as z193 } from "zod";
|
|
5181
5319
|
var DTONpmRegistryConfigConstants = {
|
|
5182
5320
|
passwordPlaceholder: "redacted"
|
|
5183
5321
|
};
|
|
5184
|
-
var DTONpmRegistryConfig =
|
|
5322
|
+
var DTONpmRegistryConfig = z193.object({
|
|
5185
5323
|
// Registry basic configuration
|
|
5186
5324
|
registryType: NpmRegistryType,
|
|
5187
|
-
registryUrl:
|
|
5188
|
-
customRegistryUrl:
|
|
5325
|
+
registryUrl: z193.string(),
|
|
5326
|
+
customRegistryUrl: z193.string().optional(),
|
|
5189
5327
|
// URL of Supernova NPM packages proxy
|
|
5190
|
-
proxyUrl:
|
|
5328
|
+
proxyUrl: z193.string(),
|
|
5191
5329
|
// Auth configuration
|
|
5192
5330
|
authType: NpmRegistryAuthType,
|
|
5193
|
-
accessToken:
|
|
5194
|
-
username:
|
|
5195
|
-
password:
|
|
5331
|
+
accessToken: z193.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5332
|
+
username: z193.string().optional(),
|
|
5333
|
+
password: z193.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5196
5334
|
// NPM package scopes for whih the proxy should be enabled
|
|
5197
|
-
enabledScopes:
|
|
5335
|
+
enabledScopes: z193.array(z193.string()),
|
|
5198
5336
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5199
5337
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5200
|
-
bypassProxy:
|
|
5338
|
+
bypassProxy: z193.boolean()
|
|
5201
5339
|
});
|
|
5202
5340
|
|
|
5203
5341
|
// src/api/dto/workspaces/workspace.ts
|
|
5204
|
-
var DTOWorkspace =
|
|
5205
|
-
id:
|
|
5342
|
+
var DTOWorkspace = z194.object({
|
|
5343
|
+
id: z194.string(),
|
|
5206
5344
|
profile: WorkspaceProfile,
|
|
5207
5345
|
subscription: Subscription,
|
|
5208
5346
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5209
5347
|
});
|
|
5210
5348
|
|
|
5211
5349
|
// src/api/dto/workspaces/membership.ts
|
|
5212
|
-
var DTOWorkspaceRole =
|
|
5213
|
-
var DTOUserWorkspaceMembership =
|
|
5350
|
+
var DTOWorkspaceRole = z195.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
5351
|
+
var DTOUserWorkspaceMembership = z195.object({
|
|
5214
5352
|
// Workspace the user is a member of
|
|
5215
5353
|
workspace: DTOWorkspace,
|
|
5216
5354
|
// Assigned role the user has in the workspace
|
|
@@ -5220,14 +5358,14 @@ var DTOUserWorkspaceMembership = z193.object({
|
|
|
5220
5358
|
// when a workspace's subscription is downgraded to free tier
|
|
5221
5359
|
effectiveRole: DTOWorkspaceRole
|
|
5222
5360
|
});
|
|
5223
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5224
|
-
membership:
|
|
5361
|
+
var DTOUserWorkspaceMembershipsResponse = z195.object({
|
|
5362
|
+
membership: z195.array(DTOUserWorkspaceMembership)
|
|
5225
5363
|
});
|
|
5226
5364
|
|
|
5227
5365
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
5228
|
-
import { z as
|
|
5229
|
-
var DocumentationHierarchySettings =
|
|
5230
|
-
routingVersion:
|
|
5366
|
+
import { z as z196 } from "zod";
|
|
5367
|
+
var DocumentationHierarchySettings = z196.object({
|
|
5368
|
+
routingVersion: z196.string()
|
|
5231
5369
|
});
|
|
5232
5370
|
function documentationHierarchyToYjs(doc, transaction) {
|
|
5233
5371
|
doc.transact((trx) => {
|
|
@@ -5298,13 +5436,13 @@ function getInternalSettingsYMap(doc) {
|
|
|
5298
5436
|
}
|
|
5299
5437
|
|
|
5300
5438
|
// src/yjs/design-system-content/item-configuration.ts
|
|
5301
|
-
import { z as
|
|
5302
|
-
var DTODocumentationPageRoomHeaderData =
|
|
5303
|
-
title:
|
|
5439
|
+
import { z as z197 } from "zod";
|
|
5440
|
+
var DTODocumentationPageRoomHeaderData = z197.object({
|
|
5441
|
+
title: z197.string(),
|
|
5304
5442
|
configuration: DTODocumentationItemConfigurationV2
|
|
5305
5443
|
});
|
|
5306
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
5307
|
-
title:
|
|
5444
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z197.object({
|
|
5445
|
+
title: z197.string().optional(),
|
|
5308
5446
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
5309
5447
|
});
|
|
5310
5448
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -5355,7 +5493,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
5355
5493
|
header: rawHeader
|
|
5356
5494
|
};
|
|
5357
5495
|
return {
|
|
5358
|
-
title:
|
|
5496
|
+
title: z197.string().parse(title),
|
|
5359
5497
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
5360
5498
|
};
|
|
5361
5499
|
}
|
|
@@ -5365,9 +5503,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
5365
5503
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
5366
5504
|
|
|
5367
5505
|
// src/yjs/docs-editor/model/page.ts
|
|
5368
|
-
import { z as
|
|
5369
|
-
var DocumentationPageEditorModel =
|
|
5370
|
-
blocks:
|
|
5506
|
+
import { z as z198 } from "zod";
|
|
5507
|
+
var DocumentationPageEditorModel = z198.object({
|
|
5508
|
+
blocks: z198.array(PageBlockEditorModel.or(PageSectionEditorModel))
|
|
5371
5509
|
});
|
|
5372
5510
|
|
|
5373
5511
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -8339,7 +8477,7 @@ var blocks = [
|
|
|
8339
8477
|
|
|
8340
8478
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
8341
8479
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
8342
|
-
import { z as
|
|
8480
|
+
import { z as z199 } from "zod";
|
|
8343
8481
|
function yDocToPage(yDoc, definitions) {
|
|
8344
8482
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
8345
8483
|
}
|
|
@@ -8382,7 +8520,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
8382
8520
|
return null;
|
|
8383
8521
|
return {
|
|
8384
8522
|
id,
|
|
8385
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
8523
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z199.string()) ?? "",
|
|
8386
8524
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
8387
8525
|
};
|
|
8388
8526
|
}
|
|
@@ -8417,7 +8555,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
8417
8555
|
});
|
|
8418
8556
|
}
|
|
8419
8557
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
8420
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
8558
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z199.string());
|
|
8421
8559
|
if (!definitionId) {
|
|
8422
8560
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
8423
8561
|
return [];
|
|
@@ -8459,7 +8597,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
8459
8597
|
if (!id)
|
|
8460
8598
|
return null;
|
|
8461
8599
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8462
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
8600
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z199.string().optional()));
|
|
8463
8601
|
return {
|
|
8464
8602
|
// TODO Artem: indent
|
|
8465
8603
|
id,
|
|
@@ -8586,10 +8724,10 @@ function parseRichTextAttribute(mark) {
|
|
|
8586
8724
|
return null;
|
|
8587
8725
|
}
|
|
8588
8726
|
function parseProsemirrorLink(mark) {
|
|
8589
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
8727
|
+
const href = getProsemirrorAttribute(mark, "href", z199.string().optional());
|
|
8590
8728
|
if (!href)
|
|
8591
8729
|
return null;
|
|
8592
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
8730
|
+
const target = getProsemirrorAttribute(mark, "target", z199.string().optional());
|
|
8593
8731
|
const openInNewTab = target === "_blank";
|
|
8594
8732
|
if (href.startsWith("@")) {
|
|
8595
8733
|
return {
|
|
@@ -8612,7 +8750,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
8612
8750
|
if (!id)
|
|
8613
8751
|
return null;
|
|
8614
8752
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8615
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
8753
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z199.boolean().optional()) !== false;
|
|
8616
8754
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
8617
8755
|
if (!tableChild) {
|
|
8618
8756
|
return emptyTable(id, variantId, 0);
|
|
@@ -8659,9 +8797,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
8659
8797
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
8660
8798
|
if (!id)
|
|
8661
8799
|
return null;
|
|
8662
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
8800
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z199.string().optional());
|
|
8663
8801
|
let columnWidth;
|
|
8664
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
8802
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z199.array(z199.number()).optional());
|
|
8665
8803
|
if (columnWidthArray) {
|
|
8666
8804
|
columnWidth = columnWidthArray[0];
|
|
8667
8805
|
}
|
|
@@ -8699,7 +8837,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
8699
8837
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
8700
8838
|
};
|
|
8701
8839
|
case "image":
|
|
8702
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
8840
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z199.string());
|
|
8703
8841
|
if (!items)
|
|
8704
8842
|
return null;
|
|
8705
8843
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -8804,7 +8942,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
|
8804
8942
|
};
|
|
8805
8943
|
}
|
|
8806
8944
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
8807
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
8945
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z199.string());
|
|
8808
8946
|
if (!itemsString)
|
|
8809
8947
|
return null;
|
|
8810
8948
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -8816,18 +8954,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
8816
8954
|
}
|
|
8817
8955
|
function parseAppearance(prosemirrorNode) {
|
|
8818
8956
|
let appearance = {};
|
|
8819
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
8957
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z199.string().optional());
|
|
8820
8958
|
if (rawAppearanceString) {
|
|
8821
8959
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
8822
8960
|
if (parsedAppearance.success) {
|
|
8823
8961
|
appearance = parsedAppearance.data;
|
|
8824
8962
|
}
|
|
8825
8963
|
}
|
|
8826
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
8964
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z199.number().optional());
|
|
8827
8965
|
if (columns) {
|
|
8828
8966
|
appearance.numberOfColumns = columns;
|
|
8829
8967
|
}
|
|
8830
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
8968
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z199.string().optional());
|
|
8831
8969
|
if (backgroundColor) {
|
|
8832
8970
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
8833
8971
|
if (parsedColor.success) {
|
|
@@ -8918,13 +9056,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
8918
9056
|
}
|
|
8919
9057
|
}
|
|
8920
9058
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
8921
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
9059
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z199.string());
|
|
8922
9060
|
if (!id)
|
|
8923
9061
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
8924
9062
|
return id;
|
|
8925
9063
|
}
|
|
8926
9064
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
8927
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
9065
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z199.string()));
|
|
8928
9066
|
}
|
|
8929
9067
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
8930
9068
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -8959,6 +9097,13 @@ export {
|
|
|
8959
9097
|
DTOCreateDocumentationTabInput,
|
|
8960
9098
|
DTOCreateElementPropertyDefinitionInputV2,
|
|
8961
9099
|
DTOCreateVersionInput,
|
|
9100
|
+
DTODataSource,
|
|
9101
|
+
DTODataSourceCreationResponse,
|
|
9102
|
+
DTODataSourceFigma,
|
|
9103
|
+
DTODataSourceFigmaCloud,
|
|
9104
|
+
DTODataSourceFigmaVariablesPlugin,
|
|
9105
|
+
DTODataSourceTokenStudio,
|
|
9106
|
+
DTODataSourcesListResponse,
|
|
8962
9107
|
DTODeleteDocumentationGroupInput,
|
|
8963
9108
|
DTODeleteDocumentationPageInputV2,
|
|
8964
9109
|
DTODeleteDocumentationTabGroupInput,
|
|
@@ -9034,8 +9179,16 @@ export {
|
|
|
9034
9179
|
DTOExportJobDesignSystemPreview,
|
|
9035
9180
|
DTOExportJobDesignSystemVersionPreview,
|
|
9036
9181
|
DTOExportJobDestinations,
|
|
9182
|
+
DTOExporter,
|
|
9183
|
+
DTOExporterCreateInput,
|
|
9184
|
+
DTOExporterCreateOutput,
|
|
9185
|
+
DTOExporterGitProviderEnum,
|
|
9186
|
+
DTOExporterMembership,
|
|
9187
|
+
DTOExporterMembershipRole,
|
|
9037
9188
|
DTOExporterProperty,
|
|
9038
9189
|
DTOExporterPropertyListResponse,
|
|
9190
|
+
DTOExporterSource,
|
|
9191
|
+
DTOExporterType,
|
|
9039
9192
|
DTOFigmaNode,
|
|
9040
9193
|
DTOFigmaNodeData,
|
|
9041
9194
|
DTOFigmaNodeOrigin,
|