@supernova-studio/client 0.58.12 → 0.58.13
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.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1387 -1378
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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,120 @@ 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:
|
|
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()
|
|
5590
5599
|
});
|
|
5591
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5592
|
-
brandId:
|
|
5600
|
+
var DTODesignSystemVersionStatsQuery = z194.object({
|
|
5601
|
+
brandId: z194.string().optional()
|
|
5593
5602
|
});
|
|
5594
5603
|
|
|
5595
5604
|
// src/api/dto/design-systems/version.ts
|
|
5596
|
-
import { z as
|
|
5605
|
+
import { z as z206 } from "zod";
|
|
5597
5606
|
|
|
5598
5607
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5599
|
-
import { z as
|
|
5608
|
+
import { z as z195 } from "zod";
|
|
5600
5609
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5601
5610
|
id: true,
|
|
5602
5611
|
workspaceId: true,
|
|
@@ -5608,40 +5617,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5608
5617
|
}).extend({
|
|
5609
5618
|
meta: ObjectMeta.partial().optional()
|
|
5610
5619
|
});
|
|
5611
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5620
|
+
var DTODesignSystemUpdateAccessModeInput = z195.object({
|
|
5612
5621
|
accessMode: DesignSystemAccessMode,
|
|
5613
|
-
retain:
|
|
5614
|
-
userIds:
|
|
5615
|
-
inviteIds:
|
|
5622
|
+
retain: z195.object({
|
|
5623
|
+
userIds: z195.string().array(),
|
|
5624
|
+
inviteIds: z195.string().array()
|
|
5616
5625
|
}).optional()
|
|
5617
5626
|
});
|
|
5618
5627
|
|
|
5619
5628
|
// src/api/payloads/design-systems/version.ts
|
|
5620
|
-
import { z as
|
|
5621
|
-
var ObjectMeta2 =
|
|
5622
|
-
name:
|
|
5623
|
-
description:
|
|
5629
|
+
import { z as z196 } from "zod";
|
|
5630
|
+
var ObjectMeta2 = z196.object({
|
|
5631
|
+
name: z196.string().max(150).optional(),
|
|
5632
|
+
description: z196.string().max(2e3).optional()
|
|
5624
5633
|
});
|
|
5625
5634
|
function validateDesignSystemVersion(version) {
|
|
5626
5635
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5627
5636
|
return urlCompliantRegex.test(version);
|
|
5628
5637
|
}
|
|
5629
|
-
var DTOCreateVersionInput =
|
|
5638
|
+
var DTOCreateVersionInput = z196.object({
|
|
5630
5639
|
meta: ObjectMeta2,
|
|
5631
|
-
version:
|
|
5640
|
+
version: z196.string().refine(validateDesignSystemVersion, {
|
|
5632
5641
|
message: "Invalid semantic versioning format"
|
|
5633
5642
|
}),
|
|
5634
|
-
changeLog:
|
|
5643
|
+
changeLog: z196.string().optional()
|
|
5635
5644
|
});
|
|
5636
|
-
var DTOUpdateVersionInput =
|
|
5645
|
+
var DTOUpdateVersionInput = z196.object({
|
|
5637
5646
|
meta: ObjectMeta2,
|
|
5638
|
-
version:
|
|
5647
|
+
version: z196.string(),
|
|
5639
5648
|
// required for PUT, but not editable
|
|
5640
|
-
changeLog:
|
|
5649
|
+
changeLog: z196.string()
|
|
5641
5650
|
});
|
|
5642
5651
|
|
|
5643
5652
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5644
|
-
import { z as
|
|
5653
|
+
import { z as z197 } from "zod";
|
|
5645
5654
|
|
|
5646
5655
|
// src/api/dto/documentation/block-definition.ts
|
|
5647
5656
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5653,63 +5662,63 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5653
5662
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5654
5663
|
|
|
5655
5664
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5656
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5657
|
-
definitions:
|
|
5665
|
+
var DTOGetBlockDefinitionsOutput = z197.object({
|
|
5666
|
+
definitions: z197.array(DTOPageBlockDefinition)
|
|
5658
5667
|
});
|
|
5659
5668
|
|
|
5660
5669
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5661
|
-
import { z as
|
|
5662
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5663
|
-
environment:
|
|
5670
|
+
import { z as z198 } from "zod";
|
|
5671
|
+
var DTODocumentationPublishTypeQueryParams = z198.object({
|
|
5672
|
+
environment: z198.enum(["Live", "Preview"])
|
|
5664
5673
|
});
|
|
5665
5674
|
|
|
5666
5675
|
// src/api/payloads/export/pipeline.ts
|
|
5667
|
-
import { z as
|
|
5676
|
+
import { z as z200 } from "zod";
|
|
5668
5677
|
|
|
5669
5678
|
// src/api/dto/export/exporter-property.ts
|
|
5670
|
-
import { z as
|
|
5671
|
-
var PrimitiveValue =
|
|
5672
|
-
var ArrayValue =
|
|
5673
|
-
var ObjectValue =
|
|
5679
|
+
import { z as z199 } from "zod";
|
|
5680
|
+
var PrimitiveValue = z199.number().or(z199.boolean()).or(z199.string());
|
|
5681
|
+
var ArrayValue = z199.array(z199.string());
|
|
5682
|
+
var ObjectValue = z199.record(z199.string());
|
|
5674
5683
|
var DTOExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
|
|
5675
|
-
var DTOExporterPropertyType =
|
|
5676
|
-
var PropertyDefinitionBase =
|
|
5677
|
-
key:
|
|
5678
|
-
title:
|
|
5679
|
-
description:
|
|
5684
|
+
var DTOExporterPropertyType = z199.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5685
|
+
var PropertyDefinitionBase = z199.object({
|
|
5686
|
+
key: z199.string(),
|
|
5687
|
+
title: z199.string(),
|
|
5688
|
+
description: z199.string()
|
|
5680
5689
|
});
|
|
5681
5690
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
|
|
5682
|
-
type:
|
|
5683
|
-
options:
|
|
5684
|
-
default:
|
|
5691
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Enum),
|
|
5692
|
+
options: z199.string().array(),
|
|
5693
|
+
default: z199.string()
|
|
5685
5694
|
});
|
|
5686
5695
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
|
|
5687
|
-
type:
|
|
5688
|
-
default:
|
|
5696
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
5697
|
+
default: z199.boolean()
|
|
5689
5698
|
});
|
|
5690
5699
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
|
|
5691
|
-
type:
|
|
5692
|
-
default:
|
|
5700
|
+
type: z199.literal(DTOExporterPropertyType.Enum.String),
|
|
5701
|
+
default: z199.string()
|
|
5693
5702
|
});
|
|
5694
5703
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
|
|
5695
|
-
type:
|
|
5696
|
-
default:
|
|
5704
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Number),
|
|
5705
|
+
default: z199.number()
|
|
5697
5706
|
});
|
|
5698
5707
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
|
|
5699
|
-
type:
|
|
5708
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Array),
|
|
5700
5709
|
default: ArrayValue
|
|
5701
5710
|
});
|
|
5702
5711
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
|
|
5703
|
-
type:
|
|
5712
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Object),
|
|
5704
5713
|
default: ObjectValue,
|
|
5705
|
-
allowedKeys:
|
|
5706
|
-
options:
|
|
5714
|
+
allowedKeys: z199.object({
|
|
5715
|
+
options: z199.string().array()
|
|
5707
5716
|
}).optional(),
|
|
5708
|
-
allowedValues:
|
|
5709
|
-
options:
|
|
5717
|
+
allowedValues: z199.object({
|
|
5718
|
+
options: z199.string().array()
|
|
5710
5719
|
}).optional()
|
|
5711
5720
|
});
|
|
5712
|
-
var DTOExporterPropertyDefinition =
|
|
5721
|
+
var DTOExporterPropertyDefinition = z199.discriminatedUnion("type", [
|
|
5713
5722
|
DTOExporterPropertyDefinitionEnum,
|
|
5714
5723
|
DTOExporterPropertyDefinitionBoolean,
|
|
5715
5724
|
DTOExporterPropertyDefinitionString,
|
|
@@ -5717,55 +5726,55 @@ var DTOExporterPropertyDefinition = z198.discriminatedUnion("type", [
|
|
|
5717
5726
|
DTOExporterPropertyDefinitionArray,
|
|
5718
5727
|
DTOExporterPropertyDefinitionObject
|
|
5719
5728
|
]);
|
|
5720
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
5729
|
+
var DTOExporterPropertyDefinitionsResponse = z199.object({
|
|
5721
5730
|
properties: DTOExporterPropertyDefinition.array()
|
|
5722
5731
|
});
|
|
5723
|
-
var DTOExporterPropertyDefinitionValueMap =
|
|
5732
|
+
var DTOExporterPropertyDefinitionValueMap = z199.record(DTOExporterPropertyDefinitionValue);
|
|
5724
5733
|
|
|
5725
5734
|
// src/api/payloads/export/pipeline.ts
|
|
5726
|
-
var DTOPipelineCreateBody =
|
|
5727
|
-
name:
|
|
5728
|
-
exporterId:
|
|
5729
|
-
designSystemId:
|
|
5730
|
-
isEnabled:
|
|
5735
|
+
var DTOPipelineCreateBody = z200.object({
|
|
5736
|
+
name: z200.string(),
|
|
5737
|
+
exporterId: z200.string(),
|
|
5738
|
+
designSystemId: z200.string(),
|
|
5739
|
+
isEnabled: z200.boolean(),
|
|
5731
5740
|
eventType: PipelineEventType,
|
|
5732
|
-
brandPersistentId:
|
|
5733
|
-
themePersistentId:
|
|
5734
|
-
themePersistentIds:
|
|
5741
|
+
brandPersistentId: z200.string().optional(),
|
|
5742
|
+
themePersistentId: z200.string().optional(),
|
|
5743
|
+
themePersistentIds: z200.string().array().optional(),
|
|
5735
5744
|
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
5736
5745
|
destination: PipelineDestinationType.optional(),
|
|
5737
5746
|
gitQuery: GitObjectsQuery,
|
|
5738
|
-
destinations:
|
|
5747
|
+
destinations: z200.object({
|
|
5739
5748
|
s3: ExporterDestinationS3.nullish(),
|
|
5740
5749
|
azure: ExporterDestinationAzure.nullish(),
|
|
5741
5750
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5742
5751
|
github: ExporterDestinationGithub.nullish(),
|
|
5743
5752
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5744
5753
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5745
|
-
webhookUrl:
|
|
5754
|
+
webhookUrl: z200.string().nullish()
|
|
5746
5755
|
})
|
|
5747
5756
|
});
|
|
5748
5757
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5749
|
-
id:
|
|
5758
|
+
id: z200.string()
|
|
5750
5759
|
});
|
|
5751
|
-
var DTOPipelineTriggerBody =
|
|
5752
|
-
designSystemVersionId:
|
|
5760
|
+
var DTOPipelineTriggerBody = z200.object({
|
|
5761
|
+
designSystemVersionId: z200.string()
|
|
5753
5762
|
});
|
|
5754
5763
|
|
|
5755
5764
|
// src/api/payloads/liveblocks/auth.ts
|
|
5756
|
-
import { z as
|
|
5757
|
-
var DTOLiveblocksAuthRequest =
|
|
5758
|
-
room:
|
|
5765
|
+
import { z as z201 } from "zod";
|
|
5766
|
+
var DTOLiveblocksAuthRequest = z201.object({
|
|
5767
|
+
room: z201.string().optional()
|
|
5759
5768
|
});
|
|
5760
5769
|
|
|
5761
5770
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5762
|
-
import { z as
|
|
5763
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5771
|
+
import { z as z202 } from "zod";
|
|
5772
|
+
var DTOUpdateUserNotificationSettingsPayload = z202.object({
|
|
5764
5773
|
notificationSettings: UserNotificationSettings
|
|
5765
5774
|
});
|
|
5766
|
-
var DTOUserNotificationSettingsResponse =
|
|
5767
|
-
userId:
|
|
5768
|
-
workspaceId:
|
|
5775
|
+
var DTOUserNotificationSettingsResponse = z202.object({
|
|
5776
|
+
userId: z202.string(),
|
|
5777
|
+
workspaceId: z202.string(),
|
|
5769
5778
|
notificationSettings: UserNotificationSettings
|
|
5770
5779
|
});
|
|
5771
5780
|
|
|
@@ -5773,13 +5782,13 @@ var DTOUserNotificationSettingsResponse = z201.object({
|
|
|
5773
5782
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5774
5783
|
|
|
5775
5784
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
5776
|
-
import { z as
|
|
5777
|
-
var DTOTransferOwnershipPayload =
|
|
5778
|
-
newOwnerId:
|
|
5785
|
+
import { z as z203 } from "zod";
|
|
5786
|
+
var DTOTransferOwnershipPayload = z203.object({
|
|
5787
|
+
newOwnerId: z203.string()
|
|
5779
5788
|
});
|
|
5780
5789
|
|
|
5781
5790
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5782
|
-
import { z as
|
|
5791
|
+
import { z as z204 } from "zod";
|
|
5783
5792
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5784
5793
|
function validateSsoPayload(ssoPayload) {
|
|
5785
5794
|
const keys = [];
|
|
@@ -5802,21 +5811,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5802
5811
|
keys
|
|
5803
5812
|
};
|
|
5804
5813
|
}
|
|
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 =
|
|
5814
|
+
var NpmRegistryInput = z204.object({
|
|
5815
|
+
enabledScopes: z204.array(z204.string()),
|
|
5816
|
+
customRegistryUrl: z204.string().optional(),
|
|
5817
|
+
bypassProxy: z204.boolean().optional(),
|
|
5818
|
+
npmProxyRegistryConfigId: z204.string().optional(),
|
|
5819
|
+
npmProxyVersion: z204.number().optional(),
|
|
5820
|
+
registryType: z204.string(),
|
|
5821
|
+
authType: z204.string(),
|
|
5822
|
+
authHeaderName: z204.string(),
|
|
5823
|
+
authHeaderValue: z204.string(),
|
|
5824
|
+
accessToken: z204.string(),
|
|
5825
|
+
username: z204.string(),
|
|
5826
|
+
password: z204.string()
|
|
5827
|
+
});
|
|
5828
|
+
var WorkspaceConfigurationPayload = z204.object({
|
|
5820
5829
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5821
5830
|
sso: SsoProvider.partial().optional(),
|
|
5822
5831
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5824,218 +5833,218 @@ var WorkspaceConfigurationPayload = z203.object({
|
|
|
5824
5833
|
});
|
|
5825
5834
|
|
|
5826
5835
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5827
|
-
import { z as
|
|
5828
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5836
|
+
import { z as z205 } from "zod";
|
|
5837
|
+
var DTOWorkspaceIntegrationOauthInput = z205.object({
|
|
5829
5838
|
type: IntegrationType
|
|
5830
5839
|
});
|
|
5831
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5832
|
-
userId:
|
|
5840
|
+
var DTOWorkspaceIntegrationPATInput = z205.object({
|
|
5841
|
+
userId: z205.string(),
|
|
5833
5842
|
type: IntegrationType,
|
|
5834
5843
|
token: IntegrationToken
|
|
5835
5844
|
});
|
|
5836
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5837
|
-
organization:
|
|
5845
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z205.object({
|
|
5846
|
+
organization: z205.string().optional(),
|
|
5838
5847
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5839
|
-
project:
|
|
5848
|
+
project: z205.string().optional(),
|
|
5840
5849
|
// Only for Bitbucket and Azure
|
|
5841
|
-
repository:
|
|
5850
|
+
repository: z205.string().optional(),
|
|
5842
5851
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5843
|
-
branch:
|
|
5852
|
+
branch: z205.string().optional(),
|
|
5844
5853
|
// For all providers, useful for PR creations.
|
|
5845
|
-
user:
|
|
5854
|
+
user: z205.string().optional()
|
|
5846
5855
|
// Only for Gitlab User Repositories
|
|
5847
5856
|
});
|
|
5848
5857
|
|
|
5849
5858
|
// src/api/dto/design-systems/version.ts
|
|
5850
|
-
var DTODesignSystemVersion =
|
|
5851
|
-
id:
|
|
5852
|
-
createdAt:
|
|
5859
|
+
var DTODesignSystemVersion = z206.object({
|
|
5860
|
+
id: z206.string(),
|
|
5861
|
+
createdAt: z206.coerce.date(),
|
|
5853
5862
|
meta: ObjectMeta,
|
|
5854
|
-
version:
|
|
5855
|
-
isReadonly:
|
|
5856
|
-
changeLog:
|
|
5857
|
-
designSystemId:
|
|
5863
|
+
version: z206.string(),
|
|
5864
|
+
isReadonly: z206.boolean(),
|
|
5865
|
+
changeLog: z206.string(),
|
|
5866
|
+
designSystemId: z206.string()
|
|
5858
5867
|
});
|
|
5859
|
-
var DTODesignSystemVersionsListResponse =
|
|
5860
|
-
designSystemVersions:
|
|
5868
|
+
var DTODesignSystemVersionsListResponse = z206.object({
|
|
5869
|
+
designSystemVersions: z206.array(DTODesignSystemVersion)
|
|
5861
5870
|
});
|
|
5862
|
-
var DTODesignSystemVersionGetResponse =
|
|
5871
|
+
var DTODesignSystemVersionGetResponse = z206.object({
|
|
5863
5872
|
designSystemVersion: DTODesignSystemVersion
|
|
5864
5873
|
});
|
|
5865
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5874
|
+
var DTODesignSystemVersionCreationResponse = z206.object({
|
|
5866
5875
|
meta: ObjectMeta,
|
|
5867
|
-
version:
|
|
5868
|
-
changeLog:
|
|
5869
|
-
isReadOnly:
|
|
5870
|
-
designSystemId:
|
|
5871
|
-
jobId:
|
|
5872
|
-
});
|
|
5873
|
-
var VersionSQSPayload =
|
|
5874
|
-
jobId:
|
|
5875
|
-
designSystemId:
|
|
5876
|
+
version: z206.string(),
|
|
5877
|
+
changeLog: z206.string(),
|
|
5878
|
+
isReadOnly: z206.boolean(),
|
|
5879
|
+
designSystemId: z206.string(),
|
|
5880
|
+
jobId: z206.string()
|
|
5881
|
+
});
|
|
5882
|
+
var VersionSQSPayload = z206.object({
|
|
5883
|
+
jobId: z206.string(),
|
|
5884
|
+
designSystemId: z206.string(),
|
|
5876
5885
|
input: DTOCreateVersionInput
|
|
5877
5886
|
});
|
|
5878
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5879
|
-
jobs:
|
|
5887
|
+
var DTODesignSystemVersionJobsResponse = z206.object({
|
|
5888
|
+
jobs: z206.array(VersionCreationJob)
|
|
5880
5889
|
});
|
|
5881
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5890
|
+
var DTODesignSystemVersionJobStatusResponse = z206.object({
|
|
5882
5891
|
job: VersionCreationJob
|
|
5883
5892
|
});
|
|
5884
5893
|
|
|
5885
5894
|
// src/api/dto/design-systems/view.ts
|
|
5886
|
-
import { z as
|
|
5887
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5888
|
-
id:
|
|
5889
|
-
persistentId:
|
|
5890
|
-
width:
|
|
5895
|
+
import { z as z207 } from "zod";
|
|
5896
|
+
var DTOElementViewColumnSharedAttributes = z207.object({
|
|
5897
|
+
id: z207.string(),
|
|
5898
|
+
persistentId: z207.string(),
|
|
5899
|
+
width: z207.number()
|
|
5891
5900
|
});
|
|
5892
5901
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5893
|
-
type:
|
|
5902
|
+
type: z207.literal("BaseProperty"),
|
|
5894
5903
|
basePropertyType: ElementViewBaseColumnType
|
|
5895
5904
|
});
|
|
5896
5905
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5897
|
-
type:
|
|
5898
|
-
propertyDefinitionId:
|
|
5906
|
+
type: z207.literal("PropertyDefinition"),
|
|
5907
|
+
propertyDefinitionId: z207.string()
|
|
5899
5908
|
});
|
|
5900
5909
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5901
|
-
type:
|
|
5902
|
-
themeId:
|
|
5910
|
+
type: z207.literal("Theme"),
|
|
5911
|
+
themeId: z207.string()
|
|
5903
5912
|
});
|
|
5904
|
-
var DTOElementViewColumn =
|
|
5913
|
+
var DTOElementViewColumn = z207.discriminatedUnion("type", [
|
|
5905
5914
|
DTOElementViewBasePropertyColumn,
|
|
5906
5915
|
DTOElementViewPropertyDefinitionColumn,
|
|
5907
5916
|
DTOElementViewThemeColumn
|
|
5908
5917
|
]);
|
|
5909
|
-
var DTOElementView =
|
|
5918
|
+
var DTOElementView = z207.object({
|
|
5910
5919
|
meta: ObjectMeta,
|
|
5911
|
-
persistentId:
|
|
5920
|
+
persistentId: z207.string(),
|
|
5912
5921
|
targetElementType: ElementPropertyTargetType,
|
|
5913
|
-
id:
|
|
5914
|
-
isDefault:
|
|
5915
|
-
columns:
|
|
5922
|
+
id: z207.string(),
|
|
5923
|
+
isDefault: z207.boolean(),
|
|
5924
|
+
columns: z207.array(DTOElementViewColumn)
|
|
5916
5925
|
});
|
|
5917
|
-
var DTOElementViewsListResponse =
|
|
5918
|
-
elementDataViews:
|
|
5926
|
+
var DTOElementViewsListResponse = z207.object({
|
|
5927
|
+
elementDataViews: z207.array(DTOElementView)
|
|
5919
5928
|
});
|
|
5920
5929
|
|
|
5921
5930
|
// src/api/dto/workspaces/git.ts
|
|
5922
|
-
import { z as
|
|
5923
|
-
var DTOGitOrganization =
|
|
5924
|
-
id:
|
|
5925
|
-
name:
|
|
5926
|
-
url:
|
|
5927
|
-
slug:
|
|
5931
|
+
import { z as z208 } from "zod";
|
|
5932
|
+
var DTOGitOrganization = z208.object({
|
|
5933
|
+
id: z208.string(),
|
|
5934
|
+
name: z208.string(),
|
|
5935
|
+
url: z208.string(),
|
|
5936
|
+
slug: z208.string()
|
|
5928
5937
|
});
|
|
5929
|
-
var DTOGitProject =
|
|
5930
|
-
id:
|
|
5931
|
-
name:
|
|
5932
|
-
url:
|
|
5933
|
-
slug:
|
|
5938
|
+
var DTOGitProject = z208.object({
|
|
5939
|
+
id: z208.string(),
|
|
5940
|
+
name: z208.string(),
|
|
5941
|
+
url: z208.string(),
|
|
5942
|
+
slug: z208.string()
|
|
5934
5943
|
});
|
|
5935
|
-
var DTOGitRepository =
|
|
5936
|
-
id:
|
|
5937
|
-
name:
|
|
5938
|
-
url:
|
|
5939
|
-
slug:
|
|
5940
|
-
defaultBranch:
|
|
5944
|
+
var DTOGitRepository = z208.object({
|
|
5945
|
+
id: z208.string(),
|
|
5946
|
+
name: z208.string(),
|
|
5947
|
+
url: z208.string(),
|
|
5948
|
+
slug: z208.string(),
|
|
5949
|
+
defaultBranch: z208.string().optional()
|
|
5941
5950
|
});
|
|
5942
|
-
var DTOGitBranch =
|
|
5943
|
-
name:
|
|
5944
|
-
lastCommitId:
|
|
5951
|
+
var DTOGitBranch = z208.object({
|
|
5952
|
+
name: z208.string(),
|
|
5953
|
+
lastCommitId: z208.string()
|
|
5945
5954
|
});
|
|
5946
5955
|
|
|
5947
5956
|
// src/api/dto/workspaces/integrations.ts
|
|
5948
|
-
import { z as
|
|
5957
|
+
import { z as z209 } from "zod";
|
|
5949
5958
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5950
5959
|
accessToken: true,
|
|
5951
5960
|
refreshToken: true
|
|
5952
5961
|
});
|
|
5953
|
-
var DTOIntegration =
|
|
5954
|
-
id:
|
|
5955
|
-
workspaceId:
|
|
5962
|
+
var DTOIntegration = z209.object({
|
|
5963
|
+
id: z209.string(),
|
|
5964
|
+
workspaceId: z209.string(),
|
|
5956
5965
|
type: ExtendedIntegrationType,
|
|
5957
|
-
createdAt:
|
|
5958
|
-
integrationCredentials:
|
|
5959
|
-
integrationDesignSystems:
|
|
5966
|
+
createdAt: z209.coerce.date(),
|
|
5967
|
+
integrationCredentials: z209.array(DTOIntegrationCredentials).optional(),
|
|
5968
|
+
integrationDesignSystems: z209.array(IntegrationDesignSystem).optional()
|
|
5960
5969
|
});
|
|
5961
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5962
|
-
url:
|
|
5970
|
+
var DTOIntegrationOAuthGetResponse = z209.object({
|
|
5971
|
+
url: z209.string()
|
|
5963
5972
|
});
|
|
5964
|
-
var DTOIntegrationPostResponse =
|
|
5973
|
+
var DTOIntegrationPostResponse = z209.object({
|
|
5965
5974
|
integration: DTOIntegration
|
|
5966
5975
|
});
|
|
5967
|
-
var DTOIntegrationsGetListResponse =
|
|
5976
|
+
var DTOIntegrationsGetListResponse = z209.object({
|
|
5968
5977
|
integrations: DTOIntegration.array()
|
|
5969
5978
|
});
|
|
5970
5979
|
|
|
5971
5980
|
// src/api/dto/workspaces/invitations.ts
|
|
5972
|
-
import { z as
|
|
5973
|
-
var DTOWorkspaceInvitationInput =
|
|
5974
|
-
email:
|
|
5981
|
+
import { z as z210 } from "zod";
|
|
5982
|
+
var DTOWorkspaceInvitationInput = z210.object({
|
|
5983
|
+
email: z210.string().email(),
|
|
5975
5984
|
role: WorkspaceRoleSchema
|
|
5976
5985
|
});
|
|
5977
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5986
|
+
var DTOWorkspaceInvitationsListInput = z210.object({
|
|
5978
5987
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5979
|
-
designSystemId:
|
|
5988
|
+
designSystemId: z210.string().optional()
|
|
5980
5989
|
});
|
|
5981
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5990
|
+
var DTOWorkspaceInvitationsResponse = z210.object({
|
|
5982
5991
|
invitations: WorkspaceInvitation.array()
|
|
5983
5992
|
});
|
|
5984
|
-
var DTOWorkspaceInviteUpdate =
|
|
5993
|
+
var DTOWorkspaceInviteUpdate = z210.object({
|
|
5985
5994
|
role: WorkspaceRoleSchema
|
|
5986
5995
|
});
|
|
5987
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5996
|
+
var DTOWorkspaceInvitationUpdateResponse = z210.object({
|
|
5988
5997
|
invitation: WorkspaceInvitation
|
|
5989
5998
|
});
|
|
5990
5999
|
|
|
5991
6000
|
// src/api/dto/workspaces/membership.ts
|
|
5992
|
-
import { z as
|
|
6001
|
+
import { z as z213 } from "zod";
|
|
5993
6002
|
|
|
5994
6003
|
// src/api/dto/workspaces/workspace.ts
|
|
5995
|
-
import { z as
|
|
6004
|
+
import { z as z212 } from "zod";
|
|
5996
6005
|
|
|
5997
6006
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5998
|
-
import { z as
|
|
6007
|
+
import { z as z211 } from "zod";
|
|
5999
6008
|
var DTONpmRegistryConfigConstants = {
|
|
6000
6009
|
passwordPlaceholder: "redacted"
|
|
6001
6010
|
};
|
|
6002
|
-
var DTONpmRegistryConfig =
|
|
6011
|
+
var DTONpmRegistryConfig = z211.object({
|
|
6003
6012
|
// Registry basic configuration
|
|
6004
6013
|
registryType: NpmRegistryType,
|
|
6005
|
-
registryUrl:
|
|
6006
|
-
customRegistryUrl:
|
|
6014
|
+
registryUrl: z211.string(),
|
|
6015
|
+
customRegistryUrl: z211.string().optional(),
|
|
6007
6016
|
// URL of Supernova NPM packages proxy
|
|
6008
|
-
proxyUrl:
|
|
6017
|
+
proxyUrl: z211.string(),
|
|
6009
6018
|
// Auth configuration
|
|
6010
6019
|
authType: NpmRegistryAuthType,
|
|
6011
|
-
accessToken:
|
|
6012
|
-
username:
|
|
6013
|
-
password:
|
|
6020
|
+
accessToken: z211.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6021
|
+
username: z211.string().optional(),
|
|
6022
|
+
password: z211.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6014
6023
|
// NPM package scopes for whih the proxy should be enabled
|
|
6015
|
-
enabledScopes:
|
|
6024
|
+
enabledScopes: z211.array(z211.string()),
|
|
6016
6025
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6017
6026
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6018
|
-
bypassProxy:
|
|
6027
|
+
bypassProxy: z211.boolean()
|
|
6019
6028
|
});
|
|
6020
6029
|
|
|
6021
6030
|
// src/api/dto/workspaces/workspace.ts
|
|
6022
6031
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6023
|
-
var DTOWorkspace =
|
|
6024
|
-
id:
|
|
6032
|
+
var DTOWorkspace = z212.object({
|
|
6033
|
+
id: z212.string(),
|
|
6025
6034
|
profile: DTOWorkspaceProfile,
|
|
6026
6035
|
subscription: Subscription,
|
|
6027
6036
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6028
6037
|
});
|
|
6029
|
-
var DTOWorkspaceCreateInput =
|
|
6030
|
-
name:
|
|
6038
|
+
var DTOWorkspaceCreateInput = z212.object({
|
|
6039
|
+
name: z212.string()
|
|
6031
6040
|
});
|
|
6032
|
-
var DTOWorkspaceResponse =
|
|
6041
|
+
var DTOWorkspaceResponse = z212.object({
|
|
6033
6042
|
workspace: DTOWorkspace
|
|
6034
6043
|
});
|
|
6035
6044
|
|
|
6036
6045
|
// src/api/dto/workspaces/membership.ts
|
|
6037
|
-
var DTOWorkspaceRole =
|
|
6038
|
-
var DTOUserWorkspaceMembership =
|
|
6046
|
+
var DTOWorkspaceRole = z213.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6047
|
+
var DTOUserWorkspaceMembership = z213.object({
|
|
6039
6048
|
// Workspace the user is a member of
|
|
6040
6049
|
workspace: DTOWorkspace,
|
|
6041
6050
|
// Assigned role the user has in the workspace
|
|
@@ -6045,26 +6054,26 @@ var DTOUserWorkspaceMembership = z212.object({
|
|
|
6045
6054
|
// when a workspace's subscription is downgraded to free tier
|
|
6046
6055
|
effectiveRole: DTOWorkspaceRole
|
|
6047
6056
|
});
|
|
6048
|
-
var DTOWorkspaceMember =
|
|
6057
|
+
var DTOWorkspaceMember = z213.object({
|
|
6049
6058
|
user: User,
|
|
6050
6059
|
role: WorkspaceRoleSchema,
|
|
6051
6060
|
effectiveRole: WorkspaceRoleSchema
|
|
6052
6061
|
});
|
|
6053
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6054
|
-
membership:
|
|
6062
|
+
var DTOUserWorkspaceMembershipsResponse = z213.object({
|
|
6063
|
+
membership: z213.array(DTOUserWorkspaceMembership)
|
|
6055
6064
|
});
|
|
6056
|
-
var DTOWorkspaceMembersListResponse =
|
|
6057
|
-
members:
|
|
6065
|
+
var DTOWorkspaceMembersListResponse = z213.object({
|
|
6066
|
+
members: z213.array(DTOWorkspaceMember)
|
|
6058
6067
|
});
|
|
6059
6068
|
|
|
6060
6069
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6061
|
-
var DTOAppBootstrapDataQuery =
|
|
6062
|
-
preferredWorkspaceId:
|
|
6063
|
-
preferredDesignSystemId:
|
|
6064
|
-
preferredVersionId:
|
|
6065
|
-
preferredBrandId:
|
|
6070
|
+
var DTOAppBootstrapDataQuery = z214.object({
|
|
6071
|
+
preferredWorkspaceId: z214.string().optional(),
|
|
6072
|
+
preferredDesignSystemId: z214.string().optional(),
|
|
6073
|
+
preferredVersionId: z214.string().optional(),
|
|
6074
|
+
preferredBrandId: z214.string().optional()
|
|
6066
6075
|
});
|
|
6067
|
-
var DTOAppBootstrapDataResponse =
|
|
6076
|
+
var DTOAppBootstrapDataResponse = z214.object({
|
|
6068
6077
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6069
6078
|
designSystem: DTODesignSystem.optional(),
|
|
6070
6079
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6072,88 +6081,88 @@ var DTOAppBootstrapDataResponse = z213.object({
|
|
|
6072
6081
|
});
|
|
6073
6082
|
|
|
6074
6083
|
// src/api/dto/collections/token-collection.ts
|
|
6075
|
-
import { z as
|
|
6076
|
-
var DTOTokenCollection =
|
|
6077
|
-
id:
|
|
6078
|
-
persistentId:
|
|
6079
|
-
designSystemVersionId:
|
|
6084
|
+
import { z as z215 } from "zod";
|
|
6085
|
+
var DTOTokenCollection = z215.object({
|
|
6086
|
+
id: z215.string(),
|
|
6087
|
+
persistentId: z215.string(),
|
|
6088
|
+
designSystemVersionId: z215.string(),
|
|
6080
6089
|
meta: ObjectMeta,
|
|
6081
6090
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6082
|
-
elementPropertyOptionId:
|
|
6083
|
-
createdAt:
|
|
6084
|
-
updatedAt:
|
|
6091
|
+
elementPropertyOptionId: z215.string(),
|
|
6092
|
+
createdAt: z215.coerce.date(),
|
|
6093
|
+
updatedAt: z215.coerce.date(),
|
|
6085
6094
|
origin: CollectionOrigin.optional()
|
|
6086
6095
|
});
|
|
6087
|
-
var DTOTokenCollectionsListReponse =
|
|
6096
|
+
var DTOTokenCollectionsListReponse = z215.object({
|
|
6088
6097
|
collections: DTOTokenCollection.array()
|
|
6089
6098
|
});
|
|
6090
6099
|
|
|
6091
6100
|
// src/api/dto/design-tokens/design-token.ts
|
|
6092
|
-
import { z as
|
|
6101
|
+
import { z as z216 } from "zod";
|
|
6093
6102
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6094
|
-
|
|
6095
|
-
id:
|
|
6096
|
-
persistentId:
|
|
6097
|
-
designSystemVersionId:
|
|
6103
|
+
z216.object({
|
|
6104
|
+
id: z216.string(),
|
|
6105
|
+
persistentId: z216.string(),
|
|
6106
|
+
designSystemVersionId: z216.string(),
|
|
6098
6107
|
meta: ObjectMeta,
|
|
6099
6108
|
originStyle: DesignTokenOrigin.optional(),
|
|
6100
|
-
brandId:
|
|
6101
|
-
collectionId:
|
|
6102
|
-
updatedAt:
|
|
6109
|
+
brandId: z216.string(),
|
|
6110
|
+
collectionId: z216.string().optional(),
|
|
6111
|
+
updatedAt: z216.coerce.date()
|
|
6103
6112
|
})
|
|
6104
6113
|
);
|
|
6105
|
-
var DTODesignTokenListResponse =
|
|
6114
|
+
var DTODesignTokenListResponse = z216.object({
|
|
6106
6115
|
tokens: DTODesignToken.array()
|
|
6107
6116
|
});
|
|
6108
|
-
var DTODesignTokenResponse =
|
|
6117
|
+
var DTODesignTokenResponse = z216.object({
|
|
6109
6118
|
token: DTODesignToken
|
|
6110
6119
|
});
|
|
6111
|
-
var DTODesignTokenGroup =
|
|
6112
|
-
id:
|
|
6120
|
+
var DTODesignTokenGroup = z216.object({
|
|
6121
|
+
id: z216.string(),
|
|
6113
6122
|
tokenType: DesignTokenType,
|
|
6114
|
-
persistentId:
|
|
6115
|
-
isRoot:
|
|
6116
|
-
brandId:
|
|
6123
|
+
persistentId: z216.string(),
|
|
6124
|
+
isRoot: z216.boolean(),
|
|
6125
|
+
brandId: z216.string(),
|
|
6117
6126
|
meta: ObjectMeta,
|
|
6118
|
-
childrenIds:
|
|
6127
|
+
childrenIds: z216.string().array()
|
|
6119
6128
|
});
|
|
6120
|
-
var DTODesignTokenGroupListResponse =
|
|
6129
|
+
var DTODesignTokenGroupListResponse = z216.object({
|
|
6121
6130
|
groups: DTODesignTokenGroup.array()
|
|
6122
6131
|
});
|
|
6123
|
-
var DTODesignTokenGroupResponse =
|
|
6132
|
+
var DTODesignTokenGroupResponse = z216.object({
|
|
6124
6133
|
group: DTODesignTokenGroup
|
|
6125
6134
|
});
|
|
6126
6135
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6127
|
-
|
|
6128
|
-
persistentId:
|
|
6136
|
+
z216.object({
|
|
6137
|
+
persistentId: z216.string(),
|
|
6129
6138
|
meta: ObjectMeta,
|
|
6130
|
-
brandId:
|
|
6131
|
-
groupPersistentId:
|
|
6139
|
+
brandId: z216.string(),
|
|
6140
|
+
groupPersistentId: z216.string().optional()
|
|
6132
6141
|
})
|
|
6133
6142
|
);
|
|
6134
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6135
|
-
persistentId:
|
|
6143
|
+
var DTODesignTokenGroupCreatePayload = z216.object({
|
|
6144
|
+
persistentId: z216.string(),
|
|
6136
6145
|
meta: ObjectMeta,
|
|
6137
|
-
brandId:
|
|
6138
|
-
parentId:
|
|
6146
|
+
brandId: z216.string(),
|
|
6147
|
+
parentId: z216.string().optional(),
|
|
6139
6148
|
tokenType: DesignTokenType,
|
|
6140
|
-
childrenIds:
|
|
6149
|
+
childrenIds: z216.string().array()
|
|
6141
6150
|
});
|
|
6142
6151
|
|
|
6143
6152
|
// src/api/dto/documentation/anchor.ts
|
|
6144
|
-
import { z as
|
|
6153
|
+
import { z as z217 } from "zod";
|
|
6145
6154
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6146
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6147
|
-
anchors:
|
|
6155
|
+
var DTOGetDocumentationPageAnchorsResponse = z217.object({
|
|
6156
|
+
anchors: z217.array(DTODocumentationPageAnchor)
|
|
6148
6157
|
});
|
|
6149
6158
|
|
|
6150
6159
|
// src/api/dto/documentation/approvals.ts
|
|
6151
|
-
import { z as
|
|
6160
|
+
import { z as z218 } from "zod";
|
|
6152
6161
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
6153
|
-
var DTODocumentationGroupApprovalState =
|
|
6154
|
-
persistentId:
|
|
6155
|
-
groupId:
|
|
6156
|
-
designSystemVersionId:
|
|
6162
|
+
var DTODocumentationGroupApprovalState = z218.object({
|
|
6163
|
+
persistentId: z218.string(),
|
|
6164
|
+
groupId: z218.string(),
|
|
6165
|
+
designSystemVersionId: z218.string(),
|
|
6157
6166
|
approvalState: DocumentationPageApprovalState
|
|
6158
6167
|
});
|
|
6159
6168
|
|
|
@@ -6161,68 +6170,68 @@ var DTODocumentationGroupApprovalState = z217.object({
|
|
|
6161
6170
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6162
6171
|
|
|
6163
6172
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6164
|
-
import { z as
|
|
6173
|
+
import { z as z223 } from "zod";
|
|
6165
6174
|
|
|
6166
6175
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6167
|
-
import { z as
|
|
6176
|
+
import { z as z222 } from "zod";
|
|
6168
6177
|
|
|
6169
6178
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6170
|
-
import { z as
|
|
6179
|
+
import { z as z220 } from "zod";
|
|
6171
6180
|
|
|
6172
6181
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6173
|
-
import { z as
|
|
6182
|
+
import { z as z219 } from "zod";
|
|
6174
6183
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6175
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6176
|
-
showSidebar:
|
|
6177
|
-
isPrivate:
|
|
6178
|
-
isHidden:
|
|
6184
|
+
var DTODocumentationItemConfigurationV2 = z219.object({
|
|
6185
|
+
showSidebar: z219.boolean(),
|
|
6186
|
+
isPrivate: z219.boolean(),
|
|
6187
|
+
isHidden: z219.boolean(),
|
|
6179
6188
|
header: DTODocumentationItemHeaderV2
|
|
6180
6189
|
});
|
|
6181
6190
|
|
|
6182
6191
|
// 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:
|
|
6192
|
+
var DTODocumentationDraftChangeType = z220.enum(["Created", "Updated", "Deleted"]);
|
|
6193
|
+
var DTODocumentationDraftStateCreated = z220.object({
|
|
6194
|
+
changeType: z220.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6195
|
+
});
|
|
6196
|
+
var DTODocumentationDraftStateUpdated = z220.object({
|
|
6197
|
+
changeType: z220.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6198
|
+
changes: z220.object({
|
|
6199
|
+
previousTitle: z220.string().optional(),
|
|
6191
6200
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6192
|
-
previousContentHash:
|
|
6201
|
+
previousContentHash: z220.string().optional()
|
|
6193
6202
|
})
|
|
6194
6203
|
});
|
|
6195
|
-
var DTODocumentationDraftStateDeleted =
|
|
6196
|
-
changeType:
|
|
6197
|
-
deletedAt:
|
|
6198
|
-
deletedByUserId:
|
|
6204
|
+
var DTODocumentationDraftStateDeleted = z220.object({
|
|
6205
|
+
changeType: z220.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6206
|
+
deletedAt: z220.coerce.date(),
|
|
6207
|
+
deletedByUserId: z220.string()
|
|
6199
6208
|
});
|
|
6200
|
-
var DTODocumentationDraftState =
|
|
6209
|
+
var DTODocumentationDraftState = z220.discriminatedUnion("changeType", [
|
|
6201
6210
|
DTODocumentationDraftStateCreated,
|
|
6202
6211
|
DTODocumentationDraftStateUpdated,
|
|
6203
6212
|
DTODocumentationDraftStateDeleted
|
|
6204
6213
|
]);
|
|
6205
6214
|
|
|
6206
6215
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6207
|
-
import { z as
|
|
6208
|
-
var DTODocumentationPublishMetadata =
|
|
6209
|
-
lastPublishedByUserId:
|
|
6210
|
-
lastPublishedAt:
|
|
6216
|
+
import { z as z221 } from "zod";
|
|
6217
|
+
var DTODocumentationPublishMetadata = z221.object({
|
|
6218
|
+
lastPublishedByUserId: z221.string(),
|
|
6219
|
+
lastPublishedAt: z221.coerce.date()
|
|
6211
6220
|
});
|
|
6212
6221
|
|
|
6213
6222
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6214
|
-
var DTODocumentationPageV2 =
|
|
6215
|
-
id:
|
|
6216
|
-
persistentId:
|
|
6217
|
-
designSystemVersionId:
|
|
6218
|
-
title:
|
|
6223
|
+
var DTODocumentationPageV2 = z222.object({
|
|
6224
|
+
id: z222.string(),
|
|
6225
|
+
persistentId: z222.string(),
|
|
6226
|
+
designSystemVersionId: z222.string(),
|
|
6227
|
+
title: z222.string(),
|
|
6219
6228
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6220
|
-
shortPersistentId:
|
|
6221
|
-
slug:
|
|
6222
|
-
userSlug:
|
|
6223
|
-
createdAt:
|
|
6224
|
-
updatedAt:
|
|
6225
|
-
path:
|
|
6229
|
+
shortPersistentId: z222.string(),
|
|
6230
|
+
slug: z222.string().optional(),
|
|
6231
|
+
userSlug: z222.string().optional(),
|
|
6232
|
+
createdAt: z222.coerce.date(),
|
|
6233
|
+
updatedAt: z222.coerce.date(),
|
|
6234
|
+
path: z222.string(),
|
|
6226
6235
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6227
6236
|
draftState: DTODocumentationDraftState.optional(),
|
|
6228
6237
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6230,218 +6239,218 @@ var DTODocumentationPageV2 = z221.object({
|
|
|
6230
6239
|
/** Defines the approval state of the documentation page */
|
|
6231
6240
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6232
6241
|
// Backward compatibility
|
|
6233
|
-
type:
|
|
6242
|
+
type: z222.literal("Page")
|
|
6234
6243
|
});
|
|
6235
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6244
|
+
var DTOCreateDocumentationPageInputV2 = z222.object({
|
|
6236
6245
|
// Identifier
|
|
6237
|
-
persistentId:
|
|
6246
|
+
persistentId: z222.string(),
|
|
6238
6247
|
// Page properties
|
|
6239
|
-
title:
|
|
6248
|
+
title: z222.string(),
|
|
6240
6249
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6241
6250
|
// Page placement properties
|
|
6242
|
-
parentPersistentId:
|
|
6243
|
-
afterPersistentId:
|
|
6251
|
+
parentPersistentId: z222.string(),
|
|
6252
|
+
afterPersistentId: z222.string().nullish()
|
|
6244
6253
|
});
|
|
6245
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6254
|
+
var DTOUpdateDocumentationPageInputV2 = z222.object({
|
|
6246
6255
|
// Identifier of the group to update
|
|
6247
|
-
id:
|
|
6256
|
+
id: z222.string(),
|
|
6248
6257
|
// Page properties
|
|
6249
|
-
title:
|
|
6258
|
+
title: z222.string().optional(),
|
|
6250
6259
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6251
6260
|
});
|
|
6252
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6261
|
+
var DTOMoveDocumentationPageInputV2 = z222.object({
|
|
6253
6262
|
// Identifier of the group to update
|
|
6254
|
-
id:
|
|
6263
|
+
id: z222.string(),
|
|
6255
6264
|
// Page placement properties
|
|
6256
|
-
parentPersistentId:
|
|
6257
|
-
afterPersistentId:
|
|
6265
|
+
parentPersistentId: z222.string(),
|
|
6266
|
+
afterPersistentId: z222.string().nullish()
|
|
6258
6267
|
});
|
|
6259
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6268
|
+
var DTODuplicateDocumentationPageInputV2 = z222.object({
|
|
6260
6269
|
// Identifier of the page to duplicate from
|
|
6261
|
-
id:
|
|
6270
|
+
id: z222.string(),
|
|
6262
6271
|
// New page persistent id
|
|
6263
|
-
persistentId:
|
|
6272
|
+
persistentId: z222.string(),
|
|
6264
6273
|
// Page placement properties
|
|
6265
|
-
parentPersistentId:
|
|
6266
|
-
afterPersistentId:
|
|
6274
|
+
parentPersistentId: z222.string(),
|
|
6275
|
+
afterPersistentId: z222.string().nullish()
|
|
6267
6276
|
});
|
|
6268
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6277
|
+
var DTODeleteDocumentationPageInputV2 = z222.object({
|
|
6269
6278
|
// Identifier
|
|
6270
|
-
id:
|
|
6279
|
+
id: z222.string()
|
|
6271
6280
|
});
|
|
6272
|
-
var DTORestoreDocumentationPageInput =
|
|
6273
|
-
persistentId:
|
|
6274
|
-
snapshotId:
|
|
6281
|
+
var DTORestoreDocumentationPageInput = z222.object({
|
|
6282
|
+
persistentId: z222.string(),
|
|
6283
|
+
snapshotId: z222.string().optional()
|
|
6275
6284
|
});
|
|
6276
|
-
var DTORestoreDocumentationGroupInput =
|
|
6277
|
-
persistentId:
|
|
6278
|
-
snapshotId:
|
|
6285
|
+
var DTORestoreDocumentationGroupInput = z222.object({
|
|
6286
|
+
persistentId: z222.string(),
|
|
6287
|
+
snapshotId: z222.string().optional()
|
|
6279
6288
|
});
|
|
6280
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6281
|
-
persistentId:
|
|
6289
|
+
var DTODocumentationPageApprovalStateChangeInput = z222.object({
|
|
6290
|
+
persistentId: z222.string(),
|
|
6282
6291
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6283
6292
|
});
|
|
6284
6293
|
|
|
6285
6294
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6286
|
-
var DTODocumentationPageSnapshot =
|
|
6287
|
-
id:
|
|
6288
|
-
designSystemVersionId:
|
|
6289
|
-
createdAt:
|
|
6290
|
-
updatedAt:
|
|
6295
|
+
var DTODocumentationPageSnapshot = z223.object({
|
|
6296
|
+
id: z223.string(),
|
|
6297
|
+
designSystemVersionId: z223.string(),
|
|
6298
|
+
createdAt: z223.string(),
|
|
6299
|
+
updatedAt: z223.string(),
|
|
6291
6300
|
documentationPage: DTODocumentationPageV2,
|
|
6292
|
-
pageContentHash:
|
|
6301
|
+
pageContentHash: z223.string(),
|
|
6293
6302
|
reason: DesignElementSnapshotReason
|
|
6294
6303
|
});
|
|
6295
6304
|
|
|
6296
6305
|
// src/api/dto/documentation/link-preview.ts
|
|
6297
|
-
import { z as
|
|
6298
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6306
|
+
import { z as z224 } from "zod";
|
|
6307
|
+
var DTODocumentationLinkPreviewResponse = z224.object({
|
|
6299
6308
|
linkPreview: DocumentationLinkPreview
|
|
6300
6309
|
});
|
|
6301
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6302
|
-
url:
|
|
6303
|
-
documentationItemPersistentId:
|
|
6310
|
+
var DTODocumentationLinkPreviewRequest = z224.object({
|
|
6311
|
+
url: z224.string().optional(),
|
|
6312
|
+
documentationItemPersistentId: z224.string().optional()
|
|
6304
6313
|
});
|
|
6305
6314
|
|
|
6306
6315
|
// src/api/dto/documentation/publish.ts
|
|
6307
|
-
import { z as
|
|
6316
|
+
import { z as z228 } from "zod";
|
|
6308
6317
|
|
|
6309
6318
|
// 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:
|
|
6319
|
+
import { z as z225 } from "zod";
|
|
6320
|
+
var DTOExporterType = z225.enum(["documentation", "code"]);
|
|
6321
|
+
var DTOExporterSource = z225.enum(["git", "upload"]);
|
|
6322
|
+
var DTOExporterMembershipRole = z225.enum(["Owner", "OwnerArchived", "User"]);
|
|
6323
|
+
var DTOExporterListQuery = z225.object({
|
|
6324
|
+
limit: z225.coerce.number().optional()
|
|
6325
|
+
});
|
|
6326
|
+
var DTOExporter = z225.object({
|
|
6327
|
+
id: z225.string(),
|
|
6328
|
+
name: z225.string(),
|
|
6329
|
+
isPrivate: z225.boolean(),
|
|
6321
6330
|
exporterType: DTOExporterType,
|
|
6322
|
-
isDefaultDocumentationExporter:
|
|
6323
|
-
iconURL:
|
|
6331
|
+
isDefaultDocumentationExporter: z225.boolean(),
|
|
6332
|
+
iconURL: z225.string().optional(),
|
|
6324
6333
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6325
6334
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
6326
6335
|
customBlocks: PulsarCustomBlock.array(),
|
|
6327
|
-
blockVariants:
|
|
6328
|
-
usesBrands:
|
|
6329
|
-
usesThemes:
|
|
6336
|
+
blockVariants: z225.record(z225.string(), PulsarContributionVariant.array()),
|
|
6337
|
+
usesBrands: z225.boolean(),
|
|
6338
|
+
usesThemes: z225.boolean(),
|
|
6330
6339
|
source: DTOExporterSource,
|
|
6331
|
-
gitUrl: nullishToOptional(
|
|
6332
|
-
gitBranch: nullishToOptional(
|
|
6333
|
-
gitDirectory: nullishToOptional(
|
|
6340
|
+
gitUrl: nullishToOptional(z225.string()),
|
|
6341
|
+
gitBranch: nullishToOptional(z225.string()),
|
|
6342
|
+
gitDirectory: nullishToOptional(z225.string())
|
|
6334
6343
|
});
|
|
6335
|
-
var DTOExporterMembership =
|
|
6336
|
-
workspaceId:
|
|
6337
|
-
exporterId:
|
|
6344
|
+
var DTOExporterMembership = z225.object({
|
|
6345
|
+
workspaceId: z225.string(),
|
|
6346
|
+
exporterId: z225.string(),
|
|
6338
6347
|
role: DTOExporterMembershipRole
|
|
6339
6348
|
});
|
|
6340
|
-
var DTOExporterCreateOutput =
|
|
6349
|
+
var DTOExporterCreateOutput = z225.object({
|
|
6341
6350
|
exporter: DTOExporter,
|
|
6342
6351
|
membership: DTOExporterMembership
|
|
6343
6352
|
});
|
|
6344
|
-
var DTOExporterListResponse =
|
|
6353
|
+
var DTOExporterListResponse = z225.object({
|
|
6345
6354
|
exporters: DTOExporter.array(),
|
|
6346
6355
|
membership: DTOExporterMembership.array()
|
|
6347
6356
|
});
|
|
6348
|
-
var DTOExporterGitProviderEnum =
|
|
6349
|
-
var DTOExporterCreateInput =
|
|
6350
|
-
url:
|
|
6357
|
+
var DTOExporterGitProviderEnum = z225.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6358
|
+
var DTOExporterCreateInput = z225.object({
|
|
6359
|
+
url: z225.string(),
|
|
6351
6360
|
provider: DTOExporterGitProviderEnum
|
|
6352
6361
|
});
|
|
6353
|
-
var DTOExporterUpdateInput =
|
|
6354
|
-
url:
|
|
6362
|
+
var DTOExporterUpdateInput = z225.object({
|
|
6363
|
+
url: z225.string().optional()
|
|
6355
6364
|
});
|
|
6356
6365
|
|
|
6357
6366
|
// src/api/dto/export/filter.ts
|
|
6358
6367
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6359
6368
|
|
|
6360
6369
|
// src/api/dto/export/job.ts
|
|
6361
|
-
import { z as
|
|
6362
|
-
var DTOExportJobCreatedBy =
|
|
6363
|
-
userId:
|
|
6364
|
-
userName:
|
|
6370
|
+
import { z as z226 } from "zod";
|
|
6371
|
+
var DTOExportJobCreatedBy = z226.object({
|
|
6372
|
+
userId: z226.string(),
|
|
6373
|
+
userName: z226.string()
|
|
6365
6374
|
});
|
|
6366
|
-
var DTOExportJobDesignSystemPreview =
|
|
6367
|
-
id:
|
|
6375
|
+
var DTOExportJobDesignSystemPreview = z226.object({
|
|
6376
|
+
id: z226.string(),
|
|
6368
6377
|
meta: ObjectMeta
|
|
6369
6378
|
});
|
|
6370
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6371
|
-
id:
|
|
6379
|
+
var DTOExportJobDesignSystemVersionPreview = z226.object({
|
|
6380
|
+
id: z226.string(),
|
|
6372
6381
|
meta: ObjectMeta,
|
|
6373
|
-
version:
|
|
6374
|
-
isReadonly:
|
|
6382
|
+
version: z226.string(),
|
|
6383
|
+
isReadonly: z226.boolean()
|
|
6375
6384
|
});
|
|
6376
|
-
var DTOExportJobDestinations =
|
|
6385
|
+
var DTOExportJobDestinations = z226.object({
|
|
6377
6386
|
s3: ExporterDestinationS3.optional(),
|
|
6378
6387
|
azure: ExporterDestinationAzure.optional(),
|
|
6379
6388
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6380
6389
|
github: ExporterDestinationGithub.optional(),
|
|
6381
6390
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6382
6391
|
documentation: ExporterDestinationDocs.optional(),
|
|
6383
|
-
webhookUrl:
|
|
6392
|
+
webhookUrl: z226.string().optional()
|
|
6384
6393
|
});
|
|
6385
6394
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6386
6395
|
sndocs: true
|
|
6387
6396
|
}).extend({
|
|
6388
6397
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6389
6398
|
});
|
|
6390
|
-
var DTOExportJob =
|
|
6391
|
-
id:
|
|
6392
|
-
createdAt:
|
|
6393
|
-
finishedAt:
|
|
6394
|
-
index:
|
|
6399
|
+
var DTOExportJob = z226.object({
|
|
6400
|
+
id: z226.string(),
|
|
6401
|
+
createdAt: z226.coerce.date(),
|
|
6402
|
+
finishedAt: z226.coerce.date().optional(),
|
|
6403
|
+
index: z226.number().optional(),
|
|
6395
6404
|
status: ExportJobStatus,
|
|
6396
|
-
estimatedExecutionTime:
|
|
6405
|
+
estimatedExecutionTime: z226.number().optional(),
|
|
6397
6406
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6398
6407
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6399
6408
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6400
6409
|
destinations: DTOExportJobDestinations,
|
|
6401
|
-
exporterId:
|
|
6402
|
-
scheduleId:
|
|
6410
|
+
exporterId: z226.string(),
|
|
6411
|
+
scheduleId: z226.string().optional(),
|
|
6403
6412
|
result: DTOExportJobResult.optional(),
|
|
6404
|
-
brandPersistentId:
|
|
6405
|
-
themePersistentId:
|
|
6406
|
-
themePersistentIds:
|
|
6413
|
+
brandPersistentId: z226.string().optional(),
|
|
6414
|
+
themePersistentId: z226.string().optional(),
|
|
6415
|
+
themePersistentIds: z226.string().array().optional(),
|
|
6407
6416
|
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional()
|
|
6408
6417
|
});
|
|
6409
|
-
var DTOExportJobResponse =
|
|
6418
|
+
var DTOExportJobResponse = z226.object({
|
|
6410
6419
|
job: DTOExportJob
|
|
6411
6420
|
});
|
|
6412
6421
|
|
|
6413
6422
|
// 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:
|
|
6423
|
+
import { z as z227 } from "zod";
|
|
6424
|
+
var DTOPipelineListQuery = z227.object({
|
|
6425
|
+
designSystemId: z227.string().optional(),
|
|
6426
|
+
exporterId: z227.string().optional(),
|
|
6427
|
+
latestJobsLimit: z227.coerce.number().optional()
|
|
6428
|
+
});
|
|
6429
|
+
var DTOPipeline = z227.object({
|
|
6430
|
+
id: z227.string(),
|
|
6431
|
+
name: z227.string(),
|
|
6423
6432
|
eventType: PipelineEventType,
|
|
6424
|
-
isEnabled:
|
|
6425
|
-
workspaceId:
|
|
6426
|
-
designSystemId:
|
|
6427
|
-
exporterId:
|
|
6428
|
-
brandPersistentId:
|
|
6429
|
-
themePersistentId:
|
|
6430
|
-
themePersistentIds:
|
|
6433
|
+
isEnabled: z227.boolean(),
|
|
6434
|
+
workspaceId: z227.string(),
|
|
6435
|
+
designSystemId: z227.string(),
|
|
6436
|
+
exporterId: z227.string(),
|
|
6437
|
+
brandPersistentId: z227.string().optional(),
|
|
6438
|
+
themePersistentId: z227.string().optional(),
|
|
6439
|
+
themePersistentIds: z227.string().array().optional(),
|
|
6431
6440
|
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
6432
6441
|
...ExportDestinationsMap.shape,
|
|
6433
6442
|
latestJobs: DTOExportJob.array()
|
|
6434
6443
|
});
|
|
6435
|
-
var DTOPipelineListResponse =
|
|
6444
|
+
var DTOPipelineListResponse = z227.object({
|
|
6436
6445
|
pipelines: DTOPipeline.array()
|
|
6437
6446
|
});
|
|
6438
|
-
var DTOPipelineResponse =
|
|
6447
|
+
var DTOPipelineResponse = z227.object({
|
|
6439
6448
|
pipeline: DTOPipeline
|
|
6440
6449
|
});
|
|
6441
6450
|
|
|
6442
6451
|
// src/api/dto/documentation/publish.ts
|
|
6443
6452
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6444
|
-
var DTOPublishDocumentationRequest =
|
|
6453
|
+
var DTOPublishDocumentationRequest = z228.object({
|
|
6445
6454
|
environment: PublishedDocEnvironment,
|
|
6446
6455
|
/**
|
|
6447
6456
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6449,57 +6458,57 @@ var DTOPublishDocumentationRequest = z227.object({
|
|
|
6449
6458
|
*/
|
|
6450
6459
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6451
6460
|
});
|
|
6452
|
-
var DTOPublishDocumentationResponse =
|
|
6461
|
+
var DTOPublishDocumentationResponse = z228.object({
|
|
6453
6462
|
job: DTOExportJob
|
|
6454
6463
|
});
|
|
6455
6464
|
|
|
6456
6465
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6457
|
-
import
|
|
6458
|
-
var DTOFigmaComponentGroup =
|
|
6459
|
-
id:
|
|
6460
|
-
designSystemVersionId:
|
|
6461
|
-
persistentId:
|
|
6462
|
-
isRoot:
|
|
6463
|
-
brandId:
|
|
6466
|
+
import z229 from "zod";
|
|
6467
|
+
var DTOFigmaComponentGroup = z229.object({
|
|
6468
|
+
id: z229.string(),
|
|
6469
|
+
designSystemVersionId: z229.string(),
|
|
6470
|
+
persistentId: z229.string(),
|
|
6471
|
+
isRoot: z229.boolean(),
|
|
6472
|
+
brandId: z229.string(),
|
|
6464
6473
|
meta: DTOObjectMeta,
|
|
6465
|
-
childrenIds:
|
|
6474
|
+
childrenIds: z229.string().array()
|
|
6466
6475
|
});
|
|
6467
|
-
var DTOFigmaComponentGroupListResponse =
|
|
6476
|
+
var DTOFigmaComponentGroupListResponse = z229.object({
|
|
6468
6477
|
groups: DTOFigmaComponentGroup.array()
|
|
6469
6478
|
});
|
|
6470
6479
|
|
|
6471
6480
|
// src/api/dto/elements/components/figma-component.ts
|
|
6472
|
-
import { z as
|
|
6481
|
+
import { z as z230 } from "zod";
|
|
6473
6482
|
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:
|
|
6483
|
+
var DTOFigmaComponentPropertyMap = z230.record(DTOFigmaComponentProperty);
|
|
6484
|
+
var DTOFigmaComponent = z230.object({
|
|
6485
|
+
id: z230.string(),
|
|
6486
|
+
persistentId: z230.string(),
|
|
6487
|
+
designSystemVersionId: z230.string(),
|
|
6488
|
+
brandId: z230.string(),
|
|
6489
|
+
thumbnailUrl: z230.string().optional(),
|
|
6490
|
+
svgUrl: z230.string().optional(),
|
|
6491
|
+
exportProperties: z230.object({
|
|
6492
|
+
isAsset: z230.boolean()
|
|
6484
6493
|
}),
|
|
6485
|
-
createdAt:
|
|
6486
|
-
updatedAt:
|
|
6494
|
+
createdAt: z230.coerce.date(),
|
|
6495
|
+
updatedAt: z230.coerce.date(),
|
|
6487
6496
|
meta: ObjectMeta,
|
|
6488
6497
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6489
|
-
parentComponentPersistentId:
|
|
6490
|
-
childrenPersistentIds:
|
|
6498
|
+
parentComponentPersistentId: z230.string().optional(),
|
|
6499
|
+
childrenPersistentIds: z230.string().array().optional(),
|
|
6491
6500
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6492
|
-
variantPropertyValues:
|
|
6501
|
+
variantPropertyValues: z230.record(z230.string()).optional()
|
|
6493
6502
|
});
|
|
6494
|
-
var DTOFigmaComponentListResponse =
|
|
6503
|
+
var DTOFigmaComponentListResponse = z230.object({
|
|
6495
6504
|
components: DTOFigmaComponent.array()
|
|
6496
6505
|
});
|
|
6497
6506
|
|
|
6498
6507
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6499
|
-
import { z as
|
|
6508
|
+
import { z as z232 } from "zod";
|
|
6500
6509
|
|
|
6501
6510
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6502
|
-
import { z as
|
|
6511
|
+
import { z as z231 } from "zod";
|
|
6503
6512
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6504
6513
|
sortOrder: true,
|
|
6505
6514
|
parentPersistentId: true,
|
|
@@ -6509,13 +6518,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6509
6518
|
data: true,
|
|
6510
6519
|
shortPersistentId: true
|
|
6511
6520
|
}).extend({
|
|
6512
|
-
title:
|
|
6513
|
-
isRoot:
|
|
6514
|
-
childrenIds:
|
|
6521
|
+
title: z231.string(),
|
|
6522
|
+
isRoot: z231.boolean(),
|
|
6523
|
+
childrenIds: z231.array(z231.string()),
|
|
6515
6524
|
groupBehavior: DocumentationGroupBehavior,
|
|
6516
|
-
shortPersistentId:
|
|
6525
|
+
shortPersistentId: z231.string(),
|
|
6517
6526
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6518
|
-
type:
|
|
6527
|
+
type: z231.literal("Group"),
|
|
6519
6528
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6520
6529
|
draftState: DTODocumentationDraftState.optional(),
|
|
6521
6530
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6523,127 +6532,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6523
6532
|
//** An approval state for frontend to utilize. */
|
|
6524
6533
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6525
6534
|
});
|
|
6526
|
-
var DTOCreateDocumentationGroupInput =
|
|
6535
|
+
var DTOCreateDocumentationGroupInput = z231.object({
|
|
6527
6536
|
// Identifier
|
|
6528
|
-
persistentId:
|
|
6537
|
+
persistentId: z231.string(),
|
|
6529
6538
|
// Group properties
|
|
6530
|
-
title:
|
|
6539
|
+
title: z231.string(),
|
|
6531
6540
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6532
6541
|
// Group placement properties
|
|
6533
|
-
afterPersistentId:
|
|
6534
|
-
parentPersistentId:
|
|
6542
|
+
afterPersistentId: z231.string().nullish(),
|
|
6543
|
+
parentPersistentId: z231.string()
|
|
6535
6544
|
});
|
|
6536
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6545
|
+
var DTOUpdateDocumentationGroupInput = z231.object({
|
|
6537
6546
|
// Identifier of the group to update
|
|
6538
|
-
id:
|
|
6547
|
+
id: z231.string(),
|
|
6539
6548
|
// Group properties
|
|
6540
|
-
title:
|
|
6549
|
+
title: z231.string().optional(),
|
|
6541
6550
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6542
6551
|
});
|
|
6543
|
-
var DTOMoveDocumentationGroupInput =
|
|
6552
|
+
var DTOMoveDocumentationGroupInput = z231.object({
|
|
6544
6553
|
// Identifier of the group to update
|
|
6545
|
-
id:
|
|
6554
|
+
id: z231.string(),
|
|
6546
6555
|
// Group placement properties
|
|
6547
|
-
parentPersistentId:
|
|
6548
|
-
afterPersistentId:
|
|
6556
|
+
parentPersistentId: z231.string(),
|
|
6557
|
+
afterPersistentId: z231.string().nullish()
|
|
6549
6558
|
});
|
|
6550
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6559
|
+
var DTODuplicateDocumentationGroupInput = z231.object({
|
|
6551
6560
|
// Identifier of the group to duplicate from
|
|
6552
|
-
id:
|
|
6561
|
+
id: z231.string(),
|
|
6553
6562
|
// New group persistent id
|
|
6554
|
-
persistentId:
|
|
6563
|
+
persistentId: z231.string(),
|
|
6555
6564
|
// Group placement properties
|
|
6556
|
-
afterPersistentId:
|
|
6557
|
-
parentPersistentId:
|
|
6565
|
+
afterPersistentId: z231.string().nullish(),
|
|
6566
|
+
parentPersistentId: z231.string()
|
|
6558
6567
|
});
|
|
6559
|
-
var DTOCreateDocumentationTabInput =
|
|
6568
|
+
var DTOCreateDocumentationTabInput = z231.object({
|
|
6560
6569
|
// New group persistent id
|
|
6561
|
-
persistentId:
|
|
6570
|
+
persistentId: z231.string(),
|
|
6562
6571
|
// If this is page, we will attempt to convert it to tab
|
|
6563
6572
|
// If this is tab group, we will add a new tab to it
|
|
6564
|
-
fromItemPersistentId:
|
|
6565
|
-
tabName:
|
|
6573
|
+
fromItemPersistentId: z231.string(),
|
|
6574
|
+
tabName: z231.string()
|
|
6566
6575
|
});
|
|
6567
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6576
|
+
var DTODeleteDocumentationTabGroupInput = z231.object({
|
|
6568
6577
|
// Deleted group id
|
|
6569
|
-
id:
|
|
6578
|
+
id: z231.string()
|
|
6570
6579
|
});
|
|
6571
|
-
var DTODeleteDocumentationGroupInput =
|
|
6580
|
+
var DTODeleteDocumentationGroupInput = z231.object({
|
|
6572
6581
|
// Identifier
|
|
6573
|
-
id:
|
|
6582
|
+
id: z231.string(),
|
|
6574
6583
|
// Deletion options
|
|
6575
|
-
deleteSubtree:
|
|
6584
|
+
deleteSubtree: z231.boolean().default(false)
|
|
6576
6585
|
});
|
|
6577
6586
|
|
|
6578
6587
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6579
|
-
var SuccessPayload =
|
|
6580
|
-
success:
|
|
6588
|
+
var SuccessPayload = z232.object({
|
|
6589
|
+
success: z232.literal(true)
|
|
6581
6590
|
});
|
|
6582
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6583
|
-
type:
|
|
6591
|
+
var DTODocumentationGroupCreateActionOutputV2 = z232.object({
|
|
6592
|
+
type: z232.literal("DocumentationGroupCreate"),
|
|
6584
6593
|
output: SuccessPayload
|
|
6585
6594
|
});
|
|
6586
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6587
|
-
type:
|
|
6595
|
+
var DTODocumentationTabCreateActionOutputV2 = z232.object({
|
|
6596
|
+
type: z232.literal("DocumentationTabCreate"),
|
|
6588
6597
|
output: SuccessPayload
|
|
6589
6598
|
});
|
|
6590
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6591
|
-
type:
|
|
6599
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z232.object({
|
|
6600
|
+
type: z232.literal("DocumentationGroupUpdate"),
|
|
6592
6601
|
output: SuccessPayload
|
|
6593
6602
|
});
|
|
6594
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6595
|
-
type:
|
|
6603
|
+
var DTODocumentationGroupMoveActionOutputV2 = z232.object({
|
|
6604
|
+
type: z232.literal("DocumentationGroupMove"),
|
|
6596
6605
|
output: SuccessPayload
|
|
6597
6606
|
});
|
|
6598
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6599
|
-
type:
|
|
6607
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z232.object({
|
|
6608
|
+
type: z232.literal("DocumentationGroupDuplicate"),
|
|
6600
6609
|
output: SuccessPayload
|
|
6601
6610
|
});
|
|
6602
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6603
|
-
type:
|
|
6611
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z232.object({
|
|
6612
|
+
type: z232.literal("DocumentationGroupDelete"),
|
|
6604
6613
|
output: SuccessPayload
|
|
6605
6614
|
});
|
|
6606
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6607
|
-
type:
|
|
6615
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z232.object({
|
|
6616
|
+
type: z232.literal("DocumentationTabGroupDelete"),
|
|
6608
6617
|
output: SuccessPayload
|
|
6609
6618
|
});
|
|
6610
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6611
|
-
type:
|
|
6619
|
+
var DTODocumentationGroupCreateActionInputV2 = z232.object({
|
|
6620
|
+
type: z232.literal("DocumentationGroupCreate"),
|
|
6612
6621
|
input: DTOCreateDocumentationGroupInput
|
|
6613
6622
|
});
|
|
6614
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6615
|
-
type:
|
|
6623
|
+
var DTODocumentationTabCreateActionInputV2 = z232.object({
|
|
6624
|
+
type: z232.literal("DocumentationTabCreate"),
|
|
6616
6625
|
input: DTOCreateDocumentationTabInput
|
|
6617
6626
|
});
|
|
6618
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6619
|
-
type:
|
|
6627
|
+
var DTODocumentationGroupUpdateActionInputV2 = z232.object({
|
|
6628
|
+
type: z232.literal("DocumentationGroupUpdate"),
|
|
6620
6629
|
input: DTOUpdateDocumentationGroupInput
|
|
6621
6630
|
});
|
|
6622
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6623
|
-
type:
|
|
6631
|
+
var DTODocumentationGroupMoveActionInputV2 = z232.object({
|
|
6632
|
+
type: z232.literal("DocumentationGroupMove"),
|
|
6624
6633
|
input: DTOMoveDocumentationGroupInput
|
|
6625
6634
|
});
|
|
6626
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6627
|
-
type:
|
|
6635
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z232.object({
|
|
6636
|
+
type: z232.literal("DocumentationGroupDuplicate"),
|
|
6628
6637
|
input: DTODuplicateDocumentationGroupInput
|
|
6629
6638
|
});
|
|
6630
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6631
|
-
type:
|
|
6639
|
+
var DTODocumentationGroupDeleteActionInputV2 = z232.object({
|
|
6640
|
+
type: z232.literal("DocumentationGroupDelete"),
|
|
6632
6641
|
input: DTODeleteDocumentationGroupInput
|
|
6633
6642
|
});
|
|
6634
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6635
|
-
type:
|
|
6643
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z232.object({
|
|
6644
|
+
type: z232.literal("DocumentationTabGroupDelete"),
|
|
6636
6645
|
input: DTODeleteDocumentationTabGroupInput
|
|
6637
6646
|
});
|
|
6638
6647
|
|
|
6639
6648
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6640
|
-
import { z as
|
|
6649
|
+
import { z as z234 } from "zod";
|
|
6641
6650
|
|
|
6642
6651
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6643
|
-
import { z as
|
|
6644
|
-
var DocumentationColorV1 =
|
|
6645
|
-
aliasTo:
|
|
6646
|
-
value:
|
|
6652
|
+
import { z as z233 } from "zod";
|
|
6653
|
+
var DocumentationColorV1 = z233.object({
|
|
6654
|
+
aliasTo: z233.string().optional(),
|
|
6655
|
+
value: z233.string().optional()
|
|
6647
6656
|
});
|
|
6648
6657
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6649
6658
|
foregroundColor: true,
|
|
@@ -6652,10 +6661,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6652
6661
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6653
6662
|
backgroundColor: DocumentationColorV1.optional()
|
|
6654
6663
|
});
|
|
6655
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6656
|
-
showSidebar:
|
|
6657
|
-
isPrivate:
|
|
6658
|
-
isHidden:
|
|
6664
|
+
var DTODocumentationItemConfigurationV1 = z233.object({
|
|
6665
|
+
showSidebar: z233.boolean(),
|
|
6666
|
+
isPrivate: z233.boolean(),
|
|
6667
|
+
isHidden: z233.boolean(),
|
|
6659
6668
|
header: DTODocumentationItemHeaderV1
|
|
6660
6669
|
});
|
|
6661
6670
|
|
|
@@ -6669,27 +6678,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6669
6678
|
data: true,
|
|
6670
6679
|
shortPersistentId: true
|
|
6671
6680
|
}).extend({
|
|
6672
|
-
title:
|
|
6673
|
-
isRoot:
|
|
6674
|
-
childrenIds:
|
|
6681
|
+
title: z234.string(),
|
|
6682
|
+
isRoot: z234.boolean(),
|
|
6683
|
+
childrenIds: z234.array(z234.string()),
|
|
6675
6684
|
groupBehavior: DocumentationGroupBehavior,
|
|
6676
|
-
shortPersistentId:
|
|
6677
|
-
type:
|
|
6685
|
+
shortPersistentId: z234.string(),
|
|
6686
|
+
type: z234.literal("Group")
|
|
6678
6687
|
});
|
|
6679
6688
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6680
6689
|
configuration: DTODocumentationItemConfigurationV1
|
|
6681
6690
|
});
|
|
6682
6691
|
|
|
6683
6692
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6684
|
-
import { z as
|
|
6685
|
-
var DTODocumentationHierarchyV2 =
|
|
6686
|
-
pages:
|
|
6693
|
+
import { z as z235 } from "zod";
|
|
6694
|
+
var DTODocumentationHierarchyV2 = z235.object({
|
|
6695
|
+
pages: z235.array(
|
|
6687
6696
|
DTODocumentationPageV2.extend({
|
|
6688
6697
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6689
6698
|
draftState: DTODocumentationDraftState.optional()
|
|
6690
6699
|
})
|
|
6691
6700
|
),
|
|
6692
|
-
groups:
|
|
6701
|
+
groups: z235.array(
|
|
6693
6702
|
DTODocumentationGroupV2.extend({
|
|
6694
6703
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6695
6704
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6698,84 +6707,84 @@ var DTODocumentationHierarchyV2 = z234.object({
|
|
|
6698
6707
|
});
|
|
6699
6708
|
|
|
6700
6709
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6701
|
-
import { z as
|
|
6702
|
-
var SuccessPayload2 =
|
|
6703
|
-
success:
|
|
6710
|
+
import { z as z236 } from "zod";
|
|
6711
|
+
var SuccessPayload2 = z236.object({
|
|
6712
|
+
success: z236.literal(true)
|
|
6704
6713
|
});
|
|
6705
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6706
|
-
type:
|
|
6714
|
+
var DTODocumentationPageCreateActionOutputV2 = z236.object({
|
|
6715
|
+
type: z236.literal("DocumentationPageCreate"),
|
|
6707
6716
|
output: SuccessPayload2
|
|
6708
6717
|
});
|
|
6709
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6710
|
-
type:
|
|
6718
|
+
var DTODocumentationPageUpdateActionOutputV2 = z236.object({
|
|
6719
|
+
type: z236.literal("DocumentationPageUpdate"),
|
|
6711
6720
|
output: SuccessPayload2
|
|
6712
6721
|
});
|
|
6713
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6714
|
-
type:
|
|
6722
|
+
var DTODocumentationPageMoveActionOutputV2 = z236.object({
|
|
6723
|
+
type: z236.literal("DocumentationPageMove"),
|
|
6715
6724
|
output: SuccessPayload2
|
|
6716
6725
|
});
|
|
6717
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6718
|
-
type:
|
|
6726
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z236.object({
|
|
6727
|
+
type: z236.literal("DocumentationPageDuplicate"),
|
|
6719
6728
|
output: SuccessPayload2
|
|
6720
6729
|
});
|
|
6721
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6722
|
-
type:
|
|
6730
|
+
var DTODocumentationPageDeleteActionOutputV2 = z236.object({
|
|
6731
|
+
type: z236.literal("DocumentationPageDelete"),
|
|
6723
6732
|
output: SuccessPayload2
|
|
6724
6733
|
});
|
|
6725
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6726
|
-
type:
|
|
6734
|
+
var DTODocumentationPageRestoreActionOutput = z236.object({
|
|
6735
|
+
type: z236.literal("DocumentationPageRestore"),
|
|
6727
6736
|
output: SuccessPayload2
|
|
6728
6737
|
});
|
|
6729
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6730
|
-
type:
|
|
6738
|
+
var DTODocumentationGroupRestoreActionOutput = z236.object({
|
|
6739
|
+
type: z236.literal("DocumentationGroupRestore"),
|
|
6731
6740
|
output: SuccessPayload2
|
|
6732
6741
|
});
|
|
6733
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6734
|
-
type:
|
|
6742
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z236.object({
|
|
6743
|
+
type: z236.literal("DocumentationPageApprovalStateChange"),
|
|
6735
6744
|
output: SuccessPayload2
|
|
6736
6745
|
});
|
|
6737
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6738
|
-
type:
|
|
6746
|
+
var DTODocumentationPageCreateActionInputV2 = z236.object({
|
|
6747
|
+
type: z236.literal("DocumentationPageCreate"),
|
|
6739
6748
|
input: DTOCreateDocumentationPageInputV2
|
|
6740
6749
|
});
|
|
6741
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6742
|
-
type:
|
|
6750
|
+
var DTODocumentationPageUpdateActionInputV2 = z236.object({
|
|
6751
|
+
type: z236.literal("DocumentationPageUpdate"),
|
|
6743
6752
|
input: DTOUpdateDocumentationPageInputV2
|
|
6744
6753
|
});
|
|
6745
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6746
|
-
type:
|
|
6754
|
+
var DTODocumentationPageMoveActionInputV2 = z236.object({
|
|
6755
|
+
type: z236.literal("DocumentationPageMove"),
|
|
6747
6756
|
input: DTOMoveDocumentationPageInputV2
|
|
6748
6757
|
});
|
|
6749
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6750
|
-
type:
|
|
6758
|
+
var DTODocumentationPageDuplicateActionInputV2 = z236.object({
|
|
6759
|
+
type: z236.literal("DocumentationPageDuplicate"),
|
|
6751
6760
|
input: DTODuplicateDocumentationPageInputV2
|
|
6752
6761
|
});
|
|
6753
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6754
|
-
type:
|
|
6762
|
+
var DTODocumentationPageDeleteActionInputV2 = z236.object({
|
|
6763
|
+
type: z236.literal("DocumentationPageDelete"),
|
|
6755
6764
|
input: DTODeleteDocumentationPageInputV2
|
|
6756
6765
|
});
|
|
6757
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6758
|
-
type:
|
|
6766
|
+
var DTODocumentationPageRestoreActionInput = z236.object({
|
|
6767
|
+
type: z236.literal("DocumentationPageRestore"),
|
|
6759
6768
|
input: DTORestoreDocumentationPageInput
|
|
6760
6769
|
});
|
|
6761
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6762
|
-
type:
|
|
6770
|
+
var DTODocumentationGroupRestoreActionInput = z236.object({
|
|
6771
|
+
type: z236.literal("DocumentationGroupRestore"),
|
|
6763
6772
|
input: DTORestoreDocumentationGroupInput
|
|
6764
6773
|
});
|
|
6765
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6766
|
-
type:
|
|
6774
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z236.object({
|
|
6775
|
+
type: z236.literal("DocumentationPageApprovalStateChange"),
|
|
6767
6776
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6768
6777
|
});
|
|
6769
6778
|
|
|
6770
6779
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6771
|
-
import { z as
|
|
6780
|
+
import { z as z237 } from "zod";
|
|
6772
6781
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6773
|
-
var DTODocumentationPageContentGetResponse =
|
|
6782
|
+
var DTODocumentationPageContentGetResponse = z237.object({
|
|
6774
6783
|
pageContent: DTODocumentationPageContent
|
|
6775
6784
|
});
|
|
6776
6785
|
|
|
6777
6786
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6778
|
-
import { z as
|
|
6787
|
+
import { z as z238 } from "zod";
|
|
6779
6788
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6780
6789
|
data: true,
|
|
6781
6790
|
meta: true,
|
|
@@ -6783,63 +6792,63 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6783
6792
|
sortOrder: true
|
|
6784
6793
|
}).extend({
|
|
6785
6794
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6786
|
-
blocks:
|
|
6787
|
-
title:
|
|
6788
|
-
path:
|
|
6795
|
+
blocks: z238.array(PageBlockV1),
|
|
6796
|
+
title: z238.string(),
|
|
6797
|
+
path: z238.string()
|
|
6789
6798
|
});
|
|
6790
6799
|
|
|
6791
6800
|
// src/api/dto/elements/documentation/structure.ts
|
|
6792
|
-
import { z as
|
|
6793
|
-
var DTODocumentationStructureItemType =
|
|
6794
|
-
var DTODocumentationStructureItemBase =
|
|
6801
|
+
import { z as z239 } from "zod";
|
|
6802
|
+
var DTODocumentationStructureItemType = z239.enum(["Group", "Page"]);
|
|
6803
|
+
var DTODocumentationStructureItemBase = z239.object({
|
|
6795
6804
|
type: DTODocumentationStructureItemType,
|
|
6796
|
-
id:
|
|
6797
|
-
designSystemVersionId:
|
|
6798
|
-
shortPersistentId:
|
|
6799
|
-
persistentId:
|
|
6800
|
-
title:
|
|
6801
|
-
createdAt:
|
|
6802
|
-
updatedAt:
|
|
6805
|
+
id: z239.string(),
|
|
6806
|
+
designSystemVersionId: z239.string(),
|
|
6807
|
+
shortPersistentId: z239.string(),
|
|
6808
|
+
persistentId: z239.string(),
|
|
6809
|
+
title: z239.string(),
|
|
6810
|
+
createdAt: z239.coerce.date(),
|
|
6811
|
+
updatedAt: z239.coerce.date()
|
|
6803
6812
|
});
|
|
6804
6813
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
6805
|
-
type:
|
|
6806
|
-
groupBehavior:
|
|
6807
|
-
childrenIds:
|
|
6808
|
-
isRoot:
|
|
6814
|
+
type: z239.literal(DTODocumentationStructureItemType.enum.Group),
|
|
6815
|
+
groupBehavior: z239.string(),
|
|
6816
|
+
childrenIds: z239.string().array(),
|
|
6817
|
+
isRoot: z239.boolean()
|
|
6809
6818
|
});
|
|
6810
6819
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
6811
|
-
type:
|
|
6812
|
-
path:
|
|
6820
|
+
type: z239.literal(DTODocumentationStructureItemType.enum.Page),
|
|
6821
|
+
path: z239.string()
|
|
6813
6822
|
});
|
|
6814
|
-
var DTODocumentationStructureItem =
|
|
6823
|
+
var DTODocumentationStructureItem = z239.discriminatedUnion("type", [
|
|
6815
6824
|
DTODocumentationStructureGroupItem,
|
|
6816
6825
|
DTODocumentationStructurePageItem
|
|
6817
6826
|
]);
|
|
6818
|
-
var DTODocumentationStructure =
|
|
6819
|
-
items:
|
|
6827
|
+
var DTODocumentationStructure = z239.object({
|
|
6828
|
+
items: z239.array(DTODocumentationStructureItem)
|
|
6820
6829
|
});
|
|
6821
6830
|
|
|
6822
6831
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6823
|
-
import { z as
|
|
6832
|
+
import { z as z240 } from "zod";
|
|
6824
6833
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6825
|
-
var DTOFigmaNodeOrigin =
|
|
6826
|
-
sourceId:
|
|
6827
|
-
fileId:
|
|
6828
|
-
parentName:
|
|
6834
|
+
var DTOFigmaNodeOrigin = z240.object({
|
|
6835
|
+
sourceId: z240.string(),
|
|
6836
|
+
fileId: z240.string().optional(),
|
|
6837
|
+
parentName: z240.string().optional()
|
|
6829
6838
|
});
|
|
6830
|
-
var DTOFigmaNodeData =
|
|
6839
|
+
var DTOFigmaNodeData = z240.object({
|
|
6831
6840
|
// Id of the node in the Figma file
|
|
6832
|
-
figmaNodeId:
|
|
6841
|
+
figmaNodeId: z240.string(),
|
|
6833
6842
|
// Validity
|
|
6834
|
-
isValid:
|
|
6843
|
+
isValid: z240.boolean(),
|
|
6835
6844
|
// Asset data
|
|
6836
|
-
assetId:
|
|
6837
|
-
assetUrl:
|
|
6845
|
+
assetId: z240.string(),
|
|
6846
|
+
assetUrl: z240.string(),
|
|
6838
6847
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6839
6848
|
// Asset metadata
|
|
6840
|
-
assetScale:
|
|
6841
|
-
assetWidth:
|
|
6842
|
-
assetHeight:
|
|
6849
|
+
assetScale: z240.number(),
|
|
6850
|
+
assetWidth: z240.number().optional(),
|
|
6851
|
+
assetHeight: z240.number().optional()
|
|
6843
6852
|
});
|
|
6844
6853
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6845
6854
|
data: true,
|
|
@@ -6848,15 +6857,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6848
6857
|
data: DTOFigmaNodeData,
|
|
6849
6858
|
origin: DTOFigmaNodeOrigin
|
|
6850
6859
|
});
|
|
6851
|
-
var DTOFigmaNodeRenderInput =
|
|
6860
|
+
var DTOFigmaNodeRenderInput = z240.object({
|
|
6852
6861
|
/**
|
|
6853
6862
|
* Id of a design system's data source representing a linked Figma file
|
|
6854
6863
|
*/
|
|
6855
|
-
sourceId:
|
|
6864
|
+
sourceId: z240.string(),
|
|
6856
6865
|
/**
|
|
6857
6866
|
* Id of a node within the Figma file
|
|
6858
6867
|
*/
|
|
6859
|
-
figmaFileNodeId:
|
|
6868
|
+
figmaFileNodeId: z240.string(),
|
|
6860
6869
|
/**
|
|
6861
6870
|
* Format in which the node must be rendered, png by default.
|
|
6862
6871
|
*/
|
|
@@ -6864,97 +6873,97 @@ var DTOFigmaNodeRenderInput = z239.object({
|
|
|
6864
6873
|
});
|
|
6865
6874
|
|
|
6866
6875
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6867
|
-
import { z as
|
|
6868
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6869
|
-
type:
|
|
6870
|
-
figmaNodes:
|
|
6876
|
+
import { z as z241 } from "zod";
|
|
6877
|
+
var DTOFigmaNodeRenderActionOutput = z241.object({
|
|
6878
|
+
type: z241.literal("FigmaNodeRender"),
|
|
6879
|
+
figmaNodes: z241.array(DTOFigmaNode)
|
|
6871
6880
|
});
|
|
6872
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6873
|
-
type:
|
|
6881
|
+
var DTOFigmaNodeRenderActionInput = z241.object({
|
|
6882
|
+
type: z241.literal("FigmaNodeRender"),
|
|
6874
6883
|
input: DTOFigmaNodeRenderInput.array()
|
|
6875
6884
|
});
|
|
6876
6885
|
|
|
6877
6886
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
6878
|
-
import { z as
|
|
6879
|
-
var DTOFrameNodeStructure =
|
|
6880
|
-
id:
|
|
6881
|
-
persistentId:
|
|
6882
|
-
designSystemVersionId:
|
|
6887
|
+
import { z as z242 } from "zod";
|
|
6888
|
+
var DTOFrameNodeStructure = z242.object({
|
|
6889
|
+
id: z242.string(),
|
|
6890
|
+
persistentId: z242.string(),
|
|
6891
|
+
designSystemVersionId: z242.string(),
|
|
6883
6892
|
origin: FigmaFileStructureOrigin,
|
|
6884
6893
|
assetsInFile: FigmaFileStructureStatistics
|
|
6885
6894
|
});
|
|
6886
|
-
var DTOFrameNodeStructureListResponse =
|
|
6895
|
+
var DTOFrameNodeStructureListResponse = z242.object({
|
|
6887
6896
|
structures: DTOFrameNodeStructure.array()
|
|
6888
6897
|
});
|
|
6889
6898
|
|
|
6890
6899
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6891
|
-
import { z as
|
|
6900
|
+
import { z as z243 } from "zod";
|
|
6892
6901
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6893
|
-
var DTOElementPropertyDefinitionOption =
|
|
6894
|
-
id:
|
|
6895
|
-
name:
|
|
6902
|
+
var DTOElementPropertyDefinitionOption = z243.object({
|
|
6903
|
+
id: z243.string(),
|
|
6904
|
+
name: z243.string(),
|
|
6896
6905
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
6897
6906
|
});
|
|
6898
|
-
var DTOElementPropertyDefinition =
|
|
6899
|
-
id:
|
|
6900
|
-
designSystemVersionId:
|
|
6907
|
+
var DTOElementPropertyDefinition = z243.object({
|
|
6908
|
+
id: z243.string(),
|
|
6909
|
+
designSystemVersionId: z243.string(),
|
|
6901
6910
|
meta: DTOObjectMeta,
|
|
6902
|
-
persistentId:
|
|
6911
|
+
persistentId: z243.string(),
|
|
6903
6912
|
type: ElementPropertyTypeSchema,
|
|
6904
6913
|
targetElementType: ElementPropertyTargetType,
|
|
6905
|
-
codeName:
|
|
6906
|
-
options: nullishToOptional(
|
|
6914
|
+
codeName: z243.string().regex(CODE_NAME_REGEX2),
|
|
6915
|
+
options: nullishToOptional(z243.array(DTOElementPropertyDefinitionOption)),
|
|
6907
6916
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6908
|
-
isImmutable:
|
|
6917
|
+
isImmutable: z243.boolean(),
|
|
6909
6918
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
6910
6919
|
});
|
|
6911
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
6912
|
-
definitions:
|
|
6920
|
+
var DTOElementPropertyDefinitionListResponse = z243.object({
|
|
6921
|
+
definitions: z243.array(DTOElementPropertyDefinition)
|
|
6913
6922
|
});
|
|
6914
|
-
var DTOElementPropertyDefinitionResponse =
|
|
6923
|
+
var DTOElementPropertyDefinitionResponse = z243.object({
|
|
6915
6924
|
definition: DTOElementPropertyDefinition
|
|
6916
6925
|
});
|
|
6917
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
6926
|
+
var DTOElementPropertyDefinitionCreatePayload = z243.object({
|
|
6918
6927
|
meta: DTOObjectMeta,
|
|
6919
|
-
persistentId:
|
|
6928
|
+
persistentId: z243.string(),
|
|
6920
6929
|
type: ElementPropertyTypeSchema,
|
|
6921
6930
|
targetElementType: ElementPropertyTargetType,
|
|
6922
|
-
codeName:
|
|
6923
|
-
options: nullishToOptional(
|
|
6931
|
+
codeName: z243.string().regex(CODE_NAME_REGEX2),
|
|
6932
|
+
options: nullishToOptional(z243.array(DTOElementPropertyDefinitionOption)),
|
|
6924
6933
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6925
|
-
columnWidth:
|
|
6934
|
+
columnWidth: z243.number().max(1024).optional()
|
|
6926
6935
|
});
|
|
6927
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
6936
|
+
var DTOElementPropertyDefinitionUpdatePayload = z243.object({
|
|
6928
6937
|
meta: DTOObjectMeta.optional(),
|
|
6929
|
-
codeName:
|
|
6930
|
-
options:
|
|
6938
|
+
codeName: z243.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6939
|
+
options: z243.array(DTOElementPropertyDefinitionOption).optional()
|
|
6931
6940
|
});
|
|
6932
6941
|
|
|
6933
6942
|
// 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 =
|
|
6943
|
+
import { z as z244 } from "zod";
|
|
6944
|
+
var DTOElementPropertyValue = z244.object({
|
|
6945
|
+
id: z244.string(),
|
|
6946
|
+
designSystemVersionId: z244.string(),
|
|
6947
|
+
definitionId: z244.string(),
|
|
6948
|
+
targetElementId: z244.string(),
|
|
6949
|
+
value: z244.union([z244.string(), z244.number(), z244.boolean()]).optional(),
|
|
6950
|
+
valuePreview: z244.string().optional()
|
|
6951
|
+
});
|
|
6952
|
+
var DTOElementPropertyValueListResponse = z244.object({
|
|
6953
|
+
values: z244.array(DTOElementPropertyValue)
|
|
6954
|
+
});
|
|
6955
|
+
var DTOElementPropertyValueResponse = z244.object({
|
|
6947
6956
|
value: DTOElementPropertyValue
|
|
6948
6957
|
});
|
|
6949
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
6950
|
-
definitionId:
|
|
6951
|
-
targetElementId:
|
|
6952
|
-
value:
|
|
6958
|
+
var DTOElementPropertyValueUpsertPaylod = z244.object({
|
|
6959
|
+
definitionId: z244.string(),
|
|
6960
|
+
targetElementId: z244.string(),
|
|
6961
|
+
value: z244.string().or(z244.number()).or(z244.boolean())
|
|
6953
6962
|
});
|
|
6954
6963
|
|
|
6955
6964
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6956
|
-
import { z as
|
|
6957
|
-
var DTOElementActionOutput =
|
|
6965
|
+
import { z as z245 } from "zod";
|
|
6966
|
+
var DTOElementActionOutput = z245.discriminatedUnion("type", [
|
|
6958
6967
|
// Documentation pages
|
|
6959
6968
|
DTODocumentationPageCreateActionOutputV2,
|
|
6960
6969
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6977,7 +6986,7 @@ var DTOElementActionOutput = z244.discriminatedUnion("type", [
|
|
|
6977
6986
|
// Approvals
|
|
6978
6987
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6979
6988
|
]);
|
|
6980
|
-
var DTOElementActionInput =
|
|
6989
|
+
var DTOElementActionInput = z245.discriminatedUnion("type", [
|
|
6981
6990
|
// Documentation pages
|
|
6982
6991
|
DTODocumentationPageCreateActionInputV2,
|
|
6983
6992
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7002,80 +7011,80 @@ var DTOElementActionInput = z244.discriminatedUnion("type", [
|
|
|
7002
7011
|
]);
|
|
7003
7012
|
|
|
7004
7013
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7005
|
-
import { z as
|
|
7006
|
-
var DTOElementsGetTypeFilter =
|
|
7007
|
-
var DTOElementsGetQuerySchema =
|
|
7008
|
-
types:
|
|
7014
|
+
import { z as z246 } from "zod";
|
|
7015
|
+
var DTOElementsGetTypeFilter = z246.enum(["FigmaNode"]);
|
|
7016
|
+
var DTOElementsGetQuerySchema = z246.object({
|
|
7017
|
+
types: z246.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
7009
7018
|
});
|
|
7010
|
-
var DTOElementsGetOutput =
|
|
7011
|
-
figmaNodes:
|
|
7019
|
+
var DTOElementsGetOutput = z246.object({
|
|
7020
|
+
figmaNodes: z246.array(DTOFigmaNode).optional()
|
|
7012
7021
|
});
|
|
7013
7022
|
|
|
7014
7023
|
// 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:
|
|
7024
|
+
import { z as z247 } from "zod";
|
|
7025
|
+
var DTOAssetRenderConfiguration = z247.object({
|
|
7026
|
+
prefix: z247.string().optional(),
|
|
7027
|
+
suffix: z247.string().optional(),
|
|
7028
|
+
scale: z247.enum(["x1", "x2", "x3", "x4"]),
|
|
7029
|
+
format: z247.enum(["png", "pdf", "svg"])
|
|
7030
|
+
});
|
|
7031
|
+
var DTORenderedAssetFile = z247.object({
|
|
7032
|
+
assetId: z247.string(),
|
|
7033
|
+
fileName: z247.string(),
|
|
7034
|
+
sourceUrl: z247.string(),
|
|
7026
7035
|
settings: DTOAssetRenderConfiguration,
|
|
7027
|
-
originalName:
|
|
7036
|
+
originalName: z247.string()
|
|
7028
7037
|
});
|
|
7029
|
-
var DTODownloadAssetsRequest =
|
|
7030
|
-
persistentIds:
|
|
7038
|
+
var DTODownloadAssetsRequest = z247.object({
|
|
7039
|
+
persistentIds: z247.array(z247.string().uuid()).optional(),
|
|
7031
7040
|
settings: DTOAssetRenderConfiguration.array()
|
|
7032
7041
|
});
|
|
7033
|
-
var DTODownloadAssetsResponse =
|
|
7042
|
+
var DTODownloadAssetsResponse = z247.object({
|
|
7034
7043
|
items: DTORenderedAssetFile.array()
|
|
7035
7044
|
});
|
|
7036
7045
|
|
|
7037
7046
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7038
|
-
import { z as
|
|
7039
|
-
var DTOLiveblocksAuthResponse =
|
|
7040
|
-
token:
|
|
7047
|
+
import { z as z248 } from "zod";
|
|
7048
|
+
var DTOLiveblocksAuthResponse = z248.object({
|
|
7049
|
+
token: z248.string()
|
|
7041
7050
|
});
|
|
7042
7051
|
|
|
7043
7052
|
// src/api/dto/themes/override.ts
|
|
7044
|
-
import { z as
|
|
7053
|
+
import { z as z249 } from "zod";
|
|
7045
7054
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7046
|
-
|
|
7047
|
-
tokenPersistentId:
|
|
7055
|
+
z249.object({
|
|
7056
|
+
tokenPersistentId: z249.string(),
|
|
7048
7057
|
origin: ThemeOverrideOrigin.optional()
|
|
7049
7058
|
})
|
|
7050
7059
|
);
|
|
7051
7060
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7052
|
-
|
|
7053
|
-
tokenPersistentId:
|
|
7061
|
+
z249.object({
|
|
7062
|
+
tokenPersistentId: z249.string()
|
|
7054
7063
|
})
|
|
7055
7064
|
);
|
|
7056
7065
|
|
|
7057
7066
|
// src/api/dto/themes/theme.ts
|
|
7058
|
-
import { z as
|
|
7059
|
-
var DTOTheme =
|
|
7060
|
-
id:
|
|
7061
|
-
persistentId:
|
|
7062
|
-
designSystemVersionId:
|
|
7063
|
-
brandId:
|
|
7067
|
+
import { z as z250 } from "zod";
|
|
7068
|
+
var DTOTheme = z250.object({
|
|
7069
|
+
id: z250.string(),
|
|
7070
|
+
persistentId: z250.string(),
|
|
7071
|
+
designSystemVersionId: z250.string(),
|
|
7072
|
+
brandId: z250.string(),
|
|
7064
7073
|
meta: ObjectMeta,
|
|
7065
|
-
codeName:
|
|
7074
|
+
codeName: z250.string(),
|
|
7066
7075
|
overrides: DTOThemeOverride.array()
|
|
7067
7076
|
});
|
|
7068
|
-
var DTOThemeResponse =
|
|
7077
|
+
var DTOThemeResponse = z250.object({
|
|
7069
7078
|
theme: DTOTheme
|
|
7070
7079
|
});
|
|
7071
|
-
var DTOThemeListResponse =
|
|
7080
|
+
var DTOThemeListResponse = z250.object({
|
|
7072
7081
|
themes: DTOTheme.array()
|
|
7073
7082
|
});
|
|
7074
|
-
var DTOThemeCreatePayload =
|
|
7083
|
+
var DTOThemeCreatePayload = z250.object({
|
|
7075
7084
|
meta: ObjectMeta,
|
|
7076
|
-
persistentId:
|
|
7077
|
-
brandId:
|
|
7078
|
-
codeName:
|
|
7085
|
+
persistentId: z250.string(),
|
|
7086
|
+
brandId: z250.string(),
|
|
7087
|
+
codeName: z250.string(),
|
|
7079
7088
|
overrides: DTOThemeOverride.array()
|
|
7080
7089
|
});
|
|
7081
7090
|
|
|
@@ -7206,7 +7215,7 @@ var CodegenEndpoint = class {
|
|
|
7206
7215
|
};
|
|
7207
7216
|
|
|
7208
7217
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
7209
|
-
import { z as
|
|
7218
|
+
import { z as z251 } from "zod";
|
|
7210
7219
|
var BrandsEndpoint = class {
|
|
7211
7220
|
constructor(requestExecutor) {
|
|
7212
7221
|
this.requestExecutor = requestExecutor;
|
|
@@ -7240,7 +7249,7 @@ var BrandsEndpoint = class {
|
|
|
7240
7249
|
});
|
|
7241
7250
|
}
|
|
7242
7251
|
delete(dsId, vId, brandId) {
|
|
7243
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
7252
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z251.any(), {
|
|
7244
7253
|
method: "DELETE"
|
|
7245
7254
|
});
|
|
7246
7255
|
}
|
|
@@ -7394,7 +7403,7 @@ var ImportJobsEndpoint = class {
|
|
|
7394
7403
|
};
|
|
7395
7404
|
|
|
7396
7405
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7397
|
-
import { z as
|
|
7406
|
+
import { z as z252 } from "zod";
|
|
7398
7407
|
var OverridesEndpoint = class {
|
|
7399
7408
|
constructor(requestExecutor) {
|
|
7400
7409
|
this.requestExecutor = requestExecutor;
|
|
@@ -7402,7 +7411,7 @@ var OverridesEndpoint = class {
|
|
|
7402
7411
|
create(dsId, versionId, themeId, body) {
|
|
7403
7412
|
return this.requestExecutor.json(
|
|
7404
7413
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7405
|
-
|
|
7414
|
+
z252.any(),
|
|
7406
7415
|
{
|
|
7407
7416
|
method: "POST",
|
|
7408
7417
|
body
|
|
@@ -7412,7 +7421,7 @@ var OverridesEndpoint = class {
|
|
|
7412
7421
|
};
|
|
7413
7422
|
|
|
7414
7423
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7415
|
-
import { z as
|
|
7424
|
+
import { z as z253 } from "zod";
|
|
7416
7425
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7417
7426
|
constructor(requestExecutor) {
|
|
7418
7427
|
this.requestExecutor = requestExecutor;
|
|
@@ -7440,7 +7449,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7440
7449
|
delete(designSystemId, versionId, defId) {
|
|
7441
7450
|
return this.requestExecutor.json(
|
|
7442
7451
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7443
|
-
|
|
7452
|
+
z253.any(),
|
|
7444
7453
|
{ method: "DELETE" }
|
|
7445
7454
|
);
|
|
7446
7455
|
}
|
|
@@ -7479,7 +7488,7 @@ var VersionStatsEndpoint = class {
|
|
|
7479
7488
|
};
|
|
7480
7489
|
|
|
7481
7490
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
7482
|
-
import { z as
|
|
7491
|
+
import { z as z254 } from "zod";
|
|
7483
7492
|
var ThemesEndpoint = class {
|
|
7484
7493
|
constructor(requestExecutor) {
|
|
7485
7494
|
this.requestExecutor = requestExecutor;
|
|
@@ -7502,7 +7511,7 @@ var ThemesEndpoint = class {
|
|
|
7502
7511
|
});
|
|
7503
7512
|
}
|
|
7504
7513
|
delete(dsId, versionId, themeId) {
|
|
7505
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
7514
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z254.any(), {
|
|
7506
7515
|
method: "DELETE"
|
|
7507
7516
|
});
|
|
7508
7517
|
}
|
|
@@ -7649,7 +7658,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
7649
7658
|
};
|
|
7650
7659
|
|
|
7651
7660
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7652
|
-
import { z as
|
|
7661
|
+
import { z as z256 } from "zod";
|
|
7653
7662
|
|
|
7654
7663
|
// src/api/endpoints/design-system/members.ts
|
|
7655
7664
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -7670,7 +7679,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
7670
7679
|
};
|
|
7671
7680
|
|
|
7672
7681
|
// src/api/endpoints/design-system/sources.ts
|
|
7673
|
-
import { z as
|
|
7682
|
+
import { z as z255 } from "zod";
|
|
7674
7683
|
var DesignSystemSourcesEndpoint = class {
|
|
7675
7684
|
constructor(requestExecutor) {
|
|
7676
7685
|
this.requestExecutor = requestExecutor;
|
|
@@ -7685,7 +7694,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7685
7694
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
7686
7695
|
}
|
|
7687
7696
|
delete(dsId, sourceId) {
|
|
7688
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
7697
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z255.any(), { method: "DELETE" });
|
|
7689
7698
|
}
|
|
7690
7699
|
figmaImport(dsId, payload) {
|
|
7691
7700
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -7720,7 +7729,7 @@ var DesignSystemsEndpoint = class {
|
|
|
7720
7729
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
7721
7730
|
}
|
|
7722
7731
|
delete(dsId) {
|
|
7723
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
7732
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z256.any(), { method: "DELETE" });
|
|
7724
7733
|
}
|
|
7725
7734
|
update(dsId, body) {
|
|
7726
7735
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -7764,7 +7773,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
7764
7773
|
};
|
|
7765
7774
|
|
|
7766
7775
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
7767
|
-
import { z as
|
|
7776
|
+
import { z as z257 } from "zod";
|
|
7768
7777
|
var WorkspaceMembersEndpoint = class {
|
|
7769
7778
|
constructor(requestExecutor) {
|
|
7770
7779
|
this.requestExecutor = requestExecutor;
|
|
@@ -7781,7 +7790,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7781
7790
|
});
|
|
7782
7791
|
}
|
|
7783
7792
|
invite(workspaceId, body) {
|
|
7784
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7793
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z257.any(), { method: "POST", body });
|
|
7785
7794
|
}
|
|
7786
7795
|
delete(workspaceId, userId) {
|
|
7787
7796
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -7791,7 +7800,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7791
7800
|
};
|
|
7792
7801
|
|
|
7793
7802
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
7794
|
-
import { z as
|
|
7803
|
+
import { z as z258 } from "zod";
|
|
7795
7804
|
var WorkspacesEndpoint = class {
|
|
7796
7805
|
constructor(requestExecutor) {
|
|
7797
7806
|
this.requestExecutor = requestExecutor;
|
|
@@ -7814,10 +7823,10 @@ var WorkspacesEndpoint = class {
|
|
|
7814
7823
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
7815
7824
|
}
|
|
7816
7825
|
delete(workspaceId) {
|
|
7817
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7826
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z258.any(), { method: "DELETE" });
|
|
7818
7827
|
}
|
|
7819
7828
|
subscription(workspaceId) {
|
|
7820
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7829
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z258.any(), { method: "GET" });
|
|
7821
7830
|
}
|
|
7822
7831
|
transferOwnership(workspaceId, body) {
|
|
7823
7832
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -7904,9 +7913,9 @@ ${bodyText}`,
|
|
|
7904
7913
|
|
|
7905
7914
|
// src/api/transport/request-executor.ts
|
|
7906
7915
|
import fetch from "node-fetch";
|
|
7907
|
-
import { z as
|
|
7908
|
-
var ResponseWrapper =
|
|
7909
|
-
result:
|
|
7916
|
+
import { z as z259 } from "zod";
|
|
7917
|
+
var ResponseWrapper = z259.object({
|
|
7918
|
+
result: z259.record(z259.any())
|
|
7910
7919
|
});
|
|
7911
7920
|
var RequestExecutor = class {
|
|
7912
7921
|
constructor(testServerConfig) {
|
|
@@ -7981,7 +7990,7 @@ var SupernovaApiClient = class {
|
|
|
7981
7990
|
};
|
|
7982
7991
|
|
|
7983
7992
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7984
|
-
import { z as
|
|
7993
|
+
import { z as z260 } from "zod";
|
|
7985
7994
|
|
|
7986
7995
|
// src/yjs/version-room/base.ts
|
|
7987
7996
|
var VersionRoomBaseYDoc = class {
|
|
@@ -8511,24 +8520,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8511
8520
|
};
|
|
8512
8521
|
|
|
8513
8522
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8514
|
-
var DocumentationHierarchySettings =
|
|
8515
|
-
routingVersion:
|
|
8516
|
-
isDraftFeatureAdopted:
|
|
8517
|
-
isApprovalFeatureEnabled:
|
|
8518
|
-
approvalRequiredForPublishing:
|
|
8523
|
+
var DocumentationHierarchySettings = z260.object({
|
|
8524
|
+
routingVersion: z260.string(),
|
|
8525
|
+
isDraftFeatureAdopted: z260.boolean(),
|
|
8526
|
+
isApprovalFeatureEnabled: z260.boolean(),
|
|
8527
|
+
approvalRequiredForPublishing: z260.boolean()
|
|
8519
8528
|
});
|
|
8520
8529
|
function yjsToDocumentationHierarchy(doc) {
|
|
8521
8530
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
8522
8531
|
}
|
|
8523
8532
|
|
|
8524
8533
|
// src/yjs/design-system-content/item-configuration.ts
|
|
8525
|
-
import { z as
|
|
8526
|
-
var DTODocumentationPageRoomHeaderData =
|
|
8527
|
-
title:
|
|
8534
|
+
import { z as z261 } from "zod";
|
|
8535
|
+
var DTODocumentationPageRoomHeaderData = z261.object({
|
|
8536
|
+
title: z261.string(),
|
|
8528
8537
|
configuration: DTODocumentationItemConfigurationV2
|
|
8529
8538
|
});
|
|
8530
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
8531
|
-
title:
|
|
8539
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z261.object({
|
|
8540
|
+
title: z261.string().optional(),
|
|
8532
8541
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
8533
8542
|
});
|
|
8534
8543
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -8579,7 +8588,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
8579
8588
|
header: rawHeader
|
|
8580
8589
|
};
|
|
8581
8590
|
return {
|
|
8582
|
-
title:
|
|
8591
|
+
title: z261.string().parse(title),
|
|
8583
8592
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
8584
8593
|
};
|
|
8585
8594
|
}
|
|
@@ -8589,9 +8598,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
8589
8598
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
8590
8599
|
|
|
8591
8600
|
// src/yjs/docs-editor/model/page.ts
|
|
8592
|
-
import { z as
|
|
8593
|
-
var DocumentationPageEditorModel =
|
|
8594
|
-
blocks:
|
|
8601
|
+
import { z as z262 } from "zod";
|
|
8602
|
+
var DocumentationPageEditorModel = z262.object({
|
|
8603
|
+
blocks: z262.array(DocumentationPageContentItem)
|
|
8595
8604
|
});
|
|
8596
8605
|
|
|
8597
8606
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -12112,7 +12121,7 @@ var blocks = [
|
|
|
12112
12121
|
|
|
12113
12122
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
12114
12123
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
12115
|
-
import { z as
|
|
12124
|
+
import { z as z263 } from "zod";
|
|
12116
12125
|
function yDocToPage(yDoc, definitions) {
|
|
12117
12126
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
12118
12127
|
}
|
|
@@ -12192,7 +12201,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
12192
12201
|
return null;
|
|
12193
12202
|
return {
|
|
12194
12203
|
id,
|
|
12195
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
12204
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z263.string()) ?? "",
|
|
12196
12205
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
12197
12206
|
};
|
|
12198
12207
|
}
|
|
@@ -12227,7 +12236,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
12227
12236
|
});
|
|
12228
12237
|
}
|
|
12229
12238
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
12230
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
12239
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z263.string());
|
|
12231
12240
|
if (!definitionId) {
|
|
12232
12241
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
12233
12242
|
return [];
|
|
@@ -12269,7 +12278,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
12269
12278
|
if (!id)
|
|
12270
12279
|
return null;
|
|
12271
12280
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12272
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
12281
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z263.string().optional()));
|
|
12273
12282
|
return {
|
|
12274
12283
|
id,
|
|
12275
12284
|
type: "Block",
|
|
@@ -12397,10 +12406,10 @@ function parseRichTextAttribute(mark) {
|
|
|
12397
12406
|
return null;
|
|
12398
12407
|
}
|
|
12399
12408
|
function parseProsemirrorLink(mark) {
|
|
12400
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
12409
|
+
const href = getProsemirrorAttribute(mark, "href", z263.string().optional());
|
|
12401
12410
|
if (!href)
|
|
12402
12411
|
return null;
|
|
12403
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
12412
|
+
const target = getProsemirrorAttribute(mark, "target", z263.string().optional());
|
|
12404
12413
|
const openInNewTab = target === "_blank";
|
|
12405
12414
|
if (href.startsWith("@")) {
|
|
12406
12415
|
return {
|
|
@@ -12419,10 +12428,10 @@ function parseProsemirrorLink(mark) {
|
|
|
12419
12428
|
}
|
|
12420
12429
|
}
|
|
12421
12430
|
function parseProsemirrorCommentHighlight(mark) {
|
|
12422
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
12431
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z263.string().optional());
|
|
12423
12432
|
if (!highlightId)
|
|
12424
12433
|
return null;
|
|
12425
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
12434
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z263.boolean().optional()) ?? false;
|
|
12426
12435
|
return {
|
|
12427
12436
|
type: "Comment",
|
|
12428
12437
|
commentHighlightId: highlightId,
|
|
@@ -12434,7 +12443,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
12434
12443
|
if (!id)
|
|
12435
12444
|
return null;
|
|
12436
12445
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12437
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
12446
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z263.boolean().optional()) !== false;
|
|
12438
12447
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
12439
12448
|
if (!tableChild) {
|
|
12440
12449
|
return emptyTable(id, variantId, 0);
|
|
@@ -12481,9 +12490,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
12481
12490
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
12482
12491
|
if (!id)
|
|
12483
12492
|
return null;
|
|
12484
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
12493
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z263.string().optional());
|
|
12485
12494
|
let columnWidth;
|
|
12486
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
12495
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z263.array(z263.number()).nullish());
|
|
12487
12496
|
if (columnWidthArray) {
|
|
12488
12497
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
12489
12498
|
}
|
|
@@ -12521,7 +12530,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12521
12530
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
12522
12531
|
};
|
|
12523
12532
|
case "image":
|
|
12524
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12533
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z263.string());
|
|
12525
12534
|
if (!items)
|
|
12526
12535
|
return null;
|
|
12527
12536
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -12641,7 +12650,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
12641
12650
|
);
|
|
12642
12651
|
}
|
|
12643
12652
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
12644
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12653
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z263.string());
|
|
12645
12654
|
if (!itemsString)
|
|
12646
12655
|
return null;
|
|
12647
12656
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -12653,18 +12662,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
12653
12662
|
}
|
|
12654
12663
|
function parseAppearance(prosemirrorNode) {
|
|
12655
12664
|
let appearance = {};
|
|
12656
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
12665
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z263.string().optional());
|
|
12657
12666
|
if (rawAppearanceString) {
|
|
12658
12667
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
12659
12668
|
if (parsedAppearance.success) {
|
|
12660
12669
|
appearance = parsedAppearance.data;
|
|
12661
12670
|
}
|
|
12662
12671
|
}
|
|
12663
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
12672
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z263.number().optional());
|
|
12664
12673
|
if (columns) {
|
|
12665
12674
|
appearance.numberOfColumns = columns;
|
|
12666
12675
|
}
|
|
12667
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
12676
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z263.string().optional());
|
|
12668
12677
|
if (backgroundColor) {
|
|
12669
12678
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
12670
12679
|
if (parsedColor.success) {
|
|
@@ -12759,13 +12768,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
12759
12768
|
}
|
|
12760
12769
|
}
|
|
12761
12770
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
12762
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12771
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z263.string());
|
|
12763
12772
|
if (!id)
|
|
12764
12773
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
12765
12774
|
return id;
|
|
12766
12775
|
}
|
|
12767
12776
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
12768
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12777
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z263.string()));
|
|
12769
12778
|
}
|
|
12770
12779
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
12771
12780
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|