@supernova-studio/client 0.55.34 → 0.55.35
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 +6628 -360
- package/dist/index.d.ts +6628 -360
- package/dist/index.js +138 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +824 -704
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/data-source.ts +11 -18
- package/src/api/dto/design-systems/figma-variables.ts +107 -0
- package/src/api/dto/design-systems/import-job.ts +1 -0
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/design-tokens/design-token.ts +21 -0
- package/src/api/dto/design-tokens/index.ts +1 -0
- package/src/api/dto/index.ts +1 -0
- package/src/api/endpoints/design-system/design-systems.ts +3 -0
- package/src/api/endpoints/design-system/index.ts +1 -0
- package/src/api/endpoints/design-system/sources.ts +10 -0
- package/src/api/endpoints/design-system/versions/tokens.ts +8 -0
package/dist/index.mjs
CHANGED
|
@@ -5059,7 +5059,7 @@ var DTOPagination = z175.object({
|
|
|
5059
5059
|
});
|
|
5060
5060
|
|
|
5061
5061
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5062
|
-
import { z as
|
|
5062
|
+
import { z as z205 } from "zod";
|
|
5063
5063
|
|
|
5064
5064
|
// src/api/dto/design-systems/brand.ts
|
|
5065
5065
|
import { z as z176 } from "zod";
|
|
@@ -5089,7 +5089,7 @@ var DTODataSourceFigmaCloud = z177.object({
|
|
|
5089
5089
|
autoImportMode: DataSourceAutoImportMode,
|
|
5090
5090
|
fileThumbnailUrl: z177.string().optional(),
|
|
5091
5091
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5092
|
-
lastImportedAt: z177.date().nullish(),
|
|
5092
|
+
lastImportedAt: z177.coerce.date().nullish(),
|
|
5093
5093
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5094
5094
|
lastUpdatesCheckedAt: z177.date().nullish(),
|
|
5095
5095
|
ownerId: z177.string(),
|
|
@@ -5104,10 +5104,7 @@ var DTODataSourceFigma = z177.object({
|
|
|
5104
5104
|
scope: DataSourceFigmaScope,
|
|
5105
5105
|
brandId: z177.string(),
|
|
5106
5106
|
themeId: z177.string().nullish(),
|
|
5107
|
-
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5108
|
-
tokenStudio: z177.literal(null),
|
|
5109
|
-
upload: z177.literal(null),
|
|
5110
|
-
figmaVariablesPlugin: z177.literal(null)
|
|
5107
|
+
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5111
5108
|
});
|
|
5112
5109
|
var DTODataSourceTokenStudio = z177.object({
|
|
5113
5110
|
id: z177.string(),
|
|
@@ -5115,7 +5112,6 @@ var DTODataSourceTokenStudio = z177.object({
|
|
|
5115
5112
|
fileName: z177.string(),
|
|
5116
5113
|
brandId: z177.string(),
|
|
5117
5114
|
themeId: z177.string().nullish(),
|
|
5118
|
-
cloud: z177.literal(null),
|
|
5119
5115
|
tokenStudio: z177.object({
|
|
5120
5116
|
settings: z177.object({
|
|
5121
5117
|
dryRun: z177.boolean(),
|
|
@@ -5123,7 +5119,7 @@ var DTODataSourceTokenStudio = z177.object({
|
|
|
5123
5119
|
preciseCopy: z177.boolean()
|
|
5124
5120
|
}),
|
|
5125
5121
|
connectionName: z177.string(),
|
|
5126
|
-
lastImportedAt: z177.date(),
|
|
5122
|
+
lastImportedAt: z177.coerce.date(),
|
|
5127
5123
|
lastImportedResults: z177.array(
|
|
5128
5124
|
z177.object({
|
|
5129
5125
|
mapping: z177.object({
|
|
@@ -5137,28 +5133,25 @@ var DTODataSourceTokenStudio = z177.object({
|
|
|
5137
5133
|
tokensUpdated: z177.number()
|
|
5138
5134
|
})
|
|
5139
5135
|
)
|
|
5140
|
-
})
|
|
5141
|
-
upload: z177.literal(null),
|
|
5142
|
-
figmaVariablesPlugin: z177.literal(null)
|
|
5136
|
+
})
|
|
5143
5137
|
});
|
|
5144
5138
|
var DTODataSourceFigmaVariablesPlugin = z177.object({
|
|
5145
5139
|
id: z177.string(),
|
|
5146
5140
|
type: z177.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5147
5141
|
fileName: z177.string(),
|
|
5148
5142
|
brandId: z177.string(),
|
|
5149
|
-
themeId: z177.literal(null),
|
|
5150
|
-
cloud: z177.literal(null),
|
|
5151
|
-
tokenStudio: z177.literal(null),
|
|
5152
5143
|
upload: z177.object({
|
|
5153
5144
|
remoteId: z177.string(),
|
|
5154
5145
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5155
|
-
lastImportedAt: z177.date().optional(),
|
|
5156
|
-
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5146
|
+
lastImportedAt: z177.coerce.date().optional(),
|
|
5147
|
+
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5148
|
+
isTokenTypeSplitEnabled: z177.boolean()
|
|
5157
5149
|
}),
|
|
5158
5150
|
figmaVariablesPlugin: z177.object({
|
|
5159
5151
|
fileId: z177.string(),
|
|
5160
|
-
lastImportedAt: z177.date().optional(),
|
|
5161
|
-
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5152
|
+
lastImportedAt: z177.coerce.date().optional(),
|
|
5153
|
+
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5154
|
+
isTokenTypeSplitEnabled: z177.boolean()
|
|
5162
5155
|
})
|
|
5163
5156
|
});
|
|
5164
5157
|
var DTODataSource = z177.discriminatedUnion("type", [
|
|
@@ -5276,80 +5269,158 @@ import { z as z182 } from "zod";
|
|
|
5276
5269
|
var DTOExporterProperty = z182.any({});
|
|
5277
5270
|
var DTOExporterPropertyListResponse = z182.object({ items: z182.array(DTOExporterProperty) });
|
|
5278
5271
|
|
|
5279
|
-
// src/api/dto/design-systems/
|
|
5272
|
+
// src/api/dto/design-systems/figma-variables.ts
|
|
5280
5273
|
import { z as z183 } from "zod";
|
|
5281
|
-
var
|
|
5274
|
+
var DimensionsVariableScopeSchema = z183.enum([
|
|
5275
|
+
"CORNER_RADIUS",
|
|
5276
|
+
"WIDTH_HEIGHT",
|
|
5277
|
+
"GAP",
|
|
5278
|
+
"STROKE_FLOAT",
|
|
5279
|
+
"EFFECT_FLOAT",
|
|
5280
|
+
"OPACITY",
|
|
5281
|
+
"FONT_SIZE",
|
|
5282
|
+
"LINE_HEIGHT",
|
|
5283
|
+
"LETTER_SPACING",
|
|
5284
|
+
"PARAGRAPH_SPACING",
|
|
5285
|
+
"PARAGRAPH_INDENT"
|
|
5286
|
+
]);
|
|
5287
|
+
var StringVariableScopeSchema = z183.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE", "FONT_WEIGHT"]);
|
|
5288
|
+
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5289
|
+
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5290
|
+
var VariableScope = z183.string();
|
|
5291
|
+
var ReferencedVariableOrigin = z183.object({
|
|
5292
|
+
name: z183.string(),
|
|
5293
|
+
remote: z183.boolean()
|
|
5294
|
+
});
|
|
5295
|
+
var RGB = z183.object({
|
|
5296
|
+
r: z183.number(),
|
|
5297
|
+
g: z183.number(),
|
|
5298
|
+
b: z183.number()
|
|
5299
|
+
});
|
|
5300
|
+
var RGBA = RGB.extend({
|
|
5301
|
+
a: z183.number()
|
|
5302
|
+
});
|
|
5303
|
+
var VariableAlias = z183.object({
|
|
5304
|
+
type: z183.literal("VARIABLE_ALIAS"),
|
|
5282
5305
|
id: z183.string(),
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5306
|
+
resolvedValue: z183.boolean().or(z183.number()).or(z183.string()).or(RGBA).or(RGB).optional(),
|
|
5307
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z183.null())
|
|
5308
|
+
});
|
|
5309
|
+
var VariableValue = z183.boolean().or(z183.number()).or(z183.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5310
|
+
var ResolvedVariableType = z183.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5311
|
+
var Variable = z183.object({
|
|
5312
|
+
id: z183.string(),
|
|
5313
|
+
name: z183.string(),
|
|
5314
|
+
key: z183.string(),
|
|
5315
|
+
variableCollectionId: z183.string(),
|
|
5316
|
+
resolvedType: ResolvedVariableType,
|
|
5317
|
+
valuesByMode: z183.record(VariableValue),
|
|
5318
|
+
remote: z183.boolean(),
|
|
5319
|
+
description: z183.string(),
|
|
5320
|
+
hiddenFromPublishing: z183.boolean(),
|
|
5321
|
+
scopes: z183.array(VariableScope),
|
|
5322
|
+
codeSyntax: z183.record(z183.any()).optional()
|
|
5323
|
+
});
|
|
5324
|
+
var VariableMode = z183.object({
|
|
5325
|
+
modeId: z183.string(),
|
|
5326
|
+
name: z183.string()
|
|
5327
|
+
});
|
|
5328
|
+
var Collection = z183.object({
|
|
5329
|
+
id: z183.string(),
|
|
5330
|
+
name: z183.string(),
|
|
5331
|
+
modes: z183.array(VariableMode),
|
|
5332
|
+
defaultModeId: z183.string(),
|
|
5333
|
+
remote: z183.boolean(),
|
|
5334
|
+
hiddenFromPublishing: z183.boolean()
|
|
5335
|
+
});
|
|
5336
|
+
var VariablesMapping = z183.object({
|
|
5337
|
+
variableCollections: z183.array(z183.string()).min(1),
|
|
5338
|
+
variableMode: z183.string().min(1),
|
|
5339
|
+
supernovaBrand: z183.string().min(1),
|
|
5340
|
+
supernovaTheme: z183.string().min(1).optional().or(z183.null())
|
|
5341
|
+
});
|
|
5342
|
+
var FormattedCollections = z183.object({
|
|
5343
|
+
variables: z183.record(z183.string(), Variable),
|
|
5344
|
+
variableCollections: z183.record(z183.string(), Collection),
|
|
5345
|
+
mappings: z183.array(VariablesMapping).optional(),
|
|
5346
|
+
variablesOrder: z183.string().array().optional()
|
|
5347
|
+
});
|
|
5348
|
+
|
|
5349
|
+
// src/api/dto/design-systems/import-job.ts
|
|
5350
|
+
import { z as z184 } from "zod";
|
|
5351
|
+
var DTOImportJob = z184.object({
|
|
5352
|
+
id: z184.string(),
|
|
5353
|
+
designSystemId: z184.string(),
|
|
5354
|
+
designSystemVersionId: z184.string(),
|
|
5355
|
+
operation: z184.literal("Import"),
|
|
5356
|
+
createdAt: z184.coerce.date(),
|
|
5357
|
+
stateChangedAt: z184.coerce.date(),
|
|
5288
5358
|
state: ImportJobState,
|
|
5289
|
-
sourceIds:
|
|
5359
|
+
sourceIds: z184.string().array()
|
|
5290
5360
|
});
|
|
5291
|
-
var DTOImportJobResponse =
|
|
5361
|
+
var DTOImportJobResponse = z184.object({
|
|
5292
5362
|
job: DTOImportJob
|
|
5293
5363
|
});
|
|
5294
|
-
var DTOBffFigmaImportRequestBody =
|
|
5295
|
-
type:
|
|
5296
|
-
brandPersistentId:
|
|
5297
|
-
fileId:
|
|
5364
|
+
var DTOBffFigmaImportRequestBody = z184.object({
|
|
5365
|
+
type: z184.literal(DataSourceRemoteType.Enum.Figma),
|
|
5366
|
+
brandPersistentId: z184.string().optional(),
|
|
5367
|
+
fileId: z184.string(),
|
|
5298
5368
|
scope: DataSourceFigmaScope,
|
|
5299
5369
|
autoImportMode: DataSourceAutoImportMode
|
|
5300
5370
|
});
|
|
5301
|
-
var DTOBffUploadImportRequestBody =
|
|
5302
|
-
type:
|
|
5303
|
-
brandPersistentId:
|
|
5304
|
-
sourceName:
|
|
5305
|
-
remoteId:
|
|
5306
|
-
|
|
5371
|
+
var DTOBffUploadImportRequestBody = z184.object({
|
|
5372
|
+
type: z184.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5373
|
+
brandPersistentId: z184.string().optional(),
|
|
5374
|
+
sourceName: z184.string().optional(),
|
|
5375
|
+
remoteId: z184.string(),
|
|
5376
|
+
isTokenTypeSplitEnabled: z184.boolean().optional(),
|
|
5377
|
+
payload: z184.any()
|
|
5307
5378
|
});
|
|
5308
|
-
var DTOBffImportRequestBody =
|
|
5379
|
+
var DTOBffImportRequestBody = z184.discriminatedUnion("type", [
|
|
5309
5380
|
DTOBffFigmaImportRequestBody,
|
|
5310
5381
|
DTOBffUploadImportRequestBody
|
|
5311
5382
|
]);
|
|
5312
5383
|
|
|
5313
5384
|
// src/api/dto/design-systems/stats.ts
|
|
5314
|
-
import { z as
|
|
5315
|
-
var DTODesignSystemVersionStats =
|
|
5316
|
-
tokens:
|
|
5317
|
-
designSystemComponents:
|
|
5318
|
-
assets:
|
|
5319
|
-
documentationPages:
|
|
5385
|
+
import { z as z185 } from "zod";
|
|
5386
|
+
var DTODesignSystemVersionStats = z185.object({
|
|
5387
|
+
tokens: z185.number(),
|
|
5388
|
+
designSystemComponents: z185.number(),
|
|
5389
|
+
assets: z185.number(),
|
|
5390
|
+
documentationPages: z185.number()
|
|
5320
5391
|
});
|
|
5321
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5322
|
-
brandId:
|
|
5392
|
+
var DTODesignSystemVersionStatsQuery = z185.object({
|
|
5393
|
+
brandId: z185.string().optional()
|
|
5323
5394
|
});
|
|
5324
5395
|
|
|
5325
5396
|
// src/api/dto/design-systems/version.ts
|
|
5326
|
-
import { z as
|
|
5397
|
+
import { z as z197 } from "zod";
|
|
5327
5398
|
|
|
5328
5399
|
// src/api/payloads/design-systems/brand.ts
|
|
5329
|
-
import { z as
|
|
5330
|
-
var DTOCreateBrandInput =
|
|
5331
|
-
persistentId:
|
|
5332
|
-
meta:
|
|
5333
|
-
name:
|
|
5334
|
-
description:
|
|
5400
|
+
import { z as z186 } from "zod";
|
|
5401
|
+
var DTOCreateBrandInput = z186.object({
|
|
5402
|
+
persistentId: z186.string().uuid(),
|
|
5403
|
+
meta: z186.object({
|
|
5404
|
+
name: z186.string(),
|
|
5405
|
+
description: z186.string()
|
|
5335
5406
|
})
|
|
5336
5407
|
});
|
|
5337
5408
|
|
|
5338
5409
|
// src/api/payloads/design-systems/theme.ts
|
|
5339
|
-
import { z as
|
|
5340
|
-
var DTOCreateThemeInput =
|
|
5410
|
+
import { z as z187 } from "zod";
|
|
5411
|
+
var DTOCreateThemeInput = z187.object({
|
|
5341
5412
|
meta: ObjectMeta,
|
|
5342
|
-
persistentId:
|
|
5343
|
-
designSystemVersionId:
|
|
5344
|
-
brandId:
|
|
5345
|
-
codeName:
|
|
5346
|
-
version:
|
|
5347
|
-
overrides:
|
|
5413
|
+
persistentId: z187.string(),
|
|
5414
|
+
designSystemVersionId: z187.string(),
|
|
5415
|
+
brandId: z187.string(),
|
|
5416
|
+
codeName: z187.string(),
|
|
5417
|
+
version: z187.string().optional(),
|
|
5418
|
+
overrides: z187.array(z187.any())
|
|
5348
5419
|
// TODO Add actual overrides.
|
|
5349
5420
|
});
|
|
5350
5421
|
|
|
5351
5422
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5352
|
-
import { z as
|
|
5423
|
+
import { z as z188 } from "zod";
|
|
5353
5424
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5354
5425
|
id: true,
|
|
5355
5426
|
workspaceId: true,
|
|
@@ -5361,40 +5432,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5361
5432
|
}).extend({
|
|
5362
5433
|
meta: ObjectMeta.partial().optional()
|
|
5363
5434
|
});
|
|
5364
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5435
|
+
var DTODesignSystemUpdateAccessModeInput = z188.object({
|
|
5365
5436
|
accessMode: DesignSystemAccessMode,
|
|
5366
|
-
retain:
|
|
5367
|
-
userIds:
|
|
5368
|
-
inviteIds:
|
|
5437
|
+
retain: z188.object({
|
|
5438
|
+
userIds: z188.string().array(),
|
|
5439
|
+
inviteIds: z188.string().array()
|
|
5369
5440
|
}).optional()
|
|
5370
5441
|
});
|
|
5371
5442
|
|
|
5372
5443
|
// src/api/payloads/design-systems/version.ts
|
|
5373
|
-
import { z as
|
|
5374
|
-
var ObjectMeta2 =
|
|
5375
|
-
name:
|
|
5376
|
-
description:
|
|
5444
|
+
import { z as z189 } from "zod";
|
|
5445
|
+
var ObjectMeta2 = z189.object({
|
|
5446
|
+
name: z189.string().max(150).optional(),
|
|
5447
|
+
description: z189.string().max(2e3).optional()
|
|
5377
5448
|
});
|
|
5378
5449
|
function validateDesignSystemVersion(version) {
|
|
5379
5450
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5380
5451
|
return urlCompliantRegex.test(version);
|
|
5381
5452
|
}
|
|
5382
|
-
var DTOCreateVersionInput =
|
|
5453
|
+
var DTOCreateVersionInput = z189.object({
|
|
5383
5454
|
meta: ObjectMeta2,
|
|
5384
|
-
version:
|
|
5455
|
+
version: z189.string().refine(validateDesignSystemVersion, {
|
|
5385
5456
|
message: "Invalid semantic versioning format"
|
|
5386
5457
|
}),
|
|
5387
|
-
changeLog:
|
|
5458
|
+
changeLog: z189.string().optional()
|
|
5388
5459
|
});
|
|
5389
|
-
var DTOUpdateVersionInput =
|
|
5460
|
+
var DTOUpdateVersionInput = z189.object({
|
|
5390
5461
|
meta: ObjectMeta2,
|
|
5391
|
-
version:
|
|
5462
|
+
version: z189.string(),
|
|
5392
5463
|
// required for PUT, but not editable
|
|
5393
|
-
changeLog:
|
|
5464
|
+
changeLog: z189.string()
|
|
5394
5465
|
});
|
|
5395
5466
|
|
|
5396
5467
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5397
|
-
import { z as
|
|
5468
|
+
import { z as z190 } from "zod";
|
|
5398
5469
|
|
|
5399
5470
|
// src/api/dto/documentation/block-definition.ts
|
|
5400
5471
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5406,60 +5477,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5406
5477
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5407
5478
|
|
|
5408
5479
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5409
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5410
|
-
definitions:
|
|
5480
|
+
var DTOGetBlockDefinitionsOutput = z190.object({
|
|
5481
|
+
definitions: z190.array(DTOPageBlockDefinition)
|
|
5411
5482
|
});
|
|
5412
5483
|
|
|
5413
5484
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5414
|
-
import { z as
|
|
5415
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5416
|
-
environment:
|
|
5485
|
+
import { z as z191 } from "zod";
|
|
5486
|
+
var DTODocumentationPublishTypeQueryParams = z191.object({
|
|
5487
|
+
environment: z191.enum(["Live", "Preview"])
|
|
5417
5488
|
});
|
|
5418
5489
|
|
|
5419
5490
|
// src/api/payloads/export/pipeline.ts
|
|
5420
|
-
import { z as
|
|
5421
|
-
var DTOPipelineCreateBody =
|
|
5422
|
-
name:
|
|
5423
|
-
exporterId:
|
|
5424
|
-
designSystemId:
|
|
5425
|
-
isEnabled:
|
|
5491
|
+
import { z as z192 } from "zod";
|
|
5492
|
+
var DTOPipelineCreateBody = z192.object({
|
|
5493
|
+
name: z192.string(),
|
|
5494
|
+
exporterId: z192.string(),
|
|
5495
|
+
designSystemId: z192.string(),
|
|
5496
|
+
isEnabled: z192.boolean(),
|
|
5426
5497
|
eventType: PipelineEventType,
|
|
5427
|
-
brandPersistentId:
|
|
5428
|
-
themePersistentId:
|
|
5429
|
-
themePersistentIds:
|
|
5498
|
+
brandPersistentId: z192.string().optional(),
|
|
5499
|
+
themePersistentId: z192.string().optional(),
|
|
5500
|
+
themePersistentIds: z192.string().array().optional(),
|
|
5430
5501
|
destination: PipelineDestinationType.optional(),
|
|
5431
5502
|
gitQuery: GitObjectsQuery,
|
|
5432
|
-
destinations:
|
|
5503
|
+
destinations: z192.object({
|
|
5433
5504
|
s3: ExporterDestinationS3.nullish(),
|
|
5434
5505
|
azure: ExporterDestinationAzure.nullish(),
|
|
5435
5506
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5436
5507
|
github: ExporterDestinationGithub.nullish(),
|
|
5437
5508
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5438
5509
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5439
|
-
webhookUrl:
|
|
5510
|
+
webhookUrl: z192.string().nullish()
|
|
5440
5511
|
})
|
|
5441
5512
|
});
|
|
5442
5513
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5443
|
-
id:
|
|
5514
|
+
id: z192.string()
|
|
5444
5515
|
});
|
|
5445
|
-
var DTOPipelineTriggerBody =
|
|
5446
|
-
designSystemVersionId:
|
|
5516
|
+
var DTOPipelineTriggerBody = z192.object({
|
|
5517
|
+
designSystemVersionId: z192.string()
|
|
5447
5518
|
});
|
|
5448
5519
|
|
|
5449
5520
|
// src/api/payloads/liveblocks/auth.ts
|
|
5450
|
-
import { z as
|
|
5451
|
-
var DTOLiveblocksAuthRequest =
|
|
5452
|
-
room:
|
|
5521
|
+
import { z as z193 } from "zod";
|
|
5522
|
+
var DTOLiveblocksAuthRequest = z193.object({
|
|
5523
|
+
room: z193.string().optional()
|
|
5453
5524
|
});
|
|
5454
5525
|
|
|
5455
5526
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5456
|
-
import { z as
|
|
5457
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5527
|
+
import { z as z194 } from "zod";
|
|
5528
|
+
var DTOUpdateUserNotificationSettingsPayload = z194.object({
|
|
5458
5529
|
notificationSettings: UserNotificationSettings
|
|
5459
5530
|
});
|
|
5460
|
-
var DTOUserNotificationSettingsResponse =
|
|
5461
|
-
userId:
|
|
5462
|
-
workspaceId:
|
|
5531
|
+
var DTOUserNotificationSettingsResponse = z194.object({
|
|
5532
|
+
userId: z194.string(),
|
|
5533
|
+
workspaceId: z194.string(),
|
|
5463
5534
|
notificationSettings: UserNotificationSettings
|
|
5464
5535
|
});
|
|
5465
5536
|
|
|
@@ -5467,7 +5538,7 @@ var DTOUserNotificationSettingsResponse = z193.object({
|
|
|
5467
5538
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5468
5539
|
|
|
5469
5540
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5470
|
-
import { z as
|
|
5541
|
+
import { z as z195 } from "zod";
|
|
5471
5542
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5472
5543
|
function validateSsoPayload(ssoPayload) {
|
|
5473
5544
|
const keys = [];
|
|
@@ -5490,21 +5561,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5490
5561
|
keys
|
|
5491
5562
|
};
|
|
5492
5563
|
}
|
|
5493
|
-
var NpmRegistryInput =
|
|
5494
|
-
enabledScopes:
|
|
5495
|
-
customRegistryUrl:
|
|
5496
|
-
bypassProxy:
|
|
5497
|
-
npmProxyRegistryConfigId:
|
|
5498
|
-
npmProxyVersion:
|
|
5499
|
-
registryType:
|
|
5500
|
-
authType:
|
|
5501
|
-
authHeaderName:
|
|
5502
|
-
authHeaderValue:
|
|
5503
|
-
accessToken:
|
|
5504
|
-
username:
|
|
5505
|
-
password:
|
|
5506
|
-
});
|
|
5507
|
-
var WorkspaceConfigurationPayload =
|
|
5564
|
+
var NpmRegistryInput = z195.object({
|
|
5565
|
+
enabledScopes: z195.array(z195.string()),
|
|
5566
|
+
customRegistryUrl: z195.string().optional(),
|
|
5567
|
+
bypassProxy: z195.boolean().optional(),
|
|
5568
|
+
npmProxyRegistryConfigId: z195.string().optional(),
|
|
5569
|
+
npmProxyVersion: z195.number().optional(),
|
|
5570
|
+
registryType: z195.string(),
|
|
5571
|
+
authType: z195.string(),
|
|
5572
|
+
authHeaderName: z195.string(),
|
|
5573
|
+
authHeaderValue: z195.string(),
|
|
5574
|
+
accessToken: z195.string(),
|
|
5575
|
+
username: z195.string(),
|
|
5576
|
+
password: z195.string()
|
|
5577
|
+
});
|
|
5578
|
+
var WorkspaceConfigurationPayload = z195.object({
|
|
5508
5579
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5509
5580
|
sso: SsoProvider.partial().optional(),
|
|
5510
5581
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5512,217 +5583,217 @@ var WorkspaceConfigurationPayload = z194.object({
|
|
|
5512
5583
|
});
|
|
5513
5584
|
|
|
5514
5585
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5515
|
-
import { z as
|
|
5516
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5586
|
+
import { z as z196 } from "zod";
|
|
5587
|
+
var DTOWorkspaceIntegrationOauthInput = z196.object({
|
|
5517
5588
|
type: IntegrationType
|
|
5518
5589
|
});
|
|
5519
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5520
|
-
userId:
|
|
5590
|
+
var DTOWorkspaceIntegrationPATInput = z196.object({
|
|
5591
|
+
userId: z196.string(),
|
|
5521
5592
|
type: IntegrationType,
|
|
5522
5593
|
token: IntegrationToken
|
|
5523
5594
|
});
|
|
5524
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5525
|
-
organization:
|
|
5595
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z196.object({
|
|
5596
|
+
organization: z196.string().optional(),
|
|
5526
5597
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5527
|
-
project:
|
|
5598
|
+
project: z196.string().optional(),
|
|
5528
5599
|
// Only for Bitbucket and Azure
|
|
5529
|
-
repository:
|
|
5600
|
+
repository: z196.string().optional(),
|
|
5530
5601
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5531
|
-
branch:
|
|
5602
|
+
branch: z196.string().optional(),
|
|
5532
5603
|
// For all providers, useful for PR creations.
|
|
5533
|
-
user:
|
|
5604
|
+
user: z196.string().optional()
|
|
5534
5605
|
// Only for Gitlab User Repositories
|
|
5535
5606
|
});
|
|
5536
5607
|
|
|
5537
5608
|
// src/api/dto/design-systems/version.ts
|
|
5538
|
-
var DTODesignSystemVersion =
|
|
5539
|
-
id:
|
|
5540
|
-
createdAt:
|
|
5609
|
+
var DTODesignSystemVersion = z197.object({
|
|
5610
|
+
id: z197.string(),
|
|
5611
|
+
createdAt: z197.coerce.date(),
|
|
5541
5612
|
meta: ObjectMeta,
|
|
5542
|
-
version:
|
|
5543
|
-
isReadonly:
|
|
5544
|
-
changeLog:
|
|
5545
|
-
designSystemId:
|
|
5613
|
+
version: z197.string(),
|
|
5614
|
+
isReadonly: z197.boolean(),
|
|
5615
|
+
changeLog: z197.string(),
|
|
5616
|
+
designSystemId: z197.string()
|
|
5546
5617
|
});
|
|
5547
|
-
var DTODesignSystemVersionsListResponse =
|
|
5548
|
-
designSystemVersions:
|
|
5618
|
+
var DTODesignSystemVersionsListResponse = z197.object({
|
|
5619
|
+
designSystemVersions: z197.array(DTODesignSystemVersion)
|
|
5549
5620
|
});
|
|
5550
|
-
var DTODesignSystemVersionGetResponse =
|
|
5621
|
+
var DTODesignSystemVersionGetResponse = z197.object({
|
|
5551
5622
|
designSystemVersion: DTODesignSystemVersion
|
|
5552
5623
|
});
|
|
5553
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5624
|
+
var DTODesignSystemVersionCreationResponse = z197.object({
|
|
5554
5625
|
meta: ObjectMeta,
|
|
5555
|
-
version:
|
|
5556
|
-
changeLog:
|
|
5557
|
-
isReadOnly:
|
|
5558
|
-
designSystemId:
|
|
5559
|
-
jobId:
|
|
5560
|
-
});
|
|
5561
|
-
var VersionSQSPayload =
|
|
5562
|
-
jobId:
|
|
5563
|
-
designSystemId:
|
|
5626
|
+
version: z197.string(),
|
|
5627
|
+
changeLog: z197.string(),
|
|
5628
|
+
isReadOnly: z197.boolean(),
|
|
5629
|
+
designSystemId: z197.string(),
|
|
5630
|
+
jobId: z197.string()
|
|
5631
|
+
});
|
|
5632
|
+
var VersionSQSPayload = z197.object({
|
|
5633
|
+
jobId: z197.string(),
|
|
5634
|
+
designSystemId: z197.string(),
|
|
5564
5635
|
input: DTOCreateVersionInput
|
|
5565
5636
|
});
|
|
5566
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5567
|
-
jobs:
|
|
5637
|
+
var DTODesignSystemVersionJobsResponse = z197.object({
|
|
5638
|
+
jobs: z197.array(VersionCreationJob)
|
|
5568
5639
|
});
|
|
5569
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5640
|
+
var DTODesignSystemVersionJobStatusResponse = z197.object({
|
|
5570
5641
|
job: VersionCreationJob
|
|
5571
5642
|
});
|
|
5572
5643
|
|
|
5573
5644
|
// src/api/dto/design-systems/view.ts
|
|
5574
|
-
import { z as
|
|
5575
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5576
|
-
id:
|
|
5577
|
-
persistentId:
|
|
5578
|
-
width:
|
|
5645
|
+
import { z as z198 } from "zod";
|
|
5646
|
+
var DTOElementViewColumnSharedAttributes = z198.object({
|
|
5647
|
+
id: z198.string(),
|
|
5648
|
+
persistentId: z198.string(),
|
|
5649
|
+
width: z198.number()
|
|
5579
5650
|
});
|
|
5580
5651
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5581
|
-
type:
|
|
5652
|
+
type: z198.literal("BaseProperty"),
|
|
5582
5653
|
basePropertyType: ElementViewBaseColumnType
|
|
5583
5654
|
});
|
|
5584
5655
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5585
|
-
type:
|
|
5586
|
-
propertyDefinitionId:
|
|
5656
|
+
type: z198.literal("PropertyDefinition"),
|
|
5657
|
+
propertyDefinitionId: z198.string()
|
|
5587
5658
|
});
|
|
5588
5659
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5589
|
-
type:
|
|
5590
|
-
themeId:
|
|
5660
|
+
type: z198.literal("Theme"),
|
|
5661
|
+
themeId: z198.string()
|
|
5591
5662
|
});
|
|
5592
|
-
var DTOElementViewColumn =
|
|
5663
|
+
var DTOElementViewColumn = z198.discriminatedUnion("type", [
|
|
5593
5664
|
DTOElementViewBasePropertyColumn,
|
|
5594
5665
|
DTOElementViewPropertyDefinitionColumn,
|
|
5595
5666
|
DTOElementViewThemeColumn
|
|
5596
5667
|
]);
|
|
5597
|
-
var DTOElementView =
|
|
5668
|
+
var DTOElementView = z198.object({
|
|
5598
5669
|
meta: ObjectMeta,
|
|
5599
|
-
persistentId:
|
|
5670
|
+
persistentId: z198.string(),
|
|
5600
5671
|
targetElementType: ElementPropertyTargetType,
|
|
5601
|
-
id:
|
|
5602
|
-
isDefault:
|
|
5603
|
-
columns:
|
|
5672
|
+
id: z198.string(),
|
|
5673
|
+
isDefault: z198.boolean(),
|
|
5674
|
+
columns: z198.array(DTOElementViewColumn)
|
|
5604
5675
|
});
|
|
5605
|
-
var DTOElementViewsListResponse =
|
|
5606
|
-
elementDataViews:
|
|
5676
|
+
var DTOElementViewsListResponse = z198.object({
|
|
5677
|
+
elementDataViews: z198.array(DTOElementView)
|
|
5607
5678
|
});
|
|
5608
5679
|
|
|
5609
5680
|
// src/api/dto/workspaces/git.ts
|
|
5610
|
-
import { z as
|
|
5611
|
-
var DTOGitOrganization =
|
|
5612
|
-
id:
|
|
5613
|
-
name:
|
|
5614
|
-
url:
|
|
5615
|
-
slug:
|
|
5681
|
+
import { z as z199 } from "zod";
|
|
5682
|
+
var DTOGitOrganization = z199.object({
|
|
5683
|
+
id: z199.string(),
|
|
5684
|
+
name: z199.string(),
|
|
5685
|
+
url: z199.string(),
|
|
5686
|
+
slug: z199.string()
|
|
5616
5687
|
});
|
|
5617
|
-
var DTOGitProject =
|
|
5618
|
-
id:
|
|
5619
|
-
name:
|
|
5620
|
-
url:
|
|
5621
|
-
slug:
|
|
5688
|
+
var DTOGitProject = z199.object({
|
|
5689
|
+
id: z199.string(),
|
|
5690
|
+
name: z199.string(),
|
|
5691
|
+
url: z199.string(),
|
|
5692
|
+
slug: z199.string()
|
|
5622
5693
|
});
|
|
5623
|
-
var DTOGitRepository =
|
|
5624
|
-
id:
|
|
5625
|
-
name:
|
|
5626
|
-
url:
|
|
5627
|
-
slug:
|
|
5628
|
-
defaultBranch:
|
|
5694
|
+
var DTOGitRepository = z199.object({
|
|
5695
|
+
id: z199.string(),
|
|
5696
|
+
name: z199.string(),
|
|
5697
|
+
url: z199.string(),
|
|
5698
|
+
slug: z199.string(),
|
|
5699
|
+
defaultBranch: z199.string().optional()
|
|
5629
5700
|
});
|
|
5630
|
-
var DTOGitBranch =
|
|
5631
|
-
name:
|
|
5632
|
-
lastCommitId:
|
|
5701
|
+
var DTOGitBranch = z199.object({
|
|
5702
|
+
name: z199.string(),
|
|
5703
|
+
lastCommitId: z199.string()
|
|
5633
5704
|
});
|
|
5634
5705
|
|
|
5635
5706
|
// src/api/dto/workspaces/integrations.ts
|
|
5636
|
-
import { z as
|
|
5707
|
+
import { z as z200 } from "zod";
|
|
5637
5708
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5638
5709
|
accessToken: true,
|
|
5639
5710
|
refreshToken: true
|
|
5640
5711
|
});
|
|
5641
|
-
var DTOIntegration =
|
|
5642
|
-
id:
|
|
5643
|
-
workspaceId:
|
|
5712
|
+
var DTOIntegration = z200.object({
|
|
5713
|
+
id: z200.string(),
|
|
5714
|
+
workspaceId: z200.string(),
|
|
5644
5715
|
type: ExtendedIntegrationType,
|
|
5645
|
-
createdAt:
|
|
5646
|
-
integrationCredentials:
|
|
5647
|
-
integrationDesignSystems:
|
|
5716
|
+
createdAt: z200.coerce.date(),
|
|
5717
|
+
integrationCredentials: z200.array(DTOIntegrationCredentials).optional(),
|
|
5718
|
+
integrationDesignSystems: z200.array(IntegrationDesignSystem).optional()
|
|
5648
5719
|
});
|
|
5649
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5650
|
-
url:
|
|
5720
|
+
var DTOIntegrationOAuthGetResponse = z200.object({
|
|
5721
|
+
url: z200.string()
|
|
5651
5722
|
});
|
|
5652
|
-
var DTOIntegrationPostResponse =
|
|
5723
|
+
var DTOIntegrationPostResponse = z200.object({
|
|
5653
5724
|
integration: DTOIntegration
|
|
5654
5725
|
});
|
|
5655
|
-
var DTOIntegrationsGetListResponse =
|
|
5726
|
+
var DTOIntegrationsGetListResponse = z200.object({
|
|
5656
5727
|
integrations: DTOIntegration.array()
|
|
5657
5728
|
});
|
|
5658
5729
|
|
|
5659
5730
|
// src/api/dto/workspaces/invitations.ts
|
|
5660
|
-
import { z as
|
|
5661
|
-
var DTOWorkspaceInvitationInput =
|
|
5662
|
-
email:
|
|
5731
|
+
import { z as z201 } from "zod";
|
|
5732
|
+
var DTOWorkspaceInvitationInput = z201.object({
|
|
5733
|
+
email: z201.string().email(),
|
|
5663
5734
|
role: WorkspaceRoleSchema
|
|
5664
5735
|
});
|
|
5665
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5736
|
+
var DTOWorkspaceInvitationsListInput = z201.object({
|
|
5666
5737
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5667
|
-
designSystemId:
|
|
5738
|
+
designSystemId: z201.string().optional()
|
|
5668
5739
|
});
|
|
5669
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5740
|
+
var DTOWorkspaceInvitationsResponse = z201.object({
|
|
5670
5741
|
invitations: WorkspaceInvitation.array()
|
|
5671
5742
|
});
|
|
5672
|
-
var DTOWorkspaceInviteUpdate =
|
|
5743
|
+
var DTOWorkspaceInviteUpdate = z201.object({
|
|
5673
5744
|
role: WorkspaceRoleSchema
|
|
5674
5745
|
});
|
|
5675
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5746
|
+
var DTOWorkspaceInvitationUpdateResponse = z201.object({
|
|
5676
5747
|
invitation: WorkspaceInvitation
|
|
5677
5748
|
});
|
|
5678
5749
|
|
|
5679
5750
|
// src/api/dto/workspaces/membership.ts
|
|
5680
|
-
import { z as
|
|
5751
|
+
import { z as z204 } from "zod";
|
|
5681
5752
|
|
|
5682
5753
|
// src/api/dto/workspaces/workspace.ts
|
|
5683
|
-
import { z as
|
|
5754
|
+
import { z as z203 } from "zod";
|
|
5684
5755
|
|
|
5685
5756
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5686
|
-
import { z as
|
|
5757
|
+
import { z as z202 } from "zod";
|
|
5687
5758
|
var DTONpmRegistryConfigConstants = {
|
|
5688
5759
|
passwordPlaceholder: "redacted"
|
|
5689
5760
|
};
|
|
5690
|
-
var DTONpmRegistryConfig =
|
|
5761
|
+
var DTONpmRegistryConfig = z202.object({
|
|
5691
5762
|
// Registry basic configuration
|
|
5692
5763
|
registryType: NpmRegistryType,
|
|
5693
|
-
registryUrl:
|
|
5694
|
-
customRegistryUrl:
|
|
5764
|
+
registryUrl: z202.string(),
|
|
5765
|
+
customRegistryUrl: z202.string().optional(),
|
|
5695
5766
|
// URL of Supernova NPM packages proxy
|
|
5696
|
-
proxyUrl:
|
|
5767
|
+
proxyUrl: z202.string(),
|
|
5697
5768
|
// Auth configuration
|
|
5698
5769
|
authType: NpmRegistryAuthType,
|
|
5699
|
-
accessToken:
|
|
5700
|
-
username:
|
|
5701
|
-
password:
|
|
5770
|
+
accessToken: z202.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5771
|
+
username: z202.string().optional(),
|
|
5772
|
+
password: z202.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5702
5773
|
// NPM package scopes for whih the proxy should be enabled
|
|
5703
|
-
enabledScopes:
|
|
5774
|
+
enabledScopes: z202.array(z202.string()),
|
|
5704
5775
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5705
5776
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5706
|
-
bypassProxy:
|
|
5777
|
+
bypassProxy: z202.boolean()
|
|
5707
5778
|
});
|
|
5708
5779
|
|
|
5709
5780
|
// src/api/dto/workspaces/workspace.ts
|
|
5710
|
-
var DTOWorkspace =
|
|
5711
|
-
id:
|
|
5781
|
+
var DTOWorkspace = z203.object({
|
|
5782
|
+
id: z203.string(),
|
|
5712
5783
|
profile: WorkspaceProfile,
|
|
5713
5784
|
subscription: Subscription,
|
|
5714
5785
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5715
5786
|
});
|
|
5716
|
-
var DTOWorkspaceCreateInput =
|
|
5717
|
-
name:
|
|
5787
|
+
var DTOWorkspaceCreateInput = z203.object({
|
|
5788
|
+
name: z203.string()
|
|
5718
5789
|
});
|
|
5719
|
-
var DTOWorkspaceResponse =
|
|
5790
|
+
var DTOWorkspaceResponse = z203.object({
|
|
5720
5791
|
workspace: DTOWorkspace
|
|
5721
5792
|
});
|
|
5722
5793
|
|
|
5723
5794
|
// src/api/dto/workspaces/membership.ts
|
|
5724
|
-
var DTOWorkspaceRole =
|
|
5725
|
-
var DTOUserWorkspaceMembership =
|
|
5795
|
+
var DTOWorkspaceRole = z204.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5796
|
+
var DTOUserWorkspaceMembership = z204.object({
|
|
5726
5797
|
// Workspace the user is a member of
|
|
5727
5798
|
workspace: DTOWorkspace,
|
|
5728
5799
|
// Assigned role the user has in the workspace
|
|
@@ -5732,26 +5803,26 @@ var DTOUserWorkspaceMembership = z203.object({
|
|
|
5732
5803
|
// when a workspace's subscription is downgraded to free tier
|
|
5733
5804
|
effectiveRole: DTOWorkspaceRole
|
|
5734
5805
|
});
|
|
5735
|
-
var DTOWorkspaceMember =
|
|
5806
|
+
var DTOWorkspaceMember = z204.object({
|
|
5736
5807
|
user: User,
|
|
5737
5808
|
role: WorkspaceRoleSchema,
|
|
5738
5809
|
effectiveRole: WorkspaceRoleSchema
|
|
5739
5810
|
});
|
|
5740
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5741
|
-
membership:
|
|
5811
|
+
var DTOUserWorkspaceMembershipsResponse = z204.object({
|
|
5812
|
+
membership: z204.array(DTOUserWorkspaceMembership)
|
|
5742
5813
|
});
|
|
5743
|
-
var DTOWorkspaceMembersListResponse =
|
|
5744
|
-
members:
|
|
5814
|
+
var DTOWorkspaceMembersListResponse = z204.object({
|
|
5815
|
+
members: z204.array(DTOWorkspaceMember)
|
|
5745
5816
|
});
|
|
5746
5817
|
|
|
5747
5818
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5748
|
-
var DTOAppBootstrapDataQuery =
|
|
5749
|
-
preferredWorkspaceId:
|
|
5750
|
-
preferredDesignSystemId:
|
|
5751
|
-
preferredVersionId:
|
|
5752
|
-
preferredBrandId:
|
|
5819
|
+
var DTOAppBootstrapDataQuery = z205.object({
|
|
5820
|
+
preferredWorkspaceId: z205.string().optional(),
|
|
5821
|
+
preferredDesignSystemId: z205.string().optional(),
|
|
5822
|
+
preferredVersionId: z205.string().optional(),
|
|
5823
|
+
preferredBrandId: z205.string().optional()
|
|
5753
5824
|
});
|
|
5754
|
-
var DTOAppBootstrapDataResponse =
|
|
5825
|
+
var DTOAppBootstrapDataResponse = z205.object({
|
|
5755
5826
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5756
5827
|
designSystem: DTODesignSystem.optional(),
|
|
5757
5828
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5759,37 +5830,54 @@ var DTOAppBootstrapDataResponse = z204.object({
|
|
|
5759
5830
|
});
|
|
5760
5831
|
|
|
5761
5832
|
// src/api/dto/collections/collection.ts
|
|
5762
|
-
import { z as
|
|
5763
|
-
var DTOTokenCollection =
|
|
5764
|
-
id:
|
|
5765
|
-
persistentId:
|
|
5766
|
-
designSystemVersionId:
|
|
5833
|
+
import { z as z206 } from "zod";
|
|
5834
|
+
var DTOTokenCollection = z206.object({
|
|
5835
|
+
id: z206.string(),
|
|
5836
|
+
persistentId: z206.string(),
|
|
5837
|
+
designSystemVersionId: z206.string(),
|
|
5767
5838
|
meta: ObjectMeta,
|
|
5768
|
-
createdAt:
|
|
5769
|
-
updatedAt:
|
|
5770
|
-
origin:
|
|
5771
|
-
id:
|
|
5772
|
-
sourceId:
|
|
5839
|
+
createdAt: z206.coerce.date(),
|
|
5840
|
+
updatedAt: z206.coerce.date(),
|
|
5841
|
+
origin: z206.object({
|
|
5842
|
+
id: z206.string(),
|
|
5843
|
+
sourceId: z206.string()
|
|
5773
5844
|
})
|
|
5774
5845
|
});
|
|
5775
|
-
var DTOTokenCollectionsListReponse =
|
|
5846
|
+
var DTOTokenCollectionsListReponse = z206.object({
|
|
5776
5847
|
collections: DTOTokenCollection.array()
|
|
5777
5848
|
});
|
|
5778
5849
|
|
|
5850
|
+
// src/api/dto/design-tokens/design-token.ts
|
|
5851
|
+
import { z as z207 } from "zod";
|
|
5852
|
+
var DTODesignToken = DesignTokenTypedData.and(
|
|
5853
|
+
z207.object({
|
|
5854
|
+
id: z207.string(),
|
|
5855
|
+
persistentId: z207.string(),
|
|
5856
|
+
designSystemVersionId: z207.string(),
|
|
5857
|
+
meta: ObjectMeta,
|
|
5858
|
+
origin: DesignTokenOrigin.optional(),
|
|
5859
|
+
brandId: z207.string(),
|
|
5860
|
+
updatedAt: z207.coerce.date()
|
|
5861
|
+
})
|
|
5862
|
+
);
|
|
5863
|
+
var DTODesignTokenListResponse = z207.object({
|
|
5864
|
+
tokens: DTODesignToken.array()
|
|
5865
|
+
});
|
|
5866
|
+
|
|
5779
5867
|
// src/api/dto/documentation/anchor.ts
|
|
5780
|
-
import { z as
|
|
5868
|
+
import { z as z208 } from "zod";
|
|
5781
5869
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5782
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5783
|
-
anchors:
|
|
5870
|
+
var DTOGetDocumentationPageAnchorsResponse = z208.object({
|
|
5871
|
+
anchors: z208.array(DTODocumentationPageAnchor)
|
|
5784
5872
|
});
|
|
5785
5873
|
|
|
5786
5874
|
// src/api/dto/documentation/approvals.ts
|
|
5787
|
-
import { z as
|
|
5875
|
+
import { z as z209 } from "zod";
|
|
5788
5876
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5789
|
-
var DTODocumentationGroupApprovalState =
|
|
5790
|
-
persistentId:
|
|
5791
|
-
groupId:
|
|
5792
|
-
designSystemVersionId:
|
|
5877
|
+
var DTODocumentationGroupApprovalState = z209.object({
|
|
5878
|
+
persistentId: z209.string(),
|
|
5879
|
+
groupId: z209.string(),
|
|
5880
|
+
designSystemVersionId: z209.string(),
|
|
5793
5881
|
approvalState: DocumentationPageApprovalState
|
|
5794
5882
|
});
|
|
5795
5883
|
|
|
@@ -5797,68 +5885,68 @@ var DTODocumentationGroupApprovalState = z207.object({
|
|
|
5797
5885
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5798
5886
|
|
|
5799
5887
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5800
|
-
import { z as
|
|
5888
|
+
import { z as z214 } from "zod";
|
|
5801
5889
|
|
|
5802
5890
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5803
|
-
import { z as
|
|
5891
|
+
import { z as z213 } from "zod";
|
|
5804
5892
|
|
|
5805
5893
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5806
|
-
import { z as
|
|
5894
|
+
import { z as z211 } from "zod";
|
|
5807
5895
|
|
|
5808
5896
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5809
|
-
import { z as
|
|
5897
|
+
import { z as z210 } from "zod";
|
|
5810
5898
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5811
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5812
|
-
showSidebar:
|
|
5813
|
-
isPrivate:
|
|
5814
|
-
isHidden:
|
|
5899
|
+
var DTODocumentationItemConfigurationV2 = z210.object({
|
|
5900
|
+
showSidebar: z210.boolean(),
|
|
5901
|
+
isPrivate: z210.boolean(),
|
|
5902
|
+
isHidden: z210.boolean(),
|
|
5815
5903
|
header: DTODocumentationItemHeaderV2
|
|
5816
5904
|
});
|
|
5817
5905
|
|
|
5818
5906
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5819
|
-
var DTODocumentationDraftChangeType =
|
|
5820
|
-
var DTODocumentationDraftStateCreated =
|
|
5821
|
-
changeType:
|
|
5822
|
-
});
|
|
5823
|
-
var DTODocumentationDraftStateUpdated =
|
|
5824
|
-
changeType:
|
|
5825
|
-
changes:
|
|
5826
|
-
previousTitle:
|
|
5907
|
+
var DTODocumentationDraftChangeType = z211.enum(["Created", "Updated", "Deleted"]);
|
|
5908
|
+
var DTODocumentationDraftStateCreated = z211.object({
|
|
5909
|
+
changeType: z211.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5910
|
+
});
|
|
5911
|
+
var DTODocumentationDraftStateUpdated = z211.object({
|
|
5912
|
+
changeType: z211.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5913
|
+
changes: z211.object({
|
|
5914
|
+
previousTitle: z211.string().optional(),
|
|
5827
5915
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5828
|
-
previousContentHash:
|
|
5916
|
+
previousContentHash: z211.string().optional()
|
|
5829
5917
|
})
|
|
5830
5918
|
});
|
|
5831
|
-
var DTODocumentationDraftStateDeleted =
|
|
5832
|
-
changeType:
|
|
5833
|
-
deletedAt:
|
|
5834
|
-
deletedByUserId:
|
|
5919
|
+
var DTODocumentationDraftStateDeleted = z211.object({
|
|
5920
|
+
changeType: z211.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5921
|
+
deletedAt: z211.coerce.date(),
|
|
5922
|
+
deletedByUserId: z211.string()
|
|
5835
5923
|
});
|
|
5836
|
-
var DTODocumentationDraftState =
|
|
5924
|
+
var DTODocumentationDraftState = z211.discriminatedUnion("changeType", [
|
|
5837
5925
|
DTODocumentationDraftStateCreated,
|
|
5838
5926
|
DTODocumentationDraftStateUpdated,
|
|
5839
5927
|
DTODocumentationDraftStateDeleted
|
|
5840
5928
|
]);
|
|
5841
5929
|
|
|
5842
5930
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5843
|
-
import { z as
|
|
5844
|
-
var DTODocumentationPublishMetadata =
|
|
5845
|
-
lastPublishedByUserId:
|
|
5846
|
-
lastPublishedAt:
|
|
5931
|
+
import { z as z212 } from "zod";
|
|
5932
|
+
var DTODocumentationPublishMetadata = z212.object({
|
|
5933
|
+
lastPublishedByUserId: z212.string(),
|
|
5934
|
+
lastPublishedAt: z212.coerce.date()
|
|
5847
5935
|
});
|
|
5848
5936
|
|
|
5849
5937
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5850
|
-
var DTODocumentationPageV2 =
|
|
5851
|
-
id:
|
|
5852
|
-
persistentId:
|
|
5853
|
-
designSystemVersionId:
|
|
5854
|
-
title:
|
|
5938
|
+
var DTODocumentationPageV2 = z213.object({
|
|
5939
|
+
id: z213.string(),
|
|
5940
|
+
persistentId: z213.string(),
|
|
5941
|
+
designSystemVersionId: z213.string(),
|
|
5942
|
+
title: z213.string(),
|
|
5855
5943
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5856
|
-
shortPersistentId:
|
|
5857
|
-
slug:
|
|
5858
|
-
userSlug:
|
|
5859
|
-
createdAt:
|
|
5860
|
-
updatedAt:
|
|
5861
|
-
path:
|
|
5944
|
+
shortPersistentId: z213.string(),
|
|
5945
|
+
slug: z213.string().optional(),
|
|
5946
|
+
userSlug: z213.string().optional(),
|
|
5947
|
+
createdAt: z213.coerce.date(),
|
|
5948
|
+
updatedAt: z213.coerce.date(),
|
|
5949
|
+
path: z213.string(),
|
|
5862
5950
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5863
5951
|
draftState: DTODocumentationDraftState.optional(),
|
|
5864
5952
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5866,197 +5954,197 @@ var DTODocumentationPageV2 = z211.object({
|
|
|
5866
5954
|
/** Defines the approval state of the documentation page */
|
|
5867
5955
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5868
5956
|
// Backward compatibility
|
|
5869
|
-
type:
|
|
5957
|
+
type: z213.literal("Page")
|
|
5870
5958
|
});
|
|
5871
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5959
|
+
var DTOCreateDocumentationPageInputV2 = z213.object({
|
|
5872
5960
|
// Identifier
|
|
5873
|
-
persistentId:
|
|
5961
|
+
persistentId: z213.string(),
|
|
5874
5962
|
// Page properties
|
|
5875
|
-
title:
|
|
5963
|
+
title: z213.string(),
|
|
5876
5964
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5877
5965
|
// Page placement properties
|
|
5878
|
-
parentPersistentId:
|
|
5879
|
-
afterPersistentId:
|
|
5966
|
+
parentPersistentId: z213.string(),
|
|
5967
|
+
afterPersistentId: z213.string().nullish()
|
|
5880
5968
|
});
|
|
5881
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5969
|
+
var DTOUpdateDocumentationPageInputV2 = z213.object({
|
|
5882
5970
|
// Identifier of the group to update
|
|
5883
|
-
id:
|
|
5971
|
+
id: z213.string(),
|
|
5884
5972
|
// Page properties
|
|
5885
|
-
title:
|
|
5973
|
+
title: z213.string().optional(),
|
|
5886
5974
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5887
5975
|
});
|
|
5888
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5976
|
+
var DTOMoveDocumentationPageInputV2 = z213.object({
|
|
5889
5977
|
// Identifier of the group to update
|
|
5890
|
-
id:
|
|
5978
|
+
id: z213.string(),
|
|
5891
5979
|
// Page placement properties
|
|
5892
|
-
parentPersistentId:
|
|
5893
|
-
afterPersistentId:
|
|
5980
|
+
parentPersistentId: z213.string(),
|
|
5981
|
+
afterPersistentId: z213.string().nullish()
|
|
5894
5982
|
});
|
|
5895
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5983
|
+
var DTODuplicateDocumentationPageInputV2 = z213.object({
|
|
5896
5984
|
// Identifier of the page to duplicate from
|
|
5897
|
-
id:
|
|
5985
|
+
id: z213.string(),
|
|
5898
5986
|
// New page persistent id
|
|
5899
|
-
persistentId:
|
|
5987
|
+
persistentId: z213.string(),
|
|
5900
5988
|
// Page placement properties
|
|
5901
|
-
parentPersistentId:
|
|
5902
|
-
afterPersistentId:
|
|
5989
|
+
parentPersistentId: z213.string(),
|
|
5990
|
+
afterPersistentId: z213.string().nullish()
|
|
5903
5991
|
});
|
|
5904
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5992
|
+
var DTODeleteDocumentationPageInputV2 = z213.object({
|
|
5905
5993
|
// Identifier
|
|
5906
|
-
id:
|
|
5994
|
+
id: z213.string()
|
|
5907
5995
|
});
|
|
5908
|
-
var DTORestoreDocumentationPageInput =
|
|
5909
|
-
persistentId:
|
|
5910
|
-
snapshotId:
|
|
5996
|
+
var DTORestoreDocumentationPageInput = z213.object({
|
|
5997
|
+
persistentId: z213.string(),
|
|
5998
|
+
snapshotId: z213.string().optional()
|
|
5911
5999
|
});
|
|
5912
|
-
var DTORestoreDocumentationGroupInput =
|
|
5913
|
-
persistentId:
|
|
5914
|
-
snapshotId:
|
|
6000
|
+
var DTORestoreDocumentationGroupInput = z213.object({
|
|
6001
|
+
persistentId: z213.string(),
|
|
6002
|
+
snapshotId: z213.string().optional()
|
|
5915
6003
|
});
|
|
5916
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5917
|
-
persistentId:
|
|
6004
|
+
var DTODocumentationPageApprovalStateChangeInput = z213.object({
|
|
6005
|
+
persistentId: z213.string(),
|
|
5918
6006
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5919
6007
|
});
|
|
5920
6008
|
|
|
5921
6009
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5922
|
-
var DTODocumentationPageSnapshot =
|
|
5923
|
-
id:
|
|
5924
|
-
designSystemVersionId:
|
|
5925
|
-
createdAt:
|
|
5926
|
-
updatedAt:
|
|
6010
|
+
var DTODocumentationPageSnapshot = z214.object({
|
|
6011
|
+
id: z214.string(),
|
|
6012
|
+
designSystemVersionId: z214.string(),
|
|
6013
|
+
createdAt: z214.string(),
|
|
6014
|
+
updatedAt: z214.string(),
|
|
5927
6015
|
documentationPage: DTODocumentationPageV2,
|
|
5928
|
-
pageContentHash:
|
|
6016
|
+
pageContentHash: z214.string(),
|
|
5929
6017
|
reason: DesignElementSnapshotReason
|
|
5930
6018
|
});
|
|
5931
6019
|
|
|
5932
6020
|
// src/api/dto/documentation/link-preview.ts
|
|
5933
|
-
import { z as
|
|
5934
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6021
|
+
import { z as z215 } from "zod";
|
|
6022
|
+
var DTODocumentationLinkPreviewResponse = z215.object({
|
|
5935
6023
|
linkPreview: DocumentationLinkPreview
|
|
5936
6024
|
});
|
|
5937
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5938
|
-
url:
|
|
5939
|
-
documentationItemPersistentId:
|
|
6025
|
+
var DTODocumentationLinkPreviewRequest = z215.object({
|
|
6026
|
+
url: z215.string().optional(),
|
|
6027
|
+
documentationItemPersistentId: z215.string().optional()
|
|
5940
6028
|
});
|
|
5941
6029
|
|
|
5942
6030
|
// src/api/dto/documentation/publish.ts
|
|
5943
|
-
import { z as
|
|
6031
|
+
import { z as z219 } from "zod";
|
|
5944
6032
|
|
|
5945
6033
|
// src/api/dto/export/exporter.ts
|
|
5946
|
-
import { z as
|
|
5947
|
-
var DTOExporterType =
|
|
5948
|
-
var DTOExporterSource =
|
|
5949
|
-
var DTOExporterMembershipRole =
|
|
5950
|
-
var DTOExporter =
|
|
5951
|
-
id:
|
|
5952
|
-
name:
|
|
5953
|
-
isPrivate:
|
|
6034
|
+
import { z as z216 } from "zod";
|
|
6035
|
+
var DTOExporterType = z216.enum(["documentation", "code"]);
|
|
6036
|
+
var DTOExporterSource = z216.enum(["git", "upload"]);
|
|
6037
|
+
var DTOExporterMembershipRole = z216.enum(["Owner", "OwnerArchived", "User"]);
|
|
6038
|
+
var DTOExporter = z216.object({
|
|
6039
|
+
id: z216.string(),
|
|
6040
|
+
name: z216.string(),
|
|
6041
|
+
isPrivate: z216.boolean(),
|
|
5954
6042
|
exporterType: DTOExporterType,
|
|
5955
|
-
isDefaultDocumentationExporter:
|
|
5956
|
-
iconURL:
|
|
6043
|
+
isDefaultDocumentationExporter: z216.boolean(),
|
|
6044
|
+
iconURL: z216.string().optional(),
|
|
5957
6045
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5958
6046
|
customBlocks: PulsarCustomBlock.array(),
|
|
5959
|
-
blockVariants:
|
|
5960
|
-
usesBrands:
|
|
5961
|
-
usesThemes:
|
|
6047
|
+
blockVariants: z216.record(z216.string(), PulsarContributionVariant.array()),
|
|
6048
|
+
usesBrands: z216.boolean(),
|
|
6049
|
+
usesThemes: z216.boolean(),
|
|
5962
6050
|
source: DTOExporterSource,
|
|
5963
|
-
gitUrl:
|
|
5964
|
-
gitBranch:
|
|
5965
|
-
gitDirectory:
|
|
6051
|
+
gitUrl: z216.string().optional(),
|
|
6052
|
+
gitBranch: z216.string().optional(),
|
|
6053
|
+
gitDirectory: z216.string().optional()
|
|
5966
6054
|
});
|
|
5967
|
-
var DTOExporterMembership =
|
|
5968
|
-
workspaceId:
|
|
5969
|
-
exporterId:
|
|
6055
|
+
var DTOExporterMembership = z216.object({
|
|
6056
|
+
workspaceId: z216.string(),
|
|
6057
|
+
exporterId: z216.string(),
|
|
5970
6058
|
role: DTOExporterMembershipRole
|
|
5971
6059
|
});
|
|
5972
|
-
var DTOExporterCreateOutput =
|
|
6060
|
+
var DTOExporterCreateOutput = z216.object({
|
|
5973
6061
|
exporter: DTOExporter,
|
|
5974
6062
|
membership: DTOExporterMembership
|
|
5975
6063
|
});
|
|
5976
|
-
var DTOExporterGitProviderEnum =
|
|
5977
|
-
var DTOExporterCreateInput =
|
|
5978
|
-
url:
|
|
6064
|
+
var DTOExporterGitProviderEnum = z216.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6065
|
+
var DTOExporterCreateInput = z216.object({
|
|
6066
|
+
url: z216.string(),
|
|
5979
6067
|
provider: DTOExporterGitProviderEnum
|
|
5980
6068
|
});
|
|
5981
|
-
var DTOExporterUpdateInput =
|
|
5982
|
-
url:
|
|
6069
|
+
var DTOExporterUpdateInput = z216.object({
|
|
6070
|
+
url: z216.string().optional()
|
|
5983
6071
|
});
|
|
5984
6072
|
|
|
5985
6073
|
// src/api/dto/export/filter.ts
|
|
5986
6074
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5987
6075
|
|
|
5988
6076
|
// src/api/dto/export/job.ts
|
|
5989
|
-
import { z as
|
|
5990
|
-
var DTOExportJobCreatedBy =
|
|
5991
|
-
userId:
|
|
5992
|
-
userName:
|
|
6077
|
+
import { z as z217 } from "zod";
|
|
6078
|
+
var DTOExportJobCreatedBy = z217.object({
|
|
6079
|
+
userId: z217.string(),
|
|
6080
|
+
userName: z217.string()
|
|
5993
6081
|
});
|
|
5994
|
-
var DTOExportJobDesignSystemPreview =
|
|
5995
|
-
id:
|
|
6082
|
+
var DTOExportJobDesignSystemPreview = z217.object({
|
|
6083
|
+
id: z217.string(),
|
|
5996
6084
|
meta: ObjectMeta
|
|
5997
6085
|
});
|
|
5998
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5999
|
-
id:
|
|
6086
|
+
var DTOExportJobDesignSystemVersionPreview = z217.object({
|
|
6087
|
+
id: z217.string(),
|
|
6000
6088
|
meta: ObjectMeta,
|
|
6001
|
-
version:
|
|
6002
|
-
isReadonly:
|
|
6089
|
+
version: z217.string(),
|
|
6090
|
+
isReadonly: z217.boolean()
|
|
6003
6091
|
});
|
|
6004
|
-
var DTOExportJobDestinations =
|
|
6092
|
+
var DTOExportJobDestinations = z217.object({
|
|
6005
6093
|
s3: ExporterDestinationS3.optional(),
|
|
6006
6094
|
azure: ExporterDestinationAzure.optional(),
|
|
6007
6095
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6008
6096
|
github: ExporterDestinationGithub.optional(),
|
|
6009
6097
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6010
6098
|
documentation: ExporterDestinationDocs.optional(),
|
|
6011
|
-
webhookUrl:
|
|
6099
|
+
webhookUrl: z217.string().optional()
|
|
6012
6100
|
});
|
|
6013
6101
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6014
6102
|
sndocs: true
|
|
6015
6103
|
}).extend({
|
|
6016
6104
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6017
6105
|
});
|
|
6018
|
-
var DTOExportJob =
|
|
6019
|
-
id:
|
|
6020
|
-
createdAt:
|
|
6021
|
-
finishedAt:
|
|
6022
|
-
index:
|
|
6106
|
+
var DTOExportJob = z217.object({
|
|
6107
|
+
id: z217.string(),
|
|
6108
|
+
createdAt: z217.coerce.date(),
|
|
6109
|
+
finishedAt: z217.coerce.date().optional(),
|
|
6110
|
+
index: z217.number().optional(),
|
|
6023
6111
|
status: ExportJobStatus,
|
|
6024
|
-
estimatedExecutionTime:
|
|
6112
|
+
estimatedExecutionTime: z217.number().optional(),
|
|
6025
6113
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6026
6114
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6027
6115
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6028
6116
|
destinations: DTOExportJobDestinations,
|
|
6029
|
-
exporterId:
|
|
6030
|
-
scheduleId:
|
|
6117
|
+
exporterId: z217.string(),
|
|
6118
|
+
scheduleId: z217.string().optional(),
|
|
6031
6119
|
result: DTOExportJobResult.optional(),
|
|
6032
|
-
brandPersistentId:
|
|
6033
|
-
themePersistentId:
|
|
6034
|
-
themePersistentIds:
|
|
6120
|
+
brandPersistentId: z217.string().optional(),
|
|
6121
|
+
themePersistentId: z217.string().optional(),
|
|
6122
|
+
themePersistentIds: z217.string().array().optional()
|
|
6035
6123
|
});
|
|
6036
|
-
var DTOExportJobResponse =
|
|
6124
|
+
var DTOExportJobResponse = z217.object({
|
|
6037
6125
|
job: DTOExportJob
|
|
6038
6126
|
});
|
|
6039
6127
|
|
|
6040
6128
|
// src/api/dto/export/pipeline.ts
|
|
6041
|
-
import { z as
|
|
6042
|
-
var DTOPipeline =
|
|
6043
|
-
id:
|
|
6044
|
-
name:
|
|
6129
|
+
import { z as z218 } from "zod";
|
|
6130
|
+
var DTOPipeline = z218.object({
|
|
6131
|
+
id: z218.string(),
|
|
6132
|
+
name: z218.string(),
|
|
6045
6133
|
eventType: PipelineEventType,
|
|
6046
|
-
isEnabled:
|
|
6047
|
-
workspaceId:
|
|
6048
|
-
designSystemId:
|
|
6049
|
-
exporterId:
|
|
6050
|
-
brandPersistentId:
|
|
6051
|
-
themePersistentId:
|
|
6052
|
-
themePersistentIds:
|
|
6134
|
+
isEnabled: z218.boolean(),
|
|
6135
|
+
workspaceId: z218.string(),
|
|
6136
|
+
designSystemId: z218.string(),
|
|
6137
|
+
exporterId: z218.string(),
|
|
6138
|
+
brandPersistentId: z218.string().optional(),
|
|
6139
|
+
themePersistentId: z218.string().optional(),
|
|
6140
|
+
themePersistentIds: z218.string().array().optional(),
|
|
6053
6141
|
...ExportDestinationsMap.shape,
|
|
6054
6142
|
latestJobs: DTOExportJob.array()
|
|
6055
6143
|
});
|
|
6056
6144
|
|
|
6057
6145
|
// src/api/dto/documentation/publish.ts
|
|
6058
6146
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6059
|
-
var DTOPublishDocumentationRequest =
|
|
6147
|
+
var DTOPublishDocumentationRequest = z219.object({
|
|
6060
6148
|
environment: PublishedDocEnvironment,
|
|
6061
6149
|
/**
|
|
6062
6150
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6064,42 +6152,42 @@ var DTOPublishDocumentationRequest = z217.object({
|
|
|
6064
6152
|
*/
|
|
6065
6153
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6066
6154
|
});
|
|
6067
|
-
var DTOPublishDocumentationResponse =
|
|
6155
|
+
var DTOPublishDocumentationResponse = z219.object({
|
|
6068
6156
|
job: DTOExportJob
|
|
6069
6157
|
});
|
|
6070
6158
|
|
|
6071
6159
|
// src/api/dto/elements/components/figma-component.ts
|
|
6072
|
-
import { z as
|
|
6160
|
+
import { z as z220 } from "zod";
|
|
6073
6161
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6074
|
-
var DTOFigmaComponentPropertyMap =
|
|
6075
|
-
var DTOFigmaComponent =
|
|
6076
|
-
id:
|
|
6077
|
-
persistentId:
|
|
6078
|
-
designSystemVersionId:
|
|
6079
|
-
brandId:
|
|
6080
|
-
thumbnailUrl:
|
|
6081
|
-
svgUrl:
|
|
6082
|
-
exportProperties:
|
|
6083
|
-
isAsset:
|
|
6162
|
+
var DTOFigmaComponentPropertyMap = z220.record(DTOFigmaComponentProperty);
|
|
6163
|
+
var DTOFigmaComponent = z220.object({
|
|
6164
|
+
id: z220.string(),
|
|
6165
|
+
persistentId: z220.string(),
|
|
6166
|
+
designSystemVersionId: z220.string(),
|
|
6167
|
+
brandId: z220.string(),
|
|
6168
|
+
thumbnailUrl: z220.string().optional(),
|
|
6169
|
+
svgUrl: z220.string().optional(),
|
|
6170
|
+
exportProperties: z220.object({
|
|
6171
|
+
isAsset: z220.boolean()
|
|
6084
6172
|
}),
|
|
6085
|
-
createdAt:
|
|
6086
|
-
updatedAt:
|
|
6173
|
+
createdAt: z220.coerce.date(),
|
|
6174
|
+
updatedAt: z220.coerce.date(),
|
|
6087
6175
|
meta: ObjectMeta,
|
|
6088
6176
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6089
|
-
parentComponentPersistentId:
|
|
6090
|
-
childrenPersistentIds:
|
|
6177
|
+
parentComponentPersistentId: z220.string().optional(),
|
|
6178
|
+
childrenPersistentIds: z220.string().array().optional(),
|
|
6091
6179
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6092
|
-
variantPropertyValues:
|
|
6180
|
+
variantPropertyValues: z220.record(z220.string()).optional()
|
|
6093
6181
|
});
|
|
6094
|
-
var DTOFigmaComponentListResponse =
|
|
6182
|
+
var DTOFigmaComponentListResponse = z220.object({
|
|
6095
6183
|
components: DTOFigmaComponent.array()
|
|
6096
6184
|
});
|
|
6097
6185
|
|
|
6098
6186
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6099
|
-
import { z as
|
|
6187
|
+
import { z as z222 } from "zod";
|
|
6100
6188
|
|
|
6101
6189
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6102
|
-
import { z as
|
|
6190
|
+
import { z as z221 } from "zod";
|
|
6103
6191
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6104
6192
|
sortOrder: true,
|
|
6105
6193
|
parentPersistentId: true,
|
|
@@ -6109,13 +6197,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6109
6197
|
data: true,
|
|
6110
6198
|
shortPersistentId: true
|
|
6111
6199
|
}).extend({
|
|
6112
|
-
title:
|
|
6113
|
-
isRoot:
|
|
6114
|
-
childrenIds:
|
|
6200
|
+
title: z221.string(),
|
|
6201
|
+
isRoot: z221.boolean(),
|
|
6202
|
+
childrenIds: z221.array(z221.string()),
|
|
6115
6203
|
groupBehavior: DocumentationGroupBehavior,
|
|
6116
|
-
shortPersistentId:
|
|
6204
|
+
shortPersistentId: z221.string(),
|
|
6117
6205
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6118
|
-
type:
|
|
6206
|
+
type: z221.literal("Group"),
|
|
6119
6207
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6120
6208
|
draftState: DTODocumentationDraftState.optional(),
|
|
6121
6209
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6123,127 +6211,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6123
6211
|
//** An approval state for frontend to utilize. */
|
|
6124
6212
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6125
6213
|
});
|
|
6126
|
-
var DTOCreateDocumentationGroupInput =
|
|
6214
|
+
var DTOCreateDocumentationGroupInput = z221.object({
|
|
6127
6215
|
// Identifier
|
|
6128
|
-
persistentId:
|
|
6216
|
+
persistentId: z221.string(),
|
|
6129
6217
|
// Group properties
|
|
6130
|
-
title:
|
|
6218
|
+
title: z221.string(),
|
|
6131
6219
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6132
6220
|
// Group placement properties
|
|
6133
|
-
afterPersistentId:
|
|
6134
|
-
parentPersistentId:
|
|
6221
|
+
afterPersistentId: z221.string().nullish(),
|
|
6222
|
+
parentPersistentId: z221.string()
|
|
6135
6223
|
});
|
|
6136
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6224
|
+
var DTOUpdateDocumentationGroupInput = z221.object({
|
|
6137
6225
|
// Identifier of the group to update
|
|
6138
|
-
id:
|
|
6226
|
+
id: z221.string(),
|
|
6139
6227
|
// Group properties
|
|
6140
|
-
title:
|
|
6228
|
+
title: z221.string().optional(),
|
|
6141
6229
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6142
6230
|
});
|
|
6143
|
-
var DTOMoveDocumentationGroupInput =
|
|
6231
|
+
var DTOMoveDocumentationGroupInput = z221.object({
|
|
6144
6232
|
// Identifier of the group to update
|
|
6145
|
-
id:
|
|
6233
|
+
id: z221.string(),
|
|
6146
6234
|
// Group placement properties
|
|
6147
|
-
parentPersistentId:
|
|
6148
|
-
afterPersistentId:
|
|
6235
|
+
parentPersistentId: z221.string(),
|
|
6236
|
+
afterPersistentId: z221.string().nullish()
|
|
6149
6237
|
});
|
|
6150
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6238
|
+
var DTODuplicateDocumentationGroupInput = z221.object({
|
|
6151
6239
|
// Identifier of the group to duplicate from
|
|
6152
|
-
id:
|
|
6240
|
+
id: z221.string(),
|
|
6153
6241
|
// New group persistent id
|
|
6154
|
-
persistentId:
|
|
6242
|
+
persistentId: z221.string(),
|
|
6155
6243
|
// Group placement properties
|
|
6156
|
-
afterPersistentId:
|
|
6157
|
-
parentPersistentId:
|
|
6244
|
+
afterPersistentId: z221.string().nullish(),
|
|
6245
|
+
parentPersistentId: z221.string()
|
|
6158
6246
|
});
|
|
6159
|
-
var DTOCreateDocumentationTabInput =
|
|
6247
|
+
var DTOCreateDocumentationTabInput = z221.object({
|
|
6160
6248
|
// New group persistent id
|
|
6161
|
-
persistentId:
|
|
6249
|
+
persistentId: z221.string(),
|
|
6162
6250
|
// If this is page, we will attempt to convert it to tab
|
|
6163
6251
|
// If this is tab group, we will add a new tab to it
|
|
6164
|
-
fromItemPersistentId:
|
|
6165
|
-
tabName:
|
|
6252
|
+
fromItemPersistentId: z221.string(),
|
|
6253
|
+
tabName: z221.string()
|
|
6166
6254
|
});
|
|
6167
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6255
|
+
var DTODeleteDocumentationTabGroupInput = z221.object({
|
|
6168
6256
|
// Deleted group id
|
|
6169
|
-
id:
|
|
6257
|
+
id: z221.string()
|
|
6170
6258
|
});
|
|
6171
|
-
var DTODeleteDocumentationGroupInput =
|
|
6259
|
+
var DTODeleteDocumentationGroupInput = z221.object({
|
|
6172
6260
|
// Identifier
|
|
6173
|
-
id:
|
|
6261
|
+
id: z221.string(),
|
|
6174
6262
|
// Deletion options
|
|
6175
|
-
deleteSubtree:
|
|
6263
|
+
deleteSubtree: z221.boolean().default(false)
|
|
6176
6264
|
});
|
|
6177
6265
|
|
|
6178
6266
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6179
|
-
var SuccessPayload =
|
|
6180
|
-
success:
|
|
6267
|
+
var SuccessPayload = z222.object({
|
|
6268
|
+
success: z222.literal(true)
|
|
6181
6269
|
});
|
|
6182
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6183
|
-
type:
|
|
6270
|
+
var DTODocumentationGroupCreateActionOutputV2 = z222.object({
|
|
6271
|
+
type: z222.literal("DocumentationGroupCreate"),
|
|
6184
6272
|
output: SuccessPayload
|
|
6185
6273
|
});
|
|
6186
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6187
|
-
type:
|
|
6274
|
+
var DTODocumentationTabCreateActionOutputV2 = z222.object({
|
|
6275
|
+
type: z222.literal("DocumentationTabCreate"),
|
|
6188
6276
|
output: SuccessPayload
|
|
6189
6277
|
});
|
|
6190
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6191
|
-
type:
|
|
6278
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z222.object({
|
|
6279
|
+
type: z222.literal("DocumentationGroupUpdate"),
|
|
6192
6280
|
output: SuccessPayload
|
|
6193
6281
|
});
|
|
6194
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6195
|
-
type:
|
|
6282
|
+
var DTODocumentationGroupMoveActionOutputV2 = z222.object({
|
|
6283
|
+
type: z222.literal("DocumentationGroupMove"),
|
|
6196
6284
|
output: SuccessPayload
|
|
6197
6285
|
});
|
|
6198
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6199
|
-
type:
|
|
6286
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z222.object({
|
|
6287
|
+
type: z222.literal("DocumentationGroupDuplicate"),
|
|
6200
6288
|
output: SuccessPayload
|
|
6201
6289
|
});
|
|
6202
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6203
|
-
type:
|
|
6290
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z222.object({
|
|
6291
|
+
type: z222.literal("DocumentationGroupDelete"),
|
|
6204
6292
|
output: SuccessPayload
|
|
6205
6293
|
});
|
|
6206
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6207
|
-
type:
|
|
6294
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z222.object({
|
|
6295
|
+
type: z222.literal("DocumentationTabGroupDelete"),
|
|
6208
6296
|
output: SuccessPayload
|
|
6209
6297
|
});
|
|
6210
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6211
|
-
type:
|
|
6298
|
+
var DTODocumentationGroupCreateActionInputV2 = z222.object({
|
|
6299
|
+
type: z222.literal("DocumentationGroupCreate"),
|
|
6212
6300
|
input: DTOCreateDocumentationGroupInput
|
|
6213
6301
|
});
|
|
6214
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6215
|
-
type:
|
|
6302
|
+
var DTODocumentationTabCreateActionInputV2 = z222.object({
|
|
6303
|
+
type: z222.literal("DocumentationTabCreate"),
|
|
6216
6304
|
input: DTOCreateDocumentationTabInput
|
|
6217
6305
|
});
|
|
6218
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6219
|
-
type:
|
|
6306
|
+
var DTODocumentationGroupUpdateActionInputV2 = z222.object({
|
|
6307
|
+
type: z222.literal("DocumentationGroupUpdate"),
|
|
6220
6308
|
input: DTOUpdateDocumentationGroupInput
|
|
6221
6309
|
});
|
|
6222
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6223
|
-
type:
|
|
6310
|
+
var DTODocumentationGroupMoveActionInputV2 = z222.object({
|
|
6311
|
+
type: z222.literal("DocumentationGroupMove"),
|
|
6224
6312
|
input: DTOMoveDocumentationGroupInput
|
|
6225
6313
|
});
|
|
6226
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6227
|
-
type:
|
|
6314
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z222.object({
|
|
6315
|
+
type: z222.literal("DocumentationGroupDuplicate"),
|
|
6228
6316
|
input: DTODuplicateDocumentationGroupInput
|
|
6229
6317
|
});
|
|
6230
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6231
|
-
type:
|
|
6318
|
+
var DTODocumentationGroupDeleteActionInputV2 = z222.object({
|
|
6319
|
+
type: z222.literal("DocumentationGroupDelete"),
|
|
6232
6320
|
input: DTODeleteDocumentationGroupInput
|
|
6233
6321
|
});
|
|
6234
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6235
|
-
type:
|
|
6322
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z222.object({
|
|
6323
|
+
type: z222.literal("DocumentationTabGroupDelete"),
|
|
6236
6324
|
input: DTODeleteDocumentationTabGroupInput
|
|
6237
6325
|
});
|
|
6238
6326
|
|
|
6239
6327
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6240
|
-
import { z as
|
|
6328
|
+
import { z as z224 } from "zod";
|
|
6241
6329
|
|
|
6242
6330
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6243
|
-
import { z as
|
|
6244
|
-
var DocumentationColorV1 =
|
|
6245
|
-
aliasTo:
|
|
6246
|
-
value:
|
|
6331
|
+
import { z as z223 } from "zod";
|
|
6332
|
+
var DocumentationColorV1 = z223.object({
|
|
6333
|
+
aliasTo: z223.string().optional(),
|
|
6334
|
+
value: z223.string().optional()
|
|
6247
6335
|
});
|
|
6248
6336
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6249
6337
|
foregroundColor: true,
|
|
@@ -6252,10 +6340,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6252
6340
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6253
6341
|
backgroundColor: DocumentationColorV1.optional()
|
|
6254
6342
|
});
|
|
6255
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6256
|
-
showSidebar:
|
|
6257
|
-
isPrivate:
|
|
6258
|
-
isHidden:
|
|
6343
|
+
var DTODocumentationItemConfigurationV1 = z223.object({
|
|
6344
|
+
showSidebar: z223.boolean(),
|
|
6345
|
+
isPrivate: z223.boolean(),
|
|
6346
|
+
isHidden: z223.boolean(),
|
|
6259
6347
|
header: DTODocumentationItemHeaderV1
|
|
6260
6348
|
});
|
|
6261
6349
|
|
|
@@ -6269,27 +6357,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6269
6357
|
data: true,
|
|
6270
6358
|
shortPersistentId: true
|
|
6271
6359
|
}).extend({
|
|
6272
|
-
title:
|
|
6273
|
-
isRoot:
|
|
6274
|
-
childrenIds:
|
|
6360
|
+
title: z224.string(),
|
|
6361
|
+
isRoot: z224.boolean(),
|
|
6362
|
+
childrenIds: z224.array(z224.string()),
|
|
6275
6363
|
groupBehavior: DocumentationGroupBehavior,
|
|
6276
|
-
shortPersistentId:
|
|
6277
|
-
type:
|
|
6364
|
+
shortPersistentId: z224.string(),
|
|
6365
|
+
type: z224.literal("Group")
|
|
6278
6366
|
});
|
|
6279
6367
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6280
6368
|
configuration: DTODocumentationItemConfigurationV1
|
|
6281
6369
|
});
|
|
6282
6370
|
|
|
6283
6371
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6284
|
-
import { z as
|
|
6285
|
-
var DTODocumentationHierarchyV2 =
|
|
6286
|
-
pages:
|
|
6372
|
+
import { z as z225 } from "zod";
|
|
6373
|
+
var DTODocumentationHierarchyV2 = z225.object({
|
|
6374
|
+
pages: z225.array(
|
|
6287
6375
|
DTODocumentationPageV2.extend({
|
|
6288
6376
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6289
6377
|
draftState: DTODocumentationDraftState.optional()
|
|
6290
6378
|
})
|
|
6291
6379
|
),
|
|
6292
|
-
groups:
|
|
6380
|
+
groups: z225.array(
|
|
6293
6381
|
DTODocumentationGroupV2.extend({
|
|
6294
6382
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6295
6383
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6298,84 +6386,84 @@ var DTODocumentationHierarchyV2 = z223.object({
|
|
|
6298
6386
|
});
|
|
6299
6387
|
|
|
6300
6388
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6301
|
-
import { z as
|
|
6302
|
-
var SuccessPayload2 =
|
|
6303
|
-
success:
|
|
6389
|
+
import { z as z226 } from "zod";
|
|
6390
|
+
var SuccessPayload2 = z226.object({
|
|
6391
|
+
success: z226.literal(true)
|
|
6304
6392
|
});
|
|
6305
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6306
|
-
type:
|
|
6393
|
+
var DTODocumentationPageCreateActionOutputV2 = z226.object({
|
|
6394
|
+
type: z226.literal("DocumentationPageCreate"),
|
|
6307
6395
|
output: SuccessPayload2
|
|
6308
6396
|
});
|
|
6309
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6310
|
-
type:
|
|
6397
|
+
var DTODocumentationPageUpdateActionOutputV2 = z226.object({
|
|
6398
|
+
type: z226.literal("DocumentationPageUpdate"),
|
|
6311
6399
|
output: SuccessPayload2
|
|
6312
6400
|
});
|
|
6313
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6314
|
-
type:
|
|
6401
|
+
var DTODocumentationPageMoveActionOutputV2 = z226.object({
|
|
6402
|
+
type: z226.literal("DocumentationPageMove"),
|
|
6315
6403
|
output: SuccessPayload2
|
|
6316
6404
|
});
|
|
6317
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6318
|
-
type:
|
|
6405
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z226.object({
|
|
6406
|
+
type: z226.literal("DocumentationPageDuplicate"),
|
|
6319
6407
|
output: SuccessPayload2
|
|
6320
6408
|
});
|
|
6321
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6322
|
-
type:
|
|
6409
|
+
var DTODocumentationPageDeleteActionOutputV2 = z226.object({
|
|
6410
|
+
type: z226.literal("DocumentationPageDelete"),
|
|
6323
6411
|
output: SuccessPayload2
|
|
6324
6412
|
});
|
|
6325
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6326
|
-
type:
|
|
6413
|
+
var DTODocumentationPageRestoreActionOutput = z226.object({
|
|
6414
|
+
type: z226.literal("DocumentationPageRestore"),
|
|
6327
6415
|
output: SuccessPayload2
|
|
6328
6416
|
});
|
|
6329
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6330
|
-
type:
|
|
6417
|
+
var DTODocumentationGroupRestoreActionOutput = z226.object({
|
|
6418
|
+
type: z226.literal("DocumentationGroupRestore"),
|
|
6331
6419
|
output: SuccessPayload2
|
|
6332
6420
|
});
|
|
6333
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6334
|
-
type:
|
|
6421
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z226.object({
|
|
6422
|
+
type: z226.literal("DocumentationPageApprovalStateChange"),
|
|
6335
6423
|
output: SuccessPayload2
|
|
6336
6424
|
});
|
|
6337
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6338
|
-
type:
|
|
6425
|
+
var DTODocumentationPageCreateActionInputV2 = z226.object({
|
|
6426
|
+
type: z226.literal("DocumentationPageCreate"),
|
|
6339
6427
|
input: DTOCreateDocumentationPageInputV2
|
|
6340
6428
|
});
|
|
6341
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6342
|
-
type:
|
|
6429
|
+
var DTODocumentationPageUpdateActionInputV2 = z226.object({
|
|
6430
|
+
type: z226.literal("DocumentationPageUpdate"),
|
|
6343
6431
|
input: DTOUpdateDocumentationPageInputV2
|
|
6344
6432
|
});
|
|
6345
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6346
|
-
type:
|
|
6433
|
+
var DTODocumentationPageMoveActionInputV2 = z226.object({
|
|
6434
|
+
type: z226.literal("DocumentationPageMove"),
|
|
6347
6435
|
input: DTOMoveDocumentationPageInputV2
|
|
6348
6436
|
});
|
|
6349
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6350
|
-
type:
|
|
6437
|
+
var DTODocumentationPageDuplicateActionInputV2 = z226.object({
|
|
6438
|
+
type: z226.literal("DocumentationPageDuplicate"),
|
|
6351
6439
|
input: DTODuplicateDocumentationPageInputV2
|
|
6352
6440
|
});
|
|
6353
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6354
|
-
type:
|
|
6441
|
+
var DTODocumentationPageDeleteActionInputV2 = z226.object({
|
|
6442
|
+
type: z226.literal("DocumentationPageDelete"),
|
|
6355
6443
|
input: DTODeleteDocumentationPageInputV2
|
|
6356
6444
|
});
|
|
6357
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6358
|
-
type:
|
|
6445
|
+
var DTODocumentationPageRestoreActionInput = z226.object({
|
|
6446
|
+
type: z226.literal("DocumentationPageRestore"),
|
|
6359
6447
|
input: DTORestoreDocumentationPageInput
|
|
6360
6448
|
});
|
|
6361
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6362
|
-
type:
|
|
6449
|
+
var DTODocumentationGroupRestoreActionInput = z226.object({
|
|
6450
|
+
type: z226.literal("DocumentationGroupRestore"),
|
|
6363
6451
|
input: DTORestoreDocumentationGroupInput
|
|
6364
6452
|
});
|
|
6365
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6366
|
-
type:
|
|
6453
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z226.object({
|
|
6454
|
+
type: z226.literal("DocumentationPageApprovalStateChange"),
|
|
6367
6455
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6368
6456
|
});
|
|
6369
6457
|
|
|
6370
6458
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6371
|
-
import { z as
|
|
6459
|
+
import { z as z227 } from "zod";
|
|
6372
6460
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6373
|
-
var DTODocumentationPageContentGetResponse =
|
|
6461
|
+
var DTODocumentationPageContentGetResponse = z227.object({
|
|
6374
6462
|
pageContent: DTODocumentationPageContent
|
|
6375
6463
|
});
|
|
6376
6464
|
|
|
6377
6465
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6378
|
-
import { z as
|
|
6466
|
+
import { z as z228 } from "zod";
|
|
6379
6467
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6380
6468
|
data: true,
|
|
6381
6469
|
meta: true,
|
|
@@ -6383,32 +6471,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6383
6471
|
sortOrder: true
|
|
6384
6472
|
}).extend({
|
|
6385
6473
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6386
|
-
blocks:
|
|
6387
|
-
title:
|
|
6388
|
-
path:
|
|
6474
|
+
blocks: z228.array(PageBlockV1),
|
|
6475
|
+
title: z228.string(),
|
|
6476
|
+
path: z228.string()
|
|
6389
6477
|
});
|
|
6390
6478
|
|
|
6391
6479
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6392
|
-
import { z as
|
|
6480
|
+
import { z as z229 } from "zod";
|
|
6393
6481
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6394
|
-
var DTOFigmaNodeOrigin =
|
|
6395
|
-
sourceId:
|
|
6396
|
-
fileId:
|
|
6397
|
-
parentName:
|
|
6482
|
+
var DTOFigmaNodeOrigin = z229.object({
|
|
6483
|
+
sourceId: z229.string(),
|
|
6484
|
+
fileId: z229.string().optional(),
|
|
6485
|
+
parentName: z229.string().optional()
|
|
6398
6486
|
});
|
|
6399
|
-
var DTOFigmaNodeData =
|
|
6487
|
+
var DTOFigmaNodeData = z229.object({
|
|
6400
6488
|
// Id of the node in the Figma file
|
|
6401
|
-
figmaNodeId:
|
|
6489
|
+
figmaNodeId: z229.string(),
|
|
6402
6490
|
// Validity
|
|
6403
|
-
isValid:
|
|
6491
|
+
isValid: z229.boolean(),
|
|
6404
6492
|
// Asset data
|
|
6405
|
-
assetId:
|
|
6406
|
-
assetUrl:
|
|
6493
|
+
assetId: z229.string(),
|
|
6494
|
+
assetUrl: z229.string(),
|
|
6407
6495
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6408
6496
|
// Asset metadata
|
|
6409
|
-
assetScale:
|
|
6410
|
-
assetWidth:
|
|
6411
|
-
assetHeight:
|
|
6497
|
+
assetScale: z229.number(),
|
|
6498
|
+
assetWidth: z229.number().optional(),
|
|
6499
|
+
assetHeight: z229.number().optional()
|
|
6412
6500
|
});
|
|
6413
6501
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6414
6502
|
data: true,
|
|
@@ -6417,15 +6505,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6417
6505
|
data: DTOFigmaNodeData,
|
|
6418
6506
|
origin: DTOFigmaNodeOrigin
|
|
6419
6507
|
});
|
|
6420
|
-
var DTOFigmaNodeRenderInput =
|
|
6508
|
+
var DTOFigmaNodeRenderInput = z229.object({
|
|
6421
6509
|
/**
|
|
6422
6510
|
* Id of a design system's data source representing a linked Figma file
|
|
6423
6511
|
*/
|
|
6424
|
-
sourceId:
|
|
6512
|
+
sourceId: z229.string(),
|
|
6425
6513
|
/**
|
|
6426
6514
|
* Id of a node within the Figma file
|
|
6427
6515
|
*/
|
|
6428
|
-
figmaFileNodeId:
|
|
6516
|
+
figmaFileNodeId: z229.string(),
|
|
6429
6517
|
/**
|
|
6430
6518
|
* Format in which the node must be rendered, png by default.
|
|
6431
6519
|
*/
|
|
@@ -6433,97 +6521,97 @@ var DTOFigmaNodeRenderInput = z227.object({
|
|
|
6433
6521
|
});
|
|
6434
6522
|
|
|
6435
6523
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6436
|
-
import { z as
|
|
6437
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6438
|
-
type:
|
|
6439
|
-
figmaNodes:
|
|
6524
|
+
import { z as z230 } from "zod";
|
|
6525
|
+
var DTOFigmaNodeRenderActionOutput = z230.object({
|
|
6526
|
+
type: z230.literal("FigmaNodeRender"),
|
|
6527
|
+
figmaNodes: z230.array(DTOFigmaNode)
|
|
6440
6528
|
});
|
|
6441
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6442
|
-
type:
|
|
6529
|
+
var DTOFigmaNodeRenderActionInput = z230.object({
|
|
6530
|
+
type: z230.literal("FigmaNodeRender"),
|
|
6443
6531
|
input: DTOFigmaNodeRenderInput.array()
|
|
6444
6532
|
});
|
|
6445
6533
|
|
|
6446
6534
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6447
|
-
import { z as
|
|
6535
|
+
import { z as z232 } from "zod";
|
|
6448
6536
|
|
|
6449
6537
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6450
|
-
import { z as
|
|
6538
|
+
import { z as z231 } from "zod";
|
|
6451
6539
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6452
|
-
var DTOElementPropertyDefinition =
|
|
6453
|
-
id:
|
|
6454
|
-
designSystemVersionId:
|
|
6540
|
+
var DTOElementPropertyDefinition = z231.object({
|
|
6541
|
+
id: z231.string(),
|
|
6542
|
+
designSystemVersionId: z231.string(),
|
|
6455
6543
|
meta: ObjectMeta,
|
|
6456
|
-
persistentId:
|
|
6544
|
+
persistentId: z231.string(),
|
|
6457
6545
|
type: ElementPropertyTypeSchema,
|
|
6458
6546
|
targetElementType: ElementPropertyTargetType,
|
|
6459
|
-
codeName:
|
|
6460
|
-
options:
|
|
6547
|
+
codeName: z231.string().regex(CODE_NAME_REGEX2),
|
|
6548
|
+
options: z231.array(ElementPropertyDefinitionOption).optional(),
|
|
6461
6549
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6462
6550
|
});
|
|
6463
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6464
|
-
definitions:
|
|
6551
|
+
var DTOElementPropertyDefinitionsGetResponse = z231.object({
|
|
6552
|
+
definitions: z231.array(DTOElementPropertyDefinition)
|
|
6465
6553
|
});
|
|
6466
6554
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6467
6555
|
id: true,
|
|
6468
6556
|
designSystemVersionId: true
|
|
6469
6557
|
});
|
|
6470
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6471
|
-
id:
|
|
6472
|
-
name:
|
|
6473
|
-
description:
|
|
6474
|
-
codeName:
|
|
6475
|
-
options:
|
|
6558
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z231.object({
|
|
6559
|
+
id: z231.string(),
|
|
6560
|
+
name: z231.string().optional(),
|
|
6561
|
+
description: z231.string().optional(),
|
|
6562
|
+
codeName: z231.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6563
|
+
options: z231.array(ElementPropertyDefinitionOption).optional()
|
|
6476
6564
|
});
|
|
6477
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6478
|
-
id:
|
|
6565
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z231.object({
|
|
6566
|
+
id: z231.string()
|
|
6479
6567
|
});
|
|
6480
6568
|
|
|
6481
6569
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6482
|
-
var SuccessPayload3 =
|
|
6483
|
-
success:
|
|
6570
|
+
var SuccessPayload3 = z232.object({
|
|
6571
|
+
success: z232.literal(true)
|
|
6484
6572
|
});
|
|
6485
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6486
|
-
type:
|
|
6573
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z232.object({
|
|
6574
|
+
type: z232.literal("PropertyDefinitionCreate"),
|
|
6487
6575
|
definition: DTOElementPropertyDefinition
|
|
6488
6576
|
});
|
|
6489
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6490
|
-
type:
|
|
6577
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z232.object({
|
|
6578
|
+
type: z232.literal("PropertyDefinitionUpdate"),
|
|
6491
6579
|
definition: DTOElementPropertyDefinition
|
|
6492
6580
|
});
|
|
6493
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6494
|
-
type:
|
|
6581
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z232.object({
|
|
6582
|
+
type: z232.literal("PropertyDefinitionDelete"),
|
|
6495
6583
|
output: SuccessPayload3
|
|
6496
6584
|
});
|
|
6497
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6498
|
-
type:
|
|
6585
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z232.object({
|
|
6586
|
+
type: z232.literal("PropertyDefinitionCreate"),
|
|
6499
6587
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6500
6588
|
});
|
|
6501
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6502
|
-
type:
|
|
6589
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z232.object({
|
|
6590
|
+
type: z232.literal("PropertyDefinitionUpdate"),
|
|
6503
6591
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6504
6592
|
});
|
|
6505
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6506
|
-
type:
|
|
6593
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z232.object({
|
|
6594
|
+
type: z232.literal("PropertyDefinitionDelete"),
|
|
6507
6595
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6508
6596
|
});
|
|
6509
6597
|
|
|
6510
6598
|
// src/api/dto/elements/properties/property-values.ts
|
|
6511
|
-
import { z as
|
|
6512
|
-
var DTOElementPropertyValue =
|
|
6513
|
-
id:
|
|
6514
|
-
designSystemVersionId:
|
|
6515
|
-
definitionId:
|
|
6516
|
-
targetElementId:
|
|
6517
|
-
value:
|
|
6518
|
-
valuePreview:
|
|
6599
|
+
import { z as z233 } from "zod";
|
|
6600
|
+
var DTOElementPropertyValue = z233.object({
|
|
6601
|
+
id: z233.string(),
|
|
6602
|
+
designSystemVersionId: z233.string(),
|
|
6603
|
+
definitionId: z233.string(),
|
|
6604
|
+
targetElementId: z233.string(),
|
|
6605
|
+
value: z233.union([z233.string(), z233.number(), z233.boolean()]).optional(),
|
|
6606
|
+
valuePreview: z233.string().optional()
|
|
6519
6607
|
});
|
|
6520
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6521
|
-
values:
|
|
6608
|
+
var DTOElementPropertyValuesGetResponse = z233.object({
|
|
6609
|
+
values: z233.array(DTOElementPropertyValue)
|
|
6522
6610
|
});
|
|
6523
6611
|
|
|
6524
6612
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6525
|
-
import { z as
|
|
6526
|
-
var DTOElementActionOutput =
|
|
6613
|
+
import { z as z234 } from "zod";
|
|
6614
|
+
var DTOElementActionOutput = z234.discriminatedUnion("type", [
|
|
6527
6615
|
// Documentation pages
|
|
6528
6616
|
DTODocumentationPageCreateActionOutputV2,
|
|
6529
6617
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6550,7 +6638,7 @@ var DTOElementActionOutput = z232.discriminatedUnion("type", [
|
|
|
6550
6638
|
// Approvals
|
|
6551
6639
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6552
6640
|
]);
|
|
6553
|
-
var DTOElementActionInput =
|
|
6641
|
+
var DTOElementActionInput = z234.discriminatedUnion("type", [
|
|
6554
6642
|
// Documentation pages
|
|
6555
6643
|
DTODocumentationPageCreateActionInputV2,
|
|
6556
6644
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6579,60 +6667,60 @@ var DTOElementActionInput = z232.discriminatedUnion("type", [
|
|
|
6579
6667
|
]);
|
|
6580
6668
|
|
|
6581
6669
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6582
|
-
import { z as
|
|
6583
|
-
var DTOElementsGetTypeFilter =
|
|
6584
|
-
var DTOElementsGetQuerySchema =
|
|
6585
|
-
types:
|
|
6670
|
+
import { z as z235 } from "zod";
|
|
6671
|
+
var DTOElementsGetTypeFilter = z235.enum(["FigmaNode"]);
|
|
6672
|
+
var DTOElementsGetQuerySchema = z235.object({
|
|
6673
|
+
types: z235.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6586
6674
|
});
|
|
6587
|
-
var DTOElementsGetOutput =
|
|
6588
|
-
figmaNodes:
|
|
6675
|
+
var DTOElementsGetOutput = z235.object({
|
|
6676
|
+
figmaNodes: z235.array(DTOFigmaNode).optional()
|
|
6589
6677
|
});
|
|
6590
6678
|
|
|
6591
6679
|
// src/api/dto/figma-components/assets/download.ts
|
|
6592
|
-
import { z as
|
|
6593
|
-
var DTOAssetRenderConfiguration =
|
|
6594
|
-
prefix:
|
|
6595
|
-
suffix:
|
|
6596
|
-
scale:
|
|
6597
|
-
format:
|
|
6598
|
-
});
|
|
6599
|
-
var DTORenderedAssetFile =
|
|
6600
|
-
assetId:
|
|
6601
|
-
fileName:
|
|
6602
|
-
sourceUrl:
|
|
6680
|
+
import { z as z236 } from "zod";
|
|
6681
|
+
var DTOAssetRenderConfiguration = z236.object({
|
|
6682
|
+
prefix: z236.string().optional(),
|
|
6683
|
+
suffix: z236.string().optional(),
|
|
6684
|
+
scale: z236.enum(["x1", "x2", "x3", "x4"]),
|
|
6685
|
+
format: z236.enum(["png", "pdf", "svg"])
|
|
6686
|
+
});
|
|
6687
|
+
var DTORenderedAssetFile = z236.object({
|
|
6688
|
+
assetId: z236.string(),
|
|
6689
|
+
fileName: z236.string(),
|
|
6690
|
+
sourceUrl: z236.string(),
|
|
6603
6691
|
settings: DTOAssetRenderConfiguration,
|
|
6604
|
-
originalName:
|
|
6692
|
+
originalName: z236.string()
|
|
6605
6693
|
});
|
|
6606
|
-
var DTODownloadAssetsRequest =
|
|
6607
|
-
persistentIds:
|
|
6694
|
+
var DTODownloadAssetsRequest = z236.object({
|
|
6695
|
+
persistentIds: z236.array(z236.string().uuid()).optional(),
|
|
6608
6696
|
settings: DTOAssetRenderConfiguration.array()
|
|
6609
6697
|
});
|
|
6610
|
-
var DTODownloadAssetsResponse =
|
|
6698
|
+
var DTODownloadAssetsResponse = z236.object({
|
|
6611
6699
|
items: DTORenderedAssetFile.array()
|
|
6612
6700
|
});
|
|
6613
6701
|
|
|
6614
6702
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6615
|
-
import { z as
|
|
6616
|
-
var DTOLiveblocksAuthResponse =
|
|
6617
|
-
token:
|
|
6703
|
+
import { z as z237 } from "zod";
|
|
6704
|
+
var DTOLiveblocksAuthResponse = z237.object({
|
|
6705
|
+
token: z237.string()
|
|
6618
6706
|
});
|
|
6619
6707
|
|
|
6620
6708
|
// src/api/dto/users/authenticated-user.ts
|
|
6621
|
-
import { z as
|
|
6709
|
+
import { z as z239 } from "zod";
|
|
6622
6710
|
|
|
6623
6711
|
// src/api/dto/users/user.ts
|
|
6624
|
-
import { z as
|
|
6625
|
-
var DTOUserProfile =
|
|
6626
|
-
name:
|
|
6627
|
-
nickname:
|
|
6628
|
-
avatar:
|
|
6629
|
-
});
|
|
6630
|
-
var DTOUser =
|
|
6631
|
-
id:
|
|
6632
|
-
email:
|
|
6712
|
+
import { z as z238 } from "zod";
|
|
6713
|
+
var DTOUserProfile = z238.object({
|
|
6714
|
+
name: z238.string(),
|
|
6715
|
+
nickname: z238.string().optional(),
|
|
6716
|
+
avatar: z238.string().optional()
|
|
6717
|
+
});
|
|
6718
|
+
var DTOUser = z238.object({
|
|
6719
|
+
id: z238.string(),
|
|
6720
|
+
email: z238.string(),
|
|
6633
6721
|
profile: DTOUserProfile
|
|
6634
6722
|
});
|
|
6635
|
-
var DTOUserGetResponse =
|
|
6723
|
+
var DTOUserGetResponse = z238.object({
|
|
6636
6724
|
user: DTOUser
|
|
6637
6725
|
});
|
|
6638
6726
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -6641,34 +6729,34 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
6641
6729
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6642
6730
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6643
6731
|
var DTOUserSource = UserSource;
|
|
6644
|
-
var DTOUserOnboarding =
|
|
6645
|
-
companyName:
|
|
6646
|
-
numberOfPeopleInOrg:
|
|
6647
|
-
numberOfPeopleInDesignTeam:
|
|
6732
|
+
var DTOUserOnboarding = z239.object({
|
|
6733
|
+
companyName: z239.string().optional(),
|
|
6734
|
+
numberOfPeopleInOrg: z239.string().optional(),
|
|
6735
|
+
numberOfPeopleInDesignTeam: z239.string().optional(),
|
|
6648
6736
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6649
|
-
jobTitle:
|
|
6650
|
-
phase:
|
|
6737
|
+
jobTitle: z239.string().optional(),
|
|
6738
|
+
phase: z239.string().optional(),
|
|
6651
6739
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6652
|
-
designSystemName:
|
|
6653
|
-
defaultDestination:
|
|
6654
|
-
isPageDraftOnboardingFinished:
|
|
6740
|
+
designSystemName: z239.string().optional(),
|
|
6741
|
+
defaultDestination: z239.string().optional(),
|
|
6742
|
+
isPageDraftOnboardingFinished: z239.boolean().optional()
|
|
6655
6743
|
});
|
|
6656
6744
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6657
6745
|
onboarding: DTOUserOnboarding.optional()
|
|
6658
6746
|
});
|
|
6659
6747
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6660
6748
|
profile: DTOAuthenticatedUserProfile,
|
|
6661
|
-
createdAt:
|
|
6662
|
-
loggedOutAt:
|
|
6749
|
+
createdAt: z239.coerce.date(),
|
|
6750
|
+
loggedOutAt: z239.coerce.date().optional(),
|
|
6663
6751
|
source: DTOUserSource.optional()
|
|
6664
6752
|
});
|
|
6665
|
-
var DTOAuthenticatedUserResponse =
|
|
6753
|
+
var DTOAuthenticatedUserResponse = z239.object({
|
|
6666
6754
|
user: DTOAuthenticatedUser
|
|
6667
6755
|
});
|
|
6668
6756
|
|
|
6669
6757
|
// src/api/dto/users/update.ts
|
|
6670
|
-
import { z as
|
|
6671
|
-
var DTOUserProfileUpdateResponse =
|
|
6758
|
+
import { z as z240 } from "zod";
|
|
6759
|
+
var DTOUserProfileUpdateResponse = z240.object({
|
|
6672
6760
|
user: User
|
|
6673
6761
|
});
|
|
6674
6762
|
|
|
@@ -6717,10 +6805,10 @@ var VersionStatsEndpoint = class {
|
|
|
6717
6805
|
};
|
|
6718
6806
|
|
|
6719
6807
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
6720
|
-
import { z as
|
|
6808
|
+
import { z as z242 } from "zod";
|
|
6721
6809
|
|
|
6722
6810
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
6723
|
-
import { z as
|
|
6811
|
+
import { z as z241 } from "zod";
|
|
6724
6812
|
var OverridesEndpoint = class {
|
|
6725
6813
|
constructor(requestExecutor) {
|
|
6726
6814
|
this.requestExecutor = requestExecutor;
|
|
@@ -6728,7 +6816,7 @@ var OverridesEndpoint = class {
|
|
|
6728
6816
|
create(dsId, versionId, themeId, body) {
|
|
6729
6817
|
return this.requestExecutor.json(
|
|
6730
6818
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
6731
|
-
|
|
6819
|
+
z241.any(),
|
|
6732
6820
|
{
|
|
6733
6821
|
method: "POST",
|
|
6734
6822
|
body
|
|
@@ -6745,30 +6833,36 @@ var ThemesEndpoint = class {
|
|
|
6745
6833
|
this.overrides = new OverridesEndpoint(requestExecutor);
|
|
6746
6834
|
}
|
|
6747
6835
|
create(dsId, versionId, body) {
|
|
6748
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`,
|
|
6836
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z242.any(), {
|
|
6749
6837
|
method: "POST",
|
|
6750
6838
|
body
|
|
6751
6839
|
});
|
|
6752
6840
|
}
|
|
6753
6841
|
delete(dsId, versionId, themeId) {
|
|
6754
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
6842
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z242.any(), {
|
|
6755
6843
|
method: "DELETE"
|
|
6756
6844
|
});
|
|
6757
6845
|
}
|
|
6758
6846
|
};
|
|
6759
6847
|
|
|
6760
6848
|
// src/api/endpoints/design-system/versions/tokens.ts
|
|
6761
|
-
import { z as
|
|
6849
|
+
import { z as z243 } from "zod";
|
|
6762
6850
|
var TokensEndpoint = class {
|
|
6763
6851
|
constructor(requestExecutor) {
|
|
6764
6852
|
this.requestExecutor = requestExecutor;
|
|
6765
6853
|
}
|
|
6766
6854
|
create(dsId, versionId, body) {
|
|
6767
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`,
|
|
6855
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z243.any(), {
|
|
6768
6856
|
method: "POST",
|
|
6769
6857
|
body
|
|
6770
6858
|
});
|
|
6771
6859
|
}
|
|
6860
|
+
list(dsId, versionId) {
|
|
6861
|
+
return this.requestExecutor.json(
|
|
6862
|
+
`/design-systems/${dsId}/versions/${versionId}/tokens`,
|
|
6863
|
+
DTODesignTokenListResponse
|
|
6864
|
+
);
|
|
6865
|
+
}
|
|
6772
6866
|
};
|
|
6773
6867
|
|
|
6774
6868
|
// src/api/endpoints/design-system/versions.ts
|
|
@@ -6805,7 +6899,7 @@ var DesignSystemBffEndpoint = class {
|
|
|
6805
6899
|
};
|
|
6806
6900
|
|
|
6807
6901
|
// src/api/endpoints/design-system/design-systems.ts
|
|
6808
|
-
import { z as
|
|
6902
|
+
import { z as z244 } from "zod";
|
|
6809
6903
|
|
|
6810
6904
|
// src/api/endpoints/design-system/members.ts
|
|
6811
6905
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -6825,6 +6919,16 @@ var DesignSystemMembersEndpoint = class {
|
|
|
6825
6919
|
}
|
|
6826
6920
|
};
|
|
6827
6921
|
|
|
6922
|
+
// src/api/endpoints/design-system/sources.ts
|
|
6923
|
+
var DesignSystemSourcesEndpoint = class {
|
|
6924
|
+
constructor(requestExecutor) {
|
|
6925
|
+
this.requestExecutor = requestExecutor;
|
|
6926
|
+
}
|
|
6927
|
+
list(dsId) {
|
|
6928
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
6929
|
+
}
|
|
6930
|
+
};
|
|
6931
|
+
|
|
6828
6932
|
// src/api/endpoints/design-system/design-systems.ts
|
|
6829
6933
|
var DesignSystemsEndpoint = class {
|
|
6830
6934
|
constructor(requestExecutor) {
|
|
@@ -6832,9 +6936,11 @@ var DesignSystemsEndpoint = class {
|
|
|
6832
6936
|
__publicField(this, "members");
|
|
6833
6937
|
__publicField(this, "versions");
|
|
6834
6938
|
__publicField(this, "bff");
|
|
6939
|
+
__publicField(this, "sources");
|
|
6835
6940
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
6836
6941
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
6837
6942
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
6943
|
+
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
6838
6944
|
}
|
|
6839
6945
|
create(body) {
|
|
6840
6946
|
return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
|
|
@@ -6843,10 +6949,10 @@ var DesignSystemsEndpoint = class {
|
|
|
6843
6949
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
6844
6950
|
}
|
|
6845
6951
|
get(dsId) {
|
|
6846
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6952
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z244.any());
|
|
6847
6953
|
}
|
|
6848
6954
|
delete(dsId) {
|
|
6849
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6955
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z244.any(), { method: "DELETE" });
|
|
6850
6956
|
}
|
|
6851
6957
|
update(dsId, body) {
|
|
6852
6958
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -6890,7 +6996,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
6890
6996
|
};
|
|
6891
6997
|
|
|
6892
6998
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
6893
|
-
import { z as
|
|
6999
|
+
import { z as z245 } from "zod";
|
|
6894
7000
|
var WorkspaceMembersEndpoint = class {
|
|
6895
7001
|
constructor(requestExecutor) {
|
|
6896
7002
|
this.requestExecutor = requestExecutor;
|
|
@@ -6907,7 +7013,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6907
7013
|
});
|
|
6908
7014
|
}
|
|
6909
7015
|
invite(workspaceId, body) {
|
|
6910
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7016
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z245.any(), { method: "POST", body });
|
|
6911
7017
|
}
|
|
6912
7018
|
delete(workspaceId, userId) {
|
|
6913
7019
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -6917,7 +7023,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6917
7023
|
};
|
|
6918
7024
|
|
|
6919
7025
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
6920
|
-
import { z as
|
|
7026
|
+
import { z as z246 } from "zod";
|
|
6921
7027
|
var WorkspacesEndpoint = class {
|
|
6922
7028
|
constructor(requestExecutor) {
|
|
6923
7029
|
this.requestExecutor = requestExecutor;
|
|
@@ -6940,10 +7046,10 @@ var WorkspacesEndpoint = class {
|
|
|
6940
7046
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
6941
7047
|
}
|
|
6942
7048
|
delete(workspaceId) {
|
|
6943
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7049
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z246.any(), { method: "DELETE" });
|
|
6944
7050
|
}
|
|
6945
7051
|
subscription(workspaceId) {
|
|
6946
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7052
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z246.any(), { method: "GET" });
|
|
6947
7053
|
}
|
|
6948
7054
|
};
|
|
6949
7055
|
|
|
@@ -7037,9 +7143,9 @@ ${bodyText}`,
|
|
|
7037
7143
|
|
|
7038
7144
|
// src/api/transport/request-executor.ts
|
|
7039
7145
|
import fetch from "node-fetch";
|
|
7040
|
-
import { z as
|
|
7041
|
-
var ResponseWrapper =
|
|
7042
|
-
result:
|
|
7146
|
+
import { z as z247 } from "zod";
|
|
7147
|
+
var ResponseWrapper = z247.object({
|
|
7148
|
+
result: z247.record(z247.any())
|
|
7043
7149
|
});
|
|
7044
7150
|
var RequestExecutor = class {
|
|
7045
7151
|
constructor(testServerConfig) {
|
|
@@ -7165,7 +7271,7 @@ function generateHash(input, debug = false) {
|
|
|
7165
7271
|
}
|
|
7166
7272
|
|
|
7167
7273
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7168
|
-
import { z as
|
|
7274
|
+
import { z as z248 } from "zod";
|
|
7169
7275
|
|
|
7170
7276
|
// src/yjs/version-room/base.ts
|
|
7171
7277
|
var VersionRoomBaseYDoc = class {
|
|
@@ -7695,24 +7801,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
7695
7801
|
};
|
|
7696
7802
|
|
|
7697
7803
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7698
|
-
var DocumentationHierarchySettings =
|
|
7699
|
-
routingVersion:
|
|
7700
|
-
isDraftFeatureAdopted:
|
|
7701
|
-
isApprovalFeatureEnabled:
|
|
7702
|
-
approvalRequiredForPublishing:
|
|
7804
|
+
var DocumentationHierarchySettings = z248.object({
|
|
7805
|
+
routingVersion: z248.string(),
|
|
7806
|
+
isDraftFeatureAdopted: z248.boolean(),
|
|
7807
|
+
isApprovalFeatureEnabled: z248.boolean(),
|
|
7808
|
+
approvalRequiredForPublishing: z248.boolean()
|
|
7703
7809
|
});
|
|
7704
7810
|
function yjsToDocumentationHierarchy(doc) {
|
|
7705
7811
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
7706
7812
|
}
|
|
7707
7813
|
|
|
7708
7814
|
// src/yjs/design-system-content/item-configuration.ts
|
|
7709
|
-
import { z as
|
|
7710
|
-
var DTODocumentationPageRoomHeaderData =
|
|
7711
|
-
title:
|
|
7815
|
+
import { z as z249 } from "zod";
|
|
7816
|
+
var DTODocumentationPageRoomHeaderData = z249.object({
|
|
7817
|
+
title: z249.string(),
|
|
7712
7818
|
configuration: DTODocumentationItemConfigurationV2
|
|
7713
7819
|
});
|
|
7714
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
7715
|
-
title:
|
|
7820
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z249.object({
|
|
7821
|
+
title: z249.string().optional(),
|
|
7716
7822
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
7717
7823
|
});
|
|
7718
7824
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7763,7 +7869,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7763
7869
|
header: rawHeader
|
|
7764
7870
|
};
|
|
7765
7871
|
return {
|
|
7766
|
-
title:
|
|
7872
|
+
title: z249.string().parse(title),
|
|
7767
7873
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7768
7874
|
};
|
|
7769
7875
|
}
|
|
@@ -7773,9 +7879,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7773
7879
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7774
7880
|
|
|
7775
7881
|
// src/yjs/docs-editor/model/page.ts
|
|
7776
|
-
import { z as
|
|
7777
|
-
var DocumentationPageEditorModel =
|
|
7778
|
-
blocks:
|
|
7882
|
+
import { z as z250 } from "zod";
|
|
7883
|
+
var DocumentationPageEditorModel = z250.object({
|
|
7884
|
+
blocks: z250.array(DocumentationPageContentItem)
|
|
7779
7885
|
});
|
|
7780
7886
|
|
|
7781
7887
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11295,7 +11401,7 @@ var blocks = [
|
|
|
11295
11401
|
|
|
11296
11402
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11297
11403
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11298
|
-
import { z as
|
|
11404
|
+
import { z as z251 } from "zod";
|
|
11299
11405
|
function yDocToPage(yDoc, definitions) {
|
|
11300
11406
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11301
11407
|
}
|
|
@@ -11375,7 +11481,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11375
11481
|
return null;
|
|
11376
11482
|
return {
|
|
11377
11483
|
id,
|
|
11378
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
11484
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z251.string()) ?? "",
|
|
11379
11485
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11380
11486
|
};
|
|
11381
11487
|
}
|
|
@@ -11410,7 +11516,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11410
11516
|
});
|
|
11411
11517
|
}
|
|
11412
11518
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11413
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11519
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z251.string());
|
|
11414
11520
|
if (!definitionId) {
|
|
11415
11521
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11416
11522
|
return [];
|
|
@@ -11452,7 +11558,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11452
11558
|
if (!id)
|
|
11453
11559
|
return null;
|
|
11454
11560
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11455
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11561
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z251.string().optional()));
|
|
11456
11562
|
return {
|
|
11457
11563
|
id,
|
|
11458
11564
|
type: "Block",
|
|
@@ -11580,10 +11686,10 @@ function parseRichTextAttribute(mark) {
|
|
|
11580
11686
|
return null;
|
|
11581
11687
|
}
|
|
11582
11688
|
function parseProsemirrorLink(mark) {
|
|
11583
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
11689
|
+
const href = getProsemirrorAttribute(mark, "href", z251.string().optional());
|
|
11584
11690
|
if (!href)
|
|
11585
11691
|
return null;
|
|
11586
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
11692
|
+
const target = getProsemirrorAttribute(mark, "target", z251.string().optional());
|
|
11587
11693
|
const openInNewTab = target === "_blank";
|
|
11588
11694
|
if (href.startsWith("@")) {
|
|
11589
11695
|
return {
|
|
@@ -11602,10 +11708,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11602
11708
|
}
|
|
11603
11709
|
}
|
|
11604
11710
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11605
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
11711
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z251.string().optional());
|
|
11606
11712
|
if (!highlightId)
|
|
11607
11713
|
return null;
|
|
11608
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
11714
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z251.boolean().optional()) ?? false;
|
|
11609
11715
|
return {
|
|
11610
11716
|
type: "Comment",
|
|
11611
11717
|
commentHighlightId: highlightId,
|
|
@@ -11617,7 +11723,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11617
11723
|
if (!id)
|
|
11618
11724
|
return null;
|
|
11619
11725
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11620
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
11726
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z251.boolean().optional()) !== false;
|
|
11621
11727
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11622
11728
|
if (!tableChild) {
|
|
11623
11729
|
return emptyTable(id, variantId, 0);
|
|
@@ -11664,9 +11770,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11664
11770
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11665
11771
|
if (!id)
|
|
11666
11772
|
return null;
|
|
11667
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11773
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z251.string().optional());
|
|
11668
11774
|
let columnWidth;
|
|
11669
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11775
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z251.array(z251.number()).nullish());
|
|
11670
11776
|
if (columnWidthArray) {
|
|
11671
11777
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11672
11778
|
}
|
|
@@ -11704,7 +11810,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11704
11810
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11705
11811
|
};
|
|
11706
11812
|
case "image":
|
|
11707
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11813
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z251.string());
|
|
11708
11814
|
if (!items)
|
|
11709
11815
|
return null;
|
|
11710
11816
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11824,7 +11930,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11824
11930
|
);
|
|
11825
11931
|
}
|
|
11826
11932
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11827
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11933
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z251.string());
|
|
11828
11934
|
if (!itemsString)
|
|
11829
11935
|
return null;
|
|
11830
11936
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11836,18 +11942,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11836
11942
|
}
|
|
11837
11943
|
function parseAppearance(prosemirrorNode) {
|
|
11838
11944
|
let appearance = {};
|
|
11839
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11945
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z251.string().optional());
|
|
11840
11946
|
if (rawAppearanceString) {
|
|
11841
11947
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11842
11948
|
if (parsedAppearance.success) {
|
|
11843
11949
|
appearance = parsedAppearance.data;
|
|
11844
11950
|
}
|
|
11845
11951
|
}
|
|
11846
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11952
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z251.number().optional());
|
|
11847
11953
|
if (columns) {
|
|
11848
11954
|
appearance.numberOfColumns = columns;
|
|
11849
11955
|
}
|
|
11850
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11956
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z251.string().optional());
|
|
11851
11957
|
if (backgroundColor) {
|
|
11852
11958
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11853
11959
|
if (parsedColor.success) {
|
|
@@ -11942,13 +12048,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11942
12048
|
}
|
|
11943
12049
|
}
|
|
11944
12050
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11945
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12051
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z251.string());
|
|
11946
12052
|
if (!id)
|
|
11947
12053
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11948
12054
|
return id;
|
|
11949
12055
|
}
|
|
11950
12056
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11951
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12057
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z251.string()));
|
|
11952
12058
|
}
|
|
11953
12059
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11954
12060
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -12009,6 +12115,7 @@ export {
|
|
|
12009
12115
|
BackendVersionRoomYDoc,
|
|
12010
12116
|
BlockDefinitionUtils,
|
|
12011
12117
|
BlockParsingUtils,
|
|
12118
|
+
Collection,
|
|
12012
12119
|
DTOAppBootstrapDataQuery,
|
|
12013
12120
|
DTOAppBootstrapDataResponse,
|
|
12014
12121
|
DTOAssetRenderConfiguration,
|
|
@@ -12061,6 +12168,8 @@ export {
|
|
|
12061
12168
|
DTODesignSystemVersionStatsQuery,
|
|
12062
12169
|
DTODesignSystemVersionsListResponse,
|
|
12063
12170
|
DTODesignSystemsListResponse,
|
|
12171
|
+
DTODesignToken,
|
|
12172
|
+
DTODesignTokenListResponse,
|
|
12064
12173
|
DTODiffCountBase,
|
|
12065
12174
|
DTODocumentationDraftChangeType,
|
|
12066
12175
|
DTODocumentationDraftState,
|
|
@@ -12248,20 +12357,31 @@ export {
|
|
|
12248
12357
|
DesignSystemMembersEndpoint,
|
|
12249
12358
|
DesignSystemVersionsEndpoint,
|
|
12250
12359
|
DesignSystemsEndpoint,
|
|
12360
|
+
DimensionsVariableScopeType,
|
|
12251
12361
|
DocumentationHierarchySettings,
|
|
12252
12362
|
DocumentationPageEditorModel,
|
|
12253
12363
|
DocumentationPageV1DTO,
|
|
12364
|
+
FormattedCollections,
|
|
12254
12365
|
FrontendVersionRoomYDoc,
|
|
12255
12366
|
ListTreeBuilder,
|
|
12256
12367
|
NpmRegistryInput,
|
|
12257
12368
|
ObjectMeta2 as ObjectMeta,
|
|
12258
12369
|
PageBlockEditorModel,
|
|
12259
12370
|
PageSectionEditorModel,
|
|
12371
|
+
RGB,
|
|
12372
|
+
RGBA,
|
|
12260
12373
|
RequestExecutor,
|
|
12261
12374
|
RequestExecutorError,
|
|
12375
|
+
ResolvedVariableType,
|
|
12376
|
+
StringVariableScopeType,
|
|
12262
12377
|
SupernovaApiClient,
|
|
12263
12378
|
TokenCollectionsEndpoint,
|
|
12264
12379
|
UsersEndpoint,
|
|
12380
|
+
Variable,
|
|
12381
|
+
VariableAlias,
|
|
12382
|
+
VariableMode,
|
|
12383
|
+
VariableValue,
|
|
12384
|
+
VariablesMapping,
|
|
12265
12385
|
VersionRoomBaseYDoc,
|
|
12266
12386
|
VersionSQSPayload,
|
|
12267
12387
|
WorkspaceConfigurationPayload,
|