@supernova-studio/client 0.58.0 → 0.58.1
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 +150 -1103
- package/dist/index.d.ts +150 -1103
- package/dist/index.js +52 -58
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +937 -943
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/aux/color.ts +7 -0
- package/src/api/dto/aux/index.ts +2 -0
- package/src/api/dto/aux/meta.ts +8 -0
- package/src/api/dto/elements/elements-action-v2.ts +0 -18
- package/src/api/dto/elements/properties/index.ts +0 -1
- package/src/api/dto/elements/properties/property-definitions.ts +22 -16
- package/src/api/endpoints/design-system/versions/property-definitions.ts +18 -0
- package/src/api/transport/request-executor.ts +4 -1
- package/src/api/dto/elements/properties/property-definitions-actions-v2.ts +0 -53
package/dist/index.mjs
CHANGED
|
@@ -5127,49 +5127,55 @@ function integrationCredentialToDto(credential) {
|
|
|
5127
5127
|
};
|
|
5128
5128
|
}
|
|
5129
5129
|
|
|
5130
|
-
// src/api/dto/aux/
|
|
5130
|
+
// src/api/dto/aux/color.ts
|
|
5131
5131
|
import { z as z177 } from "zod";
|
|
5132
|
-
var
|
|
5133
|
-
|
|
5134
|
-
|
|
5132
|
+
var DTOColorTokenInlineData = z177.object({
|
|
5133
|
+
value: z177.string().regex(/^#[a-f0-9]{6,8}$/)
|
|
5134
|
+
});
|
|
5135
|
+
|
|
5136
|
+
// src/api/dto/aux/pagination.ts
|
|
5137
|
+
import { z as z178 } from "zod";
|
|
5138
|
+
var DTOPagination = z178.object({
|
|
5139
|
+
limit: z178.string().optional(),
|
|
5140
|
+
offset: z178.string().optional()
|
|
5135
5141
|
});
|
|
5136
5142
|
|
|
5137
5143
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5138
|
-
import { z as
|
|
5144
|
+
import { z as z211 } from "zod";
|
|
5139
5145
|
|
|
5140
5146
|
// src/api/dto/design-systems/brand.ts
|
|
5141
|
-
import { z as
|
|
5142
|
-
var DTOBrand =
|
|
5143
|
-
id:
|
|
5144
|
-
designSystemVersionId:
|
|
5145
|
-
persistentId:
|
|
5147
|
+
import { z as z179 } from "zod";
|
|
5148
|
+
var DTOBrand = z179.object({
|
|
5149
|
+
id: z179.string(),
|
|
5150
|
+
designSystemVersionId: z179.string(),
|
|
5151
|
+
persistentId: z179.string(),
|
|
5146
5152
|
meta: ObjectMeta
|
|
5147
5153
|
});
|
|
5148
|
-
var DTOBrandGetResponse =
|
|
5149
|
-
var DTOBrandCreateResponse =
|
|
5154
|
+
var DTOBrandGetResponse = z179.object({ brand: DTOBrand });
|
|
5155
|
+
var DTOBrandCreateResponse = z179.object({
|
|
5150
5156
|
brand: DTOBrand
|
|
5151
5157
|
});
|
|
5152
|
-
var DTOBrandsListResponse =
|
|
5158
|
+
var DTOBrandsListResponse = z179.object({ brands: z179.array(DTOBrand) });
|
|
5153
5159
|
|
|
5154
5160
|
// src/api/dto/design-systems/contact.ts
|
|
5155
|
-
import { z as
|
|
5161
|
+
import { z as z183 } from "zod";
|
|
5156
5162
|
|
|
5157
5163
|
// src/api/dto/users/authenticated-user.ts
|
|
5158
|
-
import { z as
|
|
5164
|
+
import { z as z181 } from "zod";
|
|
5159
5165
|
|
|
5160
5166
|
// src/api/dto/users/user.ts
|
|
5161
|
-
import { z as
|
|
5162
|
-
var DTOUserProfile =
|
|
5163
|
-
name:
|
|
5164
|
-
nickname:
|
|
5165
|
-
avatar:
|
|
5166
|
-
});
|
|
5167
|
-
var DTOUser =
|
|
5168
|
-
id:
|
|
5169
|
-
email:
|
|
5167
|
+
import { z as z180 } from "zod";
|
|
5168
|
+
var DTOUserProfile = z180.object({
|
|
5169
|
+
name: z180.string(),
|
|
5170
|
+
nickname: z180.string().optional(),
|
|
5171
|
+
avatar: z180.string().optional()
|
|
5172
|
+
});
|
|
5173
|
+
var DTOUser = z180.object({
|
|
5174
|
+
id: z180.string(),
|
|
5175
|
+
email: z180.string(),
|
|
5170
5176
|
profile: DTOUserProfile
|
|
5171
5177
|
});
|
|
5172
|
-
var DTOUserGetResponse =
|
|
5178
|
+
var DTOUserGetResponse = z180.object({
|
|
5173
5179
|
user: DTOUser
|
|
5174
5180
|
});
|
|
5175
5181
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -5178,146 +5184,146 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
5178
5184
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
5179
5185
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5180
5186
|
var DTOUserSource = UserSource;
|
|
5181
|
-
var DTOUserOnboarding =
|
|
5182
|
-
companyName:
|
|
5183
|
-
numberOfPeopleInOrg:
|
|
5184
|
-
numberOfPeopleInDesignTeam:
|
|
5187
|
+
var DTOUserOnboarding = z181.object({
|
|
5188
|
+
companyName: z181.string().optional(),
|
|
5189
|
+
numberOfPeopleInOrg: z181.string().optional(),
|
|
5190
|
+
numberOfPeopleInDesignTeam: z181.string().optional(),
|
|
5185
5191
|
department: DTOUserOnboardingDepartment.optional(),
|
|
5186
|
-
jobTitle:
|
|
5187
|
-
phase:
|
|
5192
|
+
jobTitle: z181.string().optional(),
|
|
5193
|
+
phase: z181.string().optional(),
|
|
5188
5194
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
5189
|
-
designSystemName:
|
|
5190
|
-
defaultDestination:
|
|
5191
|
-
isPageDraftOnboardingFinished:
|
|
5195
|
+
designSystemName: z181.string().optional(),
|
|
5196
|
+
defaultDestination: z181.string().optional(),
|
|
5197
|
+
isPageDraftOnboardingFinished: z181.boolean().optional()
|
|
5192
5198
|
});
|
|
5193
5199
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5194
5200
|
onboarding: DTOUserOnboarding.optional()
|
|
5195
5201
|
});
|
|
5196
5202
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5197
5203
|
profile: DTOAuthenticatedUserProfile,
|
|
5198
|
-
createdAt:
|
|
5199
|
-
loggedOutAt:
|
|
5204
|
+
createdAt: z181.coerce.date(),
|
|
5205
|
+
loggedOutAt: z181.coerce.date().optional(),
|
|
5200
5206
|
source: DTOUserSource.optional()
|
|
5201
5207
|
});
|
|
5202
|
-
var DTOAuthenticatedUserResponse =
|
|
5208
|
+
var DTOAuthenticatedUserResponse = z181.object({
|
|
5203
5209
|
user: DTOAuthenticatedUser
|
|
5204
5210
|
});
|
|
5205
5211
|
|
|
5206
5212
|
// src/api/dto/users/update.ts
|
|
5207
|
-
import { z as
|
|
5208
|
-
var DTOUserProfileUpdateResponse =
|
|
5213
|
+
import { z as z182 } from "zod";
|
|
5214
|
+
var DTOUserProfileUpdateResponse = z182.object({
|
|
5209
5215
|
user: User
|
|
5210
5216
|
});
|
|
5211
5217
|
|
|
5212
5218
|
// src/api/dto/design-systems/contact.ts
|
|
5213
|
-
var DTODesignSystemContactsResponse =
|
|
5214
|
-
contacts:
|
|
5215
|
-
workspace:
|
|
5216
|
-
designSystem:
|
|
5219
|
+
var DTODesignSystemContactsResponse = z183.object({
|
|
5220
|
+
contacts: z183.object({
|
|
5221
|
+
workspace: z183.array(DTOUser),
|
|
5222
|
+
designSystem: z183.array(DTOUser)
|
|
5217
5223
|
})
|
|
5218
5224
|
});
|
|
5219
5225
|
|
|
5220
5226
|
// src/api/dto/design-systems/data-source.ts
|
|
5221
|
-
import { z as
|
|
5222
|
-
var DTODataSourceFigmaFileVersion =
|
|
5223
|
-
id:
|
|
5224
|
-
created_at:
|
|
5225
|
-
label:
|
|
5226
|
-
description:
|
|
5227
|
-
});
|
|
5228
|
-
var DTODataSourceFigmaCloud =
|
|
5229
|
-
fileId:
|
|
5227
|
+
import { z as z184 } from "zod";
|
|
5228
|
+
var DTODataSourceFigmaFileVersion = z184.object({
|
|
5229
|
+
id: z184.string(),
|
|
5230
|
+
created_at: z184.coerce.date(),
|
|
5231
|
+
label: z184.string(),
|
|
5232
|
+
description: z184.string()
|
|
5233
|
+
});
|
|
5234
|
+
var DTODataSourceFigmaCloud = z184.object({
|
|
5235
|
+
fileId: z184.string(),
|
|
5230
5236
|
state: DataSourceFigmaState,
|
|
5231
5237
|
autoImportMode: DataSourceAutoImportMode,
|
|
5232
|
-
fileThumbnailUrl:
|
|
5238
|
+
fileThumbnailUrl: z184.string().optional(),
|
|
5233
5239
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5234
|
-
lastImportedAt:
|
|
5240
|
+
lastImportedAt: z184.coerce.date().nullish(),
|
|
5235
5241
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5236
|
-
lastUpdatesCheckedAt:
|
|
5237
|
-
ownerId:
|
|
5238
|
-
ownerUserName:
|
|
5239
|
-
preferredCredentialId:
|
|
5242
|
+
lastUpdatesCheckedAt: z184.date().nullish(),
|
|
5243
|
+
ownerId: z184.string(),
|
|
5244
|
+
ownerUserName: z184.string().optional(),
|
|
5245
|
+
preferredCredentialId: z184.string().optional(),
|
|
5240
5246
|
stats: DataSourceStats
|
|
5241
5247
|
});
|
|
5242
|
-
var DTODataSourceFigma =
|
|
5243
|
-
id:
|
|
5244
|
-
type:
|
|
5245
|
-
fileName:
|
|
5248
|
+
var DTODataSourceFigma = z184.object({
|
|
5249
|
+
id: z184.string(),
|
|
5250
|
+
type: z184.literal(DataSourceRemoteType.Enum.Figma),
|
|
5251
|
+
fileName: z184.string(),
|
|
5246
5252
|
scope: DataSourceFigmaScope,
|
|
5247
|
-
brandId:
|
|
5248
|
-
themeId:
|
|
5253
|
+
brandId: z184.string(),
|
|
5254
|
+
themeId: z184.string().nullish(),
|
|
5249
5255
|
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5250
5256
|
});
|
|
5251
|
-
var DTODataSourceTokenStudio =
|
|
5252
|
-
id:
|
|
5253
|
-
type:
|
|
5254
|
-
fileName:
|
|
5255
|
-
brandId:
|
|
5256
|
-
themeId:
|
|
5257
|
-
tokenStudio:
|
|
5258
|
-
settings:
|
|
5259
|
-
dryRun:
|
|
5260
|
-
verbose:
|
|
5261
|
-
preciseCopy:
|
|
5257
|
+
var DTODataSourceTokenStudio = z184.object({
|
|
5258
|
+
id: z184.string(),
|
|
5259
|
+
type: z184.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5260
|
+
fileName: z184.string(),
|
|
5261
|
+
brandId: z184.string(),
|
|
5262
|
+
themeId: z184.string().nullish(),
|
|
5263
|
+
tokenStudio: z184.object({
|
|
5264
|
+
settings: z184.object({
|
|
5265
|
+
dryRun: z184.boolean(),
|
|
5266
|
+
verbose: z184.boolean(),
|
|
5267
|
+
preciseCopy: z184.boolean()
|
|
5262
5268
|
}),
|
|
5263
|
-
connectionName:
|
|
5264
|
-
lastImportedAt:
|
|
5265
|
-
lastImportedResults:
|
|
5266
|
-
|
|
5267
|
-
mapping:
|
|
5268
|
-
tokenSets:
|
|
5269
|
-
supernovaBrand:
|
|
5270
|
-
supernovaTheme:
|
|
5269
|
+
connectionName: z184.string(),
|
|
5270
|
+
lastImportedAt: z184.coerce.date(),
|
|
5271
|
+
lastImportedResults: z184.array(
|
|
5272
|
+
z184.object({
|
|
5273
|
+
mapping: z184.object({
|
|
5274
|
+
tokenSets: z184.array(z184.string()),
|
|
5275
|
+
supernovaBrand: z184.string(),
|
|
5276
|
+
supernovaTheme: z184.string().optional()
|
|
5271
5277
|
}),
|
|
5272
|
-
isFailed:
|
|
5273
|
-
tokensCreated:
|
|
5274
|
-
tokensDeleted:
|
|
5275
|
-
tokensUpdated:
|
|
5278
|
+
isFailed: z184.boolean(),
|
|
5279
|
+
tokensCreated: z184.number(),
|
|
5280
|
+
tokensDeleted: z184.number(),
|
|
5281
|
+
tokensUpdated: z184.number()
|
|
5276
5282
|
})
|
|
5277
5283
|
)
|
|
5278
5284
|
})
|
|
5279
5285
|
});
|
|
5280
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5281
|
-
id:
|
|
5282
|
-
type:
|
|
5283
|
-
fileName:
|
|
5284
|
-
brandId:
|
|
5285
|
-
upload:
|
|
5286
|
-
remoteId:
|
|
5286
|
+
var DTODataSourceFigmaVariablesPlugin = z184.object({
|
|
5287
|
+
id: z184.string(),
|
|
5288
|
+
type: z184.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5289
|
+
fileName: z184.string(),
|
|
5290
|
+
brandId: z184.string(),
|
|
5291
|
+
upload: z184.object({
|
|
5292
|
+
remoteId: z184.string(),
|
|
5287
5293
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5288
|
-
lastImportedAt:
|
|
5294
|
+
lastImportedAt: z184.coerce.date().optional(),
|
|
5289
5295
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5290
|
-
isTokenTypeSplitEnabled:
|
|
5296
|
+
isTokenTypeSplitEnabled: z184.boolean()
|
|
5291
5297
|
}),
|
|
5292
|
-
figmaVariablesPlugin:
|
|
5293
|
-
fileId:
|
|
5294
|
-
lastImportedAt:
|
|
5298
|
+
figmaVariablesPlugin: z184.object({
|
|
5299
|
+
fileId: z184.string(),
|
|
5300
|
+
lastImportedAt: z184.coerce.date().optional(),
|
|
5295
5301
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5296
|
-
isTokenTypeSplitEnabled:
|
|
5297
|
-
isCollectionsMigrationCompleted:
|
|
5302
|
+
isTokenTypeSplitEnabled: z184.boolean(),
|
|
5303
|
+
isCollectionsMigrationCompleted: z184.boolean().default(false)
|
|
5298
5304
|
})
|
|
5299
5305
|
});
|
|
5300
|
-
var DTODataSource =
|
|
5306
|
+
var DTODataSource = z184.discriminatedUnion("type", [
|
|
5301
5307
|
DTODataSourceFigma,
|
|
5302
5308
|
DTODataSourceFigmaVariablesPlugin,
|
|
5303
5309
|
DTODataSourceTokenStudio
|
|
5304
5310
|
]);
|
|
5305
|
-
var DTODataSourcesListResponse =
|
|
5306
|
-
sources:
|
|
5311
|
+
var DTODataSourcesListResponse = z184.object({
|
|
5312
|
+
sources: z184.array(DTODataSource)
|
|
5307
5313
|
});
|
|
5308
|
-
var DTODataSourceCreationResponse =
|
|
5314
|
+
var DTODataSourceCreationResponse = z184.object({
|
|
5309
5315
|
source: DTODataSource
|
|
5310
5316
|
});
|
|
5311
5317
|
|
|
5312
5318
|
// src/api/dto/design-systems/design-system.ts
|
|
5313
|
-
import { z as
|
|
5319
|
+
import { z as z187 } from "zod";
|
|
5314
5320
|
|
|
5315
5321
|
// src/api/dto/design-systems/members.ts
|
|
5316
|
-
import { z as
|
|
5322
|
+
import { z as z186 } from "zod";
|
|
5317
5323
|
|
|
5318
5324
|
// src/api/dto/design-systems/role.ts
|
|
5319
|
-
import { z as
|
|
5320
|
-
var DTODesignSystemRole =
|
|
5325
|
+
import { z as z185 } from "zod";
|
|
5326
|
+
var DTODesignSystemRole = z185.enum([
|
|
5321
5327
|
WorkspaceRole.Admin,
|
|
5322
5328
|
WorkspaceRole.Contributor,
|
|
5323
5329
|
WorkspaceRole.Creator,
|
|
@@ -5325,29 +5331,29 @@ var DTODesignSystemRole = z184.enum([
|
|
|
5325
5331
|
]);
|
|
5326
5332
|
|
|
5327
5333
|
// src/api/dto/design-systems/members.ts
|
|
5328
|
-
var DTODesignSystemMember =
|
|
5329
|
-
userId:
|
|
5334
|
+
var DTODesignSystemMember = z186.object({
|
|
5335
|
+
userId: z186.string(),
|
|
5330
5336
|
/**
|
|
5331
5337
|
* Role that the member has in the design system,
|
|
5332
5338
|
* undefined if set to inherit from workspace
|
|
5333
5339
|
*/
|
|
5334
5340
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5335
5341
|
});
|
|
5336
|
-
var DTODesignSystemInvitation =
|
|
5337
|
-
id:
|
|
5338
|
-
workspaceInvitationId:
|
|
5342
|
+
var DTODesignSystemInvitation = z186.object({
|
|
5343
|
+
id: z186.string(),
|
|
5344
|
+
workspaceInvitationId: z186.string(),
|
|
5339
5345
|
/**
|
|
5340
5346
|
* Role that the invitation has in the design system,
|
|
5341
5347
|
* undefined if set to inherit from workspace
|
|
5342
5348
|
*/
|
|
5343
5349
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5344
5350
|
});
|
|
5345
|
-
var DTODesignSystemMemberListResponse =
|
|
5351
|
+
var DTODesignSystemMemberListResponse = z186.object({
|
|
5346
5352
|
members: DTODesignSystemMember.array(),
|
|
5347
5353
|
invitations: DTODesignSystemInvitation.array()
|
|
5348
5354
|
});
|
|
5349
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5350
|
-
ok:
|
|
5355
|
+
var DTODesignSystemMembersUpdateResponse = z186.object({
|
|
5356
|
+
ok: z186.literal(true)
|
|
5351
5357
|
});
|
|
5352
5358
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5353
5359
|
|
|
@@ -5358,14 +5364,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5358
5364
|
docExporterId: true
|
|
5359
5365
|
}).extend({
|
|
5360
5366
|
meta: ObjectMeta,
|
|
5361
|
-
docExporterId:
|
|
5362
|
-
sources:
|
|
5363
|
-
isPublic:
|
|
5367
|
+
docExporterId: z187.string(),
|
|
5368
|
+
sources: z187.array(z187.any()),
|
|
5369
|
+
isPublic: z187.literal(true),
|
|
5364
5370
|
/**
|
|
5365
5371
|
* Whether or not user who is requesting the design system
|
|
5366
5372
|
* has access to the design system's contents.
|
|
5367
5373
|
*/
|
|
5368
|
-
isAvailableToUser:
|
|
5374
|
+
isAvailableToUser: z187.boolean(),
|
|
5369
5375
|
/**
|
|
5370
5376
|
* @deprecated
|
|
5371
5377
|
*/
|
|
@@ -5376,17 +5382,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5376
5382
|
*/
|
|
5377
5383
|
effectiveRole: DTODesignSystemRole.optional()
|
|
5378
5384
|
});
|
|
5379
|
-
var DTODesignSystemResponse =
|
|
5385
|
+
var DTODesignSystemResponse = z187.object({
|
|
5380
5386
|
designSystem: DTODesignSystem
|
|
5381
5387
|
});
|
|
5382
|
-
var DTODesignSystemsListResponse =
|
|
5388
|
+
var DTODesignSystemsListResponse = z187.object({
|
|
5383
5389
|
designSystems: DTODesignSystem.array()
|
|
5384
5390
|
});
|
|
5385
|
-
var DTODesignSystemCreateInput =
|
|
5386
|
-
workspaceId:
|
|
5391
|
+
var DTODesignSystemCreateInput = z187.object({
|
|
5392
|
+
workspaceId: z187.string(),
|
|
5387
5393
|
meta: ObjectMeta.optional(),
|
|
5388
|
-
name:
|
|
5389
|
-
description:
|
|
5394
|
+
name: z187.string().min(2).max(64).optional(),
|
|
5395
|
+
description: z187.string().max(1024).optional(),
|
|
5390
5396
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5391
5397
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
5392
5398
|
usersToInvite: true,
|
|
@@ -5396,25 +5402,25 @@ var DTODesignSystemCreateInput = z186.object({
|
|
|
5396
5402
|
});
|
|
5397
5403
|
|
|
5398
5404
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5399
|
-
import { z as
|
|
5400
|
-
var DTODiffCountBase =
|
|
5401
|
-
created:
|
|
5402
|
-
updated:
|
|
5403
|
-
deleted:
|
|
5405
|
+
import { z as z188 } from "zod";
|
|
5406
|
+
var DTODiffCountBase = z188.object({
|
|
5407
|
+
created: z188.number(),
|
|
5408
|
+
updated: z188.number(),
|
|
5409
|
+
deleted: z188.number()
|
|
5404
5410
|
});
|
|
5405
|
-
var DTODesignElementsDataDiffResponse =
|
|
5411
|
+
var DTODesignElementsDataDiffResponse = z188.object({
|
|
5406
5412
|
tokens: DTODiffCountBase,
|
|
5407
5413
|
assets: DTODiffCountBase
|
|
5408
5414
|
});
|
|
5409
5415
|
|
|
5410
5416
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5411
|
-
import { z as
|
|
5412
|
-
var DTOExporterProperty =
|
|
5413
|
-
var DTOExporterPropertyListResponse =
|
|
5417
|
+
import { z as z189 } from "zod";
|
|
5418
|
+
var DTOExporterProperty = z189.any({});
|
|
5419
|
+
var DTOExporterPropertyListResponse = z189.object({ items: z189.array(DTOExporterProperty) });
|
|
5414
5420
|
|
|
5415
5421
|
// src/api/dto/design-systems/figma-variables.ts
|
|
5416
|
-
import { z as
|
|
5417
|
-
var DimensionsVariableScopeSchema =
|
|
5422
|
+
import { z as z190 } from "zod";
|
|
5423
|
+
var DimensionsVariableScopeSchema = z190.enum([
|
|
5418
5424
|
"CORNER_RADIUS",
|
|
5419
5425
|
"WIDTH_HEIGHT",
|
|
5420
5426
|
"GAP",
|
|
@@ -5428,130 +5434,130 @@ var DimensionsVariableScopeSchema = z189.enum([
|
|
|
5428
5434
|
"PARAGRAPH_INDENT",
|
|
5429
5435
|
"FONT_WEIGHT"
|
|
5430
5436
|
]);
|
|
5431
|
-
var StringVariableScopeSchema =
|
|
5437
|
+
var StringVariableScopeSchema = z190.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
5432
5438
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5433
5439
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5434
|
-
var VariableScope =
|
|
5435
|
-
var ReferencedVariableOrigin =
|
|
5436
|
-
name:
|
|
5437
|
-
remote:
|
|
5440
|
+
var VariableScope = z190.string();
|
|
5441
|
+
var ReferencedVariableOrigin = z190.object({
|
|
5442
|
+
name: z190.string(),
|
|
5443
|
+
remote: z190.boolean()
|
|
5438
5444
|
});
|
|
5439
|
-
var RGB =
|
|
5440
|
-
r:
|
|
5441
|
-
g:
|
|
5442
|
-
b:
|
|
5445
|
+
var RGB = z190.object({
|
|
5446
|
+
r: z190.number(),
|
|
5447
|
+
g: z190.number(),
|
|
5448
|
+
b: z190.number()
|
|
5443
5449
|
});
|
|
5444
5450
|
var RGBA = RGB.extend({
|
|
5445
|
-
a:
|
|
5446
|
-
});
|
|
5447
|
-
var VariableAlias =
|
|
5448
|
-
type:
|
|
5449
|
-
id:
|
|
5450
|
-
resolvedValue:
|
|
5451
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
5452
|
-
});
|
|
5453
|
-
var VariableValue =
|
|
5454
|
-
var ResolvedVariableType =
|
|
5455
|
-
var Variable =
|
|
5456
|
-
id:
|
|
5457
|
-
name:
|
|
5458
|
-
key:
|
|
5459
|
-
variableCollectionId:
|
|
5451
|
+
a: z190.number()
|
|
5452
|
+
});
|
|
5453
|
+
var VariableAlias = z190.object({
|
|
5454
|
+
type: z190.literal("VARIABLE_ALIAS"),
|
|
5455
|
+
id: z190.string(),
|
|
5456
|
+
resolvedValue: z190.boolean().or(z190.number()).or(z190.string()).or(RGBA).or(RGB).optional(),
|
|
5457
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z190.null())
|
|
5458
|
+
});
|
|
5459
|
+
var VariableValue = z190.boolean().or(z190.number()).or(z190.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5460
|
+
var ResolvedVariableType = z190.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5461
|
+
var Variable = z190.object({
|
|
5462
|
+
id: z190.string(),
|
|
5463
|
+
name: z190.string(),
|
|
5464
|
+
key: z190.string(),
|
|
5465
|
+
variableCollectionId: z190.string(),
|
|
5460
5466
|
resolvedType: ResolvedVariableType,
|
|
5461
|
-
valuesByMode:
|
|
5462
|
-
remote:
|
|
5463
|
-
description:
|
|
5464
|
-
hiddenFromPublishing:
|
|
5465
|
-
scopes:
|
|
5466
|
-
codeSyntax:
|
|
5467
|
-
});
|
|
5468
|
-
var VariableMode =
|
|
5469
|
-
modeId:
|
|
5470
|
-
name:
|
|
5471
|
-
});
|
|
5472
|
-
var Collection2 =
|
|
5473
|
-
id:
|
|
5474
|
-
name:
|
|
5475
|
-
modes:
|
|
5476
|
-
defaultModeId:
|
|
5477
|
-
remote:
|
|
5478
|
-
hiddenFromPublishing:
|
|
5479
|
-
});
|
|
5480
|
-
var VariablesMapping =
|
|
5481
|
-
variableCollections:
|
|
5482
|
-
variableMode:
|
|
5483
|
-
supernovaBrand:
|
|
5484
|
-
supernovaTheme:
|
|
5485
|
-
});
|
|
5486
|
-
var FormattedCollections =
|
|
5487
|
-
variables:
|
|
5488
|
-
variableCollections:
|
|
5489
|
-
mappings:
|
|
5490
|
-
variablesOrder:
|
|
5467
|
+
valuesByMode: z190.record(VariableValue),
|
|
5468
|
+
remote: z190.boolean(),
|
|
5469
|
+
description: z190.string(),
|
|
5470
|
+
hiddenFromPublishing: z190.boolean(),
|
|
5471
|
+
scopes: z190.array(VariableScope),
|
|
5472
|
+
codeSyntax: z190.record(z190.any()).optional()
|
|
5473
|
+
});
|
|
5474
|
+
var VariableMode = z190.object({
|
|
5475
|
+
modeId: z190.string(),
|
|
5476
|
+
name: z190.string()
|
|
5477
|
+
});
|
|
5478
|
+
var Collection2 = z190.object({
|
|
5479
|
+
id: z190.string(),
|
|
5480
|
+
name: z190.string(),
|
|
5481
|
+
modes: z190.array(VariableMode),
|
|
5482
|
+
defaultModeId: z190.string(),
|
|
5483
|
+
remote: z190.boolean(),
|
|
5484
|
+
hiddenFromPublishing: z190.boolean()
|
|
5485
|
+
});
|
|
5486
|
+
var VariablesMapping = z190.object({
|
|
5487
|
+
variableCollections: z190.array(z190.string()).min(1),
|
|
5488
|
+
variableMode: z190.string().min(1),
|
|
5489
|
+
supernovaBrand: z190.string().min(1),
|
|
5490
|
+
supernovaTheme: z190.string().min(1).optional().or(z190.null())
|
|
5491
|
+
});
|
|
5492
|
+
var FormattedCollections = z190.object({
|
|
5493
|
+
variables: z190.record(z190.string(), Variable),
|
|
5494
|
+
variableCollections: z190.record(z190.string(), Collection2),
|
|
5495
|
+
mappings: z190.array(VariablesMapping).optional(),
|
|
5496
|
+
variablesOrder: z190.string().array().optional()
|
|
5491
5497
|
});
|
|
5492
5498
|
|
|
5493
5499
|
// src/api/dto/design-systems/import-job.ts
|
|
5494
|
-
import { z as
|
|
5495
|
-
var DTOImportJob =
|
|
5496
|
-
id:
|
|
5497
|
-
designSystemId:
|
|
5498
|
-
designSystemVersionId:
|
|
5499
|
-
operation:
|
|
5500
|
-
createdAt:
|
|
5501
|
-
stateChangedAt:
|
|
5500
|
+
import { z as z191 } from "zod";
|
|
5501
|
+
var DTOImportJob = z191.object({
|
|
5502
|
+
id: z191.string(),
|
|
5503
|
+
designSystemId: z191.string(),
|
|
5504
|
+
designSystemVersionId: z191.string(),
|
|
5505
|
+
operation: z191.literal("Import"),
|
|
5506
|
+
createdAt: z191.coerce.date(),
|
|
5507
|
+
stateChangedAt: z191.coerce.date(),
|
|
5502
5508
|
state: ImportJobState,
|
|
5503
|
-
sourceIds:
|
|
5509
|
+
sourceIds: z191.string().array()
|
|
5504
5510
|
});
|
|
5505
|
-
var DTOImportJobResponse =
|
|
5511
|
+
var DTOImportJobResponse = z191.object({
|
|
5506
5512
|
job: DTOImportJob
|
|
5507
5513
|
});
|
|
5508
|
-
var DTOBffFigmaImportRequestBody =
|
|
5509
|
-
type:
|
|
5510
|
-
brandPersistentId:
|
|
5511
|
-
fileId:
|
|
5514
|
+
var DTOBffFigmaImportRequestBody = z191.object({
|
|
5515
|
+
type: z191.literal(DataSourceRemoteType.Enum.Figma),
|
|
5516
|
+
brandPersistentId: z191.string().optional(),
|
|
5517
|
+
fileId: z191.string(),
|
|
5512
5518
|
scope: DataSourceFigmaScope,
|
|
5513
5519
|
autoImportMode: DataSourceAutoImportMode
|
|
5514
5520
|
});
|
|
5515
|
-
var DTOBffUploadImportRequestBody =
|
|
5516
|
-
type:
|
|
5517
|
-
brandPersistentId:
|
|
5518
|
-
sourceName:
|
|
5519
|
-
remoteId:
|
|
5520
|
-
isTokenTypeSplitEnabled:
|
|
5521
|
-
payload:
|
|
5521
|
+
var DTOBffUploadImportRequestBody = z191.object({
|
|
5522
|
+
type: z191.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5523
|
+
brandPersistentId: z191.string().optional(),
|
|
5524
|
+
sourceName: z191.string().optional(),
|
|
5525
|
+
remoteId: z191.string(),
|
|
5526
|
+
isTokenTypeSplitEnabled: z191.boolean().optional(),
|
|
5527
|
+
payload: z191.any()
|
|
5522
5528
|
});
|
|
5523
|
-
var DTOBffImportRequestBody =
|
|
5529
|
+
var DTOBffImportRequestBody = z191.discriminatedUnion("type", [
|
|
5524
5530
|
DTOBffFigmaImportRequestBody,
|
|
5525
5531
|
DTOBffUploadImportRequestBody
|
|
5526
5532
|
]);
|
|
5527
5533
|
|
|
5528
5534
|
// src/api/dto/design-systems/stats.ts
|
|
5529
|
-
import { z as
|
|
5530
|
-
var DTODesignSystemVersionStats =
|
|
5531
|
-
tokens:
|
|
5532
|
-
designSystemComponents:
|
|
5533
|
-
assets:
|
|
5534
|
-
documentationPages:
|
|
5535
|
+
import { z as z192 } from "zod";
|
|
5536
|
+
var DTODesignSystemVersionStats = z192.object({
|
|
5537
|
+
tokens: z192.number(),
|
|
5538
|
+
designSystemComponents: z192.number(),
|
|
5539
|
+
assets: z192.number(),
|
|
5540
|
+
documentationPages: z192.number()
|
|
5535
5541
|
});
|
|
5536
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5537
|
-
brandId:
|
|
5542
|
+
var DTODesignSystemVersionStatsQuery = z192.object({
|
|
5543
|
+
brandId: z192.string().optional()
|
|
5538
5544
|
});
|
|
5539
5545
|
|
|
5540
5546
|
// src/api/dto/design-systems/version.ts
|
|
5541
|
-
import { z as
|
|
5547
|
+
import { z as z203 } from "zod";
|
|
5542
5548
|
|
|
5543
5549
|
// src/api/payloads/design-systems/brand.ts
|
|
5544
|
-
import { z as
|
|
5545
|
-
var DTOCreateBrandInput =
|
|
5546
|
-
persistentId:
|
|
5547
|
-
meta:
|
|
5548
|
-
name:
|
|
5549
|
-
description:
|
|
5550
|
+
import { z as z193 } from "zod";
|
|
5551
|
+
var DTOCreateBrandInput = z193.object({
|
|
5552
|
+
persistentId: z193.string().uuid(),
|
|
5553
|
+
meta: z193.object({
|
|
5554
|
+
name: z193.string(),
|
|
5555
|
+
description: z193.string()
|
|
5550
5556
|
})
|
|
5551
5557
|
});
|
|
5552
5558
|
|
|
5553
5559
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5554
|
-
import { z as
|
|
5560
|
+
import { z as z194 } from "zod";
|
|
5555
5561
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5556
5562
|
id: true,
|
|
5557
5563
|
workspaceId: true,
|
|
@@ -5563,40 +5569,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5563
5569
|
}).extend({
|
|
5564
5570
|
meta: ObjectMeta.partial().optional()
|
|
5565
5571
|
});
|
|
5566
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5572
|
+
var DTODesignSystemUpdateAccessModeInput = z194.object({
|
|
5567
5573
|
accessMode: DesignSystemAccessMode,
|
|
5568
|
-
retain:
|
|
5569
|
-
userIds:
|
|
5570
|
-
inviteIds:
|
|
5574
|
+
retain: z194.object({
|
|
5575
|
+
userIds: z194.string().array(),
|
|
5576
|
+
inviteIds: z194.string().array()
|
|
5571
5577
|
}).optional()
|
|
5572
5578
|
});
|
|
5573
5579
|
|
|
5574
5580
|
// src/api/payloads/design-systems/version.ts
|
|
5575
|
-
import { z as
|
|
5576
|
-
var ObjectMeta2 =
|
|
5577
|
-
name:
|
|
5578
|
-
description:
|
|
5581
|
+
import { z as z195 } from "zod";
|
|
5582
|
+
var ObjectMeta2 = z195.object({
|
|
5583
|
+
name: z195.string().max(150).optional(),
|
|
5584
|
+
description: z195.string().max(2e3).optional()
|
|
5579
5585
|
});
|
|
5580
5586
|
function validateDesignSystemVersion(version) {
|
|
5581
5587
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5582
5588
|
return urlCompliantRegex.test(version);
|
|
5583
5589
|
}
|
|
5584
|
-
var DTOCreateVersionInput =
|
|
5590
|
+
var DTOCreateVersionInput = z195.object({
|
|
5585
5591
|
meta: ObjectMeta2,
|
|
5586
|
-
version:
|
|
5592
|
+
version: z195.string().refine(validateDesignSystemVersion, {
|
|
5587
5593
|
message: "Invalid semantic versioning format"
|
|
5588
5594
|
}),
|
|
5589
|
-
changeLog:
|
|
5595
|
+
changeLog: z195.string().optional()
|
|
5590
5596
|
});
|
|
5591
|
-
var DTOUpdateVersionInput =
|
|
5597
|
+
var DTOUpdateVersionInput = z195.object({
|
|
5592
5598
|
meta: ObjectMeta2,
|
|
5593
|
-
version:
|
|
5599
|
+
version: z195.string(),
|
|
5594
5600
|
// required for PUT, but not editable
|
|
5595
|
-
changeLog:
|
|
5601
|
+
changeLog: z195.string()
|
|
5596
5602
|
});
|
|
5597
5603
|
|
|
5598
5604
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5599
|
-
import { z as
|
|
5605
|
+
import { z as z196 } from "zod";
|
|
5600
5606
|
|
|
5601
5607
|
// src/api/dto/documentation/block-definition.ts
|
|
5602
5608
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5608,60 +5614,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5608
5614
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5609
5615
|
|
|
5610
5616
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5611
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5612
|
-
definitions:
|
|
5617
|
+
var DTOGetBlockDefinitionsOutput = z196.object({
|
|
5618
|
+
definitions: z196.array(DTOPageBlockDefinition)
|
|
5613
5619
|
});
|
|
5614
5620
|
|
|
5615
5621
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5616
|
-
import { z as
|
|
5617
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5618
|
-
environment:
|
|
5622
|
+
import { z as z197 } from "zod";
|
|
5623
|
+
var DTODocumentationPublishTypeQueryParams = z197.object({
|
|
5624
|
+
environment: z197.enum(["Live", "Preview"])
|
|
5619
5625
|
});
|
|
5620
5626
|
|
|
5621
5627
|
// src/api/payloads/export/pipeline.ts
|
|
5622
|
-
import { z as
|
|
5623
|
-
var DTOPipelineCreateBody =
|
|
5624
|
-
name:
|
|
5625
|
-
exporterId:
|
|
5626
|
-
designSystemId:
|
|
5627
|
-
isEnabled:
|
|
5628
|
+
import { z as z198 } from "zod";
|
|
5629
|
+
var DTOPipelineCreateBody = z198.object({
|
|
5630
|
+
name: z198.string(),
|
|
5631
|
+
exporterId: z198.string(),
|
|
5632
|
+
designSystemId: z198.string(),
|
|
5633
|
+
isEnabled: z198.boolean(),
|
|
5628
5634
|
eventType: PipelineEventType,
|
|
5629
|
-
brandPersistentId:
|
|
5630
|
-
themePersistentId:
|
|
5631
|
-
themePersistentIds:
|
|
5635
|
+
brandPersistentId: z198.string().optional(),
|
|
5636
|
+
themePersistentId: z198.string().optional(),
|
|
5637
|
+
themePersistentIds: z198.string().array().optional(),
|
|
5632
5638
|
destination: PipelineDestinationType.optional(),
|
|
5633
5639
|
gitQuery: GitObjectsQuery,
|
|
5634
|
-
destinations:
|
|
5640
|
+
destinations: z198.object({
|
|
5635
5641
|
s3: ExporterDestinationS3.nullish(),
|
|
5636
5642
|
azure: ExporterDestinationAzure.nullish(),
|
|
5637
5643
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5638
5644
|
github: ExporterDestinationGithub.nullish(),
|
|
5639
5645
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5640
5646
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5641
|
-
webhookUrl:
|
|
5647
|
+
webhookUrl: z198.string().nullish()
|
|
5642
5648
|
})
|
|
5643
5649
|
});
|
|
5644
5650
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5645
|
-
id:
|
|
5651
|
+
id: z198.string()
|
|
5646
5652
|
});
|
|
5647
|
-
var DTOPipelineTriggerBody =
|
|
5648
|
-
designSystemVersionId:
|
|
5653
|
+
var DTOPipelineTriggerBody = z198.object({
|
|
5654
|
+
designSystemVersionId: z198.string()
|
|
5649
5655
|
});
|
|
5650
5656
|
|
|
5651
5657
|
// src/api/payloads/liveblocks/auth.ts
|
|
5652
|
-
import { z as
|
|
5653
|
-
var DTOLiveblocksAuthRequest =
|
|
5654
|
-
room:
|
|
5658
|
+
import { z as z199 } from "zod";
|
|
5659
|
+
var DTOLiveblocksAuthRequest = z199.object({
|
|
5660
|
+
room: z199.string().optional()
|
|
5655
5661
|
});
|
|
5656
5662
|
|
|
5657
5663
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5658
|
-
import { z as
|
|
5659
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5664
|
+
import { z as z200 } from "zod";
|
|
5665
|
+
var DTOUpdateUserNotificationSettingsPayload = z200.object({
|
|
5660
5666
|
notificationSettings: UserNotificationSettings
|
|
5661
5667
|
});
|
|
5662
|
-
var DTOUserNotificationSettingsResponse =
|
|
5663
|
-
userId:
|
|
5664
|
-
workspaceId:
|
|
5668
|
+
var DTOUserNotificationSettingsResponse = z200.object({
|
|
5669
|
+
userId: z200.string(),
|
|
5670
|
+
workspaceId: z200.string(),
|
|
5665
5671
|
notificationSettings: UserNotificationSettings
|
|
5666
5672
|
});
|
|
5667
5673
|
|
|
@@ -5669,7 +5675,7 @@ var DTOUserNotificationSettingsResponse = z199.object({
|
|
|
5669
5675
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5670
5676
|
|
|
5671
5677
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5672
|
-
import { z as
|
|
5678
|
+
import { z as z201 } from "zod";
|
|
5673
5679
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5674
5680
|
function validateSsoPayload(ssoPayload) {
|
|
5675
5681
|
const keys = [];
|
|
@@ -5692,21 +5698,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5692
5698
|
keys
|
|
5693
5699
|
};
|
|
5694
5700
|
}
|
|
5695
|
-
var NpmRegistryInput =
|
|
5696
|
-
enabledScopes:
|
|
5697
|
-
customRegistryUrl:
|
|
5698
|
-
bypassProxy:
|
|
5699
|
-
npmProxyRegistryConfigId:
|
|
5700
|
-
npmProxyVersion:
|
|
5701
|
-
registryType:
|
|
5702
|
-
authType:
|
|
5703
|
-
authHeaderName:
|
|
5704
|
-
authHeaderValue:
|
|
5705
|
-
accessToken:
|
|
5706
|
-
username:
|
|
5707
|
-
password:
|
|
5708
|
-
});
|
|
5709
|
-
var WorkspaceConfigurationPayload =
|
|
5701
|
+
var NpmRegistryInput = z201.object({
|
|
5702
|
+
enabledScopes: z201.array(z201.string()),
|
|
5703
|
+
customRegistryUrl: z201.string().optional(),
|
|
5704
|
+
bypassProxy: z201.boolean().optional(),
|
|
5705
|
+
npmProxyRegistryConfigId: z201.string().optional(),
|
|
5706
|
+
npmProxyVersion: z201.number().optional(),
|
|
5707
|
+
registryType: z201.string(),
|
|
5708
|
+
authType: z201.string(),
|
|
5709
|
+
authHeaderName: z201.string(),
|
|
5710
|
+
authHeaderValue: z201.string(),
|
|
5711
|
+
accessToken: z201.string(),
|
|
5712
|
+
username: z201.string(),
|
|
5713
|
+
password: z201.string()
|
|
5714
|
+
});
|
|
5715
|
+
var WorkspaceConfigurationPayload = z201.object({
|
|
5710
5716
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5711
5717
|
sso: SsoProvider.partial().optional(),
|
|
5712
5718
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5714,218 +5720,218 @@ var WorkspaceConfigurationPayload = z200.object({
|
|
|
5714
5720
|
});
|
|
5715
5721
|
|
|
5716
5722
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5717
|
-
import { z as
|
|
5718
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5723
|
+
import { z as z202 } from "zod";
|
|
5724
|
+
var DTOWorkspaceIntegrationOauthInput = z202.object({
|
|
5719
5725
|
type: IntegrationType
|
|
5720
5726
|
});
|
|
5721
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5722
|
-
userId:
|
|
5727
|
+
var DTOWorkspaceIntegrationPATInput = z202.object({
|
|
5728
|
+
userId: z202.string(),
|
|
5723
5729
|
type: IntegrationType,
|
|
5724
5730
|
token: IntegrationToken
|
|
5725
5731
|
});
|
|
5726
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5727
|
-
organization:
|
|
5732
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z202.object({
|
|
5733
|
+
organization: z202.string().optional(),
|
|
5728
5734
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5729
|
-
project:
|
|
5735
|
+
project: z202.string().optional(),
|
|
5730
5736
|
// Only for Bitbucket and Azure
|
|
5731
|
-
repository:
|
|
5737
|
+
repository: z202.string().optional(),
|
|
5732
5738
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5733
|
-
branch:
|
|
5739
|
+
branch: z202.string().optional(),
|
|
5734
5740
|
// For all providers, useful for PR creations.
|
|
5735
|
-
user:
|
|
5741
|
+
user: z202.string().optional()
|
|
5736
5742
|
// Only for Gitlab User Repositories
|
|
5737
5743
|
});
|
|
5738
5744
|
|
|
5739
5745
|
// src/api/dto/design-systems/version.ts
|
|
5740
|
-
var DTODesignSystemVersion =
|
|
5741
|
-
id:
|
|
5742
|
-
createdAt:
|
|
5746
|
+
var DTODesignSystemVersion = z203.object({
|
|
5747
|
+
id: z203.string(),
|
|
5748
|
+
createdAt: z203.coerce.date(),
|
|
5743
5749
|
meta: ObjectMeta,
|
|
5744
|
-
version:
|
|
5745
|
-
isReadonly:
|
|
5746
|
-
changeLog:
|
|
5747
|
-
designSystemId:
|
|
5750
|
+
version: z203.string(),
|
|
5751
|
+
isReadonly: z203.boolean(),
|
|
5752
|
+
changeLog: z203.string(),
|
|
5753
|
+
designSystemId: z203.string()
|
|
5748
5754
|
});
|
|
5749
|
-
var DTODesignSystemVersionsListResponse =
|
|
5750
|
-
designSystemVersions:
|
|
5755
|
+
var DTODesignSystemVersionsListResponse = z203.object({
|
|
5756
|
+
designSystemVersions: z203.array(DTODesignSystemVersion)
|
|
5751
5757
|
});
|
|
5752
|
-
var DTODesignSystemVersionGetResponse =
|
|
5758
|
+
var DTODesignSystemVersionGetResponse = z203.object({
|
|
5753
5759
|
designSystemVersion: DTODesignSystemVersion
|
|
5754
5760
|
});
|
|
5755
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5761
|
+
var DTODesignSystemVersionCreationResponse = z203.object({
|
|
5756
5762
|
meta: ObjectMeta,
|
|
5757
|
-
version:
|
|
5758
|
-
changeLog:
|
|
5759
|
-
isReadOnly:
|
|
5760
|
-
designSystemId:
|
|
5761
|
-
jobId:
|
|
5762
|
-
});
|
|
5763
|
-
var VersionSQSPayload =
|
|
5764
|
-
jobId:
|
|
5765
|
-
designSystemId:
|
|
5763
|
+
version: z203.string(),
|
|
5764
|
+
changeLog: z203.string(),
|
|
5765
|
+
isReadOnly: z203.boolean(),
|
|
5766
|
+
designSystemId: z203.string(),
|
|
5767
|
+
jobId: z203.string()
|
|
5768
|
+
});
|
|
5769
|
+
var VersionSQSPayload = z203.object({
|
|
5770
|
+
jobId: z203.string(),
|
|
5771
|
+
designSystemId: z203.string(),
|
|
5766
5772
|
input: DTOCreateVersionInput
|
|
5767
5773
|
});
|
|
5768
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5769
|
-
jobs:
|
|
5774
|
+
var DTODesignSystemVersionJobsResponse = z203.object({
|
|
5775
|
+
jobs: z203.array(VersionCreationJob)
|
|
5770
5776
|
});
|
|
5771
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5777
|
+
var DTODesignSystemVersionJobStatusResponse = z203.object({
|
|
5772
5778
|
job: VersionCreationJob
|
|
5773
5779
|
});
|
|
5774
5780
|
|
|
5775
5781
|
// src/api/dto/design-systems/view.ts
|
|
5776
|
-
import { z as
|
|
5777
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5778
|
-
id:
|
|
5779
|
-
persistentId:
|
|
5780
|
-
width:
|
|
5782
|
+
import { z as z204 } from "zod";
|
|
5783
|
+
var DTOElementViewColumnSharedAttributes = z204.object({
|
|
5784
|
+
id: z204.string(),
|
|
5785
|
+
persistentId: z204.string(),
|
|
5786
|
+
width: z204.number()
|
|
5781
5787
|
});
|
|
5782
5788
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5783
|
-
type:
|
|
5789
|
+
type: z204.literal("BaseProperty"),
|
|
5784
5790
|
basePropertyType: ElementViewBaseColumnType
|
|
5785
5791
|
});
|
|
5786
5792
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5787
|
-
type:
|
|
5788
|
-
propertyDefinitionId:
|
|
5793
|
+
type: z204.literal("PropertyDefinition"),
|
|
5794
|
+
propertyDefinitionId: z204.string()
|
|
5789
5795
|
});
|
|
5790
5796
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5791
|
-
type:
|
|
5792
|
-
themeId:
|
|
5797
|
+
type: z204.literal("Theme"),
|
|
5798
|
+
themeId: z204.string()
|
|
5793
5799
|
});
|
|
5794
|
-
var DTOElementViewColumn =
|
|
5800
|
+
var DTOElementViewColumn = z204.discriminatedUnion("type", [
|
|
5795
5801
|
DTOElementViewBasePropertyColumn,
|
|
5796
5802
|
DTOElementViewPropertyDefinitionColumn,
|
|
5797
5803
|
DTOElementViewThemeColumn
|
|
5798
5804
|
]);
|
|
5799
|
-
var DTOElementView =
|
|
5805
|
+
var DTOElementView = z204.object({
|
|
5800
5806
|
meta: ObjectMeta,
|
|
5801
|
-
persistentId:
|
|
5807
|
+
persistentId: z204.string(),
|
|
5802
5808
|
targetElementType: ElementPropertyTargetType,
|
|
5803
|
-
id:
|
|
5804
|
-
isDefault:
|
|
5805
|
-
columns:
|
|
5809
|
+
id: z204.string(),
|
|
5810
|
+
isDefault: z204.boolean(),
|
|
5811
|
+
columns: z204.array(DTOElementViewColumn)
|
|
5806
5812
|
});
|
|
5807
|
-
var DTOElementViewsListResponse =
|
|
5808
|
-
elementDataViews:
|
|
5813
|
+
var DTOElementViewsListResponse = z204.object({
|
|
5814
|
+
elementDataViews: z204.array(DTOElementView)
|
|
5809
5815
|
});
|
|
5810
5816
|
|
|
5811
5817
|
// src/api/dto/workspaces/git.ts
|
|
5812
|
-
import { z as
|
|
5813
|
-
var DTOGitOrganization =
|
|
5814
|
-
id:
|
|
5815
|
-
name:
|
|
5816
|
-
url:
|
|
5817
|
-
slug:
|
|
5818
|
+
import { z as z205 } from "zod";
|
|
5819
|
+
var DTOGitOrganization = z205.object({
|
|
5820
|
+
id: z205.string(),
|
|
5821
|
+
name: z205.string(),
|
|
5822
|
+
url: z205.string(),
|
|
5823
|
+
slug: z205.string()
|
|
5818
5824
|
});
|
|
5819
|
-
var DTOGitProject =
|
|
5820
|
-
id:
|
|
5821
|
-
name:
|
|
5822
|
-
url:
|
|
5823
|
-
slug:
|
|
5825
|
+
var DTOGitProject = z205.object({
|
|
5826
|
+
id: z205.string(),
|
|
5827
|
+
name: z205.string(),
|
|
5828
|
+
url: z205.string(),
|
|
5829
|
+
slug: z205.string()
|
|
5824
5830
|
});
|
|
5825
|
-
var DTOGitRepository =
|
|
5826
|
-
id:
|
|
5827
|
-
name:
|
|
5828
|
-
url:
|
|
5829
|
-
slug:
|
|
5830
|
-
defaultBranch:
|
|
5831
|
+
var DTOGitRepository = z205.object({
|
|
5832
|
+
id: z205.string(),
|
|
5833
|
+
name: z205.string(),
|
|
5834
|
+
url: z205.string(),
|
|
5835
|
+
slug: z205.string(),
|
|
5836
|
+
defaultBranch: z205.string().optional()
|
|
5831
5837
|
});
|
|
5832
|
-
var DTOGitBranch =
|
|
5833
|
-
name:
|
|
5834
|
-
lastCommitId:
|
|
5838
|
+
var DTOGitBranch = z205.object({
|
|
5839
|
+
name: z205.string(),
|
|
5840
|
+
lastCommitId: z205.string()
|
|
5835
5841
|
});
|
|
5836
5842
|
|
|
5837
5843
|
// src/api/dto/workspaces/integrations.ts
|
|
5838
|
-
import { z as
|
|
5844
|
+
import { z as z206 } from "zod";
|
|
5839
5845
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5840
5846
|
accessToken: true,
|
|
5841
5847
|
refreshToken: true
|
|
5842
5848
|
});
|
|
5843
|
-
var DTOIntegration =
|
|
5844
|
-
id:
|
|
5845
|
-
workspaceId:
|
|
5849
|
+
var DTOIntegration = z206.object({
|
|
5850
|
+
id: z206.string(),
|
|
5851
|
+
workspaceId: z206.string(),
|
|
5846
5852
|
type: ExtendedIntegrationType,
|
|
5847
|
-
createdAt:
|
|
5848
|
-
integrationCredentials:
|
|
5849
|
-
integrationDesignSystems:
|
|
5853
|
+
createdAt: z206.coerce.date(),
|
|
5854
|
+
integrationCredentials: z206.array(DTOIntegrationCredentials).optional(),
|
|
5855
|
+
integrationDesignSystems: z206.array(IntegrationDesignSystem).optional()
|
|
5850
5856
|
});
|
|
5851
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5852
|
-
url:
|
|
5857
|
+
var DTOIntegrationOAuthGetResponse = z206.object({
|
|
5858
|
+
url: z206.string()
|
|
5853
5859
|
});
|
|
5854
|
-
var DTOIntegrationPostResponse =
|
|
5860
|
+
var DTOIntegrationPostResponse = z206.object({
|
|
5855
5861
|
integration: DTOIntegration
|
|
5856
5862
|
});
|
|
5857
|
-
var DTOIntegrationsGetListResponse =
|
|
5863
|
+
var DTOIntegrationsGetListResponse = z206.object({
|
|
5858
5864
|
integrations: DTOIntegration.array()
|
|
5859
5865
|
});
|
|
5860
5866
|
|
|
5861
5867
|
// src/api/dto/workspaces/invitations.ts
|
|
5862
|
-
import { z as
|
|
5863
|
-
var DTOWorkspaceInvitationInput =
|
|
5864
|
-
email:
|
|
5868
|
+
import { z as z207 } from "zod";
|
|
5869
|
+
var DTOWorkspaceInvitationInput = z207.object({
|
|
5870
|
+
email: z207.string().email(),
|
|
5865
5871
|
role: WorkspaceRoleSchema
|
|
5866
5872
|
});
|
|
5867
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5873
|
+
var DTOWorkspaceInvitationsListInput = z207.object({
|
|
5868
5874
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5869
|
-
designSystemId:
|
|
5875
|
+
designSystemId: z207.string().optional()
|
|
5870
5876
|
});
|
|
5871
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5877
|
+
var DTOWorkspaceInvitationsResponse = z207.object({
|
|
5872
5878
|
invitations: WorkspaceInvitation.array()
|
|
5873
5879
|
});
|
|
5874
|
-
var DTOWorkspaceInviteUpdate =
|
|
5880
|
+
var DTOWorkspaceInviteUpdate = z207.object({
|
|
5875
5881
|
role: WorkspaceRoleSchema
|
|
5876
5882
|
});
|
|
5877
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5883
|
+
var DTOWorkspaceInvitationUpdateResponse = z207.object({
|
|
5878
5884
|
invitation: WorkspaceInvitation
|
|
5879
5885
|
});
|
|
5880
5886
|
|
|
5881
5887
|
// src/api/dto/workspaces/membership.ts
|
|
5882
|
-
import { z as
|
|
5888
|
+
import { z as z210 } from "zod";
|
|
5883
5889
|
|
|
5884
5890
|
// src/api/dto/workspaces/workspace.ts
|
|
5885
|
-
import { z as
|
|
5891
|
+
import { z as z209 } from "zod";
|
|
5886
5892
|
|
|
5887
5893
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5888
|
-
import { z as
|
|
5894
|
+
import { z as z208 } from "zod";
|
|
5889
5895
|
var DTONpmRegistryConfigConstants = {
|
|
5890
5896
|
passwordPlaceholder: "redacted"
|
|
5891
5897
|
};
|
|
5892
|
-
var DTONpmRegistryConfig =
|
|
5898
|
+
var DTONpmRegistryConfig = z208.object({
|
|
5893
5899
|
// Registry basic configuration
|
|
5894
5900
|
registryType: NpmRegistryType,
|
|
5895
|
-
registryUrl:
|
|
5896
|
-
customRegistryUrl:
|
|
5901
|
+
registryUrl: z208.string(),
|
|
5902
|
+
customRegistryUrl: z208.string().optional(),
|
|
5897
5903
|
// URL of Supernova NPM packages proxy
|
|
5898
|
-
proxyUrl:
|
|
5904
|
+
proxyUrl: z208.string(),
|
|
5899
5905
|
// Auth configuration
|
|
5900
5906
|
authType: NpmRegistryAuthType,
|
|
5901
|
-
accessToken:
|
|
5902
|
-
username:
|
|
5903
|
-
password:
|
|
5907
|
+
accessToken: z208.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5908
|
+
username: z208.string().optional(),
|
|
5909
|
+
password: z208.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5904
5910
|
// NPM package scopes for whih the proxy should be enabled
|
|
5905
|
-
enabledScopes:
|
|
5911
|
+
enabledScopes: z208.array(z208.string()),
|
|
5906
5912
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5907
5913
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5908
|
-
bypassProxy:
|
|
5914
|
+
bypassProxy: z208.boolean()
|
|
5909
5915
|
});
|
|
5910
5916
|
|
|
5911
5917
|
// src/api/dto/workspaces/workspace.ts
|
|
5912
5918
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
5913
|
-
var DTOWorkspace =
|
|
5914
|
-
id:
|
|
5919
|
+
var DTOWorkspace = z209.object({
|
|
5920
|
+
id: z209.string(),
|
|
5915
5921
|
profile: DTOWorkspaceProfile,
|
|
5916
5922
|
subscription: Subscription,
|
|
5917
5923
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5918
5924
|
});
|
|
5919
|
-
var DTOWorkspaceCreateInput =
|
|
5920
|
-
name:
|
|
5925
|
+
var DTOWorkspaceCreateInput = z209.object({
|
|
5926
|
+
name: z209.string()
|
|
5921
5927
|
});
|
|
5922
|
-
var DTOWorkspaceResponse =
|
|
5928
|
+
var DTOWorkspaceResponse = z209.object({
|
|
5923
5929
|
workspace: DTOWorkspace
|
|
5924
5930
|
});
|
|
5925
5931
|
|
|
5926
5932
|
// src/api/dto/workspaces/membership.ts
|
|
5927
|
-
var DTOWorkspaceRole =
|
|
5928
|
-
var DTOUserWorkspaceMembership =
|
|
5933
|
+
var DTOWorkspaceRole = z210.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5934
|
+
var DTOUserWorkspaceMembership = z210.object({
|
|
5929
5935
|
// Workspace the user is a member of
|
|
5930
5936
|
workspace: DTOWorkspace,
|
|
5931
5937
|
// Assigned role the user has in the workspace
|
|
@@ -5935,26 +5941,26 @@ var DTOUserWorkspaceMembership = z209.object({
|
|
|
5935
5941
|
// when a workspace's subscription is downgraded to free tier
|
|
5936
5942
|
effectiveRole: DTOWorkspaceRole
|
|
5937
5943
|
});
|
|
5938
|
-
var DTOWorkspaceMember =
|
|
5944
|
+
var DTOWorkspaceMember = z210.object({
|
|
5939
5945
|
user: User,
|
|
5940
5946
|
role: WorkspaceRoleSchema,
|
|
5941
5947
|
effectiveRole: WorkspaceRoleSchema
|
|
5942
5948
|
});
|
|
5943
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5944
|
-
membership:
|
|
5949
|
+
var DTOUserWorkspaceMembershipsResponse = z210.object({
|
|
5950
|
+
membership: z210.array(DTOUserWorkspaceMembership)
|
|
5945
5951
|
});
|
|
5946
|
-
var DTOWorkspaceMembersListResponse =
|
|
5947
|
-
members:
|
|
5952
|
+
var DTOWorkspaceMembersListResponse = z210.object({
|
|
5953
|
+
members: z210.array(DTOWorkspaceMember)
|
|
5948
5954
|
});
|
|
5949
5955
|
|
|
5950
5956
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5951
|
-
var DTOAppBootstrapDataQuery =
|
|
5952
|
-
preferredWorkspaceId:
|
|
5953
|
-
preferredDesignSystemId:
|
|
5954
|
-
preferredVersionId:
|
|
5955
|
-
preferredBrandId:
|
|
5957
|
+
var DTOAppBootstrapDataQuery = z211.object({
|
|
5958
|
+
preferredWorkspaceId: z211.string().optional(),
|
|
5959
|
+
preferredDesignSystemId: z211.string().optional(),
|
|
5960
|
+
preferredVersionId: z211.string().optional(),
|
|
5961
|
+
preferredBrandId: z211.string().optional()
|
|
5956
5962
|
});
|
|
5957
|
-
var DTOAppBootstrapDataResponse =
|
|
5963
|
+
var DTOAppBootstrapDataResponse = z211.object({
|
|
5958
5964
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5959
5965
|
designSystem: DTODesignSystem.optional(),
|
|
5960
5966
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5962,88 +5968,88 @@ var DTOAppBootstrapDataResponse = z210.object({
|
|
|
5962
5968
|
});
|
|
5963
5969
|
|
|
5964
5970
|
// src/api/dto/collections/token-collection.ts
|
|
5965
|
-
import { z as
|
|
5966
|
-
var DTOTokenCollection =
|
|
5967
|
-
id:
|
|
5968
|
-
persistentId:
|
|
5969
|
-
designSystemVersionId:
|
|
5971
|
+
import { z as z212 } from "zod";
|
|
5972
|
+
var DTOTokenCollection = z212.object({
|
|
5973
|
+
id: z212.string(),
|
|
5974
|
+
persistentId: z212.string(),
|
|
5975
|
+
designSystemVersionId: z212.string(),
|
|
5970
5976
|
meta: ObjectMeta,
|
|
5971
5977
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
5972
|
-
elementPropertyOptionId:
|
|
5973
|
-
createdAt:
|
|
5974
|
-
updatedAt:
|
|
5978
|
+
elementPropertyOptionId: z212.string(),
|
|
5979
|
+
createdAt: z212.coerce.date(),
|
|
5980
|
+
updatedAt: z212.coerce.date(),
|
|
5975
5981
|
origin: CollectionOrigin.optional()
|
|
5976
5982
|
});
|
|
5977
|
-
var DTOTokenCollectionsListReponse =
|
|
5983
|
+
var DTOTokenCollectionsListReponse = z212.object({
|
|
5978
5984
|
collections: DTOTokenCollection.array()
|
|
5979
5985
|
});
|
|
5980
5986
|
|
|
5981
5987
|
// src/api/dto/design-tokens/design-token.ts
|
|
5982
|
-
import { z as
|
|
5988
|
+
import { z as z213 } from "zod";
|
|
5983
5989
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
5984
|
-
|
|
5985
|
-
id:
|
|
5986
|
-
persistentId:
|
|
5987
|
-
designSystemVersionId:
|
|
5990
|
+
z213.object({
|
|
5991
|
+
id: z213.string(),
|
|
5992
|
+
persistentId: z213.string(),
|
|
5993
|
+
designSystemVersionId: z213.string(),
|
|
5988
5994
|
meta: ObjectMeta,
|
|
5989
5995
|
originStyle: DesignTokenOrigin.optional(),
|
|
5990
|
-
brandId:
|
|
5991
|
-
collectionId:
|
|
5992
|
-
updatedAt:
|
|
5996
|
+
brandId: z213.string(),
|
|
5997
|
+
collectionId: z213.string().optional(),
|
|
5998
|
+
updatedAt: z213.coerce.date()
|
|
5993
5999
|
})
|
|
5994
6000
|
);
|
|
5995
|
-
var DTODesignTokenListResponse =
|
|
6001
|
+
var DTODesignTokenListResponse = z213.object({
|
|
5996
6002
|
tokens: DTODesignToken.array()
|
|
5997
6003
|
});
|
|
5998
|
-
var DTODesignTokenResponse =
|
|
6004
|
+
var DTODesignTokenResponse = z213.object({
|
|
5999
6005
|
token: DTODesignToken
|
|
6000
6006
|
});
|
|
6001
|
-
var DTODesignTokenGroup =
|
|
6002
|
-
id:
|
|
6007
|
+
var DTODesignTokenGroup = z213.object({
|
|
6008
|
+
id: z213.string(),
|
|
6003
6009
|
tokenType: DesignTokenType,
|
|
6004
|
-
persistentId:
|
|
6005
|
-
isRoot:
|
|
6006
|
-
brandId:
|
|
6010
|
+
persistentId: z213.string(),
|
|
6011
|
+
isRoot: z213.boolean(),
|
|
6012
|
+
brandId: z213.string(),
|
|
6007
6013
|
meta: ObjectMeta,
|
|
6008
|
-
childrenIds:
|
|
6014
|
+
childrenIds: z213.string().array()
|
|
6009
6015
|
});
|
|
6010
|
-
var DTODesignTokenGroupListResponse =
|
|
6016
|
+
var DTODesignTokenGroupListResponse = z213.object({
|
|
6011
6017
|
groups: DTODesignTokenGroup.array()
|
|
6012
6018
|
});
|
|
6013
|
-
var DTODesignTokenGroupResponse =
|
|
6019
|
+
var DTODesignTokenGroupResponse = z213.object({
|
|
6014
6020
|
group: DTODesignTokenGroup
|
|
6015
6021
|
});
|
|
6016
6022
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6017
|
-
|
|
6018
|
-
persistentId:
|
|
6023
|
+
z213.object({
|
|
6024
|
+
persistentId: z213.string(),
|
|
6019
6025
|
meta: ObjectMeta,
|
|
6020
|
-
brandId:
|
|
6021
|
-
groupPersistentId:
|
|
6026
|
+
brandId: z213.string(),
|
|
6027
|
+
groupPersistentId: z213.string().optional()
|
|
6022
6028
|
})
|
|
6023
6029
|
);
|
|
6024
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6025
|
-
persistentId:
|
|
6030
|
+
var DTODesignTokenGroupCreatePayload = z213.object({
|
|
6031
|
+
persistentId: z213.string(),
|
|
6026
6032
|
meta: ObjectMeta,
|
|
6027
|
-
brandId:
|
|
6028
|
-
parentId:
|
|
6033
|
+
brandId: z213.string(),
|
|
6034
|
+
parentId: z213.string().optional(),
|
|
6029
6035
|
tokenType: DesignTokenType,
|
|
6030
|
-
childrenIds:
|
|
6036
|
+
childrenIds: z213.string().array()
|
|
6031
6037
|
});
|
|
6032
6038
|
|
|
6033
6039
|
// src/api/dto/documentation/anchor.ts
|
|
6034
|
-
import { z as
|
|
6040
|
+
import { z as z214 } from "zod";
|
|
6035
6041
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6036
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6037
|
-
anchors:
|
|
6042
|
+
var DTOGetDocumentationPageAnchorsResponse = z214.object({
|
|
6043
|
+
anchors: z214.array(DTODocumentationPageAnchor)
|
|
6038
6044
|
});
|
|
6039
6045
|
|
|
6040
6046
|
// src/api/dto/documentation/approvals.ts
|
|
6041
|
-
import { z as
|
|
6047
|
+
import { z as z215 } from "zod";
|
|
6042
6048
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
6043
|
-
var DTODocumentationGroupApprovalState =
|
|
6044
|
-
persistentId:
|
|
6045
|
-
groupId:
|
|
6046
|
-
designSystemVersionId:
|
|
6049
|
+
var DTODocumentationGroupApprovalState = z215.object({
|
|
6050
|
+
persistentId: z215.string(),
|
|
6051
|
+
groupId: z215.string(),
|
|
6052
|
+
designSystemVersionId: z215.string(),
|
|
6047
6053
|
approvalState: DocumentationPageApprovalState
|
|
6048
6054
|
});
|
|
6049
6055
|
|
|
@@ -6051,68 +6057,68 @@ var DTODocumentationGroupApprovalState = z214.object({
|
|
|
6051
6057
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6052
6058
|
|
|
6053
6059
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6054
|
-
import { z as
|
|
6060
|
+
import { z as z220 } from "zod";
|
|
6055
6061
|
|
|
6056
6062
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6057
|
-
import { z as
|
|
6063
|
+
import { z as z219 } from "zod";
|
|
6058
6064
|
|
|
6059
6065
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6060
|
-
import { z as
|
|
6066
|
+
import { z as z217 } from "zod";
|
|
6061
6067
|
|
|
6062
6068
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6063
|
-
import { z as
|
|
6069
|
+
import { z as z216 } from "zod";
|
|
6064
6070
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6065
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6066
|
-
showSidebar:
|
|
6067
|
-
isPrivate:
|
|
6068
|
-
isHidden:
|
|
6071
|
+
var DTODocumentationItemConfigurationV2 = z216.object({
|
|
6072
|
+
showSidebar: z216.boolean(),
|
|
6073
|
+
isPrivate: z216.boolean(),
|
|
6074
|
+
isHidden: z216.boolean(),
|
|
6069
6075
|
header: DTODocumentationItemHeaderV2
|
|
6070
6076
|
});
|
|
6071
6077
|
|
|
6072
6078
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6073
|
-
var DTODocumentationDraftChangeType =
|
|
6074
|
-
var DTODocumentationDraftStateCreated =
|
|
6075
|
-
changeType:
|
|
6076
|
-
});
|
|
6077
|
-
var DTODocumentationDraftStateUpdated =
|
|
6078
|
-
changeType:
|
|
6079
|
-
changes:
|
|
6080
|
-
previousTitle:
|
|
6079
|
+
var DTODocumentationDraftChangeType = z217.enum(["Created", "Updated", "Deleted"]);
|
|
6080
|
+
var DTODocumentationDraftStateCreated = z217.object({
|
|
6081
|
+
changeType: z217.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6082
|
+
});
|
|
6083
|
+
var DTODocumentationDraftStateUpdated = z217.object({
|
|
6084
|
+
changeType: z217.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6085
|
+
changes: z217.object({
|
|
6086
|
+
previousTitle: z217.string().optional(),
|
|
6081
6087
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6082
|
-
previousContentHash:
|
|
6088
|
+
previousContentHash: z217.string().optional()
|
|
6083
6089
|
})
|
|
6084
6090
|
});
|
|
6085
|
-
var DTODocumentationDraftStateDeleted =
|
|
6086
|
-
changeType:
|
|
6087
|
-
deletedAt:
|
|
6088
|
-
deletedByUserId:
|
|
6091
|
+
var DTODocumentationDraftStateDeleted = z217.object({
|
|
6092
|
+
changeType: z217.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6093
|
+
deletedAt: z217.coerce.date(),
|
|
6094
|
+
deletedByUserId: z217.string()
|
|
6089
6095
|
});
|
|
6090
|
-
var DTODocumentationDraftState =
|
|
6096
|
+
var DTODocumentationDraftState = z217.discriminatedUnion("changeType", [
|
|
6091
6097
|
DTODocumentationDraftStateCreated,
|
|
6092
6098
|
DTODocumentationDraftStateUpdated,
|
|
6093
6099
|
DTODocumentationDraftStateDeleted
|
|
6094
6100
|
]);
|
|
6095
6101
|
|
|
6096
6102
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6097
|
-
import { z as
|
|
6098
|
-
var DTODocumentationPublishMetadata =
|
|
6099
|
-
lastPublishedByUserId:
|
|
6100
|
-
lastPublishedAt:
|
|
6103
|
+
import { z as z218 } from "zod";
|
|
6104
|
+
var DTODocumentationPublishMetadata = z218.object({
|
|
6105
|
+
lastPublishedByUserId: z218.string(),
|
|
6106
|
+
lastPublishedAt: z218.coerce.date()
|
|
6101
6107
|
});
|
|
6102
6108
|
|
|
6103
6109
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6104
|
-
var DTODocumentationPageV2 =
|
|
6105
|
-
id:
|
|
6106
|
-
persistentId:
|
|
6107
|
-
designSystemVersionId:
|
|
6108
|
-
title:
|
|
6110
|
+
var DTODocumentationPageV2 = z219.object({
|
|
6111
|
+
id: z219.string(),
|
|
6112
|
+
persistentId: z219.string(),
|
|
6113
|
+
designSystemVersionId: z219.string(),
|
|
6114
|
+
title: z219.string(),
|
|
6109
6115
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6110
|
-
shortPersistentId:
|
|
6111
|
-
slug:
|
|
6112
|
-
userSlug:
|
|
6113
|
-
createdAt:
|
|
6114
|
-
updatedAt:
|
|
6115
|
-
path:
|
|
6116
|
+
shortPersistentId: z219.string(),
|
|
6117
|
+
slug: z219.string().optional(),
|
|
6118
|
+
userSlug: z219.string().optional(),
|
|
6119
|
+
createdAt: z219.coerce.date(),
|
|
6120
|
+
updatedAt: z219.coerce.date(),
|
|
6121
|
+
path: z219.string(),
|
|
6116
6122
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6117
6123
|
draftState: DTODocumentationDraftState.optional(),
|
|
6118
6124
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6120,215 +6126,215 @@ var DTODocumentationPageV2 = z218.object({
|
|
|
6120
6126
|
/** Defines the approval state of the documentation page */
|
|
6121
6127
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6122
6128
|
// Backward compatibility
|
|
6123
|
-
type:
|
|
6129
|
+
type: z219.literal("Page")
|
|
6124
6130
|
});
|
|
6125
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6131
|
+
var DTOCreateDocumentationPageInputV2 = z219.object({
|
|
6126
6132
|
// Identifier
|
|
6127
|
-
persistentId:
|
|
6133
|
+
persistentId: z219.string(),
|
|
6128
6134
|
// Page properties
|
|
6129
|
-
title:
|
|
6135
|
+
title: z219.string(),
|
|
6130
6136
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6131
6137
|
// Page placement properties
|
|
6132
|
-
parentPersistentId:
|
|
6133
|
-
afterPersistentId:
|
|
6138
|
+
parentPersistentId: z219.string(),
|
|
6139
|
+
afterPersistentId: z219.string().nullish()
|
|
6134
6140
|
});
|
|
6135
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6141
|
+
var DTOUpdateDocumentationPageInputV2 = z219.object({
|
|
6136
6142
|
// Identifier of the group to update
|
|
6137
|
-
id:
|
|
6143
|
+
id: z219.string(),
|
|
6138
6144
|
// Page properties
|
|
6139
|
-
title:
|
|
6145
|
+
title: z219.string().optional(),
|
|
6140
6146
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6141
6147
|
});
|
|
6142
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6148
|
+
var DTOMoveDocumentationPageInputV2 = z219.object({
|
|
6143
6149
|
// Identifier of the group to update
|
|
6144
|
-
id:
|
|
6150
|
+
id: z219.string(),
|
|
6145
6151
|
// Page placement properties
|
|
6146
|
-
parentPersistentId:
|
|
6147
|
-
afterPersistentId:
|
|
6152
|
+
parentPersistentId: z219.string(),
|
|
6153
|
+
afterPersistentId: z219.string().nullish()
|
|
6148
6154
|
});
|
|
6149
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6155
|
+
var DTODuplicateDocumentationPageInputV2 = z219.object({
|
|
6150
6156
|
// Identifier of the page to duplicate from
|
|
6151
|
-
id:
|
|
6157
|
+
id: z219.string(),
|
|
6152
6158
|
// New page persistent id
|
|
6153
|
-
persistentId:
|
|
6159
|
+
persistentId: z219.string(),
|
|
6154
6160
|
// Page placement properties
|
|
6155
|
-
parentPersistentId:
|
|
6156
|
-
afterPersistentId:
|
|
6161
|
+
parentPersistentId: z219.string(),
|
|
6162
|
+
afterPersistentId: z219.string().nullish()
|
|
6157
6163
|
});
|
|
6158
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6164
|
+
var DTODeleteDocumentationPageInputV2 = z219.object({
|
|
6159
6165
|
// Identifier
|
|
6160
|
-
id:
|
|
6166
|
+
id: z219.string()
|
|
6161
6167
|
});
|
|
6162
|
-
var DTORestoreDocumentationPageInput =
|
|
6163
|
-
persistentId:
|
|
6164
|
-
snapshotId:
|
|
6168
|
+
var DTORestoreDocumentationPageInput = z219.object({
|
|
6169
|
+
persistentId: z219.string(),
|
|
6170
|
+
snapshotId: z219.string().optional()
|
|
6165
6171
|
});
|
|
6166
|
-
var DTORestoreDocumentationGroupInput =
|
|
6167
|
-
persistentId:
|
|
6168
|
-
snapshotId:
|
|
6172
|
+
var DTORestoreDocumentationGroupInput = z219.object({
|
|
6173
|
+
persistentId: z219.string(),
|
|
6174
|
+
snapshotId: z219.string().optional()
|
|
6169
6175
|
});
|
|
6170
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6171
|
-
persistentId:
|
|
6176
|
+
var DTODocumentationPageApprovalStateChangeInput = z219.object({
|
|
6177
|
+
persistentId: z219.string(),
|
|
6172
6178
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6173
6179
|
});
|
|
6174
6180
|
|
|
6175
6181
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6176
|
-
var DTODocumentationPageSnapshot =
|
|
6177
|
-
id:
|
|
6178
|
-
designSystemVersionId:
|
|
6179
|
-
createdAt:
|
|
6180
|
-
updatedAt:
|
|
6182
|
+
var DTODocumentationPageSnapshot = z220.object({
|
|
6183
|
+
id: z220.string(),
|
|
6184
|
+
designSystemVersionId: z220.string(),
|
|
6185
|
+
createdAt: z220.string(),
|
|
6186
|
+
updatedAt: z220.string(),
|
|
6181
6187
|
documentationPage: DTODocumentationPageV2,
|
|
6182
|
-
pageContentHash:
|
|
6188
|
+
pageContentHash: z220.string(),
|
|
6183
6189
|
reason: DesignElementSnapshotReason
|
|
6184
6190
|
});
|
|
6185
6191
|
|
|
6186
6192
|
// src/api/dto/documentation/link-preview.ts
|
|
6187
|
-
import { z as
|
|
6188
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6193
|
+
import { z as z221 } from "zod";
|
|
6194
|
+
var DTODocumentationLinkPreviewResponse = z221.object({
|
|
6189
6195
|
linkPreview: DocumentationLinkPreview
|
|
6190
6196
|
});
|
|
6191
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6192
|
-
url:
|
|
6193
|
-
documentationItemPersistentId:
|
|
6197
|
+
var DTODocumentationLinkPreviewRequest = z221.object({
|
|
6198
|
+
url: z221.string().optional(),
|
|
6199
|
+
documentationItemPersistentId: z221.string().optional()
|
|
6194
6200
|
});
|
|
6195
6201
|
|
|
6196
6202
|
// src/api/dto/documentation/publish.ts
|
|
6197
|
-
import { z as
|
|
6203
|
+
import { z as z225 } from "zod";
|
|
6198
6204
|
|
|
6199
6205
|
// src/api/dto/export/exporter.ts
|
|
6200
|
-
import { z as
|
|
6201
|
-
var DTOExporterType =
|
|
6202
|
-
var DTOExporterSource =
|
|
6203
|
-
var DTOExporterMembershipRole =
|
|
6204
|
-
var DTOExporterListQuery =
|
|
6205
|
-
limit:
|
|
6206
|
-
});
|
|
6207
|
-
var DTOExporter =
|
|
6208
|
-
id:
|
|
6209
|
-
name:
|
|
6210
|
-
isPrivate:
|
|
6206
|
+
import { z as z222 } from "zod";
|
|
6207
|
+
var DTOExporterType = z222.enum(["documentation", "code"]);
|
|
6208
|
+
var DTOExporterSource = z222.enum(["git", "upload"]);
|
|
6209
|
+
var DTOExporterMembershipRole = z222.enum(["Owner", "OwnerArchived", "User"]);
|
|
6210
|
+
var DTOExporterListQuery = z222.object({
|
|
6211
|
+
limit: z222.coerce.number().optional()
|
|
6212
|
+
});
|
|
6213
|
+
var DTOExporter = z222.object({
|
|
6214
|
+
id: z222.string(),
|
|
6215
|
+
name: z222.string(),
|
|
6216
|
+
isPrivate: z222.boolean(),
|
|
6211
6217
|
exporterType: DTOExporterType,
|
|
6212
|
-
isDefaultDocumentationExporter:
|
|
6213
|
-
iconURL:
|
|
6218
|
+
isDefaultDocumentationExporter: z222.boolean(),
|
|
6219
|
+
iconURL: z222.string().optional(),
|
|
6214
6220
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6215
6221
|
customBlocks: PulsarCustomBlock.array(),
|
|
6216
|
-
blockVariants:
|
|
6217
|
-
usesBrands:
|
|
6218
|
-
usesThemes:
|
|
6222
|
+
blockVariants: z222.record(z222.string(), PulsarContributionVariant.array()),
|
|
6223
|
+
usesBrands: z222.boolean(),
|
|
6224
|
+
usesThemes: z222.boolean(),
|
|
6219
6225
|
source: DTOExporterSource,
|
|
6220
|
-
gitUrl: nullishToOptional(
|
|
6221
|
-
gitBranch: nullishToOptional(
|
|
6222
|
-
gitDirectory: nullishToOptional(
|
|
6226
|
+
gitUrl: nullishToOptional(z222.string()),
|
|
6227
|
+
gitBranch: nullishToOptional(z222.string()),
|
|
6228
|
+
gitDirectory: nullishToOptional(z222.string())
|
|
6223
6229
|
});
|
|
6224
|
-
var DTOExporterMembership =
|
|
6225
|
-
workspaceId:
|
|
6226
|
-
exporterId:
|
|
6230
|
+
var DTOExporterMembership = z222.object({
|
|
6231
|
+
workspaceId: z222.string(),
|
|
6232
|
+
exporterId: z222.string(),
|
|
6227
6233
|
role: DTOExporterMembershipRole
|
|
6228
6234
|
});
|
|
6229
|
-
var DTOExporterCreateOutput =
|
|
6235
|
+
var DTOExporterCreateOutput = z222.object({
|
|
6230
6236
|
exporter: DTOExporter,
|
|
6231
6237
|
membership: DTOExporterMembership
|
|
6232
6238
|
});
|
|
6233
|
-
var DTOExporterListResponse =
|
|
6239
|
+
var DTOExporterListResponse = z222.object({
|
|
6234
6240
|
exporters: DTOExporter.array(),
|
|
6235
6241
|
membership: DTOExporterMembership.array()
|
|
6236
6242
|
});
|
|
6237
|
-
var DTOExporterGitProviderEnum =
|
|
6238
|
-
var DTOExporterCreateInput =
|
|
6239
|
-
url:
|
|
6243
|
+
var DTOExporterGitProviderEnum = z222.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6244
|
+
var DTOExporterCreateInput = z222.object({
|
|
6245
|
+
url: z222.string(),
|
|
6240
6246
|
provider: DTOExporterGitProviderEnum
|
|
6241
6247
|
});
|
|
6242
|
-
var DTOExporterUpdateInput =
|
|
6243
|
-
url:
|
|
6248
|
+
var DTOExporterUpdateInput = z222.object({
|
|
6249
|
+
url: z222.string().optional()
|
|
6244
6250
|
});
|
|
6245
6251
|
|
|
6246
6252
|
// src/api/dto/export/filter.ts
|
|
6247
6253
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6248
6254
|
|
|
6249
6255
|
// src/api/dto/export/job.ts
|
|
6250
|
-
import { z as
|
|
6251
|
-
var DTOExportJobCreatedBy =
|
|
6252
|
-
userId:
|
|
6253
|
-
userName:
|
|
6256
|
+
import { z as z223 } from "zod";
|
|
6257
|
+
var DTOExportJobCreatedBy = z223.object({
|
|
6258
|
+
userId: z223.string(),
|
|
6259
|
+
userName: z223.string()
|
|
6254
6260
|
});
|
|
6255
|
-
var DTOExportJobDesignSystemPreview =
|
|
6256
|
-
id:
|
|
6261
|
+
var DTOExportJobDesignSystemPreview = z223.object({
|
|
6262
|
+
id: z223.string(),
|
|
6257
6263
|
meta: ObjectMeta
|
|
6258
6264
|
});
|
|
6259
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6260
|
-
id:
|
|
6265
|
+
var DTOExportJobDesignSystemVersionPreview = z223.object({
|
|
6266
|
+
id: z223.string(),
|
|
6261
6267
|
meta: ObjectMeta,
|
|
6262
|
-
version:
|
|
6263
|
-
isReadonly:
|
|
6268
|
+
version: z223.string(),
|
|
6269
|
+
isReadonly: z223.boolean()
|
|
6264
6270
|
});
|
|
6265
|
-
var DTOExportJobDestinations =
|
|
6271
|
+
var DTOExportJobDestinations = z223.object({
|
|
6266
6272
|
s3: ExporterDestinationS3.optional(),
|
|
6267
6273
|
azure: ExporterDestinationAzure.optional(),
|
|
6268
6274
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6269
6275
|
github: ExporterDestinationGithub.optional(),
|
|
6270
6276
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6271
6277
|
documentation: ExporterDestinationDocs.optional(),
|
|
6272
|
-
webhookUrl:
|
|
6278
|
+
webhookUrl: z223.string().optional()
|
|
6273
6279
|
});
|
|
6274
6280
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6275
6281
|
sndocs: true
|
|
6276
6282
|
}).extend({
|
|
6277
6283
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6278
6284
|
});
|
|
6279
|
-
var DTOExportJob =
|
|
6280
|
-
id:
|
|
6281
|
-
createdAt:
|
|
6282
|
-
finishedAt:
|
|
6283
|
-
index:
|
|
6285
|
+
var DTOExportJob = z223.object({
|
|
6286
|
+
id: z223.string(),
|
|
6287
|
+
createdAt: z223.coerce.date(),
|
|
6288
|
+
finishedAt: z223.coerce.date().optional(),
|
|
6289
|
+
index: z223.number().optional(),
|
|
6284
6290
|
status: ExportJobStatus,
|
|
6285
|
-
estimatedExecutionTime:
|
|
6291
|
+
estimatedExecutionTime: z223.number().optional(),
|
|
6286
6292
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6287
6293
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6288
6294
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6289
6295
|
destinations: DTOExportJobDestinations,
|
|
6290
|
-
exporterId:
|
|
6291
|
-
scheduleId:
|
|
6296
|
+
exporterId: z223.string(),
|
|
6297
|
+
scheduleId: z223.string().optional(),
|
|
6292
6298
|
result: DTOExportJobResult.optional(),
|
|
6293
|
-
brandPersistentId:
|
|
6294
|
-
themePersistentId:
|
|
6295
|
-
themePersistentIds:
|
|
6299
|
+
brandPersistentId: z223.string().optional(),
|
|
6300
|
+
themePersistentId: z223.string().optional(),
|
|
6301
|
+
themePersistentIds: z223.string().array().optional()
|
|
6296
6302
|
});
|
|
6297
|
-
var DTOExportJobResponse =
|
|
6303
|
+
var DTOExportJobResponse = z223.object({
|
|
6298
6304
|
job: DTOExportJob
|
|
6299
6305
|
});
|
|
6300
6306
|
|
|
6301
6307
|
// src/api/dto/export/pipeline.ts
|
|
6302
|
-
import { z as
|
|
6303
|
-
var DTOPipelineListQuery =
|
|
6304
|
-
designSystemId:
|
|
6305
|
-
exporterId:
|
|
6306
|
-
latestJobsLimit:
|
|
6307
|
-
});
|
|
6308
|
-
var DTOPipeline =
|
|
6309
|
-
id:
|
|
6310
|
-
name:
|
|
6308
|
+
import { z as z224 } from "zod";
|
|
6309
|
+
var DTOPipelineListQuery = z224.object({
|
|
6310
|
+
designSystemId: z224.string().optional(),
|
|
6311
|
+
exporterId: z224.string().optional(),
|
|
6312
|
+
latestJobsLimit: z224.coerce.number().optional()
|
|
6313
|
+
});
|
|
6314
|
+
var DTOPipeline = z224.object({
|
|
6315
|
+
id: z224.string(),
|
|
6316
|
+
name: z224.string(),
|
|
6311
6317
|
eventType: PipelineEventType,
|
|
6312
|
-
isEnabled:
|
|
6313
|
-
workspaceId:
|
|
6314
|
-
designSystemId:
|
|
6315
|
-
exporterId:
|
|
6316
|
-
brandPersistentId:
|
|
6317
|
-
themePersistentId:
|
|
6318
|
-
themePersistentIds:
|
|
6318
|
+
isEnabled: z224.boolean(),
|
|
6319
|
+
workspaceId: z224.string(),
|
|
6320
|
+
designSystemId: z224.string(),
|
|
6321
|
+
exporterId: z224.string(),
|
|
6322
|
+
brandPersistentId: z224.string().optional(),
|
|
6323
|
+
themePersistentId: z224.string().optional(),
|
|
6324
|
+
themePersistentIds: z224.string().array().optional(),
|
|
6319
6325
|
...ExportDestinationsMap.shape,
|
|
6320
6326
|
latestJobs: DTOExportJob.array()
|
|
6321
6327
|
});
|
|
6322
|
-
var DTOPipelineListResponse =
|
|
6328
|
+
var DTOPipelineListResponse = z224.object({
|
|
6323
6329
|
pipelines: DTOPipeline.array()
|
|
6324
6330
|
});
|
|
6325
|
-
var DTOPipelineResponse =
|
|
6331
|
+
var DTOPipelineResponse = z224.object({
|
|
6326
6332
|
pipeline: DTOPipeline
|
|
6327
6333
|
});
|
|
6328
6334
|
|
|
6329
6335
|
// src/api/dto/documentation/publish.ts
|
|
6330
6336
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6331
|
-
var DTOPublishDocumentationRequest =
|
|
6337
|
+
var DTOPublishDocumentationRequest = z225.object({
|
|
6332
6338
|
environment: PublishedDocEnvironment,
|
|
6333
6339
|
/**
|
|
6334
6340
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6336,42 +6342,42 @@ var DTOPublishDocumentationRequest = z224.object({
|
|
|
6336
6342
|
*/
|
|
6337
6343
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6338
6344
|
});
|
|
6339
|
-
var DTOPublishDocumentationResponse =
|
|
6345
|
+
var DTOPublishDocumentationResponse = z225.object({
|
|
6340
6346
|
job: DTOExportJob
|
|
6341
6347
|
});
|
|
6342
6348
|
|
|
6343
6349
|
// src/api/dto/elements/components/figma-component.ts
|
|
6344
|
-
import { z as
|
|
6350
|
+
import { z as z226 } from "zod";
|
|
6345
6351
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6346
|
-
var DTOFigmaComponentPropertyMap =
|
|
6347
|
-
var DTOFigmaComponent =
|
|
6348
|
-
id:
|
|
6349
|
-
persistentId:
|
|
6350
|
-
designSystemVersionId:
|
|
6351
|
-
brandId:
|
|
6352
|
-
thumbnailUrl:
|
|
6353
|
-
svgUrl:
|
|
6354
|
-
exportProperties:
|
|
6355
|
-
isAsset:
|
|
6352
|
+
var DTOFigmaComponentPropertyMap = z226.record(DTOFigmaComponentProperty);
|
|
6353
|
+
var DTOFigmaComponent = z226.object({
|
|
6354
|
+
id: z226.string(),
|
|
6355
|
+
persistentId: z226.string(),
|
|
6356
|
+
designSystemVersionId: z226.string(),
|
|
6357
|
+
brandId: z226.string(),
|
|
6358
|
+
thumbnailUrl: z226.string().optional(),
|
|
6359
|
+
svgUrl: z226.string().optional(),
|
|
6360
|
+
exportProperties: z226.object({
|
|
6361
|
+
isAsset: z226.boolean()
|
|
6356
6362
|
}),
|
|
6357
|
-
createdAt:
|
|
6358
|
-
updatedAt:
|
|
6363
|
+
createdAt: z226.coerce.date(),
|
|
6364
|
+
updatedAt: z226.coerce.date(),
|
|
6359
6365
|
meta: ObjectMeta,
|
|
6360
6366
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6361
|
-
parentComponentPersistentId:
|
|
6362
|
-
childrenPersistentIds:
|
|
6367
|
+
parentComponentPersistentId: z226.string().optional(),
|
|
6368
|
+
childrenPersistentIds: z226.string().array().optional(),
|
|
6363
6369
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6364
|
-
variantPropertyValues:
|
|
6370
|
+
variantPropertyValues: z226.record(z226.string()).optional()
|
|
6365
6371
|
});
|
|
6366
|
-
var DTOFigmaComponentListResponse =
|
|
6372
|
+
var DTOFigmaComponentListResponse = z226.object({
|
|
6367
6373
|
components: DTOFigmaComponent.array()
|
|
6368
6374
|
});
|
|
6369
6375
|
|
|
6370
6376
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6371
|
-
import { z as
|
|
6377
|
+
import { z as z228 } from "zod";
|
|
6372
6378
|
|
|
6373
6379
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6374
|
-
import { z as
|
|
6380
|
+
import { z as z227 } from "zod";
|
|
6375
6381
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6376
6382
|
sortOrder: true,
|
|
6377
6383
|
parentPersistentId: true,
|
|
@@ -6381,13 +6387,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6381
6387
|
data: true,
|
|
6382
6388
|
shortPersistentId: true
|
|
6383
6389
|
}).extend({
|
|
6384
|
-
title:
|
|
6385
|
-
isRoot:
|
|
6386
|
-
childrenIds:
|
|
6390
|
+
title: z227.string(),
|
|
6391
|
+
isRoot: z227.boolean(),
|
|
6392
|
+
childrenIds: z227.array(z227.string()),
|
|
6387
6393
|
groupBehavior: DocumentationGroupBehavior,
|
|
6388
|
-
shortPersistentId:
|
|
6394
|
+
shortPersistentId: z227.string(),
|
|
6389
6395
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6390
|
-
type:
|
|
6396
|
+
type: z227.literal("Group"),
|
|
6391
6397
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6392
6398
|
draftState: DTODocumentationDraftState.optional(),
|
|
6393
6399
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6395,127 +6401,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6395
6401
|
//** An approval state for frontend to utilize. */
|
|
6396
6402
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6397
6403
|
});
|
|
6398
|
-
var DTOCreateDocumentationGroupInput =
|
|
6404
|
+
var DTOCreateDocumentationGroupInput = z227.object({
|
|
6399
6405
|
// Identifier
|
|
6400
|
-
persistentId:
|
|
6406
|
+
persistentId: z227.string(),
|
|
6401
6407
|
// Group properties
|
|
6402
|
-
title:
|
|
6408
|
+
title: z227.string(),
|
|
6403
6409
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6404
6410
|
// Group placement properties
|
|
6405
|
-
afterPersistentId:
|
|
6406
|
-
parentPersistentId:
|
|
6411
|
+
afterPersistentId: z227.string().nullish(),
|
|
6412
|
+
parentPersistentId: z227.string()
|
|
6407
6413
|
});
|
|
6408
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6414
|
+
var DTOUpdateDocumentationGroupInput = z227.object({
|
|
6409
6415
|
// Identifier of the group to update
|
|
6410
|
-
id:
|
|
6416
|
+
id: z227.string(),
|
|
6411
6417
|
// Group properties
|
|
6412
|
-
title:
|
|
6418
|
+
title: z227.string().optional(),
|
|
6413
6419
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6414
6420
|
});
|
|
6415
|
-
var DTOMoveDocumentationGroupInput =
|
|
6421
|
+
var DTOMoveDocumentationGroupInput = z227.object({
|
|
6416
6422
|
// Identifier of the group to update
|
|
6417
|
-
id:
|
|
6423
|
+
id: z227.string(),
|
|
6418
6424
|
// Group placement properties
|
|
6419
|
-
parentPersistentId:
|
|
6420
|
-
afterPersistentId:
|
|
6425
|
+
parentPersistentId: z227.string(),
|
|
6426
|
+
afterPersistentId: z227.string().nullish()
|
|
6421
6427
|
});
|
|
6422
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6428
|
+
var DTODuplicateDocumentationGroupInput = z227.object({
|
|
6423
6429
|
// Identifier of the group to duplicate from
|
|
6424
|
-
id:
|
|
6430
|
+
id: z227.string(),
|
|
6425
6431
|
// New group persistent id
|
|
6426
|
-
persistentId:
|
|
6432
|
+
persistentId: z227.string(),
|
|
6427
6433
|
// Group placement properties
|
|
6428
|
-
afterPersistentId:
|
|
6429
|
-
parentPersistentId:
|
|
6434
|
+
afterPersistentId: z227.string().nullish(),
|
|
6435
|
+
parentPersistentId: z227.string()
|
|
6430
6436
|
});
|
|
6431
|
-
var DTOCreateDocumentationTabInput =
|
|
6437
|
+
var DTOCreateDocumentationTabInput = z227.object({
|
|
6432
6438
|
// New group persistent id
|
|
6433
|
-
persistentId:
|
|
6439
|
+
persistentId: z227.string(),
|
|
6434
6440
|
// If this is page, we will attempt to convert it to tab
|
|
6435
6441
|
// If this is tab group, we will add a new tab to it
|
|
6436
|
-
fromItemPersistentId:
|
|
6437
|
-
tabName:
|
|
6442
|
+
fromItemPersistentId: z227.string(),
|
|
6443
|
+
tabName: z227.string()
|
|
6438
6444
|
});
|
|
6439
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6445
|
+
var DTODeleteDocumentationTabGroupInput = z227.object({
|
|
6440
6446
|
// Deleted group id
|
|
6441
|
-
id:
|
|
6447
|
+
id: z227.string()
|
|
6442
6448
|
});
|
|
6443
|
-
var DTODeleteDocumentationGroupInput =
|
|
6449
|
+
var DTODeleteDocumentationGroupInput = z227.object({
|
|
6444
6450
|
// Identifier
|
|
6445
|
-
id:
|
|
6451
|
+
id: z227.string(),
|
|
6446
6452
|
// Deletion options
|
|
6447
|
-
deleteSubtree:
|
|
6453
|
+
deleteSubtree: z227.boolean().default(false)
|
|
6448
6454
|
});
|
|
6449
6455
|
|
|
6450
6456
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6451
|
-
var SuccessPayload =
|
|
6452
|
-
success:
|
|
6457
|
+
var SuccessPayload = z228.object({
|
|
6458
|
+
success: z228.literal(true)
|
|
6453
6459
|
});
|
|
6454
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6455
|
-
type:
|
|
6460
|
+
var DTODocumentationGroupCreateActionOutputV2 = z228.object({
|
|
6461
|
+
type: z228.literal("DocumentationGroupCreate"),
|
|
6456
6462
|
output: SuccessPayload
|
|
6457
6463
|
});
|
|
6458
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6459
|
-
type:
|
|
6464
|
+
var DTODocumentationTabCreateActionOutputV2 = z228.object({
|
|
6465
|
+
type: z228.literal("DocumentationTabCreate"),
|
|
6460
6466
|
output: SuccessPayload
|
|
6461
6467
|
});
|
|
6462
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6463
|
-
type:
|
|
6468
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z228.object({
|
|
6469
|
+
type: z228.literal("DocumentationGroupUpdate"),
|
|
6464
6470
|
output: SuccessPayload
|
|
6465
6471
|
});
|
|
6466
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6467
|
-
type:
|
|
6472
|
+
var DTODocumentationGroupMoveActionOutputV2 = z228.object({
|
|
6473
|
+
type: z228.literal("DocumentationGroupMove"),
|
|
6468
6474
|
output: SuccessPayload
|
|
6469
6475
|
});
|
|
6470
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6471
|
-
type:
|
|
6476
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z228.object({
|
|
6477
|
+
type: z228.literal("DocumentationGroupDuplicate"),
|
|
6472
6478
|
output: SuccessPayload
|
|
6473
6479
|
});
|
|
6474
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6475
|
-
type:
|
|
6480
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z228.object({
|
|
6481
|
+
type: z228.literal("DocumentationGroupDelete"),
|
|
6476
6482
|
output: SuccessPayload
|
|
6477
6483
|
});
|
|
6478
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6479
|
-
type:
|
|
6484
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z228.object({
|
|
6485
|
+
type: z228.literal("DocumentationTabGroupDelete"),
|
|
6480
6486
|
output: SuccessPayload
|
|
6481
6487
|
});
|
|
6482
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6483
|
-
type:
|
|
6488
|
+
var DTODocumentationGroupCreateActionInputV2 = z228.object({
|
|
6489
|
+
type: z228.literal("DocumentationGroupCreate"),
|
|
6484
6490
|
input: DTOCreateDocumentationGroupInput
|
|
6485
6491
|
});
|
|
6486
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6487
|
-
type:
|
|
6492
|
+
var DTODocumentationTabCreateActionInputV2 = z228.object({
|
|
6493
|
+
type: z228.literal("DocumentationTabCreate"),
|
|
6488
6494
|
input: DTOCreateDocumentationTabInput
|
|
6489
6495
|
});
|
|
6490
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6491
|
-
type:
|
|
6496
|
+
var DTODocumentationGroupUpdateActionInputV2 = z228.object({
|
|
6497
|
+
type: z228.literal("DocumentationGroupUpdate"),
|
|
6492
6498
|
input: DTOUpdateDocumentationGroupInput
|
|
6493
6499
|
});
|
|
6494
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6495
|
-
type:
|
|
6500
|
+
var DTODocumentationGroupMoveActionInputV2 = z228.object({
|
|
6501
|
+
type: z228.literal("DocumentationGroupMove"),
|
|
6496
6502
|
input: DTOMoveDocumentationGroupInput
|
|
6497
6503
|
});
|
|
6498
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6499
|
-
type:
|
|
6504
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z228.object({
|
|
6505
|
+
type: z228.literal("DocumentationGroupDuplicate"),
|
|
6500
6506
|
input: DTODuplicateDocumentationGroupInput
|
|
6501
6507
|
});
|
|
6502
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6503
|
-
type:
|
|
6508
|
+
var DTODocumentationGroupDeleteActionInputV2 = z228.object({
|
|
6509
|
+
type: z228.literal("DocumentationGroupDelete"),
|
|
6504
6510
|
input: DTODeleteDocumentationGroupInput
|
|
6505
6511
|
});
|
|
6506
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6507
|
-
type:
|
|
6512
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z228.object({
|
|
6513
|
+
type: z228.literal("DocumentationTabGroupDelete"),
|
|
6508
6514
|
input: DTODeleteDocumentationTabGroupInput
|
|
6509
6515
|
});
|
|
6510
6516
|
|
|
6511
6517
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6512
|
-
import { z as
|
|
6518
|
+
import { z as z230 } from "zod";
|
|
6513
6519
|
|
|
6514
6520
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6515
|
-
import { z as
|
|
6516
|
-
var DocumentationColorV1 =
|
|
6517
|
-
aliasTo:
|
|
6518
|
-
value:
|
|
6521
|
+
import { z as z229 } from "zod";
|
|
6522
|
+
var DocumentationColorV1 = z229.object({
|
|
6523
|
+
aliasTo: z229.string().optional(),
|
|
6524
|
+
value: z229.string().optional()
|
|
6519
6525
|
});
|
|
6520
6526
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6521
6527
|
foregroundColor: true,
|
|
@@ -6524,10 +6530,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6524
6530
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6525
6531
|
backgroundColor: DocumentationColorV1.optional()
|
|
6526
6532
|
});
|
|
6527
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6528
|
-
showSidebar:
|
|
6529
|
-
isPrivate:
|
|
6530
|
-
isHidden:
|
|
6533
|
+
var DTODocumentationItemConfigurationV1 = z229.object({
|
|
6534
|
+
showSidebar: z229.boolean(),
|
|
6535
|
+
isPrivate: z229.boolean(),
|
|
6536
|
+
isHidden: z229.boolean(),
|
|
6531
6537
|
header: DTODocumentationItemHeaderV1
|
|
6532
6538
|
});
|
|
6533
6539
|
|
|
@@ -6541,27 +6547,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6541
6547
|
data: true,
|
|
6542
6548
|
shortPersistentId: true
|
|
6543
6549
|
}).extend({
|
|
6544
|
-
title:
|
|
6545
|
-
isRoot:
|
|
6546
|
-
childrenIds:
|
|
6550
|
+
title: z230.string(),
|
|
6551
|
+
isRoot: z230.boolean(),
|
|
6552
|
+
childrenIds: z230.array(z230.string()),
|
|
6547
6553
|
groupBehavior: DocumentationGroupBehavior,
|
|
6548
|
-
shortPersistentId:
|
|
6549
|
-
type:
|
|
6554
|
+
shortPersistentId: z230.string(),
|
|
6555
|
+
type: z230.literal("Group")
|
|
6550
6556
|
});
|
|
6551
6557
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6552
6558
|
configuration: DTODocumentationItemConfigurationV1
|
|
6553
6559
|
});
|
|
6554
6560
|
|
|
6555
6561
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6556
|
-
import { z as
|
|
6557
|
-
var DTODocumentationHierarchyV2 =
|
|
6558
|
-
pages:
|
|
6562
|
+
import { z as z231 } from "zod";
|
|
6563
|
+
var DTODocumentationHierarchyV2 = z231.object({
|
|
6564
|
+
pages: z231.array(
|
|
6559
6565
|
DTODocumentationPageV2.extend({
|
|
6560
6566
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6561
6567
|
draftState: DTODocumentationDraftState.optional()
|
|
6562
6568
|
})
|
|
6563
6569
|
),
|
|
6564
|
-
groups:
|
|
6570
|
+
groups: z231.array(
|
|
6565
6571
|
DTODocumentationGroupV2.extend({
|
|
6566
6572
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6567
6573
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6570,84 +6576,84 @@ var DTODocumentationHierarchyV2 = z230.object({
|
|
|
6570
6576
|
});
|
|
6571
6577
|
|
|
6572
6578
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6573
|
-
import { z as
|
|
6574
|
-
var SuccessPayload2 =
|
|
6575
|
-
success:
|
|
6579
|
+
import { z as z232 } from "zod";
|
|
6580
|
+
var SuccessPayload2 = z232.object({
|
|
6581
|
+
success: z232.literal(true)
|
|
6576
6582
|
});
|
|
6577
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6578
|
-
type:
|
|
6583
|
+
var DTODocumentationPageCreateActionOutputV2 = z232.object({
|
|
6584
|
+
type: z232.literal("DocumentationPageCreate"),
|
|
6579
6585
|
output: SuccessPayload2
|
|
6580
6586
|
});
|
|
6581
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6582
|
-
type:
|
|
6587
|
+
var DTODocumentationPageUpdateActionOutputV2 = z232.object({
|
|
6588
|
+
type: z232.literal("DocumentationPageUpdate"),
|
|
6583
6589
|
output: SuccessPayload2
|
|
6584
6590
|
});
|
|
6585
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6586
|
-
type:
|
|
6591
|
+
var DTODocumentationPageMoveActionOutputV2 = z232.object({
|
|
6592
|
+
type: z232.literal("DocumentationPageMove"),
|
|
6587
6593
|
output: SuccessPayload2
|
|
6588
6594
|
});
|
|
6589
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6590
|
-
type:
|
|
6595
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z232.object({
|
|
6596
|
+
type: z232.literal("DocumentationPageDuplicate"),
|
|
6591
6597
|
output: SuccessPayload2
|
|
6592
6598
|
});
|
|
6593
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6594
|
-
type:
|
|
6599
|
+
var DTODocumentationPageDeleteActionOutputV2 = z232.object({
|
|
6600
|
+
type: z232.literal("DocumentationPageDelete"),
|
|
6595
6601
|
output: SuccessPayload2
|
|
6596
6602
|
});
|
|
6597
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6598
|
-
type:
|
|
6603
|
+
var DTODocumentationPageRestoreActionOutput = z232.object({
|
|
6604
|
+
type: z232.literal("DocumentationPageRestore"),
|
|
6599
6605
|
output: SuccessPayload2
|
|
6600
6606
|
});
|
|
6601
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6602
|
-
type:
|
|
6607
|
+
var DTODocumentationGroupRestoreActionOutput = z232.object({
|
|
6608
|
+
type: z232.literal("DocumentationGroupRestore"),
|
|
6603
6609
|
output: SuccessPayload2
|
|
6604
6610
|
});
|
|
6605
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6606
|
-
type:
|
|
6611
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z232.object({
|
|
6612
|
+
type: z232.literal("DocumentationPageApprovalStateChange"),
|
|
6607
6613
|
output: SuccessPayload2
|
|
6608
6614
|
});
|
|
6609
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6610
|
-
type:
|
|
6615
|
+
var DTODocumentationPageCreateActionInputV2 = z232.object({
|
|
6616
|
+
type: z232.literal("DocumentationPageCreate"),
|
|
6611
6617
|
input: DTOCreateDocumentationPageInputV2
|
|
6612
6618
|
});
|
|
6613
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6614
|
-
type:
|
|
6619
|
+
var DTODocumentationPageUpdateActionInputV2 = z232.object({
|
|
6620
|
+
type: z232.literal("DocumentationPageUpdate"),
|
|
6615
6621
|
input: DTOUpdateDocumentationPageInputV2
|
|
6616
6622
|
});
|
|
6617
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6618
|
-
type:
|
|
6623
|
+
var DTODocumentationPageMoveActionInputV2 = z232.object({
|
|
6624
|
+
type: z232.literal("DocumentationPageMove"),
|
|
6619
6625
|
input: DTOMoveDocumentationPageInputV2
|
|
6620
6626
|
});
|
|
6621
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6622
|
-
type:
|
|
6627
|
+
var DTODocumentationPageDuplicateActionInputV2 = z232.object({
|
|
6628
|
+
type: z232.literal("DocumentationPageDuplicate"),
|
|
6623
6629
|
input: DTODuplicateDocumentationPageInputV2
|
|
6624
6630
|
});
|
|
6625
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6626
|
-
type:
|
|
6631
|
+
var DTODocumentationPageDeleteActionInputV2 = z232.object({
|
|
6632
|
+
type: z232.literal("DocumentationPageDelete"),
|
|
6627
6633
|
input: DTODeleteDocumentationPageInputV2
|
|
6628
6634
|
});
|
|
6629
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6630
|
-
type:
|
|
6635
|
+
var DTODocumentationPageRestoreActionInput = z232.object({
|
|
6636
|
+
type: z232.literal("DocumentationPageRestore"),
|
|
6631
6637
|
input: DTORestoreDocumentationPageInput
|
|
6632
6638
|
});
|
|
6633
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6634
|
-
type:
|
|
6639
|
+
var DTODocumentationGroupRestoreActionInput = z232.object({
|
|
6640
|
+
type: z232.literal("DocumentationGroupRestore"),
|
|
6635
6641
|
input: DTORestoreDocumentationGroupInput
|
|
6636
6642
|
});
|
|
6637
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6638
|
-
type:
|
|
6643
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z232.object({
|
|
6644
|
+
type: z232.literal("DocumentationPageApprovalStateChange"),
|
|
6639
6645
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6640
6646
|
});
|
|
6641
6647
|
|
|
6642
6648
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6643
|
-
import { z as
|
|
6649
|
+
import { z as z233 } from "zod";
|
|
6644
6650
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6645
|
-
var DTODocumentationPageContentGetResponse =
|
|
6651
|
+
var DTODocumentationPageContentGetResponse = z233.object({
|
|
6646
6652
|
pageContent: DTODocumentationPageContent
|
|
6647
6653
|
});
|
|
6648
6654
|
|
|
6649
6655
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6650
|
-
import { z as
|
|
6656
|
+
import { z as z234 } from "zod";
|
|
6651
6657
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6652
6658
|
data: true,
|
|
6653
6659
|
meta: true,
|
|
@@ -6655,32 +6661,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6655
6661
|
sortOrder: true
|
|
6656
6662
|
}).extend({
|
|
6657
6663
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6658
|
-
blocks:
|
|
6659
|
-
title:
|
|
6660
|
-
path:
|
|
6664
|
+
blocks: z234.array(PageBlockV1),
|
|
6665
|
+
title: z234.string(),
|
|
6666
|
+
path: z234.string()
|
|
6661
6667
|
});
|
|
6662
6668
|
|
|
6663
6669
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6664
|
-
import { z as
|
|
6670
|
+
import { z as z235 } from "zod";
|
|
6665
6671
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6666
|
-
var DTOFigmaNodeOrigin =
|
|
6667
|
-
sourceId:
|
|
6668
|
-
fileId:
|
|
6669
|
-
parentName:
|
|
6672
|
+
var DTOFigmaNodeOrigin = z235.object({
|
|
6673
|
+
sourceId: z235.string(),
|
|
6674
|
+
fileId: z235.string().optional(),
|
|
6675
|
+
parentName: z235.string().optional()
|
|
6670
6676
|
});
|
|
6671
|
-
var DTOFigmaNodeData =
|
|
6677
|
+
var DTOFigmaNodeData = z235.object({
|
|
6672
6678
|
// Id of the node in the Figma file
|
|
6673
|
-
figmaNodeId:
|
|
6679
|
+
figmaNodeId: z235.string(),
|
|
6674
6680
|
// Validity
|
|
6675
|
-
isValid:
|
|
6681
|
+
isValid: z235.boolean(),
|
|
6676
6682
|
// Asset data
|
|
6677
|
-
assetId:
|
|
6678
|
-
assetUrl:
|
|
6683
|
+
assetId: z235.string(),
|
|
6684
|
+
assetUrl: z235.string(),
|
|
6679
6685
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6680
6686
|
// Asset metadata
|
|
6681
|
-
assetScale:
|
|
6682
|
-
assetWidth:
|
|
6683
|
-
assetHeight:
|
|
6687
|
+
assetScale: z235.number(),
|
|
6688
|
+
assetWidth: z235.number().optional(),
|
|
6689
|
+
assetHeight: z235.number().optional()
|
|
6684
6690
|
});
|
|
6685
6691
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6686
6692
|
data: true,
|
|
@@ -6689,15 +6695,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6689
6695
|
data: DTOFigmaNodeData,
|
|
6690
6696
|
origin: DTOFigmaNodeOrigin
|
|
6691
6697
|
});
|
|
6692
|
-
var DTOFigmaNodeRenderInput =
|
|
6698
|
+
var DTOFigmaNodeRenderInput = z235.object({
|
|
6693
6699
|
/**
|
|
6694
6700
|
* Id of a design system's data source representing a linked Figma file
|
|
6695
6701
|
*/
|
|
6696
|
-
sourceId:
|
|
6702
|
+
sourceId: z235.string(),
|
|
6697
6703
|
/**
|
|
6698
6704
|
* Id of a node within the Figma file
|
|
6699
6705
|
*/
|
|
6700
|
-
figmaFileNodeId:
|
|
6706
|
+
figmaFileNodeId: z235.string(),
|
|
6701
6707
|
/**
|
|
6702
6708
|
* Format in which the node must be rendered, png by default.
|
|
6703
6709
|
*/
|
|
@@ -6705,108 +6711,91 @@ var DTOFigmaNodeRenderInput = z234.object({
|
|
|
6705
6711
|
});
|
|
6706
6712
|
|
|
6707
6713
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6708
|
-
import { z as
|
|
6709
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6710
|
-
type:
|
|
6711
|
-
figmaNodes:
|
|
6714
|
+
import { z as z236 } from "zod";
|
|
6715
|
+
var DTOFigmaNodeRenderActionOutput = z236.object({
|
|
6716
|
+
type: z236.literal("FigmaNodeRender"),
|
|
6717
|
+
figmaNodes: z236.array(DTOFigmaNode)
|
|
6712
6718
|
});
|
|
6713
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6714
|
-
type:
|
|
6719
|
+
var DTOFigmaNodeRenderActionInput = z236.object({
|
|
6720
|
+
type: z236.literal("FigmaNodeRender"),
|
|
6715
6721
|
input: DTOFigmaNodeRenderInput.array()
|
|
6716
6722
|
});
|
|
6717
6723
|
|
|
6718
|
-
// src/api/dto/elements/properties/property-definitions
|
|
6724
|
+
// src/api/dto/elements/properties/property-definitions.ts
|
|
6725
|
+
import { z as z238 } from "zod";
|
|
6726
|
+
|
|
6727
|
+
// src/api/dto/aux/meta.ts
|
|
6719
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
|
+
});
|
|
6720
6733
|
|
|
6721
6734
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6722
|
-
import { z as z236 } from "zod";
|
|
6723
6735
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6724
|
-
var
|
|
6725
|
-
id:
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6736
|
+
var DTOElementPropertyDefinitionOption = z238.object({
|
|
6737
|
+
id: z238.string(),
|
|
6738
|
+
name: z238.string(),
|
|
6739
|
+
backgroundColor: DTOColorTokenInlineData.optional()
|
|
6740
|
+
});
|
|
6741
|
+
var DTOElementPropertyDefinition = z238.object({
|
|
6742
|
+
id: z238.string(),
|
|
6743
|
+
designSystemVersionId: z238.string(),
|
|
6744
|
+
meta: DTOObjectMeta,
|
|
6745
|
+
persistentId: z238.string(),
|
|
6729
6746
|
type: ElementPropertyTypeSchema,
|
|
6730
6747
|
targetElementType: ElementPropertyTargetType,
|
|
6731
|
-
codeName:
|
|
6732
|
-
options: nullishToOptional(
|
|
6748
|
+
codeName: z238.string().regex(CODE_NAME_REGEX2),
|
|
6749
|
+
options: nullishToOptional(z238.array(DTOElementPropertyDefinitionOption)),
|
|
6733
6750
|
linkElementType: nullishToOptional(ElementPropertyLinkType)
|
|
6734
6751
|
});
|
|
6735
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
6736
|
-
definitions:
|
|
6737
|
-
});
|
|
6738
|
-
var DTOElementPropertyDefinitionResponse = z236.object({
|
|
6739
|
-
definition: DTOElementPropertyDefinition
|
|
6740
|
-
});
|
|
6741
|
-
var DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinition.omit({
|
|
6742
|
-
id: true,
|
|
6743
|
-
designSystemVersionId: true
|
|
6744
|
-
});
|
|
6745
|
-
var DTOElementPropertyDefinitionUpdatePayload = z236.object({
|
|
6746
|
-
id: z236.string(),
|
|
6747
|
-
name: z236.string().optional(),
|
|
6748
|
-
description: z236.string().optional(),
|
|
6749
|
-
codeName: z236.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6750
|
-
options: z236.array(ElementPropertyDefinitionOption).optional()
|
|
6752
|
+
var DTOElementPropertyDefinitionListResponse = z238.object({
|
|
6753
|
+
definitions: z238.array(DTOElementPropertyDefinition)
|
|
6751
6754
|
});
|
|
6752
|
-
var
|
|
6753
|
-
id: z236.string()
|
|
6754
|
-
});
|
|
6755
|
-
|
|
6756
|
-
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6757
|
-
var SuccessPayload3 = z237.object({
|
|
6758
|
-
success: z237.literal(true)
|
|
6759
|
-
});
|
|
6760
|
-
var DTOPropertyDefinitionCreateActionOutputV2 = z237.object({
|
|
6761
|
-
type: z237.literal("PropertyDefinitionCreate"),
|
|
6762
|
-
definition: DTOElementPropertyDefinition
|
|
6763
|
-
});
|
|
6764
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 = z237.object({
|
|
6765
|
-
type: z237.literal("PropertyDefinitionUpdate"),
|
|
6755
|
+
var DTOElementPropertyDefinitionResponse = z238.object({
|
|
6766
6756
|
definition: DTOElementPropertyDefinition
|
|
6767
6757
|
});
|
|
6768
|
-
var
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
type: z237.literal("PropertyDefinitionUpdate"),
|
|
6778
|
-
input: DTOElementPropertyDefinitionUpdatePayload
|
|
6758
|
+
var DTOElementPropertyDefinitionCreatePayload = z238.object({
|
|
6759
|
+
meta: DTOObjectMeta,
|
|
6760
|
+
persistentId: z238.string(),
|
|
6761
|
+
type: ElementPropertyTypeSchema,
|
|
6762
|
+
targetElementType: ElementPropertyTargetType,
|
|
6763
|
+
codeName: z238.string().regex(CODE_NAME_REGEX2),
|
|
6764
|
+
options: nullishToOptional(z238.array(DTOElementPropertyDefinitionOption)),
|
|
6765
|
+
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6766
|
+
columnWidth: z238.number().max(1024).optional()
|
|
6779
6767
|
});
|
|
6780
|
-
var
|
|
6781
|
-
|
|
6782
|
-
|
|
6768
|
+
var DTOElementPropertyDefinitionUpdatePayload = z238.object({
|
|
6769
|
+
meta: DTOObjectMeta.optional(),
|
|
6770
|
+
codeName: z238.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6771
|
+
options: z238.array(DTOElementPropertyDefinitionOption).optional()
|
|
6783
6772
|
});
|
|
6784
6773
|
|
|
6785
6774
|
// src/api/dto/elements/properties/property-values.ts
|
|
6786
|
-
import { z as
|
|
6787
|
-
var DTOElementPropertyValue =
|
|
6788
|
-
id:
|
|
6789
|
-
designSystemVersionId:
|
|
6790
|
-
definitionId:
|
|
6791
|
-
targetElementId:
|
|
6792
|
-
value:
|
|
6793
|
-
valuePreview:
|
|
6794
|
-
});
|
|
6795
|
-
var DTOElementPropertyValueListResponse =
|
|
6796
|
-
values:
|
|
6797
|
-
});
|
|
6798
|
-
var DTOElementPropertyValueResponse =
|
|
6775
|
+
import { z as z239 } from "zod";
|
|
6776
|
+
var DTOElementPropertyValue = z239.object({
|
|
6777
|
+
id: z239.string(),
|
|
6778
|
+
designSystemVersionId: z239.string(),
|
|
6779
|
+
definitionId: z239.string(),
|
|
6780
|
+
targetElementId: z239.string(),
|
|
6781
|
+
value: z239.union([z239.string(), z239.number(), z239.boolean()]).optional(),
|
|
6782
|
+
valuePreview: z239.string().optional()
|
|
6783
|
+
});
|
|
6784
|
+
var DTOElementPropertyValueListResponse = z239.object({
|
|
6785
|
+
values: z239.array(DTOElementPropertyValue)
|
|
6786
|
+
});
|
|
6787
|
+
var DTOElementPropertyValueResponse = z239.object({
|
|
6799
6788
|
value: DTOElementPropertyValue
|
|
6800
6789
|
});
|
|
6801
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
6802
|
-
definitionId:
|
|
6803
|
-
targetElementId:
|
|
6804
|
-
value:
|
|
6790
|
+
var DTOElementPropertyValueUpsertPaylod = z239.object({
|
|
6791
|
+
definitionId: z239.string(),
|
|
6792
|
+
targetElementId: z239.string(),
|
|
6793
|
+
value: z239.string().or(z239.number()).or(z239.boolean())
|
|
6805
6794
|
});
|
|
6806
6795
|
|
|
6807
6796
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6808
|
-
import { z as
|
|
6809
|
-
var DTOElementActionOutput =
|
|
6797
|
+
import { z as z240 } from "zod";
|
|
6798
|
+
var DTOElementActionOutput = z240.discriminatedUnion("type", [
|
|
6810
6799
|
// Documentation pages
|
|
6811
6800
|
DTODocumentationPageCreateActionOutputV2,
|
|
6812
6801
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6823,17 +6812,13 @@ var DTOElementActionOutput = z239.discriminatedUnion("type", [
|
|
|
6823
6812
|
DTODocumentationTabGroupDeleteActionOutputV2,
|
|
6824
6813
|
// Figma frames
|
|
6825
6814
|
DTOFigmaNodeRenderActionOutput,
|
|
6826
|
-
// Properties Definitions
|
|
6827
|
-
DTOPropertyDefinitionCreateActionOutputV2,
|
|
6828
|
-
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
6829
|
-
DTOPropertyDefinitionDeleteActionOutputV2,
|
|
6830
6815
|
// Restore
|
|
6831
6816
|
DTODocumentationPageRestoreActionOutput,
|
|
6832
6817
|
DTODocumentationGroupRestoreActionOutput,
|
|
6833
6818
|
// Approvals
|
|
6834
6819
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6835
6820
|
]);
|
|
6836
|
-
var DTOElementActionInput =
|
|
6821
|
+
var DTOElementActionInput = z240.discriminatedUnion("type", [
|
|
6837
6822
|
// Documentation pages
|
|
6838
6823
|
DTODocumentationPageCreateActionInputV2,
|
|
6839
6824
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6850,10 +6835,6 @@ var DTOElementActionInput = z239.discriminatedUnion("type", [
|
|
|
6850
6835
|
DTODocumentationTabGroupDeleteActionInputV2,
|
|
6851
6836
|
// Figma frames
|
|
6852
6837
|
DTOFigmaNodeRenderActionInput,
|
|
6853
|
-
// Properties Definitions
|
|
6854
|
-
DTOPropertyDefinitionCreateActionInputV2,
|
|
6855
|
-
DTOPropertyDefinitionUpdateActionInputV2,
|
|
6856
|
-
DTOPropertyDefinitionDeleteActionInputV2,
|
|
6857
6838
|
// Restore
|
|
6858
6839
|
DTODocumentationPageRestoreActionInput,
|
|
6859
6840
|
DTODocumentationGroupRestoreActionInput,
|
|
@@ -6862,80 +6843,80 @@ var DTOElementActionInput = z239.discriminatedUnion("type", [
|
|
|
6862
6843
|
]);
|
|
6863
6844
|
|
|
6864
6845
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6865
|
-
import { z as
|
|
6866
|
-
var DTOElementsGetTypeFilter =
|
|
6867
|
-
var DTOElementsGetQuerySchema =
|
|
6868
|
-
types:
|
|
6846
|
+
import { z as z241 } from "zod";
|
|
6847
|
+
var DTOElementsGetTypeFilter = z241.enum(["FigmaNode"]);
|
|
6848
|
+
var DTOElementsGetQuerySchema = z241.object({
|
|
6849
|
+
types: z241.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6869
6850
|
});
|
|
6870
|
-
var DTOElementsGetOutput =
|
|
6871
|
-
figmaNodes:
|
|
6851
|
+
var DTOElementsGetOutput = z241.object({
|
|
6852
|
+
figmaNodes: z241.array(DTOFigmaNode).optional()
|
|
6872
6853
|
});
|
|
6873
6854
|
|
|
6874
6855
|
// src/api/dto/figma-components/assets/download.ts
|
|
6875
|
-
import { z as
|
|
6876
|
-
var DTOAssetRenderConfiguration =
|
|
6877
|
-
prefix:
|
|
6878
|
-
suffix:
|
|
6879
|
-
scale:
|
|
6880
|
-
format:
|
|
6881
|
-
});
|
|
6882
|
-
var DTORenderedAssetFile =
|
|
6883
|
-
assetId:
|
|
6884
|
-
fileName:
|
|
6885
|
-
sourceUrl:
|
|
6856
|
+
import { z as z242 } from "zod";
|
|
6857
|
+
var DTOAssetRenderConfiguration = z242.object({
|
|
6858
|
+
prefix: z242.string().optional(),
|
|
6859
|
+
suffix: z242.string().optional(),
|
|
6860
|
+
scale: z242.enum(["x1", "x2", "x3", "x4"]),
|
|
6861
|
+
format: z242.enum(["png", "pdf", "svg"])
|
|
6862
|
+
});
|
|
6863
|
+
var DTORenderedAssetFile = z242.object({
|
|
6864
|
+
assetId: z242.string(),
|
|
6865
|
+
fileName: z242.string(),
|
|
6866
|
+
sourceUrl: z242.string(),
|
|
6886
6867
|
settings: DTOAssetRenderConfiguration,
|
|
6887
|
-
originalName:
|
|
6868
|
+
originalName: z242.string()
|
|
6888
6869
|
});
|
|
6889
|
-
var DTODownloadAssetsRequest =
|
|
6890
|
-
persistentIds:
|
|
6870
|
+
var DTODownloadAssetsRequest = z242.object({
|
|
6871
|
+
persistentIds: z242.array(z242.string().uuid()).optional(),
|
|
6891
6872
|
settings: DTOAssetRenderConfiguration.array()
|
|
6892
6873
|
});
|
|
6893
|
-
var DTODownloadAssetsResponse =
|
|
6874
|
+
var DTODownloadAssetsResponse = z242.object({
|
|
6894
6875
|
items: DTORenderedAssetFile.array()
|
|
6895
6876
|
});
|
|
6896
6877
|
|
|
6897
6878
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6898
|
-
import { z as
|
|
6899
|
-
var DTOLiveblocksAuthResponse =
|
|
6900
|
-
token:
|
|
6879
|
+
import { z as z243 } from "zod";
|
|
6880
|
+
var DTOLiveblocksAuthResponse = z243.object({
|
|
6881
|
+
token: z243.string()
|
|
6901
6882
|
});
|
|
6902
6883
|
|
|
6903
6884
|
// src/api/dto/themes/override.ts
|
|
6904
|
-
import { z as
|
|
6885
|
+
import { z as z244 } from "zod";
|
|
6905
6886
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
6906
|
-
|
|
6907
|
-
tokenPersistentId:
|
|
6887
|
+
z244.object({
|
|
6888
|
+
tokenPersistentId: z244.string(),
|
|
6908
6889
|
origin: ThemeOverrideOrigin.optional()
|
|
6909
6890
|
})
|
|
6910
6891
|
);
|
|
6911
6892
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
6912
|
-
|
|
6913
|
-
tokenPersistentId:
|
|
6893
|
+
z244.object({
|
|
6894
|
+
tokenPersistentId: z244.string()
|
|
6914
6895
|
})
|
|
6915
6896
|
);
|
|
6916
6897
|
|
|
6917
6898
|
// src/api/dto/themes/theme.ts
|
|
6918
|
-
import { z as
|
|
6919
|
-
var DTOTheme =
|
|
6920
|
-
id:
|
|
6921
|
-
persistentId:
|
|
6922
|
-
designSystemVersionId:
|
|
6923
|
-
brandId:
|
|
6899
|
+
import { z as z245 } from "zod";
|
|
6900
|
+
var DTOTheme = z245.object({
|
|
6901
|
+
id: z245.string(),
|
|
6902
|
+
persistentId: z245.string(),
|
|
6903
|
+
designSystemVersionId: z245.string(),
|
|
6904
|
+
brandId: z245.string(),
|
|
6924
6905
|
meta: ObjectMeta,
|
|
6925
|
-
codeName:
|
|
6906
|
+
codeName: z245.string(),
|
|
6926
6907
|
overrides: DTOThemeOverride.array()
|
|
6927
6908
|
});
|
|
6928
|
-
var DTOThemeResponse =
|
|
6909
|
+
var DTOThemeResponse = z245.object({
|
|
6929
6910
|
theme: DTOTheme
|
|
6930
6911
|
});
|
|
6931
|
-
var DTOThemeListResponse =
|
|
6912
|
+
var DTOThemeListResponse = z245.object({
|
|
6932
6913
|
themes: DTOTheme.array()
|
|
6933
6914
|
});
|
|
6934
|
-
var DTOThemeCreatePayload =
|
|
6915
|
+
var DTOThemeCreatePayload = z245.object({
|
|
6935
6916
|
meta: ObjectMeta,
|
|
6936
|
-
persistentId:
|
|
6937
|
-
brandId:
|
|
6938
|
-
codeName:
|
|
6917
|
+
persistentId: z245.string(),
|
|
6918
|
+
brandId: z245.string(),
|
|
6919
|
+
codeName: z245.string(),
|
|
6939
6920
|
overrides: DTOThemeOverride.array()
|
|
6940
6921
|
});
|
|
6941
6922
|
|
|
@@ -7029,7 +7010,7 @@ var ImportJobsEndpoint = class {
|
|
|
7029
7010
|
};
|
|
7030
7011
|
|
|
7031
7012
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7032
|
-
import { z as
|
|
7013
|
+
import { z as z246 } from "zod";
|
|
7033
7014
|
var OverridesEndpoint = class {
|
|
7034
7015
|
constructor(requestExecutor) {
|
|
7035
7016
|
this.requestExecutor = requestExecutor;
|
|
@@ -7037,7 +7018,7 @@ var OverridesEndpoint = class {
|
|
|
7037
7018
|
create(dsId, versionId, themeId, body) {
|
|
7038
7019
|
return this.requestExecutor.json(
|
|
7039
7020
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7040
|
-
|
|
7021
|
+
z246.any(),
|
|
7041
7022
|
{
|
|
7042
7023
|
method: "POST",
|
|
7043
7024
|
body
|
|
@@ -7047,6 +7028,7 @@ var OverridesEndpoint = class {
|
|
|
7047
7028
|
};
|
|
7048
7029
|
|
|
7049
7030
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7031
|
+
import { z as z247 } from "zod";
|
|
7050
7032
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7051
7033
|
constructor(requestExecutor) {
|
|
7052
7034
|
this.requestExecutor = requestExecutor;
|
|
@@ -7064,6 +7046,20 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7064
7046
|
{ method: "POST", body }
|
|
7065
7047
|
);
|
|
7066
7048
|
}
|
|
7049
|
+
update(designSystemId, versionId, defId, body) {
|
|
7050
|
+
return this.requestExecutor.json(
|
|
7051
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7052
|
+
DTOElementPropertyDefinitionResponse,
|
|
7053
|
+
{ method: "PUT", body }
|
|
7054
|
+
);
|
|
7055
|
+
}
|
|
7056
|
+
delete(designSystemId, versionId, defId) {
|
|
7057
|
+
return this.requestExecutor.json(
|
|
7058
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7059
|
+
z247.any(),
|
|
7060
|
+
{ method: "DELETE" }
|
|
7061
|
+
);
|
|
7062
|
+
}
|
|
7067
7063
|
};
|
|
7068
7064
|
|
|
7069
7065
|
// src/api/endpoints/design-system/versions/property-values.ts
|
|
@@ -7099,7 +7095,7 @@ var VersionStatsEndpoint = class {
|
|
|
7099
7095
|
};
|
|
7100
7096
|
|
|
7101
7097
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
7102
|
-
import { z as
|
|
7098
|
+
import { z as z248 } from "zod";
|
|
7103
7099
|
var ThemesEndpoint = class {
|
|
7104
7100
|
constructor(requestExecutor) {
|
|
7105
7101
|
this.requestExecutor = requestExecutor;
|
|
@@ -7122,7 +7118,7 @@ var ThemesEndpoint = class {
|
|
|
7122
7118
|
});
|
|
7123
7119
|
}
|
|
7124
7120
|
delete(dsId, versionId, themeId) {
|
|
7125
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
7121
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z248.any(), {
|
|
7126
7122
|
method: "DELETE"
|
|
7127
7123
|
});
|
|
7128
7124
|
}
|
|
@@ -7243,7 +7239,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
7243
7239
|
};
|
|
7244
7240
|
|
|
7245
7241
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7246
|
-
import { z as
|
|
7242
|
+
import { z as z250 } from "zod";
|
|
7247
7243
|
|
|
7248
7244
|
// src/api/endpoints/design-system/members.ts
|
|
7249
7245
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -7264,7 +7260,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
7264
7260
|
};
|
|
7265
7261
|
|
|
7266
7262
|
// src/api/endpoints/design-system/sources.ts
|
|
7267
|
-
import { z as
|
|
7263
|
+
import { z as z249 } from "zod";
|
|
7268
7264
|
var DesignSystemSourcesEndpoint = class {
|
|
7269
7265
|
constructor(requestExecutor) {
|
|
7270
7266
|
this.requestExecutor = requestExecutor;
|
|
@@ -7273,7 +7269,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7273
7269
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
7274
7270
|
}
|
|
7275
7271
|
delete(dsId, sourceId) {
|
|
7276
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
7272
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z249.any(), { method: "DELETE" });
|
|
7277
7273
|
}
|
|
7278
7274
|
};
|
|
7279
7275
|
|
|
@@ -7302,7 +7298,7 @@ var DesignSystemsEndpoint = class {
|
|
|
7302
7298
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
7303
7299
|
}
|
|
7304
7300
|
delete(dsId) {
|
|
7305
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
7301
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z250.any(), { method: "DELETE" });
|
|
7306
7302
|
}
|
|
7307
7303
|
update(dsId, body) {
|
|
7308
7304
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -7346,7 +7342,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
7346
7342
|
};
|
|
7347
7343
|
|
|
7348
7344
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
7349
|
-
import { z as
|
|
7345
|
+
import { z as z251 } from "zod";
|
|
7350
7346
|
var WorkspaceMembersEndpoint = class {
|
|
7351
7347
|
constructor(requestExecutor) {
|
|
7352
7348
|
this.requestExecutor = requestExecutor;
|
|
@@ -7363,7 +7359,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7363
7359
|
});
|
|
7364
7360
|
}
|
|
7365
7361
|
invite(workspaceId, body) {
|
|
7366
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7362
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z251.any(), { method: "POST", body });
|
|
7367
7363
|
}
|
|
7368
7364
|
delete(workspaceId, userId) {
|
|
7369
7365
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -7373,7 +7369,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7373
7369
|
};
|
|
7374
7370
|
|
|
7375
7371
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
7376
|
-
import { z as
|
|
7372
|
+
import { z as z252 } from "zod";
|
|
7377
7373
|
var WorkspacesEndpoint = class {
|
|
7378
7374
|
constructor(requestExecutor) {
|
|
7379
7375
|
this.requestExecutor = requestExecutor;
|
|
@@ -7396,10 +7392,10 @@ var WorkspacesEndpoint = class {
|
|
|
7396
7392
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
7397
7393
|
}
|
|
7398
7394
|
delete(workspaceId) {
|
|
7399
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7395
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z252.any(), { method: "DELETE" });
|
|
7400
7396
|
}
|
|
7401
7397
|
subscription(workspaceId) {
|
|
7402
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7398
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z252.any(), { method: "GET" });
|
|
7403
7399
|
}
|
|
7404
7400
|
};
|
|
7405
7401
|
|
|
@@ -7480,9 +7476,9 @@ ${bodyText}`,
|
|
|
7480
7476
|
|
|
7481
7477
|
// src/api/transport/request-executor.ts
|
|
7482
7478
|
import fetch from "node-fetch";
|
|
7483
|
-
import { z as
|
|
7484
|
-
var ResponseWrapper =
|
|
7485
|
-
result:
|
|
7479
|
+
import { z as z253 } from "zod";
|
|
7480
|
+
var ResponseWrapper = z253.object({
|
|
7481
|
+
result: z253.record(z253.any())
|
|
7486
7482
|
});
|
|
7487
7483
|
var RequestExecutor = class {
|
|
7488
7484
|
constructor(testServerConfig) {
|
|
@@ -7514,8 +7510,11 @@ var RequestExecutor = class {
|
|
|
7514
7510
|
const bodyString = await response.text();
|
|
7515
7511
|
throw RequestExecutorError.serverError(endpoint, response.status, bodyString);
|
|
7516
7512
|
}
|
|
7517
|
-
const
|
|
7513
|
+
const json = await response.json();
|
|
7514
|
+
const wrapperParseResult = ResponseWrapper.safeParse(json);
|
|
7518
7515
|
if (!wrapperParseResult.success) {
|
|
7516
|
+
console.error(`Response was:`);
|
|
7517
|
+
console.error(json);
|
|
7519
7518
|
throw RequestExecutorError.responseParsingError(endpoint, wrapperParseResult.error);
|
|
7520
7519
|
}
|
|
7521
7520
|
const responseParseResult = schema.safeParse(wrapperParseResult.data.result);
|
|
@@ -7610,7 +7609,7 @@ function generateHash(input, debug = false) {
|
|
|
7610
7609
|
}
|
|
7611
7610
|
|
|
7612
7611
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7613
|
-
import { z as
|
|
7612
|
+
import { z as z254 } from "zod";
|
|
7614
7613
|
|
|
7615
7614
|
// src/yjs/version-room/base.ts
|
|
7616
7615
|
var VersionRoomBaseYDoc = class {
|
|
@@ -8140,24 +8139,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8140
8139
|
};
|
|
8141
8140
|
|
|
8142
8141
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8143
|
-
var DocumentationHierarchySettings =
|
|
8144
|
-
routingVersion:
|
|
8145
|
-
isDraftFeatureAdopted:
|
|
8146
|
-
isApprovalFeatureEnabled:
|
|
8147
|
-
approvalRequiredForPublishing:
|
|
8142
|
+
var DocumentationHierarchySettings = z254.object({
|
|
8143
|
+
routingVersion: z254.string(),
|
|
8144
|
+
isDraftFeatureAdopted: z254.boolean(),
|
|
8145
|
+
isApprovalFeatureEnabled: z254.boolean(),
|
|
8146
|
+
approvalRequiredForPublishing: z254.boolean()
|
|
8148
8147
|
});
|
|
8149
8148
|
function yjsToDocumentationHierarchy(doc) {
|
|
8150
8149
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
8151
8150
|
}
|
|
8152
8151
|
|
|
8153
8152
|
// src/yjs/design-system-content/item-configuration.ts
|
|
8154
|
-
import { z as
|
|
8155
|
-
var DTODocumentationPageRoomHeaderData =
|
|
8156
|
-
title:
|
|
8153
|
+
import { z as z255 } from "zod";
|
|
8154
|
+
var DTODocumentationPageRoomHeaderData = z255.object({
|
|
8155
|
+
title: z255.string(),
|
|
8157
8156
|
configuration: DTODocumentationItemConfigurationV2
|
|
8158
8157
|
});
|
|
8159
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
8160
|
-
title:
|
|
8158
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z255.object({
|
|
8159
|
+
title: z255.string().optional(),
|
|
8161
8160
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
8162
8161
|
});
|
|
8163
8162
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -8208,7 +8207,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
8208
8207
|
header: rawHeader
|
|
8209
8208
|
};
|
|
8210
8209
|
return {
|
|
8211
|
-
title:
|
|
8210
|
+
title: z255.string().parse(title),
|
|
8212
8211
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
8213
8212
|
};
|
|
8214
8213
|
}
|
|
@@ -8218,9 +8217,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
8218
8217
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
8219
8218
|
|
|
8220
8219
|
// src/yjs/docs-editor/model/page.ts
|
|
8221
|
-
import { z as
|
|
8222
|
-
var DocumentationPageEditorModel =
|
|
8223
|
-
blocks:
|
|
8220
|
+
import { z as z256 } from "zod";
|
|
8221
|
+
var DocumentationPageEditorModel = z256.object({
|
|
8222
|
+
blocks: z256.array(DocumentationPageContentItem)
|
|
8224
8223
|
});
|
|
8225
8224
|
|
|
8226
8225
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11741,7 +11740,7 @@ var blocks = [
|
|
|
11741
11740
|
|
|
11742
11741
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11743
11742
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11744
|
-
import { z as
|
|
11743
|
+
import { z as z257 } from "zod";
|
|
11745
11744
|
function yDocToPage(yDoc, definitions) {
|
|
11746
11745
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11747
11746
|
}
|
|
@@ -11821,7 +11820,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11821
11820
|
return null;
|
|
11822
11821
|
return {
|
|
11823
11822
|
id,
|
|
11824
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
11823
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z257.string()) ?? "",
|
|
11825
11824
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11826
11825
|
};
|
|
11827
11826
|
}
|
|
@@ -11856,7 +11855,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11856
11855
|
});
|
|
11857
11856
|
}
|
|
11858
11857
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11859
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11858
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z257.string());
|
|
11860
11859
|
if (!definitionId) {
|
|
11861
11860
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11862
11861
|
return [];
|
|
@@ -11898,7 +11897,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11898
11897
|
if (!id)
|
|
11899
11898
|
return null;
|
|
11900
11899
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11901
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11900
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z257.string().optional()));
|
|
11902
11901
|
return {
|
|
11903
11902
|
id,
|
|
11904
11903
|
type: "Block",
|
|
@@ -12026,10 +12025,10 @@ function parseRichTextAttribute(mark) {
|
|
|
12026
12025
|
return null;
|
|
12027
12026
|
}
|
|
12028
12027
|
function parseProsemirrorLink(mark) {
|
|
12029
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
12028
|
+
const href = getProsemirrorAttribute(mark, "href", z257.string().optional());
|
|
12030
12029
|
if (!href)
|
|
12031
12030
|
return null;
|
|
12032
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
12031
|
+
const target = getProsemirrorAttribute(mark, "target", z257.string().optional());
|
|
12033
12032
|
const openInNewTab = target === "_blank";
|
|
12034
12033
|
if (href.startsWith("@")) {
|
|
12035
12034
|
return {
|
|
@@ -12048,10 +12047,10 @@ function parseProsemirrorLink(mark) {
|
|
|
12048
12047
|
}
|
|
12049
12048
|
}
|
|
12050
12049
|
function parseProsemirrorCommentHighlight(mark) {
|
|
12051
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
12050
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z257.string().optional());
|
|
12052
12051
|
if (!highlightId)
|
|
12053
12052
|
return null;
|
|
12054
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
12053
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z257.boolean().optional()) ?? false;
|
|
12055
12054
|
return {
|
|
12056
12055
|
type: "Comment",
|
|
12057
12056
|
commentHighlightId: highlightId,
|
|
@@ -12063,7 +12062,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
12063
12062
|
if (!id)
|
|
12064
12063
|
return null;
|
|
12065
12064
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12066
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
12065
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z257.boolean().optional()) !== false;
|
|
12067
12066
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
12068
12067
|
if (!tableChild) {
|
|
12069
12068
|
return emptyTable(id, variantId, 0);
|
|
@@ -12110,9 +12109,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
12110
12109
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
12111
12110
|
if (!id)
|
|
12112
12111
|
return null;
|
|
12113
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
12112
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z257.string().optional());
|
|
12114
12113
|
let columnWidth;
|
|
12115
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
12114
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z257.array(z257.number()).nullish());
|
|
12116
12115
|
if (columnWidthArray) {
|
|
12117
12116
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
12118
12117
|
}
|
|
@@ -12150,7 +12149,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12150
12149
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
12151
12150
|
};
|
|
12152
12151
|
case "image":
|
|
12153
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12152
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z257.string());
|
|
12154
12153
|
if (!items)
|
|
12155
12154
|
return null;
|
|
12156
12155
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -12270,7 +12269,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
12270
12269
|
);
|
|
12271
12270
|
}
|
|
12272
12271
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
12273
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12272
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z257.string());
|
|
12274
12273
|
if (!itemsString)
|
|
12275
12274
|
return null;
|
|
12276
12275
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -12282,18 +12281,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
12282
12281
|
}
|
|
12283
12282
|
function parseAppearance(prosemirrorNode) {
|
|
12284
12283
|
let appearance = {};
|
|
12285
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
12284
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z257.string().optional());
|
|
12286
12285
|
if (rawAppearanceString) {
|
|
12287
12286
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
12288
12287
|
if (parsedAppearance.success) {
|
|
12289
12288
|
appearance = parsedAppearance.data;
|
|
12290
12289
|
}
|
|
12291
12290
|
}
|
|
12292
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
12291
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z257.number().optional());
|
|
12293
12292
|
if (columns) {
|
|
12294
12293
|
appearance.numberOfColumns = columns;
|
|
12295
12294
|
}
|
|
12296
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
12295
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z257.string().optional());
|
|
12297
12296
|
if (backgroundColor) {
|
|
12298
12297
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
12299
12298
|
if (parsedColor.success) {
|
|
@@ -12388,13 +12387,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
12388
12387
|
}
|
|
12389
12388
|
}
|
|
12390
12389
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
12391
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12390
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z257.string());
|
|
12392
12391
|
if (!id)
|
|
12393
12392
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
12394
12393
|
return id;
|
|
12395
12394
|
}
|
|
12396
12395
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
12397
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12396
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z257.string()));
|
|
12398
12397
|
}
|
|
12399
12398
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
12400
12399
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -12471,6 +12470,7 @@ export {
|
|
|
12471
12470
|
DTOBrandCreateResponse,
|
|
12472
12471
|
DTOBrandGetResponse,
|
|
12473
12472
|
DTOBrandsListResponse,
|
|
12473
|
+
DTOColorTokenInlineData,
|
|
12474
12474
|
DTOCreateBrandInput,
|
|
12475
12475
|
DTOCreateDocumentationGroupInput,
|
|
12476
12476
|
DTOCreateDocumentationPageInputV2,
|
|
@@ -12581,8 +12581,8 @@ export {
|
|
|
12581
12581
|
DTOElementActionOutput,
|
|
12582
12582
|
DTOElementPropertyDefinition,
|
|
12583
12583
|
DTOElementPropertyDefinitionCreatePayload,
|
|
12584
|
-
DTOElementPropertyDefinitionDeletePayload,
|
|
12585
12584
|
DTOElementPropertyDefinitionListResponse,
|
|
12585
|
+
DTOElementPropertyDefinitionOption,
|
|
12586
12586
|
DTOElementPropertyDefinitionResponse,
|
|
12587
12587
|
DTOElementPropertyDefinitionUpdatePayload,
|
|
12588
12588
|
DTOElementPropertyValue,
|
|
@@ -12664,12 +12664,6 @@ export {
|
|
|
12664
12664
|
DTOPipelineResponse,
|
|
12665
12665
|
DTOPipelineTriggerBody,
|
|
12666
12666
|
DTOPipelineUpdateBody,
|
|
12667
|
-
DTOPropertyDefinitionCreateActionInputV2,
|
|
12668
|
-
DTOPropertyDefinitionCreateActionOutputV2,
|
|
12669
|
-
DTOPropertyDefinitionDeleteActionInputV2,
|
|
12670
|
-
DTOPropertyDefinitionDeleteActionOutputV2,
|
|
12671
|
-
DTOPropertyDefinitionUpdateActionInputV2,
|
|
12672
|
-
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
12673
12667
|
DTOPublishDocumentationChanges,
|
|
12674
12668
|
DTOPublishDocumentationRequest,
|
|
12675
12669
|
DTOPublishDocumentationResponse,
|