@supernova-studio/client 0.55.32 → 0.55.34
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 +417 -63
- package/dist/index.d.ts +417 -63
- package/dist/index.js +126 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +744 -653
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/import-job.ts +60 -0
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/workspaces/invitations.ts +10 -0
- package/src/api/endpoints/design-system/bff.ts +13 -0
- package/src/api/endpoints/design-system/design-systems.ts +5 -3
- package/src/api/endpoints/design-system/index.ts +3 -2
- package/src/api/endpoints/design-system/versions/brands.ts +6 -3
- package/src/api/endpoints/design-system/versions/import-jobs.ts +13 -0
- package/src/api/endpoints/design-system/versions/index.ts +1 -0
- package/src/api/endpoints/design-system/{design-system-versions.ts → versions.ts} +5 -1
- package/src/api/endpoints/workspaces/workspace-invites.ts +17 -1
- /package/src/api/endpoints/design-system/{design-system-members.ts → members.ts} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -3817,14 +3817,16 @@ var DesignSystemInvitation = z132.object({
|
|
|
3817
3817
|
id: z132.string(),
|
|
3818
3818
|
designSystemId: z132.string(),
|
|
3819
3819
|
workspaceInvitationId: z132.string(),
|
|
3820
|
-
designSystemRole: DesignSystemRole.optional()
|
|
3820
|
+
designSystemRole: DesignSystemRole.optional(),
|
|
3821
|
+
workspaceRole: WorkspaceRoleSchema.optional()
|
|
3821
3822
|
});
|
|
3822
3823
|
var DesignSystemMembership = z133.object({
|
|
3823
3824
|
id: z133.string(),
|
|
3824
3825
|
userId: z133.string(),
|
|
3825
3826
|
designSystemId: z133.string(),
|
|
3826
3827
|
designSystemRole: DesignSystemRole.optional(),
|
|
3827
|
-
workspaceMembershipId: z133.string()
|
|
3828
|
+
workspaceMembershipId: z133.string(),
|
|
3829
|
+
workspaceRole: WorkspaceRoleSchema.optional()
|
|
3828
3830
|
});
|
|
3829
3831
|
var DesignSystemMembers = z133.object({
|
|
3830
3832
|
members: DesignSystemMembership.array(),
|
|
@@ -5057,7 +5059,7 @@ var DTOPagination = z175.object({
|
|
|
5057
5059
|
});
|
|
5058
5060
|
|
|
5059
5061
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5060
|
-
import { z as
|
|
5062
|
+
import { z as z204 } from "zod";
|
|
5061
5063
|
|
|
5062
5064
|
// src/api/dto/design-systems/brand.ts
|
|
5063
5065
|
import { z as z176 } from "zod";
|
|
@@ -5274,46 +5276,80 @@ import { z as z182 } from "zod";
|
|
|
5274
5276
|
var DTOExporterProperty = z182.any({});
|
|
5275
5277
|
var DTOExporterPropertyListResponse = z182.object({ items: z182.array(DTOExporterProperty) });
|
|
5276
5278
|
|
|
5277
|
-
// src/api/dto/design-systems/
|
|
5279
|
+
// src/api/dto/design-systems/import-job.ts
|
|
5278
5280
|
import { z as z183 } from "zod";
|
|
5279
|
-
var
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5281
|
+
var DTOImportJob = z183.object({
|
|
5282
|
+
id: z183.string(),
|
|
5283
|
+
designSystemId: z183.string(),
|
|
5284
|
+
designSystemVersionId: z183.string(),
|
|
5285
|
+
operation: z183.literal("Import"),
|
|
5286
|
+
createdAt: z183.coerce.date(),
|
|
5287
|
+
stateChangedAt: z183.coerce.date(),
|
|
5288
|
+
state: ImportJobState,
|
|
5289
|
+
sourceIds: z183.string().array()
|
|
5290
|
+
});
|
|
5291
|
+
var DTOImportJobResponse = z183.object({
|
|
5292
|
+
job: DTOImportJob
|
|
5293
|
+
});
|
|
5294
|
+
var DTOBffFigmaImportRequestBody = z183.object({
|
|
5295
|
+
type: z183.literal(DataSourceRemoteType.Enum.Figma),
|
|
5296
|
+
brandPersistentId: z183.string().optional(),
|
|
5297
|
+
fileId: z183.string(),
|
|
5298
|
+
scope: DataSourceFigmaScope,
|
|
5299
|
+
autoImportMode: DataSourceAutoImportMode
|
|
5300
|
+
});
|
|
5301
|
+
var DTOBffUploadImportRequestBody = z183.object({
|
|
5302
|
+
type: z183.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5303
|
+
brandPersistentId: z183.string().optional(),
|
|
5304
|
+
sourceName: z183.string().optional(),
|
|
5305
|
+
remoteId: z183.string(),
|
|
5306
|
+
payload: z183.any()
|
|
5307
|
+
});
|
|
5308
|
+
var DTOBffImportRequestBody = z183.discriminatedUnion("type", [
|
|
5309
|
+
DTOBffFigmaImportRequestBody,
|
|
5310
|
+
DTOBffUploadImportRequestBody
|
|
5311
|
+
]);
|
|
5312
|
+
|
|
5313
|
+
// src/api/dto/design-systems/stats.ts
|
|
5314
|
+
import { z as z184 } from "zod";
|
|
5315
|
+
var DTODesignSystemVersionStats = z184.object({
|
|
5316
|
+
tokens: z184.number(),
|
|
5317
|
+
designSystemComponents: z184.number(),
|
|
5318
|
+
assets: z184.number(),
|
|
5319
|
+
documentationPages: z184.number()
|
|
5284
5320
|
});
|
|
5285
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5286
|
-
brandId:
|
|
5321
|
+
var DTODesignSystemVersionStatsQuery = z184.object({
|
|
5322
|
+
brandId: z184.string().optional()
|
|
5287
5323
|
});
|
|
5288
5324
|
|
|
5289
5325
|
// src/api/dto/design-systems/version.ts
|
|
5290
|
-
import { z as
|
|
5326
|
+
import { z as z196 } from "zod";
|
|
5291
5327
|
|
|
5292
5328
|
// src/api/payloads/design-systems/brand.ts
|
|
5293
|
-
import { z as
|
|
5294
|
-
var DTOCreateBrandInput =
|
|
5295
|
-
persistentId:
|
|
5296
|
-
meta:
|
|
5297
|
-
name:
|
|
5298
|
-
description:
|
|
5329
|
+
import { z as z185 } from "zod";
|
|
5330
|
+
var DTOCreateBrandInput = z185.object({
|
|
5331
|
+
persistentId: z185.string().uuid(),
|
|
5332
|
+
meta: z185.object({
|
|
5333
|
+
name: z185.string(),
|
|
5334
|
+
description: z185.string()
|
|
5299
5335
|
})
|
|
5300
5336
|
});
|
|
5301
5337
|
|
|
5302
5338
|
// src/api/payloads/design-systems/theme.ts
|
|
5303
|
-
import { z as
|
|
5304
|
-
var DTOCreateThemeInput =
|
|
5339
|
+
import { z as z186 } from "zod";
|
|
5340
|
+
var DTOCreateThemeInput = z186.object({
|
|
5305
5341
|
meta: ObjectMeta,
|
|
5306
|
-
persistentId:
|
|
5307
|
-
designSystemVersionId:
|
|
5308
|
-
brandId:
|
|
5309
|
-
codeName:
|
|
5310
|
-
version:
|
|
5311
|
-
overrides:
|
|
5342
|
+
persistentId: z186.string(),
|
|
5343
|
+
designSystemVersionId: z186.string(),
|
|
5344
|
+
brandId: z186.string(),
|
|
5345
|
+
codeName: z186.string(),
|
|
5346
|
+
version: z186.string().optional(),
|
|
5347
|
+
overrides: z186.array(z186.any())
|
|
5312
5348
|
// TODO Add actual overrides.
|
|
5313
5349
|
});
|
|
5314
5350
|
|
|
5315
5351
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5316
|
-
import { z as
|
|
5352
|
+
import { z as z187 } from "zod";
|
|
5317
5353
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5318
5354
|
id: true,
|
|
5319
5355
|
workspaceId: true,
|
|
@@ -5325,40 +5361,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5325
5361
|
}).extend({
|
|
5326
5362
|
meta: ObjectMeta.partial().optional()
|
|
5327
5363
|
});
|
|
5328
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5364
|
+
var DTODesignSystemUpdateAccessModeInput = z187.object({
|
|
5329
5365
|
accessMode: DesignSystemAccessMode,
|
|
5330
|
-
retain:
|
|
5331
|
-
userIds:
|
|
5332
|
-
inviteIds:
|
|
5366
|
+
retain: z187.object({
|
|
5367
|
+
userIds: z187.string().array(),
|
|
5368
|
+
inviteIds: z187.string().array()
|
|
5333
5369
|
}).optional()
|
|
5334
5370
|
});
|
|
5335
5371
|
|
|
5336
5372
|
// src/api/payloads/design-systems/version.ts
|
|
5337
|
-
import { z as
|
|
5338
|
-
var ObjectMeta2 =
|
|
5339
|
-
name:
|
|
5340
|
-
description:
|
|
5373
|
+
import { z as z188 } from "zod";
|
|
5374
|
+
var ObjectMeta2 = z188.object({
|
|
5375
|
+
name: z188.string().max(150).optional(),
|
|
5376
|
+
description: z188.string().max(2e3).optional()
|
|
5341
5377
|
});
|
|
5342
5378
|
function validateDesignSystemVersion(version) {
|
|
5343
5379
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5344
5380
|
return urlCompliantRegex.test(version);
|
|
5345
5381
|
}
|
|
5346
|
-
var DTOCreateVersionInput =
|
|
5382
|
+
var DTOCreateVersionInput = z188.object({
|
|
5347
5383
|
meta: ObjectMeta2,
|
|
5348
|
-
version:
|
|
5384
|
+
version: z188.string().refine(validateDesignSystemVersion, {
|
|
5349
5385
|
message: "Invalid semantic versioning format"
|
|
5350
5386
|
}),
|
|
5351
|
-
changeLog:
|
|
5387
|
+
changeLog: z188.string().optional()
|
|
5352
5388
|
});
|
|
5353
|
-
var DTOUpdateVersionInput =
|
|
5389
|
+
var DTOUpdateVersionInput = z188.object({
|
|
5354
5390
|
meta: ObjectMeta2,
|
|
5355
|
-
version:
|
|
5391
|
+
version: z188.string(),
|
|
5356
5392
|
// required for PUT, but not editable
|
|
5357
|
-
changeLog:
|
|
5393
|
+
changeLog: z188.string()
|
|
5358
5394
|
});
|
|
5359
5395
|
|
|
5360
5396
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5361
|
-
import { z as
|
|
5397
|
+
import { z as z189 } from "zod";
|
|
5362
5398
|
|
|
5363
5399
|
// src/api/dto/documentation/block-definition.ts
|
|
5364
5400
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5370,60 +5406,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5370
5406
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5371
5407
|
|
|
5372
5408
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5373
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5374
|
-
definitions:
|
|
5409
|
+
var DTOGetBlockDefinitionsOutput = z189.object({
|
|
5410
|
+
definitions: z189.array(DTOPageBlockDefinition)
|
|
5375
5411
|
});
|
|
5376
5412
|
|
|
5377
5413
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5378
|
-
import { z as
|
|
5379
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5380
|
-
environment:
|
|
5414
|
+
import { z as z190 } from "zod";
|
|
5415
|
+
var DTODocumentationPublishTypeQueryParams = z190.object({
|
|
5416
|
+
environment: z190.enum(["Live", "Preview"])
|
|
5381
5417
|
});
|
|
5382
5418
|
|
|
5383
5419
|
// src/api/payloads/export/pipeline.ts
|
|
5384
|
-
import { z as
|
|
5385
|
-
var DTOPipelineCreateBody =
|
|
5386
|
-
name:
|
|
5387
|
-
exporterId:
|
|
5388
|
-
designSystemId:
|
|
5389
|
-
isEnabled:
|
|
5420
|
+
import { z as z191 } from "zod";
|
|
5421
|
+
var DTOPipelineCreateBody = z191.object({
|
|
5422
|
+
name: z191.string(),
|
|
5423
|
+
exporterId: z191.string(),
|
|
5424
|
+
designSystemId: z191.string(),
|
|
5425
|
+
isEnabled: z191.boolean(),
|
|
5390
5426
|
eventType: PipelineEventType,
|
|
5391
|
-
brandPersistentId:
|
|
5392
|
-
themePersistentId:
|
|
5393
|
-
themePersistentIds:
|
|
5427
|
+
brandPersistentId: z191.string().optional(),
|
|
5428
|
+
themePersistentId: z191.string().optional(),
|
|
5429
|
+
themePersistentIds: z191.string().array().optional(),
|
|
5394
5430
|
destination: PipelineDestinationType.optional(),
|
|
5395
5431
|
gitQuery: GitObjectsQuery,
|
|
5396
|
-
destinations:
|
|
5432
|
+
destinations: z191.object({
|
|
5397
5433
|
s3: ExporterDestinationS3.nullish(),
|
|
5398
5434
|
azure: ExporterDestinationAzure.nullish(),
|
|
5399
5435
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5400
5436
|
github: ExporterDestinationGithub.nullish(),
|
|
5401
5437
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5402
5438
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5403
|
-
webhookUrl:
|
|
5439
|
+
webhookUrl: z191.string().nullish()
|
|
5404
5440
|
})
|
|
5405
5441
|
});
|
|
5406
5442
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5407
|
-
id:
|
|
5443
|
+
id: z191.string()
|
|
5408
5444
|
});
|
|
5409
|
-
var DTOPipelineTriggerBody =
|
|
5410
|
-
designSystemVersionId:
|
|
5445
|
+
var DTOPipelineTriggerBody = z191.object({
|
|
5446
|
+
designSystemVersionId: z191.string()
|
|
5411
5447
|
});
|
|
5412
5448
|
|
|
5413
5449
|
// src/api/payloads/liveblocks/auth.ts
|
|
5414
|
-
import { z as
|
|
5415
|
-
var DTOLiveblocksAuthRequest =
|
|
5416
|
-
room:
|
|
5450
|
+
import { z as z192 } from "zod";
|
|
5451
|
+
var DTOLiveblocksAuthRequest = z192.object({
|
|
5452
|
+
room: z192.string().optional()
|
|
5417
5453
|
});
|
|
5418
5454
|
|
|
5419
5455
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5420
|
-
import { z as
|
|
5421
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5456
|
+
import { z as z193 } from "zod";
|
|
5457
|
+
var DTOUpdateUserNotificationSettingsPayload = z193.object({
|
|
5422
5458
|
notificationSettings: UserNotificationSettings
|
|
5423
5459
|
});
|
|
5424
|
-
var DTOUserNotificationSettingsResponse =
|
|
5425
|
-
userId:
|
|
5426
|
-
workspaceId:
|
|
5460
|
+
var DTOUserNotificationSettingsResponse = z193.object({
|
|
5461
|
+
userId: z193.string(),
|
|
5462
|
+
workspaceId: z193.string(),
|
|
5427
5463
|
notificationSettings: UserNotificationSettings
|
|
5428
5464
|
});
|
|
5429
5465
|
|
|
@@ -5431,7 +5467,7 @@ var DTOUserNotificationSettingsResponse = z192.object({
|
|
|
5431
5467
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5432
5468
|
|
|
5433
5469
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5434
|
-
import { z as
|
|
5470
|
+
import { z as z194 } from "zod";
|
|
5435
5471
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5436
5472
|
function validateSsoPayload(ssoPayload) {
|
|
5437
5473
|
const keys = [];
|
|
@@ -5454,21 +5490,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5454
5490
|
keys
|
|
5455
5491
|
};
|
|
5456
5492
|
}
|
|
5457
|
-
var NpmRegistryInput =
|
|
5458
|
-
enabledScopes:
|
|
5459
|
-
customRegistryUrl:
|
|
5460
|
-
bypassProxy:
|
|
5461
|
-
npmProxyRegistryConfigId:
|
|
5462
|
-
npmProxyVersion:
|
|
5463
|
-
registryType:
|
|
5464
|
-
authType:
|
|
5465
|
-
authHeaderName:
|
|
5466
|
-
authHeaderValue:
|
|
5467
|
-
accessToken:
|
|
5468
|
-
username:
|
|
5469
|
-
password:
|
|
5470
|
-
});
|
|
5471
|
-
var WorkspaceConfigurationPayload =
|
|
5493
|
+
var NpmRegistryInput = z194.object({
|
|
5494
|
+
enabledScopes: z194.array(z194.string()),
|
|
5495
|
+
customRegistryUrl: z194.string().optional(),
|
|
5496
|
+
bypassProxy: z194.boolean().optional(),
|
|
5497
|
+
npmProxyRegistryConfigId: z194.string().optional(),
|
|
5498
|
+
npmProxyVersion: z194.number().optional(),
|
|
5499
|
+
registryType: z194.string(),
|
|
5500
|
+
authType: z194.string(),
|
|
5501
|
+
authHeaderName: z194.string(),
|
|
5502
|
+
authHeaderValue: z194.string(),
|
|
5503
|
+
accessToken: z194.string(),
|
|
5504
|
+
username: z194.string(),
|
|
5505
|
+
password: z194.string()
|
|
5506
|
+
});
|
|
5507
|
+
var WorkspaceConfigurationPayload = z194.object({
|
|
5472
5508
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5473
5509
|
sso: SsoProvider.partial().optional(),
|
|
5474
5510
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5476,211 +5512,217 @@ var WorkspaceConfigurationPayload = z193.object({
|
|
|
5476
5512
|
});
|
|
5477
5513
|
|
|
5478
5514
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5479
|
-
import { z as
|
|
5480
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5515
|
+
import { z as z195 } from "zod";
|
|
5516
|
+
var DTOWorkspaceIntegrationOauthInput = z195.object({
|
|
5481
5517
|
type: IntegrationType
|
|
5482
5518
|
});
|
|
5483
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5484
|
-
userId:
|
|
5519
|
+
var DTOWorkspaceIntegrationPATInput = z195.object({
|
|
5520
|
+
userId: z195.string(),
|
|
5485
5521
|
type: IntegrationType,
|
|
5486
5522
|
token: IntegrationToken
|
|
5487
5523
|
});
|
|
5488
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5489
|
-
organization:
|
|
5524
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z195.object({
|
|
5525
|
+
organization: z195.string().optional(),
|
|
5490
5526
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5491
|
-
project:
|
|
5527
|
+
project: z195.string().optional(),
|
|
5492
5528
|
// Only for Bitbucket and Azure
|
|
5493
|
-
repository:
|
|
5529
|
+
repository: z195.string().optional(),
|
|
5494
5530
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5495
|
-
branch:
|
|
5531
|
+
branch: z195.string().optional(),
|
|
5496
5532
|
// For all providers, useful for PR creations.
|
|
5497
|
-
user:
|
|
5533
|
+
user: z195.string().optional()
|
|
5498
5534
|
// Only for Gitlab User Repositories
|
|
5499
5535
|
});
|
|
5500
5536
|
|
|
5501
5537
|
// src/api/dto/design-systems/version.ts
|
|
5502
|
-
var DTODesignSystemVersion =
|
|
5503
|
-
id:
|
|
5504
|
-
createdAt:
|
|
5538
|
+
var DTODesignSystemVersion = z196.object({
|
|
5539
|
+
id: z196.string(),
|
|
5540
|
+
createdAt: z196.coerce.date(),
|
|
5505
5541
|
meta: ObjectMeta,
|
|
5506
|
-
version:
|
|
5507
|
-
isReadonly:
|
|
5508
|
-
changeLog:
|
|
5509
|
-
designSystemId:
|
|
5542
|
+
version: z196.string(),
|
|
5543
|
+
isReadonly: z196.boolean(),
|
|
5544
|
+
changeLog: z196.string(),
|
|
5545
|
+
designSystemId: z196.string()
|
|
5510
5546
|
});
|
|
5511
|
-
var DTODesignSystemVersionsListResponse =
|
|
5512
|
-
designSystemVersions:
|
|
5547
|
+
var DTODesignSystemVersionsListResponse = z196.object({
|
|
5548
|
+
designSystemVersions: z196.array(DTODesignSystemVersion)
|
|
5513
5549
|
});
|
|
5514
|
-
var DTODesignSystemVersionGetResponse =
|
|
5550
|
+
var DTODesignSystemVersionGetResponse = z196.object({
|
|
5515
5551
|
designSystemVersion: DTODesignSystemVersion
|
|
5516
5552
|
});
|
|
5517
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5553
|
+
var DTODesignSystemVersionCreationResponse = z196.object({
|
|
5518
5554
|
meta: ObjectMeta,
|
|
5519
|
-
version:
|
|
5520
|
-
changeLog:
|
|
5521
|
-
isReadOnly:
|
|
5522
|
-
designSystemId:
|
|
5523
|
-
jobId:
|
|
5524
|
-
});
|
|
5525
|
-
var VersionSQSPayload =
|
|
5526
|
-
jobId:
|
|
5527
|
-
designSystemId:
|
|
5555
|
+
version: z196.string(),
|
|
5556
|
+
changeLog: z196.string(),
|
|
5557
|
+
isReadOnly: z196.boolean(),
|
|
5558
|
+
designSystemId: z196.string(),
|
|
5559
|
+
jobId: z196.string()
|
|
5560
|
+
});
|
|
5561
|
+
var VersionSQSPayload = z196.object({
|
|
5562
|
+
jobId: z196.string(),
|
|
5563
|
+
designSystemId: z196.string(),
|
|
5528
5564
|
input: DTOCreateVersionInput
|
|
5529
5565
|
});
|
|
5530
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5531
|
-
jobs:
|
|
5566
|
+
var DTODesignSystemVersionJobsResponse = z196.object({
|
|
5567
|
+
jobs: z196.array(VersionCreationJob)
|
|
5532
5568
|
});
|
|
5533
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5569
|
+
var DTODesignSystemVersionJobStatusResponse = z196.object({
|
|
5534
5570
|
job: VersionCreationJob
|
|
5535
5571
|
});
|
|
5536
5572
|
|
|
5537
5573
|
// src/api/dto/design-systems/view.ts
|
|
5538
|
-
import { z as
|
|
5539
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5540
|
-
id:
|
|
5541
|
-
persistentId:
|
|
5542
|
-
width:
|
|
5574
|
+
import { z as z197 } from "zod";
|
|
5575
|
+
var DTOElementViewColumnSharedAttributes = z197.object({
|
|
5576
|
+
id: z197.string(),
|
|
5577
|
+
persistentId: z197.string(),
|
|
5578
|
+
width: z197.number()
|
|
5543
5579
|
});
|
|
5544
5580
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5545
|
-
type:
|
|
5581
|
+
type: z197.literal("BaseProperty"),
|
|
5546
5582
|
basePropertyType: ElementViewBaseColumnType
|
|
5547
5583
|
});
|
|
5548
5584
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5549
|
-
type:
|
|
5550
|
-
propertyDefinitionId:
|
|
5585
|
+
type: z197.literal("PropertyDefinition"),
|
|
5586
|
+
propertyDefinitionId: z197.string()
|
|
5551
5587
|
});
|
|
5552
5588
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5553
|
-
type:
|
|
5554
|
-
themeId:
|
|
5589
|
+
type: z197.literal("Theme"),
|
|
5590
|
+
themeId: z197.string()
|
|
5555
5591
|
});
|
|
5556
|
-
var DTOElementViewColumn =
|
|
5592
|
+
var DTOElementViewColumn = z197.discriminatedUnion("type", [
|
|
5557
5593
|
DTOElementViewBasePropertyColumn,
|
|
5558
5594
|
DTOElementViewPropertyDefinitionColumn,
|
|
5559
5595
|
DTOElementViewThemeColumn
|
|
5560
5596
|
]);
|
|
5561
|
-
var DTOElementView =
|
|
5597
|
+
var DTOElementView = z197.object({
|
|
5562
5598
|
meta: ObjectMeta,
|
|
5563
|
-
persistentId:
|
|
5599
|
+
persistentId: z197.string(),
|
|
5564
5600
|
targetElementType: ElementPropertyTargetType,
|
|
5565
|
-
id:
|
|
5566
|
-
isDefault:
|
|
5567
|
-
columns:
|
|
5601
|
+
id: z197.string(),
|
|
5602
|
+
isDefault: z197.boolean(),
|
|
5603
|
+
columns: z197.array(DTOElementViewColumn)
|
|
5568
5604
|
});
|
|
5569
|
-
var DTOElementViewsListResponse =
|
|
5570
|
-
elementDataViews:
|
|
5605
|
+
var DTOElementViewsListResponse = z197.object({
|
|
5606
|
+
elementDataViews: z197.array(DTOElementView)
|
|
5571
5607
|
});
|
|
5572
5608
|
|
|
5573
5609
|
// src/api/dto/workspaces/git.ts
|
|
5574
|
-
import { z as
|
|
5575
|
-
var DTOGitOrganization =
|
|
5576
|
-
id:
|
|
5577
|
-
name:
|
|
5578
|
-
url:
|
|
5579
|
-
slug:
|
|
5610
|
+
import { z as z198 } from "zod";
|
|
5611
|
+
var DTOGitOrganization = z198.object({
|
|
5612
|
+
id: z198.string(),
|
|
5613
|
+
name: z198.string(),
|
|
5614
|
+
url: z198.string(),
|
|
5615
|
+
slug: z198.string()
|
|
5580
5616
|
});
|
|
5581
|
-
var DTOGitProject =
|
|
5582
|
-
id:
|
|
5583
|
-
name:
|
|
5584
|
-
url:
|
|
5585
|
-
slug:
|
|
5617
|
+
var DTOGitProject = z198.object({
|
|
5618
|
+
id: z198.string(),
|
|
5619
|
+
name: z198.string(),
|
|
5620
|
+
url: z198.string(),
|
|
5621
|
+
slug: z198.string()
|
|
5586
5622
|
});
|
|
5587
|
-
var DTOGitRepository =
|
|
5588
|
-
id:
|
|
5589
|
-
name:
|
|
5590
|
-
url:
|
|
5591
|
-
slug:
|
|
5592
|
-
defaultBranch:
|
|
5623
|
+
var DTOGitRepository = z198.object({
|
|
5624
|
+
id: z198.string(),
|
|
5625
|
+
name: z198.string(),
|
|
5626
|
+
url: z198.string(),
|
|
5627
|
+
slug: z198.string(),
|
|
5628
|
+
defaultBranch: z198.string().optional()
|
|
5593
5629
|
});
|
|
5594
|
-
var DTOGitBranch =
|
|
5595
|
-
name:
|
|
5596
|
-
lastCommitId:
|
|
5630
|
+
var DTOGitBranch = z198.object({
|
|
5631
|
+
name: z198.string(),
|
|
5632
|
+
lastCommitId: z198.string()
|
|
5597
5633
|
});
|
|
5598
5634
|
|
|
5599
5635
|
// src/api/dto/workspaces/integrations.ts
|
|
5600
|
-
import { z as
|
|
5636
|
+
import { z as z199 } from "zod";
|
|
5601
5637
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5602
5638
|
accessToken: true,
|
|
5603
5639
|
refreshToken: true
|
|
5604
5640
|
});
|
|
5605
|
-
var DTOIntegration =
|
|
5606
|
-
id:
|
|
5607
|
-
workspaceId:
|
|
5641
|
+
var DTOIntegration = z199.object({
|
|
5642
|
+
id: z199.string(),
|
|
5643
|
+
workspaceId: z199.string(),
|
|
5608
5644
|
type: ExtendedIntegrationType,
|
|
5609
|
-
createdAt:
|
|
5610
|
-
integrationCredentials:
|
|
5611
|
-
integrationDesignSystems:
|
|
5645
|
+
createdAt: z199.coerce.date(),
|
|
5646
|
+
integrationCredentials: z199.array(DTOIntegrationCredentials).optional(),
|
|
5647
|
+
integrationDesignSystems: z199.array(IntegrationDesignSystem).optional()
|
|
5612
5648
|
});
|
|
5613
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5614
|
-
url:
|
|
5649
|
+
var DTOIntegrationOAuthGetResponse = z199.object({
|
|
5650
|
+
url: z199.string()
|
|
5615
5651
|
});
|
|
5616
|
-
var DTOIntegrationPostResponse =
|
|
5652
|
+
var DTOIntegrationPostResponse = z199.object({
|
|
5617
5653
|
integration: DTOIntegration
|
|
5618
5654
|
});
|
|
5619
|
-
var DTOIntegrationsGetListResponse =
|
|
5655
|
+
var DTOIntegrationsGetListResponse = z199.object({
|
|
5620
5656
|
integrations: DTOIntegration.array()
|
|
5621
5657
|
});
|
|
5622
5658
|
|
|
5623
5659
|
// src/api/dto/workspaces/invitations.ts
|
|
5624
|
-
import { z as
|
|
5625
|
-
var DTOWorkspaceInvitationInput =
|
|
5626
|
-
email:
|
|
5660
|
+
import { z as z200 } from "zod";
|
|
5661
|
+
var DTOWorkspaceInvitationInput = z200.object({
|
|
5662
|
+
email: z200.string().email(),
|
|
5627
5663
|
role: WorkspaceRoleSchema
|
|
5628
5664
|
});
|
|
5629
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5665
|
+
var DTOWorkspaceInvitationsListInput = z200.object({
|
|
5630
5666
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5631
|
-
designSystemId:
|
|
5667
|
+
designSystemId: z200.string().optional()
|
|
5632
5668
|
});
|
|
5633
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5669
|
+
var DTOWorkspaceInvitationsResponse = z200.object({
|
|
5634
5670
|
invitations: WorkspaceInvitation.array()
|
|
5635
5671
|
});
|
|
5672
|
+
var DTOWorkspaceInviteUpdate = z200.object({
|
|
5673
|
+
role: WorkspaceRoleSchema
|
|
5674
|
+
});
|
|
5675
|
+
var DTOWorkspaceInvitationUpdateResponse = z200.object({
|
|
5676
|
+
invitation: WorkspaceInvitation
|
|
5677
|
+
});
|
|
5636
5678
|
|
|
5637
5679
|
// src/api/dto/workspaces/membership.ts
|
|
5638
|
-
import { z as
|
|
5680
|
+
import { z as z203 } from "zod";
|
|
5639
5681
|
|
|
5640
5682
|
// src/api/dto/workspaces/workspace.ts
|
|
5641
|
-
import { z as
|
|
5683
|
+
import { z as z202 } from "zod";
|
|
5642
5684
|
|
|
5643
5685
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5644
|
-
import { z as
|
|
5686
|
+
import { z as z201 } from "zod";
|
|
5645
5687
|
var DTONpmRegistryConfigConstants = {
|
|
5646
5688
|
passwordPlaceholder: "redacted"
|
|
5647
5689
|
};
|
|
5648
|
-
var DTONpmRegistryConfig =
|
|
5690
|
+
var DTONpmRegistryConfig = z201.object({
|
|
5649
5691
|
// Registry basic configuration
|
|
5650
5692
|
registryType: NpmRegistryType,
|
|
5651
|
-
registryUrl:
|
|
5652
|
-
customRegistryUrl:
|
|
5693
|
+
registryUrl: z201.string(),
|
|
5694
|
+
customRegistryUrl: z201.string().optional(),
|
|
5653
5695
|
// URL of Supernova NPM packages proxy
|
|
5654
|
-
proxyUrl:
|
|
5696
|
+
proxyUrl: z201.string(),
|
|
5655
5697
|
// Auth configuration
|
|
5656
5698
|
authType: NpmRegistryAuthType,
|
|
5657
|
-
accessToken:
|
|
5658
|
-
username:
|
|
5659
|
-
password:
|
|
5699
|
+
accessToken: z201.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5700
|
+
username: z201.string().optional(),
|
|
5701
|
+
password: z201.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5660
5702
|
// NPM package scopes for whih the proxy should be enabled
|
|
5661
|
-
enabledScopes:
|
|
5703
|
+
enabledScopes: z201.array(z201.string()),
|
|
5662
5704
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5663
5705
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5664
|
-
bypassProxy:
|
|
5706
|
+
bypassProxy: z201.boolean()
|
|
5665
5707
|
});
|
|
5666
5708
|
|
|
5667
5709
|
// src/api/dto/workspaces/workspace.ts
|
|
5668
|
-
var DTOWorkspace =
|
|
5669
|
-
id:
|
|
5710
|
+
var DTOWorkspace = z202.object({
|
|
5711
|
+
id: z202.string(),
|
|
5670
5712
|
profile: WorkspaceProfile,
|
|
5671
5713
|
subscription: Subscription,
|
|
5672
5714
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5673
5715
|
});
|
|
5674
|
-
var DTOWorkspaceCreateInput =
|
|
5675
|
-
name:
|
|
5716
|
+
var DTOWorkspaceCreateInput = z202.object({
|
|
5717
|
+
name: z202.string()
|
|
5676
5718
|
});
|
|
5677
|
-
var DTOWorkspaceResponse =
|
|
5719
|
+
var DTOWorkspaceResponse = z202.object({
|
|
5678
5720
|
workspace: DTOWorkspace
|
|
5679
5721
|
});
|
|
5680
5722
|
|
|
5681
5723
|
// src/api/dto/workspaces/membership.ts
|
|
5682
|
-
var DTOWorkspaceRole =
|
|
5683
|
-
var DTOUserWorkspaceMembership =
|
|
5724
|
+
var DTOWorkspaceRole = z203.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5725
|
+
var DTOUserWorkspaceMembership = z203.object({
|
|
5684
5726
|
// Workspace the user is a member of
|
|
5685
5727
|
workspace: DTOWorkspace,
|
|
5686
5728
|
// Assigned role the user has in the workspace
|
|
@@ -5690,26 +5732,26 @@ var DTOUserWorkspaceMembership = z202.object({
|
|
|
5690
5732
|
// when a workspace's subscription is downgraded to free tier
|
|
5691
5733
|
effectiveRole: DTOWorkspaceRole
|
|
5692
5734
|
});
|
|
5693
|
-
var DTOWorkspaceMember =
|
|
5735
|
+
var DTOWorkspaceMember = z203.object({
|
|
5694
5736
|
user: User,
|
|
5695
5737
|
role: WorkspaceRoleSchema,
|
|
5696
5738
|
effectiveRole: WorkspaceRoleSchema
|
|
5697
5739
|
});
|
|
5698
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5699
|
-
membership:
|
|
5740
|
+
var DTOUserWorkspaceMembershipsResponse = z203.object({
|
|
5741
|
+
membership: z203.array(DTOUserWorkspaceMembership)
|
|
5700
5742
|
});
|
|
5701
|
-
var DTOWorkspaceMembersListResponse =
|
|
5702
|
-
members:
|
|
5743
|
+
var DTOWorkspaceMembersListResponse = z203.object({
|
|
5744
|
+
members: z203.array(DTOWorkspaceMember)
|
|
5703
5745
|
});
|
|
5704
5746
|
|
|
5705
5747
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5706
|
-
var DTOAppBootstrapDataQuery =
|
|
5707
|
-
preferredWorkspaceId:
|
|
5708
|
-
preferredDesignSystemId:
|
|
5709
|
-
preferredVersionId:
|
|
5710
|
-
preferredBrandId:
|
|
5748
|
+
var DTOAppBootstrapDataQuery = z204.object({
|
|
5749
|
+
preferredWorkspaceId: z204.string().optional(),
|
|
5750
|
+
preferredDesignSystemId: z204.string().optional(),
|
|
5751
|
+
preferredVersionId: z204.string().optional(),
|
|
5752
|
+
preferredBrandId: z204.string().optional()
|
|
5711
5753
|
});
|
|
5712
|
-
var DTOAppBootstrapDataResponse =
|
|
5754
|
+
var DTOAppBootstrapDataResponse = z204.object({
|
|
5713
5755
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5714
5756
|
designSystem: DTODesignSystem.optional(),
|
|
5715
5757
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5717,37 +5759,37 @@ var DTOAppBootstrapDataResponse = z203.object({
|
|
|
5717
5759
|
});
|
|
5718
5760
|
|
|
5719
5761
|
// src/api/dto/collections/collection.ts
|
|
5720
|
-
import { z as
|
|
5721
|
-
var DTOTokenCollection =
|
|
5722
|
-
id:
|
|
5723
|
-
persistentId:
|
|
5724
|
-
designSystemVersionId:
|
|
5762
|
+
import { z as z205 } from "zod";
|
|
5763
|
+
var DTOTokenCollection = z205.object({
|
|
5764
|
+
id: z205.string(),
|
|
5765
|
+
persistentId: z205.string(),
|
|
5766
|
+
designSystemVersionId: z205.string(),
|
|
5725
5767
|
meta: ObjectMeta,
|
|
5726
|
-
createdAt:
|
|
5727
|
-
updatedAt:
|
|
5728
|
-
origin:
|
|
5729
|
-
id:
|
|
5730
|
-
sourceId:
|
|
5768
|
+
createdAt: z205.coerce.date(),
|
|
5769
|
+
updatedAt: z205.coerce.date(),
|
|
5770
|
+
origin: z205.object({
|
|
5771
|
+
id: z205.string(),
|
|
5772
|
+
sourceId: z205.string()
|
|
5731
5773
|
})
|
|
5732
5774
|
});
|
|
5733
|
-
var DTOTokenCollectionsListReponse =
|
|
5775
|
+
var DTOTokenCollectionsListReponse = z205.object({
|
|
5734
5776
|
collections: DTOTokenCollection.array()
|
|
5735
5777
|
});
|
|
5736
5778
|
|
|
5737
5779
|
// src/api/dto/documentation/anchor.ts
|
|
5738
|
-
import { z as
|
|
5780
|
+
import { z as z206 } from "zod";
|
|
5739
5781
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5740
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5741
|
-
anchors:
|
|
5782
|
+
var DTOGetDocumentationPageAnchorsResponse = z206.object({
|
|
5783
|
+
anchors: z206.array(DTODocumentationPageAnchor)
|
|
5742
5784
|
});
|
|
5743
5785
|
|
|
5744
5786
|
// src/api/dto/documentation/approvals.ts
|
|
5745
|
-
import { z as
|
|
5787
|
+
import { z as z207 } from "zod";
|
|
5746
5788
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5747
|
-
var DTODocumentationGroupApprovalState =
|
|
5748
|
-
persistentId:
|
|
5749
|
-
groupId:
|
|
5750
|
-
designSystemVersionId:
|
|
5789
|
+
var DTODocumentationGroupApprovalState = z207.object({
|
|
5790
|
+
persistentId: z207.string(),
|
|
5791
|
+
groupId: z207.string(),
|
|
5792
|
+
designSystemVersionId: z207.string(),
|
|
5751
5793
|
approvalState: DocumentationPageApprovalState
|
|
5752
5794
|
});
|
|
5753
5795
|
|
|
@@ -5755,68 +5797,68 @@ var DTODocumentationGroupApprovalState = z206.object({
|
|
|
5755
5797
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5756
5798
|
|
|
5757
5799
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5758
|
-
import { z as
|
|
5800
|
+
import { z as z212 } from "zod";
|
|
5759
5801
|
|
|
5760
5802
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5761
|
-
import { z as
|
|
5803
|
+
import { z as z211 } from "zod";
|
|
5762
5804
|
|
|
5763
5805
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5764
|
-
import { z as
|
|
5806
|
+
import { z as z209 } from "zod";
|
|
5765
5807
|
|
|
5766
5808
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5767
|
-
import { z as
|
|
5809
|
+
import { z as z208 } from "zod";
|
|
5768
5810
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5769
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5770
|
-
showSidebar:
|
|
5771
|
-
isPrivate:
|
|
5772
|
-
isHidden:
|
|
5811
|
+
var DTODocumentationItemConfigurationV2 = z208.object({
|
|
5812
|
+
showSidebar: z208.boolean(),
|
|
5813
|
+
isPrivate: z208.boolean(),
|
|
5814
|
+
isHidden: z208.boolean(),
|
|
5773
5815
|
header: DTODocumentationItemHeaderV2
|
|
5774
5816
|
});
|
|
5775
5817
|
|
|
5776
5818
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5777
|
-
var DTODocumentationDraftChangeType =
|
|
5778
|
-
var DTODocumentationDraftStateCreated =
|
|
5779
|
-
changeType:
|
|
5780
|
-
});
|
|
5781
|
-
var DTODocumentationDraftStateUpdated =
|
|
5782
|
-
changeType:
|
|
5783
|
-
changes:
|
|
5784
|
-
previousTitle:
|
|
5819
|
+
var DTODocumentationDraftChangeType = z209.enum(["Created", "Updated", "Deleted"]);
|
|
5820
|
+
var DTODocumentationDraftStateCreated = z209.object({
|
|
5821
|
+
changeType: z209.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5822
|
+
});
|
|
5823
|
+
var DTODocumentationDraftStateUpdated = z209.object({
|
|
5824
|
+
changeType: z209.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5825
|
+
changes: z209.object({
|
|
5826
|
+
previousTitle: z209.string().optional(),
|
|
5785
5827
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5786
|
-
previousContentHash:
|
|
5828
|
+
previousContentHash: z209.string().optional()
|
|
5787
5829
|
})
|
|
5788
5830
|
});
|
|
5789
|
-
var DTODocumentationDraftStateDeleted =
|
|
5790
|
-
changeType:
|
|
5791
|
-
deletedAt:
|
|
5792
|
-
deletedByUserId:
|
|
5831
|
+
var DTODocumentationDraftStateDeleted = z209.object({
|
|
5832
|
+
changeType: z209.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5833
|
+
deletedAt: z209.coerce.date(),
|
|
5834
|
+
deletedByUserId: z209.string()
|
|
5793
5835
|
});
|
|
5794
|
-
var DTODocumentationDraftState =
|
|
5836
|
+
var DTODocumentationDraftState = z209.discriminatedUnion("changeType", [
|
|
5795
5837
|
DTODocumentationDraftStateCreated,
|
|
5796
5838
|
DTODocumentationDraftStateUpdated,
|
|
5797
5839
|
DTODocumentationDraftStateDeleted
|
|
5798
5840
|
]);
|
|
5799
5841
|
|
|
5800
5842
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5801
|
-
import { z as
|
|
5802
|
-
var DTODocumentationPublishMetadata =
|
|
5803
|
-
lastPublishedByUserId:
|
|
5804
|
-
lastPublishedAt:
|
|
5843
|
+
import { z as z210 } from "zod";
|
|
5844
|
+
var DTODocumentationPublishMetadata = z210.object({
|
|
5845
|
+
lastPublishedByUserId: z210.string(),
|
|
5846
|
+
lastPublishedAt: z210.coerce.date()
|
|
5805
5847
|
});
|
|
5806
5848
|
|
|
5807
5849
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5808
|
-
var DTODocumentationPageV2 =
|
|
5809
|
-
id:
|
|
5810
|
-
persistentId:
|
|
5811
|
-
designSystemVersionId:
|
|
5812
|
-
title:
|
|
5850
|
+
var DTODocumentationPageV2 = z211.object({
|
|
5851
|
+
id: z211.string(),
|
|
5852
|
+
persistentId: z211.string(),
|
|
5853
|
+
designSystemVersionId: z211.string(),
|
|
5854
|
+
title: z211.string(),
|
|
5813
5855
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5814
|
-
shortPersistentId:
|
|
5815
|
-
slug:
|
|
5816
|
-
userSlug:
|
|
5817
|
-
createdAt:
|
|
5818
|
-
updatedAt:
|
|
5819
|
-
path:
|
|
5856
|
+
shortPersistentId: z211.string(),
|
|
5857
|
+
slug: z211.string().optional(),
|
|
5858
|
+
userSlug: z211.string().optional(),
|
|
5859
|
+
createdAt: z211.coerce.date(),
|
|
5860
|
+
updatedAt: z211.coerce.date(),
|
|
5861
|
+
path: z211.string(),
|
|
5820
5862
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5821
5863
|
draftState: DTODocumentationDraftState.optional(),
|
|
5822
5864
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5824,197 +5866,197 @@ var DTODocumentationPageV2 = z210.object({
|
|
|
5824
5866
|
/** Defines the approval state of the documentation page */
|
|
5825
5867
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5826
5868
|
// Backward compatibility
|
|
5827
|
-
type:
|
|
5869
|
+
type: z211.literal("Page")
|
|
5828
5870
|
});
|
|
5829
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5871
|
+
var DTOCreateDocumentationPageInputV2 = z211.object({
|
|
5830
5872
|
// Identifier
|
|
5831
|
-
persistentId:
|
|
5873
|
+
persistentId: z211.string(),
|
|
5832
5874
|
// Page properties
|
|
5833
|
-
title:
|
|
5875
|
+
title: z211.string(),
|
|
5834
5876
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5835
5877
|
// Page placement properties
|
|
5836
|
-
parentPersistentId:
|
|
5837
|
-
afterPersistentId:
|
|
5878
|
+
parentPersistentId: z211.string(),
|
|
5879
|
+
afterPersistentId: z211.string().nullish()
|
|
5838
5880
|
});
|
|
5839
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5881
|
+
var DTOUpdateDocumentationPageInputV2 = z211.object({
|
|
5840
5882
|
// Identifier of the group to update
|
|
5841
|
-
id:
|
|
5883
|
+
id: z211.string(),
|
|
5842
5884
|
// Page properties
|
|
5843
|
-
title:
|
|
5885
|
+
title: z211.string().optional(),
|
|
5844
5886
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5845
5887
|
});
|
|
5846
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5888
|
+
var DTOMoveDocumentationPageInputV2 = z211.object({
|
|
5847
5889
|
// Identifier of the group to update
|
|
5848
|
-
id:
|
|
5890
|
+
id: z211.string(),
|
|
5849
5891
|
// Page placement properties
|
|
5850
|
-
parentPersistentId:
|
|
5851
|
-
afterPersistentId:
|
|
5892
|
+
parentPersistentId: z211.string(),
|
|
5893
|
+
afterPersistentId: z211.string().nullish()
|
|
5852
5894
|
});
|
|
5853
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5895
|
+
var DTODuplicateDocumentationPageInputV2 = z211.object({
|
|
5854
5896
|
// Identifier of the page to duplicate from
|
|
5855
|
-
id:
|
|
5897
|
+
id: z211.string(),
|
|
5856
5898
|
// New page persistent id
|
|
5857
|
-
persistentId:
|
|
5899
|
+
persistentId: z211.string(),
|
|
5858
5900
|
// Page placement properties
|
|
5859
|
-
parentPersistentId:
|
|
5860
|
-
afterPersistentId:
|
|
5901
|
+
parentPersistentId: z211.string(),
|
|
5902
|
+
afterPersistentId: z211.string().nullish()
|
|
5861
5903
|
});
|
|
5862
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5904
|
+
var DTODeleteDocumentationPageInputV2 = z211.object({
|
|
5863
5905
|
// Identifier
|
|
5864
|
-
id:
|
|
5906
|
+
id: z211.string()
|
|
5865
5907
|
});
|
|
5866
|
-
var DTORestoreDocumentationPageInput =
|
|
5867
|
-
persistentId:
|
|
5868
|
-
snapshotId:
|
|
5908
|
+
var DTORestoreDocumentationPageInput = z211.object({
|
|
5909
|
+
persistentId: z211.string(),
|
|
5910
|
+
snapshotId: z211.string().optional()
|
|
5869
5911
|
});
|
|
5870
|
-
var DTORestoreDocumentationGroupInput =
|
|
5871
|
-
persistentId:
|
|
5872
|
-
snapshotId:
|
|
5912
|
+
var DTORestoreDocumentationGroupInput = z211.object({
|
|
5913
|
+
persistentId: z211.string(),
|
|
5914
|
+
snapshotId: z211.string().optional()
|
|
5873
5915
|
});
|
|
5874
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5875
|
-
persistentId:
|
|
5916
|
+
var DTODocumentationPageApprovalStateChangeInput = z211.object({
|
|
5917
|
+
persistentId: z211.string(),
|
|
5876
5918
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5877
5919
|
});
|
|
5878
5920
|
|
|
5879
5921
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5880
|
-
var DTODocumentationPageSnapshot =
|
|
5881
|
-
id:
|
|
5882
|
-
designSystemVersionId:
|
|
5883
|
-
createdAt:
|
|
5884
|
-
updatedAt:
|
|
5922
|
+
var DTODocumentationPageSnapshot = z212.object({
|
|
5923
|
+
id: z212.string(),
|
|
5924
|
+
designSystemVersionId: z212.string(),
|
|
5925
|
+
createdAt: z212.string(),
|
|
5926
|
+
updatedAt: z212.string(),
|
|
5885
5927
|
documentationPage: DTODocumentationPageV2,
|
|
5886
|
-
pageContentHash:
|
|
5928
|
+
pageContentHash: z212.string(),
|
|
5887
5929
|
reason: DesignElementSnapshotReason
|
|
5888
5930
|
});
|
|
5889
5931
|
|
|
5890
5932
|
// src/api/dto/documentation/link-preview.ts
|
|
5891
|
-
import { z as
|
|
5892
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5933
|
+
import { z as z213 } from "zod";
|
|
5934
|
+
var DTODocumentationLinkPreviewResponse = z213.object({
|
|
5893
5935
|
linkPreview: DocumentationLinkPreview
|
|
5894
5936
|
});
|
|
5895
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5896
|
-
url:
|
|
5897
|
-
documentationItemPersistentId:
|
|
5937
|
+
var DTODocumentationLinkPreviewRequest = z213.object({
|
|
5938
|
+
url: z213.string().optional(),
|
|
5939
|
+
documentationItemPersistentId: z213.string().optional()
|
|
5898
5940
|
});
|
|
5899
5941
|
|
|
5900
5942
|
// src/api/dto/documentation/publish.ts
|
|
5901
|
-
import { z as
|
|
5943
|
+
import { z as z217 } from "zod";
|
|
5902
5944
|
|
|
5903
5945
|
// src/api/dto/export/exporter.ts
|
|
5904
|
-
import { z as
|
|
5905
|
-
var DTOExporterType =
|
|
5906
|
-
var DTOExporterSource =
|
|
5907
|
-
var DTOExporterMembershipRole =
|
|
5908
|
-
var DTOExporter =
|
|
5909
|
-
id:
|
|
5910
|
-
name:
|
|
5911
|
-
isPrivate:
|
|
5946
|
+
import { z as z214 } from "zod";
|
|
5947
|
+
var DTOExporterType = z214.enum(["documentation", "code"]);
|
|
5948
|
+
var DTOExporterSource = z214.enum(["git", "upload"]);
|
|
5949
|
+
var DTOExporterMembershipRole = z214.enum(["Owner", "OwnerArchived", "User"]);
|
|
5950
|
+
var DTOExporter = z214.object({
|
|
5951
|
+
id: z214.string(),
|
|
5952
|
+
name: z214.string(),
|
|
5953
|
+
isPrivate: z214.boolean(),
|
|
5912
5954
|
exporterType: DTOExporterType,
|
|
5913
|
-
isDefaultDocumentationExporter:
|
|
5914
|
-
iconURL:
|
|
5955
|
+
isDefaultDocumentationExporter: z214.boolean(),
|
|
5956
|
+
iconURL: z214.string().optional(),
|
|
5915
5957
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5916
5958
|
customBlocks: PulsarCustomBlock.array(),
|
|
5917
|
-
blockVariants:
|
|
5918
|
-
usesBrands:
|
|
5919
|
-
usesThemes:
|
|
5959
|
+
blockVariants: z214.record(z214.string(), PulsarContributionVariant.array()),
|
|
5960
|
+
usesBrands: z214.boolean(),
|
|
5961
|
+
usesThemes: z214.boolean(),
|
|
5920
5962
|
source: DTOExporterSource,
|
|
5921
|
-
gitUrl:
|
|
5922
|
-
gitBranch:
|
|
5923
|
-
gitDirectory:
|
|
5963
|
+
gitUrl: z214.string().optional(),
|
|
5964
|
+
gitBranch: z214.string().optional(),
|
|
5965
|
+
gitDirectory: z214.string().optional()
|
|
5924
5966
|
});
|
|
5925
|
-
var DTOExporterMembership =
|
|
5926
|
-
workspaceId:
|
|
5927
|
-
exporterId:
|
|
5967
|
+
var DTOExporterMembership = z214.object({
|
|
5968
|
+
workspaceId: z214.string(),
|
|
5969
|
+
exporterId: z214.string(),
|
|
5928
5970
|
role: DTOExporterMembershipRole
|
|
5929
5971
|
});
|
|
5930
|
-
var DTOExporterCreateOutput =
|
|
5972
|
+
var DTOExporterCreateOutput = z214.object({
|
|
5931
5973
|
exporter: DTOExporter,
|
|
5932
5974
|
membership: DTOExporterMembership
|
|
5933
5975
|
});
|
|
5934
|
-
var DTOExporterGitProviderEnum =
|
|
5935
|
-
var DTOExporterCreateInput =
|
|
5936
|
-
url:
|
|
5976
|
+
var DTOExporterGitProviderEnum = z214.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5977
|
+
var DTOExporterCreateInput = z214.object({
|
|
5978
|
+
url: z214.string(),
|
|
5937
5979
|
provider: DTOExporterGitProviderEnum
|
|
5938
5980
|
});
|
|
5939
|
-
var DTOExporterUpdateInput =
|
|
5940
|
-
url:
|
|
5981
|
+
var DTOExporterUpdateInput = z214.object({
|
|
5982
|
+
url: z214.string().optional()
|
|
5941
5983
|
});
|
|
5942
5984
|
|
|
5943
5985
|
// src/api/dto/export/filter.ts
|
|
5944
5986
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5945
5987
|
|
|
5946
5988
|
// src/api/dto/export/job.ts
|
|
5947
|
-
import { z as
|
|
5948
|
-
var DTOExportJobCreatedBy =
|
|
5949
|
-
userId:
|
|
5950
|
-
userName:
|
|
5989
|
+
import { z as z215 } from "zod";
|
|
5990
|
+
var DTOExportJobCreatedBy = z215.object({
|
|
5991
|
+
userId: z215.string(),
|
|
5992
|
+
userName: z215.string()
|
|
5951
5993
|
});
|
|
5952
|
-
var DTOExportJobDesignSystemPreview =
|
|
5953
|
-
id:
|
|
5994
|
+
var DTOExportJobDesignSystemPreview = z215.object({
|
|
5995
|
+
id: z215.string(),
|
|
5954
5996
|
meta: ObjectMeta
|
|
5955
5997
|
});
|
|
5956
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5957
|
-
id:
|
|
5998
|
+
var DTOExportJobDesignSystemVersionPreview = z215.object({
|
|
5999
|
+
id: z215.string(),
|
|
5958
6000
|
meta: ObjectMeta,
|
|
5959
|
-
version:
|
|
5960
|
-
isReadonly:
|
|
6001
|
+
version: z215.string(),
|
|
6002
|
+
isReadonly: z215.boolean()
|
|
5961
6003
|
});
|
|
5962
|
-
var DTOExportJobDestinations =
|
|
6004
|
+
var DTOExportJobDestinations = z215.object({
|
|
5963
6005
|
s3: ExporterDestinationS3.optional(),
|
|
5964
6006
|
azure: ExporterDestinationAzure.optional(),
|
|
5965
6007
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5966
6008
|
github: ExporterDestinationGithub.optional(),
|
|
5967
6009
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5968
6010
|
documentation: ExporterDestinationDocs.optional(),
|
|
5969
|
-
webhookUrl:
|
|
6011
|
+
webhookUrl: z215.string().optional()
|
|
5970
6012
|
});
|
|
5971
6013
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5972
6014
|
sndocs: true
|
|
5973
6015
|
}).extend({
|
|
5974
6016
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5975
6017
|
});
|
|
5976
|
-
var DTOExportJob =
|
|
5977
|
-
id:
|
|
5978
|
-
createdAt:
|
|
5979
|
-
finishedAt:
|
|
5980
|
-
index:
|
|
6018
|
+
var DTOExportJob = z215.object({
|
|
6019
|
+
id: z215.string(),
|
|
6020
|
+
createdAt: z215.coerce.date(),
|
|
6021
|
+
finishedAt: z215.coerce.date().optional(),
|
|
6022
|
+
index: z215.number().optional(),
|
|
5981
6023
|
status: ExportJobStatus,
|
|
5982
|
-
estimatedExecutionTime:
|
|
6024
|
+
estimatedExecutionTime: z215.number().optional(),
|
|
5983
6025
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5984
6026
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5985
6027
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5986
6028
|
destinations: DTOExportJobDestinations,
|
|
5987
|
-
exporterId:
|
|
5988
|
-
scheduleId:
|
|
6029
|
+
exporterId: z215.string(),
|
|
6030
|
+
scheduleId: z215.string().optional(),
|
|
5989
6031
|
result: DTOExportJobResult.optional(),
|
|
5990
|
-
brandPersistentId:
|
|
5991
|
-
themePersistentId:
|
|
5992
|
-
themePersistentIds:
|
|
6032
|
+
brandPersistentId: z215.string().optional(),
|
|
6033
|
+
themePersistentId: z215.string().optional(),
|
|
6034
|
+
themePersistentIds: z215.string().array().optional()
|
|
5993
6035
|
});
|
|
5994
|
-
var DTOExportJobResponse =
|
|
6036
|
+
var DTOExportJobResponse = z215.object({
|
|
5995
6037
|
job: DTOExportJob
|
|
5996
6038
|
});
|
|
5997
6039
|
|
|
5998
6040
|
// src/api/dto/export/pipeline.ts
|
|
5999
|
-
import { z as
|
|
6000
|
-
var DTOPipeline =
|
|
6001
|
-
id:
|
|
6002
|
-
name:
|
|
6041
|
+
import { z as z216 } from "zod";
|
|
6042
|
+
var DTOPipeline = z216.object({
|
|
6043
|
+
id: z216.string(),
|
|
6044
|
+
name: z216.string(),
|
|
6003
6045
|
eventType: PipelineEventType,
|
|
6004
|
-
isEnabled:
|
|
6005
|
-
workspaceId:
|
|
6006
|
-
designSystemId:
|
|
6007
|
-
exporterId:
|
|
6008
|
-
brandPersistentId:
|
|
6009
|
-
themePersistentId:
|
|
6010
|
-
themePersistentIds:
|
|
6046
|
+
isEnabled: z216.boolean(),
|
|
6047
|
+
workspaceId: z216.string(),
|
|
6048
|
+
designSystemId: z216.string(),
|
|
6049
|
+
exporterId: z216.string(),
|
|
6050
|
+
brandPersistentId: z216.string().optional(),
|
|
6051
|
+
themePersistentId: z216.string().optional(),
|
|
6052
|
+
themePersistentIds: z216.string().array().optional(),
|
|
6011
6053
|
...ExportDestinationsMap.shape,
|
|
6012
6054
|
latestJobs: DTOExportJob.array()
|
|
6013
6055
|
});
|
|
6014
6056
|
|
|
6015
6057
|
// src/api/dto/documentation/publish.ts
|
|
6016
6058
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6017
|
-
var DTOPublishDocumentationRequest =
|
|
6059
|
+
var DTOPublishDocumentationRequest = z217.object({
|
|
6018
6060
|
environment: PublishedDocEnvironment,
|
|
6019
6061
|
/**
|
|
6020
6062
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6022,42 +6064,42 @@ var DTOPublishDocumentationRequest = z216.object({
|
|
|
6022
6064
|
*/
|
|
6023
6065
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6024
6066
|
});
|
|
6025
|
-
var DTOPublishDocumentationResponse =
|
|
6067
|
+
var DTOPublishDocumentationResponse = z217.object({
|
|
6026
6068
|
job: DTOExportJob
|
|
6027
6069
|
});
|
|
6028
6070
|
|
|
6029
6071
|
// src/api/dto/elements/components/figma-component.ts
|
|
6030
|
-
import { z as
|
|
6072
|
+
import { z as z218 } from "zod";
|
|
6031
6073
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6032
|
-
var DTOFigmaComponentPropertyMap =
|
|
6033
|
-
var DTOFigmaComponent =
|
|
6034
|
-
id:
|
|
6035
|
-
persistentId:
|
|
6036
|
-
designSystemVersionId:
|
|
6037
|
-
brandId:
|
|
6038
|
-
thumbnailUrl:
|
|
6039
|
-
svgUrl:
|
|
6040
|
-
exportProperties:
|
|
6041
|
-
isAsset:
|
|
6074
|
+
var DTOFigmaComponentPropertyMap = z218.record(DTOFigmaComponentProperty);
|
|
6075
|
+
var DTOFigmaComponent = z218.object({
|
|
6076
|
+
id: z218.string(),
|
|
6077
|
+
persistentId: z218.string(),
|
|
6078
|
+
designSystemVersionId: z218.string(),
|
|
6079
|
+
brandId: z218.string(),
|
|
6080
|
+
thumbnailUrl: z218.string().optional(),
|
|
6081
|
+
svgUrl: z218.string().optional(),
|
|
6082
|
+
exportProperties: z218.object({
|
|
6083
|
+
isAsset: z218.boolean()
|
|
6042
6084
|
}),
|
|
6043
|
-
createdAt:
|
|
6044
|
-
updatedAt:
|
|
6085
|
+
createdAt: z218.coerce.date(),
|
|
6086
|
+
updatedAt: z218.coerce.date(),
|
|
6045
6087
|
meta: ObjectMeta,
|
|
6046
6088
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6047
|
-
parentComponentPersistentId:
|
|
6048
|
-
childrenPersistentIds:
|
|
6089
|
+
parentComponentPersistentId: z218.string().optional(),
|
|
6090
|
+
childrenPersistentIds: z218.string().array().optional(),
|
|
6049
6091
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6050
|
-
variantPropertyValues:
|
|
6092
|
+
variantPropertyValues: z218.record(z218.string()).optional()
|
|
6051
6093
|
});
|
|
6052
|
-
var DTOFigmaComponentListResponse =
|
|
6094
|
+
var DTOFigmaComponentListResponse = z218.object({
|
|
6053
6095
|
components: DTOFigmaComponent.array()
|
|
6054
6096
|
});
|
|
6055
6097
|
|
|
6056
6098
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6057
|
-
import { z as
|
|
6099
|
+
import { z as z220 } from "zod";
|
|
6058
6100
|
|
|
6059
6101
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6060
|
-
import { z as
|
|
6102
|
+
import { z as z219 } from "zod";
|
|
6061
6103
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6062
6104
|
sortOrder: true,
|
|
6063
6105
|
parentPersistentId: true,
|
|
@@ -6067,13 +6109,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6067
6109
|
data: true,
|
|
6068
6110
|
shortPersistentId: true
|
|
6069
6111
|
}).extend({
|
|
6070
|
-
title:
|
|
6071
|
-
isRoot:
|
|
6072
|
-
childrenIds:
|
|
6112
|
+
title: z219.string(),
|
|
6113
|
+
isRoot: z219.boolean(),
|
|
6114
|
+
childrenIds: z219.array(z219.string()),
|
|
6073
6115
|
groupBehavior: DocumentationGroupBehavior,
|
|
6074
|
-
shortPersistentId:
|
|
6116
|
+
shortPersistentId: z219.string(),
|
|
6075
6117
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6076
|
-
type:
|
|
6118
|
+
type: z219.literal("Group"),
|
|
6077
6119
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6078
6120
|
draftState: DTODocumentationDraftState.optional(),
|
|
6079
6121
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6081,127 +6123,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6081
6123
|
//** An approval state for frontend to utilize. */
|
|
6082
6124
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6083
6125
|
});
|
|
6084
|
-
var DTOCreateDocumentationGroupInput =
|
|
6126
|
+
var DTOCreateDocumentationGroupInput = z219.object({
|
|
6085
6127
|
// Identifier
|
|
6086
|
-
persistentId:
|
|
6128
|
+
persistentId: z219.string(),
|
|
6087
6129
|
// Group properties
|
|
6088
|
-
title:
|
|
6130
|
+
title: z219.string(),
|
|
6089
6131
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6090
6132
|
// Group placement properties
|
|
6091
|
-
afterPersistentId:
|
|
6092
|
-
parentPersistentId:
|
|
6133
|
+
afterPersistentId: z219.string().nullish(),
|
|
6134
|
+
parentPersistentId: z219.string()
|
|
6093
6135
|
});
|
|
6094
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6136
|
+
var DTOUpdateDocumentationGroupInput = z219.object({
|
|
6095
6137
|
// Identifier of the group to update
|
|
6096
|
-
id:
|
|
6138
|
+
id: z219.string(),
|
|
6097
6139
|
// Group properties
|
|
6098
|
-
title:
|
|
6140
|
+
title: z219.string().optional(),
|
|
6099
6141
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6100
6142
|
});
|
|
6101
|
-
var DTOMoveDocumentationGroupInput =
|
|
6143
|
+
var DTOMoveDocumentationGroupInput = z219.object({
|
|
6102
6144
|
// Identifier of the group to update
|
|
6103
|
-
id:
|
|
6145
|
+
id: z219.string(),
|
|
6104
6146
|
// Group placement properties
|
|
6105
|
-
parentPersistentId:
|
|
6106
|
-
afterPersistentId:
|
|
6147
|
+
parentPersistentId: z219.string(),
|
|
6148
|
+
afterPersistentId: z219.string().nullish()
|
|
6107
6149
|
});
|
|
6108
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6150
|
+
var DTODuplicateDocumentationGroupInput = z219.object({
|
|
6109
6151
|
// Identifier of the group to duplicate from
|
|
6110
|
-
id:
|
|
6152
|
+
id: z219.string(),
|
|
6111
6153
|
// New group persistent id
|
|
6112
|
-
persistentId:
|
|
6154
|
+
persistentId: z219.string(),
|
|
6113
6155
|
// Group placement properties
|
|
6114
|
-
afterPersistentId:
|
|
6115
|
-
parentPersistentId:
|
|
6156
|
+
afterPersistentId: z219.string().nullish(),
|
|
6157
|
+
parentPersistentId: z219.string()
|
|
6116
6158
|
});
|
|
6117
|
-
var DTOCreateDocumentationTabInput =
|
|
6159
|
+
var DTOCreateDocumentationTabInput = z219.object({
|
|
6118
6160
|
// New group persistent id
|
|
6119
|
-
persistentId:
|
|
6161
|
+
persistentId: z219.string(),
|
|
6120
6162
|
// If this is page, we will attempt to convert it to tab
|
|
6121
6163
|
// If this is tab group, we will add a new tab to it
|
|
6122
|
-
fromItemPersistentId:
|
|
6123
|
-
tabName:
|
|
6164
|
+
fromItemPersistentId: z219.string(),
|
|
6165
|
+
tabName: z219.string()
|
|
6124
6166
|
});
|
|
6125
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6167
|
+
var DTODeleteDocumentationTabGroupInput = z219.object({
|
|
6126
6168
|
// Deleted group id
|
|
6127
|
-
id:
|
|
6169
|
+
id: z219.string()
|
|
6128
6170
|
});
|
|
6129
|
-
var DTODeleteDocumentationGroupInput =
|
|
6171
|
+
var DTODeleteDocumentationGroupInput = z219.object({
|
|
6130
6172
|
// Identifier
|
|
6131
|
-
id:
|
|
6173
|
+
id: z219.string(),
|
|
6132
6174
|
// Deletion options
|
|
6133
|
-
deleteSubtree:
|
|
6175
|
+
deleteSubtree: z219.boolean().default(false)
|
|
6134
6176
|
});
|
|
6135
6177
|
|
|
6136
6178
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6137
|
-
var SuccessPayload =
|
|
6138
|
-
success:
|
|
6179
|
+
var SuccessPayload = z220.object({
|
|
6180
|
+
success: z220.literal(true)
|
|
6139
6181
|
});
|
|
6140
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6141
|
-
type:
|
|
6182
|
+
var DTODocumentationGroupCreateActionOutputV2 = z220.object({
|
|
6183
|
+
type: z220.literal("DocumentationGroupCreate"),
|
|
6142
6184
|
output: SuccessPayload
|
|
6143
6185
|
});
|
|
6144
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6145
|
-
type:
|
|
6186
|
+
var DTODocumentationTabCreateActionOutputV2 = z220.object({
|
|
6187
|
+
type: z220.literal("DocumentationTabCreate"),
|
|
6146
6188
|
output: SuccessPayload
|
|
6147
6189
|
});
|
|
6148
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6149
|
-
type:
|
|
6190
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z220.object({
|
|
6191
|
+
type: z220.literal("DocumentationGroupUpdate"),
|
|
6150
6192
|
output: SuccessPayload
|
|
6151
6193
|
});
|
|
6152
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6153
|
-
type:
|
|
6194
|
+
var DTODocumentationGroupMoveActionOutputV2 = z220.object({
|
|
6195
|
+
type: z220.literal("DocumentationGroupMove"),
|
|
6154
6196
|
output: SuccessPayload
|
|
6155
6197
|
});
|
|
6156
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6157
|
-
type:
|
|
6198
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z220.object({
|
|
6199
|
+
type: z220.literal("DocumentationGroupDuplicate"),
|
|
6158
6200
|
output: SuccessPayload
|
|
6159
6201
|
});
|
|
6160
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6161
|
-
type:
|
|
6202
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z220.object({
|
|
6203
|
+
type: z220.literal("DocumentationGroupDelete"),
|
|
6162
6204
|
output: SuccessPayload
|
|
6163
6205
|
});
|
|
6164
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6165
|
-
type:
|
|
6206
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z220.object({
|
|
6207
|
+
type: z220.literal("DocumentationTabGroupDelete"),
|
|
6166
6208
|
output: SuccessPayload
|
|
6167
6209
|
});
|
|
6168
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6169
|
-
type:
|
|
6210
|
+
var DTODocumentationGroupCreateActionInputV2 = z220.object({
|
|
6211
|
+
type: z220.literal("DocumentationGroupCreate"),
|
|
6170
6212
|
input: DTOCreateDocumentationGroupInput
|
|
6171
6213
|
});
|
|
6172
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6173
|
-
type:
|
|
6214
|
+
var DTODocumentationTabCreateActionInputV2 = z220.object({
|
|
6215
|
+
type: z220.literal("DocumentationTabCreate"),
|
|
6174
6216
|
input: DTOCreateDocumentationTabInput
|
|
6175
6217
|
});
|
|
6176
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6177
|
-
type:
|
|
6218
|
+
var DTODocumentationGroupUpdateActionInputV2 = z220.object({
|
|
6219
|
+
type: z220.literal("DocumentationGroupUpdate"),
|
|
6178
6220
|
input: DTOUpdateDocumentationGroupInput
|
|
6179
6221
|
});
|
|
6180
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6181
|
-
type:
|
|
6222
|
+
var DTODocumentationGroupMoveActionInputV2 = z220.object({
|
|
6223
|
+
type: z220.literal("DocumentationGroupMove"),
|
|
6182
6224
|
input: DTOMoveDocumentationGroupInput
|
|
6183
6225
|
});
|
|
6184
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6185
|
-
type:
|
|
6226
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z220.object({
|
|
6227
|
+
type: z220.literal("DocumentationGroupDuplicate"),
|
|
6186
6228
|
input: DTODuplicateDocumentationGroupInput
|
|
6187
6229
|
});
|
|
6188
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6189
|
-
type:
|
|
6230
|
+
var DTODocumentationGroupDeleteActionInputV2 = z220.object({
|
|
6231
|
+
type: z220.literal("DocumentationGroupDelete"),
|
|
6190
6232
|
input: DTODeleteDocumentationGroupInput
|
|
6191
6233
|
});
|
|
6192
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6193
|
-
type:
|
|
6234
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z220.object({
|
|
6235
|
+
type: z220.literal("DocumentationTabGroupDelete"),
|
|
6194
6236
|
input: DTODeleteDocumentationTabGroupInput
|
|
6195
6237
|
});
|
|
6196
6238
|
|
|
6197
6239
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6198
|
-
import { z as
|
|
6240
|
+
import { z as z222 } from "zod";
|
|
6199
6241
|
|
|
6200
6242
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6201
|
-
import { z as
|
|
6202
|
-
var DocumentationColorV1 =
|
|
6203
|
-
aliasTo:
|
|
6204
|
-
value:
|
|
6243
|
+
import { z as z221 } from "zod";
|
|
6244
|
+
var DocumentationColorV1 = z221.object({
|
|
6245
|
+
aliasTo: z221.string().optional(),
|
|
6246
|
+
value: z221.string().optional()
|
|
6205
6247
|
});
|
|
6206
6248
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6207
6249
|
foregroundColor: true,
|
|
@@ -6210,10 +6252,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6210
6252
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6211
6253
|
backgroundColor: DocumentationColorV1.optional()
|
|
6212
6254
|
});
|
|
6213
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6214
|
-
showSidebar:
|
|
6215
|
-
isPrivate:
|
|
6216
|
-
isHidden:
|
|
6255
|
+
var DTODocumentationItemConfigurationV1 = z221.object({
|
|
6256
|
+
showSidebar: z221.boolean(),
|
|
6257
|
+
isPrivate: z221.boolean(),
|
|
6258
|
+
isHidden: z221.boolean(),
|
|
6217
6259
|
header: DTODocumentationItemHeaderV1
|
|
6218
6260
|
});
|
|
6219
6261
|
|
|
@@ -6227,27 +6269,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6227
6269
|
data: true,
|
|
6228
6270
|
shortPersistentId: true
|
|
6229
6271
|
}).extend({
|
|
6230
|
-
title:
|
|
6231
|
-
isRoot:
|
|
6232
|
-
childrenIds:
|
|
6272
|
+
title: z222.string(),
|
|
6273
|
+
isRoot: z222.boolean(),
|
|
6274
|
+
childrenIds: z222.array(z222.string()),
|
|
6233
6275
|
groupBehavior: DocumentationGroupBehavior,
|
|
6234
|
-
shortPersistentId:
|
|
6235
|
-
type:
|
|
6276
|
+
shortPersistentId: z222.string(),
|
|
6277
|
+
type: z222.literal("Group")
|
|
6236
6278
|
});
|
|
6237
6279
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6238
6280
|
configuration: DTODocumentationItemConfigurationV1
|
|
6239
6281
|
});
|
|
6240
6282
|
|
|
6241
6283
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6242
|
-
import { z as
|
|
6243
|
-
var DTODocumentationHierarchyV2 =
|
|
6244
|
-
pages:
|
|
6284
|
+
import { z as z223 } from "zod";
|
|
6285
|
+
var DTODocumentationHierarchyV2 = z223.object({
|
|
6286
|
+
pages: z223.array(
|
|
6245
6287
|
DTODocumentationPageV2.extend({
|
|
6246
6288
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6247
6289
|
draftState: DTODocumentationDraftState.optional()
|
|
6248
6290
|
})
|
|
6249
6291
|
),
|
|
6250
|
-
groups:
|
|
6292
|
+
groups: z223.array(
|
|
6251
6293
|
DTODocumentationGroupV2.extend({
|
|
6252
6294
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6253
6295
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6256,84 +6298,84 @@ var DTODocumentationHierarchyV2 = z222.object({
|
|
|
6256
6298
|
});
|
|
6257
6299
|
|
|
6258
6300
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6259
|
-
import { z as
|
|
6260
|
-
var SuccessPayload2 =
|
|
6261
|
-
success:
|
|
6301
|
+
import { z as z224 } from "zod";
|
|
6302
|
+
var SuccessPayload2 = z224.object({
|
|
6303
|
+
success: z224.literal(true)
|
|
6262
6304
|
});
|
|
6263
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6264
|
-
type:
|
|
6305
|
+
var DTODocumentationPageCreateActionOutputV2 = z224.object({
|
|
6306
|
+
type: z224.literal("DocumentationPageCreate"),
|
|
6265
6307
|
output: SuccessPayload2
|
|
6266
6308
|
});
|
|
6267
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6268
|
-
type:
|
|
6309
|
+
var DTODocumentationPageUpdateActionOutputV2 = z224.object({
|
|
6310
|
+
type: z224.literal("DocumentationPageUpdate"),
|
|
6269
6311
|
output: SuccessPayload2
|
|
6270
6312
|
});
|
|
6271
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6272
|
-
type:
|
|
6313
|
+
var DTODocumentationPageMoveActionOutputV2 = z224.object({
|
|
6314
|
+
type: z224.literal("DocumentationPageMove"),
|
|
6273
6315
|
output: SuccessPayload2
|
|
6274
6316
|
});
|
|
6275
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6276
|
-
type:
|
|
6317
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z224.object({
|
|
6318
|
+
type: z224.literal("DocumentationPageDuplicate"),
|
|
6277
6319
|
output: SuccessPayload2
|
|
6278
6320
|
});
|
|
6279
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6280
|
-
type:
|
|
6321
|
+
var DTODocumentationPageDeleteActionOutputV2 = z224.object({
|
|
6322
|
+
type: z224.literal("DocumentationPageDelete"),
|
|
6281
6323
|
output: SuccessPayload2
|
|
6282
6324
|
});
|
|
6283
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6284
|
-
type:
|
|
6325
|
+
var DTODocumentationPageRestoreActionOutput = z224.object({
|
|
6326
|
+
type: z224.literal("DocumentationPageRestore"),
|
|
6285
6327
|
output: SuccessPayload2
|
|
6286
6328
|
});
|
|
6287
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6288
|
-
type:
|
|
6329
|
+
var DTODocumentationGroupRestoreActionOutput = z224.object({
|
|
6330
|
+
type: z224.literal("DocumentationGroupRestore"),
|
|
6289
6331
|
output: SuccessPayload2
|
|
6290
6332
|
});
|
|
6291
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6292
|
-
type:
|
|
6333
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z224.object({
|
|
6334
|
+
type: z224.literal("DocumentationPageApprovalStateChange"),
|
|
6293
6335
|
output: SuccessPayload2
|
|
6294
6336
|
});
|
|
6295
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6296
|
-
type:
|
|
6337
|
+
var DTODocumentationPageCreateActionInputV2 = z224.object({
|
|
6338
|
+
type: z224.literal("DocumentationPageCreate"),
|
|
6297
6339
|
input: DTOCreateDocumentationPageInputV2
|
|
6298
6340
|
});
|
|
6299
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6300
|
-
type:
|
|
6341
|
+
var DTODocumentationPageUpdateActionInputV2 = z224.object({
|
|
6342
|
+
type: z224.literal("DocumentationPageUpdate"),
|
|
6301
6343
|
input: DTOUpdateDocumentationPageInputV2
|
|
6302
6344
|
});
|
|
6303
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6304
|
-
type:
|
|
6345
|
+
var DTODocumentationPageMoveActionInputV2 = z224.object({
|
|
6346
|
+
type: z224.literal("DocumentationPageMove"),
|
|
6305
6347
|
input: DTOMoveDocumentationPageInputV2
|
|
6306
6348
|
});
|
|
6307
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6308
|
-
type:
|
|
6349
|
+
var DTODocumentationPageDuplicateActionInputV2 = z224.object({
|
|
6350
|
+
type: z224.literal("DocumentationPageDuplicate"),
|
|
6309
6351
|
input: DTODuplicateDocumentationPageInputV2
|
|
6310
6352
|
});
|
|
6311
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6312
|
-
type:
|
|
6353
|
+
var DTODocumentationPageDeleteActionInputV2 = z224.object({
|
|
6354
|
+
type: z224.literal("DocumentationPageDelete"),
|
|
6313
6355
|
input: DTODeleteDocumentationPageInputV2
|
|
6314
6356
|
});
|
|
6315
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6316
|
-
type:
|
|
6357
|
+
var DTODocumentationPageRestoreActionInput = z224.object({
|
|
6358
|
+
type: z224.literal("DocumentationPageRestore"),
|
|
6317
6359
|
input: DTORestoreDocumentationPageInput
|
|
6318
6360
|
});
|
|
6319
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6320
|
-
type:
|
|
6361
|
+
var DTODocumentationGroupRestoreActionInput = z224.object({
|
|
6362
|
+
type: z224.literal("DocumentationGroupRestore"),
|
|
6321
6363
|
input: DTORestoreDocumentationGroupInput
|
|
6322
6364
|
});
|
|
6323
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6324
|
-
type:
|
|
6365
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z224.object({
|
|
6366
|
+
type: z224.literal("DocumentationPageApprovalStateChange"),
|
|
6325
6367
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6326
6368
|
});
|
|
6327
6369
|
|
|
6328
6370
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6329
|
-
import { z as
|
|
6371
|
+
import { z as z225 } from "zod";
|
|
6330
6372
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6331
|
-
var DTODocumentationPageContentGetResponse =
|
|
6373
|
+
var DTODocumentationPageContentGetResponse = z225.object({
|
|
6332
6374
|
pageContent: DTODocumentationPageContent
|
|
6333
6375
|
});
|
|
6334
6376
|
|
|
6335
6377
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6336
|
-
import { z as
|
|
6378
|
+
import { z as z226 } from "zod";
|
|
6337
6379
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6338
6380
|
data: true,
|
|
6339
6381
|
meta: true,
|
|
@@ -6341,32 +6383,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6341
6383
|
sortOrder: true
|
|
6342
6384
|
}).extend({
|
|
6343
6385
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6344
|
-
blocks:
|
|
6345
|
-
title:
|
|
6346
|
-
path:
|
|
6386
|
+
blocks: z226.array(PageBlockV1),
|
|
6387
|
+
title: z226.string(),
|
|
6388
|
+
path: z226.string()
|
|
6347
6389
|
});
|
|
6348
6390
|
|
|
6349
6391
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6350
|
-
import { z as
|
|
6392
|
+
import { z as z227 } from "zod";
|
|
6351
6393
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6352
|
-
var DTOFigmaNodeOrigin =
|
|
6353
|
-
sourceId:
|
|
6354
|
-
fileId:
|
|
6355
|
-
parentName:
|
|
6394
|
+
var DTOFigmaNodeOrigin = z227.object({
|
|
6395
|
+
sourceId: z227.string(),
|
|
6396
|
+
fileId: z227.string().optional(),
|
|
6397
|
+
parentName: z227.string().optional()
|
|
6356
6398
|
});
|
|
6357
|
-
var DTOFigmaNodeData =
|
|
6399
|
+
var DTOFigmaNodeData = z227.object({
|
|
6358
6400
|
// Id of the node in the Figma file
|
|
6359
|
-
figmaNodeId:
|
|
6401
|
+
figmaNodeId: z227.string(),
|
|
6360
6402
|
// Validity
|
|
6361
|
-
isValid:
|
|
6403
|
+
isValid: z227.boolean(),
|
|
6362
6404
|
// Asset data
|
|
6363
|
-
assetId:
|
|
6364
|
-
assetUrl:
|
|
6405
|
+
assetId: z227.string(),
|
|
6406
|
+
assetUrl: z227.string(),
|
|
6365
6407
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6366
6408
|
// Asset metadata
|
|
6367
|
-
assetScale:
|
|
6368
|
-
assetWidth:
|
|
6369
|
-
assetHeight:
|
|
6409
|
+
assetScale: z227.number(),
|
|
6410
|
+
assetWidth: z227.number().optional(),
|
|
6411
|
+
assetHeight: z227.number().optional()
|
|
6370
6412
|
});
|
|
6371
6413
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6372
6414
|
data: true,
|
|
@@ -6375,15 +6417,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6375
6417
|
data: DTOFigmaNodeData,
|
|
6376
6418
|
origin: DTOFigmaNodeOrigin
|
|
6377
6419
|
});
|
|
6378
|
-
var DTOFigmaNodeRenderInput =
|
|
6420
|
+
var DTOFigmaNodeRenderInput = z227.object({
|
|
6379
6421
|
/**
|
|
6380
6422
|
* Id of a design system's data source representing a linked Figma file
|
|
6381
6423
|
*/
|
|
6382
|
-
sourceId:
|
|
6424
|
+
sourceId: z227.string(),
|
|
6383
6425
|
/**
|
|
6384
6426
|
* Id of a node within the Figma file
|
|
6385
6427
|
*/
|
|
6386
|
-
figmaFileNodeId:
|
|
6428
|
+
figmaFileNodeId: z227.string(),
|
|
6387
6429
|
/**
|
|
6388
6430
|
* Format in which the node must be rendered, png by default.
|
|
6389
6431
|
*/
|
|
@@ -6391,97 +6433,97 @@ var DTOFigmaNodeRenderInput = z226.object({
|
|
|
6391
6433
|
});
|
|
6392
6434
|
|
|
6393
6435
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6394
|
-
import { z as
|
|
6395
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6396
|
-
type:
|
|
6397
|
-
figmaNodes:
|
|
6436
|
+
import { z as z228 } from "zod";
|
|
6437
|
+
var DTOFigmaNodeRenderActionOutput = z228.object({
|
|
6438
|
+
type: z228.literal("FigmaNodeRender"),
|
|
6439
|
+
figmaNodes: z228.array(DTOFigmaNode)
|
|
6398
6440
|
});
|
|
6399
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6400
|
-
type:
|
|
6441
|
+
var DTOFigmaNodeRenderActionInput = z228.object({
|
|
6442
|
+
type: z228.literal("FigmaNodeRender"),
|
|
6401
6443
|
input: DTOFigmaNodeRenderInput.array()
|
|
6402
6444
|
});
|
|
6403
6445
|
|
|
6404
6446
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6405
|
-
import { z as
|
|
6447
|
+
import { z as z230 } from "zod";
|
|
6406
6448
|
|
|
6407
6449
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6408
|
-
import { z as
|
|
6450
|
+
import { z as z229 } from "zod";
|
|
6409
6451
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6410
|
-
var DTOElementPropertyDefinition =
|
|
6411
|
-
id:
|
|
6412
|
-
designSystemVersionId:
|
|
6452
|
+
var DTOElementPropertyDefinition = z229.object({
|
|
6453
|
+
id: z229.string(),
|
|
6454
|
+
designSystemVersionId: z229.string(),
|
|
6413
6455
|
meta: ObjectMeta,
|
|
6414
|
-
persistentId:
|
|
6456
|
+
persistentId: z229.string(),
|
|
6415
6457
|
type: ElementPropertyTypeSchema,
|
|
6416
6458
|
targetElementType: ElementPropertyTargetType,
|
|
6417
|
-
codeName:
|
|
6418
|
-
options:
|
|
6459
|
+
codeName: z229.string().regex(CODE_NAME_REGEX2),
|
|
6460
|
+
options: z229.array(ElementPropertyDefinitionOption).optional(),
|
|
6419
6461
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6420
6462
|
});
|
|
6421
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6422
|
-
definitions:
|
|
6463
|
+
var DTOElementPropertyDefinitionsGetResponse = z229.object({
|
|
6464
|
+
definitions: z229.array(DTOElementPropertyDefinition)
|
|
6423
6465
|
});
|
|
6424
6466
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6425
6467
|
id: true,
|
|
6426
6468
|
designSystemVersionId: true
|
|
6427
6469
|
});
|
|
6428
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6429
|
-
id:
|
|
6430
|
-
name:
|
|
6431
|
-
description:
|
|
6432
|
-
codeName:
|
|
6433
|
-
options:
|
|
6470
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z229.object({
|
|
6471
|
+
id: z229.string(),
|
|
6472
|
+
name: z229.string().optional(),
|
|
6473
|
+
description: z229.string().optional(),
|
|
6474
|
+
codeName: z229.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6475
|
+
options: z229.array(ElementPropertyDefinitionOption).optional()
|
|
6434
6476
|
});
|
|
6435
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6436
|
-
id:
|
|
6477
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z229.object({
|
|
6478
|
+
id: z229.string()
|
|
6437
6479
|
});
|
|
6438
6480
|
|
|
6439
6481
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6440
|
-
var SuccessPayload3 =
|
|
6441
|
-
success:
|
|
6482
|
+
var SuccessPayload3 = z230.object({
|
|
6483
|
+
success: z230.literal(true)
|
|
6442
6484
|
});
|
|
6443
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6444
|
-
type:
|
|
6485
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z230.object({
|
|
6486
|
+
type: z230.literal("PropertyDefinitionCreate"),
|
|
6445
6487
|
definition: DTOElementPropertyDefinition
|
|
6446
6488
|
});
|
|
6447
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6448
|
-
type:
|
|
6489
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z230.object({
|
|
6490
|
+
type: z230.literal("PropertyDefinitionUpdate"),
|
|
6449
6491
|
definition: DTOElementPropertyDefinition
|
|
6450
6492
|
});
|
|
6451
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6452
|
-
type:
|
|
6493
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z230.object({
|
|
6494
|
+
type: z230.literal("PropertyDefinitionDelete"),
|
|
6453
6495
|
output: SuccessPayload3
|
|
6454
6496
|
});
|
|
6455
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6456
|
-
type:
|
|
6497
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z230.object({
|
|
6498
|
+
type: z230.literal("PropertyDefinitionCreate"),
|
|
6457
6499
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6458
6500
|
});
|
|
6459
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6460
|
-
type:
|
|
6501
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z230.object({
|
|
6502
|
+
type: z230.literal("PropertyDefinitionUpdate"),
|
|
6461
6503
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6462
6504
|
});
|
|
6463
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6464
|
-
type:
|
|
6505
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z230.object({
|
|
6506
|
+
type: z230.literal("PropertyDefinitionDelete"),
|
|
6465
6507
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6466
6508
|
});
|
|
6467
6509
|
|
|
6468
6510
|
// src/api/dto/elements/properties/property-values.ts
|
|
6469
|
-
import { z as
|
|
6470
|
-
var DTOElementPropertyValue =
|
|
6471
|
-
id:
|
|
6472
|
-
designSystemVersionId:
|
|
6473
|
-
definitionId:
|
|
6474
|
-
targetElementId:
|
|
6475
|
-
value:
|
|
6476
|
-
valuePreview:
|
|
6511
|
+
import { z as z231 } from "zod";
|
|
6512
|
+
var DTOElementPropertyValue = z231.object({
|
|
6513
|
+
id: z231.string(),
|
|
6514
|
+
designSystemVersionId: z231.string(),
|
|
6515
|
+
definitionId: z231.string(),
|
|
6516
|
+
targetElementId: z231.string(),
|
|
6517
|
+
value: z231.union([z231.string(), z231.number(), z231.boolean()]).optional(),
|
|
6518
|
+
valuePreview: z231.string().optional()
|
|
6477
6519
|
});
|
|
6478
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6479
|
-
values:
|
|
6520
|
+
var DTOElementPropertyValuesGetResponse = z231.object({
|
|
6521
|
+
values: z231.array(DTOElementPropertyValue)
|
|
6480
6522
|
});
|
|
6481
6523
|
|
|
6482
6524
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6483
|
-
import { z as
|
|
6484
|
-
var DTOElementActionOutput =
|
|
6525
|
+
import { z as z232 } from "zod";
|
|
6526
|
+
var DTOElementActionOutput = z232.discriminatedUnion("type", [
|
|
6485
6527
|
// Documentation pages
|
|
6486
6528
|
DTODocumentationPageCreateActionOutputV2,
|
|
6487
6529
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6508,7 +6550,7 @@ var DTOElementActionOutput = z231.discriminatedUnion("type", [
|
|
|
6508
6550
|
// Approvals
|
|
6509
6551
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6510
6552
|
]);
|
|
6511
|
-
var DTOElementActionInput =
|
|
6553
|
+
var DTOElementActionInput = z232.discriminatedUnion("type", [
|
|
6512
6554
|
// Documentation pages
|
|
6513
6555
|
DTODocumentationPageCreateActionInputV2,
|
|
6514
6556
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6537,60 +6579,60 @@ var DTOElementActionInput = z231.discriminatedUnion("type", [
|
|
|
6537
6579
|
]);
|
|
6538
6580
|
|
|
6539
6581
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6540
|
-
import { z as
|
|
6541
|
-
var DTOElementsGetTypeFilter =
|
|
6542
|
-
var DTOElementsGetQuerySchema =
|
|
6543
|
-
types:
|
|
6582
|
+
import { z as z233 } from "zod";
|
|
6583
|
+
var DTOElementsGetTypeFilter = z233.enum(["FigmaNode"]);
|
|
6584
|
+
var DTOElementsGetQuerySchema = z233.object({
|
|
6585
|
+
types: z233.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6544
6586
|
});
|
|
6545
|
-
var DTOElementsGetOutput =
|
|
6546
|
-
figmaNodes:
|
|
6587
|
+
var DTOElementsGetOutput = z233.object({
|
|
6588
|
+
figmaNodes: z233.array(DTOFigmaNode).optional()
|
|
6547
6589
|
});
|
|
6548
6590
|
|
|
6549
6591
|
// src/api/dto/figma-components/assets/download.ts
|
|
6550
|
-
import { z as
|
|
6551
|
-
var DTOAssetRenderConfiguration =
|
|
6552
|
-
prefix:
|
|
6553
|
-
suffix:
|
|
6554
|
-
scale:
|
|
6555
|
-
format:
|
|
6556
|
-
});
|
|
6557
|
-
var DTORenderedAssetFile =
|
|
6558
|
-
assetId:
|
|
6559
|
-
fileName:
|
|
6560
|
-
sourceUrl:
|
|
6592
|
+
import { z as z234 } from "zod";
|
|
6593
|
+
var DTOAssetRenderConfiguration = z234.object({
|
|
6594
|
+
prefix: z234.string().optional(),
|
|
6595
|
+
suffix: z234.string().optional(),
|
|
6596
|
+
scale: z234.enum(["x1", "x2", "x3", "x4"]),
|
|
6597
|
+
format: z234.enum(["png", "pdf", "svg"])
|
|
6598
|
+
});
|
|
6599
|
+
var DTORenderedAssetFile = z234.object({
|
|
6600
|
+
assetId: z234.string(),
|
|
6601
|
+
fileName: z234.string(),
|
|
6602
|
+
sourceUrl: z234.string(),
|
|
6561
6603
|
settings: DTOAssetRenderConfiguration,
|
|
6562
|
-
originalName:
|
|
6604
|
+
originalName: z234.string()
|
|
6563
6605
|
});
|
|
6564
|
-
var DTODownloadAssetsRequest =
|
|
6565
|
-
persistentIds:
|
|
6606
|
+
var DTODownloadAssetsRequest = z234.object({
|
|
6607
|
+
persistentIds: z234.array(z234.string().uuid()).optional(),
|
|
6566
6608
|
settings: DTOAssetRenderConfiguration.array()
|
|
6567
6609
|
});
|
|
6568
|
-
var DTODownloadAssetsResponse =
|
|
6610
|
+
var DTODownloadAssetsResponse = z234.object({
|
|
6569
6611
|
items: DTORenderedAssetFile.array()
|
|
6570
6612
|
});
|
|
6571
6613
|
|
|
6572
6614
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6573
|
-
import { z as
|
|
6574
|
-
var DTOLiveblocksAuthResponse =
|
|
6575
|
-
token:
|
|
6615
|
+
import { z as z235 } from "zod";
|
|
6616
|
+
var DTOLiveblocksAuthResponse = z235.object({
|
|
6617
|
+
token: z235.string()
|
|
6576
6618
|
});
|
|
6577
6619
|
|
|
6578
6620
|
// src/api/dto/users/authenticated-user.ts
|
|
6579
|
-
import { z as
|
|
6621
|
+
import { z as z237 } from "zod";
|
|
6580
6622
|
|
|
6581
6623
|
// src/api/dto/users/user.ts
|
|
6582
|
-
import { z as
|
|
6583
|
-
var DTOUserProfile =
|
|
6584
|
-
name:
|
|
6585
|
-
nickname:
|
|
6586
|
-
avatar:
|
|
6587
|
-
});
|
|
6588
|
-
var DTOUser =
|
|
6589
|
-
id:
|
|
6590
|
-
email:
|
|
6624
|
+
import { z as z236 } from "zod";
|
|
6625
|
+
var DTOUserProfile = z236.object({
|
|
6626
|
+
name: z236.string(),
|
|
6627
|
+
nickname: z236.string().optional(),
|
|
6628
|
+
avatar: z236.string().optional()
|
|
6629
|
+
});
|
|
6630
|
+
var DTOUser = z236.object({
|
|
6631
|
+
id: z236.string(),
|
|
6632
|
+
email: z236.string(),
|
|
6591
6633
|
profile: DTOUserProfile
|
|
6592
6634
|
});
|
|
6593
|
-
var DTOUserGetResponse =
|
|
6635
|
+
var DTOUserGetResponse = z236.object({
|
|
6594
6636
|
user: DTOUser
|
|
6595
6637
|
});
|
|
6596
6638
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -6599,39 +6641,38 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
6599
6641
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6600
6642
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6601
6643
|
var DTOUserSource = UserSource;
|
|
6602
|
-
var DTOUserOnboarding =
|
|
6603
|
-
companyName:
|
|
6604
|
-
numberOfPeopleInOrg:
|
|
6605
|
-
numberOfPeopleInDesignTeam:
|
|
6644
|
+
var DTOUserOnboarding = z237.object({
|
|
6645
|
+
companyName: z237.string().optional(),
|
|
6646
|
+
numberOfPeopleInOrg: z237.string().optional(),
|
|
6647
|
+
numberOfPeopleInDesignTeam: z237.string().optional(),
|
|
6606
6648
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6607
|
-
jobTitle:
|
|
6608
|
-
phase:
|
|
6649
|
+
jobTitle: z237.string().optional(),
|
|
6650
|
+
phase: z237.string().optional(),
|
|
6609
6651
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6610
|
-
designSystemName:
|
|
6611
|
-
defaultDestination:
|
|
6612
|
-
isPageDraftOnboardingFinished:
|
|
6652
|
+
designSystemName: z237.string().optional(),
|
|
6653
|
+
defaultDestination: z237.string().optional(),
|
|
6654
|
+
isPageDraftOnboardingFinished: z237.boolean().optional()
|
|
6613
6655
|
});
|
|
6614
6656
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6615
6657
|
onboarding: DTOUserOnboarding.optional()
|
|
6616
6658
|
});
|
|
6617
6659
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6618
6660
|
profile: DTOAuthenticatedUserProfile,
|
|
6619
|
-
createdAt:
|
|
6620
|
-
loggedOutAt:
|
|
6661
|
+
createdAt: z237.coerce.date(),
|
|
6662
|
+
loggedOutAt: z237.coerce.date().optional(),
|
|
6621
6663
|
source: DTOUserSource.optional()
|
|
6622
6664
|
});
|
|
6623
|
-
var DTOAuthenticatedUserResponse =
|
|
6665
|
+
var DTOAuthenticatedUserResponse = z237.object({
|
|
6624
6666
|
user: DTOAuthenticatedUser
|
|
6625
6667
|
});
|
|
6626
6668
|
|
|
6627
6669
|
// src/api/dto/users/update.ts
|
|
6628
|
-
import { z as
|
|
6629
|
-
var DTOUserProfileUpdateResponse =
|
|
6670
|
+
import { z as z238 } from "zod";
|
|
6671
|
+
var DTOUserProfileUpdateResponse = z238.object({
|
|
6630
6672
|
user: User
|
|
6631
6673
|
});
|
|
6632
6674
|
|
|
6633
6675
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
6634
|
-
import { z as z238 } from "zod";
|
|
6635
6676
|
var BrandsEndpoint = class {
|
|
6636
6677
|
constructor(requestExecutor) {
|
|
6637
6678
|
this.requestExecutor = requestExecutor;
|
|
@@ -6639,28 +6680,26 @@ var BrandsEndpoint = class {
|
|
|
6639
6680
|
get(designSystemId, versionId, brandId) {
|
|
6640
6681
|
return this.requestExecutor.json(
|
|
6641
6682
|
`/design-systems/${designSystemId}/versions/${versionId}/brands/${brandId}`,
|
|
6642
|
-
|
|
6683
|
+
DTOBrandGetResponse
|
|
6643
6684
|
);
|
|
6644
6685
|
}
|
|
6645
6686
|
list(designSystemId, versionId) {
|
|
6646
|
-
return this.requestExecutor.json(
|
|
6687
|
+
return this.requestExecutor.json(
|
|
6688
|
+
`/design-systems/${designSystemId}/versions/${versionId}/brands`,
|
|
6689
|
+
DTOBrandsListResponse
|
|
6690
|
+
);
|
|
6647
6691
|
}
|
|
6648
6692
|
};
|
|
6649
6693
|
|
|
6650
|
-
// src/api/endpoints/design-system/versions/
|
|
6651
|
-
|
|
6652
|
-
var OverridesEndpoint = class {
|
|
6694
|
+
// src/api/endpoints/design-system/versions/import-jobs.ts
|
|
6695
|
+
var ImportJobsEndpoint = class {
|
|
6653
6696
|
constructor(requestExecutor) {
|
|
6654
6697
|
this.requestExecutor = requestExecutor;
|
|
6655
6698
|
}
|
|
6656
|
-
|
|
6699
|
+
get(designSystemId, versionId, jobId) {
|
|
6657
6700
|
return this.requestExecutor.json(
|
|
6658
|
-
`/design-systems/${
|
|
6659
|
-
|
|
6660
|
-
{
|
|
6661
|
-
method: "POST",
|
|
6662
|
-
body
|
|
6663
|
-
}
|
|
6701
|
+
`/design-systems/${designSystemId}/versions/${versionId}/import-jobs/${jobId}`,
|
|
6702
|
+
DTOImportJobResponse
|
|
6664
6703
|
);
|
|
6665
6704
|
}
|
|
6666
6705
|
};
|
|
@@ -6679,6 +6718,26 @@ var VersionStatsEndpoint = class {
|
|
|
6679
6718
|
|
|
6680
6719
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
6681
6720
|
import { z as z240 } from "zod";
|
|
6721
|
+
|
|
6722
|
+
// src/api/endpoints/design-system/versions/overrides.ts
|
|
6723
|
+
import { z as z239 } from "zod";
|
|
6724
|
+
var OverridesEndpoint = class {
|
|
6725
|
+
constructor(requestExecutor) {
|
|
6726
|
+
this.requestExecutor = requestExecutor;
|
|
6727
|
+
}
|
|
6728
|
+
create(dsId, versionId, themeId, body) {
|
|
6729
|
+
return this.requestExecutor.json(
|
|
6730
|
+
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
6731
|
+
z239.any(),
|
|
6732
|
+
{
|
|
6733
|
+
method: "POST",
|
|
6734
|
+
body
|
|
6735
|
+
}
|
|
6736
|
+
);
|
|
6737
|
+
}
|
|
6738
|
+
};
|
|
6739
|
+
|
|
6740
|
+
// src/api/endpoints/design-system/versions/themes.ts
|
|
6682
6741
|
var ThemesEndpoint = class {
|
|
6683
6742
|
constructor(requestExecutor) {
|
|
6684
6743
|
this.requestExecutor = requestExecutor;
|
|
@@ -6712,34 +6771,18 @@ var TokensEndpoint = class {
|
|
|
6712
6771
|
}
|
|
6713
6772
|
};
|
|
6714
6773
|
|
|
6715
|
-
// src/api/endpoints/design-system/
|
|
6716
|
-
var DesignSystemMembersEndpoint = class {
|
|
6717
|
-
constructor(requestExecutor) {
|
|
6718
|
-
this.requestExecutor = requestExecutor;
|
|
6719
|
-
}
|
|
6720
|
-
list(dsId) {
|
|
6721
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMemberListResponse, {
|
|
6722
|
-
method: "GET"
|
|
6723
|
-
});
|
|
6724
|
-
}
|
|
6725
|
-
update(dsId, body) {
|
|
6726
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMembersUpdateResponse, {
|
|
6727
|
-
method: "POST",
|
|
6728
|
-
body
|
|
6729
|
-
});
|
|
6730
|
-
}
|
|
6731
|
-
};
|
|
6732
|
-
|
|
6733
|
-
// src/api/endpoints/design-system/design-system-versions.ts
|
|
6774
|
+
// src/api/endpoints/design-system/versions.ts
|
|
6734
6775
|
var DesignSystemVersionsEndpoint = class {
|
|
6735
6776
|
constructor(requestExecutor) {
|
|
6736
6777
|
this.requestExecutor = requestExecutor;
|
|
6737
6778
|
__publicField(this, "themes");
|
|
6738
6779
|
__publicField(this, "brands");
|
|
6780
|
+
__publicField(this, "importJobs");
|
|
6739
6781
|
__publicField(this, "tokens");
|
|
6740
6782
|
__publicField(this, "stats");
|
|
6741
6783
|
this.themes = new ThemesEndpoint(requestExecutor);
|
|
6742
6784
|
this.brands = new BrandsEndpoint(requestExecutor);
|
|
6785
|
+
this.importJobs = new ImportJobsEndpoint(requestExecutor);
|
|
6743
6786
|
this.tokens = new TokensEndpoint(requestExecutor);
|
|
6744
6787
|
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
6745
6788
|
}
|
|
@@ -6748,15 +6791,50 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
6748
6791
|
}
|
|
6749
6792
|
};
|
|
6750
6793
|
|
|
6794
|
+
// src/api/endpoints/design-system/bff.ts
|
|
6795
|
+
var DesignSystemBffEndpoint = class {
|
|
6796
|
+
constructor(requestExecutor) {
|
|
6797
|
+
this.requestExecutor = requestExecutor;
|
|
6798
|
+
}
|
|
6799
|
+
import(dsId, payload) {
|
|
6800
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/bff/import`, DTOImportJobResponse, {
|
|
6801
|
+
method: "POST",
|
|
6802
|
+
body: payload
|
|
6803
|
+
});
|
|
6804
|
+
}
|
|
6805
|
+
};
|
|
6806
|
+
|
|
6751
6807
|
// src/api/endpoints/design-system/design-systems.ts
|
|
6752
6808
|
import { z as z242 } from "zod";
|
|
6809
|
+
|
|
6810
|
+
// src/api/endpoints/design-system/members.ts
|
|
6811
|
+
var DesignSystemMembersEndpoint = class {
|
|
6812
|
+
constructor(requestExecutor) {
|
|
6813
|
+
this.requestExecutor = requestExecutor;
|
|
6814
|
+
}
|
|
6815
|
+
list(dsId) {
|
|
6816
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMemberListResponse, {
|
|
6817
|
+
method: "GET"
|
|
6818
|
+
});
|
|
6819
|
+
}
|
|
6820
|
+
update(dsId, body) {
|
|
6821
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMembersUpdateResponse, {
|
|
6822
|
+
method: "POST",
|
|
6823
|
+
body
|
|
6824
|
+
});
|
|
6825
|
+
}
|
|
6826
|
+
};
|
|
6827
|
+
|
|
6828
|
+
// src/api/endpoints/design-system/design-systems.ts
|
|
6753
6829
|
var DesignSystemsEndpoint = class {
|
|
6754
6830
|
constructor(requestExecutor) {
|
|
6755
6831
|
this.requestExecutor = requestExecutor;
|
|
6756
6832
|
__publicField(this, "members");
|
|
6757
6833
|
__publicField(this, "versions");
|
|
6834
|
+
__publicField(this, "bff");
|
|
6758
6835
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
6759
6836
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
6837
|
+
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
6760
6838
|
}
|
|
6761
6839
|
create(body) {
|
|
6762
6840
|
return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
|
|
@@ -6789,6 +6867,16 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
6789
6867
|
constructor(requestExecutor) {
|
|
6790
6868
|
this.requestExecutor = requestExecutor;
|
|
6791
6869
|
}
|
|
6870
|
+
update(workspaceId, invitationId, body) {
|
|
6871
|
+
return this.requestExecutor.json(
|
|
6872
|
+
`/workspaces/${workspaceId}/invitations/${invitationId}/role`,
|
|
6873
|
+
DTOWorkspaceInvitationUpdateResponse,
|
|
6874
|
+
{
|
|
6875
|
+
method: "PUT",
|
|
6876
|
+
body
|
|
6877
|
+
}
|
|
6878
|
+
);
|
|
6879
|
+
}
|
|
6792
6880
|
list(workspaceId) {
|
|
6793
6881
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/invitations`, DTOWorkspaceInvitationsResponse, {
|
|
6794
6882
|
method: "GET"
|
|
@@ -11921,13 +12009,15 @@ export {
|
|
|
11921
12009
|
BackendVersionRoomYDoc,
|
|
11922
12010
|
BlockDefinitionUtils,
|
|
11923
12011
|
BlockParsingUtils,
|
|
11924
|
-
BrandsEndpoint,
|
|
11925
12012
|
DTOAppBootstrapDataQuery,
|
|
11926
12013
|
DTOAppBootstrapDataResponse,
|
|
11927
12014
|
DTOAssetRenderConfiguration,
|
|
11928
12015
|
DTOAuthenticatedUser,
|
|
11929
12016
|
DTOAuthenticatedUserProfile,
|
|
11930
12017
|
DTOAuthenticatedUserResponse,
|
|
12018
|
+
DTOBffFigmaImportRequestBody,
|
|
12019
|
+
DTOBffImportRequestBody,
|
|
12020
|
+
DTOBffUploadImportRequestBody,
|
|
11931
12021
|
DTOBrand,
|
|
11932
12022
|
DTOBrandCreateResponse,
|
|
11933
12023
|
DTOBrandGetResponse,
|
|
@@ -12082,6 +12172,8 @@ export {
|
|
|
12082
12172
|
DTOGitOrganization,
|
|
12083
12173
|
DTOGitProject,
|
|
12084
12174
|
DTOGitRepository,
|
|
12175
|
+
DTOImportJob,
|
|
12176
|
+
DTOImportJobResponse,
|
|
12085
12177
|
DTOIntegration,
|
|
12086
12178
|
DTOIntegrationCredentials,
|
|
12087
12179
|
DTOIntegrationOAuthGetResponse,
|
|
@@ -12144,12 +12236,15 @@ export {
|
|
|
12144
12236
|
DTOWorkspaceIntegrationOauthInput,
|
|
12145
12237
|
DTOWorkspaceIntegrationPATInput,
|
|
12146
12238
|
DTOWorkspaceInvitationInput,
|
|
12239
|
+
DTOWorkspaceInvitationUpdateResponse,
|
|
12147
12240
|
DTOWorkspaceInvitationsListInput,
|
|
12148
12241
|
DTOWorkspaceInvitationsResponse,
|
|
12242
|
+
DTOWorkspaceInviteUpdate,
|
|
12149
12243
|
DTOWorkspaceMember,
|
|
12150
12244
|
DTOWorkspaceMembersListResponse,
|
|
12151
12245
|
DTOWorkspaceResponse,
|
|
12152
12246
|
DTOWorkspaceRole,
|
|
12247
|
+
DesignSystemBffEndpoint,
|
|
12153
12248
|
DesignSystemMembersEndpoint,
|
|
12154
12249
|
DesignSystemVersionsEndpoint,
|
|
12155
12250
|
DesignSystemsEndpoint,
|
|
@@ -12160,19 +12255,15 @@ export {
|
|
|
12160
12255
|
ListTreeBuilder,
|
|
12161
12256
|
NpmRegistryInput,
|
|
12162
12257
|
ObjectMeta2 as ObjectMeta,
|
|
12163
|
-
OverridesEndpoint,
|
|
12164
12258
|
PageBlockEditorModel,
|
|
12165
12259
|
PageSectionEditorModel,
|
|
12166
12260
|
RequestExecutor,
|
|
12167
12261
|
RequestExecutorError,
|
|
12168
12262
|
SupernovaApiClient,
|
|
12169
|
-
ThemesEndpoint,
|
|
12170
12263
|
TokenCollectionsEndpoint,
|
|
12171
|
-
TokensEndpoint,
|
|
12172
12264
|
UsersEndpoint,
|
|
12173
12265
|
VersionRoomBaseYDoc,
|
|
12174
12266
|
VersionSQSPayload,
|
|
12175
|
-
VersionStatsEndpoint,
|
|
12176
12267
|
WorkspaceConfigurationPayload,
|
|
12177
12268
|
WorkspaceInvitationsEndpoint,
|
|
12178
12269
|
WorkspaceMembersEndpoint,
|