@supernova-studio/client 0.55.22 → 0.55.24
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 +40 -1
- package/dist/index.d.ts +40 -1
- package/dist/index.js +61 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +696 -660
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/design-systems/stats.ts +15 -0
- package/src/api/endpoints/design-system/design-system-versions.ts +4 -1
- package/src/api/endpoints/design-system/versions/index.ts +1 -0
- package/src/api/endpoints/design-system/versions/stats.ts +12 -0
- package/src/api/transport/request-executor.ts +9 -3
package/dist/index.mjs
CHANGED
|
@@ -3626,6 +3626,9 @@ var DesignSystemMemberUpdate = z115.object({
|
|
|
3626
3626
|
designSystemRole: DesignSystemRole.nullable()
|
|
3627
3627
|
});
|
|
3628
3628
|
var DesignSystemInviteUpdate = z115.object({
|
|
3629
|
+
/**
|
|
3630
|
+
* Workspace invitation id
|
|
3631
|
+
*/
|
|
3629
3632
|
inviteId: z115.string(),
|
|
3630
3633
|
designSystemRole: DesignSystemRole.nullable()
|
|
3631
3634
|
});
|
|
@@ -5041,7 +5044,7 @@ var DTOPagination = z174.object({
|
|
|
5041
5044
|
});
|
|
5042
5045
|
|
|
5043
5046
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5044
|
-
import { z as
|
|
5047
|
+
import { z as z202 } from "zod";
|
|
5045
5048
|
|
|
5046
5049
|
// src/api/dto/design-systems/brand.ts
|
|
5047
5050
|
import { z as z175 } from "zod";
|
|
@@ -5258,34 +5261,46 @@ import { z as z181 } from "zod";
|
|
|
5258
5261
|
var DTOExporterProperty = z181.any({});
|
|
5259
5262
|
var DTOExporterPropertyListResponse = z181.object({ items: z181.array(DTOExporterProperty) });
|
|
5260
5263
|
|
|
5264
|
+
// src/api/dto/design-systems/stats.ts
|
|
5265
|
+
import { z as z182 } from "zod";
|
|
5266
|
+
var DTODesignSystemVersionStats = z182.object({
|
|
5267
|
+
tokens: z182.number(),
|
|
5268
|
+
designSystemComponents: z182.number(),
|
|
5269
|
+
assets: z182.number(),
|
|
5270
|
+
documentationPages: z182.number()
|
|
5271
|
+
});
|
|
5272
|
+
var DTODesignSystemVersionStatsQuery = z182.object({
|
|
5273
|
+
brandId: z182.string().optional()
|
|
5274
|
+
});
|
|
5275
|
+
|
|
5261
5276
|
// src/api/dto/design-systems/version.ts
|
|
5262
|
-
import { z as
|
|
5277
|
+
import { z as z194 } from "zod";
|
|
5263
5278
|
|
|
5264
5279
|
// src/api/payloads/design-systems/brand.ts
|
|
5265
|
-
import { z as
|
|
5266
|
-
var DTOCreateBrandInput =
|
|
5267
|
-
persistentId:
|
|
5268
|
-
meta:
|
|
5269
|
-
name:
|
|
5270
|
-
description:
|
|
5280
|
+
import { z as z183 } from "zod";
|
|
5281
|
+
var DTOCreateBrandInput = z183.object({
|
|
5282
|
+
persistentId: z183.string().uuid(),
|
|
5283
|
+
meta: z183.object({
|
|
5284
|
+
name: z183.string(),
|
|
5285
|
+
description: z183.string()
|
|
5271
5286
|
})
|
|
5272
5287
|
});
|
|
5273
5288
|
|
|
5274
5289
|
// src/api/payloads/design-systems/theme.ts
|
|
5275
|
-
import { z as
|
|
5276
|
-
var DTOCreateThemeInput =
|
|
5290
|
+
import { z as z184 } from "zod";
|
|
5291
|
+
var DTOCreateThemeInput = z184.object({
|
|
5277
5292
|
meta: ObjectMeta,
|
|
5278
|
-
persistentId:
|
|
5279
|
-
designSystemVersionId:
|
|
5280
|
-
brandId:
|
|
5281
|
-
codeName:
|
|
5282
|
-
version:
|
|
5283
|
-
overrides:
|
|
5293
|
+
persistentId: z184.string(),
|
|
5294
|
+
designSystemVersionId: z184.string(),
|
|
5295
|
+
brandId: z184.string(),
|
|
5296
|
+
codeName: z184.string(),
|
|
5297
|
+
version: z184.string().optional(),
|
|
5298
|
+
overrides: z184.array(z184.any())
|
|
5284
5299
|
// TODO Add actual overrides.
|
|
5285
5300
|
});
|
|
5286
5301
|
|
|
5287
5302
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5288
|
-
import { z as
|
|
5303
|
+
import { z as z185 } from "zod";
|
|
5289
5304
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5290
5305
|
id: true,
|
|
5291
5306
|
workspaceId: true,
|
|
@@ -5297,40 +5312,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5297
5312
|
}).extend({
|
|
5298
5313
|
meta: ObjectMeta.partial().optional()
|
|
5299
5314
|
});
|
|
5300
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5315
|
+
var DTODesignSystemUpdateAccessModeInput = z185.object({
|
|
5301
5316
|
accessMode: DesignSystemAccessMode,
|
|
5302
|
-
retain:
|
|
5303
|
-
userIds:
|
|
5304
|
-
inviteIds:
|
|
5317
|
+
retain: z185.object({
|
|
5318
|
+
userIds: z185.string().array(),
|
|
5319
|
+
inviteIds: z185.string().array()
|
|
5305
5320
|
}).optional()
|
|
5306
5321
|
});
|
|
5307
5322
|
|
|
5308
5323
|
// src/api/payloads/design-systems/version.ts
|
|
5309
|
-
import { z as
|
|
5310
|
-
var ObjectMeta2 =
|
|
5311
|
-
name:
|
|
5312
|
-
description:
|
|
5324
|
+
import { z as z186 } from "zod";
|
|
5325
|
+
var ObjectMeta2 = z186.object({
|
|
5326
|
+
name: z186.string().max(150).optional(),
|
|
5327
|
+
description: z186.string().max(2e3).optional()
|
|
5313
5328
|
});
|
|
5314
5329
|
function validateDesignSystemVersion(version) {
|
|
5315
5330
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5316
5331
|
return urlCompliantRegex.test(version);
|
|
5317
5332
|
}
|
|
5318
|
-
var DTOCreateVersionInput =
|
|
5333
|
+
var DTOCreateVersionInput = z186.object({
|
|
5319
5334
|
meta: ObjectMeta2,
|
|
5320
|
-
version:
|
|
5335
|
+
version: z186.string().refine(validateDesignSystemVersion, {
|
|
5321
5336
|
message: "Invalid semantic versioning format"
|
|
5322
5337
|
}),
|
|
5323
|
-
changeLog:
|
|
5338
|
+
changeLog: z186.string().optional()
|
|
5324
5339
|
});
|
|
5325
|
-
var DTOUpdateVersionInput =
|
|
5340
|
+
var DTOUpdateVersionInput = z186.object({
|
|
5326
5341
|
meta: ObjectMeta2,
|
|
5327
|
-
version:
|
|
5342
|
+
version: z186.string(),
|
|
5328
5343
|
// required for PUT, but not editable
|
|
5329
|
-
changeLog:
|
|
5344
|
+
changeLog: z186.string()
|
|
5330
5345
|
});
|
|
5331
5346
|
|
|
5332
5347
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5333
|
-
import { z as
|
|
5348
|
+
import { z as z187 } from "zod";
|
|
5334
5349
|
|
|
5335
5350
|
// src/api/dto/documentation/block-definition.ts
|
|
5336
5351
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5342,60 +5357,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5342
5357
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5343
5358
|
|
|
5344
5359
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5345
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5346
|
-
definitions:
|
|
5360
|
+
var DTOGetBlockDefinitionsOutput = z187.object({
|
|
5361
|
+
definitions: z187.array(DTOPageBlockDefinition)
|
|
5347
5362
|
});
|
|
5348
5363
|
|
|
5349
5364
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5350
|
-
import { z as
|
|
5351
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5352
|
-
environment:
|
|
5365
|
+
import { z as z188 } from "zod";
|
|
5366
|
+
var DTODocumentationPublishTypeQueryParams = z188.object({
|
|
5367
|
+
environment: z188.enum(["Live", "Preview"])
|
|
5353
5368
|
});
|
|
5354
5369
|
|
|
5355
5370
|
// src/api/payloads/export/pipeline.ts
|
|
5356
|
-
import { z as
|
|
5357
|
-
var DTOPipelineCreateBody =
|
|
5358
|
-
name:
|
|
5359
|
-
exporterId:
|
|
5360
|
-
designSystemId:
|
|
5361
|
-
isEnabled:
|
|
5371
|
+
import { z as z189 } from "zod";
|
|
5372
|
+
var DTOPipelineCreateBody = z189.object({
|
|
5373
|
+
name: z189.string(),
|
|
5374
|
+
exporterId: z189.string(),
|
|
5375
|
+
designSystemId: z189.string(),
|
|
5376
|
+
isEnabled: z189.boolean(),
|
|
5362
5377
|
eventType: PipelineEventType,
|
|
5363
|
-
brandPersistentId:
|
|
5364
|
-
themePersistentId:
|
|
5365
|
-
themePersistentIds:
|
|
5378
|
+
brandPersistentId: z189.string().optional(),
|
|
5379
|
+
themePersistentId: z189.string().optional(),
|
|
5380
|
+
themePersistentIds: z189.string().array().optional(),
|
|
5366
5381
|
destination: PipelineDestinationType.optional(),
|
|
5367
5382
|
gitQuery: GitObjectsQuery,
|
|
5368
|
-
destinations:
|
|
5383
|
+
destinations: z189.object({
|
|
5369
5384
|
s3: ExporterDestinationS3.nullish(),
|
|
5370
5385
|
azure: ExporterDestinationAzure.nullish(),
|
|
5371
5386
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5372
5387
|
github: ExporterDestinationGithub.nullish(),
|
|
5373
5388
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5374
5389
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5375
|
-
webhookUrl:
|
|
5390
|
+
webhookUrl: z189.string().nullish()
|
|
5376
5391
|
})
|
|
5377
5392
|
});
|
|
5378
5393
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5379
|
-
id:
|
|
5394
|
+
id: z189.string()
|
|
5380
5395
|
});
|
|
5381
|
-
var DTOPipelineTriggerBody =
|
|
5382
|
-
designSystemVersionId:
|
|
5396
|
+
var DTOPipelineTriggerBody = z189.object({
|
|
5397
|
+
designSystemVersionId: z189.string()
|
|
5383
5398
|
});
|
|
5384
5399
|
|
|
5385
5400
|
// src/api/payloads/liveblocks/auth.ts
|
|
5386
|
-
import { z as
|
|
5387
|
-
var DTOLiveblocksAuthRequest =
|
|
5388
|
-
room:
|
|
5401
|
+
import { z as z190 } from "zod";
|
|
5402
|
+
var DTOLiveblocksAuthRequest = z190.object({
|
|
5403
|
+
room: z190.string().optional()
|
|
5389
5404
|
});
|
|
5390
5405
|
|
|
5391
5406
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5392
|
-
import { z as
|
|
5393
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5407
|
+
import { z as z191 } from "zod";
|
|
5408
|
+
var DTOUpdateUserNotificationSettingsPayload = z191.object({
|
|
5394
5409
|
notificationSettings: UserNotificationSettings
|
|
5395
5410
|
});
|
|
5396
|
-
var DTOUserNotificationSettingsResponse =
|
|
5397
|
-
userId:
|
|
5398
|
-
workspaceId:
|
|
5411
|
+
var DTOUserNotificationSettingsResponse = z191.object({
|
|
5412
|
+
userId: z191.string(),
|
|
5413
|
+
workspaceId: z191.string(),
|
|
5399
5414
|
notificationSettings: UserNotificationSettings
|
|
5400
5415
|
});
|
|
5401
5416
|
|
|
@@ -5403,7 +5418,7 @@ var DTOUserNotificationSettingsResponse = z190.object({
|
|
|
5403
5418
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5404
5419
|
|
|
5405
5420
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5406
|
-
import { z as
|
|
5421
|
+
import { z as z192 } from "zod";
|
|
5407
5422
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5408
5423
|
function validateSsoPayload(ssoPayload) {
|
|
5409
5424
|
const keys = [];
|
|
@@ -5426,21 +5441,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5426
5441
|
keys
|
|
5427
5442
|
};
|
|
5428
5443
|
}
|
|
5429
|
-
var NpmRegistryInput =
|
|
5430
|
-
enabledScopes:
|
|
5431
|
-
customRegistryUrl:
|
|
5432
|
-
bypassProxy:
|
|
5433
|
-
npmProxyRegistryConfigId:
|
|
5434
|
-
npmProxyVersion:
|
|
5435
|
-
registryType:
|
|
5436
|
-
authType:
|
|
5437
|
-
authHeaderName:
|
|
5438
|
-
authHeaderValue:
|
|
5439
|
-
accessToken:
|
|
5440
|
-
username:
|
|
5441
|
-
password:
|
|
5442
|
-
});
|
|
5443
|
-
var WorkspaceConfigurationPayload =
|
|
5444
|
+
var NpmRegistryInput = z192.object({
|
|
5445
|
+
enabledScopes: z192.array(z192.string()),
|
|
5446
|
+
customRegistryUrl: z192.string().optional(),
|
|
5447
|
+
bypassProxy: z192.boolean().optional(),
|
|
5448
|
+
npmProxyRegistryConfigId: z192.string().optional(),
|
|
5449
|
+
npmProxyVersion: z192.number().optional(),
|
|
5450
|
+
registryType: z192.string(),
|
|
5451
|
+
authType: z192.string(),
|
|
5452
|
+
authHeaderName: z192.string(),
|
|
5453
|
+
authHeaderValue: z192.string(),
|
|
5454
|
+
accessToken: z192.string(),
|
|
5455
|
+
username: z192.string(),
|
|
5456
|
+
password: z192.string()
|
|
5457
|
+
});
|
|
5458
|
+
var WorkspaceConfigurationPayload = z192.object({
|
|
5444
5459
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5445
5460
|
sso: SsoProvider.partial().optional(),
|
|
5446
5461
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5448,211 +5463,211 @@ var WorkspaceConfigurationPayload = z191.object({
|
|
|
5448
5463
|
});
|
|
5449
5464
|
|
|
5450
5465
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5451
|
-
import { z as
|
|
5452
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5466
|
+
import { z as z193 } from "zod";
|
|
5467
|
+
var DTOWorkspaceIntegrationOauthInput = z193.object({
|
|
5453
5468
|
type: IntegrationType
|
|
5454
5469
|
});
|
|
5455
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5456
|
-
userId:
|
|
5470
|
+
var DTOWorkspaceIntegrationPATInput = z193.object({
|
|
5471
|
+
userId: z193.string(),
|
|
5457
5472
|
type: IntegrationType,
|
|
5458
5473
|
token: IntegrationToken
|
|
5459
5474
|
});
|
|
5460
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5461
|
-
organization:
|
|
5475
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z193.object({
|
|
5476
|
+
organization: z193.string().optional(),
|
|
5462
5477
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5463
|
-
project:
|
|
5478
|
+
project: z193.string().optional(),
|
|
5464
5479
|
// Only for Bitbucket and Azure
|
|
5465
|
-
repository:
|
|
5480
|
+
repository: z193.string().optional(),
|
|
5466
5481
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5467
|
-
branch:
|
|
5482
|
+
branch: z193.string().optional(),
|
|
5468
5483
|
// For all providers, useful for PR creations.
|
|
5469
|
-
user:
|
|
5484
|
+
user: z193.string().optional()
|
|
5470
5485
|
// Only for Gitlab User Repositories
|
|
5471
5486
|
});
|
|
5472
5487
|
|
|
5473
5488
|
// src/api/dto/design-systems/version.ts
|
|
5474
|
-
var DTODesignSystemVersion =
|
|
5475
|
-
id:
|
|
5476
|
-
createdAt:
|
|
5489
|
+
var DTODesignSystemVersion = z194.object({
|
|
5490
|
+
id: z194.string(),
|
|
5491
|
+
createdAt: z194.coerce.date(),
|
|
5477
5492
|
meta: ObjectMeta,
|
|
5478
|
-
version:
|
|
5479
|
-
isReadonly:
|
|
5480
|
-
changeLog:
|
|
5481
|
-
designSystemId:
|
|
5493
|
+
version: z194.string(),
|
|
5494
|
+
isReadonly: z194.boolean(),
|
|
5495
|
+
changeLog: z194.string(),
|
|
5496
|
+
designSystemId: z194.string()
|
|
5482
5497
|
});
|
|
5483
|
-
var DTODesignSystemVersionsListResponse =
|
|
5484
|
-
designSystemVersions:
|
|
5498
|
+
var DTODesignSystemVersionsListResponse = z194.object({
|
|
5499
|
+
designSystemVersions: z194.array(DTODesignSystemVersion)
|
|
5485
5500
|
});
|
|
5486
|
-
var DTODesignSystemVersionGetResponse =
|
|
5501
|
+
var DTODesignSystemVersionGetResponse = z194.object({
|
|
5487
5502
|
designSystemVersion: DTODesignSystemVersion
|
|
5488
5503
|
});
|
|
5489
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5504
|
+
var DTODesignSystemVersionCreationResponse = z194.object({
|
|
5490
5505
|
meta: ObjectMeta,
|
|
5491
|
-
version:
|
|
5492
|
-
changeLog:
|
|
5493
|
-
isReadOnly:
|
|
5494
|
-
designSystemId:
|
|
5495
|
-
jobId:
|
|
5496
|
-
});
|
|
5497
|
-
var VersionSQSPayload =
|
|
5498
|
-
jobId:
|
|
5499
|
-
designSystemId:
|
|
5506
|
+
version: z194.string(),
|
|
5507
|
+
changeLog: z194.string(),
|
|
5508
|
+
isReadOnly: z194.boolean(),
|
|
5509
|
+
designSystemId: z194.string(),
|
|
5510
|
+
jobId: z194.string()
|
|
5511
|
+
});
|
|
5512
|
+
var VersionSQSPayload = z194.object({
|
|
5513
|
+
jobId: z194.string(),
|
|
5514
|
+
designSystemId: z194.string(),
|
|
5500
5515
|
input: DTOCreateVersionInput
|
|
5501
5516
|
});
|
|
5502
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5503
|
-
jobs:
|
|
5517
|
+
var DTODesignSystemVersionJobsResponse = z194.object({
|
|
5518
|
+
jobs: z194.array(VersionCreationJob)
|
|
5504
5519
|
});
|
|
5505
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5520
|
+
var DTODesignSystemVersionJobStatusResponse = z194.object({
|
|
5506
5521
|
job: VersionCreationJob
|
|
5507
5522
|
});
|
|
5508
5523
|
|
|
5509
5524
|
// src/api/dto/design-systems/view.ts
|
|
5510
|
-
import { z as
|
|
5511
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5512
|
-
id:
|
|
5513
|
-
persistentId:
|
|
5514
|
-
width:
|
|
5525
|
+
import { z as z195 } from "zod";
|
|
5526
|
+
var DTOElementViewColumnSharedAttributes = z195.object({
|
|
5527
|
+
id: z195.string(),
|
|
5528
|
+
persistentId: z195.string(),
|
|
5529
|
+
width: z195.number()
|
|
5515
5530
|
});
|
|
5516
5531
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5517
|
-
type:
|
|
5532
|
+
type: z195.literal("BaseProperty"),
|
|
5518
5533
|
basePropertyType: ElementViewBaseColumnType
|
|
5519
5534
|
});
|
|
5520
5535
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5521
|
-
type:
|
|
5522
|
-
propertyDefinitionId:
|
|
5536
|
+
type: z195.literal("PropertyDefinition"),
|
|
5537
|
+
propertyDefinitionId: z195.string()
|
|
5523
5538
|
});
|
|
5524
5539
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5525
|
-
type:
|
|
5526
|
-
themeId:
|
|
5540
|
+
type: z195.literal("Theme"),
|
|
5541
|
+
themeId: z195.string()
|
|
5527
5542
|
});
|
|
5528
|
-
var DTOElementViewColumn =
|
|
5543
|
+
var DTOElementViewColumn = z195.discriminatedUnion("type", [
|
|
5529
5544
|
DTOElementViewBasePropertyColumn,
|
|
5530
5545
|
DTOElementViewPropertyDefinitionColumn,
|
|
5531
5546
|
DTOElementViewThemeColumn
|
|
5532
5547
|
]);
|
|
5533
|
-
var DTOElementView =
|
|
5548
|
+
var DTOElementView = z195.object({
|
|
5534
5549
|
meta: ObjectMeta,
|
|
5535
|
-
persistentId:
|
|
5550
|
+
persistentId: z195.string(),
|
|
5536
5551
|
targetElementType: ElementPropertyTargetType,
|
|
5537
|
-
id:
|
|
5538
|
-
isDefault:
|
|
5539
|
-
columns:
|
|
5552
|
+
id: z195.string(),
|
|
5553
|
+
isDefault: z195.boolean(),
|
|
5554
|
+
columns: z195.array(DTOElementViewColumn)
|
|
5540
5555
|
});
|
|
5541
|
-
var DTOElementViewsListResponse =
|
|
5542
|
-
elementDataViews:
|
|
5556
|
+
var DTOElementViewsListResponse = z195.object({
|
|
5557
|
+
elementDataViews: z195.array(DTOElementView)
|
|
5543
5558
|
});
|
|
5544
5559
|
|
|
5545
5560
|
// src/api/dto/workspaces/git.ts
|
|
5546
|
-
import { z as
|
|
5547
|
-
var DTOGitOrganization =
|
|
5548
|
-
id:
|
|
5549
|
-
name:
|
|
5550
|
-
url:
|
|
5551
|
-
slug:
|
|
5561
|
+
import { z as z196 } from "zod";
|
|
5562
|
+
var DTOGitOrganization = z196.object({
|
|
5563
|
+
id: z196.string(),
|
|
5564
|
+
name: z196.string(),
|
|
5565
|
+
url: z196.string(),
|
|
5566
|
+
slug: z196.string()
|
|
5552
5567
|
});
|
|
5553
|
-
var DTOGitProject =
|
|
5554
|
-
id:
|
|
5555
|
-
name:
|
|
5556
|
-
url:
|
|
5557
|
-
slug:
|
|
5568
|
+
var DTOGitProject = z196.object({
|
|
5569
|
+
id: z196.string(),
|
|
5570
|
+
name: z196.string(),
|
|
5571
|
+
url: z196.string(),
|
|
5572
|
+
slug: z196.string()
|
|
5558
5573
|
});
|
|
5559
|
-
var DTOGitRepository =
|
|
5560
|
-
id:
|
|
5561
|
-
name:
|
|
5562
|
-
url:
|
|
5563
|
-
slug:
|
|
5564
|
-
defaultBranch:
|
|
5574
|
+
var DTOGitRepository = z196.object({
|
|
5575
|
+
id: z196.string(),
|
|
5576
|
+
name: z196.string(),
|
|
5577
|
+
url: z196.string(),
|
|
5578
|
+
slug: z196.string(),
|
|
5579
|
+
defaultBranch: z196.string().optional()
|
|
5565
5580
|
});
|
|
5566
|
-
var DTOGitBranch =
|
|
5567
|
-
name:
|
|
5568
|
-
lastCommitId:
|
|
5581
|
+
var DTOGitBranch = z196.object({
|
|
5582
|
+
name: z196.string(),
|
|
5583
|
+
lastCommitId: z196.string()
|
|
5569
5584
|
});
|
|
5570
5585
|
|
|
5571
5586
|
// src/api/dto/workspaces/integrations.ts
|
|
5572
|
-
import { z as
|
|
5587
|
+
import { z as z197 } from "zod";
|
|
5573
5588
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5574
5589
|
accessToken: true,
|
|
5575
5590
|
refreshToken: true
|
|
5576
5591
|
});
|
|
5577
|
-
var DTOIntegration =
|
|
5578
|
-
id:
|
|
5579
|
-
workspaceId:
|
|
5592
|
+
var DTOIntegration = z197.object({
|
|
5593
|
+
id: z197.string(),
|
|
5594
|
+
workspaceId: z197.string(),
|
|
5580
5595
|
type: ExtendedIntegrationType,
|
|
5581
|
-
createdAt:
|
|
5582
|
-
integrationCredentials:
|
|
5583
|
-
integrationDesignSystems:
|
|
5596
|
+
createdAt: z197.coerce.date(),
|
|
5597
|
+
integrationCredentials: z197.array(DTOIntegrationCredentials).optional(),
|
|
5598
|
+
integrationDesignSystems: z197.array(IntegrationDesignSystem).optional()
|
|
5584
5599
|
});
|
|
5585
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5586
|
-
url:
|
|
5600
|
+
var DTOIntegrationOAuthGetResponse = z197.object({
|
|
5601
|
+
url: z197.string()
|
|
5587
5602
|
});
|
|
5588
|
-
var DTOIntegrationPostResponse =
|
|
5603
|
+
var DTOIntegrationPostResponse = z197.object({
|
|
5589
5604
|
integration: DTOIntegration
|
|
5590
5605
|
});
|
|
5591
|
-
var DTOIntegrationsGetListResponse =
|
|
5606
|
+
var DTOIntegrationsGetListResponse = z197.object({
|
|
5592
5607
|
integrations: DTOIntegration.array()
|
|
5593
5608
|
});
|
|
5594
5609
|
|
|
5595
5610
|
// src/api/dto/workspaces/invitations.ts
|
|
5596
|
-
import { z as
|
|
5597
|
-
var DTOWorkspaceInvitationInput =
|
|
5598
|
-
email:
|
|
5611
|
+
import { z as z198 } from "zod";
|
|
5612
|
+
var DTOWorkspaceInvitationInput = z198.object({
|
|
5613
|
+
email: z198.string().email(),
|
|
5599
5614
|
role: WorkspaceRoleSchema
|
|
5600
5615
|
});
|
|
5601
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5616
|
+
var DTOWorkspaceInvitationsListInput = z198.object({
|
|
5602
5617
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5603
|
-
designSystemId:
|
|
5618
|
+
designSystemId: z198.string().optional()
|
|
5604
5619
|
});
|
|
5605
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5620
|
+
var DTOWorkspaceInvitationsResponse = z198.object({
|
|
5606
5621
|
invitations: WorkspaceInvitation.array()
|
|
5607
5622
|
});
|
|
5608
5623
|
|
|
5609
5624
|
// src/api/dto/workspaces/membership.ts
|
|
5610
|
-
import { z as
|
|
5625
|
+
import { z as z201 } from "zod";
|
|
5611
5626
|
|
|
5612
5627
|
// src/api/dto/workspaces/workspace.ts
|
|
5613
|
-
import { z as
|
|
5628
|
+
import { z as z200 } from "zod";
|
|
5614
5629
|
|
|
5615
5630
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5616
|
-
import { z as
|
|
5631
|
+
import { z as z199 } from "zod";
|
|
5617
5632
|
var DTONpmRegistryConfigConstants = {
|
|
5618
5633
|
passwordPlaceholder: "redacted"
|
|
5619
5634
|
};
|
|
5620
|
-
var DTONpmRegistryConfig =
|
|
5635
|
+
var DTONpmRegistryConfig = z199.object({
|
|
5621
5636
|
// Registry basic configuration
|
|
5622
5637
|
registryType: NpmRegistryType,
|
|
5623
|
-
registryUrl:
|
|
5624
|
-
customRegistryUrl:
|
|
5638
|
+
registryUrl: z199.string(),
|
|
5639
|
+
customRegistryUrl: z199.string().optional(),
|
|
5625
5640
|
// URL of Supernova NPM packages proxy
|
|
5626
|
-
proxyUrl:
|
|
5641
|
+
proxyUrl: z199.string(),
|
|
5627
5642
|
// Auth configuration
|
|
5628
5643
|
authType: NpmRegistryAuthType,
|
|
5629
|
-
accessToken:
|
|
5630
|
-
username:
|
|
5631
|
-
password:
|
|
5644
|
+
accessToken: z199.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5645
|
+
username: z199.string().optional(),
|
|
5646
|
+
password: z199.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5632
5647
|
// NPM package scopes for whih the proxy should be enabled
|
|
5633
|
-
enabledScopes:
|
|
5648
|
+
enabledScopes: z199.array(z199.string()),
|
|
5634
5649
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5635
5650
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5636
|
-
bypassProxy:
|
|
5651
|
+
bypassProxy: z199.boolean()
|
|
5637
5652
|
});
|
|
5638
5653
|
|
|
5639
5654
|
// src/api/dto/workspaces/workspace.ts
|
|
5640
|
-
var DTOWorkspace =
|
|
5641
|
-
id:
|
|
5655
|
+
var DTOWorkspace = z200.object({
|
|
5656
|
+
id: z200.string(),
|
|
5642
5657
|
profile: WorkspaceProfile,
|
|
5643
5658
|
subscription: Subscription,
|
|
5644
5659
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5645
5660
|
});
|
|
5646
|
-
var DTOWorkspaceCreateInput =
|
|
5647
|
-
name:
|
|
5661
|
+
var DTOWorkspaceCreateInput = z200.object({
|
|
5662
|
+
name: z200.string()
|
|
5648
5663
|
});
|
|
5649
|
-
var DTOWorkspaceResponse =
|
|
5664
|
+
var DTOWorkspaceResponse = z200.object({
|
|
5650
5665
|
workspace: DTOWorkspace
|
|
5651
5666
|
});
|
|
5652
5667
|
|
|
5653
5668
|
// src/api/dto/workspaces/membership.ts
|
|
5654
|
-
var DTOWorkspaceRole =
|
|
5655
|
-
var DTOUserWorkspaceMembership =
|
|
5669
|
+
var DTOWorkspaceRole = z201.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5670
|
+
var DTOUserWorkspaceMembership = z201.object({
|
|
5656
5671
|
// Workspace the user is a member of
|
|
5657
5672
|
workspace: DTOWorkspace,
|
|
5658
5673
|
// Assigned role the user has in the workspace
|
|
@@ -5662,18 +5677,18 @@ var DTOUserWorkspaceMembership = z200.object({
|
|
|
5662
5677
|
// when a workspace's subscription is downgraded to free tier
|
|
5663
5678
|
effectiveRole: DTOWorkspaceRole
|
|
5664
5679
|
});
|
|
5665
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5666
|
-
membership:
|
|
5680
|
+
var DTOUserWorkspaceMembershipsResponse = z201.object({
|
|
5681
|
+
membership: z201.array(DTOUserWorkspaceMembership)
|
|
5667
5682
|
});
|
|
5668
5683
|
|
|
5669
5684
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5670
|
-
var DTOAppBootstrapDataQuery =
|
|
5671
|
-
preferredWorkspaceId:
|
|
5672
|
-
preferredDesignSystemId:
|
|
5673
|
-
preferredVersionId:
|
|
5674
|
-
preferredBrandId:
|
|
5685
|
+
var DTOAppBootstrapDataQuery = z202.object({
|
|
5686
|
+
preferredWorkspaceId: z202.string().optional(),
|
|
5687
|
+
preferredDesignSystemId: z202.string().optional(),
|
|
5688
|
+
preferredVersionId: z202.string().optional(),
|
|
5689
|
+
preferredBrandId: z202.string().optional()
|
|
5675
5690
|
});
|
|
5676
|
-
var DTOAppBootstrapDataResponse =
|
|
5691
|
+
var DTOAppBootstrapDataResponse = z202.object({
|
|
5677
5692
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5678
5693
|
designSystem: DTODesignSystem.optional(),
|
|
5679
5694
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5681,37 +5696,37 @@ var DTOAppBootstrapDataResponse = z201.object({
|
|
|
5681
5696
|
});
|
|
5682
5697
|
|
|
5683
5698
|
// src/api/dto/collections/collection.ts
|
|
5684
|
-
import { z as
|
|
5685
|
-
var DTOTokenCollection =
|
|
5686
|
-
id:
|
|
5687
|
-
persistentId:
|
|
5688
|
-
designSystemVersionId:
|
|
5699
|
+
import { z as z203 } from "zod";
|
|
5700
|
+
var DTOTokenCollection = z203.object({
|
|
5701
|
+
id: z203.string(),
|
|
5702
|
+
persistentId: z203.string(),
|
|
5703
|
+
designSystemVersionId: z203.string(),
|
|
5689
5704
|
meta: ObjectMeta,
|
|
5690
|
-
createdAt:
|
|
5691
|
-
updatedAt:
|
|
5692
|
-
origin:
|
|
5693
|
-
id:
|
|
5694
|
-
sourceId:
|
|
5705
|
+
createdAt: z203.coerce.date(),
|
|
5706
|
+
updatedAt: z203.coerce.date(),
|
|
5707
|
+
origin: z203.object({
|
|
5708
|
+
id: z203.string(),
|
|
5709
|
+
sourceId: z203.string()
|
|
5695
5710
|
})
|
|
5696
5711
|
});
|
|
5697
|
-
var DTOTokenCollectionsListReponse =
|
|
5712
|
+
var DTOTokenCollectionsListReponse = z203.object({
|
|
5698
5713
|
collections: DTOTokenCollection.array()
|
|
5699
5714
|
});
|
|
5700
5715
|
|
|
5701
5716
|
// src/api/dto/documentation/anchor.ts
|
|
5702
|
-
import { z as
|
|
5717
|
+
import { z as z204 } from "zod";
|
|
5703
5718
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5704
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5705
|
-
anchors:
|
|
5719
|
+
var DTOGetDocumentationPageAnchorsResponse = z204.object({
|
|
5720
|
+
anchors: z204.array(DTODocumentationPageAnchor)
|
|
5706
5721
|
});
|
|
5707
5722
|
|
|
5708
5723
|
// src/api/dto/documentation/approvals.ts
|
|
5709
|
-
import { z as
|
|
5724
|
+
import { z as z205 } from "zod";
|
|
5710
5725
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5711
|
-
var DTODocumentationGroupApprovalState =
|
|
5712
|
-
persistentId:
|
|
5713
|
-
groupId:
|
|
5714
|
-
designSystemVersionId:
|
|
5726
|
+
var DTODocumentationGroupApprovalState = z205.object({
|
|
5727
|
+
persistentId: z205.string(),
|
|
5728
|
+
groupId: z205.string(),
|
|
5729
|
+
designSystemVersionId: z205.string(),
|
|
5715
5730
|
approvalState: DocumentationPageApprovalState
|
|
5716
5731
|
});
|
|
5717
5732
|
|
|
@@ -5719,68 +5734,68 @@ var DTODocumentationGroupApprovalState = z204.object({
|
|
|
5719
5734
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5720
5735
|
|
|
5721
5736
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5722
|
-
import { z as
|
|
5737
|
+
import { z as z210 } from "zod";
|
|
5723
5738
|
|
|
5724
5739
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5725
|
-
import { z as
|
|
5740
|
+
import { z as z209 } from "zod";
|
|
5726
5741
|
|
|
5727
5742
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5728
|
-
import { z as
|
|
5743
|
+
import { z as z207 } from "zod";
|
|
5729
5744
|
|
|
5730
5745
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5731
|
-
import { z as
|
|
5746
|
+
import { z as z206 } from "zod";
|
|
5732
5747
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5733
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5734
|
-
showSidebar:
|
|
5735
|
-
isPrivate:
|
|
5736
|
-
isHidden:
|
|
5748
|
+
var DTODocumentationItemConfigurationV2 = z206.object({
|
|
5749
|
+
showSidebar: z206.boolean(),
|
|
5750
|
+
isPrivate: z206.boolean(),
|
|
5751
|
+
isHidden: z206.boolean(),
|
|
5737
5752
|
header: DTODocumentationItemHeaderV2
|
|
5738
5753
|
});
|
|
5739
5754
|
|
|
5740
5755
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5741
|
-
var DTODocumentationDraftChangeType =
|
|
5742
|
-
var DTODocumentationDraftStateCreated =
|
|
5743
|
-
changeType:
|
|
5744
|
-
});
|
|
5745
|
-
var DTODocumentationDraftStateUpdated =
|
|
5746
|
-
changeType:
|
|
5747
|
-
changes:
|
|
5748
|
-
previousTitle:
|
|
5756
|
+
var DTODocumentationDraftChangeType = z207.enum(["Created", "Updated", "Deleted"]);
|
|
5757
|
+
var DTODocumentationDraftStateCreated = z207.object({
|
|
5758
|
+
changeType: z207.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5759
|
+
});
|
|
5760
|
+
var DTODocumentationDraftStateUpdated = z207.object({
|
|
5761
|
+
changeType: z207.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5762
|
+
changes: z207.object({
|
|
5763
|
+
previousTitle: z207.string().optional(),
|
|
5749
5764
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5750
|
-
previousContentHash:
|
|
5765
|
+
previousContentHash: z207.string().optional()
|
|
5751
5766
|
})
|
|
5752
5767
|
});
|
|
5753
|
-
var DTODocumentationDraftStateDeleted =
|
|
5754
|
-
changeType:
|
|
5755
|
-
deletedAt:
|
|
5756
|
-
deletedByUserId:
|
|
5768
|
+
var DTODocumentationDraftStateDeleted = z207.object({
|
|
5769
|
+
changeType: z207.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5770
|
+
deletedAt: z207.coerce.date(),
|
|
5771
|
+
deletedByUserId: z207.string()
|
|
5757
5772
|
});
|
|
5758
|
-
var DTODocumentationDraftState =
|
|
5773
|
+
var DTODocumentationDraftState = z207.discriminatedUnion("changeType", [
|
|
5759
5774
|
DTODocumentationDraftStateCreated,
|
|
5760
5775
|
DTODocumentationDraftStateUpdated,
|
|
5761
5776
|
DTODocumentationDraftStateDeleted
|
|
5762
5777
|
]);
|
|
5763
5778
|
|
|
5764
5779
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5765
|
-
import { z as
|
|
5766
|
-
var DTODocumentationPublishMetadata =
|
|
5767
|
-
lastPublishedByUserId:
|
|
5768
|
-
lastPublishedAt:
|
|
5780
|
+
import { z as z208 } from "zod";
|
|
5781
|
+
var DTODocumentationPublishMetadata = z208.object({
|
|
5782
|
+
lastPublishedByUserId: z208.string(),
|
|
5783
|
+
lastPublishedAt: z208.coerce.date()
|
|
5769
5784
|
});
|
|
5770
5785
|
|
|
5771
5786
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5772
|
-
var DTODocumentationPageV2 =
|
|
5773
|
-
id:
|
|
5774
|
-
persistentId:
|
|
5775
|
-
designSystemVersionId:
|
|
5776
|
-
title:
|
|
5787
|
+
var DTODocumentationPageV2 = z209.object({
|
|
5788
|
+
id: z209.string(),
|
|
5789
|
+
persistentId: z209.string(),
|
|
5790
|
+
designSystemVersionId: z209.string(),
|
|
5791
|
+
title: z209.string(),
|
|
5777
5792
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5778
|
-
shortPersistentId:
|
|
5779
|
-
slug:
|
|
5780
|
-
userSlug:
|
|
5781
|
-
createdAt:
|
|
5782
|
-
updatedAt:
|
|
5783
|
-
path:
|
|
5793
|
+
shortPersistentId: z209.string(),
|
|
5794
|
+
slug: z209.string().optional(),
|
|
5795
|
+
userSlug: z209.string().optional(),
|
|
5796
|
+
createdAt: z209.coerce.date(),
|
|
5797
|
+
updatedAt: z209.coerce.date(),
|
|
5798
|
+
path: z209.string(),
|
|
5784
5799
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5785
5800
|
draftState: DTODocumentationDraftState.optional(),
|
|
5786
5801
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5788,197 +5803,197 @@ var DTODocumentationPageV2 = z208.object({
|
|
|
5788
5803
|
/** Defines the approval state of the documentation page */
|
|
5789
5804
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5790
5805
|
// Backward compatibility
|
|
5791
|
-
type:
|
|
5806
|
+
type: z209.literal("Page")
|
|
5792
5807
|
});
|
|
5793
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5808
|
+
var DTOCreateDocumentationPageInputV2 = z209.object({
|
|
5794
5809
|
// Identifier
|
|
5795
|
-
persistentId:
|
|
5810
|
+
persistentId: z209.string().uuid(),
|
|
5796
5811
|
// Page properties
|
|
5797
|
-
title:
|
|
5812
|
+
title: z209.string(),
|
|
5798
5813
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5799
5814
|
// Page placement properties
|
|
5800
|
-
parentPersistentId:
|
|
5801
|
-
afterPersistentId:
|
|
5815
|
+
parentPersistentId: z209.string().uuid(),
|
|
5816
|
+
afterPersistentId: z209.string().uuid().nullish()
|
|
5802
5817
|
});
|
|
5803
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5818
|
+
var DTOUpdateDocumentationPageInputV2 = z209.object({
|
|
5804
5819
|
// Identifier of the group to update
|
|
5805
|
-
id:
|
|
5820
|
+
id: z209.string(),
|
|
5806
5821
|
// Page properties
|
|
5807
|
-
title:
|
|
5822
|
+
title: z209.string().optional(),
|
|
5808
5823
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5809
5824
|
});
|
|
5810
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5825
|
+
var DTOMoveDocumentationPageInputV2 = z209.object({
|
|
5811
5826
|
// Identifier of the group to update
|
|
5812
|
-
id:
|
|
5827
|
+
id: z209.string(),
|
|
5813
5828
|
// Page placement properties
|
|
5814
|
-
parentPersistentId:
|
|
5815
|
-
afterPersistentId:
|
|
5829
|
+
parentPersistentId: z209.string().uuid(),
|
|
5830
|
+
afterPersistentId: z209.string().uuid().nullish()
|
|
5816
5831
|
});
|
|
5817
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5832
|
+
var DTODuplicateDocumentationPageInputV2 = z209.object({
|
|
5818
5833
|
// Identifier of the page to duplicate from
|
|
5819
|
-
id:
|
|
5834
|
+
id: z209.string(),
|
|
5820
5835
|
// New page persistent id
|
|
5821
|
-
persistentId:
|
|
5836
|
+
persistentId: z209.string().uuid(),
|
|
5822
5837
|
// Page placement properties
|
|
5823
|
-
parentPersistentId:
|
|
5824
|
-
afterPersistentId:
|
|
5838
|
+
parentPersistentId: z209.string().uuid(),
|
|
5839
|
+
afterPersistentId: z209.string().uuid().nullish()
|
|
5825
5840
|
});
|
|
5826
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5841
|
+
var DTODeleteDocumentationPageInputV2 = z209.object({
|
|
5827
5842
|
// Identifier
|
|
5828
|
-
id:
|
|
5843
|
+
id: z209.string()
|
|
5829
5844
|
});
|
|
5830
|
-
var DTORestoreDocumentationPageInput =
|
|
5831
|
-
persistentId:
|
|
5832
|
-
snapshotId:
|
|
5845
|
+
var DTORestoreDocumentationPageInput = z209.object({
|
|
5846
|
+
persistentId: z209.string(),
|
|
5847
|
+
snapshotId: z209.string().optional()
|
|
5833
5848
|
});
|
|
5834
|
-
var DTORestoreDocumentationGroupInput =
|
|
5835
|
-
persistentId:
|
|
5836
|
-
snapshotId:
|
|
5849
|
+
var DTORestoreDocumentationGroupInput = z209.object({
|
|
5850
|
+
persistentId: z209.string(),
|
|
5851
|
+
snapshotId: z209.string().optional()
|
|
5837
5852
|
});
|
|
5838
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5839
|
-
persistentId:
|
|
5853
|
+
var DTODocumentationPageApprovalStateChangeInput = z209.object({
|
|
5854
|
+
persistentId: z209.string(),
|
|
5840
5855
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5841
5856
|
});
|
|
5842
5857
|
|
|
5843
5858
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5844
|
-
var DTODocumentationPageSnapshot =
|
|
5845
|
-
id:
|
|
5846
|
-
designSystemVersionId:
|
|
5847
|
-
createdAt:
|
|
5848
|
-
updatedAt:
|
|
5859
|
+
var DTODocumentationPageSnapshot = z210.object({
|
|
5860
|
+
id: z210.string(),
|
|
5861
|
+
designSystemVersionId: z210.string(),
|
|
5862
|
+
createdAt: z210.string(),
|
|
5863
|
+
updatedAt: z210.string(),
|
|
5849
5864
|
documentationPage: DTODocumentationPageV2,
|
|
5850
|
-
pageContentHash:
|
|
5865
|
+
pageContentHash: z210.string(),
|
|
5851
5866
|
reason: DesignElementSnapshotReason
|
|
5852
5867
|
});
|
|
5853
5868
|
|
|
5854
5869
|
// src/api/dto/documentation/link-preview.ts
|
|
5855
|
-
import { z as
|
|
5856
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5870
|
+
import { z as z211 } from "zod";
|
|
5871
|
+
var DTODocumentationLinkPreviewResponse = z211.object({
|
|
5857
5872
|
linkPreview: DocumentationLinkPreview
|
|
5858
5873
|
});
|
|
5859
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5860
|
-
url:
|
|
5861
|
-
documentationItemPersistentId:
|
|
5874
|
+
var DTODocumentationLinkPreviewRequest = z211.object({
|
|
5875
|
+
url: z211.string().optional(),
|
|
5876
|
+
documentationItemPersistentId: z211.string().optional()
|
|
5862
5877
|
});
|
|
5863
5878
|
|
|
5864
5879
|
// src/api/dto/documentation/publish.ts
|
|
5865
|
-
import { z as
|
|
5880
|
+
import { z as z215 } from "zod";
|
|
5866
5881
|
|
|
5867
5882
|
// src/api/dto/export/exporter.ts
|
|
5868
|
-
import { z as
|
|
5869
|
-
var DTOExporterType =
|
|
5870
|
-
var DTOExporterSource =
|
|
5871
|
-
var DTOExporterMembershipRole =
|
|
5872
|
-
var DTOExporter =
|
|
5873
|
-
id:
|
|
5874
|
-
name:
|
|
5875
|
-
isPrivate:
|
|
5883
|
+
import { z as z212 } from "zod";
|
|
5884
|
+
var DTOExporterType = z212.enum(["documentation", "code"]);
|
|
5885
|
+
var DTOExporterSource = z212.enum(["git", "upload"]);
|
|
5886
|
+
var DTOExporterMembershipRole = z212.enum(["Owner", "OwnerArchived", "User"]);
|
|
5887
|
+
var DTOExporter = z212.object({
|
|
5888
|
+
id: z212.string(),
|
|
5889
|
+
name: z212.string(),
|
|
5890
|
+
isPrivate: z212.boolean(),
|
|
5876
5891
|
exporterType: DTOExporterType,
|
|
5877
|
-
isDefaultDocumentationExporter:
|
|
5878
|
-
iconURL:
|
|
5892
|
+
isDefaultDocumentationExporter: z212.boolean(),
|
|
5893
|
+
iconURL: z212.string().optional(),
|
|
5879
5894
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5880
5895
|
customBlocks: PulsarCustomBlock.array(),
|
|
5881
|
-
blockVariants:
|
|
5882
|
-
usesBrands:
|
|
5883
|
-
usesThemes:
|
|
5896
|
+
blockVariants: z212.record(z212.string(), PulsarContributionVariant.array()),
|
|
5897
|
+
usesBrands: z212.boolean(),
|
|
5898
|
+
usesThemes: z212.boolean(),
|
|
5884
5899
|
source: DTOExporterSource,
|
|
5885
|
-
gitUrl:
|
|
5886
|
-
gitBranch:
|
|
5887
|
-
gitDirectory:
|
|
5900
|
+
gitUrl: z212.string().optional(),
|
|
5901
|
+
gitBranch: z212.string().optional(),
|
|
5902
|
+
gitDirectory: z212.string().optional()
|
|
5888
5903
|
});
|
|
5889
|
-
var DTOExporterMembership =
|
|
5890
|
-
workspaceId:
|
|
5891
|
-
exporterId:
|
|
5904
|
+
var DTOExporterMembership = z212.object({
|
|
5905
|
+
workspaceId: z212.string(),
|
|
5906
|
+
exporterId: z212.string(),
|
|
5892
5907
|
role: DTOExporterMembershipRole
|
|
5893
5908
|
});
|
|
5894
|
-
var DTOExporterCreateOutput =
|
|
5909
|
+
var DTOExporterCreateOutput = z212.object({
|
|
5895
5910
|
exporter: DTOExporter,
|
|
5896
5911
|
membership: DTOExporterMembership
|
|
5897
5912
|
});
|
|
5898
|
-
var DTOExporterGitProviderEnum =
|
|
5899
|
-
var DTOExporterCreateInput =
|
|
5900
|
-
url:
|
|
5913
|
+
var DTOExporterGitProviderEnum = z212.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5914
|
+
var DTOExporterCreateInput = z212.object({
|
|
5915
|
+
url: z212.string(),
|
|
5901
5916
|
provider: DTOExporterGitProviderEnum
|
|
5902
5917
|
});
|
|
5903
|
-
var DTOExporterUpdateInput =
|
|
5904
|
-
url:
|
|
5918
|
+
var DTOExporterUpdateInput = z212.object({
|
|
5919
|
+
url: z212.string().optional()
|
|
5905
5920
|
});
|
|
5906
5921
|
|
|
5907
5922
|
// src/api/dto/export/filter.ts
|
|
5908
5923
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5909
5924
|
|
|
5910
5925
|
// src/api/dto/export/job.ts
|
|
5911
|
-
import { z as
|
|
5912
|
-
var DTOExportJobCreatedBy =
|
|
5913
|
-
userId:
|
|
5914
|
-
userName:
|
|
5926
|
+
import { z as z213 } from "zod";
|
|
5927
|
+
var DTOExportJobCreatedBy = z213.object({
|
|
5928
|
+
userId: z213.string(),
|
|
5929
|
+
userName: z213.string()
|
|
5915
5930
|
});
|
|
5916
|
-
var DTOExportJobDesignSystemPreview =
|
|
5917
|
-
id:
|
|
5931
|
+
var DTOExportJobDesignSystemPreview = z213.object({
|
|
5932
|
+
id: z213.string(),
|
|
5918
5933
|
meta: ObjectMeta
|
|
5919
5934
|
});
|
|
5920
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5921
|
-
id:
|
|
5935
|
+
var DTOExportJobDesignSystemVersionPreview = z213.object({
|
|
5936
|
+
id: z213.string(),
|
|
5922
5937
|
meta: ObjectMeta,
|
|
5923
|
-
version:
|
|
5924
|
-
isReadonly:
|
|
5938
|
+
version: z213.string(),
|
|
5939
|
+
isReadonly: z213.boolean()
|
|
5925
5940
|
});
|
|
5926
|
-
var DTOExportJobDestinations =
|
|
5941
|
+
var DTOExportJobDestinations = z213.object({
|
|
5927
5942
|
s3: ExporterDestinationS3.optional(),
|
|
5928
5943
|
azure: ExporterDestinationAzure.optional(),
|
|
5929
5944
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5930
5945
|
github: ExporterDestinationGithub.optional(),
|
|
5931
5946
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5932
5947
|
documentation: ExporterDestinationDocs.optional(),
|
|
5933
|
-
webhookUrl:
|
|
5948
|
+
webhookUrl: z213.string().optional()
|
|
5934
5949
|
});
|
|
5935
5950
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5936
5951
|
sndocs: true
|
|
5937
5952
|
}).extend({
|
|
5938
5953
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5939
5954
|
});
|
|
5940
|
-
var DTOExportJob =
|
|
5941
|
-
id:
|
|
5942
|
-
createdAt:
|
|
5943
|
-
finishedAt:
|
|
5944
|
-
index:
|
|
5955
|
+
var DTOExportJob = z213.object({
|
|
5956
|
+
id: z213.string(),
|
|
5957
|
+
createdAt: z213.coerce.date(),
|
|
5958
|
+
finishedAt: z213.coerce.date().optional(),
|
|
5959
|
+
index: z213.number().optional(),
|
|
5945
5960
|
status: ExportJobStatus,
|
|
5946
|
-
estimatedExecutionTime:
|
|
5961
|
+
estimatedExecutionTime: z213.number().optional(),
|
|
5947
5962
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5948
5963
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5949
5964
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5950
5965
|
destinations: DTOExportJobDestinations,
|
|
5951
|
-
exporterId:
|
|
5952
|
-
scheduleId:
|
|
5966
|
+
exporterId: z213.string(),
|
|
5967
|
+
scheduleId: z213.string().optional(),
|
|
5953
5968
|
result: DTOExportJobResult.optional(),
|
|
5954
|
-
brandPersistentId:
|
|
5955
|
-
themePersistentId:
|
|
5956
|
-
themePersistentIds:
|
|
5969
|
+
brandPersistentId: z213.string().optional(),
|
|
5970
|
+
themePersistentId: z213.string().optional(),
|
|
5971
|
+
themePersistentIds: z213.string().array().optional()
|
|
5957
5972
|
});
|
|
5958
|
-
var DTOExportJobResponse =
|
|
5973
|
+
var DTOExportJobResponse = z213.object({
|
|
5959
5974
|
job: DTOExportJob
|
|
5960
5975
|
});
|
|
5961
5976
|
|
|
5962
5977
|
// src/api/dto/export/pipeline.ts
|
|
5963
|
-
import { z as
|
|
5964
|
-
var DTOPipeline =
|
|
5965
|
-
id:
|
|
5966
|
-
name:
|
|
5978
|
+
import { z as z214 } from "zod";
|
|
5979
|
+
var DTOPipeline = z214.object({
|
|
5980
|
+
id: z214.string(),
|
|
5981
|
+
name: z214.string(),
|
|
5967
5982
|
eventType: PipelineEventType,
|
|
5968
|
-
isEnabled:
|
|
5969
|
-
workspaceId:
|
|
5970
|
-
designSystemId:
|
|
5971
|
-
exporterId:
|
|
5972
|
-
brandPersistentId:
|
|
5973
|
-
themePersistentId:
|
|
5974
|
-
themePersistentIds:
|
|
5983
|
+
isEnabled: z214.boolean(),
|
|
5984
|
+
workspaceId: z214.string(),
|
|
5985
|
+
designSystemId: z214.string(),
|
|
5986
|
+
exporterId: z214.string(),
|
|
5987
|
+
brandPersistentId: z214.string().optional(),
|
|
5988
|
+
themePersistentId: z214.string().optional(),
|
|
5989
|
+
themePersistentIds: z214.string().array().optional(),
|
|
5975
5990
|
...ExportDestinationsMap.shape,
|
|
5976
5991
|
latestJobs: DTOExportJob.array()
|
|
5977
5992
|
});
|
|
5978
5993
|
|
|
5979
5994
|
// src/api/dto/documentation/publish.ts
|
|
5980
5995
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5981
|
-
var DTOPublishDocumentationRequest =
|
|
5996
|
+
var DTOPublishDocumentationRequest = z215.object({
|
|
5982
5997
|
environment: PublishedDocEnvironment,
|
|
5983
5998
|
/**
|
|
5984
5999
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5986,42 +6001,42 @@ var DTOPublishDocumentationRequest = z214.object({
|
|
|
5986
6001
|
*/
|
|
5987
6002
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5988
6003
|
});
|
|
5989
|
-
var DTOPublishDocumentationResponse =
|
|
6004
|
+
var DTOPublishDocumentationResponse = z215.object({
|
|
5990
6005
|
job: DTOExportJob
|
|
5991
6006
|
});
|
|
5992
6007
|
|
|
5993
6008
|
// src/api/dto/elements/components/figma-component.ts
|
|
5994
|
-
import { z as
|
|
6009
|
+
import { z as z216 } from "zod";
|
|
5995
6010
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
5996
|
-
var DTOFigmaComponentPropertyMap =
|
|
5997
|
-
var DTOFigmaComponent =
|
|
5998
|
-
id:
|
|
5999
|
-
persistentId:
|
|
6000
|
-
designSystemVersionId:
|
|
6001
|
-
brandId:
|
|
6002
|
-
thumbnailUrl:
|
|
6003
|
-
svgUrl:
|
|
6004
|
-
exportProperties:
|
|
6005
|
-
isAsset:
|
|
6011
|
+
var DTOFigmaComponentPropertyMap = z216.record(DTOFigmaComponentProperty);
|
|
6012
|
+
var DTOFigmaComponent = z216.object({
|
|
6013
|
+
id: z216.string(),
|
|
6014
|
+
persistentId: z216.string(),
|
|
6015
|
+
designSystemVersionId: z216.string(),
|
|
6016
|
+
brandId: z216.string(),
|
|
6017
|
+
thumbnailUrl: z216.string().optional(),
|
|
6018
|
+
svgUrl: z216.string().optional(),
|
|
6019
|
+
exportProperties: z216.object({
|
|
6020
|
+
isAsset: z216.boolean()
|
|
6006
6021
|
}),
|
|
6007
|
-
createdAt:
|
|
6008
|
-
updatedAt:
|
|
6022
|
+
createdAt: z216.coerce.date(),
|
|
6023
|
+
updatedAt: z216.coerce.date(),
|
|
6009
6024
|
meta: ObjectMeta,
|
|
6010
6025
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6011
|
-
parentComponentPersistentId:
|
|
6012
|
-
childrenPersistentIds:
|
|
6026
|
+
parentComponentPersistentId: z216.string().optional(),
|
|
6027
|
+
childrenPersistentIds: z216.string().array().optional(),
|
|
6013
6028
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6014
|
-
variantPropertyValues:
|
|
6029
|
+
variantPropertyValues: z216.record(z216.string()).optional()
|
|
6015
6030
|
});
|
|
6016
|
-
var DTOFigmaComponentListResponse =
|
|
6031
|
+
var DTOFigmaComponentListResponse = z216.object({
|
|
6017
6032
|
components: DTOFigmaComponent.array()
|
|
6018
6033
|
});
|
|
6019
6034
|
|
|
6020
6035
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6021
|
-
import { z as
|
|
6036
|
+
import { z as z218 } from "zod";
|
|
6022
6037
|
|
|
6023
6038
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6024
|
-
import { z as
|
|
6039
|
+
import { z as z217 } from "zod";
|
|
6025
6040
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6026
6041
|
sortOrder: true,
|
|
6027
6042
|
parentPersistentId: true,
|
|
@@ -6031,13 +6046,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6031
6046
|
data: true,
|
|
6032
6047
|
shortPersistentId: true
|
|
6033
6048
|
}).extend({
|
|
6034
|
-
title:
|
|
6035
|
-
isRoot:
|
|
6036
|
-
childrenIds:
|
|
6049
|
+
title: z217.string(),
|
|
6050
|
+
isRoot: z217.boolean(),
|
|
6051
|
+
childrenIds: z217.array(z217.string()),
|
|
6037
6052
|
groupBehavior: DocumentationGroupBehavior,
|
|
6038
|
-
shortPersistentId:
|
|
6053
|
+
shortPersistentId: z217.string(),
|
|
6039
6054
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6040
|
-
type:
|
|
6055
|
+
type: z217.literal("Group"),
|
|
6041
6056
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6042
6057
|
draftState: DTODocumentationDraftState.optional(),
|
|
6043
6058
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6045,127 +6060,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6045
6060
|
//** An approval state for frontend to utilize. */
|
|
6046
6061
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6047
6062
|
});
|
|
6048
|
-
var DTOCreateDocumentationGroupInput =
|
|
6063
|
+
var DTOCreateDocumentationGroupInput = z217.object({
|
|
6049
6064
|
// Identifier
|
|
6050
|
-
persistentId:
|
|
6065
|
+
persistentId: z217.string().uuid(),
|
|
6051
6066
|
// Group properties
|
|
6052
|
-
title:
|
|
6067
|
+
title: z217.string(),
|
|
6053
6068
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6054
6069
|
// Group placement properties
|
|
6055
|
-
afterPersistentId:
|
|
6056
|
-
parentPersistentId:
|
|
6070
|
+
afterPersistentId: z217.string().uuid().nullish(),
|
|
6071
|
+
parentPersistentId: z217.string().uuid()
|
|
6057
6072
|
});
|
|
6058
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6073
|
+
var DTOUpdateDocumentationGroupInput = z217.object({
|
|
6059
6074
|
// Identifier of the group to update
|
|
6060
|
-
id:
|
|
6075
|
+
id: z217.string(),
|
|
6061
6076
|
// Group properties
|
|
6062
|
-
title:
|
|
6077
|
+
title: z217.string().optional(),
|
|
6063
6078
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6064
6079
|
});
|
|
6065
|
-
var DTOMoveDocumentationGroupInput =
|
|
6080
|
+
var DTOMoveDocumentationGroupInput = z217.object({
|
|
6066
6081
|
// Identifier of the group to update
|
|
6067
|
-
id:
|
|
6082
|
+
id: z217.string(),
|
|
6068
6083
|
// Group placement properties
|
|
6069
|
-
parentPersistentId:
|
|
6070
|
-
afterPersistentId:
|
|
6084
|
+
parentPersistentId: z217.string().uuid(),
|
|
6085
|
+
afterPersistentId: z217.string().uuid().nullish()
|
|
6071
6086
|
});
|
|
6072
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6087
|
+
var DTODuplicateDocumentationGroupInput = z217.object({
|
|
6073
6088
|
// Identifier of the group to duplicate from
|
|
6074
|
-
id:
|
|
6089
|
+
id: z217.string(),
|
|
6075
6090
|
// New group persistent id
|
|
6076
|
-
persistentId:
|
|
6091
|
+
persistentId: z217.string().uuid(),
|
|
6077
6092
|
// Group placement properties
|
|
6078
|
-
afterPersistentId:
|
|
6079
|
-
parentPersistentId:
|
|
6093
|
+
afterPersistentId: z217.string().uuid().nullish(),
|
|
6094
|
+
parentPersistentId: z217.string().uuid()
|
|
6080
6095
|
});
|
|
6081
|
-
var DTOCreateDocumentationTabInput =
|
|
6096
|
+
var DTOCreateDocumentationTabInput = z217.object({
|
|
6082
6097
|
// New group persistent id
|
|
6083
|
-
persistentId:
|
|
6098
|
+
persistentId: z217.string().uuid(),
|
|
6084
6099
|
// If this is page, we will attempt to convert it to tab
|
|
6085
6100
|
// If this is tab group, we will add a new tab to it
|
|
6086
|
-
fromItemPersistentId:
|
|
6087
|
-
tabName:
|
|
6101
|
+
fromItemPersistentId: z217.string(),
|
|
6102
|
+
tabName: z217.string()
|
|
6088
6103
|
});
|
|
6089
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6104
|
+
var DTODeleteDocumentationTabGroupInput = z217.object({
|
|
6090
6105
|
// Deleted group id
|
|
6091
|
-
id:
|
|
6106
|
+
id: z217.string()
|
|
6092
6107
|
});
|
|
6093
|
-
var DTODeleteDocumentationGroupInput =
|
|
6108
|
+
var DTODeleteDocumentationGroupInput = z217.object({
|
|
6094
6109
|
// Identifier
|
|
6095
|
-
id:
|
|
6110
|
+
id: z217.string(),
|
|
6096
6111
|
// Deletion options
|
|
6097
|
-
deleteSubtree:
|
|
6112
|
+
deleteSubtree: z217.boolean().default(false)
|
|
6098
6113
|
});
|
|
6099
6114
|
|
|
6100
6115
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6101
|
-
var SuccessPayload =
|
|
6102
|
-
success:
|
|
6116
|
+
var SuccessPayload = z218.object({
|
|
6117
|
+
success: z218.literal(true)
|
|
6103
6118
|
});
|
|
6104
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6105
|
-
type:
|
|
6119
|
+
var DTODocumentationGroupCreateActionOutputV2 = z218.object({
|
|
6120
|
+
type: z218.literal("DocumentationGroupCreate"),
|
|
6106
6121
|
output: SuccessPayload
|
|
6107
6122
|
});
|
|
6108
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6109
|
-
type:
|
|
6123
|
+
var DTODocumentationTabCreateActionOutputV2 = z218.object({
|
|
6124
|
+
type: z218.literal("DocumentationTabCreate"),
|
|
6110
6125
|
output: SuccessPayload
|
|
6111
6126
|
});
|
|
6112
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6113
|
-
type:
|
|
6127
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z218.object({
|
|
6128
|
+
type: z218.literal("DocumentationGroupUpdate"),
|
|
6114
6129
|
output: SuccessPayload
|
|
6115
6130
|
});
|
|
6116
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6117
|
-
type:
|
|
6131
|
+
var DTODocumentationGroupMoveActionOutputV2 = z218.object({
|
|
6132
|
+
type: z218.literal("DocumentationGroupMove"),
|
|
6118
6133
|
output: SuccessPayload
|
|
6119
6134
|
});
|
|
6120
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6121
|
-
type:
|
|
6135
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z218.object({
|
|
6136
|
+
type: z218.literal("DocumentationGroupDuplicate"),
|
|
6122
6137
|
output: SuccessPayload
|
|
6123
6138
|
});
|
|
6124
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6125
|
-
type:
|
|
6139
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z218.object({
|
|
6140
|
+
type: z218.literal("DocumentationGroupDelete"),
|
|
6126
6141
|
output: SuccessPayload
|
|
6127
6142
|
});
|
|
6128
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6129
|
-
type:
|
|
6143
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z218.object({
|
|
6144
|
+
type: z218.literal("DocumentationTabGroupDelete"),
|
|
6130
6145
|
output: SuccessPayload
|
|
6131
6146
|
});
|
|
6132
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6133
|
-
type:
|
|
6147
|
+
var DTODocumentationGroupCreateActionInputV2 = z218.object({
|
|
6148
|
+
type: z218.literal("DocumentationGroupCreate"),
|
|
6134
6149
|
input: DTOCreateDocumentationGroupInput
|
|
6135
6150
|
});
|
|
6136
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6137
|
-
type:
|
|
6151
|
+
var DTODocumentationTabCreateActionInputV2 = z218.object({
|
|
6152
|
+
type: z218.literal("DocumentationTabCreate"),
|
|
6138
6153
|
input: DTOCreateDocumentationTabInput
|
|
6139
6154
|
});
|
|
6140
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6141
|
-
type:
|
|
6155
|
+
var DTODocumentationGroupUpdateActionInputV2 = z218.object({
|
|
6156
|
+
type: z218.literal("DocumentationGroupUpdate"),
|
|
6142
6157
|
input: DTOUpdateDocumentationGroupInput
|
|
6143
6158
|
});
|
|
6144
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6145
|
-
type:
|
|
6159
|
+
var DTODocumentationGroupMoveActionInputV2 = z218.object({
|
|
6160
|
+
type: z218.literal("DocumentationGroupMove"),
|
|
6146
6161
|
input: DTOMoveDocumentationGroupInput
|
|
6147
6162
|
});
|
|
6148
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6149
|
-
type:
|
|
6163
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z218.object({
|
|
6164
|
+
type: z218.literal("DocumentationGroupDuplicate"),
|
|
6150
6165
|
input: DTODuplicateDocumentationGroupInput
|
|
6151
6166
|
});
|
|
6152
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6153
|
-
type:
|
|
6167
|
+
var DTODocumentationGroupDeleteActionInputV2 = z218.object({
|
|
6168
|
+
type: z218.literal("DocumentationGroupDelete"),
|
|
6154
6169
|
input: DTODeleteDocumentationGroupInput
|
|
6155
6170
|
});
|
|
6156
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6157
|
-
type:
|
|
6171
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z218.object({
|
|
6172
|
+
type: z218.literal("DocumentationTabGroupDelete"),
|
|
6158
6173
|
input: DTODeleteDocumentationTabGroupInput
|
|
6159
6174
|
});
|
|
6160
6175
|
|
|
6161
6176
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6162
|
-
import { z as
|
|
6177
|
+
import { z as z220 } from "zod";
|
|
6163
6178
|
|
|
6164
6179
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6165
|
-
import { z as
|
|
6166
|
-
var DocumentationColorV1 =
|
|
6167
|
-
aliasTo:
|
|
6168
|
-
value:
|
|
6180
|
+
import { z as z219 } from "zod";
|
|
6181
|
+
var DocumentationColorV1 = z219.object({
|
|
6182
|
+
aliasTo: z219.string().optional(),
|
|
6183
|
+
value: z219.string().optional()
|
|
6169
6184
|
});
|
|
6170
6185
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6171
6186
|
foregroundColor: true,
|
|
@@ -6174,10 +6189,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6174
6189
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6175
6190
|
backgroundColor: DocumentationColorV1.optional()
|
|
6176
6191
|
});
|
|
6177
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6178
|
-
showSidebar:
|
|
6179
|
-
isPrivate:
|
|
6180
|
-
isHidden:
|
|
6192
|
+
var DTODocumentationItemConfigurationV1 = z219.object({
|
|
6193
|
+
showSidebar: z219.boolean(),
|
|
6194
|
+
isPrivate: z219.boolean(),
|
|
6195
|
+
isHidden: z219.boolean(),
|
|
6181
6196
|
header: DTODocumentationItemHeaderV1
|
|
6182
6197
|
});
|
|
6183
6198
|
|
|
@@ -6191,27 +6206,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6191
6206
|
data: true,
|
|
6192
6207
|
shortPersistentId: true
|
|
6193
6208
|
}).extend({
|
|
6194
|
-
title:
|
|
6195
|
-
isRoot:
|
|
6196
|
-
childrenIds:
|
|
6209
|
+
title: z220.string(),
|
|
6210
|
+
isRoot: z220.boolean(),
|
|
6211
|
+
childrenIds: z220.array(z220.string()),
|
|
6197
6212
|
groupBehavior: DocumentationGroupBehavior,
|
|
6198
|
-
shortPersistentId:
|
|
6199
|
-
type:
|
|
6213
|
+
shortPersistentId: z220.string(),
|
|
6214
|
+
type: z220.literal("Group")
|
|
6200
6215
|
});
|
|
6201
6216
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6202
6217
|
configuration: DTODocumentationItemConfigurationV1
|
|
6203
6218
|
});
|
|
6204
6219
|
|
|
6205
6220
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6206
|
-
import { z as
|
|
6207
|
-
var DTODocumentationHierarchyV2 =
|
|
6208
|
-
pages:
|
|
6221
|
+
import { z as z221 } from "zod";
|
|
6222
|
+
var DTODocumentationHierarchyV2 = z221.object({
|
|
6223
|
+
pages: z221.array(
|
|
6209
6224
|
DTODocumentationPageV2.extend({
|
|
6210
6225
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6211
6226
|
draftState: DTODocumentationDraftState.optional()
|
|
6212
6227
|
})
|
|
6213
6228
|
),
|
|
6214
|
-
groups:
|
|
6229
|
+
groups: z221.array(
|
|
6215
6230
|
DTODocumentationGroupV2.extend({
|
|
6216
6231
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6217
6232
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6220,84 +6235,84 @@ var DTODocumentationHierarchyV2 = z220.object({
|
|
|
6220
6235
|
});
|
|
6221
6236
|
|
|
6222
6237
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6223
|
-
import { z as
|
|
6224
|
-
var SuccessPayload2 =
|
|
6225
|
-
success:
|
|
6238
|
+
import { z as z222 } from "zod";
|
|
6239
|
+
var SuccessPayload2 = z222.object({
|
|
6240
|
+
success: z222.literal(true)
|
|
6226
6241
|
});
|
|
6227
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6228
|
-
type:
|
|
6242
|
+
var DTODocumentationPageCreateActionOutputV2 = z222.object({
|
|
6243
|
+
type: z222.literal("DocumentationPageCreate"),
|
|
6229
6244
|
output: SuccessPayload2
|
|
6230
6245
|
});
|
|
6231
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6232
|
-
type:
|
|
6246
|
+
var DTODocumentationPageUpdateActionOutputV2 = z222.object({
|
|
6247
|
+
type: z222.literal("DocumentationPageUpdate"),
|
|
6233
6248
|
output: SuccessPayload2
|
|
6234
6249
|
});
|
|
6235
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6236
|
-
type:
|
|
6250
|
+
var DTODocumentationPageMoveActionOutputV2 = z222.object({
|
|
6251
|
+
type: z222.literal("DocumentationPageMove"),
|
|
6237
6252
|
output: SuccessPayload2
|
|
6238
6253
|
});
|
|
6239
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6240
|
-
type:
|
|
6254
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z222.object({
|
|
6255
|
+
type: z222.literal("DocumentationPageDuplicate"),
|
|
6241
6256
|
output: SuccessPayload2
|
|
6242
6257
|
});
|
|
6243
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6244
|
-
type:
|
|
6258
|
+
var DTODocumentationPageDeleteActionOutputV2 = z222.object({
|
|
6259
|
+
type: z222.literal("DocumentationPageDelete"),
|
|
6245
6260
|
output: SuccessPayload2
|
|
6246
6261
|
});
|
|
6247
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6248
|
-
type:
|
|
6262
|
+
var DTODocumentationPageRestoreActionOutput = z222.object({
|
|
6263
|
+
type: z222.literal("DocumentationPageRestore"),
|
|
6249
6264
|
output: SuccessPayload2
|
|
6250
6265
|
});
|
|
6251
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6252
|
-
type:
|
|
6266
|
+
var DTODocumentationGroupRestoreActionOutput = z222.object({
|
|
6267
|
+
type: z222.literal("DocumentationGroupRestore"),
|
|
6253
6268
|
output: SuccessPayload2
|
|
6254
6269
|
});
|
|
6255
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6256
|
-
type:
|
|
6270
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z222.object({
|
|
6271
|
+
type: z222.literal("DocumentationPageApprovalStateChange"),
|
|
6257
6272
|
output: SuccessPayload2
|
|
6258
6273
|
});
|
|
6259
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6260
|
-
type:
|
|
6274
|
+
var DTODocumentationPageCreateActionInputV2 = z222.object({
|
|
6275
|
+
type: z222.literal("DocumentationPageCreate"),
|
|
6261
6276
|
input: DTOCreateDocumentationPageInputV2
|
|
6262
6277
|
});
|
|
6263
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6264
|
-
type:
|
|
6278
|
+
var DTODocumentationPageUpdateActionInputV2 = z222.object({
|
|
6279
|
+
type: z222.literal("DocumentationPageUpdate"),
|
|
6265
6280
|
input: DTOUpdateDocumentationPageInputV2
|
|
6266
6281
|
});
|
|
6267
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6268
|
-
type:
|
|
6282
|
+
var DTODocumentationPageMoveActionInputV2 = z222.object({
|
|
6283
|
+
type: z222.literal("DocumentationPageMove"),
|
|
6269
6284
|
input: DTOMoveDocumentationPageInputV2
|
|
6270
6285
|
});
|
|
6271
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6272
|
-
type:
|
|
6286
|
+
var DTODocumentationPageDuplicateActionInputV2 = z222.object({
|
|
6287
|
+
type: z222.literal("DocumentationPageDuplicate"),
|
|
6273
6288
|
input: DTODuplicateDocumentationPageInputV2
|
|
6274
6289
|
});
|
|
6275
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6276
|
-
type:
|
|
6290
|
+
var DTODocumentationPageDeleteActionInputV2 = z222.object({
|
|
6291
|
+
type: z222.literal("DocumentationPageDelete"),
|
|
6277
6292
|
input: DTODeleteDocumentationPageInputV2
|
|
6278
6293
|
});
|
|
6279
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6280
|
-
type:
|
|
6294
|
+
var DTODocumentationPageRestoreActionInput = z222.object({
|
|
6295
|
+
type: z222.literal("DocumentationPageRestore"),
|
|
6281
6296
|
input: DTORestoreDocumentationPageInput
|
|
6282
6297
|
});
|
|
6283
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6284
|
-
type:
|
|
6298
|
+
var DTODocumentationGroupRestoreActionInput = z222.object({
|
|
6299
|
+
type: z222.literal("DocumentationGroupRestore"),
|
|
6285
6300
|
input: DTORestoreDocumentationGroupInput
|
|
6286
6301
|
});
|
|
6287
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6288
|
-
type:
|
|
6302
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z222.object({
|
|
6303
|
+
type: z222.literal("DocumentationPageApprovalStateChange"),
|
|
6289
6304
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6290
6305
|
});
|
|
6291
6306
|
|
|
6292
6307
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6293
|
-
import { z as
|
|
6308
|
+
import { z as z223 } from "zod";
|
|
6294
6309
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6295
|
-
var DTODocumentationPageContentGetResponse =
|
|
6310
|
+
var DTODocumentationPageContentGetResponse = z223.object({
|
|
6296
6311
|
pageContent: DTODocumentationPageContent
|
|
6297
6312
|
});
|
|
6298
6313
|
|
|
6299
6314
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6300
|
-
import { z as
|
|
6315
|
+
import { z as z224 } from "zod";
|
|
6301
6316
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6302
6317
|
data: true,
|
|
6303
6318
|
meta: true,
|
|
@@ -6305,32 +6320,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6305
6320
|
sortOrder: true
|
|
6306
6321
|
}).extend({
|
|
6307
6322
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6308
|
-
blocks:
|
|
6309
|
-
title:
|
|
6310
|
-
path:
|
|
6323
|
+
blocks: z224.array(PageBlockV1),
|
|
6324
|
+
title: z224.string(),
|
|
6325
|
+
path: z224.string()
|
|
6311
6326
|
});
|
|
6312
6327
|
|
|
6313
6328
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6314
|
-
import { z as
|
|
6329
|
+
import { z as z225 } from "zod";
|
|
6315
6330
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6316
|
-
var DTOFigmaNodeOrigin =
|
|
6317
|
-
sourceId:
|
|
6318
|
-
fileId:
|
|
6319
|
-
parentName:
|
|
6331
|
+
var DTOFigmaNodeOrigin = z225.object({
|
|
6332
|
+
sourceId: z225.string(),
|
|
6333
|
+
fileId: z225.string().optional(),
|
|
6334
|
+
parentName: z225.string().optional()
|
|
6320
6335
|
});
|
|
6321
|
-
var DTOFigmaNodeData =
|
|
6336
|
+
var DTOFigmaNodeData = z225.object({
|
|
6322
6337
|
// Id of the node in the Figma file
|
|
6323
|
-
figmaNodeId:
|
|
6338
|
+
figmaNodeId: z225.string(),
|
|
6324
6339
|
// Validity
|
|
6325
|
-
isValid:
|
|
6340
|
+
isValid: z225.boolean(),
|
|
6326
6341
|
// Asset data
|
|
6327
|
-
assetId:
|
|
6328
|
-
assetUrl:
|
|
6342
|
+
assetId: z225.string(),
|
|
6343
|
+
assetUrl: z225.string(),
|
|
6329
6344
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6330
6345
|
// Asset metadata
|
|
6331
|
-
assetScale:
|
|
6332
|
-
assetWidth:
|
|
6333
|
-
assetHeight:
|
|
6346
|
+
assetScale: z225.number(),
|
|
6347
|
+
assetWidth: z225.number().optional(),
|
|
6348
|
+
assetHeight: z225.number().optional()
|
|
6334
6349
|
});
|
|
6335
6350
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6336
6351
|
data: true,
|
|
@@ -6339,15 +6354,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6339
6354
|
data: DTOFigmaNodeData,
|
|
6340
6355
|
origin: DTOFigmaNodeOrigin
|
|
6341
6356
|
});
|
|
6342
|
-
var DTOFigmaNodeRenderInput =
|
|
6357
|
+
var DTOFigmaNodeRenderInput = z225.object({
|
|
6343
6358
|
/**
|
|
6344
6359
|
* Id of a design system's data source representing a linked Figma file
|
|
6345
6360
|
*/
|
|
6346
|
-
sourceId:
|
|
6361
|
+
sourceId: z225.string(),
|
|
6347
6362
|
/**
|
|
6348
6363
|
* Id of a node within the Figma file
|
|
6349
6364
|
*/
|
|
6350
|
-
figmaFileNodeId:
|
|
6365
|
+
figmaFileNodeId: z225.string(),
|
|
6351
6366
|
/**
|
|
6352
6367
|
* Format in which the node must be rendered, png by default.
|
|
6353
6368
|
*/
|
|
@@ -6355,97 +6370,97 @@ var DTOFigmaNodeRenderInput = z224.object({
|
|
|
6355
6370
|
});
|
|
6356
6371
|
|
|
6357
6372
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6358
|
-
import { z as
|
|
6359
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6360
|
-
type:
|
|
6361
|
-
figmaNodes:
|
|
6373
|
+
import { z as z226 } from "zod";
|
|
6374
|
+
var DTOFigmaNodeRenderActionOutput = z226.object({
|
|
6375
|
+
type: z226.literal("FigmaNodeRender"),
|
|
6376
|
+
figmaNodes: z226.array(DTOFigmaNode)
|
|
6362
6377
|
});
|
|
6363
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6364
|
-
type:
|
|
6378
|
+
var DTOFigmaNodeRenderActionInput = z226.object({
|
|
6379
|
+
type: z226.literal("FigmaNodeRender"),
|
|
6365
6380
|
input: DTOFigmaNodeRenderInput.array()
|
|
6366
6381
|
});
|
|
6367
6382
|
|
|
6368
6383
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6369
|
-
import { z as
|
|
6384
|
+
import { z as z228 } from "zod";
|
|
6370
6385
|
|
|
6371
6386
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6372
|
-
import { z as
|
|
6387
|
+
import { z as z227 } from "zod";
|
|
6373
6388
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6374
|
-
var DTOElementPropertyDefinition =
|
|
6375
|
-
id:
|
|
6376
|
-
designSystemVersionId:
|
|
6389
|
+
var DTOElementPropertyDefinition = z227.object({
|
|
6390
|
+
id: z227.string(),
|
|
6391
|
+
designSystemVersionId: z227.string(),
|
|
6377
6392
|
meta: ObjectMeta,
|
|
6378
|
-
persistentId:
|
|
6393
|
+
persistentId: z227.string(),
|
|
6379
6394
|
type: ElementPropertyTypeSchema,
|
|
6380
6395
|
targetElementType: ElementPropertyTargetType,
|
|
6381
|
-
codeName:
|
|
6382
|
-
options:
|
|
6396
|
+
codeName: z227.string().regex(CODE_NAME_REGEX2),
|
|
6397
|
+
options: z227.array(ElementPropertyDefinitionOption).optional(),
|
|
6383
6398
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6384
6399
|
});
|
|
6385
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6386
|
-
definitions:
|
|
6400
|
+
var DTOElementPropertyDefinitionsGetResponse = z227.object({
|
|
6401
|
+
definitions: z227.array(DTOElementPropertyDefinition)
|
|
6387
6402
|
});
|
|
6388
6403
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6389
6404
|
id: true,
|
|
6390
6405
|
designSystemVersionId: true
|
|
6391
6406
|
});
|
|
6392
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6393
|
-
id:
|
|
6394
|
-
name:
|
|
6395
|
-
description:
|
|
6396
|
-
codeName:
|
|
6397
|
-
options:
|
|
6407
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z227.object({
|
|
6408
|
+
id: z227.string(),
|
|
6409
|
+
name: z227.string().optional(),
|
|
6410
|
+
description: z227.string().optional(),
|
|
6411
|
+
codeName: z227.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6412
|
+
options: z227.array(ElementPropertyDefinitionOption).optional()
|
|
6398
6413
|
});
|
|
6399
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6400
|
-
id:
|
|
6414
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z227.object({
|
|
6415
|
+
id: z227.string()
|
|
6401
6416
|
});
|
|
6402
6417
|
|
|
6403
6418
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6404
|
-
var SuccessPayload3 =
|
|
6405
|
-
success:
|
|
6419
|
+
var SuccessPayload3 = z228.object({
|
|
6420
|
+
success: z228.literal(true)
|
|
6406
6421
|
});
|
|
6407
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6408
|
-
type:
|
|
6422
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z228.object({
|
|
6423
|
+
type: z228.literal("PropertyDefinitionCreate"),
|
|
6409
6424
|
definition: DTOElementPropertyDefinition
|
|
6410
6425
|
});
|
|
6411
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6412
|
-
type:
|
|
6426
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z228.object({
|
|
6427
|
+
type: z228.literal("PropertyDefinitionUpdate"),
|
|
6413
6428
|
definition: DTOElementPropertyDefinition
|
|
6414
6429
|
});
|
|
6415
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6416
|
-
type:
|
|
6430
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z228.object({
|
|
6431
|
+
type: z228.literal("PropertyDefinitionDelete"),
|
|
6417
6432
|
output: SuccessPayload3
|
|
6418
6433
|
});
|
|
6419
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6420
|
-
type:
|
|
6434
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z228.object({
|
|
6435
|
+
type: z228.literal("PropertyDefinitionCreate"),
|
|
6421
6436
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6422
6437
|
});
|
|
6423
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6424
|
-
type:
|
|
6438
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z228.object({
|
|
6439
|
+
type: z228.literal("PropertyDefinitionUpdate"),
|
|
6425
6440
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6426
6441
|
});
|
|
6427
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6428
|
-
type:
|
|
6442
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z228.object({
|
|
6443
|
+
type: z228.literal("PropertyDefinitionDelete"),
|
|
6429
6444
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6430
6445
|
});
|
|
6431
6446
|
|
|
6432
6447
|
// src/api/dto/elements/properties/property-values.ts
|
|
6433
|
-
import { z as
|
|
6434
|
-
var DTOElementPropertyValue =
|
|
6435
|
-
id:
|
|
6436
|
-
designSystemVersionId:
|
|
6437
|
-
definitionId:
|
|
6438
|
-
targetElementId:
|
|
6439
|
-
value:
|
|
6440
|
-
valuePreview:
|
|
6448
|
+
import { z as z229 } from "zod";
|
|
6449
|
+
var DTOElementPropertyValue = z229.object({
|
|
6450
|
+
id: z229.string(),
|
|
6451
|
+
designSystemVersionId: z229.string(),
|
|
6452
|
+
definitionId: z229.string(),
|
|
6453
|
+
targetElementId: z229.string(),
|
|
6454
|
+
value: z229.union([z229.string(), z229.number(), z229.boolean()]).optional(),
|
|
6455
|
+
valuePreview: z229.string().optional()
|
|
6441
6456
|
});
|
|
6442
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6443
|
-
values:
|
|
6457
|
+
var DTOElementPropertyValuesGetResponse = z229.object({
|
|
6458
|
+
values: z229.array(DTOElementPropertyValue)
|
|
6444
6459
|
});
|
|
6445
6460
|
|
|
6446
6461
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6447
|
-
import { z as
|
|
6448
|
-
var DTOElementActionOutput =
|
|
6462
|
+
import { z as z230 } from "zod";
|
|
6463
|
+
var DTOElementActionOutput = z230.discriminatedUnion("type", [
|
|
6449
6464
|
// Documentation pages
|
|
6450
6465
|
DTODocumentationPageCreateActionOutputV2,
|
|
6451
6466
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6472,7 +6487,7 @@ var DTOElementActionOutput = z229.discriminatedUnion("type", [
|
|
|
6472
6487
|
// Approvals
|
|
6473
6488
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6474
6489
|
]);
|
|
6475
|
-
var DTOElementActionInput =
|
|
6490
|
+
var DTOElementActionInput = z230.discriminatedUnion("type", [
|
|
6476
6491
|
// Documentation pages
|
|
6477
6492
|
DTODocumentationPageCreateActionInputV2,
|
|
6478
6493
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6501,60 +6516,60 @@ var DTOElementActionInput = z229.discriminatedUnion("type", [
|
|
|
6501
6516
|
]);
|
|
6502
6517
|
|
|
6503
6518
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6504
|
-
import { z as
|
|
6505
|
-
var DTOElementsGetTypeFilter =
|
|
6506
|
-
var DTOElementsGetQuerySchema =
|
|
6507
|
-
types:
|
|
6519
|
+
import { z as z231 } from "zod";
|
|
6520
|
+
var DTOElementsGetTypeFilter = z231.enum(["FigmaNode"]);
|
|
6521
|
+
var DTOElementsGetQuerySchema = z231.object({
|
|
6522
|
+
types: z231.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6508
6523
|
});
|
|
6509
|
-
var DTOElementsGetOutput =
|
|
6510
|
-
figmaNodes:
|
|
6524
|
+
var DTOElementsGetOutput = z231.object({
|
|
6525
|
+
figmaNodes: z231.array(DTOFigmaNode).optional()
|
|
6511
6526
|
});
|
|
6512
6527
|
|
|
6513
6528
|
// src/api/dto/figma-components/assets/download.ts
|
|
6514
|
-
import { z as
|
|
6515
|
-
var DTOAssetRenderConfiguration =
|
|
6516
|
-
prefix:
|
|
6517
|
-
suffix:
|
|
6518
|
-
scale:
|
|
6519
|
-
format:
|
|
6520
|
-
});
|
|
6521
|
-
var DTORenderedAssetFile =
|
|
6522
|
-
assetId:
|
|
6523
|
-
fileName:
|
|
6524
|
-
sourceUrl:
|
|
6529
|
+
import { z as z232 } from "zod";
|
|
6530
|
+
var DTOAssetRenderConfiguration = z232.object({
|
|
6531
|
+
prefix: z232.string().optional(),
|
|
6532
|
+
suffix: z232.string().optional(),
|
|
6533
|
+
scale: z232.enum(["x1", "x2", "x3", "x4"]),
|
|
6534
|
+
format: z232.enum(["png", "pdf", "svg"])
|
|
6535
|
+
});
|
|
6536
|
+
var DTORenderedAssetFile = z232.object({
|
|
6537
|
+
assetId: z232.string(),
|
|
6538
|
+
fileName: z232.string(),
|
|
6539
|
+
sourceUrl: z232.string(),
|
|
6525
6540
|
settings: DTOAssetRenderConfiguration,
|
|
6526
|
-
originalName:
|
|
6541
|
+
originalName: z232.string()
|
|
6527
6542
|
});
|
|
6528
|
-
var DTODownloadAssetsRequest =
|
|
6529
|
-
persistentIds:
|
|
6543
|
+
var DTODownloadAssetsRequest = z232.object({
|
|
6544
|
+
persistentIds: z232.array(z232.string().uuid()).optional(),
|
|
6530
6545
|
settings: DTOAssetRenderConfiguration.array()
|
|
6531
6546
|
});
|
|
6532
|
-
var DTODownloadAssetsResponse =
|
|
6547
|
+
var DTODownloadAssetsResponse = z232.object({
|
|
6533
6548
|
items: DTORenderedAssetFile.array()
|
|
6534
6549
|
});
|
|
6535
6550
|
|
|
6536
6551
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6537
|
-
import { z as
|
|
6538
|
-
var DTOLiveblocksAuthResponse =
|
|
6539
|
-
token:
|
|
6552
|
+
import { z as z233 } from "zod";
|
|
6553
|
+
var DTOLiveblocksAuthResponse = z233.object({
|
|
6554
|
+
token: z233.string()
|
|
6540
6555
|
});
|
|
6541
6556
|
|
|
6542
6557
|
// src/api/dto/users/authenticated-user.ts
|
|
6543
|
-
import { z as
|
|
6558
|
+
import { z as z235 } from "zod";
|
|
6544
6559
|
|
|
6545
6560
|
// src/api/dto/users/user.ts
|
|
6546
|
-
import { z as
|
|
6547
|
-
var DTOUserProfile =
|
|
6548
|
-
name:
|
|
6549
|
-
nickname:
|
|
6550
|
-
avatar:
|
|
6551
|
-
});
|
|
6552
|
-
var DTOUser =
|
|
6553
|
-
id:
|
|
6554
|
-
email:
|
|
6561
|
+
import { z as z234 } from "zod";
|
|
6562
|
+
var DTOUserProfile = z234.object({
|
|
6563
|
+
name: z234.string(),
|
|
6564
|
+
nickname: z234.string().optional(),
|
|
6565
|
+
avatar: z234.string().optional()
|
|
6566
|
+
});
|
|
6567
|
+
var DTOUser = z234.object({
|
|
6568
|
+
id: z234.string(),
|
|
6569
|
+
email: z234.string(),
|
|
6555
6570
|
profile: DTOUserProfile
|
|
6556
6571
|
});
|
|
6557
|
-
var DTOUserGetResponse =
|
|
6572
|
+
var DTOUserGetResponse = z234.object({
|
|
6558
6573
|
user: DTOUser
|
|
6559
6574
|
});
|
|
6560
6575
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -6563,39 +6578,39 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
6563
6578
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6564
6579
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6565
6580
|
var DTOUserSource = UserSource;
|
|
6566
|
-
var DTOUserOnboarding =
|
|
6567
|
-
companyName:
|
|
6568
|
-
numberOfPeopleInOrg:
|
|
6569
|
-
numberOfPeopleInDesignTeam:
|
|
6581
|
+
var DTOUserOnboarding = z235.object({
|
|
6582
|
+
companyName: z235.string().optional(),
|
|
6583
|
+
numberOfPeopleInOrg: z235.string().optional(),
|
|
6584
|
+
numberOfPeopleInDesignTeam: z235.string().optional(),
|
|
6570
6585
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6571
|
-
jobTitle:
|
|
6572
|
-
phase:
|
|
6586
|
+
jobTitle: z235.string().optional(),
|
|
6587
|
+
phase: z235.string().optional(),
|
|
6573
6588
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6574
|
-
designSystemName:
|
|
6575
|
-
defaultDestination:
|
|
6576
|
-
isPageDraftOnboardingFinished:
|
|
6589
|
+
designSystemName: z235.string().optional(),
|
|
6590
|
+
defaultDestination: z235.string().optional(),
|
|
6591
|
+
isPageDraftOnboardingFinished: z235.boolean().optional()
|
|
6577
6592
|
});
|
|
6578
6593
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6579
6594
|
onboarding: DTOUserOnboarding.optional()
|
|
6580
6595
|
});
|
|
6581
6596
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6582
6597
|
profile: DTOAuthenticatedUserProfile,
|
|
6583
|
-
createdAt:
|
|
6584
|
-
loggedOutAt:
|
|
6598
|
+
createdAt: z235.coerce.date(),
|
|
6599
|
+
loggedOutAt: z235.coerce.date().optional(),
|
|
6585
6600
|
source: DTOUserSource.optional()
|
|
6586
6601
|
});
|
|
6587
|
-
var DTOAuthenticatedUserResponse =
|
|
6602
|
+
var DTOAuthenticatedUserResponse = z235.object({
|
|
6588
6603
|
user: DTOAuthenticatedUser
|
|
6589
6604
|
});
|
|
6590
6605
|
|
|
6591
6606
|
// src/api/dto/users/update.ts
|
|
6592
|
-
import { z as
|
|
6593
|
-
var DTOUserProfileUpdateResponse =
|
|
6607
|
+
import { z as z236 } from "zod";
|
|
6608
|
+
var DTOUserProfileUpdateResponse = z236.object({
|
|
6594
6609
|
user: User
|
|
6595
6610
|
});
|
|
6596
6611
|
|
|
6597
6612
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
6598
|
-
import { z as
|
|
6613
|
+
import { z as z237 } from "zod";
|
|
6599
6614
|
var BrandsEndpoint = class {
|
|
6600
6615
|
constructor(requestExecutor) {
|
|
6601
6616
|
this.requestExecutor = requestExecutor;
|
|
@@ -6603,16 +6618,16 @@ var BrandsEndpoint = class {
|
|
|
6603
6618
|
get(designSystemId, versionId, brandId) {
|
|
6604
6619
|
return this.requestExecutor.json(
|
|
6605
6620
|
`/design-systems/${designSystemId}/versions/${versionId}/brands/${brandId}`,
|
|
6606
|
-
|
|
6621
|
+
z237.any()
|
|
6607
6622
|
);
|
|
6608
6623
|
}
|
|
6609
6624
|
list(designSystemId, versionId) {
|
|
6610
|
-
return this.requestExecutor.json(`/design-systems/${designSystemId}/versions/${versionId}/brands`,
|
|
6625
|
+
return this.requestExecutor.json(`/design-systems/${designSystemId}/versions/${versionId}/brands`, z237.any());
|
|
6611
6626
|
}
|
|
6612
6627
|
};
|
|
6613
6628
|
|
|
6614
6629
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
6615
|
-
import { z as
|
|
6630
|
+
import { z as z238 } from "zod";
|
|
6616
6631
|
var OverridesEndpoint = class {
|
|
6617
6632
|
constructor(requestExecutor) {
|
|
6618
6633
|
this.requestExecutor = requestExecutor;
|
|
@@ -6620,7 +6635,7 @@ var OverridesEndpoint = class {
|
|
|
6620
6635
|
create(dsId, versionId, themeId, body) {
|
|
6621
6636
|
return this.requestExecutor.json(
|
|
6622
6637
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
6623
|
-
|
|
6638
|
+
z238.any(),
|
|
6624
6639
|
{
|
|
6625
6640
|
method: "POST",
|
|
6626
6641
|
body
|
|
@@ -6629,8 +6644,20 @@ var OverridesEndpoint = class {
|
|
|
6629
6644
|
}
|
|
6630
6645
|
};
|
|
6631
6646
|
|
|
6647
|
+
// src/api/endpoints/design-system/versions/stats.ts
|
|
6648
|
+
var VersionStatsEndpoint = class {
|
|
6649
|
+
constructor(requestExecutor) {
|
|
6650
|
+
this.requestExecutor = requestExecutor;
|
|
6651
|
+
}
|
|
6652
|
+
get(dsId, vId, query = {}) {
|
|
6653
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/stats`, DTODesignSystemVersionStats, {
|
|
6654
|
+
query: new URLSearchParams(query)
|
|
6655
|
+
});
|
|
6656
|
+
}
|
|
6657
|
+
};
|
|
6658
|
+
|
|
6632
6659
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
6633
|
-
import { z as
|
|
6660
|
+
import { z as z239 } from "zod";
|
|
6634
6661
|
var ThemesEndpoint = class {
|
|
6635
6662
|
constructor(requestExecutor) {
|
|
6636
6663
|
this.requestExecutor = requestExecutor;
|
|
@@ -6638,26 +6665,26 @@ var ThemesEndpoint = class {
|
|
|
6638
6665
|
this.overrides = new OverridesEndpoint(requestExecutor);
|
|
6639
6666
|
}
|
|
6640
6667
|
create(dsId, versionId, body) {
|
|
6641
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`,
|
|
6668
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z239.any(), {
|
|
6642
6669
|
method: "POST",
|
|
6643
6670
|
body
|
|
6644
6671
|
});
|
|
6645
6672
|
}
|
|
6646
6673
|
delete(dsId, versionId, themeId) {
|
|
6647
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
6674
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z239.any(), {
|
|
6648
6675
|
method: "DELETE"
|
|
6649
6676
|
});
|
|
6650
6677
|
}
|
|
6651
6678
|
};
|
|
6652
6679
|
|
|
6653
6680
|
// src/api/endpoints/design-system/versions/tokens.ts
|
|
6654
|
-
import { z as
|
|
6681
|
+
import { z as z240 } from "zod";
|
|
6655
6682
|
var TokensEndpoint = class {
|
|
6656
6683
|
constructor(requestExecutor) {
|
|
6657
6684
|
this.requestExecutor = requestExecutor;
|
|
6658
6685
|
}
|
|
6659
6686
|
create(dsId, versionId, body) {
|
|
6660
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`,
|
|
6687
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z240.any(), {
|
|
6661
6688
|
method: "POST",
|
|
6662
6689
|
body
|
|
6663
6690
|
});
|
|
@@ -6689,9 +6716,11 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
6689
6716
|
__publicField(this, "themes");
|
|
6690
6717
|
__publicField(this, "brands");
|
|
6691
6718
|
__publicField(this, "tokens");
|
|
6719
|
+
__publicField(this, "stats");
|
|
6692
6720
|
this.themes = new ThemesEndpoint(requestExecutor);
|
|
6693
6721
|
this.brands = new BrandsEndpoint(requestExecutor);
|
|
6694
6722
|
this.tokens = new TokensEndpoint(requestExecutor);
|
|
6723
|
+
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
6695
6724
|
}
|
|
6696
6725
|
list(dsId) {
|
|
6697
6726
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
@@ -6699,7 +6728,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
6699
6728
|
};
|
|
6700
6729
|
|
|
6701
6730
|
// src/api/endpoints/design-system/design-systems.ts
|
|
6702
|
-
import { z as
|
|
6731
|
+
import { z as z241 } from "zod";
|
|
6703
6732
|
var DesignSystemsEndpoint = class {
|
|
6704
6733
|
constructor(requestExecutor) {
|
|
6705
6734
|
this.requestExecutor = requestExecutor;
|
|
@@ -6715,10 +6744,10 @@ var DesignSystemsEndpoint = class {
|
|
|
6715
6744
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
6716
6745
|
}
|
|
6717
6746
|
get(dsId) {
|
|
6718
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6747
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z241.any());
|
|
6719
6748
|
}
|
|
6720
6749
|
delete(dsId) {
|
|
6721
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6750
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z241.any(), { method: "DELETE" });
|
|
6722
6751
|
}
|
|
6723
6752
|
update(dsId, body) {
|
|
6724
6753
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -6752,7 +6781,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
6752
6781
|
};
|
|
6753
6782
|
|
|
6754
6783
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
6755
|
-
import { z as
|
|
6784
|
+
import { z as z242 } from "zod";
|
|
6756
6785
|
var WorkspaceMembersEndpoint = class {
|
|
6757
6786
|
constructor(requestExecutor) {
|
|
6758
6787
|
this.requestExecutor = requestExecutor;
|
|
@@ -6769,7 +6798,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6769
6798
|
});
|
|
6770
6799
|
}
|
|
6771
6800
|
invite(workspaceId, body) {
|
|
6772
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
6801
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z242.any(), { method: "POST", body });
|
|
6773
6802
|
}
|
|
6774
6803
|
delete(workspaceId, userId) {
|
|
6775
6804
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -6779,7 +6808,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6779
6808
|
};
|
|
6780
6809
|
|
|
6781
6810
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
6782
|
-
import { z as
|
|
6811
|
+
import { z as z243 } from "zod";
|
|
6783
6812
|
var WorkspacesEndpoint = class {
|
|
6784
6813
|
constructor(requestExecutor) {
|
|
6785
6814
|
this.requestExecutor = requestExecutor;
|
|
@@ -6799,10 +6828,10 @@ var WorkspacesEndpoint = class {
|
|
|
6799
6828
|
});
|
|
6800
6829
|
}
|
|
6801
6830
|
delete(workspaceId) {
|
|
6802
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
6831
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z243.any(), { method: "DELETE" });
|
|
6803
6832
|
}
|
|
6804
6833
|
subscription(workspaceId) {
|
|
6805
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
6834
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z243.any(), { method: "GET" });
|
|
6806
6835
|
}
|
|
6807
6836
|
};
|
|
6808
6837
|
|
|
@@ -6896,9 +6925,9 @@ ${bodyText}`,
|
|
|
6896
6925
|
|
|
6897
6926
|
// src/api/transport/request-executor.ts
|
|
6898
6927
|
import fetch from "node-fetch";
|
|
6899
|
-
import { z as
|
|
6900
|
-
var ResponseWrapper =
|
|
6901
|
-
result:
|
|
6928
|
+
import { z as z244 } from "zod";
|
|
6929
|
+
var ResponseWrapper = z244.object({
|
|
6930
|
+
result: z244.record(z244.any())
|
|
6902
6931
|
});
|
|
6903
6932
|
var RequestExecutor = class {
|
|
6904
6933
|
constructor(testServerConfig) {
|
|
@@ -6917,7 +6946,7 @@ var RequestExecutor = class {
|
|
|
6917
6946
|
let body;
|
|
6918
6947
|
if (requestInit.body && typeof requestInit.body === "object")
|
|
6919
6948
|
body = JSON.stringify(requestInit.body);
|
|
6920
|
-
const response = await fetch(this.fullUrl(path), {
|
|
6949
|
+
const response = await fetch(this.fullUrl(path, requestInit.query), {
|
|
6921
6950
|
...requestInit,
|
|
6922
6951
|
headers: {
|
|
6923
6952
|
...requestInit.headers,
|
|
@@ -6940,8 +6969,12 @@ var RequestExecutor = class {
|
|
|
6940
6969
|
}
|
|
6941
6970
|
return responseParseResult.data;
|
|
6942
6971
|
}
|
|
6943
|
-
fullUrl(path) {
|
|
6944
|
-
|
|
6972
|
+
fullUrl(path, query) {
|
|
6973
|
+
let url = `https://${this.testServerConfig.host}/api/v2${path}`;
|
|
6974
|
+
const queryString = query?.toString();
|
|
6975
|
+
if (queryString)
|
|
6976
|
+
url += `?${queryString}`;
|
|
6977
|
+
return url;
|
|
6945
6978
|
}
|
|
6946
6979
|
};
|
|
6947
6980
|
|
|
@@ -7020,7 +7053,7 @@ function generateHash(input, debug = false) {
|
|
|
7020
7053
|
}
|
|
7021
7054
|
|
|
7022
7055
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7023
|
-
import { z as
|
|
7056
|
+
import { z as z245 } from "zod";
|
|
7024
7057
|
|
|
7025
7058
|
// src/yjs/version-room/base.ts
|
|
7026
7059
|
var VersionRoomBaseYDoc = class {
|
|
@@ -7550,24 +7583,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
7550
7583
|
};
|
|
7551
7584
|
|
|
7552
7585
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7553
|
-
var DocumentationHierarchySettings =
|
|
7554
|
-
routingVersion:
|
|
7555
|
-
isDraftFeatureAdopted:
|
|
7556
|
-
isApprovalFeatureEnabled:
|
|
7557
|
-
approvalRequiredForPublishing:
|
|
7586
|
+
var DocumentationHierarchySettings = z245.object({
|
|
7587
|
+
routingVersion: z245.string(),
|
|
7588
|
+
isDraftFeatureAdopted: z245.boolean(),
|
|
7589
|
+
isApprovalFeatureEnabled: z245.boolean(),
|
|
7590
|
+
approvalRequiredForPublishing: z245.boolean()
|
|
7558
7591
|
});
|
|
7559
7592
|
function yjsToDocumentationHierarchy(doc) {
|
|
7560
7593
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
7561
7594
|
}
|
|
7562
7595
|
|
|
7563
7596
|
// src/yjs/design-system-content/item-configuration.ts
|
|
7564
|
-
import { z as
|
|
7565
|
-
var DTODocumentationPageRoomHeaderData =
|
|
7566
|
-
title:
|
|
7597
|
+
import { z as z246 } from "zod";
|
|
7598
|
+
var DTODocumentationPageRoomHeaderData = z246.object({
|
|
7599
|
+
title: z246.string(),
|
|
7567
7600
|
configuration: DTODocumentationItemConfigurationV2
|
|
7568
7601
|
});
|
|
7569
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
7570
|
-
title:
|
|
7602
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z246.object({
|
|
7603
|
+
title: z246.string().optional(),
|
|
7571
7604
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
7572
7605
|
});
|
|
7573
7606
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7618,7 +7651,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7618
7651
|
header: rawHeader
|
|
7619
7652
|
};
|
|
7620
7653
|
return {
|
|
7621
|
-
title:
|
|
7654
|
+
title: z246.string().parse(title),
|
|
7622
7655
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7623
7656
|
};
|
|
7624
7657
|
}
|
|
@@ -7628,9 +7661,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7628
7661
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7629
7662
|
|
|
7630
7663
|
// src/yjs/docs-editor/model/page.ts
|
|
7631
|
-
import { z as
|
|
7632
|
-
var DocumentationPageEditorModel =
|
|
7633
|
-
blocks:
|
|
7664
|
+
import { z as z247 } from "zod";
|
|
7665
|
+
var DocumentationPageEditorModel = z247.object({
|
|
7666
|
+
blocks: z247.array(DocumentationPageContentItem)
|
|
7634
7667
|
});
|
|
7635
7668
|
|
|
7636
7669
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11150,7 +11183,7 @@ var blocks = [
|
|
|
11150
11183
|
|
|
11151
11184
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11152
11185
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11153
|
-
import { z as
|
|
11186
|
+
import { z as z248 } from "zod";
|
|
11154
11187
|
function yDocToPage(yDoc, definitions) {
|
|
11155
11188
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11156
11189
|
}
|
|
@@ -11230,7 +11263,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11230
11263
|
return null;
|
|
11231
11264
|
return {
|
|
11232
11265
|
id,
|
|
11233
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
11266
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z248.string()) ?? "",
|
|
11234
11267
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11235
11268
|
};
|
|
11236
11269
|
}
|
|
@@ -11265,7 +11298,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11265
11298
|
});
|
|
11266
11299
|
}
|
|
11267
11300
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11268
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11301
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z248.string());
|
|
11269
11302
|
if (!definitionId) {
|
|
11270
11303
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11271
11304
|
return [];
|
|
@@ -11307,7 +11340,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11307
11340
|
if (!id)
|
|
11308
11341
|
return null;
|
|
11309
11342
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11310
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11343
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z248.string().optional()));
|
|
11311
11344
|
return {
|
|
11312
11345
|
id,
|
|
11313
11346
|
type: "Block",
|
|
@@ -11435,10 +11468,10 @@ function parseRichTextAttribute(mark) {
|
|
|
11435
11468
|
return null;
|
|
11436
11469
|
}
|
|
11437
11470
|
function parseProsemirrorLink(mark) {
|
|
11438
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
11471
|
+
const href = getProsemirrorAttribute(mark, "href", z248.string().optional());
|
|
11439
11472
|
if (!href)
|
|
11440
11473
|
return null;
|
|
11441
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
11474
|
+
const target = getProsemirrorAttribute(mark, "target", z248.string().optional());
|
|
11442
11475
|
const openInNewTab = target === "_blank";
|
|
11443
11476
|
if (href.startsWith("@")) {
|
|
11444
11477
|
return {
|
|
@@ -11457,10 +11490,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11457
11490
|
}
|
|
11458
11491
|
}
|
|
11459
11492
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11460
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
11493
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z248.string().optional());
|
|
11461
11494
|
if (!highlightId)
|
|
11462
11495
|
return null;
|
|
11463
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
11496
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z248.boolean().optional()) ?? false;
|
|
11464
11497
|
return {
|
|
11465
11498
|
type: "Comment",
|
|
11466
11499
|
commentHighlightId: highlightId,
|
|
@@ -11472,7 +11505,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11472
11505
|
if (!id)
|
|
11473
11506
|
return null;
|
|
11474
11507
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11475
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
11508
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z248.boolean().optional()) !== false;
|
|
11476
11509
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11477
11510
|
if (!tableChild) {
|
|
11478
11511
|
return emptyTable(id, variantId, 0);
|
|
@@ -11519,9 +11552,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11519
11552
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11520
11553
|
if (!id)
|
|
11521
11554
|
return null;
|
|
11522
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11555
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z248.string().optional());
|
|
11523
11556
|
let columnWidth;
|
|
11524
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11557
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z248.array(z248.number()).nullish());
|
|
11525
11558
|
if (columnWidthArray) {
|
|
11526
11559
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11527
11560
|
}
|
|
@@ -11559,7 +11592,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11559
11592
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11560
11593
|
};
|
|
11561
11594
|
case "image":
|
|
11562
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11595
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z248.string());
|
|
11563
11596
|
if (!items)
|
|
11564
11597
|
return null;
|
|
11565
11598
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11679,7 +11712,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11679
11712
|
);
|
|
11680
11713
|
}
|
|
11681
11714
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11682
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11715
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z248.string());
|
|
11683
11716
|
if (!itemsString)
|
|
11684
11717
|
return null;
|
|
11685
11718
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11691,18 +11724,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11691
11724
|
}
|
|
11692
11725
|
function parseAppearance(prosemirrorNode) {
|
|
11693
11726
|
let appearance = {};
|
|
11694
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11727
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z248.string().optional());
|
|
11695
11728
|
if (rawAppearanceString) {
|
|
11696
11729
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11697
11730
|
if (parsedAppearance.success) {
|
|
11698
11731
|
appearance = parsedAppearance.data;
|
|
11699
11732
|
}
|
|
11700
11733
|
}
|
|
11701
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11734
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z248.number().optional());
|
|
11702
11735
|
if (columns) {
|
|
11703
11736
|
appearance.numberOfColumns = columns;
|
|
11704
11737
|
}
|
|
11705
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11738
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z248.string().optional());
|
|
11706
11739
|
if (backgroundColor) {
|
|
11707
11740
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11708
11741
|
if (parsedColor.success) {
|
|
@@ -11797,13 +11830,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11797
11830
|
}
|
|
11798
11831
|
}
|
|
11799
11832
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11800
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11833
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z248.string());
|
|
11801
11834
|
if (!id)
|
|
11802
11835
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11803
11836
|
return id;
|
|
11804
11837
|
}
|
|
11805
11838
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11806
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11839
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z248.string()));
|
|
11807
11840
|
}
|
|
11808
11841
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11809
11842
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -11910,6 +11943,8 @@ export {
|
|
|
11910
11943
|
DTODesignSystemVersionGetResponse,
|
|
11911
11944
|
DTODesignSystemVersionJobStatusResponse,
|
|
11912
11945
|
DTODesignSystemVersionJobsResponse,
|
|
11946
|
+
DTODesignSystemVersionStats,
|
|
11947
|
+
DTODesignSystemVersionStatsQuery,
|
|
11913
11948
|
DTODesignSystemVersionsListResponse,
|
|
11914
11949
|
DTODesignSystemsListResponse,
|
|
11915
11950
|
DTODiffCountBase,
|
|
@@ -12111,6 +12146,7 @@ export {
|
|
|
12111
12146
|
UsersEndpoint,
|
|
12112
12147
|
VersionRoomBaseYDoc,
|
|
12113
12148
|
VersionSQSPayload,
|
|
12149
|
+
VersionStatsEndpoint,
|
|
12114
12150
|
WorkspaceConfigurationPayload,
|
|
12115
12151
|
WorkspaceInvitationsEndpoint,
|
|
12116
12152
|
WorkspaceMembersEndpoint,
|