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