@supernova-studio/client 0.58.12 → 0.58.14
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 +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1392 -1379
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/stats.ts +4 -0
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 z147 } 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 z146 } from "zod";
|
|
27
28
|
import { z as z145 } from "zod";
|
|
28
|
-
import { z as z144 } 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";
|
|
@@ -154,36 +154,37 @@ import { z as z140 } from "zod";
|
|
|
154
154
|
import { z as z141 } from "zod";
|
|
155
155
|
import { z as z142 } from "zod";
|
|
156
156
|
import { z as z143 } from "zod";
|
|
157
|
+
import { z as z144 } from "zod";
|
|
158
|
+
import { z as z154 } from "zod";
|
|
157
159
|
import { z as z153 } from "zod";
|
|
158
|
-
import { z as z152 } from "zod";
|
|
159
|
-
import { z as z147 } from "zod";
|
|
160
160
|
import { z as z148 } from "zod";
|
|
161
161
|
import { z as z149 } from "zod";
|
|
162
162
|
import { z as z150 } from "zod";
|
|
163
163
|
import { z as z151 } from "zod";
|
|
164
|
+
import { z as z152 } from "zod";
|
|
165
|
+
import { z as z157 } from "zod";
|
|
164
166
|
import { z as z156 } from "zod";
|
|
165
167
|
import { z as z155 } from "zod";
|
|
166
|
-
import { z as z154 } from "zod";
|
|
167
|
-
import { z as z157 } from "zod";
|
|
168
168
|
import { z as z158 } from "zod";
|
|
169
169
|
import { z as z159 } from "zod";
|
|
170
|
-
import { z as z162 } from "zod";
|
|
171
170
|
import { z as z160 } from "zod";
|
|
172
|
-
import { z as z161 } from "zod";
|
|
173
171
|
import { z as z163 } from "zod";
|
|
172
|
+
import { z as z161 } from "zod";
|
|
173
|
+
import { z as z162 } from "zod";
|
|
174
174
|
import { z as z164 } from "zod";
|
|
175
175
|
import { z as z165 } from "zod";
|
|
176
176
|
import { z as z166 } from "zod";
|
|
177
177
|
import { z as z167 } from "zod";
|
|
178
178
|
import { z as z168 } from "zod";
|
|
179
|
-
import { z as z170 } from "zod";
|
|
180
179
|
import { z as z169 } from "zod";
|
|
181
180
|
import { z as z171 } from "zod";
|
|
181
|
+
import { z as z170 } from "zod";
|
|
182
182
|
import { z as z172 } from "zod";
|
|
183
183
|
import { z as z173 } from "zod";
|
|
184
184
|
import { z as z174 } from "zod";
|
|
185
185
|
import { z as z175 } from "zod";
|
|
186
186
|
import { z as z176 } from "zod";
|
|
187
|
+
import { z as z177 } from "zod";
|
|
187
188
|
var __defProp2 = Object.defineProperty;
|
|
188
189
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
189
190
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -4038,143 +4039,151 @@ var ExporterPropertyValuesCollection = z140.object({
|
|
|
4038
4039
|
exporterId: z140.string(),
|
|
4039
4040
|
values: z140.array(ExporterPropertyValue)
|
|
4040
4041
|
});
|
|
4041
|
-
var
|
|
4042
|
+
var PublishedDocPageVisitsEntry = z141.object({
|
|
4042
4043
|
id: z141.string(),
|
|
4043
|
-
|
|
4044
|
+
versionId: z141.string(),
|
|
4044
4045
|
pageShortPersistentId: z141.string(),
|
|
4045
|
-
pathV1: z141.string(),
|
|
4046
|
-
pathV2: z141.string(),
|
|
4047
|
-
storagePath: z141.string(),
|
|
4048
4046
|
locale: z141.string().optional(),
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
createdAt: z141.coerce.date(),
|
|
4052
|
-
updatedAt: z141.coerce.date()
|
|
4047
|
+
timestamp: z141.coerce.date(),
|
|
4048
|
+
visits: z141.number()
|
|
4053
4049
|
});
|
|
4054
|
-
var
|
|
4055
|
-
var PublishedDocEnvironment = z142.enum(publishedDocEnvironments);
|
|
4056
|
-
var PublishedDocsChecksums = z142.record(z142.string());
|
|
4057
|
-
var PublishedDocRoutingVersion = z142.enum(["1", "2"]);
|
|
4058
|
-
var PublishedDoc = z142.object({
|
|
4050
|
+
var PublishedDocPage = z142.object({
|
|
4059
4051
|
id: z142.string(),
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
isDefault: z142.boolean(),
|
|
4065
|
-
isPublic: z142.boolean(),
|
|
4066
|
-
environment: PublishedDocEnvironment,
|
|
4067
|
-
checksums: PublishedDocsChecksums,
|
|
4052
|
+
publishedDocId: z142.string(),
|
|
4053
|
+
pageShortPersistentId: z142.string(),
|
|
4054
|
+
pathV1: z142.string(),
|
|
4055
|
+
pathV2: z142.string(),
|
|
4068
4056
|
storagePath: z142.string(),
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
assetCount: z142.number()
|
|
4057
|
+
locale: z142.string().optional(),
|
|
4058
|
+
isPrivate: z142.boolean(),
|
|
4059
|
+
isHidden: z142.boolean(),
|
|
4060
|
+
createdAt: z142.coerce.date(),
|
|
4061
|
+
updatedAt: z142.coerce.date()
|
|
4075
4062
|
});
|
|
4076
|
-
var
|
|
4063
|
+
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4064
|
+
var PublishedDocEnvironment = z143.enum(publishedDocEnvironments);
|
|
4065
|
+
var PublishedDocsChecksums = z143.record(z143.string());
|
|
4066
|
+
var PublishedDocRoutingVersion = z143.enum(["1", "2"]);
|
|
4067
|
+
var PublishedDoc = z143.object({
|
|
4077
4068
|
id: z143.string(),
|
|
4078
|
-
|
|
4069
|
+
designSystemVersionId: z143.string(),
|
|
4079
4070
|
createdAt: z143.coerce.date(),
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4071
|
+
updatedAt: z143.coerce.date(),
|
|
4072
|
+
lastPublishedAt: z143.coerce.date(),
|
|
4073
|
+
isDefault: z143.boolean(),
|
|
4074
|
+
isPublic: z143.boolean(),
|
|
4075
|
+
environment: PublishedDocEnvironment,
|
|
4076
|
+
checksums: PublishedDocsChecksums,
|
|
4077
|
+
storagePath: z143.string(),
|
|
4078
|
+
wasMigrated: z143.boolean(),
|
|
4079
|
+
routingVersion: PublishedDocRoutingVersion,
|
|
4080
|
+
usesLocalizations: z143.boolean(),
|
|
4081
|
+
wasPublishedWithLocalizations: z143.boolean(),
|
|
4082
|
+
tokenCount: z143.number(),
|
|
4083
|
+
assetCount: z143.number()
|
|
4084
|
+
});
|
|
4085
|
+
var DesignSystemVersion = z144.object({
|
|
4086
|
+
id: z144.string(),
|
|
4087
|
+
version: z144.string(),
|
|
4088
|
+
createdAt: z144.coerce.date(),
|
|
4089
|
+
designSystemId: z144.string(),
|
|
4090
|
+
name: z144.string(),
|
|
4091
|
+
comment: z144.string(),
|
|
4092
|
+
isReadonly: z144.boolean(),
|
|
4093
|
+
changeLog: z144.string(),
|
|
4094
|
+
parentId: z144.string().optional(),
|
|
4095
|
+
isDraftsFeatureAdopted: z144.boolean()
|
|
4096
|
+
});
|
|
4097
|
+
var VersionCreationJobStatus = z144.enum(["Success", "InProgress", "Error"]);
|
|
4098
|
+
var VersionCreationJob = z144.object({
|
|
4099
|
+
id: z144.string(),
|
|
4100
|
+
version: z144.string(),
|
|
4101
|
+
designSystemId: z144.string(),
|
|
4102
|
+
designSystemVersionId: nullishToOptional(z144.string()),
|
|
4094
4103
|
status: VersionCreationJobStatus,
|
|
4095
|
-
errorMessage: nullishToOptional(
|
|
4104
|
+
errorMessage: nullishToOptional(z144.string())
|
|
4096
4105
|
});
|
|
4097
4106
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
4098
4107
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
4099
|
-
var ExportJobDocumentationChanges =
|
|
4100
|
-
pagePersistentIds:
|
|
4101
|
-
groupPersistentIds:
|
|
4108
|
+
var ExportJobDocumentationChanges = z145.object({
|
|
4109
|
+
pagePersistentIds: z145.string().array(),
|
|
4110
|
+
groupPersistentIds: z145.string().array()
|
|
4102
4111
|
});
|
|
4103
|
-
var ExporterDestinationDocs =
|
|
4112
|
+
var ExporterDestinationDocs = z145.object({
|
|
4104
4113
|
environment: PublishedDocEnvironment,
|
|
4105
4114
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
4106
4115
|
});
|
|
4107
|
-
var ExporterDestinationS3 =
|
|
4108
|
-
var ExporterDestinationGithub =
|
|
4109
|
-
credentialId:
|
|
4116
|
+
var ExporterDestinationS3 = z145.object({});
|
|
4117
|
+
var ExporterDestinationGithub = z145.object({
|
|
4118
|
+
credentialId: z145.string().optional(),
|
|
4110
4119
|
// Repository
|
|
4111
|
-
url:
|
|
4120
|
+
url: z145.string(),
|
|
4112
4121
|
// Location
|
|
4113
|
-
branch:
|
|
4114
|
-
relativePath: nullishToOptional(
|
|
4115
|
-
purgeDirectory: nullishToOptional(
|
|
4122
|
+
branch: z145.string(),
|
|
4123
|
+
relativePath: nullishToOptional(z145.string()),
|
|
4124
|
+
purgeDirectory: nullishToOptional(z145.boolean()),
|
|
4116
4125
|
// Commit metadata
|
|
4117
|
-
commitAuthorName: nullishToOptional(
|
|
4118
|
-
commitAuthorEmail: nullishToOptional(
|
|
4126
|
+
commitAuthorName: nullishToOptional(z145.string()),
|
|
4127
|
+
commitAuthorEmail: nullishToOptional(z145.string()),
|
|
4119
4128
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4120
|
-
connectionId: nullishToOptional(
|
|
4121
|
-
userId: nullishToOptional(
|
|
4129
|
+
connectionId: nullishToOptional(z145.string()),
|
|
4130
|
+
userId: nullishToOptional(z145.number())
|
|
4122
4131
|
});
|
|
4123
|
-
var ExporterDestinationAzure =
|
|
4124
|
-
credentialId:
|
|
4132
|
+
var ExporterDestinationAzure = z145.object({
|
|
4133
|
+
credentialId: z145.string().optional(),
|
|
4125
4134
|
// Repository
|
|
4126
|
-
organizationId:
|
|
4127
|
-
projectId:
|
|
4128
|
-
repositoryId:
|
|
4135
|
+
organizationId: z145.string(),
|
|
4136
|
+
projectId: z145.string(),
|
|
4137
|
+
repositoryId: z145.string(),
|
|
4129
4138
|
// Commit metadata
|
|
4130
|
-
commitAuthorName: nullishToOptional(
|
|
4131
|
-
commitAuthorEmail: nullishToOptional(
|
|
4139
|
+
commitAuthorName: nullishToOptional(z145.string()),
|
|
4140
|
+
commitAuthorEmail: nullishToOptional(z145.string()),
|
|
4132
4141
|
// Location
|
|
4133
|
-
branch:
|
|
4134
|
-
relativePath: nullishToOptional(
|
|
4135
|
-
purgeDirectory: nullishToOptional(
|
|
4142
|
+
branch: z145.string(),
|
|
4143
|
+
relativePath: nullishToOptional(z145.string()),
|
|
4144
|
+
purgeDirectory: nullishToOptional(z145.boolean()),
|
|
4136
4145
|
// Maybe not needed
|
|
4137
|
-
url: nullishToOptional(
|
|
4146
|
+
url: nullishToOptional(z145.string()),
|
|
4138
4147
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4139
|
-
connectionId: nullishToOptional(
|
|
4140
|
-
userId: nullishToOptional(
|
|
4148
|
+
connectionId: nullishToOptional(z145.string()),
|
|
4149
|
+
userId: nullishToOptional(z145.number())
|
|
4141
4150
|
});
|
|
4142
|
-
var ExporterDestinationGitlab =
|
|
4143
|
-
credentialId:
|
|
4151
|
+
var ExporterDestinationGitlab = z145.object({
|
|
4152
|
+
credentialId: z145.string().optional(),
|
|
4144
4153
|
// Repository
|
|
4145
|
-
projectId:
|
|
4154
|
+
projectId: z145.string(),
|
|
4146
4155
|
// Commit metadata
|
|
4147
|
-
commitAuthorName: nullishToOptional(
|
|
4148
|
-
commitAuthorEmail: nullishToOptional(
|
|
4156
|
+
commitAuthorName: nullishToOptional(z145.string()),
|
|
4157
|
+
commitAuthorEmail: nullishToOptional(z145.string()),
|
|
4149
4158
|
// Location
|
|
4150
|
-
branch:
|
|
4151
|
-
relativePath: nullishToOptional(
|
|
4152
|
-
purgeDirectory: nullishToOptional(
|
|
4159
|
+
branch: z145.string(),
|
|
4160
|
+
relativePath: nullishToOptional(z145.string()),
|
|
4161
|
+
purgeDirectory: nullishToOptional(z145.boolean()),
|
|
4153
4162
|
// Maybe not needed
|
|
4154
|
-
url: nullishToOptional(
|
|
4163
|
+
url: nullishToOptional(z145.string()),
|
|
4155
4164
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4156
|
-
connectionId: nullishToOptional(
|
|
4157
|
-
userId: nullishToOptional(
|
|
4165
|
+
connectionId: nullishToOptional(z145.string()),
|
|
4166
|
+
userId: nullishToOptional(z145.number())
|
|
4158
4167
|
});
|
|
4159
|
-
var ExporterDestinationBitbucket =
|
|
4160
|
-
credentialId:
|
|
4168
|
+
var ExporterDestinationBitbucket = z145.object({
|
|
4169
|
+
credentialId: z145.string().optional(),
|
|
4161
4170
|
// Repository
|
|
4162
|
-
workspaceSlug:
|
|
4163
|
-
projectKey:
|
|
4164
|
-
repoSlug:
|
|
4171
|
+
workspaceSlug: z145.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4172
|
+
projectKey: z145.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4173
|
+
repoSlug: z145.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4165
4174
|
// Commit metadata
|
|
4166
|
-
commitAuthorName: nullishToOptional(
|
|
4167
|
-
commitAuthorEmail: nullishToOptional(
|
|
4175
|
+
commitAuthorName: nullishToOptional(z145.string()),
|
|
4176
|
+
commitAuthorEmail: nullishToOptional(z145.string()),
|
|
4168
4177
|
// Location
|
|
4169
|
-
branch:
|
|
4170
|
-
relativePath: nullishToOptional(
|
|
4171
|
-
purgeDirectory: nullishToOptional(
|
|
4178
|
+
branch: z145.string(),
|
|
4179
|
+
relativePath: nullishToOptional(z145.string()),
|
|
4180
|
+
purgeDirectory: nullishToOptional(z145.boolean()),
|
|
4172
4181
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4173
|
-
connectionId: nullishToOptional(
|
|
4174
|
-
userId: nullishToOptional(
|
|
4182
|
+
connectionId: nullishToOptional(z145.string()),
|
|
4183
|
+
userId: nullishToOptional(z145.number())
|
|
4175
4184
|
});
|
|
4176
|
-
var ExportDestinationsMap =
|
|
4177
|
-
webhookUrl:
|
|
4185
|
+
var ExportDestinationsMap = z145.object({
|
|
4186
|
+
webhookUrl: z145.string().optional(),
|
|
4178
4187
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
4179
4188
|
destinationS3: ExporterDestinationS3.optional(),
|
|
4180
4189
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -4182,93 +4191,93 @@ var ExportDestinationsMap = z144.object({
|
|
|
4182
4191
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
4183
4192
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
4184
4193
|
});
|
|
4185
|
-
var PipelineEventType =
|
|
4186
|
-
var PipelineDestinationGitType =
|
|
4187
|
-
var PipelineDestinationExtraType =
|
|
4188
|
-
var PipelineDestinationType =
|
|
4189
|
-
var Pipeline =
|
|
4190
|
-
id:
|
|
4191
|
-
name:
|
|
4194
|
+
var PipelineEventType = z146.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4195
|
+
var PipelineDestinationGitType = z146.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4196
|
+
var PipelineDestinationExtraType = z146.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
4197
|
+
var PipelineDestinationType = z146.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
4198
|
+
var Pipeline = z146.object({
|
|
4199
|
+
id: z146.string(),
|
|
4200
|
+
name: z146.string(),
|
|
4192
4201
|
eventType: PipelineEventType,
|
|
4193
|
-
isEnabled:
|
|
4194
|
-
workspaceId:
|
|
4195
|
-
designSystemId:
|
|
4196
|
-
exporterId:
|
|
4197
|
-
brandPersistentId:
|
|
4198
|
-
themePersistentId:
|
|
4199
|
-
themePersistentIds:
|
|
4202
|
+
isEnabled: z146.boolean(),
|
|
4203
|
+
workspaceId: z146.string(),
|
|
4204
|
+
designSystemId: z146.string(),
|
|
4205
|
+
exporterId: z146.string(),
|
|
4206
|
+
brandPersistentId: z146.string().optional(),
|
|
4207
|
+
themePersistentId: z146.string().optional(),
|
|
4208
|
+
themePersistentIds: z146.string().array().optional(),
|
|
4200
4209
|
// Destinations
|
|
4201
4210
|
...ExportDestinationsMap.shape
|
|
4202
4211
|
});
|
|
4203
|
-
var ExportJobDump =
|
|
4204
|
-
id:
|
|
4205
|
-
createdAt:
|
|
4206
|
-
finishedAt:
|
|
4207
|
-
exportArtefacts:
|
|
4212
|
+
var ExportJobDump = z147.object({
|
|
4213
|
+
id: z147.string(),
|
|
4214
|
+
createdAt: z147.coerce.date(),
|
|
4215
|
+
finishedAt: z147.coerce.date(),
|
|
4216
|
+
exportArtefacts: z147.string()
|
|
4208
4217
|
});
|
|
4209
|
-
var CodeIntegrationDump =
|
|
4218
|
+
var CodeIntegrationDump = z147.object({
|
|
4210
4219
|
exporters: Exporter.array(),
|
|
4211
4220
|
pipelines: Pipeline.array(),
|
|
4212
4221
|
exportJobs: ExportJobDump.array()
|
|
4213
4222
|
});
|
|
4214
4223
|
var DesignSystemVersionRoom = Entity.extend({
|
|
4215
|
-
designSystemVersionId:
|
|
4216
|
-
liveblocksId:
|
|
4217
|
-
});
|
|
4218
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
4219
|
-
routingVersion:
|
|
4220
|
-
isDraftFeatureAdopted:
|
|
4221
|
-
isApprovalFeatureEnabled:
|
|
4222
|
-
approvalRequiredForPublishing:
|
|
4223
|
-
});
|
|
4224
|
-
var DesignSystemVersionRoomInitialState =
|
|
4225
|
-
pages:
|
|
4226
|
-
groups:
|
|
4227
|
-
pageSnapshots:
|
|
4228
|
-
groupSnapshots:
|
|
4229
|
-
pageApprovals:
|
|
4224
|
+
designSystemVersionId: z148.string(),
|
|
4225
|
+
liveblocksId: z148.string()
|
|
4226
|
+
});
|
|
4227
|
+
var DesignSystemVersionRoomInternalSettings = z148.object({
|
|
4228
|
+
routingVersion: z148.string(),
|
|
4229
|
+
isDraftFeatureAdopted: z148.boolean(),
|
|
4230
|
+
isApprovalFeatureEnabled: z148.boolean(),
|
|
4231
|
+
approvalRequiredForPublishing: z148.boolean()
|
|
4232
|
+
});
|
|
4233
|
+
var DesignSystemVersionRoomInitialState = z148.object({
|
|
4234
|
+
pages: z148.array(DocumentationPageV2),
|
|
4235
|
+
groups: z148.array(ElementGroup),
|
|
4236
|
+
pageSnapshots: z148.array(DocumentationPageSnapshot),
|
|
4237
|
+
groupSnapshots: z148.array(ElementGroupSnapshot),
|
|
4238
|
+
pageApprovals: z148.array(DocumentationPageApproval),
|
|
4230
4239
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4231
4240
|
});
|
|
4232
|
-
var DesignSystemVersionRoomUpdate =
|
|
4233
|
-
pages:
|
|
4234
|
-
groups:
|
|
4235
|
-
pageIdsToDelete:
|
|
4236
|
-
groupIdsToDelete:
|
|
4237
|
-
pageSnapshots:
|
|
4238
|
-
groupSnapshots:
|
|
4239
|
-
pageSnapshotIdsToDelete:
|
|
4240
|
-
groupSnapshotIdsToDelete:
|
|
4241
|
-
pageHashesToUpdate:
|
|
4242
|
-
pageApprovals:
|
|
4243
|
-
pageApprovalIdsToDelete:
|
|
4241
|
+
var DesignSystemVersionRoomUpdate = z148.object({
|
|
4242
|
+
pages: z148.array(DocumentationPageV2),
|
|
4243
|
+
groups: z148.array(ElementGroup),
|
|
4244
|
+
pageIdsToDelete: z148.array(z148.string()),
|
|
4245
|
+
groupIdsToDelete: z148.array(z148.string()),
|
|
4246
|
+
pageSnapshots: z148.array(DocumentationPageSnapshot),
|
|
4247
|
+
groupSnapshots: z148.array(ElementGroupSnapshot),
|
|
4248
|
+
pageSnapshotIdsToDelete: z148.array(z148.string()),
|
|
4249
|
+
groupSnapshotIdsToDelete: z148.array(z148.string()),
|
|
4250
|
+
pageHashesToUpdate: z148.record(z148.string(), z148.string()),
|
|
4251
|
+
pageApprovals: z148.array(DocumentationPageApproval),
|
|
4252
|
+
pageApprovalIdsToDelete: z148.array(z148.string())
|
|
4244
4253
|
});
|
|
4245
4254
|
var DocumentationPageRoom = Entity.extend({
|
|
4246
|
-
designSystemVersionId:
|
|
4247
|
-
documentationPageId:
|
|
4248
|
-
liveblocksId:
|
|
4249
|
-
isDirty:
|
|
4255
|
+
designSystemVersionId: z149.string(),
|
|
4256
|
+
documentationPageId: z149.string(),
|
|
4257
|
+
liveblocksId: z149.string(),
|
|
4258
|
+
isDirty: z149.boolean()
|
|
4250
4259
|
});
|
|
4251
|
-
var DocumentationPageRoomState =
|
|
4252
|
-
pageItems:
|
|
4260
|
+
var DocumentationPageRoomState = z149.object({
|
|
4261
|
+
pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4253
4262
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
4254
4263
|
});
|
|
4255
|
-
var DocumentationPageRoomRoomUpdate =
|
|
4264
|
+
var DocumentationPageRoomRoomUpdate = z149.object({
|
|
4256
4265
|
page: DocumentationPageV2,
|
|
4257
4266
|
pageParent: ElementGroup
|
|
4258
4267
|
});
|
|
4259
4268
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
4260
|
-
pageItems:
|
|
4261
|
-
blockDefinitions:
|
|
4269
|
+
pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4270
|
+
blockDefinitions: z149.array(PageBlockDefinition)
|
|
4262
4271
|
});
|
|
4263
|
-
var RestoredDocumentationPage =
|
|
4272
|
+
var RestoredDocumentationPage = z149.object({
|
|
4264
4273
|
page: DocumentationPageV2,
|
|
4265
4274
|
pageParent: ElementGroup,
|
|
4266
4275
|
pageContent: DocumentationPageContentData,
|
|
4267
|
-
contentHash:
|
|
4268
|
-
snapshotId:
|
|
4269
|
-
roomId:
|
|
4276
|
+
contentHash: z149.string(),
|
|
4277
|
+
snapshotId: z149.string(),
|
|
4278
|
+
roomId: z149.string().optional()
|
|
4270
4279
|
});
|
|
4271
|
-
var RestoredDocumentationGroup =
|
|
4280
|
+
var RestoredDocumentationGroup = z149.object({
|
|
4272
4281
|
group: ElementGroup,
|
|
4273
4282
|
parent: ElementGroup
|
|
4274
4283
|
});
|
|
@@ -4278,28 +4287,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
4278
4287
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4279
4288
|
return RoomTypeEnum2;
|
|
4280
4289
|
})(RoomTypeEnum || {});
|
|
4281
|
-
var RoomTypeSchema =
|
|
4290
|
+
var RoomTypeSchema = z150.nativeEnum(RoomTypeEnum);
|
|
4282
4291
|
var RoomType = RoomTypeSchema.enum;
|
|
4283
4292
|
var WorkspaceRoom = Entity.extend({
|
|
4284
|
-
workspaceId:
|
|
4285
|
-
liveblocksId:
|
|
4293
|
+
workspaceId: z151.string(),
|
|
4294
|
+
liveblocksId: z151.string()
|
|
4286
4295
|
});
|
|
4287
|
-
var PublishedDocsDump =
|
|
4296
|
+
var PublishedDocsDump = z152.object({
|
|
4288
4297
|
documentation: PublishedDoc,
|
|
4289
4298
|
pages: PublishedDocPage.array()
|
|
4290
4299
|
});
|
|
4291
|
-
var DocumentationThreadDump =
|
|
4300
|
+
var DocumentationThreadDump = z153.object({
|
|
4292
4301
|
thread: DocumentationCommentThread,
|
|
4293
4302
|
comments: DocumentationComment.array()
|
|
4294
4303
|
});
|
|
4295
|
-
var DocumentationPageRoomDump =
|
|
4304
|
+
var DocumentationPageRoomDump = z153.object({
|
|
4296
4305
|
room: DocumentationPageRoom,
|
|
4297
4306
|
threads: DocumentationThreadDump.array()
|
|
4298
4307
|
});
|
|
4299
|
-
var DesignSystemVersionMultiplayerDump =
|
|
4308
|
+
var DesignSystemVersionMultiplayerDump = z153.object({
|
|
4300
4309
|
documentationPages: DocumentationPageRoomDump.array()
|
|
4301
4310
|
});
|
|
4302
|
-
var DesignSystemVersionDump =
|
|
4311
|
+
var DesignSystemVersionDump = z153.object({
|
|
4303
4312
|
version: DesignSystemVersion,
|
|
4304
4313
|
brands: Brand.array(),
|
|
4305
4314
|
elements: DesignElement.array(),
|
|
@@ -4312,50 +4321,50 @@ var DesignSystemVersionDump = z152.object({
|
|
|
4312
4321
|
publishedDocumentations: PublishedDocsDump.array(),
|
|
4313
4322
|
assetReferences: AssetReference.array()
|
|
4314
4323
|
});
|
|
4315
|
-
var DesignSystemDump =
|
|
4324
|
+
var DesignSystemDump = z154.object({
|
|
4316
4325
|
designSystem: DesignSystem,
|
|
4317
4326
|
dataSources: DataSource.array(),
|
|
4318
4327
|
versions: DesignSystemVersionDump.array(),
|
|
4319
4328
|
customDomain: CustomDomain.optional(),
|
|
4320
4329
|
files: Asset.array()
|
|
4321
4330
|
});
|
|
4322
|
-
var IntegrationDesignSystem =
|
|
4323
|
-
designSystemId:
|
|
4324
|
-
brandId:
|
|
4325
|
-
title:
|
|
4326
|
-
userId:
|
|
4327
|
-
date:
|
|
4328
|
-
});
|
|
4329
|
-
var IntegrationCredentialsType =
|
|
4330
|
-
var IntegrationCredentialsState =
|
|
4331
|
-
var IntegrationCredentialsProfile =
|
|
4332
|
-
id: nullishToOptional(
|
|
4333
|
-
email: nullishToOptional(
|
|
4334
|
-
handle: nullishToOptional(
|
|
4335
|
-
type: nullishToOptional(
|
|
4336
|
-
avatarUrl: nullishToOptional(
|
|
4337
|
-
organization: nullishToOptional(
|
|
4338
|
-
collection: nullishToOptional(
|
|
4339
|
-
});
|
|
4340
|
-
var IntegrationCredentials =
|
|
4341
|
-
id:
|
|
4331
|
+
var IntegrationDesignSystem = z155.object({
|
|
4332
|
+
designSystemId: z155.string(),
|
|
4333
|
+
brandId: z155.string(),
|
|
4334
|
+
title: z155.string().optional(),
|
|
4335
|
+
userId: z155.string().optional(),
|
|
4336
|
+
date: z155.coerce.date().optional()
|
|
4337
|
+
});
|
|
4338
|
+
var IntegrationCredentialsType = z155.enum(["OAuth2", "PAT"]);
|
|
4339
|
+
var IntegrationCredentialsState = z155.enum(["Active", "Inactive"]);
|
|
4340
|
+
var IntegrationCredentialsProfile = z155.object({
|
|
4341
|
+
id: nullishToOptional(z155.string()),
|
|
4342
|
+
email: nullishToOptional(z155.string()),
|
|
4343
|
+
handle: nullishToOptional(z155.string()),
|
|
4344
|
+
type: nullishToOptional(z155.string()),
|
|
4345
|
+
avatarUrl: nullishToOptional(z155.string()),
|
|
4346
|
+
organization: nullishToOptional(z155.string()),
|
|
4347
|
+
collection: nullishToOptional(z155.string())
|
|
4348
|
+
});
|
|
4349
|
+
var IntegrationCredentials = z155.object({
|
|
4350
|
+
id: z155.string(),
|
|
4342
4351
|
type: IntegrationCredentialsType,
|
|
4343
|
-
integrationId:
|
|
4344
|
-
accessToken:
|
|
4345
|
-
userId:
|
|
4346
|
-
createdAt:
|
|
4347
|
-
refreshToken:
|
|
4348
|
-
tokenName:
|
|
4349
|
-
expiresAt:
|
|
4350
|
-
refreshedAt:
|
|
4351
|
-
username:
|
|
4352
|
-
appInstallationId:
|
|
4352
|
+
integrationId: z155.string(),
|
|
4353
|
+
accessToken: z155.string(),
|
|
4354
|
+
userId: z155.string(),
|
|
4355
|
+
createdAt: z155.coerce.date(),
|
|
4356
|
+
refreshToken: z155.string().optional(),
|
|
4357
|
+
tokenName: z155.string().optional(),
|
|
4358
|
+
expiresAt: z155.coerce.date().optional(),
|
|
4359
|
+
refreshedAt: z155.coerce.date().optional(),
|
|
4360
|
+
username: z155.string().optional(),
|
|
4361
|
+
appInstallationId: z155.string().optional(),
|
|
4353
4362
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4354
|
-
customUrl:
|
|
4363
|
+
customUrl: z155.string().optional(),
|
|
4355
4364
|
state: IntegrationCredentialsState,
|
|
4356
4365
|
user: UserMinified.optional()
|
|
4357
4366
|
});
|
|
4358
|
-
var ExtendedIntegrationType =
|
|
4367
|
+
var ExtendedIntegrationType = z155.enum([
|
|
4359
4368
|
"Figma",
|
|
4360
4369
|
"Github",
|
|
4361
4370
|
"Gitlab",
|
|
@@ -4366,26 +4375,26 @@ var ExtendedIntegrationType = z154.enum([
|
|
|
4366
4375
|
]);
|
|
4367
4376
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4368
4377
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4369
|
-
var Integration =
|
|
4370
|
-
id:
|
|
4371
|
-
workspaceId:
|
|
4378
|
+
var Integration = z155.object({
|
|
4379
|
+
id: z155.string(),
|
|
4380
|
+
workspaceId: z155.string(),
|
|
4372
4381
|
type: IntegrationType,
|
|
4373
|
-
createdAt:
|
|
4374
|
-
integrationCredentials:
|
|
4375
|
-
});
|
|
4376
|
-
var IntegrationToken =
|
|
4377
|
-
access_token:
|
|
4378
|
-
refresh_token:
|
|
4379
|
-
expires_in:
|
|
4380
|
-
token_type:
|
|
4381
|
-
token_name:
|
|
4382
|
-
token_azure_organization_name:
|
|
4382
|
+
createdAt: z155.coerce.date(),
|
|
4383
|
+
integrationCredentials: z155.array(IntegrationCredentials).optional()
|
|
4384
|
+
});
|
|
4385
|
+
var IntegrationToken = z155.object({
|
|
4386
|
+
access_token: z155.string(),
|
|
4387
|
+
refresh_token: z155.string().optional(),
|
|
4388
|
+
expires_in: z155.union([z155.number().optional(), z155.string().optional()]),
|
|
4389
|
+
token_type: z155.string().optional(),
|
|
4390
|
+
token_name: z155.string().optional(),
|
|
4391
|
+
token_azure_organization_name: z155.string().optional(),
|
|
4383
4392
|
// Azure Cloud PAT only
|
|
4384
|
-
token_azure_collection_name:
|
|
4393
|
+
token_azure_collection_name: z155.string().optional(),
|
|
4385
4394
|
// Azure Server PAT only
|
|
4386
|
-
token_bitbucket_username:
|
|
4395
|
+
token_bitbucket_username: z155.string().optional(),
|
|
4387
4396
|
// Bitbucket only
|
|
4388
|
-
custom_url:
|
|
4397
|
+
custom_url: z155.string().optional().transform((value) => {
|
|
4389
4398
|
if (!value?.trim())
|
|
4390
4399
|
return void 0;
|
|
4391
4400
|
return formatCustomUrl(value);
|
|
@@ -4421,98 +4430,98 @@ function formatCustomUrl(url) {
|
|
|
4421
4430
|
}
|
|
4422
4431
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4423
4432
|
}
|
|
4424
|
-
var WorkspaceDump =
|
|
4433
|
+
var WorkspaceDump = z156.object({
|
|
4425
4434
|
workspace: Workspace,
|
|
4426
4435
|
designSystems: DesignSystemDump.array(),
|
|
4427
4436
|
codeIntegration: CodeIntegrationDump,
|
|
4428
4437
|
integrations: Integration.array()
|
|
4429
4438
|
});
|
|
4430
|
-
var UserDump =
|
|
4439
|
+
var UserDump = z157.object({
|
|
4431
4440
|
user: User,
|
|
4432
4441
|
workspaces: WorkspaceDump.array()
|
|
4433
4442
|
});
|
|
4434
|
-
var NpmProxyToken =
|
|
4435
|
-
access:
|
|
4436
|
-
expiresAt:
|
|
4443
|
+
var NpmProxyToken = z158.object({
|
|
4444
|
+
access: z158.string(),
|
|
4445
|
+
expiresAt: z158.number()
|
|
4437
4446
|
});
|
|
4438
|
-
var SessionData =
|
|
4439
|
-
returnToUrl:
|
|
4447
|
+
var SessionData = z158.object({
|
|
4448
|
+
returnToUrl: z158.string().optional(),
|
|
4440
4449
|
npmProxyToken: NpmProxyToken.optional()
|
|
4441
4450
|
});
|
|
4442
|
-
var Session =
|
|
4443
|
-
id:
|
|
4444
|
-
expiresAt:
|
|
4445
|
-
userId:
|
|
4451
|
+
var Session = z158.object({
|
|
4452
|
+
id: z158.string(),
|
|
4453
|
+
expiresAt: z158.coerce.date(),
|
|
4454
|
+
userId: z158.string().nullable(),
|
|
4446
4455
|
data: SessionData
|
|
4447
4456
|
});
|
|
4448
|
-
var AuthTokens =
|
|
4449
|
-
access:
|
|
4450
|
-
refresh:
|
|
4457
|
+
var AuthTokens = z158.object({
|
|
4458
|
+
access: z158.string(),
|
|
4459
|
+
refresh: z158.string()
|
|
4451
4460
|
});
|
|
4452
|
-
var UserSession =
|
|
4461
|
+
var UserSession = z158.object({
|
|
4453
4462
|
session: Session,
|
|
4454
4463
|
user: User.nullable()
|
|
4455
4464
|
});
|
|
4456
|
-
var DesignSystemInviteEmailRecipient =
|
|
4457
|
-
email:
|
|
4465
|
+
var DesignSystemInviteEmailRecipient = z159.object({
|
|
4466
|
+
email: z159.string(),
|
|
4458
4467
|
role: WorkspaceRoleSchema
|
|
4459
4468
|
});
|
|
4460
|
-
var DesignSystemInviteEmailData =
|
|
4469
|
+
var DesignSystemInviteEmailData = z159.object({
|
|
4461
4470
|
workspace: Workspace,
|
|
4462
4471
|
designSystem: DesignSystem,
|
|
4463
4472
|
invitedBy: User,
|
|
4464
|
-
documentationDomain:
|
|
4473
|
+
documentationDomain: z159.string().optional()
|
|
4465
4474
|
});
|
|
4466
|
-
var WorkspaceInviteEmailRecipient =
|
|
4467
|
-
email:
|
|
4475
|
+
var WorkspaceInviteEmailRecipient = z160.object({
|
|
4476
|
+
email: z160.string(),
|
|
4468
4477
|
role: WorkspaceRoleSchema
|
|
4469
4478
|
});
|
|
4470
|
-
var WorkspaceInviteEmailData =
|
|
4479
|
+
var WorkspaceInviteEmailData = z160.object({
|
|
4471
4480
|
workspace: Workspace,
|
|
4472
4481
|
invitedBy: User,
|
|
4473
|
-
documentationDomain:
|
|
4474
|
-
});
|
|
4475
|
-
var EventDataSourceImported = z160.object({
|
|
4476
|
-
type: z160.literal("DataSourceImported"),
|
|
4477
|
-
workspaceId: z160.string(),
|
|
4478
|
-
designSystemId: z160.string()
|
|
4482
|
+
documentationDomain: z160.string().optional()
|
|
4479
4483
|
});
|
|
4480
|
-
var
|
|
4481
|
-
type: z161.literal("
|
|
4484
|
+
var EventDataSourceImported = z161.object({
|
|
4485
|
+
type: z161.literal("DataSourceImported"),
|
|
4482
4486
|
workspaceId: z161.string(),
|
|
4483
|
-
designSystemId: z161.string()
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4487
|
+
designSystemId: z161.string()
|
|
4488
|
+
});
|
|
4489
|
+
var EventVersionReleased = z162.object({
|
|
4490
|
+
type: z162.literal("DesignSystemVersionReleased"),
|
|
4491
|
+
workspaceId: z162.string(),
|
|
4492
|
+
designSystemId: z162.string(),
|
|
4493
|
+
versionId: z162.string()
|
|
4494
|
+
});
|
|
4495
|
+
var Event = z163.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4496
|
+
var ExportJobDocumentationContext = z164.object({
|
|
4497
|
+
isSingleVersionDocs: z164.boolean(),
|
|
4498
|
+
versionSlug: z164.string(),
|
|
4490
4499
|
environment: PublishedDocEnvironment
|
|
4491
4500
|
});
|
|
4492
|
-
var ExportJobContext =
|
|
4493
|
-
apiUrl:
|
|
4494
|
-
accessToken:
|
|
4495
|
-
designSystemId:
|
|
4496
|
-
designSystemName:
|
|
4497
|
-
exporterId:
|
|
4498
|
-
versionId:
|
|
4499
|
-
brandId:
|
|
4500
|
-
themeId:
|
|
4501
|
-
themePersistentIds:
|
|
4502
|
-
exporterName:
|
|
4501
|
+
var ExportJobContext = z164.object({
|
|
4502
|
+
apiUrl: z164.string(),
|
|
4503
|
+
accessToken: z164.string(),
|
|
4504
|
+
designSystemId: z164.string(),
|
|
4505
|
+
designSystemName: z164.string(),
|
|
4506
|
+
exporterId: z164.string(),
|
|
4507
|
+
versionId: z164.string(),
|
|
4508
|
+
brandId: z164.string().optional(),
|
|
4509
|
+
themeId: z164.string().optional(),
|
|
4510
|
+
themePersistentIds: z164.string().array().optional(),
|
|
4511
|
+
exporterName: z164.string(),
|
|
4503
4512
|
documentation: ExportJobDocumentationContext.optional()
|
|
4504
4513
|
});
|
|
4505
|
-
var ExportJobExporterConfiguration =
|
|
4506
|
-
exporterPackageUrl:
|
|
4514
|
+
var ExportJobExporterConfiguration = z164.object({
|
|
4515
|
+
exporterPackageUrl: z164.string(),
|
|
4507
4516
|
exporterPropertyValues: ExporterPropertyValue.array()
|
|
4508
4517
|
});
|
|
4509
|
-
var ExporterFunctionPayload =
|
|
4510
|
-
exportJobId:
|
|
4511
|
-
exportContextId:
|
|
4512
|
-
designSystemId:
|
|
4513
|
-
workspaceId:
|
|
4518
|
+
var ExporterFunctionPayload = z165.object({
|
|
4519
|
+
exportJobId: z165.string(),
|
|
4520
|
+
exportContextId: z165.string(),
|
|
4521
|
+
designSystemId: z165.string(),
|
|
4522
|
+
workspaceId: z165.string()
|
|
4514
4523
|
});
|
|
4515
|
-
var ExportJobDestinationType =
|
|
4524
|
+
var ExportJobDestinationType = z166.enum([
|
|
4516
4525
|
"s3",
|
|
4517
4526
|
"webhookUrl",
|
|
4518
4527
|
"github",
|
|
@@ -4521,30 +4530,30 @@ var ExportJobDestinationType = z165.enum([
|
|
|
4521
4530
|
"gitlab",
|
|
4522
4531
|
"bitbucket"
|
|
4523
4532
|
]);
|
|
4524
|
-
var ExportJobStatus =
|
|
4525
|
-
var ExportJobLogEntryType =
|
|
4526
|
-
var ExportJobLogEntry =
|
|
4527
|
-
id:
|
|
4528
|
-
time:
|
|
4533
|
+
var ExportJobStatus = z166.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4534
|
+
var ExportJobLogEntryType = z166.enum(["success", "info", "warning", "error", "user"]);
|
|
4535
|
+
var ExportJobLogEntry = z166.object({
|
|
4536
|
+
id: z166.string().optional(),
|
|
4537
|
+
time: z166.coerce.date(),
|
|
4529
4538
|
type: ExportJobLogEntryType,
|
|
4530
|
-
message:
|
|
4539
|
+
message: z166.string()
|
|
4531
4540
|
});
|
|
4532
|
-
var ExportJobPullRequestDestinationResult =
|
|
4533
|
-
pullRequestUrl:
|
|
4541
|
+
var ExportJobPullRequestDestinationResult = z166.object({
|
|
4542
|
+
pullRequestUrl: z166.string()
|
|
4534
4543
|
});
|
|
4535
|
-
var ExportJobS3DestinationResult =
|
|
4536
|
-
bucket:
|
|
4537
|
-
urlPrefix:
|
|
4538
|
-
path:
|
|
4539
|
-
files:
|
|
4540
|
-
url: nullishToOptional(
|
|
4541
|
-
urls: nullishToOptional(
|
|
4544
|
+
var ExportJobS3DestinationResult = z166.object({
|
|
4545
|
+
bucket: z166.string(),
|
|
4546
|
+
urlPrefix: z166.string().optional(),
|
|
4547
|
+
path: z166.string(),
|
|
4548
|
+
files: z166.array(z166.string()),
|
|
4549
|
+
url: nullishToOptional(z166.string()),
|
|
4550
|
+
urls: nullishToOptional(z166.string().array())
|
|
4542
4551
|
});
|
|
4543
|
-
var ExportJobDocsDestinationResult =
|
|
4544
|
-
url:
|
|
4552
|
+
var ExportJobDocsDestinationResult = z166.object({
|
|
4553
|
+
url: z166.string()
|
|
4545
4554
|
});
|
|
4546
|
-
var ExportJobResult =
|
|
4547
|
-
error:
|
|
4555
|
+
var ExportJobResult = z166.object({
|
|
4556
|
+
error: z166.string().optional(),
|
|
4548
4557
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4549
4558
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4550
4559
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4553,22 +4562,22 @@ var ExportJobResult = z165.object({
|
|
|
4553
4562
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4554
4563
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4555
4564
|
});
|
|
4556
|
-
var ExportJob =
|
|
4557
|
-
id:
|
|
4558
|
-
createdAt:
|
|
4559
|
-
finishedAt:
|
|
4560
|
-
designSystemId:
|
|
4561
|
-
designSystemVersionId:
|
|
4562
|
-
workspaceId:
|
|
4563
|
-
scheduleId:
|
|
4564
|
-
exporterId:
|
|
4565
|
-
brandId:
|
|
4566
|
-
themeId:
|
|
4567
|
-
themePersistentIds:
|
|
4568
|
-
estimatedExecutionTime:
|
|
4565
|
+
var ExportJob = z166.object({
|
|
4566
|
+
id: z166.string(),
|
|
4567
|
+
createdAt: z166.coerce.date(),
|
|
4568
|
+
finishedAt: z166.coerce.date().optional(),
|
|
4569
|
+
designSystemId: z166.string(),
|
|
4570
|
+
designSystemVersionId: z166.string(),
|
|
4571
|
+
workspaceId: z166.string(),
|
|
4572
|
+
scheduleId: z166.string().nullish(),
|
|
4573
|
+
exporterId: z166.string(),
|
|
4574
|
+
brandId: z166.string().optional(),
|
|
4575
|
+
themeId: z166.string().optional(),
|
|
4576
|
+
themePersistentIds: z166.string().array().optional(),
|
|
4577
|
+
estimatedExecutionTime: z166.number().optional(),
|
|
4569
4578
|
status: ExportJobStatus,
|
|
4570
4579
|
result: ExportJobResult.optional(),
|
|
4571
|
-
createdByUserId:
|
|
4580
|
+
createdByUserId: z166.string().optional(),
|
|
4572
4581
|
// Destinations
|
|
4573
4582
|
...ExportDestinationsMap.shape
|
|
4574
4583
|
});
|
|
@@ -4582,30 +4591,30 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4582
4591
|
themeId: true,
|
|
4583
4592
|
brandId: true
|
|
4584
4593
|
}).extend({
|
|
4585
|
-
destinations:
|
|
4594
|
+
destinations: z166.array(ExportJobDestinationType),
|
|
4586
4595
|
docsEnvironment: PublishedDocEnvironment
|
|
4587
4596
|
}).partial();
|
|
4588
|
-
var ExporterWorkspaceMembershipRole =
|
|
4589
|
-
var ExporterWorkspaceMembership =
|
|
4590
|
-
id:
|
|
4591
|
-
workspaceId:
|
|
4592
|
-
exporterId:
|
|
4597
|
+
var ExporterWorkspaceMembershipRole = z167.enum(["Owner", "OwnerArchived", "User"]);
|
|
4598
|
+
var ExporterWorkspaceMembership = z168.object({
|
|
4599
|
+
id: z168.string(),
|
|
4600
|
+
workspaceId: z168.string(),
|
|
4601
|
+
exporterId: z168.string(),
|
|
4593
4602
|
role: ExporterWorkspaceMembershipRole
|
|
4594
4603
|
});
|
|
4595
|
-
var FlaggedFeature =
|
|
4604
|
+
var FlaggedFeature = z169.enum([
|
|
4596
4605
|
"FigmaImporterV2",
|
|
4597
4606
|
"ShadowOpacityOptional",
|
|
4598
4607
|
"DisableImporter",
|
|
4599
4608
|
"VariablesOrder",
|
|
4600
4609
|
"TypographyPropsKeepAliases"
|
|
4601
4610
|
]);
|
|
4602
|
-
var FeatureFlagMap =
|
|
4603
|
-
var FeatureFlag =
|
|
4604
|
-
id:
|
|
4611
|
+
var FeatureFlagMap = z169.record(FlaggedFeature, z169.boolean());
|
|
4612
|
+
var FeatureFlag = z169.object({
|
|
4613
|
+
id: z169.string(),
|
|
4605
4614
|
feature: FlaggedFeature,
|
|
4606
|
-
createdAt:
|
|
4607
|
-
enabled:
|
|
4608
|
-
designSystemId:
|
|
4615
|
+
createdAt: z169.coerce.date(),
|
|
4616
|
+
enabled: z169.boolean(),
|
|
4617
|
+
designSystemId: z169.string().optional()
|
|
4609
4618
|
});
|
|
4610
4619
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4611
4620
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -4615,108 +4624,108 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4615
4624
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4616
4625
|
return OAuthProviderNames2;
|
|
4617
4626
|
})(OAuthProviderNames || {});
|
|
4618
|
-
var OAuthProviderSchema =
|
|
4627
|
+
var OAuthProviderSchema = z170.nativeEnum(OAuthProviderNames);
|
|
4619
4628
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4620
|
-
var ExternalOAuthRequest =
|
|
4621
|
-
id:
|
|
4629
|
+
var ExternalOAuthRequest = z171.object({
|
|
4630
|
+
id: z171.string(),
|
|
4622
4631
|
provider: OAuthProviderSchema,
|
|
4623
|
-
userId:
|
|
4624
|
-
state:
|
|
4625
|
-
createdAt:
|
|
4632
|
+
userId: z171.string(),
|
|
4633
|
+
state: z171.string(),
|
|
4634
|
+
createdAt: z171.coerce.date()
|
|
4626
4635
|
});
|
|
4627
|
-
var GitObjectsQuery =
|
|
4628
|
-
organization:
|
|
4636
|
+
var GitObjectsQuery = z172.object({
|
|
4637
|
+
organization: z172.string().optional(),
|
|
4629
4638
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4630
|
-
project:
|
|
4639
|
+
project: z172.string().optional(),
|
|
4631
4640
|
// Only for Bitbucket and Azure
|
|
4632
|
-
repository:
|
|
4641
|
+
repository: z172.string().optional(),
|
|
4633
4642
|
// For all providers. For Gitlab, it's called "project".
|
|
4634
|
-
branch:
|
|
4643
|
+
branch: z172.string().optional(),
|
|
4635
4644
|
// For all providers.
|
|
4636
|
-
user:
|
|
4645
|
+
user: z172.string().optional()
|
|
4637
4646
|
// Gitlab user
|
|
4638
4647
|
});
|
|
4639
|
-
var GitOrganization =
|
|
4640
|
-
id:
|
|
4641
|
-
name:
|
|
4642
|
-
url:
|
|
4643
|
-
slug:
|
|
4648
|
+
var GitOrganization = z172.object({
|
|
4649
|
+
id: z172.string(),
|
|
4650
|
+
name: z172.string(),
|
|
4651
|
+
url: z172.string(),
|
|
4652
|
+
slug: z172.string()
|
|
4644
4653
|
});
|
|
4645
|
-
var GitProject =
|
|
4646
|
-
id:
|
|
4647
|
-
name:
|
|
4648
|
-
url:
|
|
4649
|
-
slug:
|
|
4654
|
+
var GitProject = z172.object({
|
|
4655
|
+
id: z172.string(),
|
|
4656
|
+
name: z172.string(),
|
|
4657
|
+
url: z172.string(),
|
|
4658
|
+
slug: z172.string()
|
|
4650
4659
|
});
|
|
4651
|
-
var GitRepository =
|
|
4652
|
-
id:
|
|
4653
|
-
name:
|
|
4654
|
-
url:
|
|
4655
|
-
slug:
|
|
4660
|
+
var GitRepository = z172.object({
|
|
4661
|
+
id: z172.string(),
|
|
4662
|
+
name: z172.string(),
|
|
4663
|
+
url: z172.string(),
|
|
4664
|
+
slug: z172.string(),
|
|
4656
4665
|
/**
|
|
4657
4666
|
* Can be undefined when:
|
|
4658
4667
|
* - there are no branches in the repository yet
|
|
4659
4668
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4660
4669
|
*/
|
|
4661
|
-
defaultBranch:
|
|
4670
|
+
defaultBranch: z172.string().optional()
|
|
4662
4671
|
});
|
|
4663
|
-
var GitBranch =
|
|
4664
|
-
name:
|
|
4665
|
-
lastCommitId:
|
|
4672
|
+
var GitBranch = z172.object({
|
|
4673
|
+
name: z172.string(),
|
|
4674
|
+
lastCommitId: z172.string()
|
|
4666
4675
|
});
|
|
4667
|
-
var IntegrationTokenSchemaOld =
|
|
4668
|
-
id: z172.string(),
|
|
4669
|
-
provider: OAuthProviderSchema,
|
|
4670
|
-
scope: z172.string(),
|
|
4671
|
-
userId: z172.string(),
|
|
4672
|
-
accessToken: z172.string(),
|
|
4673
|
-
refreshToken: z172.string(),
|
|
4674
|
-
expiresAt: z172.coerce.date(),
|
|
4675
|
-
externalUserId: z172.string().nullish()
|
|
4676
|
-
});
|
|
4677
|
-
var WorkspaceOAuthRequestSchema = z173.object({
|
|
4676
|
+
var IntegrationTokenSchemaOld = z173.object({
|
|
4678
4677
|
id: z173.string(),
|
|
4679
|
-
workspaceId: z173.string(),
|
|
4680
4678
|
provider: OAuthProviderSchema,
|
|
4679
|
+
scope: z173.string(),
|
|
4681
4680
|
userId: z173.string(),
|
|
4682
|
-
|
|
4681
|
+
accessToken: z173.string(),
|
|
4682
|
+
refreshToken: z173.string(),
|
|
4683
|
+
expiresAt: z173.coerce.date(),
|
|
4684
|
+
externalUserId: z173.string().nullish()
|
|
4685
|
+
});
|
|
4686
|
+
var WorkspaceOAuthRequestSchema = z174.object({
|
|
4687
|
+
id: z174.string(),
|
|
4688
|
+
workspaceId: z174.string(),
|
|
4689
|
+
provider: OAuthProviderSchema,
|
|
4690
|
+
userId: z174.string(),
|
|
4691
|
+
createdAt: z174.coerce.date()
|
|
4683
4692
|
});
|
|
4684
|
-
var AnyRecord =
|
|
4693
|
+
var AnyRecord = z175.record(z175.any());
|
|
4685
4694
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4686
|
-
|
|
4687
|
-
tarball:
|
|
4695
|
+
z175.object({
|
|
4696
|
+
tarball: z175.string()
|
|
4688
4697
|
})
|
|
4689
4698
|
);
|
|
4690
4699
|
var NpmPackageVersion = AnyRecord.and(
|
|
4691
|
-
|
|
4700
|
+
z175.object({
|
|
4692
4701
|
dist: NpmPackageVersionDist
|
|
4693
4702
|
})
|
|
4694
4703
|
);
|
|
4695
4704
|
var NpmPackage = AnyRecord.and(
|
|
4696
|
-
|
|
4697
|
-
_id:
|
|
4698
|
-
name:
|
|
4705
|
+
z175.object({
|
|
4706
|
+
_id: z175.string(),
|
|
4707
|
+
name: z175.string(),
|
|
4699
4708
|
// e.g. "latest": "1.2.3"
|
|
4700
|
-
"dist-tags":
|
|
4709
|
+
"dist-tags": z175.record(z175.string(), z175.string()),
|
|
4701
4710
|
// "1.2.3": {...}
|
|
4702
|
-
versions:
|
|
4711
|
+
versions: z175.record(NpmPackageVersion)
|
|
4703
4712
|
})
|
|
4704
4713
|
);
|
|
4705
|
-
var NpmProxyTokenPayload =
|
|
4706
|
-
npmProxyRegistryConfigId:
|
|
4707
|
-
});
|
|
4708
|
-
var PersonalAccessToken =
|
|
4709
|
-
id:
|
|
4710
|
-
userId:
|
|
4711
|
-
workspaceId:
|
|
4712
|
-
designSystemId:
|
|
4714
|
+
var NpmProxyTokenPayload = z176.object({
|
|
4715
|
+
npmProxyRegistryConfigId: z176.string()
|
|
4716
|
+
});
|
|
4717
|
+
var PersonalAccessToken = z177.object({
|
|
4718
|
+
id: z177.string(),
|
|
4719
|
+
userId: z177.string(),
|
|
4720
|
+
workspaceId: z177.string().optional(),
|
|
4721
|
+
designSystemId: z177.string().optional(),
|
|
4713
4722
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
4714
|
-
name:
|
|
4715
|
-
hidden:
|
|
4716
|
-
token:
|
|
4717
|
-
scope:
|
|
4718
|
-
createdAt:
|
|
4719
|
-
expireAt:
|
|
4723
|
+
name: z177.string(),
|
|
4724
|
+
hidden: z177.boolean(),
|
|
4725
|
+
token: z177.string(),
|
|
4726
|
+
scope: z177.string().optional(),
|
|
4727
|
+
createdAt: z177.coerce.date(),
|
|
4728
|
+
expireAt: z177.coerce.date().optional()
|
|
4720
4729
|
});
|
|
4721
4730
|
|
|
4722
4731
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
@@ -5133,93 +5142,93 @@ function integrationCredentialToDto(credential) {
|
|
|
5133
5142
|
}
|
|
5134
5143
|
|
|
5135
5144
|
// src/api/dto/aux/color.ts
|
|
5136
|
-
import { z as
|
|
5137
|
-
var DTOColorTokenInlineData =
|
|
5138
|
-
value:
|
|
5145
|
+
import { z as z178 } from "zod";
|
|
5146
|
+
var DTOColorTokenInlineData = z178.object({
|
|
5147
|
+
value: z178.string().regex(/^#[a-f0-9]{6,8}$/)
|
|
5139
5148
|
});
|
|
5140
5149
|
|
|
5141
5150
|
// src/api/dto/aux/meta.ts
|
|
5142
|
-
import { z as
|
|
5143
|
-
var DTOObjectMeta =
|
|
5144
|
-
name:
|
|
5145
|
-
description:
|
|
5151
|
+
import { z as z179 } from "zod";
|
|
5152
|
+
var DTOObjectMeta = z179.object({
|
|
5153
|
+
name: z179.string().max(512),
|
|
5154
|
+
description: z179.string().max(2048).optional()
|
|
5146
5155
|
});
|
|
5147
5156
|
|
|
5148
5157
|
// src/api/dto/aux/pagination.ts
|
|
5149
|
-
import { z as
|
|
5150
|
-
var DTOPagination =
|
|
5151
|
-
limit:
|
|
5152
|
-
offset:
|
|
5158
|
+
import { z as z180 } from "zod";
|
|
5159
|
+
var DTOPagination = z180.object({
|
|
5160
|
+
limit: z180.string().optional(),
|
|
5161
|
+
offset: z180.string().optional()
|
|
5153
5162
|
});
|
|
5154
5163
|
|
|
5155
5164
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5156
|
-
import { z as
|
|
5165
|
+
import { z as z214 } from "zod";
|
|
5157
5166
|
|
|
5158
5167
|
// src/api/dto/design-systems/brand.ts
|
|
5159
|
-
import { z as
|
|
5160
|
-
var DTOBrand =
|
|
5161
|
-
id:
|
|
5162
|
-
designSystemVersionId:
|
|
5163
|
-
persistentId:
|
|
5168
|
+
import { z as z181 } from "zod";
|
|
5169
|
+
var DTOBrand = z181.object({
|
|
5170
|
+
id: z181.string(),
|
|
5171
|
+
designSystemVersionId: z181.string(),
|
|
5172
|
+
persistentId: z181.string(),
|
|
5164
5173
|
meta: ObjectMeta
|
|
5165
5174
|
});
|
|
5166
|
-
var DTOBrandGetResponse =
|
|
5167
|
-
var DTOBrandCreateResponse =
|
|
5175
|
+
var DTOBrandGetResponse = z181.object({ brand: DTOBrand });
|
|
5176
|
+
var DTOBrandCreateResponse = z181.object({
|
|
5168
5177
|
brand: DTOBrand
|
|
5169
5178
|
});
|
|
5170
|
-
var DTOBrandsListResponse =
|
|
5171
|
-
var DTOBrandCreatePayload =
|
|
5172
|
-
persistentId:
|
|
5179
|
+
var DTOBrandsListResponse = z181.object({ brands: z181.array(DTOBrand) });
|
|
5180
|
+
var DTOBrandCreatePayload = z181.object({
|
|
5181
|
+
persistentId: z181.string().uuid(),
|
|
5173
5182
|
meta: DTOObjectMeta
|
|
5174
5183
|
});
|
|
5175
|
-
var DTOBrandUpdatePayload =
|
|
5184
|
+
var DTOBrandUpdatePayload = z181.object({
|
|
5176
5185
|
meta: DTOObjectMeta.optional(),
|
|
5177
|
-
persistentId:
|
|
5186
|
+
persistentId: z181.string()
|
|
5178
5187
|
});
|
|
5179
5188
|
|
|
5180
5189
|
// src/api/dto/design-systems/component.ts
|
|
5181
|
-
import { z as
|
|
5182
|
-
var DTODesignSystemComponent =
|
|
5183
|
-
id:
|
|
5184
|
-
persistentId:
|
|
5185
|
-
designSystemVersionId:
|
|
5186
|
-
brandId:
|
|
5190
|
+
import { z as z182 } from "zod";
|
|
5191
|
+
var DTODesignSystemComponent = z182.object({
|
|
5192
|
+
id: z182.string(),
|
|
5193
|
+
persistentId: z182.string(),
|
|
5194
|
+
designSystemVersionId: z182.string(),
|
|
5195
|
+
brandId: z182.string(),
|
|
5187
5196
|
meta: DTOObjectMeta,
|
|
5188
|
-
createdAt:
|
|
5189
|
-
updatedAt:
|
|
5197
|
+
createdAt: z182.coerce.date(),
|
|
5198
|
+
updatedAt: z182.coerce.date()
|
|
5190
5199
|
});
|
|
5191
|
-
var DTODesignSystemComponentResponse =
|
|
5200
|
+
var DTODesignSystemComponentResponse = z182.object({
|
|
5192
5201
|
designSystemComponent: DTODesignSystemComponent
|
|
5193
5202
|
});
|
|
5194
|
-
var DTODesignSystemComponentListResponse =
|
|
5203
|
+
var DTODesignSystemComponentListResponse = z182.object({
|
|
5195
5204
|
designSystemComponents: DTODesignSystemComponent.array()
|
|
5196
5205
|
});
|
|
5197
|
-
var DTODesignSystemComponentCreateInput =
|
|
5198
|
-
brandId:
|
|
5206
|
+
var DTODesignSystemComponentCreateInput = z182.object({
|
|
5207
|
+
brandId: z182.string(),
|
|
5199
5208
|
// Persistent ID,
|
|
5200
|
-
persistentId:
|
|
5209
|
+
persistentId: z182.string(),
|
|
5201
5210
|
meta: DTOObjectMeta
|
|
5202
5211
|
});
|
|
5203
5212
|
|
|
5204
5213
|
// src/api/dto/design-systems/contact.ts
|
|
5205
|
-
import { z as
|
|
5214
|
+
import { z as z186 } from "zod";
|
|
5206
5215
|
|
|
5207
5216
|
// src/api/dto/users/authenticated-user.ts
|
|
5208
|
-
import { z as
|
|
5217
|
+
import { z as z184 } from "zod";
|
|
5209
5218
|
|
|
5210
5219
|
// src/api/dto/users/user.ts
|
|
5211
|
-
import { z as
|
|
5212
|
-
var DTOUserProfile =
|
|
5213
|
-
name:
|
|
5214
|
-
nickname:
|
|
5215
|
-
avatar:
|
|
5216
|
-
});
|
|
5217
|
-
var DTOUser =
|
|
5218
|
-
id:
|
|
5219
|
-
email:
|
|
5220
|
+
import { z as z183 } from "zod";
|
|
5221
|
+
var DTOUserProfile = z183.object({
|
|
5222
|
+
name: z183.string(),
|
|
5223
|
+
nickname: z183.string().optional(),
|
|
5224
|
+
avatar: z183.string().optional()
|
|
5225
|
+
});
|
|
5226
|
+
var DTOUser = z183.object({
|
|
5227
|
+
id: z183.string(),
|
|
5228
|
+
email: z183.string(),
|
|
5220
5229
|
profile: DTOUserProfile
|
|
5221
5230
|
});
|
|
5222
|
-
var DTOUserGetResponse =
|
|
5231
|
+
var DTOUserGetResponse = z183.object({
|
|
5223
5232
|
user: DTOUser
|
|
5224
5233
|
});
|
|
5225
5234
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -5228,156 +5237,156 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
5228
5237
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
5229
5238
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5230
5239
|
var DTOUserSource = UserSource;
|
|
5231
|
-
var DTOUserOnboarding =
|
|
5232
|
-
companyName:
|
|
5233
|
-
numberOfPeopleInOrg:
|
|
5234
|
-
numberOfPeopleInDesignTeam:
|
|
5240
|
+
var DTOUserOnboarding = z184.object({
|
|
5241
|
+
companyName: z184.string().optional(),
|
|
5242
|
+
numberOfPeopleInOrg: z184.string().optional(),
|
|
5243
|
+
numberOfPeopleInDesignTeam: z184.string().optional(),
|
|
5235
5244
|
department: DTOUserOnboardingDepartment.optional(),
|
|
5236
|
-
jobTitle:
|
|
5237
|
-
phase:
|
|
5245
|
+
jobTitle: z184.string().optional(),
|
|
5246
|
+
phase: z184.string().optional(),
|
|
5238
5247
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
5239
|
-
designSystemName:
|
|
5240
|
-
defaultDestination:
|
|
5241
|
-
isPageDraftOnboardingFinished:
|
|
5248
|
+
designSystemName: z184.string().optional(),
|
|
5249
|
+
defaultDestination: z184.string().optional(),
|
|
5250
|
+
isPageDraftOnboardingFinished: z184.boolean().optional()
|
|
5242
5251
|
});
|
|
5243
5252
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5244
5253
|
onboarding: DTOUserOnboarding.optional()
|
|
5245
5254
|
});
|
|
5246
5255
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5247
5256
|
profile: DTOAuthenticatedUserProfile,
|
|
5248
|
-
createdAt:
|
|
5249
|
-
loggedOutAt:
|
|
5257
|
+
createdAt: z184.coerce.date(),
|
|
5258
|
+
loggedOutAt: z184.coerce.date().optional(),
|
|
5250
5259
|
source: DTOUserSource.optional()
|
|
5251
5260
|
});
|
|
5252
|
-
var DTOAuthenticatedUserResponse =
|
|
5261
|
+
var DTOAuthenticatedUserResponse = z184.object({
|
|
5253
5262
|
user: DTOAuthenticatedUser
|
|
5254
5263
|
});
|
|
5255
5264
|
|
|
5256
5265
|
// src/api/dto/users/update.ts
|
|
5257
|
-
import { z as
|
|
5258
|
-
var DTOUserProfileUpdateResponse =
|
|
5266
|
+
import { z as z185 } from "zod";
|
|
5267
|
+
var DTOUserProfileUpdateResponse = z185.object({
|
|
5259
5268
|
user: User
|
|
5260
5269
|
});
|
|
5261
5270
|
|
|
5262
5271
|
// src/api/dto/design-systems/contact.ts
|
|
5263
|
-
var DTODesignSystemContactsResponse =
|
|
5264
|
-
contacts:
|
|
5265
|
-
workspace:
|
|
5266
|
-
designSystem:
|
|
5272
|
+
var DTODesignSystemContactsResponse = z186.object({
|
|
5273
|
+
contacts: z186.object({
|
|
5274
|
+
workspace: z186.array(DTOUser),
|
|
5275
|
+
designSystem: z186.array(DTOUser)
|
|
5267
5276
|
})
|
|
5268
5277
|
});
|
|
5269
5278
|
|
|
5270
5279
|
// src/api/dto/design-systems/data-source.ts
|
|
5271
|
-
import { z as
|
|
5280
|
+
import { z as z187 } from "zod";
|
|
5272
5281
|
var DTODataSourceFigmaScope = DataSourceFigmaScope;
|
|
5273
|
-
var DTODataSourceFigmaFileVersion =
|
|
5274
|
-
id:
|
|
5275
|
-
created_at:
|
|
5276
|
-
label:
|
|
5277
|
-
description:
|
|
5278
|
-
});
|
|
5279
|
-
var DTODataSourceFigmaCloud =
|
|
5280
|
-
fileId:
|
|
5282
|
+
var DTODataSourceFigmaFileVersion = z187.object({
|
|
5283
|
+
id: z187.string(),
|
|
5284
|
+
created_at: z187.coerce.date(),
|
|
5285
|
+
label: z187.string(),
|
|
5286
|
+
description: z187.string()
|
|
5287
|
+
});
|
|
5288
|
+
var DTODataSourceFigmaCloud = z187.object({
|
|
5289
|
+
fileId: z187.string(),
|
|
5281
5290
|
state: DataSourceFigmaState,
|
|
5282
5291
|
autoImportMode: DataSourceAutoImportMode,
|
|
5283
|
-
fileThumbnailUrl:
|
|
5292
|
+
fileThumbnailUrl: z187.string().optional(),
|
|
5284
5293
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5285
|
-
lastImportedAt:
|
|
5294
|
+
lastImportedAt: z187.coerce.date().nullish(),
|
|
5286
5295
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5287
|
-
lastUpdatesCheckedAt:
|
|
5288
|
-
ownerId:
|
|
5289
|
-
ownerUserName:
|
|
5290
|
-
preferredCredentialId:
|
|
5296
|
+
lastUpdatesCheckedAt: z187.date().nullish(),
|
|
5297
|
+
ownerId: z187.string(),
|
|
5298
|
+
ownerUserName: z187.string().optional(),
|
|
5299
|
+
preferredCredentialId: z187.string().optional(),
|
|
5291
5300
|
stats: DataSourceStats
|
|
5292
5301
|
});
|
|
5293
|
-
var DTODataSourceFigma =
|
|
5294
|
-
id:
|
|
5295
|
-
type:
|
|
5296
|
-
fileName:
|
|
5302
|
+
var DTODataSourceFigma = z187.object({
|
|
5303
|
+
id: z187.string(),
|
|
5304
|
+
type: z187.literal(DataSourceRemoteType.Enum.Figma),
|
|
5305
|
+
fileName: z187.string(),
|
|
5297
5306
|
scope: DTODataSourceFigmaScope,
|
|
5298
|
-
brandId:
|
|
5299
|
-
themeId:
|
|
5307
|
+
brandId: z187.string(),
|
|
5308
|
+
themeId: z187.string().nullish(),
|
|
5300
5309
|
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5301
5310
|
});
|
|
5302
|
-
var DTODataSourceTokenStudio =
|
|
5303
|
-
id:
|
|
5304
|
-
type:
|
|
5305
|
-
fileName:
|
|
5306
|
-
brandId:
|
|
5307
|
-
themeId:
|
|
5308
|
-
tokenStudio:
|
|
5309
|
-
settings:
|
|
5310
|
-
dryRun:
|
|
5311
|
-
verbose:
|
|
5312
|
-
preciseCopy:
|
|
5311
|
+
var DTODataSourceTokenStudio = z187.object({
|
|
5312
|
+
id: z187.string(),
|
|
5313
|
+
type: z187.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5314
|
+
fileName: z187.string(),
|
|
5315
|
+
brandId: z187.string(),
|
|
5316
|
+
themeId: z187.string().nullish(),
|
|
5317
|
+
tokenStudio: z187.object({
|
|
5318
|
+
settings: z187.object({
|
|
5319
|
+
dryRun: z187.boolean(),
|
|
5320
|
+
verbose: z187.boolean(),
|
|
5321
|
+
preciseCopy: z187.boolean()
|
|
5313
5322
|
}),
|
|
5314
|
-
connectionName:
|
|
5315
|
-
lastImportedAt:
|
|
5316
|
-
lastImportedResults:
|
|
5317
|
-
|
|
5318
|
-
mapping:
|
|
5319
|
-
tokenSets:
|
|
5320
|
-
supernovaBrand:
|
|
5321
|
-
supernovaTheme:
|
|
5323
|
+
connectionName: z187.string(),
|
|
5324
|
+
lastImportedAt: z187.coerce.date(),
|
|
5325
|
+
lastImportedResults: z187.array(
|
|
5326
|
+
z187.object({
|
|
5327
|
+
mapping: z187.object({
|
|
5328
|
+
tokenSets: z187.array(z187.string()),
|
|
5329
|
+
supernovaBrand: z187.string(),
|
|
5330
|
+
supernovaTheme: z187.string().optional()
|
|
5322
5331
|
}),
|
|
5323
|
-
isFailed:
|
|
5324
|
-
tokensCreated:
|
|
5325
|
-
tokensDeleted:
|
|
5326
|
-
tokensUpdated:
|
|
5332
|
+
isFailed: z187.boolean(),
|
|
5333
|
+
tokensCreated: z187.number(),
|
|
5334
|
+
tokensDeleted: z187.number(),
|
|
5335
|
+
tokensUpdated: z187.number()
|
|
5327
5336
|
})
|
|
5328
5337
|
)
|
|
5329
5338
|
})
|
|
5330
5339
|
});
|
|
5331
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5332
|
-
id:
|
|
5333
|
-
type:
|
|
5334
|
-
fileName:
|
|
5335
|
-
brandId:
|
|
5336
|
-
upload:
|
|
5337
|
-
remoteId:
|
|
5340
|
+
var DTODataSourceFigmaVariablesPlugin = z187.object({
|
|
5341
|
+
id: z187.string(),
|
|
5342
|
+
type: z187.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5343
|
+
fileName: z187.string(),
|
|
5344
|
+
brandId: z187.string(),
|
|
5345
|
+
upload: z187.object({
|
|
5346
|
+
remoteId: z187.string(),
|
|
5338
5347
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5339
|
-
lastImportedAt:
|
|
5348
|
+
lastImportedAt: z187.coerce.date().optional(),
|
|
5340
5349
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5341
|
-
isTokenTypeSplitEnabled:
|
|
5350
|
+
isTokenTypeSplitEnabled: z187.boolean()
|
|
5342
5351
|
}),
|
|
5343
|
-
figmaVariablesPlugin:
|
|
5344
|
-
fileId:
|
|
5345
|
-
lastImportedAt:
|
|
5352
|
+
figmaVariablesPlugin: z187.object({
|
|
5353
|
+
fileId: z187.string(),
|
|
5354
|
+
lastImportedAt: z187.coerce.date().optional(),
|
|
5346
5355
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5347
|
-
isTokenTypeSplitEnabled:
|
|
5348
|
-
isCollectionsMigrationCompleted:
|
|
5356
|
+
isTokenTypeSplitEnabled: z187.boolean(),
|
|
5357
|
+
isCollectionsMigrationCompleted: z187.boolean().default(false)
|
|
5349
5358
|
})
|
|
5350
5359
|
});
|
|
5351
|
-
var DTODataSource =
|
|
5360
|
+
var DTODataSource = z187.discriminatedUnion("type", [
|
|
5352
5361
|
DTODataSourceFigma,
|
|
5353
5362
|
DTODataSourceFigmaVariablesPlugin,
|
|
5354
5363
|
DTODataSourceTokenStudio
|
|
5355
5364
|
]);
|
|
5356
|
-
var DTODataSourcesListResponse =
|
|
5357
|
-
sources:
|
|
5365
|
+
var DTODataSourcesListResponse = z187.object({
|
|
5366
|
+
sources: z187.array(DTODataSource)
|
|
5358
5367
|
});
|
|
5359
|
-
var DTODataSourceResponse =
|
|
5368
|
+
var DTODataSourceResponse = z187.object({
|
|
5360
5369
|
source: DTODataSource
|
|
5361
5370
|
});
|
|
5362
|
-
var DTODataSourceFigmaCreatePayload =
|
|
5363
|
-
brandPersistentId:
|
|
5364
|
-
figmaFileUrl:
|
|
5371
|
+
var DTODataSourceFigmaCreatePayload = z187.object({
|
|
5372
|
+
brandPersistentId: z187.string(),
|
|
5373
|
+
figmaFileUrl: z187.string(),
|
|
5365
5374
|
scope: DTODataSourceFigmaScope,
|
|
5366
5375
|
autoImportMode: DataSourceAutoImportMode
|
|
5367
5376
|
});
|
|
5368
|
-
var DTODataSourceFigmaImportPayload =
|
|
5369
|
-
sourceIds:
|
|
5377
|
+
var DTODataSourceFigmaImportPayload = z187.object({
|
|
5378
|
+
sourceIds: z187.array(z187.string())
|
|
5370
5379
|
});
|
|
5371
5380
|
|
|
5372
5381
|
// src/api/dto/design-systems/design-system.ts
|
|
5373
|
-
import { z as
|
|
5382
|
+
import { z as z190 } from "zod";
|
|
5374
5383
|
|
|
5375
5384
|
// src/api/dto/design-systems/members.ts
|
|
5376
|
-
import { z as
|
|
5385
|
+
import { z as z189 } from "zod";
|
|
5377
5386
|
|
|
5378
5387
|
// src/api/dto/design-systems/role.ts
|
|
5379
|
-
import { z as
|
|
5380
|
-
var DTODesignSystemRole =
|
|
5388
|
+
import { z as z188 } from "zod";
|
|
5389
|
+
var DTODesignSystemRole = z188.enum([
|
|
5381
5390
|
WorkspaceRole.Admin,
|
|
5382
5391
|
WorkspaceRole.Contributor,
|
|
5383
5392
|
WorkspaceRole.Creator,
|
|
@@ -5385,29 +5394,29 @@ var DTODesignSystemRole = z187.enum([
|
|
|
5385
5394
|
]);
|
|
5386
5395
|
|
|
5387
5396
|
// src/api/dto/design-systems/members.ts
|
|
5388
|
-
var DTODesignSystemMember =
|
|
5389
|
-
userId:
|
|
5397
|
+
var DTODesignSystemMember = z189.object({
|
|
5398
|
+
userId: z189.string(),
|
|
5390
5399
|
/**
|
|
5391
5400
|
* Role that the member has in the design system,
|
|
5392
5401
|
* undefined if set to inherit from workspace
|
|
5393
5402
|
*/
|
|
5394
5403
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5395
5404
|
});
|
|
5396
|
-
var DTODesignSystemInvitation =
|
|
5397
|
-
id:
|
|
5398
|
-
workspaceInvitationId:
|
|
5405
|
+
var DTODesignSystemInvitation = z189.object({
|
|
5406
|
+
id: z189.string(),
|
|
5407
|
+
workspaceInvitationId: z189.string(),
|
|
5399
5408
|
/**
|
|
5400
5409
|
* Role that the invitation has in the design system,
|
|
5401
5410
|
* undefined if set to inherit from workspace
|
|
5402
5411
|
*/
|
|
5403
5412
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5404
5413
|
});
|
|
5405
|
-
var DTODesignSystemMemberListResponse =
|
|
5414
|
+
var DTODesignSystemMemberListResponse = z189.object({
|
|
5406
5415
|
members: DTODesignSystemMember.array(),
|
|
5407
5416
|
invitations: DTODesignSystemInvitation.array()
|
|
5408
5417
|
});
|
|
5409
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5410
|
-
ok:
|
|
5418
|
+
var DTODesignSystemMembersUpdateResponse = z189.object({
|
|
5419
|
+
ok: z189.literal(true)
|
|
5411
5420
|
});
|
|
5412
5421
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5413
5422
|
|
|
@@ -5418,14 +5427,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5418
5427
|
docExporterId: true
|
|
5419
5428
|
}).extend({
|
|
5420
5429
|
meta: ObjectMeta,
|
|
5421
|
-
docExporterId:
|
|
5422
|
-
sources:
|
|
5423
|
-
isPublic:
|
|
5430
|
+
docExporterId: z190.string(),
|
|
5431
|
+
sources: z190.array(z190.any()),
|
|
5432
|
+
isPublic: z190.literal(true),
|
|
5424
5433
|
/**
|
|
5425
5434
|
* Whether or not user who is requesting the design system
|
|
5426
5435
|
* has access to the design system's contents.
|
|
5427
5436
|
*/
|
|
5428
|
-
isAvailableToUser:
|
|
5437
|
+
isAvailableToUser: z190.boolean(),
|
|
5429
5438
|
/**
|
|
5430
5439
|
* @deprecated
|
|
5431
5440
|
*/
|
|
@@ -5436,17 +5445,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5436
5445
|
*/
|
|
5437
5446
|
effectiveRole: DTODesignSystemRole.optional()
|
|
5438
5447
|
});
|
|
5439
|
-
var DTODesignSystemResponse =
|
|
5448
|
+
var DTODesignSystemResponse = z190.object({
|
|
5440
5449
|
designSystem: DTODesignSystem
|
|
5441
5450
|
});
|
|
5442
|
-
var DTODesignSystemsListResponse =
|
|
5451
|
+
var DTODesignSystemsListResponse = z190.object({
|
|
5443
5452
|
designSystems: DTODesignSystem.array()
|
|
5444
5453
|
});
|
|
5445
|
-
var DTODesignSystemCreateInput =
|
|
5446
|
-
workspaceId:
|
|
5454
|
+
var DTODesignSystemCreateInput = z190.object({
|
|
5455
|
+
workspaceId: z190.string(),
|
|
5447
5456
|
meta: ObjectMeta.optional(),
|
|
5448
|
-
name:
|
|
5449
|
-
description:
|
|
5457
|
+
name: z190.string().min(2).max(64).optional(),
|
|
5458
|
+
description: z190.string().max(1024).optional(),
|
|
5450
5459
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5451
5460
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
5452
5461
|
usersToInvite: true,
|
|
@@ -5456,20 +5465,20 @@ var DTODesignSystemCreateInput = z189.object({
|
|
|
5456
5465
|
});
|
|
5457
5466
|
|
|
5458
5467
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5459
|
-
import { z as
|
|
5460
|
-
var DTODiffCountBase =
|
|
5461
|
-
created:
|
|
5462
|
-
updated:
|
|
5463
|
-
deleted:
|
|
5468
|
+
import { z as z191 } from "zod";
|
|
5469
|
+
var DTODiffCountBase = z191.object({
|
|
5470
|
+
created: z191.number(),
|
|
5471
|
+
updated: z191.number(),
|
|
5472
|
+
deleted: z191.number()
|
|
5464
5473
|
});
|
|
5465
|
-
var DTODesignElementsDataDiffResponse =
|
|
5474
|
+
var DTODesignElementsDataDiffResponse = z191.object({
|
|
5466
5475
|
tokens: DTODiffCountBase,
|
|
5467
5476
|
assets: DTODiffCountBase
|
|
5468
5477
|
});
|
|
5469
5478
|
|
|
5470
5479
|
// src/api/dto/design-systems/figma-variables.ts
|
|
5471
|
-
import { z as
|
|
5472
|
-
var DimensionsVariableScopeSchema =
|
|
5480
|
+
import { z as z192 } from "zod";
|
|
5481
|
+
var DimensionsVariableScopeSchema = z192.enum([
|
|
5473
5482
|
"CORNER_RADIUS",
|
|
5474
5483
|
"WIDTH_HEIGHT",
|
|
5475
5484
|
"GAP",
|
|
@@ -5483,120 +5492,124 @@ var DimensionsVariableScopeSchema = z191.enum([
|
|
|
5483
5492
|
"PARAGRAPH_INDENT",
|
|
5484
5493
|
"FONT_WEIGHT"
|
|
5485
5494
|
]);
|
|
5486
|
-
var StringVariableScopeSchema =
|
|
5495
|
+
var StringVariableScopeSchema = z192.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
5487
5496
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5488
5497
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5489
|
-
var VariableScope =
|
|
5490
|
-
var ReferencedVariableOrigin =
|
|
5491
|
-
name:
|
|
5492
|
-
remote:
|
|
5498
|
+
var VariableScope = z192.string();
|
|
5499
|
+
var ReferencedVariableOrigin = z192.object({
|
|
5500
|
+
name: z192.string(),
|
|
5501
|
+
remote: z192.boolean()
|
|
5493
5502
|
});
|
|
5494
|
-
var RGB =
|
|
5495
|
-
r:
|
|
5496
|
-
g:
|
|
5497
|
-
b:
|
|
5503
|
+
var RGB = z192.object({
|
|
5504
|
+
r: z192.number(),
|
|
5505
|
+
g: z192.number(),
|
|
5506
|
+
b: z192.number()
|
|
5498
5507
|
});
|
|
5499
5508
|
var RGBA = RGB.extend({
|
|
5500
|
-
a:
|
|
5501
|
-
});
|
|
5502
|
-
var VariableAlias =
|
|
5503
|
-
type:
|
|
5504
|
-
id:
|
|
5505
|
-
resolvedValue:
|
|
5506
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
5507
|
-
});
|
|
5508
|
-
var VariableValue =
|
|
5509
|
-
var ResolvedVariableType =
|
|
5510
|
-
var Variable =
|
|
5511
|
-
id:
|
|
5512
|
-
name:
|
|
5513
|
-
key:
|
|
5514
|
-
variableCollectionId:
|
|
5509
|
+
a: z192.number()
|
|
5510
|
+
});
|
|
5511
|
+
var VariableAlias = z192.object({
|
|
5512
|
+
type: z192.literal("VARIABLE_ALIAS"),
|
|
5513
|
+
id: z192.string(),
|
|
5514
|
+
resolvedValue: z192.boolean().or(z192.number()).or(z192.string()).or(RGBA).or(RGB).optional(),
|
|
5515
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z192.null())
|
|
5516
|
+
});
|
|
5517
|
+
var VariableValue = z192.boolean().or(z192.number()).or(z192.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5518
|
+
var ResolvedVariableType = z192.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5519
|
+
var Variable = z192.object({
|
|
5520
|
+
id: z192.string(),
|
|
5521
|
+
name: z192.string(),
|
|
5522
|
+
key: z192.string(),
|
|
5523
|
+
variableCollectionId: z192.string(),
|
|
5515
5524
|
resolvedType: ResolvedVariableType,
|
|
5516
|
-
valuesByMode:
|
|
5517
|
-
remote:
|
|
5518
|
-
description:
|
|
5519
|
-
hiddenFromPublishing:
|
|
5520
|
-
scopes:
|
|
5521
|
-
codeSyntax:
|
|
5522
|
-
});
|
|
5523
|
-
var VariableMode =
|
|
5524
|
-
modeId:
|
|
5525
|
-
name:
|
|
5526
|
-
});
|
|
5527
|
-
var Collection2 =
|
|
5528
|
-
id:
|
|
5529
|
-
name:
|
|
5530
|
-
modes:
|
|
5531
|
-
defaultModeId:
|
|
5532
|
-
remote:
|
|
5533
|
-
hiddenFromPublishing:
|
|
5534
|
-
});
|
|
5535
|
-
var VariablesMapping =
|
|
5536
|
-
variableCollections:
|
|
5537
|
-
variableMode:
|
|
5538
|
-
supernovaBrand:
|
|
5539
|
-
supernovaTheme:
|
|
5540
|
-
});
|
|
5541
|
-
var FormattedCollections =
|
|
5542
|
-
variables:
|
|
5543
|
-
variableCollections:
|
|
5544
|
-
mappings:
|
|
5545
|
-
variablesOrder:
|
|
5525
|
+
valuesByMode: z192.record(VariableValue),
|
|
5526
|
+
remote: z192.boolean(),
|
|
5527
|
+
description: z192.string(),
|
|
5528
|
+
hiddenFromPublishing: z192.boolean(),
|
|
5529
|
+
scopes: z192.array(VariableScope),
|
|
5530
|
+
codeSyntax: z192.record(z192.any()).optional()
|
|
5531
|
+
});
|
|
5532
|
+
var VariableMode = z192.object({
|
|
5533
|
+
modeId: z192.string(),
|
|
5534
|
+
name: z192.string()
|
|
5535
|
+
});
|
|
5536
|
+
var Collection2 = z192.object({
|
|
5537
|
+
id: z192.string(),
|
|
5538
|
+
name: z192.string(),
|
|
5539
|
+
modes: z192.array(VariableMode),
|
|
5540
|
+
defaultModeId: z192.string(),
|
|
5541
|
+
remote: z192.boolean(),
|
|
5542
|
+
hiddenFromPublishing: z192.boolean()
|
|
5543
|
+
});
|
|
5544
|
+
var VariablesMapping = z192.object({
|
|
5545
|
+
variableCollections: z192.array(z192.string()).min(1),
|
|
5546
|
+
variableMode: z192.string().min(1),
|
|
5547
|
+
supernovaBrand: z192.string().min(1),
|
|
5548
|
+
supernovaTheme: z192.string().min(1).optional().or(z192.null())
|
|
5549
|
+
});
|
|
5550
|
+
var FormattedCollections = z192.object({
|
|
5551
|
+
variables: z192.record(z192.string(), Variable),
|
|
5552
|
+
variableCollections: z192.record(z192.string(), Collection2),
|
|
5553
|
+
mappings: z192.array(VariablesMapping).optional(),
|
|
5554
|
+
variablesOrder: z192.string().array().optional()
|
|
5546
5555
|
});
|
|
5547
5556
|
|
|
5548
5557
|
// src/api/dto/design-systems/import-job.ts
|
|
5549
|
-
import { z as
|
|
5550
|
-
var DTOImportJob =
|
|
5551
|
-
id:
|
|
5552
|
-
designSystemId:
|
|
5553
|
-
designSystemVersionId:
|
|
5554
|
-
operation:
|
|
5555
|
-
createdAt:
|
|
5556
|
-
stateChangedAt:
|
|
5558
|
+
import { z as z193 } from "zod";
|
|
5559
|
+
var DTOImportJob = z193.object({
|
|
5560
|
+
id: z193.string(),
|
|
5561
|
+
designSystemId: z193.string(),
|
|
5562
|
+
designSystemVersionId: z193.string(),
|
|
5563
|
+
operation: z193.literal("Import"),
|
|
5564
|
+
createdAt: z193.coerce.date(),
|
|
5565
|
+
stateChangedAt: z193.coerce.date(),
|
|
5557
5566
|
state: ImportJobState,
|
|
5558
|
-
sourceIds:
|
|
5567
|
+
sourceIds: z193.string().array()
|
|
5559
5568
|
});
|
|
5560
|
-
var DTOImportJobResponse =
|
|
5569
|
+
var DTOImportJobResponse = z193.object({
|
|
5561
5570
|
job: DTOImportJob
|
|
5562
5571
|
});
|
|
5563
|
-
var DTOBffFigmaImportRequestBody =
|
|
5564
|
-
type:
|
|
5565
|
-
brandPersistentId:
|
|
5566
|
-
fileId:
|
|
5572
|
+
var DTOBffFigmaImportRequestBody = z193.object({
|
|
5573
|
+
type: z193.literal(DataSourceRemoteType.Enum.Figma),
|
|
5574
|
+
brandPersistentId: z193.string().optional(),
|
|
5575
|
+
fileId: z193.string(),
|
|
5567
5576
|
scope: DataSourceFigmaScope,
|
|
5568
5577
|
autoImportMode: DataSourceAutoImportMode
|
|
5569
5578
|
});
|
|
5570
|
-
var DTOBffUploadImportRequestBody =
|
|
5571
|
-
type:
|
|
5572
|
-
brandPersistentId:
|
|
5573
|
-
sourceName:
|
|
5574
|
-
remoteId:
|
|
5575
|
-
isTokenTypeSplitEnabled:
|
|
5576
|
-
payload:
|
|
5579
|
+
var DTOBffUploadImportRequestBody = z193.object({
|
|
5580
|
+
type: z193.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5581
|
+
brandPersistentId: z193.string().optional(),
|
|
5582
|
+
sourceName: z193.string().optional(),
|
|
5583
|
+
remoteId: z193.string(),
|
|
5584
|
+
isTokenTypeSplitEnabled: z193.boolean().optional(),
|
|
5585
|
+
payload: z193.any()
|
|
5577
5586
|
});
|
|
5578
|
-
var DTOBffImportRequestBody =
|
|
5587
|
+
var DTOBffImportRequestBody = z193.discriminatedUnion("type", [
|
|
5579
5588
|
DTOBffFigmaImportRequestBody,
|
|
5580
5589
|
DTOBffUploadImportRequestBody
|
|
5581
5590
|
]);
|
|
5582
5591
|
|
|
5583
5592
|
// src/api/dto/design-systems/stats.ts
|
|
5584
|
-
import { z as
|
|
5585
|
-
var DTODesignSystemVersionStats =
|
|
5586
|
-
tokens:
|
|
5587
|
-
designSystemComponents:
|
|
5588
|
-
assets:
|
|
5589
|
-
documentationPages:
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
+
import { z as z194 } from "zod";
|
|
5594
|
+
var DTODesignSystemVersionStats = z194.object({
|
|
5595
|
+
tokens: z194.number(),
|
|
5596
|
+
designSystemComponents: z194.number(),
|
|
5597
|
+
assets: z194.number(),
|
|
5598
|
+
documentationPages: z194.number(),
|
|
5599
|
+
figmaComponents: z194.number()
|
|
5600
|
+
});
|
|
5601
|
+
var DTODesignSystemVersionStatsQuery = z194.object({
|
|
5602
|
+
/**
|
|
5603
|
+
* Unique ID across versions (non-persistent ID)
|
|
5604
|
+
*/
|
|
5605
|
+
brandId: z194.string().optional()
|
|
5593
5606
|
});
|
|
5594
5607
|
|
|
5595
5608
|
// src/api/dto/design-systems/version.ts
|
|
5596
|
-
import { z as
|
|
5609
|
+
import { z as z206 } from "zod";
|
|
5597
5610
|
|
|
5598
5611
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5599
|
-
import { z as
|
|
5612
|
+
import { z as z195 } from "zod";
|
|
5600
5613
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5601
5614
|
id: true,
|
|
5602
5615
|
workspaceId: true,
|
|
@@ -5608,40 +5621,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5608
5621
|
}).extend({
|
|
5609
5622
|
meta: ObjectMeta.partial().optional()
|
|
5610
5623
|
});
|
|
5611
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5624
|
+
var DTODesignSystemUpdateAccessModeInput = z195.object({
|
|
5612
5625
|
accessMode: DesignSystemAccessMode,
|
|
5613
|
-
retain:
|
|
5614
|
-
userIds:
|
|
5615
|
-
inviteIds:
|
|
5626
|
+
retain: z195.object({
|
|
5627
|
+
userIds: z195.string().array(),
|
|
5628
|
+
inviteIds: z195.string().array()
|
|
5616
5629
|
}).optional()
|
|
5617
5630
|
});
|
|
5618
5631
|
|
|
5619
5632
|
// src/api/payloads/design-systems/version.ts
|
|
5620
|
-
import { z as
|
|
5621
|
-
var ObjectMeta2 =
|
|
5622
|
-
name:
|
|
5623
|
-
description:
|
|
5633
|
+
import { z as z196 } from "zod";
|
|
5634
|
+
var ObjectMeta2 = z196.object({
|
|
5635
|
+
name: z196.string().max(150).optional(),
|
|
5636
|
+
description: z196.string().max(2e3).optional()
|
|
5624
5637
|
});
|
|
5625
5638
|
function validateDesignSystemVersion(version) {
|
|
5626
5639
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5627
5640
|
return urlCompliantRegex.test(version);
|
|
5628
5641
|
}
|
|
5629
|
-
var DTOCreateVersionInput =
|
|
5642
|
+
var DTOCreateVersionInput = z196.object({
|
|
5630
5643
|
meta: ObjectMeta2,
|
|
5631
|
-
version:
|
|
5644
|
+
version: z196.string().refine(validateDesignSystemVersion, {
|
|
5632
5645
|
message: "Invalid semantic versioning format"
|
|
5633
5646
|
}),
|
|
5634
|
-
changeLog:
|
|
5647
|
+
changeLog: z196.string().optional()
|
|
5635
5648
|
});
|
|
5636
|
-
var DTOUpdateVersionInput =
|
|
5649
|
+
var DTOUpdateVersionInput = z196.object({
|
|
5637
5650
|
meta: ObjectMeta2,
|
|
5638
|
-
version:
|
|
5651
|
+
version: z196.string(),
|
|
5639
5652
|
// required for PUT, but not editable
|
|
5640
|
-
changeLog:
|
|
5653
|
+
changeLog: z196.string()
|
|
5641
5654
|
});
|
|
5642
5655
|
|
|
5643
5656
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5644
|
-
import { z as
|
|
5657
|
+
import { z as z197 } from "zod";
|
|
5645
5658
|
|
|
5646
5659
|
// src/api/dto/documentation/block-definition.ts
|
|
5647
5660
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5653,63 +5666,63 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5653
5666
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5654
5667
|
|
|
5655
5668
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5656
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5657
|
-
definitions:
|
|
5669
|
+
var DTOGetBlockDefinitionsOutput = z197.object({
|
|
5670
|
+
definitions: z197.array(DTOPageBlockDefinition)
|
|
5658
5671
|
});
|
|
5659
5672
|
|
|
5660
5673
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5661
|
-
import { z as
|
|
5662
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5663
|
-
environment:
|
|
5674
|
+
import { z as z198 } from "zod";
|
|
5675
|
+
var DTODocumentationPublishTypeQueryParams = z198.object({
|
|
5676
|
+
environment: z198.enum(["Live", "Preview"])
|
|
5664
5677
|
});
|
|
5665
5678
|
|
|
5666
5679
|
// src/api/payloads/export/pipeline.ts
|
|
5667
|
-
import { z as
|
|
5680
|
+
import { z as z200 } from "zod";
|
|
5668
5681
|
|
|
5669
5682
|
// src/api/dto/export/exporter-property.ts
|
|
5670
|
-
import { z as
|
|
5671
|
-
var PrimitiveValue =
|
|
5672
|
-
var ArrayValue =
|
|
5673
|
-
var ObjectValue =
|
|
5683
|
+
import { z as z199 } from "zod";
|
|
5684
|
+
var PrimitiveValue = z199.number().or(z199.boolean()).or(z199.string());
|
|
5685
|
+
var ArrayValue = z199.array(z199.string());
|
|
5686
|
+
var ObjectValue = z199.record(z199.string());
|
|
5674
5687
|
var DTOExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
|
|
5675
|
-
var DTOExporterPropertyType =
|
|
5676
|
-
var PropertyDefinitionBase =
|
|
5677
|
-
key:
|
|
5678
|
-
title:
|
|
5679
|
-
description:
|
|
5688
|
+
var DTOExporterPropertyType = z199.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5689
|
+
var PropertyDefinitionBase = z199.object({
|
|
5690
|
+
key: z199.string(),
|
|
5691
|
+
title: z199.string(),
|
|
5692
|
+
description: z199.string()
|
|
5680
5693
|
});
|
|
5681
5694
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
|
|
5682
|
-
type:
|
|
5683
|
-
options:
|
|
5684
|
-
default:
|
|
5695
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Enum),
|
|
5696
|
+
options: z199.string().array(),
|
|
5697
|
+
default: z199.string()
|
|
5685
5698
|
});
|
|
5686
5699
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
|
|
5687
|
-
type:
|
|
5688
|
-
default:
|
|
5700
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
5701
|
+
default: z199.boolean()
|
|
5689
5702
|
});
|
|
5690
5703
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
|
|
5691
|
-
type:
|
|
5692
|
-
default:
|
|
5704
|
+
type: z199.literal(DTOExporterPropertyType.Enum.String),
|
|
5705
|
+
default: z199.string()
|
|
5693
5706
|
});
|
|
5694
5707
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
|
|
5695
|
-
type:
|
|
5696
|
-
default:
|
|
5708
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Number),
|
|
5709
|
+
default: z199.number()
|
|
5697
5710
|
});
|
|
5698
5711
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
|
|
5699
|
-
type:
|
|
5712
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Array),
|
|
5700
5713
|
default: ArrayValue
|
|
5701
5714
|
});
|
|
5702
5715
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
|
|
5703
|
-
type:
|
|
5716
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Object),
|
|
5704
5717
|
default: ObjectValue,
|
|
5705
|
-
allowedKeys:
|
|
5706
|
-
options:
|
|
5718
|
+
allowedKeys: z199.object({
|
|
5719
|
+
options: z199.string().array()
|
|
5707
5720
|
}).optional(),
|
|
5708
|
-
allowedValues:
|
|
5709
|
-
options:
|
|
5721
|
+
allowedValues: z199.object({
|
|
5722
|
+
options: z199.string().array()
|
|
5710
5723
|
}).optional()
|
|
5711
5724
|
});
|
|
5712
|
-
var DTOExporterPropertyDefinition =
|
|
5725
|
+
var DTOExporterPropertyDefinition = z199.discriminatedUnion("type", [
|
|
5713
5726
|
DTOExporterPropertyDefinitionEnum,
|
|
5714
5727
|
DTOExporterPropertyDefinitionBoolean,
|
|
5715
5728
|
DTOExporterPropertyDefinitionString,
|
|
@@ -5717,55 +5730,55 @@ var DTOExporterPropertyDefinition = z198.discriminatedUnion("type", [
|
|
|
5717
5730
|
DTOExporterPropertyDefinitionArray,
|
|
5718
5731
|
DTOExporterPropertyDefinitionObject
|
|
5719
5732
|
]);
|
|
5720
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
5733
|
+
var DTOExporterPropertyDefinitionsResponse = z199.object({
|
|
5721
5734
|
properties: DTOExporterPropertyDefinition.array()
|
|
5722
5735
|
});
|
|
5723
|
-
var DTOExporterPropertyDefinitionValueMap =
|
|
5736
|
+
var DTOExporterPropertyDefinitionValueMap = z199.record(DTOExporterPropertyDefinitionValue);
|
|
5724
5737
|
|
|
5725
5738
|
// src/api/payloads/export/pipeline.ts
|
|
5726
|
-
var DTOPipelineCreateBody =
|
|
5727
|
-
name:
|
|
5728
|
-
exporterId:
|
|
5729
|
-
designSystemId:
|
|
5730
|
-
isEnabled:
|
|
5739
|
+
var DTOPipelineCreateBody = z200.object({
|
|
5740
|
+
name: z200.string(),
|
|
5741
|
+
exporterId: z200.string(),
|
|
5742
|
+
designSystemId: z200.string(),
|
|
5743
|
+
isEnabled: z200.boolean(),
|
|
5731
5744
|
eventType: PipelineEventType,
|
|
5732
|
-
brandPersistentId:
|
|
5733
|
-
themePersistentId:
|
|
5734
|
-
themePersistentIds:
|
|
5745
|
+
brandPersistentId: z200.string().optional(),
|
|
5746
|
+
themePersistentId: z200.string().optional(),
|
|
5747
|
+
themePersistentIds: z200.string().array().optional(),
|
|
5735
5748
|
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
5736
5749
|
destination: PipelineDestinationType.optional(),
|
|
5737
5750
|
gitQuery: GitObjectsQuery,
|
|
5738
|
-
destinations:
|
|
5751
|
+
destinations: z200.object({
|
|
5739
5752
|
s3: ExporterDestinationS3.nullish(),
|
|
5740
5753
|
azure: ExporterDestinationAzure.nullish(),
|
|
5741
5754
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5742
5755
|
github: ExporterDestinationGithub.nullish(),
|
|
5743
5756
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5744
5757
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5745
|
-
webhookUrl:
|
|
5758
|
+
webhookUrl: z200.string().nullish()
|
|
5746
5759
|
})
|
|
5747
5760
|
});
|
|
5748
5761
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5749
|
-
id:
|
|
5762
|
+
id: z200.string()
|
|
5750
5763
|
});
|
|
5751
|
-
var DTOPipelineTriggerBody =
|
|
5752
|
-
designSystemVersionId:
|
|
5764
|
+
var DTOPipelineTriggerBody = z200.object({
|
|
5765
|
+
designSystemVersionId: z200.string()
|
|
5753
5766
|
});
|
|
5754
5767
|
|
|
5755
5768
|
// src/api/payloads/liveblocks/auth.ts
|
|
5756
|
-
import { z as
|
|
5757
|
-
var DTOLiveblocksAuthRequest =
|
|
5758
|
-
room:
|
|
5769
|
+
import { z as z201 } from "zod";
|
|
5770
|
+
var DTOLiveblocksAuthRequest = z201.object({
|
|
5771
|
+
room: z201.string().optional()
|
|
5759
5772
|
});
|
|
5760
5773
|
|
|
5761
5774
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5762
|
-
import { z as
|
|
5763
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5775
|
+
import { z as z202 } from "zod";
|
|
5776
|
+
var DTOUpdateUserNotificationSettingsPayload = z202.object({
|
|
5764
5777
|
notificationSettings: UserNotificationSettings
|
|
5765
5778
|
});
|
|
5766
|
-
var DTOUserNotificationSettingsResponse =
|
|
5767
|
-
userId:
|
|
5768
|
-
workspaceId:
|
|
5779
|
+
var DTOUserNotificationSettingsResponse = z202.object({
|
|
5780
|
+
userId: z202.string(),
|
|
5781
|
+
workspaceId: z202.string(),
|
|
5769
5782
|
notificationSettings: UserNotificationSettings
|
|
5770
5783
|
});
|
|
5771
5784
|
|
|
@@ -5773,13 +5786,13 @@ var DTOUserNotificationSettingsResponse = z201.object({
|
|
|
5773
5786
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5774
5787
|
|
|
5775
5788
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
5776
|
-
import { z as
|
|
5777
|
-
var DTOTransferOwnershipPayload =
|
|
5778
|
-
newOwnerId:
|
|
5789
|
+
import { z as z203 } from "zod";
|
|
5790
|
+
var DTOTransferOwnershipPayload = z203.object({
|
|
5791
|
+
newOwnerId: z203.string()
|
|
5779
5792
|
});
|
|
5780
5793
|
|
|
5781
5794
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5782
|
-
import { z as
|
|
5795
|
+
import { z as z204 } from "zod";
|
|
5783
5796
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5784
5797
|
function validateSsoPayload(ssoPayload) {
|
|
5785
5798
|
const keys = [];
|
|
@@ -5802,21 +5815,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5802
5815
|
keys
|
|
5803
5816
|
};
|
|
5804
5817
|
}
|
|
5805
|
-
var NpmRegistryInput =
|
|
5806
|
-
enabledScopes:
|
|
5807
|
-
customRegistryUrl:
|
|
5808
|
-
bypassProxy:
|
|
5809
|
-
npmProxyRegistryConfigId:
|
|
5810
|
-
npmProxyVersion:
|
|
5811
|
-
registryType:
|
|
5812
|
-
authType:
|
|
5813
|
-
authHeaderName:
|
|
5814
|
-
authHeaderValue:
|
|
5815
|
-
accessToken:
|
|
5816
|
-
username:
|
|
5817
|
-
password:
|
|
5818
|
-
});
|
|
5819
|
-
var WorkspaceConfigurationPayload =
|
|
5818
|
+
var NpmRegistryInput = z204.object({
|
|
5819
|
+
enabledScopes: z204.array(z204.string()),
|
|
5820
|
+
customRegistryUrl: z204.string().optional(),
|
|
5821
|
+
bypassProxy: z204.boolean().optional(),
|
|
5822
|
+
npmProxyRegistryConfigId: z204.string().optional(),
|
|
5823
|
+
npmProxyVersion: z204.number().optional(),
|
|
5824
|
+
registryType: z204.string(),
|
|
5825
|
+
authType: z204.string(),
|
|
5826
|
+
authHeaderName: z204.string(),
|
|
5827
|
+
authHeaderValue: z204.string(),
|
|
5828
|
+
accessToken: z204.string(),
|
|
5829
|
+
username: z204.string(),
|
|
5830
|
+
password: z204.string()
|
|
5831
|
+
});
|
|
5832
|
+
var WorkspaceConfigurationPayload = z204.object({
|
|
5820
5833
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5821
5834
|
sso: SsoProvider.partial().optional(),
|
|
5822
5835
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5824,218 +5837,218 @@ var WorkspaceConfigurationPayload = z203.object({
|
|
|
5824
5837
|
});
|
|
5825
5838
|
|
|
5826
5839
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5827
|
-
import { z as
|
|
5828
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5840
|
+
import { z as z205 } from "zod";
|
|
5841
|
+
var DTOWorkspaceIntegrationOauthInput = z205.object({
|
|
5829
5842
|
type: IntegrationType
|
|
5830
5843
|
});
|
|
5831
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5832
|
-
userId:
|
|
5844
|
+
var DTOWorkspaceIntegrationPATInput = z205.object({
|
|
5845
|
+
userId: z205.string(),
|
|
5833
5846
|
type: IntegrationType,
|
|
5834
5847
|
token: IntegrationToken
|
|
5835
5848
|
});
|
|
5836
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5837
|
-
organization:
|
|
5849
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z205.object({
|
|
5850
|
+
organization: z205.string().optional(),
|
|
5838
5851
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5839
|
-
project:
|
|
5852
|
+
project: z205.string().optional(),
|
|
5840
5853
|
// Only for Bitbucket and Azure
|
|
5841
|
-
repository:
|
|
5854
|
+
repository: z205.string().optional(),
|
|
5842
5855
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5843
|
-
branch:
|
|
5856
|
+
branch: z205.string().optional(),
|
|
5844
5857
|
// For all providers, useful for PR creations.
|
|
5845
|
-
user:
|
|
5858
|
+
user: z205.string().optional()
|
|
5846
5859
|
// Only for Gitlab User Repositories
|
|
5847
5860
|
});
|
|
5848
5861
|
|
|
5849
5862
|
// src/api/dto/design-systems/version.ts
|
|
5850
|
-
var DTODesignSystemVersion =
|
|
5851
|
-
id:
|
|
5852
|
-
createdAt:
|
|
5863
|
+
var DTODesignSystemVersion = z206.object({
|
|
5864
|
+
id: z206.string(),
|
|
5865
|
+
createdAt: z206.coerce.date(),
|
|
5853
5866
|
meta: ObjectMeta,
|
|
5854
|
-
version:
|
|
5855
|
-
isReadonly:
|
|
5856
|
-
changeLog:
|
|
5857
|
-
designSystemId:
|
|
5867
|
+
version: z206.string(),
|
|
5868
|
+
isReadonly: z206.boolean(),
|
|
5869
|
+
changeLog: z206.string(),
|
|
5870
|
+
designSystemId: z206.string()
|
|
5858
5871
|
});
|
|
5859
|
-
var DTODesignSystemVersionsListResponse =
|
|
5860
|
-
designSystemVersions:
|
|
5872
|
+
var DTODesignSystemVersionsListResponse = z206.object({
|
|
5873
|
+
designSystemVersions: z206.array(DTODesignSystemVersion)
|
|
5861
5874
|
});
|
|
5862
|
-
var DTODesignSystemVersionGetResponse =
|
|
5875
|
+
var DTODesignSystemVersionGetResponse = z206.object({
|
|
5863
5876
|
designSystemVersion: DTODesignSystemVersion
|
|
5864
5877
|
});
|
|
5865
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5878
|
+
var DTODesignSystemVersionCreationResponse = z206.object({
|
|
5866
5879
|
meta: ObjectMeta,
|
|
5867
|
-
version:
|
|
5868
|
-
changeLog:
|
|
5869
|
-
isReadOnly:
|
|
5870
|
-
designSystemId:
|
|
5871
|
-
jobId:
|
|
5872
|
-
});
|
|
5873
|
-
var VersionSQSPayload =
|
|
5874
|
-
jobId:
|
|
5875
|
-
designSystemId:
|
|
5880
|
+
version: z206.string(),
|
|
5881
|
+
changeLog: z206.string(),
|
|
5882
|
+
isReadOnly: z206.boolean(),
|
|
5883
|
+
designSystemId: z206.string(),
|
|
5884
|
+
jobId: z206.string()
|
|
5885
|
+
});
|
|
5886
|
+
var VersionSQSPayload = z206.object({
|
|
5887
|
+
jobId: z206.string(),
|
|
5888
|
+
designSystemId: z206.string(),
|
|
5876
5889
|
input: DTOCreateVersionInput
|
|
5877
5890
|
});
|
|
5878
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5879
|
-
jobs:
|
|
5891
|
+
var DTODesignSystemVersionJobsResponse = z206.object({
|
|
5892
|
+
jobs: z206.array(VersionCreationJob)
|
|
5880
5893
|
});
|
|
5881
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5894
|
+
var DTODesignSystemVersionJobStatusResponse = z206.object({
|
|
5882
5895
|
job: VersionCreationJob
|
|
5883
5896
|
});
|
|
5884
5897
|
|
|
5885
5898
|
// src/api/dto/design-systems/view.ts
|
|
5886
|
-
import { z as
|
|
5887
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5888
|
-
id:
|
|
5889
|
-
persistentId:
|
|
5890
|
-
width:
|
|
5899
|
+
import { z as z207 } from "zod";
|
|
5900
|
+
var DTOElementViewColumnSharedAttributes = z207.object({
|
|
5901
|
+
id: z207.string(),
|
|
5902
|
+
persistentId: z207.string(),
|
|
5903
|
+
width: z207.number()
|
|
5891
5904
|
});
|
|
5892
5905
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5893
|
-
type:
|
|
5906
|
+
type: z207.literal("BaseProperty"),
|
|
5894
5907
|
basePropertyType: ElementViewBaseColumnType
|
|
5895
5908
|
});
|
|
5896
5909
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5897
|
-
type:
|
|
5898
|
-
propertyDefinitionId:
|
|
5910
|
+
type: z207.literal("PropertyDefinition"),
|
|
5911
|
+
propertyDefinitionId: z207.string()
|
|
5899
5912
|
});
|
|
5900
5913
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5901
|
-
type:
|
|
5902
|
-
themeId:
|
|
5914
|
+
type: z207.literal("Theme"),
|
|
5915
|
+
themeId: z207.string()
|
|
5903
5916
|
});
|
|
5904
|
-
var DTOElementViewColumn =
|
|
5917
|
+
var DTOElementViewColumn = z207.discriminatedUnion("type", [
|
|
5905
5918
|
DTOElementViewBasePropertyColumn,
|
|
5906
5919
|
DTOElementViewPropertyDefinitionColumn,
|
|
5907
5920
|
DTOElementViewThemeColumn
|
|
5908
5921
|
]);
|
|
5909
|
-
var DTOElementView =
|
|
5922
|
+
var DTOElementView = z207.object({
|
|
5910
5923
|
meta: ObjectMeta,
|
|
5911
|
-
persistentId:
|
|
5924
|
+
persistentId: z207.string(),
|
|
5912
5925
|
targetElementType: ElementPropertyTargetType,
|
|
5913
|
-
id:
|
|
5914
|
-
isDefault:
|
|
5915
|
-
columns:
|
|
5926
|
+
id: z207.string(),
|
|
5927
|
+
isDefault: z207.boolean(),
|
|
5928
|
+
columns: z207.array(DTOElementViewColumn)
|
|
5916
5929
|
});
|
|
5917
|
-
var DTOElementViewsListResponse =
|
|
5918
|
-
elementDataViews:
|
|
5930
|
+
var DTOElementViewsListResponse = z207.object({
|
|
5931
|
+
elementDataViews: z207.array(DTOElementView)
|
|
5919
5932
|
});
|
|
5920
5933
|
|
|
5921
5934
|
// src/api/dto/workspaces/git.ts
|
|
5922
|
-
import { z as
|
|
5923
|
-
var DTOGitOrganization =
|
|
5924
|
-
id:
|
|
5925
|
-
name:
|
|
5926
|
-
url:
|
|
5927
|
-
slug:
|
|
5935
|
+
import { z as z208 } from "zod";
|
|
5936
|
+
var DTOGitOrganization = z208.object({
|
|
5937
|
+
id: z208.string(),
|
|
5938
|
+
name: z208.string(),
|
|
5939
|
+
url: z208.string(),
|
|
5940
|
+
slug: z208.string()
|
|
5928
5941
|
});
|
|
5929
|
-
var DTOGitProject =
|
|
5930
|
-
id:
|
|
5931
|
-
name:
|
|
5932
|
-
url:
|
|
5933
|
-
slug:
|
|
5942
|
+
var DTOGitProject = z208.object({
|
|
5943
|
+
id: z208.string(),
|
|
5944
|
+
name: z208.string(),
|
|
5945
|
+
url: z208.string(),
|
|
5946
|
+
slug: z208.string()
|
|
5934
5947
|
});
|
|
5935
|
-
var DTOGitRepository =
|
|
5936
|
-
id:
|
|
5937
|
-
name:
|
|
5938
|
-
url:
|
|
5939
|
-
slug:
|
|
5940
|
-
defaultBranch:
|
|
5948
|
+
var DTOGitRepository = z208.object({
|
|
5949
|
+
id: z208.string(),
|
|
5950
|
+
name: z208.string(),
|
|
5951
|
+
url: z208.string(),
|
|
5952
|
+
slug: z208.string(),
|
|
5953
|
+
defaultBranch: z208.string().optional()
|
|
5941
5954
|
});
|
|
5942
|
-
var DTOGitBranch =
|
|
5943
|
-
name:
|
|
5944
|
-
lastCommitId:
|
|
5955
|
+
var DTOGitBranch = z208.object({
|
|
5956
|
+
name: z208.string(),
|
|
5957
|
+
lastCommitId: z208.string()
|
|
5945
5958
|
});
|
|
5946
5959
|
|
|
5947
5960
|
// src/api/dto/workspaces/integrations.ts
|
|
5948
|
-
import { z as
|
|
5961
|
+
import { z as z209 } from "zod";
|
|
5949
5962
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5950
5963
|
accessToken: true,
|
|
5951
5964
|
refreshToken: true
|
|
5952
5965
|
});
|
|
5953
|
-
var DTOIntegration =
|
|
5954
|
-
id:
|
|
5955
|
-
workspaceId:
|
|
5966
|
+
var DTOIntegration = z209.object({
|
|
5967
|
+
id: z209.string(),
|
|
5968
|
+
workspaceId: z209.string(),
|
|
5956
5969
|
type: ExtendedIntegrationType,
|
|
5957
|
-
createdAt:
|
|
5958
|
-
integrationCredentials:
|
|
5959
|
-
integrationDesignSystems:
|
|
5970
|
+
createdAt: z209.coerce.date(),
|
|
5971
|
+
integrationCredentials: z209.array(DTOIntegrationCredentials).optional(),
|
|
5972
|
+
integrationDesignSystems: z209.array(IntegrationDesignSystem).optional()
|
|
5960
5973
|
});
|
|
5961
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5962
|
-
url:
|
|
5974
|
+
var DTOIntegrationOAuthGetResponse = z209.object({
|
|
5975
|
+
url: z209.string()
|
|
5963
5976
|
});
|
|
5964
|
-
var DTOIntegrationPostResponse =
|
|
5977
|
+
var DTOIntegrationPostResponse = z209.object({
|
|
5965
5978
|
integration: DTOIntegration
|
|
5966
5979
|
});
|
|
5967
|
-
var DTOIntegrationsGetListResponse =
|
|
5980
|
+
var DTOIntegrationsGetListResponse = z209.object({
|
|
5968
5981
|
integrations: DTOIntegration.array()
|
|
5969
5982
|
});
|
|
5970
5983
|
|
|
5971
5984
|
// src/api/dto/workspaces/invitations.ts
|
|
5972
|
-
import { z as
|
|
5973
|
-
var DTOWorkspaceInvitationInput =
|
|
5974
|
-
email:
|
|
5985
|
+
import { z as z210 } from "zod";
|
|
5986
|
+
var DTOWorkspaceInvitationInput = z210.object({
|
|
5987
|
+
email: z210.string().email(),
|
|
5975
5988
|
role: WorkspaceRoleSchema
|
|
5976
5989
|
});
|
|
5977
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5990
|
+
var DTOWorkspaceInvitationsListInput = z210.object({
|
|
5978
5991
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5979
|
-
designSystemId:
|
|
5992
|
+
designSystemId: z210.string().optional()
|
|
5980
5993
|
});
|
|
5981
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5994
|
+
var DTOWorkspaceInvitationsResponse = z210.object({
|
|
5982
5995
|
invitations: WorkspaceInvitation.array()
|
|
5983
5996
|
});
|
|
5984
|
-
var DTOWorkspaceInviteUpdate =
|
|
5997
|
+
var DTOWorkspaceInviteUpdate = z210.object({
|
|
5985
5998
|
role: WorkspaceRoleSchema
|
|
5986
5999
|
});
|
|
5987
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
6000
|
+
var DTOWorkspaceInvitationUpdateResponse = z210.object({
|
|
5988
6001
|
invitation: WorkspaceInvitation
|
|
5989
6002
|
});
|
|
5990
6003
|
|
|
5991
6004
|
// src/api/dto/workspaces/membership.ts
|
|
5992
|
-
import { z as
|
|
6005
|
+
import { z as z213 } from "zod";
|
|
5993
6006
|
|
|
5994
6007
|
// src/api/dto/workspaces/workspace.ts
|
|
5995
|
-
import { z as
|
|
6008
|
+
import { z as z212 } from "zod";
|
|
5996
6009
|
|
|
5997
6010
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5998
|
-
import { z as
|
|
6011
|
+
import { z as z211 } from "zod";
|
|
5999
6012
|
var DTONpmRegistryConfigConstants = {
|
|
6000
6013
|
passwordPlaceholder: "redacted"
|
|
6001
6014
|
};
|
|
6002
|
-
var DTONpmRegistryConfig =
|
|
6015
|
+
var DTONpmRegistryConfig = z211.object({
|
|
6003
6016
|
// Registry basic configuration
|
|
6004
6017
|
registryType: NpmRegistryType,
|
|
6005
|
-
registryUrl:
|
|
6006
|
-
customRegistryUrl:
|
|
6018
|
+
registryUrl: z211.string(),
|
|
6019
|
+
customRegistryUrl: z211.string().optional(),
|
|
6007
6020
|
// URL of Supernova NPM packages proxy
|
|
6008
|
-
proxyUrl:
|
|
6021
|
+
proxyUrl: z211.string(),
|
|
6009
6022
|
// Auth configuration
|
|
6010
6023
|
authType: NpmRegistryAuthType,
|
|
6011
|
-
accessToken:
|
|
6012
|
-
username:
|
|
6013
|
-
password:
|
|
6024
|
+
accessToken: z211.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6025
|
+
username: z211.string().optional(),
|
|
6026
|
+
password: z211.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6014
6027
|
// NPM package scopes for whih the proxy should be enabled
|
|
6015
|
-
enabledScopes:
|
|
6028
|
+
enabledScopes: z211.array(z211.string()),
|
|
6016
6029
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6017
6030
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6018
|
-
bypassProxy:
|
|
6031
|
+
bypassProxy: z211.boolean()
|
|
6019
6032
|
});
|
|
6020
6033
|
|
|
6021
6034
|
// src/api/dto/workspaces/workspace.ts
|
|
6022
6035
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6023
|
-
var DTOWorkspace =
|
|
6024
|
-
id:
|
|
6036
|
+
var DTOWorkspace = z212.object({
|
|
6037
|
+
id: z212.string(),
|
|
6025
6038
|
profile: DTOWorkspaceProfile,
|
|
6026
6039
|
subscription: Subscription,
|
|
6027
6040
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6028
6041
|
});
|
|
6029
|
-
var DTOWorkspaceCreateInput =
|
|
6030
|
-
name:
|
|
6042
|
+
var DTOWorkspaceCreateInput = z212.object({
|
|
6043
|
+
name: z212.string()
|
|
6031
6044
|
});
|
|
6032
|
-
var DTOWorkspaceResponse =
|
|
6045
|
+
var DTOWorkspaceResponse = z212.object({
|
|
6033
6046
|
workspace: DTOWorkspace
|
|
6034
6047
|
});
|
|
6035
6048
|
|
|
6036
6049
|
// src/api/dto/workspaces/membership.ts
|
|
6037
|
-
var DTOWorkspaceRole =
|
|
6038
|
-
var DTOUserWorkspaceMembership =
|
|
6050
|
+
var DTOWorkspaceRole = z213.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6051
|
+
var DTOUserWorkspaceMembership = z213.object({
|
|
6039
6052
|
// Workspace the user is a member of
|
|
6040
6053
|
workspace: DTOWorkspace,
|
|
6041
6054
|
// Assigned role the user has in the workspace
|
|
@@ -6045,26 +6058,26 @@ var DTOUserWorkspaceMembership = z212.object({
|
|
|
6045
6058
|
// when a workspace's subscription is downgraded to free tier
|
|
6046
6059
|
effectiveRole: DTOWorkspaceRole
|
|
6047
6060
|
});
|
|
6048
|
-
var DTOWorkspaceMember =
|
|
6061
|
+
var DTOWorkspaceMember = z213.object({
|
|
6049
6062
|
user: User,
|
|
6050
6063
|
role: WorkspaceRoleSchema,
|
|
6051
6064
|
effectiveRole: WorkspaceRoleSchema
|
|
6052
6065
|
});
|
|
6053
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6054
|
-
membership:
|
|
6066
|
+
var DTOUserWorkspaceMembershipsResponse = z213.object({
|
|
6067
|
+
membership: z213.array(DTOUserWorkspaceMembership)
|
|
6055
6068
|
});
|
|
6056
|
-
var DTOWorkspaceMembersListResponse =
|
|
6057
|
-
members:
|
|
6069
|
+
var DTOWorkspaceMembersListResponse = z213.object({
|
|
6070
|
+
members: z213.array(DTOWorkspaceMember)
|
|
6058
6071
|
});
|
|
6059
6072
|
|
|
6060
6073
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6061
|
-
var DTOAppBootstrapDataQuery =
|
|
6062
|
-
preferredWorkspaceId:
|
|
6063
|
-
preferredDesignSystemId:
|
|
6064
|
-
preferredVersionId:
|
|
6065
|
-
preferredBrandId:
|
|
6074
|
+
var DTOAppBootstrapDataQuery = z214.object({
|
|
6075
|
+
preferredWorkspaceId: z214.string().optional(),
|
|
6076
|
+
preferredDesignSystemId: z214.string().optional(),
|
|
6077
|
+
preferredVersionId: z214.string().optional(),
|
|
6078
|
+
preferredBrandId: z214.string().optional()
|
|
6066
6079
|
});
|
|
6067
|
-
var DTOAppBootstrapDataResponse =
|
|
6080
|
+
var DTOAppBootstrapDataResponse = z214.object({
|
|
6068
6081
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6069
6082
|
designSystem: DTODesignSystem.optional(),
|
|
6070
6083
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6072,88 +6085,88 @@ var DTOAppBootstrapDataResponse = z213.object({
|
|
|
6072
6085
|
});
|
|
6073
6086
|
|
|
6074
6087
|
// src/api/dto/collections/token-collection.ts
|
|
6075
|
-
import { z as
|
|
6076
|
-
var DTOTokenCollection =
|
|
6077
|
-
id:
|
|
6078
|
-
persistentId:
|
|
6079
|
-
designSystemVersionId:
|
|
6088
|
+
import { z as z215 } from "zod";
|
|
6089
|
+
var DTOTokenCollection = z215.object({
|
|
6090
|
+
id: z215.string(),
|
|
6091
|
+
persistentId: z215.string(),
|
|
6092
|
+
designSystemVersionId: z215.string(),
|
|
6080
6093
|
meta: ObjectMeta,
|
|
6081
6094
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6082
|
-
elementPropertyOptionId:
|
|
6083
|
-
createdAt:
|
|
6084
|
-
updatedAt:
|
|
6095
|
+
elementPropertyOptionId: z215.string(),
|
|
6096
|
+
createdAt: z215.coerce.date(),
|
|
6097
|
+
updatedAt: z215.coerce.date(),
|
|
6085
6098
|
origin: CollectionOrigin.optional()
|
|
6086
6099
|
});
|
|
6087
|
-
var DTOTokenCollectionsListReponse =
|
|
6100
|
+
var DTOTokenCollectionsListReponse = z215.object({
|
|
6088
6101
|
collections: DTOTokenCollection.array()
|
|
6089
6102
|
});
|
|
6090
6103
|
|
|
6091
6104
|
// src/api/dto/design-tokens/design-token.ts
|
|
6092
|
-
import { z as
|
|
6105
|
+
import { z as z216 } from "zod";
|
|
6093
6106
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6094
|
-
|
|
6095
|
-
id:
|
|
6096
|
-
persistentId:
|
|
6097
|
-
designSystemVersionId:
|
|
6107
|
+
z216.object({
|
|
6108
|
+
id: z216.string(),
|
|
6109
|
+
persistentId: z216.string(),
|
|
6110
|
+
designSystemVersionId: z216.string(),
|
|
6098
6111
|
meta: ObjectMeta,
|
|
6099
6112
|
originStyle: DesignTokenOrigin.optional(),
|
|
6100
|
-
brandId:
|
|
6101
|
-
collectionId:
|
|
6102
|
-
updatedAt:
|
|
6113
|
+
brandId: z216.string(),
|
|
6114
|
+
collectionId: z216.string().optional(),
|
|
6115
|
+
updatedAt: z216.coerce.date()
|
|
6103
6116
|
})
|
|
6104
6117
|
);
|
|
6105
|
-
var DTODesignTokenListResponse =
|
|
6118
|
+
var DTODesignTokenListResponse = z216.object({
|
|
6106
6119
|
tokens: DTODesignToken.array()
|
|
6107
6120
|
});
|
|
6108
|
-
var DTODesignTokenResponse =
|
|
6121
|
+
var DTODesignTokenResponse = z216.object({
|
|
6109
6122
|
token: DTODesignToken
|
|
6110
6123
|
});
|
|
6111
|
-
var DTODesignTokenGroup =
|
|
6112
|
-
id:
|
|
6124
|
+
var DTODesignTokenGroup = z216.object({
|
|
6125
|
+
id: z216.string(),
|
|
6113
6126
|
tokenType: DesignTokenType,
|
|
6114
|
-
persistentId:
|
|
6115
|
-
isRoot:
|
|
6116
|
-
brandId:
|
|
6127
|
+
persistentId: z216.string(),
|
|
6128
|
+
isRoot: z216.boolean(),
|
|
6129
|
+
brandId: z216.string(),
|
|
6117
6130
|
meta: ObjectMeta,
|
|
6118
|
-
childrenIds:
|
|
6131
|
+
childrenIds: z216.string().array()
|
|
6119
6132
|
});
|
|
6120
|
-
var DTODesignTokenGroupListResponse =
|
|
6133
|
+
var DTODesignTokenGroupListResponse = z216.object({
|
|
6121
6134
|
groups: DTODesignTokenGroup.array()
|
|
6122
6135
|
});
|
|
6123
|
-
var DTODesignTokenGroupResponse =
|
|
6136
|
+
var DTODesignTokenGroupResponse = z216.object({
|
|
6124
6137
|
group: DTODesignTokenGroup
|
|
6125
6138
|
});
|
|
6126
6139
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6127
|
-
|
|
6128
|
-
persistentId:
|
|
6140
|
+
z216.object({
|
|
6141
|
+
persistentId: z216.string(),
|
|
6129
6142
|
meta: ObjectMeta,
|
|
6130
|
-
brandId:
|
|
6131
|
-
groupPersistentId:
|
|
6143
|
+
brandId: z216.string(),
|
|
6144
|
+
groupPersistentId: z216.string().optional()
|
|
6132
6145
|
})
|
|
6133
6146
|
);
|
|
6134
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6135
|
-
persistentId:
|
|
6147
|
+
var DTODesignTokenGroupCreatePayload = z216.object({
|
|
6148
|
+
persistentId: z216.string(),
|
|
6136
6149
|
meta: ObjectMeta,
|
|
6137
|
-
brandId:
|
|
6138
|
-
parentId:
|
|
6150
|
+
brandId: z216.string(),
|
|
6151
|
+
parentId: z216.string().optional(),
|
|
6139
6152
|
tokenType: DesignTokenType,
|
|
6140
|
-
childrenIds:
|
|
6153
|
+
childrenIds: z216.string().array()
|
|
6141
6154
|
});
|
|
6142
6155
|
|
|
6143
6156
|
// src/api/dto/documentation/anchor.ts
|
|
6144
|
-
import { z as
|
|
6157
|
+
import { z as z217 } from "zod";
|
|
6145
6158
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6146
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6147
|
-
anchors:
|
|
6159
|
+
var DTOGetDocumentationPageAnchorsResponse = z217.object({
|
|
6160
|
+
anchors: z217.array(DTODocumentationPageAnchor)
|
|
6148
6161
|
});
|
|
6149
6162
|
|
|
6150
6163
|
// src/api/dto/documentation/approvals.ts
|
|
6151
|
-
import { z as
|
|
6164
|
+
import { z as z218 } from "zod";
|
|
6152
6165
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
6153
|
-
var DTODocumentationGroupApprovalState =
|
|
6154
|
-
persistentId:
|
|
6155
|
-
groupId:
|
|
6156
|
-
designSystemVersionId:
|
|
6166
|
+
var DTODocumentationGroupApprovalState = z218.object({
|
|
6167
|
+
persistentId: z218.string(),
|
|
6168
|
+
groupId: z218.string(),
|
|
6169
|
+
designSystemVersionId: z218.string(),
|
|
6157
6170
|
approvalState: DocumentationPageApprovalState
|
|
6158
6171
|
});
|
|
6159
6172
|
|
|
@@ -6161,68 +6174,68 @@ var DTODocumentationGroupApprovalState = z217.object({
|
|
|
6161
6174
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6162
6175
|
|
|
6163
6176
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6164
|
-
import { z as
|
|
6177
|
+
import { z as z223 } from "zod";
|
|
6165
6178
|
|
|
6166
6179
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6167
|
-
import { z as
|
|
6180
|
+
import { z as z222 } from "zod";
|
|
6168
6181
|
|
|
6169
6182
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6170
|
-
import { z as
|
|
6183
|
+
import { z as z220 } from "zod";
|
|
6171
6184
|
|
|
6172
6185
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6173
|
-
import { z as
|
|
6186
|
+
import { z as z219 } from "zod";
|
|
6174
6187
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6175
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6176
|
-
showSidebar:
|
|
6177
|
-
isPrivate:
|
|
6178
|
-
isHidden:
|
|
6188
|
+
var DTODocumentationItemConfigurationV2 = z219.object({
|
|
6189
|
+
showSidebar: z219.boolean(),
|
|
6190
|
+
isPrivate: z219.boolean(),
|
|
6191
|
+
isHidden: z219.boolean(),
|
|
6179
6192
|
header: DTODocumentationItemHeaderV2
|
|
6180
6193
|
});
|
|
6181
6194
|
|
|
6182
6195
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6183
|
-
var DTODocumentationDraftChangeType =
|
|
6184
|
-
var DTODocumentationDraftStateCreated =
|
|
6185
|
-
changeType:
|
|
6186
|
-
});
|
|
6187
|
-
var DTODocumentationDraftStateUpdated =
|
|
6188
|
-
changeType:
|
|
6189
|
-
changes:
|
|
6190
|
-
previousTitle:
|
|
6196
|
+
var DTODocumentationDraftChangeType = z220.enum(["Created", "Updated", "Deleted"]);
|
|
6197
|
+
var DTODocumentationDraftStateCreated = z220.object({
|
|
6198
|
+
changeType: z220.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6199
|
+
});
|
|
6200
|
+
var DTODocumentationDraftStateUpdated = z220.object({
|
|
6201
|
+
changeType: z220.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6202
|
+
changes: z220.object({
|
|
6203
|
+
previousTitle: z220.string().optional(),
|
|
6191
6204
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6192
|
-
previousContentHash:
|
|
6205
|
+
previousContentHash: z220.string().optional()
|
|
6193
6206
|
})
|
|
6194
6207
|
});
|
|
6195
|
-
var DTODocumentationDraftStateDeleted =
|
|
6196
|
-
changeType:
|
|
6197
|
-
deletedAt:
|
|
6198
|
-
deletedByUserId:
|
|
6208
|
+
var DTODocumentationDraftStateDeleted = z220.object({
|
|
6209
|
+
changeType: z220.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6210
|
+
deletedAt: z220.coerce.date(),
|
|
6211
|
+
deletedByUserId: z220.string()
|
|
6199
6212
|
});
|
|
6200
|
-
var DTODocumentationDraftState =
|
|
6213
|
+
var DTODocumentationDraftState = z220.discriminatedUnion("changeType", [
|
|
6201
6214
|
DTODocumentationDraftStateCreated,
|
|
6202
6215
|
DTODocumentationDraftStateUpdated,
|
|
6203
6216
|
DTODocumentationDraftStateDeleted
|
|
6204
6217
|
]);
|
|
6205
6218
|
|
|
6206
6219
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6207
|
-
import { z as
|
|
6208
|
-
var DTODocumentationPublishMetadata =
|
|
6209
|
-
lastPublishedByUserId:
|
|
6210
|
-
lastPublishedAt:
|
|
6220
|
+
import { z as z221 } from "zod";
|
|
6221
|
+
var DTODocumentationPublishMetadata = z221.object({
|
|
6222
|
+
lastPublishedByUserId: z221.string(),
|
|
6223
|
+
lastPublishedAt: z221.coerce.date()
|
|
6211
6224
|
});
|
|
6212
6225
|
|
|
6213
6226
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6214
|
-
var DTODocumentationPageV2 =
|
|
6215
|
-
id:
|
|
6216
|
-
persistentId:
|
|
6217
|
-
designSystemVersionId:
|
|
6218
|
-
title:
|
|
6227
|
+
var DTODocumentationPageV2 = z222.object({
|
|
6228
|
+
id: z222.string(),
|
|
6229
|
+
persistentId: z222.string(),
|
|
6230
|
+
designSystemVersionId: z222.string(),
|
|
6231
|
+
title: z222.string(),
|
|
6219
6232
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6220
|
-
shortPersistentId:
|
|
6221
|
-
slug:
|
|
6222
|
-
userSlug:
|
|
6223
|
-
createdAt:
|
|
6224
|
-
updatedAt:
|
|
6225
|
-
path:
|
|
6233
|
+
shortPersistentId: z222.string(),
|
|
6234
|
+
slug: z222.string().optional(),
|
|
6235
|
+
userSlug: z222.string().optional(),
|
|
6236
|
+
createdAt: z222.coerce.date(),
|
|
6237
|
+
updatedAt: z222.coerce.date(),
|
|
6238
|
+
path: z222.string(),
|
|
6226
6239
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6227
6240
|
draftState: DTODocumentationDraftState.optional(),
|
|
6228
6241
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6230,218 +6243,218 @@ var DTODocumentationPageV2 = z221.object({
|
|
|
6230
6243
|
/** Defines the approval state of the documentation page */
|
|
6231
6244
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6232
6245
|
// Backward compatibility
|
|
6233
|
-
type:
|
|
6246
|
+
type: z222.literal("Page")
|
|
6234
6247
|
});
|
|
6235
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6248
|
+
var DTOCreateDocumentationPageInputV2 = z222.object({
|
|
6236
6249
|
// Identifier
|
|
6237
|
-
persistentId:
|
|
6250
|
+
persistentId: z222.string(),
|
|
6238
6251
|
// Page properties
|
|
6239
|
-
title:
|
|
6252
|
+
title: z222.string(),
|
|
6240
6253
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6241
6254
|
// Page placement properties
|
|
6242
|
-
parentPersistentId:
|
|
6243
|
-
afterPersistentId:
|
|
6255
|
+
parentPersistentId: z222.string(),
|
|
6256
|
+
afterPersistentId: z222.string().nullish()
|
|
6244
6257
|
});
|
|
6245
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6258
|
+
var DTOUpdateDocumentationPageInputV2 = z222.object({
|
|
6246
6259
|
// Identifier of the group to update
|
|
6247
|
-
id:
|
|
6260
|
+
id: z222.string(),
|
|
6248
6261
|
// Page properties
|
|
6249
|
-
title:
|
|
6262
|
+
title: z222.string().optional(),
|
|
6250
6263
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6251
6264
|
});
|
|
6252
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6265
|
+
var DTOMoveDocumentationPageInputV2 = z222.object({
|
|
6253
6266
|
// Identifier of the group to update
|
|
6254
|
-
id:
|
|
6267
|
+
id: z222.string(),
|
|
6255
6268
|
// Page placement properties
|
|
6256
|
-
parentPersistentId:
|
|
6257
|
-
afterPersistentId:
|
|
6269
|
+
parentPersistentId: z222.string(),
|
|
6270
|
+
afterPersistentId: z222.string().nullish()
|
|
6258
6271
|
});
|
|
6259
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6272
|
+
var DTODuplicateDocumentationPageInputV2 = z222.object({
|
|
6260
6273
|
// Identifier of the page to duplicate from
|
|
6261
|
-
id:
|
|
6274
|
+
id: z222.string(),
|
|
6262
6275
|
// New page persistent id
|
|
6263
|
-
persistentId:
|
|
6276
|
+
persistentId: z222.string(),
|
|
6264
6277
|
// Page placement properties
|
|
6265
|
-
parentPersistentId:
|
|
6266
|
-
afterPersistentId:
|
|
6278
|
+
parentPersistentId: z222.string(),
|
|
6279
|
+
afterPersistentId: z222.string().nullish()
|
|
6267
6280
|
});
|
|
6268
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6281
|
+
var DTODeleteDocumentationPageInputV2 = z222.object({
|
|
6269
6282
|
// Identifier
|
|
6270
|
-
id:
|
|
6283
|
+
id: z222.string()
|
|
6271
6284
|
});
|
|
6272
|
-
var DTORestoreDocumentationPageInput =
|
|
6273
|
-
persistentId:
|
|
6274
|
-
snapshotId:
|
|
6285
|
+
var DTORestoreDocumentationPageInput = z222.object({
|
|
6286
|
+
persistentId: z222.string(),
|
|
6287
|
+
snapshotId: z222.string().optional()
|
|
6275
6288
|
});
|
|
6276
|
-
var DTORestoreDocumentationGroupInput =
|
|
6277
|
-
persistentId:
|
|
6278
|
-
snapshotId:
|
|
6289
|
+
var DTORestoreDocumentationGroupInput = z222.object({
|
|
6290
|
+
persistentId: z222.string(),
|
|
6291
|
+
snapshotId: z222.string().optional()
|
|
6279
6292
|
});
|
|
6280
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6281
|
-
persistentId:
|
|
6293
|
+
var DTODocumentationPageApprovalStateChangeInput = z222.object({
|
|
6294
|
+
persistentId: z222.string(),
|
|
6282
6295
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6283
6296
|
});
|
|
6284
6297
|
|
|
6285
6298
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6286
|
-
var DTODocumentationPageSnapshot =
|
|
6287
|
-
id:
|
|
6288
|
-
designSystemVersionId:
|
|
6289
|
-
createdAt:
|
|
6290
|
-
updatedAt:
|
|
6299
|
+
var DTODocumentationPageSnapshot = z223.object({
|
|
6300
|
+
id: z223.string(),
|
|
6301
|
+
designSystemVersionId: z223.string(),
|
|
6302
|
+
createdAt: z223.string(),
|
|
6303
|
+
updatedAt: z223.string(),
|
|
6291
6304
|
documentationPage: DTODocumentationPageV2,
|
|
6292
|
-
pageContentHash:
|
|
6305
|
+
pageContentHash: z223.string(),
|
|
6293
6306
|
reason: DesignElementSnapshotReason
|
|
6294
6307
|
});
|
|
6295
6308
|
|
|
6296
6309
|
// src/api/dto/documentation/link-preview.ts
|
|
6297
|
-
import { z as
|
|
6298
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6310
|
+
import { z as z224 } from "zod";
|
|
6311
|
+
var DTODocumentationLinkPreviewResponse = z224.object({
|
|
6299
6312
|
linkPreview: DocumentationLinkPreview
|
|
6300
6313
|
});
|
|
6301
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6302
|
-
url:
|
|
6303
|
-
documentationItemPersistentId:
|
|
6314
|
+
var DTODocumentationLinkPreviewRequest = z224.object({
|
|
6315
|
+
url: z224.string().optional(),
|
|
6316
|
+
documentationItemPersistentId: z224.string().optional()
|
|
6304
6317
|
});
|
|
6305
6318
|
|
|
6306
6319
|
// src/api/dto/documentation/publish.ts
|
|
6307
|
-
import { z as
|
|
6320
|
+
import { z as z228 } from "zod";
|
|
6308
6321
|
|
|
6309
6322
|
// src/api/dto/export/exporter.ts
|
|
6310
|
-
import { z as
|
|
6311
|
-
var DTOExporterType =
|
|
6312
|
-
var DTOExporterSource =
|
|
6313
|
-
var DTOExporterMembershipRole =
|
|
6314
|
-
var DTOExporterListQuery =
|
|
6315
|
-
limit:
|
|
6316
|
-
});
|
|
6317
|
-
var DTOExporter =
|
|
6318
|
-
id:
|
|
6319
|
-
name:
|
|
6320
|
-
isPrivate:
|
|
6323
|
+
import { z as z225 } from "zod";
|
|
6324
|
+
var DTOExporterType = z225.enum(["documentation", "code"]);
|
|
6325
|
+
var DTOExporterSource = z225.enum(["git", "upload"]);
|
|
6326
|
+
var DTOExporterMembershipRole = z225.enum(["Owner", "OwnerArchived", "User"]);
|
|
6327
|
+
var DTOExporterListQuery = z225.object({
|
|
6328
|
+
limit: z225.coerce.number().optional()
|
|
6329
|
+
});
|
|
6330
|
+
var DTOExporter = z225.object({
|
|
6331
|
+
id: z225.string(),
|
|
6332
|
+
name: z225.string(),
|
|
6333
|
+
isPrivate: z225.boolean(),
|
|
6321
6334
|
exporterType: DTOExporterType,
|
|
6322
|
-
isDefaultDocumentationExporter:
|
|
6323
|
-
iconURL:
|
|
6335
|
+
isDefaultDocumentationExporter: z225.boolean(),
|
|
6336
|
+
iconURL: z225.string().optional(),
|
|
6324
6337
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6325
6338
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
6326
6339
|
customBlocks: PulsarCustomBlock.array(),
|
|
6327
|
-
blockVariants:
|
|
6328
|
-
usesBrands:
|
|
6329
|
-
usesThemes:
|
|
6340
|
+
blockVariants: z225.record(z225.string(), PulsarContributionVariant.array()),
|
|
6341
|
+
usesBrands: z225.boolean(),
|
|
6342
|
+
usesThemes: z225.boolean(),
|
|
6330
6343
|
source: DTOExporterSource,
|
|
6331
|
-
gitUrl: nullishToOptional(
|
|
6332
|
-
gitBranch: nullishToOptional(
|
|
6333
|
-
gitDirectory: nullishToOptional(
|
|
6344
|
+
gitUrl: nullishToOptional(z225.string()),
|
|
6345
|
+
gitBranch: nullishToOptional(z225.string()),
|
|
6346
|
+
gitDirectory: nullishToOptional(z225.string())
|
|
6334
6347
|
});
|
|
6335
|
-
var DTOExporterMembership =
|
|
6336
|
-
workspaceId:
|
|
6337
|
-
exporterId:
|
|
6348
|
+
var DTOExporterMembership = z225.object({
|
|
6349
|
+
workspaceId: z225.string(),
|
|
6350
|
+
exporterId: z225.string(),
|
|
6338
6351
|
role: DTOExporterMembershipRole
|
|
6339
6352
|
});
|
|
6340
|
-
var DTOExporterCreateOutput =
|
|
6353
|
+
var DTOExporterCreateOutput = z225.object({
|
|
6341
6354
|
exporter: DTOExporter,
|
|
6342
6355
|
membership: DTOExporterMembership
|
|
6343
6356
|
});
|
|
6344
|
-
var DTOExporterListResponse =
|
|
6357
|
+
var DTOExporterListResponse = z225.object({
|
|
6345
6358
|
exporters: DTOExporter.array(),
|
|
6346
6359
|
membership: DTOExporterMembership.array()
|
|
6347
6360
|
});
|
|
6348
|
-
var DTOExporterGitProviderEnum =
|
|
6349
|
-
var DTOExporterCreateInput =
|
|
6350
|
-
url:
|
|
6361
|
+
var DTOExporterGitProviderEnum = z225.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6362
|
+
var DTOExporterCreateInput = z225.object({
|
|
6363
|
+
url: z225.string(),
|
|
6351
6364
|
provider: DTOExporterGitProviderEnum
|
|
6352
6365
|
});
|
|
6353
|
-
var DTOExporterUpdateInput =
|
|
6354
|
-
url:
|
|
6366
|
+
var DTOExporterUpdateInput = z225.object({
|
|
6367
|
+
url: z225.string().optional()
|
|
6355
6368
|
});
|
|
6356
6369
|
|
|
6357
6370
|
// src/api/dto/export/filter.ts
|
|
6358
6371
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6359
6372
|
|
|
6360
6373
|
// src/api/dto/export/job.ts
|
|
6361
|
-
import { z as
|
|
6362
|
-
var DTOExportJobCreatedBy =
|
|
6363
|
-
userId:
|
|
6364
|
-
userName:
|
|
6374
|
+
import { z as z226 } from "zod";
|
|
6375
|
+
var DTOExportJobCreatedBy = z226.object({
|
|
6376
|
+
userId: z226.string(),
|
|
6377
|
+
userName: z226.string()
|
|
6365
6378
|
});
|
|
6366
|
-
var DTOExportJobDesignSystemPreview =
|
|
6367
|
-
id:
|
|
6379
|
+
var DTOExportJobDesignSystemPreview = z226.object({
|
|
6380
|
+
id: z226.string(),
|
|
6368
6381
|
meta: ObjectMeta
|
|
6369
6382
|
});
|
|
6370
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6371
|
-
id:
|
|
6383
|
+
var DTOExportJobDesignSystemVersionPreview = z226.object({
|
|
6384
|
+
id: z226.string(),
|
|
6372
6385
|
meta: ObjectMeta,
|
|
6373
|
-
version:
|
|
6374
|
-
isReadonly:
|
|
6386
|
+
version: z226.string(),
|
|
6387
|
+
isReadonly: z226.boolean()
|
|
6375
6388
|
});
|
|
6376
|
-
var DTOExportJobDestinations =
|
|
6389
|
+
var DTOExportJobDestinations = z226.object({
|
|
6377
6390
|
s3: ExporterDestinationS3.optional(),
|
|
6378
6391
|
azure: ExporterDestinationAzure.optional(),
|
|
6379
6392
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6380
6393
|
github: ExporterDestinationGithub.optional(),
|
|
6381
6394
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6382
6395
|
documentation: ExporterDestinationDocs.optional(),
|
|
6383
|
-
webhookUrl:
|
|
6396
|
+
webhookUrl: z226.string().optional()
|
|
6384
6397
|
});
|
|
6385
6398
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6386
6399
|
sndocs: true
|
|
6387
6400
|
}).extend({
|
|
6388
6401
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6389
6402
|
});
|
|
6390
|
-
var DTOExportJob =
|
|
6391
|
-
id:
|
|
6392
|
-
createdAt:
|
|
6393
|
-
finishedAt:
|
|
6394
|
-
index:
|
|
6403
|
+
var DTOExportJob = z226.object({
|
|
6404
|
+
id: z226.string(),
|
|
6405
|
+
createdAt: z226.coerce.date(),
|
|
6406
|
+
finishedAt: z226.coerce.date().optional(),
|
|
6407
|
+
index: z226.number().optional(),
|
|
6395
6408
|
status: ExportJobStatus,
|
|
6396
|
-
estimatedExecutionTime:
|
|
6409
|
+
estimatedExecutionTime: z226.number().optional(),
|
|
6397
6410
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6398
6411
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6399
6412
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6400
6413
|
destinations: DTOExportJobDestinations,
|
|
6401
|
-
exporterId:
|
|
6402
|
-
scheduleId:
|
|
6414
|
+
exporterId: z226.string(),
|
|
6415
|
+
scheduleId: z226.string().optional(),
|
|
6403
6416
|
result: DTOExportJobResult.optional(),
|
|
6404
|
-
brandPersistentId:
|
|
6405
|
-
themePersistentId:
|
|
6406
|
-
themePersistentIds:
|
|
6417
|
+
brandPersistentId: z226.string().optional(),
|
|
6418
|
+
themePersistentId: z226.string().optional(),
|
|
6419
|
+
themePersistentIds: z226.string().array().optional(),
|
|
6407
6420
|
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional()
|
|
6408
6421
|
});
|
|
6409
|
-
var DTOExportJobResponse =
|
|
6422
|
+
var DTOExportJobResponse = z226.object({
|
|
6410
6423
|
job: DTOExportJob
|
|
6411
6424
|
});
|
|
6412
6425
|
|
|
6413
6426
|
// src/api/dto/export/pipeline.ts
|
|
6414
|
-
import { z as
|
|
6415
|
-
var DTOPipelineListQuery =
|
|
6416
|
-
designSystemId:
|
|
6417
|
-
exporterId:
|
|
6418
|
-
latestJobsLimit:
|
|
6419
|
-
});
|
|
6420
|
-
var DTOPipeline =
|
|
6421
|
-
id:
|
|
6422
|
-
name:
|
|
6427
|
+
import { z as z227 } from "zod";
|
|
6428
|
+
var DTOPipelineListQuery = z227.object({
|
|
6429
|
+
designSystemId: z227.string().optional(),
|
|
6430
|
+
exporterId: z227.string().optional(),
|
|
6431
|
+
latestJobsLimit: z227.coerce.number().optional()
|
|
6432
|
+
});
|
|
6433
|
+
var DTOPipeline = z227.object({
|
|
6434
|
+
id: z227.string(),
|
|
6435
|
+
name: z227.string(),
|
|
6423
6436
|
eventType: PipelineEventType,
|
|
6424
|
-
isEnabled:
|
|
6425
|
-
workspaceId:
|
|
6426
|
-
designSystemId:
|
|
6427
|
-
exporterId:
|
|
6428
|
-
brandPersistentId:
|
|
6429
|
-
themePersistentId:
|
|
6430
|
-
themePersistentIds:
|
|
6437
|
+
isEnabled: z227.boolean(),
|
|
6438
|
+
workspaceId: z227.string(),
|
|
6439
|
+
designSystemId: z227.string(),
|
|
6440
|
+
exporterId: z227.string(),
|
|
6441
|
+
brandPersistentId: z227.string().optional(),
|
|
6442
|
+
themePersistentId: z227.string().optional(),
|
|
6443
|
+
themePersistentIds: z227.string().array().optional(),
|
|
6431
6444
|
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
6432
6445
|
...ExportDestinationsMap.shape,
|
|
6433
6446
|
latestJobs: DTOExportJob.array()
|
|
6434
6447
|
});
|
|
6435
|
-
var DTOPipelineListResponse =
|
|
6448
|
+
var DTOPipelineListResponse = z227.object({
|
|
6436
6449
|
pipelines: DTOPipeline.array()
|
|
6437
6450
|
});
|
|
6438
|
-
var DTOPipelineResponse =
|
|
6451
|
+
var DTOPipelineResponse = z227.object({
|
|
6439
6452
|
pipeline: DTOPipeline
|
|
6440
6453
|
});
|
|
6441
6454
|
|
|
6442
6455
|
// src/api/dto/documentation/publish.ts
|
|
6443
6456
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6444
|
-
var DTOPublishDocumentationRequest =
|
|
6457
|
+
var DTOPublishDocumentationRequest = z228.object({
|
|
6445
6458
|
environment: PublishedDocEnvironment,
|
|
6446
6459
|
/**
|
|
6447
6460
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6449,57 +6462,57 @@ var DTOPublishDocumentationRequest = z227.object({
|
|
|
6449
6462
|
*/
|
|
6450
6463
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6451
6464
|
});
|
|
6452
|
-
var DTOPublishDocumentationResponse =
|
|
6465
|
+
var DTOPublishDocumentationResponse = z228.object({
|
|
6453
6466
|
job: DTOExportJob
|
|
6454
6467
|
});
|
|
6455
6468
|
|
|
6456
6469
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6457
|
-
import
|
|
6458
|
-
var DTOFigmaComponentGroup =
|
|
6459
|
-
id:
|
|
6460
|
-
designSystemVersionId:
|
|
6461
|
-
persistentId:
|
|
6462
|
-
isRoot:
|
|
6463
|
-
brandId:
|
|
6470
|
+
import z229 from "zod";
|
|
6471
|
+
var DTOFigmaComponentGroup = z229.object({
|
|
6472
|
+
id: z229.string(),
|
|
6473
|
+
designSystemVersionId: z229.string(),
|
|
6474
|
+
persistentId: z229.string(),
|
|
6475
|
+
isRoot: z229.boolean(),
|
|
6476
|
+
brandId: z229.string(),
|
|
6464
6477
|
meta: DTOObjectMeta,
|
|
6465
|
-
childrenIds:
|
|
6478
|
+
childrenIds: z229.string().array()
|
|
6466
6479
|
});
|
|
6467
|
-
var DTOFigmaComponentGroupListResponse =
|
|
6480
|
+
var DTOFigmaComponentGroupListResponse = z229.object({
|
|
6468
6481
|
groups: DTOFigmaComponentGroup.array()
|
|
6469
6482
|
});
|
|
6470
6483
|
|
|
6471
6484
|
// src/api/dto/elements/components/figma-component.ts
|
|
6472
|
-
import { z as
|
|
6485
|
+
import { z as z230 } from "zod";
|
|
6473
6486
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6474
|
-
var DTOFigmaComponentPropertyMap =
|
|
6475
|
-
var DTOFigmaComponent =
|
|
6476
|
-
id:
|
|
6477
|
-
persistentId:
|
|
6478
|
-
designSystemVersionId:
|
|
6479
|
-
brandId:
|
|
6480
|
-
thumbnailUrl:
|
|
6481
|
-
svgUrl:
|
|
6482
|
-
exportProperties:
|
|
6483
|
-
isAsset:
|
|
6487
|
+
var DTOFigmaComponentPropertyMap = z230.record(DTOFigmaComponentProperty);
|
|
6488
|
+
var DTOFigmaComponent = z230.object({
|
|
6489
|
+
id: z230.string(),
|
|
6490
|
+
persistentId: z230.string(),
|
|
6491
|
+
designSystemVersionId: z230.string(),
|
|
6492
|
+
brandId: z230.string(),
|
|
6493
|
+
thumbnailUrl: z230.string().optional(),
|
|
6494
|
+
svgUrl: z230.string().optional(),
|
|
6495
|
+
exportProperties: z230.object({
|
|
6496
|
+
isAsset: z230.boolean()
|
|
6484
6497
|
}),
|
|
6485
|
-
createdAt:
|
|
6486
|
-
updatedAt:
|
|
6498
|
+
createdAt: z230.coerce.date(),
|
|
6499
|
+
updatedAt: z230.coerce.date(),
|
|
6487
6500
|
meta: ObjectMeta,
|
|
6488
6501
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6489
|
-
parentComponentPersistentId:
|
|
6490
|
-
childrenPersistentIds:
|
|
6502
|
+
parentComponentPersistentId: z230.string().optional(),
|
|
6503
|
+
childrenPersistentIds: z230.string().array().optional(),
|
|
6491
6504
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6492
|
-
variantPropertyValues:
|
|
6505
|
+
variantPropertyValues: z230.record(z230.string()).optional()
|
|
6493
6506
|
});
|
|
6494
|
-
var DTOFigmaComponentListResponse =
|
|
6507
|
+
var DTOFigmaComponentListResponse = z230.object({
|
|
6495
6508
|
components: DTOFigmaComponent.array()
|
|
6496
6509
|
});
|
|
6497
6510
|
|
|
6498
6511
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6499
|
-
import { z as
|
|
6512
|
+
import { z as z232 } from "zod";
|
|
6500
6513
|
|
|
6501
6514
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6502
|
-
import { z as
|
|
6515
|
+
import { z as z231 } from "zod";
|
|
6503
6516
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6504
6517
|
sortOrder: true,
|
|
6505
6518
|
parentPersistentId: true,
|
|
@@ -6509,13 +6522,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6509
6522
|
data: true,
|
|
6510
6523
|
shortPersistentId: true
|
|
6511
6524
|
}).extend({
|
|
6512
|
-
title:
|
|
6513
|
-
isRoot:
|
|
6514
|
-
childrenIds:
|
|
6525
|
+
title: z231.string(),
|
|
6526
|
+
isRoot: z231.boolean(),
|
|
6527
|
+
childrenIds: z231.array(z231.string()),
|
|
6515
6528
|
groupBehavior: DocumentationGroupBehavior,
|
|
6516
|
-
shortPersistentId:
|
|
6529
|
+
shortPersistentId: z231.string(),
|
|
6517
6530
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6518
|
-
type:
|
|
6531
|
+
type: z231.literal("Group"),
|
|
6519
6532
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6520
6533
|
draftState: DTODocumentationDraftState.optional(),
|
|
6521
6534
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6523,127 +6536,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6523
6536
|
//** An approval state for frontend to utilize. */
|
|
6524
6537
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6525
6538
|
});
|
|
6526
|
-
var DTOCreateDocumentationGroupInput =
|
|
6539
|
+
var DTOCreateDocumentationGroupInput = z231.object({
|
|
6527
6540
|
// Identifier
|
|
6528
|
-
persistentId:
|
|
6541
|
+
persistentId: z231.string(),
|
|
6529
6542
|
// Group properties
|
|
6530
|
-
title:
|
|
6543
|
+
title: z231.string(),
|
|
6531
6544
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6532
6545
|
// Group placement properties
|
|
6533
|
-
afterPersistentId:
|
|
6534
|
-
parentPersistentId:
|
|
6546
|
+
afterPersistentId: z231.string().nullish(),
|
|
6547
|
+
parentPersistentId: z231.string()
|
|
6535
6548
|
});
|
|
6536
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6549
|
+
var DTOUpdateDocumentationGroupInput = z231.object({
|
|
6537
6550
|
// Identifier of the group to update
|
|
6538
|
-
id:
|
|
6551
|
+
id: z231.string(),
|
|
6539
6552
|
// Group properties
|
|
6540
|
-
title:
|
|
6553
|
+
title: z231.string().optional(),
|
|
6541
6554
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6542
6555
|
});
|
|
6543
|
-
var DTOMoveDocumentationGroupInput =
|
|
6556
|
+
var DTOMoveDocumentationGroupInput = z231.object({
|
|
6544
6557
|
// Identifier of the group to update
|
|
6545
|
-
id:
|
|
6558
|
+
id: z231.string(),
|
|
6546
6559
|
// Group placement properties
|
|
6547
|
-
parentPersistentId:
|
|
6548
|
-
afterPersistentId:
|
|
6560
|
+
parentPersistentId: z231.string(),
|
|
6561
|
+
afterPersistentId: z231.string().nullish()
|
|
6549
6562
|
});
|
|
6550
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6563
|
+
var DTODuplicateDocumentationGroupInput = z231.object({
|
|
6551
6564
|
// Identifier of the group to duplicate from
|
|
6552
|
-
id:
|
|
6565
|
+
id: z231.string(),
|
|
6553
6566
|
// New group persistent id
|
|
6554
|
-
persistentId:
|
|
6567
|
+
persistentId: z231.string(),
|
|
6555
6568
|
// Group placement properties
|
|
6556
|
-
afterPersistentId:
|
|
6557
|
-
parentPersistentId:
|
|
6569
|
+
afterPersistentId: z231.string().nullish(),
|
|
6570
|
+
parentPersistentId: z231.string()
|
|
6558
6571
|
});
|
|
6559
|
-
var DTOCreateDocumentationTabInput =
|
|
6572
|
+
var DTOCreateDocumentationTabInput = z231.object({
|
|
6560
6573
|
// New group persistent id
|
|
6561
|
-
persistentId:
|
|
6574
|
+
persistentId: z231.string(),
|
|
6562
6575
|
// If this is page, we will attempt to convert it to tab
|
|
6563
6576
|
// If this is tab group, we will add a new tab to it
|
|
6564
|
-
fromItemPersistentId:
|
|
6565
|
-
tabName:
|
|
6577
|
+
fromItemPersistentId: z231.string(),
|
|
6578
|
+
tabName: z231.string()
|
|
6566
6579
|
});
|
|
6567
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6580
|
+
var DTODeleteDocumentationTabGroupInput = z231.object({
|
|
6568
6581
|
// Deleted group id
|
|
6569
|
-
id:
|
|
6582
|
+
id: z231.string()
|
|
6570
6583
|
});
|
|
6571
|
-
var DTODeleteDocumentationGroupInput =
|
|
6584
|
+
var DTODeleteDocumentationGroupInput = z231.object({
|
|
6572
6585
|
// Identifier
|
|
6573
|
-
id:
|
|
6586
|
+
id: z231.string(),
|
|
6574
6587
|
// Deletion options
|
|
6575
|
-
deleteSubtree:
|
|
6588
|
+
deleteSubtree: z231.boolean().default(false)
|
|
6576
6589
|
});
|
|
6577
6590
|
|
|
6578
6591
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6579
|
-
var SuccessPayload =
|
|
6580
|
-
success:
|
|
6592
|
+
var SuccessPayload = z232.object({
|
|
6593
|
+
success: z232.literal(true)
|
|
6581
6594
|
});
|
|
6582
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6583
|
-
type:
|
|
6595
|
+
var DTODocumentationGroupCreateActionOutputV2 = z232.object({
|
|
6596
|
+
type: z232.literal("DocumentationGroupCreate"),
|
|
6584
6597
|
output: SuccessPayload
|
|
6585
6598
|
});
|
|
6586
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6587
|
-
type:
|
|
6599
|
+
var DTODocumentationTabCreateActionOutputV2 = z232.object({
|
|
6600
|
+
type: z232.literal("DocumentationTabCreate"),
|
|
6588
6601
|
output: SuccessPayload
|
|
6589
6602
|
});
|
|
6590
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6591
|
-
type:
|
|
6603
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z232.object({
|
|
6604
|
+
type: z232.literal("DocumentationGroupUpdate"),
|
|
6592
6605
|
output: SuccessPayload
|
|
6593
6606
|
});
|
|
6594
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6595
|
-
type:
|
|
6607
|
+
var DTODocumentationGroupMoveActionOutputV2 = z232.object({
|
|
6608
|
+
type: z232.literal("DocumentationGroupMove"),
|
|
6596
6609
|
output: SuccessPayload
|
|
6597
6610
|
});
|
|
6598
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6599
|
-
type:
|
|
6611
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z232.object({
|
|
6612
|
+
type: z232.literal("DocumentationGroupDuplicate"),
|
|
6600
6613
|
output: SuccessPayload
|
|
6601
6614
|
});
|
|
6602
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6603
|
-
type:
|
|
6615
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z232.object({
|
|
6616
|
+
type: z232.literal("DocumentationGroupDelete"),
|
|
6604
6617
|
output: SuccessPayload
|
|
6605
6618
|
});
|
|
6606
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6607
|
-
type:
|
|
6619
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z232.object({
|
|
6620
|
+
type: z232.literal("DocumentationTabGroupDelete"),
|
|
6608
6621
|
output: SuccessPayload
|
|
6609
6622
|
});
|
|
6610
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6611
|
-
type:
|
|
6623
|
+
var DTODocumentationGroupCreateActionInputV2 = z232.object({
|
|
6624
|
+
type: z232.literal("DocumentationGroupCreate"),
|
|
6612
6625
|
input: DTOCreateDocumentationGroupInput
|
|
6613
6626
|
});
|
|
6614
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6615
|
-
type:
|
|
6627
|
+
var DTODocumentationTabCreateActionInputV2 = z232.object({
|
|
6628
|
+
type: z232.literal("DocumentationTabCreate"),
|
|
6616
6629
|
input: DTOCreateDocumentationTabInput
|
|
6617
6630
|
});
|
|
6618
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6619
|
-
type:
|
|
6631
|
+
var DTODocumentationGroupUpdateActionInputV2 = z232.object({
|
|
6632
|
+
type: z232.literal("DocumentationGroupUpdate"),
|
|
6620
6633
|
input: DTOUpdateDocumentationGroupInput
|
|
6621
6634
|
});
|
|
6622
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6623
|
-
type:
|
|
6635
|
+
var DTODocumentationGroupMoveActionInputV2 = z232.object({
|
|
6636
|
+
type: z232.literal("DocumentationGroupMove"),
|
|
6624
6637
|
input: DTOMoveDocumentationGroupInput
|
|
6625
6638
|
});
|
|
6626
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6627
|
-
type:
|
|
6639
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z232.object({
|
|
6640
|
+
type: z232.literal("DocumentationGroupDuplicate"),
|
|
6628
6641
|
input: DTODuplicateDocumentationGroupInput
|
|
6629
6642
|
});
|
|
6630
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6631
|
-
type:
|
|
6643
|
+
var DTODocumentationGroupDeleteActionInputV2 = z232.object({
|
|
6644
|
+
type: z232.literal("DocumentationGroupDelete"),
|
|
6632
6645
|
input: DTODeleteDocumentationGroupInput
|
|
6633
6646
|
});
|
|
6634
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6635
|
-
type:
|
|
6647
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z232.object({
|
|
6648
|
+
type: z232.literal("DocumentationTabGroupDelete"),
|
|
6636
6649
|
input: DTODeleteDocumentationTabGroupInput
|
|
6637
6650
|
});
|
|
6638
6651
|
|
|
6639
6652
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6640
|
-
import { z as
|
|
6653
|
+
import { z as z234 } from "zod";
|
|
6641
6654
|
|
|
6642
6655
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6643
|
-
import { z as
|
|
6644
|
-
var DocumentationColorV1 =
|
|
6645
|
-
aliasTo:
|
|
6646
|
-
value:
|
|
6656
|
+
import { z as z233 } from "zod";
|
|
6657
|
+
var DocumentationColorV1 = z233.object({
|
|
6658
|
+
aliasTo: z233.string().optional(),
|
|
6659
|
+
value: z233.string().optional()
|
|
6647
6660
|
});
|
|
6648
6661
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6649
6662
|
foregroundColor: true,
|
|
@@ -6652,10 +6665,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6652
6665
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6653
6666
|
backgroundColor: DocumentationColorV1.optional()
|
|
6654
6667
|
});
|
|
6655
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6656
|
-
showSidebar:
|
|
6657
|
-
isPrivate:
|
|
6658
|
-
isHidden:
|
|
6668
|
+
var DTODocumentationItemConfigurationV1 = z233.object({
|
|
6669
|
+
showSidebar: z233.boolean(),
|
|
6670
|
+
isPrivate: z233.boolean(),
|
|
6671
|
+
isHidden: z233.boolean(),
|
|
6659
6672
|
header: DTODocumentationItemHeaderV1
|
|
6660
6673
|
});
|
|
6661
6674
|
|
|
@@ -6669,27 +6682,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6669
6682
|
data: true,
|
|
6670
6683
|
shortPersistentId: true
|
|
6671
6684
|
}).extend({
|
|
6672
|
-
title:
|
|
6673
|
-
isRoot:
|
|
6674
|
-
childrenIds:
|
|
6685
|
+
title: z234.string(),
|
|
6686
|
+
isRoot: z234.boolean(),
|
|
6687
|
+
childrenIds: z234.array(z234.string()),
|
|
6675
6688
|
groupBehavior: DocumentationGroupBehavior,
|
|
6676
|
-
shortPersistentId:
|
|
6677
|
-
type:
|
|
6689
|
+
shortPersistentId: z234.string(),
|
|
6690
|
+
type: z234.literal("Group")
|
|
6678
6691
|
});
|
|
6679
6692
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6680
6693
|
configuration: DTODocumentationItemConfigurationV1
|
|
6681
6694
|
});
|
|
6682
6695
|
|
|
6683
6696
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6684
|
-
import { z as
|
|
6685
|
-
var DTODocumentationHierarchyV2 =
|
|
6686
|
-
pages:
|
|
6697
|
+
import { z as z235 } from "zod";
|
|
6698
|
+
var DTODocumentationHierarchyV2 = z235.object({
|
|
6699
|
+
pages: z235.array(
|
|
6687
6700
|
DTODocumentationPageV2.extend({
|
|
6688
6701
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6689
6702
|
draftState: DTODocumentationDraftState.optional()
|
|
6690
6703
|
})
|
|
6691
6704
|
),
|
|
6692
|
-
groups:
|
|
6705
|
+
groups: z235.array(
|
|
6693
6706
|
DTODocumentationGroupV2.extend({
|
|
6694
6707
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6695
6708
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6698,84 +6711,84 @@ var DTODocumentationHierarchyV2 = z234.object({
|
|
|
6698
6711
|
});
|
|
6699
6712
|
|
|
6700
6713
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6701
|
-
import { z as
|
|
6702
|
-
var SuccessPayload2 =
|
|
6703
|
-
success:
|
|
6714
|
+
import { z as z236 } from "zod";
|
|
6715
|
+
var SuccessPayload2 = z236.object({
|
|
6716
|
+
success: z236.literal(true)
|
|
6704
6717
|
});
|
|
6705
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6706
|
-
type:
|
|
6718
|
+
var DTODocumentationPageCreateActionOutputV2 = z236.object({
|
|
6719
|
+
type: z236.literal("DocumentationPageCreate"),
|
|
6707
6720
|
output: SuccessPayload2
|
|
6708
6721
|
});
|
|
6709
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6710
|
-
type:
|
|
6722
|
+
var DTODocumentationPageUpdateActionOutputV2 = z236.object({
|
|
6723
|
+
type: z236.literal("DocumentationPageUpdate"),
|
|
6711
6724
|
output: SuccessPayload2
|
|
6712
6725
|
});
|
|
6713
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6714
|
-
type:
|
|
6726
|
+
var DTODocumentationPageMoveActionOutputV2 = z236.object({
|
|
6727
|
+
type: z236.literal("DocumentationPageMove"),
|
|
6715
6728
|
output: SuccessPayload2
|
|
6716
6729
|
});
|
|
6717
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6718
|
-
type:
|
|
6730
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z236.object({
|
|
6731
|
+
type: z236.literal("DocumentationPageDuplicate"),
|
|
6719
6732
|
output: SuccessPayload2
|
|
6720
6733
|
});
|
|
6721
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6722
|
-
type:
|
|
6734
|
+
var DTODocumentationPageDeleteActionOutputV2 = z236.object({
|
|
6735
|
+
type: z236.literal("DocumentationPageDelete"),
|
|
6723
6736
|
output: SuccessPayload2
|
|
6724
6737
|
});
|
|
6725
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6726
|
-
type:
|
|
6738
|
+
var DTODocumentationPageRestoreActionOutput = z236.object({
|
|
6739
|
+
type: z236.literal("DocumentationPageRestore"),
|
|
6727
6740
|
output: SuccessPayload2
|
|
6728
6741
|
});
|
|
6729
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6730
|
-
type:
|
|
6742
|
+
var DTODocumentationGroupRestoreActionOutput = z236.object({
|
|
6743
|
+
type: z236.literal("DocumentationGroupRestore"),
|
|
6731
6744
|
output: SuccessPayload2
|
|
6732
6745
|
});
|
|
6733
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6734
|
-
type:
|
|
6746
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z236.object({
|
|
6747
|
+
type: z236.literal("DocumentationPageApprovalStateChange"),
|
|
6735
6748
|
output: SuccessPayload2
|
|
6736
6749
|
});
|
|
6737
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6738
|
-
type:
|
|
6750
|
+
var DTODocumentationPageCreateActionInputV2 = z236.object({
|
|
6751
|
+
type: z236.literal("DocumentationPageCreate"),
|
|
6739
6752
|
input: DTOCreateDocumentationPageInputV2
|
|
6740
6753
|
});
|
|
6741
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6742
|
-
type:
|
|
6754
|
+
var DTODocumentationPageUpdateActionInputV2 = z236.object({
|
|
6755
|
+
type: z236.literal("DocumentationPageUpdate"),
|
|
6743
6756
|
input: DTOUpdateDocumentationPageInputV2
|
|
6744
6757
|
});
|
|
6745
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6746
|
-
type:
|
|
6758
|
+
var DTODocumentationPageMoveActionInputV2 = z236.object({
|
|
6759
|
+
type: z236.literal("DocumentationPageMove"),
|
|
6747
6760
|
input: DTOMoveDocumentationPageInputV2
|
|
6748
6761
|
});
|
|
6749
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6750
|
-
type:
|
|
6762
|
+
var DTODocumentationPageDuplicateActionInputV2 = z236.object({
|
|
6763
|
+
type: z236.literal("DocumentationPageDuplicate"),
|
|
6751
6764
|
input: DTODuplicateDocumentationPageInputV2
|
|
6752
6765
|
});
|
|
6753
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6754
|
-
type:
|
|
6766
|
+
var DTODocumentationPageDeleteActionInputV2 = z236.object({
|
|
6767
|
+
type: z236.literal("DocumentationPageDelete"),
|
|
6755
6768
|
input: DTODeleteDocumentationPageInputV2
|
|
6756
6769
|
});
|
|
6757
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6758
|
-
type:
|
|
6770
|
+
var DTODocumentationPageRestoreActionInput = z236.object({
|
|
6771
|
+
type: z236.literal("DocumentationPageRestore"),
|
|
6759
6772
|
input: DTORestoreDocumentationPageInput
|
|
6760
6773
|
});
|
|
6761
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6762
|
-
type:
|
|
6774
|
+
var DTODocumentationGroupRestoreActionInput = z236.object({
|
|
6775
|
+
type: z236.literal("DocumentationGroupRestore"),
|
|
6763
6776
|
input: DTORestoreDocumentationGroupInput
|
|
6764
6777
|
});
|
|
6765
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6766
|
-
type:
|
|
6778
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z236.object({
|
|
6779
|
+
type: z236.literal("DocumentationPageApprovalStateChange"),
|
|
6767
6780
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6768
6781
|
});
|
|
6769
6782
|
|
|
6770
6783
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6771
|
-
import { z as
|
|
6784
|
+
import { z as z237 } from "zod";
|
|
6772
6785
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6773
|
-
var DTODocumentationPageContentGetResponse =
|
|
6786
|
+
var DTODocumentationPageContentGetResponse = z237.object({
|
|
6774
6787
|
pageContent: DTODocumentationPageContent
|
|
6775
6788
|
});
|
|
6776
6789
|
|
|
6777
6790
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6778
|
-
import { z as
|
|
6791
|
+
import { z as z238 } from "zod";
|
|
6779
6792
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6780
6793
|
data: true,
|
|
6781
6794
|
meta: true,
|
|
@@ -6783,63 +6796,63 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6783
6796
|
sortOrder: true
|
|
6784
6797
|
}).extend({
|
|
6785
6798
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6786
|
-
blocks:
|
|
6787
|
-
title:
|
|
6788
|
-
path:
|
|
6799
|
+
blocks: z238.array(PageBlockV1),
|
|
6800
|
+
title: z238.string(),
|
|
6801
|
+
path: z238.string()
|
|
6789
6802
|
});
|
|
6790
6803
|
|
|
6791
6804
|
// src/api/dto/elements/documentation/structure.ts
|
|
6792
|
-
import { z as
|
|
6793
|
-
var DTODocumentationStructureItemType =
|
|
6794
|
-
var DTODocumentationStructureItemBase =
|
|
6805
|
+
import { z as z239 } from "zod";
|
|
6806
|
+
var DTODocumentationStructureItemType = z239.enum(["Group", "Page"]);
|
|
6807
|
+
var DTODocumentationStructureItemBase = z239.object({
|
|
6795
6808
|
type: DTODocumentationStructureItemType,
|
|
6796
|
-
id:
|
|
6797
|
-
designSystemVersionId:
|
|
6798
|
-
shortPersistentId:
|
|
6799
|
-
persistentId:
|
|
6800
|
-
title:
|
|
6801
|
-
createdAt:
|
|
6802
|
-
updatedAt:
|
|
6809
|
+
id: z239.string(),
|
|
6810
|
+
designSystemVersionId: z239.string(),
|
|
6811
|
+
shortPersistentId: z239.string(),
|
|
6812
|
+
persistentId: z239.string(),
|
|
6813
|
+
title: z239.string(),
|
|
6814
|
+
createdAt: z239.coerce.date(),
|
|
6815
|
+
updatedAt: z239.coerce.date()
|
|
6803
6816
|
});
|
|
6804
6817
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
6805
|
-
type:
|
|
6806
|
-
groupBehavior:
|
|
6807
|
-
childrenIds:
|
|
6808
|
-
isRoot:
|
|
6818
|
+
type: z239.literal(DTODocumentationStructureItemType.enum.Group),
|
|
6819
|
+
groupBehavior: z239.string(),
|
|
6820
|
+
childrenIds: z239.string().array(),
|
|
6821
|
+
isRoot: z239.boolean()
|
|
6809
6822
|
});
|
|
6810
6823
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
6811
|
-
type:
|
|
6812
|
-
path:
|
|
6824
|
+
type: z239.literal(DTODocumentationStructureItemType.enum.Page),
|
|
6825
|
+
path: z239.string()
|
|
6813
6826
|
});
|
|
6814
|
-
var DTODocumentationStructureItem =
|
|
6827
|
+
var DTODocumentationStructureItem = z239.discriminatedUnion("type", [
|
|
6815
6828
|
DTODocumentationStructureGroupItem,
|
|
6816
6829
|
DTODocumentationStructurePageItem
|
|
6817
6830
|
]);
|
|
6818
|
-
var DTODocumentationStructure =
|
|
6819
|
-
items:
|
|
6831
|
+
var DTODocumentationStructure = z239.object({
|
|
6832
|
+
items: z239.array(DTODocumentationStructureItem)
|
|
6820
6833
|
});
|
|
6821
6834
|
|
|
6822
6835
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6823
|
-
import { z as
|
|
6836
|
+
import { z as z240 } from "zod";
|
|
6824
6837
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6825
|
-
var DTOFigmaNodeOrigin =
|
|
6826
|
-
sourceId:
|
|
6827
|
-
fileId:
|
|
6828
|
-
parentName:
|
|
6838
|
+
var DTOFigmaNodeOrigin = z240.object({
|
|
6839
|
+
sourceId: z240.string(),
|
|
6840
|
+
fileId: z240.string().optional(),
|
|
6841
|
+
parentName: z240.string().optional()
|
|
6829
6842
|
});
|
|
6830
|
-
var DTOFigmaNodeData =
|
|
6843
|
+
var DTOFigmaNodeData = z240.object({
|
|
6831
6844
|
// Id of the node in the Figma file
|
|
6832
|
-
figmaNodeId:
|
|
6845
|
+
figmaNodeId: z240.string(),
|
|
6833
6846
|
// Validity
|
|
6834
|
-
isValid:
|
|
6847
|
+
isValid: z240.boolean(),
|
|
6835
6848
|
// Asset data
|
|
6836
|
-
assetId:
|
|
6837
|
-
assetUrl:
|
|
6849
|
+
assetId: z240.string(),
|
|
6850
|
+
assetUrl: z240.string(),
|
|
6838
6851
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6839
6852
|
// Asset metadata
|
|
6840
|
-
assetScale:
|
|
6841
|
-
assetWidth:
|
|
6842
|
-
assetHeight:
|
|
6853
|
+
assetScale: z240.number(),
|
|
6854
|
+
assetWidth: z240.number().optional(),
|
|
6855
|
+
assetHeight: z240.number().optional()
|
|
6843
6856
|
});
|
|
6844
6857
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6845
6858
|
data: true,
|
|
@@ -6848,15 +6861,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6848
6861
|
data: DTOFigmaNodeData,
|
|
6849
6862
|
origin: DTOFigmaNodeOrigin
|
|
6850
6863
|
});
|
|
6851
|
-
var DTOFigmaNodeRenderInput =
|
|
6864
|
+
var DTOFigmaNodeRenderInput = z240.object({
|
|
6852
6865
|
/**
|
|
6853
6866
|
* Id of a design system's data source representing a linked Figma file
|
|
6854
6867
|
*/
|
|
6855
|
-
sourceId:
|
|
6868
|
+
sourceId: z240.string(),
|
|
6856
6869
|
/**
|
|
6857
6870
|
* Id of a node within the Figma file
|
|
6858
6871
|
*/
|
|
6859
|
-
figmaFileNodeId:
|
|
6872
|
+
figmaFileNodeId: z240.string(),
|
|
6860
6873
|
/**
|
|
6861
6874
|
* Format in which the node must be rendered, png by default.
|
|
6862
6875
|
*/
|
|
@@ -6864,97 +6877,97 @@ var DTOFigmaNodeRenderInput = z239.object({
|
|
|
6864
6877
|
});
|
|
6865
6878
|
|
|
6866
6879
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6867
|
-
import { z as
|
|
6868
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6869
|
-
type:
|
|
6870
|
-
figmaNodes:
|
|
6880
|
+
import { z as z241 } from "zod";
|
|
6881
|
+
var DTOFigmaNodeRenderActionOutput = z241.object({
|
|
6882
|
+
type: z241.literal("FigmaNodeRender"),
|
|
6883
|
+
figmaNodes: z241.array(DTOFigmaNode)
|
|
6871
6884
|
});
|
|
6872
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6873
|
-
type:
|
|
6885
|
+
var DTOFigmaNodeRenderActionInput = z241.object({
|
|
6886
|
+
type: z241.literal("FigmaNodeRender"),
|
|
6874
6887
|
input: DTOFigmaNodeRenderInput.array()
|
|
6875
6888
|
});
|
|
6876
6889
|
|
|
6877
6890
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
6878
|
-
import { z as
|
|
6879
|
-
var DTOFrameNodeStructure =
|
|
6880
|
-
id:
|
|
6881
|
-
persistentId:
|
|
6882
|
-
designSystemVersionId:
|
|
6891
|
+
import { z as z242 } from "zod";
|
|
6892
|
+
var DTOFrameNodeStructure = z242.object({
|
|
6893
|
+
id: z242.string(),
|
|
6894
|
+
persistentId: z242.string(),
|
|
6895
|
+
designSystemVersionId: z242.string(),
|
|
6883
6896
|
origin: FigmaFileStructureOrigin,
|
|
6884
6897
|
assetsInFile: FigmaFileStructureStatistics
|
|
6885
6898
|
});
|
|
6886
|
-
var DTOFrameNodeStructureListResponse =
|
|
6899
|
+
var DTOFrameNodeStructureListResponse = z242.object({
|
|
6887
6900
|
structures: DTOFrameNodeStructure.array()
|
|
6888
6901
|
});
|
|
6889
6902
|
|
|
6890
6903
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6891
|
-
import { z as
|
|
6904
|
+
import { z as z243 } from "zod";
|
|
6892
6905
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6893
|
-
var DTOElementPropertyDefinitionOption =
|
|
6894
|
-
id:
|
|
6895
|
-
name:
|
|
6906
|
+
var DTOElementPropertyDefinitionOption = z243.object({
|
|
6907
|
+
id: z243.string(),
|
|
6908
|
+
name: z243.string(),
|
|
6896
6909
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
6897
6910
|
});
|
|
6898
|
-
var DTOElementPropertyDefinition =
|
|
6899
|
-
id:
|
|
6900
|
-
designSystemVersionId:
|
|
6911
|
+
var DTOElementPropertyDefinition = z243.object({
|
|
6912
|
+
id: z243.string(),
|
|
6913
|
+
designSystemVersionId: z243.string(),
|
|
6901
6914
|
meta: DTOObjectMeta,
|
|
6902
|
-
persistentId:
|
|
6915
|
+
persistentId: z243.string(),
|
|
6903
6916
|
type: ElementPropertyTypeSchema,
|
|
6904
6917
|
targetElementType: ElementPropertyTargetType,
|
|
6905
|
-
codeName:
|
|
6906
|
-
options: nullishToOptional(
|
|
6918
|
+
codeName: z243.string().regex(CODE_NAME_REGEX2),
|
|
6919
|
+
options: nullishToOptional(z243.array(DTOElementPropertyDefinitionOption)),
|
|
6907
6920
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6908
|
-
isImmutable:
|
|
6921
|
+
isImmutable: z243.boolean(),
|
|
6909
6922
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
6910
6923
|
});
|
|
6911
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
6912
|
-
definitions:
|
|
6924
|
+
var DTOElementPropertyDefinitionListResponse = z243.object({
|
|
6925
|
+
definitions: z243.array(DTOElementPropertyDefinition)
|
|
6913
6926
|
});
|
|
6914
|
-
var DTOElementPropertyDefinitionResponse =
|
|
6927
|
+
var DTOElementPropertyDefinitionResponse = z243.object({
|
|
6915
6928
|
definition: DTOElementPropertyDefinition
|
|
6916
6929
|
});
|
|
6917
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
6930
|
+
var DTOElementPropertyDefinitionCreatePayload = z243.object({
|
|
6918
6931
|
meta: DTOObjectMeta,
|
|
6919
|
-
persistentId:
|
|
6932
|
+
persistentId: z243.string(),
|
|
6920
6933
|
type: ElementPropertyTypeSchema,
|
|
6921
6934
|
targetElementType: ElementPropertyTargetType,
|
|
6922
|
-
codeName:
|
|
6923
|
-
options: nullishToOptional(
|
|
6935
|
+
codeName: z243.string().regex(CODE_NAME_REGEX2),
|
|
6936
|
+
options: nullishToOptional(z243.array(DTOElementPropertyDefinitionOption)),
|
|
6924
6937
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6925
|
-
columnWidth:
|
|
6938
|
+
columnWidth: z243.number().max(1024).optional()
|
|
6926
6939
|
});
|
|
6927
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
6940
|
+
var DTOElementPropertyDefinitionUpdatePayload = z243.object({
|
|
6928
6941
|
meta: DTOObjectMeta.optional(),
|
|
6929
|
-
codeName:
|
|
6930
|
-
options:
|
|
6942
|
+
codeName: z243.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6943
|
+
options: z243.array(DTOElementPropertyDefinitionOption).optional()
|
|
6931
6944
|
});
|
|
6932
6945
|
|
|
6933
6946
|
// src/api/dto/elements/properties/property-values.ts
|
|
6934
|
-
import { z as
|
|
6935
|
-
var DTOElementPropertyValue =
|
|
6936
|
-
id:
|
|
6937
|
-
designSystemVersionId:
|
|
6938
|
-
definitionId:
|
|
6939
|
-
targetElementId:
|
|
6940
|
-
value:
|
|
6941
|
-
valuePreview:
|
|
6942
|
-
});
|
|
6943
|
-
var DTOElementPropertyValueListResponse =
|
|
6944
|
-
values:
|
|
6945
|
-
});
|
|
6946
|
-
var DTOElementPropertyValueResponse =
|
|
6947
|
+
import { z as z244 } from "zod";
|
|
6948
|
+
var DTOElementPropertyValue = z244.object({
|
|
6949
|
+
id: z244.string(),
|
|
6950
|
+
designSystemVersionId: z244.string(),
|
|
6951
|
+
definitionId: z244.string(),
|
|
6952
|
+
targetElementId: z244.string(),
|
|
6953
|
+
value: z244.union([z244.string(), z244.number(), z244.boolean()]).optional(),
|
|
6954
|
+
valuePreview: z244.string().optional()
|
|
6955
|
+
});
|
|
6956
|
+
var DTOElementPropertyValueListResponse = z244.object({
|
|
6957
|
+
values: z244.array(DTOElementPropertyValue)
|
|
6958
|
+
});
|
|
6959
|
+
var DTOElementPropertyValueResponse = z244.object({
|
|
6947
6960
|
value: DTOElementPropertyValue
|
|
6948
6961
|
});
|
|
6949
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
6950
|
-
definitionId:
|
|
6951
|
-
targetElementId:
|
|
6952
|
-
value:
|
|
6962
|
+
var DTOElementPropertyValueUpsertPaylod = z244.object({
|
|
6963
|
+
definitionId: z244.string(),
|
|
6964
|
+
targetElementId: z244.string(),
|
|
6965
|
+
value: z244.string().or(z244.number()).or(z244.boolean())
|
|
6953
6966
|
});
|
|
6954
6967
|
|
|
6955
6968
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6956
|
-
import { z as
|
|
6957
|
-
var DTOElementActionOutput =
|
|
6969
|
+
import { z as z245 } from "zod";
|
|
6970
|
+
var DTOElementActionOutput = z245.discriminatedUnion("type", [
|
|
6958
6971
|
// Documentation pages
|
|
6959
6972
|
DTODocumentationPageCreateActionOutputV2,
|
|
6960
6973
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6977,7 +6990,7 @@ var DTOElementActionOutput = z244.discriminatedUnion("type", [
|
|
|
6977
6990
|
// Approvals
|
|
6978
6991
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6979
6992
|
]);
|
|
6980
|
-
var DTOElementActionInput =
|
|
6993
|
+
var DTOElementActionInput = z245.discriminatedUnion("type", [
|
|
6981
6994
|
// Documentation pages
|
|
6982
6995
|
DTODocumentationPageCreateActionInputV2,
|
|
6983
6996
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7002,80 +7015,80 @@ var DTOElementActionInput = z244.discriminatedUnion("type", [
|
|
|
7002
7015
|
]);
|
|
7003
7016
|
|
|
7004
7017
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7005
|
-
import { z as
|
|
7006
|
-
var DTOElementsGetTypeFilter =
|
|
7007
|
-
var DTOElementsGetQuerySchema =
|
|
7008
|
-
types:
|
|
7018
|
+
import { z as z246 } from "zod";
|
|
7019
|
+
var DTOElementsGetTypeFilter = z246.enum(["FigmaNode"]);
|
|
7020
|
+
var DTOElementsGetQuerySchema = z246.object({
|
|
7021
|
+
types: z246.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
7009
7022
|
});
|
|
7010
|
-
var DTOElementsGetOutput =
|
|
7011
|
-
figmaNodes:
|
|
7023
|
+
var DTOElementsGetOutput = z246.object({
|
|
7024
|
+
figmaNodes: z246.array(DTOFigmaNode).optional()
|
|
7012
7025
|
});
|
|
7013
7026
|
|
|
7014
7027
|
// src/api/dto/figma-components/assets/download.ts
|
|
7015
|
-
import { z as
|
|
7016
|
-
var DTOAssetRenderConfiguration =
|
|
7017
|
-
prefix:
|
|
7018
|
-
suffix:
|
|
7019
|
-
scale:
|
|
7020
|
-
format:
|
|
7021
|
-
});
|
|
7022
|
-
var DTORenderedAssetFile =
|
|
7023
|
-
assetId:
|
|
7024
|
-
fileName:
|
|
7025
|
-
sourceUrl:
|
|
7028
|
+
import { z as z247 } from "zod";
|
|
7029
|
+
var DTOAssetRenderConfiguration = z247.object({
|
|
7030
|
+
prefix: z247.string().optional(),
|
|
7031
|
+
suffix: z247.string().optional(),
|
|
7032
|
+
scale: z247.enum(["x1", "x2", "x3", "x4"]),
|
|
7033
|
+
format: z247.enum(["png", "pdf", "svg"])
|
|
7034
|
+
});
|
|
7035
|
+
var DTORenderedAssetFile = z247.object({
|
|
7036
|
+
assetId: z247.string(),
|
|
7037
|
+
fileName: z247.string(),
|
|
7038
|
+
sourceUrl: z247.string(),
|
|
7026
7039
|
settings: DTOAssetRenderConfiguration,
|
|
7027
|
-
originalName:
|
|
7040
|
+
originalName: z247.string()
|
|
7028
7041
|
});
|
|
7029
|
-
var DTODownloadAssetsRequest =
|
|
7030
|
-
persistentIds:
|
|
7042
|
+
var DTODownloadAssetsRequest = z247.object({
|
|
7043
|
+
persistentIds: z247.array(z247.string().uuid()).optional(),
|
|
7031
7044
|
settings: DTOAssetRenderConfiguration.array()
|
|
7032
7045
|
});
|
|
7033
|
-
var DTODownloadAssetsResponse =
|
|
7046
|
+
var DTODownloadAssetsResponse = z247.object({
|
|
7034
7047
|
items: DTORenderedAssetFile.array()
|
|
7035
7048
|
});
|
|
7036
7049
|
|
|
7037
7050
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7038
|
-
import { z as
|
|
7039
|
-
var DTOLiveblocksAuthResponse =
|
|
7040
|
-
token:
|
|
7051
|
+
import { z as z248 } from "zod";
|
|
7052
|
+
var DTOLiveblocksAuthResponse = z248.object({
|
|
7053
|
+
token: z248.string()
|
|
7041
7054
|
});
|
|
7042
7055
|
|
|
7043
7056
|
// src/api/dto/themes/override.ts
|
|
7044
|
-
import { z as
|
|
7057
|
+
import { z as z249 } from "zod";
|
|
7045
7058
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7046
|
-
|
|
7047
|
-
tokenPersistentId:
|
|
7059
|
+
z249.object({
|
|
7060
|
+
tokenPersistentId: z249.string(),
|
|
7048
7061
|
origin: ThemeOverrideOrigin.optional()
|
|
7049
7062
|
})
|
|
7050
7063
|
);
|
|
7051
7064
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7052
|
-
|
|
7053
|
-
tokenPersistentId:
|
|
7065
|
+
z249.object({
|
|
7066
|
+
tokenPersistentId: z249.string()
|
|
7054
7067
|
})
|
|
7055
7068
|
);
|
|
7056
7069
|
|
|
7057
7070
|
// src/api/dto/themes/theme.ts
|
|
7058
|
-
import { z as
|
|
7059
|
-
var DTOTheme =
|
|
7060
|
-
id:
|
|
7061
|
-
persistentId:
|
|
7062
|
-
designSystemVersionId:
|
|
7063
|
-
brandId:
|
|
7071
|
+
import { z as z250 } from "zod";
|
|
7072
|
+
var DTOTheme = z250.object({
|
|
7073
|
+
id: z250.string(),
|
|
7074
|
+
persistentId: z250.string(),
|
|
7075
|
+
designSystemVersionId: z250.string(),
|
|
7076
|
+
brandId: z250.string(),
|
|
7064
7077
|
meta: ObjectMeta,
|
|
7065
|
-
codeName:
|
|
7078
|
+
codeName: z250.string(),
|
|
7066
7079
|
overrides: DTOThemeOverride.array()
|
|
7067
7080
|
});
|
|
7068
|
-
var DTOThemeResponse =
|
|
7081
|
+
var DTOThemeResponse = z250.object({
|
|
7069
7082
|
theme: DTOTheme
|
|
7070
7083
|
});
|
|
7071
|
-
var DTOThemeListResponse =
|
|
7084
|
+
var DTOThemeListResponse = z250.object({
|
|
7072
7085
|
themes: DTOTheme.array()
|
|
7073
7086
|
});
|
|
7074
|
-
var DTOThemeCreatePayload =
|
|
7087
|
+
var DTOThemeCreatePayload = z250.object({
|
|
7075
7088
|
meta: ObjectMeta,
|
|
7076
|
-
persistentId:
|
|
7077
|
-
brandId:
|
|
7078
|
-
codeName:
|
|
7089
|
+
persistentId: z250.string(),
|
|
7090
|
+
brandId: z250.string(),
|
|
7091
|
+
codeName: z250.string(),
|
|
7079
7092
|
overrides: DTOThemeOverride.array()
|
|
7080
7093
|
});
|
|
7081
7094
|
|
|
@@ -7206,7 +7219,7 @@ var CodegenEndpoint = class {
|
|
|
7206
7219
|
};
|
|
7207
7220
|
|
|
7208
7221
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
7209
|
-
import { z as
|
|
7222
|
+
import { z as z251 } from "zod";
|
|
7210
7223
|
var BrandsEndpoint = class {
|
|
7211
7224
|
constructor(requestExecutor) {
|
|
7212
7225
|
this.requestExecutor = requestExecutor;
|
|
@@ -7240,7 +7253,7 @@ var BrandsEndpoint = class {
|
|
|
7240
7253
|
});
|
|
7241
7254
|
}
|
|
7242
7255
|
delete(dsId, vId, brandId) {
|
|
7243
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
7256
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z251.any(), {
|
|
7244
7257
|
method: "DELETE"
|
|
7245
7258
|
});
|
|
7246
7259
|
}
|
|
@@ -7394,7 +7407,7 @@ var ImportJobsEndpoint = class {
|
|
|
7394
7407
|
};
|
|
7395
7408
|
|
|
7396
7409
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7397
|
-
import { z as
|
|
7410
|
+
import { z as z252 } from "zod";
|
|
7398
7411
|
var OverridesEndpoint = class {
|
|
7399
7412
|
constructor(requestExecutor) {
|
|
7400
7413
|
this.requestExecutor = requestExecutor;
|
|
@@ -7402,7 +7415,7 @@ var OverridesEndpoint = class {
|
|
|
7402
7415
|
create(dsId, versionId, themeId, body) {
|
|
7403
7416
|
return this.requestExecutor.json(
|
|
7404
7417
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7405
|
-
|
|
7418
|
+
z252.any(),
|
|
7406
7419
|
{
|
|
7407
7420
|
method: "POST",
|
|
7408
7421
|
body
|
|
@@ -7412,7 +7425,7 @@ var OverridesEndpoint = class {
|
|
|
7412
7425
|
};
|
|
7413
7426
|
|
|
7414
7427
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7415
|
-
import { z as
|
|
7428
|
+
import { z as z253 } from "zod";
|
|
7416
7429
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7417
7430
|
constructor(requestExecutor) {
|
|
7418
7431
|
this.requestExecutor = requestExecutor;
|
|
@@ -7440,7 +7453,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7440
7453
|
delete(designSystemId, versionId, defId) {
|
|
7441
7454
|
return this.requestExecutor.json(
|
|
7442
7455
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7443
|
-
|
|
7456
|
+
z253.any(),
|
|
7444
7457
|
{ method: "DELETE" }
|
|
7445
7458
|
);
|
|
7446
7459
|
}
|
|
@@ -7479,7 +7492,7 @@ var VersionStatsEndpoint = class {
|
|
|
7479
7492
|
};
|
|
7480
7493
|
|
|
7481
7494
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
7482
|
-
import { z as
|
|
7495
|
+
import { z as z254 } from "zod";
|
|
7483
7496
|
var ThemesEndpoint = class {
|
|
7484
7497
|
constructor(requestExecutor) {
|
|
7485
7498
|
this.requestExecutor = requestExecutor;
|
|
@@ -7502,7 +7515,7 @@ var ThemesEndpoint = class {
|
|
|
7502
7515
|
});
|
|
7503
7516
|
}
|
|
7504
7517
|
delete(dsId, versionId, themeId) {
|
|
7505
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
7518
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z254.any(), {
|
|
7506
7519
|
method: "DELETE"
|
|
7507
7520
|
});
|
|
7508
7521
|
}
|
|
@@ -7649,7 +7662,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
7649
7662
|
};
|
|
7650
7663
|
|
|
7651
7664
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7652
|
-
import { z as
|
|
7665
|
+
import { z as z256 } from "zod";
|
|
7653
7666
|
|
|
7654
7667
|
// src/api/endpoints/design-system/members.ts
|
|
7655
7668
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -7670,7 +7683,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
7670
7683
|
};
|
|
7671
7684
|
|
|
7672
7685
|
// src/api/endpoints/design-system/sources.ts
|
|
7673
|
-
import { z as
|
|
7686
|
+
import { z as z255 } from "zod";
|
|
7674
7687
|
var DesignSystemSourcesEndpoint = class {
|
|
7675
7688
|
constructor(requestExecutor) {
|
|
7676
7689
|
this.requestExecutor = requestExecutor;
|
|
@@ -7685,7 +7698,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7685
7698
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
7686
7699
|
}
|
|
7687
7700
|
delete(dsId, sourceId) {
|
|
7688
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
7701
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z255.any(), { method: "DELETE" });
|
|
7689
7702
|
}
|
|
7690
7703
|
figmaImport(dsId, payload) {
|
|
7691
7704
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -7720,7 +7733,7 @@ var DesignSystemsEndpoint = class {
|
|
|
7720
7733
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
7721
7734
|
}
|
|
7722
7735
|
delete(dsId) {
|
|
7723
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
7736
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z256.any(), { method: "DELETE" });
|
|
7724
7737
|
}
|
|
7725
7738
|
update(dsId, body) {
|
|
7726
7739
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -7764,7 +7777,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
7764
7777
|
};
|
|
7765
7778
|
|
|
7766
7779
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
7767
|
-
import { z as
|
|
7780
|
+
import { z as z257 } from "zod";
|
|
7768
7781
|
var WorkspaceMembersEndpoint = class {
|
|
7769
7782
|
constructor(requestExecutor) {
|
|
7770
7783
|
this.requestExecutor = requestExecutor;
|
|
@@ -7781,7 +7794,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7781
7794
|
});
|
|
7782
7795
|
}
|
|
7783
7796
|
invite(workspaceId, body) {
|
|
7784
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7797
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z257.any(), { method: "POST", body });
|
|
7785
7798
|
}
|
|
7786
7799
|
delete(workspaceId, userId) {
|
|
7787
7800
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -7791,7 +7804,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7791
7804
|
};
|
|
7792
7805
|
|
|
7793
7806
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
7794
|
-
import { z as
|
|
7807
|
+
import { z as z258 } from "zod";
|
|
7795
7808
|
var WorkspacesEndpoint = class {
|
|
7796
7809
|
constructor(requestExecutor) {
|
|
7797
7810
|
this.requestExecutor = requestExecutor;
|
|
@@ -7814,10 +7827,10 @@ var WorkspacesEndpoint = class {
|
|
|
7814
7827
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
7815
7828
|
}
|
|
7816
7829
|
delete(workspaceId) {
|
|
7817
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7830
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z258.any(), { method: "DELETE" });
|
|
7818
7831
|
}
|
|
7819
7832
|
subscription(workspaceId) {
|
|
7820
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7833
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z258.any(), { method: "GET" });
|
|
7821
7834
|
}
|
|
7822
7835
|
transferOwnership(workspaceId, body) {
|
|
7823
7836
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -7904,9 +7917,9 @@ ${bodyText}`,
|
|
|
7904
7917
|
|
|
7905
7918
|
// src/api/transport/request-executor.ts
|
|
7906
7919
|
import fetch from "node-fetch";
|
|
7907
|
-
import { z as
|
|
7908
|
-
var ResponseWrapper =
|
|
7909
|
-
result:
|
|
7920
|
+
import { z as z259 } from "zod";
|
|
7921
|
+
var ResponseWrapper = z259.object({
|
|
7922
|
+
result: z259.record(z259.any())
|
|
7910
7923
|
});
|
|
7911
7924
|
var RequestExecutor = class {
|
|
7912
7925
|
constructor(testServerConfig) {
|
|
@@ -7981,7 +7994,7 @@ var SupernovaApiClient = class {
|
|
|
7981
7994
|
};
|
|
7982
7995
|
|
|
7983
7996
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7984
|
-
import { z as
|
|
7997
|
+
import { z as z260 } from "zod";
|
|
7985
7998
|
|
|
7986
7999
|
// src/yjs/version-room/base.ts
|
|
7987
8000
|
var VersionRoomBaseYDoc = class {
|
|
@@ -8511,24 +8524,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8511
8524
|
};
|
|
8512
8525
|
|
|
8513
8526
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8514
|
-
var DocumentationHierarchySettings =
|
|
8515
|
-
routingVersion:
|
|
8516
|
-
isDraftFeatureAdopted:
|
|
8517
|
-
isApprovalFeatureEnabled:
|
|
8518
|
-
approvalRequiredForPublishing:
|
|
8527
|
+
var DocumentationHierarchySettings = z260.object({
|
|
8528
|
+
routingVersion: z260.string(),
|
|
8529
|
+
isDraftFeatureAdopted: z260.boolean(),
|
|
8530
|
+
isApprovalFeatureEnabled: z260.boolean(),
|
|
8531
|
+
approvalRequiredForPublishing: z260.boolean()
|
|
8519
8532
|
});
|
|
8520
8533
|
function yjsToDocumentationHierarchy(doc) {
|
|
8521
8534
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
8522
8535
|
}
|
|
8523
8536
|
|
|
8524
8537
|
// src/yjs/design-system-content/item-configuration.ts
|
|
8525
|
-
import { z as
|
|
8526
|
-
var DTODocumentationPageRoomHeaderData =
|
|
8527
|
-
title:
|
|
8538
|
+
import { z as z261 } from "zod";
|
|
8539
|
+
var DTODocumentationPageRoomHeaderData = z261.object({
|
|
8540
|
+
title: z261.string(),
|
|
8528
8541
|
configuration: DTODocumentationItemConfigurationV2
|
|
8529
8542
|
});
|
|
8530
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
8531
|
-
title:
|
|
8543
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z261.object({
|
|
8544
|
+
title: z261.string().optional(),
|
|
8532
8545
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
8533
8546
|
});
|
|
8534
8547
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -8579,7 +8592,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
8579
8592
|
header: rawHeader
|
|
8580
8593
|
};
|
|
8581
8594
|
return {
|
|
8582
|
-
title:
|
|
8595
|
+
title: z261.string().parse(title),
|
|
8583
8596
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
8584
8597
|
};
|
|
8585
8598
|
}
|
|
@@ -8589,9 +8602,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
8589
8602
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
8590
8603
|
|
|
8591
8604
|
// src/yjs/docs-editor/model/page.ts
|
|
8592
|
-
import { z as
|
|
8593
|
-
var DocumentationPageEditorModel =
|
|
8594
|
-
blocks:
|
|
8605
|
+
import { z as z262 } from "zod";
|
|
8606
|
+
var DocumentationPageEditorModel = z262.object({
|
|
8607
|
+
blocks: z262.array(DocumentationPageContentItem)
|
|
8595
8608
|
});
|
|
8596
8609
|
|
|
8597
8610
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -12112,7 +12125,7 @@ var blocks = [
|
|
|
12112
12125
|
|
|
12113
12126
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
12114
12127
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
12115
|
-
import { z as
|
|
12128
|
+
import { z as z263 } from "zod";
|
|
12116
12129
|
function yDocToPage(yDoc, definitions) {
|
|
12117
12130
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
12118
12131
|
}
|
|
@@ -12192,7 +12205,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
12192
12205
|
return null;
|
|
12193
12206
|
return {
|
|
12194
12207
|
id,
|
|
12195
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
12208
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z263.string()) ?? "",
|
|
12196
12209
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
12197
12210
|
};
|
|
12198
12211
|
}
|
|
@@ -12227,7 +12240,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
12227
12240
|
});
|
|
12228
12241
|
}
|
|
12229
12242
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
12230
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
12243
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z263.string());
|
|
12231
12244
|
if (!definitionId) {
|
|
12232
12245
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
12233
12246
|
return [];
|
|
@@ -12269,7 +12282,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
12269
12282
|
if (!id)
|
|
12270
12283
|
return null;
|
|
12271
12284
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12272
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
12285
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z263.string().optional()));
|
|
12273
12286
|
return {
|
|
12274
12287
|
id,
|
|
12275
12288
|
type: "Block",
|
|
@@ -12397,10 +12410,10 @@ function parseRichTextAttribute(mark) {
|
|
|
12397
12410
|
return null;
|
|
12398
12411
|
}
|
|
12399
12412
|
function parseProsemirrorLink(mark) {
|
|
12400
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
12413
|
+
const href = getProsemirrorAttribute(mark, "href", z263.string().optional());
|
|
12401
12414
|
if (!href)
|
|
12402
12415
|
return null;
|
|
12403
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
12416
|
+
const target = getProsemirrorAttribute(mark, "target", z263.string().optional());
|
|
12404
12417
|
const openInNewTab = target === "_blank";
|
|
12405
12418
|
if (href.startsWith("@")) {
|
|
12406
12419
|
return {
|
|
@@ -12419,10 +12432,10 @@ function parseProsemirrorLink(mark) {
|
|
|
12419
12432
|
}
|
|
12420
12433
|
}
|
|
12421
12434
|
function parseProsemirrorCommentHighlight(mark) {
|
|
12422
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
12435
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z263.string().optional());
|
|
12423
12436
|
if (!highlightId)
|
|
12424
12437
|
return null;
|
|
12425
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
12438
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z263.boolean().optional()) ?? false;
|
|
12426
12439
|
return {
|
|
12427
12440
|
type: "Comment",
|
|
12428
12441
|
commentHighlightId: highlightId,
|
|
@@ -12434,7 +12447,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
12434
12447
|
if (!id)
|
|
12435
12448
|
return null;
|
|
12436
12449
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12437
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
12450
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z263.boolean().optional()) !== false;
|
|
12438
12451
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
12439
12452
|
if (!tableChild) {
|
|
12440
12453
|
return emptyTable(id, variantId, 0);
|
|
@@ -12481,9 +12494,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
12481
12494
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
12482
12495
|
if (!id)
|
|
12483
12496
|
return null;
|
|
12484
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
12497
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z263.string().optional());
|
|
12485
12498
|
let columnWidth;
|
|
12486
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
12499
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z263.array(z263.number()).nullish());
|
|
12487
12500
|
if (columnWidthArray) {
|
|
12488
12501
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
12489
12502
|
}
|
|
@@ -12521,7 +12534,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12521
12534
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
12522
12535
|
};
|
|
12523
12536
|
case "image":
|
|
12524
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12537
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z263.string());
|
|
12525
12538
|
if (!items)
|
|
12526
12539
|
return null;
|
|
12527
12540
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -12641,7 +12654,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
12641
12654
|
);
|
|
12642
12655
|
}
|
|
12643
12656
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
12644
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12657
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z263.string());
|
|
12645
12658
|
if (!itemsString)
|
|
12646
12659
|
return null;
|
|
12647
12660
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -12653,18 +12666,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
12653
12666
|
}
|
|
12654
12667
|
function parseAppearance(prosemirrorNode) {
|
|
12655
12668
|
let appearance = {};
|
|
12656
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
12669
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z263.string().optional());
|
|
12657
12670
|
if (rawAppearanceString) {
|
|
12658
12671
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
12659
12672
|
if (parsedAppearance.success) {
|
|
12660
12673
|
appearance = parsedAppearance.data;
|
|
12661
12674
|
}
|
|
12662
12675
|
}
|
|
12663
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
12676
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z263.number().optional());
|
|
12664
12677
|
if (columns) {
|
|
12665
12678
|
appearance.numberOfColumns = columns;
|
|
12666
12679
|
}
|
|
12667
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
12680
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z263.string().optional());
|
|
12668
12681
|
if (backgroundColor) {
|
|
12669
12682
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
12670
12683
|
if (parsedColor.success) {
|
|
@@ -12759,13 +12772,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
12759
12772
|
}
|
|
12760
12773
|
}
|
|
12761
12774
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
12762
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12775
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z263.string());
|
|
12763
12776
|
if (!id)
|
|
12764
12777
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
12765
12778
|
return id;
|
|
12766
12779
|
}
|
|
12767
12780
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
12768
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12781
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z263.string()));
|
|
12769
12782
|
}
|
|
12770
12783
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
12771
12784
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|