@supernova-studio/client 1.9.0 → 1.9.2
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 +284 -98
- package/dist/index.d.ts +284 -98
- package/dist/index.js +82 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1130 -1058
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -633,7 +633,10 @@ var Asset = z22.object({
|
|
|
633
633
|
scope: AssetScope,
|
|
634
634
|
properties: AssetProperties.nullish(),
|
|
635
635
|
originKey: z22.string().optional(),
|
|
636
|
-
createdAt: z22.coerce.date().optional()
|
|
636
|
+
createdAt: z22.coerce.date().optional(),
|
|
637
|
+
pendingUpload: z22.boolean().optional(),
|
|
638
|
+
size: z22.number().int().positive().optional(),
|
|
639
|
+
checksum: z22.string().optional()
|
|
637
640
|
});
|
|
638
641
|
var ResolvedAsset = Asset.extend({
|
|
639
642
|
url: z22.string()
|
|
@@ -5744,7 +5747,7 @@ var DTOPagination = z195.object({
|
|
|
5744
5747
|
});
|
|
5745
5748
|
|
|
5746
5749
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5747
|
-
import { z as
|
|
5750
|
+
import { z as z237 } from "zod";
|
|
5748
5751
|
|
|
5749
5752
|
// src/api/dto/design-systems/brand.ts
|
|
5750
5753
|
import { z as z196 } from "zod";
|
|
@@ -6230,266 +6233,298 @@ var FormattedCollections = z208.object({
|
|
|
6230
6233
|
variablesOrder: z208.string().array().optional()
|
|
6231
6234
|
});
|
|
6232
6235
|
|
|
6233
|
-
// src/api/dto/design-systems/
|
|
6236
|
+
// src/api/dto/design-systems/file.ts
|
|
6234
6237
|
import { z as z209 } from "zod";
|
|
6235
|
-
var
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6238
|
+
var DTOFileUploadItem = z209.object({
|
|
6239
|
+
size: z209.number(),
|
|
6240
|
+
name: z209.string(),
|
|
6241
|
+
checksum: z209.string()
|
|
6242
|
+
});
|
|
6243
|
+
var DTOFileUploadPayload = z209.object({
|
|
6244
|
+
files: z209.array(DTOFileUploadItem)
|
|
6245
|
+
});
|
|
6246
|
+
var DTOFileUploadResponseItem = z209.object({
|
|
6247
|
+
fileId: z209.string(),
|
|
6248
|
+
referencePersistentId: z209.string(),
|
|
6249
|
+
name: z209.string(),
|
|
6250
|
+
checksum: z209.string(),
|
|
6251
|
+
pendingUpload: z209.boolean().optional(),
|
|
6252
|
+
url: z209.string(),
|
|
6253
|
+
size: z209.number()
|
|
6254
|
+
});
|
|
6255
|
+
var DTOUploadUrlItem = z209.object({
|
|
6256
|
+
fileId: z209.string(),
|
|
6257
|
+
uploadUrl: z209.string()
|
|
6258
|
+
});
|
|
6259
|
+
var DTOFileUploadResponse = z209.object({
|
|
6260
|
+
files: z209.array(DTOFileUploadResponseItem),
|
|
6261
|
+
uploadUrls: z209.array(DTOUploadUrlItem)
|
|
6262
|
+
});
|
|
6263
|
+
var DTOFileUploadFinalizePayload = z209.object({
|
|
6264
|
+
fileIds: z209.array(z209.string())
|
|
6265
|
+
});
|
|
6266
|
+
var DTOFileUploadFinalizeResponse = z209.object({ ok: z209.literal(true) });
|
|
6267
|
+
|
|
6268
|
+
// src/api/dto/design-systems/import-job.ts
|
|
6269
|
+
import { z as z210 } from "zod";
|
|
6270
|
+
var DTOImportJob = z210.object({
|
|
6271
|
+
id: z210.string(),
|
|
6272
|
+
designSystemId: z210.string(),
|
|
6273
|
+
designSystemVersionId: z210.string(),
|
|
6274
|
+
operation: z210.literal("Import"),
|
|
6275
|
+
createdAt: z210.coerce.date(),
|
|
6276
|
+
stateChangedAt: z210.coerce.date(),
|
|
6242
6277
|
state: ImportJobState,
|
|
6243
|
-
sourceIds:
|
|
6278
|
+
sourceIds: z210.string().array()
|
|
6244
6279
|
});
|
|
6245
|
-
var DTOImportJobResponse =
|
|
6280
|
+
var DTOImportJobResponse = z210.object({
|
|
6246
6281
|
job: DTOImportJob
|
|
6247
6282
|
});
|
|
6248
|
-
var DTOBffFigmaImportRequestBody =
|
|
6249
|
-
type:
|
|
6250
|
-
brandPersistentId:
|
|
6251
|
-
fileId:
|
|
6283
|
+
var DTOBffFigmaImportRequestBody = z210.object({
|
|
6284
|
+
type: z210.literal(DataSourceRemoteType.Enum.Figma),
|
|
6285
|
+
brandPersistentId: z210.string().optional(),
|
|
6286
|
+
fileId: z210.string(),
|
|
6252
6287
|
scope: DataSourceFigmaScope,
|
|
6253
6288
|
autoImportMode: DataSourceAutoImportMode
|
|
6254
6289
|
});
|
|
6255
|
-
var DTOBffUploadImportRequestBody =
|
|
6256
|
-
type:
|
|
6257
|
-
brandPersistentId:
|
|
6258
|
-
sourceName:
|
|
6259
|
-
remoteId:
|
|
6260
|
-
isTokenTypeSplitEnabled:
|
|
6261
|
-
payload:
|
|
6290
|
+
var DTOBffUploadImportRequestBody = z210.object({
|
|
6291
|
+
type: z210.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
6292
|
+
brandPersistentId: z210.string().optional(),
|
|
6293
|
+
sourceName: z210.string().optional(),
|
|
6294
|
+
remoteId: z210.string(),
|
|
6295
|
+
isTokenTypeSplitEnabled: z210.boolean().optional(),
|
|
6296
|
+
payload: z210.any()
|
|
6262
6297
|
});
|
|
6263
|
-
var DTOBffImportRequestBody =
|
|
6298
|
+
var DTOBffImportRequestBody = z210.discriminatedUnion("type", [
|
|
6264
6299
|
DTOBffFigmaImportRequestBody,
|
|
6265
6300
|
DTOBffUploadImportRequestBody
|
|
6266
6301
|
]);
|
|
6267
6302
|
|
|
6268
6303
|
// src/api/dto/design-systems/redirects.ts
|
|
6269
|
-
import { z as
|
|
6270
|
-
var DTOPageRedirectCreateBody =
|
|
6271
|
-
pagePersistentId:
|
|
6272
|
-
path:
|
|
6304
|
+
import { z as z211 } from "zod";
|
|
6305
|
+
var DTOPageRedirectCreateBody = z211.object({
|
|
6306
|
+
pagePersistentId: z211.string(),
|
|
6307
|
+
path: z211.string()
|
|
6273
6308
|
});
|
|
6274
6309
|
var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
|
|
6275
|
-
var DTOPageRedirect =
|
|
6276
|
-
id:
|
|
6277
|
-
pagePersistentId:
|
|
6278
|
-
path:
|
|
6310
|
+
var DTOPageRedirect = z211.object({
|
|
6311
|
+
id: z211.string(),
|
|
6312
|
+
pagePersistentId: z211.string(),
|
|
6313
|
+
path: z211.string()
|
|
6279
6314
|
});
|
|
6280
|
-
var DTOPageRedirectListResponse =
|
|
6315
|
+
var DTOPageRedirectListResponse = z211.object({
|
|
6281
6316
|
redirects: DTOPageRedirect.array()
|
|
6282
6317
|
});
|
|
6283
|
-
var DTOPageRedirectResponse =
|
|
6318
|
+
var DTOPageRedirectResponse = z211.object({
|
|
6284
6319
|
redirect: DTOPageRedirect
|
|
6285
6320
|
});
|
|
6286
|
-
var DTOPageRedirectDeleteResponse =
|
|
6287
|
-
success:
|
|
6321
|
+
var DTOPageRedirectDeleteResponse = z211.object({
|
|
6322
|
+
success: z211.boolean()
|
|
6288
6323
|
});
|
|
6289
6324
|
|
|
6290
6325
|
// src/api/dto/design-systems/stats.ts
|
|
6291
|
-
import { z as
|
|
6292
|
-
var DTODesignSystemVersionStats =
|
|
6293
|
-
tokens:
|
|
6294
|
-
designSystemComponents:
|
|
6295
|
-
assets:
|
|
6296
|
-
documentationPages:
|
|
6297
|
-
figmaComponents:
|
|
6298
|
-
});
|
|
6299
|
-
var DTODesignSystemVersionStatsQuery =
|
|
6326
|
+
import { z as z212 } from "zod";
|
|
6327
|
+
var DTODesignSystemVersionStats = z212.object({
|
|
6328
|
+
tokens: z212.number(),
|
|
6329
|
+
designSystemComponents: z212.number(),
|
|
6330
|
+
assets: z212.number(),
|
|
6331
|
+
documentationPages: z212.number(),
|
|
6332
|
+
figmaComponents: z212.number()
|
|
6333
|
+
});
|
|
6334
|
+
var DTODesignSystemVersionStatsQuery = z212.object({
|
|
6300
6335
|
/**
|
|
6301
6336
|
* Unique ID across versions (non-persistent ID)
|
|
6302
6337
|
*/
|
|
6303
|
-
brandId:
|
|
6338
|
+
brandId: z212.string().optional()
|
|
6304
6339
|
});
|
|
6305
6340
|
|
|
6306
6341
|
// src/api/dto/design-systems/storybook.ts
|
|
6307
|
-
import { z as
|
|
6308
|
-
var DTOStorybookUploadUrlRequest =
|
|
6309
|
-
name:
|
|
6310
|
-
});
|
|
6311
|
-
var DTOStorybookUploadUrlResponse =
|
|
6312
|
-
signedUrl:
|
|
6313
|
-
storybookUploadId:
|
|
6314
|
-
});
|
|
6315
|
-
var DTOStorybookAccessTokenResponse =
|
|
6316
|
-
accessToken:
|
|
6317
|
-
});
|
|
6318
|
-
var DTOStorybookAccessTokenPayload =
|
|
6319
|
-
designSystemId:
|
|
6320
|
-
storybookUploadId:
|
|
6321
|
-
});
|
|
6322
|
-
var DTOStorybookUploadStatus =
|
|
6323
|
-
status:
|
|
6324
|
-
timestamp:
|
|
6325
|
-
reason:
|
|
6326
|
-
});
|
|
6327
|
-
var DTOStorybookEntryOrigin =
|
|
6328
|
-
id:
|
|
6329
|
-
type:
|
|
6330
|
-
name:
|
|
6331
|
-
title:
|
|
6332
|
-
});
|
|
6333
|
-
var DTOStorybookEntry =
|
|
6334
|
-
id:
|
|
6335
|
-
storyId:
|
|
6336
|
-
designSystemId:
|
|
6337
|
-
sourceId:
|
|
6338
|
-
aliases:
|
|
6339
|
-
url:
|
|
6340
|
-
isDeleted:
|
|
6342
|
+
import { z as z213 } from "zod";
|
|
6343
|
+
var DTOStorybookUploadUrlRequest = z213.object({
|
|
6344
|
+
name: z213.string()
|
|
6345
|
+
});
|
|
6346
|
+
var DTOStorybookUploadUrlResponse = z213.object({
|
|
6347
|
+
signedUrl: z213.string(),
|
|
6348
|
+
storybookUploadId: z213.string()
|
|
6349
|
+
});
|
|
6350
|
+
var DTOStorybookAccessTokenResponse = z213.object({
|
|
6351
|
+
accessToken: z213.string()
|
|
6352
|
+
});
|
|
6353
|
+
var DTOStorybookAccessTokenPayload = z213.object({
|
|
6354
|
+
designSystemId: z213.string(),
|
|
6355
|
+
storybookUploadId: z213.string()
|
|
6356
|
+
});
|
|
6357
|
+
var DTOStorybookUploadStatus = z213.object({
|
|
6358
|
+
status: z213.enum(["Failed", "InProgress", "Completed", "Unknown"]),
|
|
6359
|
+
timestamp: z213.number().optional(),
|
|
6360
|
+
reason: z213.string().optional()
|
|
6361
|
+
});
|
|
6362
|
+
var DTOStorybookEntryOrigin = z213.object({
|
|
6363
|
+
id: z213.string(),
|
|
6364
|
+
type: z213.enum(["story", "docs"]),
|
|
6365
|
+
name: z213.string(),
|
|
6366
|
+
title: z213.string()
|
|
6367
|
+
});
|
|
6368
|
+
var DTOStorybookEntry = z213.object({
|
|
6369
|
+
id: z213.string(),
|
|
6370
|
+
storyId: z213.string(),
|
|
6371
|
+
designSystemId: z213.string(),
|
|
6372
|
+
sourceId: z213.string(),
|
|
6373
|
+
aliases: z213.array(z213.string()).optional(),
|
|
6374
|
+
url: z213.string(),
|
|
6375
|
+
isDeleted: z213.boolean().optional(),
|
|
6341
6376
|
origin: DTOStorybookEntryOrigin,
|
|
6342
|
-
createdAt:
|
|
6343
|
-
updatedAt:
|
|
6377
|
+
createdAt: z213.coerce.date(),
|
|
6378
|
+
updatedAt: z213.coerce.date()
|
|
6344
6379
|
});
|
|
6345
|
-
var DTOStorybookEntryReplaceAction =
|
|
6346
|
-
newStoryId:
|
|
6380
|
+
var DTOStorybookEntryReplaceAction = z213.object({
|
|
6381
|
+
newStoryId: z213.string()
|
|
6347
6382
|
});
|
|
6348
|
-
var DTOStorybookEntryListResponse =
|
|
6349
|
-
var DTOStorybookEntryResponse =
|
|
6383
|
+
var DTOStorybookEntryListResponse = z213.object({ entries: z213.array(DTOStorybookEntry) });
|
|
6384
|
+
var DTOStorybookEntryResponse = z213.object({ entry: DTOStorybookEntry });
|
|
6350
6385
|
|
|
6351
6386
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
6352
|
-
import { z as
|
|
6387
|
+
import { z as z221 } from "zod";
|
|
6353
6388
|
|
|
6354
6389
|
// src/api/dto/workspaces/git.ts
|
|
6355
|
-
import { z as
|
|
6356
|
-
var DTOGitOrganization =
|
|
6357
|
-
id:
|
|
6358
|
-
name:
|
|
6359
|
-
url:
|
|
6360
|
-
slug:
|
|
6390
|
+
import { z as z214 } from "zod";
|
|
6391
|
+
var DTOGitOrganization = z214.object({
|
|
6392
|
+
id: z214.string(),
|
|
6393
|
+
name: z214.string(),
|
|
6394
|
+
url: z214.string(),
|
|
6395
|
+
slug: z214.string()
|
|
6361
6396
|
});
|
|
6362
|
-
var DTOGitProject =
|
|
6363
|
-
id:
|
|
6364
|
-
name:
|
|
6365
|
-
url:
|
|
6366
|
-
slug:
|
|
6397
|
+
var DTOGitProject = z214.object({
|
|
6398
|
+
id: z214.string(),
|
|
6399
|
+
name: z214.string(),
|
|
6400
|
+
url: z214.string(),
|
|
6401
|
+
slug: z214.string()
|
|
6367
6402
|
});
|
|
6368
|
-
var DTOGitRepository =
|
|
6369
|
-
id:
|
|
6370
|
-
name:
|
|
6371
|
-
url:
|
|
6372
|
-
slug:
|
|
6373
|
-
defaultBranch:
|
|
6403
|
+
var DTOGitRepository = z214.object({
|
|
6404
|
+
id: z214.string(),
|
|
6405
|
+
name: z214.string(),
|
|
6406
|
+
url: z214.string(),
|
|
6407
|
+
slug: z214.string(),
|
|
6408
|
+
defaultBranch: z214.string().optional()
|
|
6374
6409
|
});
|
|
6375
|
-
var DTOGitBranch =
|
|
6376
|
-
name:
|
|
6377
|
-
lastCommitId:
|
|
6410
|
+
var DTOGitBranch = z214.object({
|
|
6411
|
+
name: z214.string(),
|
|
6412
|
+
lastCommitId: z214.string()
|
|
6378
6413
|
});
|
|
6379
6414
|
|
|
6380
6415
|
// src/api/dto/workspaces/integrations.ts
|
|
6381
|
-
import { z as
|
|
6416
|
+
import { z as z215 } from "zod";
|
|
6382
6417
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6383
6418
|
accessToken: true,
|
|
6384
6419
|
refreshToken: true
|
|
6385
6420
|
});
|
|
6386
|
-
var DTOIntegration =
|
|
6387
|
-
id:
|
|
6388
|
-
workspaceId:
|
|
6421
|
+
var DTOIntegration = z215.object({
|
|
6422
|
+
id: z215.string(),
|
|
6423
|
+
workspaceId: z215.string(),
|
|
6389
6424
|
type: ExtendedIntegrationType,
|
|
6390
|
-
createdAt:
|
|
6391
|
-
integrationCredentials:
|
|
6392
|
-
integrationDesignSystems:
|
|
6425
|
+
createdAt: z215.coerce.date(),
|
|
6426
|
+
integrationCredentials: z215.array(DTOIntegrationCredentials).optional(),
|
|
6427
|
+
integrationDesignSystems: z215.array(IntegrationDesignSystem).optional()
|
|
6393
6428
|
});
|
|
6394
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6395
|
-
url:
|
|
6429
|
+
var DTOIntegrationOAuthGetResponse = z215.object({
|
|
6430
|
+
url: z215.string()
|
|
6396
6431
|
});
|
|
6397
|
-
var DTOIntegrationPostResponse =
|
|
6432
|
+
var DTOIntegrationPostResponse = z215.object({
|
|
6398
6433
|
integration: DTOIntegration
|
|
6399
6434
|
});
|
|
6400
|
-
var DTOIntegrationsGetListResponse =
|
|
6435
|
+
var DTOIntegrationsGetListResponse = z215.object({
|
|
6401
6436
|
integrations: DTOIntegration.array()
|
|
6402
6437
|
});
|
|
6403
6438
|
|
|
6404
6439
|
// src/api/dto/workspaces/invitations.ts
|
|
6405
|
-
import { z as
|
|
6406
|
-
var DTOWorkspaceInvitationInput =
|
|
6407
|
-
email:
|
|
6440
|
+
import { z as z216 } from "zod";
|
|
6441
|
+
var DTOWorkspaceInvitationInput = z216.object({
|
|
6442
|
+
email: z216.string().email(),
|
|
6408
6443
|
role: WorkspaceRoleSchema
|
|
6409
6444
|
});
|
|
6410
|
-
var DTOWorkspaceInvitationsListInput =
|
|
6445
|
+
var DTOWorkspaceInvitationsListInput = z216.object({
|
|
6411
6446
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6412
|
-
designSystemId:
|
|
6447
|
+
designSystemId: z216.string().optional()
|
|
6413
6448
|
});
|
|
6414
|
-
var DTOWorkspaceInvitationsResponse =
|
|
6449
|
+
var DTOWorkspaceInvitationsResponse = z216.object({
|
|
6415
6450
|
invitations: WorkspaceInvitation.array()
|
|
6416
6451
|
});
|
|
6417
|
-
var DTOWorkspaceInviteUpdate =
|
|
6452
|
+
var DTOWorkspaceInviteUpdate = z216.object({
|
|
6418
6453
|
role: WorkspaceRoleSchema
|
|
6419
6454
|
});
|
|
6420
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
6455
|
+
var DTOWorkspaceInvitationUpdateResponse = z216.object({
|
|
6421
6456
|
invitation: WorkspaceInvitation
|
|
6422
6457
|
});
|
|
6423
6458
|
|
|
6424
6459
|
// src/api/dto/workspaces/membership.ts
|
|
6425
|
-
import { z as
|
|
6460
|
+
import { z as z219 } from "zod";
|
|
6426
6461
|
|
|
6427
6462
|
// src/api/dto/workspaces/workspace.ts
|
|
6428
|
-
import { z as
|
|
6463
|
+
import { z as z218 } from "zod";
|
|
6429
6464
|
|
|
6430
6465
|
// src/api/dto/workspaces/npm-registry.ts
|
|
6431
|
-
import { z as
|
|
6466
|
+
import { z as z217 } from "zod";
|
|
6432
6467
|
var DTONpmRegistryConfigConstants = {
|
|
6433
6468
|
passwordPlaceholder: "redacted"
|
|
6434
6469
|
};
|
|
6435
|
-
var DTONpmRegistryConfig =
|
|
6470
|
+
var DTONpmRegistryConfig = z217.object({
|
|
6436
6471
|
// Registry basic configuration
|
|
6437
6472
|
registryType: NpmRegistryType,
|
|
6438
|
-
registryUrl:
|
|
6439
|
-
customRegistryUrl:
|
|
6473
|
+
registryUrl: z217.string(),
|
|
6474
|
+
customRegistryUrl: z217.string().optional(),
|
|
6440
6475
|
// URL of Supernova NPM packages proxy
|
|
6441
|
-
proxyUrl:
|
|
6476
|
+
proxyUrl: z217.string(),
|
|
6442
6477
|
// Auth configuration
|
|
6443
6478
|
authType: NpmRegistryAuthType,
|
|
6444
|
-
accessToken:
|
|
6445
|
-
username:
|
|
6446
|
-
password:
|
|
6479
|
+
accessToken: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6480
|
+
username: z217.string().optional(),
|
|
6481
|
+
password: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6447
6482
|
// NPM package scopes for whih the proxy should be enabled
|
|
6448
|
-
enabledScopes:
|
|
6483
|
+
enabledScopes: z217.array(z217.string()),
|
|
6449
6484
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6450
6485
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6451
|
-
bypassProxy:
|
|
6486
|
+
bypassProxy: z217.boolean()
|
|
6452
6487
|
});
|
|
6453
|
-
var DTONpmRegistryAccessTokenResponse =
|
|
6454
|
-
version:
|
|
6455
|
-
accessToken:
|
|
6456
|
-
registryUrl:
|
|
6488
|
+
var DTONpmRegistryAccessTokenResponse = z217.object({
|
|
6489
|
+
version: z217.number(),
|
|
6490
|
+
accessToken: z217.string().optional(),
|
|
6491
|
+
registryUrl: z217.string()
|
|
6457
6492
|
});
|
|
6458
|
-
var DTOUpdateRegistryInput =
|
|
6493
|
+
var DTOUpdateRegistryInput = z217.object({
|
|
6459
6494
|
registryType: nullishToOptional(NpmRegistryType),
|
|
6460
6495
|
authType: nullishToOptional(NpmRegistryAuthType),
|
|
6461
|
-
enabledScopes: nullishToOptional(
|
|
6462
|
-
customRegistryUrl: nullishToOptional(
|
|
6463
|
-
bypassProxy: nullishToOptional(
|
|
6464
|
-
npmProxyVersion: nullishToOptional(
|
|
6465
|
-
authHeaderName: nullishToOptional(
|
|
6466
|
-
authHeaderValue: nullishToOptional(
|
|
6467
|
-
accessToken: nullishToOptional(
|
|
6468
|
-
username: nullishToOptional(
|
|
6469
|
-
password: nullishToOptional(
|
|
6470
|
-
});
|
|
6471
|
-
var DTOUpdateRegistryOutput =
|
|
6496
|
+
enabledScopes: nullishToOptional(z217.array(z217.string())),
|
|
6497
|
+
customRegistryUrl: nullishToOptional(z217.string()),
|
|
6498
|
+
bypassProxy: nullishToOptional(z217.boolean()),
|
|
6499
|
+
npmProxyVersion: nullishToOptional(z217.number()),
|
|
6500
|
+
authHeaderName: nullishToOptional(z217.string()),
|
|
6501
|
+
authHeaderValue: nullishToOptional(z217.string()),
|
|
6502
|
+
accessToken: nullishToOptional(z217.string()),
|
|
6503
|
+
username: nullishToOptional(z217.string()),
|
|
6504
|
+
password: nullishToOptional(z217.string())
|
|
6505
|
+
});
|
|
6506
|
+
var DTOUpdateRegistryOutput = z217.object({
|
|
6472
6507
|
npmRegistrySettings: DTONpmRegistryConfig
|
|
6473
6508
|
});
|
|
6474
6509
|
|
|
6475
6510
|
// src/api/dto/workspaces/workspace.ts
|
|
6476
6511
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6477
|
-
var DTOWorkspace =
|
|
6478
|
-
id:
|
|
6512
|
+
var DTOWorkspace = z218.object({
|
|
6513
|
+
id: z218.string(),
|
|
6479
6514
|
profile: DTOWorkspaceProfile,
|
|
6480
6515
|
subscription: Subscription,
|
|
6481
6516
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6482
6517
|
});
|
|
6483
|
-
var DTOWorkspaceCreateInput =
|
|
6484
|
-
name:
|
|
6518
|
+
var DTOWorkspaceCreateInput = z218.object({
|
|
6519
|
+
name: z218.string()
|
|
6485
6520
|
});
|
|
6486
|
-
var DTOWorkspaceResponse =
|
|
6521
|
+
var DTOWorkspaceResponse = z218.object({
|
|
6487
6522
|
workspace: DTOWorkspace
|
|
6488
6523
|
});
|
|
6489
6524
|
|
|
6490
6525
|
// src/api/dto/workspaces/membership.ts
|
|
6491
|
-
var DTOWorkspaceRole =
|
|
6492
|
-
var DTOUserWorkspaceMembership =
|
|
6526
|
+
var DTOWorkspaceRole = z219.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6527
|
+
var DTOUserWorkspaceMembership = z219.object({
|
|
6493
6528
|
// Workspace the user is a member of
|
|
6494
6529
|
workspace: DTOWorkspace,
|
|
6495
6530
|
// Assigned role the user has in the workspace
|
|
@@ -6499,54 +6534,54 @@ var DTOUserWorkspaceMembership = z218.object({
|
|
|
6499
6534
|
// when a workspace's subscription is downgraded to free tier
|
|
6500
6535
|
effectiveRole: DTOWorkspaceRole
|
|
6501
6536
|
});
|
|
6502
|
-
var DTOWorkspaceMember =
|
|
6537
|
+
var DTOWorkspaceMember = z219.object({
|
|
6503
6538
|
user: User,
|
|
6504
6539
|
role: WorkspaceRoleSchema,
|
|
6505
6540
|
effectiveRole: WorkspaceRoleSchema
|
|
6506
6541
|
});
|
|
6507
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6508
|
-
membership:
|
|
6542
|
+
var DTOUserWorkspaceMembershipsResponse = z219.object({
|
|
6543
|
+
membership: z219.array(DTOUserWorkspaceMembership)
|
|
6509
6544
|
});
|
|
6510
|
-
var DTOWorkspaceMembersListResponse =
|
|
6511
|
-
members:
|
|
6545
|
+
var DTOWorkspaceMembersListResponse = z219.object({
|
|
6546
|
+
members: z219.array(DTOWorkspaceMember)
|
|
6512
6547
|
});
|
|
6513
6548
|
|
|
6514
6549
|
// src/api/dto/workspaces/untyped-data.ts
|
|
6515
|
-
import { z as
|
|
6550
|
+
import { z as z220 } from "zod";
|
|
6516
6551
|
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
6517
|
-
var DTOWorkspaceUntypedDataListResponse =
|
|
6552
|
+
var DTOWorkspaceUntypedDataListResponse = z220.object({
|
|
6518
6553
|
data: DTOWorkspaceUntypedData.array()
|
|
6519
6554
|
});
|
|
6520
|
-
var DTOWorkspaceUntypedDataResponse =
|
|
6555
|
+
var DTOWorkspaceUntypedDataResponse = z220.object({
|
|
6521
6556
|
data: DTOWorkspaceUntypedData
|
|
6522
6557
|
});
|
|
6523
|
-
var DTOWorkspaceUntypedDataCreatePayload =
|
|
6524
|
-
value:
|
|
6558
|
+
var DTOWorkspaceUntypedDataCreatePayload = z220.object({
|
|
6559
|
+
value: z220.unknown()
|
|
6525
6560
|
});
|
|
6526
|
-
var DTOWorkspaceUntypedDataUpdatePayload =
|
|
6527
|
-
value:
|
|
6561
|
+
var DTOWorkspaceUntypedDataUpdatePayload = z220.object({
|
|
6562
|
+
value: z220.unknown()
|
|
6528
6563
|
});
|
|
6529
6564
|
|
|
6530
6565
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
6531
|
-
var DTOUserDesignSystemsResponse =
|
|
6566
|
+
var DTOUserDesignSystemsResponse = z221.object({
|
|
6532
6567
|
designSystems: DTODesignSystem.array(),
|
|
6533
6568
|
workspaces: DTOWorkspace.array()
|
|
6534
6569
|
});
|
|
6535
6570
|
|
|
6536
6571
|
// src/api/dto/design-systems/version-room.ts
|
|
6537
|
-
import { z as
|
|
6538
|
-
var DTODesignSystemVersionRoom =
|
|
6539
|
-
id:
|
|
6572
|
+
import { z as z222 } from "zod";
|
|
6573
|
+
var DTODesignSystemVersionRoom = z222.object({
|
|
6574
|
+
id: z222.string()
|
|
6540
6575
|
});
|
|
6541
|
-
var DTODesignSystemVersionRoomResponse =
|
|
6576
|
+
var DTODesignSystemVersionRoomResponse = z222.object({
|
|
6542
6577
|
room: DTODesignSystemVersionRoom
|
|
6543
6578
|
});
|
|
6544
6579
|
|
|
6545
6580
|
// src/api/dto/design-systems/version.ts
|
|
6546
|
-
import { z as
|
|
6581
|
+
import { z as z235 } from "zod";
|
|
6547
6582
|
|
|
6548
6583
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
6549
|
-
import { z as
|
|
6584
|
+
import { z as z223 } from "zod";
|
|
6550
6585
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
6551
6586
|
id: true,
|
|
6552
6587
|
workspaceId: true,
|
|
@@ -6558,56 +6593,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
6558
6593
|
}).extend({
|
|
6559
6594
|
meta: ObjectMeta.partial().optional()
|
|
6560
6595
|
});
|
|
6561
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
6596
|
+
var DTODesignSystemUpdateAccessModeInput = z223.object({
|
|
6562
6597
|
accessMode: DesignSystemAccessMode,
|
|
6563
|
-
retain:
|
|
6564
|
-
userIds:
|
|
6565
|
-
inviteIds:
|
|
6598
|
+
retain: z223.object({
|
|
6599
|
+
userIds: z223.string().array(),
|
|
6600
|
+
inviteIds: z223.string().array()
|
|
6566
6601
|
}).optional()
|
|
6567
6602
|
});
|
|
6568
6603
|
|
|
6569
6604
|
// src/api/payloads/design-systems/version.ts
|
|
6570
|
-
import { z as
|
|
6571
|
-
var ObjectMeta2 =
|
|
6572
|
-
name:
|
|
6573
|
-
description:
|
|
6605
|
+
import { z as z224 } from "zod";
|
|
6606
|
+
var ObjectMeta2 = z224.object({
|
|
6607
|
+
name: z224.string().max(150).optional(),
|
|
6608
|
+
description: z224.string().max(2e3).optional()
|
|
6574
6609
|
});
|
|
6575
6610
|
function validateDesignSystemVersion(version) {
|
|
6576
6611
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
6577
6612
|
return urlCompliantRegex.test(version);
|
|
6578
6613
|
}
|
|
6579
|
-
var DTOCreateVersionInput =
|
|
6614
|
+
var DTOCreateVersionInput = z224.object({
|
|
6580
6615
|
meta: ObjectMeta2,
|
|
6581
|
-
version:
|
|
6616
|
+
version: z224.string().refine(validateDesignSystemVersion, {
|
|
6582
6617
|
message: "Invalid semantic versioning format"
|
|
6583
6618
|
}),
|
|
6584
|
-
changeLog:
|
|
6619
|
+
changeLog: z224.string().optional()
|
|
6585
6620
|
});
|
|
6586
|
-
var DTOUpdateVersionInput =
|
|
6621
|
+
var DTOUpdateVersionInput = z224.object({
|
|
6587
6622
|
meta: ObjectMeta2,
|
|
6588
|
-
version:
|
|
6623
|
+
version: z224.string(),
|
|
6589
6624
|
// required for PUT, but not editable
|
|
6590
|
-
changeLog:
|
|
6625
|
+
changeLog: z224.string()
|
|
6591
6626
|
});
|
|
6592
6627
|
|
|
6593
6628
|
// src/api/payloads/documentation/analytics.ts
|
|
6594
|
-
import { z as
|
|
6595
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
6596
|
-
referencePeriod:
|
|
6597
|
-
start:
|
|
6598
|
-
end:
|
|
6629
|
+
import { z as z225 } from "zod";
|
|
6630
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z225.object({
|
|
6631
|
+
referencePeriod: z225.object({
|
|
6632
|
+
start: z225.coerce.date(),
|
|
6633
|
+
end: z225.coerce.date().optional()
|
|
6599
6634
|
}),
|
|
6600
|
-
baselinePeriod:
|
|
6601
|
-
start:
|
|
6602
|
-
end:
|
|
6635
|
+
baselinePeriod: z225.object({
|
|
6636
|
+
start: z225.coerce.date(),
|
|
6637
|
+
end: z225.coerce.date().optional()
|
|
6603
6638
|
})
|
|
6604
6639
|
});
|
|
6605
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
6606
|
-
timeFrames:
|
|
6640
|
+
var DTODocumentationAnalyticsDiffPayload = z225.object({
|
|
6641
|
+
timeFrames: z225.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
6607
6642
|
});
|
|
6608
6643
|
|
|
6609
6644
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6610
|
-
import { z as
|
|
6645
|
+
import { z as z226 } from "zod";
|
|
6611
6646
|
|
|
6612
6647
|
// src/api/dto/documentation/block-definition.ts
|
|
6613
6648
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -6619,76 +6654,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
6619
6654
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
6620
6655
|
|
|
6621
6656
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6622
|
-
var DTOGetBlockDefinitionsOutput =
|
|
6623
|
-
definitions:
|
|
6657
|
+
var DTOGetBlockDefinitionsOutput = z226.object({
|
|
6658
|
+
definitions: z226.array(DTOPageBlockDefinition)
|
|
6624
6659
|
});
|
|
6625
6660
|
|
|
6626
6661
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
6627
|
-
import { z as
|
|
6628
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
6629
|
-
environment:
|
|
6662
|
+
import { z as z227 } from "zod";
|
|
6663
|
+
var DTODocumentationPublishTypeQueryParams = z227.object({
|
|
6664
|
+
environment: z227.enum(["Live", "Preview"])
|
|
6630
6665
|
});
|
|
6631
6666
|
|
|
6632
6667
|
// src/api/payloads/export/pipeline.ts
|
|
6633
|
-
import { z as
|
|
6668
|
+
import { z as z229 } from "zod";
|
|
6634
6669
|
|
|
6635
6670
|
// src/api/dto/export/exporter-property.ts
|
|
6636
|
-
import { z as
|
|
6637
|
-
var PrimitiveValue2 =
|
|
6638
|
-
var ArrayValue2 =
|
|
6639
|
-
var ObjectValue2 =
|
|
6671
|
+
import { z as z228 } from "zod";
|
|
6672
|
+
var PrimitiveValue2 = z228.number().or(z228.boolean()).or(z228.string());
|
|
6673
|
+
var ArrayValue2 = z228.array(z228.string());
|
|
6674
|
+
var ObjectValue2 = z228.record(z228.string());
|
|
6640
6675
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
6641
|
-
var DTOExporterPropertyType =
|
|
6642
|
-
var PropertyDefinitionBase2 =
|
|
6643
|
-
key:
|
|
6644
|
-
title:
|
|
6645
|
-
description:
|
|
6646
|
-
category:
|
|
6647
|
-
dependsOn:
|
|
6648
|
-
});
|
|
6649
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
6650
|
-
label:
|
|
6651
|
-
description:
|
|
6676
|
+
var DTOExporterPropertyType = z228.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
6677
|
+
var PropertyDefinitionBase2 = z228.object({
|
|
6678
|
+
key: z228.string(),
|
|
6679
|
+
title: z228.string(),
|
|
6680
|
+
description: z228.string(),
|
|
6681
|
+
category: z228.string().optional(),
|
|
6682
|
+
dependsOn: z228.record(z228.boolean()).optional()
|
|
6683
|
+
});
|
|
6684
|
+
var DTOExporterPropertyDefinitionEnumOption = z228.object({
|
|
6685
|
+
label: z228.string(),
|
|
6686
|
+
description: z228.string()
|
|
6652
6687
|
});
|
|
6653
6688
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
6654
|
-
type:
|
|
6655
|
-
options:
|
|
6656
|
-
default:
|
|
6689
|
+
type: z228.literal(DTOExporterPropertyType.Enum.Enum),
|
|
6690
|
+
options: z228.record(DTOExporterPropertyDefinitionEnumOption),
|
|
6691
|
+
default: z228.string()
|
|
6657
6692
|
});
|
|
6658
6693
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
6659
|
-
type:
|
|
6660
|
-
default:
|
|
6694
|
+
type: z228.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
6695
|
+
default: z228.boolean()
|
|
6661
6696
|
});
|
|
6662
6697
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
6663
|
-
type:
|
|
6664
|
-
default:
|
|
6665
|
-
isMultiline:
|
|
6698
|
+
type: z228.literal(DTOExporterPropertyType.Enum.String),
|
|
6699
|
+
default: z228.string(),
|
|
6700
|
+
isMultiline: z228.boolean().optional()
|
|
6666
6701
|
});
|
|
6667
6702
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
6668
|
-
type:
|
|
6669
|
-
default:
|
|
6703
|
+
type: z228.literal(DTOExporterPropertyType.Enum.Number),
|
|
6704
|
+
default: z228.number()
|
|
6670
6705
|
});
|
|
6671
6706
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
6672
|
-
type:
|
|
6707
|
+
type: z228.literal(DTOExporterPropertyType.Enum.Array),
|
|
6673
6708
|
default: ArrayValue2
|
|
6674
6709
|
});
|
|
6675
6710
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
6676
|
-
type:
|
|
6711
|
+
type: z228.literal(DTOExporterPropertyType.Enum.Object),
|
|
6677
6712
|
default: ObjectValue2,
|
|
6678
|
-
allowedKeys:
|
|
6679
|
-
options:
|
|
6680
|
-
type:
|
|
6713
|
+
allowedKeys: z228.object({
|
|
6714
|
+
options: z228.string().array(),
|
|
6715
|
+
type: z228.string()
|
|
6681
6716
|
}).optional(),
|
|
6682
|
-
allowedValues:
|
|
6683
|
-
type:
|
|
6717
|
+
allowedValues: z228.object({
|
|
6718
|
+
type: z228.string()
|
|
6684
6719
|
}).optional()
|
|
6685
6720
|
});
|
|
6686
6721
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
6687
|
-
type:
|
|
6688
|
-
language:
|
|
6689
|
-
default:
|
|
6722
|
+
type: z228.literal(DTOExporterPropertyType.Enum.Code),
|
|
6723
|
+
language: z228.string(),
|
|
6724
|
+
default: z228.string()
|
|
6690
6725
|
});
|
|
6691
|
-
var DTOExporterPropertyDefinition =
|
|
6726
|
+
var DTOExporterPropertyDefinition = z228.discriminatedUnion("type", [
|
|
6692
6727
|
DTOExporterPropertyDefinitionEnum,
|
|
6693
6728
|
DTOExporterPropertyDefinitionBoolean,
|
|
6694
6729
|
DTOExporterPropertyDefinitionString,
|
|
@@ -6697,84 +6732,84 @@ var DTOExporterPropertyDefinition = z227.discriminatedUnion("type", [
|
|
|
6697
6732
|
DTOExporterPropertyDefinitionObject,
|
|
6698
6733
|
DTOExporterPropertyDefinitionCode
|
|
6699
6734
|
]);
|
|
6700
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
6735
|
+
var DTOExporterPropertyDefinitionsResponse = z228.object({
|
|
6701
6736
|
properties: DTOExporterPropertyDefinition.array()
|
|
6702
6737
|
});
|
|
6703
|
-
var DTOExporterPropertyValueMap =
|
|
6738
|
+
var DTOExporterPropertyValueMap = z228.record(DTOExporterPropertyValue);
|
|
6704
6739
|
|
|
6705
6740
|
// src/api/payloads/export/pipeline.ts
|
|
6706
|
-
var GitDestinationOptions =
|
|
6707
|
-
branch:
|
|
6708
|
-
commitMessage:
|
|
6709
|
-
commitAuthorName:
|
|
6710
|
-
commitAuthorEmail:
|
|
6711
|
-
pullRequestTitle:
|
|
6712
|
-
pullRequestDescription:
|
|
6713
|
-
relativePath:
|
|
6714
|
-
purgeDirectory:
|
|
6715
|
-
});
|
|
6716
|
-
var DTOPipelineCreateBody =
|
|
6717
|
-
name:
|
|
6718
|
-
exporterId:
|
|
6719
|
-
designSystemId:
|
|
6720
|
-
isEnabled:
|
|
6741
|
+
var GitDestinationOptions = z229.object({
|
|
6742
|
+
branch: z229.string().min(1).nullish(),
|
|
6743
|
+
commitMessage: z229.string().min(1).nullish(),
|
|
6744
|
+
commitAuthorName: z229.string().min(1).nullish(),
|
|
6745
|
+
commitAuthorEmail: z229.string().email().nullish(),
|
|
6746
|
+
pullRequestTitle: z229.string().min(1).nullish(),
|
|
6747
|
+
pullRequestDescription: z229.string().min(1).nullish(),
|
|
6748
|
+
relativePath: z229.string().nullish(),
|
|
6749
|
+
purgeDirectory: z229.boolean().nullish()
|
|
6750
|
+
});
|
|
6751
|
+
var DTOPipelineCreateBody = z229.object({
|
|
6752
|
+
name: z229.string(),
|
|
6753
|
+
exporterId: z229.string(),
|
|
6754
|
+
designSystemId: z229.string(),
|
|
6755
|
+
isEnabled: z229.boolean(),
|
|
6721
6756
|
eventType: PipelineEventType,
|
|
6722
|
-
brandPersistentId:
|
|
6723
|
-
themePersistentId:
|
|
6724
|
-
themePersistentIds:
|
|
6757
|
+
brandPersistentId: z229.string().optional(),
|
|
6758
|
+
themePersistentId: z229.string().optional(),
|
|
6759
|
+
themePersistentIds: z229.string().array().optional(),
|
|
6725
6760
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6726
6761
|
destination: PipelineDestinationType.optional(),
|
|
6727
6762
|
gitQuery: GitObjectsQuery,
|
|
6728
|
-
destinations:
|
|
6763
|
+
destinations: z229.object({
|
|
6729
6764
|
s3: ExporterDestinationS3.nullish(),
|
|
6730
6765
|
azure: ExporterDestinationAzure.nullish(),
|
|
6731
6766
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6732
6767
|
github: ExporterDestinationGithub.nullish(),
|
|
6733
6768
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6734
6769
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6735
|
-
webhookUrl:
|
|
6770
|
+
webhookUrl: z229.string().nullish()
|
|
6736
6771
|
})
|
|
6737
6772
|
});
|
|
6738
|
-
var DTOPipelineUpdateBody =
|
|
6739
|
-
exporterId:
|
|
6740
|
-
name:
|
|
6741
|
-
isEnabled:
|
|
6773
|
+
var DTOPipelineUpdateBody = z229.object({
|
|
6774
|
+
exporterId: z229.string().optional(),
|
|
6775
|
+
name: z229.string().optional(),
|
|
6776
|
+
isEnabled: z229.boolean().optional(),
|
|
6742
6777
|
eventType: PipelineEventType.optional(),
|
|
6743
|
-
brandPersistentId:
|
|
6744
|
-
themePersistentId:
|
|
6745
|
-
themePersistentIds:
|
|
6778
|
+
brandPersistentId: z229.string().optional(),
|
|
6779
|
+
themePersistentId: z229.string().optional(),
|
|
6780
|
+
themePersistentIds: z229.string().array().optional(),
|
|
6746
6781
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6747
6782
|
destination: PipelineDestinationType.optional(),
|
|
6748
6783
|
gitQuery: GitObjectsQuery.optional(),
|
|
6749
|
-
destinations:
|
|
6784
|
+
destinations: z229.object({
|
|
6750
6785
|
s3: ExporterDestinationS3.nullish(),
|
|
6751
6786
|
azure: ExporterDestinationAzure.nullish(),
|
|
6752
6787
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6753
6788
|
github: ExporterDestinationGithub.nullish(),
|
|
6754
6789
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6755
6790
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6756
|
-
webhookUrl:
|
|
6791
|
+
webhookUrl: z229.string().nullish()
|
|
6757
6792
|
}).optional(),
|
|
6758
6793
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
6759
6794
|
});
|
|
6760
|
-
var DTOPipelineTriggerBody =
|
|
6761
|
-
designSystemVersionId:
|
|
6795
|
+
var DTOPipelineTriggerBody = z229.object({
|
|
6796
|
+
designSystemVersionId: z229.string()
|
|
6762
6797
|
});
|
|
6763
6798
|
|
|
6764
6799
|
// src/api/payloads/liveblocks/auth.ts
|
|
6765
|
-
import { z as
|
|
6766
|
-
var DTOLiveblocksAuthRequest =
|
|
6767
|
-
room:
|
|
6800
|
+
import { z as z230 } from "zod";
|
|
6801
|
+
var DTOLiveblocksAuthRequest = z230.object({
|
|
6802
|
+
room: z230.string().optional()
|
|
6768
6803
|
});
|
|
6769
6804
|
|
|
6770
6805
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
6771
|
-
import { z as
|
|
6772
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
6806
|
+
import { z as z231 } from "zod";
|
|
6807
|
+
var DTOUpdateUserNotificationSettingsPayload = z231.object({
|
|
6773
6808
|
notificationSettings: UserNotificationSettings
|
|
6774
6809
|
});
|
|
6775
|
-
var DTOUserNotificationSettingsResponse =
|
|
6776
|
-
userId:
|
|
6777
|
-
workspaceId:
|
|
6810
|
+
var DTOUserNotificationSettingsResponse = z231.object({
|
|
6811
|
+
userId: z231.string(),
|
|
6812
|
+
workspaceId: z231.string(),
|
|
6778
6813
|
notificationSettings: UserNotificationSettings
|
|
6779
6814
|
});
|
|
6780
6815
|
|
|
@@ -6782,13 +6817,13 @@ var DTOUserNotificationSettingsResponse = z230.object({
|
|
|
6782
6817
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
6783
6818
|
|
|
6784
6819
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
6785
|
-
import { z as
|
|
6786
|
-
var DTOTransferOwnershipPayload =
|
|
6787
|
-
newOwnerId:
|
|
6820
|
+
import { z as z232 } from "zod";
|
|
6821
|
+
var DTOTransferOwnershipPayload = z232.object({
|
|
6822
|
+
newOwnerId: z232.string()
|
|
6788
6823
|
});
|
|
6789
6824
|
|
|
6790
6825
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
6791
|
-
import { z as
|
|
6826
|
+
import { z as z233 } from "zod";
|
|
6792
6827
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
6793
6828
|
function validateSsoPayload(ssoPayload) {
|
|
6794
6829
|
const keys = [];
|
|
@@ -6811,21 +6846,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
6811
6846
|
keys
|
|
6812
6847
|
};
|
|
6813
6848
|
}
|
|
6814
|
-
var NpmRegistryInput =
|
|
6815
|
-
enabledScopes:
|
|
6816
|
-
customRegistryUrl:
|
|
6817
|
-
bypassProxy:
|
|
6818
|
-
npmProxyRegistryConfigId:
|
|
6819
|
-
npmProxyVersion:
|
|
6820
|
-
registryType:
|
|
6821
|
-
authType:
|
|
6822
|
-
authHeaderName:
|
|
6823
|
-
authHeaderValue:
|
|
6824
|
-
accessToken:
|
|
6825
|
-
username:
|
|
6826
|
-
password:
|
|
6827
|
-
});
|
|
6828
|
-
var WorkspaceConfigurationPayload =
|
|
6849
|
+
var NpmRegistryInput = z233.object({
|
|
6850
|
+
enabledScopes: z233.array(z233.string()),
|
|
6851
|
+
customRegistryUrl: z233.string().optional(),
|
|
6852
|
+
bypassProxy: z233.boolean().optional(),
|
|
6853
|
+
npmProxyRegistryConfigId: z233.string().optional(),
|
|
6854
|
+
npmProxyVersion: z233.number().optional(),
|
|
6855
|
+
registryType: z233.string(),
|
|
6856
|
+
authType: z233.string(),
|
|
6857
|
+
authHeaderName: z233.string(),
|
|
6858
|
+
authHeaderValue: z233.string(),
|
|
6859
|
+
accessToken: z233.string(),
|
|
6860
|
+
username: z233.string(),
|
|
6861
|
+
password: z233.string()
|
|
6862
|
+
});
|
|
6863
|
+
var WorkspaceConfigurationPayload = z233.object({
|
|
6829
6864
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
6830
6865
|
sso: SsoProvider.partial().optional(),
|
|
6831
6866
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -6833,107 +6868,107 @@ var WorkspaceConfigurationPayload = z232.object({
|
|
|
6833
6868
|
});
|
|
6834
6869
|
|
|
6835
6870
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
6836
|
-
import { z as
|
|
6837
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
6871
|
+
import { z as z234 } from "zod";
|
|
6872
|
+
var DTOWorkspaceIntegrationOauthInput = z234.object({
|
|
6838
6873
|
type: IntegrationType
|
|
6839
6874
|
});
|
|
6840
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
6875
|
+
var DTOWorkspaceIntegrationPATInput = z234.object({
|
|
6841
6876
|
type: IntegrationType,
|
|
6842
6877
|
token: IntegrationToken
|
|
6843
6878
|
});
|
|
6844
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
6845
|
-
organization:
|
|
6879
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z234.object({
|
|
6880
|
+
organization: z234.string().optional(),
|
|
6846
6881
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
6847
|
-
project:
|
|
6882
|
+
project: z234.string().optional(),
|
|
6848
6883
|
// Only for Bitbucket and Azure
|
|
6849
|
-
repository:
|
|
6884
|
+
repository: z234.string().optional(),
|
|
6850
6885
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
6851
|
-
branch:
|
|
6886
|
+
branch: z234.string().optional(),
|
|
6852
6887
|
// For all providers, useful for PR creations.
|
|
6853
|
-
user:
|
|
6888
|
+
user: z234.string().optional()
|
|
6854
6889
|
// Only for Gitlab User Repositories
|
|
6855
6890
|
});
|
|
6856
6891
|
|
|
6857
6892
|
// src/api/dto/design-systems/version.ts
|
|
6858
|
-
var DTODesignSystemVersion =
|
|
6859
|
-
id:
|
|
6860
|
-
createdAt:
|
|
6893
|
+
var DTODesignSystemVersion = z235.object({
|
|
6894
|
+
id: z235.string(),
|
|
6895
|
+
createdAt: z235.coerce.date(),
|
|
6861
6896
|
meta: ObjectMeta,
|
|
6862
|
-
version:
|
|
6863
|
-
isReadonly:
|
|
6864
|
-
changeLog:
|
|
6865
|
-
designSystemId:
|
|
6897
|
+
version: z235.string(),
|
|
6898
|
+
isReadonly: z235.boolean(),
|
|
6899
|
+
changeLog: z235.string(),
|
|
6900
|
+
designSystemId: z235.string()
|
|
6866
6901
|
});
|
|
6867
|
-
var DTODesignSystemVersionsListResponse =
|
|
6868
|
-
designSystemVersions:
|
|
6902
|
+
var DTODesignSystemVersionsListResponse = z235.object({
|
|
6903
|
+
designSystemVersions: z235.array(DTODesignSystemVersion)
|
|
6869
6904
|
});
|
|
6870
|
-
var DTODesignSystemVersionGetResponse =
|
|
6905
|
+
var DTODesignSystemVersionGetResponse = z235.object({
|
|
6871
6906
|
designSystemVersion: DTODesignSystemVersion
|
|
6872
6907
|
});
|
|
6873
|
-
var DTODesignSystemVersionCreationResponse =
|
|
6908
|
+
var DTODesignSystemVersionCreationResponse = z235.object({
|
|
6874
6909
|
meta: ObjectMeta,
|
|
6875
|
-
version:
|
|
6876
|
-
changeLog:
|
|
6877
|
-
isReadOnly:
|
|
6878
|
-
designSystemId:
|
|
6879
|
-
jobId:
|
|
6880
|
-
});
|
|
6881
|
-
var VersionSQSPayload =
|
|
6882
|
-
jobId:
|
|
6883
|
-
designSystemId:
|
|
6910
|
+
version: z235.string(),
|
|
6911
|
+
changeLog: z235.string(),
|
|
6912
|
+
isReadOnly: z235.boolean(),
|
|
6913
|
+
designSystemId: z235.string(),
|
|
6914
|
+
jobId: z235.string()
|
|
6915
|
+
});
|
|
6916
|
+
var VersionSQSPayload = z235.object({
|
|
6917
|
+
jobId: z235.string(),
|
|
6918
|
+
designSystemId: z235.string(),
|
|
6884
6919
|
input: DTOCreateVersionInput
|
|
6885
6920
|
});
|
|
6886
|
-
var DTODesignSystemVersionJobsResponse =
|
|
6887
|
-
jobs:
|
|
6921
|
+
var DTODesignSystemVersionJobsResponse = z235.object({
|
|
6922
|
+
jobs: z235.array(VersionCreationJob)
|
|
6888
6923
|
});
|
|
6889
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
6924
|
+
var DTODesignSystemVersionJobStatusResponse = z235.object({
|
|
6890
6925
|
job: VersionCreationJob
|
|
6891
6926
|
});
|
|
6892
6927
|
|
|
6893
6928
|
// src/api/dto/design-systems/view.ts
|
|
6894
|
-
import { z as
|
|
6895
|
-
var DTOElementViewColumnSharedAttributes =
|
|
6896
|
-
id:
|
|
6897
|
-
persistentId:
|
|
6898
|
-
width:
|
|
6929
|
+
import { z as z236 } from "zod";
|
|
6930
|
+
var DTOElementViewColumnSharedAttributes = z236.object({
|
|
6931
|
+
id: z236.string(),
|
|
6932
|
+
persistentId: z236.string(),
|
|
6933
|
+
width: z236.number()
|
|
6899
6934
|
});
|
|
6900
6935
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6901
|
-
type:
|
|
6936
|
+
type: z236.literal("BaseProperty"),
|
|
6902
6937
|
basePropertyType: ElementViewBaseColumnType
|
|
6903
6938
|
});
|
|
6904
6939
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6905
|
-
type:
|
|
6906
|
-
propertyDefinitionId:
|
|
6940
|
+
type: z236.literal("PropertyDefinition"),
|
|
6941
|
+
propertyDefinitionId: z236.string()
|
|
6907
6942
|
});
|
|
6908
6943
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6909
|
-
type:
|
|
6910
|
-
themeId:
|
|
6944
|
+
type: z236.literal("Theme"),
|
|
6945
|
+
themeId: z236.string()
|
|
6911
6946
|
});
|
|
6912
|
-
var DTOElementViewColumn =
|
|
6947
|
+
var DTOElementViewColumn = z236.discriminatedUnion("type", [
|
|
6913
6948
|
DTOElementViewBasePropertyColumn,
|
|
6914
6949
|
DTOElementViewPropertyDefinitionColumn,
|
|
6915
6950
|
DTOElementViewThemeColumn
|
|
6916
6951
|
]);
|
|
6917
|
-
var DTOElementView =
|
|
6952
|
+
var DTOElementView = z236.object({
|
|
6918
6953
|
meta: ObjectMeta,
|
|
6919
|
-
persistentId:
|
|
6954
|
+
persistentId: z236.string(),
|
|
6920
6955
|
targetElementType: ElementPropertyTargetType,
|
|
6921
|
-
id:
|
|
6922
|
-
isDefault:
|
|
6923
|
-
columns:
|
|
6956
|
+
id: z236.string(),
|
|
6957
|
+
isDefault: z236.boolean(),
|
|
6958
|
+
columns: z236.array(DTOElementViewColumn)
|
|
6924
6959
|
});
|
|
6925
|
-
var DTOElementViewsListResponse =
|
|
6926
|
-
elementDataViews:
|
|
6960
|
+
var DTOElementViewsListResponse = z236.object({
|
|
6961
|
+
elementDataViews: z236.array(DTOElementView)
|
|
6927
6962
|
});
|
|
6928
6963
|
|
|
6929
6964
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6930
|
-
var DTOAppBootstrapDataQuery =
|
|
6931
|
-
preferredWorkspaceId:
|
|
6932
|
-
preferredDesignSystemId:
|
|
6933
|
-
preferredVersionId:
|
|
6934
|
-
preferredBrandId:
|
|
6965
|
+
var DTOAppBootstrapDataQuery = z237.object({
|
|
6966
|
+
preferredWorkspaceId: z237.string().optional(),
|
|
6967
|
+
preferredDesignSystemId: z237.string().optional(),
|
|
6968
|
+
preferredVersionId: z237.string().optional(),
|
|
6969
|
+
preferredBrandId: z237.string().optional()
|
|
6935
6970
|
});
|
|
6936
|
-
var DTOAppBootstrapDataResponse =
|
|
6971
|
+
var DTOAppBootstrapDataResponse = z237.object({
|
|
6937
6972
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6938
6973
|
designSystem: DTODesignSystem.optional(),
|
|
6939
6974
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6941,92 +6976,92 @@ var DTOAppBootstrapDataResponse = z236.object({
|
|
|
6941
6976
|
});
|
|
6942
6977
|
|
|
6943
6978
|
// src/api/dto/collections/token-collection.ts
|
|
6944
|
-
import { z as
|
|
6945
|
-
var DTOTokenCollection =
|
|
6946
|
-
id:
|
|
6947
|
-
persistentId:
|
|
6948
|
-
designSystemVersionId:
|
|
6979
|
+
import { z as z238 } from "zod";
|
|
6980
|
+
var DTOTokenCollection = z238.object({
|
|
6981
|
+
id: z238.string(),
|
|
6982
|
+
persistentId: z238.string(),
|
|
6983
|
+
designSystemVersionId: z238.string(),
|
|
6949
6984
|
meta: ObjectMeta,
|
|
6950
6985
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6951
|
-
elementPropertyOptionId:
|
|
6952
|
-
createdAt:
|
|
6953
|
-
updatedAt:
|
|
6986
|
+
elementPropertyOptionId: z238.string(),
|
|
6987
|
+
createdAt: z238.coerce.date(),
|
|
6988
|
+
updatedAt: z238.coerce.date(),
|
|
6954
6989
|
origin: CollectionOrigin.optional()
|
|
6955
6990
|
});
|
|
6956
|
-
var DTOTokenCollectionsListReponse =
|
|
6991
|
+
var DTOTokenCollectionsListReponse = z238.object({
|
|
6957
6992
|
collections: DTOTokenCollection.array()
|
|
6958
6993
|
});
|
|
6959
6994
|
|
|
6960
6995
|
// src/api/dto/design-tokens/design-token.ts
|
|
6961
|
-
import { z as
|
|
6996
|
+
import { z as z239 } from "zod";
|
|
6962
6997
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6963
|
-
|
|
6964
|
-
id:
|
|
6965
|
-
persistentId:
|
|
6966
|
-
designSystemVersionId:
|
|
6998
|
+
z239.object({
|
|
6999
|
+
id: z239.string(),
|
|
7000
|
+
persistentId: z239.string(),
|
|
7001
|
+
designSystemVersionId: z239.string(),
|
|
6967
7002
|
meta: ObjectMeta,
|
|
6968
7003
|
originStyle: DesignTokenOrigin.optional(),
|
|
6969
|
-
brandId:
|
|
6970
|
-
collectionId:
|
|
6971
|
-
updatedAt:
|
|
7004
|
+
brandId: z239.string(),
|
|
7005
|
+
collectionId: z239.string().optional(),
|
|
7006
|
+
updatedAt: z239.coerce.date()
|
|
6972
7007
|
})
|
|
6973
7008
|
);
|
|
6974
|
-
var DTODesignTokenListResponse =
|
|
7009
|
+
var DTODesignTokenListResponse = z239.object({
|
|
6975
7010
|
tokens: DTODesignToken.array()
|
|
6976
7011
|
});
|
|
6977
|
-
var DTODesignTokenResponse =
|
|
7012
|
+
var DTODesignTokenResponse = z239.object({
|
|
6978
7013
|
token: DTODesignToken
|
|
6979
7014
|
});
|
|
6980
|
-
var DTODesignTokenGroup =
|
|
6981
|
-
id:
|
|
7015
|
+
var DTODesignTokenGroup = z239.object({
|
|
7016
|
+
id: z239.string(),
|
|
6982
7017
|
tokenType: DesignTokenType,
|
|
6983
|
-
persistentId:
|
|
6984
|
-
isRoot:
|
|
6985
|
-
brandId:
|
|
7018
|
+
persistentId: z239.string(),
|
|
7019
|
+
isRoot: z239.boolean(),
|
|
7020
|
+
brandId: z239.string(),
|
|
6986
7021
|
meta: ObjectMeta,
|
|
6987
|
-
childrenIds:
|
|
7022
|
+
childrenIds: z239.string().array()
|
|
6988
7023
|
});
|
|
6989
|
-
var DTODesignTokenGroupListResponse =
|
|
7024
|
+
var DTODesignTokenGroupListResponse = z239.object({
|
|
6990
7025
|
groups: DTODesignTokenGroup.array()
|
|
6991
7026
|
});
|
|
6992
|
-
var DTODesignTokenGroupResponse =
|
|
7027
|
+
var DTODesignTokenGroupResponse = z239.object({
|
|
6993
7028
|
group: DTODesignTokenGroup
|
|
6994
7029
|
});
|
|
6995
7030
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6996
|
-
|
|
6997
|
-
persistentId:
|
|
7031
|
+
z239.object({
|
|
7032
|
+
persistentId: z239.string(),
|
|
6998
7033
|
meta: ObjectMeta,
|
|
6999
|
-
brandId:
|
|
7000
|
-
groupPersistentId:
|
|
7034
|
+
brandId: z239.string(),
|
|
7035
|
+
groupPersistentId: z239.string().optional()
|
|
7001
7036
|
})
|
|
7002
7037
|
);
|
|
7003
|
-
var DTODesignTokenGroupCreatePayload =
|
|
7004
|
-
persistentId:
|
|
7038
|
+
var DTODesignTokenGroupCreatePayload = z239.object({
|
|
7039
|
+
persistentId: z239.string(),
|
|
7005
7040
|
meta: ObjectMeta,
|
|
7006
|
-
brandId:
|
|
7007
|
-
parentId:
|
|
7041
|
+
brandId: z239.string(),
|
|
7042
|
+
parentId: z239.string().optional(),
|
|
7008
7043
|
tokenType: DesignTokenType,
|
|
7009
|
-
childrenIds:
|
|
7044
|
+
childrenIds: z239.string().array()
|
|
7010
7045
|
});
|
|
7011
7046
|
|
|
7012
7047
|
// src/api/dto/documentation/analytics-v2.ts
|
|
7013
|
-
import { z as
|
|
7014
|
-
var DTODocumentationAnalyticsTimeFrame =
|
|
7015
|
-
start:
|
|
7016
|
-
end:
|
|
7048
|
+
import { z as z240 } from "zod";
|
|
7049
|
+
var DTODocumentationAnalyticsTimeFrame = z240.object({
|
|
7050
|
+
start: z240.coerce.date(),
|
|
7051
|
+
end: z240.coerce.date().optional()
|
|
7017
7052
|
});
|
|
7018
|
-
var DTOPublishedDocVisitData =
|
|
7019
|
-
timestamp:
|
|
7020
|
-
versionId:
|
|
7021
|
-
locale:
|
|
7022
|
-
visits:
|
|
7023
|
-
sessions:
|
|
7053
|
+
var DTOPublishedDocVisitData = z240.object({
|
|
7054
|
+
timestamp: z240.coerce.date(),
|
|
7055
|
+
versionId: z240.string(),
|
|
7056
|
+
locale: z240.string().optional(),
|
|
7057
|
+
visits: z240.number(),
|
|
7058
|
+
sessions: z240.number()
|
|
7024
7059
|
});
|
|
7025
7060
|
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
7026
|
-
pagePersistentId:
|
|
7061
|
+
pagePersistentId: z240.string()
|
|
7027
7062
|
});
|
|
7028
|
-
var DTOPublishedDocVisitHeatMapDay =
|
|
7029
|
-
var DTOPublishedDocVisitHeatMapWeek =
|
|
7063
|
+
var DTOPublishedDocVisitHeatMapDay = z240.number().array().length(12);
|
|
7064
|
+
var DTOPublishedDocVisitHeatMapWeek = z240.object({
|
|
7030
7065
|
/**
|
|
7031
7066
|
* For which timeframe it was calculated
|
|
7032
7067
|
*/
|
|
@@ -7039,65 +7074,65 @@ var DTOPublishedDocVisitHeatMapWeek = z239.object({
|
|
|
7039
7074
|
sat: DTOPublishedDocVisitHeatMapDay,
|
|
7040
7075
|
sun: DTOPublishedDocVisitHeatMapDay
|
|
7041
7076
|
});
|
|
7042
|
-
var DTOPublishedDocAnalyticsComparisonData =
|
|
7077
|
+
var DTOPublishedDocAnalyticsComparisonData = z240.object({
|
|
7043
7078
|
/**
|
|
7044
7079
|
* For which timeframe it was calculated
|
|
7045
7080
|
*/
|
|
7046
7081
|
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
7047
|
-
priorVisitCount:
|
|
7048
|
-
priorSessionCount:
|
|
7049
|
-
currentVisitCount:
|
|
7050
|
-
currentSessionCount:
|
|
7082
|
+
priorVisitCount: z240.number(),
|
|
7083
|
+
priorSessionCount: z240.number(),
|
|
7084
|
+
currentVisitCount: z240.number(),
|
|
7085
|
+
currentSessionCount: z240.number()
|
|
7051
7086
|
});
|
|
7052
7087
|
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
7053
|
-
pagePersistentId:
|
|
7088
|
+
pagePersistentId: z240.string()
|
|
7054
7089
|
});
|
|
7055
|
-
var DTODocumentationPageAnalyticsResponse =
|
|
7090
|
+
var DTODocumentationPageAnalyticsResponse = z240.object({
|
|
7056
7091
|
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
7057
7092
|
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
7058
7093
|
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
7059
7094
|
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
7060
7095
|
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
7061
7096
|
});
|
|
7062
|
-
var DTODocumentationAnalyticsRequest =
|
|
7063
|
-
timeFrames:
|
|
7097
|
+
var DTODocumentationAnalyticsRequest = z240.object({
|
|
7098
|
+
timeFrames: z240.array(DTODocumentationAnalyticsTimeFrame)
|
|
7064
7099
|
});
|
|
7065
7100
|
|
|
7066
7101
|
// src/api/dto/documentation/analytics.ts
|
|
7067
|
-
import { z as
|
|
7068
|
-
var DTODocumentationPageAnalyticsDifference =
|
|
7069
|
-
startDate:
|
|
7070
|
-
endDate:
|
|
7071
|
-
currentVisitCount:
|
|
7072
|
-
currentSessionCount:
|
|
7073
|
-
priorVisitCount:
|
|
7074
|
-
priorSessionCount:
|
|
7102
|
+
import { z as z241 } from "zod";
|
|
7103
|
+
var DTODocumentationPageAnalyticsDifference = z241.object({
|
|
7104
|
+
startDate: z241.coerce.date(),
|
|
7105
|
+
endDate: z241.coerce.date().optional(),
|
|
7106
|
+
currentVisitCount: z241.number(),
|
|
7107
|
+
currentSessionCount: z241.number(),
|
|
7108
|
+
priorVisitCount: z241.number(),
|
|
7109
|
+
priorSessionCount: z241.number()
|
|
7075
7110
|
});
|
|
7076
|
-
var DTODocumentationPageIntervalDifferenceResponse =
|
|
7077
|
-
differences:
|
|
7111
|
+
var DTODocumentationPageIntervalDifferenceResponse = z241.object({
|
|
7112
|
+
differences: z241.array(DTODocumentationPageAnalyticsDifference)
|
|
7078
7113
|
});
|
|
7079
7114
|
|
|
7080
7115
|
// src/api/dto/documentation/anchor.ts
|
|
7081
|
-
import { z as
|
|
7116
|
+
import { z as z242 } from "zod";
|
|
7082
7117
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
7083
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
7084
|
-
anchors:
|
|
7118
|
+
var DTOGetDocumentationPageAnchorsResponse = z242.object({
|
|
7119
|
+
anchors: z242.array(DTODocumentationPageAnchor)
|
|
7085
7120
|
});
|
|
7086
7121
|
|
|
7087
7122
|
// src/api/dto/documentation/approvals.ts
|
|
7088
|
-
import { z as
|
|
7089
|
-
var DTODocumentationPageApprovalState =
|
|
7123
|
+
import { z as z243 } from "zod";
|
|
7124
|
+
var DTODocumentationPageApprovalState = z243.object({
|
|
7090
7125
|
approvalState: DocumentationPageApprovalState,
|
|
7091
|
-
pagePersistentId:
|
|
7092
|
-
updatedByUserId:
|
|
7093
|
-
designSystemVersionId:
|
|
7094
|
-
updatedAt:
|
|
7095
|
-
createdAt:
|
|
7096
|
-
});
|
|
7097
|
-
var DTODocumentationGroupApprovalState =
|
|
7098
|
-
persistentId:
|
|
7099
|
-
groupPersistentId:
|
|
7100
|
-
designSystemVersionId:
|
|
7126
|
+
pagePersistentId: z243.string(),
|
|
7127
|
+
updatedByUserId: z243.string(),
|
|
7128
|
+
designSystemVersionId: z243.string(),
|
|
7129
|
+
updatedAt: z243.coerce.date(),
|
|
7130
|
+
createdAt: z243.coerce.date()
|
|
7131
|
+
});
|
|
7132
|
+
var DTODocumentationGroupApprovalState = z243.object({
|
|
7133
|
+
persistentId: z243.string(),
|
|
7134
|
+
groupPersistentId: z243.string(),
|
|
7135
|
+
designSystemVersionId: z243.string(),
|
|
7101
7136
|
approvalState: DocumentationPageApprovalState
|
|
7102
7137
|
});
|
|
7103
7138
|
|
|
@@ -7105,68 +7140,68 @@ var DTODocumentationGroupApprovalState = z242.object({
|
|
|
7105
7140
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
7106
7141
|
|
|
7107
7142
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7108
|
-
import { z as
|
|
7143
|
+
import { z as z248 } from "zod";
|
|
7109
7144
|
|
|
7110
7145
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7111
|
-
import { z as
|
|
7146
|
+
import { z as z247 } from "zod";
|
|
7112
7147
|
|
|
7113
7148
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7114
|
-
import { z as
|
|
7149
|
+
import { z as z245 } from "zod";
|
|
7115
7150
|
|
|
7116
7151
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
7117
|
-
import { z as
|
|
7152
|
+
import { z as z244 } from "zod";
|
|
7118
7153
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
7119
|
-
var DTODocumentationItemConfigurationV2 =
|
|
7120
|
-
showSidebar:
|
|
7121
|
-
isPrivate:
|
|
7122
|
-
isHidden:
|
|
7154
|
+
var DTODocumentationItemConfigurationV2 = z244.object({
|
|
7155
|
+
showSidebar: z244.boolean(),
|
|
7156
|
+
isPrivate: z244.boolean(),
|
|
7157
|
+
isHidden: z244.boolean(),
|
|
7123
7158
|
header: DTODocumentationItemHeaderV2
|
|
7124
7159
|
});
|
|
7125
7160
|
|
|
7126
7161
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7127
|
-
var DTODocumentationDraftChangeType =
|
|
7128
|
-
var DTODocumentationDraftStateCreated =
|
|
7129
|
-
changeType:
|
|
7130
|
-
});
|
|
7131
|
-
var DTODocumentationDraftStateUpdated =
|
|
7132
|
-
changeType:
|
|
7133
|
-
changes:
|
|
7134
|
-
previousTitle:
|
|
7162
|
+
var DTODocumentationDraftChangeType = z245.enum(["Created", "Updated", "Deleted"]);
|
|
7163
|
+
var DTODocumentationDraftStateCreated = z245.object({
|
|
7164
|
+
changeType: z245.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
7165
|
+
});
|
|
7166
|
+
var DTODocumentationDraftStateUpdated = z245.object({
|
|
7167
|
+
changeType: z245.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
7168
|
+
changes: z245.object({
|
|
7169
|
+
previousTitle: z245.string().optional(),
|
|
7135
7170
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
7136
|
-
previousContentHash:
|
|
7171
|
+
previousContentHash: z245.string().optional()
|
|
7137
7172
|
})
|
|
7138
7173
|
});
|
|
7139
|
-
var DTODocumentationDraftStateDeleted =
|
|
7140
|
-
changeType:
|
|
7141
|
-
deletedAt:
|
|
7142
|
-
deletedByUserId:
|
|
7174
|
+
var DTODocumentationDraftStateDeleted = z245.object({
|
|
7175
|
+
changeType: z245.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
7176
|
+
deletedAt: z245.coerce.date(),
|
|
7177
|
+
deletedByUserId: z245.string()
|
|
7143
7178
|
});
|
|
7144
|
-
var DTODocumentationDraftState =
|
|
7179
|
+
var DTODocumentationDraftState = z245.discriminatedUnion("changeType", [
|
|
7145
7180
|
DTODocumentationDraftStateCreated,
|
|
7146
7181
|
DTODocumentationDraftStateUpdated,
|
|
7147
7182
|
DTODocumentationDraftStateDeleted
|
|
7148
7183
|
]);
|
|
7149
7184
|
|
|
7150
7185
|
// src/api/dto/elements/documentation/metadata.ts
|
|
7151
|
-
import { z as
|
|
7152
|
-
var DTODocumentationPublishMetadata =
|
|
7153
|
-
lastPublishedByUserId:
|
|
7154
|
-
lastPublishedAt:
|
|
7186
|
+
import { z as z246 } from "zod";
|
|
7187
|
+
var DTODocumentationPublishMetadata = z246.object({
|
|
7188
|
+
lastPublishedByUserId: z246.string(),
|
|
7189
|
+
lastPublishedAt: z246.coerce.date()
|
|
7155
7190
|
});
|
|
7156
7191
|
|
|
7157
7192
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7158
|
-
var DTODocumentationPageV2 =
|
|
7159
|
-
id:
|
|
7160
|
-
persistentId:
|
|
7161
|
-
designSystemVersionId:
|
|
7162
|
-
title:
|
|
7193
|
+
var DTODocumentationPageV2 = z247.object({
|
|
7194
|
+
id: z247.string(),
|
|
7195
|
+
persistentId: z247.string(),
|
|
7196
|
+
designSystemVersionId: z247.string(),
|
|
7197
|
+
title: z247.string(),
|
|
7163
7198
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7164
|
-
shortPersistentId:
|
|
7165
|
-
slug:
|
|
7166
|
-
userSlug:
|
|
7167
|
-
createdAt:
|
|
7168
|
-
updatedAt:
|
|
7169
|
-
path:
|
|
7199
|
+
shortPersistentId: z247.string(),
|
|
7200
|
+
slug: z247.string().optional(),
|
|
7201
|
+
userSlug: z247.string().optional(),
|
|
7202
|
+
createdAt: z247.coerce.date(),
|
|
7203
|
+
updatedAt: z247.coerce.date(),
|
|
7204
|
+
path: z247.string(),
|
|
7170
7205
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7171
7206
|
draftState: DTODocumentationDraftState.optional(),
|
|
7172
7207
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -7174,267 +7209,267 @@ var DTODocumentationPageV2 = z246.object({
|
|
|
7174
7209
|
/** Defines the approval state of the documentation page */
|
|
7175
7210
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
7176
7211
|
/** Id of the page document room */
|
|
7177
|
-
liveblocksRoomId:
|
|
7212
|
+
liveblocksRoomId: z247.string().optional(),
|
|
7178
7213
|
// Backward compatibility
|
|
7179
|
-
type:
|
|
7214
|
+
type: z247.literal("Page")
|
|
7180
7215
|
});
|
|
7181
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7216
|
+
var DTOCreateDocumentationPageInputV2 = z247.object({
|
|
7182
7217
|
// Identifier
|
|
7183
|
-
persistentId:
|
|
7218
|
+
persistentId: z247.string(),
|
|
7184
7219
|
// Page properties
|
|
7185
|
-
title:
|
|
7220
|
+
title: z247.string(),
|
|
7186
7221
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7187
7222
|
// Page placement properties
|
|
7188
|
-
parentPersistentId:
|
|
7189
|
-
afterPersistentId:
|
|
7223
|
+
parentPersistentId: z247.string(),
|
|
7224
|
+
afterPersistentId: z247.string().nullish()
|
|
7190
7225
|
});
|
|
7191
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7226
|
+
var DTOUpdateDocumentationPageInputV2 = z247.object({
|
|
7192
7227
|
// Identifier of the page to update
|
|
7193
|
-
id:
|
|
7228
|
+
id: z247.string(),
|
|
7194
7229
|
// Page properties
|
|
7195
|
-
title:
|
|
7230
|
+
title: z247.string().optional(),
|
|
7196
7231
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7197
7232
|
});
|
|
7198
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7233
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z247.object({
|
|
7199
7234
|
// Identifier of the page to update
|
|
7200
|
-
id:
|
|
7235
|
+
id: z247.string(),
|
|
7201
7236
|
// Page properties
|
|
7202
|
-
documentItems:
|
|
7237
|
+
documentItems: z247.array(DocumentationPageContentItem)
|
|
7203
7238
|
});
|
|
7204
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7239
|
+
var DTOMoveDocumentationPageInputV2 = z247.object({
|
|
7205
7240
|
// Identifier of the group to update
|
|
7206
|
-
id:
|
|
7241
|
+
id: z247.string(),
|
|
7207
7242
|
// Page placement properties
|
|
7208
|
-
parentPersistentId:
|
|
7209
|
-
afterPersistentId:
|
|
7243
|
+
parentPersistentId: z247.string(),
|
|
7244
|
+
afterPersistentId: z247.string().nullish()
|
|
7210
7245
|
});
|
|
7211
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7246
|
+
var DTODuplicateDocumentationPageInputV2 = z247.object({
|
|
7212
7247
|
// Identifier of the page to duplicate from
|
|
7213
|
-
id:
|
|
7248
|
+
id: z247.string(),
|
|
7214
7249
|
// New page persistent id
|
|
7215
|
-
persistentId:
|
|
7250
|
+
persistentId: z247.string(),
|
|
7216
7251
|
// Page placement properties
|
|
7217
|
-
parentPersistentId:
|
|
7218
|
-
afterPersistentId:
|
|
7252
|
+
parentPersistentId: z247.string(),
|
|
7253
|
+
afterPersistentId: z247.string().nullish()
|
|
7219
7254
|
});
|
|
7220
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7255
|
+
var DTODeleteDocumentationPageInputV2 = z247.object({
|
|
7221
7256
|
// Identifier
|
|
7222
|
-
id:
|
|
7257
|
+
id: z247.string()
|
|
7223
7258
|
});
|
|
7224
|
-
var DTORestoreDocumentationPageInput =
|
|
7225
|
-
persistentId:
|
|
7226
|
-
snapshotId:
|
|
7259
|
+
var DTORestoreDocumentationPageInput = z247.object({
|
|
7260
|
+
persistentId: z247.string(),
|
|
7261
|
+
snapshotId: z247.string().optional()
|
|
7227
7262
|
});
|
|
7228
|
-
var DTORestoreDocumentationGroupInput =
|
|
7229
|
-
persistentId:
|
|
7230
|
-
snapshotId:
|
|
7263
|
+
var DTORestoreDocumentationGroupInput = z247.object({
|
|
7264
|
+
persistentId: z247.string(),
|
|
7265
|
+
snapshotId: z247.string().optional()
|
|
7231
7266
|
});
|
|
7232
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
7233
|
-
persistentId:
|
|
7267
|
+
var DTODocumentationPageApprovalStateChangeInput = z247.object({
|
|
7268
|
+
persistentId: z247.string(),
|
|
7234
7269
|
approvalState: DocumentationPageApprovalState.optional()
|
|
7235
7270
|
});
|
|
7236
7271
|
|
|
7237
7272
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7238
|
-
var DTODocumentationPageSnapshot =
|
|
7239
|
-
id:
|
|
7240
|
-
designSystemVersionId:
|
|
7241
|
-
createdAt:
|
|
7242
|
-
updatedAt:
|
|
7273
|
+
var DTODocumentationPageSnapshot = z248.object({
|
|
7274
|
+
id: z248.string(),
|
|
7275
|
+
designSystemVersionId: z248.string(),
|
|
7276
|
+
createdAt: z248.string(),
|
|
7277
|
+
updatedAt: z248.string(),
|
|
7243
7278
|
documentationPage: DTODocumentationPageV2,
|
|
7244
|
-
pageContentHash:
|
|
7279
|
+
pageContentHash: z248.string(),
|
|
7245
7280
|
reason: DesignElementSnapshotReason
|
|
7246
7281
|
});
|
|
7247
7282
|
|
|
7248
7283
|
// src/api/dto/documentation/link-preview.ts
|
|
7249
|
-
import { z as
|
|
7250
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7284
|
+
import { z as z249 } from "zod";
|
|
7285
|
+
var DTODocumentationLinkPreviewResponse = z249.object({
|
|
7251
7286
|
linkPreview: DocumentationLinkPreview
|
|
7252
7287
|
});
|
|
7253
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7254
|
-
url:
|
|
7255
|
-
documentationItemPersistentId:
|
|
7288
|
+
var DTODocumentationLinkPreviewRequest = z249.object({
|
|
7289
|
+
url: z249.string().optional(),
|
|
7290
|
+
documentationItemPersistentId: z249.string().optional()
|
|
7256
7291
|
});
|
|
7257
7292
|
|
|
7258
7293
|
// src/api/dto/documentation/publish.ts
|
|
7259
|
-
import { z as
|
|
7294
|
+
import { z as z253 } from "zod";
|
|
7260
7295
|
|
|
7261
7296
|
// src/api/dto/export/exporter.ts
|
|
7262
|
-
import { z as
|
|
7263
|
-
var DTOExporterType =
|
|
7264
|
-
var DTOExporterSource =
|
|
7265
|
-
var DTOExporterMembershipRole =
|
|
7266
|
-
var DTOExporterListQuery =
|
|
7267
|
-
limit:
|
|
7268
|
-
offset:
|
|
7297
|
+
import { z as z250 } from "zod";
|
|
7298
|
+
var DTOExporterType = z250.enum(["documentation", "code"]);
|
|
7299
|
+
var DTOExporterSource = z250.enum(["git", "upload"]);
|
|
7300
|
+
var DTOExporterMembershipRole = z250.enum(["Owner", "OwnerArchived", "User"]);
|
|
7301
|
+
var DTOExporterListQuery = z250.object({
|
|
7302
|
+
limit: z250.coerce.number().optional(),
|
|
7303
|
+
offset: z250.coerce.number().optional(),
|
|
7269
7304
|
type: DTOExporterType.optional(),
|
|
7270
|
-
search:
|
|
7305
|
+
search: z250.string().optional()
|
|
7271
7306
|
});
|
|
7272
|
-
var DTOExporter =
|
|
7273
|
-
id:
|
|
7274
|
-
name:
|
|
7275
|
-
isPrivate:
|
|
7307
|
+
var DTOExporter = z250.object({
|
|
7308
|
+
id: z250.string(),
|
|
7309
|
+
name: z250.string(),
|
|
7310
|
+
isPrivate: z250.boolean(),
|
|
7276
7311
|
exporterType: DTOExporterType,
|
|
7277
|
-
isDefaultDocumentationExporter:
|
|
7278
|
-
iconURL:
|
|
7312
|
+
isDefaultDocumentationExporter: z250.boolean(),
|
|
7313
|
+
iconURL: z250.string().optional(),
|
|
7279
7314
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7280
7315
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7281
7316
|
customBlocks: PulsarCustomBlock.array(),
|
|
7282
|
-
blockVariants:
|
|
7283
|
-
homepage:
|
|
7284
|
-
organization:
|
|
7285
|
-
packageId:
|
|
7286
|
-
tags:
|
|
7287
|
-
author:
|
|
7288
|
-
version:
|
|
7289
|
-
description:
|
|
7290
|
-
usesLocale:
|
|
7291
|
-
usesBrands:
|
|
7292
|
-
usesThemes:
|
|
7293
|
-
readme:
|
|
7294
|
-
routingVersion:
|
|
7317
|
+
blockVariants: z250.record(z250.string(), PulsarContributionVariant.array()),
|
|
7318
|
+
homepage: z250.string().optional(),
|
|
7319
|
+
organization: z250.string().optional(),
|
|
7320
|
+
packageId: z250.string().optional(),
|
|
7321
|
+
tags: z250.array(z250.string()),
|
|
7322
|
+
author: z250.string().optional(),
|
|
7323
|
+
version: z250.string(),
|
|
7324
|
+
description: z250.string(),
|
|
7325
|
+
usesLocale: z250.boolean(),
|
|
7326
|
+
usesBrands: z250.boolean(),
|
|
7327
|
+
usesThemes: z250.boolean(),
|
|
7328
|
+
readme: z250.string().optional(),
|
|
7329
|
+
routingVersion: z250.string().optional(),
|
|
7295
7330
|
source: DTOExporterSource,
|
|
7296
|
-
gitProvider:
|
|
7297
|
-
gitUrl: nullishToOptional(
|
|
7298
|
-
gitBranch: nullishToOptional(
|
|
7299
|
-
gitDirectory: nullishToOptional(
|
|
7300
|
-
isDeprecated:
|
|
7301
|
-
deprecationNote:
|
|
7302
|
-
replacementExporterId:
|
|
7303
|
-
});
|
|
7304
|
-
var DTOExporterMembership =
|
|
7305
|
-
workspaceId:
|
|
7306
|
-
exporterId:
|
|
7331
|
+
gitProvider: z250.string().optional(),
|
|
7332
|
+
gitUrl: nullishToOptional(z250.string()),
|
|
7333
|
+
gitBranch: nullishToOptional(z250.string()),
|
|
7334
|
+
gitDirectory: nullishToOptional(z250.string()),
|
|
7335
|
+
isDeprecated: z250.boolean(),
|
|
7336
|
+
deprecationNote: z250.string().optional(),
|
|
7337
|
+
replacementExporterId: z250.string().optional()
|
|
7338
|
+
});
|
|
7339
|
+
var DTOExporterMembership = z250.object({
|
|
7340
|
+
workspaceId: z250.string(),
|
|
7341
|
+
exporterId: z250.string(),
|
|
7307
7342
|
role: DTOExporterMembershipRole
|
|
7308
7343
|
});
|
|
7309
|
-
var DTOExporterResponse =
|
|
7344
|
+
var DTOExporterResponse = z250.object({
|
|
7310
7345
|
exporter: DTOExporter,
|
|
7311
7346
|
membership: DTOExporterMembership
|
|
7312
7347
|
});
|
|
7313
|
-
var DTOExporterListResponse =
|
|
7348
|
+
var DTOExporterListResponse = z250.object({
|
|
7314
7349
|
exporters: DTOExporter.array(),
|
|
7315
7350
|
membership: DTOExporterMembership.array(),
|
|
7316
|
-
total:
|
|
7351
|
+
total: z250.number()
|
|
7317
7352
|
});
|
|
7318
|
-
var DTOExporterGitProviderEnum =
|
|
7319
|
-
var DTOExporterCreateInput =
|
|
7320
|
-
url:
|
|
7353
|
+
var DTOExporterGitProviderEnum = z250.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
7354
|
+
var DTOExporterCreateInput = z250.object({
|
|
7355
|
+
url: z250.string(),
|
|
7321
7356
|
provider: DTOExporterGitProviderEnum
|
|
7322
7357
|
});
|
|
7323
|
-
var DTOExporterUpdateInput =
|
|
7324
|
-
url:
|
|
7358
|
+
var DTOExporterUpdateInput = z250.object({
|
|
7359
|
+
url: z250.string().optional()
|
|
7325
7360
|
});
|
|
7326
|
-
var DTOExporterDeprecationInput =
|
|
7327
|
-
isDeprecated:
|
|
7328
|
-
deprecationNote:
|
|
7329
|
-
replacementExporterId:
|
|
7361
|
+
var DTOExporterDeprecationInput = z250.object({
|
|
7362
|
+
isDeprecated: z250.boolean(),
|
|
7363
|
+
deprecationNote: z250.string().optional(),
|
|
7364
|
+
replacementExporterId: z250.string().optional()
|
|
7330
7365
|
});
|
|
7331
7366
|
|
|
7332
7367
|
// src/api/dto/export/filter.ts
|
|
7333
7368
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
7334
7369
|
|
|
7335
7370
|
// src/api/dto/export/job.ts
|
|
7336
|
-
import { z as
|
|
7337
|
-
var DTOExportJobCreatedBy =
|
|
7338
|
-
userId:
|
|
7339
|
-
userName:
|
|
7371
|
+
import { z as z251 } from "zod";
|
|
7372
|
+
var DTOExportJobCreatedBy = z251.object({
|
|
7373
|
+
userId: z251.string(),
|
|
7374
|
+
userName: z251.string()
|
|
7340
7375
|
});
|
|
7341
|
-
var DTOExportJobDesignSystemPreview =
|
|
7342
|
-
id:
|
|
7376
|
+
var DTOExportJobDesignSystemPreview = z251.object({
|
|
7377
|
+
id: z251.string(),
|
|
7343
7378
|
meta: ObjectMeta
|
|
7344
7379
|
});
|
|
7345
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
7346
|
-
id:
|
|
7380
|
+
var DTOExportJobDesignSystemVersionPreview = z251.object({
|
|
7381
|
+
id: z251.string(),
|
|
7347
7382
|
meta: ObjectMeta,
|
|
7348
|
-
version:
|
|
7349
|
-
isReadonly:
|
|
7383
|
+
version: z251.string(),
|
|
7384
|
+
isReadonly: z251.boolean()
|
|
7350
7385
|
});
|
|
7351
|
-
var DTOExportJobDestinations =
|
|
7386
|
+
var DTOExportJobDestinations = z251.object({
|
|
7352
7387
|
s3: ExporterDestinationS3.optional(),
|
|
7353
7388
|
azure: ExporterDestinationAzure.optional(),
|
|
7354
7389
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
7355
7390
|
github: ExporterDestinationGithub.optional(),
|
|
7356
7391
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
7357
7392
|
documentation: ExporterDestinationDocs.optional(),
|
|
7358
|
-
webhookUrl:
|
|
7393
|
+
webhookUrl: z251.string().optional()
|
|
7359
7394
|
});
|
|
7360
7395
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
7361
7396
|
sndocs: true
|
|
7362
7397
|
}).extend({
|
|
7363
7398
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
7364
7399
|
});
|
|
7365
|
-
var DTOExportJob =
|
|
7366
|
-
id:
|
|
7367
|
-
createdAt:
|
|
7368
|
-
finishedAt:
|
|
7369
|
-
index:
|
|
7400
|
+
var DTOExportJob = z251.object({
|
|
7401
|
+
id: z251.string(),
|
|
7402
|
+
createdAt: z251.coerce.date(),
|
|
7403
|
+
finishedAt: z251.coerce.date().optional(),
|
|
7404
|
+
index: z251.number().optional(),
|
|
7370
7405
|
status: ExportJobStatus,
|
|
7371
|
-
estimatedExecutionTime:
|
|
7406
|
+
estimatedExecutionTime: z251.number().optional(),
|
|
7372
7407
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
7373
7408
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
7374
7409
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
7375
7410
|
destinations: DTOExportJobDestinations,
|
|
7376
|
-
exporterId:
|
|
7377
|
-
scheduleId:
|
|
7411
|
+
exporterId: z251.string(),
|
|
7412
|
+
scheduleId: z251.string().optional(),
|
|
7378
7413
|
result: DTOExportJobResult.optional(),
|
|
7379
|
-
brandPersistentId:
|
|
7380
|
-
themePersistentId:
|
|
7381
|
-
themePersistentIds:
|
|
7414
|
+
brandPersistentId: z251.string().optional(),
|
|
7415
|
+
themePersistentId: z251.string().optional(),
|
|
7416
|
+
themePersistentIds: z251.string().array().optional(),
|
|
7382
7417
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
7383
7418
|
});
|
|
7384
|
-
var DTOExportJobResponse =
|
|
7419
|
+
var DTOExportJobResponse = z251.object({
|
|
7385
7420
|
job: DTOExportJob
|
|
7386
7421
|
});
|
|
7387
|
-
var DTOExportJobResponseLegacy =
|
|
7388
|
-
job:
|
|
7389
|
-
id:
|
|
7422
|
+
var DTOExportJobResponseLegacy = z251.object({
|
|
7423
|
+
job: z251.object({
|
|
7424
|
+
id: z251.string(),
|
|
7390
7425
|
status: ExportJobStatus
|
|
7391
7426
|
})
|
|
7392
7427
|
});
|
|
7393
|
-
var DTOExportJobCreateInput =
|
|
7394
|
-
designSystemId:
|
|
7395
|
-
designSystemVersionId:
|
|
7396
|
-
exporterId:
|
|
7397
|
-
brandId:
|
|
7398
|
-
themeId:
|
|
7399
|
-
themePersistentIds:
|
|
7428
|
+
var DTOExportJobCreateInput = z251.object({
|
|
7429
|
+
designSystemId: z251.string(),
|
|
7430
|
+
designSystemVersionId: z251.string(),
|
|
7431
|
+
exporterId: z251.string(),
|
|
7432
|
+
brandId: z251.string().optional(),
|
|
7433
|
+
themeId: z251.string().optional(),
|
|
7434
|
+
themePersistentIds: z251.string().array().optional(),
|
|
7400
7435
|
destinations: DTOExportJobDestinations,
|
|
7401
7436
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7402
|
-
previewMode:
|
|
7437
|
+
previewMode: z251.boolean().optional()
|
|
7403
7438
|
});
|
|
7404
7439
|
|
|
7405
7440
|
// src/api/dto/export/pipeline.ts
|
|
7406
|
-
import { z as
|
|
7407
|
-
var DTOPipelineListQuery =
|
|
7408
|
-
designSystemId:
|
|
7409
|
-
exporterId:
|
|
7410
|
-
latestJobsLimit:
|
|
7411
|
-
});
|
|
7412
|
-
var DTOPipeline =
|
|
7413
|
-
id:
|
|
7414
|
-
name:
|
|
7441
|
+
import { z as z252 } from "zod";
|
|
7442
|
+
var DTOPipelineListQuery = z252.object({
|
|
7443
|
+
designSystemId: z252.string().optional(),
|
|
7444
|
+
exporterId: z252.string().optional(),
|
|
7445
|
+
latestJobsLimit: z252.coerce.number().optional()
|
|
7446
|
+
});
|
|
7447
|
+
var DTOPipeline = z252.object({
|
|
7448
|
+
id: z252.string(),
|
|
7449
|
+
name: z252.string(),
|
|
7415
7450
|
eventType: PipelineEventType,
|
|
7416
|
-
isEnabled:
|
|
7417
|
-
workspaceId:
|
|
7418
|
-
designSystemId:
|
|
7419
|
-
exporterId:
|
|
7420
|
-
brandPersistentId:
|
|
7421
|
-
themePersistentId:
|
|
7422
|
-
themePersistentIds:
|
|
7451
|
+
isEnabled: z252.boolean(),
|
|
7452
|
+
workspaceId: z252.string(),
|
|
7453
|
+
designSystemId: z252.string(),
|
|
7454
|
+
exporterId: z252.string(),
|
|
7455
|
+
brandPersistentId: z252.string().optional(),
|
|
7456
|
+
themePersistentId: z252.string().optional(),
|
|
7457
|
+
themePersistentIds: z252.string().array().optional(),
|
|
7423
7458
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7424
7459
|
...ExportDestinationsMap.shape,
|
|
7425
7460
|
latestJobs: DTOExportJob.array(),
|
|
7426
|
-
isExporterDeprecated:
|
|
7461
|
+
isExporterDeprecated: z252.boolean()
|
|
7427
7462
|
});
|
|
7428
|
-
var DTOPipelineListResponse =
|
|
7463
|
+
var DTOPipelineListResponse = z252.object({
|
|
7429
7464
|
pipelines: DTOPipeline.array()
|
|
7430
7465
|
});
|
|
7431
|
-
var DTOPipelineResponse =
|
|
7466
|
+
var DTOPipelineResponse = z252.object({
|
|
7432
7467
|
pipeline: DTOPipeline
|
|
7433
7468
|
});
|
|
7434
7469
|
|
|
7435
7470
|
// src/api/dto/documentation/publish.ts
|
|
7436
7471
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
7437
|
-
var DTOPublishDocumentationRequest =
|
|
7472
|
+
var DTOPublishDocumentationRequest = z253.object({
|
|
7438
7473
|
environment: PublishedDocEnvironment,
|
|
7439
7474
|
/**
|
|
7440
7475
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -7442,66 +7477,66 @@ var DTOPublishDocumentationRequest = z252.object({
|
|
|
7442
7477
|
*/
|
|
7443
7478
|
changes: DTOPublishDocumentationChanges.optional()
|
|
7444
7479
|
});
|
|
7445
|
-
var DTOPublishDocumentationResponse =
|
|
7480
|
+
var DTOPublishDocumentationResponse = z253.object({
|
|
7446
7481
|
job: DTOExportJob
|
|
7447
7482
|
});
|
|
7448
7483
|
|
|
7449
7484
|
// src/api/dto/documentation/room.ts
|
|
7450
|
-
import { z as
|
|
7451
|
-
var DTODocumentationPageRoom =
|
|
7452
|
-
id:
|
|
7485
|
+
import { z as z254 } from "zod";
|
|
7486
|
+
var DTODocumentationPageRoom = z254.object({
|
|
7487
|
+
id: z254.string()
|
|
7453
7488
|
});
|
|
7454
|
-
var DTODocumentationPageRoomResponse =
|
|
7489
|
+
var DTODocumentationPageRoomResponse = z254.object({
|
|
7455
7490
|
room: DTODocumentationPageRoom
|
|
7456
7491
|
});
|
|
7457
7492
|
|
|
7458
7493
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
7459
|
-
import
|
|
7460
|
-
var DTOFigmaComponentGroup =
|
|
7461
|
-
id:
|
|
7462
|
-
designSystemVersionId:
|
|
7463
|
-
persistentId:
|
|
7464
|
-
isRoot:
|
|
7465
|
-
brandId:
|
|
7494
|
+
import z255 from "zod";
|
|
7495
|
+
var DTOFigmaComponentGroup = z255.object({
|
|
7496
|
+
id: z255.string(),
|
|
7497
|
+
designSystemVersionId: z255.string(),
|
|
7498
|
+
persistentId: z255.string(),
|
|
7499
|
+
isRoot: z255.boolean(),
|
|
7500
|
+
brandId: z255.string(),
|
|
7466
7501
|
meta: DTOObjectMeta,
|
|
7467
|
-
childrenIds:
|
|
7502
|
+
childrenIds: z255.string().array()
|
|
7468
7503
|
});
|
|
7469
|
-
var DTOFigmaComponentGroupListResponse =
|
|
7504
|
+
var DTOFigmaComponentGroupListResponse = z255.object({
|
|
7470
7505
|
groups: DTOFigmaComponentGroup.array()
|
|
7471
7506
|
});
|
|
7472
7507
|
|
|
7473
7508
|
// src/api/dto/elements/components/figma-component.ts
|
|
7474
|
-
import { z as
|
|
7509
|
+
import { z as z256 } from "zod";
|
|
7475
7510
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
7476
|
-
var DTOFigmaComponentPropertyMap =
|
|
7477
|
-
var DTOFigmaComponent =
|
|
7478
|
-
id:
|
|
7479
|
-
persistentId:
|
|
7480
|
-
designSystemVersionId:
|
|
7481
|
-
brandId:
|
|
7482
|
-
thumbnailUrl:
|
|
7483
|
-
svgUrl:
|
|
7484
|
-
exportProperties:
|
|
7485
|
-
isAsset:
|
|
7511
|
+
var DTOFigmaComponentPropertyMap = z256.record(DTOFigmaComponentProperty);
|
|
7512
|
+
var DTOFigmaComponent = z256.object({
|
|
7513
|
+
id: z256.string(),
|
|
7514
|
+
persistentId: z256.string(),
|
|
7515
|
+
designSystemVersionId: z256.string(),
|
|
7516
|
+
brandId: z256.string(),
|
|
7517
|
+
thumbnailUrl: z256.string().optional(),
|
|
7518
|
+
svgUrl: z256.string().optional(),
|
|
7519
|
+
exportProperties: z256.object({
|
|
7520
|
+
isAsset: z256.boolean()
|
|
7486
7521
|
}),
|
|
7487
|
-
createdAt:
|
|
7488
|
-
updatedAt:
|
|
7522
|
+
createdAt: z256.coerce.date(),
|
|
7523
|
+
updatedAt: z256.coerce.date(),
|
|
7489
7524
|
meta: ObjectMeta,
|
|
7490
7525
|
originComponent: FigmaComponentOrigin.optional(),
|
|
7491
|
-
parentComponentPersistentId:
|
|
7492
|
-
childrenPersistentIds:
|
|
7526
|
+
parentComponentPersistentId: z256.string().optional(),
|
|
7527
|
+
childrenPersistentIds: z256.string().array().optional(),
|
|
7493
7528
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
7494
|
-
variantPropertyValues:
|
|
7529
|
+
variantPropertyValues: z256.record(z256.string()).optional()
|
|
7495
7530
|
});
|
|
7496
|
-
var DTOFigmaComponentListResponse =
|
|
7531
|
+
var DTOFigmaComponentListResponse = z256.object({
|
|
7497
7532
|
components: DTOFigmaComponent.array()
|
|
7498
7533
|
});
|
|
7499
7534
|
|
|
7500
7535
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7501
|
-
import { z as
|
|
7536
|
+
import { z as z258 } from "zod";
|
|
7502
7537
|
|
|
7503
7538
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
7504
|
-
import { z as
|
|
7539
|
+
import { z as z257 } from "zod";
|
|
7505
7540
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
7506
7541
|
sortOrder: true,
|
|
7507
7542
|
parentPersistentId: true,
|
|
@@ -7511,13 +7546,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7511
7546
|
data: true,
|
|
7512
7547
|
shortPersistentId: true
|
|
7513
7548
|
}).extend({
|
|
7514
|
-
title:
|
|
7515
|
-
isRoot:
|
|
7516
|
-
childrenIds:
|
|
7549
|
+
title: z257.string(),
|
|
7550
|
+
isRoot: z257.boolean(),
|
|
7551
|
+
childrenIds: z257.array(z257.string()),
|
|
7517
7552
|
groupBehavior: DocumentationGroupBehavior,
|
|
7518
|
-
shortPersistentId:
|
|
7553
|
+
shortPersistentId: z257.string(),
|
|
7519
7554
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7520
|
-
type:
|
|
7555
|
+
type: z257.literal("Group"),
|
|
7521
7556
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
7522
7557
|
draftState: DTODocumentationDraftState.optional(),
|
|
7523
7558
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -7525,127 +7560,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7525
7560
|
//** An approval state for frontend to utilize. */
|
|
7526
7561
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
7527
7562
|
});
|
|
7528
|
-
var DTOCreateDocumentationGroupInput =
|
|
7563
|
+
var DTOCreateDocumentationGroupInput = z257.object({
|
|
7529
7564
|
// Identifier
|
|
7530
|
-
persistentId:
|
|
7565
|
+
persistentId: z257.string(),
|
|
7531
7566
|
// Group properties
|
|
7532
|
-
title:
|
|
7567
|
+
title: z257.string(),
|
|
7533
7568
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7534
7569
|
// Group placement properties
|
|
7535
|
-
afterPersistentId:
|
|
7536
|
-
parentPersistentId:
|
|
7570
|
+
afterPersistentId: z257.string().nullish(),
|
|
7571
|
+
parentPersistentId: z257.string()
|
|
7537
7572
|
});
|
|
7538
|
-
var DTOUpdateDocumentationGroupInput =
|
|
7573
|
+
var DTOUpdateDocumentationGroupInput = z257.object({
|
|
7539
7574
|
// Identifier of the group to update
|
|
7540
|
-
id:
|
|
7575
|
+
id: z257.string(),
|
|
7541
7576
|
// Group properties
|
|
7542
|
-
title:
|
|
7577
|
+
title: z257.string().optional(),
|
|
7543
7578
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7544
7579
|
});
|
|
7545
|
-
var DTOMoveDocumentationGroupInput =
|
|
7580
|
+
var DTOMoveDocumentationGroupInput = z257.object({
|
|
7546
7581
|
// Identifier of the group to update
|
|
7547
|
-
id:
|
|
7582
|
+
id: z257.string(),
|
|
7548
7583
|
// Group placement properties
|
|
7549
|
-
parentPersistentId:
|
|
7550
|
-
afterPersistentId:
|
|
7584
|
+
parentPersistentId: z257.string(),
|
|
7585
|
+
afterPersistentId: z257.string().nullish()
|
|
7551
7586
|
});
|
|
7552
|
-
var DTODuplicateDocumentationGroupInput =
|
|
7587
|
+
var DTODuplicateDocumentationGroupInput = z257.object({
|
|
7553
7588
|
// Identifier of the group to duplicate from
|
|
7554
|
-
id:
|
|
7589
|
+
id: z257.string(),
|
|
7555
7590
|
// New group persistent id
|
|
7556
|
-
persistentId:
|
|
7591
|
+
persistentId: z257.string(),
|
|
7557
7592
|
// Group placement properties
|
|
7558
|
-
afterPersistentId:
|
|
7559
|
-
parentPersistentId:
|
|
7593
|
+
afterPersistentId: z257.string().nullish(),
|
|
7594
|
+
parentPersistentId: z257.string()
|
|
7560
7595
|
});
|
|
7561
|
-
var DTOCreateDocumentationTabInput =
|
|
7596
|
+
var DTOCreateDocumentationTabInput = z257.object({
|
|
7562
7597
|
// New group persistent id
|
|
7563
|
-
persistentId:
|
|
7598
|
+
persistentId: z257.string(),
|
|
7564
7599
|
// If this is page, we will attempt to convert it to tab
|
|
7565
7600
|
// If this is tab group, we will add a new tab to it
|
|
7566
|
-
fromItemPersistentId:
|
|
7567
|
-
tabName:
|
|
7601
|
+
fromItemPersistentId: z257.string(),
|
|
7602
|
+
tabName: z257.string()
|
|
7568
7603
|
});
|
|
7569
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
7604
|
+
var DTODeleteDocumentationTabGroupInput = z257.object({
|
|
7570
7605
|
// Deleted group id
|
|
7571
|
-
id:
|
|
7606
|
+
id: z257.string()
|
|
7572
7607
|
});
|
|
7573
|
-
var DTODeleteDocumentationGroupInput =
|
|
7608
|
+
var DTODeleteDocumentationGroupInput = z257.object({
|
|
7574
7609
|
// Identifier
|
|
7575
|
-
id:
|
|
7610
|
+
id: z257.string(),
|
|
7576
7611
|
// Deletion options
|
|
7577
|
-
deleteSubtree:
|
|
7612
|
+
deleteSubtree: z257.boolean().default(false)
|
|
7578
7613
|
});
|
|
7579
7614
|
|
|
7580
7615
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7581
|
-
var SuccessPayload =
|
|
7582
|
-
success:
|
|
7616
|
+
var SuccessPayload = z258.object({
|
|
7617
|
+
success: z258.literal(true)
|
|
7583
7618
|
});
|
|
7584
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
7585
|
-
type:
|
|
7619
|
+
var DTODocumentationGroupCreateActionOutputV2 = z258.object({
|
|
7620
|
+
type: z258.literal("DocumentationGroupCreate"),
|
|
7586
7621
|
output: SuccessPayload
|
|
7587
7622
|
});
|
|
7588
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
7589
|
-
type:
|
|
7623
|
+
var DTODocumentationTabCreateActionOutputV2 = z258.object({
|
|
7624
|
+
type: z258.literal("DocumentationTabCreate"),
|
|
7590
7625
|
output: SuccessPayload
|
|
7591
7626
|
});
|
|
7592
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
7593
|
-
type:
|
|
7627
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z258.object({
|
|
7628
|
+
type: z258.literal("DocumentationGroupUpdate"),
|
|
7594
7629
|
output: SuccessPayload
|
|
7595
7630
|
});
|
|
7596
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
7597
|
-
type:
|
|
7631
|
+
var DTODocumentationGroupMoveActionOutputV2 = z258.object({
|
|
7632
|
+
type: z258.literal("DocumentationGroupMove"),
|
|
7598
7633
|
output: SuccessPayload
|
|
7599
7634
|
});
|
|
7600
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
7601
|
-
type:
|
|
7635
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z258.object({
|
|
7636
|
+
type: z258.literal("DocumentationGroupDuplicate"),
|
|
7602
7637
|
output: SuccessPayload
|
|
7603
7638
|
});
|
|
7604
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
7605
|
-
type:
|
|
7639
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z258.object({
|
|
7640
|
+
type: z258.literal("DocumentationGroupDelete"),
|
|
7606
7641
|
output: SuccessPayload
|
|
7607
7642
|
});
|
|
7608
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
7609
|
-
type:
|
|
7643
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z258.object({
|
|
7644
|
+
type: z258.literal("DocumentationTabGroupDelete"),
|
|
7610
7645
|
output: SuccessPayload
|
|
7611
7646
|
});
|
|
7612
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
7613
|
-
type:
|
|
7647
|
+
var DTODocumentationGroupCreateActionInputV2 = z258.object({
|
|
7648
|
+
type: z258.literal("DocumentationGroupCreate"),
|
|
7614
7649
|
input: DTOCreateDocumentationGroupInput
|
|
7615
7650
|
});
|
|
7616
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
7617
|
-
type:
|
|
7651
|
+
var DTODocumentationTabCreateActionInputV2 = z258.object({
|
|
7652
|
+
type: z258.literal("DocumentationTabCreate"),
|
|
7618
7653
|
input: DTOCreateDocumentationTabInput
|
|
7619
7654
|
});
|
|
7620
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
7621
|
-
type:
|
|
7655
|
+
var DTODocumentationGroupUpdateActionInputV2 = z258.object({
|
|
7656
|
+
type: z258.literal("DocumentationGroupUpdate"),
|
|
7622
7657
|
input: DTOUpdateDocumentationGroupInput
|
|
7623
7658
|
});
|
|
7624
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
7625
|
-
type:
|
|
7659
|
+
var DTODocumentationGroupMoveActionInputV2 = z258.object({
|
|
7660
|
+
type: z258.literal("DocumentationGroupMove"),
|
|
7626
7661
|
input: DTOMoveDocumentationGroupInput
|
|
7627
7662
|
});
|
|
7628
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
7629
|
-
type:
|
|
7663
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z258.object({
|
|
7664
|
+
type: z258.literal("DocumentationGroupDuplicate"),
|
|
7630
7665
|
input: DTODuplicateDocumentationGroupInput
|
|
7631
7666
|
});
|
|
7632
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
7633
|
-
type:
|
|
7667
|
+
var DTODocumentationGroupDeleteActionInputV2 = z258.object({
|
|
7668
|
+
type: z258.literal("DocumentationGroupDelete"),
|
|
7634
7669
|
input: DTODeleteDocumentationGroupInput
|
|
7635
7670
|
});
|
|
7636
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
7637
|
-
type:
|
|
7671
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z258.object({
|
|
7672
|
+
type: z258.literal("DocumentationTabGroupDelete"),
|
|
7638
7673
|
input: DTODeleteDocumentationTabGroupInput
|
|
7639
7674
|
});
|
|
7640
7675
|
|
|
7641
7676
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
7642
|
-
import { z as
|
|
7677
|
+
import { z as z260 } from "zod";
|
|
7643
7678
|
|
|
7644
7679
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
7645
|
-
import { z as
|
|
7646
|
-
var DocumentationColorV1 =
|
|
7647
|
-
aliasTo:
|
|
7648
|
-
value:
|
|
7680
|
+
import { z as z259 } from "zod";
|
|
7681
|
+
var DocumentationColorV1 = z259.object({
|
|
7682
|
+
aliasTo: z259.string().optional(),
|
|
7683
|
+
value: z259.string().optional()
|
|
7649
7684
|
});
|
|
7650
7685
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
7651
7686
|
foregroundColor: true,
|
|
@@ -7654,10 +7689,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
7654
7689
|
foregroundColor: DocumentationColorV1.optional(),
|
|
7655
7690
|
backgroundColor: DocumentationColorV1.optional()
|
|
7656
7691
|
});
|
|
7657
|
-
var DTODocumentationItemConfigurationV1 =
|
|
7658
|
-
showSidebar:
|
|
7659
|
-
isPrivate:
|
|
7660
|
-
isHidden:
|
|
7692
|
+
var DTODocumentationItemConfigurationV1 = z259.object({
|
|
7693
|
+
showSidebar: z259.boolean(),
|
|
7694
|
+
isPrivate: z259.boolean(),
|
|
7695
|
+
isHidden: z259.boolean(),
|
|
7661
7696
|
header: DTODocumentationItemHeaderV1
|
|
7662
7697
|
});
|
|
7663
7698
|
|
|
@@ -7671,145 +7706,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
7671
7706
|
data: true,
|
|
7672
7707
|
shortPersistentId: true
|
|
7673
7708
|
}).extend({
|
|
7674
|
-
title:
|
|
7675
|
-
isRoot:
|
|
7676
|
-
childrenIds:
|
|
7709
|
+
title: z260.string(),
|
|
7710
|
+
isRoot: z260.boolean(),
|
|
7711
|
+
childrenIds: z260.array(z260.string()),
|
|
7677
7712
|
groupBehavior: DocumentationGroupBehavior,
|
|
7678
|
-
shortPersistentId:
|
|
7679
|
-
type:
|
|
7713
|
+
shortPersistentId: z260.string(),
|
|
7714
|
+
type: z260.literal("Group")
|
|
7680
7715
|
});
|
|
7681
7716
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
7682
7717
|
configuration: DTODocumentationItemConfigurationV1
|
|
7683
7718
|
});
|
|
7684
7719
|
|
|
7685
7720
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
7686
|
-
import { z as
|
|
7687
|
-
var DTODocumentationHierarchyV2 =
|
|
7688
|
-
pages:
|
|
7721
|
+
import { z as z261 } from "zod";
|
|
7722
|
+
var DTODocumentationHierarchyV2 = z261.object({
|
|
7723
|
+
pages: z261.array(
|
|
7689
7724
|
DTODocumentationPageV2.extend({
|
|
7690
7725
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7691
7726
|
draftState: DTODocumentationDraftState.optional()
|
|
7692
7727
|
})
|
|
7693
7728
|
),
|
|
7694
|
-
groups:
|
|
7729
|
+
groups: z261.array(
|
|
7695
7730
|
DTODocumentationGroupV2.extend({
|
|
7696
7731
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7697
7732
|
draftState: DTODocumentationDraftState.optional()
|
|
7698
7733
|
})
|
|
7699
7734
|
),
|
|
7700
7735
|
/** True if the documentation was already published, false otherwise. */
|
|
7701
|
-
hasPublishedDocumentationContent:
|
|
7736
|
+
hasPublishedDocumentationContent: z261.boolean()
|
|
7702
7737
|
});
|
|
7703
7738
|
|
|
7704
7739
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
7705
|
-
import { z as
|
|
7706
|
-
var SuccessPayload2 =
|
|
7707
|
-
success:
|
|
7740
|
+
import { z as z262 } from "zod";
|
|
7741
|
+
var SuccessPayload2 = z262.object({
|
|
7742
|
+
success: z262.literal(true)
|
|
7708
7743
|
});
|
|
7709
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7710
|
-
type:
|
|
7744
|
+
var DTODocumentationPageCreateActionOutputV2 = z262.object({
|
|
7745
|
+
type: z262.literal("DocumentationPageCreate"),
|
|
7711
7746
|
output: SuccessPayload2
|
|
7712
7747
|
});
|
|
7713
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7714
|
-
type:
|
|
7748
|
+
var DTODocumentationPageUpdateActionOutputV2 = z262.object({
|
|
7749
|
+
type: z262.literal("DocumentationPageUpdate"),
|
|
7715
7750
|
output: SuccessPayload2
|
|
7716
7751
|
});
|
|
7717
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7718
|
-
type:
|
|
7752
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z262.object({
|
|
7753
|
+
type: z262.literal("DocumentationPageUpdateDocument"),
|
|
7719
7754
|
output: SuccessPayload2
|
|
7720
7755
|
});
|
|
7721
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7722
|
-
type:
|
|
7756
|
+
var DTODocumentationPageMoveActionOutputV2 = z262.object({
|
|
7757
|
+
type: z262.literal("DocumentationPageMove"),
|
|
7723
7758
|
output: SuccessPayload2
|
|
7724
7759
|
});
|
|
7725
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7726
|
-
type:
|
|
7760
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z262.object({
|
|
7761
|
+
type: z262.literal("DocumentationPageDuplicate"),
|
|
7727
7762
|
output: SuccessPayload2
|
|
7728
7763
|
});
|
|
7729
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7730
|
-
type:
|
|
7764
|
+
var DTODocumentationPageDeleteActionOutputV2 = z262.object({
|
|
7765
|
+
type: z262.literal("DocumentationPageDelete"),
|
|
7731
7766
|
output: SuccessPayload2
|
|
7732
7767
|
});
|
|
7733
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7734
|
-
type:
|
|
7768
|
+
var DTODocumentationPageRestoreActionOutput = z262.object({
|
|
7769
|
+
type: z262.literal("DocumentationPageRestore"),
|
|
7735
7770
|
output: SuccessPayload2
|
|
7736
7771
|
});
|
|
7737
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7738
|
-
type:
|
|
7772
|
+
var DTODocumentationGroupRestoreActionOutput = z262.object({
|
|
7773
|
+
type: z262.literal("DocumentationGroupRestore"),
|
|
7739
7774
|
output: SuccessPayload2
|
|
7740
7775
|
});
|
|
7741
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7742
|
-
type:
|
|
7776
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z262.object({
|
|
7777
|
+
type: z262.literal("DocumentationPageApprovalStateChange"),
|
|
7743
7778
|
output: SuccessPayload2
|
|
7744
7779
|
});
|
|
7745
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7746
|
-
type:
|
|
7780
|
+
var DTODocumentationPageCreateActionInputV2 = z262.object({
|
|
7781
|
+
type: z262.literal("DocumentationPageCreate"),
|
|
7747
7782
|
input: DTOCreateDocumentationPageInputV2
|
|
7748
7783
|
});
|
|
7749
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7750
|
-
type:
|
|
7784
|
+
var DTODocumentationPageUpdateActionInputV2 = z262.object({
|
|
7785
|
+
type: z262.literal("DocumentationPageUpdate"),
|
|
7751
7786
|
input: DTOUpdateDocumentationPageInputV2
|
|
7752
7787
|
});
|
|
7753
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7754
|
-
type:
|
|
7788
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z262.object({
|
|
7789
|
+
type: z262.literal("DocumentationPageUpdateDocument"),
|
|
7755
7790
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7756
7791
|
});
|
|
7757
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7758
|
-
type:
|
|
7792
|
+
var DTODocumentationPageMoveActionInputV2 = z262.object({
|
|
7793
|
+
type: z262.literal("DocumentationPageMove"),
|
|
7759
7794
|
input: DTOMoveDocumentationPageInputV2
|
|
7760
7795
|
});
|
|
7761
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7762
|
-
type:
|
|
7796
|
+
var DTODocumentationPageDuplicateActionInputV2 = z262.object({
|
|
7797
|
+
type: z262.literal("DocumentationPageDuplicate"),
|
|
7763
7798
|
input: DTODuplicateDocumentationPageInputV2
|
|
7764
7799
|
});
|
|
7765
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7766
|
-
type:
|
|
7800
|
+
var DTODocumentationPageDeleteActionInputV2 = z262.object({
|
|
7801
|
+
type: z262.literal("DocumentationPageDelete"),
|
|
7767
7802
|
input: DTODeleteDocumentationPageInputV2
|
|
7768
7803
|
});
|
|
7769
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7770
|
-
type:
|
|
7804
|
+
var DTODocumentationPageRestoreActionInput = z262.object({
|
|
7805
|
+
type: z262.literal("DocumentationPageRestore"),
|
|
7771
7806
|
input: DTORestoreDocumentationPageInput
|
|
7772
7807
|
});
|
|
7773
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7774
|
-
type:
|
|
7808
|
+
var DTODocumentationGroupRestoreActionInput = z262.object({
|
|
7809
|
+
type: z262.literal("DocumentationGroupRestore"),
|
|
7775
7810
|
input: DTORestoreDocumentationGroupInput
|
|
7776
7811
|
});
|
|
7777
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7778
|
-
type:
|
|
7812
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z262.object({
|
|
7813
|
+
type: z262.literal("DocumentationPageApprovalStateChange"),
|
|
7779
7814
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7780
7815
|
});
|
|
7781
7816
|
|
|
7782
7817
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7783
|
-
import { z as
|
|
7818
|
+
import { z as z263 } from "zod";
|
|
7784
7819
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7785
|
-
var DTODocumentationPageContentGetResponse =
|
|
7820
|
+
var DTODocumentationPageContentGetResponse = z263.object({
|
|
7786
7821
|
pageContent: DTODocumentationPageContent
|
|
7787
7822
|
});
|
|
7788
7823
|
|
|
7789
7824
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
7790
|
-
import { z as
|
|
7791
|
-
var DTODocumentationPageDependencies =
|
|
7792
|
-
id:
|
|
7793
|
-
designSystemVersionId:
|
|
7794
|
-
createdAt:
|
|
7795
|
-
updatedAt:
|
|
7796
|
-
documentationPageId:
|
|
7797
|
-
tokenPersistentIds:
|
|
7798
|
-
figmaComponentPersistentIds:
|
|
7799
|
-
componentPersistentIds:
|
|
7800
|
-
figmaNodePersistentIds:
|
|
7801
|
-
groupPersistentIds:
|
|
7802
|
-
propertyPersistentIds:
|
|
7803
|
-
themePersistentIds:
|
|
7804
|
-
documentationPagePersistentIds:
|
|
7805
|
-
storybookEntriesStoryIds:
|
|
7806
|
-
});
|
|
7807
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
7808
|
-
dependencies:
|
|
7825
|
+
import { z as z264 } from "zod";
|
|
7826
|
+
var DTODocumentationPageDependencies = z264.object({
|
|
7827
|
+
id: z264.string(),
|
|
7828
|
+
designSystemVersionId: z264.string(),
|
|
7829
|
+
createdAt: z264.coerce.date(),
|
|
7830
|
+
updatedAt: z264.coerce.date(),
|
|
7831
|
+
documentationPageId: z264.string(),
|
|
7832
|
+
tokenPersistentIds: z264.array(z264.string()),
|
|
7833
|
+
figmaComponentPersistentIds: z264.array(z264.string()),
|
|
7834
|
+
componentPersistentIds: z264.array(z264.string()),
|
|
7835
|
+
figmaNodePersistentIds: z264.array(z264.string()),
|
|
7836
|
+
groupPersistentIds: z264.array(z264.string()),
|
|
7837
|
+
propertyPersistentIds: z264.array(z264.string()),
|
|
7838
|
+
themePersistentIds: z264.array(z264.string()),
|
|
7839
|
+
documentationPagePersistentIds: z264.array(z264.string()),
|
|
7840
|
+
storybookEntriesStoryIds: z264.array(z264.string())
|
|
7841
|
+
});
|
|
7842
|
+
var DTODocumentationPageDependenciesGetResponse = z264.object({
|
|
7843
|
+
dependencies: z264.array(DTODocumentationPageDependencies)
|
|
7809
7844
|
});
|
|
7810
7845
|
|
|
7811
7846
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7812
|
-
import { z as
|
|
7847
|
+
import { z as z265 } from "zod";
|
|
7813
7848
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7814
7849
|
data: true,
|
|
7815
7850
|
meta: true,
|
|
@@ -7817,81 +7852,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7817
7852
|
sortOrder: true
|
|
7818
7853
|
}).extend({
|
|
7819
7854
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7820
|
-
blocks:
|
|
7821
|
-
title:
|
|
7822
|
-
path:
|
|
7855
|
+
blocks: z265.array(PageBlockV1),
|
|
7856
|
+
title: z265.string(),
|
|
7857
|
+
path: z265.string()
|
|
7823
7858
|
});
|
|
7824
7859
|
|
|
7825
7860
|
// src/api/dto/elements/documentation/settings.ts
|
|
7826
|
-
import { z as
|
|
7827
|
-
var DTODocumentationSettings =
|
|
7828
|
-
isDraftFeatureAdopted:
|
|
7829
|
-
isApprovalsFeatureEnabled:
|
|
7830
|
-
isApprovalRequiredForPublishing:
|
|
7861
|
+
import { z as z266 } from "zod";
|
|
7862
|
+
var DTODocumentationSettings = z266.object({
|
|
7863
|
+
isDraftFeatureAdopted: z266.boolean(),
|
|
7864
|
+
isApprovalsFeatureEnabled: z266.boolean(),
|
|
7865
|
+
isApprovalRequiredForPublishing: z266.boolean()
|
|
7831
7866
|
});
|
|
7832
7867
|
|
|
7833
7868
|
// src/api/dto/elements/documentation/structure.ts
|
|
7834
|
-
import { z as
|
|
7835
|
-
var DTODocumentationStructureItemType =
|
|
7836
|
-
var DTODocumentationStructureItemBase =
|
|
7869
|
+
import { z as z267 } from "zod";
|
|
7870
|
+
var DTODocumentationStructureItemType = z267.enum(["Group", "Page"]);
|
|
7871
|
+
var DTODocumentationStructureItemBase = z267.object({
|
|
7837
7872
|
type: DTODocumentationStructureItemType,
|
|
7838
|
-
id:
|
|
7839
|
-
designSystemVersionId:
|
|
7840
|
-
shortPersistentId:
|
|
7841
|
-
persistentId:
|
|
7842
|
-
title:
|
|
7843
|
-
createdAt:
|
|
7844
|
-
updatedAt:
|
|
7873
|
+
id: z267.string(),
|
|
7874
|
+
designSystemVersionId: z267.string(),
|
|
7875
|
+
shortPersistentId: z267.string(),
|
|
7876
|
+
persistentId: z267.string(),
|
|
7877
|
+
title: z267.string(),
|
|
7878
|
+
createdAt: z267.coerce.date(),
|
|
7879
|
+
updatedAt: z267.coerce.date()
|
|
7845
7880
|
});
|
|
7846
7881
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7847
|
-
type:
|
|
7848
|
-
groupBehavior:
|
|
7849
|
-
childrenIds:
|
|
7850
|
-
isRoot:
|
|
7882
|
+
type: z267.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7883
|
+
groupBehavior: z267.string(),
|
|
7884
|
+
childrenIds: z267.string().array(),
|
|
7885
|
+
isRoot: z267.boolean()
|
|
7851
7886
|
});
|
|
7852
7887
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7853
|
-
type:
|
|
7854
|
-
path:
|
|
7888
|
+
type: z267.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7889
|
+
path: z267.string()
|
|
7855
7890
|
});
|
|
7856
|
-
var DTODocumentationStructureItem =
|
|
7891
|
+
var DTODocumentationStructureItem = z267.discriminatedUnion("type", [
|
|
7857
7892
|
DTODocumentationStructureGroupItem,
|
|
7858
7893
|
DTODocumentationStructurePageItem
|
|
7859
7894
|
]);
|
|
7860
|
-
var DTODocumentationStructure =
|
|
7861
|
-
items:
|
|
7895
|
+
var DTODocumentationStructure = z267.object({
|
|
7896
|
+
items: z267.array(DTODocumentationStructureItem)
|
|
7862
7897
|
});
|
|
7863
7898
|
|
|
7864
7899
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
7865
|
-
import { z as
|
|
7866
|
-
var DTOFigmaNodeStructure =
|
|
7867
|
-
id:
|
|
7868
|
-
sourceId:
|
|
7900
|
+
import { z as z268 } from "zod";
|
|
7901
|
+
var DTOFigmaNodeStructure = z268.object({
|
|
7902
|
+
id: z268.string(),
|
|
7903
|
+
sourceId: z268.string(),
|
|
7869
7904
|
importState: FigmaNodeStructureStateV2,
|
|
7870
|
-
createdAt:
|
|
7871
|
-
updatedAt:
|
|
7905
|
+
createdAt: z268.coerce.date(),
|
|
7906
|
+
updatedAt: z268.coerce.date()
|
|
7872
7907
|
});
|
|
7873
7908
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
7874
7909
|
rootNode: FigmaFileStructureNode
|
|
7875
7910
|
});
|
|
7876
|
-
var DTOFigmaNodeStructureListResponse =
|
|
7911
|
+
var DTOFigmaNodeStructureListResponse = z268.object({
|
|
7877
7912
|
structures: DTOFigmaNodeStructure.array()
|
|
7878
7913
|
});
|
|
7879
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
7914
|
+
var DTOFigmaNodeStructureDetailResponse = z268.object({
|
|
7880
7915
|
structure: DTOFigmaNodeStructureDetail
|
|
7881
7916
|
});
|
|
7882
7917
|
|
|
7883
7918
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7884
|
-
import { z as
|
|
7919
|
+
import { z as z270 } from "zod";
|
|
7885
7920
|
|
|
7886
7921
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7887
|
-
import { z as
|
|
7922
|
+
import { z as z269 } from "zod";
|
|
7888
7923
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7889
|
-
var DTOFigmaNodeOrigin =
|
|
7890
|
-
sourceId:
|
|
7891
|
-
fileId:
|
|
7892
|
-
parentName:
|
|
7924
|
+
var DTOFigmaNodeOrigin = z269.object({
|
|
7925
|
+
sourceId: z269.string(),
|
|
7926
|
+
fileId: z269.string().optional(),
|
|
7927
|
+
parentName: z269.string().optional()
|
|
7893
7928
|
});
|
|
7894
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7929
|
+
var DTOFigmaNodeRenderInputBase = z269.object({
|
|
7895
7930
|
/**
|
|
7896
7931
|
* Format in which the node must be rendered, png by default.
|
|
7897
7932
|
*/
|
|
@@ -7899,57 +7934,57 @@ var DTOFigmaNodeRenderInputBase = z268.object({
|
|
|
7899
7934
|
/**
|
|
7900
7935
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7901
7936
|
*/
|
|
7902
|
-
scale:
|
|
7937
|
+
scale: z269.number().optional()
|
|
7903
7938
|
});
|
|
7904
7939
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7905
|
-
inputType:
|
|
7940
|
+
inputType: z269.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7906
7941
|
/**
|
|
7907
7942
|
* Id of a design system's data source representing a linked Figma file
|
|
7908
7943
|
*/
|
|
7909
|
-
sourceId:
|
|
7944
|
+
sourceId: z269.string(),
|
|
7910
7945
|
/**
|
|
7911
7946
|
* Id of a node within the Figma file
|
|
7912
7947
|
*/
|
|
7913
|
-
figmaFileNodeId:
|
|
7948
|
+
figmaFileNodeId: z269.string()
|
|
7914
7949
|
});
|
|
7915
7950
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7916
|
-
inputType:
|
|
7951
|
+
inputType: z269.literal("URL"),
|
|
7917
7952
|
/**
|
|
7918
7953
|
* Id of a design system's data source representing a linked Figma file
|
|
7919
7954
|
*/
|
|
7920
|
-
figmaNodeUrl:
|
|
7955
|
+
figmaNodeUrl: z269.string(),
|
|
7921
7956
|
/**
|
|
7922
7957
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7923
7958
|
*/
|
|
7924
|
-
brandPersistentId:
|
|
7959
|
+
brandPersistentId: z269.string()
|
|
7925
7960
|
});
|
|
7926
|
-
var DTOFigmaNodeRerenderInput =
|
|
7927
|
-
inputType:
|
|
7961
|
+
var DTOFigmaNodeRerenderInput = z269.object({
|
|
7962
|
+
inputType: z269.literal("Rerender"),
|
|
7928
7963
|
/**
|
|
7929
7964
|
* Persistent ID of an existing Figma node
|
|
7930
7965
|
*/
|
|
7931
|
-
figmaNodePersistentId:
|
|
7966
|
+
figmaNodePersistentId: z269.string()
|
|
7932
7967
|
});
|
|
7933
|
-
var DTOFigmaNodeRenderInput =
|
|
7968
|
+
var DTOFigmaNodeRenderInput = z269.discriminatedUnion("inputType", [
|
|
7934
7969
|
DTOFigmaNodeRenderIdInput,
|
|
7935
7970
|
DTOFigmaNodeRenderUrlInput,
|
|
7936
7971
|
DTOFigmaNodeRerenderInput
|
|
7937
7972
|
]);
|
|
7938
7973
|
|
|
7939
7974
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7940
|
-
var DTOFigmaNodeData =
|
|
7975
|
+
var DTOFigmaNodeData = z270.object({
|
|
7941
7976
|
// Id of the node in the Figma file
|
|
7942
|
-
figmaNodeId:
|
|
7977
|
+
figmaNodeId: z270.string(),
|
|
7943
7978
|
// Validity
|
|
7944
|
-
isValid:
|
|
7979
|
+
isValid: z270.boolean(),
|
|
7945
7980
|
// Asset data
|
|
7946
|
-
assetId:
|
|
7947
|
-
assetUrl:
|
|
7981
|
+
assetId: z270.string(),
|
|
7982
|
+
assetUrl: z270.string(),
|
|
7948
7983
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7949
7984
|
// Asset metadata
|
|
7950
|
-
assetScale:
|
|
7951
|
-
assetWidth:
|
|
7952
|
-
assetHeight:
|
|
7985
|
+
assetScale: z270.number(),
|
|
7986
|
+
assetWidth: z270.number().optional(),
|
|
7987
|
+
assetHeight: z270.number().optional()
|
|
7953
7988
|
});
|
|
7954
7989
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7955
7990
|
data: true,
|
|
@@ -7960,15 +7995,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7960
7995
|
});
|
|
7961
7996
|
|
|
7962
7997
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7963
|
-
import { z as
|
|
7964
|
-
var DTOFigmaNodeDataV2 =
|
|
7965
|
-
sceneNodeId:
|
|
7998
|
+
import { z as z271 } from "zod";
|
|
7999
|
+
var DTOFigmaNodeDataV2 = z271.object({
|
|
8000
|
+
sceneNodeId: z271.string(),
|
|
7966
8001
|
format: FigmaNodeRenderFormat,
|
|
7967
|
-
scale:
|
|
8002
|
+
scale: z271.number().optional(),
|
|
7968
8003
|
renderState: FigmaNodeRenderState,
|
|
7969
8004
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7970
8005
|
renderError: FigmaNodeRenderError.optional(),
|
|
7971
|
-
hasSource:
|
|
8006
|
+
hasSource: z271.boolean()
|
|
7972
8007
|
});
|
|
7973
8008
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7974
8009
|
data: true,
|
|
@@ -7979,113 +8014,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7979
8014
|
});
|
|
7980
8015
|
|
|
7981
8016
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7982
|
-
import { z as
|
|
7983
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7984
|
-
type:
|
|
7985
|
-
figmaNodes:
|
|
8017
|
+
import { z as z272 } from "zod";
|
|
8018
|
+
var DTOFigmaNodeRenderActionOutput = z272.object({
|
|
8019
|
+
type: z272.literal("FigmaNodeRender"),
|
|
8020
|
+
figmaNodes: z272.array(DTOFigmaNode)
|
|
7986
8021
|
});
|
|
7987
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7988
|
-
type:
|
|
7989
|
-
figmaNodes:
|
|
8022
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z272.object({
|
|
8023
|
+
type: z272.literal("FigmaNodeRenderAsync"),
|
|
8024
|
+
figmaNodes: z272.array(DTOFigmaNodeV2)
|
|
7990
8025
|
});
|
|
7991
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7992
|
-
type:
|
|
8026
|
+
var DTOFigmaNodeRenderActionInput = z272.object({
|
|
8027
|
+
type: z272.literal("FigmaNodeRender"),
|
|
7993
8028
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7994
8029
|
});
|
|
7995
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7996
|
-
type:
|
|
8030
|
+
var DTOFigmaNodeRenderAsyncActionInput = z272.object({
|
|
8031
|
+
type: z272.literal("FigmaNodeRenderAsync"),
|
|
7997
8032
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7998
8033
|
});
|
|
7999
8034
|
|
|
8000
8035
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
8001
|
-
import { z as
|
|
8002
|
-
var DTOFrameNodeStructure =
|
|
8003
|
-
id:
|
|
8004
|
-
persistentId:
|
|
8005
|
-
designSystemVersionId:
|
|
8036
|
+
import { z as z273 } from "zod";
|
|
8037
|
+
var DTOFrameNodeStructure = z273.object({
|
|
8038
|
+
id: z273.string(),
|
|
8039
|
+
persistentId: z273.string(),
|
|
8040
|
+
designSystemVersionId: z273.string(),
|
|
8006
8041
|
origin: FigmaFileStructureOrigin,
|
|
8007
8042
|
assetsInFile: FigmaFileStructureStatistics
|
|
8008
8043
|
});
|
|
8009
|
-
var DTOFrameNodeStructureListResponse =
|
|
8044
|
+
var DTOFrameNodeStructureListResponse = z273.object({
|
|
8010
8045
|
structures: DTOFrameNodeStructure.array()
|
|
8011
8046
|
});
|
|
8012
8047
|
|
|
8013
8048
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
8014
|
-
import { z as
|
|
8049
|
+
import { z as z274 } from "zod";
|
|
8015
8050
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
8016
|
-
var DTOElementPropertyDefinitionOption =
|
|
8017
|
-
id:
|
|
8018
|
-
name:
|
|
8051
|
+
var DTOElementPropertyDefinitionOption = z274.object({
|
|
8052
|
+
id: z274.string(),
|
|
8053
|
+
name: z274.string(),
|
|
8019
8054
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
8020
8055
|
});
|
|
8021
|
-
var DTOElementPropertyDefinition =
|
|
8022
|
-
id:
|
|
8023
|
-
designSystemVersionId:
|
|
8056
|
+
var DTOElementPropertyDefinition = z274.object({
|
|
8057
|
+
id: z274.string(),
|
|
8058
|
+
designSystemVersionId: z274.string(),
|
|
8024
8059
|
meta: DTOObjectMeta,
|
|
8025
|
-
persistentId:
|
|
8060
|
+
persistentId: z274.string(),
|
|
8026
8061
|
type: ElementPropertyTypeSchema,
|
|
8027
8062
|
targetElementType: ElementPropertyTargetType,
|
|
8028
|
-
codeName:
|
|
8029
|
-
options: nullishToOptional(
|
|
8063
|
+
codeName: z274.string().regex(CODE_NAME_REGEX2),
|
|
8064
|
+
options: nullishToOptional(z274.array(DTOElementPropertyDefinitionOption)),
|
|
8030
8065
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8031
|
-
isImmutable:
|
|
8066
|
+
isImmutable: z274.boolean(),
|
|
8032
8067
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
8033
8068
|
});
|
|
8034
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
8035
|
-
definitions:
|
|
8069
|
+
var DTOElementPropertyDefinitionListResponse = z274.object({
|
|
8070
|
+
definitions: z274.array(DTOElementPropertyDefinition)
|
|
8036
8071
|
});
|
|
8037
|
-
var DTOElementPropertyDefinitionResponse =
|
|
8072
|
+
var DTOElementPropertyDefinitionResponse = z274.object({
|
|
8038
8073
|
definition: DTOElementPropertyDefinition
|
|
8039
8074
|
});
|
|
8040
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
8075
|
+
var DTOElementPropertyDefinitionCreatePayload = z274.object({
|
|
8041
8076
|
meta: DTOObjectMeta,
|
|
8042
|
-
persistentId:
|
|
8077
|
+
persistentId: z274.string(),
|
|
8043
8078
|
type: ElementPropertyTypeSchema,
|
|
8044
8079
|
targetElementType: ElementPropertyTargetType,
|
|
8045
|
-
codeName:
|
|
8046
|
-
options: nullishToOptional(
|
|
8080
|
+
codeName: z274.string().regex(CODE_NAME_REGEX2),
|
|
8081
|
+
options: nullishToOptional(z274.array(DTOElementPropertyDefinitionOption)),
|
|
8047
8082
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8048
|
-
columnWidth:
|
|
8083
|
+
columnWidth: z274.number().max(1024).optional()
|
|
8049
8084
|
});
|
|
8050
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
8085
|
+
var DTOElementPropertyDefinitionUpdatePayload = z274.object({
|
|
8051
8086
|
meta: DTOObjectMeta.optional(),
|
|
8052
|
-
codeName:
|
|
8053
|
-
options:
|
|
8087
|
+
codeName: z274.string().regex(CODE_NAME_REGEX2).optional(),
|
|
8088
|
+
options: z274.array(DTOElementPropertyDefinitionOption).optional()
|
|
8054
8089
|
});
|
|
8055
8090
|
|
|
8056
8091
|
// src/api/dto/elements/properties/property-values.ts
|
|
8057
|
-
import { z as
|
|
8058
|
-
var DTOElementPropertyValue =
|
|
8059
|
-
id:
|
|
8060
|
-
designSystemVersionId:
|
|
8061
|
-
definitionId:
|
|
8062
|
-
targetElementId:
|
|
8063
|
-
value:
|
|
8064
|
-
valuePreview:
|
|
8065
|
-
});
|
|
8066
|
-
var DTOElementPropertyValueListResponse =
|
|
8067
|
-
values:
|
|
8068
|
-
});
|
|
8069
|
-
var DTOElementPropertyValueResponse =
|
|
8092
|
+
import { z as z275 } from "zod";
|
|
8093
|
+
var DTOElementPropertyValue = z275.object({
|
|
8094
|
+
id: z275.string(),
|
|
8095
|
+
designSystemVersionId: z275.string(),
|
|
8096
|
+
definitionId: z275.string(),
|
|
8097
|
+
targetElementId: z275.string(),
|
|
8098
|
+
value: z275.union([z275.string(), z275.number(), z275.boolean()]).optional(),
|
|
8099
|
+
valuePreview: z275.string().optional()
|
|
8100
|
+
});
|
|
8101
|
+
var DTOElementPropertyValueListResponse = z275.object({
|
|
8102
|
+
values: z275.array(DTOElementPropertyValue)
|
|
8103
|
+
});
|
|
8104
|
+
var DTOElementPropertyValueResponse = z275.object({
|
|
8070
8105
|
value: DTOElementPropertyValue
|
|
8071
8106
|
});
|
|
8072
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
8073
|
-
type:
|
|
8074
|
-
output:
|
|
8107
|
+
var DTOElementPropertyValuesEditActionOutput = z275.object({
|
|
8108
|
+
type: z275.literal("ElementPropertyValuesEdit"),
|
|
8109
|
+
output: z275.object({ success: z275.literal(true) })
|
|
8075
8110
|
});
|
|
8076
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
8077
|
-
definitionId:
|
|
8078
|
-
targetElementId:
|
|
8079
|
-
value:
|
|
8111
|
+
var DTOElementPropertyValueUpsertPaylod = z275.object({
|
|
8112
|
+
definitionId: z275.string(),
|
|
8113
|
+
targetElementId: z275.string(),
|
|
8114
|
+
value: z275.string().or(z275.number()).or(z275.boolean()).nullable()
|
|
8080
8115
|
});
|
|
8081
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
8082
|
-
type:
|
|
8116
|
+
var DTOElementPropertyValuesEditActionInput = z275.object({
|
|
8117
|
+
type: z275.literal("ElementPropertyValuesEdit"),
|
|
8083
8118
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
8084
8119
|
});
|
|
8085
8120
|
|
|
8086
8121
|
// src/api/dto/elements/elements-action-v2.ts
|
|
8087
|
-
import { z as
|
|
8088
|
-
var DTOElementActionOutput =
|
|
8122
|
+
import { z as z276 } from "zod";
|
|
8123
|
+
var DTOElementActionOutput = z276.discriminatedUnion("type", [
|
|
8089
8124
|
// Documentation pages
|
|
8090
8125
|
DTODocumentationPageCreateActionOutputV2,
|
|
8091
8126
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -8112,7 +8147,7 @@ var DTOElementActionOutput = z275.discriminatedUnion("type", [
|
|
|
8112
8147
|
// Element properties
|
|
8113
8148
|
DTOElementPropertyValuesEditActionOutput
|
|
8114
8149
|
]);
|
|
8115
|
-
var DTOElementActionInput =
|
|
8150
|
+
var DTOElementActionInput = z276.discriminatedUnion("type", [
|
|
8116
8151
|
// Documentation pages
|
|
8117
8152
|
DTODocumentationPageCreateActionInputV2,
|
|
8118
8153
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -8139,90 +8174,90 @@ var DTOElementActionInput = z275.discriminatedUnion("type", [
|
|
|
8139
8174
|
// Element properties
|
|
8140
8175
|
DTOElementPropertyValuesEditActionInput
|
|
8141
8176
|
]).and(
|
|
8142
|
-
|
|
8143
|
-
tId:
|
|
8177
|
+
z276.object({
|
|
8178
|
+
tId: z276.string().optional()
|
|
8144
8179
|
})
|
|
8145
8180
|
);
|
|
8146
8181
|
|
|
8147
8182
|
// src/api/dto/elements/get-elements-v2.ts
|
|
8148
|
-
import { z as
|
|
8149
|
-
var DTOElementsGetTypeFilter =
|
|
8150
|
-
var DTOElementsGetQuerySchema =
|
|
8151
|
-
types:
|
|
8152
|
-
responseVersion:
|
|
8183
|
+
import { z as z277 } from "zod";
|
|
8184
|
+
var DTOElementsGetTypeFilter = z277.enum(["FigmaNode"]);
|
|
8185
|
+
var DTOElementsGetQuerySchema = z277.object({
|
|
8186
|
+
types: z277.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8187
|
+
responseVersion: z277.coerce.number().default(1)
|
|
8153
8188
|
});
|
|
8154
|
-
var DTOElementsGetOutput =
|
|
8155
|
-
figmaNodes:
|
|
8189
|
+
var DTOElementsGetOutput = z277.object({
|
|
8190
|
+
figmaNodes: z277.array(DTOFigmaNode).optional()
|
|
8156
8191
|
});
|
|
8157
|
-
var DTOElementsGetOutputV2 =
|
|
8158
|
-
figmaNodes:
|
|
8192
|
+
var DTOElementsGetOutputV2 = z277.object({
|
|
8193
|
+
figmaNodes: z277.array(DTOFigmaNodeV2).optional()
|
|
8159
8194
|
});
|
|
8160
8195
|
|
|
8161
8196
|
// src/api/dto/figma-components/assets/download.ts
|
|
8162
|
-
import { z as
|
|
8163
|
-
var DTOAssetRenderConfiguration =
|
|
8164
|
-
prefix:
|
|
8165
|
-
suffix:
|
|
8166
|
-
scale:
|
|
8167
|
-
format:
|
|
8168
|
-
});
|
|
8169
|
-
var DTORenderedAssetFile =
|
|
8170
|
-
assetId:
|
|
8171
|
-
fileName:
|
|
8172
|
-
sourceUrl:
|
|
8197
|
+
import { z as z278 } from "zod";
|
|
8198
|
+
var DTOAssetRenderConfiguration = z278.object({
|
|
8199
|
+
prefix: z278.string().optional(),
|
|
8200
|
+
suffix: z278.string().optional(),
|
|
8201
|
+
scale: z278.enum(["x1", "x2", "x3", "x4"]),
|
|
8202
|
+
format: z278.enum(["png", "pdf", "svg"])
|
|
8203
|
+
});
|
|
8204
|
+
var DTORenderedAssetFile = z278.object({
|
|
8205
|
+
assetId: z278.string(),
|
|
8206
|
+
fileName: z278.string(),
|
|
8207
|
+
sourceUrl: z278.string(),
|
|
8173
8208
|
settings: DTOAssetRenderConfiguration,
|
|
8174
|
-
originalName:
|
|
8209
|
+
originalName: z278.string()
|
|
8175
8210
|
});
|
|
8176
|
-
var DTODownloadAssetsRequest =
|
|
8177
|
-
persistentIds:
|
|
8211
|
+
var DTODownloadAssetsRequest = z278.object({
|
|
8212
|
+
persistentIds: z278.array(z278.string().uuid()).optional(),
|
|
8178
8213
|
settings: DTOAssetRenderConfiguration.array()
|
|
8179
8214
|
});
|
|
8180
|
-
var DTODownloadAssetsResponse =
|
|
8215
|
+
var DTODownloadAssetsResponse = z278.object({
|
|
8181
8216
|
items: DTORenderedAssetFile.array()
|
|
8182
8217
|
});
|
|
8183
8218
|
|
|
8184
8219
|
// src/api/dto/liveblocks/auth-response.ts
|
|
8185
|
-
import { z as
|
|
8186
|
-
var DTOLiveblocksAuthResponse =
|
|
8187
|
-
token:
|
|
8220
|
+
import { z as z279 } from "zod";
|
|
8221
|
+
var DTOLiveblocksAuthResponse = z279.object({
|
|
8222
|
+
token: z279.string()
|
|
8188
8223
|
});
|
|
8189
8224
|
|
|
8190
8225
|
// src/api/dto/themes/override.ts
|
|
8191
|
-
import { z as
|
|
8226
|
+
import { z as z280 } from "zod";
|
|
8192
8227
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
8193
|
-
|
|
8194
|
-
tokenPersistentId:
|
|
8228
|
+
z280.object({
|
|
8229
|
+
tokenPersistentId: z280.string(),
|
|
8195
8230
|
origin: ThemeOverrideOrigin.optional()
|
|
8196
8231
|
})
|
|
8197
8232
|
);
|
|
8198
8233
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
8199
|
-
|
|
8200
|
-
tokenPersistentId:
|
|
8234
|
+
z280.object({
|
|
8235
|
+
tokenPersistentId: z280.string()
|
|
8201
8236
|
})
|
|
8202
8237
|
);
|
|
8203
8238
|
|
|
8204
8239
|
// src/api/dto/themes/theme.ts
|
|
8205
|
-
import { z as
|
|
8206
|
-
var DTOTheme =
|
|
8207
|
-
id:
|
|
8208
|
-
persistentId:
|
|
8209
|
-
designSystemVersionId:
|
|
8210
|
-
brandId:
|
|
8240
|
+
import { z as z281 } from "zod";
|
|
8241
|
+
var DTOTheme = z281.object({
|
|
8242
|
+
id: z281.string(),
|
|
8243
|
+
persistentId: z281.string(),
|
|
8244
|
+
designSystemVersionId: z281.string(),
|
|
8245
|
+
brandId: z281.string(),
|
|
8211
8246
|
meta: ObjectMeta,
|
|
8212
|
-
codeName:
|
|
8247
|
+
codeName: z281.string(),
|
|
8213
8248
|
overrides: DTOThemeOverride.array()
|
|
8214
8249
|
});
|
|
8215
|
-
var DTOThemeResponse =
|
|
8250
|
+
var DTOThemeResponse = z281.object({
|
|
8216
8251
|
theme: DTOTheme
|
|
8217
8252
|
});
|
|
8218
|
-
var DTOThemeListResponse =
|
|
8253
|
+
var DTOThemeListResponse = z281.object({
|
|
8219
8254
|
themes: DTOTheme.array()
|
|
8220
8255
|
});
|
|
8221
|
-
var DTOThemeCreatePayload =
|
|
8256
|
+
var DTOThemeCreatePayload = z281.object({
|
|
8222
8257
|
meta: ObjectMeta,
|
|
8223
|
-
persistentId:
|
|
8224
|
-
brandId:
|
|
8225
|
-
codeName:
|
|
8258
|
+
persistentId: z281.string(),
|
|
8259
|
+
brandId: z281.string(),
|
|
8260
|
+
codeName: z281.string(),
|
|
8226
8261
|
overrides: DTOThemeOverride.array()
|
|
8227
8262
|
});
|
|
8228
8263
|
|
|
@@ -8458,13 +8493,13 @@ var ExportersEndpoint = class {
|
|
|
8458
8493
|
};
|
|
8459
8494
|
|
|
8460
8495
|
// src/api/endpoints/codegen/jobs.ts
|
|
8461
|
-
import { z as
|
|
8496
|
+
import { z as z282 } from "zod";
|
|
8462
8497
|
var ExporterJobsEndpoint = class {
|
|
8463
8498
|
constructor(requestExecutor) {
|
|
8464
8499
|
this.requestExecutor = requestExecutor;
|
|
8465
8500
|
}
|
|
8466
8501
|
list(workspaceId) {
|
|
8467
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
8502
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z282.any());
|
|
8468
8503
|
}
|
|
8469
8504
|
get(workspaceId, jobId) {
|
|
8470
8505
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -8522,7 +8557,7 @@ var CodegenEndpoint = class {
|
|
|
8522
8557
|
};
|
|
8523
8558
|
|
|
8524
8559
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
8525
|
-
import { z as
|
|
8560
|
+
import { z as z283 } from "zod";
|
|
8526
8561
|
var BrandsEndpoint = class {
|
|
8527
8562
|
constructor(requestExecutor) {
|
|
8528
8563
|
this.requestExecutor = requestExecutor;
|
|
@@ -8556,7 +8591,7 @@ var BrandsEndpoint = class {
|
|
|
8556
8591
|
});
|
|
8557
8592
|
}
|
|
8558
8593
|
delete(dsId, vId, brandId) {
|
|
8559
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
8594
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z283.any(), {
|
|
8560
8595
|
method: "DELETE"
|
|
8561
8596
|
});
|
|
8562
8597
|
}
|
|
@@ -8775,6 +8810,33 @@ var FigmaFrameStructuresEndpoint = class {
|
|
|
8775
8810
|
}
|
|
8776
8811
|
};
|
|
8777
8812
|
|
|
8813
|
+
// src/api/endpoints/design-system/versions/files.ts
|
|
8814
|
+
var FilesEndpoint = class {
|
|
8815
|
+
constructor(requestExecutor) {
|
|
8816
|
+
this.requestExecutor = requestExecutor;
|
|
8817
|
+
}
|
|
8818
|
+
upload(designSystemId, versionId, body) {
|
|
8819
|
+
return this.requestExecutor.json(
|
|
8820
|
+
`/design-systems/${designSystemId}/versions/${versionId}/files/upload`,
|
|
8821
|
+
DTOFileUploadResponse,
|
|
8822
|
+
{
|
|
8823
|
+
method: "POST",
|
|
8824
|
+
body
|
|
8825
|
+
}
|
|
8826
|
+
);
|
|
8827
|
+
}
|
|
8828
|
+
finalize(designSystemId, versionId, body) {
|
|
8829
|
+
return this.requestExecutor.json(
|
|
8830
|
+
`/design-systems/${designSystemId}/versions/${versionId}/files/finalize`,
|
|
8831
|
+
DTOFileUploadFinalizeResponse,
|
|
8832
|
+
{
|
|
8833
|
+
method: "POST",
|
|
8834
|
+
body
|
|
8835
|
+
}
|
|
8836
|
+
);
|
|
8837
|
+
}
|
|
8838
|
+
};
|
|
8839
|
+
|
|
8778
8840
|
// src/api/endpoints/design-system/versions/import-jobs.ts
|
|
8779
8841
|
var ImportJobsEndpoint = class {
|
|
8780
8842
|
constructor(requestExecutor) {
|
|
@@ -8789,7 +8851,7 @@ var ImportJobsEndpoint = class {
|
|
|
8789
8851
|
};
|
|
8790
8852
|
|
|
8791
8853
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
8792
|
-
import { z as
|
|
8854
|
+
import { z as z284 } from "zod";
|
|
8793
8855
|
var OverridesEndpoint = class {
|
|
8794
8856
|
constructor(requestExecutor) {
|
|
8795
8857
|
this.requestExecutor = requestExecutor;
|
|
@@ -8797,7 +8859,7 @@ var OverridesEndpoint = class {
|
|
|
8797
8859
|
create(dsId, versionId, themeId, body) {
|
|
8798
8860
|
return this.requestExecutor.json(
|
|
8799
8861
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
8800
|
-
|
|
8862
|
+
z284.any(),
|
|
8801
8863
|
{
|
|
8802
8864
|
method: "POST",
|
|
8803
8865
|
body
|
|
@@ -8807,7 +8869,7 @@ var OverridesEndpoint = class {
|
|
|
8807
8869
|
};
|
|
8808
8870
|
|
|
8809
8871
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
8810
|
-
import { z as
|
|
8872
|
+
import { z as z285 } from "zod";
|
|
8811
8873
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
8812
8874
|
constructor(requestExecutor) {
|
|
8813
8875
|
this.requestExecutor = requestExecutor;
|
|
@@ -8835,7 +8897,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
8835
8897
|
delete(designSystemId, versionId, defId) {
|
|
8836
8898
|
return this.requestExecutor.json(
|
|
8837
8899
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
8838
|
-
|
|
8900
|
+
z285.any(),
|
|
8839
8901
|
{ method: "DELETE" }
|
|
8840
8902
|
);
|
|
8841
8903
|
}
|
|
@@ -8874,7 +8936,7 @@ var VersionStatsEndpoint = class {
|
|
|
8874
8936
|
};
|
|
8875
8937
|
|
|
8876
8938
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8877
|
-
import { z as
|
|
8939
|
+
import { z as z286 } from "zod";
|
|
8878
8940
|
var ThemesEndpoint = class {
|
|
8879
8941
|
constructor(requestExecutor) {
|
|
8880
8942
|
this.requestExecutor = requestExecutor;
|
|
@@ -8897,7 +8959,7 @@ var ThemesEndpoint = class {
|
|
|
8897
8959
|
});
|
|
8898
8960
|
}
|
|
8899
8961
|
delete(dsId, versionId, themeId) {
|
|
8900
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8962
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z286.any(), {
|
|
8901
8963
|
method: "DELETE"
|
|
8902
8964
|
});
|
|
8903
8965
|
}
|
|
@@ -8985,6 +9047,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
8985
9047
|
__publicField(this, "designSystemComponents");
|
|
8986
9048
|
__publicField(this, "documentation");
|
|
8987
9049
|
__publicField(this, "codeComponents");
|
|
9050
|
+
__publicField(this, "files");
|
|
8988
9051
|
this.themes = new ThemesEndpoint(requestExecutor);
|
|
8989
9052
|
this.brands = new BrandsEndpoint(requestExecutor);
|
|
8990
9053
|
this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
|
|
@@ -9002,6 +9065,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
9002
9065
|
this.designSystemComponents = new DesignSystemComponentEndpoint(requestExecutor);
|
|
9003
9066
|
this.documentation = new DocumentationEndpoint(requestExecutor);
|
|
9004
9067
|
this.codeComponents = new CodeComponentsEndpoint(requestExecutor);
|
|
9068
|
+
this.files = new FilesEndpoint(requestExecutor);
|
|
9005
9069
|
}
|
|
9006
9070
|
list(dsId) {
|
|
9007
9071
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
@@ -9066,7 +9130,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
9066
9130
|
};
|
|
9067
9131
|
|
|
9068
9132
|
// src/api/endpoints/design-system/design-systems.ts
|
|
9069
|
-
import { z as
|
|
9133
|
+
import { z as z290 } from "zod";
|
|
9070
9134
|
|
|
9071
9135
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
9072
9136
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -9143,7 +9207,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
9143
9207
|
};
|
|
9144
9208
|
|
|
9145
9209
|
// src/api/endpoints/design-system/sources.ts
|
|
9146
|
-
import { z as
|
|
9210
|
+
import { z as z287 } from "zod";
|
|
9147
9211
|
var DesignSystemSourcesEndpoint = class {
|
|
9148
9212
|
constructor(requestExecutor) {
|
|
9149
9213
|
this.requestExecutor = requestExecutor;
|
|
@@ -9161,7 +9225,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
9161
9225
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
9162
9226
|
}
|
|
9163
9227
|
delete(dsId, sourceId) {
|
|
9164
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
9228
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z287.any(), { method: "DELETE" });
|
|
9165
9229
|
}
|
|
9166
9230
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
9167
9231
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -9204,7 +9268,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
9204
9268
|
};
|
|
9205
9269
|
|
|
9206
9270
|
// src/api/endpoints/design-system/storybook.ts
|
|
9207
|
-
import { z as
|
|
9271
|
+
import { z as z288 } from "zod";
|
|
9208
9272
|
var StorybookEntriesEndpoint = class {
|
|
9209
9273
|
constructor(requestExecutor) {
|
|
9210
9274
|
this.requestExecutor = requestExecutor;
|
|
@@ -9220,14 +9284,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
9220
9284
|
);
|
|
9221
9285
|
}
|
|
9222
9286
|
delete(dsId, entryId) {
|
|
9223
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
9287
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z288.any(), {
|
|
9224
9288
|
method: "DELETE"
|
|
9225
9289
|
});
|
|
9226
9290
|
}
|
|
9227
9291
|
};
|
|
9228
9292
|
|
|
9229
9293
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
9230
|
-
import { z as
|
|
9294
|
+
import { z as z289 } from "zod";
|
|
9231
9295
|
var StorybookHostingEndpoint = class {
|
|
9232
9296
|
constructor(requestExecutor) {
|
|
9233
9297
|
this.requestExecutor = requestExecutor;
|
|
@@ -9241,7 +9305,7 @@ var StorybookHostingEndpoint = class {
|
|
|
9241
9305
|
delete(dsId, storybookUploadId) {
|
|
9242
9306
|
return this.requestExecutor.json(
|
|
9243
9307
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
9244
|
-
|
|
9308
|
+
z289.object({ ok: z289.boolean() }),
|
|
9245
9309
|
{
|
|
9246
9310
|
method: "DELETE"
|
|
9247
9311
|
}
|
|
@@ -9299,7 +9363,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9299
9363
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
9300
9364
|
}
|
|
9301
9365
|
delete(dsId) {
|
|
9302
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
9366
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z290.any(), { method: "DELETE" });
|
|
9303
9367
|
}
|
|
9304
9368
|
update(dsId, body) {
|
|
9305
9369
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -9316,7 +9380,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9316
9380
|
};
|
|
9317
9381
|
|
|
9318
9382
|
// src/api/endpoints/workspaces/integrations.ts
|
|
9319
|
-
import { z as
|
|
9383
|
+
import { z as z291 } from "zod";
|
|
9320
9384
|
var WorkspaceIntegrationsEndpoint = class {
|
|
9321
9385
|
constructor(requestExecutor) {
|
|
9322
9386
|
this.requestExecutor = requestExecutor;
|
|
@@ -9325,7 +9389,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
9325
9389
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
9326
9390
|
}
|
|
9327
9391
|
delete(wsId, iId) {
|
|
9328
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
9392
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z291.unknown(), { method: "DELETE" });
|
|
9329
9393
|
}
|
|
9330
9394
|
};
|
|
9331
9395
|
|
|
@@ -9357,7 +9421,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
9357
9421
|
};
|
|
9358
9422
|
|
|
9359
9423
|
// src/api/endpoints/workspaces/members.ts
|
|
9360
|
-
import { z as
|
|
9424
|
+
import { z as z292 } from "zod";
|
|
9361
9425
|
var WorkspaceMembersEndpoint = class {
|
|
9362
9426
|
constructor(requestExecutor) {
|
|
9363
9427
|
this.requestExecutor = requestExecutor;
|
|
@@ -9374,7 +9438,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9374
9438
|
});
|
|
9375
9439
|
}
|
|
9376
9440
|
invite(workspaceId, body) {
|
|
9377
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
9441
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z292.any(), { method: "POST", body });
|
|
9378
9442
|
}
|
|
9379
9443
|
delete(workspaceId, userId) {
|
|
9380
9444
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -9403,7 +9467,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
9403
9467
|
};
|
|
9404
9468
|
|
|
9405
9469
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
9406
|
-
import { z as
|
|
9470
|
+
import { z as z293 } from "zod";
|
|
9407
9471
|
var WorkspacesEndpoint = class {
|
|
9408
9472
|
constructor(requestExecutor) {
|
|
9409
9473
|
this.requestExecutor = requestExecutor;
|
|
@@ -9433,10 +9497,10 @@ var WorkspacesEndpoint = class {
|
|
|
9433
9497
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
9434
9498
|
}
|
|
9435
9499
|
delete(workspaceId) {
|
|
9436
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
9500
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z293.any(), { method: "DELETE" });
|
|
9437
9501
|
}
|
|
9438
9502
|
subscription(workspaceId) {
|
|
9439
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
9503
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z293.any(), { method: "GET" });
|
|
9440
9504
|
}
|
|
9441
9505
|
transferOwnership(workspaceId, body) {
|
|
9442
9506
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -9536,9 +9600,9 @@ ${bodyText}`,
|
|
|
9536
9600
|
|
|
9537
9601
|
// src/api/transport/request-executor.ts
|
|
9538
9602
|
import fetch from "node-fetch";
|
|
9539
|
-
import { z as
|
|
9540
|
-
var ResponseWrapper =
|
|
9541
|
-
result:
|
|
9603
|
+
import { z as z294 } from "zod";
|
|
9604
|
+
var ResponseWrapper = z294.object({
|
|
9605
|
+
result: z294.record(z294.any())
|
|
9542
9606
|
});
|
|
9543
9607
|
var RequestExecutor = class {
|
|
9544
9608
|
constructor(testServerConfig) {
|
|
@@ -9612,31 +9676,31 @@ var SupernovaApiClient = class {
|
|
|
9612
9676
|
};
|
|
9613
9677
|
|
|
9614
9678
|
// src/events/design-system.ts
|
|
9615
|
-
import { z as
|
|
9616
|
-
var DTOEventFigmaNodesRendered =
|
|
9617
|
-
type:
|
|
9618
|
-
designSystemId:
|
|
9619
|
-
versionId:
|
|
9620
|
-
figmaNodePersistentIds:
|
|
9621
|
-
});
|
|
9622
|
-
var DTOEventDataSourcesImported =
|
|
9623
|
-
type:
|
|
9624
|
-
designSystemId:
|
|
9625
|
-
versionId:
|
|
9626
|
-
importJobId:
|
|
9679
|
+
import { z as z295 } from "zod";
|
|
9680
|
+
var DTOEventFigmaNodesRendered = z295.object({
|
|
9681
|
+
type: z295.literal("DesignSystem.FigmaNodesRendered"),
|
|
9682
|
+
designSystemId: z295.string(),
|
|
9683
|
+
versionId: z295.string(),
|
|
9684
|
+
figmaNodePersistentIds: z295.string().array()
|
|
9685
|
+
});
|
|
9686
|
+
var DTOEventDataSourcesImported = z295.object({
|
|
9687
|
+
type: z295.literal("DesignSystem.ImportJobFinished"),
|
|
9688
|
+
designSystemId: z295.string(),
|
|
9689
|
+
versionId: z295.string(),
|
|
9690
|
+
importJobId: z295.string(),
|
|
9627
9691
|
dataSourceType: DataSourceRemoteType,
|
|
9628
|
-
dataSourceIds:
|
|
9692
|
+
dataSourceIds: z295.string().array()
|
|
9629
9693
|
});
|
|
9630
9694
|
|
|
9631
9695
|
// src/events/event.ts
|
|
9632
|
-
import { z as
|
|
9633
|
-
var DTOEvent =
|
|
9696
|
+
import { z as z296 } from "zod";
|
|
9697
|
+
var DTOEvent = z296.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
9634
9698
|
|
|
9635
9699
|
// src/sync/docs-structure-repo.ts
|
|
9636
9700
|
import PQueue from "p-queue";
|
|
9637
9701
|
|
|
9638
9702
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9639
|
-
import { z as
|
|
9703
|
+
import { z as z297 } from "zod";
|
|
9640
9704
|
|
|
9641
9705
|
// src/yjs/version-room/base.ts
|
|
9642
9706
|
var VersionRoomBaseYDoc = class {
|
|
@@ -10186,24 +10250,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
10186
10250
|
};
|
|
10187
10251
|
|
|
10188
10252
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
10189
|
-
var DocumentationHierarchySettings =
|
|
10190
|
-
routingVersion:
|
|
10191
|
-
isDraftFeatureAdopted:
|
|
10192
|
-
isApprovalFeatureEnabled:
|
|
10193
|
-
approvalRequiredForPublishing:
|
|
10253
|
+
var DocumentationHierarchySettings = z297.object({
|
|
10254
|
+
routingVersion: z297.string(),
|
|
10255
|
+
isDraftFeatureAdopted: z297.boolean(),
|
|
10256
|
+
isApprovalFeatureEnabled: z297.boolean(),
|
|
10257
|
+
approvalRequiredForPublishing: z297.boolean()
|
|
10194
10258
|
});
|
|
10195
10259
|
function yjsToDocumentationHierarchy(doc) {
|
|
10196
10260
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
10197
10261
|
}
|
|
10198
10262
|
|
|
10199
10263
|
// src/yjs/design-system-content/item-configuration.ts
|
|
10200
|
-
import { z as
|
|
10201
|
-
var DTODocumentationPageRoomHeaderData =
|
|
10202
|
-
title:
|
|
10264
|
+
import { z as z298 } from "zod";
|
|
10265
|
+
var DTODocumentationPageRoomHeaderData = z298.object({
|
|
10266
|
+
title: z298.string(),
|
|
10203
10267
|
configuration: DTODocumentationItemConfigurationV2
|
|
10204
10268
|
});
|
|
10205
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
10206
|
-
title:
|
|
10269
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z298.object({
|
|
10270
|
+
title: z298.string().optional(),
|
|
10207
10271
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
10208
10272
|
});
|
|
10209
10273
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -10238,9 +10302,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
10238
10302
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
10239
10303
|
|
|
10240
10304
|
// src/yjs/docs-editor/model/page.ts
|
|
10241
|
-
import { z as
|
|
10242
|
-
var DocumentationPageEditorModel =
|
|
10243
|
-
blocks:
|
|
10305
|
+
import { z as z299 } from "zod";
|
|
10306
|
+
var DocumentationPageEditorModel = z299.object({
|
|
10307
|
+
blocks: z299.array(DocumentationPageContentItem)
|
|
10244
10308
|
});
|
|
10245
10309
|
|
|
10246
10310
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -13833,7 +13897,7 @@ var blocks = [
|
|
|
13833
13897
|
|
|
13834
13898
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
13835
13899
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
13836
|
-
import { z as
|
|
13900
|
+
import { z as z300 } from "zod";
|
|
13837
13901
|
function yDocToPage(yDoc, definitions) {
|
|
13838
13902
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
13839
13903
|
}
|
|
@@ -13909,7 +13973,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
13909
13973
|
if (!id) return null;
|
|
13910
13974
|
return {
|
|
13911
13975
|
id,
|
|
13912
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
13976
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z300.string()) ?? "",
|
|
13913
13977
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
13914
13978
|
};
|
|
13915
13979
|
}
|
|
@@ -13943,7 +14007,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
13943
14007
|
});
|
|
13944
14008
|
}
|
|
13945
14009
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
13946
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
14010
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z300.string());
|
|
13947
14011
|
if (!definitionId) {
|
|
13948
14012
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
13949
14013
|
return [];
|
|
@@ -13984,7 +14048,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
13984
14048
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13985
14049
|
if (!id) return null;
|
|
13986
14050
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13987
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
14051
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z300.string().optional()));
|
|
13988
14052
|
return {
|
|
13989
14053
|
id,
|
|
13990
14054
|
type: "Block",
|
|
@@ -14107,9 +14171,9 @@ function parseRichTextAttribute(mark) {
|
|
|
14107
14171
|
return null;
|
|
14108
14172
|
}
|
|
14109
14173
|
function parseProsemirrorLink(mark) {
|
|
14110
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
14174
|
+
const href = getProsemirrorAttribute(mark, "href", z300.string().optional());
|
|
14111
14175
|
if (!href) return null;
|
|
14112
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
14176
|
+
const target = getProsemirrorAttribute(mark, "target", z300.string().optional());
|
|
14113
14177
|
const openInNewTab = target === "_blank";
|
|
14114
14178
|
if (href.startsWith("@")) {
|
|
14115
14179
|
return {
|
|
@@ -14128,9 +14192,9 @@ function parseProsemirrorLink(mark) {
|
|
|
14128
14192
|
}
|
|
14129
14193
|
}
|
|
14130
14194
|
function parseProsemirrorCommentHighlight(mark) {
|
|
14131
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
14195
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z300.string().optional());
|
|
14132
14196
|
if (!highlightId) return null;
|
|
14133
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
14197
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z300.boolean().optional()) ?? false;
|
|
14134
14198
|
return {
|
|
14135
14199
|
type: "Comment",
|
|
14136
14200
|
commentHighlightId: highlightId,
|
|
@@ -14141,7 +14205,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
14141
14205
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
14142
14206
|
if (!id) return null;
|
|
14143
14207
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
14144
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
14208
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z300.boolean().optional()) !== false;
|
|
14145
14209
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
14146
14210
|
if (!tableChild) {
|
|
14147
14211
|
return emptyTable(id, variantId, 0);
|
|
@@ -14187,9 +14251,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
14187
14251
|
function parseAsTableCell(prosemirrorNode) {
|
|
14188
14252
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
14189
14253
|
if (!id) return null;
|
|
14190
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
14254
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z300.string().optional());
|
|
14191
14255
|
let columnWidth;
|
|
14192
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
14256
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z300.array(z300.number()).nullish());
|
|
14193
14257
|
if (columnWidthArray) {
|
|
14194
14258
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
14195
14259
|
}
|
|
@@ -14225,7 +14289,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
14225
14289
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
14226
14290
|
};
|
|
14227
14291
|
case "image":
|
|
14228
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14292
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z300.string());
|
|
14229
14293
|
if (!items) return null;
|
|
14230
14294
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
14231
14295
|
if (!parsedItems.success) return null;
|
|
@@ -14339,7 +14403,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
14339
14403
|
);
|
|
14340
14404
|
}
|
|
14341
14405
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
14342
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14406
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z300.string());
|
|
14343
14407
|
if (!itemsString) return null;
|
|
14344
14408
|
const itemsJson = JSON.parse(itemsString);
|
|
14345
14409
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -14350,18 +14414,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
14350
14414
|
}
|
|
14351
14415
|
function parseAppearance(prosemirrorNode) {
|
|
14352
14416
|
let appearance = {};
|
|
14353
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
14417
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z300.string().optional());
|
|
14354
14418
|
if (rawAppearanceString) {
|
|
14355
14419
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
14356
14420
|
if (parsedAppearance.success) {
|
|
14357
14421
|
appearance = parsedAppearance.data;
|
|
14358
14422
|
}
|
|
14359
14423
|
}
|
|
14360
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
14424
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z300.number().optional());
|
|
14361
14425
|
if (columns) {
|
|
14362
14426
|
appearance.numberOfColumns = columns;
|
|
14363
14427
|
}
|
|
14364
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
14428
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z300.string().optional());
|
|
14365
14429
|
if (backgroundColor) {
|
|
14366
14430
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
14367
14431
|
if (parsedColor.success) {
|
|
@@ -14460,12 +14524,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
14460
14524
|
}
|
|
14461
14525
|
}
|
|
14462
14526
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
14463
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
14527
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z300.string());
|
|
14464
14528
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
14465
14529
|
return id;
|
|
14466
14530
|
}
|
|
14467
14531
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
14468
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
14532
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z300.string()));
|
|
14469
14533
|
}
|
|
14470
14534
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
14471
14535
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -15263,6 +15327,12 @@ export {
|
|
|
15263
15327
|
DTOFigmaNodeStructureListResponse,
|
|
15264
15328
|
DTOFigmaNodeV2,
|
|
15265
15329
|
DTOFigmaSourceUpdatePayload,
|
|
15330
|
+
DTOFileUploadFinalizePayload,
|
|
15331
|
+
DTOFileUploadFinalizeResponse,
|
|
15332
|
+
DTOFileUploadItem,
|
|
15333
|
+
DTOFileUploadPayload,
|
|
15334
|
+
DTOFileUploadResponse,
|
|
15335
|
+
DTOFileUploadResponseItem,
|
|
15266
15336
|
DTOFrameNodeStructure,
|
|
15267
15337
|
DTOFrameNodeStructureListResponse,
|
|
15268
15338
|
DTOGetBlockDefinitionsOutput,
|
|
@@ -15348,6 +15418,7 @@ export {
|
|
|
15348
15418
|
DTOUpdateRegistryOutput,
|
|
15349
15419
|
DTOUpdateUserNotificationSettingsPayload,
|
|
15350
15420
|
DTOUpdateVersionInput,
|
|
15421
|
+
DTOUploadUrlItem,
|
|
15351
15422
|
DTOUser,
|
|
15352
15423
|
DTOUserDesignSystemsResponse,
|
|
15353
15424
|
DTOUserGetResponse,
|
|
@@ -15409,6 +15480,7 @@ export {
|
|
|
15409
15480
|
FigmaFrameStructuresEndpoint,
|
|
15410
15481
|
FigmaNodeStructuresEndpoint,
|
|
15411
15482
|
FigmaUtils,
|
|
15483
|
+
FilesEndpoint,
|
|
15412
15484
|
FormattedCollections,
|
|
15413
15485
|
FrontendVersionRoomYDoc,
|
|
15414
15486
|
GitDestinationOptions,
|