@supernova-studio/model 1.5.2 → 1.6.1
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 +4207 -2190
- package/dist/index.d.ts +4207 -2190
- package/dist/index.js +134 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +948 -837
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -287,7 +287,7 @@ var CustomDomain = z14.object({
|
|
|
287
287
|
});
|
|
288
288
|
|
|
289
289
|
// src/data-dumps/code-integration-dump.ts
|
|
290
|
-
import { z as
|
|
290
|
+
import { z as z159 } from "zod";
|
|
291
291
|
|
|
292
292
|
// src/export/exporter.ts
|
|
293
293
|
import { z as z18 } from "zod";
|
|
@@ -462,10 +462,10 @@ var Exporter = z18.object({
|
|
|
462
462
|
});
|
|
463
463
|
|
|
464
464
|
// src/export/pipeline.ts
|
|
465
|
-
import { z as
|
|
465
|
+
import { z as z158 } from "zod";
|
|
466
466
|
|
|
467
467
|
// src/export/export-destinations.ts
|
|
468
|
-
import { z as
|
|
468
|
+
import { z as z157 } from "zod";
|
|
469
469
|
|
|
470
470
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
471
471
|
import { z as z19 } from "zod";
|
|
@@ -509,7 +509,6 @@ var AssetProperties = z22.union([
|
|
|
509
509
|
var AssetOrigin = z22.object({
|
|
510
510
|
originKey: z22.string()
|
|
511
511
|
});
|
|
512
|
-
var AssetProcessStatus = z22.enum(["Pending", "Uploaded", "Processed"]);
|
|
513
512
|
var Asset = z22.object({
|
|
514
513
|
id: z22.string(),
|
|
515
514
|
designSystemId: z22.string().nullish(),
|
|
@@ -518,10 +517,8 @@ var Asset = z22.object({
|
|
|
518
517
|
filePath: z22.string(),
|
|
519
518
|
scope: AssetScope,
|
|
520
519
|
properties: AssetProperties.nullish(),
|
|
521
|
-
state: AssetProcessStatus.optional(),
|
|
522
|
-
origin: AssetOrigin.optional(),
|
|
523
520
|
originKey: z22.string().optional(),
|
|
524
|
-
|
|
521
|
+
createdAt: z22.coerce.date().optional()
|
|
525
522
|
});
|
|
526
523
|
var ResolvedAsset = Asset.extend({
|
|
527
524
|
url: z22.string()
|
|
@@ -532,25 +529,41 @@ function isImportedAsset(asset) {
|
|
|
532
529
|
|
|
533
530
|
// src/dsm/code-components/code-component.ts
|
|
534
531
|
import { z as z23 } from "zod";
|
|
535
|
-
var
|
|
536
|
-
"
|
|
537
|
-
"
|
|
538
|
-
"
|
|
539
|
-
"
|
|
540
|
-
"
|
|
541
|
-
"
|
|
542
|
-
"
|
|
532
|
+
var CodeComponentResolvedTypeKind = z23.enum([
|
|
533
|
+
"string",
|
|
534
|
+
"number",
|
|
535
|
+
"numberLiteral",
|
|
536
|
+
"boolean",
|
|
537
|
+
"booleanLiteral",
|
|
538
|
+
"object",
|
|
539
|
+
"function",
|
|
540
|
+
"stringLiteral",
|
|
541
|
+
"union",
|
|
542
|
+
"slot",
|
|
543
|
+
"null",
|
|
544
|
+
"undefined",
|
|
545
|
+
"any"
|
|
543
546
|
]);
|
|
544
|
-
var
|
|
545
|
-
|
|
546
|
-
|
|
547
|
+
var CodeComponentResolvedType = z23.lazy(
|
|
548
|
+
() => z23.object({
|
|
549
|
+
kind: CodeComponentResolvedTypeKind,
|
|
550
|
+
raw: z23.string().optional(),
|
|
551
|
+
types: z23.array(CodeComponentResolvedType).optional(),
|
|
552
|
+
isArray: z23.boolean().optional()
|
|
553
|
+
})
|
|
554
|
+
);
|
|
555
|
+
var CodeComponentParentType = z23.object({
|
|
556
|
+
fileName: z23.string(),
|
|
557
|
+
name: z23.string()
|
|
547
558
|
});
|
|
548
559
|
var CodeComponentProperty = z23.object({
|
|
549
|
-
control: CodeComponentPropertyControl,
|
|
550
560
|
defaultValue: z23.string().optional(),
|
|
551
561
|
name: z23.string(),
|
|
552
562
|
required: z23.boolean(),
|
|
553
|
-
type:
|
|
563
|
+
type: CodeComponentResolvedType,
|
|
564
|
+
declarations: z23.array(CodeComponentParentType).optional(),
|
|
565
|
+
tags: z23.record(z23.string(), z23.string()).optional(),
|
|
566
|
+
description: z23.string()
|
|
554
567
|
});
|
|
555
568
|
var CodeComponent = z23.object({
|
|
556
569
|
id: z23.string(),
|
|
@@ -559,7 +572,15 @@ var CodeComponent = z23.object({
|
|
|
559
572
|
createdAt: z23.coerce.date(),
|
|
560
573
|
updatedAt: z23.coerce.date(),
|
|
561
574
|
exportName: z23.string(),
|
|
562
|
-
|
|
575
|
+
componentPath: z23.string(),
|
|
576
|
+
description: z23.string(),
|
|
577
|
+
properties: z23.record(z23.string(), CodeComponentProperty),
|
|
578
|
+
tags: z23.record(z23.string(), z23.string()).optional()
|
|
579
|
+
});
|
|
580
|
+
var CodeComponentUpsertResponse = z23.object({
|
|
581
|
+
created: z23.number().nonnegative(),
|
|
582
|
+
updated: z23.number().nonnegative(),
|
|
583
|
+
deleted: z23.number().nonnegative()
|
|
563
584
|
});
|
|
564
585
|
|
|
565
586
|
// src/dsm/components/asset-rendering.ts
|
|
@@ -2094,6 +2115,27 @@ var PageBlockSelectedFigmaComponent = z43.object({
|
|
|
2094
2115
|
selectedComponentProperties: z43.string().array(),
|
|
2095
2116
|
selectedComponentVariants: z43.record(z43.string().array()).optional()
|
|
2096
2117
|
});
|
|
2118
|
+
var PageBlockStorybookItem = z43.object({
|
|
2119
|
+
entityId: z43.string().optional(),
|
|
2120
|
+
embed: z43.object({
|
|
2121
|
+
inputUrl: z43.string(),
|
|
2122
|
+
embedUrl: z43.string()
|
|
2123
|
+
}).optional(),
|
|
2124
|
+
entityMeta: z43.object({
|
|
2125
|
+
caption: z43.string().optional(),
|
|
2126
|
+
height: z43.number().optional(),
|
|
2127
|
+
hiddenProps: z43.array(z43.string()).optional(),
|
|
2128
|
+
propValues: z43.record(z43.unknown()).optional()
|
|
2129
|
+
}).optional()
|
|
2130
|
+
});
|
|
2131
|
+
var PageBlockStorybookBlockConfig = z43.object({
|
|
2132
|
+
value: PageBlockStorybookItem.array(),
|
|
2133
|
+
showCode: z43.boolean().optional(),
|
|
2134
|
+
showFooter: z43.boolean().optional(),
|
|
2135
|
+
showProperties: z43.boolean().optional(),
|
|
2136
|
+
showDescription: z43.boolean().optional(),
|
|
2137
|
+
showDefaults: z43.boolean().optional()
|
|
2138
|
+
});
|
|
2097
2139
|
var PageBlockTextSpanAttributeType = z43.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
|
|
2098
2140
|
var PageBlockTextSpanAttribute = z43.object({
|
|
2099
2141
|
type: PageBlockTextSpanAttributeType,
|
|
@@ -2184,7 +2226,9 @@ var PageBlockBaseV1 = z43.object({
|
|
|
2184
2226
|
selectedFigmaComponent: nullishToOptional(PageBlockSelectedFigmaComponent),
|
|
2185
2227
|
selectedFigmaComponents: nullishToOptional(PageBlockSelectedFigmaComponent.array()),
|
|
2186
2228
|
// Arbitrary
|
|
2187
|
-
userMetadata: nullishToOptional(z43.string())
|
|
2229
|
+
userMetadata: nullishToOptional(z43.string()),
|
|
2230
|
+
// Storybook
|
|
2231
|
+
storybookBlockConfig: nullishToOptional(PageBlockStorybookBlockConfig)
|
|
2188
2232
|
});
|
|
2189
2233
|
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
2190
2234
|
children: z43.lazy(
|
|
@@ -2675,14 +2719,36 @@ var PageBlockItemRichTextValue = z47.object({
|
|
|
2675
2719
|
var PageBlockItemSingleSelectValue = z47.object({
|
|
2676
2720
|
value: z47.string()
|
|
2677
2721
|
});
|
|
2678
|
-
var
|
|
2722
|
+
var PageBlockItemStorybookValueOld = z47.object({
|
|
2723
|
+
value: z47.string().optional(),
|
|
2679
2724
|
caption: z47.string().optional(),
|
|
2680
2725
|
height: z47.number().optional(),
|
|
2681
2726
|
embedUrl: z47.string().optional(),
|
|
2682
|
-
value: z47.string().optional(),
|
|
2683
2727
|
storyId: z47.string().optional(),
|
|
2684
2728
|
sourceId: z47.string().optional()
|
|
2685
2729
|
});
|
|
2730
|
+
var PageBlockItemStorybookValue = z47.object({
|
|
2731
|
+
value: z47.array(
|
|
2732
|
+
z47.object({
|
|
2733
|
+
entityId: z47.string().optional(),
|
|
2734
|
+
embed: z47.object({
|
|
2735
|
+
inputUrl: z47.string(),
|
|
2736
|
+
embedUrl: z47.string()
|
|
2737
|
+
}).optional(),
|
|
2738
|
+
entityMeta: z47.object({
|
|
2739
|
+
caption: z47.string().optional(),
|
|
2740
|
+
height: z47.number().optional(),
|
|
2741
|
+
hiddenProps: z47.array(z47.string()).optional(),
|
|
2742
|
+
propValues: z47.record(z47.unknown()).optional()
|
|
2743
|
+
}).optional()
|
|
2744
|
+
})
|
|
2745
|
+
).optional(),
|
|
2746
|
+
showCode: z47.boolean().optional(),
|
|
2747
|
+
showFooter: z47.boolean().optional(),
|
|
2748
|
+
showProperties: z47.boolean().optional(),
|
|
2749
|
+
showDescription: z47.boolean().optional(),
|
|
2750
|
+
showDefaults: z47.boolean().optional()
|
|
2751
|
+
});
|
|
2686
2752
|
var PageBlockItemTextValue = z47.object({
|
|
2687
2753
|
value: z47.string()
|
|
2688
2754
|
});
|
|
@@ -2769,6 +2835,26 @@ var PageBlockItemTableValue = z47.object({
|
|
|
2769
2835
|
showBorder: z47.boolean().optional(),
|
|
2770
2836
|
value: z47.array(PageBlockItemTableRow).default([])
|
|
2771
2837
|
});
|
|
2838
|
+
function storybookValueFromOldValue(oldValue) {
|
|
2839
|
+
return {
|
|
2840
|
+
value: [
|
|
2841
|
+
{
|
|
2842
|
+
// URLs
|
|
2843
|
+
...oldValue.embedUrl && oldValue.value && {
|
|
2844
|
+
embed: {
|
|
2845
|
+
embedUrl: oldValue.embedUrl,
|
|
2846
|
+
inputUrl: oldValue.value
|
|
2847
|
+
}
|
|
2848
|
+
},
|
|
2849
|
+
// Meta
|
|
2850
|
+
entityMeta: {
|
|
2851
|
+
caption: oldValue.caption,
|
|
2852
|
+
height: oldValue.height
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
]
|
|
2856
|
+
};
|
|
2857
|
+
}
|
|
2772
2858
|
|
|
2773
2859
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
2774
2860
|
import { z as z51 } from "zod";
|
|
@@ -4236,86 +4322,104 @@ var DocumentationPageContent = z113.object({
|
|
|
4236
4322
|
data: DocumentationPageContentData
|
|
4237
4323
|
});
|
|
4238
4324
|
|
|
4239
|
-
// src/dsm/documentation/page.ts
|
|
4325
|
+
// src/dsm/documentation/page-dependencies.ts
|
|
4240
4326
|
import { z as z114 } from "zod";
|
|
4241
|
-
var
|
|
4242
|
-
type: z114.literal("DocumentationPage"),
|
|
4327
|
+
var DocumentationPageDependencies = z114.object({
|
|
4243
4328
|
id: z114.string(),
|
|
4244
|
-
persistentId: z114.string(),
|
|
4245
|
-
shortPersistentId: z114.string(),
|
|
4246
4329
|
designSystemVersionId: z114.string(),
|
|
4247
|
-
parentPersistentId: z114.string().nullish(),
|
|
4248
|
-
sortOrder: z114.number(),
|
|
4249
|
-
title: z114.string(),
|
|
4250
|
-
slug: z114.string(),
|
|
4251
|
-
userSlug: z114.string().nullish(),
|
|
4252
4330
|
createdAt: z114.coerce.date(),
|
|
4253
|
-
updatedAt: z114.coerce.date()
|
|
4331
|
+
updatedAt: z114.coerce.date(),
|
|
4332
|
+
documentationPageId: z114.string(),
|
|
4333
|
+
tokenPersistentIds: z114.set(z114.string()),
|
|
4334
|
+
figmaComponentPersistentIds: z114.set(z114.string()),
|
|
4335
|
+
componentPersistentIds: z114.set(z114.string()),
|
|
4336
|
+
figmaNodePersistentIds: z114.set(z114.string()),
|
|
4337
|
+
groupPersistentIds: z114.set(z114.string()),
|
|
4338
|
+
propertyPersistentIds: z114.set(z114.string()),
|
|
4339
|
+
themePersistentIds: z114.set(z114.string()),
|
|
4340
|
+
documentationPagePersistentIds: z114.set(z114.string())
|
|
4254
4341
|
});
|
|
4255
4342
|
|
|
4256
|
-
// src/dsm/documentation/
|
|
4343
|
+
// src/dsm/documentation/page.ts
|
|
4257
4344
|
import { z as z115 } from "zod";
|
|
4258
|
-
var
|
|
4345
|
+
var DocumentationPage = z115.object({
|
|
4346
|
+
type: z115.literal("DocumentationPage"),
|
|
4259
4347
|
id: z115.string(),
|
|
4260
|
-
|
|
4261
|
-
|
|
4348
|
+
persistentId: z115.string(),
|
|
4349
|
+
shortPersistentId: z115.string(),
|
|
4350
|
+
designSystemVersionId: z115.string(),
|
|
4351
|
+
parentPersistentId: z115.string().nullish(),
|
|
4352
|
+
sortOrder: z115.number(),
|
|
4353
|
+
title: z115.string(),
|
|
4354
|
+
slug: z115.string(),
|
|
4355
|
+
userSlug: z115.string().nullish(),
|
|
4262
4356
|
createdAt: z115.coerce.date(),
|
|
4263
|
-
updatedAt: z115.coerce.date()
|
|
4264
|
-
designSystemId: z115.string()
|
|
4357
|
+
updatedAt: z115.coerce.date()
|
|
4265
4358
|
});
|
|
4266
4359
|
|
|
4267
|
-
// src/dsm/documentation/
|
|
4360
|
+
// src/dsm/documentation/redirects.ts
|
|
4268
4361
|
import { z as z116 } from "zod";
|
|
4269
|
-
var
|
|
4270
|
-
|
|
4271
|
-
|
|
4362
|
+
var PageRedirect = z116.object({
|
|
4363
|
+
id: z116.string(),
|
|
4364
|
+
pagePersistentId: z116.string(),
|
|
4365
|
+
path: z116.string(),
|
|
4272
4366
|
createdAt: z116.coerce.date(),
|
|
4273
4367
|
updatedAt: z116.coerce.date(),
|
|
4274
|
-
|
|
4275
|
-
isTabbedLayoutEnabled: z116.boolean(),
|
|
4276
|
-
storybookEmbedErrorMessage: z116.string().optional(),
|
|
4277
|
-
renderCodePackageJson: z116.string().optional(),
|
|
4278
|
-
selectedBrandPersistentId: z116.string().optional(),
|
|
4279
|
-
serveDefaultVersionOnly: z116.boolean(),
|
|
4280
|
-
isPublic: z116.boolean()
|
|
4368
|
+
designSystemId: z116.string()
|
|
4281
4369
|
});
|
|
4282
4370
|
|
|
4283
|
-
// src/dsm/documentation/
|
|
4371
|
+
// src/dsm/documentation/settings.ts
|
|
4284
4372
|
import { z as z117 } from "zod";
|
|
4285
|
-
var
|
|
4286
|
-
|
|
4287
|
-
authorId: z117.string(),
|
|
4288
|
-
threadId: z117.string(),
|
|
4289
|
-
roomId: z117.string(),
|
|
4290
|
-
createdAt: z117.coerce.date(),
|
|
4291
|
-
editedAt: z117.coerce.date().optional(),
|
|
4292
|
-
deletedAt: z117.coerce.date().optional(),
|
|
4293
|
-
body: z117.string()
|
|
4294
|
-
});
|
|
4295
|
-
var DocumentationCommentThread = z117.object({
|
|
4296
|
-
id: z117.string(),
|
|
4297
|
-
roomId: z117.string(),
|
|
4298
|
-
pagePersistentId: z117.string(),
|
|
4299
|
-
brandId: z117.string(),
|
|
4373
|
+
var DocumentationSettings = z117.object({
|
|
4374
|
+
// Basic
|
|
4300
4375
|
designSystemVersionId: z117.string(),
|
|
4301
|
-
designSystemId: z117.string(),
|
|
4302
|
-
blockId: z117.string().optional(),
|
|
4303
|
-
resolved: z117.boolean(),
|
|
4304
4376
|
createdAt: z117.coerce.date(),
|
|
4305
|
-
updatedAt: z117.coerce.date()
|
|
4377
|
+
updatedAt: z117.coerce.date(),
|
|
4378
|
+
// Configuration
|
|
4379
|
+
isTabbedLayoutEnabled: z117.boolean(),
|
|
4380
|
+
storybookEmbedErrorMessage: z117.string().optional(),
|
|
4381
|
+
renderCodePackageJson: z117.string().optional(),
|
|
4382
|
+
selectedBrandPersistentId: z117.string().optional(),
|
|
4383
|
+
serveDefaultVersionOnly: z117.boolean(),
|
|
4384
|
+
isPublic: z117.boolean()
|
|
4306
4385
|
});
|
|
4307
4386
|
|
|
4308
|
-
// src/dsm/
|
|
4387
|
+
// src/dsm/documentation/thread.ts
|
|
4309
4388
|
import { z as z118 } from "zod";
|
|
4310
|
-
var
|
|
4311
|
-
var DesignElementSnapshotBase = z118.object({
|
|
4389
|
+
var DocumentationComment = z118.object({
|
|
4312
4390
|
id: z118.string(),
|
|
4313
|
-
|
|
4391
|
+
authorId: z118.string(),
|
|
4392
|
+
threadId: z118.string(),
|
|
4393
|
+
roomId: z118.string(),
|
|
4394
|
+
createdAt: z118.coerce.date(),
|
|
4395
|
+
editedAt: z118.coerce.date().optional(),
|
|
4396
|
+
deletedAt: z118.coerce.date().optional(),
|
|
4397
|
+
body: z118.string()
|
|
4398
|
+
});
|
|
4399
|
+
var DocumentationCommentThread = z118.object({
|
|
4400
|
+
id: z118.string(),
|
|
4401
|
+
roomId: z118.string(),
|
|
4402
|
+
pagePersistentId: z118.string(),
|
|
4403
|
+
brandId: z118.string(),
|
|
4314
4404
|
designSystemVersionId: z118.string(),
|
|
4405
|
+
designSystemId: z118.string(),
|
|
4406
|
+
blockId: z118.string().optional(),
|
|
4407
|
+
resolved: z118.boolean(),
|
|
4315
4408
|
createdAt: z118.coerce.date(),
|
|
4316
|
-
updatedAt: z118.coerce.date()
|
|
4409
|
+
updatedAt: z118.coerce.date()
|
|
4410
|
+
});
|
|
4411
|
+
|
|
4412
|
+
// src/dsm/element-snapshots/base.ts
|
|
4413
|
+
import { z as z119 } from "zod";
|
|
4414
|
+
var DesignElementSnapshotReason = z119.enum(["Publish", "Deletion"]);
|
|
4415
|
+
var DesignElementSnapshotBase = z119.object({
|
|
4416
|
+
id: z119.string(),
|
|
4417
|
+
persistentId: z119.string(),
|
|
4418
|
+
designSystemVersionId: z119.string(),
|
|
4419
|
+
createdAt: z119.coerce.date(),
|
|
4420
|
+
updatedAt: z119.coerce.date(),
|
|
4317
4421
|
reason: DesignElementSnapshotReason,
|
|
4318
|
-
createdByUserId:
|
|
4422
|
+
createdByUserId: z119.string()
|
|
4319
4423
|
});
|
|
4320
4424
|
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
4321
4425
|
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
@@ -4326,11 +4430,11 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
|
4326
4430
|
}
|
|
4327
4431
|
|
|
4328
4432
|
// src/dsm/element-snapshots/documentation-page-snapshot.ts
|
|
4329
|
-
import { z as
|
|
4433
|
+
import { z as z120 } from "zod";
|
|
4330
4434
|
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
4331
4435
|
page: DocumentationPageV2,
|
|
4332
|
-
pageContentHash:
|
|
4333
|
-
pageContentStorageKey:
|
|
4436
|
+
pageContentHash: z120.string(),
|
|
4437
|
+
pageContentStorageKey: z120.string()
|
|
4334
4438
|
});
|
|
4335
4439
|
function pickLatestPageSnapshots(snapshots) {
|
|
4336
4440
|
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
@@ -4345,167 +4449,167 @@ function pickLatestGroupSnapshots(snapshots) {
|
|
|
4345
4449
|
}
|
|
4346
4450
|
|
|
4347
4451
|
// src/dsm/figma-node-renderer/renderer-payload.ts
|
|
4348
|
-
import { z as
|
|
4349
|
-
var FigmaNodeRendererPayload =
|
|
4350
|
-
designSystemId:
|
|
4351
|
-
versionId:
|
|
4352
|
-
figmaNodePersistentIds:
|
|
4452
|
+
import { z as z121 } from "zod";
|
|
4453
|
+
var FigmaNodeRendererPayload = z121.object({
|
|
4454
|
+
designSystemId: z121.string(),
|
|
4455
|
+
versionId: z121.string(),
|
|
4456
|
+
figmaNodePersistentIds: z121.string().array()
|
|
4353
4457
|
});
|
|
4354
4458
|
|
|
4355
4459
|
// src/dsm/figma-node-structures/structure-data.ts
|
|
4356
|
-
import { z as
|
|
4357
|
-
var FigmaNodeStructureDataV2 =
|
|
4460
|
+
import { z as z122 } from "zod";
|
|
4461
|
+
var FigmaNodeStructureDataV2 = z122.object({
|
|
4358
4462
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
4359
|
-
assetsInFile:
|
|
4360
|
-
components:
|
|
4361
|
-
componentSets:
|
|
4362
|
-
frames:
|
|
4463
|
+
assetsInFile: z122.object({
|
|
4464
|
+
components: z122.number(),
|
|
4465
|
+
componentSets: z122.number(),
|
|
4466
|
+
frames: z122.number()
|
|
4363
4467
|
})
|
|
4364
4468
|
});
|
|
4365
4469
|
|
|
4366
4470
|
// src/dsm/figma-node-structures/structure.ts
|
|
4367
|
-
import { z as
|
|
4368
|
-
var FigmaNodeStructureStateV2 =
|
|
4369
|
-
var FigmaNodeStructureV2 =
|
|
4370
|
-
id:
|
|
4371
|
-
designSystemId:
|
|
4372
|
-
sourceId:
|
|
4373
|
-
storagePath:
|
|
4374
|
-
createdAt:
|
|
4375
|
-
updatedAt:
|
|
4471
|
+
import { z as z123 } from "zod";
|
|
4472
|
+
var FigmaNodeStructureStateV2 = z123.enum(["InProgress", "Success", "Failed"]);
|
|
4473
|
+
var FigmaNodeStructureV2 = z123.object({
|
|
4474
|
+
id: z123.string(),
|
|
4475
|
+
designSystemId: z123.string(),
|
|
4476
|
+
sourceId: z123.string(),
|
|
4477
|
+
storagePath: z123.string().optional(),
|
|
4478
|
+
createdAt: z123.coerce.date(),
|
|
4479
|
+
updatedAt: z123.coerce.date(),
|
|
4376
4480
|
importState: FigmaNodeStructureStateV2,
|
|
4377
|
-
error:
|
|
4378
|
-
chunkSize:
|
|
4481
|
+
error: z123.string().optional(),
|
|
4482
|
+
chunkSize: z123.number().optional(),
|
|
4379
4483
|
// TODO Artem: remove after migration
|
|
4380
|
-
isFromLegacyStorage:
|
|
4484
|
+
isFromLegacyStorage: z123.boolean()
|
|
4381
4485
|
});
|
|
4382
4486
|
|
|
4383
4487
|
// src/dsm/membership/design-system-membership.ts
|
|
4384
|
-
import { z as
|
|
4488
|
+
import { z as z145 } from "zod";
|
|
4385
4489
|
|
|
4386
4490
|
// src/workspace/npm-registry-settings.ts
|
|
4387
|
-
import { z as
|
|
4388
|
-
var NpmRegistryAuthType =
|
|
4389
|
-
var NpmRegistryType =
|
|
4390
|
-
var NpmRegistryBasicAuthConfig =
|
|
4391
|
-
authType:
|
|
4392
|
-
username:
|
|
4393
|
-
password:
|
|
4394
|
-
});
|
|
4395
|
-
var NpmRegistryBearerAuthConfig =
|
|
4396
|
-
authType:
|
|
4397
|
-
accessToken:
|
|
4398
|
-
});
|
|
4399
|
-
var NpmRegistryNoAuthConfig =
|
|
4400
|
-
authType:
|
|
4401
|
-
});
|
|
4402
|
-
var NpmRegistrCustomAuthConfig =
|
|
4403
|
-
authType:
|
|
4404
|
-
authHeaderName:
|
|
4405
|
-
authHeaderValue:
|
|
4406
|
-
});
|
|
4407
|
-
var NpmRegistryAuthConfig =
|
|
4491
|
+
import { z as z124 } from "zod";
|
|
4492
|
+
var NpmRegistryAuthType = z124.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4493
|
+
var NpmRegistryType = z124.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4494
|
+
var NpmRegistryBasicAuthConfig = z124.object({
|
|
4495
|
+
authType: z124.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4496
|
+
username: z124.string(),
|
|
4497
|
+
password: z124.string()
|
|
4498
|
+
});
|
|
4499
|
+
var NpmRegistryBearerAuthConfig = z124.object({
|
|
4500
|
+
authType: z124.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4501
|
+
accessToken: z124.string()
|
|
4502
|
+
});
|
|
4503
|
+
var NpmRegistryNoAuthConfig = z124.object({
|
|
4504
|
+
authType: z124.literal(NpmRegistryAuthType.Enum.None)
|
|
4505
|
+
});
|
|
4506
|
+
var NpmRegistrCustomAuthConfig = z124.object({
|
|
4507
|
+
authType: z124.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4508
|
+
authHeaderName: z124.string(),
|
|
4509
|
+
authHeaderValue: z124.string()
|
|
4510
|
+
});
|
|
4511
|
+
var NpmRegistryAuthConfig = z124.discriminatedUnion("authType", [
|
|
4408
4512
|
NpmRegistryBasicAuthConfig,
|
|
4409
4513
|
NpmRegistryBearerAuthConfig,
|
|
4410
4514
|
NpmRegistryNoAuthConfig,
|
|
4411
4515
|
NpmRegistrCustomAuthConfig
|
|
4412
4516
|
]);
|
|
4413
|
-
var NpmRegistryConfigBase =
|
|
4517
|
+
var NpmRegistryConfigBase = z124.object({
|
|
4414
4518
|
registryType: NpmRegistryType,
|
|
4415
|
-
enabledScopes:
|
|
4416
|
-
customRegistryUrl:
|
|
4417
|
-
bypassProxy:
|
|
4418
|
-
npmProxyRegistryConfigId:
|
|
4419
|
-
npmProxyVersion:
|
|
4519
|
+
enabledScopes: z124.array(z124.string()),
|
|
4520
|
+
customRegistryUrl: z124.string().optional(),
|
|
4521
|
+
bypassProxy: z124.boolean().default(false),
|
|
4522
|
+
npmProxyRegistryConfigId: z124.string().optional(),
|
|
4523
|
+
npmProxyVersion: z124.number().optional()
|
|
4420
4524
|
});
|
|
4421
4525
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4422
4526
|
|
|
4423
4527
|
// src/workspace/sso-provider.ts
|
|
4424
|
-
import { z as
|
|
4425
|
-
var SsoProvider =
|
|
4426
|
-
providerId:
|
|
4427
|
-
defaultAutoInviteValue:
|
|
4428
|
-
autoInviteDomains:
|
|
4429
|
-
skipDocsSupernovaLogin:
|
|
4430
|
-
areInvitesDisabled:
|
|
4431
|
-
isTestMode:
|
|
4432
|
-
emailDomains:
|
|
4433
|
-
metadataXml:
|
|
4528
|
+
import { z as z125 } from "zod";
|
|
4529
|
+
var SsoProvider = z125.object({
|
|
4530
|
+
providerId: z125.string(),
|
|
4531
|
+
defaultAutoInviteValue: z125.boolean(),
|
|
4532
|
+
autoInviteDomains: z125.record(z125.string(), z125.boolean()),
|
|
4533
|
+
skipDocsSupernovaLogin: z125.boolean(),
|
|
4534
|
+
areInvitesDisabled: z125.boolean(),
|
|
4535
|
+
isTestMode: z125.boolean(),
|
|
4536
|
+
emailDomains: z125.array(z125.string()),
|
|
4537
|
+
metadataXml: z125.string().nullish()
|
|
4434
4538
|
});
|
|
4435
4539
|
|
|
4436
4540
|
// src/workspace/untyped-data.ts
|
|
4437
|
-
import { z as
|
|
4438
|
-
var WorkspaceUntypedData =
|
|
4439
|
-
id:
|
|
4440
|
-
workspaceId:
|
|
4441
|
-
value:
|
|
4442
|
-
createdAt:
|
|
4443
|
-
updatedAt:
|
|
4541
|
+
import { z as z126 } from "zod";
|
|
4542
|
+
var WorkspaceUntypedData = z126.object({
|
|
4543
|
+
id: z126.string(),
|
|
4544
|
+
workspaceId: z126.string(),
|
|
4545
|
+
value: z126.unknown(),
|
|
4546
|
+
createdAt: z126.coerce.date(),
|
|
4547
|
+
updatedAt: z126.coerce.date()
|
|
4444
4548
|
});
|
|
4445
4549
|
|
|
4446
4550
|
// src/workspace/user-invite.ts
|
|
4447
|
-
import { z as
|
|
4551
|
+
import { z as z128 } from "zod";
|
|
4448
4552
|
|
|
4449
4553
|
// src/workspace/workspace-role.ts
|
|
4450
|
-
import { z as
|
|
4451
|
-
var WorkspaceRoleSchema =
|
|
4554
|
+
import { z as z127 } from "zod";
|
|
4555
|
+
var WorkspaceRoleSchema = z127.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4452
4556
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4453
4557
|
|
|
4454
4558
|
// src/workspace/user-invite.ts
|
|
4455
4559
|
var MAX_MEMBERS_COUNT = 100;
|
|
4456
|
-
var UserInvite =
|
|
4457
|
-
email:
|
|
4560
|
+
var UserInvite = z128.object({
|
|
4561
|
+
email: z128.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4458
4562
|
role: WorkspaceRoleSchema
|
|
4459
4563
|
});
|
|
4460
|
-
var UserInvites =
|
|
4564
|
+
var UserInvites = z128.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4461
4565
|
|
|
4462
4566
|
// src/workspace/workspace-configuration.ts
|
|
4463
|
-
import { z as
|
|
4567
|
+
import { z as z130 } from "zod";
|
|
4464
4568
|
|
|
4465
4569
|
// src/workspace/workspace.ts
|
|
4466
4570
|
import IPCIDR from "ip-cidr";
|
|
4467
|
-
import { z as
|
|
4571
|
+
import { z as z129 } from "zod";
|
|
4468
4572
|
var isValidCIDR = (value) => {
|
|
4469
4573
|
return IPCIDR.isValidAddress(value);
|
|
4470
4574
|
};
|
|
4471
|
-
var WorkspaceIpWhitelistEntry =
|
|
4472
|
-
isEnabled:
|
|
4473
|
-
name:
|
|
4474
|
-
range:
|
|
4575
|
+
var WorkspaceIpWhitelistEntry = z129.object({
|
|
4576
|
+
isEnabled: z129.boolean(),
|
|
4577
|
+
name: z129.string(),
|
|
4578
|
+
range: z129.string().refine(isValidCIDR, {
|
|
4475
4579
|
message: "Invalid IP CIDR"
|
|
4476
4580
|
})
|
|
4477
4581
|
});
|
|
4478
|
-
var WorkspaceIpSettings =
|
|
4479
|
-
isEnabledForCloud:
|
|
4480
|
-
isEnabledForDocs:
|
|
4481
|
-
entries:
|
|
4582
|
+
var WorkspaceIpSettings = z129.object({
|
|
4583
|
+
isEnabledForCloud: z129.boolean(),
|
|
4584
|
+
isEnabledForDocs: z129.boolean(),
|
|
4585
|
+
entries: z129.array(WorkspaceIpWhitelistEntry)
|
|
4482
4586
|
});
|
|
4483
|
-
var WorkspaceProfile =
|
|
4484
|
-
name:
|
|
4485
|
-
handle:
|
|
4486
|
-
color:
|
|
4487
|
-
avatar: nullishToOptional(
|
|
4587
|
+
var WorkspaceProfile = z129.object({
|
|
4588
|
+
name: z129.string(),
|
|
4589
|
+
handle: z129.string(),
|
|
4590
|
+
color: z129.string(),
|
|
4591
|
+
avatar: nullishToOptional(z129.string()),
|
|
4488
4592
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4489
4593
|
});
|
|
4490
4594
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4491
4595
|
avatar: true
|
|
4492
4596
|
});
|
|
4493
|
-
var Workspace =
|
|
4494
|
-
id:
|
|
4597
|
+
var Workspace = z129.object({
|
|
4598
|
+
id: z129.string(),
|
|
4495
4599
|
profile: WorkspaceProfile,
|
|
4496
4600
|
subscription: Subscription,
|
|
4497
4601
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4498
4602
|
sso: nullishToOptional(SsoProvider),
|
|
4499
4603
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4500
4604
|
});
|
|
4501
|
-
var WorkspaceWithDesignSystems =
|
|
4605
|
+
var WorkspaceWithDesignSystems = z129.object({
|
|
4502
4606
|
workspace: Workspace,
|
|
4503
|
-
designSystems:
|
|
4607
|
+
designSystems: z129.array(DesignSystem)
|
|
4504
4608
|
});
|
|
4505
4609
|
|
|
4506
4610
|
// src/workspace/workspace-configuration.ts
|
|
4507
|
-
var WorkspaceConfigurationUpdate =
|
|
4508
|
-
id:
|
|
4611
|
+
var WorkspaceConfigurationUpdate = z130.object({
|
|
4612
|
+
id: z130.string(),
|
|
4509
4613
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4510
4614
|
sso: SsoProvider.optional(),
|
|
4511
4615
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -4513,59 +4617,59 @@ var WorkspaceConfigurationUpdate = z129.object({
|
|
|
4513
4617
|
});
|
|
4514
4618
|
|
|
4515
4619
|
// src/workspace/workspace-context.ts
|
|
4516
|
-
import { z as
|
|
4517
|
-
var WorkspaceContext =
|
|
4518
|
-
workspaceId:
|
|
4620
|
+
import { z as z131 } from "zod";
|
|
4621
|
+
var WorkspaceContext = z131.object({
|
|
4622
|
+
workspaceId: z131.string(),
|
|
4519
4623
|
product: ProductCodeSchema,
|
|
4520
4624
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4521
|
-
publicDesignSystem:
|
|
4625
|
+
publicDesignSystem: z131.boolean().optional()
|
|
4522
4626
|
});
|
|
4523
4627
|
|
|
4524
4628
|
// src/workspace/workspace-create.ts
|
|
4525
|
-
import { z as
|
|
4629
|
+
import { z as z132 } from "zod";
|
|
4526
4630
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4527
4631
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4528
4632
|
var HANDLE_MIN_LENGTH = 2;
|
|
4529
4633
|
var HANDLE_MAX_LENGTH = 64;
|
|
4530
|
-
var CreateWorkspaceInput =
|
|
4531
|
-
name:
|
|
4532
|
-
handle:
|
|
4634
|
+
var CreateWorkspaceInput = z132.object({
|
|
4635
|
+
name: z132.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4636
|
+
handle: z132.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
4533
4637
|
});
|
|
4534
4638
|
|
|
4535
4639
|
// src/workspace/workspace-invitations.ts
|
|
4536
|
-
import { z as
|
|
4537
|
-
var WorkspaceInvitation =
|
|
4538
|
-
id:
|
|
4539
|
-
email:
|
|
4540
|
-
createdAt:
|
|
4541
|
-
resentAt:
|
|
4542
|
-
role:
|
|
4543
|
-
workspaceId:
|
|
4544
|
-
invitedBy:
|
|
4640
|
+
import { z as z133 } from "zod";
|
|
4641
|
+
var WorkspaceInvitation = z133.object({
|
|
4642
|
+
id: z133.string(),
|
|
4643
|
+
email: z133.string().email(),
|
|
4644
|
+
createdAt: z133.coerce.date(),
|
|
4645
|
+
resentAt: z133.coerce.date().nullish(),
|
|
4646
|
+
role: z133.nativeEnum(WorkspaceRole),
|
|
4647
|
+
workspaceId: z133.string(),
|
|
4648
|
+
invitedBy: z133.string()
|
|
4545
4649
|
});
|
|
4546
4650
|
|
|
4547
4651
|
// src/workspace/workspace-membership.ts
|
|
4548
|
-
import { z as
|
|
4652
|
+
import { z as z142 } from "zod";
|
|
4549
4653
|
|
|
4550
4654
|
// src/users/linked-integrations.ts
|
|
4551
|
-
import { z as
|
|
4552
|
-
var IntegrationAuthType =
|
|
4553
|
-
var ExternalServiceType =
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4655
|
+
import { z as z134 } from "zod";
|
|
4656
|
+
var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
|
|
4657
|
+
var ExternalServiceType = z134.union([
|
|
4658
|
+
z134.literal("figma"),
|
|
4659
|
+
z134.literal("github"),
|
|
4660
|
+
z134.literal("azure"),
|
|
4661
|
+
z134.literal("gitlab"),
|
|
4662
|
+
z134.literal("bitbucket")
|
|
4559
4663
|
]);
|
|
4560
|
-
var IntegrationUserInfo =
|
|
4561
|
-
id:
|
|
4562
|
-
handle:
|
|
4563
|
-
avatarUrl:
|
|
4564
|
-
email:
|
|
4664
|
+
var IntegrationUserInfo = z134.object({
|
|
4665
|
+
id: z134.string(),
|
|
4666
|
+
handle: z134.string().optional(),
|
|
4667
|
+
avatarUrl: z134.string().optional(),
|
|
4668
|
+
email: z134.string().optional(),
|
|
4565
4669
|
authType: IntegrationAuthType.optional(),
|
|
4566
|
-
customUrl:
|
|
4670
|
+
customUrl: z134.string().optional()
|
|
4567
4671
|
});
|
|
4568
|
-
var UserLinkedIntegrations =
|
|
4672
|
+
var UserLinkedIntegrations = z134.object({
|
|
4569
4673
|
figma: IntegrationUserInfo.optional(),
|
|
4570
4674
|
github: IntegrationUserInfo.array().optional(),
|
|
4571
4675
|
azure: IntegrationUserInfo.array().optional(),
|
|
@@ -4574,38 +4678,38 @@ var UserLinkedIntegrations = z133.object({
|
|
|
4574
4678
|
});
|
|
4575
4679
|
|
|
4576
4680
|
// src/users/user-analytics-cleanup-schedule.ts
|
|
4577
|
-
import { z as
|
|
4578
|
-
var UserAnalyticsCleanupSchedule =
|
|
4579
|
-
userId:
|
|
4580
|
-
createdAt:
|
|
4581
|
-
deleteAt:
|
|
4681
|
+
import { z as z135 } from "zod";
|
|
4682
|
+
var UserAnalyticsCleanupSchedule = z135.object({
|
|
4683
|
+
userId: z135.string(),
|
|
4684
|
+
createdAt: z135.coerce.date(),
|
|
4685
|
+
deleteAt: z135.coerce.date()
|
|
4582
4686
|
});
|
|
4583
4687
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4584
4688
|
createdAt: true
|
|
4585
4689
|
});
|
|
4586
4690
|
|
|
4587
4691
|
// src/users/user-identity.ts
|
|
4588
|
-
import { z as
|
|
4589
|
-
var UserIdentity =
|
|
4590
|
-
id:
|
|
4591
|
-
userId:
|
|
4692
|
+
import { z as z136 } from "zod";
|
|
4693
|
+
var UserIdentity = z136.object({
|
|
4694
|
+
id: z136.string(),
|
|
4695
|
+
userId: z136.string()
|
|
4592
4696
|
});
|
|
4593
4697
|
|
|
4594
4698
|
// src/users/user-minified.ts
|
|
4595
|
-
import { z as
|
|
4596
|
-
var UserMinified =
|
|
4597
|
-
id:
|
|
4598
|
-
name:
|
|
4599
|
-
email:
|
|
4600
|
-
avatar:
|
|
4699
|
+
import { z as z137 } from "zod";
|
|
4700
|
+
var UserMinified = z137.object({
|
|
4701
|
+
id: z137.string(),
|
|
4702
|
+
name: z137.string(),
|
|
4703
|
+
email: z137.string(),
|
|
4704
|
+
avatar: z137.string().optional()
|
|
4601
4705
|
});
|
|
4602
4706
|
|
|
4603
4707
|
// src/users/user-notification-settings.ts
|
|
4604
|
-
import { z as
|
|
4605
|
-
var LiveblocksNotificationSettings =
|
|
4606
|
-
sendCommentNotificationEmails:
|
|
4708
|
+
import { z as z138 } from "zod";
|
|
4709
|
+
var LiveblocksNotificationSettings = z138.object({
|
|
4710
|
+
sendCommentNotificationEmails: z138.boolean()
|
|
4607
4711
|
});
|
|
4608
|
-
var UserNotificationSettings =
|
|
4712
|
+
var UserNotificationSettings = z138.object({
|
|
4609
4713
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4610
4714
|
});
|
|
4611
4715
|
var defaultNotificationSettings = {
|
|
@@ -4615,11 +4719,11 @@ var defaultNotificationSettings = {
|
|
|
4615
4719
|
};
|
|
4616
4720
|
|
|
4617
4721
|
// src/users/user-profile.ts
|
|
4618
|
-
import { z as
|
|
4619
|
-
var UserOnboardingDepartment =
|
|
4620
|
-
var UserOnboardingJobLevel =
|
|
4621
|
-
var UserTheme =
|
|
4622
|
-
preset:
|
|
4722
|
+
import { z as z139 } from "zod";
|
|
4723
|
+
var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4724
|
+
var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4725
|
+
var UserTheme = z139.object({
|
|
4726
|
+
preset: z139.enum([
|
|
4623
4727
|
"Custom",
|
|
4624
4728
|
"Default",
|
|
4625
4729
|
"HighContrast",
|
|
@@ -4630,32 +4734,32 @@ var UserTheme = z138.object({
|
|
|
4630
4734
|
"SystemPreference",
|
|
4631
4735
|
"Sepia"
|
|
4632
4736
|
]).optional(),
|
|
4633
|
-
backgroundColor:
|
|
4634
|
-
accentColor:
|
|
4635
|
-
contrast:
|
|
4636
|
-
isSecondaryEnabled:
|
|
4637
|
-
secondaryBackgroundColor:
|
|
4638
|
-
secondaryContrast:
|
|
4639
|
-
isEditorWhite:
|
|
4640
|
-
});
|
|
4641
|
-
var UserOnboarding =
|
|
4642
|
-
companyName:
|
|
4643
|
-
numberOfPeopleInOrg:
|
|
4644
|
-
numberOfPeopleInDesignTeam:
|
|
4737
|
+
backgroundColor: z139.string().optional(),
|
|
4738
|
+
accentColor: z139.string().optional(),
|
|
4739
|
+
contrast: z139.number().min(16).max(100).optional(),
|
|
4740
|
+
isSecondaryEnabled: z139.boolean().optional(),
|
|
4741
|
+
secondaryBackgroundColor: z139.string().optional(),
|
|
4742
|
+
secondaryContrast: z139.number().min(16).max(100).optional(),
|
|
4743
|
+
isEditorWhite: z139.boolean().optional()
|
|
4744
|
+
});
|
|
4745
|
+
var UserOnboarding = z139.object({
|
|
4746
|
+
companyName: z139.string().optional(),
|
|
4747
|
+
numberOfPeopleInOrg: z139.string().optional(),
|
|
4748
|
+
numberOfPeopleInDesignTeam: z139.string().optional(),
|
|
4645
4749
|
department: UserOnboardingDepartment.optional(),
|
|
4646
|
-
jobTitle:
|
|
4647
|
-
phase:
|
|
4750
|
+
jobTitle: z139.string().optional(),
|
|
4751
|
+
phase: z139.string().optional(),
|
|
4648
4752
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4649
|
-
designSystemName:
|
|
4650
|
-
defaultDestination:
|
|
4651
|
-
figmaUrl:
|
|
4652
|
-
isPageDraftOnboardingFinished:
|
|
4653
|
-
isApprovalsOnboardingFinished:
|
|
4654
|
-
});
|
|
4655
|
-
var UserProfile =
|
|
4656
|
-
name:
|
|
4657
|
-
avatar:
|
|
4658
|
-
nickname:
|
|
4753
|
+
designSystemName: z139.string().optional(),
|
|
4754
|
+
defaultDestination: z139.string().optional(),
|
|
4755
|
+
figmaUrl: z139.string().optional(),
|
|
4756
|
+
isPageDraftOnboardingFinished: z139.boolean().optional(),
|
|
4757
|
+
isApprovalsOnboardingFinished: z139.boolean().optional()
|
|
4758
|
+
});
|
|
4759
|
+
var UserProfile = z139.object({
|
|
4760
|
+
name: z139.string(),
|
|
4761
|
+
avatar: z139.string().optional(),
|
|
4762
|
+
nickname: z139.string().optional(),
|
|
4659
4763
|
onboarding: UserOnboarding.optional(),
|
|
4660
4764
|
theme: UserTheme.optional()
|
|
4661
4765
|
});
|
|
@@ -4664,47 +4768,47 @@ var UserProfileUpdate = UserProfile.partial().omit({
|
|
|
4664
4768
|
});
|
|
4665
4769
|
|
|
4666
4770
|
// src/users/user-test.ts
|
|
4667
|
-
import { z as
|
|
4668
|
-
var UserTest =
|
|
4669
|
-
id:
|
|
4670
|
-
email:
|
|
4771
|
+
import { z as z140 } from "zod";
|
|
4772
|
+
var UserTest = z140.object({
|
|
4773
|
+
id: z140.string(),
|
|
4774
|
+
email: z140.string()
|
|
4671
4775
|
});
|
|
4672
4776
|
|
|
4673
4777
|
// src/users/user.ts
|
|
4674
|
-
import { z as
|
|
4675
|
-
var UserSource =
|
|
4676
|
-
var User =
|
|
4677
|
-
id:
|
|
4678
|
-
email:
|
|
4679
|
-
createdAt:
|
|
4778
|
+
import { z as z141 } from "zod";
|
|
4779
|
+
var UserSource = z141.enum(["SignUp", "Invite", "SSO"]);
|
|
4780
|
+
var User = z141.object({
|
|
4781
|
+
id: z141.string(),
|
|
4782
|
+
email: z141.string(),
|
|
4783
|
+
createdAt: z141.coerce.date(),
|
|
4680
4784
|
profile: UserProfile,
|
|
4681
|
-
loggedOutAt:
|
|
4682
|
-
isProtected:
|
|
4785
|
+
loggedOutAt: z141.coerce.date().optional(),
|
|
4786
|
+
isProtected: z141.boolean(),
|
|
4683
4787
|
source: UserSource.optional()
|
|
4684
4788
|
});
|
|
4685
4789
|
|
|
4686
4790
|
// src/workspace/workspace-membership.ts
|
|
4687
|
-
var WorkspaceMembership =
|
|
4688
|
-
id:
|
|
4689
|
-
userId:
|
|
4690
|
-
workspaceId:
|
|
4691
|
-
workspaceRole:
|
|
4791
|
+
var WorkspaceMembership = z142.object({
|
|
4792
|
+
id: z142.string(),
|
|
4793
|
+
userId: z142.string(),
|
|
4794
|
+
workspaceId: z142.string(),
|
|
4795
|
+
workspaceRole: z142.nativeEnum(WorkspaceRole),
|
|
4692
4796
|
notificationSettings: UserNotificationSettings,
|
|
4693
|
-
isPrimaryOwner:
|
|
4694
|
-
});
|
|
4695
|
-
var UpdateMembershipRolesInput =
|
|
4696
|
-
members:
|
|
4697
|
-
|
|
4698
|
-
userId:
|
|
4699
|
-
role:
|
|
4700
|
-
isPrimaryOwner:
|
|
4797
|
+
isPrimaryOwner: z142.boolean().nullish()
|
|
4798
|
+
});
|
|
4799
|
+
var UpdateMembershipRolesInput = z142.object({
|
|
4800
|
+
members: z142.array(
|
|
4801
|
+
z142.object({
|
|
4802
|
+
userId: z142.string(),
|
|
4803
|
+
role: z142.nativeEnum(WorkspaceRole),
|
|
4804
|
+
isPrimaryOwner: z142.boolean().optional()
|
|
4701
4805
|
})
|
|
4702
4806
|
)
|
|
4703
4807
|
});
|
|
4704
4808
|
|
|
4705
4809
|
// src/dsm/membership/ds-role.ts
|
|
4706
|
-
import { z as
|
|
4707
|
-
var DesignSystemRole =
|
|
4810
|
+
import { z as z143 } from "zod";
|
|
4811
|
+
var DesignSystemRole = z143.enum([
|
|
4708
4812
|
WorkspaceRole.Admin,
|
|
4709
4813
|
WorkspaceRole.Contributor,
|
|
4710
4814
|
WorkspaceRole.Creator,
|
|
@@ -4728,46 +4832,46 @@ function workspaceRoleToDesignSystemRole(role) {
|
|
|
4728
4832
|
}
|
|
4729
4833
|
|
|
4730
4834
|
// src/dsm/membership/invitations.ts
|
|
4731
|
-
import { z as
|
|
4732
|
-
var DesignSystemInvitation =
|
|
4733
|
-
id:
|
|
4734
|
-
designSystemId:
|
|
4735
|
-
workspaceInvitationId:
|
|
4835
|
+
import { z as z144 } from "zod";
|
|
4836
|
+
var DesignSystemInvitation = z144.object({
|
|
4837
|
+
id: z144.string(),
|
|
4838
|
+
designSystemId: z144.string(),
|
|
4839
|
+
workspaceInvitationId: z144.string(),
|
|
4736
4840
|
designSystemRole: DesignSystemRole.optional(),
|
|
4737
4841
|
workspaceRole: WorkspaceRoleSchema
|
|
4738
4842
|
});
|
|
4739
4843
|
|
|
4740
4844
|
// src/dsm/membership/design-system-membership.ts
|
|
4741
|
-
var DesignSystemMembership =
|
|
4742
|
-
id:
|
|
4743
|
-
userId:
|
|
4744
|
-
designSystemId:
|
|
4845
|
+
var DesignSystemMembership = z145.object({
|
|
4846
|
+
id: z145.string(),
|
|
4847
|
+
userId: z145.string(),
|
|
4848
|
+
designSystemId: z145.string(),
|
|
4745
4849
|
designSystemRole: DesignSystemRole.optional(),
|
|
4746
|
-
workspaceMembershipId:
|
|
4850
|
+
workspaceMembershipId: z145.string(),
|
|
4747
4851
|
workspaceRole: WorkspaceRoleSchema
|
|
4748
4852
|
});
|
|
4749
|
-
var DesignSystemMembers =
|
|
4853
|
+
var DesignSystemMembers = z145.object({
|
|
4750
4854
|
members: DesignSystemMembership.array(),
|
|
4751
4855
|
invitations: DesignSystemInvitation.array()
|
|
4752
4856
|
});
|
|
4753
|
-
var DesignSystemPendingMemberInvitation =
|
|
4754
|
-
inviteId:
|
|
4857
|
+
var DesignSystemPendingMemberInvitation = z145.object({
|
|
4858
|
+
inviteId: z145.string(),
|
|
4755
4859
|
/**
|
|
4756
4860
|
* Role that the user will have in the design system, undefined
|
|
4757
4861
|
* if it should be inherited from the workspace
|
|
4758
4862
|
*/
|
|
4759
4863
|
designSystemRole: DesignSystemRole.optional()
|
|
4760
4864
|
});
|
|
4761
|
-
var DesignSystemUserInvitation =
|
|
4762
|
-
userId:
|
|
4865
|
+
var DesignSystemUserInvitation = z145.object({
|
|
4866
|
+
userId: z145.string(),
|
|
4763
4867
|
/**
|
|
4764
4868
|
* Role that the user will have in the design system, undefined
|
|
4765
4869
|
* if it should be inherited from the workspace
|
|
4766
4870
|
*/
|
|
4767
4871
|
designSystemRole: DesignSystemRole.optional()
|
|
4768
4872
|
});
|
|
4769
|
-
var DesignSystemInvite =
|
|
4770
|
-
email:
|
|
4873
|
+
var DesignSystemInvite = z145.object({
|
|
4874
|
+
email: z145.string(),
|
|
4771
4875
|
workspaceRole: WorkspaceRoleSchema,
|
|
4772
4876
|
/**
|
|
4773
4877
|
* Role that the user will have in the design system, undefined
|
|
@@ -4775,318 +4879,318 @@ var DesignSystemInvite = z144.object({
|
|
|
4775
4879
|
*/
|
|
4776
4880
|
designSystemRole: DesignSystemRole.optional()
|
|
4777
4881
|
});
|
|
4778
|
-
var DesignSystemMemberUpdate =
|
|
4779
|
-
userId:
|
|
4882
|
+
var DesignSystemMemberUpdate = z145.object({
|
|
4883
|
+
userId: z145.string(),
|
|
4780
4884
|
designSystemRole: DesignSystemRole.nullable()
|
|
4781
4885
|
});
|
|
4782
|
-
var DesignSystemInviteUpdate =
|
|
4886
|
+
var DesignSystemInviteUpdate = z145.object({
|
|
4783
4887
|
/**
|
|
4784
4888
|
* Workspace invitation id
|
|
4785
4889
|
*/
|
|
4786
|
-
inviteId:
|
|
4890
|
+
inviteId: z145.string(),
|
|
4787
4891
|
designSystemRole: DesignSystemRole.nullable()
|
|
4788
4892
|
});
|
|
4789
|
-
var DesignSystemMembershipUpdates =
|
|
4893
|
+
var DesignSystemMembershipUpdates = z145.object({
|
|
4790
4894
|
usersToInvite: DesignSystemUserInvitation.array().optional(),
|
|
4791
4895
|
invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
|
|
4792
4896
|
emailsToInvite: DesignSystemInvite.array().optional(),
|
|
4793
4897
|
usersToUpdate: DesignSystemMemberUpdate.array().optional(),
|
|
4794
4898
|
invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
|
|
4795
|
-
removeUserIds:
|
|
4796
|
-
deleteInvitationIds:
|
|
4899
|
+
removeUserIds: z145.string().array().optional(),
|
|
4900
|
+
deleteInvitationIds: z145.string().array().optional()
|
|
4797
4901
|
});
|
|
4798
4902
|
|
|
4799
4903
|
// src/dsm/views/column.ts
|
|
4800
|
-
import { z as
|
|
4801
|
-
var ElementViewBaseColumnType =
|
|
4802
|
-
var ElementViewColumnType =
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4904
|
+
import { z as z146 } from "zod";
|
|
4905
|
+
var ElementViewBaseColumnType = z146.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
4906
|
+
var ElementViewColumnType = z146.union([
|
|
4907
|
+
z146.literal("BaseProperty"),
|
|
4908
|
+
z146.literal("PropertyDefinition"),
|
|
4909
|
+
z146.literal("Theme")
|
|
4806
4910
|
]);
|
|
4807
|
-
var ElementViewColumnSharedAttributes =
|
|
4808
|
-
id:
|
|
4809
|
-
persistentId:
|
|
4810
|
-
elementDataViewId:
|
|
4811
|
-
sortPosition:
|
|
4812
|
-
width:
|
|
4911
|
+
var ElementViewColumnSharedAttributes = z146.object({
|
|
4912
|
+
id: z146.string(),
|
|
4913
|
+
persistentId: z146.string(),
|
|
4914
|
+
elementDataViewId: z146.string(),
|
|
4915
|
+
sortPosition: z146.number(),
|
|
4916
|
+
width: z146.number()
|
|
4813
4917
|
});
|
|
4814
4918
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
4815
|
-
type:
|
|
4919
|
+
type: z146.literal("BaseProperty"),
|
|
4816
4920
|
basePropertyType: ElementViewBaseColumnType
|
|
4817
4921
|
});
|
|
4818
4922
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
4819
|
-
type:
|
|
4820
|
-
propertyDefinitionId:
|
|
4923
|
+
type: z146.literal("PropertyDefinition"),
|
|
4924
|
+
propertyDefinitionId: z146.string()
|
|
4821
4925
|
});
|
|
4822
4926
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
4823
|
-
type:
|
|
4824
|
-
themeId:
|
|
4927
|
+
type: z146.literal("Theme"),
|
|
4928
|
+
themeId: z146.string()
|
|
4825
4929
|
});
|
|
4826
|
-
var ElementViewColumn =
|
|
4930
|
+
var ElementViewColumn = z146.discriminatedUnion("type", [
|
|
4827
4931
|
ElementViewBasePropertyColumn,
|
|
4828
4932
|
ElementViewPropertyDefinitionColumn,
|
|
4829
4933
|
ElementViewThemeColumn
|
|
4830
4934
|
]);
|
|
4831
4935
|
|
|
4832
4936
|
// src/dsm/views/view.ts
|
|
4833
|
-
import { z as z146 } from "zod";
|
|
4834
|
-
var ElementView = z146.object({
|
|
4835
|
-
id: z146.string(),
|
|
4836
|
-
persistentId: z146.string(),
|
|
4837
|
-
designSystemVersionId: z146.string(),
|
|
4838
|
-
name: z146.string(),
|
|
4839
|
-
description: z146.string(),
|
|
4840
|
-
targetElementType: ElementPropertyTargetType,
|
|
4841
|
-
isDefault: z146.boolean()
|
|
4842
|
-
});
|
|
4843
|
-
|
|
4844
|
-
// src/dsm/brand.ts
|
|
4845
4937
|
import { z as z147 } from "zod";
|
|
4846
|
-
var
|
|
4938
|
+
var ElementView = z147.object({
|
|
4847
4939
|
id: z147.string(),
|
|
4848
|
-
designSystemVersionId: z147.string(),
|
|
4849
4940
|
persistentId: z147.string(),
|
|
4941
|
+
designSystemVersionId: z147.string(),
|
|
4850
4942
|
name: z147.string(),
|
|
4851
|
-
description: z147.string()
|
|
4943
|
+
description: z147.string(),
|
|
4944
|
+
targetElementType: ElementPropertyTargetType,
|
|
4945
|
+
isDefault: z147.boolean()
|
|
4852
4946
|
});
|
|
4853
4947
|
|
|
4854
|
-
// src/dsm/
|
|
4948
|
+
// src/dsm/brand.ts
|
|
4855
4949
|
import { z as z148 } from "zod";
|
|
4856
|
-
var
|
|
4857
|
-
var DesignSystemSwitcher = z148.object({
|
|
4858
|
-
isEnabled: z148.boolean(),
|
|
4859
|
-
designSystemIds: z148.array(z148.string())
|
|
4860
|
-
});
|
|
4861
|
-
var DesignSystem = z148.object({
|
|
4950
|
+
var Brand = z148.object({
|
|
4862
4951
|
id: z148.string(),
|
|
4863
|
-
|
|
4952
|
+
designSystemVersionId: z148.string(),
|
|
4953
|
+
persistentId: z148.string(),
|
|
4864
4954
|
name: z148.string(),
|
|
4865
|
-
description: z148.string()
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4955
|
+
description: z148.string()
|
|
4956
|
+
});
|
|
4957
|
+
|
|
4958
|
+
// src/dsm/design-system.ts
|
|
4959
|
+
import { z as z149 } from "zod";
|
|
4960
|
+
var DesignSystemAccessMode = z149.enum(["Open", "InviteOnly"]);
|
|
4961
|
+
var DesignSystemSwitcher = z149.object({
|
|
4962
|
+
isEnabled: z149.boolean(),
|
|
4963
|
+
designSystemIds: z149.array(z149.string())
|
|
4964
|
+
});
|
|
4965
|
+
var DesignSystem = z149.object({
|
|
4966
|
+
id: z149.string(),
|
|
4967
|
+
workspaceId: z149.string(),
|
|
4968
|
+
name: z149.string(),
|
|
4969
|
+
description: z149.string(),
|
|
4970
|
+
docExporterId: nullishToOptional(z149.string()),
|
|
4971
|
+
docSlug: z149.string(),
|
|
4972
|
+
docUserSlug: nullishToOptional(z149.string()),
|
|
4973
|
+
docSlugDeprecated: z149.string(),
|
|
4974
|
+
isMultibrand: z149.boolean(),
|
|
4975
|
+
docViewUrl: nullishToOptional(z149.string()),
|
|
4976
|
+
basePrefixes: z149.array(z149.string()),
|
|
4873
4977
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
4874
|
-
isApprovalFeatureEnabled:
|
|
4875
|
-
approvalRequiredForPublishing:
|
|
4978
|
+
isApprovalFeatureEnabled: z149.boolean(),
|
|
4979
|
+
approvalRequiredForPublishing: z149.boolean(),
|
|
4876
4980
|
accessMode: DesignSystemAccessMode,
|
|
4877
|
-
membersGenerated:
|
|
4878
|
-
createdAt:
|
|
4879
|
-
updatedAt:
|
|
4981
|
+
membersGenerated: z149.boolean(),
|
|
4982
|
+
createdAt: z149.coerce.date(),
|
|
4983
|
+
updatedAt: z149.coerce.date()
|
|
4880
4984
|
});
|
|
4881
4985
|
|
|
4882
4986
|
// src/dsm/exporter-property-values-collection.ts
|
|
4883
|
-
import { z as
|
|
4884
|
-
var ExporterPropertyImageValue =
|
|
4987
|
+
import { z as z150 } from "zod";
|
|
4988
|
+
var ExporterPropertyImageValue = z150.object({
|
|
4885
4989
|
asset: PageBlockAsset.optional(),
|
|
4886
|
-
assetId:
|
|
4887
|
-
assetUrl:
|
|
4888
|
-
});
|
|
4889
|
-
var ExporterConfigurationPropertyValue =
|
|
4890
|
-
key:
|
|
4891
|
-
value:
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4990
|
+
assetId: z150.string().optional(),
|
|
4991
|
+
assetUrl: z150.string().optional()
|
|
4992
|
+
});
|
|
4993
|
+
var ExporterConfigurationPropertyValue = z150.object({
|
|
4994
|
+
key: z150.string(),
|
|
4995
|
+
value: z150.union([
|
|
4996
|
+
z150.number(),
|
|
4997
|
+
z150.string(),
|
|
4998
|
+
z150.boolean(),
|
|
4895
4999
|
ExporterPropertyImageValue,
|
|
4896
5000
|
ColorTokenData,
|
|
4897
5001
|
TypographyTokenData
|
|
4898
5002
|
])
|
|
4899
5003
|
});
|
|
4900
|
-
var ExporterPropertyValuesCollection =
|
|
4901
|
-
id:
|
|
4902
|
-
designSystemId:
|
|
4903
|
-
exporterId:
|
|
4904
|
-
values:
|
|
5004
|
+
var ExporterPropertyValuesCollection = z150.object({
|
|
5005
|
+
id: z150.string(),
|
|
5006
|
+
designSystemId: z150.string(),
|
|
5007
|
+
exporterId: z150.string(),
|
|
5008
|
+
values: z150.array(ExporterConfigurationPropertyValue)
|
|
4905
5009
|
});
|
|
4906
5010
|
|
|
4907
5011
|
// src/dsm/published-doc-page-visits.ts
|
|
4908
|
-
import { z as
|
|
4909
|
-
var PublishedDocPageVisitsEntry =
|
|
4910
|
-
id:
|
|
4911
|
-
versionId:
|
|
4912
|
-
pagePersistentId:
|
|
4913
|
-
locale:
|
|
4914
|
-
timestamp:
|
|
4915
|
-
visits:
|
|
4916
|
-
userId: nullishToOptional(
|
|
4917
|
-
anonymousId: nullishToOptional(
|
|
5012
|
+
import { z as z151 } from "zod";
|
|
5013
|
+
var PublishedDocPageVisitsEntry = z151.object({
|
|
5014
|
+
id: z151.string(),
|
|
5015
|
+
versionId: z151.string(),
|
|
5016
|
+
pagePersistentId: z151.string(),
|
|
5017
|
+
locale: z151.string().optional(),
|
|
5018
|
+
timestamp: z151.coerce.date(),
|
|
5019
|
+
visits: z151.number(),
|
|
5020
|
+
userId: nullishToOptional(z151.string()),
|
|
5021
|
+
anonymousId: nullishToOptional(z151.string())
|
|
4918
5022
|
});
|
|
4919
5023
|
|
|
4920
5024
|
// src/dsm/published-doc-page.ts
|
|
4921
|
-
import { z as
|
|
5025
|
+
import { z as z152 } from "zod";
|
|
4922
5026
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4923
5027
|
function tryParseShortPersistentId(url = "/") {
|
|
4924
5028
|
const lastUrlPart = url.split("/").pop() || "";
|
|
4925
5029
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4926
5030
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4927
5031
|
}
|
|
4928
|
-
var PublishedDocPage =
|
|
4929
|
-
id:
|
|
4930
|
-
publishedDocId:
|
|
4931
|
-
pageShortPersistentId:
|
|
4932
|
-
pagePersistentId:
|
|
4933
|
-
pathV1:
|
|
4934
|
-
pathV2:
|
|
4935
|
-
storagePath:
|
|
4936
|
-
locale:
|
|
4937
|
-
isPrivate:
|
|
4938
|
-
isHidden:
|
|
4939
|
-
createdAt:
|
|
4940
|
-
updatedAt:
|
|
5032
|
+
var PublishedDocPage = z152.object({
|
|
5033
|
+
id: z152.string(),
|
|
5034
|
+
publishedDocId: z152.string(),
|
|
5035
|
+
pageShortPersistentId: z152.string(),
|
|
5036
|
+
pagePersistentId: z152.string().optional(),
|
|
5037
|
+
pathV1: z152.string(),
|
|
5038
|
+
pathV2: z152.string(),
|
|
5039
|
+
storagePath: z152.string(),
|
|
5040
|
+
locale: z152.string().optional(),
|
|
5041
|
+
isPrivate: z152.boolean(),
|
|
5042
|
+
isHidden: z152.boolean(),
|
|
5043
|
+
createdAt: z152.coerce.date(),
|
|
5044
|
+
updatedAt: z152.coerce.date()
|
|
4941
5045
|
});
|
|
4942
5046
|
|
|
4943
5047
|
// src/dsm/published-doc.ts
|
|
4944
|
-
import { z as
|
|
5048
|
+
import { z as z153 } from "zod";
|
|
4945
5049
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4946
|
-
var PublishedDocEnvironment =
|
|
4947
|
-
var PublishedDocsChecksums =
|
|
4948
|
-
var PublishedDocRoutingVersion =
|
|
4949
|
-
var PublishedDoc =
|
|
4950
|
-
id:
|
|
4951
|
-
designSystemVersionId:
|
|
4952
|
-
createdAt:
|
|
4953
|
-
updatedAt:
|
|
4954
|
-
lastPublishedAt:
|
|
4955
|
-
isDefault:
|
|
4956
|
-
isPublic:
|
|
5050
|
+
var PublishedDocEnvironment = z153.enum(publishedDocEnvironments);
|
|
5051
|
+
var PublishedDocsChecksums = z153.record(z153.string());
|
|
5052
|
+
var PublishedDocRoutingVersion = z153.enum(["1", "2"]);
|
|
5053
|
+
var PublishedDoc = z153.object({
|
|
5054
|
+
id: z153.string(),
|
|
5055
|
+
designSystemVersionId: z153.string(),
|
|
5056
|
+
createdAt: z153.coerce.date(),
|
|
5057
|
+
updatedAt: z153.coerce.date(),
|
|
5058
|
+
lastPublishedAt: z153.coerce.date(),
|
|
5059
|
+
isDefault: z153.boolean(),
|
|
5060
|
+
isPublic: z153.boolean(),
|
|
4957
5061
|
environment: PublishedDocEnvironment,
|
|
4958
5062
|
checksums: PublishedDocsChecksums,
|
|
4959
|
-
storagePath:
|
|
4960
|
-
wasMigrated:
|
|
5063
|
+
storagePath: z153.string(),
|
|
5064
|
+
wasMigrated: z153.boolean(),
|
|
4961
5065
|
routingVersion: PublishedDocRoutingVersion,
|
|
4962
|
-
usesLocalizations:
|
|
4963
|
-
wasPublishedWithLocalizations:
|
|
4964
|
-
tokenCount:
|
|
4965
|
-
assetCount:
|
|
5066
|
+
usesLocalizations: z153.boolean(),
|
|
5067
|
+
wasPublishedWithLocalizations: z153.boolean(),
|
|
5068
|
+
tokenCount: z153.number(),
|
|
5069
|
+
assetCount: z153.number()
|
|
4966
5070
|
});
|
|
4967
5071
|
|
|
4968
5072
|
// src/dsm/storybook-entry.ts
|
|
4969
|
-
import { z as
|
|
4970
|
-
var StorybookEntryOrigin =
|
|
4971
|
-
id:
|
|
4972
|
-
type:
|
|
4973
|
-
name:
|
|
4974
|
-
title:
|
|
5073
|
+
import { z as z154 } from "zod";
|
|
5074
|
+
var StorybookEntryOrigin = z154.object({
|
|
5075
|
+
id: z154.string(),
|
|
5076
|
+
type: z154.enum(["story", "docs"]),
|
|
5077
|
+
name: z154.string(),
|
|
5078
|
+
title: z154.string()
|
|
4975
5079
|
// Same as 'kind' for v3
|
|
4976
5080
|
});
|
|
4977
|
-
var StorybookEntry =
|
|
4978
|
-
id: z153.string(),
|
|
4979
|
-
storyId: z153.string(),
|
|
4980
|
-
designSystemId: z153.string(),
|
|
4981
|
-
sourceId: z153.string(),
|
|
4982
|
-
aliases: z153.array(z153.string()).optional(),
|
|
4983
|
-
url: z153.string(),
|
|
4984
|
-
isDeleted: z153.boolean().optional(),
|
|
4985
|
-
origin: StorybookEntryOrigin,
|
|
4986
|
-
createdAt: z153.coerce.date(),
|
|
4987
|
-
updatedAt: z153.coerce.date()
|
|
4988
|
-
});
|
|
4989
|
-
|
|
4990
|
-
// src/dsm/storybook-payload.ts
|
|
4991
|
-
import { z as z154 } from "zod";
|
|
4992
|
-
var StorybookPayload = z154.object({
|
|
5081
|
+
var StorybookEntry = z154.object({
|
|
4993
5082
|
id: z154.string(),
|
|
5083
|
+
storyId: z154.string(),
|
|
4994
5084
|
designSystemId: z154.string(),
|
|
4995
5085
|
sourceId: z154.string(),
|
|
4996
|
-
|
|
5086
|
+
aliases: z154.array(z154.string()).optional(),
|
|
5087
|
+
url: z154.string(),
|
|
5088
|
+
isDeleted: z154.boolean().optional(),
|
|
5089
|
+
origin: StorybookEntryOrigin,
|
|
4997
5090
|
createdAt: z154.coerce.date(),
|
|
4998
5091
|
updatedAt: z154.coerce.date()
|
|
4999
5092
|
});
|
|
5000
5093
|
|
|
5001
|
-
// src/dsm/
|
|
5094
|
+
// src/dsm/storybook-payload.ts
|
|
5002
5095
|
import { z as z155 } from "zod";
|
|
5003
|
-
var
|
|
5004
|
-
id: z155.string(),
|
|
5005
|
-
version: z155.string(),
|
|
5006
|
-
createdAt: z155.coerce.date(),
|
|
5007
|
-
designSystemId: z155.string(),
|
|
5008
|
-
name: z155.string(),
|
|
5009
|
-
comment: z155.string(),
|
|
5010
|
-
isReadonly: z155.boolean(),
|
|
5011
|
-
changeLog: z155.string(),
|
|
5012
|
-
parentId: z155.string().optional(),
|
|
5013
|
-
isDraftsFeatureAdopted: z155.boolean()
|
|
5014
|
-
});
|
|
5015
|
-
var VersionCreationJobStatus = z155.enum(["Success", "InProgress", "Error"]);
|
|
5016
|
-
var VersionCreationJob = z155.object({
|
|
5096
|
+
var StorybookPayload = z155.object({
|
|
5017
5097
|
id: z155.string(),
|
|
5018
|
-
version: z155.string(),
|
|
5019
5098
|
designSystemId: z155.string(),
|
|
5020
|
-
|
|
5099
|
+
sourceId: z155.string(),
|
|
5100
|
+
payload: z155.any(),
|
|
5101
|
+
createdAt: z155.coerce.date(),
|
|
5102
|
+
updatedAt: z155.coerce.date()
|
|
5103
|
+
});
|
|
5104
|
+
|
|
5105
|
+
// src/dsm/version.ts
|
|
5106
|
+
import { z as z156 } from "zod";
|
|
5107
|
+
var DesignSystemVersion = z156.object({
|
|
5108
|
+
id: z156.string(),
|
|
5109
|
+
version: z156.string(),
|
|
5110
|
+
createdAt: z156.coerce.date(),
|
|
5111
|
+
designSystemId: z156.string(),
|
|
5112
|
+
name: z156.string(),
|
|
5113
|
+
comment: z156.string(),
|
|
5114
|
+
isReadonly: z156.boolean(),
|
|
5115
|
+
changeLog: z156.string(),
|
|
5116
|
+
parentId: z156.string().optional(),
|
|
5117
|
+
isDraftsFeatureAdopted: z156.boolean()
|
|
5118
|
+
});
|
|
5119
|
+
var VersionCreationJobStatus = z156.enum(["Success", "InProgress", "Error"]);
|
|
5120
|
+
var VersionCreationJob = z156.object({
|
|
5121
|
+
id: z156.string(),
|
|
5122
|
+
version: z156.string(),
|
|
5123
|
+
designSystemId: z156.string(),
|
|
5124
|
+
designSystemVersionId: nullishToOptional(z156.string()),
|
|
5021
5125
|
status: VersionCreationJobStatus,
|
|
5022
|
-
errorMessage: nullishToOptional(
|
|
5126
|
+
errorMessage: nullishToOptional(z156.string())
|
|
5023
5127
|
});
|
|
5024
5128
|
|
|
5025
5129
|
// src/export/export-destinations.ts
|
|
5026
5130
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
5027
5131
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
5028
|
-
var ExportJobDocumentationChanges =
|
|
5029
|
-
pagePersistentIds:
|
|
5030
|
-
groupPersistentIds:
|
|
5132
|
+
var ExportJobDocumentationChanges = z157.object({
|
|
5133
|
+
pagePersistentIds: z157.string().array(),
|
|
5134
|
+
groupPersistentIds: z157.string().array()
|
|
5031
5135
|
});
|
|
5032
|
-
var ExporterDestinationDocs =
|
|
5136
|
+
var ExporterDestinationDocs = z157.object({
|
|
5033
5137
|
environment: PublishedDocEnvironment,
|
|
5034
5138
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
5035
5139
|
});
|
|
5036
|
-
var GitCommonDestinationOptions =
|
|
5037
|
-
branch:
|
|
5038
|
-
relativePath: nullishToOptional(
|
|
5039
|
-
purgeDirectory: nullishToOptional(
|
|
5040
|
-
commitAuthorName: nullishToOptional(
|
|
5041
|
-
commitAuthorEmail: nullishToOptional(
|
|
5042
|
-
commitMessage: nullishToOptional(
|
|
5043
|
-
pullRequestTitle: nullishToOptional(
|
|
5044
|
-
pullRequestDescription: nullishToOptional(
|
|
5045
|
-
});
|
|
5046
|
-
var ExporterDestinationS3 =
|
|
5047
|
-
var ExporterDestinationGithub =
|
|
5048
|
-
credentialId:
|
|
5140
|
+
var GitCommonDestinationOptions = z157.object({
|
|
5141
|
+
branch: z157.string(),
|
|
5142
|
+
relativePath: nullishToOptional(z157.string()),
|
|
5143
|
+
purgeDirectory: nullishToOptional(z157.boolean()),
|
|
5144
|
+
commitAuthorName: nullishToOptional(z157.string()),
|
|
5145
|
+
commitAuthorEmail: nullishToOptional(z157.string()),
|
|
5146
|
+
commitMessage: nullishToOptional(z157.string()),
|
|
5147
|
+
pullRequestTitle: nullishToOptional(z157.string()),
|
|
5148
|
+
pullRequestDescription: nullishToOptional(z157.string())
|
|
5149
|
+
});
|
|
5150
|
+
var ExporterDestinationS3 = z157.object({});
|
|
5151
|
+
var ExporterDestinationGithub = z157.object({
|
|
5152
|
+
credentialId: z157.string().optional(),
|
|
5049
5153
|
// Repository
|
|
5050
|
-
url:
|
|
5154
|
+
url: z157.string(),
|
|
5051
5155
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5052
|
-
connectionId: nullishToOptional(
|
|
5053
|
-
userId: nullishToOptional(
|
|
5156
|
+
connectionId: nullishToOptional(z157.string()),
|
|
5157
|
+
userId: nullishToOptional(z157.number())
|
|
5054
5158
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5055
|
-
var ExporterDestinationAzure =
|
|
5056
|
-
credentialId:
|
|
5159
|
+
var ExporterDestinationAzure = z157.object({
|
|
5160
|
+
credentialId: z157.string().optional(),
|
|
5057
5161
|
// Repository
|
|
5058
|
-
organizationId:
|
|
5059
|
-
projectId:
|
|
5060
|
-
repositoryId:
|
|
5162
|
+
organizationId: z157.string(),
|
|
5163
|
+
projectId: z157.string(),
|
|
5164
|
+
repositoryId: z157.string(),
|
|
5061
5165
|
// Maybe not needed
|
|
5062
|
-
url: nullishToOptional(
|
|
5166
|
+
url: nullishToOptional(z157.string()),
|
|
5063
5167
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5064
|
-
connectionId: nullishToOptional(
|
|
5065
|
-
userId: nullishToOptional(
|
|
5168
|
+
connectionId: nullishToOptional(z157.string()),
|
|
5169
|
+
userId: nullishToOptional(z157.number())
|
|
5066
5170
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5067
|
-
var ExporterDestinationGitlab =
|
|
5068
|
-
credentialId:
|
|
5171
|
+
var ExporterDestinationGitlab = z157.object({
|
|
5172
|
+
credentialId: z157.string().optional(),
|
|
5069
5173
|
// Repository
|
|
5070
|
-
projectId:
|
|
5174
|
+
projectId: z157.string(),
|
|
5071
5175
|
// Maybe not needed
|
|
5072
|
-
url: nullishToOptional(
|
|
5176
|
+
url: nullishToOptional(z157.string()),
|
|
5073
5177
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5074
|
-
connectionId: nullishToOptional(
|
|
5075
|
-
userId: nullishToOptional(
|
|
5178
|
+
connectionId: nullishToOptional(z157.string()),
|
|
5179
|
+
userId: nullishToOptional(z157.number())
|
|
5076
5180
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5077
|
-
var ExporterDestinationBitbucket =
|
|
5078
|
-
credentialId:
|
|
5181
|
+
var ExporterDestinationBitbucket = z157.object({
|
|
5182
|
+
credentialId: z157.string().optional(),
|
|
5079
5183
|
// Repository
|
|
5080
|
-
workspaceSlug:
|
|
5081
|
-
projectKey:
|
|
5082
|
-
repoSlug:
|
|
5083
|
-
url: nullishToOptional(
|
|
5184
|
+
workspaceSlug: z157.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5185
|
+
projectKey: z157.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5186
|
+
repoSlug: z157.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5187
|
+
url: nullishToOptional(z157.string()),
|
|
5084
5188
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5085
|
-
connectionId: nullishToOptional(
|
|
5086
|
-
userId: nullishToOptional(
|
|
5189
|
+
connectionId: nullishToOptional(z157.string()),
|
|
5190
|
+
userId: nullishToOptional(z157.number())
|
|
5087
5191
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5088
|
-
var ExportDestinationsMap =
|
|
5089
|
-
webhookUrl:
|
|
5192
|
+
var ExportDestinationsMap = z157.object({
|
|
5193
|
+
webhookUrl: z157.string().optional(),
|
|
5090
5194
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
5091
5195
|
destinationS3: ExporterDestinationS3.optional(),
|
|
5092
5196
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -5094,8 +5198,8 @@ var ExportDestinationsMap = z156.object({
|
|
|
5094
5198
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
5095
5199
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
5096
5200
|
});
|
|
5097
|
-
var ExportDestinationsMapUpdate =
|
|
5098
|
-
webhookUrl:
|
|
5201
|
+
var ExportDestinationsMapUpdate = z157.object({
|
|
5202
|
+
webhookUrl: z157.string().nullish(),
|
|
5099
5203
|
destinationSnDocs: ExporterDestinationDocs.nullish(),
|
|
5100
5204
|
destinationS3: ExporterDestinationS3.nullish(),
|
|
5101
5205
|
destinationGithub: ExporterDestinationGithub.nullish(),
|
|
@@ -5105,115 +5209,115 @@ var ExportDestinationsMapUpdate = z156.object({
|
|
|
5105
5209
|
});
|
|
5106
5210
|
|
|
5107
5211
|
// src/export/pipeline.ts
|
|
5108
|
-
var PipelineEventType =
|
|
5109
|
-
var PipelineDestinationGitType =
|
|
5110
|
-
var PipelineDestinationExtraType =
|
|
5111
|
-
var PipelineDestinationType =
|
|
5112
|
-
var Pipeline =
|
|
5113
|
-
id:
|
|
5114
|
-
name:
|
|
5212
|
+
var PipelineEventType = z158.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
5213
|
+
var PipelineDestinationGitType = z158.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
5214
|
+
var PipelineDestinationExtraType = z158.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
5215
|
+
var PipelineDestinationType = z158.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
5216
|
+
var Pipeline = z158.object({
|
|
5217
|
+
id: z158.string(),
|
|
5218
|
+
name: z158.string(),
|
|
5115
5219
|
eventType: PipelineEventType,
|
|
5116
|
-
isEnabled:
|
|
5117
|
-
workspaceId:
|
|
5118
|
-
designSystemId:
|
|
5119
|
-
exporterId:
|
|
5120
|
-
brandPersistentId:
|
|
5121
|
-
themePersistentId:
|
|
5122
|
-
themePersistentIds:
|
|
5220
|
+
isEnabled: z158.boolean(),
|
|
5221
|
+
workspaceId: z158.string(),
|
|
5222
|
+
designSystemId: z158.string(),
|
|
5223
|
+
exporterId: z158.string(),
|
|
5224
|
+
brandPersistentId: z158.string().optional(),
|
|
5225
|
+
themePersistentId: z158.string().optional(),
|
|
5226
|
+
themePersistentIds: z158.string().array().optional(),
|
|
5123
5227
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5124
|
-
isExporterDeprecated:
|
|
5228
|
+
isExporterDeprecated: z158.boolean(),
|
|
5125
5229
|
// Destinations
|
|
5126
5230
|
...ExportDestinationsMap.shape
|
|
5127
5231
|
});
|
|
5128
5232
|
|
|
5129
5233
|
// src/data-dumps/code-integration-dump.ts
|
|
5130
|
-
var ExportJobDump =
|
|
5131
|
-
id:
|
|
5132
|
-
createdAt:
|
|
5133
|
-
finishedAt:
|
|
5134
|
-
exportArtefacts:
|
|
5234
|
+
var ExportJobDump = z159.object({
|
|
5235
|
+
id: z159.string(),
|
|
5236
|
+
createdAt: z159.coerce.date(),
|
|
5237
|
+
finishedAt: z159.coerce.date(),
|
|
5238
|
+
exportArtefacts: z159.string()
|
|
5135
5239
|
});
|
|
5136
|
-
var CodeIntegrationDump =
|
|
5240
|
+
var CodeIntegrationDump = z159.object({
|
|
5137
5241
|
exporters: Exporter.array(),
|
|
5138
5242
|
pipelines: Pipeline.array(),
|
|
5139
5243
|
exportJobs: ExportJobDump.array()
|
|
5140
5244
|
});
|
|
5141
5245
|
|
|
5142
5246
|
// src/data-dumps/design-system-dump.ts
|
|
5143
|
-
import { z as
|
|
5247
|
+
import { z as z166 } from "zod";
|
|
5144
5248
|
|
|
5145
5249
|
// src/data-dumps/design-system-version-dump.ts
|
|
5146
|
-
import { z as
|
|
5250
|
+
import { z as z165 } from "zod";
|
|
5147
5251
|
|
|
5148
5252
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
5149
|
-
import { z as
|
|
5253
|
+
import { z as z160 } from "zod";
|
|
5150
5254
|
var DesignSystemVersionRoom = Entity.extend({
|
|
5151
|
-
designSystemVersionId:
|
|
5152
|
-
liveblocksId:
|
|
5153
|
-
});
|
|
5154
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
5155
|
-
routingVersion:
|
|
5156
|
-
isDraftFeatureAdopted:
|
|
5157
|
-
isApprovalFeatureEnabled:
|
|
5158
|
-
approvalRequiredForPublishing:
|
|
5159
|
-
});
|
|
5160
|
-
var DesignSystemVersionRoomInitialState =
|
|
5161
|
-
pages:
|
|
5162
|
-
groups:
|
|
5163
|
-
pageSnapshots:
|
|
5164
|
-
groupSnapshots:
|
|
5165
|
-
pageApprovals:
|
|
5255
|
+
designSystemVersionId: z160.string(),
|
|
5256
|
+
liveblocksId: z160.string()
|
|
5257
|
+
});
|
|
5258
|
+
var DesignSystemVersionRoomInternalSettings = z160.object({
|
|
5259
|
+
routingVersion: z160.string(),
|
|
5260
|
+
isDraftFeatureAdopted: z160.boolean(),
|
|
5261
|
+
isApprovalFeatureEnabled: z160.boolean(),
|
|
5262
|
+
approvalRequiredForPublishing: z160.boolean()
|
|
5263
|
+
});
|
|
5264
|
+
var DesignSystemVersionRoomInitialState = z160.object({
|
|
5265
|
+
pages: z160.array(DocumentationPageV2),
|
|
5266
|
+
groups: z160.array(ElementGroup),
|
|
5267
|
+
pageSnapshots: z160.array(DocumentationPageSnapshot),
|
|
5268
|
+
groupSnapshots: z160.array(ElementGroupSnapshot),
|
|
5269
|
+
pageApprovals: z160.array(DocumentationPageApproval),
|
|
5166
5270
|
internalSettings: DesignSystemVersionRoomInternalSettings,
|
|
5167
|
-
pageHashes:
|
|
5168
|
-
});
|
|
5169
|
-
var DesignSystemVersionRoomUpdate =
|
|
5170
|
-
pages:
|
|
5171
|
-
groups:
|
|
5172
|
-
pageIdsToDelete:
|
|
5173
|
-
groupIdsToDelete:
|
|
5174
|
-
pageSnapshots:
|
|
5175
|
-
groupSnapshots:
|
|
5176
|
-
pageSnapshotIdsToDelete:
|
|
5177
|
-
groupSnapshotIdsToDelete:
|
|
5178
|
-
pageHashesToUpdate:
|
|
5179
|
-
pageApprovals:
|
|
5180
|
-
pageApprovalIdsToDelete:
|
|
5181
|
-
executedTransactionIds:
|
|
5271
|
+
pageHashes: z160.record(z160.string()).optional()
|
|
5272
|
+
});
|
|
5273
|
+
var DesignSystemVersionRoomUpdate = z160.object({
|
|
5274
|
+
pages: z160.array(DocumentationPageV2),
|
|
5275
|
+
groups: z160.array(ElementGroup),
|
|
5276
|
+
pageIdsToDelete: z160.array(z160.string()),
|
|
5277
|
+
groupIdsToDelete: z160.array(z160.string()),
|
|
5278
|
+
pageSnapshots: z160.array(DocumentationPageSnapshot),
|
|
5279
|
+
groupSnapshots: z160.array(ElementGroupSnapshot),
|
|
5280
|
+
pageSnapshotIdsToDelete: z160.array(z160.string()),
|
|
5281
|
+
groupSnapshotIdsToDelete: z160.array(z160.string()),
|
|
5282
|
+
pageHashesToUpdate: z160.record(z160.string(), z160.string()),
|
|
5283
|
+
pageApprovals: z160.array(DocumentationPageApproval),
|
|
5284
|
+
pageApprovalIdsToDelete: z160.array(z160.string()),
|
|
5285
|
+
executedTransactionIds: z160.array(z160.string())
|
|
5182
5286
|
});
|
|
5183
5287
|
|
|
5184
5288
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
5185
|
-
import { z as
|
|
5289
|
+
import { z as z161 } from "zod";
|
|
5186
5290
|
var DocumentationPageRoom = Entity.extend({
|
|
5187
|
-
designSystemVersionId:
|
|
5188
|
-
documentationPageId:
|
|
5189
|
-
liveblocksId:
|
|
5190
|
-
isDirty:
|
|
5291
|
+
designSystemVersionId: z161.string(),
|
|
5292
|
+
documentationPageId: z161.string(),
|
|
5293
|
+
liveblocksId: z161.string(),
|
|
5294
|
+
isDirty: z161.boolean()
|
|
5191
5295
|
});
|
|
5192
|
-
var DocumentationPageRoomState =
|
|
5193
|
-
pageItems:
|
|
5296
|
+
var DocumentationPageRoomState = z161.object({
|
|
5297
|
+
pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5194
5298
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
5195
5299
|
});
|
|
5196
|
-
var DocumentationPageRoomRoomUpdate =
|
|
5300
|
+
var DocumentationPageRoomRoomUpdate = z161.object({
|
|
5197
5301
|
page: DocumentationPageV2,
|
|
5198
5302
|
pageParent: ElementGroup
|
|
5199
5303
|
});
|
|
5200
5304
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
5201
|
-
pageItems:
|
|
5202
|
-
blockDefinitions:
|
|
5305
|
+
pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5306
|
+
blockDefinitions: z161.array(PageBlockDefinition)
|
|
5203
5307
|
});
|
|
5204
|
-
var RestoredDocumentationPage =
|
|
5308
|
+
var RestoredDocumentationPage = z161.object({
|
|
5205
5309
|
page: DocumentationPageV2,
|
|
5206
5310
|
pageParent: ElementGroup,
|
|
5207
5311
|
pageContent: DocumentationPageContentData,
|
|
5208
|
-
contentHash:
|
|
5312
|
+
contentHash: z161.string()
|
|
5209
5313
|
});
|
|
5210
|
-
var RestoredDocumentationGroup =
|
|
5314
|
+
var RestoredDocumentationGroup = z161.object({
|
|
5211
5315
|
group: ElementGroup,
|
|
5212
5316
|
parent: ElementGroup
|
|
5213
5317
|
});
|
|
5214
5318
|
|
|
5215
5319
|
// src/liveblocks/rooms/room-type.ts
|
|
5216
|
-
import { z as
|
|
5320
|
+
import { z as z162 } from "zod";
|
|
5217
5321
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
5218
5322
|
RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
|
|
5219
5323
|
RoomTypeEnum2["DocumentationPage"] = "doc-page";
|
|
@@ -5221,36 +5325,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
5221
5325
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
5222
5326
|
return RoomTypeEnum2;
|
|
5223
5327
|
})(RoomTypeEnum || {});
|
|
5224
|
-
var RoomTypeSchema =
|
|
5328
|
+
var RoomTypeSchema = z162.nativeEnum(RoomTypeEnum);
|
|
5225
5329
|
var RoomType = RoomTypeSchema.enum;
|
|
5226
5330
|
|
|
5227
5331
|
// src/liveblocks/rooms/workspace-room.ts
|
|
5228
|
-
import { z as
|
|
5332
|
+
import { z as z163 } from "zod";
|
|
5229
5333
|
var WorkspaceRoom = Entity.extend({
|
|
5230
|
-
workspaceId:
|
|
5231
|
-
liveblocksId:
|
|
5334
|
+
workspaceId: z163.string(),
|
|
5335
|
+
liveblocksId: z163.string()
|
|
5232
5336
|
});
|
|
5233
5337
|
|
|
5234
5338
|
// src/data-dumps/published-docs-dump.ts
|
|
5235
|
-
import { z as
|
|
5236
|
-
var PublishedDocsDump =
|
|
5339
|
+
import { z as z164 } from "zod";
|
|
5340
|
+
var PublishedDocsDump = z164.object({
|
|
5237
5341
|
documentation: PublishedDoc,
|
|
5238
5342
|
pages: PublishedDocPage.array()
|
|
5239
5343
|
});
|
|
5240
5344
|
|
|
5241
5345
|
// src/data-dumps/design-system-version-dump.ts
|
|
5242
|
-
var DocumentationThreadDump =
|
|
5346
|
+
var DocumentationThreadDump = z165.object({
|
|
5243
5347
|
thread: DocumentationCommentThread,
|
|
5244
5348
|
comments: DocumentationComment.array()
|
|
5245
5349
|
});
|
|
5246
|
-
var DocumentationPageRoomDump =
|
|
5350
|
+
var DocumentationPageRoomDump = z165.object({
|
|
5247
5351
|
room: DocumentationPageRoom,
|
|
5248
5352
|
threads: DocumentationThreadDump.array()
|
|
5249
5353
|
});
|
|
5250
|
-
var DesignSystemVersionMultiplayerDump =
|
|
5354
|
+
var DesignSystemVersionMultiplayerDump = z165.object({
|
|
5251
5355
|
documentationPages: DocumentationPageRoomDump.array()
|
|
5252
5356
|
});
|
|
5253
|
-
var DesignSystemVersionDump =
|
|
5357
|
+
var DesignSystemVersionDump = z165.object({
|
|
5254
5358
|
version: DesignSystemVersion,
|
|
5255
5359
|
brands: Brand.array(),
|
|
5256
5360
|
elements: DesignElement.array(),
|
|
@@ -5265,7 +5369,7 @@ var DesignSystemVersionDump = z164.object({
|
|
|
5265
5369
|
});
|
|
5266
5370
|
|
|
5267
5371
|
// src/data-dumps/design-system-dump.ts
|
|
5268
|
-
var DesignSystemDump =
|
|
5372
|
+
var DesignSystemDump = z166.object({
|
|
5269
5373
|
designSystem: DesignSystem,
|
|
5270
5374
|
dataSources: DataSource.array(),
|
|
5271
5375
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -5274,50 +5378,50 @@ var DesignSystemDump = z165.object({
|
|
|
5274
5378
|
});
|
|
5275
5379
|
|
|
5276
5380
|
// src/data-dumps/user-data-dump.ts
|
|
5277
|
-
import { z as
|
|
5381
|
+
import { z as z169 } from "zod";
|
|
5278
5382
|
|
|
5279
5383
|
// src/data-dumps/workspace-dump.ts
|
|
5280
|
-
import { z as
|
|
5384
|
+
import { z as z168 } from "zod";
|
|
5281
5385
|
|
|
5282
5386
|
// src/integrations/integration.ts
|
|
5283
|
-
import { z as
|
|
5284
|
-
var IntegrationDesignSystem =
|
|
5285
|
-
designSystemId:
|
|
5286
|
-
brandId:
|
|
5287
|
-
title:
|
|
5288
|
-
userId:
|
|
5289
|
-
date:
|
|
5290
|
-
});
|
|
5291
|
-
var IntegrationCredentialsType =
|
|
5292
|
-
var IntegrationCredentialsState =
|
|
5293
|
-
var IntegrationCredentialsProfile =
|
|
5294
|
-
id: nullishToOptional(
|
|
5295
|
-
email: nullishToOptional(
|
|
5296
|
-
handle: nullishToOptional(
|
|
5297
|
-
type: nullishToOptional(
|
|
5298
|
-
avatarUrl: nullishToOptional(
|
|
5299
|
-
organization: nullishToOptional(
|
|
5300
|
-
collection: nullishToOptional(
|
|
5301
|
-
});
|
|
5302
|
-
var IntegrationCredentials =
|
|
5303
|
-
id:
|
|
5387
|
+
import { z as z167 } from "zod";
|
|
5388
|
+
var IntegrationDesignSystem = z167.object({
|
|
5389
|
+
designSystemId: z167.string(),
|
|
5390
|
+
brandId: z167.string(),
|
|
5391
|
+
title: z167.string().optional(),
|
|
5392
|
+
userId: z167.string().optional(),
|
|
5393
|
+
date: z167.coerce.date().optional()
|
|
5394
|
+
});
|
|
5395
|
+
var IntegrationCredentialsType = z167.enum(["OAuth2", "PAT"]);
|
|
5396
|
+
var IntegrationCredentialsState = z167.enum(["Active", "Inactive"]);
|
|
5397
|
+
var IntegrationCredentialsProfile = z167.object({
|
|
5398
|
+
id: nullishToOptional(z167.string()),
|
|
5399
|
+
email: nullishToOptional(z167.string()),
|
|
5400
|
+
handle: nullishToOptional(z167.string()),
|
|
5401
|
+
type: nullishToOptional(z167.string()),
|
|
5402
|
+
avatarUrl: nullishToOptional(z167.string()),
|
|
5403
|
+
organization: nullishToOptional(z167.string()),
|
|
5404
|
+
collection: nullishToOptional(z167.string())
|
|
5405
|
+
});
|
|
5406
|
+
var IntegrationCredentials = z167.object({
|
|
5407
|
+
id: z167.string(),
|
|
5304
5408
|
type: IntegrationCredentialsType,
|
|
5305
|
-
integrationId:
|
|
5306
|
-
accessToken:
|
|
5307
|
-
userId:
|
|
5308
|
-
createdAt:
|
|
5309
|
-
refreshToken:
|
|
5310
|
-
tokenName:
|
|
5311
|
-
expiresAt:
|
|
5312
|
-
refreshedAt:
|
|
5313
|
-
username:
|
|
5314
|
-
appInstallationId:
|
|
5409
|
+
integrationId: z167.string(),
|
|
5410
|
+
accessToken: z167.string(),
|
|
5411
|
+
userId: z167.string(),
|
|
5412
|
+
createdAt: z167.coerce.date(),
|
|
5413
|
+
refreshToken: z167.string().optional(),
|
|
5414
|
+
tokenName: z167.string().optional(),
|
|
5415
|
+
expiresAt: z167.coerce.date().optional(),
|
|
5416
|
+
refreshedAt: z167.coerce.date().optional(),
|
|
5417
|
+
username: z167.string().optional(),
|
|
5418
|
+
appInstallationId: z167.string().optional(),
|
|
5315
5419
|
profile: IntegrationCredentialsProfile.optional(),
|
|
5316
|
-
customUrl:
|
|
5420
|
+
customUrl: z167.string().optional(),
|
|
5317
5421
|
state: IntegrationCredentialsState,
|
|
5318
5422
|
user: UserMinified.optional()
|
|
5319
5423
|
});
|
|
5320
|
-
var ExtendedIntegrationType =
|
|
5424
|
+
var ExtendedIntegrationType = z167.enum([
|
|
5321
5425
|
"Figma",
|
|
5322
5426
|
"Github",
|
|
5323
5427
|
"Gitlab",
|
|
@@ -5328,26 +5432,26 @@ var ExtendedIntegrationType = z166.enum([
|
|
|
5328
5432
|
]);
|
|
5329
5433
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
5330
5434
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
5331
|
-
var Integration =
|
|
5332
|
-
id:
|
|
5333
|
-
workspaceId:
|
|
5435
|
+
var Integration = z167.object({
|
|
5436
|
+
id: z167.string(),
|
|
5437
|
+
workspaceId: z167.string(),
|
|
5334
5438
|
type: IntegrationType,
|
|
5335
|
-
createdAt:
|
|
5336
|
-
integrationCredentials:
|
|
5337
|
-
});
|
|
5338
|
-
var IntegrationToken =
|
|
5339
|
-
access_token:
|
|
5340
|
-
refresh_token:
|
|
5341
|
-
expires_in:
|
|
5342
|
-
token_type:
|
|
5343
|
-
token_name:
|
|
5344
|
-
token_azure_organization_name:
|
|
5439
|
+
createdAt: z167.coerce.date(),
|
|
5440
|
+
integrationCredentials: z167.array(IntegrationCredentials).optional()
|
|
5441
|
+
});
|
|
5442
|
+
var IntegrationToken = z167.object({
|
|
5443
|
+
access_token: z167.string(),
|
|
5444
|
+
refresh_token: z167.string().optional(),
|
|
5445
|
+
expires_in: z167.union([z167.number().optional(), z167.string().optional()]),
|
|
5446
|
+
token_type: z167.string().optional(),
|
|
5447
|
+
token_name: z167.string().optional(),
|
|
5448
|
+
token_azure_organization_name: z167.string().optional(),
|
|
5345
5449
|
// Azure Cloud PAT only
|
|
5346
|
-
token_azure_collection_name:
|
|
5450
|
+
token_azure_collection_name: z167.string().optional(),
|
|
5347
5451
|
// Azure Server PAT only
|
|
5348
|
-
token_bitbucket_username:
|
|
5452
|
+
token_bitbucket_username: z167.string().optional(),
|
|
5349
5453
|
// Bitbucket only
|
|
5350
|
-
custom_url:
|
|
5454
|
+
custom_url: z167.string().optional().transform((value) => {
|
|
5351
5455
|
if (!value?.trim()) return void 0;
|
|
5352
5456
|
return formatCustomUrl(value);
|
|
5353
5457
|
})
|
|
@@ -5384,7 +5488,7 @@ function formatCustomUrl(url) {
|
|
|
5384
5488
|
}
|
|
5385
5489
|
|
|
5386
5490
|
// src/data-dumps/workspace-dump.ts
|
|
5387
|
-
var WorkspaceDump =
|
|
5491
|
+
var WorkspaceDump = z168.object({
|
|
5388
5492
|
workspace: Workspace,
|
|
5389
5493
|
designSystems: DesignSystemDump.array(),
|
|
5390
5494
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -5392,124 +5496,124 @@ var WorkspaceDump = z167.object({
|
|
|
5392
5496
|
});
|
|
5393
5497
|
|
|
5394
5498
|
// src/data-dumps/user-data-dump.ts
|
|
5395
|
-
var UserDump =
|
|
5499
|
+
var UserDump = z169.object({
|
|
5396
5500
|
user: User,
|
|
5397
5501
|
workspaces: WorkspaceDump.array()
|
|
5398
5502
|
});
|
|
5399
5503
|
|
|
5400
5504
|
// src/docs-server/session.ts
|
|
5401
|
-
import { z as
|
|
5402
|
-
var NpmProxyToken =
|
|
5403
|
-
access:
|
|
5404
|
-
expiresAt:
|
|
5505
|
+
import { z as z170 } from "zod";
|
|
5506
|
+
var NpmProxyToken = z170.object({
|
|
5507
|
+
access: z170.string(),
|
|
5508
|
+
expiresAt: z170.number()
|
|
5405
5509
|
});
|
|
5406
|
-
var SessionData =
|
|
5407
|
-
returnToUrl:
|
|
5510
|
+
var SessionData = z170.object({
|
|
5511
|
+
returnToUrl: z170.string().optional(),
|
|
5408
5512
|
npmProxyToken: NpmProxyToken.optional()
|
|
5409
5513
|
});
|
|
5410
|
-
var Session =
|
|
5411
|
-
id:
|
|
5412
|
-
expiresAt:
|
|
5413
|
-
userId:
|
|
5414
|
-
anonymousId:
|
|
5514
|
+
var Session = z170.object({
|
|
5515
|
+
id: z170.string(),
|
|
5516
|
+
expiresAt: z170.coerce.date(),
|
|
5517
|
+
userId: z170.string().nullable(),
|
|
5518
|
+
anonymousId: z170.string().nullable(),
|
|
5415
5519
|
data: SessionData
|
|
5416
5520
|
});
|
|
5417
|
-
var AuthTokens =
|
|
5418
|
-
access:
|
|
5419
|
-
refresh:
|
|
5521
|
+
var AuthTokens = z170.object({
|
|
5522
|
+
access: z170.string(),
|
|
5523
|
+
refresh: z170.string()
|
|
5420
5524
|
});
|
|
5421
|
-
var UserSession =
|
|
5525
|
+
var UserSession = z170.object({
|
|
5422
5526
|
session: Session,
|
|
5423
5527
|
user: User.nullable()
|
|
5424
5528
|
});
|
|
5425
5529
|
|
|
5426
5530
|
// src/emails/design-system-invite.ts
|
|
5427
|
-
import { z as
|
|
5428
|
-
var DesignSystemInviteEmailRecipient =
|
|
5429
|
-
email:
|
|
5531
|
+
import { z as z171 } from "zod";
|
|
5532
|
+
var DesignSystemInviteEmailRecipient = z171.object({
|
|
5533
|
+
email: z171.string(),
|
|
5430
5534
|
role: WorkspaceRoleSchema
|
|
5431
5535
|
});
|
|
5432
|
-
var DesignSystemInviteEmailData =
|
|
5536
|
+
var DesignSystemInviteEmailData = z171.object({
|
|
5433
5537
|
workspace: Workspace,
|
|
5434
5538
|
designSystem: DesignSystem,
|
|
5435
5539
|
invitedBy: User,
|
|
5436
|
-
documentationDomain:
|
|
5540
|
+
documentationDomain: z171.string().optional()
|
|
5437
5541
|
});
|
|
5438
5542
|
|
|
5439
5543
|
// src/emails/workspace-invite.ts
|
|
5440
|
-
import { z as
|
|
5441
|
-
var WorkspaceInviteEmailRecipient =
|
|
5442
|
-
email:
|
|
5544
|
+
import { z as z172 } from "zod";
|
|
5545
|
+
var WorkspaceInviteEmailRecipient = z172.object({
|
|
5546
|
+
email: z172.string(),
|
|
5443
5547
|
role: WorkspaceRoleSchema
|
|
5444
5548
|
});
|
|
5445
|
-
var WorkspaceInviteEmailData =
|
|
5549
|
+
var WorkspaceInviteEmailData = z172.object({
|
|
5446
5550
|
workspace: Workspace,
|
|
5447
5551
|
invitedBy: User,
|
|
5448
|
-
documentationDomain:
|
|
5552
|
+
documentationDomain: z172.string().optional()
|
|
5449
5553
|
});
|
|
5450
5554
|
|
|
5451
5555
|
// src/events/base.ts
|
|
5452
|
-
import { z as
|
|
5556
|
+
import { z as z175 } from "zod";
|
|
5453
5557
|
|
|
5454
5558
|
// src/events/data-source-imported.ts
|
|
5455
|
-
import { z as
|
|
5456
|
-
var EventDataSourceImported =
|
|
5457
|
-
type:
|
|
5458
|
-
workspaceId:
|
|
5459
|
-
designSystemId:
|
|
5559
|
+
import { z as z173 } from "zod";
|
|
5560
|
+
var EventDataSourceImported = z173.object({
|
|
5561
|
+
type: z173.literal("DataSourceImported"),
|
|
5562
|
+
workspaceId: z173.string(),
|
|
5563
|
+
designSystemId: z173.string()
|
|
5460
5564
|
});
|
|
5461
5565
|
|
|
5462
5566
|
// src/events/version-released.ts
|
|
5463
|
-
import { z as
|
|
5464
|
-
var EventVersionReleased =
|
|
5465
|
-
type:
|
|
5466
|
-
workspaceId:
|
|
5467
|
-
designSystemId:
|
|
5468
|
-
versionId:
|
|
5567
|
+
import { z as z174 } from "zod";
|
|
5568
|
+
var EventVersionReleased = z174.object({
|
|
5569
|
+
type: z174.literal("DesignSystemVersionReleased"),
|
|
5570
|
+
workspaceId: z174.string(),
|
|
5571
|
+
designSystemId: z174.string(),
|
|
5572
|
+
versionId: z174.string()
|
|
5469
5573
|
});
|
|
5470
5574
|
|
|
5471
5575
|
// src/events/base.ts
|
|
5472
|
-
var Event =
|
|
5576
|
+
var Event = z175.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
5473
5577
|
|
|
5474
5578
|
// src/export/export-runner/export-context.ts
|
|
5475
|
-
import { z as
|
|
5476
|
-
var ExportJobDocumentationContext =
|
|
5477
|
-
isSingleVersionDocs:
|
|
5478
|
-
versionSlug:
|
|
5579
|
+
import { z as z176 } from "zod";
|
|
5580
|
+
var ExportJobDocumentationContext = z176.object({
|
|
5581
|
+
isSingleVersionDocs: z176.boolean(),
|
|
5582
|
+
versionSlug: z176.string(),
|
|
5479
5583
|
environment: PublishedDocEnvironment
|
|
5480
5584
|
});
|
|
5481
|
-
var ExportJobContext =
|
|
5482
|
-
apiUrl:
|
|
5483
|
-
accessToken:
|
|
5484
|
-
designSystemId:
|
|
5485
|
-
designSystemName:
|
|
5486
|
-
exporterId:
|
|
5487
|
-
versionId:
|
|
5488
|
-
brandId:
|
|
5489
|
-
themeId:
|
|
5490
|
-
themePersistentIds:
|
|
5491
|
-
previewMode:
|
|
5492
|
-
exporterName:
|
|
5585
|
+
var ExportJobContext = z176.object({
|
|
5586
|
+
apiUrl: z176.string(),
|
|
5587
|
+
accessToken: z176.string(),
|
|
5588
|
+
designSystemId: z176.string(),
|
|
5589
|
+
designSystemName: z176.string(),
|
|
5590
|
+
exporterId: z176.string(),
|
|
5591
|
+
versionId: z176.string(),
|
|
5592
|
+
brandId: z176.string().optional(),
|
|
5593
|
+
themeId: z176.string().optional(),
|
|
5594
|
+
themePersistentIds: z176.string().array().optional(),
|
|
5595
|
+
previewMode: z176.boolean().optional(),
|
|
5596
|
+
exporterName: z176.string(),
|
|
5493
5597
|
documentation: ExportJobDocumentationContext.optional()
|
|
5494
5598
|
});
|
|
5495
|
-
var ExportJobExporterConfiguration =
|
|
5496
|
-
exporterPackageUrl:
|
|
5599
|
+
var ExportJobExporterConfiguration = z176.object({
|
|
5600
|
+
exporterPackageUrl: z176.string(),
|
|
5497
5601
|
exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
|
|
5498
5602
|
exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
|
|
5499
5603
|
});
|
|
5500
5604
|
|
|
5501
5605
|
// src/export/export-runner/exporter-payload.ts
|
|
5502
|
-
import { z as
|
|
5503
|
-
var ExporterFunctionPayload =
|
|
5504
|
-
exportJobId:
|
|
5505
|
-
exportContextId:
|
|
5506
|
-
designSystemId:
|
|
5507
|
-
workspaceId:
|
|
5606
|
+
import { z as z177 } from "zod";
|
|
5607
|
+
var ExporterFunctionPayload = z177.object({
|
|
5608
|
+
exportJobId: z177.string(),
|
|
5609
|
+
exportContextId: z177.string(),
|
|
5610
|
+
designSystemId: z177.string(),
|
|
5611
|
+
workspaceId: z177.string()
|
|
5508
5612
|
});
|
|
5509
5613
|
|
|
5510
5614
|
// src/export/export-jobs.ts
|
|
5511
|
-
import { z as
|
|
5512
|
-
var ExportJobDestinationType =
|
|
5615
|
+
import { z as z178 } from "zod";
|
|
5616
|
+
var ExportJobDestinationType = z178.enum([
|
|
5513
5617
|
"s3",
|
|
5514
5618
|
"webhookUrl",
|
|
5515
5619
|
"github",
|
|
@@ -5518,30 +5622,30 @@ var ExportJobDestinationType = z177.enum([
|
|
|
5518
5622
|
"gitlab",
|
|
5519
5623
|
"bitbucket"
|
|
5520
5624
|
]);
|
|
5521
|
-
var ExportJobStatus =
|
|
5522
|
-
var ExportJobLogEntryType =
|
|
5523
|
-
var ExportJobLogEntry =
|
|
5524
|
-
id:
|
|
5525
|
-
time:
|
|
5625
|
+
var ExportJobStatus = z178.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
5626
|
+
var ExportJobLogEntryType = z178.enum(["success", "info", "warning", "error", "user"]);
|
|
5627
|
+
var ExportJobLogEntry = z178.object({
|
|
5628
|
+
id: z178.string().optional(),
|
|
5629
|
+
time: z178.coerce.date(),
|
|
5526
5630
|
type: ExportJobLogEntryType,
|
|
5527
|
-
message:
|
|
5631
|
+
message: z178.string()
|
|
5528
5632
|
});
|
|
5529
|
-
var ExportJobPullRequestDestinationResult =
|
|
5530
|
-
pullRequestUrl:
|
|
5633
|
+
var ExportJobPullRequestDestinationResult = z178.object({
|
|
5634
|
+
pullRequestUrl: z178.string()
|
|
5531
5635
|
});
|
|
5532
|
-
var ExportJobS3DestinationResult =
|
|
5533
|
-
bucket:
|
|
5534
|
-
urlPrefix:
|
|
5535
|
-
path:
|
|
5536
|
-
files:
|
|
5537
|
-
url: nullishToOptional(
|
|
5538
|
-
urls: nullishToOptional(
|
|
5636
|
+
var ExportJobS3DestinationResult = z178.object({
|
|
5637
|
+
bucket: z178.string(),
|
|
5638
|
+
urlPrefix: z178.string().optional(),
|
|
5639
|
+
path: z178.string(),
|
|
5640
|
+
files: z178.array(z178.string()),
|
|
5641
|
+
url: nullishToOptional(z178.string()),
|
|
5642
|
+
urls: nullishToOptional(z178.string().array())
|
|
5539
5643
|
});
|
|
5540
|
-
var ExportJobDocsDestinationResult =
|
|
5541
|
-
url:
|
|
5644
|
+
var ExportJobDocsDestinationResult = z178.object({
|
|
5645
|
+
url: z178.string()
|
|
5542
5646
|
});
|
|
5543
|
-
var ExportJobResult =
|
|
5544
|
-
error:
|
|
5647
|
+
var ExportJobResult = z178.object({
|
|
5648
|
+
error: z178.string().optional(),
|
|
5545
5649
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
5546
5650
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
5547
5651
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -5550,24 +5654,24 @@ var ExportJobResult = z177.object({
|
|
|
5550
5654
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
5551
5655
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
5552
5656
|
});
|
|
5553
|
-
var ExportJob =
|
|
5554
|
-
id:
|
|
5555
|
-
createdAt:
|
|
5556
|
-
finishedAt:
|
|
5557
|
-
designSystemId:
|
|
5558
|
-
designSystemVersionId:
|
|
5559
|
-
workspaceId:
|
|
5560
|
-
scheduleId:
|
|
5561
|
-
exporterId:
|
|
5562
|
-
brandId:
|
|
5563
|
-
themeId:
|
|
5564
|
-
themePersistentIds:
|
|
5565
|
-
estimatedExecutionTime:
|
|
5657
|
+
var ExportJob = z178.object({
|
|
5658
|
+
id: z178.string(),
|
|
5659
|
+
createdAt: z178.coerce.date(),
|
|
5660
|
+
finishedAt: z178.coerce.date().optional(),
|
|
5661
|
+
designSystemId: z178.string(),
|
|
5662
|
+
designSystemVersionId: z178.string(),
|
|
5663
|
+
workspaceId: z178.string(),
|
|
5664
|
+
scheduleId: z178.string().nullish(),
|
|
5665
|
+
exporterId: z178.string(),
|
|
5666
|
+
brandId: z178.string().optional(),
|
|
5667
|
+
themeId: z178.string().optional(),
|
|
5668
|
+
themePersistentIds: z178.string().array().optional(),
|
|
5669
|
+
estimatedExecutionTime: z178.number().optional(),
|
|
5566
5670
|
status: ExportJobStatus,
|
|
5567
5671
|
result: ExportJobResult.optional(),
|
|
5568
|
-
createdByUserId:
|
|
5672
|
+
createdByUserId: z178.string().optional(),
|
|
5569
5673
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5570
|
-
previewMode:
|
|
5674
|
+
previewMode: z178.boolean().optional(),
|
|
5571
5675
|
// Destinations
|
|
5572
5676
|
...ExportDestinationsMap.shape
|
|
5573
5677
|
});
|
|
@@ -5581,36 +5685,36 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
5581
5685
|
themeId: true,
|
|
5582
5686
|
brandId: true
|
|
5583
5687
|
}).extend({
|
|
5584
|
-
destinations:
|
|
5688
|
+
destinations: z178.array(ExportJobDestinationType),
|
|
5585
5689
|
docsEnvironment: PublishedDocEnvironment
|
|
5586
5690
|
}).partial();
|
|
5587
5691
|
|
|
5588
5692
|
// src/export/exporter-list-query.ts
|
|
5589
|
-
import { z as
|
|
5590
|
-
var ExporterType2 =
|
|
5591
|
-
var ListExporterQuery =
|
|
5592
|
-
limit:
|
|
5593
|
-
offset:
|
|
5693
|
+
import { z as z179 } from "zod";
|
|
5694
|
+
var ExporterType2 = z179.enum(["documentation", "code"]);
|
|
5695
|
+
var ListExporterQuery = z179.object({
|
|
5696
|
+
limit: z179.number().optional(),
|
|
5697
|
+
offset: z179.number().optional(),
|
|
5594
5698
|
type: ExporterType2.optional(),
|
|
5595
|
-
search:
|
|
5699
|
+
search: z179.string().optional()
|
|
5596
5700
|
});
|
|
5597
5701
|
|
|
5598
5702
|
// src/export/exporter-workspace-membership-role.ts
|
|
5599
|
-
import { z as
|
|
5600
|
-
var ExporterWorkspaceMembershipRole =
|
|
5703
|
+
import { z as z180 } from "zod";
|
|
5704
|
+
var ExporterWorkspaceMembershipRole = z180.enum(["Owner", "OwnerArchived", "User"]);
|
|
5601
5705
|
|
|
5602
5706
|
// src/export/exporter-workspace-membership.ts
|
|
5603
|
-
import { z as
|
|
5604
|
-
var ExporterWorkspaceMembership =
|
|
5605
|
-
id:
|
|
5606
|
-
workspaceId:
|
|
5607
|
-
exporterId:
|
|
5707
|
+
import { z as z181 } from "zod";
|
|
5708
|
+
var ExporterWorkspaceMembership = z181.object({
|
|
5709
|
+
id: z181.string(),
|
|
5710
|
+
workspaceId: z181.string(),
|
|
5711
|
+
exporterId: z181.string(),
|
|
5608
5712
|
role: ExporterWorkspaceMembershipRole
|
|
5609
5713
|
});
|
|
5610
5714
|
|
|
5611
5715
|
// src/feature-flags/feature-flags.ts
|
|
5612
|
-
import { z as
|
|
5613
|
-
var FlaggedFeature =
|
|
5716
|
+
import { z as z182 } from "zod";
|
|
5717
|
+
var FlaggedFeature = z182.enum([
|
|
5614
5718
|
"FigmaImporterV2",
|
|
5615
5719
|
"DisableImporter",
|
|
5616
5720
|
"VariablesOrder",
|
|
@@ -5618,22 +5722,23 @@ var FlaggedFeature = z181.enum([
|
|
|
5618
5722
|
"GradientPropsKeepAliases",
|
|
5619
5723
|
"ShadowPropsKeepAliases",
|
|
5620
5724
|
"NonCompatibleTypeChanges",
|
|
5621
|
-
"TypographyUseFontStyle"
|
|
5725
|
+
"TypographyUseFontStyle",
|
|
5726
|
+
"FigmaImporterV3"
|
|
5622
5727
|
]);
|
|
5623
|
-
var FeatureFlagMap =
|
|
5624
|
-
var FeatureFlag =
|
|
5625
|
-
id:
|
|
5728
|
+
var FeatureFlagMap = z182.record(FlaggedFeature, z182.boolean());
|
|
5729
|
+
var FeatureFlag = z182.object({
|
|
5730
|
+
id: z182.string(),
|
|
5626
5731
|
feature: FlaggedFeature,
|
|
5627
|
-
createdAt:
|
|
5628
|
-
enabled:
|
|
5629
|
-
designSystemId:
|
|
5732
|
+
createdAt: z182.coerce.date(),
|
|
5733
|
+
enabled: z182.boolean(),
|
|
5734
|
+
designSystemId: z182.string().optional()
|
|
5630
5735
|
});
|
|
5631
5736
|
|
|
5632
5737
|
// src/integrations/external-oauth-request.ts
|
|
5633
|
-
import { z as
|
|
5738
|
+
import { z as z184 } from "zod";
|
|
5634
5739
|
|
|
5635
5740
|
// src/integrations/oauth-providers.ts
|
|
5636
|
-
import { z as
|
|
5741
|
+
import { z as z183 } from "zod";
|
|
5637
5742
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5638
5743
|
OAuthProviderNames2["Figma"] = "figma";
|
|
5639
5744
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -5642,128 +5747,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
5642
5747
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
5643
5748
|
return OAuthProviderNames2;
|
|
5644
5749
|
})(OAuthProviderNames || {});
|
|
5645
|
-
var OAuthProviderSchema =
|
|
5750
|
+
var OAuthProviderSchema = z183.nativeEnum(OAuthProviderNames);
|
|
5646
5751
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
5647
5752
|
|
|
5648
5753
|
// src/integrations/external-oauth-request.ts
|
|
5649
|
-
var ExternalOAuthRequest =
|
|
5650
|
-
id:
|
|
5754
|
+
var ExternalOAuthRequest = z184.object({
|
|
5755
|
+
id: z184.string(),
|
|
5651
5756
|
provider: OAuthProviderSchema,
|
|
5652
|
-
userId:
|
|
5653
|
-
state:
|
|
5654
|
-
createdAt:
|
|
5757
|
+
userId: z184.string(),
|
|
5758
|
+
state: z184.string(),
|
|
5759
|
+
createdAt: z184.coerce.date()
|
|
5655
5760
|
});
|
|
5656
5761
|
|
|
5657
5762
|
// src/integrations/git.ts
|
|
5658
|
-
import { z as
|
|
5659
|
-
var GitObjectsQuery =
|
|
5660
|
-
organization:
|
|
5763
|
+
import { z as z185 } from "zod";
|
|
5764
|
+
var GitObjectsQuery = z185.object({
|
|
5765
|
+
organization: z185.string().optional(),
|
|
5661
5766
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5662
|
-
project:
|
|
5767
|
+
project: z185.string().optional(),
|
|
5663
5768
|
// Only for Bitbucket and Azure
|
|
5664
|
-
repository:
|
|
5769
|
+
repository: z185.string().optional(),
|
|
5665
5770
|
// For all providers. For Gitlab, it's called "project".
|
|
5666
|
-
branch:
|
|
5771
|
+
branch: z185.string().optional(),
|
|
5667
5772
|
// For all providers.
|
|
5668
|
-
user:
|
|
5773
|
+
user: z185.string().optional()
|
|
5669
5774
|
// Gitlab user
|
|
5670
5775
|
});
|
|
5671
|
-
var GitOrganization =
|
|
5672
|
-
id:
|
|
5673
|
-
name:
|
|
5674
|
-
url:
|
|
5675
|
-
slug:
|
|
5776
|
+
var GitOrganization = z185.object({
|
|
5777
|
+
id: z185.string(),
|
|
5778
|
+
name: z185.string(),
|
|
5779
|
+
url: z185.string(),
|
|
5780
|
+
slug: z185.string()
|
|
5676
5781
|
});
|
|
5677
|
-
var GitProject =
|
|
5678
|
-
id:
|
|
5679
|
-
name:
|
|
5680
|
-
url:
|
|
5681
|
-
slug:
|
|
5782
|
+
var GitProject = z185.object({
|
|
5783
|
+
id: z185.string(),
|
|
5784
|
+
name: z185.string(),
|
|
5785
|
+
url: z185.string(),
|
|
5786
|
+
slug: z185.string()
|
|
5682
5787
|
});
|
|
5683
|
-
var GitRepository =
|
|
5684
|
-
id:
|
|
5685
|
-
name:
|
|
5686
|
-
url:
|
|
5687
|
-
slug:
|
|
5788
|
+
var GitRepository = z185.object({
|
|
5789
|
+
id: z185.string(),
|
|
5790
|
+
name: z185.string(),
|
|
5791
|
+
url: z185.string(),
|
|
5792
|
+
slug: z185.string(),
|
|
5688
5793
|
/**
|
|
5689
5794
|
* Can be undefined when:
|
|
5690
5795
|
* - there are no branches in the repository yet
|
|
5691
5796
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5692
5797
|
*/
|
|
5693
|
-
defaultBranch:
|
|
5798
|
+
defaultBranch: z185.string().optional()
|
|
5694
5799
|
});
|
|
5695
|
-
var GitBranch =
|
|
5696
|
-
name:
|
|
5697
|
-
lastCommitId:
|
|
5800
|
+
var GitBranch = z185.object({
|
|
5801
|
+
name: z185.string(),
|
|
5802
|
+
lastCommitId: z185.string()
|
|
5698
5803
|
});
|
|
5699
5804
|
|
|
5700
5805
|
// src/integrations/oauth-token.ts
|
|
5701
|
-
import { z as
|
|
5702
|
-
var IntegrationTokenSchemaOld =
|
|
5703
|
-
id:
|
|
5806
|
+
import { z as z186 } from "zod";
|
|
5807
|
+
var IntegrationTokenSchemaOld = z186.object({
|
|
5808
|
+
id: z186.string(),
|
|
5704
5809
|
provider: OAuthProviderSchema,
|
|
5705
|
-
scope:
|
|
5706
|
-
userId:
|
|
5707
|
-
accessToken:
|
|
5708
|
-
refreshToken:
|
|
5709
|
-
expiresAt:
|
|
5710
|
-
externalUserId:
|
|
5810
|
+
scope: z186.string(),
|
|
5811
|
+
userId: z186.string(),
|
|
5812
|
+
accessToken: z186.string(),
|
|
5813
|
+
refreshToken: z186.string(),
|
|
5814
|
+
expiresAt: z186.coerce.date(),
|
|
5815
|
+
externalUserId: z186.string().nullish()
|
|
5711
5816
|
});
|
|
5712
5817
|
|
|
5713
5818
|
// src/integrations/workspace-oauth-requests.ts
|
|
5714
|
-
import { z as
|
|
5715
|
-
var WorkspaceOAuthRequestSchema =
|
|
5716
|
-
id:
|
|
5717
|
-
workspaceId:
|
|
5819
|
+
import { z as z187 } from "zod";
|
|
5820
|
+
var WorkspaceOAuthRequestSchema = z187.object({
|
|
5821
|
+
id: z187.string(),
|
|
5822
|
+
workspaceId: z187.string(),
|
|
5718
5823
|
provider: OAuthProviderSchema,
|
|
5719
|
-
userId:
|
|
5720
|
-
createdAt:
|
|
5824
|
+
userId: z187.string(),
|
|
5825
|
+
createdAt: z187.coerce.date()
|
|
5721
5826
|
});
|
|
5722
5827
|
|
|
5723
5828
|
// src/npm/npm-package.ts
|
|
5724
|
-
import { z as
|
|
5725
|
-
var AnyRecord =
|
|
5829
|
+
import { z as z188 } from "zod";
|
|
5830
|
+
var AnyRecord = z188.record(z188.any());
|
|
5726
5831
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5727
|
-
|
|
5728
|
-
tarball:
|
|
5832
|
+
z188.object({
|
|
5833
|
+
tarball: z188.string()
|
|
5729
5834
|
})
|
|
5730
5835
|
);
|
|
5731
5836
|
var NpmPackageVersion = AnyRecord.and(
|
|
5732
|
-
|
|
5837
|
+
z188.object({
|
|
5733
5838
|
dist: NpmPackageVersionDist
|
|
5734
5839
|
})
|
|
5735
5840
|
);
|
|
5736
5841
|
var NpmPackage = AnyRecord.and(
|
|
5737
|
-
|
|
5738
|
-
_id:
|
|
5739
|
-
name:
|
|
5842
|
+
z188.object({
|
|
5843
|
+
_id: z188.string(),
|
|
5844
|
+
name: z188.string(),
|
|
5740
5845
|
// e.g. "latest": "1.2.3"
|
|
5741
|
-
"dist-tags":
|
|
5846
|
+
"dist-tags": z188.record(z188.string(), z188.string()),
|
|
5742
5847
|
// "1.2.3": {...}
|
|
5743
|
-
versions:
|
|
5848
|
+
versions: z188.record(NpmPackageVersion)
|
|
5744
5849
|
})
|
|
5745
5850
|
);
|
|
5746
5851
|
|
|
5747
5852
|
// src/npm/npm-proxy-token-payload.ts
|
|
5748
|
-
import { z as
|
|
5749
|
-
var NpmProxyTokenPayload =
|
|
5750
|
-
npmProxyRegistryConfigId:
|
|
5853
|
+
import { z as z189 } from "zod";
|
|
5854
|
+
var NpmProxyTokenPayload = z189.object({
|
|
5855
|
+
npmProxyRegistryConfigId: z189.string()
|
|
5751
5856
|
});
|
|
5752
5857
|
|
|
5753
5858
|
// src/tokens/personal-access-token.ts
|
|
5754
|
-
import { z as
|
|
5755
|
-
var PersonalAccessToken =
|
|
5756
|
-
id:
|
|
5757
|
-
userId:
|
|
5758
|
-
workspaceId:
|
|
5759
|
-
designSystemId:
|
|
5859
|
+
import { z as z190 } from "zod";
|
|
5860
|
+
var PersonalAccessToken = z190.object({
|
|
5861
|
+
id: z190.string(),
|
|
5862
|
+
userId: z190.string(),
|
|
5863
|
+
workspaceId: z190.string().optional(),
|
|
5864
|
+
designSystemId: z190.string().optional(),
|
|
5760
5865
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5761
|
-
name:
|
|
5762
|
-
hidden:
|
|
5763
|
-
token:
|
|
5764
|
-
scope:
|
|
5765
|
-
createdAt:
|
|
5766
|
-
expireAt:
|
|
5866
|
+
name: z190.string(),
|
|
5867
|
+
hidden: z190.boolean(),
|
|
5868
|
+
token: z190.string(),
|
|
5869
|
+
scope: z190.string().optional(),
|
|
5870
|
+
createdAt: z190.coerce.date(),
|
|
5871
|
+
expireAt: z190.coerce.date().optional()
|
|
5767
5872
|
});
|
|
5768
5873
|
export {
|
|
5769
5874
|
Address,
|
|
@@ -5773,7 +5878,6 @@ export {
|
|
|
5773
5878
|
AssetFontProperties,
|
|
5774
5879
|
AssetImportModelInput,
|
|
5775
5880
|
AssetOrigin,
|
|
5776
|
-
AssetProcessStatus,
|
|
5777
5881
|
AssetProperties,
|
|
5778
5882
|
AssetReference,
|
|
5779
5883
|
AssetRenderConfiguration,
|
|
@@ -5803,9 +5907,11 @@ export {
|
|
|
5803
5907
|
CardSchema,
|
|
5804
5908
|
ChangedImportedFigmaSourceData,
|
|
5805
5909
|
CodeComponent,
|
|
5910
|
+
CodeComponentParentType,
|
|
5806
5911
|
CodeComponentProperty,
|
|
5807
|
-
|
|
5808
|
-
|
|
5912
|
+
CodeComponentResolvedType,
|
|
5913
|
+
CodeComponentResolvedTypeKind,
|
|
5914
|
+
CodeComponentUpsertResponse,
|
|
5809
5915
|
CodeIntegrationDump,
|
|
5810
5916
|
Collection,
|
|
5811
5917
|
CollectionImportModel,
|
|
@@ -5911,6 +6017,7 @@ export {
|
|
|
5911
6017
|
DocumentationPageContentItem,
|
|
5912
6018
|
DocumentationPageDataV1,
|
|
5913
6019
|
DocumentationPageDataV2,
|
|
6020
|
+
DocumentationPageDependencies,
|
|
5914
6021
|
DocumentationPageGroup,
|
|
5915
6022
|
DocumentationPageRoom,
|
|
5916
6023
|
DocumentationPageRoomDump,
|
|
@@ -6228,6 +6335,7 @@ export {
|
|
|
6228
6335
|
PageBlockItemSandboxValue,
|
|
6229
6336
|
PageBlockItemSingleSelectValue,
|
|
6230
6337
|
PageBlockItemStorybookValue,
|
|
6338
|
+
PageBlockItemStorybookValueOld,
|
|
6231
6339
|
PageBlockItemSwatch,
|
|
6232
6340
|
PageBlockItemTableCell,
|
|
6233
6341
|
PageBlockItemTableImageNode,
|
|
@@ -6250,6 +6358,8 @@ export {
|
|
|
6250
6358
|
PageBlockResourceFrameNodeReference,
|
|
6251
6359
|
PageBlockSelectedFigmaComponent,
|
|
6252
6360
|
PageBlockShortcut,
|
|
6361
|
+
PageBlockStorybookBlockConfig,
|
|
6362
|
+
PageBlockStorybookItem,
|
|
6253
6363
|
PageBlockSwatch,
|
|
6254
6364
|
PageBlockTableCellAlignment,
|
|
6255
6365
|
PageBlockTableColumn,
|
|
@@ -6478,6 +6588,7 @@ export {
|
|
|
6478
6588
|
sleep,
|
|
6479
6589
|
slugRegex,
|
|
6480
6590
|
slugify,
|
|
6591
|
+
storybookValueFromOldValue,
|
|
6481
6592
|
tokenAliasOrValue,
|
|
6482
6593
|
tokenElementTypes,
|
|
6483
6594
|
traversePageBlockItemValuesV2,
|