@supernova-studio/model 1.87.3 → 1.87.5
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 +1273 -84
- package/dist/index.d.ts +1273 -84
- package/dist/index.js +55 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +749 -734
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -359,7 +359,7 @@ var CustomDomain = z17.object({
|
|
|
359
359
|
});
|
|
360
360
|
|
|
361
361
|
// src/data-dumps/code-integration-dump.ts
|
|
362
|
-
import { z as
|
|
362
|
+
import { z as z182 } from "zod";
|
|
363
363
|
|
|
364
364
|
// src/export/exporter.ts
|
|
365
365
|
import { z as z21 } from "zod";
|
|
@@ -534,10 +534,10 @@ var Exporter = z21.object({
|
|
|
534
534
|
});
|
|
535
535
|
|
|
536
536
|
// src/export/pipeline.ts
|
|
537
|
-
import { z as
|
|
537
|
+
import { z as z181 } from "zod";
|
|
538
538
|
|
|
539
539
|
// src/export/export-destinations.ts
|
|
540
|
-
import { z as
|
|
540
|
+
import { z as z180 } from "zod";
|
|
541
541
|
|
|
542
542
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
543
543
|
import { z as z22 } from "zod";
|
|
@@ -4464,153 +4464,153 @@ var PageBlockDefinition = z112.object({
|
|
|
4464
4464
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
4465
4465
|
});
|
|
4466
4466
|
|
|
4467
|
-
// src/dsm/documentation/
|
|
4467
|
+
// src/dsm/documentation/configuration.ts
|
|
4468
4468
|
import { z as z113 } from "zod";
|
|
4469
|
-
var
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4469
|
+
var defaultDocsRenderCodePackageJson = `{
|
|
4470
|
+
"name": "supernova-live-react",
|
|
4471
|
+
"version": "1.0.0",
|
|
4472
|
+
"description": "Live React Code Packager",
|
|
4473
|
+
"keywords": ["react", "supernova"],
|
|
4474
|
+
"main": "src/index.js",
|
|
4475
|
+
"dependencies": {
|
|
4476
|
+
"react-dom": "latest",
|
|
4477
|
+
"react": "latest"
|
|
4478
|
+
},
|
|
4479
|
+
"devDependencies": {
|
|
4480
|
+
"@babel/runtime": "7.13.8",
|
|
4481
|
+
"typescript": "4.1.3"
|
|
4482
|
+
},
|
|
4483
|
+
"scripts": {
|
|
4484
|
+
"start": "react-scripts start",
|
|
4485
|
+
"build": "react-scripts build",
|
|
4486
|
+
"test": "react-scripts test --env=jsdom",
|
|
4487
|
+
"eject": "react-scripts eject"
|
|
4488
|
+
},
|
|
4489
|
+
"browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"]
|
|
4490
|
+
}`;
|
|
4491
|
+
var DocumentationConfiguration = z113.object({
|
|
4492
|
+
// Basic
|
|
4475
4493
|
designSystemVersionId: z113.string(),
|
|
4476
|
-
parentPersistentId: z113.string().nullish(),
|
|
4477
|
-
sortOrder: z113.number(),
|
|
4478
|
-
title: z113.string(),
|
|
4479
|
-
slug: z113.string(),
|
|
4480
|
-
userSlug: z113.string().nullish(),
|
|
4481
4494
|
createdAt: z113.coerce.date(),
|
|
4482
|
-
updatedAt: z113.coerce.date()
|
|
4495
|
+
updatedAt: z113.coerce.date(),
|
|
4496
|
+
// Configuration
|
|
4497
|
+
isTabbedLayoutEnabled: z113.boolean(),
|
|
4498
|
+
storybookEmbedErrorMessage: z113.string().optional(),
|
|
4499
|
+
renderCodePackageJson: z113.string().optional(),
|
|
4500
|
+
selectedBrandPersistentId: z113.string().optional(),
|
|
4501
|
+
serveDefaultVersionOnly: z113.boolean(),
|
|
4502
|
+
isPublic: z113.boolean()
|
|
4483
4503
|
});
|
|
4484
4504
|
|
|
4485
|
-
// src/dsm/documentation/
|
|
4505
|
+
// src/dsm/documentation/group.ts
|
|
4486
4506
|
import { z as z114 } from "zod";
|
|
4487
|
-
var
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4507
|
+
var DocumentationPageGroup = z114.object({
|
|
4508
|
+
type: z114.literal("ElementGroup"),
|
|
4509
|
+
childType: z114.literal("DocumentationPage"),
|
|
4510
|
+
id: z114.string(),
|
|
4511
|
+
persistentId: z114.string(),
|
|
4512
|
+
shortPersistentId: z114.string(),
|
|
4513
|
+
designSystemVersionId: z114.string(),
|
|
4514
|
+
parentPersistentId: z114.string().nullish(),
|
|
4515
|
+
sortOrder: z114.number(),
|
|
4516
|
+
title: z114.string(),
|
|
4517
|
+
slug: z114.string(),
|
|
4518
|
+
userSlug: z114.string().nullish(),
|
|
4519
|
+
createdAt: z114.coerce.date(),
|
|
4520
|
+
updatedAt: z114.coerce.date()
|
|
4491
4521
|
});
|
|
4492
4522
|
|
|
4493
|
-
// src/dsm/documentation/
|
|
4523
|
+
// src/dsm/documentation/link-preview.ts
|
|
4494
4524
|
import { z as z115 } from "zod";
|
|
4495
|
-
var
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4525
|
+
var DocumentationLinkPreview = z115.object({
|
|
4526
|
+
title: z115.string().optional(),
|
|
4527
|
+
description: z115.string().optional(),
|
|
4528
|
+
thumbnail: PageBlockImageReference.optional()
|
|
4499
4529
|
});
|
|
4500
4530
|
|
|
4501
|
-
// src/dsm/documentation/page-
|
|
4531
|
+
// src/dsm/documentation/page-anchor.ts
|
|
4502
4532
|
import { z as z116 } from "zod";
|
|
4503
|
-
var
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
updatedAt: z116.coerce.date(),
|
|
4508
|
-
documentationPageId: z116.string(),
|
|
4509
|
-
documentationPageName: z116.string(),
|
|
4510
|
-
storagePath: z116.string()
|
|
4533
|
+
var DocumentationPageAnchor = z116.object({
|
|
4534
|
+
blockId: z116.string(),
|
|
4535
|
+
level: z116.number(),
|
|
4536
|
+
text: z116.string()
|
|
4511
4537
|
});
|
|
4512
4538
|
|
|
4513
|
-
// src/dsm/documentation/page-content.ts
|
|
4539
|
+
// src/dsm/documentation/page-content-backup.ts
|
|
4514
4540
|
import { z as z117 } from "zod";
|
|
4515
|
-
var
|
|
4516
|
-
PageBlockEditorModelV2,
|
|
4517
|
-
PageSectionEditorModelV2
|
|
4518
|
-
]);
|
|
4519
|
-
var DocumentationPageContentData = z117.object({
|
|
4520
|
-
items: z117.array(DocumentationPageContentItem)
|
|
4521
|
-
});
|
|
4522
|
-
var DocumentationPageContent = z117.object({
|
|
4541
|
+
var DocumentationPageContentBackup = z117.object({
|
|
4523
4542
|
id: z117.string(),
|
|
4524
4543
|
designSystemVersionId: z117.string(),
|
|
4525
4544
|
createdAt: z117.coerce.date(),
|
|
4526
4545
|
updatedAt: z117.coerce.date(),
|
|
4527
4546
|
documentationPageId: z117.string(),
|
|
4528
|
-
|
|
4547
|
+
documentationPageName: z117.string(),
|
|
4548
|
+
storagePath: z117.string()
|
|
4529
4549
|
});
|
|
4530
4550
|
|
|
4531
|
-
// src/dsm/documentation/page-
|
|
4551
|
+
// src/dsm/documentation/page-content.ts
|
|
4532
4552
|
import { z as z118 } from "zod";
|
|
4533
|
-
var
|
|
4553
|
+
var DocumentationPageContentItem = z118.discriminatedUnion("type", [
|
|
4554
|
+
PageBlockEditorModelV2,
|
|
4555
|
+
PageSectionEditorModelV2
|
|
4556
|
+
]);
|
|
4557
|
+
var DocumentationPageContentData = z118.object({
|
|
4558
|
+
items: z118.array(DocumentationPageContentItem)
|
|
4559
|
+
});
|
|
4560
|
+
var DocumentationPageContent = z118.object({
|
|
4534
4561
|
id: z118.string(),
|
|
4535
4562
|
designSystemVersionId: z118.string(),
|
|
4536
4563
|
createdAt: z118.coerce.date(),
|
|
4537
4564
|
updatedAt: z118.coerce.date(),
|
|
4538
4565
|
documentationPageId: z118.string(),
|
|
4539
|
-
|
|
4540
|
-
figmaComponentPersistentIds: z118.set(z118.string()),
|
|
4541
|
-
componentPersistentIds: z118.set(z118.string()),
|
|
4542
|
-
figmaNodePersistentIds: z118.set(z118.string()),
|
|
4543
|
-
groupPersistentIds: z118.set(z118.string()),
|
|
4544
|
-
propertyPersistentIds: z118.set(z118.string()),
|
|
4545
|
-
themePersistentIds: z118.set(z118.string()),
|
|
4546
|
-
documentationPagePersistentIds: z118.set(z118.string()),
|
|
4547
|
-
storybookEntriesStoryIds: z118.array(z118.string())
|
|
4566
|
+
data: DocumentationPageContentData
|
|
4548
4567
|
});
|
|
4549
4568
|
|
|
4550
|
-
// src/dsm/documentation/page.ts
|
|
4569
|
+
// src/dsm/documentation/page-dependencies.ts
|
|
4551
4570
|
import { z as z119 } from "zod";
|
|
4552
|
-
var
|
|
4553
|
-
type: z119.literal("DocumentationPage"),
|
|
4571
|
+
var DocumentationPageDependencies = z119.object({
|
|
4554
4572
|
id: z119.string(),
|
|
4555
|
-
persistentId: z119.string(),
|
|
4556
|
-
shortPersistentId: z119.string(),
|
|
4557
4573
|
designSystemVersionId: z119.string(),
|
|
4558
|
-
parentPersistentId: z119.string().nullish(),
|
|
4559
|
-
sortOrder: z119.number(),
|
|
4560
|
-
title: z119.string(),
|
|
4561
|
-
slug: z119.string(),
|
|
4562
|
-
userSlug: z119.string().nullish(),
|
|
4563
4574
|
createdAt: z119.coerce.date(),
|
|
4564
|
-
updatedAt: z119.coerce.date()
|
|
4575
|
+
updatedAt: z119.coerce.date(),
|
|
4576
|
+
documentationPageId: z119.string(),
|
|
4577
|
+
tokenPersistentIds: z119.set(z119.string()),
|
|
4578
|
+
figmaComponentPersistentIds: z119.set(z119.string()),
|
|
4579
|
+
componentPersistentIds: z119.set(z119.string()),
|
|
4580
|
+
figmaNodePersistentIds: z119.set(z119.string()),
|
|
4581
|
+
groupPersistentIds: z119.set(z119.string()),
|
|
4582
|
+
propertyPersistentIds: z119.set(z119.string()),
|
|
4583
|
+
themePersistentIds: z119.set(z119.string()),
|
|
4584
|
+
documentationPagePersistentIds: z119.set(z119.string()),
|
|
4585
|
+
storybookEntriesStoryIds: z119.array(z119.string())
|
|
4565
4586
|
});
|
|
4566
4587
|
|
|
4567
|
-
// src/dsm/documentation/
|
|
4588
|
+
// src/dsm/documentation/page.ts
|
|
4568
4589
|
import { z as z120 } from "zod";
|
|
4569
|
-
var
|
|
4590
|
+
var DocumentationPage = z120.object({
|
|
4591
|
+
type: z120.literal("DocumentationPage"),
|
|
4570
4592
|
id: z120.string(),
|
|
4571
|
-
|
|
4572
|
-
|
|
4593
|
+
persistentId: z120.string(),
|
|
4594
|
+
shortPersistentId: z120.string(),
|
|
4595
|
+
designSystemVersionId: z120.string(),
|
|
4596
|
+
parentPersistentId: z120.string().nullish(),
|
|
4597
|
+
sortOrder: z120.number(),
|
|
4598
|
+
title: z120.string(),
|
|
4599
|
+
slug: z120.string(),
|
|
4600
|
+
userSlug: z120.string().nullish(),
|
|
4573
4601
|
createdAt: z120.coerce.date(),
|
|
4574
|
-
updatedAt: z120.coerce.date()
|
|
4575
|
-
designSystemId: z120.string()
|
|
4602
|
+
updatedAt: z120.coerce.date()
|
|
4576
4603
|
});
|
|
4577
4604
|
|
|
4578
|
-
// src/dsm/documentation/
|
|
4605
|
+
// src/dsm/documentation/redirects.ts
|
|
4579
4606
|
import { z as z121 } from "zod";
|
|
4580
|
-
var
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
"keywords": ["react", "supernova"],
|
|
4585
|
-
"main": "src/index.js",
|
|
4586
|
-
"dependencies": {
|
|
4587
|
-
"react-dom": "latest",
|
|
4588
|
-
"react": "latest"
|
|
4589
|
-
},
|
|
4590
|
-
"devDependencies": {
|
|
4591
|
-
"@babel/runtime": "7.13.8",
|
|
4592
|
-
"typescript": "4.1.3"
|
|
4593
|
-
},
|
|
4594
|
-
"scripts": {
|
|
4595
|
-
"start": "react-scripts start",
|
|
4596
|
-
"build": "react-scripts build",
|
|
4597
|
-
"test": "react-scripts test --env=jsdom",
|
|
4598
|
-
"eject": "react-scripts eject"
|
|
4599
|
-
},
|
|
4600
|
-
"browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"]
|
|
4601
|
-
}`;
|
|
4602
|
-
var DocumentationConfiguration = z121.object({
|
|
4603
|
-
// Basic
|
|
4604
|
-
designSystemVersionId: z121.string(),
|
|
4607
|
+
var PageRedirect = z121.object({
|
|
4608
|
+
id: z121.string(),
|
|
4609
|
+
pagePersistentId: z121.string(),
|
|
4610
|
+
path: z121.string(),
|
|
4605
4611
|
createdAt: z121.coerce.date(),
|
|
4606
4612
|
updatedAt: z121.coerce.date(),
|
|
4607
|
-
|
|
4608
|
-
isTabbedLayoutEnabled: z121.boolean(),
|
|
4609
|
-
storybookEmbedErrorMessage: z121.string().optional(),
|
|
4610
|
-
renderCodePackageJson: z121.string().optional(),
|
|
4611
|
-
selectedBrandPersistentId: z121.string().optional(),
|
|
4612
|
-
serveDefaultVersionOnly: z121.boolean(),
|
|
4613
|
-
isPublic: z121.boolean()
|
|
4613
|
+
designSystemId: z121.string()
|
|
4614
4614
|
});
|
|
4615
4615
|
|
|
4616
4616
|
// src/dsm/documentation/thread.ts
|
|
@@ -4902,6 +4902,7 @@ var FigmaExporterDesignNodeTypeSchema = z125.union([
|
|
|
4902
4902
|
z125.literal("FRAME"),
|
|
4903
4903
|
z125.literal("TEXT"),
|
|
4904
4904
|
z125.literal("SVG"),
|
|
4905
|
+
z125.literal("IMAGE"),
|
|
4905
4906
|
z125.literal("COMPONENT_INSTANCE")
|
|
4906
4907
|
]);
|
|
4907
4908
|
var baseDesignNodeObjectSchema = z125.object({
|
|
@@ -4924,6 +4925,10 @@ var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
|
4924
4925
|
type: z125.literal("SVG"),
|
|
4925
4926
|
svgString: z125.string()
|
|
4926
4927
|
});
|
|
4928
|
+
var imageNodeObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
4929
|
+
type: z125.literal("IMAGE"),
|
|
4930
|
+
src: z125.string()
|
|
4931
|
+
});
|
|
4927
4932
|
var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
4928
4933
|
type: z125.literal("COMPONENT_INSTANCE"),
|
|
4929
4934
|
componentSetName: z125.string(),
|
|
@@ -4943,6 +4948,7 @@ var svgNodeSchema = z125.lazy(
|
|
|
4943
4948
|
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
4944
4949
|
})
|
|
4945
4950
|
);
|
|
4951
|
+
var imageNodeSchema = imageNodeObjectSchema;
|
|
4946
4952
|
var componentInstanceNodeSchema = z125.lazy(
|
|
4947
4953
|
() => componentInstanceObjectSchema.extend({
|
|
4948
4954
|
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
@@ -4952,6 +4958,7 @@ var FigmaExporterAnyDesignNodeSchema = z125.union([
|
|
|
4952
4958
|
frameNodeSchema,
|
|
4953
4959
|
textNodeSchema,
|
|
4954
4960
|
svgNodeSchema,
|
|
4961
|
+
imageNodeSchema,
|
|
4955
4962
|
componentInstanceNodeSchema
|
|
4956
4963
|
]);
|
|
4957
4964
|
|
|
@@ -5809,303 +5816,309 @@ var DesignSystemMembershipUpdates = z167.object({
|
|
|
5809
5816
|
deleteInvitationIds: z167.string().array().optional()
|
|
5810
5817
|
});
|
|
5811
5818
|
|
|
5812
|
-
// src/dsm/
|
|
5819
|
+
// src/dsm/pipelines/query.ts
|
|
5813
5820
|
import { z as z168 } from "zod";
|
|
5814
|
-
var
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5821
|
+
var PipelineExporterQuery = z168.object({
|
|
5822
|
+
exporterId: z168.string().optional()
|
|
5823
|
+
});
|
|
5824
|
+
|
|
5825
|
+
// src/dsm/views/column.ts
|
|
5826
|
+
import { z as z169 } from "zod";
|
|
5827
|
+
var ElementViewBaseColumnType = z169.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
5828
|
+
var ElementViewColumnType = z169.union([
|
|
5829
|
+
z169.literal("BaseProperty"),
|
|
5830
|
+
z169.literal("PropertyDefinition"),
|
|
5831
|
+
z169.literal("Theme")
|
|
5819
5832
|
]);
|
|
5820
|
-
var ElementViewColumnSharedAttributes =
|
|
5821
|
-
id:
|
|
5822
|
-
persistentId:
|
|
5823
|
-
elementDataViewId:
|
|
5824
|
-
sortPosition:
|
|
5825
|
-
width:
|
|
5833
|
+
var ElementViewColumnSharedAttributes = z169.object({
|
|
5834
|
+
id: z169.string(),
|
|
5835
|
+
persistentId: z169.string(),
|
|
5836
|
+
elementDataViewId: z169.string(),
|
|
5837
|
+
sortPosition: z169.number(),
|
|
5838
|
+
width: z169.number()
|
|
5826
5839
|
});
|
|
5827
5840
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
5828
|
-
type:
|
|
5841
|
+
type: z169.literal("BaseProperty"),
|
|
5829
5842
|
basePropertyType: ElementViewBaseColumnType
|
|
5830
5843
|
});
|
|
5831
5844
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
5832
|
-
type:
|
|
5833
|
-
propertyDefinitionId:
|
|
5845
|
+
type: z169.literal("PropertyDefinition"),
|
|
5846
|
+
propertyDefinitionId: z169.string()
|
|
5834
5847
|
});
|
|
5835
5848
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
5836
|
-
type:
|
|
5837
|
-
themeId:
|
|
5849
|
+
type: z169.literal("Theme"),
|
|
5850
|
+
themeId: z169.string()
|
|
5838
5851
|
});
|
|
5839
|
-
var ElementViewColumn =
|
|
5852
|
+
var ElementViewColumn = z169.discriminatedUnion("type", [
|
|
5840
5853
|
ElementViewBasePropertyColumn,
|
|
5841
5854
|
ElementViewPropertyDefinitionColumn,
|
|
5842
5855
|
ElementViewThemeColumn
|
|
5843
5856
|
]);
|
|
5844
5857
|
|
|
5845
5858
|
// src/dsm/views/view.ts
|
|
5846
|
-
import { z as z169 } from "zod";
|
|
5847
|
-
var ElementView = z169.object({
|
|
5848
|
-
id: z169.string(),
|
|
5849
|
-
persistentId: z169.string(),
|
|
5850
|
-
designSystemVersionId: z169.string(),
|
|
5851
|
-
name: z169.string(),
|
|
5852
|
-
description: z169.string(),
|
|
5853
|
-
targetElementType: ElementPropertyTargetType,
|
|
5854
|
-
isDefault: z169.boolean()
|
|
5855
|
-
});
|
|
5856
|
-
|
|
5857
|
-
// src/dsm/brand.ts
|
|
5858
5859
|
import { z as z170 } from "zod";
|
|
5859
|
-
var
|
|
5860
|
+
var ElementView = z170.object({
|
|
5860
5861
|
id: z170.string(),
|
|
5861
|
-
designSystemVersionId: z170.string(),
|
|
5862
5862
|
persistentId: z170.string(),
|
|
5863
|
+
designSystemVersionId: z170.string(),
|
|
5863
5864
|
name: z170.string(),
|
|
5864
|
-
description: z170.string()
|
|
5865
|
+
description: z170.string(),
|
|
5866
|
+
targetElementType: ElementPropertyTargetType,
|
|
5867
|
+
isDefault: z170.boolean()
|
|
5865
5868
|
});
|
|
5866
5869
|
|
|
5867
|
-
// src/dsm/
|
|
5870
|
+
// src/dsm/brand.ts
|
|
5868
5871
|
import { z as z171 } from "zod";
|
|
5869
|
-
var
|
|
5870
|
-
var DesignSystemSwitcher = z171.object({
|
|
5871
|
-
isEnabled: z171.boolean(),
|
|
5872
|
-
designSystemIds: z171.array(z171.string())
|
|
5873
|
-
});
|
|
5874
|
-
var DesignSystem = z171.object({
|
|
5872
|
+
var Brand = z171.object({
|
|
5875
5873
|
id: z171.string(),
|
|
5876
|
-
|
|
5874
|
+
designSystemVersionId: z171.string(),
|
|
5875
|
+
persistentId: z171.string(),
|
|
5877
5876
|
name: z171.string(),
|
|
5878
|
-
description: z171.string()
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5877
|
+
description: z171.string()
|
|
5878
|
+
});
|
|
5879
|
+
|
|
5880
|
+
// src/dsm/design-system.ts
|
|
5881
|
+
import { z as z172 } from "zod";
|
|
5882
|
+
var DesignSystemAccessMode = z172.enum(["Open", "InviteOnly"]);
|
|
5883
|
+
var DesignSystemSwitcher = z172.object({
|
|
5884
|
+
isEnabled: z172.boolean(),
|
|
5885
|
+
designSystemIds: z172.array(z172.string())
|
|
5886
|
+
});
|
|
5887
|
+
var DesignSystem = z172.object({
|
|
5888
|
+
id: z172.string(),
|
|
5889
|
+
workspaceId: z172.string(),
|
|
5890
|
+
name: z172.string(),
|
|
5891
|
+
description: z172.string(),
|
|
5892
|
+
docExporterId: nullishToOptional(z172.string()),
|
|
5893
|
+
docSlug: z172.string(),
|
|
5894
|
+
docUserSlug: nullishToOptional(z172.string()),
|
|
5895
|
+
docSlugDeprecated: z172.string(),
|
|
5896
|
+
isMultibrand: z172.boolean(),
|
|
5897
|
+
docViewUrl: nullishToOptional(z172.string()),
|
|
5898
|
+
basePrefixes: z172.array(z172.string()),
|
|
5886
5899
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
5887
|
-
isApprovalFeatureEnabled:
|
|
5888
|
-
approvalRequiredForPublishing:
|
|
5900
|
+
isApprovalFeatureEnabled: z172.boolean(),
|
|
5901
|
+
approvalRequiredForPublishing: z172.boolean(),
|
|
5889
5902
|
accessMode: DesignSystemAccessMode,
|
|
5890
|
-
membersGenerated:
|
|
5891
|
-
sharedDraftId:
|
|
5892
|
-
createdAt:
|
|
5893
|
-
updatedAt:
|
|
5903
|
+
membersGenerated: z172.boolean(),
|
|
5904
|
+
sharedDraftId: z172.string().optional(),
|
|
5905
|
+
createdAt: z172.coerce.date(),
|
|
5906
|
+
updatedAt: z172.coerce.date()
|
|
5894
5907
|
});
|
|
5895
5908
|
|
|
5896
5909
|
// src/dsm/exporter-property-values-collection.ts
|
|
5897
|
-
import { z as
|
|
5898
|
-
var ExporterPropertyImageValue =
|
|
5910
|
+
import { z as z173 } from "zod";
|
|
5911
|
+
var ExporterPropertyImageValue = z173.object({
|
|
5899
5912
|
asset: PageBlockAsset.optional(),
|
|
5900
|
-
assetId:
|
|
5901
|
-
assetUrl:
|
|
5902
|
-
});
|
|
5903
|
-
var ExporterConfigurationPropertyValue =
|
|
5904
|
-
key:
|
|
5905
|
-
value:
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5913
|
+
assetId: z173.string().optional(),
|
|
5914
|
+
assetUrl: z173.string().optional()
|
|
5915
|
+
});
|
|
5916
|
+
var ExporterConfigurationPropertyValue = z173.object({
|
|
5917
|
+
key: z173.string(),
|
|
5918
|
+
value: z173.union([
|
|
5919
|
+
z173.number(),
|
|
5920
|
+
z173.string(),
|
|
5921
|
+
z173.boolean(),
|
|
5909
5922
|
ExporterPropertyImageValue,
|
|
5910
5923
|
ColorTokenData,
|
|
5911
5924
|
TypographyTokenData
|
|
5912
5925
|
])
|
|
5913
5926
|
});
|
|
5914
|
-
var ExporterPropertyValuesCollection =
|
|
5915
|
-
id:
|
|
5916
|
-
designSystemId:
|
|
5917
|
-
exporterId:
|
|
5918
|
-
values:
|
|
5927
|
+
var ExporterPropertyValuesCollection = z173.object({
|
|
5928
|
+
id: z173.string(),
|
|
5929
|
+
designSystemId: z173.string(),
|
|
5930
|
+
exporterId: z173.string(),
|
|
5931
|
+
values: z173.array(ExporterConfigurationPropertyValue)
|
|
5919
5932
|
});
|
|
5920
5933
|
|
|
5921
5934
|
// src/dsm/published-doc-page-visits.ts
|
|
5922
|
-
import { z as
|
|
5923
|
-
var PublishedDocPageVisitsEntry =
|
|
5924
|
-
id:
|
|
5925
|
-
versionId:
|
|
5926
|
-
pagePersistentId:
|
|
5927
|
-
locale:
|
|
5928
|
-
timestamp:
|
|
5929
|
-
visits:
|
|
5930
|
-
userId: nullishToOptional(
|
|
5931
|
-
anonymousId: nullishToOptional(
|
|
5935
|
+
import { z as z174 } from "zod";
|
|
5936
|
+
var PublishedDocPageVisitsEntry = z174.object({
|
|
5937
|
+
id: z174.string(),
|
|
5938
|
+
versionId: z174.string(),
|
|
5939
|
+
pagePersistentId: z174.string(),
|
|
5940
|
+
locale: z174.string().optional(),
|
|
5941
|
+
timestamp: z174.coerce.date(),
|
|
5942
|
+
visits: z174.number(),
|
|
5943
|
+
userId: nullishToOptional(z174.string()),
|
|
5944
|
+
anonymousId: nullishToOptional(z174.string())
|
|
5932
5945
|
});
|
|
5933
5946
|
|
|
5934
5947
|
// src/dsm/published-doc-page.ts
|
|
5935
|
-
import { z as
|
|
5948
|
+
import { z as z175 } from "zod";
|
|
5936
5949
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
5937
5950
|
function tryParseShortPersistentId(url = "/") {
|
|
5938
5951
|
const lastUrlPart = url.split("/").pop() || "";
|
|
5939
5952
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
5940
5953
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
5941
5954
|
}
|
|
5942
|
-
var PublishedDocPage =
|
|
5943
|
-
id:
|
|
5944
|
-
publishedDocId:
|
|
5945
|
-
pageShortPersistentId:
|
|
5946
|
-
pagePersistentId:
|
|
5947
|
-
pathV1:
|
|
5948
|
-
pathV2:
|
|
5949
|
-
storagePath:
|
|
5950
|
-
locale:
|
|
5951
|
-
isPrivate:
|
|
5952
|
-
isHidden:
|
|
5953
|
-
createdAt:
|
|
5954
|
-
updatedAt:
|
|
5955
|
+
var PublishedDocPage = z175.object({
|
|
5956
|
+
id: z175.string(),
|
|
5957
|
+
publishedDocId: z175.string(),
|
|
5958
|
+
pageShortPersistentId: z175.string(),
|
|
5959
|
+
pagePersistentId: z175.string().optional(),
|
|
5960
|
+
pathV1: z175.string(),
|
|
5961
|
+
pathV2: z175.string(),
|
|
5962
|
+
storagePath: z175.string(),
|
|
5963
|
+
locale: z175.string().optional(),
|
|
5964
|
+
isPrivate: z175.boolean(),
|
|
5965
|
+
isHidden: z175.boolean(),
|
|
5966
|
+
createdAt: z175.coerce.date(),
|
|
5967
|
+
updatedAt: z175.coerce.date()
|
|
5955
5968
|
});
|
|
5956
5969
|
|
|
5957
5970
|
// src/dsm/published-doc.ts
|
|
5958
|
-
import { z as
|
|
5971
|
+
import { z as z176 } from "zod";
|
|
5959
5972
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
5960
|
-
var PublishedDocEnvironment =
|
|
5961
|
-
var PublishedDocsChecksums =
|
|
5962
|
-
var PublishedDocRoutingVersion =
|
|
5963
|
-
var PublishedDoc =
|
|
5964
|
-
id:
|
|
5965
|
-
designSystemVersionId:
|
|
5966
|
-
createdAt:
|
|
5967
|
-
updatedAt:
|
|
5968
|
-
lastPublishedAt:
|
|
5969
|
-
isDefault:
|
|
5970
|
-
isPublic:
|
|
5973
|
+
var PublishedDocEnvironment = z176.enum(publishedDocEnvironments);
|
|
5974
|
+
var PublishedDocsChecksums = z176.record(z176.string());
|
|
5975
|
+
var PublishedDocRoutingVersion = z176.enum(["1", "2"]);
|
|
5976
|
+
var PublishedDoc = z176.object({
|
|
5977
|
+
id: z176.string(),
|
|
5978
|
+
designSystemVersionId: z176.string(),
|
|
5979
|
+
createdAt: z176.coerce.date(),
|
|
5980
|
+
updatedAt: z176.coerce.date(),
|
|
5981
|
+
lastPublishedAt: z176.coerce.date(),
|
|
5982
|
+
isDefault: z176.boolean(),
|
|
5983
|
+
isPublic: z176.boolean(),
|
|
5971
5984
|
environment: PublishedDocEnvironment,
|
|
5972
5985
|
checksums: PublishedDocsChecksums,
|
|
5973
|
-
storagePath:
|
|
5974
|
-
wasMigrated:
|
|
5986
|
+
storagePath: z176.string(),
|
|
5987
|
+
wasMigrated: z176.boolean(),
|
|
5975
5988
|
routingVersion: PublishedDocRoutingVersion,
|
|
5976
|
-
usesLocalizations:
|
|
5977
|
-
wasPublishedWithLocalizations:
|
|
5978
|
-
tokenCount:
|
|
5979
|
-
assetCount:
|
|
5989
|
+
usesLocalizations: z176.boolean(),
|
|
5990
|
+
wasPublishedWithLocalizations: z176.boolean(),
|
|
5991
|
+
tokenCount: z176.number(),
|
|
5992
|
+
assetCount: z176.number()
|
|
5980
5993
|
});
|
|
5981
5994
|
|
|
5982
5995
|
// src/dsm/storybook-entry.ts
|
|
5983
|
-
import { z as
|
|
5984
|
-
var StorybookEntryOrigin =
|
|
5985
|
-
id:
|
|
5986
|
-
type:
|
|
5987
|
-
name:
|
|
5988
|
-
title:
|
|
5996
|
+
import { z as z177 } from "zod";
|
|
5997
|
+
var StorybookEntryOrigin = z177.object({
|
|
5998
|
+
id: z177.string(),
|
|
5999
|
+
type: z177.enum(["story", "docs"]),
|
|
6000
|
+
name: z177.string(),
|
|
6001
|
+
title: z177.string(),
|
|
5989
6002
|
// Same as 'kind' for v3
|
|
5990
|
-
index:
|
|
6003
|
+
index: z177.number().optional()
|
|
5991
6004
|
});
|
|
5992
|
-
var StorybookEntry =
|
|
5993
|
-
id: z176.string(),
|
|
5994
|
-
storyId: z176.string(),
|
|
5995
|
-
designSystemId: z176.string(),
|
|
5996
|
-
sourceId: z176.string(),
|
|
5997
|
-
aliases: z176.array(z176.string()).optional(),
|
|
5998
|
-
url: z176.string(),
|
|
5999
|
-
isDeleted: z176.boolean().optional(),
|
|
6000
|
-
origin: StorybookEntryOrigin,
|
|
6001
|
-
createdAt: z176.coerce.date(),
|
|
6002
|
-
updatedAt: z176.coerce.date()
|
|
6003
|
-
});
|
|
6004
|
-
|
|
6005
|
-
// src/dsm/storybook-payload.ts
|
|
6006
|
-
import { z as z177 } from "zod";
|
|
6007
|
-
var StorybookPayload = z177.object({
|
|
6005
|
+
var StorybookEntry = z177.object({
|
|
6008
6006
|
id: z177.string(),
|
|
6007
|
+
storyId: z177.string(),
|
|
6009
6008
|
designSystemId: z177.string(),
|
|
6010
6009
|
sourceId: z177.string(),
|
|
6011
|
-
|
|
6010
|
+
aliases: z177.array(z177.string()).optional(),
|
|
6011
|
+
url: z177.string(),
|
|
6012
|
+
isDeleted: z177.boolean().optional(),
|
|
6013
|
+
origin: StorybookEntryOrigin,
|
|
6012
6014
|
createdAt: z177.coerce.date(),
|
|
6013
6015
|
updatedAt: z177.coerce.date()
|
|
6014
6016
|
});
|
|
6015
6017
|
|
|
6016
|
-
// src/dsm/
|
|
6018
|
+
// src/dsm/storybook-payload.ts
|
|
6017
6019
|
import { z as z178 } from "zod";
|
|
6018
|
-
var
|
|
6019
|
-
id: z178.string(),
|
|
6020
|
-
version: z178.string(),
|
|
6021
|
-
createdAt: z178.coerce.date(),
|
|
6022
|
-
designSystemId: z178.string(),
|
|
6023
|
-
name: z178.string(),
|
|
6024
|
-
comment: z178.string(),
|
|
6025
|
-
isReadonly: z178.boolean(),
|
|
6026
|
-
changeLog: z178.string(),
|
|
6027
|
-
parentId: z178.string().optional(),
|
|
6028
|
-
isDraftsFeatureAdopted: z178.boolean()
|
|
6029
|
-
});
|
|
6030
|
-
var VersionCreationJobStatus = z178.enum(["Success", "InProgress", "Error"]);
|
|
6031
|
-
var VersionCreationJob = z178.object({
|
|
6020
|
+
var StorybookPayload = z178.object({
|
|
6032
6021
|
id: z178.string(),
|
|
6033
|
-
version: z178.string(),
|
|
6034
6022
|
designSystemId: z178.string(),
|
|
6035
|
-
|
|
6023
|
+
sourceId: z178.string(),
|
|
6024
|
+
payload: z178.any(),
|
|
6025
|
+
createdAt: z178.coerce.date(),
|
|
6026
|
+
updatedAt: z178.coerce.date()
|
|
6027
|
+
});
|
|
6028
|
+
|
|
6029
|
+
// src/dsm/version.ts
|
|
6030
|
+
import { z as z179 } from "zod";
|
|
6031
|
+
var DesignSystemVersion = z179.object({
|
|
6032
|
+
id: z179.string(),
|
|
6033
|
+
version: z179.string(),
|
|
6034
|
+
createdAt: z179.coerce.date(),
|
|
6035
|
+
designSystemId: z179.string(),
|
|
6036
|
+
name: z179.string(),
|
|
6037
|
+
comment: z179.string(),
|
|
6038
|
+
isReadonly: z179.boolean(),
|
|
6039
|
+
changeLog: z179.string(),
|
|
6040
|
+
parentId: z179.string().optional(),
|
|
6041
|
+
isDraftsFeatureAdopted: z179.boolean()
|
|
6042
|
+
});
|
|
6043
|
+
var VersionCreationJobStatus = z179.enum(["Success", "InProgress", "Error"]);
|
|
6044
|
+
var VersionCreationJob = z179.object({
|
|
6045
|
+
id: z179.string(),
|
|
6046
|
+
version: z179.string(),
|
|
6047
|
+
designSystemId: z179.string(),
|
|
6048
|
+
designSystemVersionId: nullishToOptional(z179.string()),
|
|
6036
6049
|
status: VersionCreationJobStatus,
|
|
6037
|
-
errorMessage: nullishToOptional(
|
|
6050
|
+
errorMessage: nullishToOptional(z179.string())
|
|
6038
6051
|
});
|
|
6039
6052
|
|
|
6040
6053
|
// src/export/export-destinations.ts
|
|
6041
6054
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
6042
6055
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
6043
|
-
var ExportJobDocumentationChanges =
|
|
6044
|
-
pagePersistentIds:
|
|
6045
|
-
groupPersistentIds:
|
|
6046
|
-
selectivePublishing:
|
|
6056
|
+
var ExportJobDocumentationChanges = z180.object({
|
|
6057
|
+
pagePersistentIds: z180.string().array(),
|
|
6058
|
+
groupPersistentIds: z180.string().array(),
|
|
6059
|
+
selectivePublishing: z180.boolean().optional()
|
|
6047
6060
|
});
|
|
6048
|
-
var ExporterDestinationDocs =
|
|
6061
|
+
var ExporterDestinationDocs = z180.object({
|
|
6049
6062
|
environment: PublishedDocEnvironment,
|
|
6050
6063
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
6051
6064
|
});
|
|
6052
|
-
var GitCommonDestinationOptions =
|
|
6053
|
-
branch:
|
|
6054
|
-
relativePath: nullishToOptional(
|
|
6055
|
-
purgeDirectory: nullishToOptional(
|
|
6056
|
-
commitAuthorName: nullishToOptional(
|
|
6057
|
-
commitAuthorEmail: nullishToOptional(
|
|
6058
|
-
commitMessage: nullishToOptional(
|
|
6059
|
-
pullRequestTitle: nullishToOptional(
|
|
6060
|
-
pullRequestDescription: nullishToOptional(
|
|
6061
|
-
checkoutNoTags: nullishToOptional(
|
|
6062
|
-
checkoutNoBlobs: nullishToOptional(
|
|
6063
|
-
checkoutSparse: nullishToOptional(
|
|
6064
|
-
});
|
|
6065
|
-
var ExporterDestinationS3 =
|
|
6066
|
-
var ExporterDestinationGithub =
|
|
6067
|
-
credentialId:
|
|
6065
|
+
var GitCommonDestinationOptions = z180.object({
|
|
6066
|
+
branch: z180.string(),
|
|
6067
|
+
relativePath: nullishToOptional(z180.string()),
|
|
6068
|
+
purgeDirectory: nullishToOptional(z180.boolean()),
|
|
6069
|
+
commitAuthorName: nullishToOptional(z180.string()),
|
|
6070
|
+
commitAuthorEmail: nullishToOptional(z180.string()),
|
|
6071
|
+
commitMessage: nullishToOptional(z180.string()),
|
|
6072
|
+
pullRequestTitle: nullishToOptional(z180.string()),
|
|
6073
|
+
pullRequestDescription: nullishToOptional(z180.string()),
|
|
6074
|
+
checkoutNoTags: nullishToOptional(z180.boolean()),
|
|
6075
|
+
checkoutNoBlobs: nullishToOptional(z180.boolean()),
|
|
6076
|
+
checkoutSparse: nullishToOptional(z180.boolean())
|
|
6077
|
+
});
|
|
6078
|
+
var ExporterDestinationS3 = z180.object({});
|
|
6079
|
+
var ExporterDestinationGithub = z180.object({
|
|
6080
|
+
credentialId: z180.string().optional(),
|
|
6068
6081
|
// Repository
|
|
6069
|
-
url:
|
|
6082
|
+
url: z180.string(),
|
|
6070
6083
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
6071
|
-
connectionId: nullishToOptional(
|
|
6072
|
-
userId: nullishToOptional(
|
|
6084
|
+
connectionId: nullishToOptional(z180.string()),
|
|
6085
|
+
userId: nullishToOptional(z180.number())
|
|
6073
6086
|
}).extend(GitCommonDestinationOptions.shape);
|
|
6074
|
-
var ExporterDestinationAzure =
|
|
6075
|
-
credentialId:
|
|
6087
|
+
var ExporterDestinationAzure = z180.object({
|
|
6088
|
+
credentialId: z180.string().optional(),
|
|
6076
6089
|
// Repository
|
|
6077
|
-
organizationId:
|
|
6078
|
-
projectId:
|
|
6079
|
-
repositoryId:
|
|
6090
|
+
organizationId: z180.string(),
|
|
6091
|
+
projectId: z180.string(),
|
|
6092
|
+
repositoryId: z180.string(),
|
|
6080
6093
|
// Maybe not needed
|
|
6081
|
-
url: nullishToOptional(
|
|
6094
|
+
url: nullishToOptional(z180.string()),
|
|
6082
6095
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
6083
|
-
connectionId: nullishToOptional(
|
|
6084
|
-
userId: nullishToOptional(
|
|
6096
|
+
connectionId: nullishToOptional(z180.string()),
|
|
6097
|
+
userId: nullishToOptional(z180.number())
|
|
6085
6098
|
}).extend(GitCommonDestinationOptions.shape);
|
|
6086
|
-
var ExporterDestinationGitlab =
|
|
6087
|
-
credentialId:
|
|
6099
|
+
var ExporterDestinationGitlab = z180.object({
|
|
6100
|
+
credentialId: z180.string().optional(),
|
|
6088
6101
|
// Repository
|
|
6089
|
-
projectId:
|
|
6102
|
+
projectId: z180.string(),
|
|
6090
6103
|
// Maybe not needed
|
|
6091
|
-
url: nullishToOptional(
|
|
6104
|
+
url: nullishToOptional(z180.string()),
|
|
6092
6105
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
6093
|
-
connectionId: nullishToOptional(
|
|
6094
|
-
userId: nullishToOptional(
|
|
6106
|
+
connectionId: nullishToOptional(z180.string()),
|
|
6107
|
+
userId: nullishToOptional(z180.number())
|
|
6095
6108
|
}).extend(GitCommonDestinationOptions.shape);
|
|
6096
|
-
var ExporterDestinationBitbucket =
|
|
6097
|
-
credentialId:
|
|
6109
|
+
var ExporterDestinationBitbucket = z180.object({
|
|
6110
|
+
credentialId: z180.string().optional(),
|
|
6098
6111
|
// Repository
|
|
6099
|
-
workspaceSlug:
|
|
6100
|
-
projectKey:
|
|
6101
|
-
repoSlug:
|
|
6102
|
-
url: nullishToOptional(
|
|
6112
|
+
workspaceSlug: z180.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
6113
|
+
projectKey: z180.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
6114
|
+
repoSlug: z180.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
6115
|
+
url: nullishToOptional(z180.string()),
|
|
6103
6116
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
6104
|
-
connectionId: nullishToOptional(
|
|
6105
|
-
userId: nullishToOptional(
|
|
6117
|
+
connectionId: nullishToOptional(z180.string()),
|
|
6118
|
+
userId: nullishToOptional(z180.number())
|
|
6106
6119
|
}).extend(GitCommonDestinationOptions.shape);
|
|
6107
|
-
var ExportDestinationsMap =
|
|
6108
|
-
webhookUrl:
|
|
6120
|
+
var ExportDestinationsMap = z180.object({
|
|
6121
|
+
webhookUrl: z180.string().optional(),
|
|
6109
6122
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
6110
6123
|
destinationS3: ExporterDestinationS3.optional(),
|
|
6111
6124
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -6113,8 +6126,8 @@ var ExportDestinationsMap = z179.object({
|
|
|
6113
6126
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
6114
6127
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
6115
6128
|
});
|
|
6116
|
-
var ExportDestinationsMapUpdate =
|
|
6117
|
-
webhookUrl:
|
|
6129
|
+
var ExportDestinationsMapUpdate = z180.object({
|
|
6130
|
+
webhookUrl: z180.string().nullish(),
|
|
6118
6131
|
destinationSnDocs: ExporterDestinationDocs.nullish(),
|
|
6119
6132
|
destinationS3: ExporterDestinationS3.nullish(),
|
|
6120
6133
|
destinationGithub: ExporterDestinationGithub.nullish(),
|
|
@@ -6124,164 +6137,164 @@ var ExportDestinationsMapUpdate = z179.object({
|
|
|
6124
6137
|
});
|
|
6125
6138
|
|
|
6126
6139
|
// src/export/pipeline.ts
|
|
6127
|
-
var PipelineEventType =
|
|
6140
|
+
var PipelineEventType = z181.enum([
|
|
6128
6141
|
"OnVersionReleased",
|
|
6129
6142
|
"OnHeadChanged",
|
|
6130
6143
|
"OnSourceUpdated",
|
|
6131
6144
|
"OnDocumentationPublished",
|
|
6132
6145
|
"None"
|
|
6133
6146
|
]);
|
|
6134
|
-
var PipelineDestinationGitType =
|
|
6135
|
-
var PipelineDestinationExtraType =
|
|
6136
|
-
var PipelineDestinationType =
|
|
6137
|
-
var Pipeline =
|
|
6138
|
-
id:
|
|
6139
|
-
name:
|
|
6147
|
+
var PipelineDestinationGitType = z181.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
6148
|
+
var PipelineDestinationExtraType = z181.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
6149
|
+
var PipelineDestinationType = z181.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
6150
|
+
var Pipeline = z181.object({
|
|
6151
|
+
id: z181.string(),
|
|
6152
|
+
name: z181.string(),
|
|
6140
6153
|
eventType: PipelineEventType,
|
|
6141
|
-
isEnabled:
|
|
6142
|
-
workspaceId:
|
|
6143
|
-
designSystemId:
|
|
6144
|
-
exporterId:
|
|
6145
|
-
brandPersistentId:
|
|
6146
|
-
themePersistentId:
|
|
6147
|
-
themePersistentIds:
|
|
6154
|
+
isEnabled: z181.boolean(),
|
|
6155
|
+
workspaceId: z181.string(),
|
|
6156
|
+
designSystemId: z181.string(),
|
|
6157
|
+
exporterId: z181.string(),
|
|
6158
|
+
brandPersistentId: z181.string().optional(),
|
|
6159
|
+
themePersistentId: z181.string().optional(),
|
|
6160
|
+
themePersistentIds: z181.string().array().optional(),
|
|
6148
6161
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
6149
|
-
isExporterDeprecated:
|
|
6162
|
+
isExporterDeprecated: z181.boolean(),
|
|
6150
6163
|
// Destinations
|
|
6151
6164
|
...ExportDestinationsMap.shape
|
|
6152
6165
|
});
|
|
6153
6166
|
|
|
6154
6167
|
// src/data-dumps/code-integration-dump.ts
|
|
6155
|
-
var ExportJobDump =
|
|
6156
|
-
id:
|
|
6157
|
-
createdAt:
|
|
6158
|
-
finishedAt:
|
|
6159
|
-
exportArtefacts:
|
|
6168
|
+
var ExportJobDump = z182.object({
|
|
6169
|
+
id: z182.string(),
|
|
6170
|
+
createdAt: z182.coerce.date(),
|
|
6171
|
+
finishedAt: z182.coerce.date(),
|
|
6172
|
+
exportArtefacts: z182.string()
|
|
6160
6173
|
});
|
|
6161
|
-
var CodeIntegrationDump =
|
|
6174
|
+
var CodeIntegrationDump = z182.object({
|
|
6162
6175
|
exporters: Exporter.array(),
|
|
6163
6176
|
pipelines: Pipeline.array(),
|
|
6164
6177
|
exportJobs: ExportJobDump.array()
|
|
6165
6178
|
});
|
|
6166
6179
|
|
|
6167
6180
|
// src/data-dumps/design-system-dump.ts
|
|
6168
|
-
import { z as
|
|
6181
|
+
import { z as z192 } from "zod";
|
|
6169
6182
|
|
|
6170
6183
|
// src/data-dumps/design-system-version-dump.ts
|
|
6171
|
-
import { z as
|
|
6184
|
+
import { z as z191 } from "zod";
|
|
6172
6185
|
|
|
6173
6186
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
6174
|
-
import { z as
|
|
6187
|
+
import { z as z183 } from "zod";
|
|
6175
6188
|
var DesignSystemVersionRoom = Entity.extend({
|
|
6176
|
-
designSystemVersionId:
|
|
6177
|
-
liveblocksId:
|
|
6178
|
-
});
|
|
6179
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
6180
|
-
routingVersion:
|
|
6181
|
-
isDraftFeatureAdopted:
|
|
6182
|
-
isApprovalFeatureEnabled:
|
|
6183
|
-
approvalRequiredForPublishing:
|
|
6184
|
-
});
|
|
6185
|
-
var DesignSystemVersionRoomInitialState =
|
|
6186
|
-
pages:
|
|
6187
|
-
groups:
|
|
6188
|
-
pageSnapshots:
|
|
6189
|
-
groupSnapshots:
|
|
6190
|
-
pageApprovals:
|
|
6189
|
+
designSystemVersionId: z183.string(),
|
|
6190
|
+
liveblocksId: z183.string()
|
|
6191
|
+
});
|
|
6192
|
+
var DesignSystemVersionRoomInternalSettings = z183.object({
|
|
6193
|
+
routingVersion: z183.string(),
|
|
6194
|
+
isDraftFeatureAdopted: z183.boolean(),
|
|
6195
|
+
isApprovalFeatureEnabled: z183.boolean(),
|
|
6196
|
+
approvalRequiredForPublishing: z183.boolean()
|
|
6197
|
+
});
|
|
6198
|
+
var DesignSystemVersionRoomInitialState = z183.object({
|
|
6199
|
+
pages: z183.array(DocumentationPageV2),
|
|
6200
|
+
groups: z183.array(ElementGroup),
|
|
6201
|
+
pageSnapshots: z183.array(DocumentationPageSnapshot),
|
|
6202
|
+
groupSnapshots: z183.array(ElementGroupSnapshot),
|
|
6203
|
+
pageApprovals: z183.array(DocumentationPageApproval),
|
|
6191
6204
|
internalSettings: DesignSystemVersionRoomInternalSettings,
|
|
6192
|
-
pageHashes:
|
|
6193
|
-
storageVersion:
|
|
6194
|
-
});
|
|
6195
|
-
var DesignSystemVersionRoomUpdate =
|
|
6196
|
-
pages:
|
|
6197
|
-
groups:
|
|
6198
|
-
pageIdsToDelete:
|
|
6199
|
-
groupIdsToDelete:
|
|
6200
|
-
pageSnapshots:
|
|
6201
|
-
groupSnapshots:
|
|
6202
|
-
pageSnapshotIdsToDelete:
|
|
6203
|
-
groupSnapshotIdsToDelete:
|
|
6204
|
-
pageHashesToUpdate:
|
|
6205
|
-
pageApprovals:
|
|
6206
|
-
pageApprovalIdsToDelete:
|
|
6207
|
-
executedTransactionIds:
|
|
6205
|
+
pageHashes: z183.record(z183.string()).optional(),
|
|
6206
|
+
storageVersion: z183.literal(1).or(z183.literal(2))
|
|
6207
|
+
});
|
|
6208
|
+
var DesignSystemVersionRoomUpdate = z183.object({
|
|
6209
|
+
pages: z183.array(DocumentationPageV2),
|
|
6210
|
+
groups: z183.array(ElementGroup),
|
|
6211
|
+
pageIdsToDelete: z183.array(z183.string()),
|
|
6212
|
+
groupIdsToDelete: z183.array(z183.string()),
|
|
6213
|
+
pageSnapshots: z183.array(DocumentationPageSnapshot),
|
|
6214
|
+
groupSnapshots: z183.array(ElementGroupSnapshot),
|
|
6215
|
+
pageSnapshotIdsToDelete: z183.array(z183.string()),
|
|
6216
|
+
groupSnapshotIdsToDelete: z183.array(z183.string()),
|
|
6217
|
+
pageHashesToUpdate: z183.record(z183.string(), z183.string()),
|
|
6218
|
+
pageApprovals: z183.array(DocumentationPageApproval),
|
|
6219
|
+
pageApprovalIdsToDelete: z183.array(z183.string()),
|
|
6220
|
+
executedTransactionIds: z183.array(z183.string())
|
|
6208
6221
|
});
|
|
6209
6222
|
|
|
6210
6223
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
6211
|
-
import { z as
|
|
6224
|
+
import { z as z184 } from "zod";
|
|
6212
6225
|
var DocumentationPageRoom = Entity.extend({
|
|
6213
|
-
designSystemVersionId:
|
|
6214
|
-
documentationPageId:
|
|
6215
|
-
liveblocksId:
|
|
6216
|
-
isDirty:
|
|
6226
|
+
designSystemVersionId: z184.string(),
|
|
6227
|
+
documentationPageId: z184.string(),
|
|
6228
|
+
liveblocksId: z184.string(),
|
|
6229
|
+
isDirty: z184.boolean()
|
|
6217
6230
|
});
|
|
6218
|
-
var DocumentationPageRoomState =
|
|
6219
|
-
pageItems:
|
|
6231
|
+
var DocumentationPageRoomState = z184.object({
|
|
6232
|
+
pageItems: z184.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
|
|
6220
6233
|
});
|
|
6221
|
-
var DocumentationPageRoomRoomUpdate =
|
|
6234
|
+
var DocumentationPageRoomRoomUpdate = z184.object({
|
|
6222
6235
|
page: DocumentationPageV2,
|
|
6223
6236
|
pageParent: ElementGroup
|
|
6224
6237
|
});
|
|
6225
6238
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
6226
|
-
pageItems:
|
|
6227
|
-
blockDefinitions:
|
|
6239
|
+
pageItems: z184.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
6240
|
+
blockDefinitions: z184.array(PageBlockDefinition)
|
|
6228
6241
|
});
|
|
6229
|
-
var RestoredDocumentationPage =
|
|
6242
|
+
var RestoredDocumentationPage = z184.object({
|
|
6230
6243
|
page: DocumentationPageV2,
|
|
6231
6244
|
pageParent: ElementGroup,
|
|
6232
6245
|
pageContent: DocumentationPageContentData,
|
|
6233
|
-
contentHash:
|
|
6246
|
+
contentHash: z184.string()
|
|
6234
6247
|
});
|
|
6235
|
-
var RestoredDocumentationGroup =
|
|
6248
|
+
var RestoredDocumentationGroup = z184.object({
|
|
6236
6249
|
group: ElementGroup,
|
|
6237
6250
|
parent: ElementGroup
|
|
6238
6251
|
});
|
|
6239
6252
|
|
|
6240
6253
|
// src/liveblocks/rooms/forge-feature-room.ts
|
|
6241
|
-
import { z as
|
|
6254
|
+
import { z as z185 } from "zod";
|
|
6242
6255
|
var ForgeFeatureRoom = Entity.extend({
|
|
6243
|
-
featureId:
|
|
6244
|
-
projectId:
|
|
6245
|
-
liveblocksId:
|
|
6256
|
+
featureId: z185.string(),
|
|
6257
|
+
projectId: z185.string(),
|
|
6258
|
+
liveblocksId: z185.string()
|
|
6246
6259
|
});
|
|
6247
6260
|
|
|
6248
6261
|
// src/liveblocks/rooms/forge-project-artifact-room.ts
|
|
6249
|
-
import { z as
|
|
6262
|
+
import { z as z186 } from "zod";
|
|
6250
6263
|
var ForgeProjectArtifactRoom = Entity.extend({
|
|
6251
|
-
artifactId:
|
|
6252
|
-
projectId:
|
|
6253
|
-
liveblocksId:
|
|
6254
|
-
isDirty:
|
|
6264
|
+
artifactId: z186.string(),
|
|
6265
|
+
projectId: z186.string(),
|
|
6266
|
+
liveblocksId: z186.string(),
|
|
6267
|
+
isDirty: z186.boolean()
|
|
6255
6268
|
});
|
|
6256
6269
|
|
|
6257
6270
|
// src/liveblocks/rooms/forge-project-room.ts
|
|
6258
|
-
import { z as
|
|
6271
|
+
import { z as z187 } from "zod";
|
|
6259
6272
|
var ForgeProjectRoom = Entity.extend({
|
|
6260
|
-
projectId:
|
|
6261
|
-
liveblocksId:
|
|
6262
|
-
});
|
|
6263
|
-
var ForgeProjectRoomInitialState =
|
|
6264
|
-
artifacts:
|
|
6265
|
-
features:
|
|
6266
|
-
artifactSections:
|
|
6267
|
-
featureSections:
|
|
6268
|
-
relations:
|
|
6269
|
-
});
|
|
6270
|
-
var ForgeProjectRoomUpdate =
|
|
6271
|
-
artifacts:
|
|
6272
|
-
artifactIdsToDelete:
|
|
6273
|
-
features:
|
|
6274
|
-
featureIdsToDelete:
|
|
6275
|
-
artifactSections:
|
|
6276
|
-
artifactSectionIdsToDelete:
|
|
6277
|
-
featureSections:
|
|
6278
|
-
featureSectionIdsToDelete:
|
|
6279
|
-
relations:
|
|
6280
|
-
executedTransactionIds:
|
|
6273
|
+
projectId: z187.string(),
|
|
6274
|
+
liveblocksId: z187.string()
|
|
6275
|
+
});
|
|
6276
|
+
var ForgeProjectRoomInitialState = z187.object({
|
|
6277
|
+
artifacts: z187.array(ForgeProjectArtifact),
|
|
6278
|
+
features: z187.array(ProjectFeature),
|
|
6279
|
+
artifactSections: z187.array(ForgeSection),
|
|
6280
|
+
featureSections: z187.array(ForgeSection),
|
|
6281
|
+
relations: z187.array(ForgeRelation)
|
|
6282
|
+
});
|
|
6283
|
+
var ForgeProjectRoomUpdate = z187.object({
|
|
6284
|
+
artifacts: z187.array(ForgeProjectArtifact).optional(),
|
|
6285
|
+
artifactIdsToDelete: z187.array(z187.string()).optional(),
|
|
6286
|
+
features: z187.array(ProjectFeature).optional(),
|
|
6287
|
+
featureIdsToDelete: z187.array(z187.string()).optional(),
|
|
6288
|
+
artifactSections: z187.array(ForgeSection).optional(),
|
|
6289
|
+
artifactSectionIdsToDelete: z187.array(z187.string()).optional(),
|
|
6290
|
+
featureSections: z187.array(ForgeSection).optional(),
|
|
6291
|
+
featureSectionIdsToDelete: z187.array(z187.string()).optional(),
|
|
6292
|
+
relations: z187.array(ForgeRelation).optional(),
|
|
6293
|
+
executedTransactionIds: z187.string().array().optional()
|
|
6281
6294
|
});
|
|
6282
6295
|
|
|
6283
6296
|
// src/liveblocks/rooms/room-type.ts
|
|
6284
|
-
import { z as
|
|
6297
|
+
import { z as z188 } from "zod";
|
|
6285
6298
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
6286
6299
|
RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
|
|
6287
6300
|
RoomTypeEnum2["DocumentationPage"] = "doc-page";
|
|
@@ -6292,36 +6305,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
6292
6305
|
RoomTypeEnum2["ForgeProjectFeature"] = "forge-project-feature";
|
|
6293
6306
|
return RoomTypeEnum2;
|
|
6294
6307
|
})(RoomTypeEnum || {});
|
|
6295
|
-
var RoomTypeSchema =
|
|
6308
|
+
var RoomTypeSchema = z188.nativeEnum(RoomTypeEnum);
|
|
6296
6309
|
var RoomType = RoomTypeSchema.enum;
|
|
6297
6310
|
|
|
6298
6311
|
// src/liveblocks/rooms/workspace-room.ts
|
|
6299
|
-
import { z as
|
|
6312
|
+
import { z as z189 } from "zod";
|
|
6300
6313
|
var WorkspaceRoom = Entity.extend({
|
|
6301
|
-
workspaceId:
|
|
6302
|
-
liveblocksId:
|
|
6314
|
+
workspaceId: z189.string(),
|
|
6315
|
+
liveblocksId: z189.string()
|
|
6303
6316
|
});
|
|
6304
6317
|
|
|
6305
6318
|
// src/data-dumps/published-docs-dump.ts
|
|
6306
|
-
import { z as
|
|
6307
|
-
var PublishedDocsDump =
|
|
6319
|
+
import { z as z190 } from "zod";
|
|
6320
|
+
var PublishedDocsDump = z190.object({
|
|
6308
6321
|
documentation: PublishedDoc,
|
|
6309
6322
|
pages: PublishedDocPage.array()
|
|
6310
6323
|
});
|
|
6311
6324
|
|
|
6312
6325
|
// src/data-dumps/design-system-version-dump.ts
|
|
6313
|
-
var DocumentationThreadDump =
|
|
6326
|
+
var DocumentationThreadDump = z191.object({
|
|
6314
6327
|
thread: DocumentationCommentThread,
|
|
6315
6328
|
comments: DocumentationComment.array()
|
|
6316
6329
|
});
|
|
6317
|
-
var DocumentationPageRoomDump =
|
|
6330
|
+
var DocumentationPageRoomDump = z191.object({
|
|
6318
6331
|
room: DocumentationPageRoom,
|
|
6319
6332
|
threads: DocumentationThreadDump.array()
|
|
6320
6333
|
});
|
|
6321
|
-
var DesignSystemVersionMultiplayerDump =
|
|
6334
|
+
var DesignSystemVersionMultiplayerDump = z191.object({
|
|
6322
6335
|
documentationPages: DocumentationPageRoomDump.array()
|
|
6323
6336
|
});
|
|
6324
|
-
var DesignSystemVersionDump =
|
|
6337
|
+
var DesignSystemVersionDump = z191.object({
|
|
6325
6338
|
version: DesignSystemVersion,
|
|
6326
6339
|
brands: Brand.array(),
|
|
6327
6340
|
elements: DesignElement.array(),
|
|
@@ -6336,7 +6349,7 @@ var DesignSystemVersionDump = z190.object({
|
|
|
6336
6349
|
});
|
|
6337
6350
|
|
|
6338
6351
|
// src/data-dumps/design-system-dump.ts
|
|
6339
|
-
var DesignSystemDump =
|
|
6352
|
+
var DesignSystemDump = z192.object({
|
|
6340
6353
|
designSystem: DesignSystem,
|
|
6341
6354
|
dataSources: DataSource.array(),
|
|
6342
6355
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -6345,50 +6358,50 @@ var DesignSystemDump = z191.object({
|
|
|
6345
6358
|
});
|
|
6346
6359
|
|
|
6347
6360
|
// src/data-dumps/user-data-dump.ts
|
|
6348
|
-
import { z as
|
|
6361
|
+
import { z as z195 } from "zod";
|
|
6349
6362
|
|
|
6350
6363
|
// src/data-dumps/workspace-dump.ts
|
|
6351
|
-
import { z as
|
|
6364
|
+
import { z as z194 } from "zod";
|
|
6352
6365
|
|
|
6353
6366
|
// src/integrations/integration.ts
|
|
6354
|
-
import { z as
|
|
6355
|
-
var IntegrationDesignSystem =
|
|
6356
|
-
designSystemId:
|
|
6357
|
-
brandId:
|
|
6358
|
-
title:
|
|
6359
|
-
userId:
|
|
6360
|
-
date:
|
|
6361
|
-
});
|
|
6362
|
-
var IntegrationCredentialsType =
|
|
6363
|
-
var IntegrationCredentialsState =
|
|
6364
|
-
var IntegrationCredentialsProfile =
|
|
6365
|
-
id: nullishToOptional(
|
|
6366
|
-
email: nullishToOptional(
|
|
6367
|
-
handle: nullishToOptional(
|
|
6368
|
-
type: nullishToOptional(
|
|
6369
|
-
avatarUrl: nullishToOptional(
|
|
6370
|
-
organization: nullishToOptional(
|
|
6371
|
-
collection: nullishToOptional(
|
|
6372
|
-
});
|
|
6373
|
-
var IntegrationCredentials =
|
|
6374
|
-
id:
|
|
6367
|
+
import { z as z193 } from "zod";
|
|
6368
|
+
var IntegrationDesignSystem = z193.object({
|
|
6369
|
+
designSystemId: z193.string(),
|
|
6370
|
+
brandId: z193.string(),
|
|
6371
|
+
title: z193.string().optional(),
|
|
6372
|
+
userId: z193.string().optional(),
|
|
6373
|
+
date: z193.coerce.date().optional()
|
|
6374
|
+
});
|
|
6375
|
+
var IntegrationCredentialsType = z193.enum(["OAuth2", "PAT"]);
|
|
6376
|
+
var IntegrationCredentialsState = z193.enum(["Active", "Inactive"]);
|
|
6377
|
+
var IntegrationCredentialsProfile = z193.object({
|
|
6378
|
+
id: nullishToOptional(z193.string()),
|
|
6379
|
+
email: nullishToOptional(z193.string()),
|
|
6380
|
+
handle: nullishToOptional(z193.string()),
|
|
6381
|
+
type: nullishToOptional(z193.string()),
|
|
6382
|
+
avatarUrl: nullishToOptional(z193.string()),
|
|
6383
|
+
organization: nullishToOptional(z193.string()),
|
|
6384
|
+
collection: nullishToOptional(z193.string())
|
|
6385
|
+
});
|
|
6386
|
+
var IntegrationCredentials = z193.object({
|
|
6387
|
+
id: z193.string(),
|
|
6375
6388
|
type: IntegrationCredentialsType,
|
|
6376
|
-
integrationId:
|
|
6377
|
-
accessToken:
|
|
6378
|
-
userId:
|
|
6379
|
-
createdAt:
|
|
6380
|
-
refreshToken:
|
|
6381
|
-
tokenName:
|
|
6382
|
-
expiresAt:
|
|
6383
|
-
refreshedAt:
|
|
6384
|
-
username:
|
|
6385
|
-
appInstallationId:
|
|
6389
|
+
integrationId: z193.string(),
|
|
6390
|
+
accessToken: z193.string(),
|
|
6391
|
+
userId: z193.string(),
|
|
6392
|
+
createdAt: z193.coerce.date(),
|
|
6393
|
+
refreshToken: z193.string().optional(),
|
|
6394
|
+
tokenName: z193.string().optional(),
|
|
6395
|
+
expiresAt: z193.coerce.date().optional(),
|
|
6396
|
+
refreshedAt: z193.coerce.date().optional(),
|
|
6397
|
+
username: z193.string().optional(),
|
|
6398
|
+
appInstallationId: z193.string().optional(),
|
|
6386
6399
|
profile: IntegrationCredentialsProfile.optional(),
|
|
6387
|
-
customUrl:
|
|
6400
|
+
customUrl: z193.string().optional(),
|
|
6388
6401
|
state: IntegrationCredentialsState,
|
|
6389
6402
|
user: UserMinified.optional()
|
|
6390
6403
|
});
|
|
6391
|
-
var ExtendedIntegrationType =
|
|
6404
|
+
var ExtendedIntegrationType = z193.enum([
|
|
6392
6405
|
"Figma",
|
|
6393
6406
|
"Github",
|
|
6394
6407
|
"Gitlab",
|
|
@@ -6399,26 +6412,26 @@ var ExtendedIntegrationType = z192.enum([
|
|
|
6399
6412
|
]);
|
|
6400
6413
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
6401
6414
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
6402
|
-
var Integration =
|
|
6403
|
-
id:
|
|
6404
|
-
workspaceId:
|
|
6415
|
+
var Integration = z193.object({
|
|
6416
|
+
id: z193.string(),
|
|
6417
|
+
workspaceId: z193.string(),
|
|
6405
6418
|
type: IntegrationType,
|
|
6406
|
-
createdAt:
|
|
6407
|
-
integrationCredentials:
|
|
6408
|
-
});
|
|
6409
|
-
var IntegrationToken =
|
|
6410
|
-
access_token:
|
|
6411
|
-
refresh_token:
|
|
6412
|
-
expires_in:
|
|
6413
|
-
token_type:
|
|
6414
|
-
token_name:
|
|
6415
|
-
token_azure_organization_name:
|
|
6419
|
+
createdAt: z193.coerce.date(),
|
|
6420
|
+
integrationCredentials: z193.array(IntegrationCredentials).optional()
|
|
6421
|
+
});
|
|
6422
|
+
var IntegrationToken = z193.object({
|
|
6423
|
+
access_token: z193.string(),
|
|
6424
|
+
refresh_token: z193.string().optional(),
|
|
6425
|
+
expires_in: z193.union([z193.number().optional(), z193.string().optional()]),
|
|
6426
|
+
token_type: z193.string().optional(),
|
|
6427
|
+
token_name: z193.string().optional(),
|
|
6428
|
+
token_azure_organization_name: z193.string().optional(),
|
|
6416
6429
|
// Azure Cloud PAT only
|
|
6417
|
-
token_azure_collection_name:
|
|
6430
|
+
token_azure_collection_name: z193.string().optional(),
|
|
6418
6431
|
// Azure Server PAT only
|
|
6419
|
-
token_bitbucket_username:
|
|
6432
|
+
token_bitbucket_username: z193.string().optional(),
|
|
6420
6433
|
// Bitbucket only
|
|
6421
|
-
custom_url:
|
|
6434
|
+
custom_url: z193.string().optional().transform((value) => {
|
|
6422
6435
|
if (!value?.trim()) return void 0;
|
|
6423
6436
|
return formatCustomUrl(value);
|
|
6424
6437
|
})
|
|
@@ -6455,7 +6468,7 @@ function formatCustomUrl(url) {
|
|
|
6455
6468
|
}
|
|
6456
6469
|
|
|
6457
6470
|
// src/data-dumps/workspace-dump.ts
|
|
6458
|
-
var WorkspaceDump =
|
|
6471
|
+
var WorkspaceDump = z194.object({
|
|
6459
6472
|
workspace: Workspace,
|
|
6460
6473
|
designSystems: DesignSystemDump.array(),
|
|
6461
6474
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -6463,149 +6476,150 @@ var WorkspaceDump = z193.object({
|
|
|
6463
6476
|
});
|
|
6464
6477
|
|
|
6465
6478
|
// src/data-dumps/user-data-dump.ts
|
|
6466
|
-
var UserDump =
|
|
6479
|
+
var UserDump = z195.object({
|
|
6467
6480
|
user: User,
|
|
6468
6481
|
workspaces: WorkspaceDump.array()
|
|
6469
6482
|
});
|
|
6470
6483
|
|
|
6471
6484
|
// src/docs-server/session.ts
|
|
6472
|
-
import { z as
|
|
6473
|
-
var NpmProxyToken =
|
|
6474
|
-
access:
|
|
6475
|
-
expiresAt:
|
|
6485
|
+
import { z as z196 } from "zod";
|
|
6486
|
+
var NpmProxyToken = z196.object({
|
|
6487
|
+
access: z196.string(),
|
|
6488
|
+
expiresAt: z196.number()
|
|
6476
6489
|
});
|
|
6477
|
-
var SessionData =
|
|
6478
|
-
returnToUrl:
|
|
6490
|
+
var SessionData = z196.object({
|
|
6491
|
+
returnToUrl: z196.string().optional(),
|
|
6479
6492
|
npmProxyToken: NpmProxyToken.optional()
|
|
6480
6493
|
});
|
|
6481
|
-
var Session =
|
|
6482
|
-
id:
|
|
6483
|
-
expiresAt:
|
|
6484
|
-
userId:
|
|
6485
|
-
anonymousId:
|
|
6494
|
+
var Session = z196.object({
|
|
6495
|
+
id: z196.string(),
|
|
6496
|
+
expiresAt: z196.coerce.date(),
|
|
6497
|
+
userId: z196.string().nullable(),
|
|
6498
|
+
anonymousId: z196.string().nullable(),
|
|
6486
6499
|
data: SessionData
|
|
6487
6500
|
});
|
|
6488
|
-
var AuthTokens =
|
|
6489
|
-
access:
|
|
6490
|
-
refresh:
|
|
6501
|
+
var AuthTokens = z196.object({
|
|
6502
|
+
access: z196.string(),
|
|
6503
|
+
refresh: z196.string()
|
|
6491
6504
|
});
|
|
6492
|
-
var UserSession =
|
|
6505
|
+
var UserSession = z196.object({
|
|
6493
6506
|
session: Session,
|
|
6494
6507
|
user: User.nullable()
|
|
6495
6508
|
});
|
|
6496
6509
|
|
|
6497
6510
|
// src/emails/design-system-invite.ts
|
|
6498
|
-
import { z as
|
|
6499
|
-
var DesignSystemInviteEmailRecipient =
|
|
6500
|
-
email:
|
|
6511
|
+
import { z as z197 } from "zod";
|
|
6512
|
+
var DesignSystemInviteEmailRecipient = z197.object({
|
|
6513
|
+
email: z197.string(),
|
|
6501
6514
|
role: WorkspaceRoleSchema
|
|
6502
6515
|
});
|
|
6503
|
-
var DesignSystemInviteEmailData =
|
|
6516
|
+
var DesignSystemInviteEmailData = z197.object({
|
|
6504
6517
|
workspace: Workspace,
|
|
6505
6518
|
designSystem: DesignSystem,
|
|
6506
6519
|
invitedBy: User,
|
|
6507
|
-
documentationDomain:
|
|
6520
|
+
documentationDomain: z197.string().optional()
|
|
6508
6521
|
});
|
|
6509
6522
|
|
|
6510
6523
|
// src/emails/workspace-invite.ts
|
|
6511
|
-
import { z as
|
|
6512
|
-
var WorkspaceInviteEmailRecipient =
|
|
6513
|
-
email:
|
|
6514
|
-
role: WorkspaceRoleSchema
|
|
6524
|
+
import { z as z198 } from "zod";
|
|
6525
|
+
var WorkspaceInviteEmailRecipient = z198.object({
|
|
6526
|
+
email: z198.string(),
|
|
6527
|
+
role: WorkspaceRoleSchema,
|
|
6528
|
+
seatType: WorkspaceSeatType
|
|
6515
6529
|
});
|
|
6516
|
-
var WorkspaceInviteEmailData =
|
|
6530
|
+
var WorkspaceInviteEmailData = z198.object({
|
|
6517
6531
|
workspace: Workspace,
|
|
6518
6532
|
invitedBy: User,
|
|
6519
|
-
documentationDomain:
|
|
6533
|
+
documentationDomain: z198.string().optional()
|
|
6520
6534
|
});
|
|
6521
6535
|
|
|
6522
6536
|
// src/events/base.ts
|
|
6523
|
-
import { z as
|
|
6537
|
+
import { z as z202 } from "zod";
|
|
6524
6538
|
|
|
6525
6539
|
// src/events/data-source-imported.ts
|
|
6526
|
-
import { z as z198 } from "zod";
|
|
6527
|
-
var EventDataSourceImported = z198.object({
|
|
6528
|
-
type: z198.literal("DataSourceImported"),
|
|
6529
|
-
workspaceId: z198.string(),
|
|
6530
|
-
designSystemId: z198.string()
|
|
6531
|
-
});
|
|
6532
|
-
|
|
6533
|
-
// src/events/version-released.ts
|
|
6534
6540
|
import { z as z199 } from "zod";
|
|
6535
|
-
var
|
|
6536
|
-
type: z199.literal("
|
|
6541
|
+
var EventDataSourceImported = z199.object({
|
|
6542
|
+
type: z199.literal("DataSourceImported"),
|
|
6537
6543
|
workspaceId: z199.string(),
|
|
6538
|
-
designSystemId: z199.string()
|
|
6539
|
-
versionId: z199.string()
|
|
6544
|
+
designSystemId: z199.string()
|
|
6540
6545
|
});
|
|
6541
6546
|
|
|
6542
|
-
// src/events/
|
|
6547
|
+
// src/events/version-released.ts
|
|
6543
6548
|
import { z as z200 } from "zod";
|
|
6544
|
-
var
|
|
6545
|
-
type: z200.literal("
|
|
6549
|
+
var EventVersionReleased = z200.object({
|
|
6550
|
+
type: z200.literal("DesignSystemVersionReleased"),
|
|
6546
6551
|
workspaceId: z200.string(),
|
|
6547
6552
|
designSystemId: z200.string(),
|
|
6548
6553
|
versionId: z200.string()
|
|
6549
6554
|
});
|
|
6550
6555
|
|
|
6556
|
+
// src/events/documentation-published.ts
|
|
6557
|
+
import { z as z201 } from "zod";
|
|
6558
|
+
var EventDocumentationPublished = z201.object({
|
|
6559
|
+
type: z201.literal("DocumentationPublished"),
|
|
6560
|
+
workspaceId: z201.string(),
|
|
6561
|
+
designSystemId: z201.string(),
|
|
6562
|
+
versionId: z201.string()
|
|
6563
|
+
});
|
|
6564
|
+
|
|
6551
6565
|
// src/events/base.ts
|
|
6552
|
-
var Event =
|
|
6566
|
+
var Event = z202.discriminatedUnion("type", [
|
|
6553
6567
|
EventVersionReleased,
|
|
6554
6568
|
EventDataSourceImported,
|
|
6555
6569
|
EventDocumentationPublished
|
|
6556
6570
|
]);
|
|
6557
6571
|
|
|
6558
6572
|
// src/export/export-runner/export-context.ts
|
|
6559
|
-
import { z as
|
|
6560
|
-
var ExportJobDocumentationContext =
|
|
6561
|
-
isSingleVersionDocs:
|
|
6562
|
-
versionSlug:
|
|
6573
|
+
import { z as z203 } from "zod";
|
|
6574
|
+
var ExportJobDocumentationContext = z203.object({
|
|
6575
|
+
isSingleVersionDocs: z203.boolean(),
|
|
6576
|
+
versionSlug: z203.string(),
|
|
6563
6577
|
environment: PublishedDocEnvironment
|
|
6564
6578
|
});
|
|
6565
|
-
var ExportJobDebugContext =
|
|
6566
|
-
debugMode:
|
|
6567
|
-
concurrency:
|
|
6568
|
-
preloadData:
|
|
6569
|
-
concurrencyMode:
|
|
6570
|
-
cacheSdk:
|
|
6571
|
-
logSdkNetwork:
|
|
6572
|
-
profilerMode:
|
|
6573
|
-
});
|
|
6574
|
-
var ExportJobContext =
|
|
6575
|
-
apiUrl:
|
|
6576
|
-
accessToken:
|
|
6577
|
-
designSystemId:
|
|
6578
|
-
designSystemName:
|
|
6579
|
-
exporterId:
|
|
6580
|
-
versionId:
|
|
6581
|
-
brandId:
|
|
6582
|
-
themeId:
|
|
6583
|
-
themePersistentIds:
|
|
6584
|
-
previewMode:
|
|
6585
|
-
exporterName:
|
|
6579
|
+
var ExportJobDebugContext = z203.object({
|
|
6580
|
+
debugMode: z203.boolean().optional(),
|
|
6581
|
+
concurrency: z203.number().optional(),
|
|
6582
|
+
preloadData: z203.string().optional(),
|
|
6583
|
+
concurrencyMode: z203.string().optional(),
|
|
6584
|
+
cacheSdk: z203.string().optional(),
|
|
6585
|
+
logSdkNetwork: z203.boolean().optional(),
|
|
6586
|
+
profilerMode: z203.string().optional()
|
|
6587
|
+
});
|
|
6588
|
+
var ExportJobContext = z203.object({
|
|
6589
|
+
apiUrl: z203.string(),
|
|
6590
|
+
accessToken: z203.string(),
|
|
6591
|
+
designSystemId: z203.string(),
|
|
6592
|
+
designSystemName: z203.string(),
|
|
6593
|
+
exporterId: z203.string(),
|
|
6594
|
+
versionId: z203.string(),
|
|
6595
|
+
brandId: z203.string().optional(),
|
|
6596
|
+
themeId: z203.string().optional(),
|
|
6597
|
+
themePersistentIds: z203.string().array().optional(),
|
|
6598
|
+
previewMode: z203.boolean().optional(),
|
|
6599
|
+
exporterName: z203.string(),
|
|
6586
6600
|
documentation: ExportJobDocumentationContext.optional(),
|
|
6587
6601
|
debug: ExportJobDebugContext.optional()
|
|
6588
6602
|
});
|
|
6589
|
-
var ExportJobExporterConfiguration =
|
|
6590
|
-
exporterPackageUrl:
|
|
6603
|
+
var ExportJobExporterConfiguration = z203.object({
|
|
6604
|
+
exporterPackageUrl: z203.string(),
|
|
6591
6605
|
exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
|
|
6592
6606
|
exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
|
|
6593
6607
|
});
|
|
6594
6608
|
|
|
6595
6609
|
// src/export/export-runner/exporter-payload.ts
|
|
6596
|
-
import { z as
|
|
6597
|
-
var ExporterFunctionPayload =
|
|
6598
|
-
exportJobId:
|
|
6599
|
-
exportContextId:
|
|
6600
|
-
designSystemId:
|
|
6601
|
-
workspaceId:
|
|
6602
|
-
exporterId:
|
|
6603
|
-
runnerType:
|
|
6610
|
+
import { z as z204 } from "zod";
|
|
6611
|
+
var ExporterFunctionPayload = z204.object({
|
|
6612
|
+
exportJobId: z204.string(),
|
|
6613
|
+
exportContextId: z204.string(),
|
|
6614
|
+
designSystemId: z204.string(),
|
|
6615
|
+
workspaceId: z204.string(),
|
|
6616
|
+
exporterId: z204.string(),
|
|
6617
|
+
runnerType: z204.enum(["High", "Low"])
|
|
6604
6618
|
});
|
|
6605
6619
|
|
|
6606
6620
|
// src/export/export-jobs.ts
|
|
6607
|
-
import { z as
|
|
6608
|
-
var ExportJobDestinationType =
|
|
6621
|
+
import { z as z205 } from "zod";
|
|
6622
|
+
var ExportJobDestinationType = z205.enum([
|
|
6609
6623
|
"s3",
|
|
6610
6624
|
"webhookUrl",
|
|
6611
6625
|
"github",
|
|
@@ -6614,31 +6628,31 @@ var ExportJobDestinationType = z204.enum([
|
|
|
6614
6628
|
"gitlab",
|
|
6615
6629
|
"bitbucket"
|
|
6616
6630
|
]);
|
|
6617
|
-
var ExportJobStatus =
|
|
6618
|
-
var ExportJobLogEntryType =
|
|
6619
|
-
var ExportJobLogEntry =
|
|
6620
|
-
id:
|
|
6621
|
-
time:
|
|
6631
|
+
var ExportJobStatus = z205.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
6632
|
+
var ExportJobLogEntryType = z205.enum(["success", "info", "warning", "error", "user"]);
|
|
6633
|
+
var ExportJobLogEntry = z205.object({
|
|
6634
|
+
id: z205.string().optional(),
|
|
6635
|
+
time: z205.coerce.date(),
|
|
6622
6636
|
type: ExportJobLogEntryType,
|
|
6623
|
-
message:
|
|
6637
|
+
message: z205.string()
|
|
6624
6638
|
});
|
|
6625
|
-
var ExportJobPullRequestDestinationResult =
|
|
6626
|
-
pullRequestUrl:
|
|
6627
|
-
sparseCheckoutUsed: nullishToOptional(
|
|
6639
|
+
var ExportJobPullRequestDestinationResult = z205.object({
|
|
6640
|
+
pullRequestUrl: z205.string(),
|
|
6641
|
+
sparseCheckoutUsed: nullishToOptional(z205.boolean())
|
|
6628
6642
|
});
|
|
6629
|
-
var ExportJobS3DestinationResult =
|
|
6630
|
-
bucket:
|
|
6631
|
-
urlPrefix:
|
|
6632
|
-
path:
|
|
6633
|
-
files:
|
|
6634
|
-
url: nullishToOptional(
|
|
6635
|
-
urls: nullishToOptional(
|
|
6643
|
+
var ExportJobS3DestinationResult = z205.object({
|
|
6644
|
+
bucket: z205.string(),
|
|
6645
|
+
urlPrefix: z205.string().optional(),
|
|
6646
|
+
path: z205.string(),
|
|
6647
|
+
files: z205.array(z205.string()),
|
|
6648
|
+
url: nullishToOptional(z205.string()),
|
|
6649
|
+
urls: nullishToOptional(z205.string().array())
|
|
6636
6650
|
});
|
|
6637
|
-
var ExportJobDocsDestinationResult =
|
|
6638
|
-
url:
|
|
6651
|
+
var ExportJobDocsDestinationResult = z205.object({
|
|
6652
|
+
url: z205.string()
|
|
6639
6653
|
});
|
|
6640
|
-
var ExportJobResult =
|
|
6641
|
-
error:
|
|
6654
|
+
var ExportJobResult = z205.object({
|
|
6655
|
+
error: z205.string().optional(),
|
|
6642
6656
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
6643
6657
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
6644
6658
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -6647,25 +6661,25 @@ var ExportJobResult = z204.object({
|
|
|
6647
6661
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
6648
6662
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
6649
6663
|
});
|
|
6650
|
-
var ExportJob =
|
|
6651
|
-
id:
|
|
6652
|
-
createdAt:
|
|
6653
|
-
finishedAt:
|
|
6654
|
-
designSystemId:
|
|
6655
|
-
designSystemVersionId:
|
|
6656
|
-
workspaceId:
|
|
6657
|
-
scheduleId:
|
|
6658
|
-
exporterId:
|
|
6659
|
-
brandId:
|
|
6660
|
-
themeId:
|
|
6661
|
-
themePersistentIds:
|
|
6662
|
-
estimatedExecutionTime:
|
|
6664
|
+
var ExportJob = z205.object({
|
|
6665
|
+
id: z205.string(),
|
|
6666
|
+
createdAt: z205.coerce.date(),
|
|
6667
|
+
finishedAt: z205.coerce.date().optional(),
|
|
6668
|
+
designSystemId: z205.string(),
|
|
6669
|
+
designSystemVersionId: z205.string(),
|
|
6670
|
+
workspaceId: z205.string(),
|
|
6671
|
+
scheduleId: z205.string().nullish(),
|
|
6672
|
+
exporterId: z205.string(),
|
|
6673
|
+
brandId: z205.string().optional(),
|
|
6674
|
+
themeId: z205.string().optional(),
|
|
6675
|
+
themePersistentIds: z205.string().array().optional(),
|
|
6676
|
+
estimatedExecutionTime: z205.number().optional(),
|
|
6663
6677
|
status: ExportJobStatus,
|
|
6664
6678
|
result: ExportJobResult.optional(),
|
|
6665
|
-
createdByUserId:
|
|
6679
|
+
createdByUserId: z205.string().optional(),
|
|
6666
6680
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
6667
|
-
previewMode:
|
|
6668
|
-
exportContextId:
|
|
6681
|
+
previewMode: z205.boolean().optional(),
|
|
6682
|
+
exportContextId: z205.string().optional().nullable(),
|
|
6669
6683
|
// Destinations
|
|
6670
6684
|
...ExportDestinationsMap.shape
|
|
6671
6685
|
});
|
|
@@ -6679,37 +6693,37 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
6679
6693
|
themeId: true,
|
|
6680
6694
|
brandId: true
|
|
6681
6695
|
}).extend({
|
|
6682
|
-
destinations:
|
|
6696
|
+
destinations: z205.array(ExportJobDestinationType),
|
|
6683
6697
|
docsEnvironment: PublishedDocEnvironment,
|
|
6684
|
-
selectivePublishing:
|
|
6698
|
+
selectivePublishing: z205.boolean().optional()
|
|
6685
6699
|
}).partial();
|
|
6686
6700
|
|
|
6687
6701
|
// src/export/exporter-list-query.ts
|
|
6688
|
-
import { z as
|
|
6689
|
-
var ExporterType2 =
|
|
6690
|
-
var ListExporterQuery =
|
|
6691
|
-
limit:
|
|
6692
|
-
offset:
|
|
6702
|
+
import { z as z206 } from "zod";
|
|
6703
|
+
var ExporterType2 = z206.enum(["documentation", "code"]);
|
|
6704
|
+
var ListExporterQuery = z206.object({
|
|
6705
|
+
limit: z206.number().optional(),
|
|
6706
|
+
offset: z206.number().optional(),
|
|
6693
6707
|
type: ExporterType2.optional(),
|
|
6694
|
-
search:
|
|
6708
|
+
search: z206.string().optional()
|
|
6695
6709
|
});
|
|
6696
6710
|
|
|
6697
6711
|
// src/export/exporter-workspace-membership-role.ts
|
|
6698
|
-
import { z as
|
|
6699
|
-
var ExporterWorkspaceMembershipRole =
|
|
6712
|
+
import { z as z207 } from "zod";
|
|
6713
|
+
var ExporterWorkspaceMembershipRole = z207.enum(["Owner", "OwnerArchived", "User"]);
|
|
6700
6714
|
|
|
6701
6715
|
// src/export/exporter-workspace-membership.ts
|
|
6702
|
-
import { z as
|
|
6703
|
-
var ExporterWorkspaceMembership =
|
|
6704
|
-
id:
|
|
6705
|
-
workspaceId:
|
|
6706
|
-
exporterId:
|
|
6716
|
+
import { z as z208 } from "zod";
|
|
6717
|
+
var ExporterWorkspaceMembership = z208.object({
|
|
6718
|
+
id: z208.string(),
|
|
6719
|
+
workspaceId: z208.string(),
|
|
6720
|
+
exporterId: z208.string(),
|
|
6707
6721
|
role: ExporterWorkspaceMembershipRole
|
|
6708
6722
|
});
|
|
6709
6723
|
|
|
6710
6724
|
// src/feature-flags/feature-flags.ts
|
|
6711
|
-
import { z as
|
|
6712
|
-
var FlaggedFeature =
|
|
6725
|
+
import { z as z209 } from "zod";
|
|
6726
|
+
var FlaggedFeature = z209.enum([
|
|
6713
6727
|
"FigmaImporterV2",
|
|
6714
6728
|
"DisableImporter",
|
|
6715
6729
|
"VariablesOrder",
|
|
@@ -6741,21 +6755,21 @@ var FeatureFlagDefaults = {
|
|
|
6741
6755
|
DocumentationIgnoreSnapshotsOnPublish: "route-bff+route-p3",
|
|
6742
6756
|
DSVersionRoomYJSStorageVersion: 1
|
|
6743
6757
|
};
|
|
6744
|
-
var FeatureFlagMap =
|
|
6745
|
-
var FeatureFlag =
|
|
6746
|
-
id:
|
|
6758
|
+
var FeatureFlagMap = z209.record(FlaggedFeature, z209.boolean());
|
|
6759
|
+
var FeatureFlag = z209.object({
|
|
6760
|
+
id: z209.string(),
|
|
6747
6761
|
feature: FlaggedFeature,
|
|
6748
|
-
createdAt:
|
|
6749
|
-
enabled:
|
|
6750
|
-
designSystemId:
|
|
6751
|
-
data:
|
|
6762
|
+
createdAt: z209.coerce.date(),
|
|
6763
|
+
enabled: z209.boolean(),
|
|
6764
|
+
designSystemId: z209.string().optional(),
|
|
6765
|
+
data: z209.record(z209.any()).nullable().optional()
|
|
6752
6766
|
});
|
|
6753
6767
|
|
|
6754
6768
|
// src/integrations/external-oauth-request.ts
|
|
6755
|
-
import { z as
|
|
6769
|
+
import { z as z211 } from "zod";
|
|
6756
6770
|
|
|
6757
6771
|
// src/integrations/oauth-providers.ts
|
|
6758
|
-
import { z as
|
|
6772
|
+
import { z as z210 } from "zod";
|
|
6759
6773
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
6760
6774
|
OAuthProviderNames2["Figma"] = "figma";
|
|
6761
6775
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -6764,192 +6778,192 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
6764
6778
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
6765
6779
|
return OAuthProviderNames2;
|
|
6766
6780
|
})(OAuthProviderNames || {});
|
|
6767
|
-
var OAuthProviderSchema =
|
|
6781
|
+
var OAuthProviderSchema = z210.nativeEnum(OAuthProviderNames);
|
|
6768
6782
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
6769
6783
|
|
|
6770
6784
|
// src/integrations/external-oauth-request.ts
|
|
6771
|
-
var ExternalOAuthRequest =
|
|
6772
|
-
id:
|
|
6785
|
+
var ExternalOAuthRequest = z211.object({
|
|
6786
|
+
id: z211.string(),
|
|
6773
6787
|
provider: OAuthProviderSchema,
|
|
6774
|
-
userId:
|
|
6775
|
-
state:
|
|
6776
|
-
createdAt:
|
|
6788
|
+
userId: z211.string(),
|
|
6789
|
+
state: z211.string(),
|
|
6790
|
+
createdAt: z211.coerce.date()
|
|
6777
6791
|
});
|
|
6778
6792
|
|
|
6779
6793
|
// src/integrations/git.ts
|
|
6780
|
-
import { z as
|
|
6781
|
-
var GitObjectsQuery =
|
|
6782
|
-
organization:
|
|
6794
|
+
import { z as z212 } from "zod";
|
|
6795
|
+
var GitObjectsQuery = z212.object({
|
|
6796
|
+
organization: z212.string().optional(),
|
|
6783
6797
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
6784
|
-
project:
|
|
6798
|
+
project: z212.string().optional(),
|
|
6785
6799
|
// Only for Bitbucket and Azure
|
|
6786
|
-
repository:
|
|
6800
|
+
repository: z212.string().optional(),
|
|
6787
6801
|
// For all providers. For Gitlab, it's called "project".
|
|
6788
|
-
branch:
|
|
6802
|
+
branch: z212.string().optional(),
|
|
6789
6803
|
// For all providers.
|
|
6790
|
-
user:
|
|
6804
|
+
user: z212.string().optional()
|
|
6791
6805
|
// Gitlab user
|
|
6792
6806
|
});
|
|
6793
|
-
var GitOrganization =
|
|
6794
|
-
id:
|
|
6795
|
-
name:
|
|
6796
|
-
url:
|
|
6797
|
-
slug:
|
|
6807
|
+
var GitOrganization = z212.object({
|
|
6808
|
+
id: z212.string(),
|
|
6809
|
+
name: z212.string(),
|
|
6810
|
+
url: z212.string(),
|
|
6811
|
+
slug: z212.string()
|
|
6798
6812
|
});
|
|
6799
|
-
var GitProject =
|
|
6800
|
-
id:
|
|
6801
|
-
name:
|
|
6802
|
-
url:
|
|
6803
|
-
slug:
|
|
6813
|
+
var GitProject = z212.object({
|
|
6814
|
+
id: z212.string(),
|
|
6815
|
+
name: z212.string(),
|
|
6816
|
+
url: z212.string(),
|
|
6817
|
+
slug: z212.string()
|
|
6804
6818
|
});
|
|
6805
|
-
var GitRepository =
|
|
6806
|
-
id:
|
|
6807
|
-
name:
|
|
6808
|
-
url:
|
|
6809
|
-
slug:
|
|
6819
|
+
var GitRepository = z212.object({
|
|
6820
|
+
id: z212.string(),
|
|
6821
|
+
name: z212.string(),
|
|
6822
|
+
url: z212.string(),
|
|
6823
|
+
slug: z212.string(),
|
|
6810
6824
|
/**
|
|
6811
6825
|
* Can be undefined when:
|
|
6812
6826
|
* - there are no branches in the repository yet
|
|
6813
6827
|
* - Git provider doesn't expose this information on a repository via their API
|
|
6814
6828
|
*/
|
|
6815
|
-
defaultBranch:
|
|
6829
|
+
defaultBranch: z212.string().optional()
|
|
6816
6830
|
});
|
|
6817
|
-
var GitBranch =
|
|
6818
|
-
name:
|
|
6819
|
-
lastCommitId:
|
|
6831
|
+
var GitBranch = z212.object({
|
|
6832
|
+
name: z212.string(),
|
|
6833
|
+
lastCommitId: z212.string()
|
|
6820
6834
|
});
|
|
6821
6835
|
|
|
6822
6836
|
// src/integrations/oauth-token.ts
|
|
6823
|
-
import { z as
|
|
6824
|
-
var IntegrationTokenSchemaOld =
|
|
6825
|
-
id:
|
|
6837
|
+
import { z as z213 } from "zod";
|
|
6838
|
+
var IntegrationTokenSchemaOld = z213.object({
|
|
6839
|
+
id: z213.string(),
|
|
6826
6840
|
provider: OAuthProviderSchema,
|
|
6827
|
-
scope:
|
|
6828
|
-
userId:
|
|
6829
|
-
accessToken:
|
|
6830
|
-
refreshToken:
|
|
6831
|
-
expiresAt:
|
|
6832
|
-
externalUserId:
|
|
6841
|
+
scope: z213.string(),
|
|
6842
|
+
userId: z213.string(),
|
|
6843
|
+
accessToken: z213.string(),
|
|
6844
|
+
refreshToken: z213.string(),
|
|
6845
|
+
expiresAt: z213.coerce.date(),
|
|
6846
|
+
externalUserId: z213.string().nullish()
|
|
6833
6847
|
});
|
|
6834
6848
|
|
|
6835
6849
|
// src/integrations/workspace-oauth-requests.ts
|
|
6836
|
-
import { z as
|
|
6837
|
-
var WorkspaceOAuthRequestSchema =
|
|
6838
|
-
id:
|
|
6839
|
-
workspaceId:
|
|
6850
|
+
import { z as z214 } from "zod";
|
|
6851
|
+
var WorkspaceOAuthRequestSchema = z214.object({
|
|
6852
|
+
id: z214.string(),
|
|
6853
|
+
workspaceId: z214.string(),
|
|
6840
6854
|
provider: OAuthProviderSchema,
|
|
6841
|
-
userId:
|
|
6842
|
-
createdAt:
|
|
6855
|
+
userId: z214.string(),
|
|
6856
|
+
createdAt: z214.coerce.date()
|
|
6843
6857
|
});
|
|
6844
6858
|
|
|
6845
6859
|
// src/npm/npm-package.ts
|
|
6846
|
-
import { z as
|
|
6847
|
-
var AnyRecord =
|
|
6860
|
+
import { z as z215 } from "zod";
|
|
6861
|
+
var AnyRecord = z215.record(z215.any());
|
|
6848
6862
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
6849
|
-
|
|
6850
|
-
tarball:
|
|
6863
|
+
z215.object({
|
|
6864
|
+
tarball: z215.string()
|
|
6851
6865
|
})
|
|
6852
6866
|
);
|
|
6853
6867
|
var NpmPackageVersion = AnyRecord.and(
|
|
6854
|
-
|
|
6868
|
+
z215.object({
|
|
6855
6869
|
dist: NpmPackageVersionDist
|
|
6856
6870
|
})
|
|
6857
6871
|
);
|
|
6858
6872
|
var NpmPackage = AnyRecord.and(
|
|
6859
|
-
|
|
6860
|
-
_id:
|
|
6861
|
-
name:
|
|
6873
|
+
z215.object({
|
|
6874
|
+
_id: z215.string(),
|
|
6875
|
+
name: z215.string(),
|
|
6862
6876
|
// e.g. "latest": "1.2.3"
|
|
6863
|
-
"dist-tags":
|
|
6877
|
+
"dist-tags": z215.record(z215.string(), z215.string()),
|
|
6864
6878
|
// "1.2.3": {...}
|
|
6865
|
-
versions:
|
|
6879
|
+
versions: z215.record(NpmPackageVersion)
|
|
6866
6880
|
})
|
|
6867
6881
|
);
|
|
6868
6882
|
|
|
6869
6883
|
// src/npm/npm-proxy-token-payload.ts
|
|
6870
|
-
import { z as
|
|
6871
|
-
var NpmProxyTokenPayload =
|
|
6872
|
-
npmProxyRegistryConfigId:
|
|
6884
|
+
import { z as z216 } from "zod";
|
|
6885
|
+
var NpmProxyTokenPayload = z216.object({
|
|
6886
|
+
npmProxyRegistryConfigId: z216.string()
|
|
6873
6887
|
});
|
|
6874
6888
|
|
|
6875
6889
|
// src/page-screenshot/page-screenshot.ts
|
|
6876
|
-
import { z as
|
|
6877
|
-
var PageScreenshotInput =
|
|
6878
|
-
url:
|
|
6879
|
-
elementSelector:
|
|
6880
|
-
uploadUrl:
|
|
6881
|
-
viewportSize:
|
|
6882
|
-
width:
|
|
6883
|
-
height:
|
|
6890
|
+
import { z as z217 } from "zod";
|
|
6891
|
+
var PageScreenshotInput = z217.object({
|
|
6892
|
+
url: z217.string().url(),
|
|
6893
|
+
elementSelector: z217.string(),
|
|
6894
|
+
uploadUrl: z217.string().url(),
|
|
6895
|
+
viewportSize: z217.object({
|
|
6896
|
+
width: z217.number().positive(),
|
|
6897
|
+
height: z217.number().positive()
|
|
6884
6898
|
}).optional(),
|
|
6885
|
-
imageSize:
|
|
6886
|
-
width:
|
|
6887
|
-
height:
|
|
6899
|
+
imageSize: z217.object({
|
|
6900
|
+
width: z217.number().positive(),
|
|
6901
|
+
height: z217.number().positive()
|
|
6888
6902
|
}).optional(),
|
|
6889
|
-
supernovaAuth:
|
|
6890
|
-
accessToken:
|
|
6903
|
+
supernovaAuth: z217.object({
|
|
6904
|
+
accessToken: z217.string()
|
|
6891
6905
|
}).optional(),
|
|
6892
|
-
trace:
|
|
6893
|
-
sentryTrace:
|
|
6894
|
-
baggage:
|
|
6906
|
+
trace: z217.object({
|
|
6907
|
+
sentryTrace: z217.string().optional(),
|
|
6908
|
+
baggage: z217.string().optional()
|
|
6895
6909
|
}).optional()
|
|
6896
6910
|
});
|
|
6897
|
-
var PageScreenshotOutput =
|
|
6898
|
-
|
|
6899
|
-
success:
|
|
6900
|
-
fileSize:
|
|
6911
|
+
var PageScreenshotOutput = z217.discriminatedUnion("success", [
|
|
6912
|
+
z217.object({
|
|
6913
|
+
success: z217.literal(true),
|
|
6914
|
+
fileSize: z217.number()
|
|
6901
6915
|
}),
|
|
6902
|
-
|
|
6903
|
-
success:
|
|
6904
|
-
error:
|
|
6916
|
+
z217.object({
|
|
6917
|
+
success: z217.literal(false),
|
|
6918
|
+
error: z217.string()
|
|
6905
6919
|
})
|
|
6906
6920
|
]);
|
|
6907
6921
|
|
|
6908
6922
|
// src/portal/portal-settings.ts
|
|
6909
|
-
import { z as
|
|
6923
|
+
import { z as z218 } from "zod";
|
|
6910
6924
|
var PortalSettingsTheme = UserTheme;
|
|
6911
|
-
var PortalSettingsSidebarLink =
|
|
6912
|
-
name:
|
|
6913
|
-
url:
|
|
6914
|
-
emoji:
|
|
6915
|
-
});
|
|
6916
|
-
var PortalSettingsSidebarSection =
|
|
6917
|
-
sectionName:
|
|
6918
|
-
links:
|
|
6919
|
-
});
|
|
6920
|
-
var PortalSettingsSidebar =
|
|
6921
|
-
var PortalSettings =
|
|
6922
|
-
id:
|
|
6923
|
-
workspaceId:
|
|
6924
|
-
enabledDesignSystemIds:
|
|
6925
|
-
enabledBrandPersistentIds:
|
|
6925
|
+
var PortalSettingsSidebarLink = z218.object({
|
|
6926
|
+
name: z218.string(),
|
|
6927
|
+
url: z218.string(),
|
|
6928
|
+
emoji: z218.string()
|
|
6929
|
+
});
|
|
6930
|
+
var PortalSettingsSidebarSection = z218.object({
|
|
6931
|
+
sectionName: z218.string(),
|
|
6932
|
+
links: z218.array(PortalSettingsSidebarLink)
|
|
6933
|
+
});
|
|
6934
|
+
var PortalSettingsSidebar = z218.array(PortalSettingsSidebarSection);
|
|
6935
|
+
var PortalSettings = z218.object({
|
|
6936
|
+
id: z218.string(),
|
|
6937
|
+
workspaceId: z218.string(),
|
|
6938
|
+
enabledDesignSystemIds: z218.array(z218.string()),
|
|
6939
|
+
enabledBrandPersistentIds: z218.array(z218.string()),
|
|
6926
6940
|
theme: PortalSettingsTheme.nullish(),
|
|
6927
6941
|
sidebar: PortalSettingsSidebar.nullish(),
|
|
6928
|
-
createdAt:
|
|
6929
|
-
updatedAt:
|
|
6942
|
+
createdAt: z218.coerce.date(),
|
|
6943
|
+
updatedAt: z218.coerce.date()
|
|
6930
6944
|
});
|
|
6931
6945
|
|
|
6932
6946
|
// src/sentry/headers.ts
|
|
6933
|
-
import
|
|
6934
|
-
var SentryTraceHeaders =
|
|
6935
|
-
sentryTrace:
|
|
6936
|
-
baggage:
|
|
6947
|
+
import z219 from "zod";
|
|
6948
|
+
var SentryTraceHeaders = z219.object({
|
|
6949
|
+
sentryTrace: z219.string(),
|
|
6950
|
+
baggage: z219.string()
|
|
6937
6951
|
});
|
|
6938
6952
|
|
|
6939
6953
|
// src/tokens/personal-access-token.ts
|
|
6940
|
-
import { z as
|
|
6941
|
-
var PersonalAccessToken =
|
|
6942
|
-
id:
|
|
6943
|
-
userId:
|
|
6944
|
-
workspaceId:
|
|
6945
|
-
designSystemId:
|
|
6954
|
+
import { z as z220 } from "zod";
|
|
6955
|
+
var PersonalAccessToken = z220.object({
|
|
6956
|
+
id: z220.string(),
|
|
6957
|
+
userId: z220.string(),
|
|
6958
|
+
workspaceId: z220.string().optional(),
|
|
6959
|
+
designSystemId: z220.string().optional(),
|
|
6946
6960
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
6947
|
-
name:
|
|
6948
|
-
hidden:
|
|
6949
|
-
token:
|
|
6950
|
-
scope:
|
|
6951
|
-
createdAt:
|
|
6952
|
-
expireAt:
|
|
6961
|
+
name: z220.string(),
|
|
6962
|
+
hidden: z220.boolean(),
|
|
6963
|
+
token: z220.string(),
|
|
6964
|
+
scope: z220.string().optional(),
|
|
6965
|
+
createdAt: z220.coerce.date(),
|
|
6966
|
+
expireAt: z220.coerce.date().optional()
|
|
6953
6967
|
});
|
|
6954
6968
|
export {
|
|
6955
6969
|
Address,
|
|
@@ -7548,6 +7562,7 @@ export {
|
|
|
7548
7562
|
PipelineDestinationGitType,
|
|
7549
7563
|
PipelineDestinationType,
|
|
7550
7564
|
PipelineEventType,
|
|
7565
|
+
PipelineExporterQuery,
|
|
7551
7566
|
PluginOAuthRequestSchema,
|
|
7552
7567
|
Point2D,
|
|
7553
7568
|
PortalSettings,
|