@supernova-studio/client 0.58.1 → 0.58.2
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 +34 -1
- package/dist/index.d.ts +34 -1
- package/dist/index.js +21 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +783 -772
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/endpoints/design-system/versions/versions.ts +20 -1
package/dist/index.mjs
CHANGED
|
@@ -5133,49 +5133,56 @@ var DTOColorTokenInlineData = z177.object({
|
|
|
5133
5133
|
value: z177.string().regex(/^#[a-f0-9]{6,8}$/)
|
|
5134
5134
|
});
|
|
5135
5135
|
|
|
5136
|
-
// src/api/dto/aux/
|
|
5136
|
+
// src/api/dto/aux/meta.ts
|
|
5137
5137
|
import { z as z178 } from "zod";
|
|
5138
|
-
var
|
|
5139
|
-
|
|
5140
|
-
|
|
5138
|
+
var DTOObjectMeta = z178.object({
|
|
5139
|
+
name: z178.string().max(512),
|
|
5140
|
+
description: z178.string().max(2048).optional()
|
|
5141
|
+
});
|
|
5142
|
+
|
|
5143
|
+
// src/api/dto/aux/pagination.ts
|
|
5144
|
+
import { z as z179 } from "zod";
|
|
5145
|
+
var DTOPagination = z179.object({
|
|
5146
|
+
limit: z179.string().optional(),
|
|
5147
|
+
offset: z179.string().optional()
|
|
5141
5148
|
});
|
|
5142
5149
|
|
|
5143
5150
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5144
|
-
import { z as
|
|
5151
|
+
import { z as z212 } from "zod";
|
|
5145
5152
|
|
|
5146
5153
|
// src/api/dto/design-systems/brand.ts
|
|
5147
|
-
import { z as
|
|
5148
|
-
var DTOBrand =
|
|
5149
|
-
id:
|
|
5150
|
-
designSystemVersionId:
|
|
5151
|
-
persistentId:
|
|
5154
|
+
import { z as z180 } from "zod";
|
|
5155
|
+
var DTOBrand = z180.object({
|
|
5156
|
+
id: z180.string(),
|
|
5157
|
+
designSystemVersionId: z180.string(),
|
|
5158
|
+
persistentId: z180.string(),
|
|
5152
5159
|
meta: ObjectMeta
|
|
5153
5160
|
});
|
|
5154
|
-
var DTOBrandGetResponse =
|
|
5155
|
-
var DTOBrandCreateResponse =
|
|
5161
|
+
var DTOBrandGetResponse = z180.object({ brand: DTOBrand });
|
|
5162
|
+
var DTOBrandCreateResponse = z180.object({
|
|
5156
5163
|
brand: DTOBrand
|
|
5157
5164
|
});
|
|
5158
|
-
var DTOBrandsListResponse =
|
|
5165
|
+
var DTOBrandsListResponse = z180.object({ brands: z180.array(DTOBrand) });
|
|
5159
5166
|
|
|
5160
5167
|
// src/api/dto/design-systems/contact.ts
|
|
5161
|
-
import { z as
|
|
5168
|
+
import { z as z184 } from "zod";
|
|
5162
5169
|
|
|
5163
5170
|
// src/api/dto/users/authenticated-user.ts
|
|
5164
|
-
import { z as
|
|
5171
|
+
import { z as z182 } from "zod";
|
|
5165
5172
|
|
|
5166
5173
|
// src/api/dto/users/user.ts
|
|
5167
|
-
import { z as
|
|
5168
|
-
var DTOUserProfile =
|
|
5169
|
-
name:
|
|
5170
|
-
nickname:
|
|
5171
|
-
avatar:
|
|
5172
|
-
});
|
|
5173
|
-
var DTOUser =
|
|
5174
|
-
id:
|
|
5175
|
-
email:
|
|
5174
|
+
import { z as z181 } from "zod";
|
|
5175
|
+
var DTOUserProfile = z181.object({
|
|
5176
|
+
name: z181.string(),
|
|
5177
|
+
nickname: z181.string().optional(),
|
|
5178
|
+
avatar: z181.string().optional()
|
|
5179
|
+
});
|
|
5180
|
+
var DTOUser = z181.object({
|
|
5181
|
+
id: z181.string(),
|
|
5182
|
+
email: z181.string(),
|
|
5176
5183
|
profile: DTOUserProfile
|
|
5177
5184
|
});
|
|
5178
|
-
var DTOUserGetResponse =
|
|
5185
|
+
var DTOUserGetResponse = z181.object({
|
|
5179
5186
|
user: DTOUser
|
|
5180
5187
|
});
|
|
5181
5188
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -5184,146 +5191,146 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
5184
5191
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
5185
5192
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5186
5193
|
var DTOUserSource = UserSource;
|
|
5187
|
-
var DTOUserOnboarding =
|
|
5188
|
-
companyName:
|
|
5189
|
-
numberOfPeopleInOrg:
|
|
5190
|
-
numberOfPeopleInDesignTeam:
|
|
5194
|
+
var DTOUserOnboarding = z182.object({
|
|
5195
|
+
companyName: z182.string().optional(),
|
|
5196
|
+
numberOfPeopleInOrg: z182.string().optional(),
|
|
5197
|
+
numberOfPeopleInDesignTeam: z182.string().optional(),
|
|
5191
5198
|
department: DTOUserOnboardingDepartment.optional(),
|
|
5192
|
-
jobTitle:
|
|
5193
|
-
phase:
|
|
5199
|
+
jobTitle: z182.string().optional(),
|
|
5200
|
+
phase: z182.string().optional(),
|
|
5194
5201
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
5195
|
-
designSystemName:
|
|
5196
|
-
defaultDestination:
|
|
5197
|
-
isPageDraftOnboardingFinished:
|
|
5202
|
+
designSystemName: z182.string().optional(),
|
|
5203
|
+
defaultDestination: z182.string().optional(),
|
|
5204
|
+
isPageDraftOnboardingFinished: z182.boolean().optional()
|
|
5198
5205
|
});
|
|
5199
5206
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5200
5207
|
onboarding: DTOUserOnboarding.optional()
|
|
5201
5208
|
});
|
|
5202
5209
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5203
5210
|
profile: DTOAuthenticatedUserProfile,
|
|
5204
|
-
createdAt:
|
|
5205
|
-
loggedOutAt:
|
|
5211
|
+
createdAt: z182.coerce.date(),
|
|
5212
|
+
loggedOutAt: z182.coerce.date().optional(),
|
|
5206
5213
|
source: DTOUserSource.optional()
|
|
5207
5214
|
});
|
|
5208
|
-
var DTOAuthenticatedUserResponse =
|
|
5215
|
+
var DTOAuthenticatedUserResponse = z182.object({
|
|
5209
5216
|
user: DTOAuthenticatedUser
|
|
5210
5217
|
});
|
|
5211
5218
|
|
|
5212
5219
|
// src/api/dto/users/update.ts
|
|
5213
|
-
import { z as
|
|
5214
|
-
var DTOUserProfileUpdateResponse =
|
|
5220
|
+
import { z as z183 } from "zod";
|
|
5221
|
+
var DTOUserProfileUpdateResponse = z183.object({
|
|
5215
5222
|
user: User
|
|
5216
5223
|
});
|
|
5217
5224
|
|
|
5218
5225
|
// src/api/dto/design-systems/contact.ts
|
|
5219
|
-
var DTODesignSystemContactsResponse =
|
|
5220
|
-
contacts:
|
|
5221
|
-
workspace:
|
|
5222
|
-
designSystem:
|
|
5226
|
+
var DTODesignSystemContactsResponse = z184.object({
|
|
5227
|
+
contacts: z184.object({
|
|
5228
|
+
workspace: z184.array(DTOUser),
|
|
5229
|
+
designSystem: z184.array(DTOUser)
|
|
5223
5230
|
})
|
|
5224
5231
|
});
|
|
5225
5232
|
|
|
5226
5233
|
// src/api/dto/design-systems/data-source.ts
|
|
5227
|
-
import { z as
|
|
5228
|
-
var DTODataSourceFigmaFileVersion =
|
|
5229
|
-
id:
|
|
5230
|
-
created_at:
|
|
5231
|
-
label:
|
|
5232
|
-
description:
|
|
5233
|
-
});
|
|
5234
|
-
var DTODataSourceFigmaCloud =
|
|
5235
|
-
fileId:
|
|
5234
|
+
import { z as z185 } from "zod";
|
|
5235
|
+
var DTODataSourceFigmaFileVersion = z185.object({
|
|
5236
|
+
id: z185.string(),
|
|
5237
|
+
created_at: z185.coerce.date(),
|
|
5238
|
+
label: z185.string(),
|
|
5239
|
+
description: z185.string()
|
|
5240
|
+
});
|
|
5241
|
+
var DTODataSourceFigmaCloud = z185.object({
|
|
5242
|
+
fileId: z185.string(),
|
|
5236
5243
|
state: DataSourceFigmaState,
|
|
5237
5244
|
autoImportMode: DataSourceAutoImportMode,
|
|
5238
|
-
fileThumbnailUrl:
|
|
5245
|
+
fileThumbnailUrl: z185.string().optional(),
|
|
5239
5246
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5240
|
-
lastImportedAt:
|
|
5247
|
+
lastImportedAt: z185.coerce.date().nullish(),
|
|
5241
5248
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5242
|
-
lastUpdatesCheckedAt:
|
|
5243
|
-
ownerId:
|
|
5244
|
-
ownerUserName:
|
|
5245
|
-
preferredCredentialId:
|
|
5249
|
+
lastUpdatesCheckedAt: z185.date().nullish(),
|
|
5250
|
+
ownerId: z185.string(),
|
|
5251
|
+
ownerUserName: z185.string().optional(),
|
|
5252
|
+
preferredCredentialId: z185.string().optional(),
|
|
5246
5253
|
stats: DataSourceStats
|
|
5247
5254
|
});
|
|
5248
|
-
var DTODataSourceFigma =
|
|
5249
|
-
id:
|
|
5250
|
-
type:
|
|
5251
|
-
fileName:
|
|
5255
|
+
var DTODataSourceFigma = z185.object({
|
|
5256
|
+
id: z185.string(),
|
|
5257
|
+
type: z185.literal(DataSourceRemoteType.Enum.Figma),
|
|
5258
|
+
fileName: z185.string(),
|
|
5252
5259
|
scope: DataSourceFigmaScope,
|
|
5253
|
-
brandId:
|
|
5254
|
-
themeId:
|
|
5260
|
+
brandId: z185.string(),
|
|
5261
|
+
themeId: z185.string().nullish(),
|
|
5255
5262
|
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5256
5263
|
});
|
|
5257
|
-
var DTODataSourceTokenStudio =
|
|
5258
|
-
id:
|
|
5259
|
-
type:
|
|
5260
|
-
fileName:
|
|
5261
|
-
brandId:
|
|
5262
|
-
themeId:
|
|
5263
|
-
tokenStudio:
|
|
5264
|
-
settings:
|
|
5265
|
-
dryRun:
|
|
5266
|
-
verbose:
|
|
5267
|
-
preciseCopy:
|
|
5264
|
+
var DTODataSourceTokenStudio = z185.object({
|
|
5265
|
+
id: z185.string(),
|
|
5266
|
+
type: z185.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5267
|
+
fileName: z185.string(),
|
|
5268
|
+
brandId: z185.string(),
|
|
5269
|
+
themeId: z185.string().nullish(),
|
|
5270
|
+
tokenStudio: z185.object({
|
|
5271
|
+
settings: z185.object({
|
|
5272
|
+
dryRun: z185.boolean(),
|
|
5273
|
+
verbose: z185.boolean(),
|
|
5274
|
+
preciseCopy: z185.boolean()
|
|
5268
5275
|
}),
|
|
5269
|
-
connectionName:
|
|
5270
|
-
lastImportedAt:
|
|
5271
|
-
lastImportedResults:
|
|
5272
|
-
|
|
5273
|
-
mapping:
|
|
5274
|
-
tokenSets:
|
|
5275
|
-
supernovaBrand:
|
|
5276
|
-
supernovaTheme:
|
|
5276
|
+
connectionName: z185.string(),
|
|
5277
|
+
lastImportedAt: z185.coerce.date(),
|
|
5278
|
+
lastImportedResults: z185.array(
|
|
5279
|
+
z185.object({
|
|
5280
|
+
mapping: z185.object({
|
|
5281
|
+
tokenSets: z185.array(z185.string()),
|
|
5282
|
+
supernovaBrand: z185.string(),
|
|
5283
|
+
supernovaTheme: z185.string().optional()
|
|
5277
5284
|
}),
|
|
5278
|
-
isFailed:
|
|
5279
|
-
tokensCreated:
|
|
5280
|
-
tokensDeleted:
|
|
5281
|
-
tokensUpdated:
|
|
5285
|
+
isFailed: z185.boolean(),
|
|
5286
|
+
tokensCreated: z185.number(),
|
|
5287
|
+
tokensDeleted: z185.number(),
|
|
5288
|
+
tokensUpdated: z185.number()
|
|
5282
5289
|
})
|
|
5283
5290
|
)
|
|
5284
5291
|
})
|
|
5285
5292
|
});
|
|
5286
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5287
|
-
id:
|
|
5288
|
-
type:
|
|
5289
|
-
fileName:
|
|
5290
|
-
brandId:
|
|
5291
|
-
upload:
|
|
5292
|
-
remoteId:
|
|
5293
|
+
var DTODataSourceFigmaVariablesPlugin = z185.object({
|
|
5294
|
+
id: z185.string(),
|
|
5295
|
+
type: z185.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5296
|
+
fileName: z185.string(),
|
|
5297
|
+
brandId: z185.string(),
|
|
5298
|
+
upload: z185.object({
|
|
5299
|
+
remoteId: z185.string(),
|
|
5293
5300
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5294
|
-
lastImportedAt:
|
|
5301
|
+
lastImportedAt: z185.coerce.date().optional(),
|
|
5295
5302
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5296
|
-
isTokenTypeSplitEnabled:
|
|
5303
|
+
isTokenTypeSplitEnabled: z185.boolean()
|
|
5297
5304
|
}),
|
|
5298
|
-
figmaVariablesPlugin:
|
|
5299
|
-
fileId:
|
|
5300
|
-
lastImportedAt:
|
|
5305
|
+
figmaVariablesPlugin: z185.object({
|
|
5306
|
+
fileId: z185.string(),
|
|
5307
|
+
lastImportedAt: z185.coerce.date().optional(),
|
|
5301
5308
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5302
|
-
isTokenTypeSplitEnabled:
|
|
5303
|
-
isCollectionsMigrationCompleted:
|
|
5309
|
+
isTokenTypeSplitEnabled: z185.boolean(),
|
|
5310
|
+
isCollectionsMigrationCompleted: z185.boolean().default(false)
|
|
5304
5311
|
})
|
|
5305
5312
|
});
|
|
5306
|
-
var DTODataSource =
|
|
5313
|
+
var DTODataSource = z185.discriminatedUnion("type", [
|
|
5307
5314
|
DTODataSourceFigma,
|
|
5308
5315
|
DTODataSourceFigmaVariablesPlugin,
|
|
5309
5316
|
DTODataSourceTokenStudio
|
|
5310
5317
|
]);
|
|
5311
|
-
var DTODataSourcesListResponse =
|
|
5312
|
-
sources:
|
|
5318
|
+
var DTODataSourcesListResponse = z185.object({
|
|
5319
|
+
sources: z185.array(DTODataSource)
|
|
5313
5320
|
});
|
|
5314
|
-
var DTODataSourceCreationResponse =
|
|
5321
|
+
var DTODataSourceCreationResponse = z185.object({
|
|
5315
5322
|
source: DTODataSource
|
|
5316
5323
|
});
|
|
5317
5324
|
|
|
5318
5325
|
// src/api/dto/design-systems/design-system.ts
|
|
5319
|
-
import { z as
|
|
5326
|
+
import { z as z188 } from "zod";
|
|
5320
5327
|
|
|
5321
5328
|
// src/api/dto/design-systems/members.ts
|
|
5322
|
-
import { z as
|
|
5329
|
+
import { z as z187 } from "zod";
|
|
5323
5330
|
|
|
5324
5331
|
// src/api/dto/design-systems/role.ts
|
|
5325
|
-
import { z as
|
|
5326
|
-
var DTODesignSystemRole =
|
|
5332
|
+
import { z as z186 } from "zod";
|
|
5333
|
+
var DTODesignSystemRole = z186.enum([
|
|
5327
5334
|
WorkspaceRole.Admin,
|
|
5328
5335
|
WorkspaceRole.Contributor,
|
|
5329
5336
|
WorkspaceRole.Creator,
|
|
@@ -5331,29 +5338,29 @@ var DTODesignSystemRole = z185.enum([
|
|
|
5331
5338
|
]);
|
|
5332
5339
|
|
|
5333
5340
|
// src/api/dto/design-systems/members.ts
|
|
5334
|
-
var DTODesignSystemMember =
|
|
5335
|
-
userId:
|
|
5341
|
+
var DTODesignSystemMember = z187.object({
|
|
5342
|
+
userId: z187.string(),
|
|
5336
5343
|
/**
|
|
5337
5344
|
* Role that the member has in the design system,
|
|
5338
5345
|
* undefined if set to inherit from workspace
|
|
5339
5346
|
*/
|
|
5340
5347
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5341
5348
|
});
|
|
5342
|
-
var DTODesignSystemInvitation =
|
|
5343
|
-
id:
|
|
5344
|
-
workspaceInvitationId:
|
|
5349
|
+
var DTODesignSystemInvitation = z187.object({
|
|
5350
|
+
id: z187.string(),
|
|
5351
|
+
workspaceInvitationId: z187.string(),
|
|
5345
5352
|
/**
|
|
5346
5353
|
* Role that the invitation has in the design system,
|
|
5347
5354
|
* undefined if set to inherit from workspace
|
|
5348
5355
|
*/
|
|
5349
5356
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5350
5357
|
});
|
|
5351
|
-
var DTODesignSystemMemberListResponse =
|
|
5358
|
+
var DTODesignSystemMemberListResponse = z187.object({
|
|
5352
5359
|
members: DTODesignSystemMember.array(),
|
|
5353
5360
|
invitations: DTODesignSystemInvitation.array()
|
|
5354
5361
|
});
|
|
5355
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5356
|
-
ok:
|
|
5362
|
+
var DTODesignSystemMembersUpdateResponse = z187.object({
|
|
5363
|
+
ok: z187.literal(true)
|
|
5357
5364
|
});
|
|
5358
5365
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5359
5366
|
|
|
@@ -5364,14 +5371,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5364
5371
|
docExporterId: true
|
|
5365
5372
|
}).extend({
|
|
5366
5373
|
meta: ObjectMeta,
|
|
5367
|
-
docExporterId:
|
|
5368
|
-
sources:
|
|
5369
|
-
isPublic:
|
|
5374
|
+
docExporterId: z188.string(),
|
|
5375
|
+
sources: z188.array(z188.any()),
|
|
5376
|
+
isPublic: z188.literal(true),
|
|
5370
5377
|
/**
|
|
5371
5378
|
* Whether or not user who is requesting the design system
|
|
5372
5379
|
* has access to the design system's contents.
|
|
5373
5380
|
*/
|
|
5374
|
-
isAvailableToUser:
|
|
5381
|
+
isAvailableToUser: z188.boolean(),
|
|
5375
5382
|
/**
|
|
5376
5383
|
* @deprecated
|
|
5377
5384
|
*/
|
|
@@ -5382,17 +5389,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5382
5389
|
*/
|
|
5383
5390
|
effectiveRole: DTODesignSystemRole.optional()
|
|
5384
5391
|
});
|
|
5385
|
-
var DTODesignSystemResponse =
|
|
5392
|
+
var DTODesignSystemResponse = z188.object({
|
|
5386
5393
|
designSystem: DTODesignSystem
|
|
5387
5394
|
});
|
|
5388
|
-
var DTODesignSystemsListResponse =
|
|
5395
|
+
var DTODesignSystemsListResponse = z188.object({
|
|
5389
5396
|
designSystems: DTODesignSystem.array()
|
|
5390
5397
|
});
|
|
5391
|
-
var DTODesignSystemCreateInput =
|
|
5392
|
-
workspaceId:
|
|
5398
|
+
var DTODesignSystemCreateInput = z188.object({
|
|
5399
|
+
workspaceId: z188.string(),
|
|
5393
5400
|
meta: ObjectMeta.optional(),
|
|
5394
|
-
name:
|
|
5395
|
-
description:
|
|
5401
|
+
name: z188.string().min(2).max(64).optional(),
|
|
5402
|
+
description: z188.string().max(1024).optional(),
|
|
5396
5403
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5397
5404
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
5398
5405
|
usersToInvite: true,
|
|
@@ -5402,25 +5409,25 @@ var DTODesignSystemCreateInput = z187.object({
|
|
|
5402
5409
|
});
|
|
5403
5410
|
|
|
5404
5411
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5405
|
-
import { z as
|
|
5406
|
-
var DTODiffCountBase =
|
|
5407
|
-
created:
|
|
5408
|
-
updated:
|
|
5409
|
-
deleted:
|
|
5412
|
+
import { z as z189 } from "zod";
|
|
5413
|
+
var DTODiffCountBase = z189.object({
|
|
5414
|
+
created: z189.number(),
|
|
5415
|
+
updated: z189.number(),
|
|
5416
|
+
deleted: z189.number()
|
|
5410
5417
|
});
|
|
5411
|
-
var DTODesignElementsDataDiffResponse =
|
|
5418
|
+
var DTODesignElementsDataDiffResponse = z189.object({
|
|
5412
5419
|
tokens: DTODiffCountBase,
|
|
5413
5420
|
assets: DTODiffCountBase
|
|
5414
5421
|
});
|
|
5415
5422
|
|
|
5416
5423
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5417
|
-
import { z as
|
|
5418
|
-
var DTOExporterProperty =
|
|
5419
|
-
var DTOExporterPropertyListResponse =
|
|
5424
|
+
import { z as z190 } from "zod";
|
|
5425
|
+
var DTOExporterProperty = z190.any({});
|
|
5426
|
+
var DTOExporterPropertyListResponse = z190.object({ items: z190.array(DTOExporterProperty) });
|
|
5420
5427
|
|
|
5421
5428
|
// src/api/dto/design-systems/figma-variables.ts
|
|
5422
|
-
import { z as
|
|
5423
|
-
var DimensionsVariableScopeSchema =
|
|
5429
|
+
import { z as z191 } from "zod";
|
|
5430
|
+
var DimensionsVariableScopeSchema = z191.enum([
|
|
5424
5431
|
"CORNER_RADIUS",
|
|
5425
5432
|
"WIDTH_HEIGHT",
|
|
5426
5433
|
"GAP",
|
|
@@ -5434,130 +5441,130 @@ var DimensionsVariableScopeSchema = z190.enum([
|
|
|
5434
5441
|
"PARAGRAPH_INDENT",
|
|
5435
5442
|
"FONT_WEIGHT"
|
|
5436
5443
|
]);
|
|
5437
|
-
var StringVariableScopeSchema =
|
|
5444
|
+
var StringVariableScopeSchema = z191.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
5438
5445
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5439
5446
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5440
|
-
var VariableScope =
|
|
5441
|
-
var ReferencedVariableOrigin =
|
|
5442
|
-
name:
|
|
5443
|
-
remote:
|
|
5447
|
+
var VariableScope = z191.string();
|
|
5448
|
+
var ReferencedVariableOrigin = z191.object({
|
|
5449
|
+
name: z191.string(),
|
|
5450
|
+
remote: z191.boolean()
|
|
5444
5451
|
});
|
|
5445
|
-
var RGB =
|
|
5446
|
-
r:
|
|
5447
|
-
g:
|
|
5448
|
-
b:
|
|
5452
|
+
var RGB = z191.object({
|
|
5453
|
+
r: z191.number(),
|
|
5454
|
+
g: z191.number(),
|
|
5455
|
+
b: z191.number()
|
|
5449
5456
|
});
|
|
5450
5457
|
var RGBA = RGB.extend({
|
|
5451
|
-
a:
|
|
5452
|
-
});
|
|
5453
|
-
var VariableAlias =
|
|
5454
|
-
type:
|
|
5455
|
-
id:
|
|
5456
|
-
resolvedValue:
|
|
5457
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
5458
|
-
});
|
|
5459
|
-
var VariableValue =
|
|
5460
|
-
var ResolvedVariableType =
|
|
5461
|
-
var Variable =
|
|
5462
|
-
id:
|
|
5463
|
-
name:
|
|
5464
|
-
key:
|
|
5465
|
-
variableCollectionId:
|
|
5458
|
+
a: z191.number()
|
|
5459
|
+
});
|
|
5460
|
+
var VariableAlias = z191.object({
|
|
5461
|
+
type: z191.literal("VARIABLE_ALIAS"),
|
|
5462
|
+
id: z191.string(),
|
|
5463
|
+
resolvedValue: z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).optional(),
|
|
5464
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z191.null())
|
|
5465
|
+
});
|
|
5466
|
+
var VariableValue = z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5467
|
+
var ResolvedVariableType = z191.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5468
|
+
var Variable = z191.object({
|
|
5469
|
+
id: z191.string(),
|
|
5470
|
+
name: z191.string(),
|
|
5471
|
+
key: z191.string(),
|
|
5472
|
+
variableCollectionId: z191.string(),
|
|
5466
5473
|
resolvedType: ResolvedVariableType,
|
|
5467
|
-
valuesByMode:
|
|
5468
|
-
remote:
|
|
5469
|
-
description:
|
|
5470
|
-
hiddenFromPublishing:
|
|
5471
|
-
scopes:
|
|
5472
|
-
codeSyntax:
|
|
5473
|
-
});
|
|
5474
|
-
var VariableMode =
|
|
5475
|
-
modeId:
|
|
5476
|
-
name:
|
|
5477
|
-
});
|
|
5478
|
-
var Collection2 =
|
|
5479
|
-
id:
|
|
5480
|
-
name:
|
|
5481
|
-
modes:
|
|
5482
|
-
defaultModeId:
|
|
5483
|
-
remote:
|
|
5484
|
-
hiddenFromPublishing:
|
|
5485
|
-
});
|
|
5486
|
-
var VariablesMapping =
|
|
5487
|
-
variableCollections:
|
|
5488
|
-
variableMode:
|
|
5489
|
-
supernovaBrand:
|
|
5490
|
-
supernovaTheme:
|
|
5491
|
-
});
|
|
5492
|
-
var FormattedCollections =
|
|
5493
|
-
variables:
|
|
5494
|
-
variableCollections:
|
|
5495
|
-
mappings:
|
|
5496
|
-
variablesOrder:
|
|
5474
|
+
valuesByMode: z191.record(VariableValue),
|
|
5475
|
+
remote: z191.boolean(),
|
|
5476
|
+
description: z191.string(),
|
|
5477
|
+
hiddenFromPublishing: z191.boolean(),
|
|
5478
|
+
scopes: z191.array(VariableScope),
|
|
5479
|
+
codeSyntax: z191.record(z191.any()).optional()
|
|
5480
|
+
});
|
|
5481
|
+
var VariableMode = z191.object({
|
|
5482
|
+
modeId: z191.string(),
|
|
5483
|
+
name: z191.string()
|
|
5484
|
+
});
|
|
5485
|
+
var Collection2 = z191.object({
|
|
5486
|
+
id: z191.string(),
|
|
5487
|
+
name: z191.string(),
|
|
5488
|
+
modes: z191.array(VariableMode),
|
|
5489
|
+
defaultModeId: z191.string(),
|
|
5490
|
+
remote: z191.boolean(),
|
|
5491
|
+
hiddenFromPublishing: z191.boolean()
|
|
5492
|
+
});
|
|
5493
|
+
var VariablesMapping = z191.object({
|
|
5494
|
+
variableCollections: z191.array(z191.string()).min(1),
|
|
5495
|
+
variableMode: z191.string().min(1),
|
|
5496
|
+
supernovaBrand: z191.string().min(1),
|
|
5497
|
+
supernovaTheme: z191.string().min(1).optional().or(z191.null())
|
|
5498
|
+
});
|
|
5499
|
+
var FormattedCollections = z191.object({
|
|
5500
|
+
variables: z191.record(z191.string(), Variable),
|
|
5501
|
+
variableCollections: z191.record(z191.string(), Collection2),
|
|
5502
|
+
mappings: z191.array(VariablesMapping).optional(),
|
|
5503
|
+
variablesOrder: z191.string().array().optional()
|
|
5497
5504
|
});
|
|
5498
5505
|
|
|
5499
5506
|
// src/api/dto/design-systems/import-job.ts
|
|
5500
|
-
import { z as
|
|
5501
|
-
var DTOImportJob =
|
|
5502
|
-
id:
|
|
5503
|
-
designSystemId:
|
|
5504
|
-
designSystemVersionId:
|
|
5505
|
-
operation:
|
|
5506
|
-
createdAt:
|
|
5507
|
-
stateChangedAt:
|
|
5507
|
+
import { z as z192 } from "zod";
|
|
5508
|
+
var DTOImportJob = z192.object({
|
|
5509
|
+
id: z192.string(),
|
|
5510
|
+
designSystemId: z192.string(),
|
|
5511
|
+
designSystemVersionId: z192.string(),
|
|
5512
|
+
operation: z192.literal("Import"),
|
|
5513
|
+
createdAt: z192.coerce.date(),
|
|
5514
|
+
stateChangedAt: z192.coerce.date(),
|
|
5508
5515
|
state: ImportJobState,
|
|
5509
|
-
sourceIds:
|
|
5516
|
+
sourceIds: z192.string().array()
|
|
5510
5517
|
});
|
|
5511
|
-
var DTOImportJobResponse =
|
|
5518
|
+
var DTOImportJobResponse = z192.object({
|
|
5512
5519
|
job: DTOImportJob
|
|
5513
5520
|
});
|
|
5514
|
-
var DTOBffFigmaImportRequestBody =
|
|
5515
|
-
type:
|
|
5516
|
-
brandPersistentId:
|
|
5517
|
-
fileId:
|
|
5521
|
+
var DTOBffFigmaImportRequestBody = z192.object({
|
|
5522
|
+
type: z192.literal(DataSourceRemoteType.Enum.Figma),
|
|
5523
|
+
brandPersistentId: z192.string().optional(),
|
|
5524
|
+
fileId: z192.string(),
|
|
5518
5525
|
scope: DataSourceFigmaScope,
|
|
5519
5526
|
autoImportMode: DataSourceAutoImportMode
|
|
5520
5527
|
});
|
|
5521
|
-
var DTOBffUploadImportRequestBody =
|
|
5522
|
-
type:
|
|
5523
|
-
brandPersistentId:
|
|
5524
|
-
sourceName:
|
|
5525
|
-
remoteId:
|
|
5526
|
-
isTokenTypeSplitEnabled:
|
|
5527
|
-
payload:
|
|
5528
|
+
var DTOBffUploadImportRequestBody = z192.object({
|
|
5529
|
+
type: z192.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5530
|
+
brandPersistentId: z192.string().optional(),
|
|
5531
|
+
sourceName: z192.string().optional(),
|
|
5532
|
+
remoteId: z192.string(),
|
|
5533
|
+
isTokenTypeSplitEnabled: z192.boolean().optional(),
|
|
5534
|
+
payload: z192.any()
|
|
5528
5535
|
});
|
|
5529
|
-
var DTOBffImportRequestBody =
|
|
5536
|
+
var DTOBffImportRequestBody = z192.discriminatedUnion("type", [
|
|
5530
5537
|
DTOBffFigmaImportRequestBody,
|
|
5531
5538
|
DTOBffUploadImportRequestBody
|
|
5532
5539
|
]);
|
|
5533
5540
|
|
|
5534
5541
|
// src/api/dto/design-systems/stats.ts
|
|
5535
|
-
import { z as
|
|
5536
|
-
var DTODesignSystemVersionStats =
|
|
5537
|
-
tokens:
|
|
5538
|
-
designSystemComponents:
|
|
5539
|
-
assets:
|
|
5540
|
-
documentationPages:
|
|
5542
|
+
import { z as z193 } from "zod";
|
|
5543
|
+
var DTODesignSystemVersionStats = z193.object({
|
|
5544
|
+
tokens: z193.number(),
|
|
5545
|
+
designSystemComponents: z193.number(),
|
|
5546
|
+
assets: z193.number(),
|
|
5547
|
+
documentationPages: z193.number()
|
|
5541
5548
|
});
|
|
5542
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5543
|
-
brandId:
|
|
5549
|
+
var DTODesignSystemVersionStatsQuery = z193.object({
|
|
5550
|
+
brandId: z193.string().optional()
|
|
5544
5551
|
});
|
|
5545
5552
|
|
|
5546
5553
|
// src/api/dto/design-systems/version.ts
|
|
5547
|
-
import { z as
|
|
5554
|
+
import { z as z204 } from "zod";
|
|
5548
5555
|
|
|
5549
5556
|
// src/api/payloads/design-systems/brand.ts
|
|
5550
|
-
import { z as
|
|
5551
|
-
var DTOCreateBrandInput =
|
|
5552
|
-
persistentId:
|
|
5553
|
-
meta:
|
|
5554
|
-
name:
|
|
5555
|
-
description:
|
|
5557
|
+
import { z as z194 } from "zod";
|
|
5558
|
+
var DTOCreateBrandInput = z194.object({
|
|
5559
|
+
persistentId: z194.string().uuid(),
|
|
5560
|
+
meta: z194.object({
|
|
5561
|
+
name: z194.string(),
|
|
5562
|
+
description: z194.string()
|
|
5556
5563
|
})
|
|
5557
5564
|
});
|
|
5558
5565
|
|
|
5559
5566
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5560
|
-
import { z as
|
|
5567
|
+
import { z as z195 } from "zod";
|
|
5561
5568
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5562
5569
|
id: true,
|
|
5563
5570
|
workspaceId: true,
|
|
@@ -5569,40 +5576,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5569
5576
|
}).extend({
|
|
5570
5577
|
meta: ObjectMeta.partial().optional()
|
|
5571
5578
|
});
|
|
5572
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5579
|
+
var DTODesignSystemUpdateAccessModeInput = z195.object({
|
|
5573
5580
|
accessMode: DesignSystemAccessMode,
|
|
5574
|
-
retain:
|
|
5575
|
-
userIds:
|
|
5576
|
-
inviteIds:
|
|
5581
|
+
retain: z195.object({
|
|
5582
|
+
userIds: z195.string().array(),
|
|
5583
|
+
inviteIds: z195.string().array()
|
|
5577
5584
|
}).optional()
|
|
5578
5585
|
});
|
|
5579
5586
|
|
|
5580
5587
|
// src/api/payloads/design-systems/version.ts
|
|
5581
|
-
import { z as
|
|
5582
|
-
var ObjectMeta2 =
|
|
5583
|
-
name:
|
|
5584
|
-
description:
|
|
5588
|
+
import { z as z196 } from "zod";
|
|
5589
|
+
var ObjectMeta2 = z196.object({
|
|
5590
|
+
name: z196.string().max(150).optional(),
|
|
5591
|
+
description: z196.string().max(2e3).optional()
|
|
5585
5592
|
});
|
|
5586
5593
|
function validateDesignSystemVersion(version) {
|
|
5587
5594
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5588
5595
|
return urlCompliantRegex.test(version);
|
|
5589
5596
|
}
|
|
5590
|
-
var DTOCreateVersionInput =
|
|
5597
|
+
var DTOCreateVersionInput = z196.object({
|
|
5591
5598
|
meta: ObjectMeta2,
|
|
5592
|
-
version:
|
|
5599
|
+
version: z196.string().refine(validateDesignSystemVersion, {
|
|
5593
5600
|
message: "Invalid semantic versioning format"
|
|
5594
5601
|
}),
|
|
5595
|
-
changeLog:
|
|
5602
|
+
changeLog: z196.string().optional()
|
|
5596
5603
|
});
|
|
5597
|
-
var DTOUpdateVersionInput =
|
|
5604
|
+
var DTOUpdateVersionInput = z196.object({
|
|
5598
5605
|
meta: ObjectMeta2,
|
|
5599
|
-
version:
|
|
5606
|
+
version: z196.string(),
|
|
5600
5607
|
// required for PUT, but not editable
|
|
5601
|
-
changeLog:
|
|
5608
|
+
changeLog: z196.string()
|
|
5602
5609
|
});
|
|
5603
5610
|
|
|
5604
5611
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5605
|
-
import { z as
|
|
5612
|
+
import { z as z197 } from "zod";
|
|
5606
5613
|
|
|
5607
5614
|
// src/api/dto/documentation/block-definition.ts
|
|
5608
5615
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5614,60 +5621,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5614
5621
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5615
5622
|
|
|
5616
5623
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5617
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5618
|
-
definitions:
|
|
5624
|
+
var DTOGetBlockDefinitionsOutput = z197.object({
|
|
5625
|
+
definitions: z197.array(DTOPageBlockDefinition)
|
|
5619
5626
|
});
|
|
5620
5627
|
|
|
5621
5628
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5622
|
-
import { z as
|
|
5623
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5624
|
-
environment:
|
|
5629
|
+
import { z as z198 } from "zod";
|
|
5630
|
+
var DTODocumentationPublishTypeQueryParams = z198.object({
|
|
5631
|
+
environment: z198.enum(["Live", "Preview"])
|
|
5625
5632
|
});
|
|
5626
5633
|
|
|
5627
5634
|
// src/api/payloads/export/pipeline.ts
|
|
5628
|
-
import { z as
|
|
5629
|
-
var DTOPipelineCreateBody =
|
|
5630
|
-
name:
|
|
5631
|
-
exporterId:
|
|
5632
|
-
designSystemId:
|
|
5633
|
-
isEnabled:
|
|
5635
|
+
import { z as z199 } from "zod";
|
|
5636
|
+
var DTOPipelineCreateBody = z199.object({
|
|
5637
|
+
name: z199.string(),
|
|
5638
|
+
exporterId: z199.string(),
|
|
5639
|
+
designSystemId: z199.string(),
|
|
5640
|
+
isEnabled: z199.boolean(),
|
|
5634
5641
|
eventType: PipelineEventType,
|
|
5635
|
-
brandPersistentId:
|
|
5636
|
-
themePersistentId:
|
|
5637
|
-
themePersistentIds:
|
|
5642
|
+
brandPersistentId: z199.string().optional(),
|
|
5643
|
+
themePersistentId: z199.string().optional(),
|
|
5644
|
+
themePersistentIds: z199.string().array().optional(),
|
|
5638
5645
|
destination: PipelineDestinationType.optional(),
|
|
5639
5646
|
gitQuery: GitObjectsQuery,
|
|
5640
|
-
destinations:
|
|
5647
|
+
destinations: z199.object({
|
|
5641
5648
|
s3: ExporterDestinationS3.nullish(),
|
|
5642
5649
|
azure: ExporterDestinationAzure.nullish(),
|
|
5643
5650
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5644
5651
|
github: ExporterDestinationGithub.nullish(),
|
|
5645
5652
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5646
5653
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5647
|
-
webhookUrl:
|
|
5654
|
+
webhookUrl: z199.string().nullish()
|
|
5648
5655
|
})
|
|
5649
5656
|
});
|
|
5650
5657
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5651
|
-
id:
|
|
5658
|
+
id: z199.string()
|
|
5652
5659
|
});
|
|
5653
|
-
var DTOPipelineTriggerBody =
|
|
5654
|
-
designSystemVersionId:
|
|
5660
|
+
var DTOPipelineTriggerBody = z199.object({
|
|
5661
|
+
designSystemVersionId: z199.string()
|
|
5655
5662
|
});
|
|
5656
5663
|
|
|
5657
5664
|
// src/api/payloads/liveblocks/auth.ts
|
|
5658
|
-
import { z as
|
|
5659
|
-
var DTOLiveblocksAuthRequest =
|
|
5660
|
-
room:
|
|
5665
|
+
import { z as z200 } from "zod";
|
|
5666
|
+
var DTOLiveblocksAuthRequest = z200.object({
|
|
5667
|
+
room: z200.string().optional()
|
|
5661
5668
|
});
|
|
5662
5669
|
|
|
5663
5670
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5664
|
-
import { z as
|
|
5665
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5671
|
+
import { z as z201 } from "zod";
|
|
5672
|
+
var DTOUpdateUserNotificationSettingsPayload = z201.object({
|
|
5666
5673
|
notificationSettings: UserNotificationSettings
|
|
5667
5674
|
});
|
|
5668
|
-
var DTOUserNotificationSettingsResponse =
|
|
5669
|
-
userId:
|
|
5670
|
-
workspaceId:
|
|
5675
|
+
var DTOUserNotificationSettingsResponse = z201.object({
|
|
5676
|
+
userId: z201.string(),
|
|
5677
|
+
workspaceId: z201.string(),
|
|
5671
5678
|
notificationSettings: UserNotificationSettings
|
|
5672
5679
|
});
|
|
5673
5680
|
|
|
@@ -5675,7 +5682,7 @@ var DTOUserNotificationSettingsResponse = z200.object({
|
|
|
5675
5682
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5676
5683
|
|
|
5677
5684
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5678
|
-
import { z as
|
|
5685
|
+
import { z as z202 } from "zod";
|
|
5679
5686
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5680
5687
|
function validateSsoPayload(ssoPayload) {
|
|
5681
5688
|
const keys = [];
|
|
@@ -5698,21 +5705,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5698
5705
|
keys
|
|
5699
5706
|
};
|
|
5700
5707
|
}
|
|
5701
|
-
var NpmRegistryInput =
|
|
5702
|
-
enabledScopes:
|
|
5703
|
-
customRegistryUrl:
|
|
5704
|
-
bypassProxy:
|
|
5705
|
-
npmProxyRegistryConfigId:
|
|
5706
|
-
npmProxyVersion:
|
|
5707
|
-
registryType:
|
|
5708
|
-
authType:
|
|
5709
|
-
authHeaderName:
|
|
5710
|
-
authHeaderValue:
|
|
5711
|
-
accessToken:
|
|
5712
|
-
username:
|
|
5713
|
-
password:
|
|
5714
|
-
});
|
|
5715
|
-
var WorkspaceConfigurationPayload =
|
|
5708
|
+
var NpmRegistryInput = z202.object({
|
|
5709
|
+
enabledScopes: z202.array(z202.string()),
|
|
5710
|
+
customRegistryUrl: z202.string().optional(),
|
|
5711
|
+
bypassProxy: z202.boolean().optional(),
|
|
5712
|
+
npmProxyRegistryConfigId: z202.string().optional(),
|
|
5713
|
+
npmProxyVersion: z202.number().optional(),
|
|
5714
|
+
registryType: z202.string(),
|
|
5715
|
+
authType: z202.string(),
|
|
5716
|
+
authHeaderName: z202.string(),
|
|
5717
|
+
authHeaderValue: z202.string(),
|
|
5718
|
+
accessToken: z202.string(),
|
|
5719
|
+
username: z202.string(),
|
|
5720
|
+
password: z202.string()
|
|
5721
|
+
});
|
|
5722
|
+
var WorkspaceConfigurationPayload = z202.object({
|
|
5716
5723
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5717
5724
|
sso: SsoProvider.partial().optional(),
|
|
5718
5725
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5720,218 +5727,218 @@ var WorkspaceConfigurationPayload = z201.object({
|
|
|
5720
5727
|
});
|
|
5721
5728
|
|
|
5722
5729
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5723
|
-
import { z as
|
|
5724
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5730
|
+
import { z as z203 } from "zod";
|
|
5731
|
+
var DTOWorkspaceIntegrationOauthInput = z203.object({
|
|
5725
5732
|
type: IntegrationType
|
|
5726
5733
|
});
|
|
5727
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5728
|
-
userId:
|
|
5734
|
+
var DTOWorkspaceIntegrationPATInput = z203.object({
|
|
5735
|
+
userId: z203.string(),
|
|
5729
5736
|
type: IntegrationType,
|
|
5730
5737
|
token: IntegrationToken
|
|
5731
5738
|
});
|
|
5732
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5733
|
-
organization:
|
|
5739
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z203.object({
|
|
5740
|
+
organization: z203.string().optional(),
|
|
5734
5741
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5735
|
-
project:
|
|
5742
|
+
project: z203.string().optional(),
|
|
5736
5743
|
// Only for Bitbucket and Azure
|
|
5737
|
-
repository:
|
|
5744
|
+
repository: z203.string().optional(),
|
|
5738
5745
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5739
|
-
branch:
|
|
5746
|
+
branch: z203.string().optional(),
|
|
5740
5747
|
// For all providers, useful for PR creations.
|
|
5741
|
-
user:
|
|
5748
|
+
user: z203.string().optional()
|
|
5742
5749
|
// Only for Gitlab User Repositories
|
|
5743
5750
|
});
|
|
5744
5751
|
|
|
5745
5752
|
// src/api/dto/design-systems/version.ts
|
|
5746
|
-
var DTODesignSystemVersion =
|
|
5747
|
-
id:
|
|
5748
|
-
createdAt:
|
|
5753
|
+
var DTODesignSystemVersion = z204.object({
|
|
5754
|
+
id: z204.string(),
|
|
5755
|
+
createdAt: z204.coerce.date(),
|
|
5749
5756
|
meta: ObjectMeta,
|
|
5750
|
-
version:
|
|
5751
|
-
isReadonly:
|
|
5752
|
-
changeLog:
|
|
5753
|
-
designSystemId:
|
|
5757
|
+
version: z204.string(),
|
|
5758
|
+
isReadonly: z204.boolean(),
|
|
5759
|
+
changeLog: z204.string(),
|
|
5760
|
+
designSystemId: z204.string()
|
|
5754
5761
|
});
|
|
5755
|
-
var DTODesignSystemVersionsListResponse =
|
|
5756
|
-
designSystemVersions:
|
|
5762
|
+
var DTODesignSystemVersionsListResponse = z204.object({
|
|
5763
|
+
designSystemVersions: z204.array(DTODesignSystemVersion)
|
|
5757
5764
|
});
|
|
5758
|
-
var DTODesignSystemVersionGetResponse =
|
|
5765
|
+
var DTODesignSystemVersionGetResponse = z204.object({
|
|
5759
5766
|
designSystemVersion: DTODesignSystemVersion
|
|
5760
5767
|
});
|
|
5761
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5768
|
+
var DTODesignSystemVersionCreationResponse = z204.object({
|
|
5762
5769
|
meta: ObjectMeta,
|
|
5763
|
-
version:
|
|
5764
|
-
changeLog:
|
|
5765
|
-
isReadOnly:
|
|
5766
|
-
designSystemId:
|
|
5767
|
-
jobId:
|
|
5768
|
-
});
|
|
5769
|
-
var VersionSQSPayload =
|
|
5770
|
-
jobId:
|
|
5771
|
-
designSystemId:
|
|
5770
|
+
version: z204.string(),
|
|
5771
|
+
changeLog: z204.string(),
|
|
5772
|
+
isReadOnly: z204.boolean(),
|
|
5773
|
+
designSystemId: z204.string(),
|
|
5774
|
+
jobId: z204.string()
|
|
5775
|
+
});
|
|
5776
|
+
var VersionSQSPayload = z204.object({
|
|
5777
|
+
jobId: z204.string(),
|
|
5778
|
+
designSystemId: z204.string(),
|
|
5772
5779
|
input: DTOCreateVersionInput
|
|
5773
5780
|
});
|
|
5774
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5775
|
-
jobs:
|
|
5781
|
+
var DTODesignSystemVersionJobsResponse = z204.object({
|
|
5782
|
+
jobs: z204.array(VersionCreationJob)
|
|
5776
5783
|
});
|
|
5777
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5784
|
+
var DTODesignSystemVersionJobStatusResponse = z204.object({
|
|
5778
5785
|
job: VersionCreationJob
|
|
5779
5786
|
});
|
|
5780
5787
|
|
|
5781
5788
|
// src/api/dto/design-systems/view.ts
|
|
5782
|
-
import { z as
|
|
5783
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5784
|
-
id:
|
|
5785
|
-
persistentId:
|
|
5786
|
-
width:
|
|
5789
|
+
import { z as z205 } from "zod";
|
|
5790
|
+
var DTOElementViewColumnSharedAttributes = z205.object({
|
|
5791
|
+
id: z205.string(),
|
|
5792
|
+
persistentId: z205.string(),
|
|
5793
|
+
width: z205.number()
|
|
5787
5794
|
});
|
|
5788
5795
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5789
|
-
type:
|
|
5796
|
+
type: z205.literal("BaseProperty"),
|
|
5790
5797
|
basePropertyType: ElementViewBaseColumnType
|
|
5791
5798
|
});
|
|
5792
5799
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5793
|
-
type:
|
|
5794
|
-
propertyDefinitionId:
|
|
5800
|
+
type: z205.literal("PropertyDefinition"),
|
|
5801
|
+
propertyDefinitionId: z205.string()
|
|
5795
5802
|
});
|
|
5796
5803
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5797
|
-
type:
|
|
5798
|
-
themeId:
|
|
5804
|
+
type: z205.literal("Theme"),
|
|
5805
|
+
themeId: z205.string()
|
|
5799
5806
|
});
|
|
5800
|
-
var DTOElementViewColumn =
|
|
5807
|
+
var DTOElementViewColumn = z205.discriminatedUnion("type", [
|
|
5801
5808
|
DTOElementViewBasePropertyColumn,
|
|
5802
5809
|
DTOElementViewPropertyDefinitionColumn,
|
|
5803
5810
|
DTOElementViewThemeColumn
|
|
5804
5811
|
]);
|
|
5805
|
-
var DTOElementView =
|
|
5812
|
+
var DTOElementView = z205.object({
|
|
5806
5813
|
meta: ObjectMeta,
|
|
5807
|
-
persistentId:
|
|
5814
|
+
persistentId: z205.string(),
|
|
5808
5815
|
targetElementType: ElementPropertyTargetType,
|
|
5809
|
-
id:
|
|
5810
|
-
isDefault:
|
|
5811
|
-
columns:
|
|
5816
|
+
id: z205.string(),
|
|
5817
|
+
isDefault: z205.boolean(),
|
|
5818
|
+
columns: z205.array(DTOElementViewColumn)
|
|
5812
5819
|
});
|
|
5813
|
-
var DTOElementViewsListResponse =
|
|
5814
|
-
elementDataViews:
|
|
5820
|
+
var DTOElementViewsListResponse = z205.object({
|
|
5821
|
+
elementDataViews: z205.array(DTOElementView)
|
|
5815
5822
|
});
|
|
5816
5823
|
|
|
5817
5824
|
// src/api/dto/workspaces/git.ts
|
|
5818
|
-
import { z as
|
|
5819
|
-
var DTOGitOrganization =
|
|
5820
|
-
id:
|
|
5821
|
-
name:
|
|
5822
|
-
url:
|
|
5823
|
-
slug:
|
|
5825
|
+
import { z as z206 } from "zod";
|
|
5826
|
+
var DTOGitOrganization = z206.object({
|
|
5827
|
+
id: z206.string(),
|
|
5828
|
+
name: z206.string(),
|
|
5829
|
+
url: z206.string(),
|
|
5830
|
+
slug: z206.string()
|
|
5824
5831
|
});
|
|
5825
|
-
var DTOGitProject =
|
|
5826
|
-
id:
|
|
5827
|
-
name:
|
|
5828
|
-
url:
|
|
5829
|
-
slug:
|
|
5832
|
+
var DTOGitProject = z206.object({
|
|
5833
|
+
id: z206.string(),
|
|
5834
|
+
name: z206.string(),
|
|
5835
|
+
url: z206.string(),
|
|
5836
|
+
slug: z206.string()
|
|
5830
5837
|
});
|
|
5831
|
-
var DTOGitRepository =
|
|
5832
|
-
id:
|
|
5833
|
-
name:
|
|
5834
|
-
url:
|
|
5835
|
-
slug:
|
|
5836
|
-
defaultBranch:
|
|
5838
|
+
var DTOGitRepository = z206.object({
|
|
5839
|
+
id: z206.string(),
|
|
5840
|
+
name: z206.string(),
|
|
5841
|
+
url: z206.string(),
|
|
5842
|
+
slug: z206.string(),
|
|
5843
|
+
defaultBranch: z206.string().optional()
|
|
5837
5844
|
});
|
|
5838
|
-
var DTOGitBranch =
|
|
5839
|
-
name:
|
|
5840
|
-
lastCommitId:
|
|
5845
|
+
var DTOGitBranch = z206.object({
|
|
5846
|
+
name: z206.string(),
|
|
5847
|
+
lastCommitId: z206.string()
|
|
5841
5848
|
});
|
|
5842
5849
|
|
|
5843
5850
|
// src/api/dto/workspaces/integrations.ts
|
|
5844
|
-
import { z as
|
|
5851
|
+
import { z as z207 } from "zod";
|
|
5845
5852
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5846
5853
|
accessToken: true,
|
|
5847
5854
|
refreshToken: true
|
|
5848
5855
|
});
|
|
5849
|
-
var DTOIntegration =
|
|
5850
|
-
id:
|
|
5851
|
-
workspaceId:
|
|
5856
|
+
var DTOIntegration = z207.object({
|
|
5857
|
+
id: z207.string(),
|
|
5858
|
+
workspaceId: z207.string(),
|
|
5852
5859
|
type: ExtendedIntegrationType,
|
|
5853
|
-
createdAt:
|
|
5854
|
-
integrationCredentials:
|
|
5855
|
-
integrationDesignSystems:
|
|
5860
|
+
createdAt: z207.coerce.date(),
|
|
5861
|
+
integrationCredentials: z207.array(DTOIntegrationCredentials).optional(),
|
|
5862
|
+
integrationDesignSystems: z207.array(IntegrationDesignSystem).optional()
|
|
5856
5863
|
});
|
|
5857
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5858
|
-
url:
|
|
5864
|
+
var DTOIntegrationOAuthGetResponse = z207.object({
|
|
5865
|
+
url: z207.string()
|
|
5859
5866
|
});
|
|
5860
|
-
var DTOIntegrationPostResponse =
|
|
5867
|
+
var DTOIntegrationPostResponse = z207.object({
|
|
5861
5868
|
integration: DTOIntegration
|
|
5862
5869
|
});
|
|
5863
|
-
var DTOIntegrationsGetListResponse =
|
|
5870
|
+
var DTOIntegrationsGetListResponse = z207.object({
|
|
5864
5871
|
integrations: DTOIntegration.array()
|
|
5865
5872
|
});
|
|
5866
5873
|
|
|
5867
5874
|
// src/api/dto/workspaces/invitations.ts
|
|
5868
|
-
import { z as
|
|
5869
|
-
var DTOWorkspaceInvitationInput =
|
|
5870
|
-
email:
|
|
5875
|
+
import { z as z208 } from "zod";
|
|
5876
|
+
var DTOWorkspaceInvitationInput = z208.object({
|
|
5877
|
+
email: z208.string().email(),
|
|
5871
5878
|
role: WorkspaceRoleSchema
|
|
5872
5879
|
});
|
|
5873
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5880
|
+
var DTOWorkspaceInvitationsListInput = z208.object({
|
|
5874
5881
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5875
|
-
designSystemId:
|
|
5882
|
+
designSystemId: z208.string().optional()
|
|
5876
5883
|
});
|
|
5877
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5884
|
+
var DTOWorkspaceInvitationsResponse = z208.object({
|
|
5878
5885
|
invitations: WorkspaceInvitation.array()
|
|
5879
5886
|
});
|
|
5880
|
-
var DTOWorkspaceInviteUpdate =
|
|
5887
|
+
var DTOWorkspaceInviteUpdate = z208.object({
|
|
5881
5888
|
role: WorkspaceRoleSchema
|
|
5882
5889
|
});
|
|
5883
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5890
|
+
var DTOWorkspaceInvitationUpdateResponse = z208.object({
|
|
5884
5891
|
invitation: WorkspaceInvitation
|
|
5885
5892
|
});
|
|
5886
5893
|
|
|
5887
5894
|
// src/api/dto/workspaces/membership.ts
|
|
5888
|
-
import { z as
|
|
5895
|
+
import { z as z211 } from "zod";
|
|
5889
5896
|
|
|
5890
5897
|
// src/api/dto/workspaces/workspace.ts
|
|
5891
|
-
import { z as
|
|
5898
|
+
import { z as z210 } from "zod";
|
|
5892
5899
|
|
|
5893
5900
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5894
|
-
import { z as
|
|
5901
|
+
import { z as z209 } from "zod";
|
|
5895
5902
|
var DTONpmRegistryConfigConstants = {
|
|
5896
5903
|
passwordPlaceholder: "redacted"
|
|
5897
5904
|
};
|
|
5898
|
-
var DTONpmRegistryConfig =
|
|
5905
|
+
var DTONpmRegistryConfig = z209.object({
|
|
5899
5906
|
// Registry basic configuration
|
|
5900
5907
|
registryType: NpmRegistryType,
|
|
5901
|
-
registryUrl:
|
|
5902
|
-
customRegistryUrl:
|
|
5908
|
+
registryUrl: z209.string(),
|
|
5909
|
+
customRegistryUrl: z209.string().optional(),
|
|
5903
5910
|
// URL of Supernova NPM packages proxy
|
|
5904
|
-
proxyUrl:
|
|
5911
|
+
proxyUrl: z209.string(),
|
|
5905
5912
|
// Auth configuration
|
|
5906
5913
|
authType: NpmRegistryAuthType,
|
|
5907
|
-
accessToken:
|
|
5908
|
-
username:
|
|
5909
|
-
password:
|
|
5914
|
+
accessToken: z209.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5915
|
+
username: z209.string().optional(),
|
|
5916
|
+
password: z209.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5910
5917
|
// NPM package scopes for whih the proxy should be enabled
|
|
5911
|
-
enabledScopes:
|
|
5918
|
+
enabledScopes: z209.array(z209.string()),
|
|
5912
5919
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5913
5920
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5914
|
-
bypassProxy:
|
|
5921
|
+
bypassProxy: z209.boolean()
|
|
5915
5922
|
});
|
|
5916
5923
|
|
|
5917
5924
|
// src/api/dto/workspaces/workspace.ts
|
|
5918
5925
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
5919
|
-
var DTOWorkspace =
|
|
5920
|
-
id:
|
|
5926
|
+
var DTOWorkspace = z210.object({
|
|
5927
|
+
id: z210.string(),
|
|
5921
5928
|
profile: DTOWorkspaceProfile,
|
|
5922
5929
|
subscription: Subscription,
|
|
5923
5930
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5924
5931
|
});
|
|
5925
|
-
var DTOWorkspaceCreateInput =
|
|
5926
|
-
name:
|
|
5932
|
+
var DTOWorkspaceCreateInput = z210.object({
|
|
5933
|
+
name: z210.string()
|
|
5927
5934
|
});
|
|
5928
|
-
var DTOWorkspaceResponse =
|
|
5935
|
+
var DTOWorkspaceResponse = z210.object({
|
|
5929
5936
|
workspace: DTOWorkspace
|
|
5930
5937
|
});
|
|
5931
5938
|
|
|
5932
5939
|
// src/api/dto/workspaces/membership.ts
|
|
5933
|
-
var DTOWorkspaceRole =
|
|
5934
|
-
var DTOUserWorkspaceMembership =
|
|
5940
|
+
var DTOWorkspaceRole = z211.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5941
|
+
var DTOUserWorkspaceMembership = z211.object({
|
|
5935
5942
|
// Workspace the user is a member of
|
|
5936
5943
|
workspace: DTOWorkspace,
|
|
5937
5944
|
// Assigned role the user has in the workspace
|
|
@@ -5941,26 +5948,26 @@ var DTOUserWorkspaceMembership = z210.object({
|
|
|
5941
5948
|
// when a workspace's subscription is downgraded to free tier
|
|
5942
5949
|
effectiveRole: DTOWorkspaceRole
|
|
5943
5950
|
});
|
|
5944
|
-
var DTOWorkspaceMember =
|
|
5951
|
+
var DTOWorkspaceMember = z211.object({
|
|
5945
5952
|
user: User,
|
|
5946
5953
|
role: WorkspaceRoleSchema,
|
|
5947
5954
|
effectiveRole: WorkspaceRoleSchema
|
|
5948
5955
|
});
|
|
5949
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5950
|
-
membership:
|
|
5956
|
+
var DTOUserWorkspaceMembershipsResponse = z211.object({
|
|
5957
|
+
membership: z211.array(DTOUserWorkspaceMembership)
|
|
5951
5958
|
});
|
|
5952
|
-
var DTOWorkspaceMembersListResponse =
|
|
5953
|
-
members:
|
|
5959
|
+
var DTOWorkspaceMembersListResponse = z211.object({
|
|
5960
|
+
members: z211.array(DTOWorkspaceMember)
|
|
5954
5961
|
});
|
|
5955
5962
|
|
|
5956
5963
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5957
|
-
var DTOAppBootstrapDataQuery =
|
|
5958
|
-
preferredWorkspaceId:
|
|
5959
|
-
preferredDesignSystemId:
|
|
5960
|
-
preferredVersionId:
|
|
5961
|
-
preferredBrandId:
|
|
5964
|
+
var DTOAppBootstrapDataQuery = z212.object({
|
|
5965
|
+
preferredWorkspaceId: z212.string().optional(),
|
|
5966
|
+
preferredDesignSystemId: z212.string().optional(),
|
|
5967
|
+
preferredVersionId: z212.string().optional(),
|
|
5968
|
+
preferredBrandId: z212.string().optional()
|
|
5962
5969
|
});
|
|
5963
|
-
var DTOAppBootstrapDataResponse =
|
|
5970
|
+
var DTOAppBootstrapDataResponse = z212.object({
|
|
5964
5971
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5965
5972
|
designSystem: DTODesignSystem.optional(),
|
|
5966
5973
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5968,88 +5975,88 @@ var DTOAppBootstrapDataResponse = z211.object({
|
|
|
5968
5975
|
});
|
|
5969
5976
|
|
|
5970
5977
|
// src/api/dto/collections/token-collection.ts
|
|
5971
|
-
import { z as
|
|
5972
|
-
var DTOTokenCollection =
|
|
5973
|
-
id:
|
|
5974
|
-
persistentId:
|
|
5975
|
-
designSystemVersionId:
|
|
5978
|
+
import { z as z213 } from "zod";
|
|
5979
|
+
var DTOTokenCollection = z213.object({
|
|
5980
|
+
id: z213.string(),
|
|
5981
|
+
persistentId: z213.string(),
|
|
5982
|
+
designSystemVersionId: z213.string(),
|
|
5976
5983
|
meta: ObjectMeta,
|
|
5977
5984
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
5978
|
-
elementPropertyOptionId:
|
|
5979
|
-
createdAt:
|
|
5980
|
-
updatedAt:
|
|
5985
|
+
elementPropertyOptionId: z213.string(),
|
|
5986
|
+
createdAt: z213.coerce.date(),
|
|
5987
|
+
updatedAt: z213.coerce.date(),
|
|
5981
5988
|
origin: CollectionOrigin.optional()
|
|
5982
5989
|
});
|
|
5983
|
-
var DTOTokenCollectionsListReponse =
|
|
5990
|
+
var DTOTokenCollectionsListReponse = z213.object({
|
|
5984
5991
|
collections: DTOTokenCollection.array()
|
|
5985
5992
|
});
|
|
5986
5993
|
|
|
5987
5994
|
// src/api/dto/design-tokens/design-token.ts
|
|
5988
|
-
import { z as
|
|
5995
|
+
import { z as z214 } from "zod";
|
|
5989
5996
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
5990
|
-
|
|
5991
|
-
id:
|
|
5992
|
-
persistentId:
|
|
5993
|
-
designSystemVersionId:
|
|
5997
|
+
z214.object({
|
|
5998
|
+
id: z214.string(),
|
|
5999
|
+
persistentId: z214.string(),
|
|
6000
|
+
designSystemVersionId: z214.string(),
|
|
5994
6001
|
meta: ObjectMeta,
|
|
5995
6002
|
originStyle: DesignTokenOrigin.optional(),
|
|
5996
|
-
brandId:
|
|
5997
|
-
collectionId:
|
|
5998
|
-
updatedAt:
|
|
6003
|
+
brandId: z214.string(),
|
|
6004
|
+
collectionId: z214.string().optional(),
|
|
6005
|
+
updatedAt: z214.coerce.date()
|
|
5999
6006
|
})
|
|
6000
6007
|
);
|
|
6001
|
-
var DTODesignTokenListResponse =
|
|
6008
|
+
var DTODesignTokenListResponse = z214.object({
|
|
6002
6009
|
tokens: DTODesignToken.array()
|
|
6003
6010
|
});
|
|
6004
|
-
var DTODesignTokenResponse =
|
|
6011
|
+
var DTODesignTokenResponse = z214.object({
|
|
6005
6012
|
token: DTODesignToken
|
|
6006
6013
|
});
|
|
6007
|
-
var DTODesignTokenGroup =
|
|
6008
|
-
id:
|
|
6014
|
+
var DTODesignTokenGroup = z214.object({
|
|
6015
|
+
id: z214.string(),
|
|
6009
6016
|
tokenType: DesignTokenType,
|
|
6010
|
-
persistentId:
|
|
6011
|
-
isRoot:
|
|
6012
|
-
brandId:
|
|
6017
|
+
persistentId: z214.string(),
|
|
6018
|
+
isRoot: z214.boolean(),
|
|
6019
|
+
brandId: z214.string(),
|
|
6013
6020
|
meta: ObjectMeta,
|
|
6014
|
-
childrenIds:
|
|
6021
|
+
childrenIds: z214.string().array()
|
|
6015
6022
|
});
|
|
6016
|
-
var DTODesignTokenGroupListResponse =
|
|
6023
|
+
var DTODesignTokenGroupListResponse = z214.object({
|
|
6017
6024
|
groups: DTODesignTokenGroup.array()
|
|
6018
6025
|
});
|
|
6019
|
-
var DTODesignTokenGroupResponse =
|
|
6026
|
+
var DTODesignTokenGroupResponse = z214.object({
|
|
6020
6027
|
group: DTODesignTokenGroup
|
|
6021
6028
|
});
|
|
6022
6029
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6023
|
-
|
|
6024
|
-
persistentId:
|
|
6030
|
+
z214.object({
|
|
6031
|
+
persistentId: z214.string(),
|
|
6025
6032
|
meta: ObjectMeta,
|
|
6026
|
-
brandId:
|
|
6027
|
-
groupPersistentId:
|
|
6033
|
+
brandId: z214.string(),
|
|
6034
|
+
groupPersistentId: z214.string().optional()
|
|
6028
6035
|
})
|
|
6029
6036
|
);
|
|
6030
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6031
|
-
persistentId:
|
|
6037
|
+
var DTODesignTokenGroupCreatePayload = z214.object({
|
|
6038
|
+
persistentId: z214.string(),
|
|
6032
6039
|
meta: ObjectMeta,
|
|
6033
|
-
brandId:
|
|
6034
|
-
parentId:
|
|
6040
|
+
brandId: z214.string(),
|
|
6041
|
+
parentId: z214.string().optional(),
|
|
6035
6042
|
tokenType: DesignTokenType,
|
|
6036
|
-
childrenIds:
|
|
6043
|
+
childrenIds: z214.string().array()
|
|
6037
6044
|
});
|
|
6038
6045
|
|
|
6039
6046
|
// src/api/dto/documentation/anchor.ts
|
|
6040
|
-
import { z as
|
|
6047
|
+
import { z as z215 } from "zod";
|
|
6041
6048
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6042
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6043
|
-
anchors:
|
|
6049
|
+
var DTOGetDocumentationPageAnchorsResponse = z215.object({
|
|
6050
|
+
anchors: z215.array(DTODocumentationPageAnchor)
|
|
6044
6051
|
});
|
|
6045
6052
|
|
|
6046
6053
|
// src/api/dto/documentation/approvals.ts
|
|
6047
|
-
import { z as
|
|
6054
|
+
import { z as z216 } from "zod";
|
|
6048
6055
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
6049
|
-
var DTODocumentationGroupApprovalState =
|
|
6050
|
-
persistentId:
|
|
6051
|
-
groupId:
|
|
6052
|
-
designSystemVersionId:
|
|
6056
|
+
var DTODocumentationGroupApprovalState = z216.object({
|
|
6057
|
+
persistentId: z216.string(),
|
|
6058
|
+
groupId: z216.string(),
|
|
6059
|
+
designSystemVersionId: z216.string(),
|
|
6053
6060
|
approvalState: DocumentationPageApprovalState
|
|
6054
6061
|
});
|
|
6055
6062
|
|
|
@@ -6057,68 +6064,68 @@ var DTODocumentationGroupApprovalState = z215.object({
|
|
|
6057
6064
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6058
6065
|
|
|
6059
6066
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6060
|
-
import { z as
|
|
6067
|
+
import { z as z221 } from "zod";
|
|
6061
6068
|
|
|
6062
6069
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6063
|
-
import { z as
|
|
6070
|
+
import { z as z220 } from "zod";
|
|
6064
6071
|
|
|
6065
6072
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6066
|
-
import { z as
|
|
6073
|
+
import { z as z218 } from "zod";
|
|
6067
6074
|
|
|
6068
6075
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6069
|
-
import { z as
|
|
6076
|
+
import { z as z217 } from "zod";
|
|
6070
6077
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6071
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6072
|
-
showSidebar:
|
|
6073
|
-
isPrivate:
|
|
6074
|
-
isHidden:
|
|
6078
|
+
var DTODocumentationItemConfigurationV2 = z217.object({
|
|
6079
|
+
showSidebar: z217.boolean(),
|
|
6080
|
+
isPrivate: z217.boolean(),
|
|
6081
|
+
isHidden: z217.boolean(),
|
|
6075
6082
|
header: DTODocumentationItemHeaderV2
|
|
6076
6083
|
});
|
|
6077
6084
|
|
|
6078
6085
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6079
|
-
var DTODocumentationDraftChangeType =
|
|
6080
|
-
var DTODocumentationDraftStateCreated =
|
|
6081
|
-
changeType:
|
|
6082
|
-
});
|
|
6083
|
-
var DTODocumentationDraftStateUpdated =
|
|
6084
|
-
changeType:
|
|
6085
|
-
changes:
|
|
6086
|
-
previousTitle:
|
|
6086
|
+
var DTODocumentationDraftChangeType = z218.enum(["Created", "Updated", "Deleted"]);
|
|
6087
|
+
var DTODocumentationDraftStateCreated = z218.object({
|
|
6088
|
+
changeType: z218.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6089
|
+
});
|
|
6090
|
+
var DTODocumentationDraftStateUpdated = z218.object({
|
|
6091
|
+
changeType: z218.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6092
|
+
changes: z218.object({
|
|
6093
|
+
previousTitle: z218.string().optional(),
|
|
6087
6094
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6088
|
-
previousContentHash:
|
|
6095
|
+
previousContentHash: z218.string().optional()
|
|
6089
6096
|
})
|
|
6090
6097
|
});
|
|
6091
|
-
var DTODocumentationDraftStateDeleted =
|
|
6092
|
-
changeType:
|
|
6093
|
-
deletedAt:
|
|
6094
|
-
deletedByUserId:
|
|
6098
|
+
var DTODocumentationDraftStateDeleted = z218.object({
|
|
6099
|
+
changeType: z218.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6100
|
+
deletedAt: z218.coerce.date(),
|
|
6101
|
+
deletedByUserId: z218.string()
|
|
6095
6102
|
});
|
|
6096
|
-
var DTODocumentationDraftState =
|
|
6103
|
+
var DTODocumentationDraftState = z218.discriminatedUnion("changeType", [
|
|
6097
6104
|
DTODocumentationDraftStateCreated,
|
|
6098
6105
|
DTODocumentationDraftStateUpdated,
|
|
6099
6106
|
DTODocumentationDraftStateDeleted
|
|
6100
6107
|
]);
|
|
6101
6108
|
|
|
6102
6109
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6103
|
-
import { z as
|
|
6104
|
-
var DTODocumentationPublishMetadata =
|
|
6105
|
-
lastPublishedByUserId:
|
|
6106
|
-
lastPublishedAt:
|
|
6110
|
+
import { z as z219 } from "zod";
|
|
6111
|
+
var DTODocumentationPublishMetadata = z219.object({
|
|
6112
|
+
lastPublishedByUserId: z219.string(),
|
|
6113
|
+
lastPublishedAt: z219.coerce.date()
|
|
6107
6114
|
});
|
|
6108
6115
|
|
|
6109
6116
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6110
|
-
var DTODocumentationPageV2 =
|
|
6111
|
-
id:
|
|
6112
|
-
persistentId:
|
|
6113
|
-
designSystemVersionId:
|
|
6114
|
-
title:
|
|
6117
|
+
var DTODocumentationPageV2 = z220.object({
|
|
6118
|
+
id: z220.string(),
|
|
6119
|
+
persistentId: z220.string(),
|
|
6120
|
+
designSystemVersionId: z220.string(),
|
|
6121
|
+
title: z220.string(),
|
|
6115
6122
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6116
|
-
shortPersistentId:
|
|
6117
|
-
slug:
|
|
6118
|
-
userSlug:
|
|
6119
|
-
createdAt:
|
|
6120
|
-
updatedAt:
|
|
6121
|
-
path:
|
|
6123
|
+
shortPersistentId: z220.string(),
|
|
6124
|
+
slug: z220.string().optional(),
|
|
6125
|
+
userSlug: z220.string().optional(),
|
|
6126
|
+
createdAt: z220.coerce.date(),
|
|
6127
|
+
updatedAt: z220.coerce.date(),
|
|
6128
|
+
path: z220.string(),
|
|
6122
6129
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6123
6130
|
draftState: DTODocumentationDraftState.optional(),
|
|
6124
6131
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6126,215 +6133,215 @@ var DTODocumentationPageV2 = z219.object({
|
|
|
6126
6133
|
/** Defines the approval state of the documentation page */
|
|
6127
6134
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6128
6135
|
// Backward compatibility
|
|
6129
|
-
type:
|
|
6136
|
+
type: z220.literal("Page")
|
|
6130
6137
|
});
|
|
6131
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6138
|
+
var DTOCreateDocumentationPageInputV2 = z220.object({
|
|
6132
6139
|
// Identifier
|
|
6133
|
-
persistentId:
|
|
6140
|
+
persistentId: z220.string(),
|
|
6134
6141
|
// Page properties
|
|
6135
|
-
title:
|
|
6142
|
+
title: z220.string(),
|
|
6136
6143
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6137
6144
|
// Page placement properties
|
|
6138
|
-
parentPersistentId:
|
|
6139
|
-
afterPersistentId:
|
|
6145
|
+
parentPersistentId: z220.string(),
|
|
6146
|
+
afterPersistentId: z220.string().nullish()
|
|
6140
6147
|
});
|
|
6141
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6148
|
+
var DTOUpdateDocumentationPageInputV2 = z220.object({
|
|
6142
6149
|
// Identifier of the group to update
|
|
6143
|
-
id:
|
|
6150
|
+
id: z220.string(),
|
|
6144
6151
|
// Page properties
|
|
6145
|
-
title:
|
|
6152
|
+
title: z220.string().optional(),
|
|
6146
6153
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6147
6154
|
});
|
|
6148
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6155
|
+
var DTOMoveDocumentationPageInputV2 = z220.object({
|
|
6149
6156
|
// Identifier of the group to update
|
|
6150
|
-
id:
|
|
6157
|
+
id: z220.string(),
|
|
6151
6158
|
// Page placement properties
|
|
6152
|
-
parentPersistentId:
|
|
6153
|
-
afterPersistentId:
|
|
6159
|
+
parentPersistentId: z220.string(),
|
|
6160
|
+
afterPersistentId: z220.string().nullish()
|
|
6154
6161
|
});
|
|
6155
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6162
|
+
var DTODuplicateDocumentationPageInputV2 = z220.object({
|
|
6156
6163
|
// Identifier of the page to duplicate from
|
|
6157
|
-
id:
|
|
6164
|
+
id: z220.string(),
|
|
6158
6165
|
// New page persistent id
|
|
6159
|
-
persistentId:
|
|
6166
|
+
persistentId: z220.string(),
|
|
6160
6167
|
// Page placement properties
|
|
6161
|
-
parentPersistentId:
|
|
6162
|
-
afterPersistentId:
|
|
6168
|
+
parentPersistentId: z220.string(),
|
|
6169
|
+
afterPersistentId: z220.string().nullish()
|
|
6163
6170
|
});
|
|
6164
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6171
|
+
var DTODeleteDocumentationPageInputV2 = z220.object({
|
|
6165
6172
|
// Identifier
|
|
6166
|
-
id:
|
|
6173
|
+
id: z220.string()
|
|
6167
6174
|
});
|
|
6168
|
-
var DTORestoreDocumentationPageInput =
|
|
6169
|
-
persistentId:
|
|
6170
|
-
snapshotId:
|
|
6175
|
+
var DTORestoreDocumentationPageInput = z220.object({
|
|
6176
|
+
persistentId: z220.string(),
|
|
6177
|
+
snapshotId: z220.string().optional()
|
|
6171
6178
|
});
|
|
6172
|
-
var DTORestoreDocumentationGroupInput =
|
|
6173
|
-
persistentId:
|
|
6174
|
-
snapshotId:
|
|
6179
|
+
var DTORestoreDocumentationGroupInput = z220.object({
|
|
6180
|
+
persistentId: z220.string(),
|
|
6181
|
+
snapshotId: z220.string().optional()
|
|
6175
6182
|
});
|
|
6176
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6177
|
-
persistentId:
|
|
6183
|
+
var DTODocumentationPageApprovalStateChangeInput = z220.object({
|
|
6184
|
+
persistentId: z220.string(),
|
|
6178
6185
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6179
6186
|
});
|
|
6180
6187
|
|
|
6181
6188
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6182
|
-
var DTODocumentationPageSnapshot =
|
|
6183
|
-
id:
|
|
6184
|
-
designSystemVersionId:
|
|
6185
|
-
createdAt:
|
|
6186
|
-
updatedAt:
|
|
6189
|
+
var DTODocumentationPageSnapshot = z221.object({
|
|
6190
|
+
id: z221.string(),
|
|
6191
|
+
designSystemVersionId: z221.string(),
|
|
6192
|
+
createdAt: z221.string(),
|
|
6193
|
+
updatedAt: z221.string(),
|
|
6187
6194
|
documentationPage: DTODocumentationPageV2,
|
|
6188
|
-
pageContentHash:
|
|
6195
|
+
pageContentHash: z221.string(),
|
|
6189
6196
|
reason: DesignElementSnapshotReason
|
|
6190
6197
|
});
|
|
6191
6198
|
|
|
6192
6199
|
// src/api/dto/documentation/link-preview.ts
|
|
6193
|
-
import { z as
|
|
6194
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6200
|
+
import { z as z222 } from "zod";
|
|
6201
|
+
var DTODocumentationLinkPreviewResponse = z222.object({
|
|
6195
6202
|
linkPreview: DocumentationLinkPreview
|
|
6196
6203
|
});
|
|
6197
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6198
|
-
url:
|
|
6199
|
-
documentationItemPersistentId:
|
|
6204
|
+
var DTODocumentationLinkPreviewRequest = z222.object({
|
|
6205
|
+
url: z222.string().optional(),
|
|
6206
|
+
documentationItemPersistentId: z222.string().optional()
|
|
6200
6207
|
});
|
|
6201
6208
|
|
|
6202
6209
|
// src/api/dto/documentation/publish.ts
|
|
6203
|
-
import { z as
|
|
6210
|
+
import { z as z226 } from "zod";
|
|
6204
6211
|
|
|
6205
6212
|
// src/api/dto/export/exporter.ts
|
|
6206
|
-
import { z as
|
|
6207
|
-
var DTOExporterType =
|
|
6208
|
-
var DTOExporterSource =
|
|
6209
|
-
var DTOExporterMembershipRole =
|
|
6210
|
-
var DTOExporterListQuery =
|
|
6211
|
-
limit:
|
|
6212
|
-
});
|
|
6213
|
-
var DTOExporter =
|
|
6214
|
-
id:
|
|
6215
|
-
name:
|
|
6216
|
-
isPrivate:
|
|
6213
|
+
import { z as z223 } from "zod";
|
|
6214
|
+
var DTOExporterType = z223.enum(["documentation", "code"]);
|
|
6215
|
+
var DTOExporterSource = z223.enum(["git", "upload"]);
|
|
6216
|
+
var DTOExporterMembershipRole = z223.enum(["Owner", "OwnerArchived", "User"]);
|
|
6217
|
+
var DTOExporterListQuery = z223.object({
|
|
6218
|
+
limit: z223.coerce.number().optional()
|
|
6219
|
+
});
|
|
6220
|
+
var DTOExporter = z223.object({
|
|
6221
|
+
id: z223.string(),
|
|
6222
|
+
name: z223.string(),
|
|
6223
|
+
isPrivate: z223.boolean(),
|
|
6217
6224
|
exporterType: DTOExporterType,
|
|
6218
|
-
isDefaultDocumentationExporter:
|
|
6219
|
-
iconURL:
|
|
6225
|
+
isDefaultDocumentationExporter: z223.boolean(),
|
|
6226
|
+
iconURL: z223.string().optional(),
|
|
6220
6227
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6221
6228
|
customBlocks: PulsarCustomBlock.array(),
|
|
6222
|
-
blockVariants:
|
|
6223
|
-
usesBrands:
|
|
6224
|
-
usesThemes:
|
|
6229
|
+
blockVariants: z223.record(z223.string(), PulsarContributionVariant.array()),
|
|
6230
|
+
usesBrands: z223.boolean(),
|
|
6231
|
+
usesThemes: z223.boolean(),
|
|
6225
6232
|
source: DTOExporterSource,
|
|
6226
|
-
gitUrl: nullishToOptional(
|
|
6227
|
-
gitBranch: nullishToOptional(
|
|
6228
|
-
gitDirectory: nullishToOptional(
|
|
6233
|
+
gitUrl: nullishToOptional(z223.string()),
|
|
6234
|
+
gitBranch: nullishToOptional(z223.string()),
|
|
6235
|
+
gitDirectory: nullishToOptional(z223.string())
|
|
6229
6236
|
});
|
|
6230
|
-
var DTOExporterMembership =
|
|
6231
|
-
workspaceId:
|
|
6232
|
-
exporterId:
|
|
6237
|
+
var DTOExporterMembership = z223.object({
|
|
6238
|
+
workspaceId: z223.string(),
|
|
6239
|
+
exporterId: z223.string(),
|
|
6233
6240
|
role: DTOExporterMembershipRole
|
|
6234
6241
|
});
|
|
6235
|
-
var DTOExporterCreateOutput =
|
|
6242
|
+
var DTOExporterCreateOutput = z223.object({
|
|
6236
6243
|
exporter: DTOExporter,
|
|
6237
6244
|
membership: DTOExporterMembership
|
|
6238
6245
|
});
|
|
6239
|
-
var DTOExporterListResponse =
|
|
6246
|
+
var DTOExporterListResponse = z223.object({
|
|
6240
6247
|
exporters: DTOExporter.array(),
|
|
6241
6248
|
membership: DTOExporterMembership.array()
|
|
6242
6249
|
});
|
|
6243
|
-
var DTOExporterGitProviderEnum =
|
|
6244
|
-
var DTOExporterCreateInput =
|
|
6245
|
-
url:
|
|
6250
|
+
var DTOExporterGitProviderEnum = z223.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6251
|
+
var DTOExporterCreateInput = z223.object({
|
|
6252
|
+
url: z223.string(),
|
|
6246
6253
|
provider: DTOExporterGitProviderEnum
|
|
6247
6254
|
});
|
|
6248
|
-
var DTOExporterUpdateInput =
|
|
6249
|
-
url:
|
|
6255
|
+
var DTOExporterUpdateInput = z223.object({
|
|
6256
|
+
url: z223.string().optional()
|
|
6250
6257
|
});
|
|
6251
6258
|
|
|
6252
6259
|
// src/api/dto/export/filter.ts
|
|
6253
6260
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6254
6261
|
|
|
6255
6262
|
// src/api/dto/export/job.ts
|
|
6256
|
-
import { z as
|
|
6257
|
-
var DTOExportJobCreatedBy =
|
|
6258
|
-
userId:
|
|
6259
|
-
userName:
|
|
6263
|
+
import { z as z224 } from "zod";
|
|
6264
|
+
var DTOExportJobCreatedBy = z224.object({
|
|
6265
|
+
userId: z224.string(),
|
|
6266
|
+
userName: z224.string()
|
|
6260
6267
|
});
|
|
6261
|
-
var DTOExportJobDesignSystemPreview =
|
|
6262
|
-
id:
|
|
6268
|
+
var DTOExportJobDesignSystemPreview = z224.object({
|
|
6269
|
+
id: z224.string(),
|
|
6263
6270
|
meta: ObjectMeta
|
|
6264
6271
|
});
|
|
6265
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6266
|
-
id:
|
|
6272
|
+
var DTOExportJobDesignSystemVersionPreview = z224.object({
|
|
6273
|
+
id: z224.string(),
|
|
6267
6274
|
meta: ObjectMeta,
|
|
6268
|
-
version:
|
|
6269
|
-
isReadonly:
|
|
6275
|
+
version: z224.string(),
|
|
6276
|
+
isReadonly: z224.boolean()
|
|
6270
6277
|
});
|
|
6271
|
-
var DTOExportJobDestinations =
|
|
6278
|
+
var DTOExportJobDestinations = z224.object({
|
|
6272
6279
|
s3: ExporterDestinationS3.optional(),
|
|
6273
6280
|
azure: ExporterDestinationAzure.optional(),
|
|
6274
6281
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6275
6282
|
github: ExporterDestinationGithub.optional(),
|
|
6276
6283
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6277
6284
|
documentation: ExporterDestinationDocs.optional(),
|
|
6278
|
-
webhookUrl:
|
|
6285
|
+
webhookUrl: z224.string().optional()
|
|
6279
6286
|
});
|
|
6280
6287
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6281
6288
|
sndocs: true
|
|
6282
6289
|
}).extend({
|
|
6283
6290
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6284
6291
|
});
|
|
6285
|
-
var DTOExportJob =
|
|
6286
|
-
id:
|
|
6287
|
-
createdAt:
|
|
6288
|
-
finishedAt:
|
|
6289
|
-
index:
|
|
6292
|
+
var DTOExportJob = z224.object({
|
|
6293
|
+
id: z224.string(),
|
|
6294
|
+
createdAt: z224.coerce.date(),
|
|
6295
|
+
finishedAt: z224.coerce.date().optional(),
|
|
6296
|
+
index: z224.number().optional(),
|
|
6290
6297
|
status: ExportJobStatus,
|
|
6291
|
-
estimatedExecutionTime:
|
|
6298
|
+
estimatedExecutionTime: z224.number().optional(),
|
|
6292
6299
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6293
6300
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6294
6301
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6295
6302
|
destinations: DTOExportJobDestinations,
|
|
6296
|
-
exporterId:
|
|
6297
|
-
scheduleId:
|
|
6303
|
+
exporterId: z224.string(),
|
|
6304
|
+
scheduleId: z224.string().optional(),
|
|
6298
6305
|
result: DTOExportJobResult.optional(),
|
|
6299
|
-
brandPersistentId:
|
|
6300
|
-
themePersistentId:
|
|
6301
|
-
themePersistentIds:
|
|
6306
|
+
brandPersistentId: z224.string().optional(),
|
|
6307
|
+
themePersistentId: z224.string().optional(),
|
|
6308
|
+
themePersistentIds: z224.string().array().optional()
|
|
6302
6309
|
});
|
|
6303
|
-
var DTOExportJobResponse =
|
|
6310
|
+
var DTOExportJobResponse = z224.object({
|
|
6304
6311
|
job: DTOExportJob
|
|
6305
6312
|
});
|
|
6306
6313
|
|
|
6307
6314
|
// src/api/dto/export/pipeline.ts
|
|
6308
|
-
import { z as
|
|
6309
|
-
var DTOPipelineListQuery =
|
|
6310
|
-
designSystemId:
|
|
6311
|
-
exporterId:
|
|
6312
|
-
latestJobsLimit:
|
|
6313
|
-
});
|
|
6314
|
-
var DTOPipeline =
|
|
6315
|
-
id:
|
|
6316
|
-
name:
|
|
6315
|
+
import { z as z225 } from "zod";
|
|
6316
|
+
var DTOPipelineListQuery = z225.object({
|
|
6317
|
+
designSystemId: z225.string().optional(),
|
|
6318
|
+
exporterId: z225.string().optional(),
|
|
6319
|
+
latestJobsLimit: z225.coerce.number().optional()
|
|
6320
|
+
});
|
|
6321
|
+
var DTOPipeline = z225.object({
|
|
6322
|
+
id: z225.string(),
|
|
6323
|
+
name: z225.string(),
|
|
6317
6324
|
eventType: PipelineEventType,
|
|
6318
|
-
isEnabled:
|
|
6319
|
-
workspaceId:
|
|
6320
|
-
designSystemId:
|
|
6321
|
-
exporterId:
|
|
6322
|
-
brandPersistentId:
|
|
6323
|
-
themePersistentId:
|
|
6324
|
-
themePersistentIds:
|
|
6325
|
+
isEnabled: z225.boolean(),
|
|
6326
|
+
workspaceId: z225.string(),
|
|
6327
|
+
designSystemId: z225.string(),
|
|
6328
|
+
exporterId: z225.string(),
|
|
6329
|
+
brandPersistentId: z225.string().optional(),
|
|
6330
|
+
themePersistentId: z225.string().optional(),
|
|
6331
|
+
themePersistentIds: z225.string().array().optional(),
|
|
6325
6332
|
...ExportDestinationsMap.shape,
|
|
6326
6333
|
latestJobs: DTOExportJob.array()
|
|
6327
6334
|
});
|
|
6328
|
-
var DTOPipelineListResponse =
|
|
6335
|
+
var DTOPipelineListResponse = z225.object({
|
|
6329
6336
|
pipelines: DTOPipeline.array()
|
|
6330
6337
|
});
|
|
6331
|
-
var DTOPipelineResponse =
|
|
6338
|
+
var DTOPipelineResponse = z225.object({
|
|
6332
6339
|
pipeline: DTOPipeline
|
|
6333
6340
|
});
|
|
6334
6341
|
|
|
6335
6342
|
// src/api/dto/documentation/publish.ts
|
|
6336
6343
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6337
|
-
var DTOPublishDocumentationRequest =
|
|
6344
|
+
var DTOPublishDocumentationRequest = z226.object({
|
|
6338
6345
|
environment: PublishedDocEnvironment,
|
|
6339
6346
|
/**
|
|
6340
6347
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6342,42 +6349,42 @@ var DTOPublishDocumentationRequest = z225.object({
|
|
|
6342
6349
|
*/
|
|
6343
6350
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6344
6351
|
});
|
|
6345
|
-
var DTOPublishDocumentationResponse =
|
|
6352
|
+
var DTOPublishDocumentationResponse = z226.object({
|
|
6346
6353
|
job: DTOExportJob
|
|
6347
6354
|
});
|
|
6348
6355
|
|
|
6349
6356
|
// src/api/dto/elements/components/figma-component.ts
|
|
6350
|
-
import { z as
|
|
6357
|
+
import { z as z227 } from "zod";
|
|
6351
6358
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6352
|
-
var DTOFigmaComponentPropertyMap =
|
|
6353
|
-
var DTOFigmaComponent =
|
|
6354
|
-
id:
|
|
6355
|
-
persistentId:
|
|
6356
|
-
designSystemVersionId:
|
|
6357
|
-
brandId:
|
|
6358
|
-
thumbnailUrl:
|
|
6359
|
-
svgUrl:
|
|
6360
|
-
exportProperties:
|
|
6361
|
-
isAsset:
|
|
6359
|
+
var DTOFigmaComponentPropertyMap = z227.record(DTOFigmaComponentProperty);
|
|
6360
|
+
var DTOFigmaComponent = z227.object({
|
|
6361
|
+
id: z227.string(),
|
|
6362
|
+
persistentId: z227.string(),
|
|
6363
|
+
designSystemVersionId: z227.string(),
|
|
6364
|
+
brandId: z227.string(),
|
|
6365
|
+
thumbnailUrl: z227.string().optional(),
|
|
6366
|
+
svgUrl: z227.string().optional(),
|
|
6367
|
+
exportProperties: z227.object({
|
|
6368
|
+
isAsset: z227.boolean()
|
|
6362
6369
|
}),
|
|
6363
|
-
createdAt:
|
|
6364
|
-
updatedAt:
|
|
6370
|
+
createdAt: z227.coerce.date(),
|
|
6371
|
+
updatedAt: z227.coerce.date(),
|
|
6365
6372
|
meta: ObjectMeta,
|
|
6366
6373
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6367
|
-
parentComponentPersistentId:
|
|
6368
|
-
childrenPersistentIds:
|
|
6374
|
+
parentComponentPersistentId: z227.string().optional(),
|
|
6375
|
+
childrenPersistentIds: z227.string().array().optional(),
|
|
6369
6376
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6370
|
-
variantPropertyValues:
|
|
6377
|
+
variantPropertyValues: z227.record(z227.string()).optional()
|
|
6371
6378
|
});
|
|
6372
|
-
var DTOFigmaComponentListResponse =
|
|
6379
|
+
var DTOFigmaComponentListResponse = z227.object({
|
|
6373
6380
|
components: DTOFigmaComponent.array()
|
|
6374
6381
|
});
|
|
6375
6382
|
|
|
6376
6383
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6377
|
-
import { z as
|
|
6384
|
+
import { z as z229 } from "zod";
|
|
6378
6385
|
|
|
6379
6386
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6380
|
-
import { z as
|
|
6387
|
+
import { z as z228 } from "zod";
|
|
6381
6388
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6382
6389
|
sortOrder: true,
|
|
6383
6390
|
parentPersistentId: true,
|
|
@@ -6387,13 +6394,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6387
6394
|
data: true,
|
|
6388
6395
|
shortPersistentId: true
|
|
6389
6396
|
}).extend({
|
|
6390
|
-
title:
|
|
6391
|
-
isRoot:
|
|
6392
|
-
childrenIds:
|
|
6397
|
+
title: z228.string(),
|
|
6398
|
+
isRoot: z228.boolean(),
|
|
6399
|
+
childrenIds: z228.array(z228.string()),
|
|
6393
6400
|
groupBehavior: DocumentationGroupBehavior,
|
|
6394
|
-
shortPersistentId:
|
|
6401
|
+
shortPersistentId: z228.string(),
|
|
6395
6402
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6396
|
-
type:
|
|
6403
|
+
type: z228.literal("Group"),
|
|
6397
6404
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6398
6405
|
draftState: DTODocumentationDraftState.optional(),
|
|
6399
6406
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6401,127 +6408,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6401
6408
|
//** An approval state for frontend to utilize. */
|
|
6402
6409
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6403
6410
|
});
|
|
6404
|
-
var DTOCreateDocumentationGroupInput =
|
|
6411
|
+
var DTOCreateDocumentationGroupInput = z228.object({
|
|
6405
6412
|
// Identifier
|
|
6406
|
-
persistentId:
|
|
6413
|
+
persistentId: z228.string(),
|
|
6407
6414
|
// Group properties
|
|
6408
|
-
title:
|
|
6415
|
+
title: z228.string(),
|
|
6409
6416
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6410
6417
|
// Group placement properties
|
|
6411
|
-
afterPersistentId:
|
|
6412
|
-
parentPersistentId:
|
|
6418
|
+
afterPersistentId: z228.string().nullish(),
|
|
6419
|
+
parentPersistentId: z228.string()
|
|
6413
6420
|
});
|
|
6414
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6421
|
+
var DTOUpdateDocumentationGroupInput = z228.object({
|
|
6415
6422
|
// Identifier of the group to update
|
|
6416
|
-
id:
|
|
6423
|
+
id: z228.string(),
|
|
6417
6424
|
// Group properties
|
|
6418
|
-
title:
|
|
6425
|
+
title: z228.string().optional(),
|
|
6419
6426
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6420
6427
|
});
|
|
6421
|
-
var DTOMoveDocumentationGroupInput =
|
|
6428
|
+
var DTOMoveDocumentationGroupInput = z228.object({
|
|
6422
6429
|
// Identifier of the group to update
|
|
6423
|
-
id:
|
|
6430
|
+
id: z228.string(),
|
|
6424
6431
|
// Group placement properties
|
|
6425
|
-
parentPersistentId:
|
|
6426
|
-
afterPersistentId:
|
|
6432
|
+
parentPersistentId: z228.string(),
|
|
6433
|
+
afterPersistentId: z228.string().nullish()
|
|
6427
6434
|
});
|
|
6428
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6435
|
+
var DTODuplicateDocumentationGroupInput = z228.object({
|
|
6429
6436
|
// Identifier of the group to duplicate from
|
|
6430
|
-
id:
|
|
6437
|
+
id: z228.string(),
|
|
6431
6438
|
// New group persistent id
|
|
6432
|
-
persistentId:
|
|
6439
|
+
persistentId: z228.string(),
|
|
6433
6440
|
// Group placement properties
|
|
6434
|
-
afterPersistentId:
|
|
6435
|
-
parentPersistentId:
|
|
6441
|
+
afterPersistentId: z228.string().nullish(),
|
|
6442
|
+
parentPersistentId: z228.string()
|
|
6436
6443
|
});
|
|
6437
|
-
var DTOCreateDocumentationTabInput =
|
|
6444
|
+
var DTOCreateDocumentationTabInput = z228.object({
|
|
6438
6445
|
// New group persistent id
|
|
6439
|
-
persistentId:
|
|
6446
|
+
persistentId: z228.string(),
|
|
6440
6447
|
// If this is page, we will attempt to convert it to tab
|
|
6441
6448
|
// If this is tab group, we will add a new tab to it
|
|
6442
|
-
fromItemPersistentId:
|
|
6443
|
-
tabName:
|
|
6449
|
+
fromItemPersistentId: z228.string(),
|
|
6450
|
+
tabName: z228.string()
|
|
6444
6451
|
});
|
|
6445
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6452
|
+
var DTODeleteDocumentationTabGroupInput = z228.object({
|
|
6446
6453
|
// Deleted group id
|
|
6447
|
-
id:
|
|
6454
|
+
id: z228.string()
|
|
6448
6455
|
});
|
|
6449
|
-
var DTODeleteDocumentationGroupInput =
|
|
6456
|
+
var DTODeleteDocumentationGroupInput = z228.object({
|
|
6450
6457
|
// Identifier
|
|
6451
|
-
id:
|
|
6458
|
+
id: z228.string(),
|
|
6452
6459
|
// Deletion options
|
|
6453
|
-
deleteSubtree:
|
|
6460
|
+
deleteSubtree: z228.boolean().default(false)
|
|
6454
6461
|
});
|
|
6455
6462
|
|
|
6456
6463
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6457
|
-
var SuccessPayload =
|
|
6458
|
-
success:
|
|
6464
|
+
var SuccessPayload = z229.object({
|
|
6465
|
+
success: z229.literal(true)
|
|
6459
6466
|
});
|
|
6460
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6461
|
-
type:
|
|
6467
|
+
var DTODocumentationGroupCreateActionOutputV2 = z229.object({
|
|
6468
|
+
type: z229.literal("DocumentationGroupCreate"),
|
|
6462
6469
|
output: SuccessPayload
|
|
6463
6470
|
});
|
|
6464
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6465
|
-
type:
|
|
6471
|
+
var DTODocumentationTabCreateActionOutputV2 = z229.object({
|
|
6472
|
+
type: z229.literal("DocumentationTabCreate"),
|
|
6466
6473
|
output: SuccessPayload
|
|
6467
6474
|
});
|
|
6468
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6469
|
-
type:
|
|
6475
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z229.object({
|
|
6476
|
+
type: z229.literal("DocumentationGroupUpdate"),
|
|
6470
6477
|
output: SuccessPayload
|
|
6471
6478
|
});
|
|
6472
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6473
|
-
type:
|
|
6479
|
+
var DTODocumentationGroupMoveActionOutputV2 = z229.object({
|
|
6480
|
+
type: z229.literal("DocumentationGroupMove"),
|
|
6474
6481
|
output: SuccessPayload
|
|
6475
6482
|
});
|
|
6476
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6477
|
-
type:
|
|
6483
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z229.object({
|
|
6484
|
+
type: z229.literal("DocumentationGroupDuplicate"),
|
|
6478
6485
|
output: SuccessPayload
|
|
6479
6486
|
});
|
|
6480
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6481
|
-
type:
|
|
6487
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z229.object({
|
|
6488
|
+
type: z229.literal("DocumentationGroupDelete"),
|
|
6482
6489
|
output: SuccessPayload
|
|
6483
6490
|
});
|
|
6484
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6485
|
-
type:
|
|
6491
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z229.object({
|
|
6492
|
+
type: z229.literal("DocumentationTabGroupDelete"),
|
|
6486
6493
|
output: SuccessPayload
|
|
6487
6494
|
});
|
|
6488
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6489
|
-
type:
|
|
6495
|
+
var DTODocumentationGroupCreateActionInputV2 = z229.object({
|
|
6496
|
+
type: z229.literal("DocumentationGroupCreate"),
|
|
6490
6497
|
input: DTOCreateDocumentationGroupInput
|
|
6491
6498
|
});
|
|
6492
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6493
|
-
type:
|
|
6499
|
+
var DTODocumentationTabCreateActionInputV2 = z229.object({
|
|
6500
|
+
type: z229.literal("DocumentationTabCreate"),
|
|
6494
6501
|
input: DTOCreateDocumentationTabInput
|
|
6495
6502
|
});
|
|
6496
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6497
|
-
type:
|
|
6503
|
+
var DTODocumentationGroupUpdateActionInputV2 = z229.object({
|
|
6504
|
+
type: z229.literal("DocumentationGroupUpdate"),
|
|
6498
6505
|
input: DTOUpdateDocumentationGroupInput
|
|
6499
6506
|
});
|
|
6500
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6501
|
-
type:
|
|
6507
|
+
var DTODocumentationGroupMoveActionInputV2 = z229.object({
|
|
6508
|
+
type: z229.literal("DocumentationGroupMove"),
|
|
6502
6509
|
input: DTOMoveDocumentationGroupInput
|
|
6503
6510
|
});
|
|
6504
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6505
|
-
type:
|
|
6511
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z229.object({
|
|
6512
|
+
type: z229.literal("DocumentationGroupDuplicate"),
|
|
6506
6513
|
input: DTODuplicateDocumentationGroupInput
|
|
6507
6514
|
});
|
|
6508
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6509
|
-
type:
|
|
6515
|
+
var DTODocumentationGroupDeleteActionInputV2 = z229.object({
|
|
6516
|
+
type: z229.literal("DocumentationGroupDelete"),
|
|
6510
6517
|
input: DTODeleteDocumentationGroupInput
|
|
6511
6518
|
});
|
|
6512
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6513
|
-
type:
|
|
6519
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z229.object({
|
|
6520
|
+
type: z229.literal("DocumentationTabGroupDelete"),
|
|
6514
6521
|
input: DTODeleteDocumentationTabGroupInput
|
|
6515
6522
|
});
|
|
6516
6523
|
|
|
6517
6524
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6518
|
-
import { z as
|
|
6525
|
+
import { z as z231 } from "zod";
|
|
6519
6526
|
|
|
6520
6527
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6521
|
-
import { z as
|
|
6522
|
-
var DocumentationColorV1 =
|
|
6523
|
-
aliasTo:
|
|
6524
|
-
value:
|
|
6528
|
+
import { z as z230 } from "zod";
|
|
6529
|
+
var DocumentationColorV1 = z230.object({
|
|
6530
|
+
aliasTo: z230.string().optional(),
|
|
6531
|
+
value: z230.string().optional()
|
|
6525
6532
|
});
|
|
6526
6533
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6527
6534
|
foregroundColor: true,
|
|
@@ -6530,10 +6537,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6530
6537
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6531
6538
|
backgroundColor: DocumentationColorV1.optional()
|
|
6532
6539
|
});
|
|
6533
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6534
|
-
showSidebar:
|
|
6535
|
-
isPrivate:
|
|
6536
|
-
isHidden:
|
|
6540
|
+
var DTODocumentationItemConfigurationV1 = z230.object({
|
|
6541
|
+
showSidebar: z230.boolean(),
|
|
6542
|
+
isPrivate: z230.boolean(),
|
|
6543
|
+
isHidden: z230.boolean(),
|
|
6537
6544
|
header: DTODocumentationItemHeaderV1
|
|
6538
6545
|
});
|
|
6539
6546
|
|
|
@@ -6547,27 +6554,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6547
6554
|
data: true,
|
|
6548
6555
|
shortPersistentId: true
|
|
6549
6556
|
}).extend({
|
|
6550
|
-
title:
|
|
6551
|
-
isRoot:
|
|
6552
|
-
childrenIds:
|
|
6557
|
+
title: z231.string(),
|
|
6558
|
+
isRoot: z231.boolean(),
|
|
6559
|
+
childrenIds: z231.array(z231.string()),
|
|
6553
6560
|
groupBehavior: DocumentationGroupBehavior,
|
|
6554
|
-
shortPersistentId:
|
|
6555
|
-
type:
|
|
6561
|
+
shortPersistentId: z231.string(),
|
|
6562
|
+
type: z231.literal("Group")
|
|
6556
6563
|
});
|
|
6557
6564
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6558
6565
|
configuration: DTODocumentationItemConfigurationV1
|
|
6559
6566
|
});
|
|
6560
6567
|
|
|
6561
6568
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6562
|
-
import { z as
|
|
6563
|
-
var DTODocumentationHierarchyV2 =
|
|
6564
|
-
pages:
|
|
6569
|
+
import { z as z232 } from "zod";
|
|
6570
|
+
var DTODocumentationHierarchyV2 = z232.object({
|
|
6571
|
+
pages: z232.array(
|
|
6565
6572
|
DTODocumentationPageV2.extend({
|
|
6566
6573
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6567
6574
|
draftState: DTODocumentationDraftState.optional()
|
|
6568
6575
|
})
|
|
6569
6576
|
),
|
|
6570
|
-
groups:
|
|
6577
|
+
groups: z232.array(
|
|
6571
6578
|
DTODocumentationGroupV2.extend({
|
|
6572
6579
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6573
6580
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6576,84 +6583,84 @@ var DTODocumentationHierarchyV2 = z231.object({
|
|
|
6576
6583
|
});
|
|
6577
6584
|
|
|
6578
6585
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6579
|
-
import { z as
|
|
6580
|
-
var SuccessPayload2 =
|
|
6581
|
-
success:
|
|
6586
|
+
import { z as z233 } from "zod";
|
|
6587
|
+
var SuccessPayload2 = z233.object({
|
|
6588
|
+
success: z233.literal(true)
|
|
6582
6589
|
});
|
|
6583
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6584
|
-
type:
|
|
6590
|
+
var DTODocumentationPageCreateActionOutputV2 = z233.object({
|
|
6591
|
+
type: z233.literal("DocumentationPageCreate"),
|
|
6585
6592
|
output: SuccessPayload2
|
|
6586
6593
|
});
|
|
6587
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6588
|
-
type:
|
|
6594
|
+
var DTODocumentationPageUpdateActionOutputV2 = z233.object({
|
|
6595
|
+
type: z233.literal("DocumentationPageUpdate"),
|
|
6589
6596
|
output: SuccessPayload2
|
|
6590
6597
|
});
|
|
6591
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6592
|
-
type:
|
|
6598
|
+
var DTODocumentationPageMoveActionOutputV2 = z233.object({
|
|
6599
|
+
type: z233.literal("DocumentationPageMove"),
|
|
6593
6600
|
output: SuccessPayload2
|
|
6594
6601
|
});
|
|
6595
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6596
|
-
type:
|
|
6602
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z233.object({
|
|
6603
|
+
type: z233.literal("DocumentationPageDuplicate"),
|
|
6597
6604
|
output: SuccessPayload2
|
|
6598
6605
|
});
|
|
6599
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6600
|
-
type:
|
|
6606
|
+
var DTODocumentationPageDeleteActionOutputV2 = z233.object({
|
|
6607
|
+
type: z233.literal("DocumentationPageDelete"),
|
|
6601
6608
|
output: SuccessPayload2
|
|
6602
6609
|
});
|
|
6603
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6604
|
-
type:
|
|
6610
|
+
var DTODocumentationPageRestoreActionOutput = z233.object({
|
|
6611
|
+
type: z233.literal("DocumentationPageRestore"),
|
|
6605
6612
|
output: SuccessPayload2
|
|
6606
6613
|
});
|
|
6607
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6608
|
-
type:
|
|
6614
|
+
var DTODocumentationGroupRestoreActionOutput = z233.object({
|
|
6615
|
+
type: z233.literal("DocumentationGroupRestore"),
|
|
6609
6616
|
output: SuccessPayload2
|
|
6610
6617
|
});
|
|
6611
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6612
|
-
type:
|
|
6618
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z233.object({
|
|
6619
|
+
type: z233.literal("DocumentationPageApprovalStateChange"),
|
|
6613
6620
|
output: SuccessPayload2
|
|
6614
6621
|
});
|
|
6615
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6616
|
-
type:
|
|
6622
|
+
var DTODocumentationPageCreateActionInputV2 = z233.object({
|
|
6623
|
+
type: z233.literal("DocumentationPageCreate"),
|
|
6617
6624
|
input: DTOCreateDocumentationPageInputV2
|
|
6618
6625
|
});
|
|
6619
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6620
|
-
type:
|
|
6626
|
+
var DTODocumentationPageUpdateActionInputV2 = z233.object({
|
|
6627
|
+
type: z233.literal("DocumentationPageUpdate"),
|
|
6621
6628
|
input: DTOUpdateDocumentationPageInputV2
|
|
6622
6629
|
});
|
|
6623
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6624
|
-
type:
|
|
6630
|
+
var DTODocumentationPageMoveActionInputV2 = z233.object({
|
|
6631
|
+
type: z233.literal("DocumentationPageMove"),
|
|
6625
6632
|
input: DTOMoveDocumentationPageInputV2
|
|
6626
6633
|
});
|
|
6627
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6628
|
-
type:
|
|
6634
|
+
var DTODocumentationPageDuplicateActionInputV2 = z233.object({
|
|
6635
|
+
type: z233.literal("DocumentationPageDuplicate"),
|
|
6629
6636
|
input: DTODuplicateDocumentationPageInputV2
|
|
6630
6637
|
});
|
|
6631
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6632
|
-
type:
|
|
6638
|
+
var DTODocumentationPageDeleteActionInputV2 = z233.object({
|
|
6639
|
+
type: z233.literal("DocumentationPageDelete"),
|
|
6633
6640
|
input: DTODeleteDocumentationPageInputV2
|
|
6634
6641
|
});
|
|
6635
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6636
|
-
type:
|
|
6642
|
+
var DTODocumentationPageRestoreActionInput = z233.object({
|
|
6643
|
+
type: z233.literal("DocumentationPageRestore"),
|
|
6637
6644
|
input: DTORestoreDocumentationPageInput
|
|
6638
6645
|
});
|
|
6639
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6640
|
-
type:
|
|
6646
|
+
var DTODocumentationGroupRestoreActionInput = z233.object({
|
|
6647
|
+
type: z233.literal("DocumentationGroupRestore"),
|
|
6641
6648
|
input: DTORestoreDocumentationGroupInput
|
|
6642
6649
|
});
|
|
6643
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6644
|
-
type:
|
|
6650
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z233.object({
|
|
6651
|
+
type: z233.literal("DocumentationPageApprovalStateChange"),
|
|
6645
6652
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6646
6653
|
});
|
|
6647
6654
|
|
|
6648
6655
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6649
|
-
import { z as
|
|
6656
|
+
import { z as z234 } from "zod";
|
|
6650
6657
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6651
|
-
var DTODocumentationPageContentGetResponse =
|
|
6658
|
+
var DTODocumentationPageContentGetResponse = z234.object({
|
|
6652
6659
|
pageContent: DTODocumentationPageContent
|
|
6653
6660
|
});
|
|
6654
6661
|
|
|
6655
6662
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6656
|
-
import { z as
|
|
6663
|
+
import { z as z235 } from "zod";
|
|
6657
6664
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6658
6665
|
data: true,
|
|
6659
6666
|
meta: true,
|
|
@@ -6661,32 +6668,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6661
6668
|
sortOrder: true
|
|
6662
6669
|
}).extend({
|
|
6663
6670
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6664
|
-
blocks:
|
|
6665
|
-
title:
|
|
6666
|
-
path:
|
|
6671
|
+
blocks: z235.array(PageBlockV1),
|
|
6672
|
+
title: z235.string(),
|
|
6673
|
+
path: z235.string()
|
|
6667
6674
|
});
|
|
6668
6675
|
|
|
6669
6676
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6670
|
-
import { z as
|
|
6677
|
+
import { z as z236 } from "zod";
|
|
6671
6678
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6672
|
-
var DTOFigmaNodeOrigin =
|
|
6673
|
-
sourceId:
|
|
6674
|
-
fileId:
|
|
6675
|
-
parentName:
|
|
6679
|
+
var DTOFigmaNodeOrigin = z236.object({
|
|
6680
|
+
sourceId: z236.string(),
|
|
6681
|
+
fileId: z236.string().optional(),
|
|
6682
|
+
parentName: z236.string().optional()
|
|
6676
6683
|
});
|
|
6677
|
-
var DTOFigmaNodeData =
|
|
6684
|
+
var DTOFigmaNodeData = z236.object({
|
|
6678
6685
|
// Id of the node in the Figma file
|
|
6679
|
-
figmaNodeId:
|
|
6686
|
+
figmaNodeId: z236.string(),
|
|
6680
6687
|
// Validity
|
|
6681
|
-
isValid:
|
|
6688
|
+
isValid: z236.boolean(),
|
|
6682
6689
|
// Asset data
|
|
6683
|
-
assetId:
|
|
6684
|
-
assetUrl:
|
|
6690
|
+
assetId: z236.string(),
|
|
6691
|
+
assetUrl: z236.string(),
|
|
6685
6692
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6686
6693
|
// Asset metadata
|
|
6687
|
-
assetScale:
|
|
6688
|
-
assetWidth:
|
|
6689
|
-
assetHeight:
|
|
6694
|
+
assetScale: z236.number(),
|
|
6695
|
+
assetWidth: z236.number().optional(),
|
|
6696
|
+
assetHeight: z236.number().optional()
|
|
6690
6697
|
});
|
|
6691
6698
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6692
6699
|
data: true,
|
|
@@ -6695,15 +6702,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6695
6702
|
data: DTOFigmaNodeData,
|
|
6696
6703
|
origin: DTOFigmaNodeOrigin
|
|
6697
6704
|
});
|
|
6698
|
-
var DTOFigmaNodeRenderInput =
|
|
6705
|
+
var DTOFigmaNodeRenderInput = z236.object({
|
|
6699
6706
|
/**
|
|
6700
6707
|
* Id of a design system's data source representing a linked Figma file
|
|
6701
6708
|
*/
|
|
6702
|
-
sourceId:
|
|
6709
|
+
sourceId: z236.string(),
|
|
6703
6710
|
/**
|
|
6704
6711
|
* Id of a node within the Figma file
|
|
6705
6712
|
*/
|
|
6706
|
-
figmaFileNodeId:
|
|
6713
|
+
figmaFileNodeId: z236.string(),
|
|
6707
6714
|
/**
|
|
6708
6715
|
* Format in which the node must be rendered, png by default.
|
|
6709
6716
|
*/
|
|
@@ -6711,27 +6718,18 @@ var DTOFigmaNodeRenderInput = z235.object({
|
|
|
6711
6718
|
});
|
|
6712
6719
|
|
|
6713
6720
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6714
|
-
import { z as
|
|
6715
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6716
|
-
type:
|
|
6717
|
-
figmaNodes:
|
|
6721
|
+
import { z as z237 } from "zod";
|
|
6722
|
+
var DTOFigmaNodeRenderActionOutput = z237.object({
|
|
6723
|
+
type: z237.literal("FigmaNodeRender"),
|
|
6724
|
+
figmaNodes: z237.array(DTOFigmaNode)
|
|
6718
6725
|
});
|
|
6719
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6720
|
-
type:
|
|
6726
|
+
var DTOFigmaNodeRenderActionInput = z237.object({
|
|
6727
|
+
type: z237.literal("FigmaNodeRender"),
|
|
6721
6728
|
input: DTOFigmaNodeRenderInput.array()
|
|
6722
6729
|
});
|
|
6723
6730
|
|
|
6724
6731
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6725
6732
|
import { z as z238 } from "zod";
|
|
6726
|
-
|
|
6727
|
-
// src/api/dto/aux/meta.ts
|
|
6728
|
-
import { z as z237 } from "zod";
|
|
6729
|
-
var DTOObjectMeta = z237.object({
|
|
6730
|
-
name: z237.string().max(512),
|
|
6731
|
-
description: z237.string().max(2048).optional()
|
|
6732
|
-
});
|
|
6733
|
-
|
|
6734
|
-
// src/api/dto/elements/properties/property-definitions.ts
|
|
6735
6733
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6736
6734
|
var DTOElementPropertyDefinitionOption = z238.object({
|
|
6737
6735
|
id: z238.string(),
|
|
@@ -7211,6 +7209,18 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7211
7209
|
list(dsId) {
|
|
7212
7210
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
7213
7211
|
}
|
|
7212
|
+
commit(dsId, body) {
|
|
7213
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/head/commit`, DTODesignSystemVersionCreationResponse, {
|
|
7214
|
+
method: "POST",
|
|
7215
|
+
body
|
|
7216
|
+
});
|
|
7217
|
+
}
|
|
7218
|
+
job(dsId, jobId) {
|
|
7219
|
+
return this.requestExecutor.json(
|
|
7220
|
+
`/design-systems/${dsId}/versions/jobs/${jobId}`,
|
|
7221
|
+
DTODesignSystemVersionJobStatusResponse
|
|
7222
|
+
);
|
|
7223
|
+
}
|
|
7214
7224
|
};
|
|
7215
7225
|
|
|
7216
7226
|
// src/api/endpoints/design-system/bff.ts
|
|
@@ -12648,6 +12658,7 @@ export {
|
|
|
12648
12658
|
DTOMoveDocumentationPageInputV2,
|
|
12649
12659
|
DTONpmRegistryConfig,
|
|
12650
12660
|
DTONpmRegistryConfigConstants,
|
|
12661
|
+
DTOObjectMeta,
|
|
12651
12662
|
DTOPageBlockColorV2,
|
|
12652
12663
|
DTOPageBlockDefinition,
|
|
12653
12664
|
DTOPageBlockDefinitionBehavior,
|