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