@supernova-studio/client 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3731 -718
- package/dist/index.d.ts +3731 -718
- package/dist/index.js +376 -205
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1261 -1090
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -683,13 +683,33 @@ var CodeComponent = z23.object({
|
|
|
683
683
|
componentPath: z23.string(),
|
|
684
684
|
description: z23.string(),
|
|
685
685
|
properties: z23.record(z23.string(), CodeComponentProperty),
|
|
686
|
-
tags: z23.record(z23.string(), z23.string()).
|
|
686
|
+
tags: z23.record(z23.string(), z23.string()).nullable()
|
|
687
687
|
});
|
|
688
688
|
var CodeComponentUpsertResponse = z23.object({
|
|
689
689
|
created: z23.number().nonnegative(),
|
|
690
690
|
updated: z23.number().nonnegative(),
|
|
691
691
|
deleted: z23.number().nonnegative()
|
|
692
692
|
});
|
|
693
|
+
var RegistryType = z23.enum(["Npm", "Github", "Artifactory", "Azure", "Custom"]);
|
|
694
|
+
var Registry = z23.object({
|
|
695
|
+
type: RegistryType,
|
|
696
|
+
url: z23.string().optional(),
|
|
697
|
+
accessToken: z23.string().optional(),
|
|
698
|
+
scope: z23.string(),
|
|
699
|
+
authConfig: z23.record(z23.string()).optional()
|
|
700
|
+
});
|
|
701
|
+
var DependencyDefinition = z23.object({
|
|
702
|
+
name: z23.string(),
|
|
703
|
+
version: z23.string().optional()
|
|
704
|
+
});
|
|
705
|
+
var AnalyzeCodeComponentsInPackage = z23.object({
|
|
706
|
+
designSystemId: z23.string(),
|
|
707
|
+
versionId: z23.string(),
|
|
708
|
+
mainPackage: DependencyDefinition,
|
|
709
|
+
dependencies: z23.array(DependencyDefinition).optional(),
|
|
710
|
+
registries: Registry.array(),
|
|
711
|
+
userAccessToken: z23.string()
|
|
712
|
+
});
|
|
693
713
|
var FigmaFileDownloadScope = z24.object({
|
|
694
714
|
styles: z24.boolean(),
|
|
695
715
|
components: z24.boolean(),
|
|
@@ -3327,6 +3347,11 @@ var SourceImportComponentSummary = z90.object({
|
|
|
3327
3347
|
componentAssetsUpdated: zeroNumberByDefault(),
|
|
3328
3348
|
componentAssetsDeleted: zeroNumberByDefault()
|
|
3329
3349
|
});
|
|
3350
|
+
var SourceImportStorybookSummary = z90.object({
|
|
3351
|
+
created: zeroNumberByDefault(),
|
|
3352
|
+
updated: zeroNumberByDefault(),
|
|
3353
|
+
deleted: zeroNumberByDefault()
|
|
3354
|
+
});
|
|
3330
3355
|
var SourceImportFrameSummary = z90.object({
|
|
3331
3356
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
3332
3357
|
invalidReferencesCount: nullishToOptional(z90.number().optional())
|
|
@@ -3412,9 +3437,12 @@ var DataSourceStorybookRemote = z91.object({
|
|
|
3412
3437
|
ownerId: z91.string().optional(),
|
|
3413
3438
|
lastImportedAt: z91.coerce.date().optional(),
|
|
3414
3439
|
lastImportedSuccessfully: z91.coerce.date().optional(),
|
|
3440
|
+
lastImportedResult: SourceImportStorybookSummary.optional(),
|
|
3415
3441
|
isFailed: z91.boolean(),
|
|
3416
3442
|
storiesCount: z91.number(),
|
|
3417
|
-
docsCount: z91.number()
|
|
3443
|
+
docsCount: z91.number(),
|
|
3444
|
+
description: z91.string().optional(),
|
|
3445
|
+
isUsingVpn: z91.boolean().optional()
|
|
3418
3446
|
});
|
|
3419
3447
|
var DataSourceRemote = z91.discriminatedUnion("type", [
|
|
3420
3448
|
DataSourceFigmaRemote,
|
|
@@ -4622,8 +4650,7 @@ var DocumentationPageRoom = Entity.extend({
|
|
|
4622
4650
|
isDirty: z161.boolean()
|
|
4623
4651
|
});
|
|
4624
4652
|
var DocumentationPageRoomState = z161.object({
|
|
4625
|
-
pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
|
|
4626
|
-
itemConfiguration: DocumentationItemConfigurationV2
|
|
4653
|
+
pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
|
|
4627
4654
|
});
|
|
4628
4655
|
var DocumentationPageRoomRoomUpdate = z161.object({
|
|
4629
4656
|
page: DocumentationPageV2,
|
|
@@ -5644,7 +5671,7 @@ var DTOPagination = z193.object({
|
|
|
5644
5671
|
});
|
|
5645
5672
|
|
|
5646
5673
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5647
|
-
import { z as
|
|
5674
|
+
import { z as z234 } from "zod";
|
|
5648
5675
|
|
|
5649
5676
|
// src/api/dto/design-systems/brand.ts
|
|
5650
5677
|
import { z as z194 } from "zod";
|
|
@@ -5687,12 +5714,23 @@ var DTOCodeComponentCreateInput = z195.object({
|
|
|
5687
5714
|
componentPath: z195.string(),
|
|
5688
5715
|
description: z195.string(),
|
|
5689
5716
|
properties: z195.record(z195.string(), DTOCodeComponentProperty),
|
|
5690
|
-
tags: z195.record(z195.string(), z195.string()).
|
|
5717
|
+
tags: z195.record(z195.string(), z195.string()).nullable()
|
|
5691
5718
|
});
|
|
5692
5719
|
var DTOCodeComponentsCreateInput = z195.object({
|
|
5693
5720
|
codeComponents: DTOCodeComponentCreateInput.array()
|
|
5694
5721
|
});
|
|
5695
5722
|
var DTOCodeComponentUpsertResponse = CodeComponentUpsertResponse;
|
|
5723
|
+
var DTOAnalyzeCodeComponentsInPackage = AnalyzeCodeComponentsInPackage;
|
|
5724
|
+
var DTODependencyDefinition = DependencyDefinition;
|
|
5725
|
+
var DTORegistry = Registry;
|
|
5726
|
+
var DTOAnalyzeCodeComponentsInPackageResponse = z195.object({
|
|
5727
|
+
ok: z195.literal(true)
|
|
5728
|
+
});
|
|
5729
|
+
var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit({
|
|
5730
|
+
designSystemId: true,
|
|
5731
|
+
versionId: true,
|
|
5732
|
+
userAccessToken: true
|
|
5733
|
+
});
|
|
5696
5734
|
|
|
5697
5735
|
// src/api/dto/design-systems/component.ts
|
|
5698
5736
|
import { z as z196 } from "zod";
|
|
@@ -5880,10 +5918,13 @@ var DTODataSourceStorybook = z201.object({
|
|
|
5880
5918
|
indexUrl: z201.string(),
|
|
5881
5919
|
userUrl: z201.string(),
|
|
5882
5920
|
lastImportedAt: z201.coerce.date().optional(),
|
|
5921
|
+
lastImportedResult: SourceImportStorybookSummary.optional(),
|
|
5883
5922
|
lastImportedSuccessfully: z201.coerce.date().optional(),
|
|
5884
5923
|
isFailed: z201.boolean(),
|
|
5885
5924
|
storiesCount: z201.number(),
|
|
5886
|
-
docsCount: z201.number()
|
|
5925
|
+
docsCount: z201.number(),
|
|
5926
|
+
description: z201.string().optional(),
|
|
5927
|
+
isUsingVpn: z201.boolean().optional()
|
|
5887
5928
|
})
|
|
5888
5929
|
});
|
|
5889
5930
|
var DTODataSourcesStorybookResponse = z201.object({
|
|
@@ -5917,15 +5958,23 @@ var DTODataSourceFigmaImportPayload = z201.object({
|
|
|
5917
5958
|
});
|
|
5918
5959
|
var DTODataSourceStorybookCreatePayload = z201.object({
|
|
5919
5960
|
brandPersistentId: z201.string(),
|
|
5961
|
+
fileName: z201.string().optional(),
|
|
5920
5962
|
userUrl: z201.string(),
|
|
5921
5963
|
indexUrl: z201.string(),
|
|
5922
5964
|
payload: z201.unknown(),
|
|
5923
|
-
type: z201.literal(DataSourceRemoteType.Enum.Storybook)
|
|
5965
|
+
type: z201.literal(DataSourceRemoteType.Enum.Storybook),
|
|
5966
|
+
description: z201.string().optional(),
|
|
5967
|
+
isUsingVpn: z201.boolean().optional()
|
|
5924
5968
|
});
|
|
5925
5969
|
var DTOStorybookImportPayload = z201.object({
|
|
5926
5970
|
sourceId: z201.string(),
|
|
5927
5971
|
payload: z201.unknown()
|
|
5928
5972
|
});
|
|
5973
|
+
var DTOStorybookSourceUpdatePayload = z201.object({
|
|
5974
|
+
description: z201.string().nullish().optional(),
|
|
5975
|
+
isUsingVpn: z201.boolean().optional(),
|
|
5976
|
+
fileName: z201.string().optional()
|
|
5977
|
+
});
|
|
5929
5978
|
|
|
5930
5979
|
// src/api/dto/design-systems/design-system.ts
|
|
5931
5980
|
import { z as z204 } from "zod";
|
|
@@ -6178,6 +6227,24 @@ var DTODesignSystemVersionStatsQuery = z209.object({
|
|
|
6178
6227
|
|
|
6179
6228
|
// src/api/dto/design-systems/storybook.ts
|
|
6180
6229
|
import { z as z210 } from "zod";
|
|
6230
|
+
var DTOStorybookUploadUrlRequest = z210.object({
|
|
6231
|
+
name: z210.string()
|
|
6232
|
+
});
|
|
6233
|
+
var DTOStorybookUploadUrlResponse = z210.object({
|
|
6234
|
+
signedUrl: z210.string(),
|
|
6235
|
+
storybookUploadId: z210.string()
|
|
6236
|
+
});
|
|
6237
|
+
var DTOStorybookAccessTokenResponse = z210.object({
|
|
6238
|
+
accessToken: z210.string()
|
|
6239
|
+
});
|
|
6240
|
+
var DTOStorybookAccessTokenPayload = z210.object({
|
|
6241
|
+
designSystemId: z210.string(),
|
|
6242
|
+
storybookUploadId: z210.string()
|
|
6243
|
+
});
|
|
6244
|
+
var DTOStorybookUploadStatus = z210.object({
|
|
6245
|
+
status: z210.enum(["Failed", "InProgress", "Completed", "Unknown"]),
|
|
6246
|
+
timestamp: z210.number().optional()
|
|
6247
|
+
});
|
|
6181
6248
|
var DTOStorybookEntryOrigin = z210.object({
|
|
6182
6249
|
id: z210.string(),
|
|
6183
6250
|
type: z210.enum(["story", "docs"]),
|
|
@@ -6202,20 +6269,205 @@ var DTOStorybookEntryReplaceAction = z210.object({
|
|
|
6202
6269
|
var DTOStorybookEntryListResponse = z210.object({ entries: z210.array(DTOStorybookEntry) });
|
|
6203
6270
|
var DTOStorybookEntryResponse = z210.object({ entry: DTOStorybookEntry });
|
|
6204
6271
|
|
|
6205
|
-
// src/api/dto/design-systems/
|
|
6272
|
+
// src/api/dto/design-systems/user-design-systems.ts
|
|
6273
|
+
import { z as z218 } from "zod";
|
|
6274
|
+
|
|
6275
|
+
// src/api/dto/workspaces/git.ts
|
|
6206
6276
|
import { z as z211 } from "zod";
|
|
6207
|
-
var
|
|
6208
|
-
id: z211.string()
|
|
6277
|
+
var DTOGitOrganization = z211.object({
|
|
6278
|
+
id: z211.string(),
|
|
6279
|
+
name: z211.string(),
|
|
6280
|
+
url: z211.string(),
|
|
6281
|
+
slug: z211.string()
|
|
6282
|
+
});
|
|
6283
|
+
var DTOGitProject = z211.object({
|
|
6284
|
+
id: z211.string(),
|
|
6285
|
+
name: z211.string(),
|
|
6286
|
+
url: z211.string(),
|
|
6287
|
+
slug: z211.string()
|
|
6288
|
+
});
|
|
6289
|
+
var DTOGitRepository = z211.object({
|
|
6290
|
+
id: z211.string(),
|
|
6291
|
+
name: z211.string(),
|
|
6292
|
+
url: z211.string(),
|
|
6293
|
+
slug: z211.string(),
|
|
6294
|
+
defaultBranch: z211.string().optional()
|
|
6295
|
+
});
|
|
6296
|
+
var DTOGitBranch = z211.object({
|
|
6297
|
+
name: z211.string(),
|
|
6298
|
+
lastCommitId: z211.string()
|
|
6299
|
+
});
|
|
6300
|
+
|
|
6301
|
+
// src/api/dto/workspaces/integrations.ts
|
|
6302
|
+
import { z as z212 } from "zod";
|
|
6303
|
+
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6304
|
+
accessToken: true,
|
|
6305
|
+
refreshToken: true
|
|
6306
|
+
});
|
|
6307
|
+
var DTOIntegration = z212.object({
|
|
6308
|
+
id: z212.string(),
|
|
6309
|
+
workspaceId: z212.string(),
|
|
6310
|
+
type: ExtendedIntegrationType,
|
|
6311
|
+
createdAt: z212.coerce.date(),
|
|
6312
|
+
integrationCredentials: z212.array(DTOIntegrationCredentials).optional(),
|
|
6313
|
+
integrationDesignSystems: z212.array(IntegrationDesignSystem).optional()
|
|
6314
|
+
});
|
|
6315
|
+
var DTOIntegrationOAuthGetResponse = z212.object({
|
|
6316
|
+
url: z212.string()
|
|
6209
6317
|
});
|
|
6210
|
-
var
|
|
6318
|
+
var DTOIntegrationPostResponse = z212.object({
|
|
6319
|
+
integration: DTOIntegration
|
|
6320
|
+
});
|
|
6321
|
+
var DTOIntegrationsGetListResponse = z212.object({
|
|
6322
|
+
integrations: DTOIntegration.array()
|
|
6323
|
+
});
|
|
6324
|
+
|
|
6325
|
+
// src/api/dto/workspaces/invitations.ts
|
|
6326
|
+
import { z as z213 } from "zod";
|
|
6327
|
+
var DTOWorkspaceInvitationInput = z213.object({
|
|
6328
|
+
email: z213.string().email(),
|
|
6329
|
+
role: WorkspaceRoleSchema
|
|
6330
|
+
});
|
|
6331
|
+
var DTOWorkspaceInvitationsListInput = z213.object({
|
|
6332
|
+
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6333
|
+
designSystemId: z213.string().optional()
|
|
6334
|
+
});
|
|
6335
|
+
var DTOWorkspaceInvitationsResponse = z213.object({
|
|
6336
|
+
invitations: WorkspaceInvitation.array()
|
|
6337
|
+
});
|
|
6338
|
+
var DTOWorkspaceInviteUpdate = z213.object({
|
|
6339
|
+
role: WorkspaceRoleSchema
|
|
6340
|
+
});
|
|
6341
|
+
var DTOWorkspaceInvitationUpdateResponse = z213.object({
|
|
6342
|
+
invitation: WorkspaceInvitation
|
|
6343
|
+
});
|
|
6344
|
+
|
|
6345
|
+
// src/api/dto/workspaces/membership.ts
|
|
6346
|
+
import { z as z216 } from "zod";
|
|
6347
|
+
|
|
6348
|
+
// src/api/dto/workspaces/workspace.ts
|
|
6349
|
+
import { z as z215 } from "zod";
|
|
6350
|
+
|
|
6351
|
+
// src/api/dto/workspaces/npm-registry.ts
|
|
6352
|
+
import { z as z214 } from "zod";
|
|
6353
|
+
var DTONpmRegistryConfigConstants = {
|
|
6354
|
+
passwordPlaceholder: "redacted"
|
|
6355
|
+
};
|
|
6356
|
+
var DTONpmRegistryConfig = z214.object({
|
|
6357
|
+
// Registry basic configuration
|
|
6358
|
+
registryType: NpmRegistryType,
|
|
6359
|
+
registryUrl: z214.string(),
|
|
6360
|
+
customRegistryUrl: z214.string().optional(),
|
|
6361
|
+
// URL of Supernova NPM packages proxy
|
|
6362
|
+
proxyUrl: z214.string(),
|
|
6363
|
+
// Auth configuration
|
|
6364
|
+
authType: NpmRegistryAuthType,
|
|
6365
|
+
accessToken: z214.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6366
|
+
username: z214.string().optional(),
|
|
6367
|
+
password: z214.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6368
|
+
// NPM package scopes for whih the proxy should be enabled
|
|
6369
|
+
enabledScopes: z214.array(z214.string()),
|
|
6370
|
+
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6371
|
+
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6372
|
+
bypassProxy: z214.boolean()
|
|
6373
|
+
});
|
|
6374
|
+
var DTONpmRegistryAccessTokenResponse = z214.object({
|
|
6375
|
+
version: z214.number(),
|
|
6376
|
+
accessToken: z214.string().optional(),
|
|
6377
|
+
registryUrl: z214.string()
|
|
6378
|
+
});
|
|
6379
|
+
var DTOUpdateRegistryInput = z214.object({
|
|
6380
|
+
registryType: nullishToOptional(NpmRegistryType),
|
|
6381
|
+
authType: nullishToOptional(NpmRegistryAuthType),
|
|
6382
|
+
enabledScopes: nullishToOptional(z214.array(z214.string())),
|
|
6383
|
+
customRegistryUrl: nullishToOptional(z214.string()),
|
|
6384
|
+
bypassProxy: nullishToOptional(z214.boolean()),
|
|
6385
|
+
npmProxyVersion: nullishToOptional(z214.number()),
|
|
6386
|
+
authHeaderName: nullishToOptional(z214.string()),
|
|
6387
|
+
authHeaderValue: nullishToOptional(z214.string()),
|
|
6388
|
+
accessToken: nullishToOptional(z214.string()),
|
|
6389
|
+
username: nullishToOptional(z214.string()),
|
|
6390
|
+
password: nullishToOptional(z214.string())
|
|
6391
|
+
});
|
|
6392
|
+
var DTOUpdateRegistryOutput = z214.object({
|
|
6393
|
+
npmRegistrySettings: DTONpmRegistryConfig
|
|
6394
|
+
});
|
|
6395
|
+
|
|
6396
|
+
// src/api/dto/workspaces/workspace.ts
|
|
6397
|
+
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6398
|
+
var DTOWorkspace = z215.object({
|
|
6399
|
+
id: z215.string(),
|
|
6400
|
+
profile: DTOWorkspaceProfile,
|
|
6401
|
+
subscription: Subscription,
|
|
6402
|
+
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6403
|
+
});
|
|
6404
|
+
var DTOWorkspaceCreateInput = z215.object({
|
|
6405
|
+
name: z215.string()
|
|
6406
|
+
});
|
|
6407
|
+
var DTOWorkspaceResponse = z215.object({
|
|
6408
|
+
workspace: DTOWorkspace
|
|
6409
|
+
});
|
|
6410
|
+
|
|
6411
|
+
// src/api/dto/workspaces/membership.ts
|
|
6412
|
+
var DTOWorkspaceRole = z216.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6413
|
+
var DTOUserWorkspaceMembership = z216.object({
|
|
6414
|
+
// Workspace the user is a member of
|
|
6415
|
+
workspace: DTOWorkspace,
|
|
6416
|
+
// Assigned role the user has in the workspace
|
|
6417
|
+
role: DTOWorkspaceRole,
|
|
6418
|
+
// Role that determines actual permissions the user has in the workspace
|
|
6419
|
+
// E.g. this is different from the default role when editors are downgraded to viewers
|
|
6420
|
+
// when a workspace's subscription is downgraded to free tier
|
|
6421
|
+
effectiveRole: DTOWorkspaceRole
|
|
6422
|
+
});
|
|
6423
|
+
var DTOWorkspaceMember = z216.object({
|
|
6424
|
+
user: User,
|
|
6425
|
+
role: WorkspaceRoleSchema,
|
|
6426
|
+
effectiveRole: WorkspaceRoleSchema
|
|
6427
|
+
});
|
|
6428
|
+
var DTOUserWorkspaceMembershipsResponse = z216.object({
|
|
6429
|
+
membership: z216.array(DTOUserWorkspaceMembership)
|
|
6430
|
+
});
|
|
6431
|
+
var DTOWorkspaceMembersListResponse = z216.object({
|
|
6432
|
+
members: z216.array(DTOWorkspaceMember)
|
|
6433
|
+
});
|
|
6434
|
+
|
|
6435
|
+
// src/api/dto/workspaces/untyped-data.ts
|
|
6436
|
+
import { z as z217 } from "zod";
|
|
6437
|
+
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
6438
|
+
var DTOWorkspaceUntypedDataListResponse = z217.object({
|
|
6439
|
+
data: DTOWorkspaceUntypedData.array()
|
|
6440
|
+
});
|
|
6441
|
+
var DTOWorkspaceUntypedDataResponse = z217.object({
|
|
6442
|
+
data: DTOWorkspaceUntypedData
|
|
6443
|
+
});
|
|
6444
|
+
var DTOWorkspaceUntypedDataCreatePayload = z217.object({
|
|
6445
|
+
value: z217.unknown()
|
|
6446
|
+
});
|
|
6447
|
+
var DTOWorkspaceUntypedDataUpdatePayload = z217.object({
|
|
6448
|
+
value: z217.unknown()
|
|
6449
|
+
});
|
|
6450
|
+
|
|
6451
|
+
// src/api/dto/design-systems/user-design-systems.ts
|
|
6452
|
+
var DTOUserDesignSystemsResponse = z218.object({
|
|
6453
|
+
designSystems: DTODesignSystem.array(),
|
|
6454
|
+
workspaces: DTOWorkspace.array()
|
|
6455
|
+
});
|
|
6456
|
+
|
|
6457
|
+
// src/api/dto/design-systems/version-room.ts
|
|
6458
|
+
import { z as z219 } from "zod";
|
|
6459
|
+
var DTODesignSystemVersionRoom = z219.object({
|
|
6460
|
+
id: z219.string()
|
|
6461
|
+
});
|
|
6462
|
+
var DTODesignSystemVersionRoomResponse = z219.object({
|
|
6211
6463
|
room: DTODesignSystemVersionRoom
|
|
6212
6464
|
});
|
|
6213
6465
|
|
|
6214
6466
|
// src/api/dto/design-systems/version.ts
|
|
6215
|
-
import { z as
|
|
6467
|
+
import { z as z232 } from "zod";
|
|
6216
6468
|
|
|
6217
6469
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
6218
|
-
import { z as
|
|
6470
|
+
import { z as z220 } from "zod";
|
|
6219
6471
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
6220
6472
|
id: true,
|
|
6221
6473
|
workspaceId: true,
|
|
@@ -6227,56 +6479,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
6227
6479
|
}).extend({
|
|
6228
6480
|
meta: ObjectMeta.partial().optional()
|
|
6229
6481
|
});
|
|
6230
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
6482
|
+
var DTODesignSystemUpdateAccessModeInput = z220.object({
|
|
6231
6483
|
accessMode: DesignSystemAccessMode,
|
|
6232
|
-
retain:
|
|
6233
|
-
userIds:
|
|
6234
|
-
inviteIds:
|
|
6484
|
+
retain: z220.object({
|
|
6485
|
+
userIds: z220.string().array(),
|
|
6486
|
+
inviteIds: z220.string().array()
|
|
6235
6487
|
}).optional()
|
|
6236
6488
|
});
|
|
6237
6489
|
|
|
6238
6490
|
// src/api/payloads/design-systems/version.ts
|
|
6239
|
-
import { z as
|
|
6240
|
-
var ObjectMeta2 =
|
|
6241
|
-
name:
|
|
6242
|
-
description:
|
|
6491
|
+
import { z as z221 } from "zod";
|
|
6492
|
+
var ObjectMeta2 = z221.object({
|
|
6493
|
+
name: z221.string().max(150).optional(),
|
|
6494
|
+
description: z221.string().max(2e3).optional()
|
|
6243
6495
|
});
|
|
6244
6496
|
function validateDesignSystemVersion(version) {
|
|
6245
6497
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
6246
6498
|
return urlCompliantRegex.test(version);
|
|
6247
6499
|
}
|
|
6248
|
-
var DTOCreateVersionInput =
|
|
6500
|
+
var DTOCreateVersionInput = z221.object({
|
|
6249
6501
|
meta: ObjectMeta2,
|
|
6250
|
-
version:
|
|
6502
|
+
version: z221.string().refine(validateDesignSystemVersion, {
|
|
6251
6503
|
message: "Invalid semantic versioning format"
|
|
6252
6504
|
}),
|
|
6253
|
-
changeLog:
|
|
6505
|
+
changeLog: z221.string().optional()
|
|
6254
6506
|
});
|
|
6255
|
-
var DTOUpdateVersionInput =
|
|
6507
|
+
var DTOUpdateVersionInput = z221.object({
|
|
6256
6508
|
meta: ObjectMeta2,
|
|
6257
|
-
version:
|
|
6509
|
+
version: z221.string(),
|
|
6258
6510
|
// required for PUT, but not editable
|
|
6259
|
-
changeLog:
|
|
6511
|
+
changeLog: z221.string()
|
|
6260
6512
|
});
|
|
6261
6513
|
|
|
6262
6514
|
// src/api/payloads/documentation/analytics.ts
|
|
6263
|
-
import { z as
|
|
6264
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
6265
|
-
referencePeriod:
|
|
6266
|
-
start:
|
|
6267
|
-
end:
|
|
6515
|
+
import { z as z222 } from "zod";
|
|
6516
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z222.object({
|
|
6517
|
+
referencePeriod: z222.object({
|
|
6518
|
+
start: z222.coerce.date(),
|
|
6519
|
+
end: z222.coerce.date().optional()
|
|
6268
6520
|
}),
|
|
6269
|
-
baselinePeriod:
|
|
6270
|
-
start:
|
|
6271
|
-
end:
|
|
6521
|
+
baselinePeriod: z222.object({
|
|
6522
|
+
start: z222.coerce.date(),
|
|
6523
|
+
end: z222.coerce.date().optional()
|
|
6272
6524
|
})
|
|
6273
6525
|
});
|
|
6274
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
6275
|
-
timeFrames:
|
|
6526
|
+
var DTODocumentationAnalyticsDiffPayload = z222.object({
|
|
6527
|
+
timeFrames: z222.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
6276
6528
|
});
|
|
6277
6529
|
|
|
6278
6530
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6279
|
-
import { z as
|
|
6531
|
+
import { z as z223 } from "zod";
|
|
6280
6532
|
|
|
6281
6533
|
// src/api/dto/documentation/block-definition.ts
|
|
6282
6534
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -6288,76 +6540,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
6288
6540
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
6289
6541
|
|
|
6290
6542
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6291
|
-
var DTOGetBlockDefinitionsOutput =
|
|
6292
|
-
definitions:
|
|
6543
|
+
var DTOGetBlockDefinitionsOutput = z223.object({
|
|
6544
|
+
definitions: z223.array(DTOPageBlockDefinition)
|
|
6293
6545
|
});
|
|
6294
6546
|
|
|
6295
6547
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
6296
|
-
import { z as
|
|
6297
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
6298
|
-
environment:
|
|
6548
|
+
import { z as z224 } from "zod";
|
|
6549
|
+
var DTODocumentationPublishTypeQueryParams = z224.object({
|
|
6550
|
+
environment: z224.enum(["Live", "Preview"])
|
|
6299
6551
|
});
|
|
6300
6552
|
|
|
6301
6553
|
// src/api/payloads/export/pipeline.ts
|
|
6302
|
-
import { z as
|
|
6554
|
+
import { z as z226 } from "zod";
|
|
6303
6555
|
|
|
6304
6556
|
// src/api/dto/export/exporter-property.ts
|
|
6305
|
-
import { z as
|
|
6306
|
-
var PrimitiveValue2 =
|
|
6307
|
-
var ArrayValue2 =
|
|
6308
|
-
var ObjectValue2 =
|
|
6557
|
+
import { z as z225 } from "zod";
|
|
6558
|
+
var PrimitiveValue2 = z225.number().or(z225.boolean()).or(z225.string());
|
|
6559
|
+
var ArrayValue2 = z225.array(z225.string());
|
|
6560
|
+
var ObjectValue2 = z225.record(z225.string());
|
|
6309
6561
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
6310
|
-
var DTOExporterPropertyType =
|
|
6311
|
-
var PropertyDefinitionBase2 =
|
|
6312
|
-
key:
|
|
6313
|
-
title:
|
|
6314
|
-
description:
|
|
6315
|
-
category:
|
|
6316
|
-
dependsOn:
|
|
6317
|
-
});
|
|
6318
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
6319
|
-
label:
|
|
6320
|
-
description:
|
|
6562
|
+
var DTOExporterPropertyType = z225.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
6563
|
+
var PropertyDefinitionBase2 = z225.object({
|
|
6564
|
+
key: z225.string(),
|
|
6565
|
+
title: z225.string(),
|
|
6566
|
+
description: z225.string(),
|
|
6567
|
+
category: z225.string().optional(),
|
|
6568
|
+
dependsOn: z225.record(z225.boolean()).optional()
|
|
6569
|
+
});
|
|
6570
|
+
var DTOExporterPropertyDefinitionEnumOption = z225.object({
|
|
6571
|
+
label: z225.string(),
|
|
6572
|
+
description: z225.string()
|
|
6321
6573
|
});
|
|
6322
6574
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
6323
|
-
type:
|
|
6324
|
-
options:
|
|
6325
|
-
default:
|
|
6575
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Enum),
|
|
6576
|
+
options: z225.record(DTOExporterPropertyDefinitionEnumOption),
|
|
6577
|
+
default: z225.string()
|
|
6326
6578
|
});
|
|
6327
6579
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
6328
|
-
type:
|
|
6329
|
-
default:
|
|
6580
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
6581
|
+
default: z225.boolean()
|
|
6330
6582
|
});
|
|
6331
6583
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
6332
|
-
type:
|
|
6333
|
-
default:
|
|
6334
|
-
isMultiline:
|
|
6584
|
+
type: z225.literal(DTOExporterPropertyType.Enum.String),
|
|
6585
|
+
default: z225.string(),
|
|
6586
|
+
isMultiline: z225.boolean().optional()
|
|
6335
6587
|
});
|
|
6336
6588
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
6337
|
-
type:
|
|
6338
|
-
default:
|
|
6589
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Number),
|
|
6590
|
+
default: z225.number()
|
|
6339
6591
|
});
|
|
6340
6592
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
6341
|
-
type:
|
|
6593
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Array),
|
|
6342
6594
|
default: ArrayValue2
|
|
6343
6595
|
});
|
|
6344
6596
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
6345
|
-
type:
|
|
6597
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Object),
|
|
6346
6598
|
default: ObjectValue2,
|
|
6347
|
-
allowedKeys:
|
|
6348
|
-
options:
|
|
6349
|
-
type:
|
|
6599
|
+
allowedKeys: z225.object({
|
|
6600
|
+
options: z225.string().array(),
|
|
6601
|
+
type: z225.string()
|
|
6350
6602
|
}).optional(),
|
|
6351
|
-
allowedValues:
|
|
6352
|
-
type:
|
|
6603
|
+
allowedValues: z225.object({
|
|
6604
|
+
type: z225.string()
|
|
6353
6605
|
}).optional()
|
|
6354
6606
|
});
|
|
6355
6607
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
6356
|
-
type:
|
|
6357
|
-
language:
|
|
6358
|
-
default:
|
|
6608
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Code),
|
|
6609
|
+
language: z225.string(),
|
|
6610
|
+
default: z225.string()
|
|
6359
6611
|
});
|
|
6360
|
-
var DTOExporterPropertyDefinition =
|
|
6612
|
+
var DTOExporterPropertyDefinition = z225.discriminatedUnion("type", [
|
|
6361
6613
|
DTOExporterPropertyDefinitionEnum,
|
|
6362
6614
|
DTOExporterPropertyDefinitionBoolean,
|
|
6363
6615
|
DTOExporterPropertyDefinitionString,
|
|
@@ -6366,84 +6618,84 @@ var DTOExporterPropertyDefinition = z217.discriminatedUnion("type", [
|
|
|
6366
6618
|
DTOExporterPropertyDefinitionObject,
|
|
6367
6619
|
DTOExporterPropertyDefinitionCode
|
|
6368
6620
|
]);
|
|
6369
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
6621
|
+
var DTOExporterPropertyDefinitionsResponse = z225.object({
|
|
6370
6622
|
properties: DTOExporterPropertyDefinition.array()
|
|
6371
6623
|
});
|
|
6372
|
-
var DTOExporterPropertyValueMap =
|
|
6624
|
+
var DTOExporterPropertyValueMap = z225.record(DTOExporterPropertyValue);
|
|
6373
6625
|
|
|
6374
6626
|
// src/api/payloads/export/pipeline.ts
|
|
6375
|
-
var GitDestinationOptions =
|
|
6376
|
-
branch:
|
|
6377
|
-
commitMessage:
|
|
6378
|
-
commitAuthorName:
|
|
6379
|
-
commitAuthorEmail:
|
|
6380
|
-
pullRequestTitle:
|
|
6381
|
-
pullRequestDescription:
|
|
6382
|
-
relativePath:
|
|
6383
|
-
purgeDirectory:
|
|
6384
|
-
});
|
|
6385
|
-
var DTOPipelineCreateBody =
|
|
6386
|
-
name:
|
|
6387
|
-
exporterId:
|
|
6388
|
-
designSystemId:
|
|
6389
|
-
isEnabled:
|
|
6627
|
+
var GitDestinationOptions = z226.object({
|
|
6628
|
+
branch: z226.string().min(1).optional(),
|
|
6629
|
+
commitMessage: z226.string().min(1).optional(),
|
|
6630
|
+
commitAuthorName: z226.string().min(1).optional(),
|
|
6631
|
+
commitAuthorEmail: z226.string().email().optional(),
|
|
6632
|
+
pullRequestTitle: z226.string().min(1).optional(),
|
|
6633
|
+
pullRequestDescription: z226.string().min(1).optional(),
|
|
6634
|
+
relativePath: z226.string().optional(),
|
|
6635
|
+
purgeDirectory: z226.boolean().optional()
|
|
6636
|
+
});
|
|
6637
|
+
var DTOPipelineCreateBody = z226.object({
|
|
6638
|
+
name: z226.string(),
|
|
6639
|
+
exporterId: z226.string(),
|
|
6640
|
+
designSystemId: z226.string(),
|
|
6641
|
+
isEnabled: z226.boolean(),
|
|
6390
6642
|
eventType: PipelineEventType,
|
|
6391
|
-
brandPersistentId:
|
|
6392
|
-
themePersistentId:
|
|
6393
|
-
themePersistentIds:
|
|
6643
|
+
brandPersistentId: z226.string().optional(),
|
|
6644
|
+
themePersistentId: z226.string().optional(),
|
|
6645
|
+
themePersistentIds: z226.string().array().optional(),
|
|
6394
6646
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6395
6647
|
destination: PipelineDestinationType.optional(),
|
|
6396
6648
|
gitQuery: GitObjectsQuery,
|
|
6397
|
-
destinations:
|
|
6649
|
+
destinations: z226.object({
|
|
6398
6650
|
s3: ExporterDestinationS3.nullish(),
|
|
6399
6651
|
azure: ExporterDestinationAzure.nullish(),
|
|
6400
6652
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6401
6653
|
github: ExporterDestinationGithub.nullish(),
|
|
6402
6654
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6403
6655
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6404
|
-
webhookUrl:
|
|
6656
|
+
webhookUrl: z226.string().nullish()
|
|
6405
6657
|
})
|
|
6406
6658
|
});
|
|
6407
|
-
var DTOPipelineUpdateBody =
|
|
6408
|
-
exporterId:
|
|
6409
|
-
name:
|
|
6410
|
-
isEnabled:
|
|
6659
|
+
var DTOPipelineUpdateBody = z226.object({
|
|
6660
|
+
exporterId: z226.string().optional(),
|
|
6661
|
+
name: z226.string().optional(),
|
|
6662
|
+
isEnabled: z226.boolean().optional(),
|
|
6411
6663
|
eventType: PipelineEventType.optional(),
|
|
6412
|
-
brandPersistentId:
|
|
6413
|
-
themePersistentId:
|
|
6414
|
-
themePersistentIds:
|
|
6664
|
+
brandPersistentId: z226.string().optional(),
|
|
6665
|
+
themePersistentId: z226.string().optional(),
|
|
6666
|
+
themePersistentIds: z226.string().array().optional(),
|
|
6415
6667
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6416
6668
|
destination: PipelineDestinationType.optional(),
|
|
6417
6669
|
gitQuery: GitObjectsQuery.optional(),
|
|
6418
|
-
destinations:
|
|
6670
|
+
destinations: z226.object({
|
|
6419
6671
|
s3: ExporterDestinationS3.nullish(),
|
|
6420
6672
|
azure: ExporterDestinationAzure.nullish(),
|
|
6421
6673
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6422
6674
|
github: ExporterDestinationGithub.nullish(),
|
|
6423
6675
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6424
6676
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6425
|
-
webhookUrl:
|
|
6677
|
+
webhookUrl: z226.string().nullish()
|
|
6426
6678
|
}).optional(),
|
|
6427
6679
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
6428
6680
|
});
|
|
6429
|
-
var DTOPipelineTriggerBody =
|
|
6430
|
-
designSystemVersionId:
|
|
6681
|
+
var DTOPipelineTriggerBody = z226.object({
|
|
6682
|
+
designSystemVersionId: z226.string()
|
|
6431
6683
|
});
|
|
6432
6684
|
|
|
6433
6685
|
// src/api/payloads/liveblocks/auth.ts
|
|
6434
|
-
import { z as
|
|
6435
|
-
var DTOLiveblocksAuthRequest =
|
|
6436
|
-
room:
|
|
6686
|
+
import { z as z227 } from "zod";
|
|
6687
|
+
var DTOLiveblocksAuthRequest = z227.object({
|
|
6688
|
+
room: z227.string().optional()
|
|
6437
6689
|
});
|
|
6438
6690
|
|
|
6439
6691
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
6440
|
-
import { z as
|
|
6441
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
6692
|
+
import { z as z228 } from "zod";
|
|
6693
|
+
var DTOUpdateUserNotificationSettingsPayload = z228.object({
|
|
6442
6694
|
notificationSettings: UserNotificationSettings
|
|
6443
6695
|
});
|
|
6444
|
-
var DTOUserNotificationSettingsResponse =
|
|
6445
|
-
userId:
|
|
6446
|
-
workspaceId:
|
|
6696
|
+
var DTOUserNotificationSettingsResponse = z228.object({
|
|
6697
|
+
userId: z228.string(),
|
|
6698
|
+
workspaceId: z228.string(),
|
|
6447
6699
|
notificationSettings: UserNotificationSettings
|
|
6448
6700
|
});
|
|
6449
6701
|
|
|
@@ -6451,13 +6703,13 @@ var DTOUserNotificationSettingsResponse = z220.object({
|
|
|
6451
6703
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
6452
6704
|
|
|
6453
6705
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
6454
|
-
import { z as
|
|
6455
|
-
var DTOTransferOwnershipPayload =
|
|
6456
|
-
newOwnerId:
|
|
6706
|
+
import { z as z229 } from "zod";
|
|
6707
|
+
var DTOTransferOwnershipPayload = z229.object({
|
|
6708
|
+
newOwnerId: z229.string()
|
|
6457
6709
|
});
|
|
6458
6710
|
|
|
6459
6711
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
6460
|
-
import { z as
|
|
6712
|
+
import { z as z230 } from "zod";
|
|
6461
6713
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
6462
6714
|
function validateSsoPayload(ssoPayload) {
|
|
6463
6715
|
const keys = [];
|
|
@@ -6480,21 +6732,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
6480
6732
|
keys
|
|
6481
6733
|
};
|
|
6482
6734
|
}
|
|
6483
|
-
var NpmRegistryInput =
|
|
6484
|
-
enabledScopes:
|
|
6485
|
-
customRegistryUrl:
|
|
6486
|
-
bypassProxy:
|
|
6487
|
-
npmProxyRegistryConfigId:
|
|
6488
|
-
npmProxyVersion:
|
|
6489
|
-
registryType:
|
|
6490
|
-
authType:
|
|
6491
|
-
authHeaderName:
|
|
6492
|
-
authHeaderValue:
|
|
6493
|
-
accessToken:
|
|
6494
|
-
username:
|
|
6495
|
-
password:
|
|
6496
|
-
});
|
|
6497
|
-
var WorkspaceConfigurationPayload =
|
|
6735
|
+
var NpmRegistryInput = z230.object({
|
|
6736
|
+
enabledScopes: z230.array(z230.string()),
|
|
6737
|
+
customRegistryUrl: z230.string().optional(),
|
|
6738
|
+
bypassProxy: z230.boolean().optional(),
|
|
6739
|
+
npmProxyRegistryConfigId: z230.string().optional(),
|
|
6740
|
+
npmProxyVersion: z230.number().optional(),
|
|
6741
|
+
registryType: z230.string(),
|
|
6742
|
+
authType: z230.string(),
|
|
6743
|
+
authHeaderName: z230.string(),
|
|
6744
|
+
authHeaderValue: z230.string(),
|
|
6745
|
+
accessToken: z230.string(),
|
|
6746
|
+
username: z230.string(),
|
|
6747
|
+
password: z230.string()
|
|
6748
|
+
});
|
|
6749
|
+
var WorkspaceConfigurationPayload = z230.object({
|
|
6498
6750
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
6499
6751
|
sso: SsoProvider.partial().optional(),
|
|
6500
6752
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -6502,262 +6754,107 @@ var WorkspaceConfigurationPayload = z222.object({
|
|
|
6502
6754
|
});
|
|
6503
6755
|
|
|
6504
6756
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
6505
|
-
import { z as
|
|
6506
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
6757
|
+
import { z as z231 } from "zod";
|
|
6758
|
+
var DTOWorkspaceIntegrationOauthInput = z231.object({
|
|
6507
6759
|
type: IntegrationType
|
|
6508
6760
|
});
|
|
6509
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
6761
|
+
var DTOWorkspaceIntegrationPATInput = z231.object({
|
|
6510
6762
|
type: IntegrationType,
|
|
6511
6763
|
token: IntegrationToken
|
|
6512
6764
|
});
|
|
6513
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
6514
|
-
organization:
|
|
6765
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z231.object({
|
|
6766
|
+
organization: z231.string().optional(),
|
|
6515
6767
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
6516
|
-
project:
|
|
6768
|
+
project: z231.string().optional(),
|
|
6517
6769
|
// Only for Bitbucket and Azure
|
|
6518
|
-
repository:
|
|
6770
|
+
repository: z231.string().optional(),
|
|
6519
6771
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
6520
|
-
branch:
|
|
6772
|
+
branch: z231.string().optional(),
|
|
6521
6773
|
// For all providers, useful for PR creations.
|
|
6522
|
-
user:
|
|
6774
|
+
user: z231.string().optional()
|
|
6523
6775
|
// Only for Gitlab User Repositories
|
|
6524
6776
|
});
|
|
6525
6777
|
|
|
6526
6778
|
// src/api/dto/design-systems/version.ts
|
|
6527
|
-
var DTODesignSystemVersion =
|
|
6528
|
-
id:
|
|
6529
|
-
createdAt:
|
|
6779
|
+
var DTODesignSystemVersion = z232.object({
|
|
6780
|
+
id: z232.string(),
|
|
6781
|
+
createdAt: z232.coerce.date(),
|
|
6530
6782
|
meta: ObjectMeta,
|
|
6531
|
-
version:
|
|
6532
|
-
isReadonly:
|
|
6533
|
-
changeLog:
|
|
6534
|
-
designSystemId:
|
|
6783
|
+
version: z232.string(),
|
|
6784
|
+
isReadonly: z232.boolean(),
|
|
6785
|
+
changeLog: z232.string(),
|
|
6786
|
+
designSystemId: z232.string()
|
|
6535
6787
|
});
|
|
6536
|
-
var DTODesignSystemVersionsListResponse =
|
|
6537
|
-
designSystemVersions:
|
|
6788
|
+
var DTODesignSystemVersionsListResponse = z232.object({
|
|
6789
|
+
designSystemVersions: z232.array(DTODesignSystemVersion)
|
|
6538
6790
|
});
|
|
6539
|
-
var DTODesignSystemVersionGetResponse =
|
|
6791
|
+
var DTODesignSystemVersionGetResponse = z232.object({
|
|
6540
6792
|
designSystemVersion: DTODesignSystemVersion
|
|
6541
6793
|
});
|
|
6542
|
-
var DTODesignSystemVersionCreationResponse =
|
|
6794
|
+
var DTODesignSystemVersionCreationResponse = z232.object({
|
|
6543
6795
|
meta: ObjectMeta,
|
|
6544
|
-
version:
|
|
6545
|
-
changeLog:
|
|
6546
|
-
isReadOnly:
|
|
6547
|
-
designSystemId:
|
|
6548
|
-
jobId:
|
|
6549
|
-
});
|
|
6550
|
-
var VersionSQSPayload =
|
|
6551
|
-
jobId:
|
|
6552
|
-
designSystemId:
|
|
6796
|
+
version: z232.string(),
|
|
6797
|
+
changeLog: z232.string(),
|
|
6798
|
+
isReadOnly: z232.boolean(),
|
|
6799
|
+
designSystemId: z232.string(),
|
|
6800
|
+
jobId: z232.string()
|
|
6801
|
+
});
|
|
6802
|
+
var VersionSQSPayload = z232.object({
|
|
6803
|
+
jobId: z232.string(),
|
|
6804
|
+
designSystemId: z232.string(),
|
|
6553
6805
|
input: DTOCreateVersionInput
|
|
6554
6806
|
});
|
|
6555
|
-
var DTODesignSystemVersionJobsResponse =
|
|
6556
|
-
jobs:
|
|
6807
|
+
var DTODesignSystemVersionJobsResponse = z232.object({
|
|
6808
|
+
jobs: z232.array(VersionCreationJob)
|
|
6557
6809
|
});
|
|
6558
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
6810
|
+
var DTODesignSystemVersionJobStatusResponse = z232.object({
|
|
6559
6811
|
job: VersionCreationJob
|
|
6560
6812
|
});
|
|
6561
6813
|
|
|
6562
6814
|
// src/api/dto/design-systems/view.ts
|
|
6563
|
-
import { z as
|
|
6564
|
-
var DTOElementViewColumnSharedAttributes =
|
|
6565
|
-
id:
|
|
6566
|
-
persistentId:
|
|
6567
|
-
width:
|
|
6815
|
+
import { z as z233 } from "zod";
|
|
6816
|
+
var DTOElementViewColumnSharedAttributes = z233.object({
|
|
6817
|
+
id: z233.string(),
|
|
6818
|
+
persistentId: z233.string(),
|
|
6819
|
+
width: z233.number()
|
|
6568
6820
|
});
|
|
6569
6821
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6570
|
-
type:
|
|
6822
|
+
type: z233.literal("BaseProperty"),
|
|
6571
6823
|
basePropertyType: ElementViewBaseColumnType
|
|
6572
6824
|
});
|
|
6573
6825
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6574
|
-
type:
|
|
6575
|
-
propertyDefinitionId:
|
|
6826
|
+
type: z233.literal("PropertyDefinition"),
|
|
6827
|
+
propertyDefinitionId: z233.string()
|
|
6576
6828
|
});
|
|
6577
6829
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6578
|
-
type:
|
|
6579
|
-
themeId:
|
|
6830
|
+
type: z233.literal("Theme"),
|
|
6831
|
+
themeId: z233.string()
|
|
6580
6832
|
});
|
|
6581
|
-
var DTOElementViewColumn =
|
|
6833
|
+
var DTOElementViewColumn = z233.discriminatedUnion("type", [
|
|
6582
6834
|
DTOElementViewBasePropertyColumn,
|
|
6583
6835
|
DTOElementViewPropertyDefinitionColumn,
|
|
6584
6836
|
DTOElementViewThemeColumn
|
|
6585
6837
|
]);
|
|
6586
|
-
var DTOElementView =
|
|
6838
|
+
var DTOElementView = z233.object({
|
|
6587
6839
|
meta: ObjectMeta,
|
|
6588
|
-
persistentId:
|
|
6840
|
+
persistentId: z233.string(),
|
|
6589
6841
|
targetElementType: ElementPropertyTargetType,
|
|
6590
|
-
id:
|
|
6591
|
-
isDefault:
|
|
6592
|
-
columns:
|
|
6593
|
-
});
|
|
6594
|
-
var DTOElementViewsListResponse = z225.object({
|
|
6595
|
-
elementDataViews: z225.array(DTOElementView)
|
|
6596
|
-
});
|
|
6597
|
-
|
|
6598
|
-
// src/api/dto/workspaces/git.ts
|
|
6599
|
-
import { z as z226 } from "zod";
|
|
6600
|
-
var DTOGitOrganization = z226.object({
|
|
6601
|
-
id: z226.string(),
|
|
6602
|
-
name: z226.string(),
|
|
6603
|
-
url: z226.string(),
|
|
6604
|
-
slug: z226.string()
|
|
6605
|
-
});
|
|
6606
|
-
var DTOGitProject = z226.object({
|
|
6607
|
-
id: z226.string(),
|
|
6608
|
-
name: z226.string(),
|
|
6609
|
-
url: z226.string(),
|
|
6610
|
-
slug: z226.string()
|
|
6611
|
-
});
|
|
6612
|
-
var DTOGitRepository = z226.object({
|
|
6613
|
-
id: z226.string(),
|
|
6614
|
-
name: z226.string(),
|
|
6615
|
-
url: z226.string(),
|
|
6616
|
-
slug: z226.string(),
|
|
6617
|
-
defaultBranch: z226.string().optional()
|
|
6618
|
-
});
|
|
6619
|
-
var DTOGitBranch = z226.object({
|
|
6620
|
-
name: z226.string(),
|
|
6621
|
-
lastCommitId: z226.string()
|
|
6622
|
-
});
|
|
6623
|
-
|
|
6624
|
-
// src/api/dto/workspaces/integrations.ts
|
|
6625
|
-
import { z as z227 } from "zod";
|
|
6626
|
-
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6627
|
-
accessToken: true,
|
|
6628
|
-
refreshToken: true
|
|
6629
|
-
});
|
|
6630
|
-
var DTOIntegration = z227.object({
|
|
6631
|
-
id: z227.string(),
|
|
6632
|
-
workspaceId: z227.string(),
|
|
6633
|
-
type: ExtendedIntegrationType,
|
|
6634
|
-
createdAt: z227.coerce.date(),
|
|
6635
|
-
integrationCredentials: z227.array(DTOIntegrationCredentials).optional(),
|
|
6636
|
-
integrationDesignSystems: z227.array(IntegrationDesignSystem).optional()
|
|
6637
|
-
});
|
|
6638
|
-
var DTOIntegrationOAuthGetResponse = z227.object({
|
|
6639
|
-
url: z227.string()
|
|
6640
|
-
});
|
|
6641
|
-
var DTOIntegrationPostResponse = z227.object({
|
|
6642
|
-
integration: DTOIntegration
|
|
6643
|
-
});
|
|
6644
|
-
var DTOIntegrationsGetListResponse = z227.object({
|
|
6645
|
-
integrations: DTOIntegration.array()
|
|
6646
|
-
});
|
|
6647
|
-
|
|
6648
|
-
// src/api/dto/workspaces/invitations.ts
|
|
6649
|
-
import { z as z228 } from "zod";
|
|
6650
|
-
var DTOWorkspaceInvitationInput = z228.object({
|
|
6651
|
-
email: z228.string().email(),
|
|
6652
|
-
role: WorkspaceRoleSchema
|
|
6653
|
-
});
|
|
6654
|
-
var DTOWorkspaceInvitationsListInput = z228.object({
|
|
6655
|
-
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6656
|
-
designSystemId: z228.string().optional()
|
|
6657
|
-
});
|
|
6658
|
-
var DTOWorkspaceInvitationsResponse = z228.object({
|
|
6659
|
-
invitations: WorkspaceInvitation.array()
|
|
6660
|
-
});
|
|
6661
|
-
var DTOWorkspaceInviteUpdate = z228.object({
|
|
6662
|
-
role: WorkspaceRoleSchema
|
|
6663
|
-
});
|
|
6664
|
-
var DTOWorkspaceInvitationUpdateResponse = z228.object({
|
|
6665
|
-
invitation: WorkspaceInvitation
|
|
6666
|
-
});
|
|
6667
|
-
|
|
6668
|
-
// src/api/dto/workspaces/membership.ts
|
|
6669
|
-
import { z as z231 } from "zod";
|
|
6670
|
-
|
|
6671
|
-
// src/api/dto/workspaces/workspace.ts
|
|
6672
|
-
import { z as z230 } from "zod";
|
|
6673
|
-
|
|
6674
|
-
// src/api/dto/workspaces/npm-registry.ts
|
|
6675
|
-
import { z as z229 } from "zod";
|
|
6676
|
-
var DTONpmRegistryConfigConstants = {
|
|
6677
|
-
passwordPlaceholder: "redacted"
|
|
6678
|
-
};
|
|
6679
|
-
var DTONpmRegistryConfig = z229.object({
|
|
6680
|
-
// Registry basic configuration
|
|
6681
|
-
registryType: NpmRegistryType,
|
|
6682
|
-
registryUrl: z229.string(),
|
|
6683
|
-
customRegistryUrl: z229.string().optional(),
|
|
6684
|
-
// URL of Supernova NPM packages proxy
|
|
6685
|
-
proxyUrl: z229.string(),
|
|
6686
|
-
// Auth configuration
|
|
6687
|
-
authType: NpmRegistryAuthType,
|
|
6688
|
-
accessToken: z229.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6689
|
-
username: z229.string().optional(),
|
|
6690
|
-
password: z229.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6691
|
-
// NPM package scopes for whih the proxy should be enabled
|
|
6692
|
-
enabledScopes: z229.array(z229.string()),
|
|
6693
|
-
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6694
|
-
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6695
|
-
bypassProxy: z229.boolean()
|
|
6696
|
-
});
|
|
6697
|
-
|
|
6698
|
-
// src/api/dto/workspaces/workspace.ts
|
|
6699
|
-
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6700
|
-
var DTOWorkspace = z230.object({
|
|
6701
|
-
id: z230.string(),
|
|
6702
|
-
profile: DTOWorkspaceProfile,
|
|
6703
|
-
subscription: Subscription,
|
|
6704
|
-
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6705
|
-
});
|
|
6706
|
-
var DTOWorkspaceCreateInput = z230.object({
|
|
6707
|
-
name: z230.string()
|
|
6708
|
-
});
|
|
6709
|
-
var DTOWorkspaceResponse = z230.object({
|
|
6710
|
-
workspace: DTOWorkspace
|
|
6711
|
-
});
|
|
6712
|
-
|
|
6713
|
-
// src/api/dto/workspaces/membership.ts
|
|
6714
|
-
var DTOWorkspaceRole = z231.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6715
|
-
var DTOUserWorkspaceMembership = z231.object({
|
|
6716
|
-
// Workspace the user is a member of
|
|
6717
|
-
workspace: DTOWorkspace,
|
|
6718
|
-
// Assigned role the user has in the workspace
|
|
6719
|
-
role: DTOWorkspaceRole,
|
|
6720
|
-
// Role that determines actual permissions the user has in the workspace
|
|
6721
|
-
// E.g. this is different from the default role when editors are downgraded to viewers
|
|
6722
|
-
// when a workspace's subscription is downgraded to free tier
|
|
6723
|
-
effectiveRole: DTOWorkspaceRole
|
|
6724
|
-
});
|
|
6725
|
-
var DTOWorkspaceMember = z231.object({
|
|
6726
|
-
user: User,
|
|
6727
|
-
role: WorkspaceRoleSchema,
|
|
6728
|
-
effectiveRole: WorkspaceRoleSchema
|
|
6729
|
-
});
|
|
6730
|
-
var DTOUserWorkspaceMembershipsResponse = z231.object({
|
|
6731
|
-
membership: z231.array(DTOUserWorkspaceMembership)
|
|
6732
|
-
});
|
|
6733
|
-
var DTOWorkspaceMembersListResponse = z231.object({
|
|
6734
|
-
members: z231.array(DTOWorkspaceMember)
|
|
6735
|
-
});
|
|
6736
|
-
|
|
6737
|
-
// src/api/dto/workspaces/untyped-data.ts
|
|
6738
|
-
import { z as z232 } from "zod";
|
|
6739
|
-
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
6740
|
-
var DTOWorkspaceUntypedDataListResponse = z232.object({
|
|
6741
|
-
data: DTOWorkspaceUntypedData.array()
|
|
6842
|
+
id: z233.string(),
|
|
6843
|
+
isDefault: z233.boolean(),
|
|
6844
|
+
columns: z233.array(DTOElementViewColumn)
|
|
6742
6845
|
});
|
|
6743
|
-
var
|
|
6744
|
-
|
|
6745
|
-
});
|
|
6746
|
-
var DTOWorkspaceUntypedDataCreatePayload = z232.object({
|
|
6747
|
-
value: z232.unknown()
|
|
6748
|
-
});
|
|
6749
|
-
var DTOWorkspaceUntypedDataUpdatePayload = z232.object({
|
|
6750
|
-
value: z232.unknown()
|
|
6846
|
+
var DTOElementViewsListResponse = z233.object({
|
|
6847
|
+
elementDataViews: z233.array(DTOElementView)
|
|
6751
6848
|
});
|
|
6752
6849
|
|
|
6753
6850
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6754
|
-
var DTOAppBootstrapDataQuery =
|
|
6755
|
-
preferredWorkspaceId:
|
|
6756
|
-
preferredDesignSystemId:
|
|
6757
|
-
preferredVersionId:
|
|
6758
|
-
preferredBrandId:
|
|
6851
|
+
var DTOAppBootstrapDataQuery = z234.object({
|
|
6852
|
+
preferredWorkspaceId: z234.string().optional(),
|
|
6853
|
+
preferredDesignSystemId: z234.string().optional(),
|
|
6854
|
+
preferredVersionId: z234.string().optional(),
|
|
6855
|
+
preferredBrandId: z234.string().optional()
|
|
6759
6856
|
});
|
|
6760
|
-
var DTOAppBootstrapDataResponse =
|
|
6857
|
+
var DTOAppBootstrapDataResponse = z234.object({
|
|
6761
6858
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6762
6859
|
designSystem: DTODesignSystem.optional(),
|
|
6763
6860
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6765,92 +6862,92 @@ var DTOAppBootstrapDataResponse = z233.object({
|
|
|
6765
6862
|
});
|
|
6766
6863
|
|
|
6767
6864
|
// src/api/dto/collections/token-collection.ts
|
|
6768
|
-
import { z as
|
|
6769
|
-
var DTOTokenCollection =
|
|
6770
|
-
id:
|
|
6771
|
-
persistentId:
|
|
6772
|
-
designSystemVersionId:
|
|
6865
|
+
import { z as z235 } from "zod";
|
|
6866
|
+
var DTOTokenCollection = z235.object({
|
|
6867
|
+
id: z235.string(),
|
|
6868
|
+
persistentId: z235.string(),
|
|
6869
|
+
designSystemVersionId: z235.string(),
|
|
6773
6870
|
meta: ObjectMeta,
|
|
6774
6871
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6775
|
-
elementPropertyOptionId:
|
|
6776
|
-
createdAt:
|
|
6777
|
-
updatedAt:
|
|
6872
|
+
elementPropertyOptionId: z235.string(),
|
|
6873
|
+
createdAt: z235.coerce.date(),
|
|
6874
|
+
updatedAt: z235.coerce.date(),
|
|
6778
6875
|
origin: CollectionOrigin.optional()
|
|
6779
6876
|
});
|
|
6780
|
-
var DTOTokenCollectionsListReponse =
|
|
6877
|
+
var DTOTokenCollectionsListReponse = z235.object({
|
|
6781
6878
|
collections: DTOTokenCollection.array()
|
|
6782
6879
|
});
|
|
6783
6880
|
|
|
6784
6881
|
// src/api/dto/design-tokens/design-token.ts
|
|
6785
|
-
import { z as
|
|
6882
|
+
import { z as z236 } from "zod";
|
|
6786
6883
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6787
|
-
|
|
6788
|
-
id:
|
|
6789
|
-
persistentId:
|
|
6790
|
-
designSystemVersionId:
|
|
6884
|
+
z236.object({
|
|
6885
|
+
id: z236.string(),
|
|
6886
|
+
persistentId: z236.string(),
|
|
6887
|
+
designSystemVersionId: z236.string(),
|
|
6791
6888
|
meta: ObjectMeta,
|
|
6792
6889
|
originStyle: DesignTokenOrigin.optional(),
|
|
6793
|
-
brandId:
|
|
6794
|
-
collectionId:
|
|
6795
|
-
updatedAt:
|
|
6890
|
+
brandId: z236.string(),
|
|
6891
|
+
collectionId: z236.string().optional(),
|
|
6892
|
+
updatedAt: z236.coerce.date()
|
|
6796
6893
|
})
|
|
6797
6894
|
);
|
|
6798
|
-
var DTODesignTokenListResponse =
|
|
6895
|
+
var DTODesignTokenListResponse = z236.object({
|
|
6799
6896
|
tokens: DTODesignToken.array()
|
|
6800
6897
|
});
|
|
6801
|
-
var DTODesignTokenResponse =
|
|
6898
|
+
var DTODesignTokenResponse = z236.object({
|
|
6802
6899
|
token: DTODesignToken
|
|
6803
6900
|
});
|
|
6804
|
-
var DTODesignTokenGroup =
|
|
6805
|
-
id:
|
|
6901
|
+
var DTODesignTokenGroup = z236.object({
|
|
6902
|
+
id: z236.string(),
|
|
6806
6903
|
tokenType: DesignTokenType,
|
|
6807
|
-
persistentId:
|
|
6808
|
-
isRoot:
|
|
6809
|
-
brandId:
|
|
6904
|
+
persistentId: z236.string(),
|
|
6905
|
+
isRoot: z236.boolean(),
|
|
6906
|
+
brandId: z236.string(),
|
|
6810
6907
|
meta: ObjectMeta,
|
|
6811
|
-
childrenIds:
|
|
6908
|
+
childrenIds: z236.string().array()
|
|
6812
6909
|
});
|
|
6813
|
-
var DTODesignTokenGroupListResponse =
|
|
6910
|
+
var DTODesignTokenGroupListResponse = z236.object({
|
|
6814
6911
|
groups: DTODesignTokenGroup.array()
|
|
6815
6912
|
});
|
|
6816
|
-
var DTODesignTokenGroupResponse =
|
|
6913
|
+
var DTODesignTokenGroupResponse = z236.object({
|
|
6817
6914
|
group: DTODesignTokenGroup
|
|
6818
6915
|
});
|
|
6819
6916
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6820
|
-
|
|
6821
|
-
persistentId:
|
|
6917
|
+
z236.object({
|
|
6918
|
+
persistentId: z236.string(),
|
|
6822
6919
|
meta: ObjectMeta,
|
|
6823
|
-
brandId:
|
|
6824
|
-
groupPersistentId:
|
|
6920
|
+
brandId: z236.string(),
|
|
6921
|
+
groupPersistentId: z236.string().optional()
|
|
6825
6922
|
})
|
|
6826
6923
|
);
|
|
6827
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6828
|
-
persistentId:
|
|
6924
|
+
var DTODesignTokenGroupCreatePayload = z236.object({
|
|
6925
|
+
persistentId: z236.string(),
|
|
6829
6926
|
meta: ObjectMeta,
|
|
6830
|
-
brandId:
|
|
6831
|
-
parentId:
|
|
6927
|
+
brandId: z236.string(),
|
|
6928
|
+
parentId: z236.string().optional(),
|
|
6832
6929
|
tokenType: DesignTokenType,
|
|
6833
|
-
childrenIds:
|
|
6930
|
+
childrenIds: z236.string().array()
|
|
6834
6931
|
});
|
|
6835
6932
|
|
|
6836
6933
|
// src/api/dto/documentation/analytics-v2.ts
|
|
6837
|
-
import { z as
|
|
6838
|
-
var DTODocumentationAnalyticsTimeFrame =
|
|
6839
|
-
start:
|
|
6840
|
-
end:
|
|
6934
|
+
import { z as z237 } from "zod";
|
|
6935
|
+
var DTODocumentationAnalyticsTimeFrame = z237.object({
|
|
6936
|
+
start: z237.coerce.date(),
|
|
6937
|
+
end: z237.coerce.date().optional()
|
|
6841
6938
|
});
|
|
6842
|
-
var DTOPublishedDocVisitData =
|
|
6843
|
-
timestamp:
|
|
6844
|
-
versionId:
|
|
6845
|
-
locale:
|
|
6846
|
-
visits:
|
|
6847
|
-
sessions:
|
|
6939
|
+
var DTOPublishedDocVisitData = z237.object({
|
|
6940
|
+
timestamp: z237.coerce.date(),
|
|
6941
|
+
versionId: z237.string(),
|
|
6942
|
+
locale: z237.string().optional(),
|
|
6943
|
+
visits: z237.number(),
|
|
6944
|
+
sessions: z237.number()
|
|
6848
6945
|
});
|
|
6849
6946
|
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
6850
|
-
pagePersistentId:
|
|
6947
|
+
pagePersistentId: z237.string()
|
|
6851
6948
|
});
|
|
6852
|
-
var DTOPublishedDocVisitHeatMapDay =
|
|
6853
|
-
var DTOPublishedDocVisitHeatMapWeek =
|
|
6949
|
+
var DTOPublishedDocVisitHeatMapDay = z237.number().array().length(12);
|
|
6950
|
+
var DTOPublishedDocVisitHeatMapWeek = z237.object({
|
|
6854
6951
|
/**
|
|
6855
6952
|
* For which timeframe it was calculated
|
|
6856
6953
|
*/
|
|
@@ -6863,75 +6960,65 @@ var DTOPublishedDocVisitHeatMapWeek = z236.object({
|
|
|
6863
6960
|
sat: DTOPublishedDocVisitHeatMapDay,
|
|
6864
6961
|
sun: DTOPublishedDocVisitHeatMapDay
|
|
6865
6962
|
});
|
|
6866
|
-
var DTOPublishedDocAnalyticsComparisonData =
|
|
6963
|
+
var DTOPublishedDocAnalyticsComparisonData = z237.object({
|
|
6867
6964
|
/**
|
|
6868
6965
|
* For which timeframe it was calculated
|
|
6869
6966
|
*/
|
|
6870
6967
|
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
6871
|
-
priorVisitCount:
|
|
6872
|
-
priorSessionCount:
|
|
6873
|
-
currentVisitCount:
|
|
6874
|
-
currentSessionCount:
|
|
6968
|
+
priorVisitCount: z237.number(),
|
|
6969
|
+
priorSessionCount: z237.number(),
|
|
6970
|
+
currentVisitCount: z237.number(),
|
|
6971
|
+
currentSessionCount: z237.number()
|
|
6875
6972
|
});
|
|
6876
6973
|
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
6877
|
-
pagePersistentId:
|
|
6974
|
+
pagePersistentId: z237.string()
|
|
6878
6975
|
});
|
|
6879
|
-
var DTODocumentationPageAnalyticsResponse =
|
|
6880
|
-
// Old
|
|
6881
|
-
/**
|
|
6882
|
-
* @deprecated
|
|
6883
|
-
*/
|
|
6884
|
-
analytics: z236.array(DTOPublishedDocPageVisitData),
|
|
6885
|
-
/**
|
|
6886
|
-
* @deprecated
|
|
6887
|
-
*/
|
|
6888
|
-
perPageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
6889
|
-
// New
|
|
6976
|
+
var DTODocumentationPageAnalyticsResponse = z237.object({
|
|
6890
6977
|
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
6891
6978
|
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
6892
6979
|
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
6893
6980
|
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
6894
6981
|
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
6895
6982
|
});
|
|
6896
|
-
var DTODocumentationAnalyticsRequest =
|
|
6897
|
-
timeFrames:
|
|
6983
|
+
var DTODocumentationAnalyticsRequest = z237.object({
|
|
6984
|
+
timeFrames: z237.array(DTODocumentationAnalyticsTimeFrame)
|
|
6898
6985
|
});
|
|
6899
|
-
|
|
6900
|
-
// src/api/dto/documentation/analytics.ts
|
|
6901
|
-
import { z as
|
|
6902
|
-
var DTODocumentationPageAnalyticsDifference =
|
|
6903
|
-
startDate:
|
|
6904
|
-
endDate:
|
|
6905
|
-
currentVisitCount:
|
|
6906
|
-
currentSessionCount:
|
|
6907
|
-
priorVisitCount:
|
|
6908
|
-
priorSessionCount:
|
|
6986
|
+
|
|
6987
|
+
// src/api/dto/documentation/analytics.ts
|
|
6988
|
+
import { z as z238 } from "zod";
|
|
6989
|
+
var DTODocumentationPageAnalyticsDifference = z238.object({
|
|
6990
|
+
startDate: z238.coerce.date(),
|
|
6991
|
+
endDate: z238.coerce.date().optional(),
|
|
6992
|
+
currentVisitCount: z238.number(),
|
|
6993
|
+
currentSessionCount: z238.number(),
|
|
6994
|
+
priorVisitCount: z238.number(),
|
|
6995
|
+
priorSessionCount: z238.number()
|
|
6909
6996
|
});
|
|
6910
|
-
var DTODocumentationPageIntervalDifferenceResponse =
|
|
6911
|
-
differences:
|
|
6997
|
+
var DTODocumentationPageIntervalDifferenceResponse = z238.object({
|
|
6998
|
+
differences: z238.array(DTODocumentationPageAnalyticsDifference)
|
|
6912
6999
|
});
|
|
6913
7000
|
|
|
6914
7001
|
// src/api/dto/documentation/anchor.ts
|
|
6915
|
-
import { z as
|
|
7002
|
+
import { z as z239 } from "zod";
|
|
6916
7003
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6917
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6918
|
-
anchors:
|
|
7004
|
+
var DTOGetDocumentationPageAnchorsResponse = z239.object({
|
|
7005
|
+
anchors: z239.array(DTODocumentationPageAnchor)
|
|
6919
7006
|
});
|
|
6920
7007
|
|
|
6921
7008
|
// src/api/dto/documentation/approvals.ts
|
|
6922
|
-
import { z as
|
|
6923
|
-
var DTODocumentationPageApprovalState =
|
|
7009
|
+
import { z as z240 } from "zod";
|
|
7010
|
+
var DTODocumentationPageApprovalState = z240.object({
|
|
6924
7011
|
approvalState: DocumentationPageApprovalState,
|
|
6925
|
-
pagePersistentId:
|
|
6926
|
-
updatedByUserId:
|
|
6927
|
-
designSystemVersionId:
|
|
6928
|
-
updatedAt:
|
|
6929
|
-
createdAt:
|
|
6930
|
-
});
|
|
6931
|
-
var DTODocumentationGroupApprovalState =
|
|
6932
|
-
persistentId:
|
|
6933
|
-
groupPersistentId:
|
|
6934
|
-
designSystemVersionId:
|
|
7012
|
+
pagePersistentId: z240.string(),
|
|
7013
|
+
updatedByUserId: z240.string(),
|
|
7014
|
+
designSystemVersionId: z240.string(),
|
|
7015
|
+
updatedAt: z240.coerce.date(),
|
|
7016
|
+
createdAt: z240.coerce.date()
|
|
7017
|
+
});
|
|
7018
|
+
var DTODocumentationGroupApprovalState = z240.object({
|
|
7019
|
+
persistentId: z240.string(),
|
|
7020
|
+
groupPersistentId: z240.string(),
|
|
7021
|
+
designSystemVersionId: z240.string(),
|
|
6935
7022
|
approvalState: DocumentationPageApprovalState
|
|
6936
7023
|
});
|
|
6937
7024
|
|
|
@@ -6939,68 +7026,68 @@ var DTODocumentationGroupApprovalState = z239.object({
|
|
|
6939
7026
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6940
7027
|
|
|
6941
7028
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6942
|
-
import { z as
|
|
7029
|
+
import { z as z245 } from "zod";
|
|
6943
7030
|
|
|
6944
7031
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6945
|
-
import { z as
|
|
7032
|
+
import { z as z244 } from "zod";
|
|
6946
7033
|
|
|
6947
7034
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6948
|
-
import { z as
|
|
7035
|
+
import { z as z242 } from "zod";
|
|
6949
7036
|
|
|
6950
7037
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6951
|
-
import { z as
|
|
7038
|
+
import { z as z241 } from "zod";
|
|
6952
7039
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6953
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6954
|
-
showSidebar:
|
|
6955
|
-
isPrivate:
|
|
6956
|
-
isHidden:
|
|
7040
|
+
var DTODocumentationItemConfigurationV2 = z241.object({
|
|
7041
|
+
showSidebar: z241.boolean(),
|
|
7042
|
+
isPrivate: z241.boolean(),
|
|
7043
|
+
isHidden: z241.boolean(),
|
|
6957
7044
|
header: DTODocumentationItemHeaderV2
|
|
6958
7045
|
});
|
|
6959
7046
|
|
|
6960
7047
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6961
|
-
var DTODocumentationDraftChangeType =
|
|
6962
|
-
var DTODocumentationDraftStateCreated =
|
|
6963
|
-
changeType:
|
|
6964
|
-
});
|
|
6965
|
-
var DTODocumentationDraftStateUpdated =
|
|
6966
|
-
changeType:
|
|
6967
|
-
changes:
|
|
6968
|
-
previousTitle:
|
|
7048
|
+
var DTODocumentationDraftChangeType = z242.enum(["Created", "Updated", "Deleted"]);
|
|
7049
|
+
var DTODocumentationDraftStateCreated = z242.object({
|
|
7050
|
+
changeType: z242.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
7051
|
+
});
|
|
7052
|
+
var DTODocumentationDraftStateUpdated = z242.object({
|
|
7053
|
+
changeType: z242.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
7054
|
+
changes: z242.object({
|
|
7055
|
+
previousTitle: z242.string().optional(),
|
|
6969
7056
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6970
|
-
previousContentHash:
|
|
7057
|
+
previousContentHash: z242.string().optional()
|
|
6971
7058
|
})
|
|
6972
7059
|
});
|
|
6973
|
-
var DTODocumentationDraftStateDeleted =
|
|
6974
|
-
changeType:
|
|
6975
|
-
deletedAt:
|
|
6976
|
-
deletedByUserId:
|
|
7060
|
+
var DTODocumentationDraftStateDeleted = z242.object({
|
|
7061
|
+
changeType: z242.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
7062
|
+
deletedAt: z242.coerce.date(),
|
|
7063
|
+
deletedByUserId: z242.string()
|
|
6977
7064
|
});
|
|
6978
|
-
var DTODocumentationDraftState =
|
|
7065
|
+
var DTODocumentationDraftState = z242.discriminatedUnion("changeType", [
|
|
6979
7066
|
DTODocumentationDraftStateCreated,
|
|
6980
7067
|
DTODocumentationDraftStateUpdated,
|
|
6981
7068
|
DTODocumentationDraftStateDeleted
|
|
6982
7069
|
]);
|
|
6983
7070
|
|
|
6984
7071
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6985
|
-
import { z as
|
|
6986
|
-
var DTODocumentationPublishMetadata =
|
|
6987
|
-
lastPublishedByUserId:
|
|
6988
|
-
lastPublishedAt:
|
|
7072
|
+
import { z as z243 } from "zod";
|
|
7073
|
+
var DTODocumentationPublishMetadata = z243.object({
|
|
7074
|
+
lastPublishedByUserId: z243.string(),
|
|
7075
|
+
lastPublishedAt: z243.coerce.date()
|
|
6989
7076
|
});
|
|
6990
7077
|
|
|
6991
7078
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6992
|
-
var DTODocumentationPageV2 =
|
|
6993
|
-
id:
|
|
6994
|
-
persistentId:
|
|
6995
|
-
designSystemVersionId:
|
|
6996
|
-
title:
|
|
7079
|
+
var DTODocumentationPageV2 = z244.object({
|
|
7080
|
+
id: z244.string(),
|
|
7081
|
+
persistentId: z244.string(),
|
|
7082
|
+
designSystemVersionId: z244.string(),
|
|
7083
|
+
title: z244.string(),
|
|
6997
7084
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6998
|
-
shortPersistentId:
|
|
6999
|
-
slug:
|
|
7000
|
-
userSlug:
|
|
7001
|
-
createdAt:
|
|
7002
|
-
updatedAt:
|
|
7003
|
-
path:
|
|
7085
|
+
shortPersistentId: z244.string(),
|
|
7086
|
+
slug: z244.string().optional(),
|
|
7087
|
+
userSlug: z244.string().optional(),
|
|
7088
|
+
createdAt: z244.coerce.date(),
|
|
7089
|
+
updatedAt: z244.coerce.date(),
|
|
7090
|
+
path: z244.string(),
|
|
7004
7091
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7005
7092
|
draftState: DTODocumentationDraftState.optional(),
|
|
7006
7093
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -7008,267 +7095,267 @@ var DTODocumentationPageV2 = z243.object({
|
|
|
7008
7095
|
/** Defines the approval state of the documentation page */
|
|
7009
7096
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
7010
7097
|
/** Id of the page document room */
|
|
7011
|
-
liveblocksRoomId:
|
|
7098
|
+
liveblocksRoomId: z244.string().optional(),
|
|
7012
7099
|
// Backward compatibility
|
|
7013
|
-
type:
|
|
7100
|
+
type: z244.literal("Page")
|
|
7014
7101
|
});
|
|
7015
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7102
|
+
var DTOCreateDocumentationPageInputV2 = z244.object({
|
|
7016
7103
|
// Identifier
|
|
7017
|
-
persistentId:
|
|
7104
|
+
persistentId: z244.string(),
|
|
7018
7105
|
// Page properties
|
|
7019
|
-
title:
|
|
7106
|
+
title: z244.string(),
|
|
7020
7107
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7021
7108
|
// Page placement properties
|
|
7022
|
-
parentPersistentId:
|
|
7023
|
-
afterPersistentId:
|
|
7109
|
+
parentPersistentId: z244.string(),
|
|
7110
|
+
afterPersistentId: z244.string().nullish()
|
|
7024
7111
|
});
|
|
7025
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7112
|
+
var DTOUpdateDocumentationPageInputV2 = z244.object({
|
|
7026
7113
|
// Identifier of the page to update
|
|
7027
|
-
id:
|
|
7114
|
+
id: z244.string(),
|
|
7028
7115
|
// Page properties
|
|
7029
|
-
title:
|
|
7116
|
+
title: z244.string().optional(),
|
|
7030
7117
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7031
7118
|
});
|
|
7032
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7119
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z244.object({
|
|
7033
7120
|
// Identifier of the page to update
|
|
7034
|
-
id:
|
|
7121
|
+
id: z244.string(),
|
|
7035
7122
|
// Page properties
|
|
7036
|
-
documentItems:
|
|
7123
|
+
documentItems: z244.array(DocumentationPageContentItem)
|
|
7037
7124
|
});
|
|
7038
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7125
|
+
var DTOMoveDocumentationPageInputV2 = z244.object({
|
|
7039
7126
|
// Identifier of the group to update
|
|
7040
|
-
id:
|
|
7127
|
+
id: z244.string(),
|
|
7041
7128
|
// Page placement properties
|
|
7042
|
-
parentPersistentId:
|
|
7043
|
-
afterPersistentId:
|
|
7129
|
+
parentPersistentId: z244.string(),
|
|
7130
|
+
afterPersistentId: z244.string().nullish()
|
|
7044
7131
|
});
|
|
7045
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7132
|
+
var DTODuplicateDocumentationPageInputV2 = z244.object({
|
|
7046
7133
|
// Identifier of the page to duplicate from
|
|
7047
|
-
id:
|
|
7134
|
+
id: z244.string(),
|
|
7048
7135
|
// New page persistent id
|
|
7049
|
-
persistentId:
|
|
7136
|
+
persistentId: z244.string(),
|
|
7050
7137
|
// Page placement properties
|
|
7051
|
-
parentPersistentId:
|
|
7052
|
-
afterPersistentId:
|
|
7138
|
+
parentPersistentId: z244.string(),
|
|
7139
|
+
afterPersistentId: z244.string().nullish()
|
|
7053
7140
|
});
|
|
7054
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7141
|
+
var DTODeleteDocumentationPageInputV2 = z244.object({
|
|
7055
7142
|
// Identifier
|
|
7056
|
-
id:
|
|
7143
|
+
id: z244.string()
|
|
7057
7144
|
});
|
|
7058
|
-
var DTORestoreDocumentationPageInput =
|
|
7059
|
-
persistentId:
|
|
7060
|
-
snapshotId:
|
|
7145
|
+
var DTORestoreDocumentationPageInput = z244.object({
|
|
7146
|
+
persistentId: z244.string(),
|
|
7147
|
+
snapshotId: z244.string().optional()
|
|
7061
7148
|
});
|
|
7062
|
-
var DTORestoreDocumentationGroupInput =
|
|
7063
|
-
persistentId:
|
|
7064
|
-
snapshotId:
|
|
7149
|
+
var DTORestoreDocumentationGroupInput = z244.object({
|
|
7150
|
+
persistentId: z244.string(),
|
|
7151
|
+
snapshotId: z244.string().optional()
|
|
7065
7152
|
});
|
|
7066
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
7067
|
-
persistentId:
|
|
7153
|
+
var DTODocumentationPageApprovalStateChangeInput = z244.object({
|
|
7154
|
+
persistentId: z244.string(),
|
|
7068
7155
|
approvalState: DocumentationPageApprovalState.optional()
|
|
7069
7156
|
});
|
|
7070
7157
|
|
|
7071
7158
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7072
|
-
var DTODocumentationPageSnapshot =
|
|
7073
|
-
id:
|
|
7074
|
-
designSystemVersionId:
|
|
7075
|
-
createdAt:
|
|
7076
|
-
updatedAt:
|
|
7159
|
+
var DTODocumentationPageSnapshot = z245.object({
|
|
7160
|
+
id: z245.string(),
|
|
7161
|
+
designSystemVersionId: z245.string(),
|
|
7162
|
+
createdAt: z245.string(),
|
|
7163
|
+
updatedAt: z245.string(),
|
|
7077
7164
|
documentationPage: DTODocumentationPageV2,
|
|
7078
|
-
pageContentHash:
|
|
7165
|
+
pageContentHash: z245.string(),
|
|
7079
7166
|
reason: DesignElementSnapshotReason
|
|
7080
7167
|
});
|
|
7081
7168
|
|
|
7082
7169
|
// src/api/dto/documentation/link-preview.ts
|
|
7083
|
-
import { z as
|
|
7084
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7170
|
+
import { z as z246 } from "zod";
|
|
7171
|
+
var DTODocumentationLinkPreviewResponse = z246.object({
|
|
7085
7172
|
linkPreview: DocumentationLinkPreview
|
|
7086
7173
|
});
|
|
7087
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7088
|
-
url:
|
|
7089
|
-
documentationItemPersistentId:
|
|
7174
|
+
var DTODocumentationLinkPreviewRequest = z246.object({
|
|
7175
|
+
url: z246.string().optional(),
|
|
7176
|
+
documentationItemPersistentId: z246.string().optional()
|
|
7090
7177
|
});
|
|
7091
7178
|
|
|
7092
7179
|
// src/api/dto/documentation/publish.ts
|
|
7093
|
-
import { z as
|
|
7180
|
+
import { z as z250 } from "zod";
|
|
7094
7181
|
|
|
7095
7182
|
// src/api/dto/export/exporter.ts
|
|
7096
|
-
import { z as
|
|
7097
|
-
var DTOExporterType =
|
|
7098
|
-
var DTOExporterSource =
|
|
7099
|
-
var DTOExporterMembershipRole =
|
|
7100
|
-
var DTOExporterListQuery =
|
|
7101
|
-
limit:
|
|
7102
|
-
offset:
|
|
7183
|
+
import { z as z247 } from "zod";
|
|
7184
|
+
var DTOExporterType = z247.enum(["documentation", "code"]);
|
|
7185
|
+
var DTOExporterSource = z247.enum(["git", "upload"]);
|
|
7186
|
+
var DTOExporterMembershipRole = z247.enum(["Owner", "OwnerArchived", "User"]);
|
|
7187
|
+
var DTOExporterListQuery = z247.object({
|
|
7188
|
+
limit: z247.coerce.number().optional(),
|
|
7189
|
+
offset: z247.coerce.number().optional(),
|
|
7103
7190
|
type: DTOExporterType.optional(),
|
|
7104
|
-
search:
|
|
7191
|
+
search: z247.string().optional()
|
|
7105
7192
|
});
|
|
7106
|
-
var DTOExporter =
|
|
7107
|
-
id:
|
|
7108
|
-
name:
|
|
7109
|
-
isPrivate:
|
|
7193
|
+
var DTOExporter = z247.object({
|
|
7194
|
+
id: z247.string(),
|
|
7195
|
+
name: z247.string(),
|
|
7196
|
+
isPrivate: z247.boolean(),
|
|
7110
7197
|
exporterType: DTOExporterType,
|
|
7111
|
-
isDefaultDocumentationExporter:
|
|
7112
|
-
iconURL:
|
|
7198
|
+
isDefaultDocumentationExporter: z247.boolean(),
|
|
7199
|
+
iconURL: z247.string().optional(),
|
|
7113
7200
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7114
7201
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7115
7202
|
customBlocks: PulsarCustomBlock.array(),
|
|
7116
|
-
blockVariants:
|
|
7117
|
-
homepage:
|
|
7118
|
-
organization:
|
|
7119
|
-
packageId:
|
|
7120
|
-
tags:
|
|
7121
|
-
author:
|
|
7122
|
-
version:
|
|
7123
|
-
description:
|
|
7124
|
-
usesLocale:
|
|
7125
|
-
usesBrands:
|
|
7126
|
-
usesThemes:
|
|
7127
|
-
readme:
|
|
7128
|
-
routingVersion:
|
|
7203
|
+
blockVariants: z247.record(z247.string(), PulsarContributionVariant.array()),
|
|
7204
|
+
homepage: z247.string().optional(),
|
|
7205
|
+
organization: z247.string().optional(),
|
|
7206
|
+
packageId: z247.string().optional(),
|
|
7207
|
+
tags: z247.array(z247.string()),
|
|
7208
|
+
author: z247.string().optional(),
|
|
7209
|
+
version: z247.string(),
|
|
7210
|
+
description: z247.string(),
|
|
7211
|
+
usesLocale: z247.boolean(),
|
|
7212
|
+
usesBrands: z247.boolean(),
|
|
7213
|
+
usesThemes: z247.boolean(),
|
|
7214
|
+
readme: z247.string().optional(),
|
|
7215
|
+
routingVersion: z247.string().optional(),
|
|
7129
7216
|
source: DTOExporterSource,
|
|
7130
|
-
gitProvider:
|
|
7131
|
-
gitUrl: nullishToOptional(
|
|
7132
|
-
gitBranch: nullishToOptional(
|
|
7133
|
-
gitDirectory: nullishToOptional(
|
|
7134
|
-
isDeprecated:
|
|
7135
|
-
deprecationNote:
|
|
7136
|
-
replacementExporterId:
|
|
7137
|
-
});
|
|
7138
|
-
var DTOExporterMembership =
|
|
7139
|
-
workspaceId:
|
|
7140
|
-
exporterId:
|
|
7217
|
+
gitProvider: z247.string().optional(),
|
|
7218
|
+
gitUrl: nullishToOptional(z247.string()),
|
|
7219
|
+
gitBranch: nullishToOptional(z247.string()),
|
|
7220
|
+
gitDirectory: nullishToOptional(z247.string()),
|
|
7221
|
+
isDeprecated: z247.boolean(),
|
|
7222
|
+
deprecationNote: z247.string().optional(),
|
|
7223
|
+
replacementExporterId: z247.string().optional()
|
|
7224
|
+
});
|
|
7225
|
+
var DTOExporterMembership = z247.object({
|
|
7226
|
+
workspaceId: z247.string(),
|
|
7227
|
+
exporterId: z247.string(),
|
|
7141
7228
|
role: DTOExporterMembershipRole
|
|
7142
7229
|
});
|
|
7143
|
-
var DTOExporterResponse =
|
|
7230
|
+
var DTOExporterResponse = z247.object({
|
|
7144
7231
|
exporter: DTOExporter,
|
|
7145
7232
|
membership: DTOExporterMembership
|
|
7146
7233
|
});
|
|
7147
|
-
var DTOExporterListResponse =
|
|
7234
|
+
var DTOExporterListResponse = z247.object({
|
|
7148
7235
|
exporters: DTOExporter.array(),
|
|
7149
7236
|
membership: DTOExporterMembership.array(),
|
|
7150
|
-
total:
|
|
7237
|
+
total: z247.number()
|
|
7151
7238
|
});
|
|
7152
|
-
var DTOExporterGitProviderEnum =
|
|
7153
|
-
var DTOExporterCreateInput =
|
|
7154
|
-
url:
|
|
7239
|
+
var DTOExporterGitProviderEnum = z247.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
7240
|
+
var DTOExporterCreateInput = z247.object({
|
|
7241
|
+
url: z247.string(),
|
|
7155
7242
|
provider: DTOExporterGitProviderEnum
|
|
7156
7243
|
});
|
|
7157
|
-
var DTOExporterUpdateInput =
|
|
7158
|
-
url:
|
|
7244
|
+
var DTOExporterUpdateInput = z247.object({
|
|
7245
|
+
url: z247.string().optional()
|
|
7159
7246
|
});
|
|
7160
|
-
var DTOExporterDeprecationInput =
|
|
7161
|
-
isDeprecated:
|
|
7162
|
-
deprecationNote:
|
|
7163
|
-
replacementExporterId:
|
|
7247
|
+
var DTOExporterDeprecationInput = z247.object({
|
|
7248
|
+
isDeprecated: z247.boolean(),
|
|
7249
|
+
deprecationNote: z247.string().optional(),
|
|
7250
|
+
replacementExporterId: z247.string().optional()
|
|
7164
7251
|
});
|
|
7165
7252
|
|
|
7166
7253
|
// src/api/dto/export/filter.ts
|
|
7167
7254
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
7168
7255
|
|
|
7169
7256
|
// src/api/dto/export/job.ts
|
|
7170
|
-
import { z as
|
|
7171
|
-
var DTOExportJobCreatedBy =
|
|
7172
|
-
userId:
|
|
7173
|
-
userName:
|
|
7257
|
+
import { z as z248 } from "zod";
|
|
7258
|
+
var DTOExportJobCreatedBy = z248.object({
|
|
7259
|
+
userId: z248.string(),
|
|
7260
|
+
userName: z248.string()
|
|
7174
7261
|
});
|
|
7175
|
-
var DTOExportJobDesignSystemPreview =
|
|
7176
|
-
id:
|
|
7262
|
+
var DTOExportJobDesignSystemPreview = z248.object({
|
|
7263
|
+
id: z248.string(),
|
|
7177
7264
|
meta: ObjectMeta
|
|
7178
7265
|
});
|
|
7179
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
7180
|
-
id:
|
|
7266
|
+
var DTOExportJobDesignSystemVersionPreview = z248.object({
|
|
7267
|
+
id: z248.string(),
|
|
7181
7268
|
meta: ObjectMeta,
|
|
7182
|
-
version:
|
|
7183
|
-
isReadonly:
|
|
7269
|
+
version: z248.string(),
|
|
7270
|
+
isReadonly: z248.boolean()
|
|
7184
7271
|
});
|
|
7185
|
-
var DTOExportJobDestinations =
|
|
7272
|
+
var DTOExportJobDestinations = z248.object({
|
|
7186
7273
|
s3: ExporterDestinationS3.optional(),
|
|
7187
7274
|
azure: ExporterDestinationAzure.optional(),
|
|
7188
7275
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
7189
7276
|
github: ExporterDestinationGithub.optional(),
|
|
7190
7277
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
7191
7278
|
documentation: ExporterDestinationDocs.optional(),
|
|
7192
|
-
webhookUrl:
|
|
7279
|
+
webhookUrl: z248.string().optional()
|
|
7193
7280
|
});
|
|
7194
7281
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
7195
7282
|
sndocs: true
|
|
7196
7283
|
}).extend({
|
|
7197
7284
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
7198
7285
|
});
|
|
7199
|
-
var DTOExportJob =
|
|
7200
|
-
id:
|
|
7201
|
-
createdAt:
|
|
7202
|
-
finishedAt:
|
|
7203
|
-
index:
|
|
7286
|
+
var DTOExportJob = z248.object({
|
|
7287
|
+
id: z248.string(),
|
|
7288
|
+
createdAt: z248.coerce.date(),
|
|
7289
|
+
finishedAt: z248.coerce.date().optional(),
|
|
7290
|
+
index: z248.number().optional(),
|
|
7204
7291
|
status: ExportJobStatus,
|
|
7205
|
-
estimatedExecutionTime:
|
|
7292
|
+
estimatedExecutionTime: z248.number().optional(),
|
|
7206
7293
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
7207
7294
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
7208
7295
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
7209
7296
|
destinations: DTOExportJobDestinations,
|
|
7210
|
-
exporterId:
|
|
7211
|
-
scheduleId:
|
|
7297
|
+
exporterId: z248.string(),
|
|
7298
|
+
scheduleId: z248.string().optional(),
|
|
7212
7299
|
result: DTOExportJobResult.optional(),
|
|
7213
|
-
brandPersistentId:
|
|
7214
|
-
themePersistentId:
|
|
7215
|
-
themePersistentIds:
|
|
7300
|
+
brandPersistentId: z248.string().optional(),
|
|
7301
|
+
themePersistentId: z248.string().optional(),
|
|
7302
|
+
themePersistentIds: z248.string().array().optional(),
|
|
7216
7303
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
7217
7304
|
});
|
|
7218
|
-
var DTOExportJobResponse =
|
|
7305
|
+
var DTOExportJobResponse = z248.object({
|
|
7219
7306
|
job: DTOExportJob
|
|
7220
7307
|
});
|
|
7221
|
-
var DTOExportJobResponseLegacy =
|
|
7222
|
-
job:
|
|
7223
|
-
id:
|
|
7308
|
+
var DTOExportJobResponseLegacy = z248.object({
|
|
7309
|
+
job: z248.object({
|
|
7310
|
+
id: z248.string(),
|
|
7224
7311
|
status: ExportJobStatus
|
|
7225
7312
|
})
|
|
7226
7313
|
});
|
|
7227
|
-
var DTOExportJobCreateInput =
|
|
7228
|
-
designSystemId:
|
|
7229
|
-
designSystemVersionId:
|
|
7230
|
-
exporterId:
|
|
7231
|
-
brandId:
|
|
7232
|
-
themeId:
|
|
7233
|
-
themePersistentIds:
|
|
7314
|
+
var DTOExportJobCreateInput = z248.object({
|
|
7315
|
+
designSystemId: z248.string(),
|
|
7316
|
+
designSystemVersionId: z248.string(),
|
|
7317
|
+
exporterId: z248.string(),
|
|
7318
|
+
brandId: z248.string().optional(),
|
|
7319
|
+
themeId: z248.string().optional(),
|
|
7320
|
+
themePersistentIds: z248.string().array().optional(),
|
|
7234
7321
|
destinations: DTOExportJobDestinations,
|
|
7235
7322
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7236
|
-
previewMode:
|
|
7323
|
+
previewMode: z248.boolean().optional()
|
|
7237
7324
|
});
|
|
7238
7325
|
|
|
7239
7326
|
// src/api/dto/export/pipeline.ts
|
|
7240
|
-
import { z as
|
|
7241
|
-
var DTOPipelineListQuery =
|
|
7242
|
-
designSystemId:
|
|
7243
|
-
exporterId:
|
|
7244
|
-
latestJobsLimit:
|
|
7245
|
-
});
|
|
7246
|
-
var DTOPipeline =
|
|
7247
|
-
id:
|
|
7248
|
-
name:
|
|
7327
|
+
import { z as z249 } from "zod";
|
|
7328
|
+
var DTOPipelineListQuery = z249.object({
|
|
7329
|
+
designSystemId: z249.string().optional(),
|
|
7330
|
+
exporterId: z249.string().optional(),
|
|
7331
|
+
latestJobsLimit: z249.coerce.number().optional()
|
|
7332
|
+
});
|
|
7333
|
+
var DTOPipeline = z249.object({
|
|
7334
|
+
id: z249.string(),
|
|
7335
|
+
name: z249.string(),
|
|
7249
7336
|
eventType: PipelineEventType,
|
|
7250
|
-
isEnabled:
|
|
7251
|
-
workspaceId:
|
|
7252
|
-
designSystemId:
|
|
7253
|
-
exporterId:
|
|
7254
|
-
brandPersistentId:
|
|
7255
|
-
themePersistentId:
|
|
7256
|
-
themePersistentIds:
|
|
7337
|
+
isEnabled: z249.boolean(),
|
|
7338
|
+
workspaceId: z249.string(),
|
|
7339
|
+
designSystemId: z249.string(),
|
|
7340
|
+
exporterId: z249.string(),
|
|
7341
|
+
brandPersistentId: z249.string().optional(),
|
|
7342
|
+
themePersistentId: z249.string().optional(),
|
|
7343
|
+
themePersistentIds: z249.string().array().optional(),
|
|
7257
7344
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7258
7345
|
...ExportDestinationsMap.shape,
|
|
7259
7346
|
latestJobs: DTOExportJob.array(),
|
|
7260
|
-
isExporterDeprecated:
|
|
7347
|
+
isExporterDeprecated: z249.boolean()
|
|
7261
7348
|
});
|
|
7262
|
-
var DTOPipelineListResponse =
|
|
7349
|
+
var DTOPipelineListResponse = z249.object({
|
|
7263
7350
|
pipelines: DTOPipeline.array()
|
|
7264
7351
|
});
|
|
7265
|
-
var DTOPipelineResponse =
|
|
7352
|
+
var DTOPipelineResponse = z249.object({
|
|
7266
7353
|
pipeline: DTOPipeline
|
|
7267
7354
|
});
|
|
7268
7355
|
|
|
7269
7356
|
// src/api/dto/documentation/publish.ts
|
|
7270
7357
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
7271
|
-
var DTOPublishDocumentationRequest =
|
|
7358
|
+
var DTOPublishDocumentationRequest = z250.object({
|
|
7272
7359
|
environment: PublishedDocEnvironment,
|
|
7273
7360
|
/**
|
|
7274
7361
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -7276,66 +7363,66 @@ var DTOPublishDocumentationRequest = z249.object({
|
|
|
7276
7363
|
*/
|
|
7277
7364
|
changes: DTOPublishDocumentationChanges.optional()
|
|
7278
7365
|
});
|
|
7279
|
-
var DTOPublishDocumentationResponse =
|
|
7366
|
+
var DTOPublishDocumentationResponse = z250.object({
|
|
7280
7367
|
job: DTOExportJob
|
|
7281
7368
|
});
|
|
7282
7369
|
|
|
7283
7370
|
// src/api/dto/documentation/room.ts
|
|
7284
|
-
import { z as
|
|
7285
|
-
var DTODocumentationPageRoom =
|
|
7286
|
-
id:
|
|
7371
|
+
import { z as z251 } from "zod";
|
|
7372
|
+
var DTODocumentationPageRoom = z251.object({
|
|
7373
|
+
id: z251.string()
|
|
7287
7374
|
});
|
|
7288
|
-
var DTODocumentationPageRoomResponse =
|
|
7375
|
+
var DTODocumentationPageRoomResponse = z251.object({
|
|
7289
7376
|
room: DTODocumentationPageRoom
|
|
7290
7377
|
});
|
|
7291
7378
|
|
|
7292
7379
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
7293
|
-
import
|
|
7294
|
-
var DTOFigmaComponentGroup =
|
|
7295
|
-
id:
|
|
7296
|
-
designSystemVersionId:
|
|
7297
|
-
persistentId:
|
|
7298
|
-
isRoot:
|
|
7299
|
-
brandId:
|
|
7380
|
+
import z252 from "zod";
|
|
7381
|
+
var DTOFigmaComponentGroup = z252.object({
|
|
7382
|
+
id: z252.string(),
|
|
7383
|
+
designSystemVersionId: z252.string(),
|
|
7384
|
+
persistentId: z252.string(),
|
|
7385
|
+
isRoot: z252.boolean(),
|
|
7386
|
+
brandId: z252.string(),
|
|
7300
7387
|
meta: DTOObjectMeta,
|
|
7301
|
-
childrenIds:
|
|
7388
|
+
childrenIds: z252.string().array()
|
|
7302
7389
|
});
|
|
7303
|
-
var DTOFigmaComponentGroupListResponse =
|
|
7390
|
+
var DTOFigmaComponentGroupListResponse = z252.object({
|
|
7304
7391
|
groups: DTOFigmaComponentGroup.array()
|
|
7305
7392
|
});
|
|
7306
7393
|
|
|
7307
7394
|
// src/api/dto/elements/components/figma-component.ts
|
|
7308
|
-
import { z as
|
|
7395
|
+
import { z as z253 } from "zod";
|
|
7309
7396
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
7310
|
-
var DTOFigmaComponentPropertyMap =
|
|
7311
|
-
var DTOFigmaComponent =
|
|
7312
|
-
id:
|
|
7313
|
-
persistentId:
|
|
7314
|
-
designSystemVersionId:
|
|
7315
|
-
brandId:
|
|
7316
|
-
thumbnailUrl:
|
|
7317
|
-
svgUrl:
|
|
7318
|
-
exportProperties:
|
|
7319
|
-
isAsset:
|
|
7397
|
+
var DTOFigmaComponentPropertyMap = z253.record(DTOFigmaComponentProperty);
|
|
7398
|
+
var DTOFigmaComponent = z253.object({
|
|
7399
|
+
id: z253.string(),
|
|
7400
|
+
persistentId: z253.string(),
|
|
7401
|
+
designSystemVersionId: z253.string(),
|
|
7402
|
+
brandId: z253.string(),
|
|
7403
|
+
thumbnailUrl: z253.string().optional(),
|
|
7404
|
+
svgUrl: z253.string().optional(),
|
|
7405
|
+
exportProperties: z253.object({
|
|
7406
|
+
isAsset: z253.boolean()
|
|
7320
7407
|
}),
|
|
7321
|
-
createdAt:
|
|
7322
|
-
updatedAt:
|
|
7408
|
+
createdAt: z253.coerce.date(),
|
|
7409
|
+
updatedAt: z253.coerce.date(),
|
|
7323
7410
|
meta: ObjectMeta,
|
|
7324
7411
|
originComponent: FigmaComponentOrigin.optional(),
|
|
7325
|
-
parentComponentPersistentId:
|
|
7326
|
-
childrenPersistentIds:
|
|
7412
|
+
parentComponentPersistentId: z253.string().optional(),
|
|
7413
|
+
childrenPersistentIds: z253.string().array().optional(),
|
|
7327
7414
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
7328
|
-
variantPropertyValues:
|
|
7415
|
+
variantPropertyValues: z253.record(z253.string()).optional()
|
|
7329
7416
|
});
|
|
7330
|
-
var DTOFigmaComponentListResponse =
|
|
7417
|
+
var DTOFigmaComponentListResponse = z253.object({
|
|
7331
7418
|
components: DTOFigmaComponent.array()
|
|
7332
7419
|
});
|
|
7333
7420
|
|
|
7334
7421
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7335
|
-
import { z as
|
|
7422
|
+
import { z as z255 } from "zod";
|
|
7336
7423
|
|
|
7337
7424
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
7338
|
-
import { z as
|
|
7425
|
+
import { z as z254 } from "zod";
|
|
7339
7426
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
7340
7427
|
sortOrder: true,
|
|
7341
7428
|
parentPersistentId: true,
|
|
@@ -7345,13 +7432,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7345
7432
|
data: true,
|
|
7346
7433
|
shortPersistentId: true
|
|
7347
7434
|
}).extend({
|
|
7348
|
-
title:
|
|
7349
|
-
isRoot:
|
|
7350
|
-
childrenIds:
|
|
7435
|
+
title: z254.string(),
|
|
7436
|
+
isRoot: z254.boolean(),
|
|
7437
|
+
childrenIds: z254.array(z254.string()),
|
|
7351
7438
|
groupBehavior: DocumentationGroupBehavior,
|
|
7352
|
-
shortPersistentId:
|
|
7439
|
+
shortPersistentId: z254.string(),
|
|
7353
7440
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7354
|
-
type:
|
|
7441
|
+
type: z254.literal("Group"),
|
|
7355
7442
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
7356
7443
|
draftState: DTODocumentationDraftState.optional(),
|
|
7357
7444
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -7359,127 +7446,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7359
7446
|
//** An approval state for frontend to utilize. */
|
|
7360
7447
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
7361
7448
|
});
|
|
7362
|
-
var DTOCreateDocumentationGroupInput =
|
|
7449
|
+
var DTOCreateDocumentationGroupInput = z254.object({
|
|
7363
7450
|
// Identifier
|
|
7364
|
-
persistentId:
|
|
7451
|
+
persistentId: z254.string(),
|
|
7365
7452
|
// Group properties
|
|
7366
|
-
title:
|
|
7453
|
+
title: z254.string(),
|
|
7367
7454
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7368
7455
|
// Group placement properties
|
|
7369
|
-
afterPersistentId:
|
|
7370
|
-
parentPersistentId:
|
|
7456
|
+
afterPersistentId: z254.string().nullish(),
|
|
7457
|
+
parentPersistentId: z254.string()
|
|
7371
7458
|
});
|
|
7372
|
-
var DTOUpdateDocumentationGroupInput =
|
|
7459
|
+
var DTOUpdateDocumentationGroupInput = z254.object({
|
|
7373
7460
|
// Identifier of the group to update
|
|
7374
|
-
id:
|
|
7461
|
+
id: z254.string(),
|
|
7375
7462
|
// Group properties
|
|
7376
|
-
title:
|
|
7463
|
+
title: z254.string().optional(),
|
|
7377
7464
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7378
7465
|
});
|
|
7379
|
-
var DTOMoveDocumentationGroupInput =
|
|
7466
|
+
var DTOMoveDocumentationGroupInput = z254.object({
|
|
7380
7467
|
// Identifier of the group to update
|
|
7381
|
-
id:
|
|
7468
|
+
id: z254.string(),
|
|
7382
7469
|
// Group placement properties
|
|
7383
|
-
parentPersistentId:
|
|
7384
|
-
afterPersistentId:
|
|
7470
|
+
parentPersistentId: z254.string(),
|
|
7471
|
+
afterPersistentId: z254.string().nullish()
|
|
7385
7472
|
});
|
|
7386
|
-
var DTODuplicateDocumentationGroupInput =
|
|
7473
|
+
var DTODuplicateDocumentationGroupInput = z254.object({
|
|
7387
7474
|
// Identifier of the group to duplicate from
|
|
7388
|
-
id:
|
|
7475
|
+
id: z254.string(),
|
|
7389
7476
|
// New group persistent id
|
|
7390
|
-
persistentId:
|
|
7477
|
+
persistentId: z254.string(),
|
|
7391
7478
|
// Group placement properties
|
|
7392
|
-
afterPersistentId:
|
|
7393
|
-
parentPersistentId:
|
|
7479
|
+
afterPersistentId: z254.string().nullish(),
|
|
7480
|
+
parentPersistentId: z254.string()
|
|
7394
7481
|
});
|
|
7395
|
-
var DTOCreateDocumentationTabInput =
|
|
7482
|
+
var DTOCreateDocumentationTabInput = z254.object({
|
|
7396
7483
|
// New group persistent id
|
|
7397
|
-
persistentId:
|
|
7484
|
+
persistentId: z254.string(),
|
|
7398
7485
|
// If this is page, we will attempt to convert it to tab
|
|
7399
7486
|
// If this is tab group, we will add a new tab to it
|
|
7400
|
-
fromItemPersistentId:
|
|
7401
|
-
tabName:
|
|
7487
|
+
fromItemPersistentId: z254.string(),
|
|
7488
|
+
tabName: z254.string()
|
|
7402
7489
|
});
|
|
7403
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
7490
|
+
var DTODeleteDocumentationTabGroupInput = z254.object({
|
|
7404
7491
|
// Deleted group id
|
|
7405
|
-
id:
|
|
7492
|
+
id: z254.string()
|
|
7406
7493
|
});
|
|
7407
|
-
var DTODeleteDocumentationGroupInput =
|
|
7494
|
+
var DTODeleteDocumentationGroupInput = z254.object({
|
|
7408
7495
|
// Identifier
|
|
7409
|
-
id:
|
|
7496
|
+
id: z254.string(),
|
|
7410
7497
|
// Deletion options
|
|
7411
|
-
deleteSubtree:
|
|
7498
|
+
deleteSubtree: z254.boolean().default(false)
|
|
7412
7499
|
});
|
|
7413
7500
|
|
|
7414
7501
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7415
|
-
var SuccessPayload =
|
|
7416
|
-
success:
|
|
7502
|
+
var SuccessPayload = z255.object({
|
|
7503
|
+
success: z255.literal(true)
|
|
7417
7504
|
});
|
|
7418
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
7419
|
-
type:
|
|
7505
|
+
var DTODocumentationGroupCreateActionOutputV2 = z255.object({
|
|
7506
|
+
type: z255.literal("DocumentationGroupCreate"),
|
|
7420
7507
|
output: SuccessPayload
|
|
7421
7508
|
});
|
|
7422
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
7423
|
-
type:
|
|
7509
|
+
var DTODocumentationTabCreateActionOutputV2 = z255.object({
|
|
7510
|
+
type: z255.literal("DocumentationTabCreate"),
|
|
7424
7511
|
output: SuccessPayload
|
|
7425
7512
|
});
|
|
7426
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
7427
|
-
type:
|
|
7513
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z255.object({
|
|
7514
|
+
type: z255.literal("DocumentationGroupUpdate"),
|
|
7428
7515
|
output: SuccessPayload
|
|
7429
7516
|
});
|
|
7430
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
7431
|
-
type:
|
|
7517
|
+
var DTODocumentationGroupMoveActionOutputV2 = z255.object({
|
|
7518
|
+
type: z255.literal("DocumentationGroupMove"),
|
|
7432
7519
|
output: SuccessPayload
|
|
7433
7520
|
});
|
|
7434
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
7435
|
-
type:
|
|
7521
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z255.object({
|
|
7522
|
+
type: z255.literal("DocumentationGroupDuplicate"),
|
|
7436
7523
|
output: SuccessPayload
|
|
7437
7524
|
});
|
|
7438
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
7439
|
-
type:
|
|
7525
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z255.object({
|
|
7526
|
+
type: z255.literal("DocumentationGroupDelete"),
|
|
7440
7527
|
output: SuccessPayload
|
|
7441
7528
|
});
|
|
7442
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
7443
|
-
type:
|
|
7529
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z255.object({
|
|
7530
|
+
type: z255.literal("DocumentationTabGroupDelete"),
|
|
7444
7531
|
output: SuccessPayload
|
|
7445
7532
|
});
|
|
7446
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
7447
|
-
type:
|
|
7533
|
+
var DTODocumentationGroupCreateActionInputV2 = z255.object({
|
|
7534
|
+
type: z255.literal("DocumentationGroupCreate"),
|
|
7448
7535
|
input: DTOCreateDocumentationGroupInput
|
|
7449
7536
|
});
|
|
7450
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
7451
|
-
type:
|
|
7537
|
+
var DTODocumentationTabCreateActionInputV2 = z255.object({
|
|
7538
|
+
type: z255.literal("DocumentationTabCreate"),
|
|
7452
7539
|
input: DTOCreateDocumentationTabInput
|
|
7453
7540
|
});
|
|
7454
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
7455
|
-
type:
|
|
7541
|
+
var DTODocumentationGroupUpdateActionInputV2 = z255.object({
|
|
7542
|
+
type: z255.literal("DocumentationGroupUpdate"),
|
|
7456
7543
|
input: DTOUpdateDocumentationGroupInput
|
|
7457
7544
|
});
|
|
7458
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
7459
|
-
type:
|
|
7545
|
+
var DTODocumentationGroupMoveActionInputV2 = z255.object({
|
|
7546
|
+
type: z255.literal("DocumentationGroupMove"),
|
|
7460
7547
|
input: DTOMoveDocumentationGroupInput
|
|
7461
7548
|
});
|
|
7462
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
7463
|
-
type:
|
|
7549
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z255.object({
|
|
7550
|
+
type: z255.literal("DocumentationGroupDuplicate"),
|
|
7464
7551
|
input: DTODuplicateDocumentationGroupInput
|
|
7465
7552
|
});
|
|
7466
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
7467
|
-
type:
|
|
7553
|
+
var DTODocumentationGroupDeleteActionInputV2 = z255.object({
|
|
7554
|
+
type: z255.literal("DocumentationGroupDelete"),
|
|
7468
7555
|
input: DTODeleteDocumentationGroupInput
|
|
7469
7556
|
});
|
|
7470
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
7471
|
-
type:
|
|
7557
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z255.object({
|
|
7558
|
+
type: z255.literal("DocumentationTabGroupDelete"),
|
|
7472
7559
|
input: DTODeleteDocumentationTabGroupInput
|
|
7473
7560
|
});
|
|
7474
7561
|
|
|
7475
7562
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
7476
|
-
import { z as
|
|
7563
|
+
import { z as z257 } from "zod";
|
|
7477
7564
|
|
|
7478
7565
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
7479
|
-
import { z as
|
|
7480
|
-
var DocumentationColorV1 =
|
|
7481
|
-
aliasTo:
|
|
7482
|
-
value:
|
|
7566
|
+
import { z as z256 } from "zod";
|
|
7567
|
+
var DocumentationColorV1 = z256.object({
|
|
7568
|
+
aliasTo: z256.string().optional(),
|
|
7569
|
+
value: z256.string().optional()
|
|
7483
7570
|
});
|
|
7484
7571
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
7485
7572
|
foregroundColor: true,
|
|
@@ -7488,10 +7575,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
7488
7575
|
foregroundColor: DocumentationColorV1.optional(),
|
|
7489
7576
|
backgroundColor: DocumentationColorV1.optional()
|
|
7490
7577
|
});
|
|
7491
|
-
var DTODocumentationItemConfigurationV1 =
|
|
7492
|
-
showSidebar:
|
|
7493
|
-
isPrivate:
|
|
7494
|
-
isHidden:
|
|
7578
|
+
var DTODocumentationItemConfigurationV1 = z256.object({
|
|
7579
|
+
showSidebar: z256.boolean(),
|
|
7580
|
+
isPrivate: z256.boolean(),
|
|
7581
|
+
isHidden: z256.boolean(),
|
|
7495
7582
|
header: DTODocumentationItemHeaderV1
|
|
7496
7583
|
});
|
|
7497
7584
|
|
|
@@ -7505,145 +7592,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
7505
7592
|
data: true,
|
|
7506
7593
|
shortPersistentId: true
|
|
7507
7594
|
}).extend({
|
|
7508
|
-
title:
|
|
7509
|
-
isRoot:
|
|
7510
|
-
childrenIds:
|
|
7595
|
+
title: z257.string(),
|
|
7596
|
+
isRoot: z257.boolean(),
|
|
7597
|
+
childrenIds: z257.array(z257.string()),
|
|
7511
7598
|
groupBehavior: DocumentationGroupBehavior,
|
|
7512
|
-
shortPersistentId:
|
|
7513
|
-
type:
|
|
7599
|
+
shortPersistentId: z257.string(),
|
|
7600
|
+
type: z257.literal("Group")
|
|
7514
7601
|
});
|
|
7515
7602
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
7516
7603
|
configuration: DTODocumentationItemConfigurationV1
|
|
7517
7604
|
});
|
|
7518
7605
|
|
|
7519
7606
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
7520
|
-
import { z as
|
|
7521
|
-
var DTODocumentationHierarchyV2 =
|
|
7522
|
-
pages:
|
|
7607
|
+
import { z as z258 } from "zod";
|
|
7608
|
+
var DTODocumentationHierarchyV2 = z258.object({
|
|
7609
|
+
pages: z258.array(
|
|
7523
7610
|
DTODocumentationPageV2.extend({
|
|
7524
7611
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7525
7612
|
draftState: DTODocumentationDraftState.optional()
|
|
7526
7613
|
})
|
|
7527
7614
|
),
|
|
7528
|
-
groups:
|
|
7615
|
+
groups: z258.array(
|
|
7529
7616
|
DTODocumentationGroupV2.extend({
|
|
7530
7617
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7531
7618
|
draftState: DTODocumentationDraftState.optional()
|
|
7532
7619
|
})
|
|
7533
7620
|
),
|
|
7534
7621
|
/** True if the documentation was already published, false otherwise. */
|
|
7535
|
-
hasPublishedDocumentationContent:
|
|
7622
|
+
hasPublishedDocumentationContent: z258.boolean()
|
|
7536
7623
|
});
|
|
7537
7624
|
|
|
7538
7625
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
7539
|
-
import { z as
|
|
7540
|
-
var SuccessPayload2 =
|
|
7541
|
-
success:
|
|
7626
|
+
import { z as z259 } from "zod";
|
|
7627
|
+
var SuccessPayload2 = z259.object({
|
|
7628
|
+
success: z259.literal(true)
|
|
7542
7629
|
});
|
|
7543
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7544
|
-
type:
|
|
7630
|
+
var DTODocumentationPageCreateActionOutputV2 = z259.object({
|
|
7631
|
+
type: z259.literal("DocumentationPageCreate"),
|
|
7545
7632
|
output: SuccessPayload2
|
|
7546
7633
|
});
|
|
7547
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7548
|
-
type:
|
|
7634
|
+
var DTODocumentationPageUpdateActionOutputV2 = z259.object({
|
|
7635
|
+
type: z259.literal("DocumentationPageUpdate"),
|
|
7549
7636
|
output: SuccessPayload2
|
|
7550
7637
|
});
|
|
7551
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7552
|
-
type:
|
|
7638
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z259.object({
|
|
7639
|
+
type: z259.literal("DocumentationPageUpdateDocument"),
|
|
7553
7640
|
output: SuccessPayload2
|
|
7554
7641
|
});
|
|
7555
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7556
|
-
type:
|
|
7642
|
+
var DTODocumentationPageMoveActionOutputV2 = z259.object({
|
|
7643
|
+
type: z259.literal("DocumentationPageMove"),
|
|
7557
7644
|
output: SuccessPayload2
|
|
7558
7645
|
});
|
|
7559
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7560
|
-
type:
|
|
7646
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z259.object({
|
|
7647
|
+
type: z259.literal("DocumentationPageDuplicate"),
|
|
7561
7648
|
output: SuccessPayload2
|
|
7562
7649
|
});
|
|
7563
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7564
|
-
type:
|
|
7650
|
+
var DTODocumentationPageDeleteActionOutputV2 = z259.object({
|
|
7651
|
+
type: z259.literal("DocumentationPageDelete"),
|
|
7565
7652
|
output: SuccessPayload2
|
|
7566
7653
|
});
|
|
7567
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7568
|
-
type:
|
|
7654
|
+
var DTODocumentationPageRestoreActionOutput = z259.object({
|
|
7655
|
+
type: z259.literal("DocumentationPageRestore"),
|
|
7569
7656
|
output: SuccessPayload2
|
|
7570
7657
|
});
|
|
7571
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7572
|
-
type:
|
|
7658
|
+
var DTODocumentationGroupRestoreActionOutput = z259.object({
|
|
7659
|
+
type: z259.literal("DocumentationGroupRestore"),
|
|
7573
7660
|
output: SuccessPayload2
|
|
7574
7661
|
});
|
|
7575
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7576
|
-
type:
|
|
7662
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z259.object({
|
|
7663
|
+
type: z259.literal("DocumentationPageApprovalStateChange"),
|
|
7577
7664
|
output: SuccessPayload2
|
|
7578
7665
|
});
|
|
7579
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7580
|
-
type:
|
|
7666
|
+
var DTODocumentationPageCreateActionInputV2 = z259.object({
|
|
7667
|
+
type: z259.literal("DocumentationPageCreate"),
|
|
7581
7668
|
input: DTOCreateDocumentationPageInputV2
|
|
7582
7669
|
});
|
|
7583
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7584
|
-
type:
|
|
7670
|
+
var DTODocumentationPageUpdateActionInputV2 = z259.object({
|
|
7671
|
+
type: z259.literal("DocumentationPageUpdate"),
|
|
7585
7672
|
input: DTOUpdateDocumentationPageInputV2
|
|
7586
7673
|
});
|
|
7587
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7588
|
-
type:
|
|
7674
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z259.object({
|
|
7675
|
+
type: z259.literal("DocumentationPageUpdateDocument"),
|
|
7589
7676
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7590
7677
|
});
|
|
7591
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7592
|
-
type:
|
|
7678
|
+
var DTODocumentationPageMoveActionInputV2 = z259.object({
|
|
7679
|
+
type: z259.literal("DocumentationPageMove"),
|
|
7593
7680
|
input: DTOMoveDocumentationPageInputV2
|
|
7594
7681
|
});
|
|
7595
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7596
|
-
type:
|
|
7682
|
+
var DTODocumentationPageDuplicateActionInputV2 = z259.object({
|
|
7683
|
+
type: z259.literal("DocumentationPageDuplicate"),
|
|
7597
7684
|
input: DTODuplicateDocumentationPageInputV2
|
|
7598
7685
|
});
|
|
7599
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7600
|
-
type:
|
|
7686
|
+
var DTODocumentationPageDeleteActionInputV2 = z259.object({
|
|
7687
|
+
type: z259.literal("DocumentationPageDelete"),
|
|
7601
7688
|
input: DTODeleteDocumentationPageInputV2
|
|
7602
7689
|
});
|
|
7603
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7604
|
-
type:
|
|
7690
|
+
var DTODocumentationPageRestoreActionInput = z259.object({
|
|
7691
|
+
type: z259.literal("DocumentationPageRestore"),
|
|
7605
7692
|
input: DTORestoreDocumentationPageInput
|
|
7606
7693
|
});
|
|
7607
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7608
|
-
type:
|
|
7694
|
+
var DTODocumentationGroupRestoreActionInput = z259.object({
|
|
7695
|
+
type: z259.literal("DocumentationGroupRestore"),
|
|
7609
7696
|
input: DTORestoreDocumentationGroupInput
|
|
7610
7697
|
});
|
|
7611
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7612
|
-
type:
|
|
7698
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z259.object({
|
|
7699
|
+
type: z259.literal("DocumentationPageApprovalStateChange"),
|
|
7613
7700
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7614
7701
|
});
|
|
7615
7702
|
|
|
7616
7703
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7617
|
-
import { z as
|
|
7704
|
+
import { z as z260 } from "zod";
|
|
7618
7705
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7619
|
-
var DTODocumentationPageContentGetResponse =
|
|
7706
|
+
var DTODocumentationPageContentGetResponse = z260.object({
|
|
7620
7707
|
pageContent: DTODocumentationPageContent
|
|
7621
7708
|
});
|
|
7622
7709
|
|
|
7623
7710
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
7624
|
-
import { z as
|
|
7625
|
-
var DTODocumentationPageDependencies =
|
|
7626
|
-
id:
|
|
7627
|
-
designSystemVersionId:
|
|
7628
|
-
createdAt:
|
|
7629
|
-
updatedAt:
|
|
7630
|
-
documentationPageId:
|
|
7631
|
-
tokenPersistentIds:
|
|
7632
|
-
figmaComponentPersistentIds:
|
|
7633
|
-
componentPersistentIds:
|
|
7634
|
-
figmaNodePersistentIds:
|
|
7635
|
-
groupPersistentIds:
|
|
7636
|
-
propertyPersistentIds:
|
|
7637
|
-
themePersistentIds:
|
|
7638
|
-
documentationPagePersistentIds:
|
|
7639
|
-
storybookEntriesStoryIds:
|
|
7640
|
-
});
|
|
7641
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
7642
|
-
dependencies:
|
|
7711
|
+
import { z as z261 } from "zod";
|
|
7712
|
+
var DTODocumentationPageDependencies = z261.object({
|
|
7713
|
+
id: z261.string(),
|
|
7714
|
+
designSystemVersionId: z261.string(),
|
|
7715
|
+
createdAt: z261.coerce.date(),
|
|
7716
|
+
updatedAt: z261.coerce.date(),
|
|
7717
|
+
documentationPageId: z261.string(),
|
|
7718
|
+
tokenPersistentIds: z261.array(z261.string()),
|
|
7719
|
+
figmaComponentPersistentIds: z261.array(z261.string()),
|
|
7720
|
+
componentPersistentIds: z261.array(z261.string()),
|
|
7721
|
+
figmaNodePersistentIds: z261.array(z261.string()),
|
|
7722
|
+
groupPersistentIds: z261.array(z261.string()),
|
|
7723
|
+
propertyPersistentIds: z261.array(z261.string()),
|
|
7724
|
+
themePersistentIds: z261.array(z261.string()),
|
|
7725
|
+
documentationPagePersistentIds: z261.array(z261.string()),
|
|
7726
|
+
storybookEntriesStoryIds: z261.array(z261.string())
|
|
7727
|
+
});
|
|
7728
|
+
var DTODocumentationPageDependenciesGetResponse = z261.object({
|
|
7729
|
+
dependencies: z261.array(DTODocumentationPageDependencies)
|
|
7643
7730
|
});
|
|
7644
7731
|
|
|
7645
7732
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7646
|
-
import { z as
|
|
7733
|
+
import { z as z262 } from "zod";
|
|
7647
7734
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7648
7735
|
data: true,
|
|
7649
7736
|
meta: true,
|
|
@@ -7651,81 +7738,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7651
7738
|
sortOrder: true
|
|
7652
7739
|
}).extend({
|
|
7653
7740
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7654
|
-
blocks:
|
|
7655
|
-
title:
|
|
7656
|
-
path:
|
|
7741
|
+
blocks: z262.array(PageBlockV1),
|
|
7742
|
+
title: z262.string(),
|
|
7743
|
+
path: z262.string()
|
|
7657
7744
|
});
|
|
7658
7745
|
|
|
7659
7746
|
// src/api/dto/elements/documentation/settings.ts
|
|
7660
|
-
import { z as
|
|
7661
|
-
var DTODocumentationSettings =
|
|
7662
|
-
isDraftFeatureAdopted:
|
|
7663
|
-
isApprovalsFeatureEnabled:
|
|
7664
|
-
isApprovalRequiredForPublishing:
|
|
7747
|
+
import { z as z263 } from "zod";
|
|
7748
|
+
var DTODocumentationSettings = z263.object({
|
|
7749
|
+
isDraftFeatureAdopted: z263.boolean(),
|
|
7750
|
+
isApprovalsFeatureEnabled: z263.boolean(),
|
|
7751
|
+
isApprovalRequiredForPublishing: z263.boolean()
|
|
7665
7752
|
});
|
|
7666
7753
|
|
|
7667
7754
|
// src/api/dto/elements/documentation/structure.ts
|
|
7668
|
-
import { z as
|
|
7669
|
-
var DTODocumentationStructureItemType =
|
|
7670
|
-
var DTODocumentationStructureItemBase =
|
|
7755
|
+
import { z as z264 } from "zod";
|
|
7756
|
+
var DTODocumentationStructureItemType = z264.enum(["Group", "Page"]);
|
|
7757
|
+
var DTODocumentationStructureItemBase = z264.object({
|
|
7671
7758
|
type: DTODocumentationStructureItemType,
|
|
7672
|
-
id:
|
|
7673
|
-
designSystemVersionId:
|
|
7674
|
-
shortPersistentId:
|
|
7675
|
-
persistentId:
|
|
7676
|
-
title:
|
|
7677
|
-
createdAt:
|
|
7678
|
-
updatedAt:
|
|
7759
|
+
id: z264.string(),
|
|
7760
|
+
designSystemVersionId: z264.string(),
|
|
7761
|
+
shortPersistentId: z264.string(),
|
|
7762
|
+
persistentId: z264.string(),
|
|
7763
|
+
title: z264.string(),
|
|
7764
|
+
createdAt: z264.coerce.date(),
|
|
7765
|
+
updatedAt: z264.coerce.date()
|
|
7679
7766
|
});
|
|
7680
7767
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7681
|
-
type:
|
|
7682
|
-
groupBehavior:
|
|
7683
|
-
childrenIds:
|
|
7684
|
-
isRoot:
|
|
7768
|
+
type: z264.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7769
|
+
groupBehavior: z264.string(),
|
|
7770
|
+
childrenIds: z264.string().array(),
|
|
7771
|
+
isRoot: z264.boolean()
|
|
7685
7772
|
});
|
|
7686
7773
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7687
|
-
type:
|
|
7688
|
-
path:
|
|
7774
|
+
type: z264.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7775
|
+
path: z264.string()
|
|
7689
7776
|
});
|
|
7690
|
-
var DTODocumentationStructureItem =
|
|
7777
|
+
var DTODocumentationStructureItem = z264.discriminatedUnion("type", [
|
|
7691
7778
|
DTODocumentationStructureGroupItem,
|
|
7692
7779
|
DTODocumentationStructurePageItem
|
|
7693
7780
|
]);
|
|
7694
|
-
var DTODocumentationStructure =
|
|
7695
|
-
items:
|
|
7781
|
+
var DTODocumentationStructure = z264.object({
|
|
7782
|
+
items: z264.array(DTODocumentationStructureItem)
|
|
7696
7783
|
});
|
|
7697
7784
|
|
|
7698
7785
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
7699
|
-
import { z as
|
|
7700
|
-
var DTOFigmaNodeStructure =
|
|
7701
|
-
id:
|
|
7702
|
-
sourceId:
|
|
7786
|
+
import { z as z265 } from "zod";
|
|
7787
|
+
var DTOFigmaNodeStructure = z265.object({
|
|
7788
|
+
id: z265.string(),
|
|
7789
|
+
sourceId: z265.string(),
|
|
7703
7790
|
importState: FigmaNodeStructureStateV2,
|
|
7704
|
-
createdAt:
|
|
7705
|
-
updatedAt:
|
|
7791
|
+
createdAt: z265.coerce.date(),
|
|
7792
|
+
updatedAt: z265.coerce.date()
|
|
7706
7793
|
});
|
|
7707
7794
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
7708
7795
|
rootNode: FigmaFileStructureNode
|
|
7709
7796
|
});
|
|
7710
|
-
var DTOFigmaNodeStructureListResponse =
|
|
7797
|
+
var DTOFigmaNodeStructureListResponse = z265.object({
|
|
7711
7798
|
structures: DTOFigmaNodeStructure.array()
|
|
7712
7799
|
});
|
|
7713
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
7800
|
+
var DTOFigmaNodeStructureDetailResponse = z265.object({
|
|
7714
7801
|
structure: DTOFigmaNodeStructureDetail
|
|
7715
7802
|
});
|
|
7716
7803
|
|
|
7717
7804
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7718
|
-
import { z as
|
|
7805
|
+
import { z as z267 } from "zod";
|
|
7719
7806
|
|
|
7720
7807
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7721
|
-
import { z as
|
|
7808
|
+
import { z as z266 } from "zod";
|
|
7722
7809
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7723
|
-
var DTOFigmaNodeOrigin =
|
|
7724
|
-
sourceId:
|
|
7725
|
-
fileId:
|
|
7726
|
-
parentName:
|
|
7810
|
+
var DTOFigmaNodeOrigin = z266.object({
|
|
7811
|
+
sourceId: z266.string(),
|
|
7812
|
+
fileId: z266.string().optional(),
|
|
7813
|
+
parentName: z266.string().optional()
|
|
7727
7814
|
});
|
|
7728
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7815
|
+
var DTOFigmaNodeRenderInputBase = z266.object({
|
|
7729
7816
|
/**
|
|
7730
7817
|
* Format in which the node must be rendered, png by default.
|
|
7731
7818
|
*/
|
|
@@ -7733,57 +7820,57 @@ var DTOFigmaNodeRenderInputBase = z265.object({
|
|
|
7733
7820
|
/**
|
|
7734
7821
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7735
7822
|
*/
|
|
7736
|
-
scale:
|
|
7823
|
+
scale: z266.number().optional()
|
|
7737
7824
|
});
|
|
7738
7825
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7739
|
-
inputType:
|
|
7826
|
+
inputType: z266.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7740
7827
|
/**
|
|
7741
7828
|
* Id of a design system's data source representing a linked Figma file
|
|
7742
7829
|
*/
|
|
7743
|
-
sourceId:
|
|
7830
|
+
sourceId: z266.string(),
|
|
7744
7831
|
/**
|
|
7745
7832
|
* Id of a node within the Figma file
|
|
7746
7833
|
*/
|
|
7747
|
-
figmaFileNodeId:
|
|
7834
|
+
figmaFileNodeId: z266.string()
|
|
7748
7835
|
});
|
|
7749
7836
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7750
|
-
inputType:
|
|
7837
|
+
inputType: z266.literal("URL"),
|
|
7751
7838
|
/**
|
|
7752
7839
|
* Id of a design system's data source representing a linked Figma file
|
|
7753
7840
|
*/
|
|
7754
|
-
figmaNodeUrl:
|
|
7841
|
+
figmaNodeUrl: z266.string(),
|
|
7755
7842
|
/**
|
|
7756
7843
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7757
7844
|
*/
|
|
7758
|
-
brandPersistentId:
|
|
7845
|
+
brandPersistentId: z266.string()
|
|
7759
7846
|
});
|
|
7760
|
-
var DTOFigmaNodeRerenderInput =
|
|
7761
|
-
inputType:
|
|
7847
|
+
var DTOFigmaNodeRerenderInput = z266.object({
|
|
7848
|
+
inputType: z266.literal("Rerender"),
|
|
7762
7849
|
/**
|
|
7763
7850
|
* Persistent ID of an existing Figma node
|
|
7764
7851
|
*/
|
|
7765
|
-
figmaNodePersistentId:
|
|
7852
|
+
figmaNodePersistentId: z266.string()
|
|
7766
7853
|
});
|
|
7767
|
-
var DTOFigmaNodeRenderInput =
|
|
7854
|
+
var DTOFigmaNodeRenderInput = z266.discriminatedUnion("inputType", [
|
|
7768
7855
|
DTOFigmaNodeRenderIdInput,
|
|
7769
7856
|
DTOFigmaNodeRenderUrlInput,
|
|
7770
7857
|
DTOFigmaNodeRerenderInput
|
|
7771
7858
|
]);
|
|
7772
7859
|
|
|
7773
7860
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7774
|
-
var DTOFigmaNodeData =
|
|
7861
|
+
var DTOFigmaNodeData = z267.object({
|
|
7775
7862
|
// Id of the node in the Figma file
|
|
7776
|
-
figmaNodeId:
|
|
7863
|
+
figmaNodeId: z267.string(),
|
|
7777
7864
|
// Validity
|
|
7778
|
-
isValid:
|
|
7865
|
+
isValid: z267.boolean(),
|
|
7779
7866
|
// Asset data
|
|
7780
|
-
assetId:
|
|
7781
|
-
assetUrl:
|
|
7867
|
+
assetId: z267.string(),
|
|
7868
|
+
assetUrl: z267.string(),
|
|
7782
7869
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7783
7870
|
// Asset metadata
|
|
7784
|
-
assetScale:
|
|
7785
|
-
assetWidth:
|
|
7786
|
-
assetHeight:
|
|
7871
|
+
assetScale: z267.number(),
|
|
7872
|
+
assetWidth: z267.number().optional(),
|
|
7873
|
+
assetHeight: z267.number().optional()
|
|
7787
7874
|
});
|
|
7788
7875
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7789
7876
|
data: true,
|
|
@@ -7794,15 +7881,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7794
7881
|
});
|
|
7795
7882
|
|
|
7796
7883
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7797
|
-
import { z as
|
|
7798
|
-
var DTOFigmaNodeDataV2 =
|
|
7799
|
-
sceneNodeId:
|
|
7884
|
+
import { z as z268 } from "zod";
|
|
7885
|
+
var DTOFigmaNodeDataV2 = z268.object({
|
|
7886
|
+
sceneNodeId: z268.string(),
|
|
7800
7887
|
format: FigmaNodeRenderFormat,
|
|
7801
|
-
scale:
|
|
7888
|
+
scale: z268.number().optional(),
|
|
7802
7889
|
renderState: FigmaNodeRenderState,
|
|
7803
7890
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7804
7891
|
renderError: FigmaNodeRenderError.optional(),
|
|
7805
|
-
hasSource:
|
|
7892
|
+
hasSource: z268.boolean()
|
|
7806
7893
|
});
|
|
7807
7894
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7808
7895
|
data: true,
|
|
@@ -7813,113 +7900,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7813
7900
|
});
|
|
7814
7901
|
|
|
7815
7902
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7816
|
-
import { z as
|
|
7817
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7818
|
-
type:
|
|
7819
|
-
figmaNodes:
|
|
7903
|
+
import { z as z269 } from "zod";
|
|
7904
|
+
var DTOFigmaNodeRenderActionOutput = z269.object({
|
|
7905
|
+
type: z269.literal("FigmaNodeRender"),
|
|
7906
|
+
figmaNodes: z269.array(DTOFigmaNode)
|
|
7820
7907
|
});
|
|
7821
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7822
|
-
type:
|
|
7823
|
-
figmaNodes:
|
|
7908
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z269.object({
|
|
7909
|
+
type: z269.literal("FigmaNodeRenderAsync"),
|
|
7910
|
+
figmaNodes: z269.array(DTOFigmaNodeV2)
|
|
7824
7911
|
});
|
|
7825
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7826
|
-
type:
|
|
7912
|
+
var DTOFigmaNodeRenderActionInput = z269.object({
|
|
7913
|
+
type: z269.literal("FigmaNodeRender"),
|
|
7827
7914
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7828
7915
|
});
|
|
7829
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7830
|
-
type:
|
|
7916
|
+
var DTOFigmaNodeRenderAsyncActionInput = z269.object({
|
|
7917
|
+
type: z269.literal("FigmaNodeRenderAsync"),
|
|
7831
7918
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7832
7919
|
});
|
|
7833
7920
|
|
|
7834
7921
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7835
|
-
import { z as
|
|
7836
|
-
var DTOFrameNodeStructure =
|
|
7837
|
-
id:
|
|
7838
|
-
persistentId:
|
|
7839
|
-
designSystemVersionId:
|
|
7922
|
+
import { z as z270 } from "zod";
|
|
7923
|
+
var DTOFrameNodeStructure = z270.object({
|
|
7924
|
+
id: z270.string(),
|
|
7925
|
+
persistentId: z270.string(),
|
|
7926
|
+
designSystemVersionId: z270.string(),
|
|
7840
7927
|
origin: FigmaFileStructureOrigin,
|
|
7841
7928
|
assetsInFile: FigmaFileStructureStatistics
|
|
7842
7929
|
});
|
|
7843
|
-
var DTOFrameNodeStructureListResponse =
|
|
7930
|
+
var DTOFrameNodeStructureListResponse = z270.object({
|
|
7844
7931
|
structures: DTOFrameNodeStructure.array()
|
|
7845
7932
|
});
|
|
7846
7933
|
|
|
7847
7934
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7848
|
-
import { z as
|
|
7935
|
+
import { z as z271 } from "zod";
|
|
7849
7936
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
7850
|
-
var DTOElementPropertyDefinitionOption =
|
|
7851
|
-
id:
|
|
7852
|
-
name:
|
|
7937
|
+
var DTOElementPropertyDefinitionOption = z271.object({
|
|
7938
|
+
id: z271.string(),
|
|
7939
|
+
name: z271.string(),
|
|
7853
7940
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7854
7941
|
});
|
|
7855
|
-
var DTOElementPropertyDefinition =
|
|
7856
|
-
id:
|
|
7857
|
-
designSystemVersionId:
|
|
7942
|
+
var DTOElementPropertyDefinition = z271.object({
|
|
7943
|
+
id: z271.string(),
|
|
7944
|
+
designSystemVersionId: z271.string(),
|
|
7858
7945
|
meta: DTOObjectMeta,
|
|
7859
|
-
persistentId:
|
|
7946
|
+
persistentId: z271.string(),
|
|
7860
7947
|
type: ElementPropertyTypeSchema,
|
|
7861
7948
|
targetElementType: ElementPropertyTargetType,
|
|
7862
|
-
codeName:
|
|
7863
|
-
options: nullishToOptional(
|
|
7949
|
+
codeName: z271.string().regex(CODE_NAME_REGEX2),
|
|
7950
|
+
options: nullishToOptional(z271.array(DTOElementPropertyDefinitionOption)),
|
|
7864
7951
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7865
|
-
isImmutable:
|
|
7952
|
+
isImmutable: z271.boolean(),
|
|
7866
7953
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7867
7954
|
});
|
|
7868
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7869
|
-
definitions:
|
|
7955
|
+
var DTOElementPropertyDefinitionListResponse = z271.object({
|
|
7956
|
+
definitions: z271.array(DTOElementPropertyDefinition)
|
|
7870
7957
|
});
|
|
7871
|
-
var DTOElementPropertyDefinitionResponse =
|
|
7958
|
+
var DTOElementPropertyDefinitionResponse = z271.object({
|
|
7872
7959
|
definition: DTOElementPropertyDefinition
|
|
7873
7960
|
});
|
|
7874
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
7961
|
+
var DTOElementPropertyDefinitionCreatePayload = z271.object({
|
|
7875
7962
|
meta: DTOObjectMeta,
|
|
7876
|
-
persistentId:
|
|
7963
|
+
persistentId: z271.string(),
|
|
7877
7964
|
type: ElementPropertyTypeSchema,
|
|
7878
7965
|
targetElementType: ElementPropertyTargetType,
|
|
7879
|
-
codeName:
|
|
7880
|
-
options: nullishToOptional(
|
|
7966
|
+
codeName: z271.string().regex(CODE_NAME_REGEX2),
|
|
7967
|
+
options: nullishToOptional(z271.array(DTOElementPropertyDefinitionOption)),
|
|
7881
7968
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7882
|
-
columnWidth:
|
|
7969
|
+
columnWidth: z271.number().max(1024).optional()
|
|
7883
7970
|
});
|
|
7884
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
7971
|
+
var DTOElementPropertyDefinitionUpdatePayload = z271.object({
|
|
7885
7972
|
meta: DTOObjectMeta.optional(),
|
|
7886
|
-
codeName:
|
|
7887
|
-
options:
|
|
7973
|
+
codeName: z271.string().regex(CODE_NAME_REGEX2).optional(),
|
|
7974
|
+
options: z271.array(DTOElementPropertyDefinitionOption).optional()
|
|
7888
7975
|
});
|
|
7889
7976
|
|
|
7890
7977
|
// src/api/dto/elements/properties/property-values.ts
|
|
7891
|
-
import { z as
|
|
7892
|
-
var DTOElementPropertyValue =
|
|
7893
|
-
id:
|
|
7894
|
-
designSystemVersionId:
|
|
7895
|
-
definitionId:
|
|
7896
|
-
targetElementId:
|
|
7897
|
-
value:
|
|
7898
|
-
valuePreview:
|
|
7899
|
-
});
|
|
7900
|
-
var DTOElementPropertyValueListResponse =
|
|
7901
|
-
values:
|
|
7902
|
-
});
|
|
7903
|
-
var DTOElementPropertyValueResponse =
|
|
7978
|
+
import { z as z272 } from "zod";
|
|
7979
|
+
var DTOElementPropertyValue = z272.object({
|
|
7980
|
+
id: z272.string(),
|
|
7981
|
+
designSystemVersionId: z272.string(),
|
|
7982
|
+
definitionId: z272.string(),
|
|
7983
|
+
targetElementId: z272.string(),
|
|
7984
|
+
value: z272.union([z272.string(), z272.number(), z272.boolean()]).optional(),
|
|
7985
|
+
valuePreview: z272.string().optional()
|
|
7986
|
+
});
|
|
7987
|
+
var DTOElementPropertyValueListResponse = z272.object({
|
|
7988
|
+
values: z272.array(DTOElementPropertyValue)
|
|
7989
|
+
});
|
|
7990
|
+
var DTOElementPropertyValueResponse = z272.object({
|
|
7904
7991
|
value: DTOElementPropertyValue
|
|
7905
7992
|
});
|
|
7906
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
7907
|
-
type:
|
|
7908
|
-
output:
|
|
7993
|
+
var DTOElementPropertyValuesEditActionOutput = z272.object({
|
|
7994
|
+
type: z272.literal("ElementPropertyValuesEdit"),
|
|
7995
|
+
output: z272.object({ success: z272.literal(true) })
|
|
7909
7996
|
});
|
|
7910
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
7911
|
-
definitionId:
|
|
7912
|
-
targetElementId:
|
|
7913
|
-
value:
|
|
7997
|
+
var DTOElementPropertyValueUpsertPaylod = z272.object({
|
|
7998
|
+
definitionId: z272.string(),
|
|
7999
|
+
targetElementId: z272.string(),
|
|
8000
|
+
value: z272.string().or(z272.number()).or(z272.boolean()).nullable()
|
|
7914
8001
|
});
|
|
7915
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
7916
|
-
type:
|
|
8002
|
+
var DTOElementPropertyValuesEditActionInput = z272.object({
|
|
8003
|
+
type: z272.literal("ElementPropertyValuesEdit"),
|
|
7917
8004
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
7918
8005
|
});
|
|
7919
8006
|
|
|
7920
8007
|
// src/api/dto/elements/elements-action-v2.ts
|
|
7921
|
-
import { z as
|
|
7922
|
-
var DTOElementActionOutput =
|
|
8008
|
+
import { z as z273 } from "zod";
|
|
8009
|
+
var DTOElementActionOutput = z273.discriminatedUnion("type", [
|
|
7923
8010
|
// Documentation pages
|
|
7924
8011
|
DTODocumentationPageCreateActionOutputV2,
|
|
7925
8012
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -7946,7 +8033,7 @@ var DTOElementActionOutput = z272.discriminatedUnion("type", [
|
|
|
7946
8033
|
// Element properties
|
|
7947
8034
|
DTOElementPropertyValuesEditActionOutput
|
|
7948
8035
|
]);
|
|
7949
|
-
var DTOElementActionInput =
|
|
8036
|
+
var DTOElementActionInput = z273.discriminatedUnion("type", [
|
|
7950
8037
|
// Documentation pages
|
|
7951
8038
|
DTODocumentationPageCreateActionInputV2,
|
|
7952
8039
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7973,90 +8060,90 @@ var DTOElementActionInput = z272.discriminatedUnion("type", [
|
|
|
7973
8060
|
// Element properties
|
|
7974
8061
|
DTOElementPropertyValuesEditActionInput
|
|
7975
8062
|
]).and(
|
|
7976
|
-
|
|
7977
|
-
tId:
|
|
8063
|
+
z273.object({
|
|
8064
|
+
tId: z273.string().optional()
|
|
7978
8065
|
})
|
|
7979
8066
|
);
|
|
7980
8067
|
|
|
7981
8068
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7982
|
-
import { z as
|
|
7983
|
-
var DTOElementsGetTypeFilter =
|
|
7984
|
-
var DTOElementsGetQuerySchema =
|
|
7985
|
-
types:
|
|
7986
|
-
responseVersion:
|
|
8069
|
+
import { z as z274 } from "zod";
|
|
8070
|
+
var DTOElementsGetTypeFilter = z274.enum(["FigmaNode"]);
|
|
8071
|
+
var DTOElementsGetQuerySchema = z274.object({
|
|
8072
|
+
types: z274.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8073
|
+
responseVersion: z274.coerce.number().default(1)
|
|
7987
8074
|
});
|
|
7988
|
-
var DTOElementsGetOutput =
|
|
7989
|
-
figmaNodes:
|
|
8075
|
+
var DTOElementsGetOutput = z274.object({
|
|
8076
|
+
figmaNodes: z274.array(DTOFigmaNode).optional()
|
|
7990
8077
|
});
|
|
7991
|
-
var DTOElementsGetOutputV2 =
|
|
7992
|
-
figmaNodes:
|
|
8078
|
+
var DTOElementsGetOutputV2 = z274.object({
|
|
8079
|
+
figmaNodes: z274.array(DTOFigmaNodeV2).optional()
|
|
7993
8080
|
});
|
|
7994
8081
|
|
|
7995
8082
|
// src/api/dto/figma-components/assets/download.ts
|
|
7996
|
-
import { z as
|
|
7997
|
-
var DTOAssetRenderConfiguration =
|
|
7998
|
-
prefix:
|
|
7999
|
-
suffix:
|
|
8000
|
-
scale:
|
|
8001
|
-
format:
|
|
8002
|
-
});
|
|
8003
|
-
var DTORenderedAssetFile =
|
|
8004
|
-
assetId:
|
|
8005
|
-
fileName:
|
|
8006
|
-
sourceUrl:
|
|
8083
|
+
import { z as z275 } from "zod";
|
|
8084
|
+
var DTOAssetRenderConfiguration = z275.object({
|
|
8085
|
+
prefix: z275.string().optional(),
|
|
8086
|
+
suffix: z275.string().optional(),
|
|
8087
|
+
scale: z275.enum(["x1", "x2", "x3", "x4"]),
|
|
8088
|
+
format: z275.enum(["png", "pdf", "svg"])
|
|
8089
|
+
});
|
|
8090
|
+
var DTORenderedAssetFile = z275.object({
|
|
8091
|
+
assetId: z275.string(),
|
|
8092
|
+
fileName: z275.string(),
|
|
8093
|
+
sourceUrl: z275.string(),
|
|
8007
8094
|
settings: DTOAssetRenderConfiguration,
|
|
8008
|
-
originalName:
|
|
8095
|
+
originalName: z275.string()
|
|
8009
8096
|
});
|
|
8010
|
-
var DTODownloadAssetsRequest =
|
|
8011
|
-
persistentIds:
|
|
8097
|
+
var DTODownloadAssetsRequest = z275.object({
|
|
8098
|
+
persistentIds: z275.array(z275.string().uuid()).optional(),
|
|
8012
8099
|
settings: DTOAssetRenderConfiguration.array()
|
|
8013
8100
|
});
|
|
8014
|
-
var DTODownloadAssetsResponse =
|
|
8101
|
+
var DTODownloadAssetsResponse = z275.object({
|
|
8015
8102
|
items: DTORenderedAssetFile.array()
|
|
8016
8103
|
});
|
|
8017
8104
|
|
|
8018
8105
|
// src/api/dto/liveblocks/auth-response.ts
|
|
8019
|
-
import { z as
|
|
8020
|
-
var DTOLiveblocksAuthResponse =
|
|
8021
|
-
token:
|
|
8106
|
+
import { z as z276 } from "zod";
|
|
8107
|
+
var DTOLiveblocksAuthResponse = z276.object({
|
|
8108
|
+
token: z276.string()
|
|
8022
8109
|
});
|
|
8023
8110
|
|
|
8024
8111
|
// src/api/dto/themes/override.ts
|
|
8025
|
-
import { z as
|
|
8112
|
+
import { z as z277 } from "zod";
|
|
8026
8113
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
8027
|
-
|
|
8028
|
-
tokenPersistentId:
|
|
8114
|
+
z277.object({
|
|
8115
|
+
tokenPersistentId: z277.string(),
|
|
8029
8116
|
origin: ThemeOverrideOrigin.optional()
|
|
8030
8117
|
})
|
|
8031
8118
|
);
|
|
8032
8119
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
8033
|
-
|
|
8034
|
-
tokenPersistentId:
|
|
8120
|
+
z277.object({
|
|
8121
|
+
tokenPersistentId: z277.string()
|
|
8035
8122
|
})
|
|
8036
8123
|
);
|
|
8037
8124
|
|
|
8038
8125
|
// src/api/dto/themes/theme.ts
|
|
8039
|
-
import { z as
|
|
8040
|
-
var DTOTheme =
|
|
8041
|
-
id:
|
|
8042
|
-
persistentId:
|
|
8043
|
-
designSystemVersionId:
|
|
8044
|
-
brandId:
|
|
8126
|
+
import { z as z278 } from "zod";
|
|
8127
|
+
var DTOTheme = z278.object({
|
|
8128
|
+
id: z278.string(),
|
|
8129
|
+
persistentId: z278.string(),
|
|
8130
|
+
designSystemVersionId: z278.string(),
|
|
8131
|
+
brandId: z278.string(),
|
|
8045
8132
|
meta: ObjectMeta,
|
|
8046
|
-
codeName:
|
|
8133
|
+
codeName: z278.string(),
|
|
8047
8134
|
overrides: DTOThemeOverride.array()
|
|
8048
8135
|
});
|
|
8049
|
-
var DTOThemeResponse =
|
|
8136
|
+
var DTOThemeResponse = z278.object({
|
|
8050
8137
|
theme: DTOTheme
|
|
8051
8138
|
});
|
|
8052
|
-
var DTOThemeListResponse =
|
|
8139
|
+
var DTOThemeListResponse = z278.object({
|
|
8053
8140
|
themes: DTOTheme.array()
|
|
8054
8141
|
});
|
|
8055
|
-
var DTOThemeCreatePayload =
|
|
8142
|
+
var DTOThemeCreatePayload = z278.object({
|
|
8056
8143
|
meta: ObjectMeta,
|
|
8057
|
-
persistentId:
|
|
8058
|
-
brandId:
|
|
8059
|
-
codeName:
|
|
8144
|
+
persistentId: z278.string(),
|
|
8145
|
+
brandId: z278.string(),
|
|
8146
|
+
codeName: z278.string(),
|
|
8060
8147
|
overrides: DTOThemeOverride.array()
|
|
8061
8148
|
});
|
|
8062
8149
|
|
|
@@ -8292,13 +8379,13 @@ var ExportersEndpoint = class {
|
|
|
8292
8379
|
};
|
|
8293
8380
|
|
|
8294
8381
|
// src/api/endpoints/codegen/jobs.ts
|
|
8295
|
-
import { z as
|
|
8382
|
+
import { z as z279 } from "zod";
|
|
8296
8383
|
var ExporterJobsEndpoint = class {
|
|
8297
8384
|
constructor(requestExecutor) {
|
|
8298
8385
|
this.requestExecutor = requestExecutor;
|
|
8299
8386
|
}
|
|
8300
8387
|
list(workspaceId) {
|
|
8301
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
8388
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z279.any());
|
|
8302
8389
|
}
|
|
8303
8390
|
get(workspaceId, jobId) {
|
|
8304
8391
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -8356,7 +8443,7 @@ var CodegenEndpoint = class {
|
|
|
8356
8443
|
};
|
|
8357
8444
|
|
|
8358
8445
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
8359
|
-
import { z as
|
|
8446
|
+
import { z as z280 } from "zod";
|
|
8360
8447
|
var BrandsEndpoint = class {
|
|
8361
8448
|
constructor(requestExecutor) {
|
|
8362
8449
|
this.requestExecutor = requestExecutor;
|
|
@@ -8390,7 +8477,7 @@ var BrandsEndpoint = class {
|
|
|
8390
8477
|
});
|
|
8391
8478
|
}
|
|
8392
8479
|
delete(dsId, vId, brandId) {
|
|
8393
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
8480
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z280.any(), {
|
|
8394
8481
|
method: "DELETE"
|
|
8395
8482
|
});
|
|
8396
8483
|
}
|
|
@@ -8426,6 +8513,16 @@ var CodeComponentsEndpoint = class {
|
|
|
8426
8513
|
}
|
|
8427
8514
|
);
|
|
8428
8515
|
}
|
|
8516
|
+
async analyzePackage(dsId, vId, body) {
|
|
8517
|
+
return this.requestExecutor.json(
|
|
8518
|
+
`/design-systems/${dsId}/versions/${vId}/code-components/analyze-package`,
|
|
8519
|
+
DTOAnalyzeCodeComponentsInPackageResponse,
|
|
8520
|
+
{
|
|
8521
|
+
body,
|
|
8522
|
+
method: "POST"
|
|
8523
|
+
}
|
|
8524
|
+
);
|
|
8525
|
+
}
|
|
8429
8526
|
};
|
|
8430
8527
|
|
|
8431
8528
|
// src/api/endpoints/design-system/versions/documentation.ts
|
|
@@ -8603,7 +8700,7 @@ var ImportJobsEndpoint = class {
|
|
|
8603
8700
|
};
|
|
8604
8701
|
|
|
8605
8702
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
8606
|
-
import { z as
|
|
8703
|
+
import { z as z281 } from "zod";
|
|
8607
8704
|
var OverridesEndpoint = class {
|
|
8608
8705
|
constructor(requestExecutor) {
|
|
8609
8706
|
this.requestExecutor = requestExecutor;
|
|
@@ -8611,7 +8708,7 @@ var OverridesEndpoint = class {
|
|
|
8611
8708
|
create(dsId, versionId, themeId, body) {
|
|
8612
8709
|
return this.requestExecutor.json(
|
|
8613
8710
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
8614
|
-
|
|
8711
|
+
z281.any(),
|
|
8615
8712
|
{
|
|
8616
8713
|
method: "POST",
|
|
8617
8714
|
body
|
|
@@ -8621,7 +8718,7 @@ var OverridesEndpoint = class {
|
|
|
8621
8718
|
};
|
|
8622
8719
|
|
|
8623
8720
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
8624
|
-
import { z as
|
|
8721
|
+
import { z as z282 } from "zod";
|
|
8625
8722
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
8626
8723
|
constructor(requestExecutor) {
|
|
8627
8724
|
this.requestExecutor = requestExecutor;
|
|
@@ -8649,7 +8746,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
8649
8746
|
delete(designSystemId, versionId, defId) {
|
|
8650
8747
|
return this.requestExecutor.json(
|
|
8651
8748
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
8652
|
-
|
|
8749
|
+
z282.any(),
|
|
8653
8750
|
{ method: "DELETE" }
|
|
8654
8751
|
);
|
|
8655
8752
|
}
|
|
@@ -8688,7 +8785,7 @@ var VersionStatsEndpoint = class {
|
|
|
8688
8785
|
};
|
|
8689
8786
|
|
|
8690
8787
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8691
|
-
import { z as
|
|
8788
|
+
import { z as z283 } from "zod";
|
|
8692
8789
|
var ThemesEndpoint = class {
|
|
8693
8790
|
constructor(requestExecutor) {
|
|
8694
8791
|
this.requestExecutor = requestExecutor;
|
|
@@ -8711,7 +8808,7 @@ var ThemesEndpoint = class {
|
|
|
8711
8808
|
});
|
|
8712
8809
|
}
|
|
8713
8810
|
delete(dsId, versionId, themeId) {
|
|
8714
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8811
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z283.any(), {
|
|
8715
8812
|
method: "DELETE"
|
|
8716
8813
|
});
|
|
8717
8814
|
}
|
|
@@ -8880,7 +8977,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
8880
8977
|
};
|
|
8881
8978
|
|
|
8882
8979
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8883
|
-
import { z as
|
|
8980
|
+
import { z as z287 } from "zod";
|
|
8884
8981
|
|
|
8885
8982
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
8886
8983
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -8957,7 +9054,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
8957
9054
|
};
|
|
8958
9055
|
|
|
8959
9056
|
// src/api/endpoints/design-system/sources.ts
|
|
8960
|
-
import { z as
|
|
9057
|
+
import { z as z284 } from "zod";
|
|
8961
9058
|
var DesignSystemSourcesEndpoint = class {
|
|
8962
9059
|
constructor(requestExecutor) {
|
|
8963
9060
|
this.requestExecutor = requestExecutor;
|
|
@@ -8975,7 +9072,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8975
9072
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
8976
9073
|
}
|
|
8977
9074
|
delete(dsId, sourceId) {
|
|
8978
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
9075
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z284.any(), { method: "DELETE" });
|
|
8979
9076
|
}
|
|
8980
9077
|
figmaImport(dsId, payload) {
|
|
8981
9078
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -8984,15 +9081,29 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8984
9081
|
});
|
|
8985
9082
|
}
|
|
8986
9083
|
storybookImport(dsId, payload) {
|
|
8987
|
-
return this.requestExecutor.json(
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
9084
|
+
return this.requestExecutor.json(
|
|
9085
|
+
`/design-systems/${dsId}/versions/head/storybook-import`,
|
|
9086
|
+
DTODataSourcesStorybookResponse,
|
|
9087
|
+
{
|
|
9088
|
+
method: "POST",
|
|
9089
|
+
body: payload
|
|
9090
|
+
}
|
|
9091
|
+
);
|
|
9092
|
+
}
|
|
9093
|
+
updateStorybookImport(dsId, versionId, payload) {
|
|
9094
|
+
return this.requestExecutor.json(
|
|
9095
|
+
`/design-systems/${dsId}/versions/${versionId}/storybook-import`,
|
|
9096
|
+
DTODataSourcesStorybookResponse,
|
|
9097
|
+
{
|
|
9098
|
+
method: "POST",
|
|
9099
|
+
body: payload
|
|
9100
|
+
}
|
|
9101
|
+
);
|
|
8991
9102
|
}
|
|
8992
9103
|
};
|
|
8993
9104
|
|
|
8994
9105
|
// src/api/endpoints/design-system/storybook.ts
|
|
8995
|
-
import { z as
|
|
9106
|
+
import { z as z285 } from "zod";
|
|
8996
9107
|
var StorybookEntriesEndpoint = class {
|
|
8997
9108
|
constructor(requestExecutor) {
|
|
8998
9109
|
this.requestExecutor = requestExecutor;
|
|
@@ -9001,10 +9112,51 @@ var StorybookEntriesEndpoint = class {
|
|
|
9001
9112
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse);
|
|
9002
9113
|
}
|
|
9003
9114
|
replace(dsId, entryId) {
|
|
9004
|
-
return this.requestExecutor.json(
|
|
9115
|
+
return this.requestExecutor.json(
|
|
9116
|
+
`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
9117
|
+
DTOStorybookEntryReplaceAction,
|
|
9118
|
+
{ method: "PUT" }
|
|
9119
|
+
);
|
|
9005
9120
|
}
|
|
9006
9121
|
delete(dsId, entryId) {
|
|
9007
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
9122
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z285.any(), {
|
|
9123
|
+
method: "DELETE"
|
|
9124
|
+
});
|
|
9125
|
+
}
|
|
9126
|
+
};
|
|
9127
|
+
|
|
9128
|
+
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
9129
|
+
import { z as z286 } from "zod";
|
|
9130
|
+
var StorybookHostingEndpoint = class {
|
|
9131
|
+
constructor(requestExecutor) {
|
|
9132
|
+
this.requestExecutor = requestExecutor;
|
|
9133
|
+
}
|
|
9134
|
+
getSignedUploadUrl(dsId, body) {
|
|
9135
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/storybook/upload`, DTOStorybookUploadUrlResponse, {
|
|
9136
|
+
body,
|
|
9137
|
+
method: "POST"
|
|
9138
|
+
});
|
|
9139
|
+
}
|
|
9140
|
+
delete(dsId, storybookUploadId) {
|
|
9141
|
+
return this.requestExecutor.json(
|
|
9142
|
+
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
9143
|
+
z286.object({ ok: z286.boolean() }),
|
|
9144
|
+
{
|
|
9145
|
+
method: "DELETE"
|
|
9146
|
+
}
|
|
9147
|
+
);
|
|
9148
|
+
}
|
|
9149
|
+
getUploadStatus(dsId, storybookUploadId) {
|
|
9150
|
+
return this.requestExecutor.json(
|
|
9151
|
+
`/design-systems/${dsId}/storybook/${storybookUploadId}/status`,
|
|
9152
|
+
DTOStorybookUploadStatus
|
|
9153
|
+
);
|
|
9154
|
+
}
|
|
9155
|
+
getAccessToken(dsId, name) {
|
|
9156
|
+
return this.requestExecutor.json(
|
|
9157
|
+
`/design-systems/${dsId}/storybook/alias/${name}/access-token`,
|
|
9158
|
+
DTOStorybookAccessTokenResponse
|
|
9159
|
+
);
|
|
9008
9160
|
}
|
|
9009
9161
|
};
|
|
9010
9162
|
|
|
@@ -9017,6 +9169,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9017
9169
|
__publicField(this, "bff");
|
|
9018
9170
|
__publicField(this, "sources");
|
|
9019
9171
|
__publicField(this, "storybook");
|
|
9172
|
+
__publicField(this, "storybookHosting");
|
|
9020
9173
|
__publicField(this, "contacts");
|
|
9021
9174
|
__publicField(this, "redirects");
|
|
9022
9175
|
__publicField(this, "figmaNodeStructures");
|
|
@@ -9026,6 +9179,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9026
9179
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
9027
9180
|
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
9028
9181
|
this.storybook = new StorybookEntriesEndpoint(requestExecutor);
|
|
9182
|
+
this.storybookHosting = new StorybookHostingEndpoint(requestExecutor);
|
|
9029
9183
|
this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
|
|
9030
9184
|
this.redirects = new DesignSystemPageRedirectsEndpoint(requestExecutor);
|
|
9031
9185
|
this.figmaNodeStructures = new FigmaNodeStructuresEndpoint(requestExecutor);
|
|
@@ -9037,11 +9191,14 @@ var DesignSystemsEndpoint = class {
|
|
|
9037
9191
|
list(wsId) {
|
|
9038
9192
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
9039
9193
|
}
|
|
9194
|
+
listUserDesignSystems() {
|
|
9195
|
+
return this.requestExecutor.json("/design-systems", DTOUserDesignSystemsResponse);
|
|
9196
|
+
}
|
|
9040
9197
|
get(dsId) {
|
|
9041
9198
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
9042
9199
|
}
|
|
9043
9200
|
delete(dsId) {
|
|
9044
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
9201
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z287.any(), { method: "DELETE" });
|
|
9045
9202
|
}
|
|
9046
9203
|
update(dsId, body) {
|
|
9047
9204
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -9058,7 +9215,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9058
9215
|
};
|
|
9059
9216
|
|
|
9060
9217
|
// src/api/endpoints/workspaces/integrations.ts
|
|
9061
|
-
import { z as
|
|
9218
|
+
import { z as z288 } from "zod";
|
|
9062
9219
|
var WorkspaceIntegrationsEndpoint = class {
|
|
9063
9220
|
constructor(requestExecutor) {
|
|
9064
9221
|
this.requestExecutor = requestExecutor;
|
|
@@ -9067,7 +9224,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
9067
9224
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
9068
9225
|
}
|
|
9069
9226
|
delete(wsId, iId) {
|
|
9070
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
9227
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z288.unknown(), { method: "DELETE" });
|
|
9071
9228
|
}
|
|
9072
9229
|
};
|
|
9073
9230
|
|
|
@@ -9099,7 +9256,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
9099
9256
|
};
|
|
9100
9257
|
|
|
9101
9258
|
// src/api/endpoints/workspaces/members.ts
|
|
9102
|
-
import { z as
|
|
9259
|
+
import { z as z289 } from "zod";
|
|
9103
9260
|
var WorkspaceMembersEndpoint = class {
|
|
9104
9261
|
constructor(requestExecutor) {
|
|
9105
9262
|
this.requestExecutor = requestExecutor;
|
|
@@ -9116,7 +9273,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9116
9273
|
});
|
|
9117
9274
|
}
|
|
9118
9275
|
invite(workspaceId, body) {
|
|
9119
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
9276
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z289.any(), { method: "POST", body });
|
|
9120
9277
|
}
|
|
9121
9278
|
delete(workspaceId, userId) {
|
|
9122
9279
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -9125,17 +9282,38 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9125
9282
|
}
|
|
9126
9283
|
};
|
|
9127
9284
|
|
|
9285
|
+
// src/api/endpoints/workspaces/npm-register.ts
|
|
9286
|
+
var WorkspaceNpmRegistryEndpoint = class {
|
|
9287
|
+
constructor(requestExecutor) {
|
|
9288
|
+
this.requestExecutor = requestExecutor;
|
|
9289
|
+
}
|
|
9290
|
+
getAccessToken(wsId) {
|
|
9291
|
+
return this.requestExecutor.json(
|
|
9292
|
+
`/workspaces/${wsId}/npm-registry/access-token`,
|
|
9293
|
+
DTONpmRegistryAccessTokenResponse
|
|
9294
|
+
);
|
|
9295
|
+
}
|
|
9296
|
+
update(wsId, body) {
|
|
9297
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/npm-registry`, DTOUpdateRegistryOutput, {
|
|
9298
|
+
method: "PUT",
|
|
9299
|
+
body
|
|
9300
|
+
});
|
|
9301
|
+
}
|
|
9302
|
+
};
|
|
9303
|
+
|
|
9128
9304
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
9129
|
-
import { z as
|
|
9305
|
+
import { z as z290 } from "zod";
|
|
9130
9306
|
var WorkspacesEndpoint = class {
|
|
9131
9307
|
constructor(requestExecutor) {
|
|
9132
9308
|
this.requestExecutor = requestExecutor;
|
|
9133
9309
|
__publicField(this, "members");
|
|
9134
9310
|
__publicField(this, "invitations");
|
|
9311
|
+
__publicField(this, "npmRegistry");
|
|
9135
9312
|
__publicField(this, "integrations");
|
|
9136
9313
|
this.members = new WorkspaceMembersEndpoint(requestExecutor);
|
|
9137
9314
|
this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
|
|
9138
9315
|
this.integrations = new WorkspaceIntegrationsEndpoint(requestExecutor);
|
|
9316
|
+
this.npmRegistry = new WorkspaceNpmRegistryEndpoint(requestExecutor);
|
|
9139
9317
|
}
|
|
9140
9318
|
create(body) {
|
|
9141
9319
|
return this.requestExecutor.json("/workspaces", DTOWorkspaceResponse, {
|
|
@@ -9147,14 +9325,17 @@ var WorkspacesEndpoint = class {
|
|
|
9147
9325
|
}
|
|
9148
9326
|
});
|
|
9149
9327
|
}
|
|
9328
|
+
list() {
|
|
9329
|
+
return this.requestExecutor.json(`/workspaces`, DTOUserWorkspaceMembershipsResponse, { method: "GET" });
|
|
9330
|
+
}
|
|
9150
9331
|
get(workspaceId) {
|
|
9151
9332
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
9152
9333
|
}
|
|
9153
9334
|
delete(workspaceId) {
|
|
9154
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
9335
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z290.any(), { method: "DELETE" });
|
|
9155
9336
|
}
|
|
9156
9337
|
subscription(workspaceId) {
|
|
9157
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
9338
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z290.any(), { method: "GET" });
|
|
9158
9339
|
}
|
|
9159
9340
|
transferOwnership(workspaceId, body) {
|
|
9160
9341
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -9254,9 +9435,9 @@ ${bodyText}`,
|
|
|
9254
9435
|
|
|
9255
9436
|
// src/api/transport/request-executor.ts
|
|
9256
9437
|
import fetch from "node-fetch";
|
|
9257
|
-
import { z as
|
|
9258
|
-
var ResponseWrapper =
|
|
9259
|
-
result:
|
|
9438
|
+
import { z as z291 } from "zod";
|
|
9439
|
+
var ResponseWrapper = z291.object({
|
|
9440
|
+
result: z291.record(z291.any())
|
|
9260
9441
|
});
|
|
9261
9442
|
var RequestExecutor = class {
|
|
9262
9443
|
constructor(testServerConfig) {
|
|
@@ -9330,31 +9511,31 @@ var SupernovaApiClient = class {
|
|
|
9330
9511
|
};
|
|
9331
9512
|
|
|
9332
9513
|
// src/events/design-system.ts
|
|
9333
|
-
import { z as
|
|
9334
|
-
var DTOEventFigmaNodesRendered =
|
|
9335
|
-
type:
|
|
9336
|
-
designSystemId:
|
|
9337
|
-
versionId:
|
|
9338
|
-
figmaNodePersistentIds:
|
|
9339
|
-
});
|
|
9340
|
-
var DTOEventDataSourcesImported =
|
|
9341
|
-
type:
|
|
9342
|
-
designSystemId:
|
|
9343
|
-
versionId:
|
|
9344
|
-
importJobId:
|
|
9514
|
+
import { z as z292 } from "zod";
|
|
9515
|
+
var DTOEventFigmaNodesRendered = z292.object({
|
|
9516
|
+
type: z292.literal("DesignSystem.FigmaNodesRendered"),
|
|
9517
|
+
designSystemId: z292.string(),
|
|
9518
|
+
versionId: z292.string(),
|
|
9519
|
+
figmaNodePersistentIds: z292.string().array()
|
|
9520
|
+
});
|
|
9521
|
+
var DTOEventDataSourcesImported = z292.object({
|
|
9522
|
+
type: z292.literal("DesignSystem.ImportJobFinished"),
|
|
9523
|
+
designSystemId: z292.string(),
|
|
9524
|
+
versionId: z292.string(),
|
|
9525
|
+
importJobId: z292.string(),
|
|
9345
9526
|
dataSourceType: DataSourceRemoteType,
|
|
9346
|
-
dataSourceIds:
|
|
9527
|
+
dataSourceIds: z292.string().array()
|
|
9347
9528
|
});
|
|
9348
9529
|
|
|
9349
9530
|
// src/events/event.ts
|
|
9350
|
-
import { z as
|
|
9351
|
-
var DTOEvent =
|
|
9531
|
+
import { z as z293 } from "zod";
|
|
9532
|
+
var DTOEvent = z293.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
9352
9533
|
|
|
9353
9534
|
// src/sync/docs-structure-repo.ts
|
|
9354
9535
|
import PQueue from "p-queue";
|
|
9355
9536
|
|
|
9356
9537
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9357
|
-
import { z as
|
|
9538
|
+
import { z as z294 } from "zod";
|
|
9358
9539
|
|
|
9359
9540
|
// src/yjs/version-room/base.ts
|
|
9360
9541
|
var VersionRoomBaseYDoc = class {
|
|
@@ -9904,24 +10085,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
9904
10085
|
};
|
|
9905
10086
|
|
|
9906
10087
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9907
|
-
var DocumentationHierarchySettings =
|
|
9908
|
-
routingVersion:
|
|
9909
|
-
isDraftFeatureAdopted:
|
|
9910
|
-
isApprovalFeatureEnabled:
|
|
9911
|
-
approvalRequiredForPublishing:
|
|
10088
|
+
var DocumentationHierarchySettings = z294.object({
|
|
10089
|
+
routingVersion: z294.string(),
|
|
10090
|
+
isDraftFeatureAdopted: z294.boolean(),
|
|
10091
|
+
isApprovalFeatureEnabled: z294.boolean(),
|
|
10092
|
+
approvalRequiredForPublishing: z294.boolean()
|
|
9912
10093
|
});
|
|
9913
10094
|
function yjsToDocumentationHierarchy(doc) {
|
|
9914
10095
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
9915
10096
|
}
|
|
9916
10097
|
|
|
9917
10098
|
// src/yjs/design-system-content/item-configuration.ts
|
|
9918
|
-
import { z as
|
|
9919
|
-
var DTODocumentationPageRoomHeaderData =
|
|
9920
|
-
title:
|
|
10099
|
+
import { z as z295 } from "zod";
|
|
10100
|
+
var DTODocumentationPageRoomHeaderData = z295.object({
|
|
10101
|
+
title: z295.string(),
|
|
9921
10102
|
configuration: DTODocumentationItemConfigurationV2
|
|
9922
10103
|
});
|
|
9923
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
9924
|
-
title:
|
|
10104
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z295.object({
|
|
10105
|
+
title: z295.string().optional(),
|
|
9925
10106
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
9926
10107
|
});
|
|
9927
10108
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -9950,41 +10131,15 @@ function itemConfigurationToYjs(yDoc, item) {
|
|
|
9950
10131
|
configuration?.isPrivate !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
|
|
9951
10132
|
});
|
|
9952
10133
|
}
|
|
9953
|
-
function yjsToItemConfiguration(yDoc) {
|
|
9954
|
-
const title = yDoc.getMap("itemTitle").get("title");
|
|
9955
|
-
const headerYMap = yDoc.getMap("itemHeader");
|
|
9956
|
-
const rawHeader = {
|
|
9957
|
-
description: headerYMap.get("description"),
|
|
9958
|
-
alignment: headerYMap.get("alignment"),
|
|
9959
|
-
foregroundColor: headerYMap.get("foregroundColor"),
|
|
9960
|
-
backgroundColor: headerYMap.get("backgroundColor"),
|
|
9961
|
-
backgroundImageAsset: headerYMap.get("backgroundImageAsset"),
|
|
9962
|
-
backgroundImageScaleType: headerYMap.get("backgroundImageScaleType"),
|
|
9963
|
-
showBackgroundOverlay: headerYMap.get("showBackgroundOverlay"),
|
|
9964
|
-
showCoverText: headerYMap.get("showCoverText"),
|
|
9965
|
-
minHeight: headerYMap.get("minHeight")
|
|
9966
|
-
};
|
|
9967
|
-
const configYMap = yDoc.getMap("itemConfiguration");
|
|
9968
|
-
const rawConfig = {
|
|
9969
|
-
showSidebar: configYMap.get("showSidebar"),
|
|
9970
|
-
isHidden: configYMap.get("isHidden") ?? false,
|
|
9971
|
-
isPrivate: configYMap.get("isPrivate") ?? false,
|
|
9972
|
-
header: rawHeader
|
|
9973
|
-
};
|
|
9974
|
-
return {
|
|
9975
|
-
title: z293.string().parse(title),
|
|
9976
|
-
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
9977
|
-
};
|
|
9978
|
-
}
|
|
9979
10134
|
|
|
9980
10135
|
// src/yjs/docs-editor/model/block.ts
|
|
9981
10136
|
var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
9982
10137
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
9983
10138
|
|
|
9984
10139
|
// src/yjs/docs-editor/model/page.ts
|
|
9985
|
-
import { z as
|
|
9986
|
-
var DocumentationPageEditorModel =
|
|
9987
|
-
blocks:
|
|
10140
|
+
import { z as z296 } from "zod";
|
|
10141
|
+
var DocumentationPageEditorModel = z296.object({
|
|
10142
|
+
blocks: z296.array(DocumentationPageContentItem)
|
|
9988
10143
|
});
|
|
9989
10144
|
|
|
9990
10145
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -13577,7 +13732,7 @@ var blocks = [
|
|
|
13577
13732
|
|
|
13578
13733
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
13579
13734
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
13580
|
-
import { z as
|
|
13735
|
+
import { z as z297 } from "zod";
|
|
13581
13736
|
function yDocToPage(yDoc, definitions) {
|
|
13582
13737
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
13583
13738
|
}
|
|
@@ -13653,7 +13808,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
13653
13808
|
if (!id) return null;
|
|
13654
13809
|
return {
|
|
13655
13810
|
id,
|
|
13656
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
13811
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z297.string()) ?? "",
|
|
13657
13812
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
13658
13813
|
};
|
|
13659
13814
|
}
|
|
@@ -13687,7 +13842,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
13687
13842
|
});
|
|
13688
13843
|
}
|
|
13689
13844
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
13690
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
13845
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z297.string());
|
|
13691
13846
|
if (!definitionId) {
|
|
13692
13847
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
13693
13848
|
return [];
|
|
@@ -13728,7 +13883,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
13728
13883
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13729
13884
|
if (!id) return null;
|
|
13730
13885
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13731
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
13886
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z297.string().optional()));
|
|
13732
13887
|
return {
|
|
13733
13888
|
id,
|
|
13734
13889
|
type: "Block",
|
|
@@ -13851,9 +14006,9 @@ function parseRichTextAttribute(mark) {
|
|
|
13851
14006
|
return null;
|
|
13852
14007
|
}
|
|
13853
14008
|
function parseProsemirrorLink(mark) {
|
|
13854
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
14009
|
+
const href = getProsemirrorAttribute(mark, "href", z297.string().optional());
|
|
13855
14010
|
if (!href) return null;
|
|
13856
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
14011
|
+
const target = getProsemirrorAttribute(mark, "target", z297.string().optional());
|
|
13857
14012
|
const openInNewTab = target === "_blank";
|
|
13858
14013
|
if (href.startsWith("@")) {
|
|
13859
14014
|
return {
|
|
@@ -13872,9 +14027,9 @@ function parseProsemirrorLink(mark) {
|
|
|
13872
14027
|
}
|
|
13873
14028
|
}
|
|
13874
14029
|
function parseProsemirrorCommentHighlight(mark) {
|
|
13875
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
14030
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z297.string().optional());
|
|
13876
14031
|
if (!highlightId) return null;
|
|
13877
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
14032
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z297.boolean().optional()) ?? false;
|
|
13878
14033
|
return {
|
|
13879
14034
|
type: "Comment",
|
|
13880
14035
|
commentHighlightId: highlightId,
|
|
@@ -13885,7 +14040,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13885
14040
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13886
14041
|
if (!id) return null;
|
|
13887
14042
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13888
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
14043
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z297.boolean().optional()) !== false;
|
|
13889
14044
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
13890
14045
|
if (!tableChild) {
|
|
13891
14046
|
return emptyTable(id, variantId, 0);
|
|
@@ -13931,9 +14086,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13931
14086
|
function parseAsTableCell(prosemirrorNode) {
|
|
13932
14087
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13933
14088
|
if (!id) return null;
|
|
13934
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
14089
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z297.string().optional());
|
|
13935
14090
|
let columnWidth;
|
|
13936
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
14091
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z297.array(z297.number()).nullish());
|
|
13937
14092
|
if (columnWidthArray) {
|
|
13938
14093
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
13939
14094
|
}
|
|
@@ -13969,7 +14124,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
13969
14124
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
13970
14125
|
};
|
|
13971
14126
|
case "image":
|
|
13972
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14127
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z297.string());
|
|
13973
14128
|
if (!items) return null;
|
|
13974
14129
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
13975
14130
|
if (!parsedItems.success) return null;
|
|
@@ -14083,7 +14238,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
14083
14238
|
);
|
|
14084
14239
|
}
|
|
14085
14240
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
14086
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14241
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z297.string());
|
|
14087
14242
|
if (!itemsString) return null;
|
|
14088
14243
|
const itemsJson = JSON.parse(itemsString);
|
|
14089
14244
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -14094,18 +14249,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
14094
14249
|
}
|
|
14095
14250
|
function parseAppearance(prosemirrorNode) {
|
|
14096
14251
|
let appearance = {};
|
|
14097
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
14252
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z297.string().optional());
|
|
14098
14253
|
if (rawAppearanceString) {
|
|
14099
14254
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
14100
14255
|
if (parsedAppearance.success) {
|
|
14101
14256
|
appearance = parsedAppearance.data;
|
|
14102
14257
|
}
|
|
14103
14258
|
}
|
|
14104
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
14259
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z297.number().optional());
|
|
14105
14260
|
if (columns) {
|
|
14106
14261
|
appearance.numberOfColumns = columns;
|
|
14107
14262
|
}
|
|
14108
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
14263
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z297.string().optional());
|
|
14109
14264
|
if (backgroundColor) {
|
|
14110
14265
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
14111
14266
|
if (parsedColor.success) {
|
|
@@ -14204,12 +14359,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
14204
14359
|
}
|
|
14205
14360
|
}
|
|
14206
14361
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
14207
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
14362
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z297.string());
|
|
14208
14363
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
14209
14364
|
return id;
|
|
14210
14365
|
}
|
|
14211
14366
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
14212
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
14367
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z297.string()));
|
|
14213
14368
|
}
|
|
14214
14369
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
14215
14370
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -14750,6 +14905,9 @@ export {
|
|
|
14750
14905
|
CodeComponentsEndpoint,
|
|
14751
14906
|
CodegenEndpoint,
|
|
14752
14907
|
Collection2 as Collection,
|
|
14908
|
+
DTOAnalyzeCodeComponentsInPackage,
|
|
14909
|
+
DTOAnalyzeCodeComponentsInPackageInput,
|
|
14910
|
+
DTOAnalyzeCodeComponentsInPackageResponse,
|
|
14753
14911
|
DTOAppBootstrapDataQuery,
|
|
14754
14912
|
DTOAppBootstrapDataResponse,
|
|
14755
14913
|
DTOAssetRenderConfiguration,
|
|
@@ -14796,6 +14954,7 @@ export {
|
|
|
14796
14954
|
DTODeleteDocumentationGroupInput,
|
|
14797
14955
|
DTODeleteDocumentationPageInputV2,
|
|
14798
14956
|
DTODeleteDocumentationTabGroupInput,
|
|
14957
|
+
DTODependencyDefinition,
|
|
14799
14958
|
DTODesignElementsDataDiffResponse,
|
|
14800
14959
|
DTODesignSystem,
|
|
14801
14960
|
DTODesignSystemComponent,
|
|
@@ -15015,6 +15174,7 @@ export {
|
|
|
15015
15174
|
DTOLiveblocksAuthResponse,
|
|
15016
15175
|
DTOMoveDocumentationGroupInput,
|
|
15017
15176
|
DTOMoveDocumentationPageInputV2,
|
|
15177
|
+
DTONpmRegistryAccessTokenResponse,
|
|
15018
15178
|
DTONpmRegistryConfig,
|
|
15019
15179
|
DTONpmRegistryConfigConstants,
|
|
15020
15180
|
DTOObjectMeta,
|
|
@@ -15048,15 +15208,22 @@ export {
|
|
|
15048
15208
|
DTOPublishedDocPageVisitData,
|
|
15049
15209
|
DTOPublishedDocVisitData,
|
|
15050
15210
|
DTOPublishedDocVisitHeatMapWeek,
|
|
15211
|
+
DTORegistry,
|
|
15051
15212
|
DTORenderedAssetFile,
|
|
15052
15213
|
DTORestoreDocumentationGroupInput,
|
|
15053
15214
|
DTORestoreDocumentationPageInput,
|
|
15215
|
+
DTOStorybookAccessTokenPayload,
|
|
15216
|
+
DTOStorybookAccessTokenResponse,
|
|
15054
15217
|
DTOStorybookEntry,
|
|
15055
15218
|
DTOStorybookEntryListResponse,
|
|
15056
15219
|
DTOStorybookEntryOrigin,
|
|
15057
15220
|
DTOStorybookEntryReplaceAction,
|
|
15058
15221
|
DTOStorybookEntryResponse,
|
|
15059
15222
|
DTOStorybookImportPayload,
|
|
15223
|
+
DTOStorybookSourceUpdatePayload,
|
|
15224
|
+
DTOStorybookUploadStatus,
|
|
15225
|
+
DTOStorybookUploadUrlRequest,
|
|
15226
|
+
DTOStorybookUploadUrlResponse,
|
|
15060
15227
|
DTOTheme,
|
|
15061
15228
|
DTOThemeCreatePayload,
|
|
15062
15229
|
DTOThemeListResponse,
|
|
@@ -15069,9 +15236,12 @@ export {
|
|
|
15069
15236
|
DTOUpdateDocumentationGroupInput,
|
|
15070
15237
|
DTOUpdateDocumentationPageDocumentInputV2,
|
|
15071
15238
|
DTOUpdateDocumentationPageInputV2,
|
|
15239
|
+
DTOUpdateRegistryInput,
|
|
15240
|
+
DTOUpdateRegistryOutput,
|
|
15072
15241
|
DTOUpdateUserNotificationSettingsPayload,
|
|
15073
15242
|
DTOUpdateVersionInput,
|
|
15074
15243
|
DTOUser,
|
|
15244
|
+
DTOUserDesignSystemsResponse,
|
|
15075
15245
|
DTOUserGetResponse,
|
|
15076
15246
|
DTOUserNotificationSettingsResponse,
|
|
15077
15247
|
DTOUserOnboarding,
|
|
@@ -15151,6 +15321,7 @@ export {
|
|
|
15151
15321
|
RequestExecutorError,
|
|
15152
15322
|
ResolvedVariableType,
|
|
15153
15323
|
StorybookEntriesEndpoint,
|
|
15324
|
+
StorybookHostingEndpoint,
|
|
15154
15325
|
StringVariableScopeType,
|
|
15155
15326
|
SupernovaApiClient,
|
|
15156
15327
|
ThemesEndpoint,
|
|
@@ -15170,6 +15341,7 @@ export {
|
|
|
15170
15341
|
WorkspaceIntegrationsEndpoint,
|
|
15171
15342
|
WorkspaceInvitationsEndpoint,
|
|
15172
15343
|
WorkspaceMembersEndpoint,
|
|
15344
|
+
WorkspaceNpmRegistryEndpoint,
|
|
15173
15345
|
WorkspacesEndpoint,
|
|
15174
15346
|
applyActionsLocally,
|
|
15175
15347
|
applyPrivacyConfigurationToNestedItems,
|
|
@@ -15226,7 +15398,6 @@ export {
|
|
|
15226
15398
|
validateSsoPayload,
|
|
15227
15399
|
yDocToPage,
|
|
15228
15400
|
yXmlFragmentToPage,
|
|
15229
|
-
yjsToDocumentationHierarchy
|
|
15230
|
-
yjsToItemConfiguration
|
|
15401
|
+
yjsToDocumentationHierarchy
|
|
15231
15402
|
};
|
|
15232
15403
|
//# sourceMappingURL=index.mjs.map
|