@supernova-studio/client 0.54.13 → 0.54.15
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 +317 -127
- package/dist/index.d.ts +317 -127
- package/dist/index.js +24 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1274 -1287
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/design-system.ts +22 -1
- package/src/api/payloads/design-systems/update-design-system.ts +13 -2
package/dist/index.mjs
CHANGED
|
@@ -20,12 +20,12 @@ import { z as z11 } from "zod";
|
|
|
20
20
|
import { z as z12 } from "zod";
|
|
21
21
|
import { z as z13 } from "zod";
|
|
22
22
|
import { z as z14 } from "zod";
|
|
23
|
-
import { z as
|
|
23
|
+
import { z as z124 } from "zod";
|
|
24
24
|
import { z as z17 } from "zod";
|
|
25
25
|
import { z as z15 } from "zod";
|
|
26
26
|
import { z as z16 } from "zod";
|
|
27
|
-
import { z as
|
|
28
|
-
import { z as
|
|
27
|
+
import { z as z123 } from "zod";
|
|
28
|
+
import { z as z122 } from "zod";
|
|
29
29
|
import { z as z18 } from "zod";
|
|
30
30
|
import { z as z19 } from "zod";
|
|
31
31
|
import { z as z20 } from "zod";
|
|
@@ -126,21 +126,21 @@ import { z as z113 } from "zod";
|
|
|
126
126
|
import { z as z114 } from "zod";
|
|
127
127
|
import { z as z115 } from "zod";
|
|
128
128
|
import { z as z116 } from "zod";
|
|
129
|
-
import { z as z118 } from "zod";
|
|
130
129
|
import { z as z117 } from "zod";
|
|
130
|
+
import { z as z118 } from "zod";
|
|
131
131
|
import { z as z119 } from "zod";
|
|
132
132
|
import { z as z120 } from "zod";
|
|
133
133
|
import { z as z121 } from "zod";
|
|
134
|
-
import { z as
|
|
135
|
-
import { z as
|
|
136
|
-
import { z as
|
|
137
|
-
import { z as
|
|
134
|
+
import { z as z131 } from "zod";
|
|
135
|
+
import { z as z130 } from "zod";
|
|
136
|
+
import { z as z125 } from "zod";
|
|
137
|
+
import { z as z126 } from "zod";
|
|
138
138
|
import { z as z127 } from "zod";
|
|
139
139
|
import { z as z128 } from "zod";
|
|
140
140
|
import { z as z129 } from "zod";
|
|
141
|
-
import { z as
|
|
142
|
-
import { z as
|
|
143
|
-
import { z as
|
|
141
|
+
import { z as z146 } from "zod";
|
|
142
|
+
import { z as z132 } from "zod";
|
|
143
|
+
import { z as z133 } from "zod";
|
|
144
144
|
import { z as z134 } from "zod";
|
|
145
145
|
import { z as z135 } from "zod";
|
|
146
146
|
import { z as z136 } from "zod";
|
|
@@ -148,39 +148,37 @@ import { z as z137 } from "zod";
|
|
|
148
148
|
import { z as z138 } from "zod";
|
|
149
149
|
import { z as z139 } from "zod";
|
|
150
150
|
import { z as z140 } from "zod";
|
|
151
|
+
import { z as z145 } from "zod";
|
|
151
152
|
import { z as z141 } from "zod";
|
|
152
|
-
import { z as z142 } from "zod";
|
|
153
|
-
import { z as z147 } from "zod";
|
|
154
|
-
import { z as z143 } from "zod";
|
|
155
153
|
import IPCIDR from "ip-cidr";
|
|
156
|
-
import { z as z146 } from "zod";
|
|
157
154
|
import { z as z144 } from "zod";
|
|
158
|
-
import { z as
|
|
159
|
-
import { z as
|
|
160
|
-
import { z as
|
|
155
|
+
import { z as z142 } from "zod";
|
|
156
|
+
import { z as z143 } from "zod";
|
|
157
|
+
import { z as z147 } from "zod";
|
|
161
158
|
import { z as z150 } from "zod";
|
|
159
|
+
import { z as z148 } from "zod";
|
|
160
|
+
import { z as z149 } from "zod";
|
|
162
161
|
import { z as z151 } from "zod";
|
|
162
|
+
import { z as z152 } from "zod";
|
|
163
163
|
import { z as z153 } from "zod";
|
|
164
164
|
import { z as z154 } from "zod";
|
|
165
165
|
import { z as z155 } from "zod";
|
|
166
166
|
import { z as z156 } from "zod";
|
|
167
|
-
import { z as z157 } from "zod";
|
|
168
167
|
import { z as z158 } from "zod";
|
|
169
|
-
import { z as
|
|
168
|
+
import { z as z157 } from "zod";
|
|
170
169
|
import { z as z159 } from "zod";
|
|
170
|
+
import { z as z160 } from "zod";
|
|
171
171
|
import { z as z161 } from "zod";
|
|
172
172
|
import { z as z162 } from "zod";
|
|
173
173
|
import { z as z163 } from "zod";
|
|
174
|
-
import { z as
|
|
174
|
+
import { z as z171 } from "zod";
|
|
175
175
|
import { z as z165 } from "zod";
|
|
176
|
-
import { z as
|
|
177
|
-
import { z as z167 } from "zod";
|
|
176
|
+
import { z as z164 } from "zod";
|
|
178
177
|
import { z as z166 } from "zod";
|
|
178
|
+
import { z as z167 } from "zod";
|
|
179
179
|
import { z as z168 } from "zod";
|
|
180
180
|
import { z as z169 } from "zod";
|
|
181
181
|
import { z as z170 } from "zod";
|
|
182
|
-
import { z as z171 } from "zod";
|
|
183
|
-
import { z as z172 } from "zod";
|
|
184
182
|
var __defProp2 = Object.defineProperty;
|
|
185
183
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
186
184
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -1535,7 +1533,6 @@ var DesignTokenType = z39.enum([
|
|
|
1535
1533
|
"ParagraphSpacing",
|
|
1536
1534
|
"BorderWidth",
|
|
1537
1535
|
"BorderRadius",
|
|
1538
|
-
"Duration",
|
|
1539
1536
|
"ZIndex",
|
|
1540
1537
|
"Image",
|
|
1541
1538
|
"String",
|
|
@@ -3634,193 +3631,161 @@ var DesignSystem = z117.object({
|
|
|
3634
3631
|
createdAt: z117.coerce.date(),
|
|
3635
3632
|
updatedAt: z117.coerce.date()
|
|
3636
3633
|
});
|
|
3637
|
-
var
|
|
3638
|
-
var DS_NAME_MAX_LENGTH = 64;
|
|
3639
|
-
var DS_DESC_MAX_LENGTH = 2048;
|
|
3640
|
-
var DesignSystemUpdateInputMetadata = z118.object({
|
|
3641
|
-
name: z118.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
3642
|
-
description: z118.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
3643
|
-
});
|
|
3644
|
-
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
3645
|
-
id: true,
|
|
3646
|
-
workspaceId: true,
|
|
3647
|
-
createdAt: true,
|
|
3648
|
-
updatedAt: true,
|
|
3649
|
-
docSlug: true,
|
|
3650
|
-
docViewUrl: true
|
|
3651
|
-
}).extend({
|
|
3652
|
-
meta: DesignSystemUpdateInputMetadata.optional()
|
|
3653
|
-
});
|
|
3654
|
-
var DS_NAME_MIN_LENGTH2 = 2;
|
|
3655
|
-
var DS_NAME_MAX_LENGTH2 = 64;
|
|
3656
|
-
var DS_DESC_MAX_LENGTH2 = 64;
|
|
3657
|
-
var DesignSystemCreateInputMetadata = z119.object({
|
|
3658
|
-
name: z119.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
3659
|
-
description: z119.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
3660
|
-
});
|
|
3661
|
-
var DesignSystemCreateInput = z119.object({
|
|
3662
|
-
meta: DesignSystemCreateInputMetadata,
|
|
3663
|
-
workspaceId: z119.string(),
|
|
3664
|
-
isPublic: z119.boolean().optional(),
|
|
3665
|
-
basePrefixes: z119.array(z119.string()).optional(),
|
|
3666
|
-
docUserSlug: z119.string().nullish().optional(),
|
|
3667
|
-
source: z119.array(z119.string()).optional()
|
|
3668
|
-
});
|
|
3669
|
-
var ExporterPropertyImageValue = z120.object({
|
|
3634
|
+
var ExporterPropertyImageValue = z118.object({
|
|
3670
3635
|
asset: PageBlockAsset.optional(),
|
|
3671
|
-
assetId:
|
|
3672
|
-
assetUrl:
|
|
3673
|
-
});
|
|
3674
|
-
var ExporterPropertyValue =
|
|
3675
|
-
key:
|
|
3676
|
-
value:
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3636
|
+
assetId: z118.string().optional(),
|
|
3637
|
+
assetUrl: z118.string().optional()
|
|
3638
|
+
});
|
|
3639
|
+
var ExporterPropertyValue = z118.object({
|
|
3640
|
+
key: z118.string(),
|
|
3641
|
+
value: z118.union([
|
|
3642
|
+
z118.number(),
|
|
3643
|
+
z118.string(),
|
|
3644
|
+
z118.boolean(),
|
|
3680
3645
|
ExporterPropertyImageValue,
|
|
3681
3646
|
ColorTokenData,
|
|
3682
3647
|
TypographyTokenData
|
|
3683
3648
|
])
|
|
3684
3649
|
});
|
|
3685
|
-
var ExporterPropertyValuesCollection =
|
|
3686
|
-
id:
|
|
3687
|
-
designSystemId:
|
|
3688
|
-
exporterId:
|
|
3689
|
-
values:
|
|
3690
|
-
});
|
|
3691
|
-
var PublishedDocPage =
|
|
3692
|
-
id:
|
|
3693
|
-
publishedDocId:
|
|
3694
|
-
pageShortPersistentId:
|
|
3695
|
-
pathV1:
|
|
3696
|
-
pathV2:
|
|
3697
|
-
storagePath:
|
|
3698
|
-
locale:
|
|
3699
|
-
isPrivate:
|
|
3700
|
-
isHidden:
|
|
3701
|
-
createdAt:
|
|
3702
|
-
updatedAt:
|
|
3650
|
+
var ExporterPropertyValuesCollection = z118.object({
|
|
3651
|
+
id: z118.string(),
|
|
3652
|
+
designSystemId: z118.string(),
|
|
3653
|
+
exporterId: z118.string(),
|
|
3654
|
+
values: z118.array(ExporterPropertyValue)
|
|
3655
|
+
});
|
|
3656
|
+
var PublishedDocPage = z119.object({
|
|
3657
|
+
id: z119.string(),
|
|
3658
|
+
publishedDocId: z119.string(),
|
|
3659
|
+
pageShortPersistentId: z119.string(),
|
|
3660
|
+
pathV1: z119.string(),
|
|
3661
|
+
pathV2: z119.string(),
|
|
3662
|
+
storagePath: z119.string(),
|
|
3663
|
+
locale: z119.string().optional(),
|
|
3664
|
+
isPrivate: z119.boolean(),
|
|
3665
|
+
isHidden: z119.boolean(),
|
|
3666
|
+
createdAt: z119.coerce.date(),
|
|
3667
|
+
updatedAt: z119.coerce.date()
|
|
3703
3668
|
});
|
|
3704
3669
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
3705
|
-
var PublishedDocEnvironment =
|
|
3706
|
-
var PublishedDocsChecksums =
|
|
3707
|
-
var PublishedDocRoutingVersion =
|
|
3708
|
-
var PublishedDoc =
|
|
3709
|
-
id:
|
|
3710
|
-
designSystemVersionId:
|
|
3711
|
-
createdAt:
|
|
3712
|
-
updatedAt:
|
|
3713
|
-
lastPublishedAt:
|
|
3714
|
-
isDefault:
|
|
3715
|
-
isPublic:
|
|
3670
|
+
var PublishedDocEnvironment = z120.enum(publishedDocEnvironments);
|
|
3671
|
+
var PublishedDocsChecksums = z120.record(z120.string());
|
|
3672
|
+
var PublishedDocRoutingVersion = z120.enum(["1", "2"]);
|
|
3673
|
+
var PublishedDoc = z120.object({
|
|
3674
|
+
id: z120.string(),
|
|
3675
|
+
designSystemVersionId: z120.string(),
|
|
3676
|
+
createdAt: z120.coerce.date(),
|
|
3677
|
+
updatedAt: z120.coerce.date(),
|
|
3678
|
+
lastPublishedAt: z120.coerce.date(),
|
|
3679
|
+
isDefault: z120.boolean(),
|
|
3680
|
+
isPublic: z120.boolean(),
|
|
3716
3681
|
environment: PublishedDocEnvironment,
|
|
3717
3682
|
checksums: PublishedDocsChecksums,
|
|
3718
|
-
storagePath:
|
|
3719
|
-
wasMigrated:
|
|
3683
|
+
storagePath: z120.string(),
|
|
3684
|
+
wasMigrated: z120.boolean(),
|
|
3720
3685
|
routingVersion: PublishedDocRoutingVersion,
|
|
3721
|
-
usesLocalizations:
|
|
3722
|
-
wasPublishedWithLocalizations:
|
|
3723
|
-
tokenCount:
|
|
3724
|
-
assetCount:
|
|
3686
|
+
usesLocalizations: z120.boolean(),
|
|
3687
|
+
wasPublishedWithLocalizations: z120.boolean(),
|
|
3688
|
+
tokenCount: z120.number(),
|
|
3689
|
+
assetCount: z120.number()
|
|
3725
3690
|
});
|
|
3726
|
-
var DesignSystemVersion =
|
|
3727
|
-
id:
|
|
3728
|
-
version:
|
|
3729
|
-
createdAt:
|
|
3730
|
-
designSystemId:
|
|
3731
|
-
name:
|
|
3732
|
-
comment:
|
|
3733
|
-
isReadonly:
|
|
3734
|
-
changeLog:
|
|
3735
|
-
parentId:
|
|
3736
|
-
isDraftsFeatureAdopted:
|
|
3737
|
-
});
|
|
3738
|
-
var VersionCreationJobStatus =
|
|
3739
|
-
var VersionCreationJob =
|
|
3740
|
-
id:
|
|
3741
|
-
version:
|
|
3742
|
-
designSystemId:
|
|
3743
|
-
designSystemVersionId: nullishToOptional(
|
|
3691
|
+
var DesignSystemVersion = z121.object({
|
|
3692
|
+
id: z121.string(),
|
|
3693
|
+
version: z121.string(),
|
|
3694
|
+
createdAt: z121.coerce.date(),
|
|
3695
|
+
designSystemId: z121.string(),
|
|
3696
|
+
name: z121.string(),
|
|
3697
|
+
comment: z121.string(),
|
|
3698
|
+
isReadonly: z121.boolean(),
|
|
3699
|
+
changeLog: z121.string(),
|
|
3700
|
+
parentId: z121.string().optional(),
|
|
3701
|
+
isDraftsFeatureAdopted: z121.boolean()
|
|
3702
|
+
});
|
|
3703
|
+
var VersionCreationJobStatus = z121.enum(["Success", "InProgress", "Error"]);
|
|
3704
|
+
var VersionCreationJob = z121.object({
|
|
3705
|
+
id: z121.string(),
|
|
3706
|
+
version: z121.string(),
|
|
3707
|
+
designSystemId: z121.string(),
|
|
3708
|
+
designSystemVersionId: nullishToOptional(z121.string()),
|
|
3744
3709
|
status: VersionCreationJobStatus,
|
|
3745
|
-
errorMessage: nullishToOptional(
|
|
3710
|
+
errorMessage: nullishToOptional(z121.string())
|
|
3746
3711
|
});
|
|
3747
3712
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
3748
3713
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
3749
|
-
var ExportJobDocumentationChanges =
|
|
3750
|
-
pagePersistentIds:
|
|
3751
|
-
groupPersistentIds:
|
|
3714
|
+
var ExportJobDocumentationChanges = z122.object({
|
|
3715
|
+
pagePersistentIds: z122.string().array(),
|
|
3716
|
+
groupPersistentIds: z122.string().array()
|
|
3752
3717
|
});
|
|
3753
|
-
var ExporterDestinationDocs =
|
|
3718
|
+
var ExporterDestinationDocs = z122.object({
|
|
3754
3719
|
environment: PublishedDocEnvironment,
|
|
3755
3720
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
3756
3721
|
});
|
|
3757
|
-
var ExporterDestinationS3 =
|
|
3758
|
-
var ExporterDestinationGithub =
|
|
3759
|
-
credentialId:
|
|
3722
|
+
var ExporterDestinationS3 = z122.object({});
|
|
3723
|
+
var ExporterDestinationGithub = z122.object({
|
|
3724
|
+
credentialId: z122.string().optional(),
|
|
3760
3725
|
// Repository
|
|
3761
|
-
url:
|
|
3726
|
+
url: z122.string(),
|
|
3762
3727
|
// Location
|
|
3763
|
-
branch:
|
|
3764
|
-
relativePath: nullishToOptional(
|
|
3728
|
+
branch: z122.string(),
|
|
3729
|
+
relativePath: nullishToOptional(z122.string()),
|
|
3765
3730
|
// Commit metadata
|
|
3766
|
-
commitAuthorName: nullishToOptional(
|
|
3767
|
-
commitAuthorEmail: nullishToOptional(
|
|
3731
|
+
commitAuthorName: nullishToOptional(z122.string()),
|
|
3732
|
+
commitAuthorEmail: nullishToOptional(z122.string()),
|
|
3768
3733
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3769
|
-
connectionId: nullishToOptional(
|
|
3770
|
-
userId: nullishToOptional(
|
|
3734
|
+
connectionId: nullishToOptional(z122.string()),
|
|
3735
|
+
userId: nullishToOptional(z122.number())
|
|
3771
3736
|
});
|
|
3772
|
-
var ExporterDestinationAzure =
|
|
3773
|
-
credentialId:
|
|
3737
|
+
var ExporterDestinationAzure = z122.object({
|
|
3738
|
+
credentialId: z122.string().optional(),
|
|
3774
3739
|
// Repository
|
|
3775
|
-
organizationId:
|
|
3776
|
-
projectId:
|
|
3777
|
-
repositoryId:
|
|
3740
|
+
organizationId: z122.string(),
|
|
3741
|
+
projectId: z122.string(),
|
|
3742
|
+
repositoryId: z122.string(),
|
|
3778
3743
|
// Commit metadata
|
|
3779
|
-
commitAuthorName: nullishToOptional(
|
|
3780
|
-
commitAuthorEmail: nullishToOptional(
|
|
3744
|
+
commitAuthorName: nullishToOptional(z122.string()),
|
|
3745
|
+
commitAuthorEmail: nullishToOptional(z122.string()),
|
|
3781
3746
|
// Location
|
|
3782
|
-
branch:
|
|
3783
|
-
relativePath: nullishToOptional(
|
|
3747
|
+
branch: z122.string(),
|
|
3748
|
+
relativePath: nullishToOptional(z122.string()),
|
|
3784
3749
|
// Maybe not needed
|
|
3785
|
-
url: nullishToOptional(
|
|
3750
|
+
url: nullishToOptional(z122.string()),
|
|
3786
3751
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3787
|
-
connectionId: nullishToOptional(
|
|
3788
|
-
userId: nullishToOptional(
|
|
3752
|
+
connectionId: nullishToOptional(z122.string()),
|
|
3753
|
+
userId: nullishToOptional(z122.number())
|
|
3789
3754
|
});
|
|
3790
|
-
var ExporterDestinationGitlab =
|
|
3791
|
-
credentialId:
|
|
3755
|
+
var ExporterDestinationGitlab = z122.object({
|
|
3756
|
+
credentialId: z122.string().optional(),
|
|
3792
3757
|
// Repository
|
|
3793
|
-
projectId:
|
|
3758
|
+
projectId: z122.string(),
|
|
3794
3759
|
// Commit metadata
|
|
3795
|
-
commitAuthorName: nullishToOptional(
|
|
3796
|
-
commitAuthorEmail: nullishToOptional(
|
|
3760
|
+
commitAuthorName: nullishToOptional(z122.string()),
|
|
3761
|
+
commitAuthorEmail: nullishToOptional(z122.string()),
|
|
3797
3762
|
// Location
|
|
3798
|
-
branch:
|
|
3799
|
-
relativePath: nullishToOptional(
|
|
3763
|
+
branch: z122.string(),
|
|
3764
|
+
relativePath: nullishToOptional(z122.string()),
|
|
3800
3765
|
// Maybe not needed
|
|
3801
|
-
url: nullishToOptional(
|
|
3766
|
+
url: nullishToOptional(z122.string()),
|
|
3802
3767
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3803
|
-
connectionId: nullishToOptional(
|
|
3804
|
-
userId: nullishToOptional(
|
|
3768
|
+
connectionId: nullishToOptional(z122.string()),
|
|
3769
|
+
userId: nullishToOptional(z122.number())
|
|
3805
3770
|
});
|
|
3806
|
-
var ExporterDestinationBitbucket =
|
|
3807
|
-
credentialId:
|
|
3771
|
+
var ExporterDestinationBitbucket = z122.object({
|
|
3772
|
+
credentialId: z122.string().optional(),
|
|
3808
3773
|
// Repository
|
|
3809
|
-
workspaceSlug:
|
|
3810
|
-
projectKey:
|
|
3811
|
-
repoSlug:
|
|
3774
|
+
workspaceSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3775
|
+
projectKey: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3776
|
+
repoSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3812
3777
|
// Commit metadata
|
|
3813
|
-
commitAuthorName: nullishToOptional(
|
|
3814
|
-
commitAuthorEmail: nullishToOptional(
|
|
3778
|
+
commitAuthorName: nullishToOptional(z122.string()),
|
|
3779
|
+
commitAuthorEmail: nullishToOptional(z122.string()),
|
|
3815
3780
|
// Location
|
|
3816
|
-
branch:
|
|
3817
|
-
relativePath: nullishToOptional(
|
|
3781
|
+
branch: z122.string(),
|
|
3782
|
+
relativePath: nullishToOptional(z122.string()),
|
|
3818
3783
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3819
|
-
connectionId: nullishToOptional(
|
|
3820
|
-
userId: nullishToOptional(
|
|
3784
|
+
connectionId: nullishToOptional(z122.string()),
|
|
3785
|
+
userId: nullishToOptional(z122.number())
|
|
3821
3786
|
});
|
|
3822
|
-
var ExportDestinationsMap =
|
|
3823
|
-
webhookUrl:
|
|
3787
|
+
var ExportDestinationsMap = z122.object({
|
|
3788
|
+
webhookUrl: z122.string().optional(),
|
|
3824
3789
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
3825
3790
|
destinationS3: ExporterDestinationS3.optional(),
|
|
3826
3791
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -3828,93 +3793,93 @@ var ExportDestinationsMap = z124.object({
|
|
|
3828
3793
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
3829
3794
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
3830
3795
|
});
|
|
3831
|
-
var PipelineEventType =
|
|
3832
|
-
var PipelineDestinationGitType =
|
|
3833
|
-
var PipelineDestinationExtraType =
|
|
3834
|
-
var PipelineDestinationType =
|
|
3835
|
-
var Pipeline =
|
|
3836
|
-
id:
|
|
3837
|
-
name:
|
|
3796
|
+
var PipelineEventType = z123.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
3797
|
+
var PipelineDestinationGitType = z123.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
3798
|
+
var PipelineDestinationExtraType = z123.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
3799
|
+
var PipelineDestinationType = z123.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
3800
|
+
var Pipeline = z123.object({
|
|
3801
|
+
id: z123.string(),
|
|
3802
|
+
name: z123.string(),
|
|
3838
3803
|
eventType: PipelineEventType,
|
|
3839
|
-
isEnabled:
|
|
3840
|
-
workspaceId:
|
|
3841
|
-
designSystemId:
|
|
3842
|
-
exporterId:
|
|
3843
|
-
brandPersistentId:
|
|
3844
|
-
themePersistentId:
|
|
3845
|
-
themePersistentIds:
|
|
3804
|
+
isEnabled: z123.boolean(),
|
|
3805
|
+
workspaceId: z123.string(),
|
|
3806
|
+
designSystemId: z123.string(),
|
|
3807
|
+
exporterId: z123.string(),
|
|
3808
|
+
brandPersistentId: z123.string().optional(),
|
|
3809
|
+
themePersistentId: z123.string().optional(),
|
|
3810
|
+
themePersistentIds: z123.string().array().optional(),
|
|
3846
3811
|
// Destinations
|
|
3847
3812
|
...ExportDestinationsMap.shape
|
|
3848
3813
|
});
|
|
3849
|
-
var ExportJobDump =
|
|
3850
|
-
id:
|
|
3851
|
-
createdAt:
|
|
3852
|
-
finishedAt:
|
|
3853
|
-
exportArtefacts:
|
|
3814
|
+
var ExportJobDump = z124.object({
|
|
3815
|
+
id: z124.string(),
|
|
3816
|
+
createdAt: z124.coerce.date(),
|
|
3817
|
+
finishedAt: z124.coerce.date(),
|
|
3818
|
+
exportArtefacts: z124.string()
|
|
3854
3819
|
});
|
|
3855
|
-
var CodeIntegrationDump =
|
|
3820
|
+
var CodeIntegrationDump = z124.object({
|
|
3856
3821
|
exporters: Exporter.array(),
|
|
3857
3822
|
pipelines: Pipeline.array(),
|
|
3858
3823
|
exportJobs: ExportJobDump.array()
|
|
3859
3824
|
});
|
|
3860
3825
|
var DesignSystemVersionRoom = Entity.extend({
|
|
3861
|
-
designSystemVersionId:
|
|
3862
|
-
liveblocksId:
|
|
3863
|
-
});
|
|
3864
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
3865
|
-
routingVersion:
|
|
3866
|
-
isDraftFeatureAdopted:
|
|
3867
|
-
isApprovalFeatureEnabled:
|
|
3868
|
-
approvalRequiredForPublishing:
|
|
3869
|
-
});
|
|
3870
|
-
var DesignSystemVersionRoomInitialState =
|
|
3871
|
-
pages:
|
|
3872
|
-
groups:
|
|
3873
|
-
pageSnapshots:
|
|
3874
|
-
groupSnapshots:
|
|
3875
|
-
pageApprovals:
|
|
3826
|
+
designSystemVersionId: z125.string(),
|
|
3827
|
+
liveblocksId: z125.string()
|
|
3828
|
+
});
|
|
3829
|
+
var DesignSystemVersionRoomInternalSettings = z125.object({
|
|
3830
|
+
routingVersion: z125.string(),
|
|
3831
|
+
isDraftFeatureAdopted: z125.boolean(),
|
|
3832
|
+
isApprovalFeatureEnabled: z125.boolean(),
|
|
3833
|
+
approvalRequiredForPublishing: z125.boolean()
|
|
3834
|
+
});
|
|
3835
|
+
var DesignSystemVersionRoomInitialState = z125.object({
|
|
3836
|
+
pages: z125.array(DocumentationPageV2),
|
|
3837
|
+
groups: z125.array(ElementGroup),
|
|
3838
|
+
pageSnapshots: z125.array(DocumentationPageSnapshot),
|
|
3839
|
+
groupSnapshots: z125.array(ElementGroupSnapshot),
|
|
3840
|
+
pageApprovals: z125.array(DocumentationPageApproval),
|
|
3876
3841
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
3877
3842
|
});
|
|
3878
|
-
var DesignSystemVersionRoomUpdate =
|
|
3879
|
-
pages:
|
|
3880
|
-
groups:
|
|
3881
|
-
pageIdsToDelete:
|
|
3882
|
-
groupIdsToDelete:
|
|
3883
|
-
pageSnapshots:
|
|
3884
|
-
groupSnapshots:
|
|
3885
|
-
pageSnapshotIdsToDelete:
|
|
3886
|
-
groupSnapshotIdsToDelete:
|
|
3887
|
-
pageHashesToUpdate:
|
|
3888
|
-
pageApprovals:
|
|
3889
|
-
pageApprovalIdsToDelete:
|
|
3843
|
+
var DesignSystemVersionRoomUpdate = z125.object({
|
|
3844
|
+
pages: z125.array(DocumentationPageV2),
|
|
3845
|
+
groups: z125.array(ElementGroup),
|
|
3846
|
+
pageIdsToDelete: z125.array(z125.string()),
|
|
3847
|
+
groupIdsToDelete: z125.array(z125.string()),
|
|
3848
|
+
pageSnapshots: z125.array(DocumentationPageSnapshot),
|
|
3849
|
+
groupSnapshots: z125.array(ElementGroupSnapshot),
|
|
3850
|
+
pageSnapshotIdsToDelete: z125.array(z125.string()),
|
|
3851
|
+
groupSnapshotIdsToDelete: z125.array(z125.string()),
|
|
3852
|
+
pageHashesToUpdate: z125.record(z125.string(), z125.string()),
|
|
3853
|
+
pageApprovals: z125.array(DocumentationPageApproval),
|
|
3854
|
+
pageApprovalIdsToDelete: z125.array(z125.string())
|
|
3890
3855
|
});
|
|
3891
3856
|
var DocumentationPageRoom = Entity.extend({
|
|
3892
|
-
designSystemVersionId:
|
|
3893
|
-
documentationPageId:
|
|
3894
|
-
liveblocksId:
|
|
3895
|
-
isDirty:
|
|
3857
|
+
designSystemVersionId: z126.string(),
|
|
3858
|
+
documentationPageId: z126.string(),
|
|
3859
|
+
liveblocksId: z126.string(),
|
|
3860
|
+
isDirty: z126.boolean()
|
|
3896
3861
|
});
|
|
3897
|
-
var DocumentationPageRoomState =
|
|
3898
|
-
pageItems:
|
|
3862
|
+
var DocumentationPageRoomState = z126.object({
|
|
3863
|
+
pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3899
3864
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
3900
3865
|
});
|
|
3901
|
-
var DocumentationPageRoomRoomUpdate =
|
|
3866
|
+
var DocumentationPageRoomRoomUpdate = z126.object({
|
|
3902
3867
|
page: DocumentationPageV2,
|
|
3903
3868
|
pageParent: ElementGroup
|
|
3904
3869
|
});
|
|
3905
3870
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3906
|
-
pageItems:
|
|
3907
|
-
blockDefinitions:
|
|
3871
|
+
pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3872
|
+
blockDefinitions: z126.array(PageBlockDefinition)
|
|
3908
3873
|
});
|
|
3909
|
-
var RestoredDocumentationPage =
|
|
3874
|
+
var RestoredDocumentationPage = z126.object({
|
|
3910
3875
|
page: DocumentationPageV2,
|
|
3911
3876
|
pageParent: ElementGroup,
|
|
3912
3877
|
pageContent: DocumentationPageContentData,
|
|
3913
|
-
contentHash:
|
|
3914
|
-
snapshotId:
|
|
3915
|
-
roomId:
|
|
3878
|
+
contentHash: z126.string(),
|
|
3879
|
+
snapshotId: z126.string(),
|
|
3880
|
+
roomId: z126.string().optional()
|
|
3916
3881
|
});
|
|
3917
|
-
var RestoredDocumentationGroup =
|
|
3882
|
+
var RestoredDocumentationGroup = z126.object({
|
|
3918
3883
|
group: ElementGroup,
|
|
3919
3884
|
parent: ElementGroup
|
|
3920
3885
|
});
|
|
@@ -3924,28 +3889,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
3924
3889
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3925
3890
|
return RoomTypeEnum2;
|
|
3926
3891
|
})(RoomTypeEnum || {});
|
|
3927
|
-
var RoomTypeSchema =
|
|
3892
|
+
var RoomTypeSchema = z127.nativeEnum(RoomTypeEnum);
|
|
3928
3893
|
var RoomType = RoomTypeSchema.enum;
|
|
3929
3894
|
var WorkspaceRoom = Entity.extend({
|
|
3930
|
-
workspaceId:
|
|
3931
|
-
liveblocksId:
|
|
3895
|
+
workspaceId: z128.string(),
|
|
3896
|
+
liveblocksId: z128.string()
|
|
3932
3897
|
});
|
|
3933
|
-
var PublishedDocsDump =
|
|
3898
|
+
var PublishedDocsDump = z129.object({
|
|
3934
3899
|
documentation: PublishedDoc,
|
|
3935
3900
|
pages: PublishedDocPage.array()
|
|
3936
3901
|
});
|
|
3937
|
-
var DocumentationThreadDump =
|
|
3902
|
+
var DocumentationThreadDump = z130.object({
|
|
3938
3903
|
thread: DocumentationCommentThread,
|
|
3939
3904
|
comments: DocumentationComment.array()
|
|
3940
3905
|
});
|
|
3941
|
-
var DocumentationPageRoomDump =
|
|
3906
|
+
var DocumentationPageRoomDump = z130.object({
|
|
3942
3907
|
room: DocumentationPageRoom,
|
|
3943
3908
|
threads: DocumentationThreadDump.array()
|
|
3944
3909
|
});
|
|
3945
|
-
var DesignSystemVersionMultiplayerDump =
|
|
3910
|
+
var DesignSystemVersionMultiplayerDump = z130.object({
|
|
3946
3911
|
documentationPages: DocumentationPageRoomDump.array()
|
|
3947
3912
|
});
|
|
3948
|
-
var DesignSystemVersionDump =
|
|
3913
|
+
var DesignSystemVersionDump = z130.object({
|
|
3949
3914
|
version: DesignSystemVersion,
|
|
3950
3915
|
brands: Brand.array(),
|
|
3951
3916
|
elements: DesignElement.array(),
|
|
@@ -3958,142 +3923,142 @@ var DesignSystemVersionDump = z132.object({
|
|
|
3958
3923
|
publishedDocumentations: PublishedDocsDump.array(),
|
|
3959
3924
|
assetReferences: AssetReference.array()
|
|
3960
3925
|
});
|
|
3961
|
-
var DesignSystemDump =
|
|
3926
|
+
var DesignSystemDump = z131.object({
|
|
3962
3927
|
designSystem: DesignSystem,
|
|
3963
3928
|
dataSources: DataSource.array(),
|
|
3964
3929
|
versions: DesignSystemVersionDump.array(),
|
|
3965
3930
|
customDomain: CustomDomain.optional(),
|
|
3966
3931
|
files: Asset.array()
|
|
3967
3932
|
});
|
|
3968
|
-
var IntegrationAuthType =
|
|
3969
|
-
var ExternalServiceType =
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3933
|
+
var IntegrationAuthType = z132.union([z132.literal("OAuth2"), z132.literal("PAT")]);
|
|
3934
|
+
var ExternalServiceType = z132.union([
|
|
3935
|
+
z132.literal("figma"),
|
|
3936
|
+
z132.literal("github"),
|
|
3937
|
+
z132.literal("azure"),
|
|
3938
|
+
z132.literal("gitlab"),
|
|
3939
|
+
z132.literal("bitbucket")
|
|
3975
3940
|
]);
|
|
3976
|
-
var IntegrationUserInfo =
|
|
3977
|
-
id:
|
|
3978
|
-
handle:
|
|
3979
|
-
avatarUrl:
|
|
3980
|
-
email:
|
|
3941
|
+
var IntegrationUserInfo = z132.object({
|
|
3942
|
+
id: z132.string(),
|
|
3943
|
+
handle: z132.string().optional(),
|
|
3944
|
+
avatarUrl: z132.string().optional(),
|
|
3945
|
+
email: z132.string().optional(),
|
|
3981
3946
|
authType: IntegrationAuthType.optional(),
|
|
3982
|
-
customUrl:
|
|
3947
|
+
customUrl: z132.string().optional()
|
|
3983
3948
|
});
|
|
3984
|
-
var UserLinkedIntegrations =
|
|
3949
|
+
var UserLinkedIntegrations = z132.object({
|
|
3985
3950
|
figma: IntegrationUserInfo.optional(),
|
|
3986
3951
|
github: IntegrationUserInfo.array().optional(),
|
|
3987
3952
|
azure: IntegrationUserInfo.array().optional(),
|
|
3988
3953
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
3989
3954
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
3990
3955
|
});
|
|
3991
|
-
var UserAnalyticsCleanupSchedule =
|
|
3992
|
-
userId:
|
|
3993
|
-
createdAt:
|
|
3994
|
-
deleteAt:
|
|
3956
|
+
var UserAnalyticsCleanupSchedule = z133.object({
|
|
3957
|
+
userId: z133.string(),
|
|
3958
|
+
createdAt: z133.coerce.date(),
|
|
3959
|
+
deleteAt: z133.coerce.date()
|
|
3995
3960
|
});
|
|
3996
3961
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3997
3962
|
createdAt: true
|
|
3998
3963
|
});
|
|
3999
|
-
var CreateUserInput =
|
|
4000
|
-
email:
|
|
4001
|
-
name:
|
|
4002
|
-
username:
|
|
3964
|
+
var CreateUserInput = z134.object({
|
|
3965
|
+
email: z134.string(),
|
|
3966
|
+
name: z134.string(),
|
|
3967
|
+
username: z134.string()
|
|
4003
3968
|
});
|
|
4004
|
-
var UserIdentity =
|
|
4005
|
-
id:
|
|
4006
|
-
userId:
|
|
3969
|
+
var UserIdentity = z135.object({
|
|
3970
|
+
id: z135.string(),
|
|
3971
|
+
userId: z135.string()
|
|
4007
3972
|
});
|
|
4008
|
-
var UserMinified =
|
|
4009
|
-
id:
|
|
4010
|
-
name:
|
|
4011
|
-
email:
|
|
4012
|
-
avatar:
|
|
3973
|
+
var UserMinified = z136.object({
|
|
3974
|
+
id: z136.string(),
|
|
3975
|
+
name: z136.string(),
|
|
3976
|
+
email: z136.string(),
|
|
3977
|
+
avatar: z136.string().optional()
|
|
4013
3978
|
});
|
|
4014
|
-
var LiveblocksNotificationSettings =
|
|
4015
|
-
sendCommentNotificationEmails:
|
|
3979
|
+
var LiveblocksNotificationSettings = z137.object({
|
|
3980
|
+
sendCommentNotificationEmails: z137.boolean()
|
|
4016
3981
|
});
|
|
4017
|
-
var UserNotificationSettings =
|
|
3982
|
+
var UserNotificationSettings = z137.object({
|
|
4018
3983
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4019
3984
|
});
|
|
4020
|
-
var UserOnboardingDepartment =
|
|
4021
|
-
var UserOnboardingJobLevel =
|
|
4022
|
-
var UserOnboarding =
|
|
4023
|
-
companyName:
|
|
4024
|
-
numberOfPeopleInOrg:
|
|
4025
|
-
numberOfPeopleInDesignTeam:
|
|
3985
|
+
var UserOnboardingDepartment = z138.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3986
|
+
var UserOnboardingJobLevel = z138.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3987
|
+
var UserOnboarding = z138.object({
|
|
3988
|
+
companyName: z138.string().optional(),
|
|
3989
|
+
numberOfPeopleInOrg: z138.string().optional(),
|
|
3990
|
+
numberOfPeopleInDesignTeam: z138.string().optional(),
|
|
4026
3991
|
department: UserOnboardingDepartment.optional(),
|
|
4027
|
-
jobTitle:
|
|
4028
|
-
phase:
|
|
3992
|
+
jobTitle: z138.string().optional(),
|
|
3993
|
+
phase: z138.string().optional(),
|
|
4029
3994
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4030
|
-
designSystemName:
|
|
4031
|
-
defaultDestination:
|
|
4032
|
-
figmaUrl:
|
|
4033
|
-
isPageDraftOnboardingFinished:
|
|
4034
|
-
isApprovalsOnboardingFinished:
|
|
4035
|
-
});
|
|
4036
|
-
var UserProfile =
|
|
4037
|
-
name:
|
|
4038
|
-
avatar:
|
|
4039
|
-
nickname:
|
|
3995
|
+
designSystemName: z138.string().optional(),
|
|
3996
|
+
defaultDestination: z138.string().optional(),
|
|
3997
|
+
figmaUrl: z138.string().optional(),
|
|
3998
|
+
isPageDraftOnboardingFinished: z138.boolean().optional(),
|
|
3999
|
+
isApprovalsOnboardingFinished: z138.boolean().optional()
|
|
4000
|
+
});
|
|
4001
|
+
var UserProfile = z138.object({
|
|
4002
|
+
name: z138.string(),
|
|
4003
|
+
avatar: z138.string().optional(),
|
|
4004
|
+
nickname: z138.string().optional(),
|
|
4040
4005
|
onboarding: UserOnboarding.optional()
|
|
4041
4006
|
});
|
|
4042
4007
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4043
4008
|
avatar: true
|
|
4044
4009
|
});
|
|
4045
|
-
var UserTest =
|
|
4046
|
-
id:
|
|
4047
|
-
email:
|
|
4048
|
-
});
|
|
4049
|
-
var User =
|
|
4050
|
-
id:
|
|
4051
|
-
email:
|
|
4052
|
-
emailVerified:
|
|
4053
|
-
createdAt:
|
|
4054
|
-
trialExpiresAt:
|
|
4010
|
+
var UserTest = z139.object({
|
|
4011
|
+
id: z139.string(),
|
|
4012
|
+
email: z139.string()
|
|
4013
|
+
});
|
|
4014
|
+
var User = z140.object({
|
|
4015
|
+
id: z140.string(),
|
|
4016
|
+
email: z140.string(),
|
|
4017
|
+
emailVerified: z140.boolean(),
|
|
4018
|
+
createdAt: z140.coerce.date(),
|
|
4019
|
+
trialExpiresAt: z140.coerce.date().optional(),
|
|
4055
4020
|
profile: UserProfile,
|
|
4056
4021
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4057
|
-
loggedOutAt:
|
|
4058
|
-
isProtected:
|
|
4059
|
-
});
|
|
4060
|
-
var IntegrationDesignSystem =
|
|
4061
|
-
designSystemId:
|
|
4062
|
-
brandId:
|
|
4063
|
-
title:
|
|
4064
|
-
userId:
|
|
4065
|
-
date:
|
|
4066
|
-
});
|
|
4067
|
-
var IntegrationCredentialsType =
|
|
4068
|
-
var IntegrationCredentialsState =
|
|
4069
|
-
var IntegrationCredentialsProfile =
|
|
4070
|
-
id: nullishToOptional(
|
|
4071
|
-
email: nullishToOptional(
|
|
4072
|
-
handle: nullishToOptional(
|
|
4073
|
-
type: nullishToOptional(
|
|
4074
|
-
avatarUrl: nullishToOptional(
|
|
4075
|
-
organization: nullishToOptional(
|
|
4076
|
-
collection: nullishToOptional(
|
|
4077
|
-
});
|
|
4078
|
-
var IntegrationCredentials =
|
|
4079
|
-
id:
|
|
4022
|
+
loggedOutAt: z140.coerce.date().optional(),
|
|
4023
|
+
isProtected: z140.boolean()
|
|
4024
|
+
});
|
|
4025
|
+
var IntegrationDesignSystem = z141.object({
|
|
4026
|
+
designSystemId: z141.string(),
|
|
4027
|
+
brandId: z141.string(),
|
|
4028
|
+
title: z141.string().optional(),
|
|
4029
|
+
userId: z141.string().optional(),
|
|
4030
|
+
date: z141.coerce.date().optional()
|
|
4031
|
+
});
|
|
4032
|
+
var IntegrationCredentialsType = z141.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4033
|
+
var IntegrationCredentialsState = z141.enum(["Active", "Inactive"]);
|
|
4034
|
+
var IntegrationCredentialsProfile = z141.object({
|
|
4035
|
+
id: nullishToOptional(z141.string()),
|
|
4036
|
+
email: nullishToOptional(z141.string()),
|
|
4037
|
+
handle: nullishToOptional(z141.string()),
|
|
4038
|
+
type: nullishToOptional(z141.string()),
|
|
4039
|
+
avatarUrl: nullishToOptional(z141.string()),
|
|
4040
|
+
organization: nullishToOptional(z141.string()),
|
|
4041
|
+
collection: nullishToOptional(z141.string())
|
|
4042
|
+
});
|
|
4043
|
+
var IntegrationCredentials = z141.object({
|
|
4044
|
+
id: z141.string(),
|
|
4080
4045
|
type: IntegrationCredentialsType,
|
|
4081
|
-
integrationId:
|
|
4082
|
-
accessToken:
|
|
4083
|
-
userId:
|
|
4084
|
-
createdAt:
|
|
4085
|
-
refreshToken:
|
|
4086
|
-
tokenName:
|
|
4087
|
-
expiresAt:
|
|
4088
|
-
refreshedAt:
|
|
4089
|
-
username:
|
|
4090
|
-
appInstallationId:
|
|
4046
|
+
integrationId: z141.string(),
|
|
4047
|
+
accessToken: z141.string(),
|
|
4048
|
+
userId: z141.string(),
|
|
4049
|
+
createdAt: z141.coerce.date(),
|
|
4050
|
+
refreshToken: z141.string().optional(),
|
|
4051
|
+
tokenName: z141.string().optional(),
|
|
4052
|
+
expiresAt: z141.coerce.date().optional(),
|
|
4053
|
+
refreshedAt: z141.coerce.date().optional(),
|
|
4054
|
+
username: z141.string().optional(),
|
|
4055
|
+
appInstallationId: z141.string().optional(),
|
|
4091
4056
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4092
|
-
customUrl:
|
|
4057
|
+
customUrl: z141.string().optional(),
|
|
4093
4058
|
state: IntegrationCredentialsState,
|
|
4094
4059
|
user: UserMinified.optional()
|
|
4095
4060
|
});
|
|
4096
|
-
var ExtendedIntegrationType =
|
|
4061
|
+
var ExtendedIntegrationType = z141.enum([
|
|
4097
4062
|
"Figma",
|
|
4098
4063
|
"Github",
|
|
4099
4064
|
"Gitlab",
|
|
@@ -4104,26 +4069,26 @@ var ExtendedIntegrationType = z143.enum([
|
|
|
4104
4069
|
]);
|
|
4105
4070
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4106
4071
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4107
|
-
var Integration =
|
|
4108
|
-
id:
|
|
4109
|
-
workspaceId:
|
|
4072
|
+
var Integration = z141.object({
|
|
4073
|
+
id: z141.string(),
|
|
4074
|
+
workspaceId: z141.string(),
|
|
4110
4075
|
type: IntegrationType,
|
|
4111
|
-
createdAt:
|
|
4112
|
-
integrationCredentials:
|
|
4113
|
-
});
|
|
4114
|
-
var IntegrationToken =
|
|
4115
|
-
access_token:
|
|
4116
|
-
refresh_token:
|
|
4117
|
-
expires_in:
|
|
4118
|
-
token_type:
|
|
4119
|
-
token_name:
|
|
4120
|
-
token_azure_organization_name:
|
|
4076
|
+
createdAt: z141.coerce.date(),
|
|
4077
|
+
integrationCredentials: z141.array(IntegrationCredentials).optional()
|
|
4078
|
+
});
|
|
4079
|
+
var IntegrationToken = z141.object({
|
|
4080
|
+
access_token: z141.string(),
|
|
4081
|
+
refresh_token: z141.string().optional(),
|
|
4082
|
+
expires_in: z141.union([z141.number().optional(), z141.string().optional()]),
|
|
4083
|
+
token_type: z141.string().optional(),
|
|
4084
|
+
token_name: z141.string().optional(),
|
|
4085
|
+
token_azure_organization_name: z141.string().optional(),
|
|
4121
4086
|
// Azure Cloud PAT only
|
|
4122
|
-
token_azure_collection_name:
|
|
4087
|
+
token_azure_collection_name: z141.string().optional(),
|
|
4123
4088
|
// Azure Server PAT only
|
|
4124
|
-
token_bitbucket_username:
|
|
4089
|
+
token_bitbucket_username: z141.string().optional(),
|
|
4125
4090
|
// Bitbucket only
|
|
4126
|
-
custom_url:
|
|
4091
|
+
custom_url: z141.string().optional().transform((value) => {
|
|
4127
4092
|
if (!value?.trim())
|
|
4128
4093
|
return void 0;
|
|
4129
4094
|
return formatCustomUrl(value);
|
|
@@ -4159,158 +4124,158 @@ function formatCustomUrl(url) {
|
|
|
4159
4124
|
}
|
|
4160
4125
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4161
4126
|
}
|
|
4162
|
-
var NpmRegistryAuthType =
|
|
4163
|
-
var NpmRegistryType =
|
|
4164
|
-
var NpmRegistryBasicAuthConfig =
|
|
4165
|
-
authType:
|
|
4166
|
-
username:
|
|
4167
|
-
password:
|
|
4127
|
+
var NpmRegistryAuthType = z142.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4128
|
+
var NpmRegistryType = z142.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4129
|
+
var NpmRegistryBasicAuthConfig = z142.object({
|
|
4130
|
+
authType: z142.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4131
|
+
username: z142.string(),
|
|
4132
|
+
password: z142.string()
|
|
4168
4133
|
});
|
|
4169
|
-
var NpmRegistryBearerAuthConfig =
|
|
4170
|
-
authType:
|
|
4171
|
-
accessToken:
|
|
4134
|
+
var NpmRegistryBearerAuthConfig = z142.object({
|
|
4135
|
+
authType: z142.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4136
|
+
accessToken: z142.string()
|
|
4172
4137
|
});
|
|
4173
|
-
var NpmRegistryNoAuthConfig =
|
|
4174
|
-
authType:
|
|
4138
|
+
var NpmRegistryNoAuthConfig = z142.object({
|
|
4139
|
+
authType: z142.literal(NpmRegistryAuthType.Enum.None)
|
|
4175
4140
|
});
|
|
4176
|
-
var NpmRegistrCustomAuthConfig =
|
|
4177
|
-
authType:
|
|
4178
|
-
authHeaderName:
|
|
4179
|
-
authHeaderValue:
|
|
4141
|
+
var NpmRegistrCustomAuthConfig = z142.object({
|
|
4142
|
+
authType: z142.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4143
|
+
authHeaderName: z142.string(),
|
|
4144
|
+
authHeaderValue: z142.string()
|
|
4180
4145
|
});
|
|
4181
|
-
var NpmRegistryAuthConfig =
|
|
4146
|
+
var NpmRegistryAuthConfig = z142.discriminatedUnion("authType", [
|
|
4182
4147
|
NpmRegistryBasicAuthConfig,
|
|
4183
4148
|
NpmRegistryBearerAuthConfig,
|
|
4184
4149
|
NpmRegistryNoAuthConfig,
|
|
4185
4150
|
NpmRegistrCustomAuthConfig
|
|
4186
4151
|
]);
|
|
4187
|
-
var NpmRegistryConfigBase =
|
|
4152
|
+
var NpmRegistryConfigBase = z142.object({
|
|
4188
4153
|
registryType: NpmRegistryType,
|
|
4189
|
-
enabledScopes:
|
|
4190
|
-
customRegistryUrl:
|
|
4191
|
-
bypassProxy:
|
|
4192
|
-
npmProxyRegistryConfigId:
|
|
4193
|
-
npmProxyVersion:
|
|
4154
|
+
enabledScopes: z142.array(z142.string()),
|
|
4155
|
+
customRegistryUrl: z142.string().optional(),
|
|
4156
|
+
bypassProxy: z142.boolean().default(false),
|
|
4157
|
+
npmProxyRegistryConfigId: z142.string().optional(),
|
|
4158
|
+
npmProxyVersion: z142.number().optional()
|
|
4194
4159
|
});
|
|
4195
4160
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4196
|
-
var SsoProvider =
|
|
4197
|
-
providerId:
|
|
4198
|
-
defaultAutoInviteValue:
|
|
4199
|
-
autoInviteDomains:
|
|
4200
|
-
skipDocsSupernovaLogin:
|
|
4201
|
-
areInvitesDisabled:
|
|
4202
|
-
isTestMode:
|
|
4203
|
-
emailDomains:
|
|
4204
|
-
metadataXml:
|
|
4161
|
+
var SsoProvider = z143.object({
|
|
4162
|
+
providerId: z143.string(),
|
|
4163
|
+
defaultAutoInviteValue: z143.boolean(),
|
|
4164
|
+
autoInviteDomains: z143.record(z143.string(), z143.boolean()),
|
|
4165
|
+
skipDocsSupernovaLogin: z143.boolean(),
|
|
4166
|
+
areInvitesDisabled: z143.boolean(),
|
|
4167
|
+
isTestMode: z143.boolean(),
|
|
4168
|
+
emailDomains: z143.array(z143.string()),
|
|
4169
|
+
metadataXml: z143.string().nullish()
|
|
4205
4170
|
});
|
|
4206
4171
|
var isValidCIDR = (value) => {
|
|
4207
4172
|
return IPCIDR.isValidAddress(value);
|
|
4208
4173
|
};
|
|
4209
|
-
var WorkspaceIpWhitelistEntry =
|
|
4210
|
-
isEnabled:
|
|
4211
|
-
name:
|
|
4212
|
-
range:
|
|
4174
|
+
var WorkspaceIpWhitelistEntry = z144.object({
|
|
4175
|
+
isEnabled: z144.boolean(),
|
|
4176
|
+
name: z144.string(),
|
|
4177
|
+
range: z144.string().refine(isValidCIDR, {
|
|
4213
4178
|
message: "Invalid IP CIDR"
|
|
4214
4179
|
})
|
|
4215
4180
|
});
|
|
4216
|
-
var WorkspaceIpSettings =
|
|
4217
|
-
isEnabledForCloud:
|
|
4218
|
-
isEnabledForDocs:
|
|
4219
|
-
entries:
|
|
4181
|
+
var WorkspaceIpSettings = z144.object({
|
|
4182
|
+
isEnabledForCloud: z144.boolean(),
|
|
4183
|
+
isEnabledForDocs: z144.boolean(),
|
|
4184
|
+
entries: z144.array(WorkspaceIpWhitelistEntry)
|
|
4220
4185
|
});
|
|
4221
|
-
var WorkspaceProfile =
|
|
4222
|
-
name:
|
|
4223
|
-
handle:
|
|
4224
|
-
color:
|
|
4225
|
-
avatar: nullishToOptional(
|
|
4186
|
+
var WorkspaceProfile = z144.object({
|
|
4187
|
+
name: z144.string(),
|
|
4188
|
+
handle: z144.string(),
|
|
4189
|
+
color: z144.string(),
|
|
4190
|
+
avatar: nullishToOptional(z144.string()),
|
|
4226
4191
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4227
4192
|
});
|
|
4228
4193
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4229
4194
|
avatar: true
|
|
4230
4195
|
});
|
|
4231
|
-
var Workspace =
|
|
4232
|
-
id:
|
|
4196
|
+
var Workspace = z144.object({
|
|
4197
|
+
id: z144.string(),
|
|
4233
4198
|
profile: WorkspaceProfile,
|
|
4234
4199
|
subscription: Subscription,
|
|
4235
4200
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4236
4201
|
sso: nullishToOptional(SsoProvider),
|
|
4237
4202
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4238
4203
|
});
|
|
4239
|
-
var WorkspaceWithDesignSystems =
|
|
4204
|
+
var WorkspaceWithDesignSystems = z144.object({
|
|
4240
4205
|
workspace: Workspace,
|
|
4241
|
-
designSystems:
|
|
4206
|
+
designSystems: z144.array(DesignSystem)
|
|
4242
4207
|
});
|
|
4243
|
-
var WorkspaceDump =
|
|
4208
|
+
var WorkspaceDump = z145.object({
|
|
4244
4209
|
workspace: Workspace,
|
|
4245
4210
|
designSystems: DesignSystemDump.array(),
|
|
4246
4211
|
codeIntegration: CodeIntegrationDump,
|
|
4247
4212
|
integrations: Integration.array()
|
|
4248
4213
|
});
|
|
4249
|
-
var UserDump =
|
|
4214
|
+
var UserDump = z146.object({
|
|
4250
4215
|
user: User,
|
|
4251
4216
|
workspaces: WorkspaceDump.array()
|
|
4252
4217
|
});
|
|
4253
|
-
var NpmProxyToken =
|
|
4254
|
-
access:
|
|
4255
|
-
expiresAt:
|
|
4218
|
+
var NpmProxyToken = z147.object({
|
|
4219
|
+
access: z147.string(),
|
|
4220
|
+
expiresAt: z147.number()
|
|
4256
4221
|
});
|
|
4257
|
-
var SessionData =
|
|
4258
|
-
returnToUrl:
|
|
4222
|
+
var SessionData = z147.object({
|
|
4223
|
+
returnToUrl: z147.string().optional(),
|
|
4259
4224
|
npmProxyToken: NpmProxyToken.optional()
|
|
4260
4225
|
});
|
|
4261
|
-
var Session =
|
|
4262
|
-
id:
|
|
4263
|
-
expiresAt:
|
|
4264
|
-
userId:
|
|
4226
|
+
var Session = z147.object({
|
|
4227
|
+
id: z147.string(),
|
|
4228
|
+
expiresAt: z147.coerce.date(),
|
|
4229
|
+
userId: z147.string().nullable(),
|
|
4265
4230
|
data: SessionData
|
|
4266
4231
|
});
|
|
4267
|
-
var AuthTokens =
|
|
4268
|
-
access:
|
|
4269
|
-
refresh:
|
|
4232
|
+
var AuthTokens = z147.object({
|
|
4233
|
+
access: z147.string(),
|
|
4234
|
+
refresh: z147.string()
|
|
4270
4235
|
});
|
|
4271
|
-
var UserSession =
|
|
4236
|
+
var UserSession = z147.object({
|
|
4272
4237
|
session: Session,
|
|
4273
4238
|
user: User.nullable()
|
|
4274
4239
|
});
|
|
4275
|
-
var EventDataSourceImported =
|
|
4276
|
-
type:
|
|
4277
|
-
workspaceId:
|
|
4278
|
-
designSystemId:
|
|
4279
|
-
});
|
|
4280
|
-
var EventVersionReleased =
|
|
4281
|
-
type:
|
|
4282
|
-
workspaceId:
|
|
4283
|
-
designSystemId:
|
|
4284
|
-
versionId:
|
|
4285
|
-
});
|
|
4286
|
-
var Event =
|
|
4287
|
-
var ExportJobDocumentationContext =
|
|
4288
|
-
isSingleVersionDocs:
|
|
4289
|
-
versionSlug:
|
|
4240
|
+
var EventDataSourceImported = z148.object({
|
|
4241
|
+
type: z148.literal("DataSourceImported"),
|
|
4242
|
+
workspaceId: z148.string(),
|
|
4243
|
+
designSystemId: z148.string()
|
|
4244
|
+
});
|
|
4245
|
+
var EventVersionReleased = z149.object({
|
|
4246
|
+
type: z149.literal("DesignSystemVersionReleased"),
|
|
4247
|
+
workspaceId: z149.string(),
|
|
4248
|
+
designSystemId: z149.string(),
|
|
4249
|
+
versionId: z149.string()
|
|
4250
|
+
});
|
|
4251
|
+
var Event = z150.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4252
|
+
var ExportJobDocumentationContext = z151.object({
|
|
4253
|
+
isSingleVersionDocs: z151.boolean(),
|
|
4254
|
+
versionSlug: z151.string(),
|
|
4290
4255
|
environment: PublishedDocEnvironment
|
|
4291
4256
|
});
|
|
4292
|
-
var ExportJobContext =
|
|
4293
|
-
apiUrl:
|
|
4294
|
-
accessToken:
|
|
4295
|
-
designSystemId:
|
|
4296
|
-
designSystemName:
|
|
4297
|
-
exporterId:
|
|
4298
|
-
versionId:
|
|
4299
|
-
brandId:
|
|
4300
|
-
themeId:
|
|
4301
|
-
themePersistentIds:
|
|
4302
|
-
exporterName:
|
|
4303
|
-
exporterPackageUrl:
|
|
4257
|
+
var ExportJobContext = z151.object({
|
|
4258
|
+
apiUrl: z151.string(),
|
|
4259
|
+
accessToken: z151.string(),
|
|
4260
|
+
designSystemId: z151.string(),
|
|
4261
|
+
designSystemName: z151.string(),
|
|
4262
|
+
exporterId: z151.string(),
|
|
4263
|
+
versionId: z151.string(),
|
|
4264
|
+
brandId: z151.string().optional(),
|
|
4265
|
+
themeId: z151.string().optional(),
|
|
4266
|
+
themePersistentIds: z151.string().array().optional(),
|
|
4267
|
+
exporterName: z151.string(),
|
|
4268
|
+
exporterPackageUrl: z151.string(),
|
|
4304
4269
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4305
4270
|
documentation: ExportJobDocumentationContext.optional()
|
|
4306
4271
|
});
|
|
4307
|
-
var ExporterFunctionPayload =
|
|
4308
|
-
exportJobId:
|
|
4309
|
-
exportContextId:
|
|
4310
|
-
designSystemId:
|
|
4311
|
-
workspaceId:
|
|
4272
|
+
var ExporterFunctionPayload = z152.object({
|
|
4273
|
+
exportJobId: z152.string(),
|
|
4274
|
+
exportContextId: z152.string(),
|
|
4275
|
+
designSystemId: z152.string(),
|
|
4276
|
+
workspaceId: z152.string()
|
|
4312
4277
|
});
|
|
4313
|
-
var ExportJobDestinationType =
|
|
4278
|
+
var ExportJobDestinationType = z153.enum([
|
|
4314
4279
|
"s3",
|
|
4315
4280
|
"webhookUrl",
|
|
4316
4281
|
"github",
|
|
@@ -4319,30 +4284,30 @@ var ExportJobDestinationType = z155.enum([
|
|
|
4319
4284
|
"gitlab",
|
|
4320
4285
|
"bitbucket"
|
|
4321
4286
|
]);
|
|
4322
|
-
var ExportJobStatus =
|
|
4323
|
-
var ExportJobLogEntryType =
|
|
4324
|
-
var ExportJobLogEntry =
|
|
4325
|
-
id:
|
|
4326
|
-
time:
|
|
4287
|
+
var ExportJobStatus = z153.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4288
|
+
var ExportJobLogEntryType = z153.enum(["success", "info", "warning", "error", "user"]);
|
|
4289
|
+
var ExportJobLogEntry = z153.object({
|
|
4290
|
+
id: z153.string().optional(),
|
|
4291
|
+
time: z153.coerce.date(),
|
|
4327
4292
|
type: ExportJobLogEntryType,
|
|
4328
|
-
message:
|
|
4293
|
+
message: z153.string()
|
|
4329
4294
|
});
|
|
4330
|
-
var ExportJobPullRequestDestinationResult =
|
|
4331
|
-
pullRequestUrl:
|
|
4295
|
+
var ExportJobPullRequestDestinationResult = z153.object({
|
|
4296
|
+
pullRequestUrl: z153.string()
|
|
4332
4297
|
});
|
|
4333
|
-
var ExportJobS3DestinationResult =
|
|
4334
|
-
bucket:
|
|
4335
|
-
urlPrefix:
|
|
4336
|
-
path:
|
|
4337
|
-
files:
|
|
4338
|
-
url: nullishToOptional(
|
|
4339
|
-
urls: nullishToOptional(
|
|
4298
|
+
var ExportJobS3DestinationResult = z153.object({
|
|
4299
|
+
bucket: z153.string(),
|
|
4300
|
+
urlPrefix: z153.string().optional(),
|
|
4301
|
+
path: z153.string(),
|
|
4302
|
+
files: z153.array(z153.string()),
|
|
4303
|
+
url: nullishToOptional(z153.string()),
|
|
4304
|
+
urls: nullishToOptional(z153.string().array())
|
|
4340
4305
|
});
|
|
4341
|
-
var ExportJobDocsDestinationResult =
|
|
4342
|
-
url:
|
|
4306
|
+
var ExportJobDocsDestinationResult = z153.object({
|
|
4307
|
+
url: z153.string()
|
|
4343
4308
|
});
|
|
4344
|
-
var ExportJobResult =
|
|
4345
|
-
error:
|
|
4309
|
+
var ExportJobResult = z153.object({
|
|
4310
|
+
error: z153.string().optional(),
|
|
4346
4311
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4347
4312
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4348
4313
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4351,22 +4316,22 @@ var ExportJobResult = z155.object({
|
|
|
4351
4316
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4352
4317
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4353
4318
|
});
|
|
4354
|
-
var ExportJob =
|
|
4355
|
-
id:
|
|
4356
|
-
createdAt:
|
|
4357
|
-
finishedAt:
|
|
4358
|
-
designSystemId:
|
|
4359
|
-
designSystemVersionId:
|
|
4360
|
-
workspaceId:
|
|
4361
|
-
scheduleId:
|
|
4362
|
-
exporterId:
|
|
4363
|
-
brandId:
|
|
4364
|
-
themeId:
|
|
4365
|
-
themePersistentIds:
|
|
4366
|
-
estimatedExecutionTime:
|
|
4319
|
+
var ExportJob = z153.object({
|
|
4320
|
+
id: z153.string(),
|
|
4321
|
+
createdAt: z153.coerce.date(),
|
|
4322
|
+
finishedAt: z153.coerce.date().optional(),
|
|
4323
|
+
designSystemId: z153.string(),
|
|
4324
|
+
designSystemVersionId: z153.string(),
|
|
4325
|
+
workspaceId: z153.string(),
|
|
4326
|
+
scheduleId: z153.string().nullish(),
|
|
4327
|
+
exporterId: z153.string(),
|
|
4328
|
+
brandId: z153.string().optional(),
|
|
4329
|
+
themeId: z153.string().optional(),
|
|
4330
|
+
themePersistentIds: z153.string().array().optional(),
|
|
4331
|
+
estimatedExecutionTime: z153.number().optional(),
|
|
4367
4332
|
status: ExportJobStatus,
|
|
4368
4333
|
result: ExportJobResult.optional(),
|
|
4369
|
-
createdByUserId:
|
|
4334
|
+
createdByUserId: z153.string().optional(),
|
|
4370
4335
|
// Destinations
|
|
4371
4336
|
...ExportDestinationsMap.shape
|
|
4372
4337
|
});
|
|
@@ -4380,24 +4345,24 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4380
4345
|
themeId: true,
|
|
4381
4346
|
brandId: true
|
|
4382
4347
|
}).extend({
|
|
4383
|
-
destinations:
|
|
4348
|
+
destinations: z153.array(ExportJobDestinationType),
|
|
4384
4349
|
docsEnvironment: PublishedDocEnvironment
|
|
4385
4350
|
}).partial();
|
|
4386
|
-
var ExporterWorkspaceMembershipRole =
|
|
4387
|
-
var ExporterWorkspaceMembership =
|
|
4388
|
-
id:
|
|
4389
|
-
workspaceId:
|
|
4390
|
-
exporterId:
|
|
4351
|
+
var ExporterWorkspaceMembershipRole = z154.enum(["Owner", "OwnerArchived", "User"]);
|
|
4352
|
+
var ExporterWorkspaceMembership = z155.object({
|
|
4353
|
+
id: z155.string(),
|
|
4354
|
+
workspaceId: z155.string(),
|
|
4355
|
+
exporterId: z155.string(),
|
|
4391
4356
|
role: ExporterWorkspaceMembershipRole
|
|
4392
4357
|
});
|
|
4393
|
-
var FlaggedFeature =
|
|
4394
|
-
var FeatureFlagMap =
|
|
4395
|
-
var FeatureFlag =
|
|
4396
|
-
id:
|
|
4358
|
+
var FlaggedFeature = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
|
|
4359
|
+
var FeatureFlagMap = z156.record(FlaggedFeature, z156.boolean());
|
|
4360
|
+
var FeatureFlag = z156.object({
|
|
4361
|
+
id: z156.string(),
|
|
4397
4362
|
feature: FlaggedFeature,
|
|
4398
|
-
createdAt:
|
|
4399
|
-
enabled:
|
|
4400
|
-
designSystemId:
|
|
4363
|
+
createdAt: z156.coerce.date(),
|
|
4364
|
+
enabled: z156.boolean(),
|
|
4365
|
+
designSystemId: z156.string().optional()
|
|
4401
4366
|
});
|
|
4402
4367
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4403
4368
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -4407,173 +4372,173 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4407
4372
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4408
4373
|
return OAuthProviderNames2;
|
|
4409
4374
|
})(OAuthProviderNames || {});
|
|
4410
|
-
var OAuthProviderSchema =
|
|
4375
|
+
var OAuthProviderSchema = z157.nativeEnum(OAuthProviderNames);
|
|
4411
4376
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4412
|
-
var ExternalOAuthRequest =
|
|
4413
|
-
id:
|
|
4377
|
+
var ExternalOAuthRequest = z158.object({
|
|
4378
|
+
id: z158.string(),
|
|
4414
4379
|
provider: OAuthProviderSchema,
|
|
4415
|
-
userId:
|
|
4416
|
-
state:
|
|
4417
|
-
createdAt:
|
|
4380
|
+
userId: z158.string(),
|
|
4381
|
+
state: z158.string(),
|
|
4382
|
+
createdAt: z158.coerce.date()
|
|
4418
4383
|
});
|
|
4419
|
-
var GitObjectsQuery =
|
|
4420
|
-
organization:
|
|
4384
|
+
var GitObjectsQuery = z159.object({
|
|
4385
|
+
organization: z159.string().optional(),
|
|
4421
4386
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4422
|
-
project:
|
|
4387
|
+
project: z159.string().optional(),
|
|
4423
4388
|
// Only for Bitbucket and Azure
|
|
4424
|
-
repository:
|
|
4389
|
+
repository: z159.string().optional(),
|
|
4425
4390
|
// For all providers. For Gitlab, it's called "project".
|
|
4426
|
-
branch:
|
|
4391
|
+
branch: z159.string().optional(),
|
|
4427
4392
|
// For all providers.
|
|
4428
|
-
user:
|
|
4393
|
+
user: z159.string().optional()
|
|
4429
4394
|
// Gitlab user
|
|
4430
4395
|
});
|
|
4431
|
-
var GitOrganization =
|
|
4432
|
-
id:
|
|
4433
|
-
name:
|
|
4434
|
-
url:
|
|
4435
|
-
slug:
|
|
4436
|
-
});
|
|
4437
|
-
var GitProject =
|
|
4438
|
-
id:
|
|
4439
|
-
name:
|
|
4440
|
-
url:
|
|
4441
|
-
slug:
|
|
4442
|
-
});
|
|
4443
|
-
var GitRepository =
|
|
4444
|
-
id:
|
|
4445
|
-
name:
|
|
4446
|
-
url:
|
|
4447
|
-
slug:
|
|
4396
|
+
var GitOrganization = z159.object({
|
|
4397
|
+
id: z159.string(),
|
|
4398
|
+
name: z159.string(),
|
|
4399
|
+
url: z159.string(),
|
|
4400
|
+
slug: z159.string()
|
|
4401
|
+
});
|
|
4402
|
+
var GitProject = z159.object({
|
|
4403
|
+
id: z159.string(),
|
|
4404
|
+
name: z159.string(),
|
|
4405
|
+
url: z159.string(),
|
|
4406
|
+
slug: z159.string()
|
|
4407
|
+
});
|
|
4408
|
+
var GitRepository = z159.object({
|
|
4409
|
+
id: z159.string(),
|
|
4410
|
+
name: z159.string(),
|
|
4411
|
+
url: z159.string(),
|
|
4412
|
+
slug: z159.string(),
|
|
4448
4413
|
/**
|
|
4449
4414
|
* Can be undefined when:
|
|
4450
4415
|
* - there are no branches in the repository yet
|
|
4451
4416
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4452
4417
|
*/
|
|
4453
|
-
defaultBranch:
|
|
4418
|
+
defaultBranch: z159.string().optional()
|
|
4454
4419
|
});
|
|
4455
|
-
var GitBranch =
|
|
4456
|
-
name:
|
|
4457
|
-
lastCommitId:
|
|
4420
|
+
var GitBranch = z159.object({
|
|
4421
|
+
name: z159.string(),
|
|
4422
|
+
lastCommitId: z159.string()
|
|
4458
4423
|
});
|
|
4459
|
-
var IntegrationTokenSchemaOld =
|
|
4460
|
-
id:
|
|
4424
|
+
var IntegrationTokenSchemaOld = z160.object({
|
|
4425
|
+
id: z160.string(),
|
|
4461
4426
|
provider: OAuthProviderSchema,
|
|
4462
|
-
scope:
|
|
4463
|
-
userId:
|
|
4464
|
-
accessToken:
|
|
4465
|
-
refreshToken:
|
|
4466
|
-
expiresAt:
|
|
4467
|
-
externalUserId:
|
|
4468
|
-
});
|
|
4469
|
-
var WorkspaceOAuthRequestSchema =
|
|
4470
|
-
id:
|
|
4471
|
-
workspaceId:
|
|
4427
|
+
scope: z160.string(),
|
|
4428
|
+
userId: z160.string(),
|
|
4429
|
+
accessToken: z160.string(),
|
|
4430
|
+
refreshToken: z160.string(),
|
|
4431
|
+
expiresAt: z160.coerce.date(),
|
|
4432
|
+
externalUserId: z160.string().nullish()
|
|
4433
|
+
});
|
|
4434
|
+
var WorkspaceOAuthRequestSchema = z161.object({
|
|
4435
|
+
id: z161.string(),
|
|
4436
|
+
workspaceId: z161.string(),
|
|
4472
4437
|
provider: OAuthProviderSchema,
|
|
4473
|
-
userId:
|
|
4474
|
-
createdAt:
|
|
4438
|
+
userId: z161.string(),
|
|
4439
|
+
createdAt: z161.coerce.date()
|
|
4475
4440
|
});
|
|
4476
|
-
var AnyRecord =
|
|
4441
|
+
var AnyRecord = z162.record(z162.any());
|
|
4477
4442
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4478
|
-
|
|
4479
|
-
tarball:
|
|
4443
|
+
z162.object({
|
|
4444
|
+
tarball: z162.string()
|
|
4480
4445
|
})
|
|
4481
4446
|
);
|
|
4482
4447
|
var NpmPackageVersion = AnyRecord.and(
|
|
4483
|
-
|
|
4448
|
+
z162.object({
|
|
4484
4449
|
dist: NpmPackageVersionDist
|
|
4485
4450
|
})
|
|
4486
4451
|
);
|
|
4487
4452
|
var NpmPackage = AnyRecord.and(
|
|
4488
|
-
|
|
4489
|
-
_id:
|
|
4490
|
-
name:
|
|
4453
|
+
z162.object({
|
|
4454
|
+
_id: z162.string(),
|
|
4455
|
+
name: z162.string(),
|
|
4491
4456
|
// e.g. "latest": "1.2.3"
|
|
4492
|
-
"dist-tags":
|
|
4457
|
+
"dist-tags": z162.record(z162.string(), z162.string()),
|
|
4493
4458
|
// "1.2.3": {...}
|
|
4494
|
-
versions:
|
|
4459
|
+
versions: z162.record(NpmPackageVersion)
|
|
4495
4460
|
})
|
|
4496
4461
|
);
|
|
4497
|
-
var NpmProxyTokenPayload =
|
|
4498
|
-
npmProxyRegistryConfigId:
|
|
4462
|
+
var NpmProxyTokenPayload = z163.object({
|
|
4463
|
+
npmProxyRegistryConfigId: z163.string()
|
|
4499
4464
|
});
|
|
4500
|
-
var WorkspaceRoleSchema =
|
|
4465
|
+
var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4501
4466
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4502
4467
|
var MAX_MEMBERS_COUNT = 100;
|
|
4503
|
-
var UserInvite =
|
|
4504
|
-
email:
|
|
4468
|
+
var UserInvite = z165.object({
|
|
4469
|
+
email: z165.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4505
4470
|
role: WorkspaceRoleSchema
|
|
4506
4471
|
});
|
|
4507
|
-
var UserInvites =
|
|
4508
|
-
var WorkspaceConfigurationUpdate =
|
|
4509
|
-
id:
|
|
4472
|
+
var UserInvites = z165.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4473
|
+
var WorkspaceConfigurationUpdate = z166.object({
|
|
4474
|
+
id: z166.string(),
|
|
4510
4475
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4511
4476
|
sso: SsoProvider.optional(),
|
|
4512
4477
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4513
4478
|
profile: WorkspaceProfileUpdate.optional()
|
|
4514
4479
|
});
|
|
4515
|
-
var WorkspaceContext =
|
|
4516
|
-
workspaceId:
|
|
4480
|
+
var WorkspaceContext = z167.object({
|
|
4481
|
+
workspaceId: z167.string(),
|
|
4517
4482
|
product: ProductCodeSchema,
|
|
4518
4483
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4519
|
-
publicDesignSystem:
|
|
4484
|
+
publicDesignSystem: z167.boolean().optional()
|
|
4520
4485
|
});
|
|
4521
4486
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4522
4487
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4523
4488
|
var HANDLE_MIN_LENGTH = 2;
|
|
4524
4489
|
var HANDLE_MAX_LENGTH = 64;
|
|
4525
|
-
var CreateWorkspaceInput =
|
|
4526
|
-
name:
|
|
4490
|
+
var CreateWorkspaceInput = z168.object({
|
|
4491
|
+
name: z168.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4527
4492
|
product: ProductCodeSchema,
|
|
4528
|
-
priceId:
|
|
4529
|
-
billingEmail:
|
|
4530
|
-
handle:
|
|
4493
|
+
priceId: z168.string(),
|
|
4494
|
+
billingEmail: z168.string().email().optional(),
|
|
4495
|
+
handle: z168.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
4531
4496
|
invites: UserInvites.optional(),
|
|
4532
|
-
promoCode:
|
|
4497
|
+
promoCode: z168.string().optional(),
|
|
4533
4498
|
status: InternalStatusSchema.optional(),
|
|
4534
4499
|
planInterval: BillingIntervalSchema.optional(),
|
|
4535
|
-
seats:
|
|
4536
|
-
seatLimit:
|
|
4500
|
+
seats: z168.number().optional(),
|
|
4501
|
+
seatLimit: z168.number().optional(),
|
|
4537
4502
|
card: CardSchema.optional(),
|
|
4538
4503
|
sso: SsoProvider.optional(),
|
|
4539
4504
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4540
4505
|
ipWhitelist: WorkspaceIpSettings.optional()
|
|
4541
4506
|
});
|
|
4542
|
-
var WorkspaceInvitation =
|
|
4543
|
-
id:
|
|
4544
|
-
email:
|
|
4545
|
-
createdAt:
|
|
4546
|
-
resentAt:
|
|
4547
|
-
role:
|
|
4548
|
-
workspaceId:
|
|
4549
|
-
invitedBy:
|
|
4550
|
-
});
|
|
4551
|
-
var WorkspaceMembership =
|
|
4552
|
-
id:
|
|
4553
|
-
userId:
|
|
4554
|
-
workspaceId:
|
|
4555
|
-
workspaceRole:
|
|
4507
|
+
var WorkspaceInvitation = z169.object({
|
|
4508
|
+
id: z169.string(),
|
|
4509
|
+
email: z169.string().email(),
|
|
4510
|
+
createdAt: z169.coerce.date(),
|
|
4511
|
+
resentAt: z169.coerce.date().nullish(),
|
|
4512
|
+
role: z169.nativeEnum(WorkspaceRole),
|
|
4513
|
+
workspaceId: z169.string(),
|
|
4514
|
+
invitedBy: z169.string()
|
|
4515
|
+
});
|
|
4516
|
+
var WorkspaceMembership = z170.object({
|
|
4517
|
+
id: z170.string(),
|
|
4518
|
+
userId: z170.string(),
|
|
4519
|
+
workspaceId: z170.string(),
|
|
4520
|
+
workspaceRole: z170.nativeEnum(WorkspaceRole),
|
|
4556
4521
|
notificationSettings: UserNotificationSettings
|
|
4557
4522
|
});
|
|
4558
|
-
var UpdateMembershipRolesInput =
|
|
4559
|
-
members:
|
|
4560
|
-
|
|
4561
|
-
userId:
|
|
4562
|
-
role:
|
|
4523
|
+
var UpdateMembershipRolesInput = z170.object({
|
|
4524
|
+
members: z170.array(
|
|
4525
|
+
z170.object({
|
|
4526
|
+
userId: z170.string(),
|
|
4527
|
+
role: z170.nativeEnum(WorkspaceRole)
|
|
4563
4528
|
})
|
|
4564
4529
|
)
|
|
4565
4530
|
});
|
|
4566
|
-
var PersonalAccessToken =
|
|
4567
|
-
id:
|
|
4568
|
-
userId:
|
|
4569
|
-
workspaceId:
|
|
4531
|
+
var PersonalAccessToken = z171.object({
|
|
4532
|
+
id: z171.string(),
|
|
4533
|
+
userId: z171.string(),
|
|
4534
|
+
workspaceId: z171.string().optional(),
|
|
4570
4535
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
4571
|
-
name:
|
|
4572
|
-
hidden:
|
|
4573
|
-
token:
|
|
4574
|
-
scope:
|
|
4575
|
-
createdAt:
|
|
4576
|
-
expireAt:
|
|
4536
|
+
name: z171.string(),
|
|
4537
|
+
hidden: z171.boolean(),
|
|
4538
|
+
token: z171.string(),
|
|
4539
|
+
scope: z171.string().optional(),
|
|
4540
|
+
createdAt: z171.coerce.date(),
|
|
4541
|
+
expireAt: z171.coerce.date().optional()
|
|
4577
4542
|
});
|
|
4578
4543
|
|
|
4579
4544
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
@@ -4990,211 +4955,231 @@ function integrationCredentialToDto(credential) {
|
|
|
4990
4955
|
}
|
|
4991
4956
|
|
|
4992
4957
|
// src/api/dto/aux/pagination.ts
|
|
4993
|
-
import { z as
|
|
4994
|
-
var DTOPagination =
|
|
4995
|
-
limit:
|
|
4996
|
-
offset:
|
|
4958
|
+
import { z as z172 } from "zod";
|
|
4959
|
+
var DTOPagination = z172.object({
|
|
4960
|
+
limit: z172.string().optional(),
|
|
4961
|
+
offset: z172.string().optional()
|
|
4997
4962
|
});
|
|
4998
4963
|
|
|
4999
4964
|
// src/api/dto/design-systems/brand.ts
|
|
5000
|
-
import { z as
|
|
5001
|
-
var DTOBrand =
|
|
5002
|
-
id:
|
|
5003
|
-
designSystemVersionId:
|
|
5004
|
-
persistentId:
|
|
4965
|
+
import { z as z173 } from "zod";
|
|
4966
|
+
var DTOBrand = z173.object({
|
|
4967
|
+
id: z173.string(),
|
|
4968
|
+
designSystemVersionId: z173.string(),
|
|
4969
|
+
persistentId: z173.string(),
|
|
5005
4970
|
meta: ObjectMeta
|
|
5006
4971
|
});
|
|
5007
|
-
var DTOBrandGetResponse =
|
|
5008
|
-
var DTOBrandCreateResponse =
|
|
4972
|
+
var DTOBrandGetResponse = z173.object({ brand: DTOBrand });
|
|
4973
|
+
var DTOBrandCreateResponse = z173.object({
|
|
5009
4974
|
brand: DTOBrand
|
|
5010
4975
|
});
|
|
5011
|
-
var DTOBrandsListResponse =
|
|
4976
|
+
var DTOBrandsListResponse = z173.object({ brands: z173.array(DTOBrand) });
|
|
5012
4977
|
|
|
5013
4978
|
// src/api/dto/design-systems/data-source.ts
|
|
5014
|
-
import { z as
|
|
5015
|
-
var DTODataSourceFigmaFileVersion =
|
|
5016
|
-
id:
|
|
5017
|
-
created_at:
|
|
5018
|
-
label:
|
|
5019
|
-
description:
|
|
5020
|
-
});
|
|
5021
|
-
var DTODataSourceFigmaCloud =
|
|
5022
|
-
fileId:
|
|
4979
|
+
import { z as z174 } from "zod";
|
|
4980
|
+
var DTODataSourceFigmaFileVersion = z174.object({
|
|
4981
|
+
id: z174.string(),
|
|
4982
|
+
created_at: z174.coerce.date(),
|
|
4983
|
+
label: z174.string(),
|
|
4984
|
+
description: z174.string()
|
|
4985
|
+
});
|
|
4986
|
+
var DTODataSourceFigmaCloud = z174.object({
|
|
4987
|
+
fileId: z174.string(),
|
|
5023
4988
|
state: DataSourceFigmaState,
|
|
5024
4989
|
autoImportMode: DataSourceAutoImportMode,
|
|
5025
|
-
fileThumbnailUrl:
|
|
4990
|
+
fileThumbnailUrl: z174.string().optional(),
|
|
5026
4991
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5027
|
-
lastImportedAt:
|
|
4992
|
+
lastImportedAt: z174.date().nullish(),
|
|
5028
4993
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5029
|
-
lastUpdatesCheckedAt:
|
|
5030
|
-
ownerId:
|
|
5031
|
-
ownerUserName:
|
|
5032
|
-
preferredCredentialId:
|
|
4994
|
+
lastUpdatesCheckedAt: z174.date().nullish(),
|
|
4995
|
+
ownerId: z174.string(),
|
|
4996
|
+
ownerUserName: z174.string().optional(),
|
|
4997
|
+
preferredCredentialId: z174.string().optional(),
|
|
5033
4998
|
stats: DataSourceStats
|
|
5034
4999
|
});
|
|
5035
|
-
var DTODataSourceFigma =
|
|
5036
|
-
id:
|
|
5037
|
-
type:
|
|
5038
|
-
fileName:
|
|
5000
|
+
var DTODataSourceFigma = z174.object({
|
|
5001
|
+
id: z174.string(),
|
|
5002
|
+
type: z174.literal(DataSourceRemoteType.Enum.Figma),
|
|
5003
|
+
fileName: z174.string(),
|
|
5039
5004
|
scope: DataSourceFigmaScope,
|
|
5040
|
-
brandId:
|
|
5041
|
-
themeId:
|
|
5005
|
+
brandId: z174.string(),
|
|
5006
|
+
themeId: z174.string().nullish(),
|
|
5042
5007
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
5043
|
-
tokenStudio:
|
|
5044
|
-
upload:
|
|
5045
|
-
figmaVariablesPlugin:
|
|
5046
|
-
});
|
|
5047
|
-
var DTODataSourceTokenStudio =
|
|
5048
|
-
id:
|
|
5049
|
-
type:
|
|
5050
|
-
fileName:
|
|
5051
|
-
brandId:
|
|
5052
|
-
themeId:
|
|
5053
|
-
cloud:
|
|
5054
|
-
tokenStudio:
|
|
5055
|
-
settings:
|
|
5056
|
-
dryRun:
|
|
5057
|
-
verbose:
|
|
5058
|
-
preciseCopy:
|
|
5008
|
+
tokenStudio: z174.literal(null),
|
|
5009
|
+
upload: z174.literal(null),
|
|
5010
|
+
figmaVariablesPlugin: z174.literal(null)
|
|
5011
|
+
});
|
|
5012
|
+
var DTODataSourceTokenStudio = z174.object({
|
|
5013
|
+
id: z174.string(),
|
|
5014
|
+
type: z174.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5015
|
+
fileName: z174.string(),
|
|
5016
|
+
brandId: z174.string(),
|
|
5017
|
+
themeId: z174.string().nullish(),
|
|
5018
|
+
cloud: z174.literal(null),
|
|
5019
|
+
tokenStudio: z174.object({
|
|
5020
|
+
settings: z174.object({
|
|
5021
|
+
dryRun: z174.boolean(),
|
|
5022
|
+
verbose: z174.boolean(),
|
|
5023
|
+
preciseCopy: z174.boolean()
|
|
5059
5024
|
}),
|
|
5060
|
-
connectionName:
|
|
5061
|
-
lastImportedAt:
|
|
5062
|
-
lastImportedResults:
|
|
5063
|
-
|
|
5064
|
-
mapping:
|
|
5065
|
-
tokenSets:
|
|
5066
|
-
supernovaBrand:
|
|
5067
|
-
supernovaTheme:
|
|
5025
|
+
connectionName: z174.string(),
|
|
5026
|
+
lastImportedAt: z174.date(),
|
|
5027
|
+
lastImportedResults: z174.array(
|
|
5028
|
+
z174.object({
|
|
5029
|
+
mapping: z174.object({
|
|
5030
|
+
tokenSets: z174.array(z174.string()),
|
|
5031
|
+
supernovaBrand: z174.string(),
|
|
5032
|
+
supernovaTheme: z174.string().optional()
|
|
5068
5033
|
}),
|
|
5069
|
-
isFailed:
|
|
5070
|
-
tokensCreated:
|
|
5071
|
-
tokensDeleted:
|
|
5072
|
-
tokensUpdated:
|
|
5034
|
+
isFailed: z174.boolean(),
|
|
5035
|
+
tokensCreated: z174.number(),
|
|
5036
|
+
tokensDeleted: z174.number(),
|
|
5037
|
+
tokensUpdated: z174.number()
|
|
5073
5038
|
})
|
|
5074
5039
|
)
|
|
5075
5040
|
}),
|
|
5076
|
-
upload:
|
|
5077
|
-
figmaVariablesPlugin:
|
|
5078
|
-
});
|
|
5079
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5080
|
-
id:
|
|
5081
|
-
type:
|
|
5082
|
-
fileName:
|
|
5083
|
-
brandId:
|
|
5084
|
-
themeId:
|
|
5085
|
-
cloud:
|
|
5086
|
-
tokenStudio:
|
|
5087
|
-
upload:
|
|
5088
|
-
remoteId:
|
|
5041
|
+
upload: z174.literal(null),
|
|
5042
|
+
figmaVariablesPlugin: z174.literal(null)
|
|
5043
|
+
});
|
|
5044
|
+
var DTODataSourceFigmaVariablesPlugin = z174.object({
|
|
5045
|
+
id: z174.string(),
|
|
5046
|
+
type: z174.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5047
|
+
fileName: z174.string(),
|
|
5048
|
+
brandId: z174.string(),
|
|
5049
|
+
themeId: z174.literal(null),
|
|
5050
|
+
cloud: z174.literal(null),
|
|
5051
|
+
tokenStudio: z174.literal(null),
|
|
5052
|
+
upload: z174.object({
|
|
5053
|
+
remoteId: z174.string(),
|
|
5089
5054
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5090
|
-
lastImportedAt:
|
|
5055
|
+
lastImportedAt: z174.date().optional(),
|
|
5091
5056
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5092
5057
|
}),
|
|
5093
|
-
figmaVariablesPlugin:
|
|
5094
|
-
fileId:
|
|
5095
|
-
lastImportedAt:
|
|
5058
|
+
figmaVariablesPlugin: z174.object({
|
|
5059
|
+
fileId: z174.string(),
|
|
5060
|
+
lastImportedAt: z174.date().optional(),
|
|
5096
5061
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5097
5062
|
})
|
|
5098
5063
|
});
|
|
5099
|
-
var DTODataSource =
|
|
5064
|
+
var DTODataSource = z174.discriminatedUnion("type", [
|
|
5100
5065
|
DTODataSourceFigma,
|
|
5101
5066
|
DTODataSourceFigmaVariablesPlugin,
|
|
5102
5067
|
DTODataSourceTokenStudio
|
|
5103
5068
|
]);
|
|
5104
|
-
var DTODataSourcesListResponse =
|
|
5105
|
-
sources:
|
|
5069
|
+
var DTODataSourcesListResponse = z174.object({
|
|
5070
|
+
sources: z174.array(DTODataSource)
|
|
5106
5071
|
});
|
|
5107
|
-
var DTODataSourceCreationResponse =
|
|
5072
|
+
var DTODataSourceCreationResponse = z174.object({
|
|
5108
5073
|
source: DTODataSource
|
|
5109
5074
|
});
|
|
5110
5075
|
|
|
5111
5076
|
// src/api/dto/design-systems/design-system.ts
|
|
5112
|
-
import { z as
|
|
5077
|
+
import { z as z175 } from "zod";
|
|
5113
5078
|
var DTODesignSystem = DesignSystem.omit({
|
|
5114
5079
|
name: true,
|
|
5115
5080
|
description: true,
|
|
5116
5081
|
docExporterId: true
|
|
5117
5082
|
}).extend({
|
|
5118
5083
|
meta: ObjectMeta,
|
|
5119
|
-
docExporterId:
|
|
5120
|
-
sources:
|
|
5084
|
+
docExporterId: z175.string(),
|
|
5085
|
+
sources: z175.array(z175.any())
|
|
5086
|
+
});
|
|
5087
|
+
var DTODesignSystemCreateResponse = z175.object({
|
|
5088
|
+
designSystem: DTODesignSystem
|
|
5089
|
+
});
|
|
5090
|
+
var DTODesignSystemCreateInput = z175.object({
|
|
5091
|
+
workspaceId: z175.string(),
|
|
5092
|
+
meta: ObjectMeta.optional(),
|
|
5093
|
+
name: z175.string().min(2).max(64).optional(),
|
|
5094
|
+
description: z175.string().max(1024).optional(),
|
|
5095
|
+
accessMode: DesignSystemAccessMode.optional(),
|
|
5096
|
+
inviteUserIds: z175.string().array().optional()
|
|
5121
5097
|
});
|
|
5122
5098
|
|
|
5123
5099
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5124
|
-
import { z as
|
|
5125
|
-
var DTODiffCountBase =
|
|
5126
|
-
created:
|
|
5127
|
-
updated:
|
|
5128
|
-
deleted:
|
|
5100
|
+
import { z as z176 } from "zod";
|
|
5101
|
+
var DTODiffCountBase = z176.object({
|
|
5102
|
+
created: z176.number(),
|
|
5103
|
+
updated: z176.number(),
|
|
5104
|
+
deleted: z176.number()
|
|
5129
5105
|
});
|
|
5130
|
-
var DTODesignElementsDataDiffResponse =
|
|
5106
|
+
var DTODesignElementsDataDiffResponse = z176.object({
|
|
5131
5107
|
tokens: DTODiffCountBase,
|
|
5132
5108
|
assets: DTODiffCountBase
|
|
5133
5109
|
});
|
|
5134
5110
|
|
|
5135
5111
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5136
|
-
import { z as
|
|
5137
|
-
var DTOExporterProperty =
|
|
5138
|
-
var DTOExporterPropertyListResponse =
|
|
5112
|
+
import { z as z177 } from "zod";
|
|
5113
|
+
var DTOExporterProperty = z177.any({});
|
|
5114
|
+
var DTOExporterPropertyListResponse = z177.object({ items: z177.array(DTOExporterProperty) });
|
|
5139
5115
|
|
|
5140
5116
|
// src/api/dto/design-systems/members.ts
|
|
5141
|
-
import { z as
|
|
5142
|
-
var DTODesignSystemMember =
|
|
5143
|
-
userId:
|
|
5117
|
+
import { z as z178 } from "zod";
|
|
5118
|
+
var DTODesignSystemMember = z178.object({
|
|
5119
|
+
userId: z178.string()
|
|
5144
5120
|
});
|
|
5145
|
-
var DTODesignSystemMemberListResponse =
|
|
5121
|
+
var DTODesignSystemMemberListResponse = z178.object({
|
|
5146
5122
|
members: DTODesignSystemMember.array()
|
|
5147
5123
|
});
|
|
5148
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5149
|
-
ok:
|
|
5124
|
+
var DTODesignSystemMembersUpdateResponse = z178.object({
|
|
5125
|
+
ok: z178.literal(true)
|
|
5150
5126
|
});
|
|
5151
|
-
var DTODesignSystemMembersUpdatePayload =
|
|
5152
|
-
inviteUserIds:
|
|
5153
|
-
removeUserIds:
|
|
5127
|
+
var DTODesignSystemMembersUpdatePayload = z178.object({
|
|
5128
|
+
inviteUserIds: z178.string().array(),
|
|
5129
|
+
removeUserIds: z178.string().array()
|
|
5154
5130
|
});
|
|
5155
5131
|
|
|
5156
5132
|
// src/api/dto/design-systems/version.ts
|
|
5157
|
-
import { z as
|
|
5133
|
+
import { z as z188 } from "zod";
|
|
5158
5134
|
|
|
5159
5135
|
// src/api/payloads/design-systems/brand.ts
|
|
5160
|
-
import { z as
|
|
5161
|
-
var DTOCreateBrandInput =
|
|
5162
|
-
persistentId:
|
|
5163
|
-
meta:
|
|
5164
|
-
name:
|
|
5165
|
-
description:
|
|
5136
|
+
import { z as z179 } from "zod";
|
|
5137
|
+
var DTOCreateBrandInput = z179.object({
|
|
5138
|
+
persistentId: z179.string().uuid(),
|
|
5139
|
+
meta: z179.object({
|
|
5140
|
+
name: z179.string(),
|
|
5141
|
+
description: z179.string()
|
|
5166
5142
|
})
|
|
5167
5143
|
});
|
|
5168
5144
|
|
|
5169
5145
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5170
|
-
var DTODesignSystemUpdateInput =
|
|
5146
|
+
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5147
|
+
id: true,
|
|
5148
|
+
workspaceId: true,
|
|
5149
|
+
createdAt: true,
|
|
5150
|
+
updatedAt: true,
|
|
5151
|
+
docSlug: true,
|
|
5152
|
+
docViewUrl: true
|
|
5153
|
+
}).extend({
|
|
5154
|
+
meta: ObjectMeta.partial().optional()
|
|
5155
|
+
});
|
|
5171
5156
|
|
|
5172
5157
|
// src/api/payloads/design-systems/version.ts
|
|
5173
|
-
import { z as
|
|
5174
|
-
var ObjectMeta2 =
|
|
5175
|
-
name:
|
|
5176
|
-
description:
|
|
5158
|
+
import { z as z180 } from "zod";
|
|
5159
|
+
var ObjectMeta2 = z180.object({
|
|
5160
|
+
name: z180.string().max(150).optional(),
|
|
5161
|
+
description: z180.string().max(2e3).optional()
|
|
5177
5162
|
});
|
|
5178
5163
|
function validateDesignSystemVersion(version) {
|
|
5179
5164
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5180
5165
|
return urlCompliantRegex.test(version);
|
|
5181
5166
|
}
|
|
5182
|
-
var DTOCreateVersionInput =
|
|
5167
|
+
var DTOCreateVersionInput = z180.object({
|
|
5183
5168
|
meta: ObjectMeta2,
|
|
5184
|
-
version:
|
|
5169
|
+
version: z180.string().refine(validateDesignSystemVersion, {
|
|
5185
5170
|
message: "Invalid semantic versioning format"
|
|
5186
5171
|
}),
|
|
5187
|
-
changeLog:
|
|
5172
|
+
changeLog: z180.string().optional()
|
|
5188
5173
|
});
|
|
5189
|
-
var DTOUpdateVersionInput =
|
|
5174
|
+
var DTOUpdateVersionInput = z180.object({
|
|
5190
5175
|
meta: ObjectMeta2,
|
|
5191
|
-
version:
|
|
5176
|
+
version: z180.string(),
|
|
5192
5177
|
// required for PUT, but not editable
|
|
5193
|
-
changeLog:
|
|
5178
|
+
changeLog: z180.string()
|
|
5194
5179
|
});
|
|
5195
5180
|
|
|
5196
5181
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5197
|
-
import { z as
|
|
5182
|
+
import { z as z181 } from "zod";
|
|
5198
5183
|
|
|
5199
5184
|
// src/api/dto/documentation/block-definition.ts
|
|
5200
5185
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5206,60 +5191,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5206
5191
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5207
5192
|
|
|
5208
5193
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5209
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5210
|
-
definitions:
|
|
5194
|
+
var DTOGetBlockDefinitionsOutput = z181.object({
|
|
5195
|
+
definitions: z181.array(DTOPageBlockDefinition)
|
|
5211
5196
|
});
|
|
5212
5197
|
|
|
5213
5198
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5214
|
-
import { z as
|
|
5215
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5216
|
-
environment:
|
|
5199
|
+
import { z as z182 } from "zod";
|
|
5200
|
+
var DTODocumentationPublishTypeQueryParams = z182.object({
|
|
5201
|
+
environment: z182.enum(["Live", "Preview"])
|
|
5217
5202
|
});
|
|
5218
5203
|
|
|
5219
5204
|
// src/api/payloads/export/pipeline.ts
|
|
5220
|
-
import { z as
|
|
5221
|
-
var DTOPipelineCreateBody =
|
|
5222
|
-
name:
|
|
5223
|
-
exporterId:
|
|
5224
|
-
designSystemId:
|
|
5225
|
-
isEnabled:
|
|
5205
|
+
import { z as z183 } from "zod";
|
|
5206
|
+
var DTOPipelineCreateBody = z183.object({
|
|
5207
|
+
name: z183.string(),
|
|
5208
|
+
exporterId: z183.string(),
|
|
5209
|
+
designSystemId: z183.string(),
|
|
5210
|
+
isEnabled: z183.boolean(),
|
|
5226
5211
|
eventType: PipelineEventType,
|
|
5227
|
-
brandPersistentId:
|
|
5228
|
-
themePersistentId:
|
|
5229
|
-
themePersistentIds:
|
|
5212
|
+
brandPersistentId: z183.string().optional(),
|
|
5213
|
+
themePersistentId: z183.string().optional(),
|
|
5214
|
+
themePersistentIds: z183.string().array().optional(),
|
|
5230
5215
|
destination: PipelineDestinationType.optional(),
|
|
5231
5216
|
gitQuery: GitObjectsQuery,
|
|
5232
|
-
destinations:
|
|
5217
|
+
destinations: z183.object({
|
|
5233
5218
|
s3: ExporterDestinationS3.nullish(),
|
|
5234
5219
|
azure: ExporterDestinationAzure.nullish(),
|
|
5235
5220
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5236
5221
|
github: ExporterDestinationGithub.nullish(),
|
|
5237
5222
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5238
5223
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5239
|
-
webhookUrl:
|
|
5224
|
+
webhookUrl: z183.string().nullish()
|
|
5240
5225
|
})
|
|
5241
5226
|
});
|
|
5242
5227
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5243
|
-
id:
|
|
5228
|
+
id: z183.string()
|
|
5244
5229
|
});
|
|
5245
|
-
var DTOPipelineTriggerBody =
|
|
5246
|
-
designSystemVersionId:
|
|
5230
|
+
var DTOPipelineTriggerBody = z183.object({
|
|
5231
|
+
designSystemVersionId: z183.string()
|
|
5247
5232
|
});
|
|
5248
5233
|
|
|
5249
5234
|
// src/api/payloads/liveblocks/auth.ts
|
|
5250
|
-
import { z as
|
|
5251
|
-
var DTOLiveblocksAuthRequest =
|
|
5252
|
-
room:
|
|
5235
|
+
import { z as z184 } from "zod";
|
|
5236
|
+
var DTOLiveblocksAuthRequest = z184.object({
|
|
5237
|
+
room: z184.string().optional()
|
|
5253
5238
|
});
|
|
5254
5239
|
|
|
5255
5240
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5256
|
-
import { z as
|
|
5257
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5241
|
+
import { z as z185 } from "zod";
|
|
5242
|
+
var DTOUpdateUserNotificationSettingsPayload = z185.object({
|
|
5258
5243
|
notificationSettings: UserNotificationSettings
|
|
5259
5244
|
});
|
|
5260
|
-
var DTOUserNotificationSettingsResponse =
|
|
5261
|
-
userId:
|
|
5262
|
-
workspaceId:
|
|
5245
|
+
var DTOUserNotificationSettingsResponse = z185.object({
|
|
5246
|
+
userId: z185.string(),
|
|
5247
|
+
workspaceId: z185.string(),
|
|
5263
5248
|
notificationSettings: UserNotificationSettings
|
|
5264
5249
|
});
|
|
5265
5250
|
|
|
@@ -5267,7 +5252,7 @@ var DTOUserNotificationSettingsResponse = z187.object({
|
|
|
5267
5252
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5268
5253
|
|
|
5269
5254
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5270
|
-
import { z as
|
|
5255
|
+
import { z as z186 } from "zod";
|
|
5271
5256
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5272
5257
|
function validateSsoPayload(ssoPayload) {
|
|
5273
5258
|
const keys = [];
|
|
@@ -5290,21 +5275,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5290
5275
|
keys
|
|
5291
5276
|
};
|
|
5292
5277
|
}
|
|
5293
|
-
var NpmRegistryInput =
|
|
5294
|
-
enabledScopes:
|
|
5295
|
-
customRegistryUrl:
|
|
5296
|
-
bypassProxy:
|
|
5297
|
-
npmProxyRegistryConfigId:
|
|
5298
|
-
npmProxyVersion:
|
|
5299
|
-
registryType:
|
|
5300
|
-
authType:
|
|
5301
|
-
authHeaderName:
|
|
5302
|
-
authHeaderValue:
|
|
5303
|
-
accessToken:
|
|
5304
|
-
username:
|
|
5305
|
-
password:
|
|
5306
|
-
});
|
|
5307
|
-
var WorkspaceConfigurationPayload =
|
|
5278
|
+
var NpmRegistryInput = z186.object({
|
|
5279
|
+
enabledScopes: z186.array(z186.string()),
|
|
5280
|
+
customRegistryUrl: z186.string().optional(),
|
|
5281
|
+
bypassProxy: z186.boolean().optional(),
|
|
5282
|
+
npmProxyRegistryConfigId: z186.string().optional(),
|
|
5283
|
+
npmProxyVersion: z186.number().optional(),
|
|
5284
|
+
registryType: z186.string(),
|
|
5285
|
+
authType: z186.string(),
|
|
5286
|
+
authHeaderName: z186.string(),
|
|
5287
|
+
authHeaderValue: z186.string(),
|
|
5288
|
+
accessToken: z186.string(),
|
|
5289
|
+
username: z186.string(),
|
|
5290
|
+
password: z186.string()
|
|
5291
|
+
});
|
|
5292
|
+
var WorkspaceConfigurationPayload = z186.object({
|
|
5308
5293
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5309
5294
|
sso: SsoProvider.partial().optional(),
|
|
5310
5295
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5312,114 +5297,114 @@ var WorkspaceConfigurationPayload = z188.object({
|
|
|
5312
5297
|
});
|
|
5313
5298
|
|
|
5314
5299
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5315
|
-
import { z as
|
|
5316
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5300
|
+
import { z as z187 } from "zod";
|
|
5301
|
+
var DTOWorkspaceIntegrationOauthInput = z187.object({
|
|
5317
5302
|
type: IntegrationType
|
|
5318
5303
|
});
|
|
5319
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5320
|
-
userId:
|
|
5304
|
+
var DTOWorkspaceIntegrationPATInput = z187.object({
|
|
5305
|
+
userId: z187.string(),
|
|
5321
5306
|
type: IntegrationType,
|
|
5322
5307
|
token: IntegrationToken
|
|
5323
5308
|
});
|
|
5324
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5325
|
-
organization:
|
|
5309
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z187.object({
|
|
5310
|
+
organization: z187.string().optional(),
|
|
5326
5311
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5327
|
-
project:
|
|
5312
|
+
project: z187.string().optional(),
|
|
5328
5313
|
// Only for Bitbucket and Azure
|
|
5329
|
-
repository:
|
|
5314
|
+
repository: z187.string().optional(),
|
|
5330
5315
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5331
|
-
branch:
|
|
5316
|
+
branch: z187.string().optional(),
|
|
5332
5317
|
// For all providers, useful for PR creations.
|
|
5333
|
-
user:
|
|
5318
|
+
user: z187.string().optional()
|
|
5334
5319
|
// Only for Gitlab User Repositories
|
|
5335
5320
|
});
|
|
5336
5321
|
|
|
5337
5322
|
// src/api/dto/design-systems/version.ts
|
|
5338
|
-
var DTODesignSystemVersion =
|
|
5339
|
-
id:
|
|
5340
|
-
createdAt:
|
|
5323
|
+
var DTODesignSystemVersion = z188.object({
|
|
5324
|
+
id: z188.string(),
|
|
5325
|
+
createdAt: z188.date(),
|
|
5341
5326
|
meta: ObjectMeta,
|
|
5342
|
-
version:
|
|
5343
|
-
isReadonly:
|
|
5344
|
-
changeLog:
|
|
5345
|
-
designSystemId:
|
|
5327
|
+
version: z188.string(),
|
|
5328
|
+
isReadonly: z188.boolean(),
|
|
5329
|
+
changeLog: z188.string(),
|
|
5330
|
+
designSystemId: z188.string()
|
|
5346
5331
|
});
|
|
5347
|
-
var DTODesignSystemVersionsListResponse =
|
|
5348
|
-
designSystemVersions:
|
|
5332
|
+
var DTODesignSystemVersionsListResponse = z188.object({
|
|
5333
|
+
designSystemVersions: z188.array(DTODesignSystemVersion)
|
|
5349
5334
|
});
|
|
5350
|
-
var DTODesignSystemVersionGetResponse =
|
|
5335
|
+
var DTODesignSystemVersionGetResponse = z188.object({
|
|
5351
5336
|
designSystemVersion: DTODesignSystemVersion
|
|
5352
5337
|
});
|
|
5353
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5338
|
+
var DTODesignSystemVersionCreationResponse = z188.object({
|
|
5354
5339
|
meta: ObjectMeta,
|
|
5355
|
-
version:
|
|
5356
|
-
changeLog:
|
|
5357
|
-
isReadOnly:
|
|
5358
|
-
designSystemId:
|
|
5359
|
-
jobId:
|
|
5360
|
-
});
|
|
5361
|
-
var VersionSQSPayload =
|
|
5362
|
-
jobId:
|
|
5363
|
-
designSystemId:
|
|
5340
|
+
version: z188.string(),
|
|
5341
|
+
changeLog: z188.string(),
|
|
5342
|
+
isReadOnly: z188.boolean(),
|
|
5343
|
+
designSystemId: z188.string(),
|
|
5344
|
+
jobId: z188.string()
|
|
5345
|
+
});
|
|
5346
|
+
var VersionSQSPayload = z188.object({
|
|
5347
|
+
jobId: z188.string(),
|
|
5348
|
+
designSystemId: z188.string(),
|
|
5364
5349
|
input: DTOCreateVersionInput
|
|
5365
5350
|
});
|
|
5366
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5367
|
-
jobs:
|
|
5351
|
+
var DTODesignSystemVersionJobsResponse = z188.object({
|
|
5352
|
+
jobs: z188.array(VersionCreationJob)
|
|
5368
5353
|
});
|
|
5369
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5354
|
+
var DTODesignSystemVersionJobStatusResponse = z188.object({
|
|
5370
5355
|
job: VersionCreationJob
|
|
5371
5356
|
});
|
|
5372
5357
|
|
|
5373
5358
|
// src/api/dto/design-systems/view.ts
|
|
5374
|
-
import { z as
|
|
5375
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5376
|
-
id:
|
|
5377
|
-
persistentId:
|
|
5378
|
-
width:
|
|
5359
|
+
import { z as z189 } from "zod";
|
|
5360
|
+
var DTOElementViewColumnSharedAttributes = z189.object({
|
|
5361
|
+
id: z189.string(),
|
|
5362
|
+
persistentId: z189.string(),
|
|
5363
|
+
width: z189.number()
|
|
5379
5364
|
});
|
|
5380
5365
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5381
|
-
type:
|
|
5366
|
+
type: z189.literal("BaseProperty"),
|
|
5382
5367
|
basePropertyType: ElementViewBaseColumnType
|
|
5383
5368
|
});
|
|
5384
5369
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5385
|
-
type:
|
|
5386
|
-
propertyDefinitionId:
|
|
5370
|
+
type: z189.literal("PropertyDefinition"),
|
|
5371
|
+
propertyDefinitionId: z189.string()
|
|
5387
5372
|
});
|
|
5388
5373
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5389
|
-
type:
|
|
5390
|
-
themeId:
|
|
5374
|
+
type: z189.literal("Theme"),
|
|
5375
|
+
themeId: z189.string()
|
|
5391
5376
|
});
|
|
5392
|
-
var DTOElementViewColumn =
|
|
5377
|
+
var DTOElementViewColumn = z189.discriminatedUnion("type", [
|
|
5393
5378
|
DTOElementViewBasePropertyColumn,
|
|
5394
5379
|
DTOElementViewPropertyDefinitionColumn,
|
|
5395
5380
|
DTOElementViewThemeColumn
|
|
5396
5381
|
]);
|
|
5397
|
-
var DTOElementView =
|
|
5382
|
+
var DTOElementView = z189.object({
|
|
5398
5383
|
meta: ObjectMeta,
|
|
5399
|
-
persistentId:
|
|
5384
|
+
persistentId: z189.string(),
|
|
5400
5385
|
targetElementType: ElementPropertyTargetType,
|
|
5401
|
-
id:
|
|
5402
|
-
isDefault:
|
|
5403
|
-
columns:
|
|
5386
|
+
id: z189.string(),
|
|
5387
|
+
isDefault: z189.boolean(),
|
|
5388
|
+
columns: z189.array(DTOElementViewColumn)
|
|
5404
5389
|
});
|
|
5405
|
-
var DTOElementViewsListResponse =
|
|
5406
|
-
elementDataViews:
|
|
5390
|
+
var DTOElementViewsListResponse = z189.object({
|
|
5391
|
+
elementDataViews: z189.array(DTOElementView)
|
|
5407
5392
|
});
|
|
5408
5393
|
|
|
5409
5394
|
// src/api/dto/documentation/anchor.ts
|
|
5410
|
-
import { z as
|
|
5395
|
+
import { z as z190 } from "zod";
|
|
5411
5396
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5412
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5413
|
-
anchors:
|
|
5397
|
+
var DTOGetDocumentationPageAnchorsResponse = z190.object({
|
|
5398
|
+
anchors: z190.array(DTODocumentationPageAnchor)
|
|
5414
5399
|
});
|
|
5415
5400
|
|
|
5416
5401
|
// src/api/dto/documentation/approvals.ts
|
|
5417
|
-
import { z as
|
|
5402
|
+
import { z as z191 } from "zod";
|
|
5418
5403
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5419
|
-
var DTODocumentationGroupApprovalState =
|
|
5420
|
-
persistentId:
|
|
5421
|
-
groupId:
|
|
5422
|
-
designSystemVersionId:
|
|
5404
|
+
var DTODocumentationGroupApprovalState = z191.object({
|
|
5405
|
+
persistentId: z191.string(),
|
|
5406
|
+
groupId: z191.string(),
|
|
5407
|
+
designSystemVersionId: z191.string(),
|
|
5423
5408
|
approvalState: DocumentationPageApprovalState
|
|
5424
5409
|
});
|
|
5425
5410
|
|
|
@@ -5427,68 +5412,68 @@ var DTODocumentationGroupApprovalState = z193.object({
|
|
|
5427
5412
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5428
5413
|
|
|
5429
5414
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5430
|
-
import { z as
|
|
5415
|
+
import { z as z196 } from "zod";
|
|
5431
5416
|
|
|
5432
5417
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5433
|
-
import { z as
|
|
5418
|
+
import { z as z195 } from "zod";
|
|
5434
5419
|
|
|
5435
5420
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5436
|
-
import { z as
|
|
5421
|
+
import { z as z193 } from "zod";
|
|
5437
5422
|
|
|
5438
5423
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5439
|
-
import { z as
|
|
5424
|
+
import { z as z192 } from "zod";
|
|
5440
5425
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5441
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5442
|
-
showSidebar:
|
|
5443
|
-
isPrivate:
|
|
5444
|
-
isHidden:
|
|
5426
|
+
var DTODocumentationItemConfigurationV2 = z192.object({
|
|
5427
|
+
showSidebar: z192.boolean(),
|
|
5428
|
+
isPrivate: z192.boolean(),
|
|
5429
|
+
isHidden: z192.boolean(),
|
|
5445
5430
|
header: DTODocumentationItemHeaderV2
|
|
5446
5431
|
});
|
|
5447
5432
|
|
|
5448
5433
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5449
|
-
var DTODocumentationDraftChangeType =
|
|
5450
|
-
var DTODocumentationDraftStateCreated =
|
|
5451
|
-
changeType:
|
|
5452
|
-
});
|
|
5453
|
-
var DTODocumentationDraftStateUpdated =
|
|
5454
|
-
changeType:
|
|
5455
|
-
changes:
|
|
5456
|
-
previousTitle:
|
|
5434
|
+
var DTODocumentationDraftChangeType = z193.enum(["Created", "Updated", "Deleted"]);
|
|
5435
|
+
var DTODocumentationDraftStateCreated = z193.object({
|
|
5436
|
+
changeType: z193.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5437
|
+
});
|
|
5438
|
+
var DTODocumentationDraftStateUpdated = z193.object({
|
|
5439
|
+
changeType: z193.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5440
|
+
changes: z193.object({
|
|
5441
|
+
previousTitle: z193.string().optional(),
|
|
5457
5442
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5458
|
-
previousContentHash:
|
|
5443
|
+
previousContentHash: z193.string().optional()
|
|
5459
5444
|
})
|
|
5460
5445
|
});
|
|
5461
|
-
var DTODocumentationDraftStateDeleted =
|
|
5462
|
-
changeType:
|
|
5463
|
-
deletedAt:
|
|
5464
|
-
deletedByUserId:
|
|
5446
|
+
var DTODocumentationDraftStateDeleted = z193.object({
|
|
5447
|
+
changeType: z193.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5448
|
+
deletedAt: z193.coerce.date(),
|
|
5449
|
+
deletedByUserId: z193.string()
|
|
5465
5450
|
});
|
|
5466
|
-
var DTODocumentationDraftState =
|
|
5451
|
+
var DTODocumentationDraftState = z193.discriminatedUnion("changeType", [
|
|
5467
5452
|
DTODocumentationDraftStateCreated,
|
|
5468
5453
|
DTODocumentationDraftStateUpdated,
|
|
5469
5454
|
DTODocumentationDraftStateDeleted
|
|
5470
5455
|
]);
|
|
5471
5456
|
|
|
5472
5457
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5473
|
-
import { z as
|
|
5474
|
-
var DTODocumentationPublishMetadata =
|
|
5475
|
-
lastPublishedByUserId:
|
|
5476
|
-
lastPublishedAt:
|
|
5458
|
+
import { z as z194 } from "zod";
|
|
5459
|
+
var DTODocumentationPublishMetadata = z194.object({
|
|
5460
|
+
lastPublishedByUserId: z194.string(),
|
|
5461
|
+
lastPublishedAt: z194.coerce.date()
|
|
5477
5462
|
});
|
|
5478
5463
|
|
|
5479
5464
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5480
|
-
var DTODocumentationPageV2 =
|
|
5481
|
-
id:
|
|
5482
|
-
persistentId:
|
|
5483
|
-
designSystemVersionId:
|
|
5484
|
-
title:
|
|
5465
|
+
var DTODocumentationPageV2 = z195.object({
|
|
5466
|
+
id: z195.string(),
|
|
5467
|
+
persistentId: z195.string(),
|
|
5468
|
+
designSystemVersionId: z195.string(),
|
|
5469
|
+
title: z195.string(),
|
|
5485
5470
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5486
|
-
shortPersistentId:
|
|
5487
|
-
slug:
|
|
5488
|
-
userSlug:
|
|
5489
|
-
createdAt:
|
|
5490
|
-
updatedAt:
|
|
5491
|
-
path:
|
|
5471
|
+
shortPersistentId: z195.string(),
|
|
5472
|
+
slug: z195.string().optional(),
|
|
5473
|
+
userSlug: z195.string().optional(),
|
|
5474
|
+
createdAt: z195.coerce.date(),
|
|
5475
|
+
updatedAt: z195.coerce.date(),
|
|
5476
|
+
path: z195.string(),
|
|
5492
5477
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5493
5478
|
draftState: DTODocumentationDraftState.optional(),
|
|
5494
5479
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5496,197 +5481,197 @@ var DTODocumentationPageV2 = z197.object({
|
|
|
5496
5481
|
/** Defines the approval state of the documentation page */
|
|
5497
5482
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5498
5483
|
// Backward compatibility
|
|
5499
|
-
type:
|
|
5484
|
+
type: z195.literal("Page")
|
|
5500
5485
|
});
|
|
5501
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5486
|
+
var DTOCreateDocumentationPageInputV2 = z195.object({
|
|
5502
5487
|
// Identifier
|
|
5503
|
-
persistentId:
|
|
5488
|
+
persistentId: z195.string().uuid(),
|
|
5504
5489
|
// Page properties
|
|
5505
|
-
title:
|
|
5490
|
+
title: z195.string(),
|
|
5506
5491
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5507
5492
|
// Page placement properties
|
|
5508
|
-
parentPersistentId:
|
|
5509
|
-
afterPersistentId:
|
|
5493
|
+
parentPersistentId: z195.string().uuid(),
|
|
5494
|
+
afterPersistentId: z195.string().uuid().nullish()
|
|
5510
5495
|
});
|
|
5511
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5496
|
+
var DTOUpdateDocumentationPageInputV2 = z195.object({
|
|
5512
5497
|
// Identifier of the group to update
|
|
5513
|
-
id:
|
|
5498
|
+
id: z195.string(),
|
|
5514
5499
|
// Page properties
|
|
5515
|
-
title:
|
|
5500
|
+
title: z195.string().optional(),
|
|
5516
5501
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5517
5502
|
});
|
|
5518
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5503
|
+
var DTOMoveDocumentationPageInputV2 = z195.object({
|
|
5519
5504
|
// Identifier of the group to update
|
|
5520
|
-
id:
|
|
5505
|
+
id: z195.string(),
|
|
5521
5506
|
// Page placement properties
|
|
5522
|
-
parentPersistentId:
|
|
5523
|
-
afterPersistentId:
|
|
5507
|
+
parentPersistentId: z195.string().uuid(),
|
|
5508
|
+
afterPersistentId: z195.string().uuid().nullish()
|
|
5524
5509
|
});
|
|
5525
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5510
|
+
var DTODuplicateDocumentationPageInputV2 = z195.object({
|
|
5526
5511
|
// Identifier of the page to duplicate from
|
|
5527
|
-
id:
|
|
5512
|
+
id: z195.string(),
|
|
5528
5513
|
// New page persistent id
|
|
5529
|
-
persistentId:
|
|
5514
|
+
persistentId: z195.string().uuid(),
|
|
5530
5515
|
// Page placement properties
|
|
5531
|
-
parentPersistentId:
|
|
5532
|
-
afterPersistentId:
|
|
5516
|
+
parentPersistentId: z195.string().uuid(),
|
|
5517
|
+
afterPersistentId: z195.string().uuid().nullish()
|
|
5533
5518
|
});
|
|
5534
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5519
|
+
var DTODeleteDocumentationPageInputV2 = z195.object({
|
|
5535
5520
|
// Identifier
|
|
5536
|
-
id:
|
|
5521
|
+
id: z195.string()
|
|
5537
5522
|
});
|
|
5538
|
-
var DTORestoreDocumentationPageInput =
|
|
5539
|
-
persistentId:
|
|
5540
|
-
snapshotId:
|
|
5523
|
+
var DTORestoreDocumentationPageInput = z195.object({
|
|
5524
|
+
persistentId: z195.string(),
|
|
5525
|
+
snapshotId: z195.string().optional()
|
|
5541
5526
|
});
|
|
5542
|
-
var DTORestoreDocumentationGroupInput =
|
|
5543
|
-
persistentId:
|
|
5544
|
-
snapshotId:
|
|
5527
|
+
var DTORestoreDocumentationGroupInput = z195.object({
|
|
5528
|
+
persistentId: z195.string(),
|
|
5529
|
+
snapshotId: z195.string().optional()
|
|
5545
5530
|
});
|
|
5546
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5547
|
-
persistentId:
|
|
5531
|
+
var DTODocumentationPageApprovalStateChangeInput = z195.object({
|
|
5532
|
+
persistentId: z195.string(),
|
|
5548
5533
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5549
5534
|
});
|
|
5550
5535
|
|
|
5551
5536
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5552
|
-
var DTODocumentationPageSnapshot =
|
|
5553
|
-
id:
|
|
5554
|
-
designSystemVersionId:
|
|
5555
|
-
createdAt:
|
|
5556
|
-
updatedAt:
|
|
5537
|
+
var DTODocumentationPageSnapshot = z196.object({
|
|
5538
|
+
id: z196.string(),
|
|
5539
|
+
designSystemVersionId: z196.string(),
|
|
5540
|
+
createdAt: z196.string(),
|
|
5541
|
+
updatedAt: z196.string(),
|
|
5557
5542
|
documentationPage: DTODocumentationPageV2,
|
|
5558
|
-
pageContentHash:
|
|
5543
|
+
pageContentHash: z196.string(),
|
|
5559
5544
|
reason: DesignElementSnapshotReason
|
|
5560
5545
|
});
|
|
5561
5546
|
|
|
5562
5547
|
// src/api/dto/documentation/link-preview.ts
|
|
5563
|
-
import { z as
|
|
5564
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5548
|
+
import { z as z197 } from "zod";
|
|
5549
|
+
var DTODocumentationLinkPreviewResponse = z197.object({
|
|
5565
5550
|
linkPreview: DocumentationLinkPreview
|
|
5566
5551
|
});
|
|
5567
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5568
|
-
url:
|
|
5569
|
-
documentationItemPersistentId:
|
|
5552
|
+
var DTODocumentationLinkPreviewRequest = z197.object({
|
|
5553
|
+
url: z197.string().optional(),
|
|
5554
|
+
documentationItemPersistentId: z197.string().optional()
|
|
5570
5555
|
});
|
|
5571
5556
|
|
|
5572
5557
|
// src/api/dto/documentation/publish.ts
|
|
5573
|
-
import { z as
|
|
5558
|
+
import { z as z201 } from "zod";
|
|
5574
5559
|
|
|
5575
5560
|
// src/api/dto/export/exporter.ts
|
|
5576
|
-
import { z as
|
|
5577
|
-
var DTOExporterType =
|
|
5578
|
-
var DTOExporterSource =
|
|
5579
|
-
var DTOExporterMembershipRole =
|
|
5580
|
-
var DTOExporter =
|
|
5581
|
-
id:
|
|
5582
|
-
name:
|
|
5583
|
-
isPrivate:
|
|
5561
|
+
import { z as z198 } from "zod";
|
|
5562
|
+
var DTOExporterType = z198.enum(["documentation", "code"]);
|
|
5563
|
+
var DTOExporterSource = z198.enum(["git", "upload"]);
|
|
5564
|
+
var DTOExporterMembershipRole = z198.enum(["Owner", "OwnerArchived", "User"]);
|
|
5565
|
+
var DTOExporter = z198.object({
|
|
5566
|
+
id: z198.string(),
|
|
5567
|
+
name: z198.string(),
|
|
5568
|
+
isPrivate: z198.boolean(),
|
|
5584
5569
|
exporterType: DTOExporterType,
|
|
5585
|
-
isDefaultDocumentationExporter:
|
|
5586
|
-
iconURL:
|
|
5570
|
+
isDefaultDocumentationExporter: z198.boolean(),
|
|
5571
|
+
iconURL: z198.string().optional(),
|
|
5587
5572
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5588
5573
|
customBlocks: PulsarCustomBlock.array(),
|
|
5589
|
-
blockVariants:
|
|
5590
|
-
usesBrands:
|
|
5591
|
-
usesThemes:
|
|
5574
|
+
blockVariants: z198.record(z198.string(), PulsarContributionVariant.array()),
|
|
5575
|
+
usesBrands: z198.boolean(),
|
|
5576
|
+
usesThemes: z198.boolean(),
|
|
5592
5577
|
source: DTOExporterSource,
|
|
5593
|
-
gitUrl:
|
|
5594
|
-
gitBranch:
|
|
5595
|
-
gitDirectory:
|
|
5578
|
+
gitUrl: z198.string().optional(),
|
|
5579
|
+
gitBranch: z198.string().optional(),
|
|
5580
|
+
gitDirectory: z198.string().optional()
|
|
5596
5581
|
});
|
|
5597
|
-
var DTOExporterMembership =
|
|
5598
|
-
workspaceId:
|
|
5599
|
-
exporterId:
|
|
5582
|
+
var DTOExporterMembership = z198.object({
|
|
5583
|
+
workspaceId: z198.string(),
|
|
5584
|
+
exporterId: z198.string(),
|
|
5600
5585
|
role: DTOExporterMembershipRole
|
|
5601
5586
|
});
|
|
5602
|
-
var DTOExporterCreateOutput =
|
|
5587
|
+
var DTOExporterCreateOutput = z198.object({
|
|
5603
5588
|
exporter: DTOExporter,
|
|
5604
5589
|
membership: DTOExporterMembership
|
|
5605
5590
|
});
|
|
5606
|
-
var DTOExporterGitProviderEnum =
|
|
5607
|
-
var DTOExporterCreateInput =
|
|
5608
|
-
url:
|
|
5591
|
+
var DTOExporterGitProviderEnum = z198.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5592
|
+
var DTOExporterCreateInput = z198.object({
|
|
5593
|
+
url: z198.string(),
|
|
5609
5594
|
provider: DTOExporterGitProviderEnum
|
|
5610
5595
|
});
|
|
5611
|
-
var DTOExporterUpdateInput =
|
|
5612
|
-
url:
|
|
5596
|
+
var DTOExporterUpdateInput = z198.object({
|
|
5597
|
+
url: z198.string().optional()
|
|
5613
5598
|
});
|
|
5614
5599
|
|
|
5615
5600
|
// src/api/dto/export/filter.ts
|
|
5616
5601
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5617
5602
|
|
|
5618
5603
|
// src/api/dto/export/job.ts
|
|
5619
|
-
import { z as
|
|
5620
|
-
var DTOExportJobCreatedBy =
|
|
5621
|
-
userId:
|
|
5622
|
-
userName:
|
|
5604
|
+
import { z as z199 } from "zod";
|
|
5605
|
+
var DTOExportJobCreatedBy = z199.object({
|
|
5606
|
+
userId: z199.string(),
|
|
5607
|
+
userName: z199.string()
|
|
5623
5608
|
});
|
|
5624
|
-
var DTOExportJobDesignSystemPreview =
|
|
5625
|
-
id:
|
|
5609
|
+
var DTOExportJobDesignSystemPreview = z199.object({
|
|
5610
|
+
id: z199.string(),
|
|
5626
5611
|
meta: ObjectMeta
|
|
5627
5612
|
});
|
|
5628
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5629
|
-
id:
|
|
5613
|
+
var DTOExportJobDesignSystemVersionPreview = z199.object({
|
|
5614
|
+
id: z199.string(),
|
|
5630
5615
|
meta: ObjectMeta,
|
|
5631
|
-
version:
|
|
5632
|
-
isReadonly:
|
|
5616
|
+
version: z199.string(),
|
|
5617
|
+
isReadonly: z199.boolean()
|
|
5633
5618
|
});
|
|
5634
|
-
var DTOExportJobDestinations =
|
|
5619
|
+
var DTOExportJobDestinations = z199.object({
|
|
5635
5620
|
s3: ExporterDestinationS3.optional(),
|
|
5636
5621
|
azure: ExporterDestinationAzure.optional(),
|
|
5637
5622
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5638
5623
|
github: ExporterDestinationGithub.optional(),
|
|
5639
5624
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5640
5625
|
documentation: ExporterDestinationDocs.optional(),
|
|
5641
|
-
webhookUrl:
|
|
5626
|
+
webhookUrl: z199.string().optional()
|
|
5642
5627
|
});
|
|
5643
5628
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5644
5629
|
sndocs: true
|
|
5645
5630
|
}).extend({
|
|
5646
5631
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5647
5632
|
});
|
|
5648
|
-
var DTOExportJob =
|
|
5649
|
-
id:
|
|
5650
|
-
createdAt:
|
|
5651
|
-
finishedAt:
|
|
5652
|
-
index:
|
|
5633
|
+
var DTOExportJob = z199.object({
|
|
5634
|
+
id: z199.string(),
|
|
5635
|
+
createdAt: z199.coerce.date(),
|
|
5636
|
+
finishedAt: z199.coerce.date().optional(),
|
|
5637
|
+
index: z199.number().optional(),
|
|
5653
5638
|
status: ExportJobStatus,
|
|
5654
|
-
estimatedExecutionTime:
|
|
5639
|
+
estimatedExecutionTime: z199.number().optional(),
|
|
5655
5640
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5656
5641
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5657
5642
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5658
5643
|
destinations: DTOExportJobDestinations,
|
|
5659
|
-
exporterId:
|
|
5660
|
-
scheduleId:
|
|
5644
|
+
exporterId: z199.string(),
|
|
5645
|
+
scheduleId: z199.string().optional(),
|
|
5661
5646
|
result: DTOExportJobResult.optional(),
|
|
5662
|
-
brandPersistentId:
|
|
5663
|
-
themePersistentId:
|
|
5664
|
-
themePersistentIds:
|
|
5647
|
+
brandPersistentId: z199.string().optional(),
|
|
5648
|
+
themePersistentId: z199.string().optional(),
|
|
5649
|
+
themePersistentIds: z199.string().array().optional()
|
|
5665
5650
|
});
|
|
5666
|
-
var DTOExportJobResponse =
|
|
5651
|
+
var DTOExportJobResponse = z199.object({
|
|
5667
5652
|
job: DTOExportJob
|
|
5668
5653
|
});
|
|
5669
5654
|
|
|
5670
5655
|
// src/api/dto/export/pipeline.ts
|
|
5671
|
-
import { z as
|
|
5672
|
-
var DTOPipeline =
|
|
5673
|
-
id:
|
|
5674
|
-
name:
|
|
5656
|
+
import { z as z200 } from "zod";
|
|
5657
|
+
var DTOPipeline = z200.object({
|
|
5658
|
+
id: z200.string(),
|
|
5659
|
+
name: z200.string(),
|
|
5675
5660
|
eventType: PipelineEventType,
|
|
5676
|
-
isEnabled:
|
|
5677
|
-
workspaceId:
|
|
5678
|
-
designSystemId:
|
|
5679
|
-
exporterId:
|
|
5680
|
-
brandPersistentId:
|
|
5681
|
-
themePersistentId:
|
|
5682
|
-
themePersistentIds:
|
|
5661
|
+
isEnabled: z200.boolean(),
|
|
5662
|
+
workspaceId: z200.string(),
|
|
5663
|
+
designSystemId: z200.string(),
|
|
5664
|
+
exporterId: z200.string(),
|
|
5665
|
+
brandPersistentId: z200.string().optional(),
|
|
5666
|
+
themePersistentId: z200.string().optional(),
|
|
5667
|
+
themePersistentIds: z200.string().array().optional(),
|
|
5683
5668
|
...ExportDestinationsMap.shape,
|
|
5684
5669
|
latestJobs: DTOExportJob.array()
|
|
5685
5670
|
});
|
|
5686
5671
|
|
|
5687
5672
|
// src/api/dto/documentation/publish.ts
|
|
5688
5673
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5689
|
-
var DTOPublishDocumentationRequest =
|
|
5674
|
+
var DTOPublishDocumentationRequest = z201.object({
|
|
5690
5675
|
environment: PublishedDocEnvironment,
|
|
5691
5676
|
/**
|
|
5692
5677
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5694,41 +5679,41 @@ var DTOPublishDocumentationRequest = z203.object({
|
|
|
5694
5679
|
*/
|
|
5695
5680
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5696
5681
|
});
|
|
5697
|
-
var DTOPublishDocumentationResponse =
|
|
5682
|
+
var DTOPublishDocumentationResponse = z201.object({
|
|
5698
5683
|
job: DTOExportJob
|
|
5699
5684
|
});
|
|
5700
5685
|
|
|
5701
5686
|
// src/api/dto/elements/components/figma-component.ts
|
|
5702
|
-
import { z as
|
|
5687
|
+
import { z as z202 } from "zod";
|
|
5703
5688
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
5704
|
-
var DTOFigmaComponentPropertyMap =
|
|
5705
|
-
var DTOFigmaComponent =
|
|
5706
|
-
id:
|
|
5707
|
-
persistentId:
|
|
5708
|
-
designSystemVersionId:
|
|
5709
|
-
brandId:
|
|
5710
|
-
thumbnailUrl:
|
|
5711
|
-
svgUrl:
|
|
5712
|
-
exportProperties:
|
|
5713
|
-
isAsset:
|
|
5689
|
+
var DTOFigmaComponentPropertyMap = z202.record(DTOFigmaComponentProperty);
|
|
5690
|
+
var DTOFigmaComponent = z202.object({
|
|
5691
|
+
id: z202.string(),
|
|
5692
|
+
persistentId: z202.string(),
|
|
5693
|
+
designSystemVersionId: z202.string(),
|
|
5694
|
+
brandId: z202.string(),
|
|
5695
|
+
thumbnailUrl: z202.string().optional(),
|
|
5696
|
+
svgUrl: z202.string().optional(),
|
|
5697
|
+
exportProperties: z202.object({
|
|
5698
|
+
isAsset: z202.boolean()
|
|
5714
5699
|
}),
|
|
5715
|
-
createdAt:
|
|
5716
|
-
updatedAt:
|
|
5700
|
+
createdAt: z202.coerce.date(),
|
|
5701
|
+
updatedAt: z202.coerce.date(),
|
|
5717
5702
|
meta: ObjectMeta,
|
|
5718
5703
|
originComponent: FigmaComponentOrigin.optional(),
|
|
5719
|
-
parentComponentPersistentId:
|
|
5704
|
+
parentComponentPersistentId: z202.string().optional(),
|
|
5720
5705
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
5721
|
-
childrenPersistentIds:
|
|
5706
|
+
childrenPersistentIds: z202.string().array().optional()
|
|
5722
5707
|
});
|
|
5723
|
-
var DTOFigmaComponentListResponse =
|
|
5708
|
+
var DTOFigmaComponentListResponse = z202.object({
|
|
5724
5709
|
components: DTOFigmaComponent.array()
|
|
5725
5710
|
});
|
|
5726
5711
|
|
|
5727
5712
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5728
|
-
import { z as
|
|
5713
|
+
import { z as z204 } from "zod";
|
|
5729
5714
|
|
|
5730
5715
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
5731
|
-
import { z as
|
|
5716
|
+
import { z as z203 } from "zod";
|
|
5732
5717
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
5733
5718
|
sortOrder: true,
|
|
5734
5719
|
parentPersistentId: true,
|
|
@@ -5738,13 +5723,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5738
5723
|
data: true,
|
|
5739
5724
|
shortPersistentId: true
|
|
5740
5725
|
}).extend({
|
|
5741
|
-
title:
|
|
5742
|
-
isRoot:
|
|
5743
|
-
childrenIds:
|
|
5726
|
+
title: z203.string(),
|
|
5727
|
+
isRoot: z203.boolean(),
|
|
5728
|
+
childrenIds: z203.array(z203.string()),
|
|
5744
5729
|
groupBehavior: DocumentationGroupBehavior,
|
|
5745
|
-
shortPersistentId:
|
|
5730
|
+
shortPersistentId: z203.string(),
|
|
5746
5731
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5747
|
-
type:
|
|
5732
|
+
type: z203.literal("Group"),
|
|
5748
5733
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
5749
5734
|
draftState: DTODocumentationDraftState.optional(),
|
|
5750
5735
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -5752,127 +5737,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5752
5737
|
//** An approval state for frontend to utilize. */
|
|
5753
5738
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
5754
5739
|
});
|
|
5755
|
-
var DTOCreateDocumentationGroupInput =
|
|
5740
|
+
var DTOCreateDocumentationGroupInput = z203.object({
|
|
5756
5741
|
// Identifier
|
|
5757
|
-
persistentId:
|
|
5742
|
+
persistentId: z203.string().uuid(),
|
|
5758
5743
|
// Group properties
|
|
5759
|
-
title:
|
|
5744
|
+
title: z203.string(),
|
|
5760
5745
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5761
5746
|
// Group placement properties
|
|
5762
|
-
afterPersistentId:
|
|
5763
|
-
parentPersistentId:
|
|
5747
|
+
afterPersistentId: z203.string().uuid().nullish(),
|
|
5748
|
+
parentPersistentId: z203.string().uuid()
|
|
5764
5749
|
});
|
|
5765
|
-
var DTOUpdateDocumentationGroupInput =
|
|
5750
|
+
var DTOUpdateDocumentationGroupInput = z203.object({
|
|
5766
5751
|
// Identifier of the group to update
|
|
5767
|
-
id:
|
|
5752
|
+
id: z203.string(),
|
|
5768
5753
|
// Group properties
|
|
5769
|
-
title:
|
|
5754
|
+
title: z203.string().optional(),
|
|
5770
5755
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5771
5756
|
});
|
|
5772
|
-
var DTOMoveDocumentationGroupInput =
|
|
5757
|
+
var DTOMoveDocumentationGroupInput = z203.object({
|
|
5773
5758
|
// Identifier of the group to update
|
|
5774
|
-
id:
|
|
5759
|
+
id: z203.string(),
|
|
5775
5760
|
// Group placement properties
|
|
5776
|
-
parentPersistentId:
|
|
5777
|
-
afterPersistentId:
|
|
5761
|
+
parentPersistentId: z203.string().uuid(),
|
|
5762
|
+
afterPersistentId: z203.string().uuid().nullish()
|
|
5778
5763
|
});
|
|
5779
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5764
|
+
var DTODuplicateDocumentationGroupInput = z203.object({
|
|
5780
5765
|
// Identifier of the group to duplicate from
|
|
5781
|
-
id:
|
|
5766
|
+
id: z203.string(),
|
|
5782
5767
|
// New group persistent id
|
|
5783
|
-
persistentId:
|
|
5768
|
+
persistentId: z203.string().uuid(),
|
|
5784
5769
|
// Group placement properties
|
|
5785
|
-
afterPersistentId:
|
|
5786
|
-
parentPersistentId:
|
|
5770
|
+
afterPersistentId: z203.string().uuid().nullish(),
|
|
5771
|
+
parentPersistentId: z203.string().uuid()
|
|
5787
5772
|
});
|
|
5788
|
-
var DTOCreateDocumentationTabInput =
|
|
5773
|
+
var DTOCreateDocumentationTabInput = z203.object({
|
|
5789
5774
|
// New group persistent id
|
|
5790
|
-
persistentId:
|
|
5775
|
+
persistentId: z203.string().uuid(),
|
|
5791
5776
|
// If this is page, we will attempt to convert it to tab
|
|
5792
5777
|
// If this is tab group, we will add a new tab to it
|
|
5793
|
-
fromItemPersistentId:
|
|
5794
|
-
tabName:
|
|
5778
|
+
fromItemPersistentId: z203.string(),
|
|
5779
|
+
tabName: z203.string()
|
|
5795
5780
|
});
|
|
5796
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5781
|
+
var DTODeleteDocumentationTabGroupInput = z203.object({
|
|
5797
5782
|
// Deleted group id
|
|
5798
|
-
id:
|
|
5783
|
+
id: z203.string()
|
|
5799
5784
|
});
|
|
5800
|
-
var DTODeleteDocumentationGroupInput =
|
|
5785
|
+
var DTODeleteDocumentationGroupInput = z203.object({
|
|
5801
5786
|
// Identifier
|
|
5802
|
-
id:
|
|
5787
|
+
id: z203.string(),
|
|
5803
5788
|
// Deletion options
|
|
5804
|
-
deleteSubtree:
|
|
5789
|
+
deleteSubtree: z203.boolean().default(false)
|
|
5805
5790
|
});
|
|
5806
5791
|
|
|
5807
5792
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5808
|
-
var SuccessPayload =
|
|
5809
|
-
success:
|
|
5793
|
+
var SuccessPayload = z204.object({
|
|
5794
|
+
success: z204.literal(true)
|
|
5810
5795
|
});
|
|
5811
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5812
|
-
type:
|
|
5796
|
+
var DTODocumentationGroupCreateActionOutputV2 = z204.object({
|
|
5797
|
+
type: z204.literal("DocumentationGroupCreate"),
|
|
5813
5798
|
output: SuccessPayload
|
|
5814
5799
|
});
|
|
5815
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5816
|
-
type:
|
|
5800
|
+
var DTODocumentationTabCreateActionOutputV2 = z204.object({
|
|
5801
|
+
type: z204.literal("DocumentationTabCreate"),
|
|
5817
5802
|
output: SuccessPayload
|
|
5818
5803
|
});
|
|
5819
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5820
|
-
type:
|
|
5804
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z204.object({
|
|
5805
|
+
type: z204.literal("DocumentationGroupUpdate"),
|
|
5821
5806
|
output: SuccessPayload
|
|
5822
5807
|
});
|
|
5823
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5824
|
-
type:
|
|
5808
|
+
var DTODocumentationGroupMoveActionOutputV2 = z204.object({
|
|
5809
|
+
type: z204.literal("DocumentationGroupMove"),
|
|
5825
5810
|
output: SuccessPayload
|
|
5826
5811
|
});
|
|
5827
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5828
|
-
type:
|
|
5812
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z204.object({
|
|
5813
|
+
type: z204.literal("DocumentationGroupDuplicate"),
|
|
5829
5814
|
output: SuccessPayload
|
|
5830
5815
|
});
|
|
5831
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
5832
|
-
type:
|
|
5816
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z204.object({
|
|
5817
|
+
type: z204.literal("DocumentationGroupDelete"),
|
|
5833
5818
|
output: SuccessPayload
|
|
5834
5819
|
});
|
|
5835
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
5836
|
-
type:
|
|
5820
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z204.object({
|
|
5821
|
+
type: z204.literal("DocumentationTabGroupDelete"),
|
|
5837
5822
|
output: SuccessPayload
|
|
5838
5823
|
});
|
|
5839
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
5840
|
-
type:
|
|
5824
|
+
var DTODocumentationGroupCreateActionInputV2 = z204.object({
|
|
5825
|
+
type: z204.literal("DocumentationGroupCreate"),
|
|
5841
5826
|
input: DTOCreateDocumentationGroupInput
|
|
5842
5827
|
});
|
|
5843
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
5844
|
-
type:
|
|
5828
|
+
var DTODocumentationTabCreateActionInputV2 = z204.object({
|
|
5829
|
+
type: z204.literal("DocumentationTabCreate"),
|
|
5845
5830
|
input: DTOCreateDocumentationTabInput
|
|
5846
5831
|
});
|
|
5847
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
5848
|
-
type:
|
|
5832
|
+
var DTODocumentationGroupUpdateActionInputV2 = z204.object({
|
|
5833
|
+
type: z204.literal("DocumentationGroupUpdate"),
|
|
5849
5834
|
input: DTOUpdateDocumentationGroupInput
|
|
5850
5835
|
});
|
|
5851
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
5852
|
-
type:
|
|
5836
|
+
var DTODocumentationGroupMoveActionInputV2 = z204.object({
|
|
5837
|
+
type: z204.literal("DocumentationGroupMove"),
|
|
5853
5838
|
input: DTOMoveDocumentationGroupInput
|
|
5854
5839
|
});
|
|
5855
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
5856
|
-
type:
|
|
5840
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z204.object({
|
|
5841
|
+
type: z204.literal("DocumentationGroupDuplicate"),
|
|
5857
5842
|
input: DTODuplicateDocumentationGroupInput
|
|
5858
5843
|
});
|
|
5859
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
5860
|
-
type:
|
|
5844
|
+
var DTODocumentationGroupDeleteActionInputV2 = z204.object({
|
|
5845
|
+
type: z204.literal("DocumentationGroupDelete"),
|
|
5861
5846
|
input: DTODeleteDocumentationGroupInput
|
|
5862
5847
|
});
|
|
5863
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
5864
|
-
type:
|
|
5848
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z204.object({
|
|
5849
|
+
type: z204.literal("DocumentationTabGroupDelete"),
|
|
5865
5850
|
input: DTODeleteDocumentationTabGroupInput
|
|
5866
5851
|
});
|
|
5867
5852
|
|
|
5868
5853
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
5869
|
-
import { z as
|
|
5854
|
+
import { z as z206 } from "zod";
|
|
5870
5855
|
|
|
5871
5856
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
5872
|
-
import { z as
|
|
5873
|
-
var DocumentationColorV1 =
|
|
5874
|
-
aliasTo:
|
|
5875
|
-
value:
|
|
5857
|
+
import { z as z205 } from "zod";
|
|
5858
|
+
var DocumentationColorV1 = z205.object({
|
|
5859
|
+
aliasTo: z205.string().optional(),
|
|
5860
|
+
value: z205.string().optional()
|
|
5876
5861
|
});
|
|
5877
5862
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
5878
5863
|
foregroundColor: true,
|
|
@@ -5881,10 +5866,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
5881
5866
|
foregroundColor: DocumentationColorV1.optional(),
|
|
5882
5867
|
backgroundColor: DocumentationColorV1.optional()
|
|
5883
5868
|
});
|
|
5884
|
-
var DTODocumentationItemConfigurationV1 =
|
|
5885
|
-
showSidebar:
|
|
5886
|
-
isPrivate:
|
|
5887
|
-
isHidden:
|
|
5869
|
+
var DTODocumentationItemConfigurationV1 = z205.object({
|
|
5870
|
+
showSidebar: z205.boolean(),
|
|
5871
|
+
isPrivate: z205.boolean(),
|
|
5872
|
+
isHidden: z205.boolean(),
|
|
5888
5873
|
header: DTODocumentationItemHeaderV1
|
|
5889
5874
|
});
|
|
5890
5875
|
|
|
@@ -5898,27 +5883,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
5898
5883
|
data: true,
|
|
5899
5884
|
shortPersistentId: true
|
|
5900
5885
|
}).extend({
|
|
5901
|
-
title:
|
|
5902
|
-
isRoot:
|
|
5903
|
-
childrenIds:
|
|
5886
|
+
title: z206.string(),
|
|
5887
|
+
isRoot: z206.boolean(),
|
|
5888
|
+
childrenIds: z206.array(z206.string()),
|
|
5904
5889
|
groupBehavior: DocumentationGroupBehavior,
|
|
5905
|
-
shortPersistentId:
|
|
5906
|
-
type:
|
|
5890
|
+
shortPersistentId: z206.string(),
|
|
5891
|
+
type: z206.literal("Group")
|
|
5907
5892
|
});
|
|
5908
5893
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
5909
5894
|
configuration: DTODocumentationItemConfigurationV1
|
|
5910
5895
|
});
|
|
5911
5896
|
|
|
5912
5897
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
5913
|
-
import { z as
|
|
5914
|
-
var DTODocumentationHierarchyV2 =
|
|
5915
|
-
pages:
|
|
5898
|
+
import { z as z207 } from "zod";
|
|
5899
|
+
var DTODocumentationHierarchyV2 = z207.object({
|
|
5900
|
+
pages: z207.array(
|
|
5916
5901
|
DTODocumentationPageV2.extend({
|
|
5917
5902
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5918
5903
|
draftState: DTODocumentationDraftState.optional()
|
|
5919
5904
|
})
|
|
5920
5905
|
),
|
|
5921
|
-
groups:
|
|
5906
|
+
groups: z207.array(
|
|
5922
5907
|
DTODocumentationGroupV2.extend({
|
|
5923
5908
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5924
5909
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -5927,84 +5912,84 @@ var DTODocumentationHierarchyV2 = z209.object({
|
|
|
5927
5912
|
});
|
|
5928
5913
|
|
|
5929
5914
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
5930
|
-
import { z as
|
|
5931
|
-
var SuccessPayload2 =
|
|
5932
|
-
success:
|
|
5915
|
+
import { z as z208 } from "zod";
|
|
5916
|
+
var SuccessPayload2 = z208.object({
|
|
5917
|
+
success: z208.literal(true)
|
|
5933
5918
|
});
|
|
5934
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
5935
|
-
type:
|
|
5919
|
+
var DTODocumentationPageCreateActionOutputV2 = z208.object({
|
|
5920
|
+
type: z208.literal("DocumentationPageCreate"),
|
|
5936
5921
|
output: SuccessPayload2
|
|
5937
5922
|
});
|
|
5938
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
5939
|
-
type:
|
|
5923
|
+
var DTODocumentationPageUpdateActionOutputV2 = z208.object({
|
|
5924
|
+
type: z208.literal("DocumentationPageUpdate"),
|
|
5940
5925
|
output: SuccessPayload2
|
|
5941
5926
|
});
|
|
5942
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
5943
|
-
type:
|
|
5927
|
+
var DTODocumentationPageMoveActionOutputV2 = z208.object({
|
|
5928
|
+
type: z208.literal("DocumentationPageMove"),
|
|
5944
5929
|
output: SuccessPayload2
|
|
5945
5930
|
});
|
|
5946
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
5947
|
-
type:
|
|
5931
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z208.object({
|
|
5932
|
+
type: z208.literal("DocumentationPageDuplicate"),
|
|
5948
5933
|
output: SuccessPayload2
|
|
5949
5934
|
});
|
|
5950
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
5951
|
-
type:
|
|
5935
|
+
var DTODocumentationPageDeleteActionOutputV2 = z208.object({
|
|
5936
|
+
type: z208.literal("DocumentationPageDelete"),
|
|
5952
5937
|
output: SuccessPayload2
|
|
5953
5938
|
});
|
|
5954
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
5955
|
-
type:
|
|
5939
|
+
var DTODocumentationPageRestoreActionOutput = z208.object({
|
|
5940
|
+
type: z208.literal("DocumentationPageRestore"),
|
|
5956
5941
|
output: SuccessPayload2
|
|
5957
5942
|
});
|
|
5958
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
5959
|
-
type:
|
|
5943
|
+
var DTODocumentationGroupRestoreActionOutput = z208.object({
|
|
5944
|
+
type: z208.literal("DocumentationGroupRestore"),
|
|
5960
5945
|
output: SuccessPayload2
|
|
5961
5946
|
});
|
|
5962
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
5963
|
-
type:
|
|
5947
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z208.object({
|
|
5948
|
+
type: z208.literal("DocumentationPageApprovalStateChange"),
|
|
5964
5949
|
output: SuccessPayload2
|
|
5965
5950
|
});
|
|
5966
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
5967
|
-
type:
|
|
5951
|
+
var DTODocumentationPageCreateActionInputV2 = z208.object({
|
|
5952
|
+
type: z208.literal("DocumentationPageCreate"),
|
|
5968
5953
|
input: DTOCreateDocumentationPageInputV2
|
|
5969
5954
|
});
|
|
5970
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
5971
|
-
type:
|
|
5955
|
+
var DTODocumentationPageUpdateActionInputV2 = z208.object({
|
|
5956
|
+
type: z208.literal("DocumentationPageUpdate"),
|
|
5972
5957
|
input: DTOUpdateDocumentationPageInputV2
|
|
5973
5958
|
});
|
|
5974
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
5975
|
-
type:
|
|
5959
|
+
var DTODocumentationPageMoveActionInputV2 = z208.object({
|
|
5960
|
+
type: z208.literal("DocumentationPageMove"),
|
|
5976
5961
|
input: DTOMoveDocumentationPageInputV2
|
|
5977
5962
|
});
|
|
5978
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
5979
|
-
type:
|
|
5963
|
+
var DTODocumentationPageDuplicateActionInputV2 = z208.object({
|
|
5964
|
+
type: z208.literal("DocumentationPageDuplicate"),
|
|
5980
5965
|
input: DTODuplicateDocumentationPageInputV2
|
|
5981
5966
|
});
|
|
5982
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
5983
|
-
type:
|
|
5967
|
+
var DTODocumentationPageDeleteActionInputV2 = z208.object({
|
|
5968
|
+
type: z208.literal("DocumentationPageDelete"),
|
|
5984
5969
|
input: DTODeleteDocumentationPageInputV2
|
|
5985
5970
|
});
|
|
5986
|
-
var DTODocumentationPageRestoreActionInput =
|
|
5987
|
-
type:
|
|
5971
|
+
var DTODocumentationPageRestoreActionInput = z208.object({
|
|
5972
|
+
type: z208.literal("DocumentationPageRestore"),
|
|
5988
5973
|
input: DTORestoreDocumentationPageInput
|
|
5989
5974
|
});
|
|
5990
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
5991
|
-
type:
|
|
5975
|
+
var DTODocumentationGroupRestoreActionInput = z208.object({
|
|
5976
|
+
type: z208.literal("DocumentationGroupRestore"),
|
|
5992
5977
|
input: DTORestoreDocumentationGroupInput
|
|
5993
5978
|
});
|
|
5994
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
5995
|
-
type:
|
|
5979
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z208.object({
|
|
5980
|
+
type: z208.literal("DocumentationPageApprovalStateChange"),
|
|
5996
5981
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
5997
5982
|
});
|
|
5998
5983
|
|
|
5999
5984
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6000
|
-
import { z as
|
|
5985
|
+
import { z as z209 } from "zod";
|
|
6001
5986
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6002
|
-
var DTODocumentationPageContentGetResponse =
|
|
5987
|
+
var DTODocumentationPageContentGetResponse = z209.object({
|
|
6003
5988
|
pageContent: DTODocumentationPageContent
|
|
6004
5989
|
});
|
|
6005
5990
|
|
|
6006
5991
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6007
|
-
import { z as
|
|
5992
|
+
import { z as z210 } from "zod";
|
|
6008
5993
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6009
5994
|
data: true,
|
|
6010
5995
|
meta: true,
|
|
@@ -6012,32 +5997,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6012
5997
|
sortOrder: true
|
|
6013
5998
|
}).extend({
|
|
6014
5999
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6015
|
-
blocks:
|
|
6016
|
-
title:
|
|
6017
|
-
path:
|
|
6000
|
+
blocks: z210.array(PageBlockV1),
|
|
6001
|
+
title: z210.string(),
|
|
6002
|
+
path: z210.string()
|
|
6018
6003
|
});
|
|
6019
6004
|
|
|
6020
6005
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6021
|
-
import { z as
|
|
6006
|
+
import { z as z211 } from "zod";
|
|
6022
6007
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6023
|
-
var DTOFigmaNodeOrigin =
|
|
6024
|
-
sourceId:
|
|
6025
|
-
fileId:
|
|
6026
|
-
parentName:
|
|
6008
|
+
var DTOFigmaNodeOrigin = z211.object({
|
|
6009
|
+
sourceId: z211.string(),
|
|
6010
|
+
fileId: z211.string().optional(),
|
|
6011
|
+
parentName: z211.string().optional()
|
|
6027
6012
|
});
|
|
6028
|
-
var DTOFigmaNodeData =
|
|
6013
|
+
var DTOFigmaNodeData = z211.object({
|
|
6029
6014
|
// Id of the node in the Figma file
|
|
6030
|
-
figmaNodeId:
|
|
6015
|
+
figmaNodeId: z211.string(),
|
|
6031
6016
|
// Validity
|
|
6032
|
-
isValid:
|
|
6017
|
+
isValid: z211.boolean(),
|
|
6033
6018
|
// Asset data
|
|
6034
|
-
assetId:
|
|
6035
|
-
assetUrl:
|
|
6019
|
+
assetId: z211.string(),
|
|
6020
|
+
assetUrl: z211.string(),
|
|
6036
6021
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6037
6022
|
// Asset metadata
|
|
6038
|
-
assetScale:
|
|
6039
|
-
assetWidth:
|
|
6040
|
-
assetHeight:
|
|
6023
|
+
assetScale: z211.number(),
|
|
6024
|
+
assetWidth: z211.number().optional(),
|
|
6025
|
+
assetHeight: z211.number().optional()
|
|
6041
6026
|
});
|
|
6042
6027
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6043
6028
|
data: true,
|
|
@@ -6046,15 +6031,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6046
6031
|
data: DTOFigmaNodeData,
|
|
6047
6032
|
origin: DTOFigmaNodeOrigin
|
|
6048
6033
|
});
|
|
6049
|
-
var DTOFigmaNodeRenderInput =
|
|
6034
|
+
var DTOFigmaNodeRenderInput = z211.object({
|
|
6050
6035
|
/**
|
|
6051
6036
|
* Id of a design system's data source representing a linked Figma file
|
|
6052
6037
|
*/
|
|
6053
|
-
sourceId:
|
|
6038
|
+
sourceId: z211.string(),
|
|
6054
6039
|
/**
|
|
6055
6040
|
* Id of a node within the Figma file
|
|
6056
6041
|
*/
|
|
6057
|
-
figmaFileNodeId:
|
|
6042
|
+
figmaFileNodeId: z211.string(),
|
|
6058
6043
|
/**
|
|
6059
6044
|
* Format in which the node must be rendered, png by default.
|
|
6060
6045
|
*/
|
|
@@ -6062,97 +6047,97 @@ var DTOFigmaNodeRenderInput = z213.object({
|
|
|
6062
6047
|
});
|
|
6063
6048
|
|
|
6064
6049
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6065
|
-
import { z as
|
|
6066
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6067
|
-
type:
|
|
6068
|
-
figmaNodes:
|
|
6050
|
+
import { z as z212 } from "zod";
|
|
6051
|
+
var DTOFigmaNodeRenderActionOutput = z212.object({
|
|
6052
|
+
type: z212.literal("FigmaNodeRender"),
|
|
6053
|
+
figmaNodes: z212.array(DTOFigmaNode)
|
|
6069
6054
|
});
|
|
6070
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6071
|
-
type:
|
|
6055
|
+
var DTOFigmaNodeRenderActionInput = z212.object({
|
|
6056
|
+
type: z212.literal("FigmaNodeRender"),
|
|
6072
6057
|
input: DTOFigmaNodeRenderInput.array()
|
|
6073
6058
|
});
|
|
6074
6059
|
|
|
6075
6060
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6076
|
-
import { z as
|
|
6061
|
+
import { z as z214 } from "zod";
|
|
6077
6062
|
|
|
6078
6063
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6079
|
-
import { z as
|
|
6064
|
+
import { z as z213 } from "zod";
|
|
6080
6065
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6081
|
-
var DTOElementPropertyDefinition =
|
|
6082
|
-
id:
|
|
6083
|
-
designSystemVersionId:
|
|
6066
|
+
var DTOElementPropertyDefinition = z213.object({
|
|
6067
|
+
id: z213.string(),
|
|
6068
|
+
designSystemVersionId: z213.string(),
|
|
6084
6069
|
meta: ObjectMeta,
|
|
6085
|
-
persistentId:
|
|
6070
|
+
persistentId: z213.string(),
|
|
6086
6071
|
type: ElementPropertyTypeSchema,
|
|
6087
6072
|
targetElementType: ElementPropertyTargetType,
|
|
6088
|
-
codeName:
|
|
6089
|
-
options:
|
|
6073
|
+
codeName: z213.string().regex(CODE_NAME_REGEX2),
|
|
6074
|
+
options: z213.array(ElementPropertyDefinitionOption).optional(),
|
|
6090
6075
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6091
6076
|
});
|
|
6092
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6093
|
-
definitions:
|
|
6077
|
+
var DTOElementPropertyDefinitionsGetResponse = z213.object({
|
|
6078
|
+
definitions: z213.array(DTOElementPropertyDefinition)
|
|
6094
6079
|
});
|
|
6095
6080
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6096
6081
|
id: true,
|
|
6097
6082
|
designSystemVersionId: true
|
|
6098
6083
|
});
|
|
6099
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6100
|
-
id:
|
|
6101
|
-
name:
|
|
6102
|
-
description:
|
|
6103
|
-
codeName:
|
|
6104
|
-
options:
|
|
6084
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z213.object({
|
|
6085
|
+
id: z213.string(),
|
|
6086
|
+
name: z213.string().optional(),
|
|
6087
|
+
description: z213.string().optional(),
|
|
6088
|
+
codeName: z213.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6089
|
+
options: z213.array(ElementPropertyDefinitionOption).optional()
|
|
6105
6090
|
});
|
|
6106
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6107
|
-
id:
|
|
6091
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z213.object({
|
|
6092
|
+
id: z213.string()
|
|
6108
6093
|
});
|
|
6109
6094
|
|
|
6110
6095
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6111
|
-
var SuccessPayload3 =
|
|
6112
|
-
success:
|
|
6096
|
+
var SuccessPayload3 = z214.object({
|
|
6097
|
+
success: z214.literal(true)
|
|
6113
6098
|
});
|
|
6114
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6115
|
-
type:
|
|
6099
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z214.object({
|
|
6100
|
+
type: z214.literal("PropertyDefinitionCreate"),
|
|
6116
6101
|
definition: DTOElementPropertyDefinition
|
|
6117
6102
|
});
|
|
6118
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6119
|
-
type:
|
|
6103
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z214.object({
|
|
6104
|
+
type: z214.literal("PropertyDefinitionUpdate"),
|
|
6120
6105
|
definition: DTOElementPropertyDefinition
|
|
6121
6106
|
});
|
|
6122
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6123
|
-
type:
|
|
6107
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z214.object({
|
|
6108
|
+
type: z214.literal("PropertyDefinitionDelete"),
|
|
6124
6109
|
output: SuccessPayload3
|
|
6125
6110
|
});
|
|
6126
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6127
|
-
type:
|
|
6111
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z214.object({
|
|
6112
|
+
type: z214.literal("PropertyDefinitionCreate"),
|
|
6128
6113
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6129
6114
|
});
|
|
6130
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6131
|
-
type:
|
|
6115
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z214.object({
|
|
6116
|
+
type: z214.literal("PropertyDefinitionUpdate"),
|
|
6132
6117
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6133
6118
|
});
|
|
6134
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6135
|
-
type:
|
|
6119
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z214.object({
|
|
6120
|
+
type: z214.literal("PropertyDefinitionDelete"),
|
|
6136
6121
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6137
6122
|
});
|
|
6138
6123
|
|
|
6139
6124
|
// src/api/dto/elements/properties/property-values.ts
|
|
6140
|
-
import { z as
|
|
6141
|
-
var DTOElementPropertyValue =
|
|
6142
|
-
id:
|
|
6143
|
-
designSystemVersionId:
|
|
6144
|
-
definitionId:
|
|
6145
|
-
targetElementId:
|
|
6146
|
-
value:
|
|
6147
|
-
valuePreview:
|
|
6125
|
+
import { z as z215 } from "zod";
|
|
6126
|
+
var DTOElementPropertyValue = z215.object({
|
|
6127
|
+
id: z215.string(),
|
|
6128
|
+
designSystemVersionId: z215.string(),
|
|
6129
|
+
definitionId: z215.string(),
|
|
6130
|
+
targetElementId: z215.string(),
|
|
6131
|
+
value: z215.union([z215.string(), z215.number(), z215.boolean()]).optional(),
|
|
6132
|
+
valuePreview: z215.string().optional()
|
|
6148
6133
|
});
|
|
6149
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6150
|
-
values:
|
|
6134
|
+
var DTOElementPropertyValuesGetResponse = z215.object({
|
|
6135
|
+
values: z215.array(DTOElementPropertyValue)
|
|
6151
6136
|
});
|
|
6152
6137
|
|
|
6153
6138
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6154
|
-
import { z as
|
|
6155
|
-
var DTOElementActionOutput =
|
|
6139
|
+
import { z as z216 } from "zod";
|
|
6140
|
+
var DTOElementActionOutput = z216.discriminatedUnion("type", [
|
|
6156
6141
|
// Documentation pages
|
|
6157
6142
|
DTODocumentationPageCreateActionOutputV2,
|
|
6158
6143
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6179,7 +6164,7 @@ var DTOElementActionOutput = z218.discriminatedUnion("type", [
|
|
|
6179
6164
|
// Approvals
|
|
6180
6165
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6181
6166
|
]);
|
|
6182
|
-
var DTOElementActionInput =
|
|
6167
|
+
var DTOElementActionInput = z216.discriminatedUnion("type", [
|
|
6183
6168
|
// Documentation pages
|
|
6184
6169
|
DTODocumentationPageCreateActionInputV2,
|
|
6185
6170
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6208,154 +6193,154 @@ var DTOElementActionInput = z218.discriminatedUnion("type", [
|
|
|
6208
6193
|
]);
|
|
6209
6194
|
|
|
6210
6195
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6211
|
-
import { z as
|
|
6212
|
-
var DTOElementsGetTypeFilter =
|
|
6213
|
-
var DTOElementsGetQuerySchema =
|
|
6214
|
-
types:
|
|
6196
|
+
import { z as z217 } from "zod";
|
|
6197
|
+
var DTOElementsGetTypeFilter = z217.enum(["FigmaNode"]);
|
|
6198
|
+
var DTOElementsGetQuerySchema = z217.object({
|
|
6199
|
+
types: z217.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6215
6200
|
});
|
|
6216
|
-
var DTOElementsGetOutput =
|
|
6217
|
-
figmaNodes:
|
|
6201
|
+
var DTOElementsGetOutput = z217.object({
|
|
6202
|
+
figmaNodes: z217.array(DTOFigmaNode).optional()
|
|
6218
6203
|
});
|
|
6219
6204
|
|
|
6220
6205
|
// src/api/dto/figma-components/assets/download.ts
|
|
6221
|
-
import { z as
|
|
6222
|
-
var DTOAssetRenderConfiguration =
|
|
6223
|
-
prefix:
|
|
6224
|
-
suffix:
|
|
6225
|
-
scale:
|
|
6226
|
-
format:
|
|
6227
|
-
});
|
|
6228
|
-
var DTORenderedAssetFile =
|
|
6229
|
-
assetId:
|
|
6230
|
-
fileName:
|
|
6231
|
-
sourceUrl:
|
|
6206
|
+
import { z as z218 } from "zod";
|
|
6207
|
+
var DTOAssetRenderConfiguration = z218.object({
|
|
6208
|
+
prefix: z218.string().optional(),
|
|
6209
|
+
suffix: z218.string().optional(),
|
|
6210
|
+
scale: z218.enum(["x1", "x2", "x3", "x4"]),
|
|
6211
|
+
format: z218.enum(["png", "pdf", "svg"])
|
|
6212
|
+
});
|
|
6213
|
+
var DTORenderedAssetFile = z218.object({
|
|
6214
|
+
assetId: z218.string(),
|
|
6215
|
+
fileName: z218.string(),
|
|
6216
|
+
sourceUrl: z218.string(),
|
|
6232
6217
|
settings: DTOAssetRenderConfiguration,
|
|
6233
|
-
originalName:
|
|
6218
|
+
originalName: z218.string()
|
|
6234
6219
|
});
|
|
6235
|
-
var DTODownloadAssetsRequest =
|
|
6236
|
-
persistentIds:
|
|
6220
|
+
var DTODownloadAssetsRequest = z218.object({
|
|
6221
|
+
persistentIds: z218.array(z218.string().uuid()).optional(),
|
|
6237
6222
|
settings: DTOAssetRenderConfiguration.array()
|
|
6238
6223
|
});
|
|
6239
|
-
var DTODownloadAssetsResponse =
|
|
6224
|
+
var DTODownloadAssetsResponse = z218.object({
|
|
6240
6225
|
items: DTORenderedAssetFile.array()
|
|
6241
6226
|
});
|
|
6242
6227
|
|
|
6243
6228
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6244
|
-
import { z as
|
|
6245
|
-
var DTOLiveblocksAuthResponse =
|
|
6246
|
-
token:
|
|
6229
|
+
import { z as z219 } from "zod";
|
|
6230
|
+
var DTOLiveblocksAuthResponse = z219.object({
|
|
6231
|
+
token: z219.string()
|
|
6247
6232
|
});
|
|
6248
6233
|
|
|
6249
6234
|
// src/api/dto/users/update.ts
|
|
6250
|
-
import { z as
|
|
6251
|
-
var DTOUserProfileUpdateResponse =
|
|
6235
|
+
import { z as z220 } from "zod";
|
|
6236
|
+
var DTOUserProfileUpdateResponse = z220.object({
|
|
6252
6237
|
user: User
|
|
6253
6238
|
});
|
|
6254
6239
|
|
|
6255
6240
|
// src/api/dto/users/user.ts
|
|
6256
|
-
import { z as
|
|
6257
|
-
var DTOUserProfile =
|
|
6258
|
-
name:
|
|
6259
|
-
nickname:
|
|
6260
|
-
avatar:
|
|
6261
|
-
});
|
|
6262
|
-
var DTOUser =
|
|
6263
|
-
id:
|
|
6264
|
-
email:
|
|
6241
|
+
import { z as z221 } from "zod";
|
|
6242
|
+
var DTOUserProfile = z221.object({
|
|
6243
|
+
name: z221.string(),
|
|
6244
|
+
nickname: z221.string().optional(),
|
|
6245
|
+
avatar: z221.string().optional()
|
|
6246
|
+
});
|
|
6247
|
+
var DTOUser = z221.object({
|
|
6248
|
+
id: z221.string(),
|
|
6249
|
+
email: z221.string(),
|
|
6265
6250
|
profile: DTOUserProfile
|
|
6266
6251
|
});
|
|
6267
6252
|
|
|
6268
6253
|
// src/api/dto/workspaces/git.ts
|
|
6269
|
-
import { z as
|
|
6270
|
-
var DTOGitOrganization =
|
|
6271
|
-
id:
|
|
6272
|
-
name:
|
|
6273
|
-
url:
|
|
6274
|
-
slug:
|
|
6275
|
-
});
|
|
6276
|
-
var DTOGitProject =
|
|
6277
|
-
id:
|
|
6278
|
-
name:
|
|
6279
|
-
url:
|
|
6280
|
-
slug:
|
|
6281
|
-
});
|
|
6282
|
-
var DTOGitRepository =
|
|
6283
|
-
id:
|
|
6284
|
-
name:
|
|
6285
|
-
url:
|
|
6286
|
-
slug:
|
|
6287
|
-
defaultBranch:
|
|
6288
|
-
});
|
|
6289
|
-
var DTOGitBranch =
|
|
6290
|
-
name:
|
|
6291
|
-
lastCommitId:
|
|
6254
|
+
import { z as z222 } from "zod";
|
|
6255
|
+
var DTOGitOrganization = z222.object({
|
|
6256
|
+
id: z222.string(),
|
|
6257
|
+
name: z222.string(),
|
|
6258
|
+
url: z222.string(),
|
|
6259
|
+
slug: z222.string()
|
|
6260
|
+
});
|
|
6261
|
+
var DTOGitProject = z222.object({
|
|
6262
|
+
id: z222.string(),
|
|
6263
|
+
name: z222.string(),
|
|
6264
|
+
url: z222.string(),
|
|
6265
|
+
slug: z222.string()
|
|
6266
|
+
});
|
|
6267
|
+
var DTOGitRepository = z222.object({
|
|
6268
|
+
id: z222.string(),
|
|
6269
|
+
name: z222.string(),
|
|
6270
|
+
url: z222.string(),
|
|
6271
|
+
slug: z222.string(),
|
|
6272
|
+
defaultBranch: z222.string().optional()
|
|
6273
|
+
});
|
|
6274
|
+
var DTOGitBranch = z222.object({
|
|
6275
|
+
name: z222.string(),
|
|
6276
|
+
lastCommitId: z222.string()
|
|
6292
6277
|
});
|
|
6293
6278
|
|
|
6294
6279
|
// src/api/dto/workspaces/integrations.ts
|
|
6295
|
-
import { z as
|
|
6280
|
+
import { z as z223 } from "zod";
|
|
6296
6281
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6297
6282
|
accessToken: true,
|
|
6298
6283
|
refreshToken: true
|
|
6299
6284
|
});
|
|
6300
|
-
var DTOIntegration =
|
|
6301
|
-
id:
|
|
6302
|
-
workspaceId:
|
|
6285
|
+
var DTOIntegration = z223.object({
|
|
6286
|
+
id: z223.string(),
|
|
6287
|
+
workspaceId: z223.string(),
|
|
6303
6288
|
type: ExtendedIntegrationType,
|
|
6304
|
-
createdAt:
|
|
6305
|
-
integrationCredentials:
|
|
6306
|
-
integrationDesignSystems:
|
|
6289
|
+
createdAt: z223.coerce.date(),
|
|
6290
|
+
integrationCredentials: z223.array(DTOIntegrationCredentials).optional(),
|
|
6291
|
+
integrationDesignSystems: z223.array(IntegrationDesignSystem).optional()
|
|
6307
6292
|
});
|
|
6308
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6309
|
-
url:
|
|
6293
|
+
var DTOIntegrationOAuthGetResponse = z223.object({
|
|
6294
|
+
url: z223.string()
|
|
6310
6295
|
});
|
|
6311
|
-
var DTOIntegrationPostResponse =
|
|
6296
|
+
var DTOIntegrationPostResponse = z223.object({
|
|
6312
6297
|
integration: DTOIntegration
|
|
6313
6298
|
});
|
|
6314
|
-
var DTOIntegrationsGetListResponse =
|
|
6299
|
+
var DTOIntegrationsGetListResponse = z223.object({
|
|
6315
6300
|
integrations: DTOIntegration.array()
|
|
6316
6301
|
});
|
|
6317
6302
|
|
|
6318
6303
|
// src/api/dto/workspaces/membership.ts
|
|
6319
|
-
import { z as
|
|
6304
|
+
import { z as z226 } from "zod";
|
|
6320
6305
|
|
|
6321
6306
|
// src/api/dto/workspaces/workspace.ts
|
|
6322
|
-
import { z as
|
|
6307
|
+
import { z as z225 } from "zod";
|
|
6323
6308
|
|
|
6324
6309
|
// src/api/dto/workspaces/npm-registry.ts
|
|
6325
|
-
import { z as
|
|
6310
|
+
import { z as z224 } from "zod";
|
|
6326
6311
|
var DTONpmRegistryConfigConstants = {
|
|
6327
6312
|
passwordPlaceholder: "redacted"
|
|
6328
6313
|
};
|
|
6329
|
-
var DTONpmRegistryConfig =
|
|
6314
|
+
var DTONpmRegistryConfig = z224.object({
|
|
6330
6315
|
// Registry basic configuration
|
|
6331
6316
|
registryType: NpmRegistryType,
|
|
6332
|
-
registryUrl:
|
|
6333
|
-
customRegistryUrl:
|
|
6317
|
+
registryUrl: z224.string(),
|
|
6318
|
+
customRegistryUrl: z224.string().optional(),
|
|
6334
6319
|
// URL of Supernova NPM packages proxy
|
|
6335
|
-
proxyUrl:
|
|
6320
|
+
proxyUrl: z224.string(),
|
|
6336
6321
|
// Auth configuration
|
|
6337
6322
|
authType: NpmRegistryAuthType,
|
|
6338
|
-
accessToken:
|
|
6339
|
-
username:
|
|
6340
|
-
password:
|
|
6323
|
+
accessToken: z224.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6324
|
+
username: z224.string().optional(),
|
|
6325
|
+
password: z224.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6341
6326
|
// NPM package scopes for whih the proxy should be enabled
|
|
6342
|
-
enabledScopes:
|
|
6327
|
+
enabledScopes: z224.array(z224.string()),
|
|
6343
6328
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6344
6329
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6345
|
-
bypassProxy:
|
|
6330
|
+
bypassProxy: z224.boolean()
|
|
6346
6331
|
});
|
|
6347
6332
|
|
|
6348
6333
|
// src/api/dto/workspaces/workspace.ts
|
|
6349
|
-
var DTOWorkspace =
|
|
6350
|
-
id:
|
|
6334
|
+
var DTOWorkspace = z225.object({
|
|
6335
|
+
id: z225.string(),
|
|
6351
6336
|
profile: WorkspaceProfile,
|
|
6352
6337
|
subscription: Subscription,
|
|
6353
6338
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6354
6339
|
});
|
|
6355
6340
|
|
|
6356
6341
|
// src/api/dto/workspaces/membership.ts
|
|
6357
|
-
var DTOWorkspaceRole =
|
|
6358
|
-
var DTOUserWorkspaceMembership =
|
|
6342
|
+
var DTOWorkspaceRole = z226.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6343
|
+
var DTOUserWorkspaceMembership = z226.object({
|
|
6359
6344
|
// Workspace the user is a member of
|
|
6360
6345
|
workspace: DTOWorkspace,
|
|
6361
6346
|
// Assigned role the user has in the workspace
|
|
@@ -6365,8 +6350,8 @@ var DTOUserWorkspaceMembership = z228.object({
|
|
|
6365
6350
|
// when a workspace's subscription is downgraded to free tier
|
|
6366
6351
|
effectiveRole: DTOWorkspaceRole
|
|
6367
6352
|
});
|
|
6368
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6369
|
-
membership:
|
|
6353
|
+
var DTOUserWorkspaceMembershipsResponse = z226.object({
|
|
6354
|
+
membership: z226.array(DTOUserWorkspaceMembership)
|
|
6370
6355
|
});
|
|
6371
6356
|
|
|
6372
6357
|
// src/utils/hash.ts
|
|
@@ -6428,7 +6413,7 @@ function generateHash(input, debug = false) {
|
|
|
6428
6413
|
}
|
|
6429
6414
|
|
|
6430
6415
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6431
|
-
import { z as
|
|
6416
|
+
import { z as z227 } from "zod";
|
|
6432
6417
|
|
|
6433
6418
|
// src/yjs/version-room/base.ts
|
|
6434
6419
|
var VersionRoomBaseYDoc = class {
|
|
@@ -6957,24 +6942,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6957
6942
|
};
|
|
6958
6943
|
|
|
6959
6944
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6960
|
-
var DocumentationHierarchySettings =
|
|
6961
|
-
routingVersion:
|
|
6962
|
-
isDraftFeatureAdopted:
|
|
6963
|
-
isApprovalFeatureEnabled:
|
|
6964
|
-
approvalRequiredForPublishing:
|
|
6945
|
+
var DocumentationHierarchySettings = z227.object({
|
|
6946
|
+
routingVersion: z227.string(),
|
|
6947
|
+
isDraftFeatureAdopted: z227.boolean(),
|
|
6948
|
+
isApprovalFeatureEnabled: z227.boolean(),
|
|
6949
|
+
approvalRequiredForPublishing: z227.boolean()
|
|
6965
6950
|
});
|
|
6966
6951
|
function yjsToDocumentationHierarchy(doc) {
|
|
6967
6952
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
6968
6953
|
}
|
|
6969
6954
|
|
|
6970
6955
|
// src/yjs/design-system-content/item-configuration.ts
|
|
6971
|
-
import { z as
|
|
6972
|
-
var DTODocumentationPageRoomHeaderData =
|
|
6973
|
-
title:
|
|
6956
|
+
import { z as z228 } from "zod";
|
|
6957
|
+
var DTODocumentationPageRoomHeaderData = z228.object({
|
|
6958
|
+
title: z228.string(),
|
|
6974
6959
|
configuration: DTODocumentationItemConfigurationV2
|
|
6975
6960
|
});
|
|
6976
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
6977
|
-
title:
|
|
6961
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z228.object({
|
|
6962
|
+
title: z228.string().optional(),
|
|
6978
6963
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
6979
6964
|
});
|
|
6980
6965
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7025,7 +7010,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7025
7010
|
header: rawHeader
|
|
7026
7011
|
};
|
|
7027
7012
|
return {
|
|
7028
|
-
title:
|
|
7013
|
+
title: z228.string().parse(title),
|
|
7029
7014
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7030
7015
|
};
|
|
7031
7016
|
}
|
|
@@ -7035,9 +7020,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7035
7020
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7036
7021
|
|
|
7037
7022
|
// src/yjs/docs-editor/model/page.ts
|
|
7038
|
-
import { z as
|
|
7039
|
-
var DocumentationPageEditorModel =
|
|
7040
|
-
blocks:
|
|
7023
|
+
import { z as z229 } from "zod";
|
|
7024
|
+
var DocumentationPageEditorModel = z229.object({
|
|
7025
|
+
blocks: z229.array(DocumentationPageContentItem)
|
|
7041
7026
|
});
|
|
7042
7027
|
|
|
7043
7028
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -10901,7 +10886,7 @@ var blocks = [
|
|
|
10901
10886
|
|
|
10902
10887
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
10903
10888
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
10904
|
-
import { z as
|
|
10889
|
+
import { z as z230 } from "zod";
|
|
10905
10890
|
function yDocToPage(yDoc, definitions) {
|
|
10906
10891
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
10907
10892
|
}
|
|
@@ -10981,7 +10966,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
10981
10966
|
return null;
|
|
10982
10967
|
return {
|
|
10983
10968
|
id,
|
|
10984
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
10969
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z230.string()) ?? "",
|
|
10985
10970
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
10986
10971
|
};
|
|
10987
10972
|
}
|
|
@@ -11016,7 +11001,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11016
11001
|
});
|
|
11017
11002
|
}
|
|
11018
11003
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11019
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11004
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z230.string());
|
|
11020
11005
|
if (!definitionId) {
|
|
11021
11006
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11022
11007
|
return [];
|
|
@@ -11058,7 +11043,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11058
11043
|
if (!id)
|
|
11059
11044
|
return null;
|
|
11060
11045
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11061
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11046
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z230.string().optional()));
|
|
11062
11047
|
return {
|
|
11063
11048
|
id,
|
|
11064
11049
|
type: "Block",
|
|
@@ -11186,10 +11171,10 @@ function parseRichTextAttribute(mark) {
|
|
|
11186
11171
|
return null;
|
|
11187
11172
|
}
|
|
11188
11173
|
function parseProsemirrorLink(mark) {
|
|
11189
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
11174
|
+
const href = getProsemirrorAttribute(mark, "href", z230.string().optional());
|
|
11190
11175
|
if (!href)
|
|
11191
11176
|
return null;
|
|
11192
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
11177
|
+
const target = getProsemirrorAttribute(mark, "target", z230.string().optional());
|
|
11193
11178
|
const openInNewTab = target === "_blank";
|
|
11194
11179
|
if (href.startsWith("@")) {
|
|
11195
11180
|
return {
|
|
@@ -11208,10 +11193,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11208
11193
|
}
|
|
11209
11194
|
}
|
|
11210
11195
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11211
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
11196
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z230.string().optional());
|
|
11212
11197
|
if (!highlightId)
|
|
11213
11198
|
return null;
|
|
11214
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
11199
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z230.boolean().optional()) ?? false;
|
|
11215
11200
|
return {
|
|
11216
11201
|
type: "Comment",
|
|
11217
11202
|
commentHighlightId: highlightId,
|
|
@@ -11223,7 +11208,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11223
11208
|
if (!id)
|
|
11224
11209
|
return null;
|
|
11225
11210
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11226
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
11211
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z230.boolean().optional()) !== false;
|
|
11227
11212
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11228
11213
|
if (!tableChild) {
|
|
11229
11214
|
return emptyTable(id, variantId, 0);
|
|
@@ -11270,9 +11255,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11270
11255
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11271
11256
|
if (!id)
|
|
11272
11257
|
return null;
|
|
11273
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11258
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z230.string().optional());
|
|
11274
11259
|
let columnWidth;
|
|
11275
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11260
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z230.array(z230.number()).optional());
|
|
11276
11261
|
if (columnWidthArray) {
|
|
11277
11262
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11278
11263
|
}
|
|
@@ -11310,7 +11295,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11310
11295
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11311
11296
|
};
|
|
11312
11297
|
case "image":
|
|
11313
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11298
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z230.string());
|
|
11314
11299
|
if (!items)
|
|
11315
11300
|
return null;
|
|
11316
11301
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11430,7 +11415,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11430
11415
|
);
|
|
11431
11416
|
}
|
|
11432
11417
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11433
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11418
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z230.string());
|
|
11434
11419
|
if (!itemsString)
|
|
11435
11420
|
return null;
|
|
11436
11421
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11442,18 +11427,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11442
11427
|
}
|
|
11443
11428
|
function parseAppearance(prosemirrorNode) {
|
|
11444
11429
|
let appearance = {};
|
|
11445
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11430
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z230.string().optional());
|
|
11446
11431
|
if (rawAppearanceString) {
|
|
11447
11432
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11448
11433
|
if (parsedAppearance.success) {
|
|
11449
11434
|
appearance = parsedAppearance.data;
|
|
11450
11435
|
}
|
|
11451
11436
|
}
|
|
11452
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11437
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z230.number().optional());
|
|
11453
11438
|
if (columns) {
|
|
11454
11439
|
appearance.numberOfColumns = columns;
|
|
11455
11440
|
}
|
|
11456
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11441
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z230.string().optional());
|
|
11457
11442
|
if (backgroundColor) {
|
|
11458
11443
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11459
11444
|
if (parsedColor.success) {
|
|
@@ -11548,13 +11533,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11548
11533
|
}
|
|
11549
11534
|
}
|
|
11550
11535
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11551
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11536
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z230.string());
|
|
11552
11537
|
if (!id)
|
|
11553
11538
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11554
11539
|
return id;
|
|
11555
11540
|
}
|
|
11556
11541
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11557
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11542
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z230.string()));
|
|
11558
11543
|
}
|
|
11559
11544
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11560
11545
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -11632,6 +11617,8 @@ export {
|
|
|
11632
11617
|
DTODeleteElementPropertyDefinitionInputV2,
|
|
11633
11618
|
DTODesignElementsDataDiffResponse,
|
|
11634
11619
|
DTODesignSystem,
|
|
11620
|
+
DTODesignSystemCreateInput,
|
|
11621
|
+
DTODesignSystemCreateResponse,
|
|
11635
11622
|
DTODesignSystemMember,
|
|
11636
11623
|
DTODesignSystemMemberListResponse,
|
|
11637
11624
|
DTODesignSystemMembersUpdatePayload,
|