@supernova-studio/client 0.47.53 → 0.47.55

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.mjs CHANGED
@@ -2469,7 +2469,8 @@ var DesignElementSnapshotBase = z105.object({
2469
2469
  });
2470
2470
  var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
2471
2471
  page: DocumentationPageV2,
2472
- pageContentHash: z106.string()
2472
+ pageContentHash: z106.string(),
2473
+ pageContentStorageKey: z106.string()
2473
2474
  });
2474
2475
  var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
2475
2476
  group: ElementGroup
@@ -5082,16 +5083,123 @@ var DTODocumentationLinkPreviewRequest = z184.object({
5082
5083
  });
5083
5084
 
5084
5085
  // src/api/dto/documentation/publish.ts
5086
+ import { z as z188 } from "zod";
5087
+
5088
+ // src/api/dto/export/exporter.ts
5085
5089
  import { z as z185 } from "zod";
5086
- var DTOPublishDocumentationRequest = z185.object({
5090
+ var DTOExporterType = z185.enum(["documentation", "code"]);
5091
+ var DTOExporterSource = z185.enum(["git", "upload"]);
5092
+ var DTOExporterMembershipRole = z185.enum(["Owner", "OwnerArchived", "User"]);
5093
+ var DTOExporter = z185.object({
5094
+ id: z185.string(),
5095
+ name: z185.string(),
5096
+ isPrivate: z185.boolean(),
5097
+ exporterType: DTOExporterType,
5098
+ isDefaultDocumentationExporter: z185.boolean(),
5099
+ iconURL: z185.string().optional(),
5100
+ configurationProperties: PulsarContributionConfigurationProperty.array(),
5101
+ customBlocks: PulsarCustomBlock.array(),
5102
+ blockVariants: z185.record(z185.string(), PulsarContributionVariant.array()),
5103
+ usesBrands: z185.boolean(),
5104
+ usesThemes: z185.boolean(),
5105
+ source: DTOExporterSource,
5106
+ gitUrl: z185.string().optional(),
5107
+ gitBranch: z185.string().optional(),
5108
+ gitDirectory: z185.string().optional()
5109
+ });
5110
+ var DTOExporterMembership = z185.object({
5111
+ workspaceId: z185.string(),
5112
+ exporterId: z185.string(),
5113
+ role: DTOExporterMembershipRole
5114
+ });
5115
+ var DTOExporterCreateOutput = z185.object({
5116
+ exporter: DTOExporter,
5117
+ membership: DTOExporterMembership
5118
+ });
5119
+ var DTOExporterGitProviderEnum = z185.enum(["github", "gitlab", "bitbucket", "azure"]);
5120
+ var DTOExporterCreateInput = z185.object({
5121
+ url: z185.string(),
5122
+ provider: DTOExporterGitProviderEnum
5123
+ });
5124
+ var DTOExporterUpdateInput = z185.object({
5125
+ url: z185.string().optional()
5126
+ });
5127
+
5128
+ // src/api/dto/export/job.ts
5129
+ import { z as z186 } from "zod";
5130
+ var DTOExportJobCreatedBy = z186.object({
5131
+ userId: z186.string(),
5132
+ userName: z186.string()
5133
+ });
5134
+ var DTOExportJobDesignSystemPreview = z186.object({
5135
+ id: z186.string(),
5136
+ meta: ObjectMeta
5137
+ });
5138
+ var DTOExportJobDesignSystemVersionPreview = z186.object({
5139
+ id: z186.string(),
5140
+ meta: ObjectMeta,
5141
+ version: z186.string(),
5142
+ isReadonly: z186.boolean()
5143
+ });
5144
+ var DTOExportJobDestinations = z186.object({
5145
+ s3: ExporterDestinationS3.optional(),
5146
+ azure: ExporterDestinationAzure.optional(),
5147
+ bitbucket: ExporterDestinationBitbucket.optional(),
5148
+ github: ExporterDestinationGithub.optional(),
5149
+ gitlab: ExporterDestinationGitlab.optional(),
5150
+ documentation: ExporterDestinationDocs.optional(),
5151
+ webhookUrl: z186.string().optional()
5152
+ });
5153
+ var DTOExportJob = z186.object({
5154
+ id: z186.string(),
5155
+ createdAt: z186.coerce.date(),
5156
+ finishedAt: z186.coerce.date().optional(),
5157
+ index: z186.number().optional(),
5158
+ status: ExportJobStatus,
5159
+ estimatedExecutionTime: z186.number().optional(),
5160
+ createdBy: DTOExportJobCreatedBy.optional(),
5161
+ designSystem: DTOExportJobDesignSystemPreview,
5162
+ designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5163
+ destinations: DTOExportJobDestinations,
5164
+ exporterId: z186.string(),
5165
+ scheduleId: z186.string().optional(),
5166
+ result: ExportJobResult.optional(),
5167
+ brandPersistentId: z186.string().optional(),
5168
+ themePersistentId: z186.string().optional()
5169
+ });
5170
+ var DTOExportJobResponse = z186.object({
5171
+ job: DTOExportJob
5172
+ });
5173
+
5174
+ // src/api/dto/export/pipeline.ts
5175
+ import { z as z187 } from "zod";
5176
+ var DTOPipeline = z187.object({
5177
+ id: z187.string(),
5178
+ name: z187.string(),
5179
+ eventType: PipelineEventType,
5180
+ isEnabled: z187.boolean(),
5181
+ workspaceId: z187.string(),
5182
+ designSystemId: z187.string(),
5183
+ exporterId: z187.string(),
5184
+ brandPersistentId: z187.string().optional(),
5185
+ themePersistentId: z187.string().optional(),
5186
+ ...ExportDestinationsMap.shape,
5187
+ latestJobs: DTOExportJob.array()
5188
+ });
5189
+
5190
+ // src/api/dto/documentation/publish.ts
5191
+ var DTOPublishDocumentationRequest = z188.object({
5087
5192
  environment: PublishedDocEnvironment
5088
5193
  });
5194
+ var DTOPublishDocumentationResponse = z188.object({
5195
+ job: DTOExportJob
5196
+ });
5089
5197
 
5090
5198
  // src/api/dto/elements/documentation/group-action.ts
5091
- import { z as z187 } from "zod";
5199
+ import { z as z190 } from "zod";
5092
5200
 
5093
5201
  // src/api/dto/elements/documentation/group-v2.ts
5094
- import { z as z186 } from "zod";
5202
+ import { z as z189 } from "zod";
5095
5203
  var DTODocumentationGroupV2 = ElementGroup.omit({
5096
5204
  sortOrder: true,
5097
5205
  parentPersistentId: true,
@@ -5101,137 +5209,137 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5101
5209
  data: true,
5102
5210
  shortPersistentId: true
5103
5211
  }).extend({
5104
- title: z186.string(),
5105
- isRoot: z186.boolean(),
5106
- childrenIds: z186.array(z186.string()),
5212
+ title: z189.string(),
5213
+ isRoot: z189.boolean(),
5214
+ childrenIds: z189.array(z189.string()),
5107
5215
  groupBehavior: DocumentationGroupBehavior,
5108
- shortPersistentId: z186.string(),
5216
+ shortPersistentId: z189.string(),
5109
5217
  configuration: DTODocumentationItemConfigurationV2,
5110
- type: z186.literal("Group"),
5218
+ type: z189.literal("Group"),
5111
5219
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5112
5220
  draftState: DTODocumentationDraftState.optional()
5113
5221
  });
5114
- var DTOCreateDocumentationGroupInput = z186.object({
5222
+ var DTOCreateDocumentationGroupInput = z189.object({
5115
5223
  // Identifier
5116
- persistentId: z186.string().uuid(),
5224
+ persistentId: z189.string().uuid(),
5117
5225
  // Group properties
5118
- title: z186.string(),
5226
+ title: z189.string(),
5119
5227
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5120
5228
  // Group placement properties
5121
- afterPersistentId: z186.string().uuid().nullish(),
5122
- parentPersistentId: z186.string().uuid()
5229
+ afterPersistentId: z189.string().uuid().nullish(),
5230
+ parentPersistentId: z189.string().uuid()
5123
5231
  });
5124
- var DTOUpdateDocumentationGroupInput = z186.object({
5232
+ var DTOUpdateDocumentationGroupInput = z189.object({
5125
5233
  // Identifier of the group to update
5126
- id: z186.string(),
5234
+ id: z189.string(),
5127
5235
  // Group properties
5128
- title: z186.string().optional(),
5236
+ title: z189.string().optional(),
5129
5237
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5130
5238
  });
5131
- var DTOMoveDocumentationGroupInput = z186.object({
5239
+ var DTOMoveDocumentationGroupInput = z189.object({
5132
5240
  // Identifier of the group to update
5133
- id: z186.string(),
5241
+ id: z189.string(),
5134
5242
  // Group placement properties
5135
- parentPersistentId: z186.string().uuid(),
5136
- afterPersistentId: z186.string().uuid().nullish()
5243
+ parentPersistentId: z189.string().uuid(),
5244
+ afterPersistentId: z189.string().uuid().nullish()
5137
5245
  });
5138
- var DTODuplicateDocumentationGroupInput = z186.object({
5246
+ var DTODuplicateDocumentationGroupInput = z189.object({
5139
5247
  // Identifier of the group to duplicate from
5140
- id: z186.string(),
5248
+ id: z189.string(),
5141
5249
  // New group persistent id
5142
- persistentId: z186.string().uuid(),
5250
+ persistentId: z189.string().uuid(),
5143
5251
  // Group placement properties
5144
- afterPersistentId: z186.string().uuid().nullish(),
5145
- parentPersistentId: z186.string().uuid()
5252
+ afterPersistentId: z189.string().uuid().nullish(),
5253
+ parentPersistentId: z189.string().uuid()
5146
5254
  });
5147
- var DTOCreateDocumentationTabInput = z186.object({
5255
+ var DTOCreateDocumentationTabInput = z189.object({
5148
5256
  // New group persistent id
5149
- persistentId: z186.string().uuid(),
5257
+ persistentId: z189.string().uuid(),
5150
5258
  // If this is page, we will attempt to convert it to tab
5151
5259
  // If this is tab group, we will add a new tab to it
5152
- fromItemPersistentId: z186.string(),
5153
- tabName: z186.string()
5260
+ fromItemPersistentId: z189.string(),
5261
+ tabName: z189.string()
5154
5262
  });
5155
- var DTODeleteDocumentationTabGroupInput = z186.object({
5263
+ var DTODeleteDocumentationTabGroupInput = z189.object({
5156
5264
  // Deleted group id
5157
- id: z186.string()
5265
+ id: z189.string()
5158
5266
  });
5159
- var DTODeleteDocumentationGroupInput = z186.object({
5267
+ var DTODeleteDocumentationGroupInput = z189.object({
5160
5268
  // Identifier
5161
- id: z186.string(),
5269
+ id: z189.string(),
5162
5270
  // Deletion options
5163
- deleteSubtree: z186.boolean().default(false)
5271
+ deleteSubtree: z189.boolean().default(false)
5164
5272
  });
5165
5273
 
5166
5274
  // src/api/dto/elements/documentation/group-action.ts
5167
- var SuccessPayload = z187.object({
5168
- success: z187.literal(true)
5275
+ var SuccessPayload = z190.object({
5276
+ success: z190.literal(true)
5169
5277
  });
5170
- var DTODocumentationGroupCreateActionOutputV2 = z187.object({
5171
- type: z187.literal("DocumentationGroupCreate"),
5278
+ var DTODocumentationGroupCreateActionOutputV2 = z190.object({
5279
+ type: z190.literal("DocumentationGroupCreate"),
5172
5280
  output: SuccessPayload
5173
5281
  });
5174
- var DTODocumentationTabCreateActionOutputV2 = z187.object({
5175
- type: z187.literal("DocumentationTabCreate"),
5282
+ var DTODocumentationTabCreateActionOutputV2 = z190.object({
5283
+ type: z190.literal("DocumentationTabCreate"),
5176
5284
  output: SuccessPayload
5177
5285
  });
5178
- var DTODocumentationGroupUpdateActionOutputV2 = z187.object({
5179
- type: z187.literal("DocumentationGroupUpdate"),
5286
+ var DTODocumentationGroupUpdateActionOutputV2 = z190.object({
5287
+ type: z190.literal("DocumentationGroupUpdate"),
5180
5288
  output: SuccessPayload
5181
5289
  });
5182
- var DTODocumentationGroupMoveActionOutputV2 = z187.object({
5183
- type: z187.literal("DocumentationGroupMove"),
5290
+ var DTODocumentationGroupMoveActionOutputV2 = z190.object({
5291
+ type: z190.literal("DocumentationGroupMove"),
5184
5292
  output: SuccessPayload
5185
5293
  });
5186
- var DTODocumentationGroupDuplicateActionOutputV2 = z187.object({
5187
- type: z187.literal("DocumentationGroupDuplicate"),
5294
+ var DTODocumentationGroupDuplicateActionOutputV2 = z190.object({
5295
+ type: z190.literal("DocumentationGroupDuplicate"),
5188
5296
  output: SuccessPayload
5189
5297
  });
5190
- var DTODocumentationGroupDeleteActionOutputV2 = z187.object({
5191
- type: z187.literal("DocumentationGroupDelete"),
5298
+ var DTODocumentationGroupDeleteActionOutputV2 = z190.object({
5299
+ type: z190.literal("DocumentationGroupDelete"),
5192
5300
  output: SuccessPayload
5193
5301
  });
5194
- var DTODocumentationTabGroupDeleteActionOutputV2 = z187.object({
5195
- type: z187.literal("DocumentationTabGroupDelete"),
5302
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z190.object({
5303
+ type: z190.literal("DocumentationTabGroupDelete"),
5196
5304
  output: SuccessPayload
5197
5305
  });
5198
- var DTODocumentationGroupCreateActionInputV2 = z187.object({
5199
- type: z187.literal("DocumentationGroupCreate"),
5306
+ var DTODocumentationGroupCreateActionInputV2 = z190.object({
5307
+ type: z190.literal("DocumentationGroupCreate"),
5200
5308
  input: DTOCreateDocumentationGroupInput
5201
5309
  });
5202
- var DTODocumentationTabCreateActionInputV2 = z187.object({
5203
- type: z187.literal("DocumentationTabCreate"),
5310
+ var DTODocumentationTabCreateActionInputV2 = z190.object({
5311
+ type: z190.literal("DocumentationTabCreate"),
5204
5312
  input: DTOCreateDocumentationTabInput
5205
5313
  });
5206
- var DTODocumentationGroupUpdateActionInputV2 = z187.object({
5207
- type: z187.literal("DocumentationGroupUpdate"),
5314
+ var DTODocumentationGroupUpdateActionInputV2 = z190.object({
5315
+ type: z190.literal("DocumentationGroupUpdate"),
5208
5316
  input: DTOUpdateDocumentationGroupInput
5209
5317
  });
5210
- var DTODocumentationGroupMoveActionInputV2 = z187.object({
5211
- type: z187.literal("DocumentationGroupMove"),
5318
+ var DTODocumentationGroupMoveActionInputV2 = z190.object({
5319
+ type: z190.literal("DocumentationGroupMove"),
5212
5320
  input: DTOMoveDocumentationGroupInput
5213
5321
  });
5214
- var DTODocumentationGroupDuplicateActionInputV2 = z187.object({
5215
- type: z187.literal("DocumentationGroupDuplicate"),
5322
+ var DTODocumentationGroupDuplicateActionInputV2 = z190.object({
5323
+ type: z190.literal("DocumentationGroupDuplicate"),
5216
5324
  input: DTODuplicateDocumentationGroupInput
5217
5325
  });
5218
- var DTODocumentationGroupDeleteActionInputV2 = z187.object({
5219
- type: z187.literal("DocumentationGroupDelete"),
5326
+ var DTODocumentationGroupDeleteActionInputV2 = z190.object({
5327
+ type: z190.literal("DocumentationGroupDelete"),
5220
5328
  input: DTODeleteDocumentationGroupInput
5221
5329
  });
5222
- var DTODocumentationTabGroupDeleteActionInputV2 = z187.object({
5223
- type: z187.literal("DocumentationTabGroupDelete"),
5330
+ var DTODocumentationTabGroupDeleteActionInputV2 = z190.object({
5331
+ type: z190.literal("DocumentationTabGroupDelete"),
5224
5332
  input: DTODeleteDocumentationTabGroupInput
5225
5333
  });
5226
5334
 
5227
5335
  // src/api/dto/elements/documentation/group-v1.ts
5228
- import { z as z189 } from "zod";
5336
+ import { z as z192 } from "zod";
5229
5337
 
5230
5338
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5231
- import { z as z188 } from "zod";
5232
- var DocumentationColorV1 = z188.object({
5233
- aliasTo: z188.string().optional(),
5234
- value: z188.string().optional()
5339
+ import { z as z191 } from "zod";
5340
+ var DocumentationColorV1 = z191.object({
5341
+ aliasTo: z191.string().optional(),
5342
+ value: z191.string().optional()
5235
5343
  });
5236
5344
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5237
5345
  foregroundColor: true,
@@ -5240,10 +5348,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5240
5348
  foregroundColor: DocumentationColorV1.optional(),
5241
5349
  backgroundColor: DocumentationColorV1.optional()
5242
5350
  });
5243
- var DTODocumentationItemConfigurationV1 = z188.object({
5244
- showSidebar: z188.boolean(),
5245
- isPrivate: z188.boolean(),
5246
- isHidden: z188.boolean(),
5351
+ var DTODocumentationItemConfigurationV1 = z191.object({
5352
+ showSidebar: z191.boolean(),
5353
+ isPrivate: z191.boolean(),
5354
+ isHidden: z191.boolean(),
5247
5355
  header: DTODocumentationItemHeaderV1
5248
5356
  });
5249
5357
 
@@ -5257,39 +5365,39 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
5257
5365
  data: true,
5258
5366
  shortPersistentId: true
5259
5367
  }).extend({
5260
- title: z189.string(),
5261
- isRoot: z189.boolean(),
5262
- childrenIds: z189.array(z189.string()),
5368
+ title: z192.string(),
5369
+ isRoot: z192.boolean(),
5370
+ childrenIds: z192.array(z192.string()),
5263
5371
  groupBehavior: DocumentationGroupBehavior,
5264
- shortPersistentId: z189.string(),
5265
- type: z189.literal("Group")
5372
+ shortPersistentId: z192.string(),
5373
+ type: z192.literal("Group")
5266
5374
  });
5267
5375
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5268
5376
  configuration: DTODocumentationItemConfigurationV1
5269
5377
  });
5270
5378
 
5271
5379
  // src/api/dto/elements/documentation/hierarchy.ts
5272
- import { z as z190 } from "zod";
5273
- var DTODocumentationHierarchyV2 = z190.object({
5274
- pages: z190.array(
5380
+ import { z as z193 } from "zod";
5381
+ var DTODocumentationHierarchyV2 = z193.object({
5382
+ pages: z193.array(
5275
5383
  DTODocumentationPageV2.extend({
5276
5384
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5277
5385
  draftState: DTODocumentationDraftState.optional()
5278
5386
  })
5279
5387
  ),
5280
- groups: z190.array(
5388
+ groups: z193.array(
5281
5389
  DTODocumentationGroupV2.extend({
5282
5390
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5283
5391
  draftState: DTODocumentationDraftState.optional()
5284
5392
  })
5285
5393
  ),
5286
- deletedPages: z190.array(
5394
+ deletedPages: z193.array(
5287
5395
  DTODocumentationPageV2.extend({
5288
5396
  /** Deleted page is always a draft change */
5289
5397
  draftState: DTODocumentationDraftState
5290
5398
  })
5291
5399
  ),
5292
- deletedGroups: z190.array(
5400
+ deletedGroups: z193.array(
5293
5401
  DTODocumentationGroupV2.extend({
5294
5402
  /** Deleted page is always a draft change */
5295
5403
  draftState: DTODocumentationDraftState
@@ -5298,60 +5406,60 @@ var DTODocumentationHierarchyV2 = z190.object({
5298
5406
  });
5299
5407
 
5300
5408
  // src/api/dto/elements/documentation/page-actions-v2.ts
5301
- import { z as z191 } from "zod";
5302
- var SuccessPayload2 = z191.object({
5303
- success: z191.literal(true)
5409
+ import { z as z194 } from "zod";
5410
+ var SuccessPayload2 = z194.object({
5411
+ success: z194.literal(true)
5304
5412
  });
5305
- var DTODocumentationPageCreateActionOutputV2 = z191.object({
5306
- type: z191.literal("DocumentationPageCreate"),
5413
+ var DTODocumentationPageCreateActionOutputV2 = z194.object({
5414
+ type: z194.literal("DocumentationPageCreate"),
5307
5415
  output: SuccessPayload2
5308
5416
  });
5309
- var DTODocumentationPageUpdateActionOutputV2 = z191.object({
5310
- type: z191.literal("DocumentationPageUpdate"),
5417
+ var DTODocumentationPageUpdateActionOutputV2 = z194.object({
5418
+ type: z194.literal("DocumentationPageUpdate"),
5311
5419
  output: SuccessPayload2
5312
5420
  });
5313
- var DTODocumentationPageMoveActionOutputV2 = z191.object({
5314
- type: z191.literal("DocumentationPageMove"),
5421
+ var DTODocumentationPageMoveActionOutputV2 = z194.object({
5422
+ type: z194.literal("DocumentationPageMove"),
5315
5423
  output: SuccessPayload2
5316
5424
  });
5317
- var DTODocumentationPageDuplicateActionOutputV2 = z191.object({
5318
- type: z191.literal("DocumentationPageDuplicate"),
5425
+ var DTODocumentationPageDuplicateActionOutputV2 = z194.object({
5426
+ type: z194.literal("DocumentationPageDuplicate"),
5319
5427
  output: SuccessPayload2
5320
5428
  });
5321
- var DTODocumentationPageDeleteActionOutputV2 = z191.object({
5322
- type: z191.literal("DocumentationPageDelete"),
5429
+ var DTODocumentationPageDeleteActionOutputV2 = z194.object({
5430
+ type: z194.literal("DocumentationPageDelete"),
5323
5431
  output: SuccessPayload2
5324
5432
  });
5325
- var DTODocumentationPageCreateActionInputV2 = z191.object({
5326
- type: z191.literal("DocumentationPageCreate"),
5433
+ var DTODocumentationPageCreateActionInputV2 = z194.object({
5434
+ type: z194.literal("DocumentationPageCreate"),
5327
5435
  input: DTOCreateDocumentationPageInputV2
5328
5436
  });
5329
- var DTODocumentationPageUpdateActionInputV2 = z191.object({
5330
- type: z191.literal("DocumentationPageUpdate"),
5437
+ var DTODocumentationPageUpdateActionInputV2 = z194.object({
5438
+ type: z194.literal("DocumentationPageUpdate"),
5331
5439
  input: DTOUpdateDocumentationPageInputV2
5332
5440
  });
5333
- var DTODocumentationPageMoveActionInputV2 = z191.object({
5334
- type: z191.literal("DocumentationPageMove"),
5441
+ var DTODocumentationPageMoveActionInputV2 = z194.object({
5442
+ type: z194.literal("DocumentationPageMove"),
5335
5443
  input: DTOMoveDocumentationPageInputV2
5336
5444
  });
5337
- var DTODocumentationPageDuplicateActionInputV2 = z191.object({
5338
- type: z191.literal("DocumentationPageDuplicate"),
5445
+ var DTODocumentationPageDuplicateActionInputV2 = z194.object({
5446
+ type: z194.literal("DocumentationPageDuplicate"),
5339
5447
  input: DTODuplicateDocumentationPageInputV2
5340
5448
  });
5341
- var DTODocumentationPageDeleteActionInputV2 = z191.object({
5342
- type: z191.literal("DocumentationPageDelete"),
5449
+ var DTODocumentationPageDeleteActionInputV2 = z194.object({
5450
+ type: z194.literal("DocumentationPageDelete"),
5343
5451
  input: DTODeleteDocumentationPageInputV2
5344
5452
  });
5345
5453
 
5346
5454
  // src/api/dto/elements/documentation/page-content.ts
5347
- import { z as z192 } from "zod";
5455
+ import { z as z195 } from "zod";
5348
5456
  var DTODocumentationPageContent = DocumentationPageContent;
5349
- var DTODocumentationPageContentGetResponse = z192.object({
5457
+ var DTODocumentationPageContentGetResponse = z195.object({
5350
5458
  pageContent: DTODocumentationPageContent
5351
5459
  });
5352
5460
 
5353
5461
  // src/api/dto/elements/documentation/page-v1.ts
5354
- import { z as z193 } from "zod";
5462
+ import { z as z196 } from "zod";
5355
5463
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
5356
5464
  data: true,
5357
5465
  meta: true,
@@ -5359,30 +5467,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
5359
5467
  sortOrder: true
5360
5468
  }).extend({
5361
5469
  configuration: DTODocumentationItemConfigurationV1,
5362
- blocks: z193.array(PageBlockV1),
5363
- title: z193.string(),
5364
- path: z193.string()
5470
+ blocks: z196.array(PageBlockV1),
5471
+ title: z196.string(),
5472
+ path: z196.string()
5365
5473
  });
5366
5474
 
5367
5475
  // src/api/dto/elements/figma-nodes/figma-node.ts
5368
- import { z as z194 } from "zod";
5369
- var DTOFigmaNodeOrigin = z194.object({
5370
- sourceId: z194.string(),
5371
- fileId: z194.string().optional(),
5372
- parentName: z194.string().optional()
5476
+ import { z as z197 } from "zod";
5477
+ var DTOFigmaNodeOrigin = z197.object({
5478
+ sourceId: z197.string(),
5479
+ fileId: z197.string().optional(),
5480
+ parentName: z197.string().optional()
5373
5481
  });
5374
- var DTOFigmaNodeData = z194.object({
5482
+ var DTOFigmaNodeData = z197.object({
5375
5483
  // Id of the node in the Figma file
5376
- figmaNodeId: z194.string(),
5484
+ figmaNodeId: z197.string(),
5377
5485
  // Validity
5378
- isValid: z194.boolean(),
5486
+ isValid: z197.boolean(),
5379
5487
  // Asset data
5380
- assetId: z194.string(),
5381
- assetUrl: z194.string(),
5488
+ assetId: z197.string(),
5489
+ assetUrl: z197.string(),
5382
5490
  // Asset metadata
5383
- assetScale: z194.number(),
5384
- assetWidth: z194.number().optional(),
5385
- assetHeight: z194.number().optional()
5491
+ assetScale: z197.number(),
5492
+ assetWidth: z197.number().optional(),
5493
+ assetHeight: z197.number().optional()
5386
5494
  });
5387
5495
  var DTOFigmaNode = FigmaFileStructure.omit({
5388
5496
  data: true,
@@ -5391,105 +5499,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
5391
5499
  data: DTOFigmaNodeData,
5392
5500
  origin: DTOFigmaNodeOrigin
5393
5501
  });
5394
- var DTOFigmaNodeRenderInput = z194.object({
5502
+ var DTOFigmaNodeRenderInput = z197.object({
5395
5503
  // Id of a design system's data source representing a linked Figma file
5396
- sourceId: z194.string(),
5504
+ sourceId: z197.string(),
5397
5505
  // Id of a node within the Figma file
5398
- figmaFileNodeId: z194.string()
5506
+ figmaFileNodeId: z197.string()
5399
5507
  });
5400
5508
 
5401
5509
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
5402
- import { z as z195 } from "zod";
5403
- var DTOFigmaNodeRenderActionOutput = z195.object({
5404
- type: z195.literal("FigmaNodeRender"),
5405
- figmaNodes: z195.array(DTOFigmaNode)
5510
+ import { z as z198 } from "zod";
5511
+ var DTOFigmaNodeRenderActionOutput = z198.object({
5512
+ type: z198.literal("FigmaNodeRender"),
5513
+ figmaNodes: z198.array(DTOFigmaNode)
5406
5514
  });
5407
- var DTOFigmaNodeRenderActionInput = z195.object({
5408
- type: z195.literal("FigmaNodeRender"),
5515
+ var DTOFigmaNodeRenderActionInput = z198.object({
5516
+ type: z198.literal("FigmaNodeRender"),
5409
5517
  input: DTOFigmaNodeRenderInput.array()
5410
5518
  });
5411
5519
 
5412
5520
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5413
- import { z as z197 } from "zod";
5521
+ import { z as z200 } from "zod";
5414
5522
 
5415
5523
  // src/api/dto/elements/properties/property-definitions.ts
5416
- import { z as z196 } from "zod";
5524
+ import { z as z199 } from "zod";
5417
5525
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
5418
- var DTOElementPropertyDefinition = z196.object({
5419
- id: z196.string(),
5420
- designSystemVersionId: z196.string(),
5526
+ var DTOElementPropertyDefinition = z199.object({
5527
+ id: z199.string(),
5528
+ designSystemVersionId: z199.string(),
5421
5529
  meta: ObjectMeta,
5422
- persistentId: z196.string(),
5530
+ persistentId: z199.string(),
5423
5531
  type: ElementPropertyTypeSchema,
5424
5532
  targetElementType: ElementPropertyTargetType,
5425
- codeName: z196.string().regex(CODE_NAME_REGEX2),
5426
- options: z196.array(ElementPropertyDefinitionOption).optional(),
5533
+ codeName: z199.string().regex(CODE_NAME_REGEX2),
5534
+ options: z199.array(ElementPropertyDefinitionOption).optional(),
5427
5535
  linkElementType: ElementPropertyLinkType.optional()
5428
5536
  });
5429
- var DTOElementPropertyDefinitionsGetResponse = z196.object({
5430
- definitions: z196.array(DTOElementPropertyDefinition)
5537
+ var DTOElementPropertyDefinitionsGetResponse = z199.object({
5538
+ definitions: z199.array(DTOElementPropertyDefinition)
5431
5539
  });
5432
5540
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
5433
5541
  id: true,
5434
5542
  designSystemVersionId: true
5435
5543
  });
5436
- var DTOUpdateElementPropertyDefinitionInputV2 = z196.object({
5437
- id: z196.string(),
5438
- name: z196.string().optional(),
5439
- description: z196.string().optional(),
5440
- codeName: z196.string().regex(CODE_NAME_REGEX2).optional(),
5441
- options: z196.array(ElementPropertyDefinitionOption).optional()
5544
+ var DTOUpdateElementPropertyDefinitionInputV2 = z199.object({
5545
+ id: z199.string(),
5546
+ name: z199.string().optional(),
5547
+ description: z199.string().optional(),
5548
+ codeName: z199.string().regex(CODE_NAME_REGEX2).optional(),
5549
+ options: z199.array(ElementPropertyDefinitionOption).optional()
5442
5550
  });
5443
- var DTODeleteElementPropertyDefinitionInputV2 = z196.object({
5444
- id: z196.string()
5551
+ var DTODeleteElementPropertyDefinitionInputV2 = z199.object({
5552
+ id: z199.string()
5445
5553
  });
5446
5554
 
5447
5555
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5448
- var SuccessPayload3 = z197.object({
5449
- success: z197.literal(true)
5556
+ var SuccessPayload3 = z200.object({
5557
+ success: z200.literal(true)
5450
5558
  });
5451
- var DTOPropertyDefinitionCreateActionOutputV2 = z197.object({
5452
- type: z197.literal("PropertyDefinitionCreate"),
5559
+ var DTOPropertyDefinitionCreateActionOutputV2 = z200.object({
5560
+ type: z200.literal("PropertyDefinitionCreate"),
5453
5561
  definition: DTOElementPropertyDefinition
5454
5562
  });
5455
- var DTOPropertyDefinitionUpdateActionOutputV2 = z197.object({
5456
- type: z197.literal("PropertyDefinitionUpdate"),
5563
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z200.object({
5564
+ type: z200.literal("PropertyDefinitionUpdate"),
5457
5565
  definition: DTOElementPropertyDefinition
5458
5566
  });
5459
- var DTOPropertyDefinitionDeleteActionOutputV2 = z197.object({
5460
- type: z197.literal("PropertyDefinitionDelete"),
5567
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z200.object({
5568
+ type: z200.literal("PropertyDefinitionDelete"),
5461
5569
  output: SuccessPayload3
5462
5570
  });
5463
- var DTOPropertyDefinitionCreateActionInputV2 = z197.object({
5464
- type: z197.literal("PropertyDefinitionCreate"),
5571
+ var DTOPropertyDefinitionCreateActionInputV2 = z200.object({
5572
+ type: z200.literal("PropertyDefinitionCreate"),
5465
5573
  input: DTOCreateElementPropertyDefinitionInputV2
5466
5574
  });
5467
- var DTOPropertyDefinitionUpdateActionInputV2 = z197.object({
5468
- type: z197.literal("PropertyDefinitionUpdate"),
5575
+ var DTOPropertyDefinitionUpdateActionInputV2 = z200.object({
5576
+ type: z200.literal("PropertyDefinitionUpdate"),
5469
5577
  input: DTOUpdateElementPropertyDefinitionInputV2
5470
5578
  });
5471
- var DTOPropertyDefinitionDeleteActionInputV2 = z197.object({
5472
- type: z197.literal("PropertyDefinitionDelete"),
5579
+ var DTOPropertyDefinitionDeleteActionInputV2 = z200.object({
5580
+ type: z200.literal("PropertyDefinitionDelete"),
5473
5581
  input: DTODeleteElementPropertyDefinitionInputV2
5474
5582
  });
5475
5583
 
5476
5584
  // src/api/dto/elements/properties/property-values.ts
5477
- import { z as z198 } from "zod";
5478
- var DTOElementPropertyValue = z198.object({
5479
- id: z198.string(),
5480
- designSystemVersionId: z198.string(),
5481
- definitionId: z198.string(),
5482
- targetElementId: z198.string(),
5483
- value: z198.union([z198.string(), z198.number(), z198.boolean()]).optional(),
5484
- valuePreview: z198.string().optional()
5585
+ import { z as z201 } from "zod";
5586
+ var DTOElementPropertyValue = z201.object({
5587
+ id: z201.string(),
5588
+ designSystemVersionId: z201.string(),
5589
+ definitionId: z201.string(),
5590
+ targetElementId: z201.string(),
5591
+ value: z201.union([z201.string(), z201.number(), z201.boolean()]).optional(),
5592
+ valuePreview: z201.string().optional()
5485
5593
  });
5486
- var DTOElementPropertyValuesGetResponse = z198.object({
5487
- values: z198.array(DTOElementPropertyValue)
5594
+ var DTOElementPropertyValuesGetResponse = z201.object({
5595
+ values: z201.array(DTOElementPropertyValue)
5488
5596
  });
5489
5597
 
5490
5598
  // src/api/dto/elements/elements-action-v2.ts
5491
- import { z as z199 } from "zod";
5492
- var DTOElementActionOutput = z199.discriminatedUnion("type", [
5599
+ import { z as z202 } from "zod";
5600
+ var DTOElementActionOutput = z202.discriminatedUnion("type", [
5493
5601
  // Documentation pages
5494
5602
  DTODocumentationPageCreateActionOutputV2,
5495
5603
  DTODocumentationPageUpdateActionOutputV2,
@@ -5511,7 +5619,7 @@ var DTOElementActionOutput = z199.discriminatedUnion("type", [
5511
5619
  DTOPropertyDefinitionUpdateActionOutputV2,
5512
5620
  DTOPropertyDefinitionDeleteActionOutputV2
5513
5621
  ]);
5514
- var DTOElementActionInput = z199.discriminatedUnion("type", [
5622
+ var DTOElementActionInput = z202.discriminatedUnion("type", [
5515
5623
  // Documentation pages
5516
5624
  DTODocumentationPageCreateActionInputV2,
5517
5625
  DTODocumentationPageUpdateActionInputV2,
@@ -5535,115 +5643,13 @@ var DTOElementActionInput = z199.discriminatedUnion("type", [
5535
5643
  ]);
5536
5644
 
5537
5645
  // src/api/dto/elements/get-elements-v2.ts
5538
- import { z as z200 } from "zod";
5539
- var DTOElementsGetTypeFilter = z200.enum(["FigmaNode"]);
5540
- var DTOElementsGetQuerySchema = z200.object({
5541
- types: z200.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5542
- });
5543
- var DTOElementsGetOutput = z200.object({
5544
- figmaNodes: z200.array(DTOFigmaNode).optional()
5545
- });
5546
-
5547
- // src/api/dto/export/exporter.ts
5548
- import { z as z201 } from "zod";
5549
- var DTOExporterType = z201.enum(["documentation", "code"]);
5550
- var DTOExporterSource = z201.enum(["git", "upload"]);
5551
- var DTOExporterMembershipRole = z201.enum(["Owner", "OwnerArchived", "User"]);
5552
- var DTOExporter = z201.object({
5553
- id: z201.string(),
5554
- name: z201.string(),
5555
- isPrivate: z201.boolean(),
5556
- exporterType: DTOExporterType,
5557
- isDefaultDocumentationExporter: z201.boolean(),
5558
- iconURL: z201.string().optional(),
5559
- configurationProperties: PulsarContributionConfigurationProperty.array(),
5560
- customBlocks: PulsarCustomBlock.array(),
5561
- blockVariants: z201.record(z201.string(), PulsarContributionVariant.array()),
5562
- usesBrands: z201.boolean(),
5563
- usesThemes: z201.boolean(),
5564
- source: DTOExporterSource,
5565
- gitUrl: z201.string().optional(),
5566
- gitBranch: z201.string().optional(),
5567
- gitDirectory: z201.string().optional()
5568
- });
5569
- var DTOExporterMembership = z201.object({
5570
- workspaceId: z201.string(),
5571
- exporterId: z201.string(),
5572
- role: DTOExporterMembershipRole
5573
- });
5574
- var DTOExporterCreateOutput = z201.object({
5575
- exporter: DTOExporter,
5576
- membership: DTOExporterMembership
5577
- });
5578
- var DTOExporterGitProviderEnum = z201.enum(["github", "gitlab", "bitbucket", "azure"]);
5579
- var DTOExporterCreateInput = z201.object({
5580
- url: z201.string(),
5581
- provider: DTOExporterGitProviderEnum
5582
- });
5583
- var DTOExporterUpdateInput = z201.object({
5584
- url: z201.string().optional()
5585
- });
5586
-
5587
- // src/api/dto/export/job.ts
5588
- import { z as z202 } from "zod";
5589
- var DTOExportJobCreatedBy = z202.object({
5590
- userId: z202.string(),
5591
- userName: z202.string()
5592
- });
5593
- var DTOExportJobDesignSystemPreview = z202.object({
5594
- id: z202.string(),
5595
- meta: ObjectMeta
5596
- });
5597
- var DTOExportJobDesignSystemVersionPreview = z202.object({
5598
- id: z202.string(),
5599
- meta: ObjectMeta,
5600
- version: z202.string(),
5601
- isReadonly: z202.boolean()
5602
- });
5603
- var DTOExportJobDestinations = z202.object({
5604
- s3: ExporterDestinationS3.optional(),
5605
- azure: ExporterDestinationAzure.optional(),
5606
- bitbucket: ExporterDestinationBitbucket.optional(),
5607
- github: ExporterDestinationGithub.optional(),
5608
- gitlab: ExporterDestinationGitlab.optional(),
5609
- documentation: ExporterDestinationDocs.optional(),
5610
- webhookUrl: z202.string().optional()
5611
- });
5612
- var DTOExportJob = z202.object({
5613
- id: z202.string(),
5614
- createdAt: z202.coerce.date(),
5615
- finishedAt: z202.coerce.date().optional(),
5616
- index: z202.number().optional(),
5617
- status: ExportJobStatus,
5618
- estimatedExecutionTime: z202.number().optional(),
5619
- createdBy: DTOExportJobCreatedBy.optional(),
5620
- designSystem: DTOExportJobDesignSystemPreview,
5621
- designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5622
- destinations: DTOExportJobDestinations,
5623
- exporterId: z202.string(),
5624
- scheduleId: z202.string().optional(),
5625
- result: ExportJobResult.optional(),
5626
- brandPersistentId: z202.string().optional(),
5627
- themePersistentId: z202.string().optional()
5628
- });
5629
- var DTOExportJobResponse = z202.object({
5630
- job: DTOExportJob
5631
- });
5632
-
5633
- // src/api/dto/export/pipeline.ts
5634
5646
  import { z as z203 } from "zod";
5635
- var DTOPipeline = z203.object({
5636
- id: z203.string(),
5637
- name: z203.string(),
5638
- eventType: PipelineEventType,
5639
- isEnabled: z203.boolean(),
5640
- workspaceId: z203.string(),
5641
- designSystemId: z203.string(),
5642
- exporterId: z203.string(),
5643
- brandPersistentId: z203.string().optional(),
5644
- themePersistentId: z203.string().optional(),
5645
- ...ExportDestinationsMap.shape,
5646
- latestJobs: DTOExportJob.array()
5647
+ var DTOElementsGetTypeFilter = z203.enum(["FigmaNode"]);
5648
+ var DTOElementsGetQuerySchema = z203.object({
5649
+ types: z203.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5650
+ });
5651
+ var DTOElementsGetOutput = z203.object({
5652
+ figmaNodes: z203.array(DTOFigmaNode).optional()
5647
5653
  });
5648
5654
 
5649
5655
  // src/api/dto/figma-components/assets/download.ts
@@ -10012,6 +10018,7 @@ export {
10012
10018
  DTOPropertyDefinitionUpdateActionInputV2,
10013
10019
  DTOPropertyDefinitionUpdateActionOutputV2,
10014
10020
  DTOPublishDocumentationRequest,
10021
+ DTOPublishDocumentationResponse,
10015
10022
  DTORenderedAssetFile,
10016
10023
  DTOUpdateDocumentationGroupInput,
10017
10024
  DTOUpdateDocumentationPageInputV2,