@supernova-studio/client 0.52.1 → 0.52.3
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 +222 -122
- package/dist/index.d.ts +222 -122
- package/dist/index.js +31 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +467 -439
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/documentation/approvals.ts +11 -1
- package/src/api/dto/elements/documentation/group-v2.ts +4 -0
- package/src/yjs/version-room/frontend.ts +20 -0
package/dist/index.mjs
CHANGED
|
@@ -4030,7 +4030,8 @@ var UserOnboarding = z141.object({
|
|
|
4030
4030
|
designSystemName: z141.string().optional(),
|
|
4031
4031
|
defaultDestination: z141.string().optional(),
|
|
4032
4032
|
figmaUrl: z141.string().optional(),
|
|
4033
|
-
isPageDraftOnboardingFinished: z141.boolean().optional()
|
|
4033
|
+
isPageDraftOnboardingFinished: z141.boolean().optional(),
|
|
4034
|
+
isApprovalsOnboardingFinished: z141.boolean().optional()
|
|
4034
4035
|
});
|
|
4035
4036
|
var UserProfile = z141.object({
|
|
4036
4037
|
name: z141.string(),
|
|
@@ -5312,74 +5313,81 @@ var DTOGetDocumentationPageAnchorsResponse = z189.object({
|
|
|
5312
5313
|
});
|
|
5313
5314
|
|
|
5314
5315
|
// src/api/dto/documentation/approvals.ts
|
|
5316
|
+
import { z as z190 } from "zod";
|
|
5315
5317
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5318
|
+
var DTODocumentationGroupApprovalState = z190.object({
|
|
5319
|
+
persistentId: z190.string(),
|
|
5320
|
+
groupId: z190.string(),
|
|
5321
|
+
designSystemVersionId: z190.string(),
|
|
5322
|
+
approvalState: DocumentationPageApprovalState
|
|
5323
|
+
});
|
|
5316
5324
|
|
|
5317
5325
|
// src/api/dto/documentation/block.ts
|
|
5318
5326
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5319
5327
|
|
|
5320
5328
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5321
|
-
import { z as
|
|
5329
|
+
import { z as z195 } from "zod";
|
|
5322
5330
|
|
|
5323
5331
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5324
|
-
import { z as
|
|
5332
|
+
import { z as z194 } from "zod";
|
|
5325
5333
|
|
|
5326
5334
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5327
|
-
import { z as
|
|
5335
|
+
import { z as z192 } from "zod";
|
|
5328
5336
|
|
|
5329
5337
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5330
|
-
import { z as
|
|
5338
|
+
import { z as z191 } from "zod";
|
|
5331
5339
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5332
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5333
|
-
showSidebar:
|
|
5334
|
-
isPrivate:
|
|
5335
|
-
isHidden:
|
|
5340
|
+
var DTODocumentationItemConfigurationV2 = z191.object({
|
|
5341
|
+
showSidebar: z191.boolean(),
|
|
5342
|
+
isPrivate: z191.boolean(),
|
|
5343
|
+
isHidden: z191.boolean(),
|
|
5336
5344
|
header: DTODocumentationItemHeaderV2
|
|
5337
5345
|
});
|
|
5338
5346
|
|
|
5339
5347
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5340
|
-
var DTODocumentationDraftChangeType =
|
|
5341
|
-
var DTODocumentationDraftStateCreated =
|
|
5342
|
-
changeType:
|
|
5343
|
-
});
|
|
5344
|
-
var DTODocumentationDraftStateUpdated =
|
|
5345
|
-
changeType:
|
|
5346
|
-
changes:
|
|
5347
|
-
previousTitle:
|
|
5348
|
+
var DTODocumentationDraftChangeType = z192.enum(["Created", "Updated", "Deleted"]);
|
|
5349
|
+
var DTODocumentationDraftStateCreated = z192.object({
|
|
5350
|
+
changeType: z192.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5351
|
+
});
|
|
5352
|
+
var DTODocumentationDraftStateUpdated = z192.object({
|
|
5353
|
+
changeType: z192.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5354
|
+
changes: z192.object({
|
|
5355
|
+
previousTitle: z192.string().optional(),
|
|
5348
5356
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5349
|
-
previousContentHash:
|
|
5357
|
+
previousContentHash: z192.string().optional()
|
|
5350
5358
|
})
|
|
5351
5359
|
});
|
|
5352
|
-
var DTODocumentationDraftStateDeleted =
|
|
5353
|
-
changeType:
|
|
5354
|
-
deletedAt:
|
|
5355
|
-
deletedByUserId:
|
|
5360
|
+
var DTODocumentationDraftStateDeleted = z192.object({
|
|
5361
|
+
changeType: z192.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5362
|
+
deletedAt: z192.coerce.date(),
|
|
5363
|
+
deletedByUserId: z192.string()
|
|
5356
5364
|
});
|
|
5357
|
-
var DTODocumentationDraftState =
|
|
5365
|
+
var DTODocumentationDraftState = z192.discriminatedUnion("changeType", [
|
|
5358
5366
|
DTODocumentationDraftStateCreated,
|
|
5359
5367
|
DTODocumentationDraftStateUpdated,
|
|
5360
5368
|
DTODocumentationDraftStateDeleted
|
|
5361
5369
|
]);
|
|
5362
5370
|
|
|
5363
5371
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5364
|
-
import { z as
|
|
5365
|
-
var DTODocumentationPublishMetadata =
|
|
5366
|
-
lastPublishedByUserId:
|
|
5367
|
-
lastPublishedAt:
|
|
5372
|
+
import { z as z193 } from "zod";
|
|
5373
|
+
var DTODocumentationPublishMetadata = z193.object({
|
|
5374
|
+
lastPublishedByUserId: z193.string(),
|
|
5375
|
+
lastPublishedAt: z193.coerce.date()
|
|
5368
5376
|
});
|
|
5369
5377
|
|
|
5370
5378
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5371
|
-
var DTODocumentationPageV2 =
|
|
5372
|
-
id:
|
|
5373
|
-
persistentId:
|
|
5374
|
-
designSystemVersionId:
|
|
5375
|
-
title:
|
|
5379
|
+
var DTODocumentationPageV2 = z194.object({
|
|
5380
|
+
id: z194.string(),
|
|
5381
|
+
persistentId: z194.string(),
|
|
5382
|
+
designSystemVersionId: z194.string(),
|
|
5383
|
+
title: z194.string(),
|
|
5376
5384
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5377
|
-
shortPersistentId:
|
|
5378
|
-
slug:
|
|
5379
|
-
userSlug:
|
|
5380
|
-
createdAt:
|
|
5381
|
-
updatedAt:
|
|
5382
|
-
path:
|
|
5385
|
+
shortPersistentId: z194.string(),
|
|
5386
|
+
slug: z194.string().optional(),
|
|
5387
|
+
userSlug: z194.string().optional(),
|
|
5388
|
+
createdAt: z194.coerce.date(),
|
|
5389
|
+
updatedAt: z194.coerce.date(),
|
|
5390
|
+
path: z194.string(),
|
|
5383
5391
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5384
5392
|
draftState: DTODocumentationDraftState.optional(),
|
|
5385
5393
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5387,195 +5395,195 @@ var DTODocumentationPageV2 = z193.object({
|
|
|
5387
5395
|
/** Defines the approval state of the documentation page */
|
|
5388
5396
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5389
5397
|
// Backward compatibility
|
|
5390
|
-
type:
|
|
5398
|
+
type: z194.literal("Page")
|
|
5391
5399
|
});
|
|
5392
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5400
|
+
var DTOCreateDocumentationPageInputV2 = z194.object({
|
|
5393
5401
|
// Identifier
|
|
5394
|
-
persistentId:
|
|
5402
|
+
persistentId: z194.string().uuid(),
|
|
5395
5403
|
// Page properties
|
|
5396
|
-
title:
|
|
5404
|
+
title: z194.string(),
|
|
5397
5405
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5398
5406
|
// Page placement properties
|
|
5399
|
-
parentPersistentId:
|
|
5400
|
-
afterPersistentId:
|
|
5407
|
+
parentPersistentId: z194.string().uuid(),
|
|
5408
|
+
afterPersistentId: z194.string().uuid().nullish()
|
|
5401
5409
|
});
|
|
5402
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5410
|
+
var DTOUpdateDocumentationPageInputV2 = z194.object({
|
|
5403
5411
|
// Identifier of the group to update
|
|
5404
|
-
id:
|
|
5412
|
+
id: z194.string(),
|
|
5405
5413
|
// Page properties
|
|
5406
|
-
title:
|
|
5414
|
+
title: z194.string().optional(),
|
|
5407
5415
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5408
5416
|
});
|
|
5409
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5417
|
+
var DTOMoveDocumentationPageInputV2 = z194.object({
|
|
5410
5418
|
// Identifier of the group to update
|
|
5411
|
-
id:
|
|
5419
|
+
id: z194.string(),
|
|
5412
5420
|
// Page placement properties
|
|
5413
|
-
parentPersistentId:
|
|
5414
|
-
afterPersistentId:
|
|
5421
|
+
parentPersistentId: z194.string().uuid(),
|
|
5422
|
+
afterPersistentId: z194.string().uuid().nullish()
|
|
5415
5423
|
});
|
|
5416
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5424
|
+
var DTODuplicateDocumentationPageInputV2 = z194.object({
|
|
5417
5425
|
// Identifier of the page to duplicate from
|
|
5418
|
-
id:
|
|
5426
|
+
id: z194.string(),
|
|
5419
5427
|
// New page persistent id
|
|
5420
|
-
persistentId:
|
|
5428
|
+
persistentId: z194.string().uuid(),
|
|
5421
5429
|
// Page placement properties
|
|
5422
|
-
parentPersistentId:
|
|
5423
|
-
afterPersistentId:
|
|
5430
|
+
parentPersistentId: z194.string().uuid(),
|
|
5431
|
+
afterPersistentId: z194.string().uuid().nullish()
|
|
5424
5432
|
});
|
|
5425
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5433
|
+
var DTODeleteDocumentationPageInputV2 = z194.object({
|
|
5426
5434
|
// Identifier
|
|
5427
|
-
id:
|
|
5435
|
+
id: z194.string()
|
|
5428
5436
|
});
|
|
5429
|
-
var DTORestoreDocumentationPageInput =
|
|
5430
|
-
persistentId:
|
|
5431
|
-
snapshotId:
|
|
5437
|
+
var DTORestoreDocumentationPageInput = z194.object({
|
|
5438
|
+
persistentId: z194.string(),
|
|
5439
|
+
snapshotId: z194.string().optional()
|
|
5432
5440
|
});
|
|
5433
|
-
var DTORestoreDocumentationGroupInput =
|
|
5434
|
-
persistentId:
|
|
5435
|
-
snapshotId:
|
|
5441
|
+
var DTORestoreDocumentationGroupInput = z194.object({
|
|
5442
|
+
persistentId: z194.string(),
|
|
5443
|
+
snapshotId: z194.string().optional()
|
|
5436
5444
|
});
|
|
5437
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5438
|
-
persistentId:
|
|
5445
|
+
var DTODocumentationPageApprovalStateChangeInput = z194.object({
|
|
5446
|
+
persistentId: z194.string(),
|
|
5439
5447
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5440
5448
|
});
|
|
5441
5449
|
|
|
5442
5450
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5443
|
-
var DTODocumentationPageSnapshot =
|
|
5444
|
-
id:
|
|
5445
|
-
designSystemVersionId:
|
|
5446
|
-
createdAt:
|
|
5447
|
-
updatedAt:
|
|
5451
|
+
var DTODocumentationPageSnapshot = z195.object({
|
|
5452
|
+
id: z195.string(),
|
|
5453
|
+
designSystemVersionId: z195.string(),
|
|
5454
|
+
createdAt: z195.string(),
|
|
5455
|
+
updatedAt: z195.string(),
|
|
5448
5456
|
documentationPage: DTODocumentationPageV2,
|
|
5449
|
-
pageContentHash:
|
|
5457
|
+
pageContentHash: z195.string(),
|
|
5450
5458
|
reason: DesignElementSnapshotReason
|
|
5451
5459
|
});
|
|
5452
5460
|
|
|
5453
5461
|
// src/api/dto/documentation/link-preview.ts
|
|
5454
|
-
import { z as
|
|
5455
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5462
|
+
import { z as z196 } from "zod";
|
|
5463
|
+
var DTODocumentationLinkPreviewResponse = z196.object({
|
|
5456
5464
|
linkPreview: DocumentationLinkPreview
|
|
5457
5465
|
});
|
|
5458
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5459
|
-
url:
|
|
5460
|
-
documentationItemPersistentId:
|
|
5466
|
+
var DTODocumentationLinkPreviewRequest = z196.object({
|
|
5467
|
+
url: z196.string().optional(),
|
|
5468
|
+
documentationItemPersistentId: z196.string().optional()
|
|
5461
5469
|
});
|
|
5462
5470
|
|
|
5463
5471
|
// src/api/dto/documentation/publish.ts
|
|
5464
|
-
import { z as
|
|
5472
|
+
import { z as z200 } from "zod";
|
|
5465
5473
|
|
|
5466
5474
|
// src/api/dto/export/exporter.ts
|
|
5467
|
-
import { z as
|
|
5468
|
-
var DTOExporterType =
|
|
5469
|
-
var DTOExporterSource =
|
|
5470
|
-
var DTOExporterMembershipRole =
|
|
5471
|
-
var DTOExporter =
|
|
5472
|
-
id:
|
|
5473
|
-
name:
|
|
5474
|
-
isPrivate:
|
|
5475
|
+
import { z as z197 } from "zod";
|
|
5476
|
+
var DTOExporterType = z197.enum(["documentation", "code"]);
|
|
5477
|
+
var DTOExporterSource = z197.enum(["git", "upload"]);
|
|
5478
|
+
var DTOExporterMembershipRole = z197.enum(["Owner", "OwnerArchived", "User"]);
|
|
5479
|
+
var DTOExporter = z197.object({
|
|
5480
|
+
id: z197.string(),
|
|
5481
|
+
name: z197.string(),
|
|
5482
|
+
isPrivate: z197.boolean(),
|
|
5475
5483
|
exporterType: DTOExporterType,
|
|
5476
|
-
isDefaultDocumentationExporter:
|
|
5477
|
-
iconURL:
|
|
5484
|
+
isDefaultDocumentationExporter: z197.boolean(),
|
|
5485
|
+
iconURL: z197.string().optional(),
|
|
5478
5486
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5479
5487
|
customBlocks: PulsarCustomBlock.array(),
|
|
5480
|
-
blockVariants:
|
|
5481
|
-
usesBrands:
|
|
5482
|
-
usesThemes:
|
|
5488
|
+
blockVariants: z197.record(z197.string(), PulsarContributionVariant.array()),
|
|
5489
|
+
usesBrands: z197.boolean(),
|
|
5490
|
+
usesThemes: z197.boolean(),
|
|
5483
5491
|
source: DTOExporterSource,
|
|
5484
|
-
gitUrl:
|
|
5485
|
-
gitBranch:
|
|
5486
|
-
gitDirectory:
|
|
5492
|
+
gitUrl: z197.string().optional(),
|
|
5493
|
+
gitBranch: z197.string().optional(),
|
|
5494
|
+
gitDirectory: z197.string().optional()
|
|
5487
5495
|
});
|
|
5488
|
-
var DTOExporterMembership =
|
|
5489
|
-
workspaceId:
|
|
5490
|
-
exporterId:
|
|
5496
|
+
var DTOExporterMembership = z197.object({
|
|
5497
|
+
workspaceId: z197.string(),
|
|
5498
|
+
exporterId: z197.string(),
|
|
5491
5499
|
role: DTOExporterMembershipRole
|
|
5492
5500
|
});
|
|
5493
|
-
var DTOExporterCreateOutput =
|
|
5501
|
+
var DTOExporterCreateOutput = z197.object({
|
|
5494
5502
|
exporter: DTOExporter,
|
|
5495
5503
|
membership: DTOExporterMembership
|
|
5496
5504
|
});
|
|
5497
|
-
var DTOExporterGitProviderEnum =
|
|
5498
|
-
var DTOExporterCreateInput =
|
|
5499
|
-
url:
|
|
5505
|
+
var DTOExporterGitProviderEnum = z197.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5506
|
+
var DTOExporterCreateInput = z197.object({
|
|
5507
|
+
url: z197.string(),
|
|
5500
5508
|
provider: DTOExporterGitProviderEnum
|
|
5501
5509
|
});
|
|
5502
|
-
var DTOExporterUpdateInput =
|
|
5503
|
-
url:
|
|
5510
|
+
var DTOExporterUpdateInput = z197.object({
|
|
5511
|
+
url: z197.string().optional()
|
|
5504
5512
|
});
|
|
5505
5513
|
|
|
5506
5514
|
// src/api/dto/export/filter.ts
|
|
5507
5515
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5508
5516
|
|
|
5509
5517
|
// src/api/dto/export/job.ts
|
|
5510
|
-
import { z as
|
|
5511
|
-
var DTOExportJobCreatedBy =
|
|
5512
|
-
userId:
|
|
5513
|
-
userName:
|
|
5518
|
+
import { z as z198 } from "zod";
|
|
5519
|
+
var DTOExportJobCreatedBy = z198.object({
|
|
5520
|
+
userId: z198.string(),
|
|
5521
|
+
userName: z198.string()
|
|
5514
5522
|
});
|
|
5515
|
-
var DTOExportJobDesignSystemPreview =
|
|
5516
|
-
id:
|
|
5523
|
+
var DTOExportJobDesignSystemPreview = z198.object({
|
|
5524
|
+
id: z198.string(),
|
|
5517
5525
|
meta: ObjectMeta
|
|
5518
5526
|
});
|
|
5519
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5520
|
-
id:
|
|
5527
|
+
var DTOExportJobDesignSystemVersionPreview = z198.object({
|
|
5528
|
+
id: z198.string(),
|
|
5521
5529
|
meta: ObjectMeta,
|
|
5522
|
-
version:
|
|
5523
|
-
isReadonly:
|
|
5530
|
+
version: z198.string(),
|
|
5531
|
+
isReadonly: z198.boolean()
|
|
5524
5532
|
});
|
|
5525
|
-
var DTOExportJobDestinations =
|
|
5533
|
+
var DTOExportJobDestinations = z198.object({
|
|
5526
5534
|
s3: ExporterDestinationS3.optional(),
|
|
5527
5535
|
azure: ExporterDestinationAzure.optional(),
|
|
5528
5536
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5529
5537
|
github: ExporterDestinationGithub.optional(),
|
|
5530
5538
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5531
5539
|
documentation: ExporterDestinationDocs.optional(),
|
|
5532
|
-
webhookUrl:
|
|
5540
|
+
webhookUrl: z198.string().optional()
|
|
5533
5541
|
});
|
|
5534
5542
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5535
5543
|
sndocs: true
|
|
5536
5544
|
}).extend({
|
|
5537
5545
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5538
5546
|
});
|
|
5539
|
-
var DTOExportJob =
|
|
5540
|
-
id:
|
|
5541
|
-
createdAt:
|
|
5542
|
-
finishedAt:
|
|
5543
|
-
index:
|
|
5547
|
+
var DTOExportJob = z198.object({
|
|
5548
|
+
id: z198.string(),
|
|
5549
|
+
createdAt: z198.coerce.date(),
|
|
5550
|
+
finishedAt: z198.coerce.date().optional(),
|
|
5551
|
+
index: z198.number().optional(),
|
|
5544
5552
|
status: ExportJobStatus,
|
|
5545
|
-
estimatedExecutionTime:
|
|
5553
|
+
estimatedExecutionTime: z198.number().optional(),
|
|
5546
5554
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5547
5555
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5548
5556
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5549
5557
|
destinations: DTOExportJobDestinations,
|
|
5550
|
-
exporterId:
|
|
5551
|
-
scheduleId:
|
|
5558
|
+
exporterId: z198.string(),
|
|
5559
|
+
scheduleId: z198.string().optional(),
|
|
5552
5560
|
result: DTOExportJobResult.optional(),
|
|
5553
|
-
brandPersistentId:
|
|
5554
|
-
themePersistentId:
|
|
5561
|
+
brandPersistentId: z198.string().optional(),
|
|
5562
|
+
themePersistentId: z198.string().optional()
|
|
5555
5563
|
});
|
|
5556
|
-
var DTOExportJobResponse =
|
|
5564
|
+
var DTOExportJobResponse = z198.object({
|
|
5557
5565
|
job: DTOExportJob
|
|
5558
5566
|
});
|
|
5559
5567
|
|
|
5560
5568
|
// src/api/dto/export/pipeline.ts
|
|
5561
|
-
import { z as
|
|
5562
|
-
var DTOPipeline =
|
|
5563
|
-
id:
|
|
5564
|
-
name:
|
|
5569
|
+
import { z as z199 } from "zod";
|
|
5570
|
+
var DTOPipeline = z199.object({
|
|
5571
|
+
id: z199.string(),
|
|
5572
|
+
name: z199.string(),
|
|
5565
5573
|
eventType: PipelineEventType,
|
|
5566
|
-
isEnabled:
|
|
5567
|
-
workspaceId:
|
|
5568
|
-
designSystemId:
|
|
5569
|
-
exporterId:
|
|
5570
|
-
brandPersistentId:
|
|
5571
|
-
themePersistentId:
|
|
5574
|
+
isEnabled: z199.boolean(),
|
|
5575
|
+
workspaceId: z199.string(),
|
|
5576
|
+
designSystemId: z199.string(),
|
|
5577
|
+
exporterId: z199.string(),
|
|
5578
|
+
brandPersistentId: z199.string().optional(),
|
|
5579
|
+
themePersistentId: z199.string().optional(),
|
|
5572
5580
|
...ExportDestinationsMap.shape,
|
|
5573
5581
|
latestJobs: DTOExportJob.array()
|
|
5574
5582
|
});
|
|
5575
5583
|
|
|
5576
5584
|
// src/api/dto/documentation/publish.ts
|
|
5577
5585
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5578
|
-
var DTOPublishDocumentationRequest =
|
|
5586
|
+
var DTOPublishDocumentationRequest = z200.object({
|
|
5579
5587
|
environment: PublishedDocEnvironment,
|
|
5580
5588
|
/**
|
|
5581
5589
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5583,15 +5591,15 @@ var DTOPublishDocumentationRequest = z199.object({
|
|
|
5583
5591
|
*/
|
|
5584
5592
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5585
5593
|
});
|
|
5586
|
-
var DTOPublishDocumentationResponse =
|
|
5594
|
+
var DTOPublishDocumentationResponse = z200.object({
|
|
5587
5595
|
job: DTOExportJob
|
|
5588
5596
|
});
|
|
5589
5597
|
|
|
5590
5598
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5591
|
-
import { z as
|
|
5599
|
+
import { z as z202 } from "zod";
|
|
5592
5600
|
|
|
5593
5601
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
5594
|
-
import { z as
|
|
5602
|
+
import { z as z201 } from "zod";
|
|
5595
5603
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
5596
5604
|
sortOrder: true,
|
|
5597
5605
|
parentPersistentId: true,
|
|
@@ -5601,139 +5609,141 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5601
5609
|
data: true,
|
|
5602
5610
|
shortPersistentId: true
|
|
5603
5611
|
}).extend({
|
|
5604
|
-
title:
|
|
5605
|
-
isRoot:
|
|
5606
|
-
childrenIds:
|
|
5612
|
+
title: z201.string(),
|
|
5613
|
+
isRoot: z201.boolean(),
|
|
5614
|
+
childrenIds: z201.array(z201.string()),
|
|
5607
5615
|
groupBehavior: DocumentationGroupBehavior,
|
|
5608
|
-
shortPersistentId:
|
|
5616
|
+
shortPersistentId: z201.string(),
|
|
5609
5617
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5610
|
-
type:
|
|
5618
|
+
type: z201.literal("Group"),
|
|
5611
5619
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
5612
5620
|
draftState: DTODocumentationDraftState.optional(),
|
|
5613
5621
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
5614
|
-
publishMetadata: DTODocumentationPublishMetadata.optional()
|
|
5622
|
+
publishMetadata: DTODocumentationPublishMetadata.optional(),
|
|
5623
|
+
//** An approval state for frontend to utilize. */
|
|
5624
|
+
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
5615
5625
|
});
|
|
5616
|
-
var DTOCreateDocumentationGroupInput =
|
|
5626
|
+
var DTOCreateDocumentationGroupInput = z201.object({
|
|
5617
5627
|
// Identifier
|
|
5618
|
-
persistentId:
|
|
5628
|
+
persistentId: z201.string().uuid(),
|
|
5619
5629
|
// Group properties
|
|
5620
|
-
title:
|
|
5630
|
+
title: z201.string(),
|
|
5621
5631
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5622
5632
|
// Group placement properties
|
|
5623
|
-
afterPersistentId:
|
|
5624
|
-
parentPersistentId:
|
|
5633
|
+
afterPersistentId: z201.string().uuid().nullish(),
|
|
5634
|
+
parentPersistentId: z201.string().uuid()
|
|
5625
5635
|
});
|
|
5626
|
-
var DTOUpdateDocumentationGroupInput =
|
|
5636
|
+
var DTOUpdateDocumentationGroupInput = z201.object({
|
|
5627
5637
|
// Identifier of the group to update
|
|
5628
|
-
id:
|
|
5638
|
+
id: z201.string(),
|
|
5629
5639
|
// Group properties
|
|
5630
|
-
title:
|
|
5640
|
+
title: z201.string().optional(),
|
|
5631
5641
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5632
5642
|
});
|
|
5633
|
-
var DTOMoveDocumentationGroupInput =
|
|
5643
|
+
var DTOMoveDocumentationGroupInput = z201.object({
|
|
5634
5644
|
// Identifier of the group to update
|
|
5635
|
-
id:
|
|
5645
|
+
id: z201.string(),
|
|
5636
5646
|
// Group placement properties
|
|
5637
|
-
parentPersistentId:
|
|
5638
|
-
afterPersistentId:
|
|
5647
|
+
parentPersistentId: z201.string().uuid(),
|
|
5648
|
+
afterPersistentId: z201.string().uuid().nullish()
|
|
5639
5649
|
});
|
|
5640
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5650
|
+
var DTODuplicateDocumentationGroupInput = z201.object({
|
|
5641
5651
|
// Identifier of the group to duplicate from
|
|
5642
|
-
id:
|
|
5652
|
+
id: z201.string(),
|
|
5643
5653
|
// New group persistent id
|
|
5644
|
-
persistentId:
|
|
5654
|
+
persistentId: z201.string().uuid(),
|
|
5645
5655
|
// Group placement properties
|
|
5646
|
-
afterPersistentId:
|
|
5647
|
-
parentPersistentId:
|
|
5656
|
+
afterPersistentId: z201.string().uuid().nullish(),
|
|
5657
|
+
parentPersistentId: z201.string().uuid()
|
|
5648
5658
|
});
|
|
5649
|
-
var DTOCreateDocumentationTabInput =
|
|
5659
|
+
var DTOCreateDocumentationTabInput = z201.object({
|
|
5650
5660
|
// New group persistent id
|
|
5651
|
-
persistentId:
|
|
5661
|
+
persistentId: z201.string().uuid(),
|
|
5652
5662
|
// If this is page, we will attempt to convert it to tab
|
|
5653
5663
|
// If this is tab group, we will add a new tab to it
|
|
5654
|
-
fromItemPersistentId:
|
|
5655
|
-
tabName:
|
|
5664
|
+
fromItemPersistentId: z201.string(),
|
|
5665
|
+
tabName: z201.string()
|
|
5656
5666
|
});
|
|
5657
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5667
|
+
var DTODeleteDocumentationTabGroupInput = z201.object({
|
|
5658
5668
|
// Deleted group id
|
|
5659
|
-
id:
|
|
5669
|
+
id: z201.string()
|
|
5660
5670
|
});
|
|
5661
|
-
var DTODeleteDocumentationGroupInput =
|
|
5671
|
+
var DTODeleteDocumentationGroupInput = z201.object({
|
|
5662
5672
|
// Identifier
|
|
5663
|
-
id:
|
|
5673
|
+
id: z201.string(),
|
|
5664
5674
|
// Deletion options
|
|
5665
|
-
deleteSubtree:
|
|
5675
|
+
deleteSubtree: z201.boolean().default(false)
|
|
5666
5676
|
});
|
|
5667
5677
|
|
|
5668
5678
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5669
|
-
var SuccessPayload =
|
|
5670
|
-
success:
|
|
5679
|
+
var SuccessPayload = z202.object({
|
|
5680
|
+
success: z202.literal(true)
|
|
5671
5681
|
});
|
|
5672
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5673
|
-
type:
|
|
5682
|
+
var DTODocumentationGroupCreateActionOutputV2 = z202.object({
|
|
5683
|
+
type: z202.literal("DocumentationGroupCreate"),
|
|
5674
5684
|
output: SuccessPayload
|
|
5675
5685
|
});
|
|
5676
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5677
|
-
type:
|
|
5686
|
+
var DTODocumentationTabCreateActionOutputV2 = z202.object({
|
|
5687
|
+
type: z202.literal("DocumentationTabCreate"),
|
|
5678
5688
|
output: SuccessPayload
|
|
5679
5689
|
});
|
|
5680
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5681
|
-
type:
|
|
5690
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z202.object({
|
|
5691
|
+
type: z202.literal("DocumentationGroupUpdate"),
|
|
5682
5692
|
output: SuccessPayload
|
|
5683
5693
|
});
|
|
5684
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5685
|
-
type:
|
|
5694
|
+
var DTODocumentationGroupMoveActionOutputV2 = z202.object({
|
|
5695
|
+
type: z202.literal("DocumentationGroupMove"),
|
|
5686
5696
|
output: SuccessPayload
|
|
5687
5697
|
});
|
|
5688
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5689
|
-
type:
|
|
5698
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z202.object({
|
|
5699
|
+
type: z202.literal("DocumentationGroupDuplicate"),
|
|
5690
5700
|
output: SuccessPayload
|
|
5691
5701
|
});
|
|
5692
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
5693
|
-
type:
|
|
5702
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z202.object({
|
|
5703
|
+
type: z202.literal("DocumentationGroupDelete"),
|
|
5694
5704
|
output: SuccessPayload
|
|
5695
5705
|
});
|
|
5696
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
5697
|
-
type:
|
|
5706
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z202.object({
|
|
5707
|
+
type: z202.literal("DocumentationTabGroupDelete"),
|
|
5698
5708
|
output: SuccessPayload
|
|
5699
5709
|
});
|
|
5700
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
5701
|
-
type:
|
|
5710
|
+
var DTODocumentationGroupCreateActionInputV2 = z202.object({
|
|
5711
|
+
type: z202.literal("DocumentationGroupCreate"),
|
|
5702
5712
|
input: DTOCreateDocumentationGroupInput
|
|
5703
5713
|
});
|
|
5704
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
5705
|
-
type:
|
|
5714
|
+
var DTODocumentationTabCreateActionInputV2 = z202.object({
|
|
5715
|
+
type: z202.literal("DocumentationTabCreate"),
|
|
5706
5716
|
input: DTOCreateDocumentationTabInput
|
|
5707
5717
|
});
|
|
5708
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
5709
|
-
type:
|
|
5718
|
+
var DTODocumentationGroupUpdateActionInputV2 = z202.object({
|
|
5719
|
+
type: z202.literal("DocumentationGroupUpdate"),
|
|
5710
5720
|
input: DTOUpdateDocumentationGroupInput
|
|
5711
5721
|
});
|
|
5712
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
5713
|
-
type:
|
|
5722
|
+
var DTODocumentationGroupMoveActionInputV2 = z202.object({
|
|
5723
|
+
type: z202.literal("DocumentationGroupMove"),
|
|
5714
5724
|
input: DTOMoveDocumentationGroupInput
|
|
5715
5725
|
});
|
|
5716
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
5717
|
-
type:
|
|
5726
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z202.object({
|
|
5727
|
+
type: z202.literal("DocumentationGroupDuplicate"),
|
|
5718
5728
|
input: DTODuplicateDocumentationGroupInput
|
|
5719
5729
|
});
|
|
5720
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
5721
|
-
type:
|
|
5730
|
+
var DTODocumentationGroupDeleteActionInputV2 = z202.object({
|
|
5731
|
+
type: z202.literal("DocumentationGroupDelete"),
|
|
5722
5732
|
input: DTODeleteDocumentationGroupInput
|
|
5723
5733
|
});
|
|
5724
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
5725
|
-
type:
|
|
5734
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z202.object({
|
|
5735
|
+
type: z202.literal("DocumentationTabGroupDelete"),
|
|
5726
5736
|
input: DTODeleteDocumentationTabGroupInput
|
|
5727
5737
|
});
|
|
5728
5738
|
|
|
5729
5739
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
5730
|
-
import { z as
|
|
5740
|
+
import { z as z204 } from "zod";
|
|
5731
5741
|
|
|
5732
5742
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
5733
|
-
import { z as
|
|
5734
|
-
var DocumentationColorV1 =
|
|
5735
|
-
aliasTo:
|
|
5736
|
-
value:
|
|
5743
|
+
import { z as z203 } from "zod";
|
|
5744
|
+
var DocumentationColorV1 = z203.object({
|
|
5745
|
+
aliasTo: z203.string().optional(),
|
|
5746
|
+
value: z203.string().optional()
|
|
5737
5747
|
});
|
|
5738
5748
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
5739
5749
|
foregroundColor: true,
|
|
@@ -5742,10 +5752,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
5742
5752
|
foregroundColor: DocumentationColorV1.optional(),
|
|
5743
5753
|
backgroundColor: DocumentationColorV1.optional()
|
|
5744
5754
|
});
|
|
5745
|
-
var DTODocumentationItemConfigurationV1 =
|
|
5746
|
-
showSidebar:
|
|
5747
|
-
isPrivate:
|
|
5748
|
-
isHidden:
|
|
5755
|
+
var DTODocumentationItemConfigurationV1 = z203.object({
|
|
5756
|
+
showSidebar: z203.boolean(),
|
|
5757
|
+
isPrivate: z203.boolean(),
|
|
5758
|
+
isHidden: z203.boolean(),
|
|
5749
5759
|
header: DTODocumentationItemHeaderV1
|
|
5750
5760
|
});
|
|
5751
5761
|
|
|
@@ -5759,27 +5769,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
5759
5769
|
data: true,
|
|
5760
5770
|
shortPersistentId: true
|
|
5761
5771
|
}).extend({
|
|
5762
|
-
title:
|
|
5763
|
-
isRoot:
|
|
5764
|
-
childrenIds:
|
|
5772
|
+
title: z204.string(),
|
|
5773
|
+
isRoot: z204.boolean(),
|
|
5774
|
+
childrenIds: z204.array(z204.string()),
|
|
5765
5775
|
groupBehavior: DocumentationGroupBehavior,
|
|
5766
|
-
shortPersistentId:
|
|
5767
|
-
type:
|
|
5776
|
+
shortPersistentId: z204.string(),
|
|
5777
|
+
type: z204.literal("Group")
|
|
5768
5778
|
});
|
|
5769
5779
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
5770
5780
|
configuration: DTODocumentationItemConfigurationV1
|
|
5771
5781
|
});
|
|
5772
5782
|
|
|
5773
5783
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
5774
|
-
import { z as
|
|
5775
|
-
var DTODocumentationHierarchyV2 =
|
|
5776
|
-
pages:
|
|
5784
|
+
import { z as z205 } from "zod";
|
|
5785
|
+
var DTODocumentationHierarchyV2 = z205.object({
|
|
5786
|
+
pages: z205.array(
|
|
5777
5787
|
DTODocumentationPageV2.extend({
|
|
5778
5788
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5779
5789
|
draftState: DTODocumentationDraftState.optional()
|
|
5780
5790
|
})
|
|
5781
5791
|
),
|
|
5782
|
-
groups:
|
|
5792
|
+
groups: z205.array(
|
|
5783
5793
|
DTODocumentationGroupV2.extend({
|
|
5784
5794
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5785
5795
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -5788,84 +5798,84 @@ var DTODocumentationHierarchyV2 = z204.object({
|
|
|
5788
5798
|
});
|
|
5789
5799
|
|
|
5790
5800
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
5791
|
-
import { z as
|
|
5792
|
-
var SuccessPayload2 =
|
|
5793
|
-
success:
|
|
5801
|
+
import { z as z206 } from "zod";
|
|
5802
|
+
var SuccessPayload2 = z206.object({
|
|
5803
|
+
success: z206.literal(true)
|
|
5794
5804
|
});
|
|
5795
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
5796
|
-
type:
|
|
5805
|
+
var DTODocumentationPageCreateActionOutputV2 = z206.object({
|
|
5806
|
+
type: z206.literal("DocumentationPageCreate"),
|
|
5797
5807
|
output: SuccessPayload2
|
|
5798
5808
|
});
|
|
5799
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
5800
|
-
type:
|
|
5809
|
+
var DTODocumentationPageUpdateActionOutputV2 = z206.object({
|
|
5810
|
+
type: z206.literal("DocumentationPageUpdate"),
|
|
5801
5811
|
output: SuccessPayload2
|
|
5802
5812
|
});
|
|
5803
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
5804
|
-
type:
|
|
5813
|
+
var DTODocumentationPageMoveActionOutputV2 = z206.object({
|
|
5814
|
+
type: z206.literal("DocumentationPageMove"),
|
|
5805
5815
|
output: SuccessPayload2
|
|
5806
5816
|
});
|
|
5807
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
5808
|
-
type:
|
|
5817
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z206.object({
|
|
5818
|
+
type: z206.literal("DocumentationPageDuplicate"),
|
|
5809
5819
|
output: SuccessPayload2
|
|
5810
5820
|
});
|
|
5811
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
5812
|
-
type:
|
|
5821
|
+
var DTODocumentationPageDeleteActionOutputV2 = z206.object({
|
|
5822
|
+
type: z206.literal("DocumentationPageDelete"),
|
|
5813
5823
|
output: SuccessPayload2
|
|
5814
5824
|
});
|
|
5815
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
5816
|
-
type:
|
|
5825
|
+
var DTODocumentationPageRestoreActionOutput = z206.object({
|
|
5826
|
+
type: z206.literal("DocumentationPageRestore"),
|
|
5817
5827
|
output: SuccessPayload2
|
|
5818
5828
|
});
|
|
5819
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
5820
|
-
type:
|
|
5829
|
+
var DTODocumentationGroupRestoreActionOutput = z206.object({
|
|
5830
|
+
type: z206.literal("DocumentationGroupRestore"),
|
|
5821
5831
|
output: SuccessPayload2
|
|
5822
5832
|
});
|
|
5823
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
5824
|
-
type:
|
|
5833
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z206.object({
|
|
5834
|
+
type: z206.literal("DocumentationPageApprovalStateChange"),
|
|
5825
5835
|
output: SuccessPayload2
|
|
5826
5836
|
});
|
|
5827
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
5828
|
-
type:
|
|
5837
|
+
var DTODocumentationPageCreateActionInputV2 = z206.object({
|
|
5838
|
+
type: z206.literal("DocumentationPageCreate"),
|
|
5829
5839
|
input: DTOCreateDocumentationPageInputV2
|
|
5830
5840
|
});
|
|
5831
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
5832
|
-
type:
|
|
5841
|
+
var DTODocumentationPageUpdateActionInputV2 = z206.object({
|
|
5842
|
+
type: z206.literal("DocumentationPageUpdate"),
|
|
5833
5843
|
input: DTOUpdateDocumentationPageInputV2
|
|
5834
5844
|
});
|
|
5835
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
5836
|
-
type:
|
|
5845
|
+
var DTODocumentationPageMoveActionInputV2 = z206.object({
|
|
5846
|
+
type: z206.literal("DocumentationPageMove"),
|
|
5837
5847
|
input: DTOMoveDocumentationPageInputV2
|
|
5838
5848
|
});
|
|
5839
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
5840
|
-
type:
|
|
5849
|
+
var DTODocumentationPageDuplicateActionInputV2 = z206.object({
|
|
5850
|
+
type: z206.literal("DocumentationPageDuplicate"),
|
|
5841
5851
|
input: DTODuplicateDocumentationPageInputV2
|
|
5842
5852
|
});
|
|
5843
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
5844
|
-
type:
|
|
5853
|
+
var DTODocumentationPageDeleteActionInputV2 = z206.object({
|
|
5854
|
+
type: z206.literal("DocumentationPageDelete"),
|
|
5845
5855
|
input: DTODeleteDocumentationPageInputV2
|
|
5846
5856
|
});
|
|
5847
|
-
var DTODocumentationPageRestoreActionInput =
|
|
5848
|
-
type:
|
|
5857
|
+
var DTODocumentationPageRestoreActionInput = z206.object({
|
|
5858
|
+
type: z206.literal("DocumentationPageRestore"),
|
|
5849
5859
|
input: DTORestoreDocumentationPageInput
|
|
5850
5860
|
});
|
|
5851
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
5852
|
-
type:
|
|
5861
|
+
var DTODocumentationGroupRestoreActionInput = z206.object({
|
|
5862
|
+
type: z206.literal("DocumentationGroupRestore"),
|
|
5853
5863
|
input: DTORestoreDocumentationGroupInput
|
|
5854
5864
|
});
|
|
5855
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
5856
|
-
type:
|
|
5865
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z206.object({
|
|
5866
|
+
type: z206.literal("DocumentationPageApprovalStateChange"),
|
|
5857
5867
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
5858
5868
|
});
|
|
5859
5869
|
|
|
5860
5870
|
// src/api/dto/elements/documentation/page-content.ts
|
|
5861
|
-
import { z as
|
|
5871
|
+
import { z as z207 } from "zod";
|
|
5862
5872
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
5863
|
-
var DTODocumentationPageContentGetResponse =
|
|
5873
|
+
var DTODocumentationPageContentGetResponse = z207.object({
|
|
5864
5874
|
pageContent: DTODocumentationPageContent
|
|
5865
5875
|
});
|
|
5866
5876
|
|
|
5867
5877
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
5868
|
-
import { z as
|
|
5878
|
+
import { z as z208 } from "zod";
|
|
5869
5879
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
5870
5880
|
data: true,
|
|
5871
5881
|
meta: true,
|
|
@@ -5873,30 +5883,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
5873
5883
|
sortOrder: true
|
|
5874
5884
|
}).extend({
|
|
5875
5885
|
configuration: DTODocumentationItemConfigurationV1,
|
|
5876
|
-
blocks:
|
|
5877
|
-
title:
|
|
5878
|
-
path:
|
|
5886
|
+
blocks: z208.array(PageBlockV1),
|
|
5887
|
+
title: z208.string(),
|
|
5888
|
+
path: z208.string()
|
|
5879
5889
|
});
|
|
5880
5890
|
|
|
5881
5891
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
5882
|
-
import { z as
|
|
5883
|
-
var DTOFigmaNodeOrigin =
|
|
5884
|
-
sourceId:
|
|
5885
|
-
fileId:
|
|
5886
|
-
parentName:
|
|
5892
|
+
import { z as z209 } from "zod";
|
|
5893
|
+
var DTOFigmaNodeOrigin = z209.object({
|
|
5894
|
+
sourceId: z209.string(),
|
|
5895
|
+
fileId: z209.string().optional(),
|
|
5896
|
+
parentName: z209.string().optional()
|
|
5887
5897
|
});
|
|
5888
|
-
var DTOFigmaNodeData =
|
|
5898
|
+
var DTOFigmaNodeData = z209.object({
|
|
5889
5899
|
// Id of the node in the Figma file
|
|
5890
|
-
figmaNodeId:
|
|
5900
|
+
figmaNodeId: z209.string(),
|
|
5891
5901
|
// Validity
|
|
5892
|
-
isValid:
|
|
5902
|
+
isValid: z209.boolean(),
|
|
5893
5903
|
// Asset data
|
|
5894
|
-
assetId:
|
|
5895
|
-
assetUrl:
|
|
5904
|
+
assetId: z209.string(),
|
|
5905
|
+
assetUrl: z209.string(),
|
|
5896
5906
|
// Asset metadata
|
|
5897
|
-
assetScale:
|
|
5898
|
-
assetWidth:
|
|
5899
|
-
assetHeight:
|
|
5907
|
+
assetScale: z209.number(),
|
|
5908
|
+
assetWidth: z209.number().optional(),
|
|
5909
|
+
assetHeight: z209.number().optional()
|
|
5900
5910
|
});
|
|
5901
5911
|
var DTOFigmaNode = FigmaFileStructure.omit({
|
|
5902
5912
|
data: true,
|
|
@@ -5905,105 +5915,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
|
|
|
5905
5915
|
data: DTOFigmaNodeData,
|
|
5906
5916
|
origin: DTOFigmaNodeOrigin
|
|
5907
5917
|
});
|
|
5908
|
-
var DTOFigmaNodeRenderInput =
|
|
5918
|
+
var DTOFigmaNodeRenderInput = z209.object({
|
|
5909
5919
|
// Id of a design system's data source representing a linked Figma file
|
|
5910
|
-
sourceId:
|
|
5920
|
+
sourceId: z209.string(),
|
|
5911
5921
|
// Id of a node within the Figma file
|
|
5912
|
-
figmaFileNodeId:
|
|
5922
|
+
figmaFileNodeId: z209.string()
|
|
5913
5923
|
});
|
|
5914
5924
|
|
|
5915
5925
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
5916
|
-
import { z as
|
|
5917
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
5918
|
-
type:
|
|
5919
|
-
figmaNodes:
|
|
5926
|
+
import { z as z210 } from "zod";
|
|
5927
|
+
var DTOFigmaNodeRenderActionOutput = z210.object({
|
|
5928
|
+
type: z210.literal("FigmaNodeRender"),
|
|
5929
|
+
figmaNodes: z210.array(DTOFigmaNode)
|
|
5920
5930
|
});
|
|
5921
|
-
var DTOFigmaNodeRenderActionInput =
|
|
5922
|
-
type:
|
|
5931
|
+
var DTOFigmaNodeRenderActionInput = z210.object({
|
|
5932
|
+
type: z210.literal("FigmaNodeRender"),
|
|
5923
5933
|
input: DTOFigmaNodeRenderInput.array()
|
|
5924
5934
|
});
|
|
5925
5935
|
|
|
5926
5936
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5927
|
-
import { z as
|
|
5937
|
+
import { z as z212 } from "zod";
|
|
5928
5938
|
|
|
5929
5939
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
5930
|
-
import { z as
|
|
5940
|
+
import { z as z211 } from "zod";
|
|
5931
5941
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
5932
|
-
var DTOElementPropertyDefinition =
|
|
5933
|
-
id:
|
|
5934
|
-
designSystemVersionId:
|
|
5942
|
+
var DTOElementPropertyDefinition = z211.object({
|
|
5943
|
+
id: z211.string(),
|
|
5944
|
+
designSystemVersionId: z211.string(),
|
|
5935
5945
|
meta: ObjectMeta,
|
|
5936
|
-
persistentId:
|
|
5946
|
+
persistentId: z211.string(),
|
|
5937
5947
|
type: ElementPropertyTypeSchema,
|
|
5938
5948
|
targetElementType: ElementPropertyTargetType,
|
|
5939
|
-
codeName:
|
|
5940
|
-
options:
|
|
5949
|
+
codeName: z211.string().regex(CODE_NAME_REGEX2),
|
|
5950
|
+
options: z211.array(ElementPropertyDefinitionOption).optional(),
|
|
5941
5951
|
linkElementType: ElementPropertyLinkType.optional()
|
|
5942
5952
|
});
|
|
5943
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
5944
|
-
definitions:
|
|
5953
|
+
var DTOElementPropertyDefinitionsGetResponse = z211.object({
|
|
5954
|
+
definitions: z211.array(DTOElementPropertyDefinition)
|
|
5945
5955
|
});
|
|
5946
5956
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
5947
5957
|
id: true,
|
|
5948
5958
|
designSystemVersionId: true
|
|
5949
5959
|
});
|
|
5950
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
5951
|
-
id:
|
|
5952
|
-
name:
|
|
5953
|
-
description:
|
|
5954
|
-
codeName:
|
|
5955
|
-
options:
|
|
5960
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z211.object({
|
|
5961
|
+
id: z211.string(),
|
|
5962
|
+
name: z211.string().optional(),
|
|
5963
|
+
description: z211.string().optional(),
|
|
5964
|
+
codeName: z211.string().regex(CODE_NAME_REGEX2).optional(),
|
|
5965
|
+
options: z211.array(ElementPropertyDefinitionOption).optional()
|
|
5956
5966
|
});
|
|
5957
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
5958
|
-
id:
|
|
5967
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z211.object({
|
|
5968
|
+
id: z211.string()
|
|
5959
5969
|
});
|
|
5960
5970
|
|
|
5961
5971
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5962
|
-
var SuccessPayload3 =
|
|
5963
|
-
success:
|
|
5972
|
+
var SuccessPayload3 = z212.object({
|
|
5973
|
+
success: z212.literal(true)
|
|
5964
5974
|
});
|
|
5965
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
5966
|
-
type:
|
|
5975
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z212.object({
|
|
5976
|
+
type: z212.literal("PropertyDefinitionCreate"),
|
|
5967
5977
|
definition: DTOElementPropertyDefinition
|
|
5968
5978
|
});
|
|
5969
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
5970
|
-
type:
|
|
5979
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z212.object({
|
|
5980
|
+
type: z212.literal("PropertyDefinitionUpdate"),
|
|
5971
5981
|
definition: DTOElementPropertyDefinition
|
|
5972
5982
|
});
|
|
5973
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
5974
|
-
type:
|
|
5983
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z212.object({
|
|
5984
|
+
type: z212.literal("PropertyDefinitionDelete"),
|
|
5975
5985
|
output: SuccessPayload3
|
|
5976
5986
|
});
|
|
5977
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
5978
|
-
type:
|
|
5987
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z212.object({
|
|
5988
|
+
type: z212.literal("PropertyDefinitionCreate"),
|
|
5979
5989
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
5980
5990
|
});
|
|
5981
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
5982
|
-
type:
|
|
5991
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z212.object({
|
|
5992
|
+
type: z212.literal("PropertyDefinitionUpdate"),
|
|
5983
5993
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
5984
5994
|
});
|
|
5985
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
5986
|
-
type:
|
|
5995
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z212.object({
|
|
5996
|
+
type: z212.literal("PropertyDefinitionDelete"),
|
|
5987
5997
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
5988
5998
|
});
|
|
5989
5999
|
|
|
5990
6000
|
// src/api/dto/elements/properties/property-values.ts
|
|
5991
|
-
import { z as
|
|
5992
|
-
var DTOElementPropertyValue =
|
|
5993
|
-
id:
|
|
5994
|
-
designSystemVersionId:
|
|
5995
|
-
definitionId:
|
|
5996
|
-
targetElementId:
|
|
5997
|
-
value:
|
|
5998
|
-
valuePreview:
|
|
6001
|
+
import { z as z213 } from "zod";
|
|
6002
|
+
var DTOElementPropertyValue = z213.object({
|
|
6003
|
+
id: z213.string(),
|
|
6004
|
+
designSystemVersionId: z213.string(),
|
|
6005
|
+
definitionId: z213.string(),
|
|
6006
|
+
targetElementId: z213.string(),
|
|
6007
|
+
value: z213.union([z213.string(), z213.number(), z213.boolean()]).optional(),
|
|
6008
|
+
valuePreview: z213.string().optional()
|
|
5999
6009
|
});
|
|
6000
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6001
|
-
values:
|
|
6010
|
+
var DTOElementPropertyValuesGetResponse = z213.object({
|
|
6011
|
+
values: z213.array(DTOElementPropertyValue)
|
|
6002
6012
|
});
|
|
6003
6013
|
|
|
6004
6014
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6005
|
-
import { z as
|
|
6006
|
-
var DTOElementActionOutput =
|
|
6015
|
+
import { z as z214 } from "zod";
|
|
6016
|
+
var DTOElementActionOutput = z214.discriminatedUnion("type", [
|
|
6007
6017
|
// Documentation pages
|
|
6008
6018
|
DTODocumentationPageCreateActionOutputV2,
|
|
6009
6019
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6030,7 +6040,7 @@ var DTOElementActionOutput = z213.discriminatedUnion("type", [
|
|
|
6030
6040
|
// Approvals
|
|
6031
6041
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6032
6042
|
]);
|
|
6033
|
-
var DTOElementActionInput =
|
|
6043
|
+
var DTOElementActionInput = z214.discriminatedUnion("type", [
|
|
6034
6044
|
// Documentation pages
|
|
6035
6045
|
DTODocumentationPageCreateActionInputV2,
|
|
6036
6046
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6059,141 +6069,141 @@ var DTOElementActionInput = z213.discriminatedUnion("type", [
|
|
|
6059
6069
|
]);
|
|
6060
6070
|
|
|
6061
6071
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6062
|
-
import { z as
|
|
6063
|
-
var DTOElementsGetTypeFilter =
|
|
6064
|
-
var DTOElementsGetQuerySchema =
|
|
6065
|
-
types:
|
|
6072
|
+
import { z as z215 } from "zod";
|
|
6073
|
+
var DTOElementsGetTypeFilter = z215.enum(["FigmaNode"]);
|
|
6074
|
+
var DTOElementsGetQuerySchema = z215.object({
|
|
6075
|
+
types: z215.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6066
6076
|
});
|
|
6067
|
-
var DTOElementsGetOutput =
|
|
6068
|
-
figmaNodes:
|
|
6077
|
+
var DTOElementsGetOutput = z215.object({
|
|
6078
|
+
figmaNodes: z215.array(DTOFigmaNode).optional()
|
|
6069
6079
|
});
|
|
6070
6080
|
|
|
6071
6081
|
// src/api/dto/figma-components/assets/download.ts
|
|
6072
|
-
import { z as
|
|
6073
|
-
var DTOAssetRenderConfiguration =
|
|
6074
|
-
prefix:
|
|
6075
|
-
suffix:
|
|
6076
|
-
scale:
|
|
6077
|
-
format:
|
|
6078
|
-
});
|
|
6079
|
-
var DTORenderedAssetFile =
|
|
6080
|
-
assetId:
|
|
6081
|
-
fileName:
|
|
6082
|
-
sourceUrl:
|
|
6082
|
+
import { z as z216 } from "zod";
|
|
6083
|
+
var DTOAssetRenderConfiguration = z216.object({
|
|
6084
|
+
prefix: z216.string().optional(),
|
|
6085
|
+
suffix: z216.string().optional(),
|
|
6086
|
+
scale: z216.enum(["x1", "x2", "x3", "x4"]),
|
|
6087
|
+
format: z216.enum(["png", "pdf", "svg"])
|
|
6088
|
+
});
|
|
6089
|
+
var DTORenderedAssetFile = z216.object({
|
|
6090
|
+
assetId: z216.string(),
|
|
6091
|
+
fileName: z216.string(),
|
|
6092
|
+
sourceUrl: z216.string(),
|
|
6083
6093
|
settings: DTOAssetRenderConfiguration,
|
|
6084
|
-
originalName:
|
|
6094
|
+
originalName: z216.string()
|
|
6085
6095
|
});
|
|
6086
|
-
var DTODownloadAssetsRequest =
|
|
6087
|
-
persistentIds:
|
|
6096
|
+
var DTODownloadAssetsRequest = z216.object({
|
|
6097
|
+
persistentIds: z216.array(z216.string().uuid()).optional(),
|
|
6088
6098
|
settings: DTOAssetRenderConfiguration.array()
|
|
6089
6099
|
});
|
|
6090
|
-
var DTODownloadAssetsResponse =
|
|
6100
|
+
var DTODownloadAssetsResponse = z216.object({
|
|
6091
6101
|
items: DTORenderedAssetFile.array()
|
|
6092
6102
|
});
|
|
6093
6103
|
|
|
6094
6104
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6095
|
-
import { z as
|
|
6096
|
-
var DTOLiveblocksAuthResponse =
|
|
6097
|
-
token:
|
|
6105
|
+
import { z as z217 } from "zod";
|
|
6106
|
+
var DTOLiveblocksAuthResponse = z217.object({
|
|
6107
|
+
token: z217.string()
|
|
6098
6108
|
});
|
|
6099
6109
|
|
|
6100
6110
|
// src/api/dto/users/profile/update.ts
|
|
6101
|
-
import { z as
|
|
6102
|
-
var DTOUserProfileUpdateResponse =
|
|
6111
|
+
import { z as z218 } from "zod";
|
|
6112
|
+
var DTOUserProfileUpdateResponse = z218.object({
|
|
6103
6113
|
user: User
|
|
6104
6114
|
});
|
|
6105
6115
|
|
|
6106
6116
|
// src/api/dto/workspaces/git.ts
|
|
6107
|
-
import { z as
|
|
6108
|
-
var DTOGitOrganization =
|
|
6109
|
-
id:
|
|
6110
|
-
name:
|
|
6111
|
-
url:
|
|
6112
|
-
slug:
|
|
6113
|
-
});
|
|
6114
|
-
var DTOGitProject =
|
|
6115
|
-
id:
|
|
6116
|
-
name:
|
|
6117
|
-
url:
|
|
6118
|
-
slug:
|
|
6119
|
-
});
|
|
6120
|
-
var DTOGitRepository =
|
|
6121
|
-
id:
|
|
6122
|
-
name:
|
|
6123
|
-
url:
|
|
6124
|
-
slug:
|
|
6125
|
-
defaultBranch:
|
|
6126
|
-
});
|
|
6127
|
-
var DTOGitBranch =
|
|
6128
|
-
name:
|
|
6129
|
-
lastCommitId:
|
|
6117
|
+
import { z as z219 } from "zod";
|
|
6118
|
+
var DTOGitOrganization = z219.object({
|
|
6119
|
+
id: z219.string(),
|
|
6120
|
+
name: z219.string(),
|
|
6121
|
+
url: z219.string(),
|
|
6122
|
+
slug: z219.string()
|
|
6123
|
+
});
|
|
6124
|
+
var DTOGitProject = z219.object({
|
|
6125
|
+
id: z219.string(),
|
|
6126
|
+
name: z219.string(),
|
|
6127
|
+
url: z219.string(),
|
|
6128
|
+
slug: z219.string()
|
|
6129
|
+
});
|
|
6130
|
+
var DTOGitRepository = z219.object({
|
|
6131
|
+
id: z219.string(),
|
|
6132
|
+
name: z219.string(),
|
|
6133
|
+
url: z219.string(),
|
|
6134
|
+
slug: z219.string(),
|
|
6135
|
+
defaultBranch: z219.string().optional()
|
|
6136
|
+
});
|
|
6137
|
+
var DTOGitBranch = z219.object({
|
|
6138
|
+
name: z219.string(),
|
|
6139
|
+
lastCommitId: z219.string()
|
|
6130
6140
|
});
|
|
6131
6141
|
|
|
6132
6142
|
// src/api/dto/workspaces/integrations.ts
|
|
6133
|
-
import { z as
|
|
6143
|
+
import { z as z220 } from "zod";
|
|
6134
6144
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6135
6145
|
accessToken: true,
|
|
6136
6146
|
refreshToken: true
|
|
6137
6147
|
});
|
|
6138
|
-
var DTOIntegration =
|
|
6139
|
-
id:
|
|
6140
|
-
workspaceId:
|
|
6148
|
+
var DTOIntegration = z220.object({
|
|
6149
|
+
id: z220.string(),
|
|
6150
|
+
workspaceId: z220.string(),
|
|
6141
6151
|
type: ExtendedIntegrationType,
|
|
6142
|
-
createdAt:
|
|
6143
|
-
integrationCredentials:
|
|
6144
|
-
integrationDesignSystems:
|
|
6152
|
+
createdAt: z220.coerce.date(),
|
|
6153
|
+
integrationCredentials: z220.array(DTOIntegrationCredentials).optional(),
|
|
6154
|
+
integrationDesignSystems: z220.array(IntegrationDesignSystem).optional()
|
|
6145
6155
|
});
|
|
6146
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6147
|
-
url:
|
|
6156
|
+
var DTOIntegrationOAuthGetResponse = z220.object({
|
|
6157
|
+
url: z220.string()
|
|
6148
6158
|
});
|
|
6149
|
-
var DTOIntegrationPostResponse =
|
|
6159
|
+
var DTOIntegrationPostResponse = z220.object({
|
|
6150
6160
|
integration: DTOIntegration
|
|
6151
6161
|
});
|
|
6152
|
-
var DTOIntegrationsGetListResponse =
|
|
6162
|
+
var DTOIntegrationsGetListResponse = z220.object({
|
|
6153
6163
|
integrations: DTOIntegration.array()
|
|
6154
6164
|
});
|
|
6155
6165
|
|
|
6156
6166
|
// src/api/dto/workspaces/membership.ts
|
|
6157
|
-
import { z as
|
|
6167
|
+
import { z as z223 } from "zod";
|
|
6158
6168
|
|
|
6159
6169
|
// src/api/dto/workspaces/workspace.ts
|
|
6160
|
-
import { z as
|
|
6170
|
+
import { z as z222 } from "zod";
|
|
6161
6171
|
|
|
6162
6172
|
// src/api/dto/workspaces/npm-registry.ts
|
|
6163
|
-
import { z as
|
|
6173
|
+
import { z as z221 } from "zod";
|
|
6164
6174
|
var DTONpmRegistryConfigConstants = {
|
|
6165
6175
|
passwordPlaceholder: "redacted"
|
|
6166
6176
|
};
|
|
6167
|
-
var DTONpmRegistryConfig =
|
|
6177
|
+
var DTONpmRegistryConfig = z221.object({
|
|
6168
6178
|
// Registry basic configuration
|
|
6169
6179
|
registryType: NpmRegistryType,
|
|
6170
|
-
registryUrl:
|
|
6171
|
-
customRegistryUrl:
|
|
6180
|
+
registryUrl: z221.string(),
|
|
6181
|
+
customRegistryUrl: z221.string().optional(),
|
|
6172
6182
|
// URL of Supernova NPM packages proxy
|
|
6173
|
-
proxyUrl:
|
|
6183
|
+
proxyUrl: z221.string(),
|
|
6174
6184
|
// Auth configuration
|
|
6175
6185
|
authType: NpmRegistryAuthType,
|
|
6176
|
-
accessToken:
|
|
6177
|
-
username:
|
|
6178
|
-
password:
|
|
6186
|
+
accessToken: z221.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6187
|
+
username: z221.string().optional(),
|
|
6188
|
+
password: z221.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6179
6189
|
// NPM package scopes for whih the proxy should be enabled
|
|
6180
|
-
enabledScopes:
|
|
6190
|
+
enabledScopes: z221.array(z221.string()),
|
|
6181
6191
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6182
6192
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6183
|
-
bypassProxy:
|
|
6193
|
+
bypassProxy: z221.boolean()
|
|
6184
6194
|
});
|
|
6185
6195
|
|
|
6186
6196
|
// src/api/dto/workspaces/workspace.ts
|
|
6187
|
-
var DTOWorkspace =
|
|
6188
|
-
id:
|
|
6197
|
+
var DTOWorkspace = z222.object({
|
|
6198
|
+
id: z222.string(),
|
|
6189
6199
|
profile: WorkspaceProfile,
|
|
6190
6200
|
subscription: Subscription,
|
|
6191
6201
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6192
6202
|
});
|
|
6193
6203
|
|
|
6194
6204
|
// src/api/dto/workspaces/membership.ts
|
|
6195
|
-
var DTOWorkspaceRole =
|
|
6196
|
-
var DTOUserWorkspaceMembership =
|
|
6205
|
+
var DTOWorkspaceRole = z223.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
6206
|
+
var DTOUserWorkspaceMembership = z223.object({
|
|
6197
6207
|
// Workspace the user is a member of
|
|
6198
6208
|
workspace: DTOWorkspace,
|
|
6199
6209
|
// Assigned role the user has in the workspace
|
|
@@ -6203,8 +6213,8 @@ var DTOUserWorkspaceMembership = z222.object({
|
|
|
6203
6213
|
// when a workspace's subscription is downgraded to free tier
|
|
6204
6214
|
effectiveRole: DTOWorkspaceRole
|
|
6205
6215
|
});
|
|
6206
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6207
|
-
membership:
|
|
6216
|
+
var DTOUserWorkspaceMembershipsResponse = z223.object({
|
|
6217
|
+
membership: z223.array(DTOUserWorkspaceMembership)
|
|
6208
6218
|
});
|
|
6209
6219
|
|
|
6210
6220
|
// src/utils/hash.ts
|
|
@@ -6266,7 +6276,7 @@ function generateHash(input, debug = false) {
|
|
|
6266
6276
|
}
|
|
6267
6277
|
|
|
6268
6278
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6269
|
-
import { z as
|
|
6279
|
+
import { z as z224 } from "zod";
|
|
6270
6280
|
|
|
6271
6281
|
// src/yjs/version-room/base.ts
|
|
6272
6282
|
var VersionRoomBaseYDoc = class {
|
|
@@ -6537,11 +6547,14 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6537
6547
|
const groupDraftStates = this.buildGroupDraftCreatedAndUpdatedStates(groups, groupSnapshots);
|
|
6538
6548
|
const groupDraftDeletedStates = this.buildGroupDraftDeletedStates(groups, groupSnapshots);
|
|
6539
6549
|
const groupPublishedMetadata = this.buildGroupPublishedMetadata(groups, groupSnapshots);
|
|
6550
|
+
const groupApprovalStates = this.buildGroupApprovalStates(groups, groupSnapshots);
|
|
6540
6551
|
groupDTOs.forEach((g) => {
|
|
6541
6552
|
const draftState = groupDraftDeletedStates.get(g.id) ?? groupDraftStates.get(g.id);
|
|
6542
6553
|
draftState && (g.draftState = draftState);
|
|
6543
6554
|
const publishMetadata = groupPublishedMetadata.get(g.id);
|
|
6544
6555
|
publishMetadata && (g.publishMetadata = publishMetadata);
|
|
6556
|
+
const approvalState = groupApprovalStates.get(g.id);
|
|
6557
|
+
approvalState && (g.approvalState = approvalState);
|
|
6545
6558
|
});
|
|
6546
6559
|
return {
|
|
6547
6560
|
pages: pageDTOs,
|
|
@@ -6728,6 +6741,20 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6728
6741
|
}
|
|
6729
6742
|
return void 0;
|
|
6730
6743
|
}
|
|
6744
|
+
buildGroupApprovalStates(groups, groupSnapshots) {
|
|
6745
|
+
const result = /* @__PURE__ */ new Map();
|
|
6746
|
+
const allGroups = [...groups, ...groupSnapshots];
|
|
6747
|
+
for (const g of allGroups) {
|
|
6748
|
+
const approvalState = {
|
|
6749
|
+
approvalState: "Approved",
|
|
6750
|
+
designSystemVersionId: g.designSystemVersionId,
|
|
6751
|
+
persistentId: g.persistentId,
|
|
6752
|
+
groupId: g.id
|
|
6753
|
+
};
|
|
6754
|
+
result.set(g.persistentId, approvalState);
|
|
6755
|
+
}
|
|
6756
|
+
return result;
|
|
6757
|
+
}
|
|
6731
6758
|
//
|
|
6732
6759
|
// Update page content hash
|
|
6733
6760
|
//
|
|
@@ -6778,24 +6805,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6778
6805
|
};
|
|
6779
6806
|
|
|
6780
6807
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6781
|
-
var DocumentationHierarchySettings =
|
|
6782
|
-
routingVersion:
|
|
6783
|
-
isDraftFeatureAdopted:
|
|
6784
|
-
isApprovalFeatureEnabled:
|
|
6785
|
-
approvalRequiredForPublishing:
|
|
6808
|
+
var DocumentationHierarchySettings = z224.object({
|
|
6809
|
+
routingVersion: z224.string(),
|
|
6810
|
+
isDraftFeatureAdopted: z224.boolean(),
|
|
6811
|
+
isApprovalFeatureEnabled: z224.boolean(),
|
|
6812
|
+
approvalRequiredForPublishing: z224.boolean()
|
|
6786
6813
|
});
|
|
6787
6814
|
function yjsToDocumentationHierarchy(doc) {
|
|
6788
6815
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
6789
6816
|
}
|
|
6790
6817
|
|
|
6791
6818
|
// src/yjs/design-system-content/item-configuration.ts
|
|
6792
|
-
import { z as
|
|
6793
|
-
var DTODocumentationPageRoomHeaderData =
|
|
6794
|
-
title:
|
|
6819
|
+
import { z as z225 } from "zod";
|
|
6820
|
+
var DTODocumentationPageRoomHeaderData = z225.object({
|
|
6821
|
+
title: z225.string(),
|
|
6795
6822
|
configuration: DTODocumentationItemConfigurationV2
|
|
6796
6823
|
});
|
|
6797
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
6798
|
-
title:
|
|
6824
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z225.object({
|
|
6825
|
+
title: z225.string().optional(),
|
|
6799
6826
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
6800
6827
|
});
|
|
6801
6828
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -6846,7 +6873,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
6846
6873
|
header: rawHeader
|
|
6847
6874
|
};
|
|
6848
6875
|
return {
|
|
6849
|
-
title:
|
|
6876
|
+
title: z225.string().parse(title),
|
|
6850
6877
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
6851
6878
|
};
|
|
6852
6879
|
}
|
|
@@ -6856,9 +6883,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
6856
6883
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
6857
6884
|
|
|
6858
6885
|
// src/yjs/docs-editor/model/page.ts
|
|
6859
|
-
import { z as
|
|
6860
|
-
var DocumentationPageEditorModel =
|
|
6861
|
-
blocks:
|
|
6886
|
+
import { z as z226 } from "zod";
|
|
6887
|
+
var DocumentationPageEditorModel = z226.object({
|
|
6888
|
+
blocks: z226.array(DocumentationPageContentItem)
|
|
6862
6889
|
});
|
|
6863
6890
|
|
|
6864
6891
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -10536,7 +10563,7 @@ var blocks = [
|
|
|
10536
10563
|
|
|
10537
10564
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
10538
10565
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
10539
|
-
import { z as
|
|
10566
|
+
import { z as z227 } from "zod";
|
|
10540
10567
|
function yDocToPage(yDoc, definitions) {
|
|
10541
10568
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
10542
10569
|
}
|
|
@@ -10579,7 +10606,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
10579
10606
|
return null;
|
|
10580
10607
|
return {
|
|
10581
10608
|
id,
|
|
10582
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
10609
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z227.string()) ?? "",
|
|
10583
10610
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
10584
10611
|
};
|
|
10585
10612
|
}
|
|
@@ -10614,7 +10641,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
10614
10641
|
});
|
|
10615
10642
|
}
|
|
10616
10643
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
10617
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
10644
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z227.string());
|
|
10618
10645
|
if (!definitionId) {
|
|
10619
10646
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
10620
10647
|
return [];
|
|
@@ -10656,7 +10683,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
10656
10683
|
if (!id)
|
|
10657
10684
|
return null;
|
|
10658
10685
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10659
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
10686
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z227.string().optional()));
|
|
10660
10687
|
return {
|
|
10661
10688
|
id,
|
|
10662
10689
|
type: "Block",
|
|
@@ -10784,10 +10811,10 @@ function parseRichTextAttribute(mark) {
|
|
|
10784
10811
|
return null;
|
|
10785
10812
|
}
|
|
10786
10813
|
function parseProsemirrorLink(mark) {
|
|
10787
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
10814
|
+
const href = getProsemirrorAttribute(mark, "href", z227.string().optional());
|
|
10788
10815
|
if (!href)
|
|
10789
10816
|
return null;
|
|
10790
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
10817
|
+
const target = getProsemirrorAttribute(mark, "target", z227.string().optional());
|
|
10791
10818
|
const openInNewTab = target === "_blank";
|
|
10792
10819
|
if (href.startsWith("@")) {
|
|
10793
10820
|
return {
|
|
@@ -10806,10 +10833,10 @@ function parseProsemirrorLink(mark) {
|
|
|
10806
10833
|
}
|
|
10807
10834
|
}
|
|
10808
10835
|
function parseProsemirrorCommentHighlight(mark) {
|
|
10809
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
10836
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z227.string().optional());
|
|
10810
10837
|
if (!highlightId)
|
|
10811
10838
|
return null;
|
|
10812
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
10839
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z227.boolean().optional()) ?? false;
|
|
10813
10840
|
return {
|
|
10814
10841
|
type: "Comment",
|
|
10815
10842
|
commentHighlightId: highlightId,
|
|
@@ -10821,7 +10848,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
10821
10848
|
if (!id)
|
|
10822
10849
|
return null;
|
|
10823
10850
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10824
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
10851
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z227.boolean().optional()) !== false;
|
|
10825
10852
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
10826
10853
|
if (!tableChild) {
|
|
10827
10854
|
return emptyTable(id, variantId, 0);
|
|
@@ -10868,9 +10895,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
10868
10895
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
10869
10896
|
if (!id)
|
|
10870
10897
|
return null;
|
|
10871
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
10898
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z227.string().optional());
|
|
10872
10899
|
let columnWidth;
|
|
10873
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
10900
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z227.array(z227.number()).optional());
|
|
10874
10901
|
if (columnWidthArray) {
|
|
10875
10902
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
10876
10903
|
}
|
|
@@ -10908,7 +10935,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
10908
10935
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
10909
10936
|
};
|
|
10910
10937
|
case "image":
|
|
10911
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
10938
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z227.string());
|
|
10912
10939
|
if (!items)
|
|
10913
10940
|
return null;
|
|
10914
10941
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11025,7 +11052,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11025
11052
|
);
|
|
11026
11053
|
}
|
|
11027
11054
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11028
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11055
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z227.string());
|
|
11029
11056
|
if (!itemsString)
|
|
11030
11057
|
return null;
|
|
11031
11058
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11037,18 +11064,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11037
11064
|
}
|
|
11038
11065
|
function parseAppearance(prosemirrorNode) {
|
|
11039
11066
|
let appearance = {};
|
|
11040
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11067
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z227.string().optional());
|
|
11041
11068
|
if (rawAppearanceString) {
|
|
11042
11069
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11043
11070
|
if (parsedAppearance.success) {
|
|
11044
11071
|
appearance = parsedAppearance.data;
|
|
11045
11072
|
}
|
|
11046
11073
|
}
|
|
11047
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11074
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z227.number().optional());
|
|
11048
11075
|
if (columns) {
|
|
11049
11076
|
appearance.numberOfColumns = columns;
|
|
11050
11077
|
}
|
|
11051
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11078
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z227.string().optional());
|
|
11052
11079
|
if (backgroundColor) {
|
|
11053
11080
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11054
11081
|
if (parsedColor.success) {
|
|
@@ -11141,13 +11168,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11141
11168
|
}
|
|
11142
11169
|
}
|
|
11143
11170
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11144
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11171
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z227.string());
|
|
11145
11172
|
if (!id)
|
|
11146
11173
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11147
11174
|
return id;
|
|
11148
11175
|
}
|
|
11149
11176
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11150
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11177
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z227.string()));
|
|
11151
11178
|
}
|
|
11152
11179
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11153
11180
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -11238,6 +11265,7 @@ export {
|
|
|
11238
11265
|
DTODocumentationDraftStateCreated,
|
|
11239
11266
|
DTODocumentationDraftStateDeleted,
|
|
11240
11267
|
DTODocumentationDraftStateUpdated,
|
|
11268
|
+
DTODocumentationGroupApprovalState,
|
|
11241
11269
|
DTODocumentationGroupCreateActionInputV2,
|
|
11242
11270
|
DTODocumentationGroupCreateActionOutputV2,
|
|
11243
11271
|
DTODocumentationGroupDeleteActionInputV2,
|