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