@supernova-studio/client 0.57.16 → 0.57.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +828 -410
- package/dist/index.d.ts +828 -410
- package/dist/index.js +135 -56
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +984 -905
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/contact.ts +11 -0
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/design-tokens/design-token.ts +33 -1
- package/src/api/endpoints/design-system/contact.ts +12 -0
- package/src/api/endpoints/design-system/design-systems.ts +3 -0
- package/src/api/endpoints/design-system/index.ts +1 -0
- package/src/api/endpoints/design-system/versions/index.ts +1 -0
- package/src/api/endpoints/design-system/versions/token-groups.ts +28 -0
- package/src/api/endpoints/design-system/versions/versions.ts +3 -0
package/dist/index.mjs
CHANGED
|
@@ -5123,7 +5123,7 @@ var DTOPagination = z177.object({
|
|
|
5123
5123
|
});
|
|
5124
5124
|
|
|
5125
5125
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5126
|
-
import { z as
|
|
5126
|
+
import { z as z210 } from "zod";
|
|
5127
5127
|
|
|
5128
5128
|
// src/api/dto/design-systems/brand.ts
|
|
5129
5129
|
import { z as z178 } from "zod";
|
|
@@ -5139,106 +5139,172 @@ var DTOBrandCreateResponse = z178.object({
|
|
|
5139
5139
|
});
|
|
5140
5140
|
var DTOBrandsListResponse = z178.object({ brands: z178.array(DTOBrand) });
|
|
5141
5141
|
|
|
5142
|
-
// src/api/dto/design-systems/
|
|
5142
|
+
// src/api/dto/design-systems/contact.ts
|
|
5143
|
+
import { z as z182 } from "zod";
|
|
5144
|
+
|
|
5145
|
+
// src/api/dto/users/authenticated-user.ts
|
|
5146
|
+
import { z as z180 } from "zod";
|
|
5147
|
+
|
|
5148
|
+
// src/api/dto/users/user.ts
|
|
5143
5149
|
import { z as z179 } from "zod";
|
|
5144
|
-
var
|
|
5150
|
+
var DTOUserProfile = z179.object({
|
|
5151
|
+
name: z179.string(),
|
|
5152
|
+
nickname: z179.string().optional(),
|
|
5153
|
+
avatar: z179.string().optional()
|
|
5154
|
+
});
|
|
5155
|
+
var DTOUser = z179.object({
|
|
5145
5156
|
id: z179.string(),
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5157
|
+
email: z179.string(),
|
|
5158
|
+
profile: DTOUserProfile
|
|
5159
|
+
});
|
|
5160
|
+
var DTOUserGetResponse = z179.object({
|
|
5161
|
+
user: DTOUser
|
|
5162
|
+
});
|
|
5163
|
+
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
5164
|
+
|
|
5165
|
+
// src/api/dto/users/authenticated-user.ts
|
|
5166
|
+
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
5167
|
+
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5168
|
+
var DTOUserSource = UserSource;
|
|
5169
|
+
var DTOUserOnboarding = z180.object({
|
|
5170
|
+
companyName: z180.string().optional(),
|
|
5171
|
+
numberOfPeopleInOrg: z180.string().optional(),
|
|
5172
|
+
numberOfPeopleInDesignTeam: z180.string().optional(),
|
|
5173
|
+
department: DTOUserOnboardingDepartment.optional(),
|
|
5174
|
+
jobTitle: z180.string().optional(),
|
|
5175
|
+
phase: z180.string().optional(),
|
|
5176
|
+
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
5177
|
+
designSystemName: z180.string().optional(),
|
|
5178
|
+
defaultDestination: z180.string().optional(),
|
|
5179
|
+
isPageDraftOnboardingFinished: z180.boolean().optional()
|
|
5180
|
+
});
|
|
5181
|
+
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5182
|
+
onboarding: DTOUserOnboarding.optional()
|
|
5183
|
+
});
|
|
5184
|
+
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5185
|
+
profile: DTOAuthenticatedUserProfile,
|
|
5186
|
+
createdAt: z180.coerce.date(),
|
|
5187
|
+
loggedOutAt: z180.coerce.date().optional(),
|
|
5188
|
+
source: DTOUserSource.optional()
|
|
5149
5189
|
});
|
|
5150
|
-
var
|
|
5151
|
-
|
|
5190
|
+
var DTOAuthenticatedUserResponse = z180.object({
|
|
5191
|
+
user: DTOAuthenticatedUser
|
|
5192
|
+
});
|
|
5193
|
+
|
|
5194
|
+
// src/api/dto/users/update.ts
|
|
5195
|
+
import { z as z181 } from "zod";
|
|
5196
|
+
var DTOUserProfileUpdateResponse = z181.object({
|
|
5197
|
+
user: User
|
|
5198
|
+
});
|
|
5199
|
+
|
|
5200
|
+
// src/api/dto/design-systems/contact.ts
|
|
5201
|
+
var DTODesignSystemContactsResponse = z182.object({
|
|
5202
|
+
contacts: z182.object({
|
|
5203
|
+
workspace: z182.array(DTOUser),
|
|
5204
|
+
designSystem: z182.array(DTOUser)
|
|
5205
|
+
})
|
|
5206
|
+
});
|
|
5207
|
+
|
|
5208
|
+
// src/api/dto/design-systems/data-source.ts
|
|
5209
|
+
import { z as z183 } from "zod";
|
|
5210
|
+
var DTODataSourceFigmaFileVersion = z183.object({
|
|
5211
|
+
id: z183.string(),
|
|
5212
|
+
created_at: z183.coerce.date(),
|
|
5213
|
+
label: z183.string(),
|
|
5214
|
+
description: z183.string()
|
|
5215
|
+
});
|
|
5216
|
+
var DTODataSourceFigmaCloud = z183.object({
|
|
5217
|
+
fileId: z183.string(),
|
|
5152
5218
|
state: DataSourceFigmaState,
|
|
5153
5219
|
autoImportMode: DataSourceAutoImportMode,
|
|
5154
|
-
fileThumbnailUrl:
|
|
5220
|
+
fileThumbnailUrl: z183.string().optional(),
|
|
5155
5221
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5156
|
-
lastImportedAt:
|
|
5222
|
+
lastImportedAt: z183.coerce.date().nullish(),
|
|
5157
5223
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5158
|
-
lastUpdatesCheckedAt:
|
|
5159
|
-
ownerId:
|
|
5160
|
-
ownerUserName:
|
|
5161
|
-
preferredCredentialId:
|
|
5224
|
+
lastUpdatesCheckedAt: z183.date().nullish(),
|
|
5225
|
+
ownerId: z183.string(),
|
|
5226
|
+
ownerUserName: z183.string().optional(),
|
|
5227
|
+
preferredCredentialId: z183.string().optional(),
|
|
5162
5228
|
stats: DataSourceStats
|
|
5163
5229
|
});
|
|
5164
|
-
var DTODataSourceFigma =
|
|
5165
|
-
id:
|
|
5166
|
-
type:
|
|
5167
|
-
fileName:
|
|
5230
|
+
var DTODataSourceFigma = z183.object({
|
|
5231
|
+
id: z183.string(),
|
|
5232
|
+
type: z183.literal(DataSourceRemoteType.Enum.Figma),
|
|
5233
|
+
fileName: z183.string(),
|
|
5168
5234
|
scope: DataSourceFigmaScope,
|
|
5169
|
-
brandId:
|
|
5170
|
-
themeId:
|
|
5235
|
+
brandId: z183.string(),
|
|
5236
|
+
themeId: z183.string().nullish(),
|
|
5171
5237
|
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5172
5238
|
});
|
|
5173
|
-
var DTODataSourceTokenStudio =
|
|
5174
|
-
id:
|
|
5175
|
-
type:
|
|
5176
|
-
fileName:
|
|
5177
|
-
brandId:
|
|
5178
|
-
themeId:
|
|
5179
|
-
tokenStudio:
|
|
5180
|
-
settings:
|
|
5181
|
-
dryRun:
|
|
5182
|
-
verbose:
|
|
5183
|
-
preciseCopy:
|
|
5239
|
+
var DTODataSourceTokenStudio = z183.object({
|
|
5240
|
+
id: z183.string(),
|
|
5241
|
+
type: z183.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5242
|
+
fileName: z183.string(),
|
|
5243
|
+
brandId: z183.string(),
|
|
5244
|
+
themeId: z183.string().nullish(),
|
|
5245
|
+
tokenStudio: z183.object({
|
|
5246
|
+
settings: z183.object({
|
|
5247
|
+
dryRun: z183.boolean(),
|
|
5248
|
+
verbose: z183.boolean(),
|
|
5249
|
+
preciseCopy: z183.boolean()
|
|
5184
5250
|
}),
|
|
5185
|
-
connectionName:
|
|
5186
|
-
lastImportedAt:
|
|
5187
|
-
lastImportedResults:
|
|
5188
|
-
|
|
5189
|
-
mapping:
|
|
5190
|
-
tokenSets:
|
|
5191
|
-
supernovaBrand:
|
|
5192
|
-
supernovaTheme:
|
|
5251
|
+
connectionName: z183.string(),
|
|
5252
|
+
lastImportedAt: z183.coerce.date(),
|
|
5253
|
+
lastImportedResults: z183.array(
|
|
5254
|
+
z183.object({
|
|
5255
|
+
mapping: z183.object({
|
|
5256
|
+
tokenSets: z183.array(z183.string()),
|
|
5257
|
+
supernovaBrand: z183.string(),
|
|
5258
|
+
supernovaTheme: z183.string().optional()
|
|
5193
5259
|
}),
|
|
5194
|
-
isFailed:
|
|
5195
|
-
tokensCreated:
|
|
5196
|
-
tokensDeleted:
|
|
5197
|
-
tokensUpdated:
|
|
5260
|
+
isFailed: z183.boolean(),
|
|
5261
|
+
tokensCreated: z183.number(),
|
|
5262
|
+
tokensDeleted: z183.number(),
|
|
5263
|
+
tokensUpdated: z183.number()
|
|
5198
5264
|
})
|
|
5199
5265
|
)
|
|
5200
5266
|
})
|
|
5201
5267
|
});
|
|
5202
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5203
|
-
id:
|
|
5204
|
-
type:
|
|
5205
|
-
fileName:
|
|
5206
|
-
brandId:
|
|
5207
|
-
upload:
|
|
5208
|
-
remoteId:
|
|
5268
|
+
var DTODataSourceFigmaVariablesPlugin = z183.object({
|
|
5269
|
+
id: z183.string(),
|
|
5270
|
+
type: z183.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5271
|
+
fileName: z183.string(),
|
|
5272
|
+
brandId: z183.string(),
|
|
5273
|
+
upload: z183.object({
|
|
5274
|
+
remoteId: z183.string(),
|
|
5209
5275
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5210
|
-
lastImportedAt:
|
|
5276
|
+
lastImportedAt: z183.coerce.date().optional(),
|
|
5211
5277
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5212
|
-
isTokenTypeSplitEnabled:
|
|
5278
|
+
isTokenTypeSplitEnabled: z183.boolean()
|
|
5213
5279
|
}),
|
|
5214
|
-
figmaVariablesPlugin:
|
|
5215
|
-
fileId:
|
|
5216
|
-
lastImportedAt:
|
|
5280
|
+
figmaVariablesPlugin: z183.object({
|
|
5281
|
+
fileId: z183.string(),
|
|
5282
|
+
lastImportedAt: z183.coerce.date().optional(),
|
|
5217
5283
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5218
|
-
isTokenTypeSplitEnabled:
|
|
5284
|
+
isTokenTypeSplitEnabled: z183.boolean()
|
|
5219
5285
|
})
|
|
5220
5286
|
});
|
|
5221
|
-
var DTODataSource =
|
|
5287
|
+
var DTODataSource = z183.discriminatedUnion("type", [
|
|
5222
5288
|
DTODataSourceFigma,
|
|
5223
5289
|
DTODataSourceFigmaVariablesPlugin,
|
|
5224
5290
|
DTODataSourceTokenStudio
|
|
5225
5291
|
]);
|
|
5226
|
-
var DTODataSourcesListResponse =
|
|
5227
|
-
sources:
|
|
5292
|
+
var DTODataSourcesListResponse = z183.object({
|
|
5293
|
+
sources: z183.array(DTODataSource)
|
|
5228
5294
|
});
|
|
5229
|
-
var DTODataSourceCreationResponse =
|
|
5295
|
+
var DTODataSourceCreationResponse = z183.object({
|
|
5230
5296
|
source: DTODataSource
|
|
5231
5297
|
});
|
|
5232
5298
|
|
|
5233
5299
|
// src/api/dto/design-systems/design-system.ts
|
|
5234
|
-
import { z as
|
|
5300
|
+
import { z as z186 } from "zod";
|
|
5235
5301
|
|
|
5236
5302
|
// src/api/dto/design-systems/members.ts
|
|
5237
|
-
import { z as
|
|
5303
|
+
import { z as z185 } from "zod";
|
|
5238
5304
|
|
|
5239
5305
|
// src/api/dto/design-systems/role.ts
|
|
5240
|
-
import { z as
|
|
5241
|
-
var DTODesignSystemRole =
|
|
5306
|
+
import { z as z184 } from "zod";
|
|
5307
|
+
var DTODesignSystemRole = z184.enum([
|
|
5242
5308
|
WorkspaceRole.Admin,
|
|
5243
5309
|
WorkspaceRole.Contributor,
|
|
5244
5310
|
WorkspaceRole.Creator,
|
|
@@ -5246,29 +5312,29 @@ var DTODesignSystemRole = z180.enum([
|
|
|
5246
5312
|
]);
|
|
5247
5313
|
|
|
5248
5314
|
// src/api/dto/design-systems/members.ts
|
|
5249
|
-
var DTODesignSystemMember =
|
|
5250
|
-
userId:
|
|
5315
|
+
var DTODesignSystemMember = z185.object({
|
|
5316
|
+
userId: z185.string(),
|
|
5251
5317
|
/**
|
|
5252
5318
|
* Role that the member has in the design system,
|
|
5253
5319
|
* undefined if set to inherit from workspace
|
|
5254
5320
|
*/
|
|
5255
5321
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5256
5322
|
});
|
|
5257
|
-
var DTODesignSystemInvitation =
|
|
5258
|
-
id:
|
|
5259
|
-
workspaceInvitationId:
|
|
5323
|
+
var DTODesignSystemInvitation = z185.object({
|
|
5324
|
+
id: z185.string(),
|
|
5325
|
+
workspaceInvitationId: z185.string(),
|
|
5260
5326
|
/**
|
|
5261
5327
|
* Role that the invitation has in the design system,
|
|
5262
5328
|
* undefined if set to inherit from workspace
|
|
5263
5329
|
*/
|
|
5264
5330
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5265
5331
|
});
|
|
5266
|
-
var DTODesignSystemMemberListResponse =
|
|
5332
|
+
var DTODesignSystemMemberListResponse = z185.object({
|
|
5267
5333
|
members: DTODesignSystemMember.array(),
|
|
5268
5334
|
invitations: DTODesignSystemInvitation.array()
|
|
5269
5335
|
});
|
|
5270
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5271
|
-
ok:
|
|
5336
|
+
var DTODesignSystemMembersUpdateResponse = z185.object({
|
|
5337
|
+
ok: z185.literal(true)
|
|
5272
5338
|
});
|
|
5273
5339
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5274
5340
|
|
|
@@ -5279,14 +5345,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5279
5345
|
docExporterId: true
|
|
5280
5346
|
}).extend({
|
|
5281
5347
|
meta: ObjectMeta,
|
|
5282
|
-
docExporterId:
|
|
5283
|
-
sources:
|
|
5284
|
-
isPublic:
|
|
5348
|
+
docExporterId: z186.string(),
|
|
5349
|
+
sources: z186.array(z186.any()),
|
|
5350
|
+
isPublic: z186.literal(true),
|
|
5285
5351
|
/**
|
|
5286
5352
|
* Whether or not user who is requesting the design system
|
|
5287
5353
|
* has access to the design system's contents.
|
|
5288
5354
|
*/
|
|
5289
|
-
isAvailableToUser:
|
|
5355
|
+
isAvailableToUser: z186.boolean(),
|
|
5290
5356
|
/**
|
|
5291
5357
|
* @deprecated
|
|
5292
5358
|
*/
|
|
@@ -5297,17 +5363,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5297
5363
|
*/
|
|
5298
5364
|
effectiveRole: DTODesignSystemRole.optional()
|
|
5299
5365
|
});
|
|
5300
|
-
var DTODesignSystemResponse =
|
|
5366
|
+
var DTODesignSystemResponse = z186.object({
|
|
5301
5367
|
designSystem: DTODesignSystem
|
|
5302
5368
|
});
|
|
5303
|
-
var DTODesignSystemsListResponse =
|
|
5369
|
+
var DTODesignSystemsListResponse = z186.object({
|
|
5304
5370
|
designSystems: DTODesignSystem.array()
|
|
5305
5371
|
});
|
|
5306
|
-
var DTODesignSystemCreateInput =
|
|
5307
|
-
workspaceId:
|
|
5372
|
+
var DTODesignSystemCreateInput = z186.object({
|
|
5373
|
+
workspaceId: z186.string(),
|
|
5308
5374
|
meta: ObjectMeta.optional(),
|
|
5309
|
-
name:
|
|
5310
|
-
description:
|
|
5375
|
+
name: z186.string().min(2).max(64).optional(),
|
|
5376
|
+
description: z186.string().max(1024).optional(),
|
|
5311
5377
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5312
5378
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
5313
5379
|
usersToInvite: true,
|
|
@@ -5317,25 +5383,25 @@ var DTODesignSystemCreateInput = z182.object({
|
|
|
5317
5383
|
});
|
|
5318
5384
|
|
|
5319
5385
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5320
|
-
import { z as
|
|
5321
|
-
var DTODiffCountBase =
|
|
5322
|
-
created:
|
|
5323
|
-
updated:
|
|
5324
|
-
deleted:
|
|
5386
|
+
import { z as z187 } from "zod";
|
|
5387
|
+
var DTODiffCountBase = z187.object({
|
|
5388
|
+
created: z187.number(),
|
|
5389
|
+
updated: z187.number(),
|
|
5390
|
+
deleted: z187.number()
|
|
5325
5391
|
});
|
|
5326
|
-
var DTODesignElementsDataDiffResponse =
|
|
5392
|
+
var DTODesignElementsDataDiffResponse = z187.object({
|
|
5327
5393
|
tokens: DTODiffCountBase,
|
|
5328
5394
|
assets: DTODiffCountBase
|
|
5329
5395
|
});
|
|
5330
5396
|
|
|
5331
5397
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5332
|
-
import { z as
|
|
5333
|
-
var DTOExporterProperty =
|
|
5334
|
-
var DTOExporterPropertyListResponse =
|
|
5398
|
+
import { z as z188 } from "zod";
|
|
5399
|
+
var DTOExporterProperty = z188.any({});
|
|
5400
|
+
var DTOExporterPropertyListResponse = z188.object({ items: z188.array(DTOExporterProperty) });
|
|
5335
5401
|
|
|
5336
5402
|
// src/api/dto/design-systems/figma-variables.ts
|
|
5337
|
-
import { z as
|
|
5338
|
-
var DimensionsVariableScopeSchema =
|
|
5403
|
+
import { z as z189 } from "zod";
|
|
5404
|
+
var DimensionsVariableScopeSchema = z189.enum([
|
|
5339
5405
|
"CORNER_RADIUS",
|
|
5340
5406
|
"WIDTH_HEIGHT",
|
|
5341
5407
|
"GAP",
|
|
@@ -5349,130 +5415,130 @@ var DimensionsVariableScopeSchema = z185.enum([
|
|
|
5349
5415
|
"PARAGRAPH_INDENT",
|
|
5350
5416
|
"FONT_WEIGHT"
|
|
5351
5417
|
]);
|
|
5352
|
-
var StringVariableScopeSchema =
|
|
5418
|
+
var StringVariableScopeSchema = z189.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
5353
5419
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5354
5420
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5355
|
-
var VariableScope =
|
|
5356
|
-
var ReferencedVariableOrigin =
|
|
5357
|
-
name:
|
|
5358
|
-
remote:
|
|
5421
|
+
var VariableScope = z189.string();
|
|
5422
|
+
var ReferencedVariableOrigin = z189.object({
|
|
5423
|
+
name: z189.string(),
|
|
5424
|
+
remote: z189.boolean()
|
|
5359
5425
|
});
|
|
5360
|
-
var RGB =
|
|
5361
|
-
r:
|
|
5362
|
-
g:
|
|
5363
|
-
b:
|
|
5426
|
+
var RGB = z189.object({
|
|
5427
|
+
r: z189.number(),
|
|
5428
|
+
g: z189.number(),
|
|
5429
|
+
b: z189.number()
|
|
5364
5430
|
});
|
|
5365
5431
|
var RGBA = RGB.extend({
|
|
5366
|
-
a:
|
|
5367
|
-
});
|
|
5368
|
-
var VariableAlias =
|
|
5369
|
-
type:
|
|
5370
|
-
id:
|
|
5371
|
-
resolvedValue:
|
|
5372
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
5373
|
-
});
|
|
5374
|
-
var VariableValue =
|
|
5375
|
-
var ResolvedVariableType =
|
|
5376
|
-
var Variable =
|
|
5377
|
-
id:
|
|
5378
|
-
name:
|
|
5379
|
-
key:
|
|
5380
|
-
variableCollectionId:
|
|
5432
|
+
a: z189.number()
|
|
5433
|
+
});
|
|
5434
|
+
var VariableAlias = z189.object({
|
|
5435
|
+
type: z189.literal("VARIABLE_ALIAS"),
|
|
5436
|
+
id: z189.string(),
|
|
5437
|
+
resolvedValue: z189.boolean().or(z189.number()).or(z189.string()).or(RGBA).or(RGB).optional(),
|
|
5438
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z189.null())
|
|
5439
|
+
});
|
|
5440
|
+
var VariableValue = z189.boolean().or(z189.number()).or(z189.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5441
|
+
var ResolvedVariableType = z189.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5442
|
+
var Variable = z189.object({
|
|
5443
|
+
id: z189.string(),
|
|
5444
|
+
name: z189.string(),
|
|
5445
|
+
key: z189.string(),
|
|
5446
|
+
variableCollectionId: z189.string(),
|
|
5381
5447
|
resolvedType: ResolvedVariableType,
|
|
5382
|
-
valuesByMode:
|
|
5383
|
-
remote:
|
|
5384
|
-
description:
|
|
5385
|
-
hiddenFromPublishing:
|
|
5386
|
-
scopes:
|
|
5387
|
-
codeSyntax:
|
|
5388
|
-
});
|
|
5389
|
-
var VariableMode =
|
|
5390
|
-
modeId:
|
|
5391
|
-
name:
|
|
5392
|
-
});
|
|
5393
|
-
var Collection2 =
|
|
5394
|
-
id:
|
|
5395
|
-
name:
|
|
5396
|
-
modes:
|
|
5397
|
-
defaultModeId:
|
|
5398
|
-
remote:
|
|
5399
|
-
hiddenFromPublishing:
|
|
5400
|
-
});
|
|
5401
|
-
var VariablesMapping =
|
|
5402
|
-
variableCollections:
|
|
5403
|
-
variableMode:
|
|
5404
|
-
supernovaBrand:
|
|
5405
|
-
supernovaTheme:
|
|
5406
|
-
});
|
|
5407
|
-
var FormattedCollections =
|
|
5408
|
-
variables:
|
|
5409
|
-
variableCollections:
|
|
5410
|
-
mappings:
|
|
5411
|
-
variablesOrder:
|
|
5448
|
+
valuesByMode: z189.record(VariableValue),
|
|
5449
|
+
remote: z189.boolean(),
|
|
5450
|
+
description: z189.string(),
|
|
5451
|
+
hiddenFromPublishing: z189.boolean(),
|
|
5452
|
+
scopes: z189.array(VariableScope),
|
|
5453
|
+
codeSyntax: z189.record(z189.any()).optional()
|
|
5454
|
+
});
|
|
5455
|
+
var VariableMode = z189.object({
|
|
5456
|
+
modeId: z189.string(),
|
|
5457
|
+
name: z189.string()
|
|
5458
|
+
});
|
|
5459
|
+
var Collection2 = z189.object({
|
|
5460
|
+
id: z189.string(),
|
|
5461
|
+
name: z189.string(),
|
|
5462
|
+
modes: z189.array(VariableMode),
|
|
5463
|
+
defaultModeId: z189.string(),
|
|
5464
|
+
remote: z189.boolean(),
|
|
5465
|
+
hiddenFromPublishing: z189.boolean()
|
|
5466
|
+
});
|
|
5467
|
+
var VariablesMapping = z189.object({
|
|
5468
|
+
variableCollections: z189.array(z189.string()).min(1),
|
|
5469
|
+
variableMode: z189.string().min(1),
|
|
5470
|
+
supernovaBrand: z189.string().min(1),
|
|
5471
|
+
supernovaTheme: z189.string().min(1).optional().or(z189.null())
|
|
5472
|
+
});
|
|
5473
|
+
var FormattedCollections = z189.object({
|
|
5474
|
+
variables: z189.record(z189.string(), Variable),
|
|
5475
|
+
variableCollections: z189.record(z189.string(), Collection2),
|
|
5476
|
+
mappings: z189.array(VariablesMapping).optional(),
|
|
5477
|
+
variablesOrder: z189.string().array().optional()
|
|
5412
5478
|
});
|
|
5413
5479
|
|
|
5414
5480
|
// src/api/dto/design-systems/import-job.ts
|
|
5415
|
-
import { z as
|
|
5416
|
-
var DTOImportJob =
|
|
5417
|
-
id:
|
|
5418
|
-
designSystemId:
|
|
5419
|
-
designSystemVersionId:
|
|
5420
|
-
operation:
|
|
5421
|
-
createdAt:
|
|
5422
|
-
stateChangedAt:
|
|
5481
|
+
import { z as z190 } from "zod";
|
|
5482
|
+
var DTOImportJob = z190.object({
|
|
5483
|
+
id: z190.string(),
|
|
5484
|
+
designSystemId: z190.string(),
|
|
5485
|
+
designSystemVersionId: z190.string(),
|
|
5486
|
+
operation: z190.literal("Import"),
|
|
5487
|
+
createdAt: z190.coerce.date(),
|
|
5488
|
+
stateChangedAt: z190.coerce.date(),
|
|
5423
5489
|
state: ImportJobState,
|
|
5424
|
-
sourceIds:
|
|
5490
|
+
sourceIds: z190.string().array()
|
|
5425
5491
|
});
|
|
5426
|
-
var DTOImportJobResponse =
|
|
5492
|
+
var DTOImportJobResponse = z190.object({
|
|
5427
5493
|
job: DTOImportJob
|
|
5428
5494
|
});
|
|
5429
|
-
var DTOBffFigmaImportRequestBody =
|
|
5430
|
-
type:
|
|
5431
|
-
brandPersistentId:
|
|
5432
|
-
fileId:
|
|
5495
|
+
var DTOBffFigmaImportRequestBody = z190.object({
|
|
5496
|
+
type: z190.literal(DataSourceRemoteType.Enum.Figma),
|
|
5497
|
+
brandPersistentId: z190.string().optional(),
|
|
5498
|
+
fileId: z190.string(),
|
|
5433
5499
|
scope: DataSourceFigmaScope,
|
|
5434
5500
|
autoImportMode: DataSourceAutoImportMode
|
|
5435
5501
|
});
|
|
5436
|
-
var DTOBffUploadImportRequestBody =
|
|
5437
|
-
type:
|
|
5438
|
-
brandPersistentId:
|
|
5439
|
-
sourceName:
|
|
5440
|
-
remoteId:
|
|
5441
|
-
isTokenTypeSplitEnabled:
|
|
5442
|
-
payload:
|
|
5502
|
+
var DTOBffUploadImportRequestBody = z190.object({
|
|
5503
|
+
type: z190.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5504
|
+
brandPersistentId: z190.string().optional(),
|
|
5505
|
+
sourceName: z190.string().optional(),
|
|
5506
|
+
remoteId: z190.string(),
|
|
5507
|
+
isTokenTypeSplitEnabled: z190.boolean().optional(),
|
|
5508
|
+
payload: z190.any()
|
|
5443
5509
|
});
|
|
5444
|
-
var DTOBffImportRequestBody =
|
|
5510
|
+
var DTOBffImportRequestBody = z190.discriminatedUnion("type", [
|
|
5445
5511
|
DTOBffFigmaImportRequestBody,
|
|
5446
5512
|
DTOBffUploadImportRequestBody
|
|
5447
5513
|
]);
|
|
5448
5514
|
|
|
5449
5515
|
// src/api/dto/design-systems/stats.ts
|
|
5450
|
-
import { z as
|
|
5451
|
-
var DTODesignSystemVersionStats =
|
|
5452
|
-
tokens:
|
|
5453
|
-
designSystemComponents:
|
|
5454
|
-
assets:
|
|
5455
|
-
documentationPages:
|
|
5516
|
+
import { z as z191 } from "zod";
|
|
5517
|
+
var DTODesignSystemVersionStats = z191.object({
|
|
5518
|
+
tokens: z191.number(),
|
|
5519
|
+
designSystemComponents: z191.number(),
|
|
5520
|
+
assets: z191.number(),
|
|
5521
|
+
documentationPages: z191.number()
|
|
5456
5522
|
});
|
|
5457
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5458
|
-
brandId:
|
|
5523
|
+
var DTODesignSystemVersionStatsQuery = z191.object({
|
|
5524
|
+
brandId: z191.string().optional()
|
|
5459
5525
|
});
|
|
5460
5526
|
|
|
5461
5527
|
// src/api/dto/design-systems/version.ts
|
|
5462
|
-
import { z as
|
|
5528
|
+
import { z as z202 } from "zod";
|
|
5463
5529
|
|
|
5464
5530
|
// src/api/payloads/design-systems/brand.ts
|
|
5465
|
-
import { z as
|
|
5466
|
-
var DTOCreateBrandInput =
|
|
5467
|
-
persistentId:
|
|
5468
|
-
meta:
|
|
5469
|
-
name:
|
|
5470
|
-
description:
|
|
5531
|
+
import { z as z192 } from "zod";
|
|
5532
|
+
var DTOCreateBrandInput = z192.object({
|
|
5533
|
+
persistentId: z192.string().uuid(),
|
|
5534
|
+
meta: z192.object({
|
|
5535
|
+
name: z192.string(),
|
|
5536
|
+
description: z192.string()
|
|
5471
5537
|
})
|
|
5472
5538
|
});
|
|
5473
5539
|
|
|
5474
5540
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5475
|
-
import { z as
|
|
5541
|
+
import { z as z193 } from "zod";
|
|
5476
5542
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5477
5543
|
id: true,
|
|
5478
5544
|
workspaceId: true,
|
|
@@ -5484,40 +5550,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5484
5550
|
}).extend({
|
|
5485
5551
|
meta: ObjectMeta.partial().optional()
|
|
5486
5552
|
});
|
|
5487
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5553
|
+
var DTODesignSystemUpdateAccessModeInput = z193.object({
|
|
5488
5554
|
accessMode: DesignSystemAccessMode,
|
|
5489
|
-
retain:
|
|
5490
|
-
userIds:
|
|
5491
|
-
inviteIds:
|
|
5555
|
+
retain: z193.object({
|
|
5556
|
+
userIds: z193.string().array(),
|
|
5557
|
+
inviteIds: z193.string().array()
|
|
5492
5558
|
}).optional()
|
|
5493
5559
|
});
|
|
5494
5560
|
|
|
5495
5561
|
// src/api/payloads/design-systems/version.ts
|
|
5496
|
-
import { z as
|
|
5497
|
-
var ObjectMeta2 =
|
|
5498
|
-
name:
|
|
5499
|
-
description:
|
|
5562
|
+
import { z as z194 } from "zod";
|
|
5563
|
+
var ObjectMeta2 = z194.object({
|
|
5564
|
+
name: z194.string().max(150).optional(),
|
|
5565
|
+
description: z194.string().max(2e3).optional()
|
|
5500
5566
|
});
|
|
5501
5567
|
function validateDesignSystemVersion(version) {
|
|
5502
5568
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5503
5569
|
return urlCompliantRegex.test(version);
|
|
5504
5570
|
}
|
|
5505
|
-
var DTOCreateVersionInput =
|
|
5571
|
+
var DTOCreateVersionInput = z194.object({
|
|
5506
5572
|
meta: ObjectMeta2,
|
|
5507
|
-
version:
|
|
5573
|
+
version: z194.string().refine(validateDesignSystemVersion, {
|
|
5508
5574
|
message: "Invalid semantic versioning format"
|
|
5509
5575
|
}),
|
|
5510
|
-
changeLog:
|
|
5576
|
+
changeLog: z194.string().optional()
|
|
5511
5577
|
});
|
|
5512
|
-
var DTOUpdateVersionInput =
|
|
5578
|
+
var DTOUpdateVersionInput = z194.object({
|
|
5513
5579
|
meta: ObjectMeta2,
|
|
5514
|
-
version:
|
|
5580
|
+
version: z194.string(),
|
|
5515
5581
|
// required for PUT, but not editable
|
|
5516
|
-
changeLog:
|
|
5582
|
+
changeLog: z194.string()
|
|
5517
5583
|
});
|
|
5518
5584
|
|
|
5519
5585
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5520
|
-
import { z as
|
|
5586
|
+
import { z as z195 } from "zod";
|
|
5521
5587
|
|
|
5522
5588
|
// src/api/dto/documentation/block-definition.ts
|
|
5523
5589
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5529,60 +5595,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5529
5595
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5530
5596
|
|
|
5531
5597
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5532
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5533
|
-
definitions:
|
|
5598
|
+
var DTOGetBlockDefinitionsOutput = z195.object({
|
|
5599
|
+
definitions: z195.array(DTOPageBlockDefinition)
|
|
5534
5600
|
});
|
|
5535
5601
|
|
|
5536
5602
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5537
|
-
import { z as
|
|
5538
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5539
|
-
environment:
|
|
5603
|
+
import { z as z196 } from "zod";
|
|
5604
|
+
var DTODocumentationPublishTypeQueryParams = z196.object({
|
|
5605
|
+
environment: z196.enum(["Live", "Preview"])
|
|
5540
5606
|
});
|
|
5541
5607
|
|
|
5542
5608
|
// src/api/payloads/export/pipeline.ts
|
|
5543
|
-
import { z as
|
|
5544
|
-
var DTOPipelineCreateBody =
|
|
5545
|
-
name:
|
|
5546
|
-
exporterId:
|
|
5547
|
-
designSystemId:
|
|
5548
|
-
isEnabled:
|
|
5609
|
+
import { z as z197 } from "zod";
|
|
5610
|
+
var DTOPipelineCreateBody = z197.object({
|
|
5611
|
+
name: z197.string(),
|
|
5612
|
+
exporterId: z197.string(),
|
|
5613
|
+
designSystemId: z197.string(),
|
|
5614
|
+
isEnabled: z197.boolean(),
|
|
5549
5615
|
eventType: PipelineEventType,
|
|
5550
|
-
brandPersistentId:
|
|
5551
|
-
themePersistentId:
|
|
5552
|
-
themePersistentIds:
|
|
5616
|
+
brandPersistentId: z197.string().optional(),
|
|
5617
|
+
themePersistentId: z197.string().optional(),
|
|
5618
|
+
themePersistentIds: z197.string().array().optional(),
|
|
5553
5619
|
destination: PipelineDestinationType.optional(),
|
|
5554
5620
|
gitQuery: GitObjectsQuery,
|
|
5555
|
-
destinations:
|
|
5621
|
+
destinations: z197.object({
|
|
5556
5622
|
s3: ExporterDestinationS3.nullish(),
|
|
5557
5623
|
azure: ExporterDestinationAzure.nullish(),
|
|
5558
5624
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5559
5625
|
github: ExporterDestinationGithub.nullish(),
|
|
5560
5626
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5561
5627
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5562
|
-
webhookUrl:
|
|
5628
|
+
webhookUrl: z197.string().nullish()
|
|
5563
5629
|
})
|
|
5564
5630
|
});
|
|
5565
5631
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5566
|
-
id:
|
|
5632
|
+
id: z197.string()
|
|
5567
5633
|
});
|
|
5568
|
-
var DTOPipelineTriggerBody =
|
|
5569
|
-
designSystemVersionId:
|
|
5634
|
+
var DTOPipelineTriggerBody = z197.object({
|
|
5635
|
+
designSystemVersionId: z197.string()
|
|
5570
5636
|
});
|
|
5571
5637
|
|
|
5572
5638
|
// src/api/payloads/liveblocks/auth.ts
|
|
5573
|
-
import { z as
|
|
5574
|
-
var DTOLiveblocksAuthRequest =
|
|
5575
|
-
room:
|
|
5639
|
+
import { z as z198 } from "zod";
|
|
5640
|
+
var DTOLiveblocksAuthRequest = z198.object({
|
|
5641
|
+
room: z198.string().optional()
|
|
5576
5642
|
});
|
|
5577
5643
|
|
|
5578
5644
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5579
|
-
import { z as
|
|
5580
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5645
|
+
import { z as z199 } from "zod";
|
|
5646
|
+
var DTOUpdateUserNotificationSettingsPayload = z199.object({
|
|
5581
5647
|
notificationSettings: UserNotificationSettings
|
|
5582
5648
|
});
|
|
5583
|
-
var DTOUserNotificationSettingsResponse =
|
|
5584
|
-
userId:
|
|
5585
|
-
workspaceId:
|
|
5649
|
+
var DTOUserNotificationSettingsResponse = z199.object({
|
|
5650
|
+
userId: z199.string(),
|
|
5651
|
+
workspaceId: z199.string(),
|
|
5586
5652
|
notificationSettings: UserNotificationSettings
|
|
5587
5653
|
});
|
|
5588
5654
|
|
|
@@ -5590,7 +5656,7 @@ var DTOUserNotificationSettingsResponse = z195.object({
|
|
|
5590
5656
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5591
5657
|
|
|
5592
5658
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5593
|
-
import { z as
|
|
5659
|
+
import { z as z200 } from "zod";
|
|
5594
5660
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5595
5661
|
function validateSsoPayload(ssoPayload) {
|
|
5596
5662
|
const keys = [];
|
|
@@ -5613,21 +5679,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5613
5679
|
keys
|
|
5614
5680
|
};
|
|
5615
5681
|
}
|
|
5616
|
-
var NpmRegistryInput =
|
|
5617
|
-
enabledScopes:
|
|
5618
|
-
customRegistryUrl:
|
|
5619
|
-
bypassProxy:
|
|
5620
|
-
npmProxyRegistryConfigId:
|
|
5621
|
-
npmProxyVersion:
|
|
5622
|
-
registryType:
|
|
5623
|
-
authType:
|
|
5624
|
-
authHeaderName:
|
|
5625
|
-
authHeaderValue:
|
|
5626
|
-
accessToken:
|
|
5627
|
-
username:
|
|
5628
|
-
password:
|
|
5629
|
-
});
|
|
5630
|
-
var WorkspaceConfigurationPayload =
|
|
5682
|
+
var NpmRegistryInput = z200.object({
|
|
5683
|
+
enabledScopes: z200.array(z200.string()),
|
|
5684
|
+
customRegistryUrl: z200.string().optional(),
|
|
5685
|
+
bypassProxy: z200.boolean().optional(),
|
|
5686
|
+
npmProxyRegistryConfigId: z200.string().optional(),
|
|
5687
|
+
npmProxyVersion: z200.number().optional(),
|
|
5688
|
+
registryType: z200.string(),
|
|
5689
|
+
authType: z200.string(),
|
|
5690
|
+
authHeaderName: z200.string(),
|
|
5691
|
+
authHeaderValue: z200.string(),
|
|
5692
|
+
accessToken: z200.string(),
|
|
5693
|
+
username: z200.string(),
|
|
5694
|
+
password: z200.string()
|
|
5695
|
+
});
|
|
5696
|
+
var WorkspaceConfigurationPayload = z200.object({
|
|
5631
5697
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5632
5698
|
sso: SsoProvider.partial().optional(),
|
|
5633
5699
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5635,218 +5701,218 @@ var WorkspaceConfigurationPayload = z196.object({
|
|
|
5635
5701
|
});
|
|
5636
5702
|
|
|
5637
5703
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5638
|
-
import { z as
|
|
5639
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5704
|
+
import { z as z201 } from "zod";
|
|
5705
|
+
var DTOWorkspaceIntegrationOauthInput = z201.object({
|
|
5640
5706
|
type: IntegrationType
|
|
5641
5707
|
});
|
|
5642
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5643
|
-
userId:
|
|
5708
|
+
var DTOWorkspaceIntegrationPATInput = z201.object({
|
|
5709
|
+
userId: z201.string(),
|
|
5644
5710
|
type: IntegrationType,
|
|
5645
5711
|
token: IntegrationToken
|
|
5646
5712
|
});
|
|
5647
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5648
|
-
organization:
|
|
5713
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z201.object({
|
|
5714
|
+
organization: z201.string().optional(),
|
|
5649
5715
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5650
|
-
project:
|
|
5716
|
+
project: z201.string().optional(),
|
|
5651
5717
|
// Only for Bitbucket and Azure
|
|
5652
|
-
repository:
|
|
5718
|
+
repository: z201.string().optional(),
|
|
5653
5719
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5654
|
-
branch:
|
|
5720
|
+
branch: z201.string().optional(),
|
|
5655
5721
|
// For all providers, useful for PR creations.
|
|
5656
|
-
user:
|
|
5722
|
+
user: z201.string().optional()
|
|
5657
5723
|
// Only for Gitlab User Repositories
|
|
5658
5724
|
});
|
|
5659
5725
|
|
|
5660
5726
|
// src/api/dto/design-systems/version.ts
|
|
5661
|
-
var DTODesignSystemVersion =
|
|
5662
|
-
id:
|
|
5663
|
-
createdAt:
|
|
5727
|
+
var DTODesignSystemVersion = z202.object({
|
|
5728
|
+
id: z202.string(),
|
|
5729
|
+
createdAt: z202.coerce.date(),
|
|
5664
5730
|
meta: ObjectMeta,
|
|
5665
|
-
version:
|
|
5666
|
-
isReadonly:
|
|
5667
|
-
changeLog:
|
|
5668
|
-
designSystemId:
|
|
5731
|
+
version: z202.string(),
|
|
5732
|
+
isReadonly: z202.boolean(),
|
|
5733
|
+
changeLog: z202.string(),
|
|
5734
|
+
designSystemId: z202.string()
|
|
5669
5735
|
});
|
|
5670
|
-
var DTODesignSystemVersionsListResponse =
|
|
5671
|
-
designSystemVersions:
|
|
5736
|
+
var DTODesignSystemVersionsListResponse = z202.object({
|
|
5737
|
+
designSystemVersions: z202.array(DTODesignSystemVersion)
|
|
5672
5738
|
});
|
|
5673
|
-
var DTODesignSystemVersionGetResponse =
|
|
5739
|
+
var DTODesignSystemVersionGetResponse = z202.object({
|
|
5674
5740
|
designSystemVersion: DTODesignSystemVersion
|
|
5675
5741
|
});
|
|
5676
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5742
|
+
var DTODesignSystemVersionCreationResponse = z202.object({
|
|
5677
5743
|
meta: ObjectMeta,
|
|
5678
|
-
version:
|
|
5679
|
-
changeLog:
|
|
5680
|
-
isReadOnly:
|
|
5681
|
-
designSystemId:
|
|
5682
|
-
jobId:
|
|
5683
|
-
});
|
|
5684
|
-
var VersionSQSPayload =
|
|
5685
|
-
jobId:
|
|
5686
|
-
designSystemId:
|
|
5744
|
+
version: z202.string(),
|
|
5745
|
+
changeLog: z202.string(),
|
|
5746
|
+
isReadOnly: z202.boolean(),
|
|
5747
|
+
designSystemId: z202.string(),
|
|
5748
|
+
jobId: z202.string()
|
|
5749
|
+
});
|
|
5750
|
+
var VersionSQSPayload = z202.object({
|
|
5751
|
+
jobId: z202.string(),
|
|
5752
|
+
designSystemId: z202.string(),
|
|
5687
5753
|
input: DTOCreateVersionInput
|
|
5688
5754
|
});
|
|
5689
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5690
|
-
jobs:
|
|
5755
|
+
var DTODesignSystemVersionJobsResponse = z202.object({
|
|
5756
|
+
jobs: z202.array(VersionCreationJob)
|
|
5691
5757
|
});
|
|
5692
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5758
|
+
var DTODesignSystemVersionJobStatusResponse = z202.object({
|
|
5693
5759
|
job: VersionCreationJob
|
|
5694
5760
|
});
|
|
5695
5761
|
|
|
5696
5762
|
// src/api/dto/design-systems/view.ts
|
|
5697
|
-
import { z as
|
|
5698
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5699
|
-
id:
|
|
5700
|
-
persistentId:
|
|
5701
|
-
width:
|
|
5763
|
+
import { z as z203 } from "zod";
|
|
5764
|
+
var DTOElementViewColumnSharedAttributes = z203.object({
|
|
5765
|
+
id: z203.string(),
|
|
5766
|
+
persistentId: z203.string(),
|
|
5767
|
+
width: z203.number()
|
|
5702
5768
|
});
|
|
5703
5769
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5704
|
-
type:
|
|
5770
|
+
type: z203.literal("BaseProperty"),
|
|
5705
5771
|
basePropertyType: ElementViewBaseColumnType
|
|
5706
5772
|
});
|
|
5707
5773
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5708
|
-
type:
|
|
5709
|
-
propertyDefinitionId:
|
|
5774
|
+
type: z203.literal("PropertyDefinition"),
|
|
5775
|
+
propertyDefinitionId: z203.string()
|
|
5710
5776
|
});
|
|
5711
5777
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5712
|
-
type:
|
|
5713
|
-
themeId:
|
|
5778
|
+
type: z203.literal("Theme"),
|
|
5779
|
+
themeId: z203.string()
|
|
5714
5780
|
});
|
|
5715
|
-
var DTOElementViewColumn =
|
|
5781
|
+
var DTOElementViewColumn = z203.discriminatedUnion("type", [
|
|
5716
5782
|
DTOElementViewBasePropertyColumn,
|
|
5717
5783
|
DTOElementViewPropertyDefinitionColumn,
|
|
5718
5784
|
DTOElementViewThemeColumn
|
|
5719
5785
|
]);
|
|
5720
|
-
var DTOElementView =
|
|
5786
|
+
var DTOElementView = z203.object({
|
|
5721
5787
|
meta: ObjectMeta,
|
|
5722
|
-
persistentId:
|
|
5788
|
+
persistentId: z203.string(),
|
|
5723
5789
|
targetElementType: ElementPropertyTargetType,
|
|
5724
|
-
id:
|
|
5725
|
-
isDefault:
|
|
5726
|
-
columns:
|
|
5790
|
+
id: z203.string(),
|
|
5791
|
+
isDefault: z203.boolean(),
|
|
5792
|
+
columns: z203.array(DTOElementViewColumn)
|
|
5727
5793
|
});
|
|
5728
|
-
var DTOElementViewsListResponse =
|
|
5729
|
-
elementDataViews:
|
|
5794
|
+
var DTOElementViewsListResponse = z203.object({
|
|
5795
|
+
elementDataViews: z203.array(DTOElementView)
|
|
5730
5796
|
});
|
|
5731
5797
|
|
|
5732
5798
|
// src/api/dto/workspaces/git.ts
|
|
5733
|
-
import { z as
|
|
5734
|
-
var DTOGitOrganization =
|
|
5735
|
-
id:
|
|
5736
|
-
name:
|
|
5737
|
-
url:
|
|
5738
|
-
slug:
|
|
5739
|
-
});
|
|
5740
|
-
var DTOGitProject =
|
|
5741
|
-
id:
|
|
5742
|
-
name:
|
|
5743
|
-
url:
|
|
5744
|
-
slug:
|
|
5745
|
-
});
|
|
5746
|
-
var DTOGitRepository =
|
|
5747
|
-
id:
|
|
5748
|
-
name:
|
|
5749
|
-
url:
|
|
5750
|
-
slug:
|
|
5751
|
-
defaultBranch:
|
|
5752
|
-
});
|
|
5753
|
-
var DTOGitBranch =
|
|
5754
|
-
name:
|
|
5755
|
-
lastCommitId:
|
|
5799
|
+
import { z as z204 } from "zod";
|
|
5800
|
+
var DTOGitOrganization = z204.object({
|
|
5801
|
+
id: z204.string(),
|
|
5802
|
+
name: z204.string(),
|
|
5803
|
+
url: z204.string(),
|
|
5804
|
+
slug: z204.string()
|
|
5805
|
+
});
|
|
5806
|
+
var DTOGitProject = z204.object({
|
|
5807
|
+
id: z204.string(),
|
|
5808
|
+
name: z204.string(),
|
|
5809
|
+
url: z204.string(),
|
|
5810
|
+
slug: z204.string()
|
|
5811
|
+
});
|
|
5812
|
+
var DTOGitRepository = z204.object({
|
|
5813
|
+
id: z204.string(),
|
|
5814
|
+
name: z204.string(),
|
|
5815
|
+
url: z204.string(),
|
|
5816
|
+
slug: z204.string(),
|
|
5817
|
+
defaultBranch: z204.string().optional()
|
|
5818
|
+
});
|
|
5819
|
+
var DTOGitBranch = z204.object({
|
|
5820
|
+
name: z204.string(),
|
|
5821
|
+
lastCommitId: z204.string()
|
|
5756
5822
|
});
|
|
5757
5823
|
|
|
5758
5824
|
// src/api/dto/workspaces/integrations.ts
|
|
5759
|
-
import { z as
|
|
5825
|
+
import { z as z205 } from "zod";
|
|
5760
5826
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5761
5827
|
accessToken: true,
|
|
5762
5828
|
refreshToken: true
|
|
5763
5829
|
});
|
|
5764
|
-
var DTOIntegration =
|
|
5765
|
-
id:
|
|
5766
|
-
workspaceId:
|
|
5830
|
+
var DTOIntegration = z205.object({
|
|
5831
|
+
id: z205.string(),
|
|
5832
|
+
workspaceId: z205.string(),
|
|
5767
5833
|
type: ExtendedIntegrationType,
|
|
5768
|
-
createdAt:
|
|
5769
|
-
integrationCredentials:
|
|
5770
|
-
integrationDesignSystems:
|
|
5834
|
+
createdAt: z205.coerce.date(),
|
|
5835
|
+
integrationCredentials: z205.array(DTOIntegrationCredentials).optional(),
|
|
5836
|
+
integrationDesignSystems: z205.array(IntegrationDesignSystem).optional()
|
|
5771
5837
|
});
|
|
5772
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5773
|
-
url:
|
|
5838
|
+
var DTOIntegrationOAuthGetResponse = z205.object({
|
|
5839
|
+
url: z205.string()
|
|
5774
5840
|
});
|
|
5775
|
-
var DTOIntegrationPostResponse =
|
|
5841
|
+
var DTOIntegrationPostResponse = z205.object({
|
|
5776
5842
|
integration: DTOIntegration
|
|
5777
5843
|
});
|
|
5778
|
-
var DTOIntegrationsGetListResponse =
|
|
5844
|
+
var DTOIntegrationsGetListResponse = z205.object({
|
|
5779
5845
|
integrations: DTOIntegration.array()
|
|
5780
5846
|
});
|
|
5781
5847
|
|
|
5782
5848
|
// src/api/dto/workspaces/invitations.ts
|
|
5783
|
-
import { z as
|
|
5784
|
-
var DTOWorkspaceInvitationInput =
|
|
5785
|
-
email:
|
|
5849
|
+
import { z as z206 } from "zod";
|
|
5850
|
+
var DTOWorkspaceInvitationInput = z206.object({
|
|
5851
|
+
email: z206.string().email(),
|
|
5786
5852
|
role: WorkspaceRoleSchema
|
|
5787
5853
|
});
|
|
5788
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5854
|
+
var DTOWorkspaceInvitationsListInput = z206.object({
|
|
5789
5855
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5790
|
-
designSystemId:
|
|
5856
|
+
designSystemId: z206.string().optional()
|
|
5791
5857
|
});
|
|
5792
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5858
|
+
var DTOWorkspaceInvitationsResponse = z206.object({
|
|
5793
5859
|
invitations: WorkspaceInvitation.array()
|
|
5794
5860
|
});
|
|
5795
|
-
var DTOWorkspaceInviteUpdate =
|
|
5861
|
+
var DTOWorkspaceInviteUpdate = z206.object({
|
|
5796
5862
|
role: WorkspaceRoleSchema
|
|
5797
5863
|
});
|
|
5798
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5864
|
+
var DTOWorkspaceInvitationUpdateResponse = z206.object({
|
|
5799
5865
|
invitation: WorkspaceInvitation
|
|
5800
5866
|
});
|
|
5801
5867
|
|
|
5802
5868
|
// src/api/dto/workspaces/membership.ts
|
|
5803
|
-
import { z as
|
|
5869
|
+
import { z as z209 } from "zod";
|
|
5804
5870
|
|
|
5805
5871
|
// src/api/dto/workspaces/workspace.ts
|
|
5806
|
-
import { z as
|
|
5872
|
+
import { z as z208 } from "zod";
|
|
5807
5873
|
|
|
5808
5874
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5809
|
-
import { z as
|
|
5875
|
+
import { z as z207 } from "zod";
|
|
5810
5876
|
var DTONpmRegistryConfigConstants = {
|
|
5811
5877
|
passwordPlaceholder: "redacted"
|
|
5812
5878
|
};
|
|
5813
|
-
var DTONpmRegistryConfig =
|
|
5879
|
+
var DTONpmRegistryConfig = z207.object({
|
|
5814
5880
|
// Registry basic configuration
|
|
5815
5881
|
registryType: NpmRegistryType,
|
|
5816
|
-
registryUrl:
|
|
5817
|
-
customRegistryUrl:
|
|
5882
|
+
registryUrl: z207.string(),
|
|
5883
|
+
customRegistryUrl: z207.string().optional(),
|
|
5818
5884
|
// URL of Supernova NPM packages proxy
|
|
5819
|
-
proxyUrl:
|
|
5885
|
+
proxyUrl: z207.string(),
|
|
5820
5886
|
// Auth configuration
|
|
5821
5887
|
authType: NpmRegistryAuthType,
|
|
5822
|
-
accessToken:
|
|
5823
|
-
username:
|
|
5824
|
-
password:
|
|
5888
|
+
accessToken: z207.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5889
|
+
username: z207.string().optional(),
|
|
5890
|
+
password: z207.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5825
5891
|
// NPM package scopes for whih the proxy should be enabled
|
|
5826
|
-
enabledScopes:
|
|
5892
|
+
enabledScopes: z207.array(z207.string()),
|
|
5827
5893
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5828
5894
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5829
|
-
bypassProxy:
|
|
5895
|
+
bypassProxy: z207.boolean()
|
|
5830
5896
|
});
|
|
5831
5897
|
|
|
5832
5898
|
// src/api/dto/workspaces/workspace.ts
|
|
5833
5899
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
5834
|
-
var DTOWorkspace =
|
|
5835
|
-
id:
|
|
5900
|
+
var DTOWorkspace = z208.object({
|
|
5901
|
+
id: z208.string(),
|
|
5836
5902
|
profile: DTOWorkspaceProfile,
|
|
5837
5903
|
subscription: Subscription,
|
|
5838
5904
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5839
5905
|
});
|
|
5840
|
-
var DTOWorkspaceCreateInput =
|
|
5841
|
-
name:
|
|
5906
|
+
var DTOWorkspaceCreateInput = z208.object({
|
|
5907
|
+
name: z208.string()
|
|
5842
5908
|
});
|
|
5843
|
-
var DTOWorkspaceResponse =
|
|
5909
|
+
var DTOWorkspaceResponse = z208.object({
|
|
5844
5910
|
workspace: DTOWorkspace
|
|
5845
5911
|
});
|
|
5846
5912
|
|
|
5847
5913
|
// src/api/dto/workspaces/membership.ts
|
|
5848
|
-
var DTOWorkspaceRole =
|
|
5849
|
-
var DTOUserWorkspaceMembership =
|
|
5914
|
+
var DTOWorkspaceRole = z209.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5915
|
+
var DTOUserWorkspaceMembership = z209.object({
|
|
5850
5916
|
// Workspace the user is a member of
|
|
5851
5917
|
workspace: DTOWorkspace,
|
|
5852
5918
|
// Assigned role the user has in the workspace
|
|
@@ -5856,26 +5922,26 @@ var DTOUserWorkspaceMembership = z205.object({
|
|
|
5856
5922
|
// when a workspace's subscription is downgraded to free tier
|
|
5857
5923
|
effectiveRole: DTOWorkspaceRole
|
|
5858
5924
|
});
|
|
5859
|
-
var DTOWorkspaceMember =
|
|
5925
|
+
var DTOWorkspaceMember = z209.object({
|
|
5860
5926
|
user: User,
|
|
5861
5927
|
role: WorkspaceRoleSchema,
|
|
5862
5928
|
effectiveRole: WorkspaceRoleSchema
|
|
5863
5929
|
});
|
|
5864
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5865
|
-
membership:
|
|
5930
|
+
var DTOUserWorkspaceMembershipsResponse = z209.object({
|
|
5931
|
+
membership: z209.array(DTOUserWorkspaceMembership)
|
|
5866
5932
|
});
|
|
5867
|
-
var DTOWorkspaceMembersListResponse =
|
|
5868
|
-
members:
|
|
5933
|
+
var DTOWorkspaceMembersListResponse = z209.object({
|
|
5934
|
+
members: z209.array(DTOWorkspaceMember)
|
|
5869
5935
|
});
|
|
5870
5936
|
|
|
5871
5937
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5872
|
-
var DTOAppBootstrapDataQuery =
|
|
5873
|
-
preferredWorkspaceId:
|
|
5874
|
-
preferredDesignSystemId:
|
|
5875
|
-
preferredVersionId:
|
|
5876
|
-
preferredBrandId:
|
|
5938
|
+
var DTOAppBootstrapDataQuery = z210.object({
|
|
5939
|
+
preferredWorkspaceId: z210.string().optional(),
|
|
5940
|
+
preferredDesignSystemId: z210.string().optional(),
|
|
5941
|
+
preferredVersionId: z210.string().optional(),
|
|
5942
|
+
preferredBrandId: z210.string().optional()
|
|
5877
5943
|
});
|
|
5878
|
-
var DTOAppBootstrapDataResponse =
|
|
5944
|
+
var DTOAppBootstrapDataResponse = z210.object({
|
|
5879
5945
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5880
5946
|
designSystem: DTODesignSystem.optional(),
|
|
5881
5947
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5883,65 +5949,88 @@ var DTOAppBootstrapDataResponse = z206.object({
|
|
|
5883
5949
|
});
|
|
5884
5950
|
|
|
5885
5951
|
// src/api/dto/collections/token-collection.ts
|
|
5886
|
-
import { z as
|
|
5887
|
-
var DTOTokenCollection =
|
|
5888
|
-
id:
|
|
5889
|
-
persistentId:
|
|
5890
|
-
designSystemVersionId:
|
|
5952
|
+
import { z as z211 } from "zod";
|
|
5953
|
+
var DTOTokenCollection = z211.object({
|
|
5954
|
+
id: z211.string(),
|
|
5955
|
+
persistentId: z211.string(),
|
|
5956
|
+
designSystemVersionId: z211.string(),
|
|
5891
5957
|
meta: ObjectMeta,
|
|
5892
5958
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
5893
|
-
elementPropertyOptionId:
|
|
5894
|
-
createdAt:
|
|
5895
|
-
updatedAt:
|
|
5959
|
+
elementPropertyOptionId: z211.string(),
|
|
5960
|
+
createdAt: z211.coerce.date(),
|
|
5961
|
+
updatedAt: z211.coerce.date(),
|
|
5896
5962
|
origin: CollectionOrigin.optional()
|
|
5897
5963
|
});
|
|
5898
|
-
var DTOTokenCollectionsListReponse =
|
|
5964
|
+
var DTOTokenCollectionsListReponse = z211.object({
|
|
5899
5965
|
collections: DTOTokenCollection.array()
|
|
5900
5966
|
});
|
|
5901
5967
|
|
|
5902
5968
|
// src/api/dto/design-tokens/design-token.ts
|
|
5903
|
-
import { z as
|
|
5969
|
+
import { z as z212 } from "zod";
|
|
5904
5970
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
5905
|
-
|
|
5906
|
-
id:
|
|
5907
|
-
persistentId:
|
|
5908
|
-
designSystemVersionId:
|
|
5971
|
+
z212.object({
|
|
5972
|
+
id: z212.string(),
|
|
5973
|
+
persistentId: z212.string(),
|
|
5974
|
+
designSystemVersionId: z212.string(),
|
|
5909
5975
|
meta: ObjectMeta,
|
|
5910
5976
|
originStyle: DesignTokenOrigin.optional(),
|
|
5911
|
-
brandId:
|
|
5912
|
-
collectionId:
|
|
5913
|
-
updatedAt:
|
|
5977
|
+
brandId: z212.string(),
|
|
5978
|
+
collectionId: z212.string().optional(),
|
|
5979
|
+
updatedAt: z212.coerce.date()
|
|
5914
5980
|
})
|
|
5915
5981
|
);
|
|
5916
|
-
var DTODesignTokenListResponse =
|
|
5982
|
+
var DTODesignTokenListResponse = z212.object({
|
|
5917
5983
|
tokens: DTODesignToken.array()
|
|
5918
5984
|
});
|
|
5919
|
-
var DTODesignTokenResponse =
|
|
5985
|
+
var DTODesignTokenResponse = z212.object({
|
|
5920
5986
|
token: DTODesignToken
|
|
5921
5987
|
});
|
|
5988
|
+
var DTODesignTokenGroup = z212.object({
|
|
5989
|
+
id: z212.string(),
|
|
5990
|
+
tokenType: DesignTokenType,
|
|
5991
|
+
persistentId: z212.string(),
|
|
5992
|
+
isRoot: z212.boolean(),
|
|
5993
|
+
brandId: z212.string(),
|
|
5994
|
+
meta: ObjectMeta,
|
|
5995
|
+
childrenIds: z212.string().array()
|
|
5996
|
+
});
|
|
5997
|
+
var DTODesignTokenGroupListResponse = z212.object({
|
|
5998
|
+
groups: DTODesignTokenGroup.array()
|
|
5999
|
+
});
|
|
6000
|
+
var DTODesignTokenGroupResponse = z212.object({
|
|
6001
|
+
group: DTODesignTokenGroup
|
|
6002
|
+
});
|
|
5922
6003
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
5923
|
-
|
|
5924
|
-
persistentId:
|
|
6004
|
+
z212.object({
|
|
6005
|
+
persistentId: z212.string(),
|
|
5925
6006
|
meta: ObjectMeta,
|
|
5926
|
-
brandId:
|
|
5927
|
-
groupPersistentId:
|
|
6007
|
+
brandId: z212.string(),
|
|
6008
|
+
groupPersistentId: z212.string().optional()
|
|
5928
6009
|
})
|
|
5929
6010
|
);
|
|
6011
|
+
var DTODesignTokenGroupCreatePayload = z212.object({
|
|
6012
|
+
persistentId: z212.string(),
|
|
6013
|
+
meta: ObjectMeta,
|
|
6014
|
+
brandId: z212.string(),
|
|
6015
|
+
parentId: z212.string().optional(),
|
|
6016
|
+
tokenType: DesignTokenType,
|
|
6017
|
+
childrenIds: z212.string().array()
|
|
6018
|
+
});
|
|
5930
6019
|
|
|
5931
6020
|
// src/api/dto/documentation/anchor.ts
|
|
5932
|
-
import { z as
|
|
6021
|
+
import { z as z213 } from "zod";
|
|
5933
6022
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5934
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5935
|
-
anchors:
|
|
6023
|
+
var DTOGetDocumentationPageAnchorsResponse = z213.object({
|
|
6024
|
+
anchors: z213.array(DTODocumentationPageAnchor)
|
|
5936
6025
|
});
|
|
5937
6026
|
|
|
5938
6027
|
// src/api/dto/documentation/approvals.ts
|
|
5939
|
-
import { z as
|
|
6028
|
+
import { z as z214 } from "zod";
|
|
5940
6029
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5941
|
-
var DTODocumentationGroupApprovalState =
|
|
5942
|
-
persistentId:
|
|
5943
|
-
groupId:
|
|
5944
|
-
designSystemVersionId:
|
|
6030
|
+
var DTODocumentationGroupApprovalState = z214.object({
|
|
6031
|
+
persistentId: z214.string(),
|
|
6032
|
+
groupId: z214.string(),
|
|
6033
|
+
designSystemVersionId: z214.string(),
|
|
5945
6034
|
approvalState: DocumentationPageApprovalState
|
|
5946
6035
|
});
|
|
5947
6036
|
|
|
@@ -5949,68 +6038,68 @@ var DTODocumentationGroupApprovalState = z210.object({
|
|
|
5949
6038
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5950
6039
|
|
|
5951
6040
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5952
|
-
import { z as
|
|
6041
|
+
import { z as z219 } from "zod";
|
|
5953
6042
|
|
|
5954
6043
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5955
|
-
import { z as
|
|
6044
|
+
import { z as z218 } from "zod";
|
|
5956
6045
|
|
|
5957
6046
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5958
|
-
import { z as
|
|
6047
|
+
import { z as z216 } from "zod";
|
|
5959
6048
|
|
|
5960
6049
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5961
|
-
import { z as
|
|
6050
|
+
import { z as z215 } from "zod";
|
|
5962
6051
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5963
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5964
|
-
showSidebar:
|
|
5965
|
-
isPrivate:
|
|
5966
|
-
isHidden:
|
|
6052
|
+
var DTODocumentationItemConfigurationV2 = z215.object({
|
|
6053
|
+
showSidebar: z215.boolean(),
|
|
6054
|
+
isPrivate: z215.boolean(),
|
|
6055
|
+
isHidden: z215.boolean(),
|
|
5967
6056
|
header: DTODocumentationItemHeaderV2
|
|
5968
6057
|
});
|
|
5969
6058
|
|
|
5970
6059
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5971
|
-
var DTODocumentationDraftChangeType =
|
|
5972
|
-
var DTODocumentationDraftStateCreated =
|
|
5973
|
-
changeType:
|
|
5974
|
-
});
|
|
5975
|
-
var DTODocumentationDraftStateUpdated =
|
|
5976
|
-
changeType:
|
|
5977
|
-
changes:
|
|
5978
|
-
previousTitle:
|
|
6060
|
+
var DTODocumentationDraftChangeType = z216.enum(["Created", "Updated", "Deleted"]);
|
|
6061
|
+
var DTODocumentationDraftStateCreated = z216.object({
|
|
6062
|
+
changeType: z216.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6063
|
+
});
|
|
6064
|
+
var DTODocumentationDraftStateUpdated = z216.object({
|
|
6065
|
+
changeType: z216.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6066
|
+
changes: z216.object({
|
|
6067
|
+
previousTitle: z216.string().optional(),
|
|
5979
6068
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5980
|
-
previousContentHash:
|
|
6069
|
+
previousContentHash: z216.string().optional()
|
|
5981
6070
|
})
|
|
5982
6071
|
});
|
|
5983
|
-
var DTODocumentationDraftStateDeleted =
|
|
5984
|
-
changeType:
|
|
5985
|
-
deletedAt:
|
|
5986
|
-
deletedByUserId:
|
|
6072
|
+
var DTODocumentationDraftStateDeleted = z216.object({
|
|
6073
|
+
changeType: z216.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6074
|
+
deletedAt: z216.coerce.date(),
|
|
6075
|
+
deletedByUserId: z216.string()
|
|
5987
6076
|
});
|
|
5988
|
-
var DTODocumentationDraftState =
|
|
6077
|
+
var DTODocumentationDraftState = z216.discriminatedUnion("changeType", [
|
|
5989
6078
|
DTODocumentationDraftStateCreated,
|
|
5990
6079
|
DTODocumentationDraftStateUpdated,
|
|
5991
6080
|
DTODocumentationDraftStateDeleted
|
|
5992
6081
|
]);
|
|
5993
6082
|
|
|
5994
6083
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5995
|
-
import { z as
|
|
5996
|
-
var DTODocumentationPublishMetadata =
|
|
5997
|
-
lastPublishedByUserId:
|
|
5998
|
-
lastPublishedAt:
|
|
6084
|
+
import { z as z217 } from "zod";
|
|
6085
|
+
var DTODocumentationPublishMetadata = z217.object({
|
|
6086
|
+
lastPublishedByUserId: z217.string(),
|
|
6087
|
+
lastPublishedAt: z217.coerce.date()
|
|
5999
6088
|
});
|
|
6000
6089
|
|
|
6001
6090
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6002
|
-
var DTODocumentationPageV2 =
|
|
6003
|
-
id:
|
|
6004
|
-
persistentId:
|
|
6005
|
-
designSystemVersionId:
|
|
6006
|
-
title:
|
|
6091
|
+
var DTODocumentationPageV2 = z218.object({
|
|
6092
|
+
id: z218.string(),
|
|
6093
|
+
persistentId: z218.string(),
|
|
6094
|
+
designSystemVersionId: z218.string(),
|
|
6095
|
+
title: z218.string(),
|
|
6007
6096
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6008
|
-
shortPersistentId:
|
|
6009
|
-
slug:
|
|
6010
|
-
userSlug:
|
|
6011
|
-
createdAt:
|
|
6012
|
-
updatedAt:
|
|
6013
|
-
path:
|
|
6097
|
+
shortPersistentId: z218.string(),
|
|
6098
|
+
slug: z218.string().optional(),
|
|
6099
|
+
userSlug: z218.string().optional(),
|
|
6100
|
+
createdAt: z218.coerce.date(),
|
|
6101
|
+
updatedAt: z218.coerce.date(),
|
|
6102
|
+
path: z218.string(),
|
|
6014
6103
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6015
6104
|
draftState: DTODocumentationDraftState.optional(),
|
|
6016
6105
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6018,215 +6107,215 @@ var DTODocumentationPageV2 = z214.object({
|
|
|
6018
6107
|
/** Defines the approval state of the documentation page */
|
|
6019
6108
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6020
6109
|
// Backward compatibility
|
|
6021
|
-
type:
|
|
6110
|
+
type: z218.literal("Page")
|
|
6022
6111
|
});
|
|
6023
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6112
|
+
var DTOCreateDocumentationPageInputV2 = z218.object({
|
|
6024
6113
|
// Identifier
|
|
6025
|
-
persistentId:
|
|
6114
|
+
persistentId: z218.string(),
|
|
6026
6115
|
// Page properties
|
|
6027
|
-
title:
|
|
6116
|
+
title: z218.string(),
|
|
6028
6117
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6029
6118
|
// Page placement properties
|
|
6030
|
-
parentPersistentId:
|
|
6031
|
-
afterPersistentId:
|
|
6119
|
+
parentPersistentId: z218.string(),
|
|
6120
|
+
afterPersistentId: z218.string().nullish()
|
|
6032
6121
|
});
|
|
6033
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6122
|
+
var DTOUpdateDocumentationPageInputV2 = z218.object({
|
|
6034
6123
|
// Identifier of the group to update
|
|
6035
|
-
id:
|
|
6124
|
+
id: z218.string(),
|
|
6036
6125
|
// Page properties
|
|
6037
|
-
title:
|
|
6126
|
+
title: z218.string().optional(),
|
|
6038
6127
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6039
6128
|
});
|
|
6040
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6129
|
+
var DTOMoveDocumentationPageInputV2 = z218.object({
|
|
6041
6130
|
// Identifier of the group to update
|
|
6042
|
-
id:
|
|
6131
|
+
id: z218.string(),
|
|
6043
6132
|
// Page placement properties
|
|
6044
|
-
parentPersistentId:
|
|
6045
|
-
afterPersistentId:
|
|
6133
|
+
parentPersistentId: z218.string(),
|
|
6134
|
+
afterPersistentId: z218.string().nullish()
|
|
6046
6135
|
});
|
|
6047
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6136
|
+
var DTODuplicateDocumentationPageInputV2 = z218.object({
|
|
6048
6137
|
// Identifier of the page to duplicate from
|
|
6049
|
-
id:
|
|
6138
|
+
id: z218.string(),
|
|
6050
6139
|
// New page persistent id
|
|
6051
|
-
persistentId:
|
|
6140
|
+
persistentId: z218.string(),
|
|
6052
6141
|
// Page placement properties
|
|
6053
|
-
parentPersistentId:
|
|
6054
|
-
afterPersistentId:
|
|
6142
|
+
parentPersistentId: z218.string(),
|
|
6143
|
+
afterPersistentId: z218.string().nullish()
|
|
6055
6144
|
});
|
|
6056
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6145
|
+
var DTODeleteDocumentationPageInputV2 = z218.object({
|
|
6057
6146
|
// Identifier
|
|
6058
|
-
id:
|
|
6147
|
+
id: z218.string()
|
|
6059
6148
|
});
|
|
6060
|
-
var DTORestoreDocumentationPageInput =
|
|
6061
|
-
persistentId:
|
|
6062
|
-
snapshotId:
|
|
6149
|
+
var DTORestoreDocumentationPageInput = z218.object({
|
|
6150
|
+
persistentId: z218.string(),
|
|
6151
|
+
snapshotId: z218.string().optional()
|
|
6063
6152
|
});
|
|
6064
|
-
var DTORestoreDocumentationGroupInput =
|
|
6065
|
-
persistentId:
|
|
6066
|
-
snapshotId:
|
|
6153
|
+
var DTORestoreDocumentationGroupInput = z218.object({
|
|
6154
|
+
persistentId: z218.string(),
|
|
6155
|
+
snapshotId: z218.string().optional()
|
|
6067
6156
|
});
|
|
6068
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6069
|
-
persistentId:
|
|
6157
|
+
var DTODocumentationPageApprovalStateChangeInput = z218.object({
|
|
6158
|
+
persistentId: z218.string(),
|
|
6070
6159
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6071
6160
|
});
|
|
6072
6161
|
|
|
6073
6162
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6074
|
-
var DTODocumentationPageSnapshot =
|
|
6075
|
-
id:
|
|
6076
|
-
designSystemVersionId:
|
|
6077
|
-
createdAt:
|
|
6078
|
-
updatedAt:
|
|
6163
|
+
var DTODocumentationPageSnapshot = z219.object({
|
|
6164
|
+
id: z219.string(),
|
|
6165
|
+
designSystemVersionId: z219.string(),
|
|
6166
|
+
createdAt: z219.string(),
|
|
6167
|
+
updatedAt: z219.string(),
|
|
6079
6168
|
documentationPage: DTODocumentationPageV2,
|
|
6080
|
-
pageContentHash:
|
|
6169
|
+
pageContentHash: z219.string(),
|
|
6081
6170
|
reason: DesignElementSnapshotReason
|
|
6082
6171
|
});
|
|
6083
6172
|
|
|
6084
6173
|
// src/api/dto/documentation/link-preview.ts
|
|
6085
|
-
import { z as
|
|
6086
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6174
|
+
import { z as z220 } from "zod";
|
|
6175
|
+
var DTODocumentationLinkPreviewResponse = z220.object({
|
|
6087
6176
|
linkPreview: DocumentationLinkPreview
|
|
6088
6177
|
});
|
|
6089
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6090
|
-
url:
|
|
6091
|
-
documentationItemPersistentId:
|
|
6178
|
+
var DTODocumentationLinkPreviewRequest = z220.object({
|
|
6179
|
+
url: z220.string().optional(),
|
|
6180
|
+
documentationItemPersistentId: z220.string().optional()
|
|
6092
6181
|
});
|
|
6093
6182
|
|
|
6094
6183
|
// src/api/dto/documentation/publish.ts
|
|
6095
|
-
import { z as
|
|
6184
|
+
import { z as z224 } from "zod";
|
|
6096
6185
|
|
|
6097
6186
|
// src/api/dto/export/exporter.ts
|
|
6098
|
-
import { z as
|
|
6099
|
-
var DTOExporterType =
|
|
6100
|
-
var DTOExporterSource =
|
|
6101
|
-
var DTOExporterMembershipRole =
|
|
6102
|
-
var DTOExporterListQuery =
|
|
6103
|
-
limit:
|
|
6104
|
-
});
|
|
6105
|
-
var DTOExporter =
|
|
6106
|
-
id:
|
|
6107
|
-
name:
|
|
6108
|
-
isPrivate:
|
|
6187
|
+
import { z as z221 } from "zod";
|
|
6188
|
+
var DTOExporterType = z221.enum(["documentation", "code"]);
|
|
6189
|
+
var DTOExporterSource = z221.enum(["git", "upload"]);
|
|
6190
|
+
var DTOExporterMembershipRole = z221.enum(["Owner", "OwnerArchived", "User"]);
|
|
6191
|
+
var DTOExporterListQuery = z221.object({
|
|
6192
|
+
limit: z221.coerce.number().optional()
|
|
6193
|
+
});
|
|
6194
|
+
var DTOExporter = z221.object({
|
|
6195
|
+
id: z221.string(),
|
|
6196
|
+
name: z221.string(),
|
|
6197
|
+
isPrivate: z221.boolean(),
|
|
6109
6198
|
exporterType: DTOExporterType,
|
|
6110
|
-
isDefaultDocumentationExporter:
|
|
6111
|
-
iconURL:
|
|
6199
|
+
isDefaultDocumentationExporter: z221.boolean(),
|
|
6200
|
+
iconURL: z221.string().optional(),
|
|
6112
6201
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6113
6202
|
customBlocks: PulsarCustomBlock.array(),
|
|
6114
|
-
blockVariants:
|
|
6115
|
-
usesBrands:
|
|
6116
|
-
usesThemes:
|
|
6203
|
+
blockVariants: z221.record(z221.string(), PulsarContributionVariant.array()),
|
|
6204
|
+
usesBrands: z221.boolean(),
|
|
6205
|
+
usesThemes: z221.boolean(),
|
|
6117
6206
|
source: DTOExporterSource,
|
|
6118
|
-
gitUrl: nullishToOptional(
|
|
6119
|
-
gitBranch: nullishToOptional(
|
|
6120
|
-
gitDirectory: nullishToOptional(
|
|
6207
|
+
gitUrl: nullishToOptional(z221.string()),
|
|
6208
|
+
gitBranch: nullishToOptional(z221.string()),
|
|
6209
|
+
gitDirectory: nullishToOptional(z221.string())
|
|
6121
6210
|
});
|
|
6122
|
-
var DTOExporterMembership =
|
|
6123
|
-
workspaceId:
|
|
6124
|
-
exporterId:
|
|
6211
|
+
var DTOExporterMembership = z221.object({
|
|
6212
|
+
workspaceId: z221.string(),
|
|
6213
|
+
exporterId: z221.string(),
|
|
6125
6214
|
role: DTOExporterMembershipRole
|
|
6126
6215
|
});
|
|
6127
|
-
var DTOExporterCreateOutput =
|
|
6216
|
+
var DTOExporterCreateOutput = z221.object({
|
|
6128
6217
|
exporter: DTOExporter,
|
|
6129
6218
|
membership: DTOExporterMembership
|
|
6130
6219
|
});
|
|
6131
|
-
var DTOExporterListResponse =
|
|
6220
|
+
var DTOExporterListResponse = z221.object({
|
|
6132
6221
|
exporters: DTOExporter.array(),
|
|
6133
6222
|
membership: DTOExporterMembership.array()
|
|
6134
6223
|
});
|
|
6135
|
-
var DTOExporterGitProviderEnum =
|
|
6136
|
-
var DTOExporterCreateInput =
|
|
6137
|
-
url:
|
|
6224
|
+
var DTOExporterGitProviderEnum = z221.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6225
|
+
var DTOExporterCreateInput = z221.object({
|
|
6226
|
+
url: z221.string(),
|
|
6138
6227
|
provider: DTOExporterGitProviderEnum
|
|
6139
6228
|
});
|
|
6140
|
-
var DTOExporterUpdateInput =
|
|
6141
|
-
url:
|
|
6229
|
+
var DTOExporterUpdateInput = z221.object({
|
|
6230
|
+
url: z221.string().optional()
|
|
6142
6231
|
});
|
|
6143
6232
|
|
|
6144
6233
|
// src/api/dto/export/filter.ts
|
|
6145
6234
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6146
6235
|
|
|
6147
6236
|
// src/api/dto/export/job.ts
|
|
6148
|
-
import { z as
|
|
6149
|
-
var DTOExportJobCreatedBy =
|
|
6150
|
-
userId:
|
|
6151
|
-
userName:
|
|
6237
|
+
import { z as z222 } from "zod";
|
|
6238
|
+
var DTOExportJobCreatedBy = z222.object({
|
|
6239
|
+
userId: z222.string(),
|
|
6240
|
+
userName: z222.string()
|
|
6152
6241
|
});
|
|
6153
|
-
var DTOExportJobDesignSystemPreview =
|
|
6154
|
-
id:
|
|
6242
|
+
var DTOExportJobDesignSystemPreview = z222.object({
|
|
6243
|
+
id: z222.string(),
|
|
6155
6244
|
meta: ObjectMeta
|
|
6156
6245
|
});
|
|
6157
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6158
|
-
id:
|
|
6246
|
+
var DTOExportJobDesignSystemVersionPreview = z222.object({
|
|
6247
|
+
id: z222.string(),
|
|
6159
6248
|
meta: ObjectMeta,
|
|
6160
|
-
version:
|
|
6161
|
-
isReadonly:
|
|
6249
|
+
version: z222.string(),
|
|
6250
|
+
isReadonly: z222.boolean()
|
|
6162
6251
|
});
|
|
6163
|
-
var DTOExportJobDestinations =
|
|
6252
|
+
var DTOExportJobDestinations = z222.object({
|
|
6164
6253
|
s3: ExporterDestinationS3.optional(),
|
|
6165
6254
|
azure: ExporterDestinationAzure.optional(),
|
|
6166
6255
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6167
6256
|
github: ExporterDestinationGithub.optional(),
|
|
6168
6257
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6169
6258
|
documentation: ExporterDestinationDocs.optional(),
|
|
6170
|
-
webhookUrl:
|
|
6259
|
+
webhookUrl: z222.string().optional()
|
|
6171
6260
|
});
|
|
6172
6261
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6173
6262
|
sndocs: true
|
|
6174
6263
|
}).extend({
|
|
6175
6264
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6176
6265
|
});
|
|
6177
|
-
var DTOExportJob =
|
|
6178
|
-
id:
|
|
6179
|
-
createdAt:
|
|
6180
|
-
finishedAt:
|
|
6181
|
-
index:
|
|
6266
|
+
var DTOExportJob = z222.object({
|
|
6267
|
+
id: z222.string(),
|
|
6268
|
+
createdAt: z222.coerce.date(),
|
|
6269
|
+
finishedAt: z222.coerce.date().optional(),
|
|
6270
|
+
index: z222.number().optional(),
|
|
6182
6271
|
status: ExportJobStatus,
|
|
6183
|
-
estimatedExecutionTime:
|
|
6272
|
+
estimatedExecutionTime: z222.number().optional(),
|
|
6184
6273
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6185
6274
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6186
6275
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6187
6276
|
destinations: DTOExportJobDestinations,
|
|
6188
|
-
exporterId:
|
|
6189
|
-
scheduleId:
|
|
6277
|
+
exporterId: z222.string(),
|
|
6278
|
+
scheduleId: z222.string().optional(),
|
|
6190
6279
|
result: DTOExportJobResult.optional(),
|
|
6191
|
-
brandPersistentId:
|
|
6192
|
-
themePersistentId:
|
|
6193
|
-
themePersistentIds:
|
|
6280
|
+
brandPersistentId: z222.string().optional(),
|
|
6281
|
+
themePersistentId: z222.string().optional(),
|
|
6282
|
+
themePersistentIds: z222.string().array().optional()
|
|
6194
6283
|
});
|
|
6195
|
-
var DTOExportJobResponse =
|
|
6284
|
+
var DTOExportJobResponse = z222.object({
|
|
6196
6285
|
job: DTOExportJob
|
|
6197
6286
|
});
|
|
6198
6287
|
|
|
6199
6288
|
// src/api/dto/export/pipeline.ts
|
|
6200
|
-
import { z as
|
|
6201
|
-
var DTOPipelineListQuery =
|
|
6202
|
-
designSystemId:
|
|
6203
|
-
exporterId:
|
|
6204
|
-
latestJobsLimit:
|
|
6205
|
-
});
|
|
6206
|
-
var DTOPipeline =
|
|
6207
|
-
id:
|
|
6208
|
-
name:
|
|
6289
|
+
import { z as z223 } from "zod";
|
|
6290
|
+
var DTOPipelineListQuery = z223.object({
|
|
6291
|
+
designSystemId: z223.string().optional(),
|
|
6292
|
+
exporterId: z223.string().optional(),
|
|
6293
|
+
latestJobsLimit: z223.coerce.number().optional()
|
|
6294
|
+
});
|
|
6295
|
+
var DTOPipeline = z223.object({
|
|
6296
|
+
id: z223.string(),
|
|
6297
|
+
name: z223.string(),
|
|
6209
6298
|
eventType: PipelineEventType,
|
|
6210
|
-
isEnabled:
|
|
6211
|
-
workspaceId:
|
|
6212
|
-
designSystemId:
|
|
6213
|
-
exporterId:
|
|
6214
|
-
brandPersistentId:
|
|
6215
|
-
themePersistentId:
|
|
6216
|
-
themePersistentIds:
|
|
6299
|
+
isEnabled: z223.boolean(),
|
|
6300
|
+
workspaceId: z223.string(),
|
|
6301
|
+
designSystemId: z223.string(),
|
|
6302
|
+
exporterId: z223.string(),
|
|
6303
|
+
brandPersistentId: z223.string().optional(),
|
|
6304
|
+
themePersistentId: z223.string().optional(),
|
|
6305
|
+
themePersistentIds: z223.string().array().optional(),
|
|
6217
6306
|
...ExportDestinationsMap.shape,
|
|
6218
6307
|
latestJobs: DTOExportJob.array()
|
|
6219
6308
|
});
|
|
6220
|
-
var DTOPipelineListResponse =
|
|
6309
|
+
var DTOPipelineListResponse = z223.object({
|
|
6221
6310
|
pipelines: DTOPipeline.array()
|
|
6222
6311
|
});
|
|
6223
|
-
var DTOPipelineResponse =
|
|
6312
|
+
var DTOPipelineResponse = z223.object({
|
|
6224
6313
|
pipeline: DTOPipeline
|
|
6225
6314
|
});
|
|
6226
6315
|
|
|
6227
6316
|
// src/api/dto/documentation/publish.ts
|
|
6228
6317
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6229
|
-
var DTOPublishDocumentationRequest =
|
|
6318
|
+
var DTOPublishDocumentationRequest = z224.object({
|
|
6230
6319
|
environment: PublishedDocEnvironment,
|
|
6231
6320
|
/**
|
|
6232
6321
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6234,42 +6323,42 @@ var DTOPublishDocumentationRequest = z220.object({
|
|
|
6234
6323
|
*/
|
|
6235
6324
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6236
6325
|
});
|
|
6237
|
-
var DTOPublishDocumentationResponse =
|
|
6326
|
+
var DTOPublishDocumentationResponse = z224.object({
|
|
6238
6327
|
job: DTOExportJob
|
|
6239
6328
|
});
|
|
6240
6329
|
|
|
6241
6330
|
// src/api/dto/elements/components/figma-component.ts
|
|
6242
|
-
import { z as
|
|
6331
|
+
import { z as z225 } from "zod";
|
|
6243
6332
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6244
|
-
var DTOFigmaComponentPropertyMap =
|
|
6245
|
-
var DTOFigmaComponent =
|
|
6246
|
-
id:
|
|
6247
|
-
persistentId:
|
|
6248
|
-
designSystemVersionId:
|
|
6249
|
-
brandId:
|
|
6250
|
-
thumbnailUrl:
|
|
6251
|
-
svgUrl:
|
|
6252
|
-
exportProperties:
|
|
6253
|
-
isAsset:
|
|
6333
|
+
var DTOFigmaComponentPropertyMap = z225.record(DTOFigmaComponentProperty);
|
|
6334
|
+
var DTOFigmaComponent = z225.object({
|
|
6335
|
+
id: z225.string(),
|
|
6336
|
+
persistentId: z225.string(),
|
|
6337
|
+
designSystemVersionId: z225.string(),
|
|
6338
|
+
brandId: z225.string(),
|
|
6339
|
+
thumbnailUrl: z225.string().optional(),
|
|
6340
|
+
svgUrl: z225.string().optional(),
|
|
6341
|
+
exportProperties: z225.object({
|
|
6342
|
+
isAsset: z225.boolean()
|
|
6254
6343
|
}),
|
|
6255
|
-
createdAt:
|
|
6256
|
-
updatedAt:
|
|
6344
|
+
createdAt: z225.coerce.date(),
|
|
6345
|
+
updatedAt: z225.coerce.date(),
|
|
6257
6346
|
meta: ObjectMeta,
|
|
6258
6347
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6259
|
-
parentComponentPersistentId:
|
|
6260
|
-
childrenPersistentIds:
|
|
6348
|
+
parentComponentPersistentId: z225.string().optional(),
|
|
6349
|
+
childrenPersistentIds: z225.string().array().optional(),
|
|
6261
6350
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6262
|
-
variantPropertyValues:
|
|
6351
|
+
variantPropertyValues: z225.record(z225.string()).optional()
|
|
6263
6352
|
});
|
|
6264
|
-
var DTOFigmaComponentListResponse =
|
|
6353
|
+
var DTOFigmaComponentListResponse = z225.object({
|
|
6265
6354
|
components: DTOFigmaComponent.array()
|
|
6266
6355
|
});
|
|
6267
6356
|
|
|
6268
6357
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6269
|
-
import { z as
|
|
6358
|
+
import { z as z227 } from "zod";
|
|
6270
6359
|
|
|
6271
6360
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6272
|
-
import { z as
|
|
6361
|
+
import { z as z226 } from "zod";
|
|
6273
6362
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6274
6363
|
sortOrder: true,
|
|
6275
6364
|
parentPersistentId: true,
|
|
@@ -6279,13 +6368,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6279
6368
|
data: true,
|
|
6280
6369
|
shortPersistentId: true
|
|
6281
6370
|
}).extend({
|
|
6282
|
-
title:
|
|
6283
|
-
isRoot:
|
|
6284
|
-
childrenIds:
|
|
6371
|
+
title: z226.string(),
|
|
6372
|
+
isRoot: z226.boolean(),
|
|
6373
|
+
childrenIds: z226.array(z226.string()),
|
|
6285
6374
|
groupBehavior: DocumentationGroupBehavior,
|
|
6286
|
-
shortPersistentId:
|
|
6375
|
+
shortPersistentId: z226.string(),
|
|
6287
6376
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6288
|
-
type:
|
|
6377
|
+
type: z226.literal("Group"),
|
|
6289
6378
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6290
6379
|
draftState: DTODocumentationDraftState.optional(),
|
|
6291
6380
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6293,127 +6382,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6293
6382
|
//** An approval state for frontend to utilize. */
|
|
6294
6383
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6295
6384
|
});
|
|
6296
|
-
var DTOCreateDocumentationGroupInput =
|
|
6385
|
+
var DTOCreateDocumentationGroupInput = z226.object({
|
|
6297
6386
|
// Identifier
|
|
6298
|
-
persistentId:
|
|
6387
|
+
persistentId: z226.string(),
|
|
6299
6388
|
// Group properties
|
|
6300
|
-
title:
|
|
6389
|
+
title: z226.string(),
|
|
6301
6390
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6302
6391
|
// Group placement properties
|
|
6303
|
-
afterPersistentId:
|
|
6304
|
-
parentPersistentId:
|
|
6392
|
+
afterPersistentId: z226.string().nullish(),
|
|
6393
|
+
parentPersistentId: z226.string()
|
|
6305
6394
|
});
|
|
6306
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6395
|
+
var DTOUpdateDocumentationGroupInput = z226.object({
|
|
6307
6396
|
// Identifier of the group to update
|
|
6308
|
-
id:
|
|
6397
|
+
id: z226.string(),
|
|
6309
6398
|
// Group properties
|
|
6310
|
-
title:
|
|
6399
|
+
title: z226.string().optional(),
|
|
6311
6400
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6312
6401
|
});
|
|
6313
|
-
var DTOMoveDocumentationGroupInput =
|
|
6402
|
+
var DTOMoveDocumentationGroupInput = z226.object({
|
|
6314
6403
|
// Identifier of the group to update
|
|
6315
|
-
id:
|
|
6404
|
+
id: z226.string(),
|
|
6316
6405
|
// Group placement properties
|
|
6317
|
-
parentPersistentId:
|
|
6318
|
-
afterPersistentId:
|
|
6406
|
+
parentPersistentId: z226.string(),
|
|
6407
|
+
afterPersistentId: z226.string().nullish()
|
|
6319
6408
|
});
|
|
6320
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6409
|
+
var DTODuplicateDocumentationGroupInput = z226.object({
|
|
6321
6410
|
// Identifier of the group to duplicate from
|
|
6322
|
-
id:
|
|
6411
|
+
id: z226.string(),
|
|
6323
6412
|
// New group persistent id
|
|
6324
|
-
persistentId:
|
|
6413
|
+
persistentId: z226.string(),
|
|
6325
6414
|
// Group placement properties
|
|
6326
|
-
afterPersistentId:
|
|
6327
|
-
parentPersistentId:
|
|
6415
|
+
afterPersistentId: z226.string().nullish(),
|
|
6416
|
+
parentPersistentId: z226.string()
|
|
6328
6417
|
});
|
|
6329
|
-
var DTOCreateDocumentationTabInput =
|
|
6418
|
+
var DTOCreateDocumentationTabInput = z226.object({
|
|
6330
6419
|
// New group persistent id
|
|
6331
|
-
persistentId:
|
|
6420
|
+
persistentId: z226.string(),
|
|
6332
6421
|
// If this is page, we will attempt to convert it to tab
|
|
6333
6422
|
// If this is tab group, we will add a new tab to it
|
|
6334
|
-
fromItemPersistentId:
|
|
6335
|
-
tabName:
|
|
6423
|
+
fromItemPersistentId: z226.string(),
|
|
6424
|
+
tabName: z226.string()
|
|
6336
6425
|
});
|
|
6337
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6426
|
+
var DTODeleteDocumentationTabGroupInput = z226.object({
|
|
6338
6427
|
// Deleted group id
|
|
6339
|
-
id:
|
|
6428
|
+
id: z226.string()
|
|
6340
6429
|
});
|
|
6341
|
-
var DTODeleteDocumentationGroupInput =
|
|
6430
|
+
var DTODeleteDocumentationGroupInput = z226.object({
|
|
6342
6431
|
// Identifier
|
|
6343
|
-
id:
|
|
6432
|
+
id: z226.string(),
|
|
6344
6433
|
// Deletion options
|
|
6345
|
-
deleteSubtree:
|
|
6434
|
+
deleteSubtree: z226.boolean().default(false)
|
|
6346
6435
|
});
|
|
6347
6436
|
|
|
6348
6437
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6349
|
-
var SuccessPayload =
|
|
6350
|
-
success:
|
|
6438
|
+
var SuccessPayload = z227.object({
|
|
6439
|
+
success: z227.literal(true)
|
|
6351
6440
|
});
|
|
6352
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6353
|
-
type:
|
|
6441
|
+
var DTODocumentationGroupCreateActionOutputV2 = z227.object({
|
|
6442
|
+
type: z227.literal("DocumentationGroupCreate"),
|
|
6354
6443
|
output: SuccessPayload
|
|
6355
6444
|
});
|
|
6356
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6357
|
-
type:
|
|
6445
|
+
var DTODocumentationTabCreateActionOutputV2 = z227.object({
|
|
6446
|
+
type: z227.literal("DocumentationTabCreate"),
|
|
6358
6447
|
output: SuccessPayload
|
|
6359
6448
|
});
|
|
6360
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6361
|
-
type:
|
|
6449
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z227.object({
|
|
6450
|
+
type: z227.literal("DocumentationGroupUpdate"),
|
|
6362
6451
|
output: SuccessPayload
|
|
6363
6452
|
});
|
|
6364
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6365
|
-
type:
|
|
6453
|
+
var DTODocumentationGroupMoveActionOutputV2 = z227.object({
|
|
6454
|
+
type: z227.literal("DocumentationGroupMove"),
|
|
6366
6455
|
output: SuccessPayload
|
|
6367
6456
|
});
|
|
6368
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6369
|
-
type:
|
|
6457
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z227.object({
|
|
6458
|
+
type: z227.literal("DocumentationGroupDuplicate"),
|
|
6370
6459
|
output: SuccessPayload
|
|
6371
6460
|
});
|
|
6372
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6373
|
-
type:
|
|
6461
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z227.object({
|
|
6462
|
+
type: z227.literal("DocumentationGroupDelete"),
|
|
6374
6463
|
output: SuccessPayload
|
|
6375
6464
|
});
|
|
6376
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6377
|
-
type:
|
|
6465
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z227.object({
|
|
6466
|
+
type: z227.literal("DocumentationTabGroupDelete"),
|
|
6378
6467
|
output: SuccessPayload
|
|
6379
6468
|
});
|
|
6380
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6381
|
-
type:
|
|
6469
|
+
var DTODocumentationGroupCreateActionInputV2 = z227.object({
|
|
6470
|
+
type: z227.literal("DocumentationGroupCreate"),
|
|
6382
6471
|
input: DTOCreateDocumentationGroupInput
|
|
6383
6472
|
});
|
|
6384
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6385
|
-
type:
|
|
6473
|
+
var DTODocumentationTabCreateActionInputV2 = z227.object({
|
|
6474
|
+
type: z227.literal("DocumentationTabCreate"),
|
|
6386
6475
|
input: DTOCreateDocumentationTabInput
|
|
6387
6476
|
});
|
|
6388
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6389
|
-
type:
|
|
6477
|
+
var DTODocumentationGroupUpdateActionInputV2 = z227.object({
|
|
6478
|
+
type: z227.literal("DocumentationGroupUpdate"),
|
|
6390
6479
|
input: DTOUpdateDocumentationGroupInput
|
|
6391
6480
|
});
|
|
6392
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6393
|
-
type:
|
|
6481
|
+
var DTODocumentationGroupMoveActionInputV2 = z227.object({
|
|
6482
|
+
type: z227.literal("DocumentationGroupMove"),
|
|
6394
6483
|
input: DTOMoveDocumentationGroupInput
|
|
6395
6484
|
});
|
|
6396
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6397
|
-
type:
|
|
6485
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z227.object({
|
|
6486
|
+
type: z227.literal("DocumentationGroupDuplicate"),
|
|
6398
6487
|
input: DTODuplicateDocumentationGroupInput
|
|
6399
6488
|
});
|
|
6400
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6401
|
-
type:
|
|
6489
|
+
var DTODocumentationGroupDeleteActionInputV2 = z227.object({
|
|
6490
|
+
type: z227.literal("DocumentationGroupDelete"),
|
|
6402
6491
|
input: DTODeleteDocumentationGroupInput
|
|
6403
6492
|
});
|
|
6404
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6405
|
-
type:
|
|
6493
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z227.object({
|
|
6494
|
+
type: z227.literal("DocumentationTabGroupDelete"),
|
|
6406
6495
|
input: DTODeleteDocumentationTabGroupInput
|
|
6407
6496
|
});
|
|
6408
6497
|
|
|
6409
6498
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6410
|
-
import { z as
|
|
6499
|
+
import { z as z229 } from "zod";
|
|
6411
6500
|
|
|
6412
6501
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6413
|
-
import { z as
|
|
6414
|
-
var DocumentationColorV1 =
|
|
6415
|
-
aliasTo:
|
|
6416
|
-
value:
|
|
6502
|
+
import { z as z228 } from "zod";
|
|
6503
|
+
var DocumentationColorV1 = z228.object({
|
|
6504
|
+
aliasTo: z228.string().optional(),
|
|
6505
|
+
value: z228.string().optional()
|
|
6417
6506
|
});
|
|
6418
6507
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6419
6508
|
foregroundColor: true,
|
|
@@ -6422,10 +6511,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6422
6511
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6423
6512
|
backgroundColor: DocumentationColorV1.optional()
|
|
6424
6513
|
});
|
|
6425
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6426
|
-
showSidebar:
|
|
6427
|
-
isPrivate:
|
|
6428
|
-
isHidden:
|
|
6514
|
+
var DTODocumentationItemConfigurationV1 = z228.object({
|
|
6515
|
+
showSidebar: z228.boolean(),
|
|
6516
|
+
isPrivate: z228.boolean(),
|
|
6517
|
+
isHidden: z228.boolean(),
|
|
6429
6518
|
header: DTODocumentationItemHeaderV1
|
|
6430
6519
|
});
|
|
6431
6520
|
|
|
@@ -6439,27 +6528,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6439
6528
|
data: true,
|
|
6440
6529
|
shortPersistentId: true
|
|
6441
6530
|
}).extend({
|
|
6442
|
-
title:
|
|
6443
|
-
isRoot:
|
|
6444
|
-
childrenIds:
|
|
6531
|
+
title: z229.string(),
|
|
6532
|
+
isRoot: z229.boolean(),
|
|
6533
|
+
childrenIds: z229.array(z229.string()),
|
|
6445
6534
|
groupBehavior: DocumentationGroupBehavior,
|
|
6446
|
-
shortPersistentId:
|
|
6447
|
-
type:
|
|
6535
|
+
shortPersistentId: z229.string(),
|
|
6536
|
+
type: z229.literal("Group")
|
|
6448
6537
|
});
|
|
6449
6538
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6450
6539
|
configuration: DTODocumentationItemConfigurationV1
|
|
6451
6540
|
});
|
|
6452
6541
|
|
|
6453
6542
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6454
|
-
import { z as
|
|
6455
|
-
var DTODocumentationHierarchyV2 =
|
|
6456
|
-
pages:
|
|
6543
|
+
import { z as z230 } from "zod";
|
|
6544
|
+
var DTODocumentationHierarchyV2 = z230.object({
|
|
6545
|
+
pages: z230.array(
|
|
6457
6546
|
DTODocumentationPageV2.extend({
|
|
6458
6547
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6459
6548
|
draftState: DTODocumentationDraftState.optional()
|
|
6460
6549
|
})
|
|
6461
6550
|
),
|
|
6462
|
-
groups:
|
|
6551
|
+
groups: z230.array(
|
|
6463
6552
|
DTODocumentationGroupV2.extend({
|
|
6464
6553
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6465
6554
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6468,84 +6557,84 @@ var DTODocumentationHierarchyV2 = z226.object({
|
|
|
6468
6557
|
});
|
|
6469
6558
|
|
|
6470
6559
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6471
|
-
import { z as
|
|
6472
|
-
var SuccessPayload2 =
|
|
6473
|
-
success:
|
|
6560
|
+
import { z as z231 } from "zod";
|
|
6561
|
+
var SuccessPayload2 = z231.object({
|
|
6562
|
+
success: z231.literal(true)
|
|
6474
6563
|
});
|
|
6475
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6476
|
-
type:
|
|
6564
|
+
var DTODocumentationPageCreateActionOutputV2 = z231.object({
|
|
6565
|
+
type: z231.literal("DocumentationPageCreate"),
|
|
6477
6566
|
output: SuccessPayload2
|
|
6478
6567
|
});
|
|
6479
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6480
|
-
type:
|
|
6568
|
+
var DTODocumentationPageUpdateActionOutputV2 = z231.object({
|
|
6569
|
+
type: z231.literal("DocumentationPageUpdate"),
|
|
6481
6570
|
output: SuccessPayload2
|
|
6482
6571
|
});
|
|
6483
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6484
|
-
type:
|
|
6572
|
+
var DTODocumentationPageMoveActionOutputV2 = z231.object({
|
|
6573
|
+
type: z231.literal("DocumentationPageMove"),
|
|
6485
6574
|
output: SuccessPayload2
|
|
6486
6575
|
});
|
|
6487
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6488
|
-
type:
|
|
6576
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z231.object({
|
|
6577
|
+
type: z231.literal("DocumentationPageDuplicate"),
|
|
6489
6578
|
output: SuccessPayload2
|
|
6490
6579
|
});
|
|
6491
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6492
|
-
type:
|
|
6580
|
+
var DTODocumentationPageDeleteActionOutputV2 = z231.object({
|
|
6581
|
+
type: z231.literal("DocumentationPageDelete"),
|
|
6493
6582
|
output: SuccessPayload2
|
|
6494
6583
|
});
|
|
6495
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6496
|
-
type:
|
|
6584
|
+
var DTODocumentationPageRestoreActionOutput = z231.object({
|
|
6585
|
+
type: z231.literal("DocumentationPageRestore"),
|
|
6497
6586
|
output: SuccessPayload2
|
|
6498
6587
|
});
|
|
6499
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6500
|
-
type:
|
|
6588
|
+
var DTODocumentationGroupRestoreActionOutput = z231.object({
|
|
6589
|
+
type: z231.literal("DocumentationGroupRestore"),
|
|
6501
6590
|
output: SuccessPayload2
|
|
6502
6591
|
});
|
|
6503
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6504
|
-
type:
|
|
6592
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z231.object({
|
|
6593
|
+
type: z231.literal("DocumentationPageApprovalStateChange"),
|
|
6505
6594
|
output: SuccessPayload2
|
|
6506
6595
|
});
|
|
6507
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6508
|
-
type:
|
|
6596
|
+
var DTODocumentationPageCreateActionInputV2 = z231.object({
|
|
6597
|
+
type: z231.literal("DocumentationPageCreate"),
|
|
6509
6598
|
input: DTOCreateDocumentationPageInputV2
|
|
6510
6599
|
});
|
|
6511
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6512
|
-
type:
|
|
6600
|
+
var DTODocumentationPageUpdateActionInputV2 = z231.object({
|
|
6601
|
+
type: z231.literal("DocumentationPageUpdate"),
|
|
6513
6602
|
input: DTOUpdateDocumentationPageInputV2
|
|
6514
6603
|
});
|
|
6515
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6516
|
-
type:
|
|
6604
|
+
var DTODocumentationPageMoveActionInputV2 = z231.object({
|
|
6605
|
+
type: z231.literal("DocumentationPageMove"),
|
|
6517
6606
|
input: DTOMoveDocumentationPageInputV2
|
|
6518
6607
|
});
|
|
6519
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6520
|
-
type:
|
|
6608
|
+
var DTODocumentationPageDuplicateActionInputV2 = z231.object({
|
|
6609
|
+
type: z231.literal("DocumentationPageDuplicate"),
|
|
6521
6610
|
input: DTODuplicateDocumentationPageInputV2
|
|
6522
6611
|
});
|
|
6523
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6524
|
-
type:
|
|
6612
|
+
var DTODocumentationPageDeleteActionInputV2 = z231.object({
|
|
6613
|
+
type: z231.literal("DocumentationPageDelete"),
|
|
6525
6614
|
input: DTODeleteDocumentationPageInputV2
|
|
6526
6615
|
});
|
|
6527
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6528
|
-
type:
|
|
6616
|
+
var DTODocumentationPageRestoreActionInput = z231.object({
|
|
6617
|
+
type: z231.literal("DocumentationPageRestore"),
|
|
6529
6618
|
input: DTORestoreDocumentationPageInput
|
|
6530
6619
|
});
|
|
6531
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6532
|
-
type:
|
|
6620
|
+
var DTODocumentationGroupRestoreActionInput = z231.object({
|
|
6621
|
+
type: z231.literal("DocumentationGroupRestore"),
|
|
6533
6622
|
input: DTORestoreDocumentationGroupInput
|
|
6534
6623
|
});
|
|
6535
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6536
|
-
type:
|
|
6624
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z231.object({
|
|
6625
|
+
type: z231.literal("DocumentationPageApprovalStateChange"),
|
|
6537
6626
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6538
6627
|
});
|
|
6539
6628
|
|
|
6540
6629
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6541
|
-
import { z as
|
|
6630
|
+
import { z as z232 } from "zod";
|
|
6542
6631
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6543
|
-
var DTODocumentationPageContentGetResponse =
|
|
6632
|
+
var DTODocumentationPageContentGetResponse = z232.object({
|
|
6544
6633
|
pageContent: DTODocumentationPageContent
|
|
6545
6634
|
});
|
|
6546
6635
|
|
|
6547
6636
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6548
|
-
import { z as
|
|
6637
|
+
import { z as z233 } from "zod";
|
|
6549
6638
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6550
6639
|
data: true,
|
|
6551
6640
|
meta: true,
|
|
@@ -6553,32 +6642,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6553
6642
|
sortOrder: true
|
|
6554
6643
|
}).extend({
|
|
6555
6644
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6556
|
-
blocks:
|
|
6557
|
-
title:
|
|
6558
|
-
path:
|
|
6645
|
+
blocks: z233.array(PageBlockV1),
|
|
6646
|
+
title: z233.string(),
|
|
6647
|
+
path: z233.string()
|
|
6559
6648
|
});
|
|
6560
6649
|
|
|
6561
6650
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6562
|
-
import { z as
|
|
6651
|
+
import { z as z234 } from "zod";
|
|
6563
6652
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6564
|
-
var DTOFigmaNodeOrigin =
|
|
6565
|
-
sourceId:
|
|
6566
|
-
fileId:
|
|
6567
|
-
parentName:
|
|
6653
|
+
var DTOFigmaNodeOrigin = z234.object({
|
|
6654
|
+
sourceId: z234.string(),
|
|
6655
|
+
fileId: z234.string().optional(),
|
|
6656
|
+
parentName: z234.string().optional()
|
|
6568
6657
|
});
|
|
6569
|
-
var DTOFigmaNodeData =
|
|
6658
|
+
var DTOFigmaNodeData = z234.object({
|
|
6570
6659
|
// Id of the node in the Figma file
|
|
6571
|
-
figmaNodeId:
|
|
6660
|
+
figmaNodeId: z234.string(),
|
|
6572
6661
|
// Validity
|
|
6573
|
-
isValid:
|
|
6662
|
+
isValid: z234.boolean(),
|
|
6574
6663
|
// Asset data
|
|
6575
|
-
assetId:
|
|
6576
|
-
assetUrl:
|
|
6664
|
+
assetId: z234.string(),
|
|
6665
|
+
assetUrl: z234.string(),
|
|
6577
6666
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6578
6667
|
// Asset metadata
|
|
6579
|
-
assetScale:
|
|
6580
|
-
assetWidth:
|
|
6581
|
-
assetHeight:
|
|
6668
|
+
assetScale: z234.number(),
|
|
6669
|
+
assetWidth: z234.number().optional(),
|
|
6670
|
+
assetHeight: z234.number().optional()
|
|
6582
6671
|
});
|
|
6583
6672
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6584
6673
|
data: true,
|
|
@@ -6587,15 +6676,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6587
6676
|
data: DTOFigmaNodeData,
|
|
6588
6677
|
origin: DTOFigmaNodeOrigin
|
|
6589
6678
|
});
|
|
6590
|
-
var DTOFigmaNodeRenderInput =
|
|
6679
|
+
var DTOFigmaNodeRenderInput = z234.object({
|
|
6591
6680
|
/**
|
|
6592
6681
|
* Id of a design system's data source representing a linked Figma file
|
|
6593
6682
|
*/
|
|
6594
|
-
sourceId:
|
|
6683
|
+
sourceId: z234.string(),
|
|
6595
6684
|
/**
|
|
6596
6685
|
* Id of a node within the Figma file
|
|
6597
6686
|
*/
|
|
6598
|
-
figmaFileNodeId:
|
|
6687
|
+
figmaFileNodeId: z234.string(),
|
|
6599
6688
|
/**
|
|
6600
6689
|
* Format in which the node must be rendered, png by default.
|
|
6601
6690
|
*/
|
|
@@ -6603,108 +6692,108 @@ var DTOFigmaNodeRenderInput = z230.object({
|
|
|
6603
6692
|
});
|
|
6604
6693
|
|
|
6605
6694
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6606
|
-
import { z as
|
|
6607
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6608
|
-
type:
|
|
6609
|
-
figmaNodes:
|
|
6695
|
+
import { z as z235 } from "zod";
|
|
6696
|
+
var DTOFigmaNodeRenderActionOutput = z235.object({
|
|
6697
|
+
type: z235.literal("FigmaNodeRender"),
|
|
6698
|
+
figmaNodes: z235.array(DTOFigmaNode)
|
|
6610
6699
|
});
|
|
6611
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6612
|
-
type:
|
|
6700
|
+
var DTOFigmaNodeRenderActionInput = z235.object({
|
|
6701
|
+
type: z235.literal("FigmaNodeRender"),
|
|
6613
6702
|
input: DTOFigmaNodeRenderInput.array()
|
|
6614
6703
|
});
|
|
6615
6704
|
|
|
6616
6705
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6617
|
-
import { z as
|
|
6706
|
+
import { z as z237 } from "zod";
|
|
6618
6707
|
|
|
6619
6708
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6620
|
-
import { z as
|
|
6709
|
+
import { z as z236 } from "zod";
|
|
6621
6710
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6622
|
-
var DTOElementPropertyDefinition =
|
|
6623
|
-
id:
|
|
6624
|
-
designSystemVersionId:
|
|
6711
|
+
var DTOElementPropertyDefinition = z236.object({
|
|
6712
|
+
id: z236.string(),
|
|
6713
|
+
designSystemVersionId: z236.string(),
|
|
6625
6714
|
meta: ObjectMeta,
|
|
6626
|
-
persistentId:
|
|
6715
|
+
persistentId: z236.string(),
|
|
6627
6716
|
type: ElementPropertyTypeSchema,
|
|
6628
6717
|
targetElementType: ElementPropertyTargetType,
|
|
6629
|
-
codeName:
|
|
6630
|
-
options: nullishToOptional(
|
|
6718
|
+
codeName: z236.string().regex(CODE_NAME_REGEX2),
|
|
6719
|
+
options: nullishToOptional(z236.array(ElementPropertyDefinitionOption)),
|
|
6631
6720
|
linkElementType: nullishToOptional(ElementPropertyLinkType)
|
|
6632
6721
|
});
|
|
6633
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
6634
|
-
definitions:
|
|
6722
|
+
var DTOElementPropertyDefinitionListResponse = z236.object({
|
|
6723
|
+
definitions: z236.array(DTOElementPropertyDefinition)
|
|
6635
6724
|
});
|
|
6636
|
-
var DTOElementPropertyDefinitionResponse =
|
|
6725
|
+
var DTOElementPropertyDefinitionResponse = z236.object({
|
|
6637
6726
|
definition: DTOElementPropertyDefinition
|
|
6638
6727
|
});
|
|
6639
6728
|
var DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinition.omit({
|
|
6640
6729
|
id: true,
|
|
6641
6730
|
designSystemVersionId: true
|
|
6642
6731
|
});
|
|
6643
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
6644
|
-
id:
|
|
6645
|
-
name:
|
|
6646
|
-
description:
|
|
6647
|
-
codeName:
|
|
6648
|
-
options:
|
|
6732
|
+
var DTOElementPropertyDefinitionUpdatePayload = z236.object({
|
|
6733
|
+
id: z236.string(),
|
|
6734
|
+
name: z236.string().optional(),
|
|
6735
|
+
description: z236.string().optional(),
|
|
6736
|
+
codeName: z236.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6737
|
+
options: z236.array(ElementPropertyDefinitionOption).optional()
|
|
6649
6738
|
});
|
|
6650
|
-
var DTOElementPropertyDefinitionDeletePayload =
|
|
6651
|
-
id:
|
|
6739
|
+
var DTOElementPropertyDefinitionDeletePayload = z236.object({
|
|
6740
|
+
id: z236.string()
|
|
6652
6741
|
});
|
|
6653
6742
|
|
|
6654
6743
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6655
|
-
var SuccessPayload3 =
|
|
6656
|
-
success:
|
|
6744
|
+
var SuccessPayload3 = z237.object({
|
|
6745
|
+
success: z237.literal(true)
|
|
6657
6746
|
});
|
|
6658
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6659
|
-
type:
|
|
6747
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z237.object({
|
|
6748
|
+
type: z237.literal("PropertyDefinitionCreate"),
|
|
6660
6749
|
definition: DTOElementPropertyDefinition
|
|
6661
6750
|
});
|
|
6662
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6663
|
-
type:
|
|
6751
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z237.object({
|
|
6752
|
+
type: z237.literal("PropertyDefinitionUpdate"),
|
|
6664
6753
|
definition: DTOElementPropertyDefinition
|
|
6665
6754
|
});
|
|
6666
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6667
|
-
type:
|
|
6755
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z237.object({
|
|
6756
|
+
type: z237.literal("PropertyDefinitionDelete"),
|
|
6668
6757
|
output: SuccessPayload3
|
|
6669
6758
|
});
|
|
6670
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6671
|
-
type:
|
|
6759
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z237.object({
|
|
6760
|
+
type: z237.literal("PropertyDefinitionCreate"),
|
|
6672
6761
|
input: DTOElementPropertyDefinitionCreatePayload
|
|
6673
6762
|
});
|
|
6674
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6675
|
-
type:
|
|
6763
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z237.object({
|
|
6764
|
+
type: z237.literal("PropertyDefinitionUpdate"),
|
|
6676
6765
|
input: DTOElementPropertyDefinitionUpdatePayload
|
|
6677
6766
|
});
|
|
6678
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6679
|
-
type:
|
|
6767
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z237.object({
|
|
6768
|
+
type: z237.literal("PropertyDefinitionDelete"),
|
|
6680
6769
|
input: DTOElementPropertyDefinitionDeletePayload
|
|
6681
6770
|
});
|
|
6682
6771
|
|
|
6683
6772
|
// src/api/dto/elements/properties/property-values.ts
|
|
6684
|
-
import { z as
|
|
6685
|
-
var DTOElementPropertyValue =
|
|
6686
|
-
id:
|
|
6687
|
-
designSystemVersionId:
|
|
6688
|
-
definitionId:
|
|
6689
|
-
targetElementId:
|
|
6690
|
-
value:
|
|
6691
|
-
valuePreview:
|
|
6692
|
-
});
|
|
6693
|
-
var DTOElementPropertyValueListResponse =
|
|
6694
|
-
values:
|
|
6695
|
-
});
|
|
6696
|
-
var DTOElementPropertyValueResponse =
|
|
6773
|
+
import { z as z238 } from "zod";
|
|
6774
|
+
var DTOElementPropertyValue = z238.object({
|
|
6775
|
+
id: z238.string(),
|
|
6776
|
+
designSystemVersionId: z238.string(),
|
|
6777
|
+
definitionId: z238.string(),
|
|
6778
|
+
targetElementId: z238.string(),
|
|
6779
|
+
value: z238.union([z238.string(), z238.number(), z238.boolean()]).optional(),
|
|
6780
|
+
valuePreview: z238.string().optional()
|
|
6781
|
+
});
|
|
6782
|
+
var DTOElementPropertyValueListResponse = z238.object({
|
|
6783
|
+
values: z238.array(DTOElementPropertyValue)
|
|
6784
|
+
});
|
|
6785
|
+
var DTOElementPropertyValueResponse = z238.object({
|
|
6697
6786
|
value: DTOElementPropertyValue
|
|
6698
6787
|
});
|
|
6699
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
6700
|
-
definitionId:
|
|
6701
|
-
targetElementId:
|
|
6702
|
-
value:
|
|
6788
|
+
var DTOElementPropertyValueUpsertPaylod = z238.object({
|
|
6789
|
+
definitionId: z238.string(),
|
|
6790
|
+
targetElementId: z238.string(),
|
|
6791
|
+
value: z238.string().or(z238.number()).or(z238.boolean())
|
|
6703
6792
|
});
|
|
6704
6793
|
|
|
6705
6794
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6706
|
-
import { z as
|
|
6707
|
-
var DTOElementActionOutput =
|
|
6795
|
+
import { z as z239 } from "zod";
|
|
6796
|
+
var DTOElementActionOutput = z239.discriminatedUnion("type", [
|
|
6708
6797
|
// Documentation pages
|
|
6709
6798
|
DTODocumentationPageCreateActionOutputV2,
|
|
6710
6799
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6731,7 +6820,7 @@ var DTOElementActionOutput = z235.discriminatedUnion("type", [
|
|
|
6731
6820
|
// Approvals
|
|
6732
6821
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6733
6822
|
]);
|
|
6734
|
-
var DTOElementActionInput =
|
|
6823
|
+
var DTOElementActionInput = z239.discriminatedUnion("type", [
|
|
6735
6824
|
// Documentation pages
|
|
6736
6825
|
DTODocumentationPageCreateActionInputV2,
|
|
6737
6826
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6760,138 +6849,83 @@ var DTOElementActionInput = z235.discriminatedUnion("type", [
|
|
|
6760
6849
|
]);
|
|
6761
6850
|
|
|
6762
6851
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6763
|
-
import { z as
|
|
6764
|
-
var DTOElementsGetTypeFilter =
|
|
6765
|
-
var DTOElementsGetQuerySchema =
|
|
6766
|
-
types:
|
|
6852
|
+
import { z as z240 } from "zod";
|
|
6853
|
+
var DTOElementsGetTypeFilter = z240.enum(["FigmaNode"]);
|
|
6854
|
+
var DTOElementsGetQuerySchema = z240.object({
|
|
6855
|
+
types: z240.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6767
6856
|
});
|
|
6768
|
-
var DTOElementsGetOutput =
|
|
6769
|
-
figmaNodes:
|
|
6857
|
+
var DTOElementsGetOutput = z240.object({
|
|
6858
|
+
figmaNodes: z240.array(DTOFigmaNode).optional()
|
|
6770
6859
|
});
|
|
6771
6860
|
|
|
6772
6861
|
// src/api/dto/figma-components/assets/download.ts
|
|
6773
|
-
import { z as
|
|
6774
|
-
var DTOAssetRenderConfiguration =
|
|
6775
|
-
prefix:
|
|
6776
|
-
suffix:
|
|
6777
|
-
scale:
|
|
6778
|
-
format:
|
|
6779
|
-
});
|
|
6780
|
-
var DTORenderedAssetFile =
|
|
6781
|
-
assetId:
|
|
6782
|
-
fileName:
|
|
6783
|
-
sourceUrl:
|
|
6862
|
+
import { z as z241 } from "zod";
|
|
6863
|
+
var DTOAssetRenderConfiguration = z241.object({
|
|
6864
|
+
prefix: z241.string().optional(),
|
|
6865
|
+
suffix: z241.string().optional(),
|
|
6866
|
+
scale: z241.enum(["x1", "x2", "x3", "x4"]),
|
|
6867
|
+
format: z241.enum(["png", "pdf", "svg"])
|
|
6868
|
+
});
|
|
6869
|
+
var DTORenderedAssetFile = z241.object({
|
|
6870
|
+
assetId: z241.string(),
|
|
6871
|
+
fileName: z241.string(),
|
|
6872
|
+
sourceUrl: z241.string(),
|
|
6784
6873
|
settings: DTOAssetRenderConfiguration,
|
|
6785
|
-
originalName:
|
|
6874
|
+
originalName: z241.string()
|
|
6786
6875
|
});
|
|
6787
|
-
var DTODownloadAssetsRequest =
|
|
6788
|
-
persistentIds:
|
|
6876
|
+
var DTODownloadAssetsRequest = z241.object({
|
|
6877
|
+
persistentIds: z241.array(z241.string().uuid()).optional(),
|
|
6789
6878
|
settings: DTOAssetRenderConfiguration.array()
|
|
6790
6879
|
});
|
|
6791
|
-
var DTODownloadAssetsResponse =
|
|
6880
|
+
var DTODownloadAssetsResponse = z241.object({
|
|
6792
6881
|
items: DTORenderedAssetFile.array()
|
|
6793
6882
|
});
|
|
6794
6883
|
|
|
6795
6884
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6796
|
-
import { z as
|
|
6797
|
-
var DTOLiveblocksAuthResponse =
|
|
6798
|
-
token:
|
|
6885
|
+
import { z as z242 } from "zod";
|
|
6886
|
+
var DTOLiveblocksAuthResponse = z242.object({
|
|
6887
|
+
token: z242.string()
|
|
6799
6888
|
});
|
|
6800
6889
|
|
|
6801
6890
|
// src/api/dto/themes/override.ts
|
|
6802
|
-
import { z as
|
|
6891
|
+
import { z as z243 } from "zod";
|
|
6803
6892
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
6804
|
-
|
|
6805
|
-
tokenPersistentId:
|
|
6893
|
+
z243.object({
|
|
6894
|
+
tokenPersistentId: z243.string(),
|
|
6806
6895
|
origin: ThemeOverrideOrigin.optional()
|
|
6807
6896
|
})
|
|
6808
6897
|
);
|
|
6809
6898
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
6810
|
-
|
|
6811
|
-
tokenPersistentId:
|
|
6899
|
+
z243.object({
|
|
6900
|
+
tokenPersistentId: z243.string()
|
|
6812
6901
|
})
|
|
6813
6902
|
);
|
|
6814
6903
|
|
|
6815
6904
|
// src/api/dto/themes/theme.ts
|
|
6816
|
-
import { z as
|
|
6817
|
-
var DTOTheme =
|
|
6818
|
-
id:
|
|
6819
|
-
persistentId:
|
|
6820
|
-
designSystemVersionId:
|
|
6821
|
-
brandId:
|
|
6905
|
+
import { z as z244 } from "zod";
|
|
6906
|
+
var DTOTheme = z244.object({
|
|
6907
|
+
id: z244.string(),
|
|
6908
|
+
persistentId: z244.string(),
|
|
6909
|
+
designSystemVersionId: z244.string(),
|
|
6910
|
+
brandId: z244.string(),
|
|
6822
6911
|
meta: ObjectMeta,
|
|
6823
|
-
codeName:
|
|
6912
|
+
codeName: z244.string(),
|
|
6824
6913
|
overrides: DTOThemeOverride.array()
|
|
6825
6914
|
});
|
|
6826
|
-
var DTOThemeResponse =
|
|
6915
|
+
var DTOThemeResponse = z244.object({
|
|
6827
6916
|
theme: DTOTheme
|
|
6828
6917
|
});
|
|
6829
|
-
var DTOThemeListResponse =
|
|
6918
|
+
var DTOThemeListResponse = z244.object({
|
|
6830
6919
|
themes: DTOTheme.array()
|
|
6831
6920
|
});
|
|
6832
|
-
var DTOThemeCreatePayload =
|
|
6921
|
+
var DTOThemeCreatePayload = z244.object({
|
|
6833
6922
|
meta: ObjectMeta,
|
|
6834
|
-
persistentId:
|
|
6835
|
-
brandId:
|
|
6836
|
-
codeName:
|
|
6923
|
+
persistentId: z244.string(),
|
|
6924
|
+
brandId: z244.string(),
|
|
6925
|
+
codeName: z244.string(),
|
|
6837
6926
|
overrides: DTOThemeOverride.array()
|
|
6838
6927
|
});
|
|
6839
6928
|
|
|
6840
|
-
// src/api/dto/users/authenticated-user.ts
|
|
6841
|
-
import { z as z242 } from "zod";
|
|
6842
|
-
|
|
6843
|
-
// src/api/dto/users/user.ts
|
|
6844
|
-
import { z as z241 } from "zod";
|
|
6845
|
-
var DTOUserProfile = z241.object({
|
|
6846
|
-
name: z241.string(),
|
|
6847
|
-
nickname: z241.string().optional(),
|
|
6848
|
-
avatar: z241.string().optional()
|
|
6849
|
-
});
|
|
6850
|
-
var DTOUser = z241.object({
|
|
6851
|
-
id: z241.string(),
|
|
6852
|
-
email: z241.string(),
|
|
6853
|
-
profile: DTOUserProfile
|
|
6854
|
-
});
|
|
6855
|
-
var DTOUserGetResponse = z241.object({
|
|
6856
|
-
user: DTOUser
|
|
6857
|
-
});
|
|
6858
|
-
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
6859
|
-
|
|
6860
|
-
// src/api/dto/users/authenticated-user.ts
|
|
6861
|
-
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6862
|
-
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6863
|
-
var DTOUserSource = UserSource;
|
|
6864
|
-
var DTOUserOnboarding = z242.object({
|
|
6865
|
-
companyName: z242.string().optional(),
|
|
6866
|
-
numberOfPeopleInOrg: z242.string().optional(),
|
|
6867
|
-
numberOfPeopleInDesignTeam: z242.string().optional(),
|
|
6868
|
-
department: DTOUserOnboardingDepartment.optional(),
|
|
6869
|
-
jobTitle: z242.string().optional(),
|
|
6870
|
-
phase: z242.string().optional(),
|
|
6871
|
-
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6872
|
-
designSystemName: z242.string().optional(),
|
|
6873
|
-
defaultDestination: z242.string().optional(),
|
|
6874
|
-
isPageDraftOnboardingFinished: z242.boolean().optional()
|
|
6875
|
-
});
|
|
6876
|
-
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6877
|
-
onboarding: DTOUserOnboarding.optional()
|
|
6878
|
-
});
|
|
6879
|
-
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6880
|
-
profile: DTOAuthenticatedUserProfile,
|
|
6881
|
-
createdAt: z242.coerce.date(),
|
|
6882
|
-
loggedOutAt: z242.coerce.date().optional(),
|
|
6883
|
-
source: DTOUserSource.optional()
|
|
6884
|
-
});
|
|
6885
|
-
var DTOAuthenticatedUserResponse = z242.object({
|
|
6886
|
-
user: DTOAuthenticatedUser
|
|
6887
|
-
});
|
|
6888
|
-
|
|
6889
|
-
// src/api/dto/users/update.ts
|
|
6890
|
-
import { z as z243 } from "zod";
|
|
6891
|
-
var DTOUserProfileUpdateResponse = z243.object({
|
|
6892
|
-
user: User
|
|
6893
|
-
});
|
|
6894
|
-
|
|
6895
6929
|
// src/api/endpoints/codegen/exporters.ts
|
|
6896
6930
|
var ExportersEndpoint = class {
|
|
6897
6931
|
constructor(requestExecutor) {
|
|
@@ -6982,7 +7016,7 @@ var ImportJobsEndpoint = class {
|
|
|
6982
7016
|
};
|
|
6983
7017
|
|
|
6984
7018
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
6985
|
-
import { z as
|
|
7019
|
+
import { z as z245 } from "zod";
|
|
6986
7020
|
var OverridesEndpoint = class {
|
|
6987
7021
|
constructor(requestExecutor) {
|
|
6988
7022
|
this.requestExecutor = requestExecutor;
|
|
@@ -6990,7 +7024,7 @@ var OverridesEndpoint = class {
|
|
|
6990
7024
|
create(dsId, versionId, themeId, body) {
|
|
6991
7025
|
return this.requestExecutor.json(
|
|
6992
7026
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
6993
|
-
|
|
7027
|
+
z245.any(),
|
|
6994
7028
|
{
|
|
6995
7029
|
method: "POST",
|
|
6996
7030
|
body
|
|
@@ -7052,7 +7086,7 @@ var VersionStatsEndpoint = class {
|
|
|
7052
7086
|
};
|
|
7053
7087
|
|
|
7054
7088
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
7055
|
-
import { z as
|
|
7089
|
+
import { z as z246 } from "zod";
|
|
7056
7090
|
var ThemesEndpoint = class {
|
|
7057
7091
|
constructor(requestExecutor) {
|
|
7058
7092
|
this.requestExecutor = requestExecutor;
|
|
@@ -7075,7 +7109,7 @@ var ThemesEndpoint = class {
|
|
|
7075
7109
|
});
|
|
7076
7110
|
}
|
|
7077
7111
|
delete(dsId, versionId, themeId) {
|
|
7078
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
7112
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z246.any(), {
|
|
7079
7113
|
method: "DELETE"
|
|
7080
7114
|
});
|
|
7081
7115
|
}
|
|
@@ -7119,6 +7153,29 @@ var TokensEndpoint = class {
|
|
|
7119
7153
|
}
|
|
7120
7154
|
};
|
|
7121
7155
|
|
|
7156
|
+
// src/api/endpoints/design-system/versions/token-groups.ts
|
|
7157
|
+
var TokenGroupsEndpoint = class {
|
|
7158
|
+
constructor(requestExecutor) {
|
|
7159
|
+
this.requestExecutor = requestExecutor;
|
|
7160
|
+
}
|
|
7161
|
+
create(dsId, versionId, body) {
|
|
7162
|
+
return this.requestExecutor.json(
|
|
7163
|
+
`/design-systems/${dsId}/versions/${versionId}/token-groups`,
|
|
7164
|
+
DTODesignTokenGroupResponse,
|
|
7165
|
+
{
|
|
7166
|
+
method: "POST",
|
|
7167
|
+
body
|
|
7168
|
+
}
|
|
7169
|
+
);
|
|
7170
|
+
}
|
|
7171
|
+
list(dsId, versionId) {
|
|
7172
|
+
return this.requestExecutor.json(
|
|
7173
|
+
`/design-systems/${dsId}/versions/${versionId}/token-groups`,
|
|
7174
|
+
DTODesignTokenGroupListResponse
|
|
7175
|
+
);
|
|
7176
|
+
}
|
|
7177
|
+
};
|
|
7178
|
+
|
|
7122
7179
|
// src/api/endpoints/design-system/versions/versions.ts
|
|
7123
7180
|
var DesignSystemVersionsEndpoint = class {
|
|
7124
7181
|
constructor(requestExecutor) {
|
|
@@ -7128,6 +7185,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7128
7185
|
__publicField(this, "tokenCollections");
|
|
7129
7186
|
__publicField(this, "importJobs");
|
|
7130
7187
|
__publicField(this, "tokens");
|
|
7188
|
+
__publicField(this, "tokenGroups");
|
|
7131
7189
|
__publicField(this, "stats");
|
|
7132
7190
|
__publicField(this, "elementPropertyDefinitions");
|
|
7133
7191
|
__publicField(this, "elementPropertyValues");
|
|
@@ -7136,6 +7194,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7136
7194
|
this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
|
|
7137
7195
|
this.importJobs = new ImportJobsEndpoint(requestExecutor);
|
|
7138
7196
|
this.tokens = new TokensEndpoint(requestExecutor);
|
|
7197
|
+
this.tokenGroups = new TokenGroupsEndpoint(requestExecutor);
|
|
7139
7198
|
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
7140
7199
|
this.elementPropertyDefinitions = new ElementPropertyDefinitionsEndpoint(requestExecutor);
|
|
7141
7200
|
this.elementPropertyValues = new ElementPropertyValuesEndpoint(requestExecutor);
|
|
@@ -7158,8 +7217,20 @@ var DesignSystemBffEndpoint = class {
|
|
|
7158
7217
|
}
|
|
7159
7218
|
};
|
|
7160
7219
|
|
|
7220
|
+
// src/api/endpoints/design-system/contact.ts
|
|
7221
|
+
var DesignSystemContactsEndpoint = class {
|
|
7222
|
+
constructor(requestExecutor) {
|
|
7223
|
+
this.requestExecutor = requestExecutor;
|
|
7224
|
+
}
|
|
7225
|
+
list(dsId) {
|
|
7226
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/contacts`, DTODesignSystemContactsResponse, {
|
|
7227
|
+
method: "GET"
|
|
7228
|
+
});
|
|
7229
|
+
}
|
|
7230
|
+
};
|
|
7231
|
+
|
|
7161
7232
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7162
|
-
import { z as
|
|
7233
|
+
import { z as z247 } from "zod";
|
|
7163
7234
|
|
|
7164
7235
|
// src/api/endpoints/design-system/members.ts
|
|
7165
7236
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -7197,10 +7268,12 @@ var DesignSystemsEndpoint = class {
|
|
|
7197
7268
|
__publicField(this, "versions");
|
|
7198
7269
|
__publicField(this, "bff");
|
|
7199
7270
|
__publicField(this, "sources");
|
|
7271
|
+
__publicField(this, "contacts");
|
|
7200
7272
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
7201
7273
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
7202
7274
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
7203
7275
|
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
7276
|
+
this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
|
|
7204
7277
|
}
|
|
7205
7278
|
create(body) {
|
|
7206
7279
|
return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
|
|
@@ -7212,7 +7285,7 @@ var DesignSystemsEndpoint = class {
|
|
|
7212
7285
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
7213
7286
|
}
|
|
7214
7287
|
delete(dsId) {
|
|
7215
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
7288
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z247.any(), { method: "DELETE" });
|
|
7216
7289
|
}
|
|
7217
7290
|
update(dsId, body) {
|
|
7218
7291
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -7256,7 +7329,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
7256
7329
|
};
|
|
7257
7330
|
|
|
7258
7331
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
7259
|
-
import { z as
|
|
7332
|
+
import { z as z248 } from "zod";
|
|
7260
7333
|
var WorkspaceMembersEndpoint = class {
|
|
7261
7334
|
constructor(requestExecutor) {
|
|
7262
7335
|
this.requestExecutor = requestExecutor;
|
|
@@ -7273,7 +7346,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7273
7346
|
});
|
|
7274
7347
|
}
|
|
7275
7348
|
invite(workspaceId, body) {
|
|
7276
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7349
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z248.any(), { method: "POST", body });
|
|
7277
7350
|
}
|
|
7278
7351
|
delete(workspaceId, userId) {
|
|
7279
7352
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -7283,7 +7356,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7283
7356
|
};
|
|
7284
7357
|
|
|
7285
7358
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
7286
|
-
import { z as
|
|
7359
|
+
import { z as z249 } from "zod";
|
|
7287
7360
|
var WorkspacesEndpoint = class {
|
|
7288
7361
|
constructor(requestExecutor) {
|
|
7289
7362
|
this.requestExecutor = requestExecutor;
|
|
@@ -7306,10 +7379,10 @@ var WorkspacesEndpoint = class {
|
|
|
7306
7379
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
7307
7380
|
}
|
|
7308
7381
|
delete(workspaceId) {
|
|
7309
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7382
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z249.any(), { method: "DELETE" });
|
|
7310
7383
|
}
|
|
7311
7384
|
subscription(workspaceId) {
|
|
7312
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7385
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z249.any(), { method: "GET" });
|
|
7313
7386
|
}
|
|
7314
7387
|
};
|
|
7315
7388
|
|
|
@@ -7390,9 +7463,9 @@ ${bodyText}`,
|
|
|
7390
7463
|
|
|
7391
7464
|
// src/api/transport/request-executor.ts
|
|
7392
7465
|
import fetch from "node-fetch";
|
|
7393
|
-
import { z as
|
|
7394
|
-
var ResponseWrapper =
|
|
7395
|
-
result:
|
|
7466
|
+
import { z as z250 } from "zod";
|
|
7467
|
+
var ResponseWrapper = z250.object({
|
|
7468
|
+
result: z250.record(z250.any())
|
|
7396
7469
|
});
|
|
7397
7470
|
var RequestExecutor = class {
|
|
7398
7471
|
constructor(testServerConfig) {
|
|
@@ -7520,7 +7593,7 @@ function generateHash(input, debug = false) {
|
|
|
7520
7593
|
}
|
|
7521
7594
|
|
|
7522
7595
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7523
|
-
import { z as
|
|
7596
|
+
import { z as z251 } from "zod";
|
|
7524
7597
|
|
|
7525
7598
|
// src/yjs/version-room/base.ts
|
|
7526
7599
|
var VersionRoomBaseYDoc = class {
|
|
@@ -8050,24 +8123,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8050
8123
|
};
|
|
8051
8124
|
|
|
8052
8125
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8053
|
-
var DocumentationHierarchySettings =
|
|
8054
|
-
routingVersion:
|
|
8055
|
-
isDraftFeatureAdopted:
|
|
8056
|
-
isApprovalFeatureEnabled:
|
|
8057
|
-
approvalRequiredForPublishing:
|
|
8126
|
+
var DocumentationHierarchySettings = z251.object({
|
|
8127
|
+
routingVersion: z251.string(),
|
|
8128
|
+
isDraftFeatureAdopted: z251.boolean(),
|
|
8129
|
+
isApprovalFeatureEnabled: z251.boolean(),
|
|
8130
|
+
approvalRequiredForPublishing: z251.boolean()
|
|
8058
8131
|
});
|
|
8059
8132
|
function yjsToDocumentationHierarchy(doc) {
|
|
8060
8133
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
8061
8134
|
}
|
|
8062
8135
|
|
|
8063
8136
|
// src/yjs/design-system-content/item-configuration.ts
|
|
8064
|
-
import { z as
|
|
8065
|
-
var DTODocumentationPageRoomHeaderData =
|
|
8066
|
-
title:
|
|
8137
|
+
import { z as z252 } from "zod";
|
|
8138
|
+
var DTODocumentationPageRoomHeaderData = z252.object({
|
|
8139
|
+
title: z252.string(),
|
|
8067
8140
|
configuration: DTODocumentationItemConfigurationV2
|
|
8068
8141
|
});
|
|
8069
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
8070
|
-
title:
|
|
8142
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z252.object({
|
|
8143
|
+
title: z252.string().optional(),
|
|
8071
8144
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
8072
8145
|
});
|
|
8073
8146
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -8118,7 +8191,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
8118
8191
|
header: rawHeader
|
|
8119
8192
|
};
|
|
8120
8193
|
return {
|
|
8121
|
-
title:
|
|
8194
|
+
title: z252.string().parse(title),
|
|
8122
8195
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
8123
8196
|
};
|
|
8124
8197
|
}
|
|
@@ -8128,9 +8201,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
8128
8201
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
8129
8202
|
|
|
8130
8203
|
// src/yjs/docs-editor/model/page.ts
|
|
8131
|
-
import { z as
|
|
8132
|
-
var DocumentationPageEditorModel =
|
|
8133
|
-
blocks:
|
|
8204
|
+
import { z as z253 } from "zod";
|
|
8205
|
+
var DocumentationPageEditorModel = z253.object({
|
|
8206
|
+
blocks: z253.array(DocumentationPageContentItem)
|
|
8134
8207
|
});
|
|
8135
8208
|
|
|
8136
8209
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11651,7 +11724,7 @@ var blocks = [
|
|
|
11651
11724
|
|
|
11652
11725
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11653
11726
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11654
|
-
import { z as
|
|
11727
|
+
import { z as z254 } from "zod";
|
|
11655
11728
|
function yDocToPage(yDoc, definitions) {
|
|
11656
11729
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11657
11730
|
}
|
|
@@ -11731,7 +11804,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11731
11804
|
return null;
|
|
11732
11805
|
return {
|
|
11733
11806
|
id,
|
|
11734
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
11807
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z254.string()) ?? "",
|
|
11735
11808
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11736
11809
|
};
|
|
11737
11810
|
}
|
|
@@ -11766,7 +11839,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11766
11839
|
});
|
|
11767
11840
|
}
|
|
11768
11841
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11769
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11842
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z254.string());
|
|
11770
11843
|
if (!definitionId) {
|
|
11771
11844
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11772
11845
|
return [];
|
|
@@ -11808,7 +11881,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11808
11881
|
if (!id)
|
|
11809
11882
|
return null;
|
|
11810
11883
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11811
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11884
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z254.string().optional()));
|
|
11812
11885
|
return {
|
|
11813
11886
|
id,
|
|
11814
11887
|
type: "Block",
|
|
@@ -11936,10 +12009,10 @@ function parseRichTextAttribute(mark) {
|
|
|
11936
12009
|
return null;
|
|
11937
12010
|
}
|
|
11938
12011
|
function parseProsemirrorLink(mark) {
|
|
11939
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
12012
|
+
const href = getProsemirrorAttribute(mark, "href", z254.string().optional());
|
|
11940
12013
|
if (!href)
|
|
11941
12014
|
return null;
|
|
11942
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
12015
|
+
const target = getProsemirrorAttribute(mark, "target", z254.string().optional());
|
|
11943
12016
|
const openInNewTab = target === "_blank";
|
|
11944
12017
|
if (href.startsWith("@")) {
|
|
11945
12018
|
return {
|
|
@@ -11958,10 +12031,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11958
12031
|
}
|
|
11959
12032
|
}
|
|
11960
12033
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11961
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
12034
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z254.string().optional());
|
|
11962
12035
|
if (!highlightId)
|
|
11963
12036
|
return null;
|
|
11964
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
12037
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z254.boolean().optional()) ?? false;
|
|
11965
12038
|
return {
|
|
11966
12039
|
type: "Comment",
|
|
11967
12040
|
commentHighlightId: highlightId,
|
|
@@ -11973,7 +12046,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11973
12046
|
if (!id)
|
|
11974
12047
|
return null;
|
|
11975
12048
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11976
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
12049
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z254.boolean().optional()) !== false;
|
|
11977
12050
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11978
12051
|
if (!tableChild) {
|
|
11979
12052
|
return emptyTable(id, variantId, 0);
|
|
@@ -12020,9 +12093,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
12020
12093
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
12021
12094
|
if (!id)
|
|
12022
12095
|
return null;
|
|
12023
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
12096
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z254.string().optional());
|
|
12024
12097
|
let columnWidth;
|
|
12025
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
12098
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z254.array(z254.number()).nullish());
|
|
12026
12099
|
if (columnWidthArray) {
|
|
12027
12100
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
12028
12101
|
}
|
|
@@ -12060,7 +12133,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12060
12133
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
12061
12134
|
};
|
|
12062
12135
|
case "image":
|
|
12063
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12136
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z254.string());
|
|
12064
12137
|
if (!items)
|
|
12065
12138
|
return null;
|
|
12066
12139
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -12180,7 +12253,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
12180
12253
|
);
|
|
12181
12254
|
}
|
|
12182
12255
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
12183
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12256
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z254.string());
|
|
12184
12257
|
if (!itemsString)
|
|
12185
12258
|
return null;
|
|
12186
12259
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -12192,18 +12265,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
12192
12265
|
}
|
|
12193
12266
|
function parseAppearance(prosemirrorNode) {
|
|
12194
12267
|
let appearance = {};
|
|
12195
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
12268
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z254.string().optional());
|
|
12196
12269
|
if (rawAppearanceString) {
|
|
12197
12270
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
12198
12271
|
if (parsedAppearance.success) {
|
|
12199
12272
|
appearance = parsedAppearance.data;
|
|
12200
12273
|
}
|
|
12201
12274
|
}
|
|
12202
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
12275
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z254.number().optional());
|
|
12203
12276
|
if (columns) {
|
|
12204
12277
|
appearance.numberOfColumns = columns;
|
|
12205
12278
|
}
|
|
12206
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
12279
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z254.string().optional());
|
|
12207
12280
|
if (backgroundColor) {
|
|
12208
12281
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
12209
12282
|
if (parsedColor.success) {
|
|
@@ -12298,13 +12371,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
12298
12371
|
}
|
|
12299
12372
|
}
|
|
12300
12373
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
12301
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12374
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z254.string());
|
|
12302
12375
|
if (!id)
|
|
12303
12376
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
12304
12377
|
return id;
|
|
12305
12378
|
}
|
|
12306
12379
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
12307
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12380
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z254.string()));
|
|
12308
12381
|
}
|
|
12309
12382
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
12310
12383
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -12398,6 +12471,7 @@ export {
|
|
|
12398
12471
|
DTODeleteDocumentationTabGroupInput,
|
|
12399
12472
|
DTODesignElementsDataDiffResponse,
|
|
12400
12473
|
DTODesignSystem,
|
|
12474
|
+
DTODesignSystemContactsResponse,
|
|
12401
12475
|
DTODesignSystemCreateInput,
|
|
12402
12476
|
DTODesignSystemInvitation,
|
|
12403
12477
|
DTODesignSystemMember,
|
|
@@ -12419,6 +12493,10 @@ export {
|
|
|
12419
12493
|
DTODesignSystemsListResponse,
|
|
12420
12494
|
DTODesignToken,
|
|
12421
12495
|
DTODesignTokenCreatePayload,
|
|
12496
|
+
DTODesignTokenGroup,
|
|
12497
|
+
DTODesignTokenGroupCreatePayload,
|
|
12498
|
+
DTODesignTokenGroupListResponse,
|
|
12499
|
+
DTODesignTokenGroupResponse,
|
|
12422
12500
|
DTODesignTokenListResponse,
|
|
12423
12501
|
DTODesignTokenResponse,
|
|
12424
12502
|
DTODiffCountBase,
|
|
@@ -12622,6 +12700,7 @@ export {
|
|
|
12622
12700
|
DTOWorkspaceResponse,
|
|
12623
12701
|
DTOWorkspaceRole,
|
|
12624
12702
|
DesignSystemBffEndpoint,
|
|
12703
|
+
DesignSystemContactsEndpoint,
|
|
12625
12704
|
DesignSystemMembersEndpoint,
|
|
12626
12705
|
DesignSystemSourcesEndpoint,
|
|
12627
12706
|
DesignSystemVersionsEndpoint,
|