@supernova-studio/model 0.28.0 → 0.29.0
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 +75063 -70967
- package/dist/index.d.ts +75063 -70967
- package/dist/index.js +142 -88
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1155 -1101
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/codegen/pulsar.ts +3 -3
- package/src/dsm/assets/asset-dynamo-record.ts +10 -0
- package/src/dsm/assets/asset.ts +12 -3
- package/src/dsm/assets/index.ts +1 -0
- package/src/dsm/documentation/index.ts +3 -0
- package/src/dsm/documentation/link-preview.ts +9 -0
- package/src/dsm/documentation/page-content-backup.ts +13 -0
- package/src/dsm/documentation/page-content.ts +33 -0
- package/src/dsm/elements/data/index.ts +0 -1
- package/src/dsm/elements/data/item-header-v1.ts +2 -2
- package/src/dsm/elements/data/item-header-v2.ts +0 -1
- package/src/dsm/index.ts +1 -0
- package/src/{multiplayer → dsm/rooms}/design-system-version-room.ts +3 -3
- package/src/dsm/rooms/documentation-page-room.ts +50 -0
- package/src/{multiplayer → dsm/rooms}/room-type.ts +1 -0
- package/src/index.ts +0 -1
- package/src/workspace/workspace-context.ts +2 -1
- package/src/workspace/workspace-create.ts +6 -0
- package/src/workspace/workspace.ts +17 -11
- package/src/dsm/elements/data/page-asset.ts +0 -27
- package/src/multiplayer/documentation-page-room.ts +0 -38
- /package/src/{multiplayer → dsm/rooms}/index.ts +0 -0
package/dist/index.mjs
CHANGED
|
@@ -239,158 +239,175 @@ var Subscription = z11.object({
|
|
|
239
239
|
daysUntilDue: z11.number().optional()
|
|
240
240
|
});
|
|
241
241
|
|
|
242
|
-
// src/dsm/assets/asset-
|
|
242
|
+
// src/dsm/assets/asset-dynamo-record.ts
|
|
243
243
|
import { z as z12 } from "zod";
|
|
244
|
-
var
|
|
244
|
+
var AssetDynamoRecord = z12.object({
|
|
245
|
+
path: z12.string(),
|
|
245
246
|
id: z12.string(),
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
persistentId: z12.string()
|
|
247
|
+
designSystemId: z12.string(),
|
|
248
|
+
expiresAt: z12.number()
|
|
249
249
|
});
|
|
250
250
|
|
|
251
|
-
// src/dsm/assets/asset-
|
|
251
|
+
// src/dsm/assets/asset-reference.ts
|
|
252
252
|
import { z as z13 } from "zod";
|
|
253
|
-
var
|
|
253
|
+
var AssetReference = z13.object({
|
|
254
|
+
id: z13.string(),
|
|
255
|
+
designSystemVersionId: z13.string(),
|
|
256
|
+
assetId: z13.string(),
|
|
257
|
+
persistentId: z13.string()
|
|
258
|
+
});
|
|
254
259
|
|
|
255
|
-
// src/dsm/assets/asset.ts
|
|
260
|
+
// src/dsm/assets/asset-value.ts
|
|
256
261
|
import { z as z14 } from "zod";
|
|
257
|
-
var
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
var
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
262
|
+
var AssetValue = z14.object({});
|
|
263
|
+
|
|
264
|
+
// src/dsm/assets/asset.ts
|
|
265
|
+
import { z as z15 } from "zod";
|
|
266
|
+
var AssetType = z15.enum(["Image", "Font"]);
|
|
267
|
+
var AssetScope = z15.enum(["DocumentationFrame", "ComponentThumbnail", "DesignSystem", "Documentation"]);
|
|
268
|
+
var AssetFontProperties = z15.object({
|
|
269
|
+
family: z15.string(),
|
|
270
|
+
subfamily: z15.string()
|
|
271
|
+
});
|
|
272
|
+
var AssetProperties = z15.union([
|
|
273
|
+
z15.object({
|
|
274
|
+
fontProperties: z15.array(AssetFontProperties)
|
|
275
|
+
}),
|
|
276
|
+
z15.object({
|
|
277
|
+
width: z15.number(),
|
|
278
|
+
height: z15.number()
|
|
279
|
+
})
|
|
280
|
+
]);
|
|
281
|
+
var AssetOrigin = z15.object({
|
|
282
|
+
originKey: z15.string()
|
|
268
283
|
});
|
|
269
|
-
var
|
|
270
|
-
|
|
271
|
-
|
|
284
|
+
var AssetProcessStatus = z15.enum(["Pending", "Uploaded", "Processed"]);
|
|
285
|
+
var Asset = z15.object({
|
|
286
|
+
id: z15.string(),
|
|
287
|
+
designSystemId: z15.string().nullish(),
|
|
272
288
|
type: AssetType,
|
|
273
|
-
originalFileName:
|
|
274
|
-
filePath:
|
|
289
|
+
originalFileName: z15.string().nullish(),
|
|
290
|
+
filePath: z15.string(),
|
|
275
291
|
scope: AssetScope,
|
|
276
292
|
properties: AssetProperties.nullish(),
|
|
293
|
+
state: AssetProcessStatus.optional(),
|
|
277
294
|
origin: AssetOrigin.optional(),
|
|
278
|
-
originKey:
|
|
295
|
+
originKey: z15.string().optional()
|
|
279
296
|
});
|
|
280
297
|
function isImportedAsset(asset) {
|
|
281
298
|
return !!asset.originKey;
|
|
282
299
|
}
|
|
283
300
|
|
|
284
301
|
// src/dsm/data-sources/data-source.ts
|
|
285
|
-
import { z as
|
|
286
|
-
var DataSourceRemoteType =
|
|
287
|
-
var DataSourceUploadRemoteSource =
|
|
288
|
-
var DataSourceFigmaState =
|
|
289
|
-
var DataSourceAutoImportMode =
|
|
290
|
-
var DataSourceStats =
|
|
302
|
+
import { z as z16 } from "zod";
|
|
303
|
+
var DataSourceRemoteType = z16.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
304
|
+
var DataSourceUploadRemoteSource = z16.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
305
|
+
var DataSourceFigmaState = z16.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
306
|
+
var DataSourceAutoImportMode = z16.enum(["Never", "Hourly"]);
|
|
307
|
+
var DataSourceStats = z16.object({
|
|
291
308
|
tokens: zeroNumberByDefault(),
|
|
292
309
|
components: zeroNumberByDefault(),
|
|
293
310
|
assets: zeroNumberByDefault(),
|
|
294
311
|
frames: zeroNumberByDefault()
|
|
295
312
|
});
|
|
296
|
-
var DataSourceFigmaFileData =
|
|
297
|
-
lastUpdatedAt:
|
|
313
|
+
var DataSourceFigmaFileData = z16.object({
|
|
314
|
+
lastUpdatedAt: z16.coerce.date()
|
|
298
315
|
});
|
|
299
|
-
var DataSourceFigmaFileVersionData =
|
|
300
|
-
id:
|
|
301
|
-
label:
|
|
302
|
-
description:
|
|
303
|
-
createdAt:
|
|
304
|
-
});
|
|
305
|
-
var DataSourceFigmaScope =
|
|
306
|
-
assets:
|
|
307
|
-
components:
|
|
308
|
-
documentationFrames:
|
|
309
|
-
tokens:
|
|
310
|
-
themePersistentId:
|
|
311
|
-
});
|
|
312
|
-
var DataSourceFigmaImportMetadata =
|
|
316
|
+
var DataSourceFigmaFileVersionData = z16.object({
|
|
317
|
+
id: z16.string(),
|
|
318
|
+
label: z16.string().optional(),
|
|
319
|
+
description: z16.string().optional(),
|
|
320
|
+
createdAt: z16.coerce.date()
|
|
321
|
+
});
|
|
322
|
+
var DataSourceFigmaScope = z16.object({
|
|
323
|
+
assets: z16.boolean(),
|
|
324
|
+
components: z16.boolean(),
|
|
325
|
+
documentationFrames: z16.boolean(),
|
|
326
|
+
tokens: z16.boolean(),
|
|
327
|
+
themePersistentId: z16.string().optional()
|
|
328
|
+
});
|
|
329
|
+
var DataSourceFigmaImportMetadata = z16.object({
|
|
313
330
|
fileData: DataSourceFigmaFileData.optional(),
|
|
314
331
|
importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
|
|
315
332
|
});
|
|
316
|
-
var DataSourceFigmaRemote =
|
|
317
|
-
type:
|
|
318
|
-
fileId:
|
|
319
|
-
ownerId:
|
|
320
|
-
ownerName:
|
|
333
|
+
var DataSourceFigmaRemote = z16.object({
|
|
334
|
+
type: z16.literal(DataSourceRemoteType.Enum.Figma),
|
|
335
|
+
fileId: z16.string(),
|
|
336
|
+
ownerId: z16.string(),
|
|
337
|
+
ownerName: z16.string(),
|
|
321
338
|
scope: DataSourceFigmaScope,
|
|
322
339
|
state: DataSourceFigmaState,
|
|
323
|
-
requiresSync:
|
|
340
|
+
requiresSync: z16.boolean().optional().transform((v) => v ?? false),
|
|
324
341
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
325
|
-
downloadChunkSize:
|
|
326
|
-
figmaRenderChunkSize:
|
|
327
|
-
maxFileDepth:
|
|
342
|
+
downloadChunkSize: z16.number().optional(),
|
|
343
|
+
figmaRenderChunkSize: z16.number().optional(),
|
|
344
|
+
maxFileDepth: z16.number().optional()
|
|
328
345
|
});
|
|
329
|
-
var DataSourceTokenStudioRemote =
|
|
330
|
-
type:
|
|
346
|
+
var DataSourceTokenStudioRemote = z16.object({
|
|
347
|
+
type: z16.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
331
348
|
});
|
|
332
|
-
var DataSourceUploadImportMetadata =
|
|
333
|
-
var DataSourceUploadRemote =
|
|
334
|
-
type:
|
|
335
|
-
remoteId:
|
|
349
|
+
var DataSourceUploadImportMetadata = z16.record(z16.any());
|
|
350
|
+
var DataSourceUploadRemote = z16.object({
|
|
351
|
+
type: z16.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
352
|
+
remoteId: z16.string(),
|
|
336
353
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
337
354
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
338
355
|
});
|
|
339
|
-
var DataSourceRemote =
|
|
356
|
+
var DataSourceRemote = z16.discriminatedUnion("type", [
|
|
340
357
|
DataSourceFigmaRemote,
|
|
341
358
|
DataSourceUploadRemote,
|
|
342
359
|
DataSourceTokenStudioRemote
|
|
343
360
|
]);
|
|
344
|
-
var DataSourceVersion =
|
|
345
|
-
id:
|
|
346
|
-
createdAt:
|
|
347
|
-
label:
|
|
348
|
-
description:
|
|
361
|
+
var DataSourceVersion = z16.object({
|
|
362
|
+
id: z16.string(),
|
|
363
|
+
createdAt: z16.coerce.date(),
|
|
364
|
+
label: z16.string().nullish(),
|
|
365
|
+
description: z16.string().nullish()
|
|
349
366
|
});
|
|
350
367
|
function zeroNumberByDefault() {
|
|
351
|
-
return
|
|
368
|
+
return z16.number().nullish().transform((v) => v ?? 0);
|
|
352
369
|
}
|
|
353
370
|
|
|
354
371
|
// src/dsm/data-sources/import-job.ts
|
|
355
|
-
import { z as
|
|
372
|
+
import { z as z19 } from "zod";
|
|
356
373
|
|
|
357
374
|
// src/common/entity.ts
|
|
358
|
-
import { z as
|
|
359
|
-
var Entity =
|
|
360
|
-
id:
|
|
361
|
-
createdAt:
|
|
362
|
-
updatedAt:
|
|
375
|
+
import { z as z17 } from "zod";
|
|
376
|
+
var Entity = z17.object({
|
|
377
|
+
id: z17.string(),
|
|
378
|
+
createdAt: z17.coerce.date(),
|
|
379
|
+
updatedAt: z17.coerce.date()
|
|
363
380
|
});
|
|
364
381
|
|
|
365
382
|
// src/common/object-meta.ts
|
|
366
|
-
import { z as
|
|
367
|
-
var ObjectMeta =
|
|
368
|
-
name:
|
|
369
|
-
description:
|
|
383
|
+
import { z as z18 } from "zod";
|
|
384
|
+
var ObjectMeta = z18.object({
|
|
385
|
+
name: z18.string(),
|
|
386
|
+
description: z18.string().optional()
|
|
370
387
|
});
|
|
371
388
|
|
|
372
389
|
// src/dsm/data-sources/import-job.ts
|
|
373
|
-
var ImportJobState =
|
|
374
|
-
var ImportJobOperation =
|
|
390
|
+
var ImportJobState = z19.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
|
|
391
|
+
var ImportJobOperation = z19.enum(["Check", "Import"]);
|
|
375
392
|
var ImportJob = Entity.extend({
|
|
376
|
-
designSystemId:
|
|
377
|
-
designSystemVersionId:
|
|
378
|
-
sourceIds:
|
|
393
|
+
designSystemId: z19.string(),
|
|
394
|
+
designSystemVersionId: z19.string(),
|
|
395
|
+
sourceIds: z19.array(z19.string()),
|
|
379
396
|
state: ImportJobState,
|
|
380
|
-
createdByUserId:
|
|
381
|
-
importContextId:
|
|
382
|
-
error:
|
|
397
|
+
createdByUserId: z19.string().optional(),
|
|
398
|
+
importContextId: z19.string(),
|
|
399
|
+
error: z19.string().optional(),
|
|
383
400
|
sourceType: DataSourceRemoteType,
|
|
384
|
-
importContextCleanedUp:
|
|
401
|
+
importContextCleanedUp: z19.boolean()
|
|
385
402
|
});
|
|
386
403
|
|
|
387
404
|
// src/dsm/data-sources/import-summary.ts
|
|
388
405
|
import { z as z88 } from "zod";
|
|
389
406
|
|
|
390
407
|
// src/dsm/elements/data/base.ts
|
|
391
|
-
import { z as
|
|
392
|
-
var TokenDataAliasSchema =
|
|
393
|
-
aliasTo:
|
|
408
|
+
import { z as z20 } from "zod";
|
|
409
|
+
var TokenDataAliasSchema = z20.object({
|
|
410
|
+
aliasTo: z20.string().optional().nullable().transform((v) => v ?? void 0)
|
|
394
411
|
});
|
|
395
412
|
function tokenAliasOrValue(value) {
|
|
396
413
|
return TokenDataAliasSchema.extend({
|
|
@@ -399,68 +416,68 @@ function tokenAliasOrValue(value) {
|
|
|
399
416
|
}
|
|
400
417
|
|
|
401
418
|
// src/dsm/elements/data/blur.ts
|
|
402
|
-
import { z as
|
|
419
|
+
import { z as z22 } from "zod";
|
|
403
420
|
|
|
404
421
|
// src/dsm/elements/data/dimension.ts
|
|
405
|
-
import { z as
|
|
406
|
-
var DimensionUnit =
|
|
407
|
-
var DimensionValue =
|
|
422
|
+
import { z as z21 } from "zod";
|
|
423
|
+
var DimensionUnit = z21.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
|
|
424
|
+
var DimensionValue = z21.object({
|
|
408
425
|
unit: DimensionUnit,
|
|
409
|
-
measure:
|
|
426
|
+
measure: z21.number()
|
|
410
427
|
});
|
|
411
428
|
var DimensionTokenData = tokenAliasOrValue(DimensionValue);
|
|
412
429
|
|
|
413
430
|
// src/dsm/elements/data/blur.ts
|
|
414
|
-
var BlurType =
|
|
415
|
-
var BlurValue =
|
|
431
|
+
var BlurType = z22.enum(["Layer", "Background"]);
|
|
432
|
+
var BlurValue = z22.object({
|
|
416
433
|
type: BlurType,
|
|
417
434
|
radius: DimensionTokenData
|
|
418
435
|
});
|
|
419
436
|
var BlurTokenData = tokenAliasOrValue(BlurValue);
|
|
420
437
|
|
|
421
438
|
// src/dsm/elements/data/border-radius.ts
|
|
422
|
-
import { z as
|
|
423
|
-
var BorderRadiusUnit =
|
|
424
|
-
var BorderRadiusValue =
|
|
439
|
+
import { z as z23 } from "zod";
|
|
440
|
+
var BorderRadiusUnit = z23.enum(["Pixels", "Rem", "Percent"]);
|
|
441
|
+
var BorderRadiusValue = z23.object({
|
|
425
442
|
unit: BorderRadiusUnit,
|
|
426
|
-
measure:
|
|
443
|
+
measure: z23.number()
|
|
427
444
|
});
|
|
428
445
|
var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
|
|
429
446
|
|
|
430
447
|
// src/dsm/elements/data/border-width.ts
|
|
431
|
-
import { z as
|
|
432
|
-
var BorderWidthUnit =
|
|
433
|
-
var BorderWidthValue =
|
|
448
|
+
import { z as z24 } from "zod";
|
|
449
|
+
var BorderWidthUnit = z24.enum(["Pixels"]);
|
|
450
|
+
var BorderWidthValue = z24.object({
|
|
434
451
|
unit: BorderWidthUnit,
|
|
435
|
-
measure:
|
|
452
|
+
measure: z24.number()
|
|
436
453
|
});
|
|
437
454
|
var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
|
|
438
455
|
|
|
439
456
|
// src/dsm/elements/data/border.ts
|
|
440
|
-
import { z as
|
|
457
|
+
import { z as z27 } from "zod";
|
|
441
458
|
|
|
442
459
|
// src/dsm/elements/data/color.ts
|
|
443
|
-
import { z as
|
|
460
|
+
import { z as z26 } from "zod";
|
|
444
461
|
|
|
445
462
|
// src/dsm/elements/data/opacity.ts
|
|
446
|
-
import { z as
|
|
447
|
-
var OpacityValue =
|
|
448
|
-
unit:
|
|
449
|
-
measure:
|
|
463
|
+
import { z as z25 } from "zod";
|
|
464
|
+
var OpacityValue = z25.object({
|
|
465
|
+
unit: z25.enum(["Raw", "Pixels"]),
|
|
466
|
+
measure: z25.number()
|
|
450
467
|
});
|
|
451
468
|
var OpacityTokenData = tokenAliasOrValue(OpacityValue);
|
|
452
469
|
|
|
453
470
|
// src/dsm/elements/data/color.ts
|
|
454
|
-
var ColorValue =
|
|
471
|
+
var ColorValue = z26.object({
|
|
455
472
|
opacity: OpacityTokenData,
|
|
456
|
-
color:
|
|
473
|
+
color: z26.string().or(TokenDataAliasSchema)
|
|
457
474
|
});
|
|
458
475
|
var ColorTokenData = tokenAliasOrValue(ColorValue);
|
|
459
476
|
|
|
460
477
|
// src/dsm/elements/data/border.ts
|
|
461
|
-
var BorderPosition =
|
|
462
|
-
var BorderStyle =
|
|
463
|
-
var BorderValue =
|
|
478
|
+
var BorderPosition = z27.enum(["Inside", "Center", "Outside"]);
|
|
479
|
+
var BorderStyle = z27.enum(["Dashed", "Dotted", "Solid", "Groove"]);
|
|
480
|
+
var BorderValue = z27.object({
|
|
464
481
|
color: ColorTokenData,
|
|
465
482
|
width: BorderWidthTokenData,
|
|
466
483
|
position: BorderPosition,
|
|
@@ -469,30 +486,30 @@ var BorderValue = z26.object({
|
|
|
469
486
|
var BorderTokenData = tokenAliasOrValue(BorderValue);
|
|
470
487
|
|
|
471
488
|
// src/dsm/elements/data/component.ts
|
|
472
|
-
import { z as
|
|
473
|
-
var ComponentElementData =
|
|
474
|
-
value:
|
|
475
|
-
thumbnailImage:
|
|
476
|
-
value:
|
|
477
|
-
url:
|
|
478
|
-
assetId:
|
|
489
|
+
import { z as z28 } from "zod";
|
|
490
|
+
var ComponentElementData = z28.object({
|
|
491
|
+
value: z28.object({
|
|
492
|
+
thumbnailImage: z28.object({
|
|
493
|
+
value: z28.object({
|
|
494
|
+
url: z28.string(),
|
|
495
|
+
assetId: z28.string()
|
|
479
496
|
})
|
|
480
497
|
}),
|
|
481
|
-
svg:
|
|
482
|
-
value:
|
|
483
|
-
url:
|
|
484
|
-
assetId:
|
|
498
|
+
svg: z28.object({
|
|
499
|
+
value: z28.object({
|
|
500
|
+
url: z28.string(),
|
|
501
|
+
assetId: z28.string()
|
|
485
502
|
})
|
|
486
503
|
}).optional()
|
|
487
504
|
})
|
|
488
505
|
});
|
|
489
506
|
|
|
490
507
|
// src/dsm/elements/data/documentation-block-v1.ts
|
|
491
|
-
import { z as
|
|
508
|
+
import { z as z34 } from "zod";
|
|
492
509
|
|
|
493
510
|
// src/dsm/elements/raw-element.ts
|
|
494
|
-
import { z as
|
|
495
|
-
var DesignTokenType =
|
|
511
|
+
import { z as z29 } from "zod";
|
|
512
|
+
var DesignTokenType = z29.enum([
|
|
496
513
|
"Color",
|
|
497
514
|
"Border",
|
|
498
515
|
"Gradient",
|
|
@@ -524,7 +541,7 @@ var DesignTokenType = z28.enum([
|
|
|
524
541
|
]);
|
|
525
542
|
var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
|
|
526
543
|
var DesignElementType = DesignTokenType.or(
|
|
527
|
-
|
|
544
|
+
z29.enum([
|
|
528
545
|
"Component",
|
|
529
546
|
"Theme",
|
|
530
547
|
"Documentation",
|
|
@@ -539,7 +556,7 @@ var DesignElementType = DesignTokenType.or(
|
|
|
539
556
|
function isTokenType(type) {
|
|
540
557
|
return DesignTokenType.safeParse(type).success;
|
|
541
558
|
}
|
|
542
|
-
var DesignElementCategory =
|
|
559
|
+
var DesignElementCategory = z29.enum([
|
|
543
560
|
"Token",
|
|
544
561
|
"Component",
|
|
545
562
|
"DesignSystemComponent",
|
|
@@ -547,92 +564,92 @@ var DesignElementCategory = z28.enum([
|
|
|
547
564
|
"Theme",
|
|
548
565
|
"PageBlock"
|
|
549
566
|
]);
|
|
550
|
-
var DesignSystemElementExportProps =
|
|
551
|
-
isAsset:
|
|
552
|
-
codeName:
|
|
553
|
-
});
|
|
554
|
-
var ShallowDesignElement =
|
|
555
|
-
id:
|
|
556
|
-
persistentId:
|
|
557
|
-
designSystemVersionId:
|
|
567
|
+
var DesignSystemElementExportProps = z29.object({
|
|
568
|
+
isAsset: z29.boolean().nullish().transform((v) => v ?? false),
|
|
569
|
+
codeName: z29.string().nullish()
|
|
570
|
+
});
|
|
571
|
+
var ShallowDesignElement = z29.object({
|
|
572
|
+
id: z29.string(),
|
|
573
|
+
persistentId: z29.string(),
|
|
574
|
+
designSystemVersionId: z29.string(),
|
|
558
575
|
type: DesignElementType,
|
|
559
|
-
brandPersistentId:
|
|
560
|
-
parentPersistentId:
|
|
561
|
-
shortPersistentId:
|
|
576
|
+
brandPersistentId: z29.string().optional(),
|
|
577
|
+
parentPersistentId: z29.string().optional(),
|
|
578
|
+
shortPersistentId: z29.string().optional(),
|
|
562
579
|
childType: DesignElementType.optional(),
|
|
563
|
-
sortOrder:
|
|
564
|
-
origin:
|
|
580
|
+
sortOrder: z29.number(),
|
|
581
|
+
origin: z29.record(z29.any()).optional()
|
|
565
582
|
});
|
|
566
583
|
var DesignElement = ShallowDesignElement.extend({
|
|
567
584
|
meta: ObjectMeta,
|
|
568
|
-
slug:
|
|
569
|
-
userSlug:
|
|
570
|
-
createdAt:
|
|
571
|
-
updatedAt:
|
|
585
|
+
slug: z29.string().optional(),
|
|
586
|
+
userSlug: z29.string().optional(),
|
|
587
|
+
createdAt: z29.coerce.date(),
|
|
588
|
+
updatedAt: z29.coerce.date(),
|
|
572
589
|
exportProperties: DesignSystemElementExportProps.optional(),
|
|
573
|
-
data:
|
|
574
|
-
origin:
|
|
590
|
+
data: z29.record(z29.any()),
|
|
591
|
+
origin: z29.record(z29.any()).optional()
|
|
575
592
|
});
|
|
576
593
|
var HierarchicalElements = DesignTokenType.or(
|
|
577
|
-
|
|
594
|
+
z29.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
|
|
578
595
|
);
|
|
579
596
|
|
|
580
597
|
// src/dsm/properties/property-definition.ts
|
|
581
|
-
import { z as
|
|
582
|
-
var ElementPropertyType =
|
|
583
|
-
var ElementPropertyTargetType =
|
|
584
|
-
var ElementPropertyLinkType =
|
|
585
|
-
var ColorTokenInlineData =
|
|
586
|
-
value:
|
|
598
|
+
import { z as z30 } from "zod";
|
|
599
|
+
var ElementPropertyType = z30.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
600
|
+
var ElementPropertyTargetType = z30.enum(["Token", "Component", "DocumentationPage"]);
|
|
601
|
+
var ElementPropertyLinkType = z30.enum(["FigmaComponent", "DocumentationPage"]);
|
|
602
|
+
var ColorTokenInlineData = z30.object({
|
|
603
|
+
value: z30.string()
|
|
587
604
|
});
|
|
588
|
-
var ElementPropertyDefinitionOption =
|
|
589
|
-
id:
|
|
590
|
-
name:
|
|
605
|
+
var ElementPropertyDefinitionOption = z30.object({
|
|
606
|
+
id: z30.string(),
|
|
607
|
+
name: z30.string(),
|
|
591
608
|
backgroundColor: ColorTokenInlineData.optional()
|
|
592
609
|
});
|
|
593
|
-
var ElementPropertyDefinition =
|
|
594
|
-
id:
|
|
595
|
-
designSystemVersionId:
|
|
596
|
-
persistentId:
|
|
597
|
-
name:
|
|
598
|
-
codeName:
|
|
599
|
-
description:
|
|
610
|
+
var ElementPropertyDefinition = z30.object({
|
|
611
|
+
id: z30.string(),
|
|
612
|
+
designSystemVersionId: z30.string(),
|
|
613
|
+
persistentId: z30.string(),
|
|
614
|
+
name: z30.string(),
|
|
615
|
+
codeName: z30.string(),
|
|
616
|
+
description: z30.string(),
|
|
600
617
|
type: ElementPropertyType,
|
|
601
618
|
targetElementType: ElementPropertyTargetType,
|
|
602
|
-
options:
|
|
619
|
+
options: z30.array(ElementPropertyDefinitionOption).nullish(),
|
|
603
620
|
linkElementType: ElementPropertyLinkType.nullish()
|
|
604
621
|
});
|
|
605
622
|
|
|
606
623
|
// src/dsm/properties/property-value.ts
|
|
607
|
-
import { z as
|
|
608
|
-
var ElementPropertyValue =
|
|
609
|
-
id:
|
|
610
|
-
designSystemVersionId:
|
|
611
|
-
targetElementPersistentId:
|
|
612
|
-
definitionPersistentId:
|
|
613
|
-
stringValue:
|
|
614
|
-
numberValue:
|
|
615
|
-
booleanValue:
|
|
616
|
-
referenceValue:
|
|
617
|
-
referenceValuePreview:
|
|
624
|
+
import { z as z31 } from "zod";
|
|
625
|
+
var ElementPropertyValue = z31.object({
|
|
626
|
+
id: z31.string(),
|
|
627
|
+
designSystemVersionId: z31.string(),
|
|
628
|
+
targetElementPersistentId: z31.string(),
|
|
629
|
+
definitionPersistentId: z31.string(),
|
|
630
|
+
stringValue: z31.string().nullish(),
|
|
631
|
+
numberValue: z31.number().nullish(),
|
|
632
|
+
booleanValue: z31.boolean().nullish(),
|
|
633
|
+
referenceValue: z31.string().nullish(),
|
|
634
|
+
referenceValuePreview: z31.string().nullish()
|
|
618
635
|
});
|
|
619
636
|
|
|
620
637
|
// src/dsm/elements/primitives/point.ts
|
|
621
|
-
import { z as
|
|
622
|
-
var Point2D =
|
|
623
|
-
x:
|
|
624
|
-
y:
|
|
638
|
+
import { z as z32 } from "zod";
|
|
639
|
+
var Point2D = z32.object({
|
|
640
|
+
x: z32.number(),
|
|
641
|
+
y: z32.number()
|
|
625
642
|
});
|
|
626
643
|
|
|
627
644
|
// src/dsm/elements/primitives/size.ts
|
|
628
|
-
import { z as
|
|
645
|
+
import { z as z33 } from "zod";
|
|
629
646
|
var nullSize = { height: -1, width: -1 };
|
|
630
647
|
function isNullSize(size) {
|
|
631
648
|
return size.height === nullSize.height && size.width === nullSize.width;
|
|
632
649
|
}
|
|
633
|
-
var Size =
|
|
634
|
-
width:
|
|
635
|
-
height:
|
|
650
|
+
var Size = z33.object({
|
|
651
|
+
width: z33.number().nullish().transform((v) => v ?? nullSize.width),
|
|
652
|
+
height: z33.number().nullish().transform((v) => v ?? nullSize.height)
|
|
636
653
|
});
|
|
637
654
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
638
655
|
if (!v)
|
|
@@ -643,8 +660,8 @@ var SizeOrUndefined = Size.optional().transform((v) => {
|
|
|
643
660
|
});
|
|
644
661
|
|
|
645
662
|
// src/dsm/elements/data/documentation-block-v1.ts
|
|
646
|
-
var PageBlockCalloutType =
|
|
647
|
-
var PageBlockTypeV1 =
|
|
663
|
+
var PageBlockCalloutType = z34.enum(["Info", "Primary", "Success", "Warning", "Error"]);
|
|
664
|
+
var PageBlockTypeV1 = z34.enum([
|
|
648
665
|
"Text",
|
|
649
666
|
"Heading",
|
|
650
667
|
"Code",
|
|
@@ -677,7 +694,7 @@ var PageBlockTypeV1 = z33.enum([
|
|
|
677
694
|
"TableRow",
|
|
678
695
|
"TableCell"
|
|
679
696
|
]);
|
|
680
|
-
var PageBlockCodeLanguage =
|
|
697
|
+
var PageBlockCodeLanguage = z34.enum([
|
|
681
698
|
"Angular",
|
|
682
699
|
"Bash",
|
|
683
700
|
"C",
|
|
@@ -711,68 +728,68 @@ var PageBlockCodeLanguage = z33.enum([
|
|
|
711
728
|
"XML",
|
|
712
729
|
"YAML"
|
|
713
730
|
]);
|
|
714
|
-
var PageBlockAlignment =
|
|
715
|
-
var PageBlockThemeType =
|
|
716
|
-
var PageBlockAssetType =
|
|
717
|
-
var PageBlockTilesAlignment =
|
|
718
|
-
var PageBlockTilesLayout =
|
|
719
|
-
var PageBlockTheme =
|
|
720
|
-
themeIds:
|
|
731
|
+
var PageBlockAlignment = z34.enum(["Left", "Center", "Stretch", "Right"]);
|
|
732
|
+
var PageBlockThemeType = z34.enum(["Override", "Comparison"]);
|
|
733
|
+
var PageBlockAssetType = z34.enum(["image", "figmaFrame"]);
|
|
734
|
+
var PageBlockTilesAlignment = z34.enum(["Center", "FrameHeight"]);
|
|
735
|
+
var PageBlockTilesLayout = z34.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
|
|
736
|
+
var PageBlockTheme = z34.object({
|
|
737
|
+
themeIds: z34.array(z34.string()),
|
|
721
738
|
type: PageBlockThemeType
|
|
722
739
|
});
|
|
723
|
-
var PageBlockUrlPreview =
|
|
724
|
-
title: nullishToOptional(
|
|
725
|
-
description: nullishToOptional(
|
|
726
|
-
thumbnailUrl: nullishToOptional(
|
|
727
|
-
});
|
|
728
|
-
var PageBlockFrameOrigin =
|
|
729
|
-
sourceFileName: nullishToOptional(
|
|
730
|
-
title: nullishToOptional(
|
|
731
|
-
previewUrl: nullishToOptional(
|
|
732
|
-
valid: nullishToOptional(
|
|
733
|
-
referenceId: nullishToOptional(
|
|
734
|
-
assetId: nullishToOptional(
|
|
735
|
-
assetScale: nullishToOptional(
|
|
736
|
-
width: nullishToOptional(
|
|
737
|
-
height: nullishToOptional(
|
|
738
|
-
});
|
|
739
|
-
var PageBlockFrame =
|
|
740
|
-
persistentId:
|
|
741
|
-
sourceId:
|
|
742
|
-
sourceFrameId:
|
|
743
|
-
title: nullishToOptional(
|
|
744
|
-
description: nullishToOptional(
|
|
740
|
+
var PageBlockUrlPreview = z34.object({
|
|
741
|
+
title: nullishToOptional(z34.string()),
|
|
742
|
+
description: nullishToOptional(z34.string()),
|
|
743
|
+
thumbnailUrl: nullishToOptional(z34.string())
|
|
744
|
+
});
|
|
745
|
+
var PageBlockFrameOrigin = z34.object({
|
|
746
|
+
sourceFileName: nullishToOptional(z34.string()),
|
|
747
|
+
title: nullishToOptional(z34.string()),
|
|
748
|
+
previewUrl: nullishToOptional(z34.string()),
|
|
749
|
+
valid: nullishToOptional(z34.boolean()),
|
|
750
|
+
referenceId: nullishToOptional(z34.string()),
|
|
751
|
+
assetId: nullishToOptional(z34.string()),
|
|
752
|
+
assetScale: nullishToOptional(z34.number()),
|
|
753
|
+
width: nullishToOptional(z34.number()),
|
|
754
|
+
height: nullishToOptional(z34.number())
|
|
755
|
+
});
|
|
756
|
+
var PageBlockFrame = z34.object({
|
|
757
|
+
persistentId: z34.string(),
|
|
758
|
+
sourceId: z34.string(),
|
|
759
|
+
sourceFrameId: z34.string(),
|
|
760
|
+
title: nullishToOptional(z34.string()),
|
|
761
|
+
description: nullishToOptional(z34.string()),
|
|
745
762
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
746
763
|
origin: nullishToOptional(PageBlockFrameOrigin)
|
|
747
764
|
});
|
|
748
|
-
var PageBlockAsset =
|
|
765
|
+
var PageBlockAsset = z34.object({
|
|
749
766
|
type: PageBlockAssetType,
|
|
750
|
-
id: nullishToOptional(
|
|
751
|
-
url: nullishToOptional(
|
|
767
|
+
id: nullishToOptional(z34.string()),
|
|
768
|
+
url: nullishToOptional(z34.string()),
|
|
752
769
|
figmaFrame: nullishToOptional(PageBlockFrame)
|
|
753
770
|
});
|
|
754
|
-
var PageBlockLinkPreview =
|
|
755
|
-
title: nullishToOptional(
|
|
756
|
-
valid: nullishToOptional(
|
|
771
|
+
var PageBlockLinkPreview = z34.object({
|
|
772
|
+
title: nullishToOptional(z34.string()),
|
|
773
|
+
valid: nullishToOptional(z34.boolean())
|
|
757
774
|
});
|
|
758
|
-
var PageBlockShortcut =
|
|
759
|
-
persistentId:
|
|
760
|
-
title: nullishToOptional(
|
|
761
|
-
description: nullishToOptional(
|
|
775
|
+
var PageBlockShortcut = z34.object({
|
|
776
|
+
persistentId: z34.string(),
|
|
777
|
+
title: nullishToOptional(z34.string()),
|
|
778
|
+
description: nullishToOptional(z34.string()),
|
|
762
779
|
asset: nullishToOptional(PageBlockAsset),
|
|
763
|
-
documentationItemId: nullishToOptional(
|
|
764
|
-
url: nullishToOptional(
|
|
780
|
+
documentationItemId: nullishToOptional(z34.string()),
|
|
781
|
+
url: nullishToOptional(z34.string()),
|
|
765
782
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
766
783
|
documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
|
|
767
784
|
});
|
|
768
|
-
var PageBlockCustomBlockPropertyImageValue =
|
|
785
|
+
var PageBlockCustomBlockPropertyImageValue = z34.object({
|
|
769
786
|
asset: nullishToOptional(PageBlockAsset),
|
|
770
|
-
assetId: nullishToOptional(
|
|
771
|
-
assetUrl: nullishToOptional(
|
|
787
|
+
assetId: nullishToOptional(z34.string()),
|
|
788
|
+
assetUrl: nullishToOptional(z34.string())
|
|
772
789
|
});
|
|
773
|
-
var PageBlockCustomBlockPropertyValue =
|
|
774
|
-
key:
|
|
775
|
-
value:
|
|
790
|
+
var PageBlockCustomBlockPropertyValue = z34.object({
|
|
791
|
+
key: z34.string(),
|
|
792
|
+
value: z34.any()
|
|
776
793
|
// TODO Artem: for some reason there are cases when there's an array here in the DB
|
|
777
794
|
// e.g. element id 67451 in the dev db
|
|
778
795
|
// value: z
|
|
@@ -783,99 +800,99 @@ var PageBlockCustomBlockPropertyValue = z33.object({
|
|
|
783
800
|
// .or(TypographyTokenData)
|
|
784
801
|
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
785
802
|
});
|
|
786
|
-
var PageBlockFigmaFrameProperties =
|
|
803
|
+
var PageBlockFigmaFrameProperties = z34.object({
|
|
787
804
|
color: nullishToOptional(
|
|
788
|
-
|
|
789
|
-
value:
|
|
805
|
+
z34.object({
|
|
806
|
+
value: z34.string()
|
|
790
807
|
})
|
|
791
808
|
),
|
|
792
809
|
alignment: PageBlockTilesAlignment,
|
|
793
810
|
layout: PageBlockTilesLayout,
|
|
794
811
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
795
|
-
showTitles:
|
|
812
|
+
showTitles: z34.boolean()
|
|
796
813
|
});
|
|
797
|
-
var PageBlockRenderCodeProperties =
|
|
798
|
-
showCode:
|
|
814
|
+
var PageBlockRenderCodeProperties = z34.object({
|
|
815
|
+
showCode: z34.boolean()
|
|
799
816
|
});
|
|
800
|
-
var PageBlockAssetComponent =
|
|
801
|
-
persistentId:
|
|
802
|
-
componentAssetId:
|
|
803
|
-
title: nullishToOptional(
|
|
804
|
-
description: nullishToOptional(
|
|
817
|
+
var PageBlockAssetComponent = z34.object({
|
|
818
|
+
persistentId: z34.string(),
|
|
819
|
+
componentAssetId: z34.string(),
|
|
820
|
+
title: nullishToOptional(z34.string()),
|
|
821
|
+
description: nullishToOptional(z34.string()),
|
|
805
822
|
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
806
823
|
});
|
|
807
|
-
var PageBlockTableColumn =
|
|
808
|
-
id:
|
|
824
|
+
var PageBlockTableColumn = z34.object({
|
|
825
|
+
id: z34.string(),
|
|
809
826
|
width: DimensionTokenData
|
|
810
827
|
});
|
|
811
|
-
var PageBlockTableProperties =
|
|
812
|
-
showBorders:
|
|
813
|
-
showHeaderRow:
|
|
814
|
-
showHeaderColumn:
|
|
815
|
-
columns:
|
|
828
|
+
var PageBlockTableProperties = z34.object({
|
|
829
|
+
showBorders: z34.boolean(),
|
|
830
|
+
showHeaderRow: z34.boolean(),
|
|
831
|
+
showHeaderColumn: z34.boolean(),
|
|
832
|
+
columns: z34.array(PageBlockTableColumn)
|
|
816
833
|
});
|
|
817
|
-
var PageBlockTextSpanAttributeType =
|
|
818
|
-
var PageBlockTextSpanAttribute =
|
|
834
|
+
var PageBlockTextSpanAttributeType = z34.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
|
|
835
|
+
var PageBlockTextSpanAttribute = z34.object({
|
|
819
836
|
type: PageBlockTextSpanAttributeType,
|
|
820
|
-
link: nullishToOptional(
|
|
821
|
-
documentationItemId: nullishToOptional(
|
|
822
|
-
openInNewWindow: nullishToOptional(
|
|
837
|
+
link: nullishToOptional(z34.string()),
|
|
838
|
+
documentationItemId: nullishToOptional(z34.string()),
|
|
839
|
+
openInNewWindow: nullishToOptional(z34.boolean())
|
|
823
840
|
});
|
|
824
|
-
var PageBlockTextSpan =
|
|
825
|
-
text:
|
|
826
|
-
attributes:
|
|
841
|
+
var PageBlockTextSpan = z34.object({
|
|
842
|
+
text: z34.string(),
|
|
843
|
+
attributes: z34.array(PageBlockTextSpanAttribute)
|
|
827
844
|
});
|
|
828
|
-
var PageBlockText =
|
|
829
|
-
spans:
|
|
845
|
+
var PageBlockText = z34.object({
|
|
846
|
+
spans: z34.array(PageBlockTextSpan)
|
|
830
847
|
});
|
|
831
|
-
var PageBlockBaseV1 =
|
|
832
|
-
persistentId:
|
|
848
|
+
var PageBlockBaseV1 = z34.object({
|
|
849
|
+
persistentId: z34.string(),
|
|
833
850
|
type: PageBlockTypeV1,
|
|
834
851
|
// Element linking
|
|
835
|
-
designObjectId: nullishToOptional(
|
|
836
|
-
designObjectIds: nullishToOptional(
|
|
837
|
-
tokenType: nullishToOptional(DesignTokenType.or(
|
|
838
|
-
showNestedGroups: nullishToOptional(
|
|
839
|
-
brandId: nullishToOptional(
|
|
852
|
+
designObjectId: nullishToOptional(z34.string()),
|
|
853
|
+
designObjectIds: nullishToOptional(z34.array(z34.string())),
|
|
854
|
+
tokenType: nullishToOptional(DesignTokenType.or(z34.literal("Font"))),
|
|
855
|
+
showNestedGroups: nullishToOptional(z34.boolean()),
|
|
856
|
+
brandId: nullishToOptional(z34.string()),
|
|
840
857
|
// Rich text
|
|
841
858
|
text: nullishToOptional(PageBlockText),
|
|
842
|
-
caption: nullishToOptional(
|
|
843
|
-
headingType: nullishToOptional(
|
|
859
|
+
caption: nullishToOptional(z34.string()),
|
|
860
|
+
headingType: nullishToOptional(z34.number().min(1).max(3)),
|
|
844
861
|
codeLanguage: nullishToOptional(PageBlockCodeLanguage),
|
|
845
862
|
calloutType: nullishToOptional(PageBlockCalloutType),
|
|
846
|
-
urlInput: nullishToOptional(
|
|
847
|
-
url: nullishToOptional(
|
|
863
|
+
urlInput: nullishToOptional(z34.string()),
|
|
864
|
+
url: nullishToOptional(z34.string()),
|
|
848
865
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
849
866
|
// Image
|
|
850
867
|
asset: nullishToOptional(PageBlockAsset),
|
|
851
868
|
alignment: nullishToOptional(PageBlockAlignment),
|
|
852
869
|
// Shortcuts block
|
|
853
|
-
shortcuts: nullishToOptional(
|
|
870
|
+
shortcuts: nullishToOptional(z34.array(PageBlockShortcut)),
|
|
854
871
|
// Custom blocks
|
|
855
|
-
customBlockKey: nullishToOptional(
|
|
856
|
-
customBlockProperties: nullishToOptional(
|
|
857
|
-
variantKey: nullishToOptional(
|
|
872
|
+
customBlockKey: nullishToOptional(z34.string()),
|
|
873
|
+
customBlockProperties: nullishToOptional(z34.array(PageBlockCustomBlockPropertyValue)),
|
|
874
|
+
variantKey: nullishToOptional(z34.string()),
|
|
858
875
|
// Figma frames
|
|
859
876
|
figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
|
|
860
|
-
figmaFrames: nullishToOptional(
|
|
877
|
+
figmaFrames: nullishToOptional(z34.array(PageBlockFrame)),
|
|
861
878
|
// Generic
|
|
862
879
|
size: nullishToOptional(Size),
|
|
863
880
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
864
881
|
// Render code
|
|
865
882
|
renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
|
|
866
883
|
// Component assets
|
|
867
|
-
componentAssets: nullishToOptional(
|
|
884
|
+
componentAssets: nullishToOptional(z34.array(PageBlockAssetComponent)),
|
|
868
885
|
// Tables
|
|
869
886
|
tableProperties: nullishToOptional(PageBlockTableProperties),
|
|
870
|
-
columnId: nullishToOptional(
|
|
887
|
+
columnId: nullishToOptional(z34.string()),
|
|
871
888
|
// Token spreadsheet
|
|
872
889
|
theme: nullishToOptional(PageBlockTheme),
|
|
873
|
-
blacklistedElementProperties: nullishToOptional(
|
|
890
|
+
blacklistedElementProperties: nullishToOptional(z34.array(z34.string())),
|
|
874
891
|
// Arbitrary
|
|
875
|
-
userMetadata: nullishToOptional(
|
|
892
|
+
userMetadata: nullishToOptional(z34.string())
|
|
876
893
|
});
|
|
877
894
|
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
878
|
-
children:
|
|
895
|
+
children: z34.lazy(
|
|
879
896
|
() => PageBlockV1.array().nullish().transform((t) => t ?? [])
|
|
880
897
|
)
|
|
881
898
|
});
|
|
@@ -887,286 +904,254 @@ function traversePageBlocksV1(blocks, action) {
|
|
|
887
904
|
}
|
|
888
905
|
|
|
889
906
|
// src/dsm/elements/data/documentation-block-v2.ts
|
|
890
|
-
import { z as
|
|
891
|
-
var PageBlockLinkType =
|
|
892
|
-
var PageBlockImageType =
|
|
893
|
-
var PageBlockImageAlignment =
|
|
894
|
-
var PageBlockTableCellAlignment =
|
|
895
|
-
var PageBlockPreviewContainerSize =
|
|
896
|
-
var PageBlockThemeDisplayMode =
|
|
897
|
-
var PageBlockImageReference =
|
|
907
|
+
import { z as z35 } from "zod";
|
|
908
|
+
var PageBlockLinkType = z35.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
909
|
+
var PageBlockImageType = z35.enum(["Resource", "FigmaNode"]);
|
|
910
|
+
var PageBlockImageAlignment = z35.enum(["Left", "Center", "Stretch"]);
|
|
911
|
+
var PageBlockTableCellAlignment = z35.enum(["Left", "Center", "Right"]);
|
|
912
|
+
var PageBlockPreviewContainerSize = z35.enum(["Centered", "NaturalHeight"]);
|
|
913
|
+
var PageBlockThemeDisplayMode = z35.enum(["Split", "Override"]);
|
|
914
|
+
var PageBlockImageReference = z35.object({
|
|
898
915
|
type: PageBlockImageType,
|
|
899
|
-
resource:
|
|
900
|
-
url:
|
|
901
|
-
resourceId:
|
|
916
|
+
resource: z35.object({
|
|
917
|
+
url: z35.string(),
|
|
918
|
+
resourceId: z35.string()
|
|
902
919
|
}).optional(),
|
|
903
|
-
figmaFile:
|
|
904
|
-
sourceId:
|
|
905
|
-
frameReferenceId:
|
|
920
|
+
figmaFile: z35.object({
|
|
921
|
+
sourceId: z35.string(),
|
|
922
|
+
frameReferenceId: z35.string()
|
|
906
923
|
}).optional()
|
|
907
924
|
});
|
|
908
|
-
var PageBlockColorV2 =
|
|
909
|
-
value:
|
|
910
|
-
referencedTokenId:
|
|
925
|
+
var PageBlockColorV2 = z35.object({
|
|
926
|
+
value: z35.string(),
|
|
927
|
+
referencedTokenId: z35.string().optional()
|
|
911
928
|
});
|
|
912
|
-
var PageBlockAssetEntityMeta =
|
|
913
|
-
title:
|
|
914
|
-
description:
|
|
929
|
+
var PageBlockAssetEntityMeta = z35.object({
|
|
930
|
+
title: z35.string().optional(),
|
|
931
|
+
description: z35.string().optional(),
|
|
915
932
|
backgroundColor: PageBlockColorV2.optional()
|
|
916
933
|
});
|
|
917
|
-
var PageBlockFigmaNodeEntityMeta =
|
|
918
|
-
title:
|
|
919
|
-
description:
|
|
934
|
+
var PageBlockFigmaNodeEntityMeta = z35.object({
|
|
935
|
+
title: z35.string().optional(),
|
|
936
|
+
description: z35.string().optional(),
|
|
920
937
|
backgroundColor: PageBlockColorV2.optional()
|
|
921
938
|
});
|
|
922
|
-
var PageBlockAppearanceV2 =
|
|
939
|
+
var PageBlockAppearanceV2 = z35.object({
|
|
923
940
|
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
924
|
-
numberOfColumns:
|
|
941
|
+
numberOfColumns: z35.number().optional()
|
|
925
942
|
});
|
|
926
|
-
var PageBlockItemUntypedValue =
|
|
927
|
-
value:
|
|
928
|
-
}).and(
|
|
929
|
-
var PageBlockLinkV2 =
|
|
943
|
+
var PageBlockItemUntypedValue = z35.object({
|
|
944
|
+
value: z35.any()
|
|
945
|
+
}).and(z35.record(z35.any()));
|
|
946
|
+
var PageBlockLinkV2 = z35.object({
|
|
930
947
|
type: PageBlockLinkType,
|
|
931
|
-
documentationItemId:
|
|
932
|
-
pageHeadingId:
|
|
933
|
-
url:
|
|
934
|
-
openInNewTab:
|
|
948
|
+
documentationItemId: z35.string().optional(),
|
|
949
|
+
pageHeadingId: z35.string().optional(),
|
|
950
|
+
url: z35.string().optional(),
|
|
951
|
+
openInNewTab: z35.boolean().optional()
|
|
935
952
|
});
|
|
936
|
-
var PageBlockItemV2 =
|
|
937
|
-
id:
|
|
953
|
+
var PageBlockItemV2 = z35.object({
|
|
954
|
+
id: z35.string(),
|
|
938
955
|
linksTo: PageBlockLinkV2.optional(),
|
|
939
|
-
props:
|
|
956
|
+
props: z35.record(PageBlockItemUntypedValue)
|
|
940
957
|
});
|
|
941
|
-
var PageBlockDataV2 =
|
|
942
|
-
packageId:
|
|
943
|
-
variantId:
|
|
944
|
-
indentLevel:
|
|
958
|
+
var PageBlockDataV2 = z35.object({
|
|
959
|
+
packageId: z35.string(),
|
|
960
|
+
variantId: z35.string().optional(),
|
|
961
|
+
indentLevel: z35.number(),
|
|
945
962
|
appearance: PageBlockAppearanceV2.optional(),
|
|
946
|
-
items:
|
|
963
|
+
items: z35.array(PageBlockItemV2)
|
|
947
964
|
});
|
|
948
|
-
var PageBlockItemAssetValue =
|
|
949
|
-
selectedPropertyIds:
|
|
950
|
-
showSearch:
|
|
965
|
+
var PageBlockItemAssetValue = z35.object({
|
|
966
|
+
selectedPropertyIds: z35.array(z35.string()).optional(),
|
|
967
|
+
showSearch: z35.boolean().optional(),
|
|
951
968
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
952
969
|
backgroundColor: PageBlockColorV2.optional(),
|
|
953
|
-
value:
|
|
954
|
-
|
|
955
|
-
entityId:
|
|
956
|
-
entityType:
|
|
970
|
+
value: z35.array(
|
|
971
|
+
z35.object({
|
|
972
|
+
entityId: z35.string(),
|
|
973
|
+
entityType: z35.enum(["Asset", "AssetGroup"]),
|
|
957
974
|
entityMeta: PageBlockAssetEntityMeta.optional()
|
|
958
975
|
})
|
|
959
976
|
)
|
|
960
977
|
});
|
|
961
|
-
var PageBlockItemAssetPropertyValue =
|
|
962
|
-
value:
|
|
978
|
+
var PageBlockItemAssetPropertyValue = z35.object({
|
|
979
|
+
value: z35.array(z35.string())
|
|
963
980
|
});
|
|
964
|
-
var PageBlockItemBooleanValue =
|
|
965
|
-
value:
|
|
981
|
+
var PageBlockItemBooleanValue = z35.object({
|
|
982
|
+
value: z35.boolean()
|
|
966
983
|
});
|
|
967
|
-
var PageBlockItemCodeValue =
|
|
984
|
+
var PageBlockItemCodeValue = z35.object({
|
|
968
985
|
format: PageBlockCodeLanguage.optional(),
|
|
969
|
-
caption:
|
|
970
|
-
value:
|
|
971
|
-
});
|
|
972
|
-
var PageBlockItemSandboxValue =
|
|
973
|
-
showCode:
|
|
974
|
-
showControls:
|
|
975
|
-
backgroundColor:
|
|
976
|
-
alignPreview:
|
|
977
|
-
previewHeight:
|
|
978
|
-
value:
|
|
979
|
-
});
|
|
980
|
-
var PageBlockItemColorValue =
|
|
981
|
-
var PageBlockItemComponentValue =
|
|
982
|
-
selectedPropertyIds:
|
|
983
|
-
value:
|
|
984
|
-
|
|
985
|
-
entityId:
|
|
986
|
-
entityType:
|
|
986
|
+
caption: z35.string().optional(),
|
|
987
|
+
value: z35.string()
|
|
988
|
+
});
|
|
989
|
+
var PageBlockItemSandboxValue = z35.object({
|
|
990
|
+
showCode: z35.boolean().optional(),
|
|
991
|
+
showControls: z35.boolean().optional(),
|
|
992
|
+
backgroundColor: z35.string().optional(),
|
|
993
|
+
alignPreview: z35.enum(["Left", "Center"]).optional(),
|
|
994
|
+
previewHeight: z35.number().optional(),
|
|
995
|
+
value: z35.string()
|
|
996
|
+
});
|
|
997
|
+
var PageBlockItemColorValue = z35.record(z35.any());
|
|
998
|
+
var PageBlockItemComponentValue = z35.object({
|
|
999
|
+
selectedPropertyIds: z35.array(z35.string()).optional(),
|
|
1000
|
+
value: z35.array(
|
|
1001
|
+
z35.object({
|
|
1002
|
+
entityId: z35.string(),
|
|
1003
|
+
entityType: z35.enum(["Component", "ComponentGroup"])
|
|
987
1004
|
})
|
|
988
1005
|
)
|
|
989
1006
|
});
|
|
990
|
-
var PageBlockItemComponentPropertyValue =
|
|
991
|
-
value:
|
|
992
|
-
});
|
|
993
|
-
var PageBlockItemDividerValue =
|
|
994
|
-
var PageBlockItemEmbedValue =
|
|
995
|
-
value:
|
|
996
|
-
caption:
|
|
997
|
-
height:
|
|
998
|
-
openGraph:
|
|
999
|
-
title:
|
|
1000
|
-
description:
|
|
1001
|
-
imageUrl:
|
|
1007
|
+
var PageBlockItemComponentPropertyValue = z35.object({
|
|
1008
|
+
value: z35.string()
|
|
1009
|
+
});
|
|
1010
|
+
var PageBlockItemDividerValue = z35.object({});
|
|
1011
|
+
var PageBlockItemEmbedValue = z35.object({
|
|
1012
|
+
value: z35.string().optional(),
|
|
1013
|
+
caption: z35.string().optional(),
|
|
1014
|
+
height: z35.number().optional(),
|
|
1015
|
+
openGraph: z35.object({
|
|
1016
|
+
title: z35.string().optional(),
|
|
1017
|
+
description: z35.string().optional(),
|
|
1018
|
+
imageUrl: z35.string().optional()
|
|
1002
1019
|
}).optional()
|
|
1003
1020
|
});
|
|
1004
|
-
var PageBlockItemFigmaNodeValue =
|
|
1005
|
-
selectedPropertyIds:
|
|
1006
|
-
showSearch:
|
|
1021
|
+
var PageBlockItemFigmaNodeValue = z35.object({
|
|
1022
|
+
selectedPropertyIds: z35.array(z35.string()).optional(),
|
|
1023
|
+
showSearch: z35.boolean().optional(),
|
|
1007
1024
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
1008
1025
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1009
|
-
value:
|
|
1010
|
-
|
|
1011
|
-
entityId:
|
|
1026
|
+
value: z35.array(
|
|
1027
|
+
z35.object({
|
|
1028
|
+
entityId: z35.string(),
|
|
1012
1029
|
entityMeta: PageBlockFigmaNodeEntityMeta.optional()
|
|
1013
1030
|
})
|
|
1014
1031
|
)
|
|
1015
1032
|
});
|
|
1016
|
-
var PageBlockItemImageValue =
|
|
1017
|
-
alt:
|
|
1018
|
-
caption:
|
|
1033
|
+
var PageBlockItemImageValue = z35.object({
|
|
1034
|
+
alt: z35.string().optional(),
|
|
1035
|
+
caption: z35.string().optional(),
|
|
1019
1036
|
alignment: PageBlockImageAlignment.optional(),
|
|
1020
1037
|
value: PageBlockImageReference.optional()
|
|
1021
1038
|
});
|
|
1022
|
-
var PageBlockItemMarkdownValue =
|
|
1023
|
-
value:
|
|
1039
|
+
var PageBlockItemMarkdownValue = z35.object({
|
|
1040
|
+
value: z35.string()
|
|
1024
1041
|
});
|
|
1025
|
-
var PageBlockItemMultiRichTextValue =
|
|
1042
|
+
var PageBlockItemMultiRichTextValue = z35.object({
|
|
1026
1043
|
value: PageBlockText.array()
|
|
1027
1044
|
});
|
|
1028
|
-
var PageBlockItemMultiSelectValue =
|
|
1029
|
-
value:
|
|
1045
|
+
var PageBlockItemMultiSelectValue = z35.object({
|
|
1046
|
+
value: z35.array(z35.string())
|
|
1030
1047
|
});
|
|
1031
|
-
var PageBlockItemNumberValue =
|
|
1032
|
-
value:
|
|
1048
|
+
var PageBlockItemNumberValue = z35.object({
|
|
1049
|
+
value: z35.number()
|
|
1033
1050
|
});
|
|
1034
|
-
var PageBlockItemRichTextValue =
|
|
1051
|
+
var PageBlockItemRichTextValue = z35.object({
|
|
1035
1052
|
value: PageBlockText,
|
|
1036
1053
|
calloutType: PageBlockCalloutType.optional()
|
|
1037
1054
|
});
|
|
1038
|
-
var PageBlockItemSingleSelectValue =
|
|
1039
|
-
value:
|
|
1055
|
+
var PageBlockItemSingleSelectValue = z35.object({
|
|
1056
|
+
value: z35.string()
|
|
1040
1057
|
});
|
|
1041
|
-
var PageBlockItemStorybookValue =
|
|
1042
|
-
caption:
|
|
1043
|
-
height:
|
|
1044
|
-
showAddons:
|
|
1045
|
-
value:
|
|
1058
|
+
var PageBlockItemStorybookValue = z35.object({
|
|
1059
|
+
caption: z35.string().optional(),
|
|
1060
|
+
height: z35.number().optional(),
|
|
1061
|
+
showAddons: z35.boolean().optional(),
|
|
1062
|
+
value: z35.string()
|
|
1046
1063
|
});
|
|
1047
|
-
var PageBlockItemTextValue =
|
|
1048
|
-
value:
|
|
1064
|
+
var PageBlockItemTextValue = z35.object({
|
|
1065
|
+
value: z35.string()
|
|
1049
1066
|
});
|
|
1050
|
-
var PageBlockItemTokenValue =
|
|
1051
|
-
selectedPropertyIds:
|
|
1052
|
-
selectedThemeIds:
|
|
1067
|
+
var PageBlockItemTokenValue = z35.object({
|
|
1068
|
+
selectedPropertyIds: z35.array(z35.string()).optional(),
|
|
1069
|
+
selectedThemeIds: z35.array(z35.string()).optional(),
|
|
1053
1070
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
1054
|
-
value:
|
|
1055
|
-
|
|
1056
|
-
entityId:
|
|
1057
|
-
entityType:
|
|
1058
|
-
entityMeta:
|
|
1059
|
-
showNestedGroups:
|
|
1071
|
+
value: z35.array(
|
|
1072
|
+
z35.object({
|
|
1073
|
+
entityId: z35.string(),
|
|
1074
|
+
entityType: z35.enum(["Token", "TokenGroup"]),
|
|
1075
|
+
entityMeta: z35.object({
|
|
1076
|
+
showNestedGroups: z35.boolean().optional()
|
|
1060
1077
|
}).optional()
|
|
1061
1078
|
})
|
|
1062
1079
|
)
|
|
1063
1080
|
});
|
|
1064
|
-
var PageBlockItemTokenPropertyValue =
|
|
1065
|
-
selectedPropertyIds:
|
|
1066
|
-
selectedThemeIds:
|
|
1067
|
-
value:
|
|
1081
|
+
var PageBlockItemTokenPropertyValue = z35.object({
|
|
1082
|
+
selectedPropertyIds: z35.array(z35.string()).optional(),
|
|
1083
|
+
selectedThemeIds: z35.array(z35.string()).optional(),
|
|
1084
|
+
value: z35.array(z35.string())
|
|
1068
1085
|
});
|
|
1069
|
-
var PageBlockItemTokenTypeValue =
|
|
1070
|
-
value:
|
|
1086
|
+
var PageBlockItemTokenTypeValue = z35.object({
|
|
1087
|
+
value: z35.array(DesignTokenType)
|
|
1071
1088
|
});
|
|
1072
|
-
var PageBlockItemUrlValue =
|
|
1073
|
-
value:
|
|
1089
|
+
var PageBlockItemUrlValue = z35.object({
|
|
1090
|
+
value: z35.string()
|
|
1074
1091
|
});
|
|
1075
|
-
var PageBlockItemTableRichTextNode =
|
|
1076
|
-
type:
|
|
1077
|
-
id:
|
|
1092
|
+
var PageBlockItemTableRichTextNode = z35.object({
|
|
1093
|
+
type: z35.literal("RichText"),
|
|
1094
|
+
id: z35.string(),
|
|
1078
1095
|
value: PageBlockItemRichTextValue.shape.value
|
|
1079
1096
|
});
|
|
1080
|
-
var PageBlockItemTableMultiRichTextNode =
|
|
1081
|
-
type:
|
|
1097
|
+
var PageBlockItemTableMultiRichTextNode = z35.object({
|
|
1098
|
+
type: z35.literal("MultiRichText"),
|
|
1082
1099
|
value: PageBlockItemMultiRichTextValue.shape.value
|
|
1083
1100
|
});
|
|
1084
|
-
var PageBlockItemTableImageNode =
|
|
1085
|
-
type:
|
|
1086
|
-
id:
|
|
1101
|
+
var PageBlockItemTableImageNode = z35.object({
|
|
1102
|
+
type: z35.literal("Image"),
|
|
1103
|
+
id: z35.string(),
|
|
1087
1104
|
caption: PageBlockItemImageValue.shape.caption,
|
|
1088
1105
|
value: PageBlockItemImageValue.shape.value
|
|
1089
1106
|
});
|
|
1090
|
-
var PageBlockItemTableNode =
|
|
1107
|
+
var PageBlockItemTableNode = z35.discriminatedUnion("type", [
|
|
1091
1108
|
PageBlockItemTableRichTextNode,
|
|
1092
1109
|
// PageBlockItemTableMultiRichTextNode,
|
|
1093
1110
|
PageBlockItemTableImageNode
|
|
1094
1111
|
]);
|
|
1095
|
-
var PageBlockItemTableCell =
|
|
1096
|
-
id:
|
|
1097
|
-
nodes:
|
|
1098
|
-
columnWidth:
|
|
1112
|
+
var PageBlockItemTableCell = z35.object({
|
|
1113
|
+
id: z35.string(),
|
|
1114
|
+
nodes: z35.array(PageBlockItemTableNode),
|
|
1115
|
+
columnWidth: z35.number().optional(),
|
|
1099
1116
|
alignment: PageBlockTableCellAlignment
|
|
1100
1117
|
});
|
|
1101
|
-
var PageBlockItemTableRow =
|
|
1102
|
-
cells:
|
|
1118
|
+
var PageBlockItemTableRow = z35.object({
|
|
1119
|
+
cells: z35.array(PageBlockItemTableCell)
|
|
1103
1120
|
});
|
|
1104
|
-
var PageBlockItemTableValue =
|
|
1105
|
-
highlightHeaderColumn:
|
|
1106
|
-
highlightHeaderRow:
|
|
1107
|
-
showBorder:
|
|
1108
|
-
value:
|
|
1121
|
+
var PageBlockItemTableValue = z35.object({
|
|
1122
|
+
highlightHeaderColumn: z35.boolean().optional(),
|
|
1123
|
+
highlightHeaderRow: z35.boolean().optional(),
|
|
1124
|
+
showBorder: z35.boolean().optional(),
|
|
1125
|
+
value: z35.array(PageBlockItemTableRow)
|
|
1109
1126
|
});
|
|
1110
1127
|
|
|
1111
1128
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
1112
|
-
import { z as z40 } from "zod";
|
|
1113
|
-
|
|
1114
|
-
// src/dsm/elements/data/documentation-v1.ts
|
|
1115
1129
|
import { z as z39 } from "zod";
|
|
1116
1130
|
|
|
1117
|
-
// src/dsm/elements/data/
|
|
1131
|
+
// src/dsm/elements/data/documentation-v1.ts
|
|
1118
1132
|
import { z as z38 } from "zod";
|
|
1119
1133
|
|
|
1120
|
-
// src/dsm/elements/data/
|
|
1121
|
-
import { z as
|
|
1122
|
-
|
|
1123
|
-
// src/dsm/elements/data/safe-id.ts
|
|
1124
|
-
import { z as z35 } from "zod";
|
|
1125
|
-
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
1126
|
-
var SafeIdSchema = z35.string().refine(
|
|
1127
|
-
(value) => {
|
|
1128
|
-
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
1129
|
-
},
|
|
1130
|
-
{
|
|
1131
|
-
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
1132
|
-
}
|
|
1133
|
-
);
|
|
1134
|
-
|
|
1135
|
-
// src/dsm/elements/data/page-asset.ts
|
|
1136
|
-
var DocumentationPageAssetType = z36.enum(["image", "figmaFrame"]);
|
|
1137
|
-
var DocumentationPageImageAsset = z36.object({
|
|
1138
|
-
type: z36.literal(DocumentationPageAssetType.Enum.image),
|
|
1139
|
-
url: z36.string().optional(),
|
|
1140
|
-
id: SafeIdSchema
|
|
1141
|
-
});
|
|
1142
|
-
var DocumentationPageFrameAsset = z36.object({
|
|
1143
|
-
type: z36.literal(DocumentationPageAssetType.Enum.figmaFrame),
|
|
1144
|
-
url: z36.string().optional(),
|
|
1145
|
-
figmaFrame: PageBlockFrame
|
|
1146
|
-
});
|
|
1147
|
-
var DocumentationPageAsset = z36.discriminatedUnion("type", [
|
|
1148
|
-
DocumentationPageImageAsset,
|
|
1149
|
-
DocumentationPageFrameAsset
|
|
1150
|
-
]);
|
|
1134
|
+
// src/dsm/elements/data/item-header-v1.ts
|
|
1135
|
+
import { z as z37 } from "zod";
|
|
1151
1136
|
|
|
1152
1137
|
// src/dsm/elements/data/item-header.ts
|
|
1153
|
-
import { z as
|
|
1154
|
-
var DocumentationItemHeaderAlignmentSchema =
|
|
1155
|
-
var DocumentationItemHeaderImageScaleTypeSchema =
|
|
1138
|
+
import { z as z36 } from "zod";
|
|
1139
|
+
var DocumentationItemHeaderAlignmentSchema = z36.enum(["Left", "Center"]);
|
|
1140
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z36.enum(["AspectFill", "AspectFit"]);
|
|
1156
1141
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
1157
1142
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
1158
1143
|
|
|
1159
1144
|
// src/dsm/elements/data/item-header-v1.ts
|
|
1160
|
-
var DocumentationItemHeaderV1 =
|
|
1161
|
-
description:
|
|
1145
|
+
var DocumentationItemHeaderV1 = z37.object({
|
|
1146
|
+
description: z37.string(),
|
|
1162
1147
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1163
1148
|
foregroundColor: ColorTokenData.nullish(),
|
|
1164
1149
|
backgroundColor: ColorTokenData.nullish(),
|
|
1165
|
-
backgroundImageAsset:
|
|
1150
|
+
backgroundImageAsset: PageBlockAsset.nullish(),
|
|
1166
1151
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1167
|
-
showBackgroundOverlay:
|
|
1168
|
-
showCoverText:
|
|
1169
|
-
minHeight:
|
|
1152
|
+
showBackgroundOverlay: z37.boolean(),
|
|
1153
|
+
showCoverText: z37.boolean(),
|
|
1154
|
+
minHeight: z37.number().nullish()
|
|
1170
1155
|
});
|
|
1171
1156
|
var defaultDocumentationItemHeaderV1 = {
|
|
1172
1157
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -1177,8 +1162,8 @@ var defaultDocumentationItemHeaderV1 = {
|
|
|
1177
1162
|
};
|
|
1178
1163
|
|
|
1179
1164
|
// src/dsm/elements/data/documentation-v1.ts
|
|
1180
|
-
var DocumentationItemConfigurationV1 =
|
|
1181
|
-
showSidebar:
|
|
1165
|
+
var DocumentationItemConfigurationV1 = z38.object({
|
|
1166
|
+
showSidebar: z38.boolean(),
|
|
1182
1167
|
header: DocumentationItemHeaderV1
|
|
1183
1168
|
});
|
|
1184
1169
|
var defaultDocumentationItemConfigurationV1 = {
|
|
@@ -1187,33 +1172,33 @@ var defaultDocumentationItemConfigurationV1 = {
|
|
|
1187
1172
|
};
|
|
1188
1173
|
|
|
1189
1174
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
1190
|
-
var DocumentationPageDataV1 =
|
|
1191
|
-
blocks:
|
|
1175
|
+
var DocumentationPageDataV1 = z39.object({
|
|
1176
|
+
blocks: z39.array(PageBlockV1),
|
|
1192
1177
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
1193
1178
|
});
|
|
1194
|
-
var DocumentationPageElementDataV1 =
|
|
1195
|
-
dataVersion:
|
|
1179
|
+
var DocumentationPageElementDataV1 = z39.object({
|
|
1180
|
+
dataVersion: z39.literal(1).optional().default(1),
|
|
1196
1181
|
value: DocumentationPageDataV1
|
|
1197
1182
|
});
|
|
1198
1183
|
|
|
1199
1184
|
// src/dsm/elements/data/documentation-page-v2.ts
|
|
1200
|
-
import { z as
|
|
1185
|
+
import { z as z42 } from "zod";
|
|
1201
1186
|
|
|
1202
1187
|
// src/dsm/elements/data/documentation-v2.ts
|
|
1203
|
-
import { z as
|
|
1188
|
+
import { z as z41 } from "zod";
|
|
1204
1189
|
|
|
1205
1190
|
// src/dsm/elements/data/item-header-v2.ts
|
|
1206
|
-
import { z as
|
|
1207
|
-
var DocumentationItemHeaderV2 =
|
|
1208
|
-
description:
|
|
1191
|
+
import { z as z40 } from "zod";
|
|
1192
|
+
var DocumentationItemHeaderV2 = z40.object({
|
|
1193
|
+
description: z40.string(),
|
|
1209
1194
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1210
1195
|
foregroundColor: PageBlockColorV2.nullish(),
|
|
1211
1196
|
backgroundColor: PageBlockColorV2.nullish(),
|
|
1212
1197
|
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
1213
1198
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1214
|
-
showBackgroundOverlay:
|
|
1215
|
-
showCoverText:
|
|
1216
|
-
minHeight:
|
|
1199
|
+
showBackgroundOverlay: z40.boolean(),
|
|
1200
|
+
showCoverText: z40.boolean(),
|
|
1201
|
+
minHeight: z40.number().nullish()
|
|
1217
1202
|
});
|
|
1218
1203
|
var defaultDocumentationItemHeaderV2 = {
|
|
1219
1204
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -1224,8 +1209,8 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
1224
1209
|
};
|
|
1225
1210
|
|
|
1226
1211
|
// src/dsm/elements/data/documentation-v2.ts
|
|
1227
|
-
var DocumentationItemConfigurationV2 =
|
|
1228
|
-
showSidebar:
|
|
1212
|
+
var DocumentationItemConfigurationV2 = z41.object({
|
|
1213
|
+
showSidebar: z41.boolean(),
|
|
1229
1214
|
header: DocumentationItemHeaderV2
|
|
1230
1215
|
});
|
|
1231
1216
|
var defaultDocumentationItemConfigurationV2 = {
|
|
@@ -1234,126 +1219,126 @@ var defaultDocumentationItemConfigurationV2 = {
|
|
|
1234
1219
|
};
|
|
1235
1220
|
|
|
1236
1221
|
// src/dsm/elements/data/documentation-page-v2.ts
|
|
1237
|
-
var DocumentationPageDataV2 =
|
|
1222
|
+
var DocumentationPageDataV2 = z42.object({
|
|
1238
1223
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
1239
1224
|
});
|
|
1240
|
-
var DocumentationPageElementDataV2 =
|
|
1225
|
+
var DocumentationPageElementDataV2 = z42.object({
|
|
1241
1226
|
value: DocumentationPageDataV1,
|
|
1242
1227
|
valueV2: DocumentationPageDataV2.optional()
|
|
1243
1228
|
});
|
|
1244
1229
|
|
|
1245
1230
|
// src/dsm/elements/data/documentation-section-v2.ts
|
|
1246
|
-
import { z as
|
|
1231
|
+
import { z as z45 } from "zod";
|
|
1247
1232
|
|
|
1248
1233
|
// src/dsm/elements/page-block-v2.ts
|
|
1249
|
-
import { z as
|
|
1234
|
+
import { z as z44 } from "zod";
|
|
1250
1235
|
|
|
1251
1236
|
// src/dsm/elements/base.ts
|
|
1252
|
-
import { z as
|
|
1253
|
-
var DesignElementOrigin =
|
|
1254
|
-
id:
|
|
1255
|
-
sourceId:
|
|
1256
|
-
name:
|
|
1257
|
-
});
|
|
1258
|
-
var DesignElementBase =
|
|
1259
|
-
id:
|
|
1260
|
-
persistentId:
|
|
1237
|
+
import { z as z43 } from "zod";
|
|
1238
|
+
var DesignElementOrigin = z43.object({
|
|
1239
|
+
id: z43.string(),
|
|
1240
|
+
sourceId: z43.string(),
|
|
1241
|
+
name: z43.string()
|
|
1242
|
+
});
|
|
1243
|
+
var DesignElementBase = z43.object({
|
|
1244
|
+
id: z43.string(),
|
|
1245
|
+
persistentId: z43.string(),
|
|
1261
1246
|
meta: ObjectMeta,
|
|
1262
|
-
designSystemVersionId:
|
|
1263
|
-
createdAt:
|
|
1264
|
-
updatedAt:
|
|
1247
|
+
designSystemVersionId: z43.string(),
|
|
1248
|
+
createdAt: z43.coerce.date(),
|
|
1249
|
+
updatedAt: z43.coerce.date()
|
|
1265
1250
|
});
|
|
1266
1251
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
1267
1252
|
origin: DesignElementOrigin
|
|
1268
1253
|
});
|
|
1269
|
-
var DesignElementGroupablePart =
|
|
1270
|
-
parentPersistentId:
|
|
1271
|
-
sortOrder:
|
|
1254
|
+
var DesignElementGroupablePart = z43.object({
|
|
1255
|
+
parentPersistentId: z43.string().optional(),
|
|
1256
|
+
sortOrder: z43.number()
|
|
1272
1257
|
});
|
|
1273
1258
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
1274
1259
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
1275
|
-
parentPersistentId:
|
|
1260
|
+
parentPersistentId: z43.string()
|
|
1276
1261
|
});
|
|
1277
|
-
var DesignElementBrandedPart =
|
|
1278
|
-
brandPersistentId:
|
|
1262
|
+
var DesignElementBrandedPart = z43.object({
|
|
1263
|
+
brandPersistentId: z43.string()
|
|
1279
1264
|
});
|
|
1280
|
-
var DesignElementSlugPart =
|
|
1281
|
-
slug:
|
|
1282
|
-
userSlug:
|
|
1265
|
+
var DesignElementSlugPart = z43.object({
|
|
1266
|
+
slug: z43.string().optional(),
|
|
1267
|
+
userSlug: z43.string().optional()
|
|
1283
1268
|
});
|
|
1284
1269
|
|
|
1285
1270
|
// src/dsm/elements/page-block-v2.ts
|
|
1286
1271
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
1287
1272
|
data: PageBlockDataV2
|
|
1288
1273
|
});
|
|
1289
|
-
var PageBlockEditorModelV2 =
|
|
1290
|
-
id:
|
|
1291
|
-
type:
|
|
1274
|
+
var PageBlockEditorModelV2 = z44.object({
|
|
1275
|
+
id: z44.string(),
|
|
1276
|
+
type: z44.literal("Block"),
|
|
1292
1277
|
data: PageBlockDataV2
|
|
1293
1278
|
});
|
|
1294
1279
|
|
|
1295
1280
|
// src/dsm/elements/data/documentation-section-v2.ts
|
|
1296
|
-
var PageSectionTypeV2 =
|
|
1297
|
-
var PageSectionColumnV2 =
|
|
1298
|
-
id:
|
|
1299
|
-
blocks:
|
|
1300
|
-
});
|
|
1301
|
-
var PageSectionItemV2 =
|
|
1302
|
-
id:
|
|
1303
|
-
title:
|
|
1304
|
-
columns:
|
|
1305
|
-
});
|
|
1306
|
-
var PageSectionPaddingV2 =
|
|
1307
|
-
top:
|
|
1308
|
-
bottom:
|
|
1309
|
-
left:
|
|
1310
|
-
right:
|
|
1311
|
-
});
|
|
1312
|
-
var PageSectionAppearanceV2 =
|
|
1313
|
-
expandToEdges:
|
|
1314
|
-
contentExpandToEdges:
|
|
1281
|
+
var PageSectionTypeV2 = z45.enum(["Tabs"]);
|
|
1282
|
+
var PageSectionColumnV2 = z45.object({
|
|
1283
|
+
id: z45.string(),
|
|
1284
|
+
blocks: z45.array(PageBlockEditorModelV2)
|
|
1285
|
+
});
|
|
1286
|
+
var PageSectionItemV2 = z45.object({
|
|
1287
|
+
id: z45.string(),
|
|
1288
|
+
title: z45.string(),
|
|
1289
|
+
columns: z45.array(PageSectionColumnV2)
|
|
1290
|
+
});
|
|
1291
|
+
var PageSectionPaddingV2 = z45.object({
|
|
1292
|
+
top: z45.number().optional(),
|
|
1293
|
+
bottom: z45.number().optional(),
|
|
1294
|
+
left: z45.number().optional(),
|
|
1295
|
+
right: z45.number().optional()
|
|
1296
|
+
});
|
|
1297
|
+
var PageSectionAppearanceV2 = z45.object({
|
|
1298
|
+
expandToEdges: z45.boolean(),
|
|
1299
|
+
contentExpandToEdges: z45.boolean(),
|
|
1315
1300
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1316
1301
|
foregroundColor: PageBlockColorV2.optional(),
|
|
1317
1302
|
padding: PageSectionPaddingV2.optional()
|
|
1318
1303
|
});
|
|
1319
|
-
var PageSectionEditorModelV2 =
|
|
1320
|
-
id:
|
|
1321
|
-
type:
|
|
1322
|
-
variantId:
|
|
1304
|
+
var PageSectionEditorModelV2 = z45.object({
|
|
1305
|
+
id: z45.string(),
|
|
1306
|
+
type: z45.literal("Section"),
|
|
1307
|
+
variantId: z45.string().optional(),
|
|
1323
1308
|
sectionType: PageSectionTypeV2,
|
|
1324
1309
|
appearance: PageSectionAppearanceV2,
|
|
1325
|
-
items:
|
|
1310
|
+
items: z45.array(PageSectionItemV2)
|
|
1326
1311
|
});
|
|
1327
1312
|
|
|
1328
1313
|
// src/dsm/elements/data/duration.ts
|
|
1329
|
-
import { z as
|
|
1330
|
-
var DurationUnit =
|
|
1331
|
-
var DurationValue =
|
|
1314
|
+
import { z as z46 } from "zod";
|
|
1315
|
+
var DurationUnit = z46.enum(["Ms"]);
|
|
1316
|
+
var DurationValue = z46.object({
|
|
1332
1317
|
unit: DurationUnit,
|
|
1333
|
-
measure:
|
|
1318
|
+
measure: z46.number()
|
|
1334
1319
|
});
|
|
1335
1320
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
1336
1321
|
|
|
1337
1322
|
// src/dsm/elements/data/figma-file-structure.ts
|
|
1338
|
-
import { z as
|
|
1339
|
-
var FigmaFileStructureNodeType =
|
|
1340
|
-
var FigmaFileStructureNodeBase =
|
|
1341
|
-
id:
|
|
1342
|
-
name:
|
|
1323
|
+
import { z as z47 } from "zod";
|
|
1324
|
+
var FigmaFileStructureNodeType = z47.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
1325
|
+
var FigmaFileStructureNodeBase = z47.object({
|
|
1326
|
+
id: z47.string(),
|
|
1327
|
+
name: z47.string(),
|
|
1343
1328
|
type: FigmaFileStructureNodeType,
|
|
1344
1329
|
size: SizeOrUndefined,
|
|
1345
|
-
parentComponentSetId:
|
|
1330
|
+
parentComponentSetId: z47.string().optional()
|
|
1346
1331
|
});
|
|
1347
1332
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
1348
|
-
children:
|
|
1333
|
+
children: z47.lazy(() => FigmaFileStructureNode.array())
|
|
1349
1334
|
});
|
|
1350
|
-
var FigmaFileStructureStatistics =
|
|
1351
|
-
frames:
|
|
1352
|
-
components:
|
|
1353
|
-
componentSets:
|
|
1335
|
+
var FigmaFileStructureStatistics = z47.object({
|
|
1336
|
+
frames: z47.number().nullable().optional().transform((v) => v ?? 0),
|
|
1337
|
+
components: z47.number().nullable().optional().transform((v) => v ?? 0),
|
|
1338
|
+
componentSets: z47.number().nullable().optional().transform((v) => v ?? 0)
|
|
1354
1339
|
});
|
|
1355
|
-
var FigmaFileStructureElementData =
|
|
1356
|
-
value:
|
|
1340
|
+
var FigmaFileStructureElementData = z47.object({
|
|
1341
|
+
value: z47.object({
|
|
1357
1342
|
structure: FigmaFileStructureNode,
|
|
1358
1343
|
assetsInFile: FigmaFileStructureStatistics
|
|
1359
1344
|
})
|
|
@@ -1370,119 +1355,131 @@ function recursiveFigmaFileStructureToMap(node, map) {
|
|
|
1370
1355
|
}
|
|
1371
1356
|
|
|
1372
1357
|
// src/dsm/elements/data/figma-node-reference.ts
|
|
1373
|
-
import { z as
|
|
1374
|
-
var FigmaNodeReferenceData =
|
|
1375
|
-
structureElementId:
|
|
1376
|
-
nodeId:
|
|
1377
|
-
fileId:
|
|
1378
|
-
valid:
|
|
1358
|
+
import { z as z48 } from "zod";
|
|
1359
|
+
var FigmaNodeReferenceData = z48.object({
|
|
1360
|
+
structureElementId: z48.string(),
|
|
1361
|
+
nodeId: z48.string(),
|
|
1362
|
+
fileId: z48.string().optional(),
|
|
1363
|
+
valid: z48.boolean(),
|
|
1379
1364
|
// Asset data
|
|
1380
|
-
assetId:
|
|
1381
|
-
assetScale:
|
|
1382
|
-
assetWidth:
|
|
1383
|
-
assetHeight:
|
|
1384
|
-
assetUrl:
|
|
1385
|
-
assetOriginKey:
|
|
1386
|
-
});
|
|
1387
|
-
var FigmaNodeReferenceElementData =
|
|
1365
|
+
assetId: z48.string().optional(),
|
|
1366
|
+
assetScale: z48.number().optional(),
|
|
1367
|
+
assetWidth: z48.number().optional(),
|
|
1368
|
+
assetHeight: z48.number().optional(),
|
|
1369
|
+
assetUrl: z48.string().optional(),
|
|
1370
|
+
assetOriginKey: z48.string().optional()
|
|
1371
|
+
});
|
|
1372
|
+
var FigmaNodeReferenceElementData = z48.object({
|
|
1388
1373
|
value: FigmaNodeReferenceData
|
|
1389
1374
|
});
|
|
1390
1375
|
|
|
1391
1376
|
// src/dsm/elements/data/font-family.ts
|
|
1392
|
-
import { z as
|
|
1393
|
-
var FontFamilyValue =
|
|
1377
|
+
import { z as z49 } from "zod";
|
|
1378
|
+
var FontFamilyValue = z49.string();
|
|
1394
1379
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
1395
1380
|
|
|
1396
1381
|
// src/dsm/elements/data/font-size.ts
|
|
1397
|
-
import { z as
|
|
1398
|
-
var FontSizeUnit =
|
|
1399
|
-
var FontSizeValue =
|
|
1382
|
+
import { z as z50 } from "zod";
|
|
1383
|
+
var FontSizeUnit = z50.enum(["Pixels", "Rem", "Percent"]);
|
|
1384
|
+
var FontSizeValue = z50.object({
|
|
1400
1385
|
unit: FontSizeUnit,
|
|
1401
|
-
measure:
|
|
1386
|
+
measure: z50.number()
|
|
1402
1387
|
});
|
|
1403
1388
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
1404
1389
|
|
|
1405
1390
|
// src/dsm/elements/data/font-weight.ts
|
|
1406
|
-
import { z as
|
|
1407
|
-
var FontWeightValue =
|
|
1391
|
+
import { z as z51 } from "zod";
|
|
1392
|
+
var FontWeightValue = z51.string();
|
|
1408
1393
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
1409
1394
|
|
|
1410
1395
|
// src/dsm/elements/data/gradient.ts
|
|
1411
|
-
import { z as
|
|
1412
|
-
var GradientType =
|
|
1413
|
-
var GradientStop =
|
|
1414
|
-
position:
|
|
1396
|
+
import { z as z52 } from "zod";
|
|
1397
|
+
var GradientType = z52.enum(["Linear", "Radial", "Angular"]);
|
|
1398
|
+
var GradientStop = z52.object({
|
|
1399
|
+
position: z52.number(),
|
|
1415
1400
|
color: ColorTokenData
|
|
1416
1401
|
});
|
|
1417
|
-
var GradientLayerValue =
|
|
1402
|
+
var GradientLayerValue = z52.object({
|
|
1418
1403
|
from: Point2D,
|
|
1419
1404
|
to: Point2D,
|
|
1420
1405
|
type: GradientType,
|
|
1421
|
-
aspectRatio: nullishToOptional(
|
|
1406
|
+
aspectRatio: nullishToOptional(z52.number()),
|
|
1422
1407
|
// z.number(),
|
|
1423
|
-
stops:
|
|
1408
|
+
stops: z52.array(GradientStop).min(2)
|
|
1424
1409
|
});
|
|
1425
1410
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
1426
|
-
var GradientTokenValue =
|
|
1411
|
+
var GradientTokenValue = z52.array(GradientLayerData);
|
|
1427
1412
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
1428
1413
|
|
|
1429
1414
|
// src/dsm/elements/data/group.ts
|
|
1430
|
-
import { z as
|
|
1431
|
-
var DocumentationGroupBehavior =
|
|
1432
|
-
var ElementGroupDataDeprecated =
|
|
1415
|
+
import { z as z53 } from "zod";
|
|
1416
|
+
var DocumentationGroupBehavior = z53.enum(["Group", "Tabs"]);
|
|
1417
|
+
var ElementGroupDataDeprecated = z53.object({
|
|
1433
1418
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1434
1419
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
1435
1420
|
});
|
|
1436
|
-
var ElementGroupDataV2 =
|
|
1421
|
+
var ElementGroupDataV2 = z53.object({
|
|
1437
1422
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1438
1423
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
1439
1424
|
});
|
|
1440
|
-
var ElementGroupElementData =
|
|
1425
|
+
var ElementGroupElementData = z53.object({
|
|
1441
1426
|
value: ElementGroupDataDeprecated.optional(),
|
|
1442
1427
|
valueV2: ElementGroupDataV2.optional()
|
|
1443
1428
|
});
|
|
1444
1429
|
|
|
1445
1430
|
// src/dsm/elements/data/letter-spacing.ts
|
|
1446
|
-
import { z as
|
|
1447
|
-
var LetterSpacingUnit =
|
|
1448
|
-
var LetterSpacingValue =
|
|
1431
|
+
import { z as z54 } from "zod";
|
|
1432
|
+
var LetterSpacingUnit = z54.enum(["Pixels", "Rem", "Percent"]);
|
|
1433
|
+
var LetterSpacingValue = z54.object({
|
|
1449
1434
|
unit: LetterSpacingUnit,
|
|
1450
|
-
measure:
|
|
1435
|
+
measure: z54.number()
|
|
1451
1436
|
});
|
|
1452
1437
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
1453
1438
|
|
|
1454
1439
|
// src/dsm/elements/data/line-height.ts
|
|
1455
|
-
import { z as
|
|
1456
|
-
var LineHeightUnit =
|
|
1457
|
-
var LineHeightValue =
|
|
1440
|
+
import { z as z55 } from "zod";
|
|
1441
|
+
var LineHeightUnit = z55.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
1442
|
+
var LineHeightValue = z55.object({
|
|
1458
1443
|
unit: LineHeightUnit,
|
|
1459
|
-
measure:
|
|
1444
|
+
measure: z55.number()
|
|
1460
1445
|
});
|
|
1461
1446
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
1462
1447
|
|
|
1463
1448
|
// src/dsm/elements/data/paragraph-indent.ts
|
|
1464
|
-
import { z as
|
|
1465
|
-
var ParagraphIndentUnit =
|
|
1466
|
-
var ParagraphIndentValue =
|
|
1449
|
+
import { z as z56 } from "zod";
|
|
1450
|
+
var ParagraphIndentUnit = z56.enum(["Pixels", "Rem", "Percent"]);
|
|
1451
|
+
var ParagraphIndentValue = z56.object({
|
|
1467
1452
|
unit: ParagraphIndentUnit,
|
|
1468
|
-
measure:
|
|
1453
|
+
measure: z56.number()
|
|
1469
1454
|
});
|
|
1470
1455
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
1471
1456
|
|
|
1472
1457
|
// src/dsm/elements/data/paragraph-spacing.ts
|
|
1473
|
-
import { z as
|
|
1474
|
-
var ParagraphSpacingUnit =
|
|
1475
|
-
var ParagraphSpacingValue =
|
|
1458
|
+
import { z as z57 } from "zod";
|
|
1459
|
+
var ParagraphSpacingUnit = z57.enum(["Pixels", "Rem", "Percent"]);
|
|
1460
|
+
var ParagraphSpacingValue = z57.object({
|
|
1476
1461
|
unit: ParagraphSpacingUnit,
|
|
1477
|
-
measure:
|
|
1462
|
+
measure: z57.number()
|
|
1478
1463
|
});
|
|
1479
1464
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
1480
1465
|
|
|
1481
1466
|
// src/dsm/elements/data/product-copy.ts
|
|
1482
|
-
import { z as
|
|
1483
|
-
var ProductCopyValue =
|
|
1467
|
+
import { z as z58 } from "zod";
|
|
1468
|
+
var ProductCopyValue = z58.string();
|
|
1484
1469
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
1485
1470
|
|
|
1471
|
+
// src/dsm/elements/data/safe-id.ts
|
|
1472
|
+
import { z as z59 } from "zod";
|
|
1473
|
+
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
1474
|
+
var SafeIdSchema = z59.string().refine(
|
|
1475
|
+
(value) => {
|
|
1476
|
+
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
1480
|
+
}
|
|
1481
|
+
);
|
|
1482
|
+
|
|
1486
1483
|
// src/dsm/elements/data/shadow.ts
|
|
1487
1484
|
import { z as z60 } from "zod";
|
|
1488
1485
|
var ShadowType = z60.enum(["Drop", "Inner"]);
|
|
@@ -2410,138 +2407,229 @@ var DocumentationPageGroup = z93.object({
|
|
|
2410
2407
|
updatedAt: z93.coerce.date()
|
|
2411
2408
|
});
|
|
2412
2409
|
|
|
2413
|
-
// src/dsm/documentation/
|
|
2410
|
+
// src/dsm/documentation/link-preview.ts
|
|
2414
2411
|
import { z as z94 } from "zod";
|
|
2415
|
-
var
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
createdAt:
|
|
2427
|
-
updatedAt:
|
|
2412
|
+
var DocumentationLinkPreview = z94.object({
|
|
2413
|
+
title: z94.string().optional(),
|
|
2414
|
+
description: z94.string().optional(),
|
|
2415
|
+
thumbnailUrl: z94.string().optional()
|
|
2416
|
+
});
|
|
2417
|
+
|
|
2418
|
+
// src/dsm/documentation/page-content-backup.ts
|
|
2419
|
+
import { z as z95 } from "zod";
|
|
2420
|
+
var DocumentationPageContentBackup = z95.object({
|
|
2421
|
+
id: z95.string(),
|
|
2422
|
+
designSystemVersionId: z95.string(),
|
|
2423
|
+
createdAt: z95.coerce.date(),
|
|
2424
|
+
updatedAt: z95.coerce.date(),
|
|
2425
|
+
documentationPageId: z95.string(),
|
|
2426
|
+
documentationPageName: z95.string(),
|
|
2427
|
+
storagePath: z95.string()
|
|
2428
|
+
});
|
|
2429
|
+
|
|
2430
|
+
// src/dsm/documentation/page-content.ts
|
|
2431
|
+
import { z as z96 } from "zod";
|
|
2432
|
+
var DocumentationPageContentItem = z96.discriminatedUnion("type", [
|
|
2433
|
+
PageBlockEditorModelV2,
|
|
2434
|
+
PageSectionEditorModelV2
|
|
2435
|
+
]);
|
|
2436
|
+
var DocumentationPageContentData = z96.object({
|
|
2437
|
+
items: z96.array(DocumentationPageContentItem)
|
|
2438
|
+
});
|
|
2439
|
+
var DocumentationPageContent = z96.object({
|
|
2440
|
+
id: z96.string(),
|
|
2441
|
+
designSystemVersionId: z96.string(),
|
|
2442
|
+
createdAt: z96.coerce.date(),
|
|
2443
|
+
updatedAt: z96.coerce.date(),
|
|
2444
|
+
documentationPageId: z96.string(),
|
|
2445
|
+
data: DocumentationPageContentData,
|
|
2446
|
+
isDirty: z96.boolean()
|
|
2428
2447
|
});
|
|
2429
2448
|
|
|
2449
|
+
// src/dsm/documentation/page.ts
|
|
2450
|
+
import { z as z97 } from "zod";
|
|
2451
|
+
var DocumentationPage = z97.object({
|
|
2452
|
+
type: z97.literal("DocumentationPage"),
|
|
2453
|
+
id: z97.string(),
|
|
2454
|
+
persistentId: z97.string(),
|
|
2455
|
+
shortPersistentId: z97.string(),
|
|
2456
|
+
designSystemVersionId: z97.string(),
|
|
2457
|
+
parentPersistentId: z97.string().nullish(),
|
|
2458
|
+
sortOrder: z97.number(),
|
|
2459
|
+
title: z97.string(),
|
|
2460
|
+
slug: z97.string(),
|
|
2461
|
+
userSlug: z97.string().nullish(),
|
|
2462
|
+
createdAt: z97.coerce.date(),
|
|
2463
|
+
updatedAt: z97.coerce.date()
|
|
2464
|
+
});
|
|
2465
|
+
|
|
2466
|
+
// src/dsm/rooms/design-system-version-room.ts
|
|
2467
|
+
import { z as z98 } from "zod";
|
|
2468
|
+
var DesignSystemVersionRoom = Entity.extend({
|
|
2469
|
+
designSystemVersionId: z98.string(),
|
|
2470
|
+
liveblocksId: z98.string()
|
|
2471
|
+
});
|
|
2472
|
+
var DesignSystemVersionRoomInitialState = z98.object({
|
|
2473
|
+
pages: z98.array(DocumentationPageV2),
|
|
2474
|
+
groups: z98.array(ElementGroup)
|
|
2475
|
+
});
|
|
2476
|
+
var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
|
|
2477
|
+
deletedPageIds: z98.array(z98.string()),
|
|
2478
|
+
deletedGroupIds: z98.array(z98.string())
|
|
2479
|
+
});
|
|
2480
|
+
|
|
2481
|
+
// src/dsm/rooms/documentation-page-room.ts
|
|
2482
|
+
import { z as z99 } from "zod";
|
|
2483
|
+
var DocumentationPageRoom = Entity.extend({
|
|
2484
|
+
designSystemVersionId: z99.string(),
|
|
2485
|
+
documentationPageId: z99.string(),
|
|
2486
|
+
liveblocksId: z99.string(),
|
|
2487
|
+
isDirty: z99.boolean()
|
|
2488
|
+
});
|
|
2489
|
+
var DocumentationPageRoomState = z99.object({
|
|
2490
|
+
pageItems: z99.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2491
|
+
itemConfiguration: DocumentationItemConfigurationV2
|
|
2492
|
+
});
|
|
2493
|
+
var DocumentationPageRoomRoomUpdate = z99.object({
|
|
2494
|
+
page: DocumentationPageV2,
|
|
2495
|
+
pageParent: ElementGroup
|
|
2496
|
+
});
|
|
2497
|
+
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
2498
|
+
pageItems: z99.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2499
|
+
blockDefinitions: z99.array(PageBlockDefinition)
|
|
2500
|
+
});
|
|
2501
|
+
|
|
2502
|
+
// src/dsm/rooms/room-type.ts
|
|
2503
|
+
import { z as z100 } from "zod";
|
|
2504
|
+
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
2505
|
+
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
2506
|
+
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
2507
|
+
return RoomTypeEnum2;
|
|
2508
|
+
})(RoomTypeEnum || {});
|
|
2509
|
+
var RoomTypeSchema = z100.nativeEnum(RoomTypeEnum);
|
|
2510
|
+
var RoomType = RoomTypeSchema.enum;
|
|
2511
|
+
|
|
2430
2512
|
// src/dsm/design-system.ts
|
|
2431
|
-
import { z as
|
|
2513
|
+
import { z as z110 } from "zod";
|
|
2432
2514
|
|
|
2433
2515
|
// src/workspace/npm-registry-settings.ts
|
|
2434
|
-
import { z as
|
|
2435
|
-
var NpmRegistryAuthType =
|
|
2436
|
-
var NpmRegistryType =
|
|
2437
|
-
var NpmRegistryBasicAuthConfig =
|
|
2438
|
-
authType:
|
|
2439
|
-
username:
|
|
2440
|
-
password:
|
|
2441
|
-
});
|
|
2442
|
-
var NpmRegistryBearerAuthConfig =
|
|
2443
|
-
authType:
|
|
2444
|
-
accessToken:
|
|
2445
|
-
});
|
|
2446
|
-
var NpmRegistryNoAuthConfig =
|
|
2447
|
-
authType:
|
|
2448
|
-
});
|
|
2449
|
-
var NpmRegistrCustomAuthConfig =
|
|
2450
|
-
authType:
|
|
2451
|
-
authHeaderName:
|
|
2452
|
-
authHeaderValue:
|
|
2453
|
-
});
|
|
2454
|
-
var NpmRegistryAuthConfig =
|
|
2516
|
+
import { z as z101 } from "zod";
|
|
2517
|
+
var NpmRegistryAuthType = z101.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2518
|
+
var NpmRegistryType = z101.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
2519
|
+
var NpmRegistryBasicAuthConfig = z101.object({
|
|
2520
|
+
authType: z101.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2521
|
+
username: z101.string(),
|
|
2522
|
+
password: z101.string()
|
|
2523
|
+
});
|
|
2524
|
+
var NpmRegistryBearerAuthConfig = z101.object({
|
|
2525
|
+
authType: z101.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2526
|
+
accessToken: z101.string()
|
|
2527
|
+
});
|
|
2528
|
+
var NpmRegistryNoAuthConfig = z101.object({
|
|
2529
|
+
authType: z101.literal(NpmRegistryAuthType.Enum.None)
|
|
2530
|
+
});
|
|
2531
|
+
var NpmRegistrCustomAuthConfig = z101.object({
|
|
2532
|
+
authType: z101.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2533
|
+
authHeaderName: z101.string(),
|
|
2534
|
+
authHeaderValue: z101.string()
|
|
2535
|
+
});
|
|
2536
|
+
var NpmRegistryAuthConfig = z101.discriminatedUnion("authType", [
|
|
2455
2537
|
NpmRegistryBasicAuthConfig,
|
|
2456
2538
|
NpmRegistryBearerAuthConfig,
|
|
2457
2539
|
NpmRegistryNoAuthConfig,
|
|
2458
2540
|
NpmRegistrCustomAuthConfig
|
|
2459
2541
|
]);
|
|
2460
|
-
var NpmRegistryConfigBase =
|
|
2542
|
+
var NpmRegistryConfigBase = z101.object({
|
|
2461
2543
|
registryType: NpmRegistryType,
|
|
2462
|
-
enabledScopes:
|
|
2463
|
-
customRegistryUrl:
|
|
2464
|
-
bypassProxy:
|
|
2465
|
-
npmProxyRegistryConfigId:
|
|
2466
|
-
npmProxyVersion:
|
|
2544
|
+
enabledScopes: z101.array(z101.string()),
|
|
2545
|
+
customRegistryUrl: z101.string().optional(),
|
|
2546
|
+
bypassProxy: z101.boolean().default(false),
|
|
2547
|
+
npmProxyRegistryConfigId: z101.string().optional(),
|
|
2548
|
+
npmProxyVersion: z101.number().optional()
|
|
2467
2549
|
});
|
|
2468
2550
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2469
2551
|
|
|
2470
2552
|
// src/workspace/sso-provider.ts
|
|
2471
|
-
import { z as
|
|
2472
|
-
var SsoProvider =
|
|
2473
|
-
providerId:
|
|
2474
|
-
defaultAutoInviteValue:
|
|
2475
|
-
autoInviteDomains:
|
|
2476
|
-
skipDocsSupernovaLogin:
|
|
2477
|
-
areInvitesDisabled:
|
|
2478
|
-
isTestMode:
|
|
2479
|
-
emailDomains:
|
|
2480
|
-
metadataXml:
|
|
2553
|
+
import { z as z102 } from "zod";
|
|
2554
|
+
var SsoProvider = z102.object({
|
|
2555
|
+
providerId: z102.string(),
|
|
2556
|
+
defaultAutoInviteValue: z102.boolean(),
|
|
2557
|
+
autoInviteDomains: z102.record(z102.string(), z102.boolean()),
|
|
2558
|
+
skipDocsSupernovaLogin: z102.boolean(),
|
|
2559
|
+
areInvitesDisabled: z102.boolean(),
|
|
2560
|
+
isTestMode: z102.boolean(),
|
|
2561
|
+
emailDomains: z102.array(z102.string()),
|
|
2562
|
+
metadataXml: z102.string().nullish()
|
|
2481
2563
|
});
|
|
2482
2564
|
|
|
2483
2565
|
// src/workspace/user-invite.ts
|
|
2484
|
-
import { z as
|
|
2566
|
+
import { z as z104 } from "zod";
|
|
2485
2567
|
|
|
2486
2568
|
// src/workspace/workspace-role.ts
|
|
2487
|
-
import { z as
|
|
2488
|
-
var WorkspaceRoleSchema =
|
|
2569
|
+
import { z as z103 } from "zod";
|
|
2570
|
+
var WorkspaceRoleSchema = z103.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
2489
2571
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
2490
2572
|
|
|
2491
2573
|
// src/workspace/user-invite.ts
|
|
2492
2574
|
var MAX_MEMBERS_COUNT = 100;
|
|
2493
|
-
var UserInvite =
|
|
2494
|
-
email:
|
|
2575
|
+
var UserInvite = z104.object({
|
|
2576
|
+
email: z104.string().email().trim().transform((value) => value.toLowerCase()),
|
|
2495
2577
|
role: WorkspaceRoleSchema
|
|
2496
2578
|
});
|
|
2497
|
-
var UserInvites =
|
|
2579
|
+
var UserInvites = z104.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
2498
2580
|
|
|
2499
2581
|
// src/workspace/workspace-context.ts
|
|
2500
|
-
import { z as
|
|
2582
|
+
import { z as z106 } from "zod";
|
|
2501
2583
|
|
|
2502
2584
|
// src/workspace/workspace.ts
|
|
2503
|
-
import { z as
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
})
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2585
|
+
import { z as z105 } from "zod";
|
|
2586
|
+
import IPCIDR from "ip-cidr";
|
|
2587
|
+
var isValidCIDR = (value) => {
|
|
2588
|
+
return IPCIDR.isValidAddress(value);
|
|
2589
|
+
};
|
|
2590
|
+
var WorkspaceIpWhitelistEntry = z105.object({
|
|
2591
|
+
isEnabled: z105.boolean(),
|
|
2592
|
+
name: z105.string(),
|
|
2593
|
+
range: z105.string().refine(isValidCIDR, {
|
|
2594
|
+
message: "Invalid IP CIDR"
|
|
2595
|
+
})
|
|
2596
|
+
});
|
|
2597
|
+
var WorkspaceIpSettings = z105.object({
|
|
2598
|
+
isEnabledForCloud: z105.boolean(),
|
|
2599
|
+
isEnabledForDocs: z105.boolean(),
|
|
2600
|
+
entries: z105.array(WorkspaceIpWhitelistEntry)
|
|
2601
|
+
});
|
|
2602
|
+
var WorkspaceProfile = z105.object({
|
|
2603
|
+
name: z105.string(),
|
|
2604
|
+
handle: z105.string(),
|
|
2605
|
+
color: z105.string(),
|
|
2606
|
+
avatar: nullishToOptional(z105.string()),
|
|
2519
2607
|
billingDetails: nullishToOptional(BillingDetails)
|
|
2520
2608
|
});
|
|
2521
|
-
var Workspace =
|
|
2522
|
-
id:
|
|
2609
|
+
var Workspace = z105.object({
|
|
2610
|
+
id: z105.string(),
|
|
2523
2611
|
profile: WorkspaceProfile,
|
|
2524
2612
|
subscription: Subscription,
|
|
2525
|
-
ipWhitelist: WorkspaceIpSettings,
|
|
2526
|
-
sso: SsoProvider
|
|
2527
|
-
npmRegistrySettings:
|
|
2528
|
-
designSystems:
|
|
2613
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
2614
|
+
sso: nullishToOptional(SsoProvider),
|
|
2615
|
+
npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
|
|
2616
|
+
designSystems: z105.array(DesignSystem).nullish()
|
|
2529
2617
|
});
|
|
2530
|
-
var WorkspaceWithDesignSystems =
|
|
2618
|
+
var WorkspaceWithDesignSystems = z105.object({
|
|
2531
2619
|
workspace: Workspace,
|
|
2532
|
-
designSystems:
|
|
2620
|
+
designSystems: z105.array(DesignSystem)
|
|
2533
2621
|
});
|
|
2534
2622
|
|
|
2535
2623
|
// src/workspace/workspace-context.ts
|
|
2536
|
-
var WorkspaceContext =
|
|
2537
|
-
workspaceId:
|
|
2624
|
+
var WorkspaceContext = z106.object({
|
|
2625
|
+
workspaceId: z106.string(),
|
|
2538
2626
|
product: ProductCodeSchema,
|
|
2539
|
-
ipWhitelist: WorkspaceIpSettings,
|
|
2540
|
-
publicDesignSystem:
|
|
2627
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
2628
|
+
publicDesignSystem: z106.boolean().optional()
|
|
2541
2629
|
});
|
|
2542
2630
|
|
|
2543
2631
|
// src/workspace/workspace-create.ts
|
|
2544
|
-
import { z as
|
|
2632
|
+
import { z as z107 } from "zod";
|
|
2545
2633
|
|
|
2546
2634
|
// src/utils/validation.ts
|
|
2547
2635
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
@@ -2551,116 +2639,119 @@ var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
|
2551
2639
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
2552
2640
|
var HANDLE_MIN_LENGTH = 2;
|
|
2553
2641
|
var HANDLE_MAX_LENGTH = 64;
|
|
2554
|
-
var CreateWorkspaceInput =
|
|
2555
|
-
name:
|
|
2642
|
+
var CreateWorkspaceInput = z107.object({
|
|
2643
|
+
name: z107.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
2556
2644
|
product: ProductCodeSchema,
|
|
2557
|
-
priceId:
|
|
2558
|
-
billingEmail:
|
|
2559
|
-
handle:
|
|
2645
|
+
priceId: z107.string(),
|
|
2646
|
+
billingEmail: z107.string().email().optional(),
|
|
2647
|
+
handle: z107.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
2560
2648
|
invites: UserInvites.optional(),
|
|
2561
|
-
promoCode:
|
|
2649
|
+
promoCode: z107.string().optional(),
|
|
2562
2650
|
status: InternalStatusSchema.optional(),
|
|
2563
2651
|
planInterval: BillingIntervalSchema.optional(),
|
|
2564
|
-
seats:
|
|
2565
|
-
seatLimit:
|
|
2566
|
-
card: CardSchema.optional()
|
|
2652
|
+
seats: z107.number().optional(),
|
|
2653
|
+
seatLimit: z107.number().optional(),
|
|
2654
|
+
card: CardSchema.optional(),
|
|
2655
|
+
sso: SsoProvider.optional(),
|
|
2656
|
+
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
2657
|
+
ipWhitelist: WorkspaceIpSettings.optional()
|
|
2567
2658
|
});
|
|
2568
2659
|
|
|
2569
2660
|
// src/workspace/workspace-invitations.ts
|
|
2570
|
-
import { z as
|
|
2571
|
-
var WorkspaceInvitation =
|
|
2572
|
-
id:
|
|
2573
|
-
email:
|
|
2574
|
-
createdAt:
|
|
2575
|
-
resentAt:
|
|
2576
|
-
role:
|
|
2577
|
-
workspaceId:
|
|
2578
|
-
invitedBy:
|
|
2661
|
+
import { z as z108 } from "zod";
|
|
2662
|
+
var WorkspaceInvitation = z108.object({
|
|
2663
|
+
id: z108.string(),
|
|
2664
|
+
email: z108.string().email(),
|
|
2665
|
+
createdAt: z108.coerce.date(),
|
|
2666
|
+
resentAt: z108.coerce.date().nullish(),
|
|
2667
|
+
role: z108.nativeEnum(WorkspaceRole),
|
|
2668
|
+
workspaceId: z108.string(),
|
|
2669
|
+
invitedBy: z108.string()
|
|
2579
2670
|
});
|
|
2580
2671
|
|
|
2581
2672
|
// src/workspace/workspace-membership.ts
|
|
2582
|
-
import { z as
|
|
2583
|
-
var WorkspaceMembership =
|
|
2584
|
-
id:
|
|
2585
|
-
userId:
|
|
2586
|
-
workspaceId:
|
|
2587
|
-
workspaceRole:
|
|
2588
|
-
});
|
|
2589
|
-
var UpdateMembershipRolesInput =
|
|
2590
|
-
members:
|
|
2591
|
-
|
|
2592
|
-
userId:
|
|
2593
|
-
role:
|
|
2673
|
+
import { z as z109 } from "zod";
|
|
2674
|
+
var WorkspaceMembership = z109.object({
|
|
2675
|
+
id: z109.string(),
|
|
2676
|
+
userId: z109.string(),
|
|
2677
|
+
workspaceId: z109.string(),
|
|
2678
|
+
workspaceRole: z109.nativeEnum(WorkspaceRole)
|
|
2679
|
+
});
|
|
2680
|
+
var UpdateMembershipRolesInput = z109.object({
|
|
2681
|
+
members: z109.array(
|
|
2682
|
+
z109.object({
|
|
2683
|
+
userId: z109.string(),
|
|
2684
|
+
role: z109.nativeEnum(WorkspaceRole)
|
|
2594
2685
|
})
|
|
2595
2686
|
)
|
|
2596
2687
|
});
|
|
2597
2688
|
|
|
2598
2689
|
// src/dsm/design-system.ts
|
|
2599
|
-
var DesignSystemSwitcher =
|
|
2600
|
-
isEnabled:
|
|
2601
|
-
designSystemIds:
|
|
2602
|
-
});
|
|
2603
|
-
var DesignSystem =
|
|
2604
|
-
id:
|
|
2605
|
-
workspaceId:
|
|
2606
|
-
name:
|
|
2607
|
-
description:
|
|
2608
|
-
docExporterId: nullishToOptional(
|
|
2609
|
-
docSlug:
|
|
2610
|
-
docUserSlug: nullishToOptional(
|
|
2611
|
-
docSlugDeprecated:
|
|
2612
|
-
isPublic:
|
|
2613
|
-
isMultibrand:
|
|
2614
|
-
docViewUrl: nullishToOptional(
|
|
2615
|
-
basePrefixes:
|
|
2690
|
+
var DesignSystemSwitcher = z110.object({
|
|
2691
|
+
isEnabled: z110.boolean(),
|
|
2692
|
+
designSystemIds: z110.array(z110.string())
|
|
2693
|
+
});
|
|
2694
|
+
var DesignSystem = z110.object({
|
|
2695
|
+
id: z110.string(),
|
|
2696
|
+
workspaceId: z110.string(),
|
|
2697
|
+
name: z110.string(),
|
|
2698
|
+
description: z110.string(),
|
|
2699
|
+
docExporterId: nullishToOptional(z110.string()),
|
|
2700
|
+
docSlug: z110.string(),
|
|
2701
|
+
docUserSlug: nullishToOptional(z110.string()),
|
|
2702
|
+
docSlugDeprecated: z110.string(),
|
|
2703
|
+
isPublic: z110.boolean(),
|
|
2704
|
+
isMultibrand: z110.boolean(),
|
|
2705
|
+
docViewUrl: nullishToOptional(z110.string()),
|
|
2706
|
+
basePrefixes: z110.array(z110.string()),
|
|
2616
2707
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2617
|
-
createdAt:
|
|
2618
|
-
updatedAt:
|
|
2708
|
+
createdAt: z110.coerce.date(),
|
|
2709
|
+
updatedAt: z110.coerce.date()
|
|
2619
2710
|
});
|
|
2620
|
-
var DesignSystemWithWorkspace =
|
|
2711
|
+
var DesignSystemWithWorkspace = z110.object({
|
|
2621
2712
|
designSystem: DesignSystem,
|
|
2622
2713
|
workspace: Workspace
|
|
2623
2714
|
});
|
|
2624
2715
|
|
|
2625
2716
|
// src/dsm/desing-system-create.ts
|
|
2626
|
-
import { z as
|
|
2717
|
+
import { z as z111 } from "zod";
|
|
2627
2718
|
var DS_NAME_MIN_LENGTH = 2;
|
|
2628
2719
|
var DS_NAME_MAX_LENGTH = 64;
|
|
2629
2720
|
var DS_DESC_MIN_LENGTH = 2;
|
|
2630
2721
|
var DS_DESC_MAX_LENGTH = 64;
|
|
2631
|
-
var DesignSystemCreateInputMetadata =
|
|
2632
|
-
name:
|
|
2633
|
-
description:
|
|
2722
|
+
var DesignSystemCreateInputMetadata = z111.object({
|
|
2723
|
+
name: z111.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2724
|
+
description: z111.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
|
|
2634
2725
|
});
|
|
2635
|
-
var DesignSystemCreateInput =
|
|
2726
|
+
var DesignSystemCreateInput = z111.object({
|
|
2636
2727
|
meta: DesignSystemCreateInputMetadata,
|
|
2637
|
-
workspaceId:
|
|
2638
|
-
isPublic:
|
|
2639
|
-
basePrefixes:
|
|
2640
|
-
docUserSlug:
|
|
2641
|
-
source:
|
|
2728
|
+
workspaceId: z111.string(),
|
|
2729
|
+
isPublic: z111.boolean().optional(),
|
|
2730
|
+
basePrefixes: z111.array(z111.string()).optional(),
|
|
2731
|
+
docUserSlug: z111.string().nullish().optional(),
|
|
2732
|
+
source: z111.array(z111.string()).optional()
|
|
2642
2733
|
});
|
|
2643
2734
|
|
|
2644
2735
|
// src/dsm/desing-system-update.ts
|
|
2645
|
-
import { z as
|
|
2736
|
+
import { z as z112 } from "zod";
|
|
2646
2737
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2647
2738
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2648
2739
|
var DS_DESC_MIN_LENGTH2 = 2;
|
|
2649
2740
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2650
|
-
var DesignSystemUpdateInputMetadata =
|
|
2651
|
-
name:
|
|
2652
|
-
description:
|
|
2741
|
+
var DesignSystemUpdateInputMetadata = z112.object({
|
|
2742
|
+
name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2743
|
+
description: z112.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2653
2744
|
});
|
|
2654
|
-
var DesignSystemUpdateInput =
|
|
2745
|
+
var DesignSystemUpdateInput = z112.object({
|
|
2655
2746
|
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2656
|
-
workspaceId:
|
|
2657
|
-
isPublic:
|
|
2658
|
-
basePrefixes:
|
|
2659
|
-
docUserSlug:
|
|
2660
|
-
source:
|
|
2661
|
-
name:
|
|
2662
|
-
description:
|
|
2663
|
-
docExporterId:
|
|
2747
|
+
workspaceId: z112.string().optional(),
|
|
2748
|
+
isPublic: z112.boolean().optional(),
|
|
2749
|
+
basePrefixes: z112.array(z112.string()).optional(),
|
|
2750
|
+
docUserSlug: z112.string().nullish().optional(),
|
|
2751
|
+
source: z112.array(z112.string()).optional(),
|
|
2752
|
+
name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2753
|
+
description: z112.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2754
|
+
docExporterId: z112.string().optional()
|
|
2664
2755
|
});
|
|
2665
2756
|
|
|
2666
2757
|
// src/dsm/published-doc-page.ts
|
|
@@ -2672,54 +2763,54 @@ function tryParseShortPersistentId(url = "/") {
|
|
|
2672
2763
|
}
|
|
2673
2764
|
|
|
2674
2765
|
// src/dsm/published-doc.ts
|
|
2675
|
-
import { z as
|
|
2766
|
+
import { z as z113 } from "zod";
|
|
2676
2767
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2677
|
-
var PublishedDocEnvironment =
|
|
2678
|
-
var PublishedDocsChecksums =
|
|
2679
|
-
var PublishedDocRoutingVersion =
|
|
2680
|
-
var PublishedDoc =
|
|
2681
|
-
id:
|
|
2682
|
-
designSystemVersionId:
|
|
2683
|
-
createdAt:
|
|
2684
|
-
updatedAt:
|
|
2685
|
-
lastPublishedAt:
|
|
2686
|
-
isDefault:
|
|
2687
|
-
isPublic:
|
|
2768
|
+
var PublishedDocEnvironment = z113.enum(publishedDocEnvironments);
|
|
2769
|
+
var PublishedDocsChecksums = z113.record(z113.string());
|
|
2770
|
+
var PublishedDocRoutingVersion = z113.enum(["1", "2"]);
|
|
2771
|
+
var PublishedDoc = z113.object({
|
|
2772
|
+
id: z113.string(),
|
|
2773
|
+
designSystemVersionId: z113.string(),
|
|
2774
|
+
createdAt: z113.coerce.date(),
|
|
2775
|
+
updatedAt: z113.coerce.date(),
|
|
2776
|
+
lastPublishedAt: z113.coerce.date(),
|
|
2777
|
+
isDefault: z113.boolean(),
|
|
2778
|
+
isPublic: z113.boolean(),
|
|
2688
2779
|
environment: PublishedDocEnvironment,
|
|
2689
2780
|
checksums: PublishedDocsChecksums,
|
|
2690
|
-
storagePath:
|
|
2691
|
-
wasMigrated:
|
|
2781
|
+
storagePath: z113.string(),
|
|
2782
|
+
wasMigrated: z113.boolean(),
|
|
2692
2783
|
routingVersion: PublishedDocRoutingVersion,
|
|
2693
|
-
usesLocalizations:
|
|
2694
|
-
wasPublishedWithLocalizations:
|
|
2784
|
+
usesLocalizations: z113.boolean(),
|
|
2785
|
+
wasPublishedWithLocalizations: z113.boolean()
|
|
2695
2786
|
});
|
|
2696
2787
|
|
|
2697
2788
|
// src/codegen/export-jobs.ts
|
|
2698
|
-
import { z as
|
|
2699
|
-
var ExporterJobDestination =
|
|
2700
|
-
var ExporterJobStatus =
|
|
2701
|
-
var ExporterJobLogEntryType =
|
|
2702
|
-
var ExporterJobLogEntry =
|
|
2703
|
-
id:
|
|
2704
|
-
time:
|
|
2789
|
+
import { z as z114 } from "zod";
|
|
2790
|
+
var ExporterJobDestination = z114.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
|
|
2791
|
+
var ExporterJobStatus = z114.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2792
|
+
var ExporterJobLogEntryType = z114.enum(["success", "info", "warning", "error", "user"]);
|
|
2793
|
+
var ExporterJobLogEntry = z114.object({
|
|
2794
|
+
id: z114.string().optional(),
|
|
2795
|
+
time: z114.coerce.date(),
|
|
2705
2796
|
type: ExporterJobLogEntryType,
|
|
2706
|
-
message:
|
|
2797
|
+
message: z114.string()
|
|
2707
2798
|
});
|
|
2708
|
-
var ExporterJobResultPullRequestDestination =
|
|
2709
|
-
pullRequestUrl:
|
|
2799
|
+
var ExporterJobResultPullRequestDestination = z114.object({
|
|
2800
|
+
pullRequestUrl: z114.string()
|
|
2710
2801
|
});
|
|
2711
|
-
var ExporterJobResultS3Destination =
|
|
2712
|
-
bucket:
|
|
2713
|
-
urlPrefix:
|
|
2714
|
-
path:
|
|
2715
|
-
files:
|
|
2802
|
+
var ExporterJobResultS3Destination = z114.object({
|
|
2803
|
+
bucket: z114.string(),
|
|
2804
|
+
urlPrefix: z114.string().optional(),
|
|
2805
|
+
path: z114.string(),
|
|
2806
|
+
files: z114.array(z114.string())
|
|
2716
2807
|
});
|
|
2717
|
-
var ExporterJobResultDocsDestination =
|
|
2718
|
-
url:
|
|
2808
|
+
var ExporterJobResultDocsDestination = z114.object({
|
|
2809
|
+
url: z114.string()
|
|
2719
2810
|
});
|
|
2720
|
-
var ExporterJobResult =
|
|
2721
|
-
error:
|
|
2722
|
-
logs:
|
|
2811
|
+
var ExporterJobResult = z114.object({
|
|
2812
|
+
error: z114.string().optional(),
|
|
2813
|
+
logs: z114.array(ExporterJobLogEntry).optional(),
|
|
2723
2814
|
s3: ExporterJobResultS3Destination.optional(),
|
|
2724
2815
|
github: ExporterJobResultPullRequestDestination.optional(),
|
|
2725
2816
|
azure: ExporterJobResultPullRequestDestination.optional(),
|
|
@@ -2727,68 +2818,68 @@ var ExporterJobResult = z108.object({
|
|
|
2727
2818
|
bitbucket: ExporterJobResultPullRequestDestination.optional(),
|
|
2728
2819
|
sndocs: ExporterJobResultDocsDestination.optional()
|
|
2729
2820
|
});
|
|
2730
|
-
var ExporterDestinationSnDocs =
|
|
2821
|
+
var ExporterDestinationSnDocs = z114.object({
|
|
2731
2822
|
environment: PublishedDocEnvironment
|
|
2732
2823
|
});
|
|
2733
|
-
var ExporterDestinationS3 =
|
|
2734
|
-
var ExporterDestinationGithub =
|
|
2735
|
-
connectionId:
|
|
2736
|
-
url:
|
|
2737
|
-
branch:
|
|
2738
|
-
relativePath:
|
|
2824
|
+
var ExporterDestinationS3 = z114.object({});
|
|
2825
|
+
var ExporterDestinationGithub = z114.object({
|
|
2826
|
+
connectionId: z114.string(),
|
|
2827
|
+
url: z114.string(),
|
|
2828
|
+
branch: z114.string(),
|
|
2829
|
+
relativePath: z114.string(),
|
|
2739
2830
|
// +
|
|
2740
|
-
userId:
|
|
2741
|
-
});
|
|
2742
|
-
var ExporterDestinationAzure =
|
|
2743
|
-
connectionId:
|
|
2744
|
-
organizationId:
|
|
2745
|
-
projectId:
|
|
2746
|
-
repositoryId:
|
|
2747
|
-
branch:
|
|
2748
|
-
relativePath:
|
|
2831
|
+
userId: z114.coerce.string()
|
|
2832
|
+
});
|
|
2833
|
+
var ExporterDestinationAzure = z114.object({
|
|
2834
|
+
connectionId: z114.string(),
|
|
2835
|
+
organizationId: z114.string(),
|
|
2836
|
+
projectId: z114.string(),
|
|
2837
|
+
repositoryId: z114.string(),
|
|
2838
|
+
branch: z114.string(),
|
|
2839
|
+
relativePath: z114.string(),
|
|
2749
2840
|
// +
|
|
2750
|
-
userId:
|
|
2751
|
-
url:
|
|
2752
|
-
});
|
|
2753
|
-
var ExporterDestinationGitlab =
|
|
2754
|
-
connectionId:
|
|
2755
|
-
projectId:
|
|
2756
|
-
branch:
|
|
2757
|
-
relativePath:
|
|
2841
|
+
userId: z114.coerce.string(),
|
|
2842
|
+
url: z114.string()
|
|
2843
|
+
});
|
|
2844
|
+
var ExporterDestinationGitlab = z114.object({
|
|
2845
|
+
connectionId: z114.string(),
|
|
2846
|
+
projectId: z114.string(),
|
|
2847
|
+
branch: z114.string(),
|
|
2848
|
+
relativePath: z114.string(),
|
|
2758
2849
|
// +
|
|
2759
|
-
userId:
|
|
2760
|
-
url:
|
|
2850
|
+
userId: z114.coerce.string(),
|
|
2851
|
+
url: z114.string()
|
|
2761
2852
|
});
|
|
2762
2853
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2763
2854
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
2764
|
-
var ExporterDestinationBitbucket =
|
|
2765
|
-
connectionId:
|
|
2766
|
-
workspaceSlug:
|
|
2767
|
-
projectKey:
|
|
2768
|
-
repoSlug:
|
|
2769
|
-
branch:
|
|
2770
|
-
relativePath:
|
|
2855
|
+
var ExporterDestinationBitbucket = z114.object({
|
|
2856
|
+
connectionId: z114.string(),
|
|
2857
|
+
workspaceSlug: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2858
|
+
projectKey: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2859
|
+
repoSlug: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2860
|
+
branch: z114.string(),
|
|
2861
|
+
relativePath: z114.string(),
|
|
2771
2862
|
// +
|
|
2772
|
-
userId:
|
|
2773
|
-
url:
|
|
2774
|
-
});
|
|
2775
|
-
var ExporterJob =
|
|
2776
|
-
id:
|
|
2777
|
-
createdAt:
|
|
2778
|
-
finishedAt:
|
|
2779
|
-
designSystemId:
|
|
2780
|
-
designSystemVersionId:
|
|
2781
|
-
workspaceId:
|
|
2782
|
-
scheduleId:
|
|
2783
|
-
exporterId:
|
|
2784
|
-
brandId:
|
|
2785
|
-
themeId:
|
|
2786
|
-
estimatedExecutionTime:
|
|
2863
|
+
userId: z114.coerce.string(),
|
|
2864
|
+
url: z114.string()
|
|
2865
|
+
});
|
|
2866
|
+
var ExporterJob = z114.object({
|
|
2867
|
+
id: z114.coerce.string(),
|
|
2868
|
+
createdAt: z114.coerce.date(),
|
|
2869
|
+
finishedAt: z114.coerce.date().optional(),
|
|
2870
|
+
designSystemId: z114.coerce.string(),
|
|
2871
|
+
designSystemVersionId: z114.coerce.string(),
|
|
2872
|
+
workspaceId: z114.coerce.string(),
|
|
2873
|
+
scheduleId: z114.coerce.string().nullish(),
|
|
2874
|
+
exporterId: z114.coerce.string(),
|
|
2875
|
+
brandId: z114.coerce.string().optional(),
|
|
2876
|
+
themeId: z114.coerce.string().optional(),
|
|
2877
|
+
estimatedExecutionTime: z114.number().optional(),
|
|
2787
2878
|
status: ExporterJobStatus,
|
|
2788
2879
|
result: ExporterJobResult.optional(),
|
|
2789
|
-
createdByUserId:
|
|
2880
|
+
createdByUserId: z114.string().optional(),
|
|
2790
2881
|
// CodegenDestinationsModel
|
|
2791
|
-
webhookUrl:
|
|
2882
|
+
webhookUrl: z114.string().optional(),
|
|
2792
2883
|
destinationSnDocs: ExporterDestinationSnDocs.optional(),
|
|
2793
2884
|
destinationS3: ExporterDestinationS3.optional(),
|
|
2794
2885
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -2807,28 +2898,28 @@ var ExporterJobFindByFilter = ExporterJob.pick({
|
|
|
2807
2898
|
themeId: true,
|
|
2808
2899
|
brandId: true
|
|
2809
2900
|
}).extend({
|
|
2810
|
-
destinations:
|
|
2901
|
+
destinations: z114.array(ExporterJobDestination),
|
|
2811
2902
|
docsEnvironment: PublishedDocEnvironment
|
|
2812
2903
|
}).partial();
|
|
2813
2904
|
|
|
2814
2905
|
// src/codegen/exporter-workspace-membership-role.ts
|
|
2815
|
-
import { z as
|
|
2816
|
-
var ExporterWorkspaceMembershipRole =
|
|
2906
|
+
import { z as z115 } from "zod";
|
|
2907
|
+
var ExporterWorkspaceMembershipRole = z115.enum(["Owner", "OwnerArchived", "User"]);
|
|
2817
2908
|
|
|
2818
2909
|
// src/codegen/exporter-workspace-membership.ts
|
|
2819
|
-
import { z as
|
|
2820
|
-
var ExporterWorkspaceMembership =
|
|
2821
|
-
id:
|
|
2822
|
-
workspaceId:
|
|
2823
|
-
exporterId:
|
|
2910
|
+
import { z as z116 } from "zod";
|
|
2911
|
+
var ExporterWorkspaceMembership = z116.object({
|
|
2912
|
+
id: z116.string(),
|
|
2913
|
+
workspaceId: z116.string(),
|
|
2914
|
+
exporterId: z116.string(),
|
|
2824
2915
|
role: ExporterWorkspaceMembershipRole
|
|
2825
2916
|
});
|
|
2826
2917
|
|
|
2827
2918
|
// src/codegen/exporter.ts
|
|
2828
|
-
import { z as
|
|
2919
|
+
import { z as z119 } from "zod";
|
|
2829
2920
|
|
|
2830
2921
|
// src/codegen/git-providers.ts
|
|
2831
|
-
import { z as
|
|
2922
|
+
import { z as z117 } from "zod";
|
|
2832
2923
|
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
2833
2924
|
GitProviderNames2["Azure"] = "azure";
|
|
2834
2925
|
GitProviderNames2["Github"] = "github";
|
|
@@ -2836,11 +2927,11 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
2836
2927
|
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2837
2928
|
return GitProviderNames2;
|
|
2838
2929
|
})(GitProviderNames || {});
|
|
2839
|
-
var GitProvider =
|
|
2930
|
+
var GitProvider = z117.nativeEnum(GitProviderNames);
|
|
2840
2931
|
|
|
2841
2932
|
// src/codegen/pulsar.ts
|
|
2842
|
-
import { z as
|
|
2843
|
-
var PulsarPropertyType =
|
|
2933
|
+
import { z as z118 } from "zod";
|
|
2934
|
+
var PulsarPropertyType = z118.enum([
|
|
2844
2935
|
"string",
|
|
2845
2936
|
"number",
|
|
2846
2937
|
"boolean",
|
|
@@ -2853,108 +2944,108 @@ var PulsarPropertyType = z112.enum([
|
|
|
2853
2944
|
"tokenProperties",
|
|
2854
2945
|
"tokenType"
|
|
2855
2946
|
]);
|
|
2856
|
-
var PulsarBaseProperty =
|
|
2857
|
-
label:
|
|
2858
|
-
key:
|
|
2859
|
-
description:
|
|
2947
|
+
var PulsarBaseProperty = z118.object({
|
|
2948
|
+
label: z118.string(),
|
|
2949
|
+
key: z118.string(),
|
|
2950
|
+
description: z118.string().nullish(),
|
|
2860
2951
|
type: PulsarPropertyType,
|
|
2861
|
-
values:
|
|
2862
|
-
default:
|
|
2952
|
+
values: z118.array(z118.string()).nullish(),
|
|
2953
|
+
default: z118.union([z118.string(), z118.boolean(), z118.number()]).nullish(),
|
|
2863
2954
|
// PulsarPropertyValueType //is optional?
|
|
2864
|
-
inputType:
|
|
2955
|
+
inputType: z118.enum(["code", "plain"]).optional(),
|
|
2865
2956
|
//is optional?
|
|
2866
|
-
isMultiline:
|
|
2957
|
+
isMultiline: z118.boolean().nullish()
|
|
2867
2958
|
});
|
|
2868
2959
|
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2869
|
-
category:
|
|
2960
|
+
category: z118.string()
|
|
2870
2961
|
});
|
|
2871
|
-
var PulsarContributionVariant =
|
|
2872
|
-
key:
|
|
2873
|
-
name:
|
|
2874
|
-
isDefault:
|
|
2875
|
-
description:
|
|
2876
|
-
thumbnailURL:
|
|
2962
|
+
var PulsarContributionVariant = z118.object({
|
|
2963
|
+
key: z118.string(),
|
|
2964
|
+
name: z118.string(),
|
|
2965
|
+
isDefault: nullishToOptional(z118.boolean()),
|
|
2966
|
+
description: nullishToOptional(z118.string()),
|
|
2967
|
+
thumbnailURL: nullishToOptional(z118.string())
|
|
2877
2968
|
});
|
|
2878
|
-
var PulsarCustomBlock =
|
|
2879
|
-
title:
|
|
2880
|
-
key:
|
|
2881
|
-
category:
|
|
2882
|
-
description: nullishToOptional(
|
|
2883
|
-
iconURL:
|
|
2884
|
-
mode:
|
|
2885
|
-
properties:
|
|
2969
|
+
var PulsarCustomBlock = z118.object({
|
|
2970
|
+
title: z118.string(),
|
|
2971
|
+
key: z118.string(),
|
|
2972
|
+
category: z118.string(),
|
|
2973
|
+
description: nullishToOptional(z118.string()),
|
|
2974
|
+
iconURL: z118.string(),
|
|
2975
|
+
mode: z118.enum(["array", "block"]),
|
|
2976
|
+
properties: z118.array(PulsarBaseProperty)
|
|
2886
2977
|
});
|
|
2887
2978
|
|
|
2888
2979
|
// src/codegen/exporter.ts
|
|
2889
|
-
var ExporterType =
|
|
2890
|
-
var ExporterSource =
|
|
2891
|
-
var ExporterTag =
|
|
2892
|
-
var ExporterDetails =
|
|
2893
|
-
description:
|
|
2894
|
-
version:
|
|
2895
|
-
routingVersion: nullishToOptional(
|
|
2896
|
-
author: nullishToOptional(
|
|
2897
|
-
organization: nullishToOptional(
|
|
2898
|
-
homepage: nullishToOptional(
|
|
2899
|
-
readme: nullishToOptional(
|
|
2900
|
-
tags: nullishToOptional(
|
|
2901
|
-
packageId: nullishToOptional(
|
|
2902
|
-
iconURL: nullishToOptional(
|
|
2903
|
-
configurationProperties: nullishToOptional(
|
|
2904
|
-
customBlocks: nullishToOptional(
|
|
2905
|
-
blockVariants: nullishToOptional(
|
|
2906
|
-
usesBrands: nullishToOptional(
|
|
2907
|
-
usesThemes: nullishToOptional(
|
|
2980
|
+
var ExporterType = z119.enum(["code", "documentation"]);
|
|
2981
|
+
var ExporterSource = z119.enum(["git", "upload"]);
|
|
2982
|
+
var ExporterTag = z119.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2983
|
+
var ExporterDetails = z119.object({
|
|
2984
|
+
description: z119.string(),
|
|
2985
|
+
version: z119.string(),
|
|
2986
|
+
routingVersion: nullishToOptional(z119.string()),
|
|
2987
|
+
author: nullishToOptional(z119.string()),
|
|
2988
|
+
organization: nullishToOptional(z119.string()),
|
|
2989
|
+
homepage: nullishToOptional(z119.string()),
|
|
2990
|
+
readme: nullishToOptional(z119.string()),
|
|
2991
|
+
tags: nullishToOptional(z119.array(ExporterTag)).default([]),
|
|
2992
|
+
packageId: nullishToOptional(z119.string().max(255)),
|
|
2993
|
+
iconURL: nullishToOptional(z119.string()),
|
|
2994
|
+
configurationProperties: nullishToOptional(z119.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2995
|
+
customBlocks: nullishToOptional(z119.array(PulsarCustomBlock)).default([]),
|
|
2996
|
+
blockVariants: nullishToOptional(z119.record(z119.string(), z119.array(PulsarContributionVariant))).default({}),
|
|
2997
|
+
usesBrands: nullishToOptional(z119.boolean()).default(false),
|
|
2998
|
+
usesThemes: nullishToOptional(z119.boolean()).default(false),
|
|
2908
2999
|
source: ExporterSource,
|
|
2909
3000
|
gitProvider: nullishToOptional(GitProvider),
|
|
2910
|
-
gitUrl: nullishToOptional(
|
|
2911
|
-
gitBranch: nullishToOptional(
|
|
2912
|
-
gitDirectory: nullishToOptional(
|
|
3001
|
+
gitUrl: nullishToOptional(z119.string()),
|
|
3002
|
+
gitBranch: nullishToOptional(z119.string()),
|
|
3003
|
+
gitDirectory: nullishToOptional(z119.string())
|
|
2913
3004
|
});
|
|
2914
|
-
var Exporter =
|
|
2915
|
-
id:
|
|
2916
|
-
createdAt:
|
|
2917
|
-
name:
|
|
2918
|
-
isPrivate:
|
|
3005
|
+
var Exporter = z119.object({
|
|
3006
|
+
id: z119.string(),
|
|
3007
|
+
createdAt: z119.coerce.date(),
|
|
3008
|
+
name: z119.string(),
|
|
3009
|
+
isPrivate: z119.boolean(),
|
|
2919
3010
|
details: ExporterDetails,
|
|
2920
3011
|
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
2921
|
-
storagePath: nullishToOptional(
|
|
3012
|
+
storagePath: nullishToOptional(z119.string()).default("")
|
|
2922
3013
|
});
|
|
2923
3014
|
|
|
2924
3015
|
// src/custom-domains/custom-domains.ts
|
|
2925
|
-
import { z as
|
|
2926
|
-
var CustomDomain =
|
|
2927
|
-
id:
|
|
2928
|
-
designSystemId:
|
|
2929
|
-
state:
|
|
2930
|
-
supernovaDomain:
|
|
2931
|
-
customerDomain:
|
|
2932
|
-
error:
|
|
2933
|
-
errorCode:
|
|
3016
|
+
import { z as z120 } from "zod";
|
|
3017
|
+
var CustomDomain = z120.object({
|
|
3018
|
+
id: z120.string(),
|
|
3019
|
+
designSystemId: z120.string(),
|
|
3020
|
+
state: z120.string(),
|
|
3021
|
+
supernovaDomain: z120.string(),
|
|
3022
|
+
customerDomain: z120.string().nullish(),
|
|
3023
|
+
error: z120.string().nullish(),
|
|
3024
|
+
errorCode: z120.string().nullish()
|
|
2934
3025
|
});
|
|
2935
3026
|
|
|
2936
3027
|
// src/docs-server/session.ts
|
|
2937
|
-
import { z as
|
|
3028
|
+
import { z as z125 } from "zod";
|
|
2938
3029
|
|
|
2939
3030
|
// src/users/linked-integrations.ts
|
|
2940
|
-
import { z as
|
|
2941
|
-
var IntegrationAuthType =
|
|
2942
|
-
var ExternalServiceType =
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
3031
|
+
import { z as z121 } from "zod";
|
|
3032
|
+
var IntegrationAuthType = z121.union([z121.literal("OAuth2"), z121.literal("PAT")]);
|
|
3033
|
+
var ExternalServiceType = z121.union([
|
|
3034
|
+
z121.literal("figma"),
|
|
3035
|
+
z121.literal("github"),
|
|
3036
|
+
z121.literal("azure"),
|
|
3037
|
+
z121.literal("gitlab"),
|
|
3038
|
+
z121.literal("bitbucket")
|
|
2948
3039
|
]);
|
|
2949
|
-
var IntegrationUserInfo =
|
|
2950
|
-
id:
|
|
2951
|
-
handle:
|
|
2952
|
-
avatarUrl:
|
|
2953
|
-
email:
|
|
3040
|
+
var IntegrationUserInfo = z121.object({
|
|
3041
|
+
id: z121.string(),
|
|
3042
|
+
handle: z121.string().optional(),
|
|
3043
|
+
avatarUrl: z121.string().optional(),
|
|
3044
|
+
email: z121.string().optional(),
|
|
2954
3045
|
authType: IntegrationAuthType.optional(),
|
|
2955
|
-
customUrl:
|
|
3046
|
+
customUrl: z121.string().optional()
|
|
2956
3047
|
});
|
|
2957
|
-
var UserLinkedIntegrations =
|
|
3048
|
+
var UserLinkedIntegrations = z121.object({
|
|
2958
3049
|
figma: IntegrationUserInfo.optional(),
|
|
2959
3050
|
github: IntegrationUserInfo.array().optional(),
|
|
2960
3051
|
azure: IntegrationUserInfo.array().optional(),
|
|
@@ -2963,86 +3054,86 @@ var UserLinkedIntegrations = z115.object({
|
|
|
2963
3054
|
});
|
|
2964
3055
|
|
|
2965
3056
|
// src/users/user-identity.ts
|
|
2966
|
-
import { z as
|
|
2967
|
-
var UserIdentity =
|
|
2968
|
-
id:
|
|
2969
|
-
userId:
|
|
3057
|
+
import { z as z122 } from "zod";
|
|
3058
|
+
var UserIdentity = z122.object({
|
|
3059
|
+
id: z122.string(),
|
|
3060
|
+
userId: z122.string()
|
|
2970
3061
|
});
|
|
2971
3062
|
|
|
2972
3063
|
// src/users/user-profile.ts
|
|
2973
|
-
import { z as
|
|
2974
|
-
var UserOnboardingDepartment =
|
|
2975
|
-
var UserOnboardingJobLevel =
|
|
2976
|
-
var UserOnboarding =
|
|
2977
|
-
companyName:
|
|
2978
|
-
numberOfPeopleInOrg:
|
|
2979
|
-
numberOfPeopleInDesignTeam:
|
|
3064
|
+
import { z as z123 } from "zod";
|
|
3065
|
+
var UserOnboardingDepartment = z123.enum(["Design", "Engineering", "Brand", "Other"]);
|
|
3066
|
+
var UserOnboardingJobLevel = z123.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3067
|
+
var UserOnboarding = z123.object({
|
|
3068
|
+
companyName: z123.string().optional(),
|
|
3069
|
+
numberOfPeopleInOrg: z123.string().optional(),
|
|
3070
|
+
numberOfPeopleInDesignTeam: z123.string().optional(),
|
|
2980
3071
|
department: UserOnboardingDepartment.optional(),
|
|
2981
|
-
jobTitle:
|
|
2982
|
-
phase:
|
|
3072
|
+
jobTitle: z123.string().optional(),
|
|
3073
|
+
phase: z123.string().optional(),
|
|
2983
3074
|
jobLevel: UserOnboardingJobLevel.optional()
|
|
2984
3075
|
});
|
|
2985
|
-
var UserProfile =
|
|
2986
|
-
name:
|
|
2987
|
-
avatar:
|
|
2988
|
-
nickname:
|
|
3076
|
+
var UserProfile = z123.object({
|
|
3077
|
+
name: z123.string(),
|
|
3078
|
+
avatar: z123.string().optional(),
|
|
3079
|
+
nickname: z123.string().optional(),
|
|
2989
3080
|
onboarding: UserOnboarding.optional()
|
|
2990
3081
|
});
|
|
2991
3082
|
|
|
2992
3083
|
// src/users/user.ts
|
|
2993
|
-
import { z as
|
|
2994
|
-
var User =
|
|
2995
|
-
id:
|
|
2996
|
-
email:
|
|
2997
|
-
emailVerified:
|
|
2998
|
-
createdAt:
|
|
2999
|
-
trialExpiresAt:
|
|
3084
|
+
import { z as z124 } from "zod";
|
|
3085
|
+
var User = z124.object({
|
|
3086
|
+
id: z124.string(),
|
|
3087
|
+
email: z124.string(),
|
|
3088
|
+
emailVerified: z124.boolean(),
|
|
3089
|
+
createdAt: z124.coerce.date(),
|
|
3090
|
+
trialExpiresAt: z124.coerce.date().optional(),
|
|
3000
3091
|
profile: UserProfile,
|
|
3001
3092
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3002
|
-
loggedOutAt:
|
|
3003
|
-
isProtected:
|
|
3093
|
+
loggedOutAt: z124.coerce.date().optional(),
|
|
3094
|
+
isProtected: z124.boolean()
|
|
3004
3095
|
});
|
|
3005
3096
|
|
|
3006
3097
|
// src/docs-server/session.ts
|
|
3007
|
-
var NpmProxyToken =
|
|
3008
|
-
access:
|
|
3009
|
-
expiresAt:
|
|
3098
|
+
var NpmProxyToken = z125.object({
|
|
3099
|
+
access: z125.string(),
|
|
3100
|
+
expiresAt: z125.number()
|
|
3010
3101
|
});
|
|
3011
|
-
var SessionData =
|
|
3012
|
-
returnToUrl:
|
|
3102
|
+
var SessionData = z125.object({
|
|
3103
|
+
returnToUrl: z125.string().optional(),
|
|
3013
3104
|
npmProxyToken: NpmProxyToken.optional()
|
|
3014
3105
|
});
|
|
3015
|
-
var Session =
|
|
3016
|
-
id:
|
|
3017
|
-
expiresAt:
|
|
3018
|
-
userId:
|
|
3106
|
+
var Session = z125.object({
|
|
3107
|
+
id: z125.string(),
|
|
3108
|
+
expiresAt: z125.coerce.date(),
|
|
3109
|
+
userId: z125.string().nullable(),
|
|
3019
3110
|
data: SessionData
|
|
3020
3111
|
});
|
|
3021
|
-
var AuthTokens =
|
|
3022
|
-
access:
|
|
3023
|
-
refresh:
|
|
3112
|
+
var AuthTokens = z125.object({
|
|
3113
|
+
access: z125.string(),
|
|
3114
|
+
refresh: z125.string()
|
|
3024
3115
|
});
|
|
3025
|
-
var UserSession =
|
|
3116
|
+
var UserSession = z125.object({
|
|
3026
3117
|
session: Session,
|
|
3027
3118
|
user: User.nullable()
|
|
3028
3119
|
});
|
|
3029
3120
|
|
|
3030
3121
|
// src/feature-flags/feature-flags.ts
|
|
3031
|
-
import { z as
|
|
3032
|
-
var FlaggedFeature =
|
|
3033
|
-
var FeatureFlagMap =
|
|
3034
|
-
var FeatureFlag =
|
|
3035
|
-
id:
|
|
3122
|
+
import { z as z126 } from "zod";
|
|
3123
|
+
var FlaggedFeature = z126.enum(["FigmaImporterV2"]);
|
|
3124
|
+
var FeatureFlagMap = z126.record(FlaggedFeature, z126.boolean());
|
|
3125
|
+
var FeatureFlag = z126.object({
|
|
3126
|
+
id: z126.string(),
|
|
3036
3127
|
feature: FlaggedFeature,
|
|
3037
|
-
createdAt:
|
|
3038
|
-
enabled:
|
|
3128
|
+
createdAt: z126.coerce.date(),
|
|
3129
|
+
enabled: z126.boolean()
|
|
3039
3130
|
});
|
|
3040
3131
|
|
|
3041
3132
|
// src/integrations/external-oauth-request.ts
|
|
3042
|
-
import { z as
|
|
3133
|
+
import { z as z128 } from "zod";
|
|
3043
3134
|
|
|
3044
3135
|
// src/integrations/oauth-providers.ts
|
|
3045
|
-
import { z as
|
|
3136
|
+
import { z as z127 } from "zod";
|
|
3046
3137
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
3047
3138
|
OAuthProviderNames2["Figma"] = "figma";
|
|
3048
3139
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -3051,115 +3142,74 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
3051
3142
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
3052
3143
|
return OAuthProviderNames2;
|
|
3053
3144
|
})(OAuthProviderNames || {});
|
|
3054
|
-
var OAuthProviderSchema =
|
|
3145
|
+
var OAuthProviderSchema = z127.nativeEnum(OAuthProviderNames);
|
|
3055
3146
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
3056
3147
|
|
|
3057
3148
|
// src/integrations/external-oauth-request.ts
|
|
3058
|
-
var ExternalOAuthRequest =
|
|
3059
|
-
id:
|
|
3149
|
+
var ExternalOAuthRequest = z128.object({
|
|
3150
|
+
id: z128.string(),
|
|
3060
3151
|
provider: OAuthProviderSchema,
|
|
3061
|
-
userId:
|
|
3062
|
-
state:
|
|
3063
|
-
createdAt:
|
|
3152
|
+
userId: z128.string(),
|
|
3153
|
+
state: z128.string(),
|
|
3154
|
+
createdAt: z128.coerce.date()
|
|
3064
3155
|
});
|
|
3065
3156
|
|
|
3066
3157
|
// src/integrations/oauth-token.ts
|
|
3067
|
-
import { z as
|
|
3068
|
-
var IntegrationTokenSchema =
|
|
3069
|
-
id:
|
|
3158
|
+
import { z as z129 } from "zod";
|
|
3159
|
+
var IntegrationTokenSchema = z129.object({
|
|
3160
|
+
id: z129.string(),
|
|
3070
3161
|
provider: OAuthProviderSchema,
|
|
3071
|
-
scope:
|
|
3072
|
-
userId:
|
|
3073
|
-
accessToken:
|
|
3074
|
-
refreshToken:
|
|
3075
|
-
expiresAt:
|
|
3076
|
-
externalUserId:
|
|
3077
|
-
});
|
|
3078
|
-
|
|
3079
|
-
// src/multiplayer/design-system-version-room.ts
|
|
3080
|
-
import { z as z124 } from "zod";
|
|
3081
|
-
var DesignSystemVersionRoom = Entity.extend({
|
|
3082
|
-
designSystemVersionId: z124.string(),
|
|
3083
|
-
liveblocksId: z124.string()
|
|
3084
|
-
});
|
|
3085
|
-
var DesignSystemVersionRoomInitialState = z124.object({
|
|
3086
|
-
pages: z124.array(DocumentationPageV2),
|
|
3087
|
-
groups: z124.array(ElementGroup)
|
|
3088
|
-
});
|
|
3089
|
-
var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
|
|
3090
|
-
deletedPageIds: z124.array(z124.string()),
|
|
3091
|
-
deletedGroupIds: z124.array(z124.string())
|
|
3092
|
-
});
|
|
3093
|
-
|
|
3094
|
-
// src/multiplayer/documentation-page-room.ts
|
|
3095
|
-
import { z as z125 } from "zod";
|
|
3096
|
-
var DocumentationPageRoom = Entity.extend({
|
|
3097
|
-
designSystemVersionId: z125.string(),
|
|
3098
|
-
documentationPageId: z125.string(),
|
|
3099
|
-
liveblocksId: z125.string()
|
|
3100
|
-
});
|
|
3101
|
-
var DocumentationPageRoomRoomUpdate = z125.object({
|
|
3102
|
-
page: DocumentationPageV2,
|
|
3103
|
-
pageParent: ElementGroup
|
|
3104
|
-
});
|
|
3105
|
-
var DocumentationPageRoomInitialState = DocumentationPageRoomRoomUpdate.extend({
|
|
3106
|
-
pageBlocks: z125.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3107
|
-
blockDefinitions: z125.array(PageBlockDefinition)
|
|
3162
|
+
scope: z129.string(),
|
|
3163
|
+
userId: z129.string(),
|
|
3164
|
+
accessToken: z129.string(),
|
|
3165
|
+
refreshToken: z129.string(),
|
|
3166
|
+
expiresAt: z129.coerce.date(),
|
|
3167
|
+
externalUserId: z129.string().nullish()
|
|
3108
3168
|
});
|
|
3109
3169
|
|
|
3110
|
-
// src/multiplayer/room-type.ts
|
|
3111
|
-
import { z as z126 } from "zod";
|
|
3112
|
-
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
3113
|
-
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
3114
|
-
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
3115
|
-
return RoomTypeEnum2;
|
|
3116
|
-
})(RoomTypeEnum || {});
|
|
3117
|
-
var RoomTypeSchema = z126.nativeEnum(RoomTypeEnum);
|
|
3118
|
-
var RoomType = RoomTypeSchema.enum;
|
|
3119
|
-
|
|
3120
3170
|
// src/npm/npm-package.ts
|
|
3121
|
-
import { z as
|
|
3122
|
-
var AnyRecord =
|
|
3171
|
+
import { z as z130 } from "zod";
|
|
3172
|
+
var AnyRecord = z130.record(z130.any());
|
|
3123
3173
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
3124
|
-
|
|
3125
|
-
tarball:
|
|
3174
|
+
z130.object({
|
|
3175
|
+
tarball: z130.string()
|
|
3126
3176
|
})
|
|
3127
3177
|
);
|
|
3128
3178
|
var NpmPackageVersion = AnyRecord.and(
|
|
3129
|
-
|
|
3179
|
+
z130.object({
|
|
3130
3180
|
dist: NpmPackageVersionDist
|
|
3131
3181
|
})
|
|
3132
3182
|
);
|
|
3133
3183
|
var NpmPackage = AnyRecord.and(
|
|
3134
|
-
|
|
3135
|
-
_id:
|
|
3136
|
-
name:
|
|
3184
|
+
z130.object({
|
|
3185
|
+
_id: z130.string(),
|
|
3186
|
+
name: z130.string(),
|
|
3137
3187
|
// e.g. "latest": "1.2.3"
|
|
3138
|
-
"dist-tags":
|
|
3188
|
+
"dist-tags": z130.record(z130.string(), z130.string()),
|
|
3139
3189
|
// "1.2.3": {...}
|
|
3140
|
-
versions:
|
|
3190
|
+
versions: z130.record(NpmPackageVersion)
|
|
3141
3191
|
})
|
|
3142
3192
|
);
|
|
3143
3193
|
|
|
3144
3194
|
// src/npm/npm-proxy-token-payload.ts
|
|
3145
|
-
import { z as
|
|
3146
|
-
var NpmProxyTokenPayload =
|
|
3147
|
-
npmProxyRegistryConfigId:
|
|
3195
|
+
import { z as z131 } from "zod";
|
|
3196
|
+
var NpmProxyTokenPayload = z131.object({
|
|
3197
|
+
npmProxyRegistryConfigId: z131.string()
|
|
3148
3198
|
});
|
|
3149
3199
|
|
|
3150
3200
|
// src/tokens/personal-access-token.ts
|
|
3151
|
-
import { z as
|
|
3152
|
-
var PersonalAccessToken =
|
|
3153
|
-
id:
|
|
3154
|
-
userId:
|
|
3155
|
-
name:
|
|
3156
|
-
token:
|
|
3157
|
-
createdAt:
|
|
3158
|
-
hidden:
|
|
3159
|
-
workspaceId:
|
|
3201
|
+
import { z as z132 } from "zod";
|
|
3202
|
+
var PersonalAccessToken = z132.object({
|
|
3203
|
+
id: z132.string(),
|
|
3204
|
+
userId: z132.string(),
|
|
3205
|
+
name: z132.string(),
|
|
3206
|
+
token: z132.string(),
|
|
3207
|
+
createdAt: z132.coerce.date(),
|
|
3208
|
+
hidden: z132.boolean(),
|
|
3209
|
+
workspaceId: z132.string().optional(),
|
|
3160
3210
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
3161
|
-
expireAt:
|
|
3162
|
-
scope:
|
|
3211
|
+
expireAt: z132.coerce.date().optional(),
|
|
3212
|
+
scope: z132.string().optional()
|
|
3163
3213
|
});
|
|
3164
3214
|
|
|
3165
3215
|
// src/utils/errors.ts
|
|
@@ -3291,26 +3341,26 @@ async function sleep(ms) {
|
|
|
3291
3341
|
}
|
|
3292
3342
|
|
|
3293
3343
|
// src/utils/content-loader-instruction.ts
|
|
3294
|
-
import { z as
|
|
3295
|
-
var ContentLoadInstruction =
|
|
3296
|
-
from:
|
|
3297
|
-
to:
|
|
3298
|
-
authorizationHeaderKvsId:
|
|
3299
|
-
timeout:
|
|
3300
|
-
});
|
|
3301
|
-
var ContentLoaderPayload =
|
|
3302
|
-
type:
|
|
3344
|
+
import { z as z133 } from "zod";
|
|
3345
|
+
var ContentLoadInstruction = z133.object({
|
|
3346
|
+
from: z133.string(),
|
|
3347
|
+
to: z133.string(),
|
|
3348
|
+
authorizationHeaderKvsId: z133.string().optional(),
|
|
3349
|
+
timeout: z133.number().optional()
|
|
3350
|
+
});
|
|
3351
|
+
var ContentLoaderPayload = z133.object({
|
|
3352
|
+
type: z133.literal("Single"),
|
|
3303
3353
|
instruction: ContentLoadInstruction
|
|
3304
3354
|
}).or(
|
|
3305
|
-
|
|
3306
|
-
type:
|
|
3307
|
-
loadingChunkSize:
|
|
3308
|
-
instructions:
|
|
3355
|
+
z133.object({
|
|
3356
|
+
type: z133.literal("Multiple"),
|
|
3357
|
+
loadingChunkSize: z133.number().optional(),
|
|
3358
|
+
instructions: z133.array(ContentLoadInstruction)
|
|
3309
3359
|
})
|
|
3310
3360
|
).or(
|
|
3311
|
-
|
|
3312
|
-
type:
|
|
3313
|
-
location:
|
|
3361
|
+
z133.object({
|
|
3362
|
+
type: z133.literal("S3"),
|
|
3363
|
+
location: z133.string()
|
|
3314
3364
|
})
|
|
3315
3365
|
);
|
|
3316
3366
|
|
|
@@ -3948,9 +3998,11 @@ function isSlugReserved(slug) {
|
|
|
3948
3998
|
export {
|
|
3949
3999
|
Address,
|
|
3950
4000
|
Asset,
|
|
4001
|
+
AssetDynamoRecord,
|
|
3951
4002
|
AssetFontProperties,
|
|
3952
4003
|
AssetImportModelInput,
|
|
3953
4004
|
AssetOrigin,
|
|
4005
|
+
AssetProcessStatus,
|
|
3954
4006
|
AssetProperties,
|
|
3955
4007
|
AssetReference,
|
|
3956
4008
|
AssetScope,
|
|
@@ -4049,19 +4101,21 @@ export {
|
|
|
4049
4101
|
DocumentationItemHeaderImageScaleTypeSchema,
|
|
4050
4102
|
DocumentationItemHeaderV1,
|
|
4051
4103
|
DocumentationItemHeaderV2,
|
|
4104
|
+
DocumentationLinkPreview,
|
|
4052
4105
|
DocumentationPage,
|
|
4053
|
-
|
|
4054
|
-
|
|
4106
|
+
DocumentationPageContent,
|
|
4107
|
+
DocumentationPageContentBackup,
|
|
4108
|
+
DocumentationPageContentData,
|
|
4109
|
+
DocumentationPageContentItem,
|
|
4055
4110
|
DocumentationPageDataV1,
|
|
4056
4111
|
DocumentationPageDataV2,
|
|
4057
4112
|
DocumentationPageElementDataV1,
|
|
4058
4113
|
DocumentationPageElementDataV2,
|
|
4059
|
-
DocumentationPageFrameAsset,
|
|
4060
4114
|
DocumentationPageGroup,
|
|
4061
|
-
DocumentationPageImageAsset,
|
|
4062
4115
|
DocumentationPageRoom,
|
|
4063
|
-
|
|
4116
|
+
DocumentationPageRoomInitialStateUpdate,
|
|
4064
4117
|
DocumentationPageRoomRoomUpdate,
|
|
4118
|
+
DocumentationPageRoomState,
|
|
4065
4119
|
DocumentationPageV1,
|
|
4066
4120
|
DocumentationPageV2,
|
|
4067
4121
|
DurationTokenData,
|