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