@supernova-studio/client 1.87.2 → 1.87.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +105 -1
- package/dist/index.d.ts +105 -1
- package/dist/index.js +42 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1446 -1421
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4164,131 +4164,131 @@ var PageBlockDefinition = z112.object({
|
|
|
4164
4164
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
4165
4165
|
});
|
|
4166
4166
|
|
|
4167
|
-
// ../model/src/dsm/documentation/
|
|
4167
|
+
// ../model/src/dsm/documentation/configuration.ts
|
|
4168
4168
|
import { z as z113 } from "zod";
|
|
4169
|
-
var
|
|
4170
|
-
|
|
4171
|
-
childType: z113.literal("DocumentationPage"),
|
|
4172
|
-
id: z113.string(),
|
|
4173
|
-
persistentId: z113.string(),
|
|
4174
|
-
shortPersistentId: z113.string(),
|
|
4169
|
+
var DocumentationConfiguration = z113.object({
|
|
4170
|
+
// Basic
|
|
4175
4171
|
designSystemVersionId: z113.string(),
|
|
4176
|
-
parentPersistentId: z113.string().nullish(),
|
|
4177
|
-
sortOrder: z113.number(),
|
|
4178
|
-
title: z113.string(),
|
|
4179
|
-
slug: z113.string(),
|
|
4180
|
-
userSlug: z113.string().nullish(),
|
|
4181
4172
|
createdAt: z113.coerce.date(),
|
|
4182
|
-
updatedAt: z113.coerce.date()
|
|
4173
|
+
updatedAt: z113.coerce.date(),
|
|
4174
|
+
// Configuration
|
|
4175
|
+
isTabbedLayoutEnabled: z113.boolean(),
|
|
4176
|
+
storybookEmbedErrorMessage: z113.string().optional(),
|
|
4177
|
+
renderCodePackageJson: z113.string().optional(),
|
|
4178
|
+
selectedBrandPersistentId: z113.string().optional(),
|
|
4179
|
+
serveDefaultVersionOnly: z113.boolean(),
|
|
4180
|
+
isPublic: z113.boolean()
|
|
4183
4181
|
});
|
|
4184
4182
|
|
|
4185
|
-
// ../model/src/dsm/documentation/
|
|
4183
|
+
// ../model/src/dsm/documentation/group.ts
|
|
4186
4184
|
import { z as z114 } from "zod";
|
|
4187
|
-
var
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4185
|
+
var DocumentationPageGroup = z114.object({
|
|
4186
|
+
type: z114.literal("ElementGroup"),
|
|
4187
|
+
childType: z114.literal("DocumentationPage"),
|
|
4188
|
+
id: z114.string(),
|
|
4189
|
+
persistentId: z114.string(),
|
|
4190
|
+
shortPersistentId: z114.string(),
|
|
4191
|
+
designSystemVersionId: z114.string(),
|
|
4192
|
+
parentPersistentId: z114.string().nullish(),
|
|
4193
|
+
sortOrder: z114.number(),
|
|
4194
|
+
title: z114.string(),
|
|
4195
|
+
slug: z114.string(),
|
|
4196
|
+
userSlug: z114.string().nullish(),
|
|
4197
|
+
createdAt: z114.coerce.date(),
|
|
4198
|
+
updatedAt: z114.coerce.date()
|
|
4191
4199
|
});
|
|
4192
4200
|
|
|
4193
|
-
// ../model/src/dsm/documentation/
|
|
4201
|
+
// ../model/src/dsm/documentation/link-preview.ts
|
|
4194
4202
|
import { z as z115 } from "zod";
|
|
4195
|
-
var
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4203
|
+
var DocumentationLinkPreview = z115.object({
|
|
4204
|
+
title: z115.string().optional(),
|
|
4205
|
+
description: z115.string().optional(),
|
|
4206
|
+
thumbnail: PageBlockImageReference.optional()
|
|
4199
4207
|
});
|
|
4200
4208
|
|
|
4201
|
-
// ../model/src/dsm/documentation/page-
|
|
4209
|
+
// ../model/src/dsm/documentation/page-anchor.ts
|
|
4202
4210
|
import { z as z116 } from "zod";
|
|
4203
|
-
var
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
updatedAt: z116.coerce.date(),
|
|
4208
|
-
documentationPageId: z116.string(),
|
|
4209
|
-
documentationPageName: z116.string(),
|
|
4210
|
-
storagePath: z116.string()
|
|
4211
|
+
var DocumentationPageAnchor = z116.object({
|
|
4212
|
+
blockId: z116.string(),
|
|
4213
|
+
level: z116.number(),
|
|
4214
|
+
text: z116.string()
|
|
4211
4215
|
});
|
|
4212
4216
|
|
|
4213
|
-
// ../model/src/dsm/documentation/page-content.ts
|
|
4217
|
+
// ../model/src/dsm/documentation/page-content-backup.ts
|
|
4214
4218
|
import { z as z117 } from "zod";
|
|
4215
|
-
var
|
|
4216
|
-
PageBlockEditorModelV2,
|
|
4217
|
-
PageSectionEditorModelV2
|
|
4218
|
-
]);
|
|
4219
|
-
var DocumentationPageContentData = z117.object({
|
|
4220
|
-
items: z117.array(DocumentationPageContentItem)
|
|
4221
|
-
});
|
|
4222
|
-
var DocumentationPageContent = z117.object({
|
|
4219
|
+
var DocumentationPageContentBackup = z117.object({
|
|
4223
4220
|
id: z117.string(),
|
|
4224
4221
|
designSystemVersionId: z117.string(),
|
|
4225
4222
|
createdAt: z117.coerce.date(),
|
|
4226
4223
|
updatedAt: z117.coerce.date(),
|
|
4227
4224
|
documentationPageId: z117.string(),
|
|
4228
|
-
|
|
4225
|
+
documentationPageName: z117.string(),
|
|
4226
|
+
storagePath: z117.string()
|
|
4229
4227
|
});
|
|
4230
4228
|
|
|
4231
|
-
// ../model/src/dsm/documentation/page-
|
|
4229
|
+
// ../model/src/dsm/documentation/page-content.ts
|
|
4232
4230
|
import { z as z118 } from "zod";
|
|
4233
|
-
var
|
|
4231
|
+
var DocumentationPageContentItem = z118.discriminatedUnion("type", [
|
|
4232
|
+
PageBlockEditorModelV2,
|
|
4233
|
+
PageSectionEditorModelV2
|
|
4234
|
+
]);
|
|
4235
|
+
var DocumentationPageContentData = z118.object({
|
|
4236
|
+
items: z118.array(DocumentationPageContentItem)
|
|
4237
|
+
});
|
|
4238
|
+
var DocumentationPageContent = z118.object({
|
|
4234
4239
|
id: z118.string(),
|
|
4235
4240
|
designSystemVersionId: z118.string(),
|
|
4236
4241
|
createdAt: z118.coerce.date(),
|
|
4237
4242
|
updatedAt: z118.coerce.date(),
|
|
4238
4243
|
documentationPageId: z118.string(),
|
|
4239
|
-
|
|
4240
|
-
figmaComponentPersistentIds: z118.set(z118.string()),
|
|
4241
|
-
componentPersistentIds: z118.set(z118.string()),
|
|
4242
|
-
figmaNodePersistentIds: z118.set(z118.string()),
|
|
4243
|
-
groupPersistentIds: z118.set(z118.string()),
|
|
4244
|
-
propertyPersistentIds: z118.set(z118.string()),
|
|
4245
|
-
themePersistentIds: z118.set(z118.string()),
|
|
4246
|
-
documentationPagePersistentIds: z118.set(z118.string()),
|
|
4247
|
-
storybookEntriesStoryIds: z118.array(z118.string())
|
|
4244
|
+
data: DocumentationPageContentData
|
|
4248
4245
|
});
|
|
4249
4246
|
|
|
4250
|
-
// ../model/src/dsm/documentation/page.ts
|
|
4247
|
+
// ../model/src/dsm/documentation/page-dependencies.ts
|
|
4251
4248
|
import { z as z119 } from "zod";
|
|
4252
|
-
var
|
|
4253
|
-
type: z119.literal("DocumentationPage"),
|
|
4249
|
+
var DocumentationPageDependencies = z119.object({
|
|
4254
4250
|
id: z119.string(),
|
|
4255
|
-
persistentId: z119.string(),
|
|
4256
|
-
shortPersistentId: z119.string(),
|
|
4257
4251
|
designSystemVersionId: z119.string(),
|
|
4258
|
-
parentPersistentId: z119.string().nullish(),
|
|
4259
|
-
sortOrder: z119.number(),
|
|
4260
|
-
title: z119.string(),
|
|
4261
|
-
slug: z119.string(),
|
|
4262
|
-
userSlug: z119.string().nullish(),
|
|
4263
4252
|
createdAt: z119.coerce.date(),
|
|
4264
|
-
updatedAt: z119.coerce.date()
|
|
4253
|
+
updatedAt: z119.coerce.date(),
|
|
4254
|
+
documentationPageId: z119.string(),
|
|
4255
|
+
tokenPersistentIds: z119.set(z119.string()),
|
|
4256
|
+
figmaComponentPersistentIds: z119.set(z119.string()),
|
|
4257
|
+
componentPersistentIds: z119.set(z119.string()),
|
|
4258
|
+
figmaNodePersistentIds: z119.set(z119.string()),
|
|
4259
|
+
groupPersistentIds: z119.set(z119.string()),
|
|
4260
|
+
propertyPersistentIds: z119.set(z119.string()),
|
|
4261
|
+
themePersistentIds: z119.set(z119.string()),
|
|
4262
|
+
documentationPagePersistentIds: z119.set(z119.string()),
|
|
4263
|
+
storybookEntriesStoryIds: z119.array(z119.string())
|
|
4265
4264
|
});
|
|
4266
4265
|
|
|
4267
|
-
// ../model/src/dsm/documentation/
|
|
4266
|
+
// ../model/src/dsm/documentation/page.ts
|
|
4268
4267
|
import { z as z120 } from "zod";
|
|
4269
|
-
var
|
|
4268
|
+
var DocumentationPage = z120.object({
|
|
4269
|
+
type: z120.literal("DocumentationPage"),
|
|
4270
4270
|
id: z120.string(),
|
|
4271
|
-
|
|
4272
|
-
|
|
4271
|
+
persistentId: z120.string(),
|
|
4272
|
+
shortPersistentId: z120.string(),
|
|
4273
|
+
designSystemVersionId: z120.string(),
|
|
4274
|
+
parentPersistentId: z120.string().nullish(),
|
|
4275
|
+
sortOrder: z120.number(),
|
|
4276
|
+
title: z120.string(),
|
|
4277
|
+
slug: z120.string(),
|
|
4278
|
+
userSlug: z120.string().nullish(),
|
|
4273
4279
|
createdAt: z120.coerce.date(),
|
|
4274
|
-
updatedAt: z120.coerce.date()
|
|
4275
|
-
designSystemId: z120.string()
|
|
4280
|
+
updatedAt: z120.coerce.date()
|
|
4276
4281
|
});
|
|
4277
4282
|
|
|
4278
|
-
// ../model/src/dsm/documentation/
|
|
4283
|
+
// ../model/src/dsm/documentation/redirects.ts
|
|
4279
4284
|
import { z as z121 } from "zod";
|
|
4280
|
-
var
|
|
4281
|
-
|
|
4282
|
-
|
|
4285
|
+
var PageRedirect = z121.object({
|
|
4286
|
+
id: z121.string(),
|
|
4287
|
+
pagePersistentId: z121.string(),
|
|
4288
|
+
path: z121.string(),
|
|
4283
4289
|
createdAt: z121.coerce.date(),
|
|
4284
4290
|
updatedAt: z121.coerce.date(),
|
|
4285
|
-
|
|
4286
|
-
isTabbedLayoutEnabled: z121.boolean(),
|
|
4287
|
-
storybookEmbedErrorMessage: z121.string().optional(),
|
|
4288
|
-
renderCodePackageJson: z121.string().optional(),
|
|
4289
|
-
selectedBrandPersistentId: z121.string().optional(),
|
|
4290
|
-
serveDefaultVersionOnly: z121.boolean(),
|
|
4291
|
-
isPublic: z121.boolean()
|
|
4291
|
+
designSystemId: z121.string()
|
|
4292
4292
|
});
|
|
4293
4293
|
|
|
4294
4294
|
// ../model/src/dsm/documentation/thread.ts
|
|
@@ -9382,11 +9382,28 @@ var DTOFigmaComponentListResponse = z293.object({
|
|
|
9382
9382
|
components: DTOFigmaComponent.array()
|
|
9383
9383
|
});
|
|
9384
9384
|
|
|
9385
|
+
// src/api/dto/elements/documentation/configuration.ts
|
|
9386
|
+
import { z as z294 } from "zod";
|
|
9387
|
+
var DTODocumentationConfiguration = z294.object({
|
|
9388
|
+
tabbed: z294.boolean(),
|
|
9389
|
+
isPublic: z294.boolean(),
|
|
9390
|
+
selectedBrandId: z294.string().nullish(),
|
|
9391
|
+
storybookEmbedErrorMessage: z294.string().nullish(),
|
|
9392
|
+
renderCodePackageJson: z294.string().nullish()
|
|
9393
|
+
});
|
|
9394
|
+
var DTODocumentationConfigurationResponse = z294.object({
|
|
9395
|
+
documentation: z294.object({
|
|
9396
|
+
designSystemId: z294.string(),
|
|
9397
|
+
designSystemVersionId: z294.string(),
|
|
9398
|
+
settings: DTODocumentationConfiguration
|
|
9399
|
+
})
|
|
9400
|
+
});
|
|
9401
|
+
|
|
9385
9402
|
// src/api/dto/elements/documentation/group-action.ts
|
|
9386
|
-
import { z as
|
|
9403
|
+
import { z as z296 } from "zod";
|
|
9387
9404
|
|
|
9388
9405
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
9389
|
-
import { z as
|
|
9406
|
+
import { z as z295 } from "zod";
|
|
9390
9407
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
9391
9408
|
sortOrder: true,
|
|
9392
9409
|
parentPersistentId: true,
|
|
@@ -9396,13 +9413,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
9396
9413
|
data: true,
|
|
9397
9414
|
shortPersistentId: true
|
|
9398
9415
|
}).extend({
|
|
9399
|
-
title:
|
|
9400
|
-
isRoot:
|
|
9401
|
-
childrenIds:
|
|
9416
|
+
title: z295.string(),
|
|
9417
|
+
isRoot: z295.boolean(),
|
|
9418
|
+
childrenIds: z295.array(z295.string()),
|
|
9402
9419
|
groupBehavior: DocumentationGroupBehavior,
|
|
9403
|
-
shortPersistentId:
|
|
9420
|
+
shortPersistentId: z295.string(),
|
|
9404
9421
|
configuration: DTODocumentationItemConfigurationV2,
|
|
9405
|
-
type:
|
|
9422
|
+
type: z295.literal("Group"),
|
|
9406
9423
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
9407
9424
|
draftState: DTODocumentationDraftState.optional(),
|
|
9408
9425
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -9410,127 +9427,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
9410
9427
|
//** An approval state for frontend to utilize. */
|
|
9411
9428
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
9412
9429
|
});
|
|
9413
|
-
var DTOCreateDocumentationGroupInput =
|
|
9430
|
+
var DTOCreateDocumentationGroupInput = z295.object({
|
|
9414
9431
|
// Identifier
|
|
9415
|
-
persistentId:
|
|
9432
|
+
persistentId: z295.string(),
|
|
9416
9433
|
// Group properties
|
|
9417
|
-
title:
|
|
9434
|
+
title: z295.string(),
|
|
9418
9435
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
9419
9436
|
// Group placement properties
|
|
9420
|
-
afterPersistentId:
|
|
9421
|
-
parentPersistentId:
|
|
9437
|
+
afterPersistentId: z295.string().nullish(),
|
|
9438
|
+
parentPersistentId: z295.string()
|
|
9422
9439
|
});
|
|
9423
|
-
var DTOUpdateDocumentationGroupInput =
|
|
9440
|
+
var DTOUpdateDocumentationGroupInput = z295.object({
|
|
9424
9441
|
// Identifier of the group to update
|
|
9425
|
-
id:
|
|
9442
|
+
id: z295.string(),
|
|
9426
9443
|
// Group properties
|
|
9427
|
-
title:
|
|
9444
|
+
title: z295.string().optional(),
|
|
9428
9445
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
9429
9446
|
});
|
|
9430
|
-
var DTOMoveDocumentationGroupInput =
|
|
9447
|
+
var DTOMoveDocumentationGroupInput = z295.object({
|
|
9431
9448
|
// Identifier of the group to update
|
|
9432
|
-
id:
|
|
9449
|
+
id: z295.string(),
|
|
9433
9450
|
// Group placement properties
|
|
9434
|
-
parentPersistentId:
|
|
9435
|
-
afterPersistentId:
|
|
9451
|
+
parentPersistentId: z295.string(),
|
|
9452
|
+
afterPersistentId: z295.string().nullish()
|
|
9436
9453
|
});
|
|
9437
|
-
var DTODuplicateDocumentationGroupInput =
|
|
9454
|
+
var DTODuplicateDocumentationGroupInput = z295.object({
|
|
9438
9455
|
// Identifier of the group to duplicate from
|
|
9439
|
-
id:
|
|
9456
|
+
id: z295.string(),
|
|
9440
9457
|
// New group persistent id
|
|
9441
|
-
persistentId:
|
|
9458
|
+
persistentId: z295.string(),
|
|
9442
9459
|
// Group placement properties
|
|
9443
|
-
afterPersistentId:
|
|
9444
|
-
parentPersistentId:
|
|
9460
|
+
afterPersistentId: z295.string().nullish(),
|
|
9461
|
+
parentPersistentId: z295.string()
|
|
9445
9462
|
});
|
|
9446
|
-
var DTOCreateDocumentationTabInput =
|
|
9463
|
+
var DTOCreateDocumentationTabInput = z295.object({
|
|
9447
9464
|
// New group persistent id
|
|
9448
|
-
persistentId:
|
|
9465
|
+
persistentId: z295.string(),
|
|
9449
9466
|
// If this is page, we will attempt to convert it to tab
|
|
9450
9467
|
// If this is tab group, we will add a new tab to it
|
|
9451
|
-
fromItemPersistentId:
|
|
9452
|
-
tabName:
|
|
9468
|
+
fromItemPersistentId: z295.string(),
|
|
9469
|
+
tabName: z295.string()
|
|
9453
9470
|
});
|
|
9454
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
9471
|
+
var DTODeleteDocumentationTabGroupInput = z295.object({
|
|
9455
9472
|
// Deleted group id
|
|
9456
|
-
id:
|
|
9473
|
+
id: z295.string()
|
|
9457
9474
|
});
|
|
9458
|
-
var DTODeleteDocumentationGroupInput =
|
|
9475
|
+
var DTODeleteDocumentationGroupInput = z295.object({
|
|
9459
9476
|
// Identifier
|
|
9460
|
-
id:
|
|
9477
|
+
id: z295.string(),
|
|
9461
9478
|
// Deletion options
|
|
9462
|
-
deleteSubtree:
|
|
9479
|
+
deleteSubtree: z295.boolean().default(false)
|
|
9463
9480
|
});
|
|
9464
9481
|
|
|
9465
9482
|
// src/api/dto/elements/documentation/group-action.ts
|
|
9466
|
-
var SuccessPayload =
|
|
9467
|
-
success:
|
|
9483
|
+
var SuccessPayload = z296.object({
|
|
9484
|
+
success: z296.literal(true)
|
|
9468
9485
|
});
|
|
9469
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
9470
|
-
type:
|
|
9486
|
+
var DTODocumentationGroupCreateActionOutputV2 = z296.object({
|
|
9487
|
+
type: z296.literal("DocumentationGroupCreate"),
|
|
9471
9488
|
output: SuccessPayload
|
|
9472
9489
|
});
|
|
9473
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
9474
|
-
type:
|
|
9490
|
+
var DTODocumentationTabCreateActionOutputV2 = z296.object({
|
|
9491
|
+
type: z296.literal("DocumentationTabCreate"),
|
|
9475
9492
|
output: SuccessPayload
|
|
9476
9493
|
});
|
|
9477
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
9478
|
-
type:
|
|
9494
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z296.object({
|
|
9495
|
+
type: z296.literal("DocumentationGroupUpdate"),
|
|
9479
9496
|
output: SuccessPayload
|
|
9480
9497
|
});
|
|
9481
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
9482
|
-
type:
|
|
9498
|
+
var DTODocumentationGroupMoveActionOutputV2 = z296.object({
|
|
9499
|
+
type: z296.literal("DocumentationGroupMove"),
|
|
9483
9500
|
output: SuccessPayload
|
|
9484
9501
|
});
|
|
9485
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
9486
|
-
type:
|
|
9502
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z296.object({
|
|
9503
|
+
type: z296.literal("DocumentationGroupDuplicate"),
|
|
9487
9504
|
output: SuccessPayload
|
|
9488
9505
|
});
|
|
9489
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
9490
|
-
type:
|
|
9506
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z296.object({
|
|
9507
|
+
type: z296.literal("DocumentationGroupDelete"),
|
|
9491
9508
|
output: SuccessPayload
|
|
9492
9509
|
});
|
|
9493
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
9494
|
-
type:
|
|
9510
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z296.object({
|
|
9511
|
+
type: z296.literal("DocumentationTabGroupDelete"),
|
|
9495
9512
|
output: SuccessPayload
|
|
9496
9513
|
});
|
|
9497
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
9498
|
-
type:
|
|
9514
|
+
var DTODocumentationGroupCreateActionInputV2 = z296.object({
|
|
9515
|
+
type: z296.literal("DocumentationGroupCreate"),
|
|
9499
9516
|
input: DTOCreateDocumentationGroupInput
|
|
9500
9517
|
});
|
|
9501
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
9502
|
-
type:
|
|
9518
|
+
var DTODocumentationTabCreateActionInputV2 = z296.object({
|
|
9519
|
+
type: z296.literal("DocumentationTabCreate"),
|
|
9503
9520
|
input: DTOCreateDocumentationTabInput
|
|
9504
9521
|
});
|
|
9505
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
9506
|
-
type:
|
|
9522
|
+
var DTODocumentationGroupUpdateActionInputV2 = z296.object({
|
|
9523
|
+
type: z296.literal("DocumentationGroupUpdate"),
|
|
9507
9524
|
input: DTOUpdateDocumentationGroupInput
|
|
9508
9525
|
});
|
|
9509
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
9510
|
-
type:
|
|
9526
|
+
var DTODocumentationGroupMoveActionInputV2 = z296.object({
|
|
9527
|
+
type: z296.literal("DocumentationGroupMove"),
|
|
9511
9528
|
input: DTOMoveDocumentationGroupInput
|
|
9512
9529
|
});
|
|
9513
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
9514
|
-
type:
|
|
9530
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z296.object({
|
|
9531
|
+
type: z296.literal("DocumentationGroupDuplicate"),
|
|
9515
9532
|
input: DTODuplicateDocumentationGroupInput
|
|
9516
9533
|
});
|
|
9517
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
9518
|
-
type:
|
|
9534
|
+
var DTODocumentationGroupDeleteActionInputV2 = z296.object({
|
|
9535
|
+
type: z296.literal("DocumentationGroupDelete"),
|
|
9519
9536
|
input: DTODeleteDocumentationGroupInput
|
|
9520
9537
|
});
|
|
9521
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
9522
|
-
type:
|
|
9538
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z296.object({
|
|
9539
|
+
type: z296.literal("DocumentationTabGroupDelete"),
|
|
9523
9540
|
input: DTODeleteDocumentationTabGroupInput
|
|
9524
9541
|
});
|
|
9525
9542
|
|
|
9526
9543
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
9527
|
-
import { z as
|
|
9544
|
+
import { z as z298 } from "zod";
|
|
9528
9545
|
|
|
9529
9546
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
9530
|
-
import { z as
|
|
9531
|
-
var DocumentationColorV1 =
|
|
9532
|
-
aliasTo:
|
|
9533
|
-
value:
|
|
9547
|
+
import { z as z297 } from "zod";
|
|
9548
|
+
var DocumentationColorV1 = z297.object({
|
|
9549
|
+
aliasTo: z297.string().optional(),
|
|
9550
|
+
value: z297.string().optional()
|
|
9534
9551
|
});
|
|
9535
9552
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
9536
9553
|
foregroundColor: true,
|
|
@@ -9539,10 +9556,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
9539
9556
|
foregroundColor: DocumentationColorV1.optional(),
|
|
9540
9557
|
backgroundColor: DocumentationColorV1.optional()
|
|
9541
9558
|
});
|
|
9542
|
-
var DTODocumentationItemConfigurationV1 =
|
|
9543
|
-
showSidebar:
|
|
9544
|
-
isPrivate:
|
|
9545
|
-
isHidden:
|
|
9559
|
+
var DTODocumentationItemConfigurationV1 = z297.object({
|
|
9560
|
+
showSidebar: z297.boolean(),
|
|
9561
|
+
isPrivate: z297.boolean(),
|
|
9562
|
+
isHidden: z297.boolean(),
|
|
9546
9563
|
header: DTODocumentationItemHeaderV1
|
|
9547
9564
|
});
|
|
9548
9565
|
|
|
@@ -9556,145 +9573,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
9556
9573
|
data: true,
|
|
9557
9574
|
shortPersistentId: true
|
|
9558
9575
|
}).extend({
|
|
9559
|
-
title:
|
|
9560
|
-
isRoot:
|
|
9561
|
-
childrenIds:
|
|
9576
|
+
title: z298.string(),
|
|
9577
|
+
isRoot: z298.boolean(),
|
|
9578
|
+
childrenIds: z298.array(z298.string()),
|
|
9562
9579
|
groupBehavior: DocumentationGroupBehavior,
|
|
9563
|
-
shortPersistentId:
|
|
9564
|
-
type:
|
|
9580
|
+
shortPersistentId: z298.string(),
|
|
9581
|
+
type: z298.literal("Group")
|
|
9565
9582
|
});
|
|
9566
9583
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
9567
9584
|
configuration: DTODocumentationItemConfigurationV1
|
|
9568
9585
|
});
|
|
9569
9586
|
|
|
9570
9587
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
9571
|
-
import { z as
|
|
9572
|
-
var DTODocumentationHierarchyV2 =
|
|
9573
|
-
pages:
|
|
9588
|
+
import { z as z299 } from "zod";
|
|
9589
|
+
var DTODocumentationHierarchyV2 = z299.object({
|
|
9590
|
+
pages: z299.array(
|
|
9574
9591
|
DTODocumentationPageV2.extend({
|
|
9575
9592
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
9576
9593
|
draftState: DTODocumentationDraftState.optional()
|
|
9577
9594
|
})
|
|
9578
9595
|
),
|
|
9579
|
-
groups:
|
|
9596
|
+
groups: z299.array(
|
|
9580
9597
|
DTODocumentationGroupV2.extend({
|
|
9581
9598
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
9582
9599
|
draftState: DTODocumentationDraftState.optional()
|
|
9583
9600
|
})
|
|
9584
9601
|
),
|
|
9585
9602
|
/** True if the documentation was already published, false otherwise. */
|
|
9586
|
-
hasPublishedDocumentationContent:
|
|
9603
|
+
hasPublishedDocumentationContent: z299.boolean()
|
|
9587
9604
|
});
|
|
9588
9605
|
|
|
9589
9606
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
9590
|
-
import { z as
|
|
9591
|
-
var SuccessPayload2 =
|
|
9592
|
-
success:
|
|
9607
|
+
import { z as z300 } from "zod";
|
|
9608
|
+
var SuccessPayload2 = z300.object({
|
|
9609
|
+
success: z300.literal(true)
|
|
9593
9610
|
});
|
|
9594
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
9595
|
-
type:
|
|
9611
|
+
var DTODocumentationPageCreateActionOutputV2 = z300.object({
|
|
9612
|
+
type: z300.literal("DocumentationPageCreate"),
|
|
9596
9613
|
output: SuccessPayload2
|
|
9597
9614
|
});
|
|
9598
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
9599
|
-
type:
|
|
9615
|
+
var DTODocumentationPageUpdateActionOutputV2 = z300.object({
|
|
9616
|
+
type: z300.literal("DocumentationPageUpdate"),
|
|
9600
9617
|
output: SuccessPayload2
|
|
9601
9618
|
});
|
|
9602
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
9603
|
-
type:
|
|
9619
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z300.object({
|
|
9620
|
+
type: z300.literal("DocumentationPageUpdateDocument"),
|
|
9604
9621
|
output: SuccessPayload2
|
|
9605
9622
|
});
|
|
9606
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
9607
|
-
type:
|
|
9623
|
+
var DTODocumentationPageMoveActionOutputV2 = z300.object({
|
|
9624
|
+
type: z300.literal("DocumentationPageMove"),
|
|
9608
9625
|
output: SuccessPayload2
|
|
9609
9626
|
});
|
|
9610
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
9611
|
-
type:
|
|
9627
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z300.object({
|
|
9628
|
+
type: z300.literal("DocumentationPageDuplicate"),
|
|
9612
9629
|
output: SuccessPayload2
|
|
9613
9630
|
});
|
|
9614
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
9615
|
-
type:
|
|
9631
|
+
var DTODocumentationPageDeleteActionOutputV2 = z300.object({
|
|
9632
|
+
type: z300.literal("DocumentationPageDelete"),
|
|
9616
9633
|
output: SuccessPayload2
|
|
9617
9634
|
});
|
|
9618
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
9619
|
-
type:
|
|
9635
|
+
var DTODocumentationPageRestoreActionOutput = z300.object({
|
|
9636
|
+
type: z300.literal("DocumentationPageRestore"),
|
|
9620
9637
|
output: SuccessPayload2
|
|
9621
9638
|
});
|
|
9622
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
9623
|
-
type:
|
|
9639
|
+
var DTODocumentationGroupRestoreActionOutput = z300.object({
|
|
9640
|
+
type: z300.literal("DocumentationGroupRestore"),
|
|
9624
9641
|
output: SuccessPayload2
|
|
9625
9642
|
});
|
|
9626
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
9627
|
-
type:
|
|
9643
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z300.object({
|
|
9644
|
+
type: z300.literal("DocumentationPageApprovalStateChange"),
|
|
9628
9645
|
output: SuccessPayload2
|
|
9629
9646
|
});
|
|
9630
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
9631
|
-
type:
|
|
9647
|
+
var DTODocumentationPageCreateActionInputV2 = z300.object({
|
|
9648
|
+
type: z300.literal("DocumentationPageCreate"),
|
|
9632
9649
|
input: DTOCreateDocumentationPageInputV2
|
|
9633
9650
|
});
|
|
9634
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
9635
|
-
type:
|
|
9651
|
+
var DTODocumentationPageUpdateActionInputV2 = z300.object({
|
|
9652
|
+
type: z300.literal("DocumentationPageUpdate"),
|
|
9636
9653
|
input: DTOUpdateDocumentationPageInputV2
|
|
9637
9654
|
});
|
|
9638
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
9639
|
-
type:
|
|
9655
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z300.object({
|
|
9656
|
+
type: z300.literal("DocumentationPageUpdateDocument"),
|
|
9640
9657
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
9641
9658
|
});
|
|
9642
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
9643
|
-
type:
|
|
9659
|
+
var DTODocumentationPageMoveActionInputV2 = z300.object({
|
|
9660
|
+
type: z300.literal("DocumentationPageMove"),
|
|
9644
9661
|
input: DTOMoveDocumentationPageInputV2
|
|
9645
9662
|
});
|
|
9646
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
9647
|
-
type:
|
|
9663
|
+
var DTODocumentationPageDuplicateActionInputV2 = z300.object({
|
|
9664
|
+
type: z300.literal("DocumentationPageDuplicate"),
|
|
9648
9665
|
input: DTODuplicateDocumentationPageInputV2
|
|
9649
9666
|
});
|
|
9650
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
9651
|
-
type:
|
|
9667
|
+
var DTODocumentationPageDeleteActionInputV2 = z300.object({
|
|
9668
|
+
type: z300.literal("DocumentationPageDelete"),
|
|
9652
9669
|
input: DTODeleteDocumentationPageInputV2
|
|
9653
9670
|
});
|
|
9654
|
-
var DTODocumentationPageRestoreActionInput =
|
|
9655
|
-
type:
|
|
9671
|
+
var DTODocumentationPageRestoreActionInput = z300.object({
|
|
9672
|
+
type: z300.literal("DocumentationPageRestore"),
|
|
9656
9673
|
input: DTORestoreDocumentationPageInput
|
|
9657
9674
|
});
|
|
9658
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
9659
|
-
type:
|
|
9675
|
+
var DTODocumentationGroupRestoreActionInput = z300.object({
|
|
9676
|
+
type: z300.literal("DocumentationGroupRestore"),
|
|
9660
9677
|
input: DTORestoreDocumentationGroupInput
|
|
9661
9678
|
});
|
|
9662
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
9663
|
-
type:
|
|
9679
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z300.object({
|
|
9680
|
+
type: z300.literal("DocumentationPageApprovalStateChange"),
|
|
9664
9681
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
9665
9682
|
});
|
|
9666
9683
|
|
|
9667
9684
|
// src/api/dto/elements/documentation/page-content.ts
|
|
9668
|
-
import { z as
|
|
9685
|
+
import { z as z301 } from "zod";
|
|
9669
9686
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
9670
|
-
var DTODocumentationPageContentGetResponse =
|
|
9687
|
+
var DTODocumentationPageContentGetResponse = z301.object({
|
|
9671
9688
|
pageContent: DTODocumentationPageContent
|
|
9672
9689
|
});
|
|
9673
9690
|
|
|
9674
9691
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
9675
|
-
import { z as
|
|
9676
|
-
var DTODocumentationPageDependencies =
|
|
9677
|
-
id:
|
|
9678
|
-
designSystemVersionId:
|
|
9679
|
-
createdAt:
|
|
9680
|
-
updatedAt:
|
|
9681
|
-
documentationPageId:
|
|
9682
|
-
tokenPersistentIds:
|
|
9683
|
-
figmaComponentPersistentIds:
|
|
9684
|
-
componentPersistentIds:
|
|
9685
|
-
figmaNodePersistentIds:
|
|
9686
|
-
groupPersistentIds:
|
|
9687
|
-
propertyPersistentIds:
|
|
9688
|
-
themePersistentIds:
|
|
9689
|
-
documentationPagePersistentIds:
|
|
9690
|
-
storybookEntriesStoryIds:
|
|
9691
|
-
});
|
|
9692
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
9693
|
-
dependencies:
|
|
9692
|
+
import { z as z302 } from "zod";
|
|
9693
|
+
var DTODocumentationPageDependencies = z302.object({
|
|
9694
|
+
id: z302.string(),
|
|
9695
|
+
designSystemVersionId: z302.string(),
|
|
9696
|
+
createdAt: z302.coerce.date(),
|
|
9697
|
+
updatedAt: z302.coerce.date(),
|
|
9698
|
+
documentationPageId: z302.string(),
|
|
9699
|
+
tokenPersistentIds: z302.array(z302.string()),
|
|
9700
|
+
figmaComponentPersistentIds: z302.array(z302.string()),
|
|
9701
|
+
componentPersistentIds: z302.array(z302.string()),
|
|
9702
|
+
figmaNodePersistentIds: z302.array(z302.string()),
|
|
9703
|
+
groupPersistentIds: z302.array(z302.string()),
|
|
9704
|
+
propertyPersistentIds: z302.array(z302.string()),
|
|
9705
|
+
themePersistentIds: z302.array(z302.string()),
|
|
9706
|
+
documentationPagePersistentIds: z302.array(z302.string()),
|
|
9707
|
+
storybookEntriesStoryIds: z302.array(z302.string())
|
|
9708
|
+
});
|
|
9709
|
+
var DTODocumentationPageDependenciesGetResponse = z302.object({
|
|
9710
|
+
dependencies: z302.array(DTODocumentationPageDependencies)
|
|
9694
9711
|
});
|
|
9695
9712
|
|
|
9696
9713
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
9697
|
-
import { z as
|
|
9714
|
+
import { z as z303 } from "zod";
|
|
9698
9715
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
9699
9716
|
data: true,
|
|
9700
9717
|
meta: true,
|
|
@@ -9702,81 +9719,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
9702
9719
|
sortOrder: true
|
|
9703
9720
|
}).extend({
|
|
9704
9721
|
configuration: DTODocumentationItemConfigurationV1,
|
|
9705
|
-
blocks:
|
|
9706
|
-
title:
|
|
9707
|
-
path:
|
|
9722
|
+
blocks: z303.array(PageBlockV1),
|
|
9723
|
+
title: z303.string(),
|
|
9724
|
+
path: z303.string()
|
|
9708
9725
|
});
|
|
9709
9726
|
|
|
9710
9727
|
// src/api/dto/elements/documentation/settings.ts
|
|
9711
|
-
import { z as
|
|
9712
|
-
var DTODocumentationSettings =
|
|
9713
|
-
isDraftFeatureAdopted:
|
|
9714
|
-
isApprovalsFeatureEnabled:
|
|
9715
|
-
isApprovalRequiredForPublishing:
|
|
9728
|
+
import { z as z304 } from "zod";
|
|
9729
|
+
var DTODocumentationSettings = z304.object({
|
|
9730
|
+
isDraftFeatureAdopted: z304.boolean(),
|
|
9731
|
+
isApprovalsFeatureEnabled: z304.boolean(),
|
|
9732
|
+
isApprovalRequiredForPublishing: z304.boolean()
|
|
9716
9733
|
});
|
|
9717
9734
|
|
|
9718
9735
|
// src/api/dto/elements/documentation/structure.ts
|
|
9719
|
-
import { z as
|
|
9720
|
-
var DTODocumentationStructureItemType =
|
|
9721
|
-
var DTODocumentationStructureItemBase =
|
|
9736
|
+
import { z as z305 } from "zod";
|
|
9737
|
+
var DTODocumentationStructureItemType = z305.enum(["Group", "Page"]);
|
|
9738
|
+
var DTODocumentationStructureItemBase = z305.object({
|
|
9722
9739
|
type: DTODocumentationStructureItemType,
|
|
9723
|
-
id:
|
|
9724
|
-
designSystemVersionId:
|
|
9725
|
-
shortPersistentId:
|
|
9726
|
-
persistentId:
|
|
9727
|
-
title:
|
|
9728
|
-
createdAt:
|
|
9729
|
-
updatedAt:
|
|
9740
|
+
id: z305.string(),
|
|
9741
|
+
designSystemVersionId: z305.string(),
|
|
9742
|
+
shortPersistentId: z305.string(),
|
|
9743
|
+
persistentId: z305.string(),
|
|
9744
|
+
title: z305.string(),
|
|
9745
|
+
createdAt: z305.coerce.date(),
|
|
9746
|
+
updatedAt: z305.coerce.date()
|
|
9730
9747
|
});
|
|
9731
9748
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
9732
|
-
type:
|
|
9733
|
-
groupBehavior:
|
|
9734
|
-
childrenIds:
|
|
9735
|
-
isRoot:
|
|
9749
|
+
type: z305.literal(DTODocumentationStructureItemType.enum.Group),
|
|
9750
|
+
groupBehavior: z305.string(),
|
|
9751
|
+
childrenIds: z305.string().array(),
|
|
9752
|
+
isRoot: z305.boolean()
|
|
9736
9753
|
});
|
|
9737
9754
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
9738
|
-
type:
|
|
9739
|
-
path:
|
|
9755
|
+
type: z305.literal(DTODocumentationStructureItemType.enum.Page),
|
|
9756
|
+
path: z305.string()
|
|
9740
9757
|
});
|
|
9741
|
-
var DTODocumentationStructureItem =
|
|
9758
|
+
var DTODocumentationStructureItem = z305.discriminatedUnion("type", [
|
|
9742
9759
|
DTODocumentationStructureGroupItem,
|
|
9743
9760
|
DTODocumentationStructurePageItem
|
|
9744
9761
|
]);
|
|
9745
|
-
var DTODocumentationStructure =
|
|
9746
|
-
items:
|
|
9762
|
+
var DTODocumentationStructure = z305.object({
|
|
9763
|
+
items: z305.array(DTODocumentationStructureItem)
|
|
9747
9764
|
});
|
|
9748
9765
|
|
|
9749
9766
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
9750
|
-
import { z as
|
|
9751
|
-
var DTOFigmaNodeStructure =
|
|
9752
|
-
id:
|
|
9753
|
-
sourceId:
|
|
9767
|
+
import { z as z306 } from "zod";
|
|
9768
|
+
var DTOFigmaNodeStructure = z306.object({
|
|
9769
|
+
id: z306.string(),
|
|
9770
|
+
sourceId: z306.string(),
|
|
9754
9771
|
importState: FigmaNodeStructureStateV2,
|
|
9755
|
-
createdAt:
|
|
9756
|
-
updatedAt:
|
|
9772
|
+
createdAt: z306.coerce.date(),
|
|
9773
|
+
updatedAt: z306.coerce.date()
|
|
9757
9774
|
});
|
|
9758
9775
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
9759
9776
|
rootNode: FigmaFileStructureNode
|
|
9760
9777
|
});
|
|
9761
|
-
var DTOFigmaNodeStructureListResponse =
|
|
9778
|
+
var DTOFigmaNodeStructureListResponse = z306.object({
|
|
9762
9779
|
structures: DTOFigmaNodeStructure.array()
|
|
9763
9780
|
});
|
|
9764
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
9781
|
+
var DTOFigmaNodeStructureDetailResponse = z306.object({
|
|
9765
9782
|
structure: DTOFigmaNodeStructureDetail
|
|
9766
9783
|
});
|
|
9767
9784
|
|
|
9768
9785
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
9769
|
-
import { z as
|
|
9786
|
+
import { z as z308 } from "zod";
|
|
9770
9787
|
|
|
9771
9788
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
9772
|
-
import { z as
|
|
9789
|
+
import { z as z307 } from "zod";
|
|
9773
9790
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
9774
|
-
var DTOFigmaNodeOrigin =
|
|
9775
|
-
sourceId:
|
|
9776
|
-
fileId:
|
|
9777
|
-
parentName:
|
|
9791
|
+
var DTOFigmaNodeOrigin = z307.object({
|
|
9792
|
+
sourceId: z307.string(),
|
|
9793
|
+
fileId: z307.string().optional(),
|
|
9794
|
+
parentName: z307.string().optional()
|
|
9778
9795
|
});
|
|
9779
|
-
var DTOFigmaNodeRenderInputBase =
|
|
9796
|
+
var DTOFigmaNodeRenderInputBase = z307.object({
|
|
9780
9797
|
/**
|
|
9781
9798
|
* Format in which the node must be rendered, png by default.
|
|
9782
9799
|
*/
|
|
@@ -9784,57 +9801,57 @@ var DTOFigmaNodeRenderInputBase = z306.object({
|
|
|
9784
9801
|
/**
|
|
9785
9802
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
9786
9803
|
*/
|
|
9787
|
-
scale:
|
|
9804
|
+
scale: z307.number().optional()
|
|
9788
9805
|
});
|
|
9789
9806
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
9790
|
-
inputType:
|
|
9807
|
+
inputType: z307.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
9791
9808
|
/**
|
|
9792
9809
|
* Id of a design system's data source representing a linked Figma file
|
|
9793
9810
|
*/
|
|
9794
|
-
sourceId:
|
|
9811
|
+
sourceId: z307.string(),
|
|
9795
9812
|
/**
|
|
9796
9813
|
* Id of a node within the Figma file
|
|
9797
9814
|
*/
|
|
9798
|
-
figmaFileNodeId:
|
|
9815
|
+
figmaFileNodeId: z307.string()
|
|
9799
9816
|
});
|
|
9800
9817
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
9801
|
-
inputType:
|
|
9818
|
+
inputType: z307.literal("URL"),
|
|
9802
9819
|
/**
|
|
9803
9820
|
* Id of a design system's data source representing a linked Figma file
|
|
9804
9821
|
*/
|
|
9805
|
-
figmaNodeUrl:
|
|
9822
|
+
figmaNodeUrl: z307.string(),
|
|
9806
9823
|
/**
|
|
9807
9824
|
* Brand persistent id to use in case a source has to be created for this render
|
|
9808
9825
|
*/
|
|
9809
|
-
brandPersistentId:
|
|
9826
|
+
brandPersistentId: z307.string()
|
|
9810
9827
|
});
|
|
9811
|
-
var DTOFigmaNodeRerenderInput =
|
|
9812
|
-
inputType:
|
|
9828
|
+
var DTOFigmaNodeRerenderInput = z307.object({
|
|
9829
|
+
inputType: z307.literal("Rerender"),
|
|
9813
9830
|
/**
|
|
9814
9831
|
* Persistent ID of an existing Figma node
|
|
9815
9832
|
*/
|
|
9816
|
-
figmaNodePersistentId:
|
|
9833
|
+
figmaNodePersistentId: z307.string()
|
|
9817
9834
|
});
|
|
9818
|
-
var DTOFigmaNodeRenderInput =
|
|
9835
|
+
var DTOFigmaNodeRenderInput = z307.discriminatedUnion("inputType", [
|
|
9819
9836
|
DTOFigmaNodeRenderIdInput,
|
|
9820
9837
|
DTOFigmaNodeRenderUrlInput,
|
|
9821
9838
|
DTOFigmaNodeRerenderInput
|
|
9822
9839
|
]);
|
|
9823
9840
|
|
|
9824
9841
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
9825
|
-
var DTOFigmaNodeData =
|
|
9842
|
+
var DTOFigmaNodeData = z308.object({
|
|
9826
9843
|
// Id of the node in the Figma file
|
|
9827
|
-
figmaNodeId:
|
|
9844
|
+
figmaNodeId: z308.string(),
|
|
9828
9845
|
// Validity
|
|
9829
|
-
isValid:
|
|
9846
|
+
isValid: z308.boolean(),
|
|
9830
9847
|
// Asset data
|
|
9831
|
-
assetId:
|
|
9832
|
-
assetUrl:
|
|
9848
|
+
assetId: z308.string(),
|
|
9849
|
+
assetUrl: z308.string(),
|
|
9833
9850
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
9834
9851
|
// Asset metadata
|
|
9835
|
-
assetScale:
|
|
9836
|
-
assetWidth:
|
|
9837
|
-
assetHeight:
|
|
9852
|
+
assetScale: z308.number(),
|
|
9853
|
+
assetWidth: z308.number().optional(),
|
|
9854
|
+
assetHeight: z308.number().optional()
|
|
9838
9855
|
});
|
|
9839
9856
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
9840
9857
|
data: true,
|
|
@@ -9845,15 +9862,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
9845
9862
|
});
|
|
9846
9863
|
|
|
9847
9864
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
9848
|
-
import { z as
|
|
9849
|
-
var DTOFigmaNodeDataV2 =
|
|
9850
|
-
sceneNodeId:
|
|
9865
|
+
import { z as z309 } from "zod";
|
|
9866
|
+
var DTOFigmaNodeDataV2 = z309.object({
|
|
9867
|
+
sceneNodeId: z309.string(),
|
|
9851
9868
|
format: FigmaNodeRenderFormat,
|
|
9852
|
-
scale:
|
|
9869
|
+
scale: z309.number().optional(),
|
|
9853
9870
|
renderState: FigmaNodeRenderState,
|
|
9854
9871
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
9855
9872
|
renderError: FigmaNodeRenderError.optional(),
|
|
9856
|
-
hasSource:
|
|
9873
|
+
hasSource: z309.boolean()
|
|
9857
9874
|
});
|
|
9858
9875
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
9859
9876
|
data: true,
|
|
@@ -9864,113 +9881,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
9864
9881
|
});
|
|
9865
9882
|
|
|
9866
9883
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
9867
|
-
import { z as
|
|
9868
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
9869
|
-
type:
|
|
9870
|
-
figmaNodes:
|
|
9884
|
+
import { z as z310 } from "zod";
|
|
9885
|
+
var DTOFigmaNodeRenderActionOutput = z310.object({
|
|
9886
|
+
type: z310.literal("FigmaNodeRender"),
|
|
9887
|
+
figmaNodes: z310.array(DTOFigmaNode)
|
|
9871
9888
|
});
|
|
9872
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
9873
|
-
type:
|
|
9874
|
-
figmaNodes:
|
|
9889
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z310.object({
|
|
9890
|
+
type: z310.literal("FigmaNodeRenderAsync"),
|
|
9891
|
+
figmaNodes: z310.array(DTOFigmaNodeV2)
|
|
9875
9892
|
});
|
|
9876
|
-
var DTOFigmaNodeRenderActionInput =
|
|
9877
|
-
type:
|
|
9893
|
+
var DTOFigmaNodeRenderActionInput = z310.object({
|
|
9894
|
+
type: z310.literal("FigmaNodeRender"),
|
|
9878
9895
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
9879
9896
|
});
|
|
9880
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
9881
|
-
type:
|
|
9897
|
+
var DTOFigmaNodeRenderAsyncActionInput = z310.object({
|
|
9898
|
+
type: z310.literal("FigmaNodeRenderAsync"),
|
|
9882
9899
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
9883
9900
|
});
|
|
9884
9901
|
|
|
9885
9902
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
9886
|
-
import { z as
|
|
9887
|
-
var DTOFrameNodeStructure =
|
|
9888
|
-
id:
|
|
9889
|
-
persistentId:
|
|
9890
|
-
designSystemVersionId:
|
|
9903
|
+
import { z as z311 } from "zod";
|
|
9904
|
+
var DTOFrameNodeStructure = z311.object({
|
|
9905
|
+
id: z311.string(),
|
|
9906
|
+
persistentId: z311.string(),
|
|
9907
|
+
designSystemVersionId: z311.string(),
|
|
9891
9908
|
origin: FigmaFileStructureOrigin,
|
|
9892
9909
|
assetsInFile: FigmaFileStructureStatistics
|
|
9893
9910
|
});
|
|
9894
|
-
var DTOFrameNodeStructureListResponse =
|
|
9911
|
+
var DTOFrameNodeStructureListResponse = z311.object({
|
|
9895
9912
|
structures: DTOFrameNodeStructure.array()
|
|
9896
9913
|
});
|
|
9897
9914
|
|
|
9898
9915
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
9899
|
-
import { z as
|
|
9916
|
+
import { z as z312 } from "zod";
|
|
9900
9917
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
9901
|
-
var DTOElementPropertyDefinitionOption =
|
|
9902
|
-
id:
|
|
9903
|
-
name:
|
|
9918
|
+
var DTOElementPropertyDefinitionOption = z312.object({
|
|
9919
|
+
id: z312.string(),
|
|
9920
|
+
name: z312.string(),
|
|
9904
9921
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
9905
9922
|
});
|
|
9906
|
-
var DTOElementPropertyDefinition =
|
|
9907
|
-
id:
|
|
9908
|
-
designSystemVersionId:
|
|
9923
|
+
var DTOElementPropertyDefinition = z312.object({
|
|
9924
|
+
id: z312.string(),
|
|
9925
|
+
designSystemVersionId: z312.string(),
|
|
9909
9926
|
meta: DTOObjectMeta,
|
|
9910
|
-
persistentId:
|
|
9927
|
+
persistentId: z312.string(),
|
|
9911
9928
|
type: ElementPropertyTypeSchema,
|
|
9912
9929
|
targetElementType: ElementPropertyTargetType,
|
|
9913
|
-
codeName:
|
|
9914
|
-
options: nullishToOptional(
|
|
9930
|
+
codeName: z312.string().regex(CODE_NAME_REGEX2),
|
|
9931
|
+
options: nullishToOptional(z312.array(DTOElementPropertyDefinitionOption)),
|
|
9915
9932
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
9916
|
-
isImmutable:
|
|
9933
|
+
isImmutable: z312.boolean(),
|
|
9917
9934
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
9918
9935
|
});
|
|
9919
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
9920
|
-
definitions:
|
|
9936
|
+
var DTOElementPropertyDefinitionListResponse = z312.object({
|
|
9937
|
+
definitions: z312.array(DTOElementPropertyDefinition)
|
|
9921
9938
|
});
|
|
9922
|
-
var DTOElementPropertyDefinitionResponse =
|
|
9939
|
+
var DTOElementPropertyDefinitionResponse = z312.object({
|
|
9923
9940
|
definition: DTOElementPropertyDefinition
|
|
9924
9941
|
});
|
|
9925
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
9942
|
+
var DTOElementPropertyDefinitionCreatePayload = z312.object({
|
|
9926
9943
|
meta: DTOObjectMeta,
|
|
9927
|
-
persistentId:
|
|
9944
|
+
persistentId: z312.string(),
|
|
9928
9945
|
type: ElementPropertyTypeSchema,
|
|
9929
9946
|
targetElementType: ElementPropertyTargetType,
|
|
9930
|
-
codeName:
|
|
9931
|
-
options: nullishToOptional(
|
|
9947
|
+
codeName: z312.string().regex(CODE_NAME_REGEX2),
|
|
9948
|
+
options: nullishToOptional(z312.array(DTOElementPropertyDefinitionOption)),
|
|
9932
9949
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
9933
|
-
columnWidth:
|
|
9950
|
+
columnWidth: z312.number().max(1024).optional()
|
|
9934
9951
|
});
|
|
9935
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
9952
|
+
var DTOElementPropertyDefinitionUpdatePayload = z312.object({
|
|
9936
9953
|
meta: DTOObjectMeta.optional(),
|
|
9937
|
-
codeName:
|
|
9938
|
-
options:
|
|
9954
|
+
codeName: z312.string().regex(CODE_NAME_REGEX2).optional(),
|
|
9955
|
+
options: z312.array(DTOElementPropertyDefinitionOption).optional()
|
|
9939
9956
|
});
|
|
9940
9957
|
|
|
9941
9958
|
// src/api/dto/elements/properties/property-values.ts
|
|
9942
|
-
import { z as
|
|
9943
|
-
var DTOElementPropertyValue =
|
|
9944
|
-
id:
|
|
9945
|
-
designSystemVersionId:
|
|
9946
|
-
definitionId:
|
|
9947
|
-
targetElementId:
|
|
9948
|
-
value:
|
|
9949
|
-
valuePreview:
|
|
9950
|
-
});
|
|
9951
|
-
var DTOElementPropertyValueListResponse =
|
|
9952
|
-
values:
|
|
9953
|
-
});
|
|
9954
|
-
var DTOElementPropertyValueResponse =
|
|
9959
|
+
import { z as z313 } from "zod";
|
|
9960
|
+
var DTOElementPropertyValue = z313.object({
|
|
9961
|
+
id: z313.string(),
|
|
9962
|
+
designSystemVersionId: z313.string(),
|
|
9963
|
+
definitionId: z313.string(),
|
|
9964
|
+
targetElementId: z313.string(),
|
|
9965
|
+
value: z313.union([z313.string(), z313.number(), z313.boolean()]).optional(),
|
|
9966
|
+
valuePreview: z313.string().optional()
|
|
9967
|
+
});
|
|
9968
|
+
var DTOElementPropertyValueListResponse = z313.object({
|
|
9969
|
+
values: z313.array(DTOElementPropertyValue)
|
|
9970
|
+
});
|
|
9971
|
+
var DTOElementPropertyValueResponse = z313.object({
|
|
9955
9972
|
value: DTOElementPropertyValue
|
|
9956
9973
|
});
|
|
9957
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
9958
|
-
type:
|
|
9959
|
-
output:
|
|
9974
|
+
var DTOElementPropertyValuesEditActionOutput = z313.object({
|
|
9975
|
+
type: z313.literal("ElementPropertyValuesEdit"),
|
|
9976
|
+
output: z313.object({ success: z313.literal(true) })
|
|
9960
9977
|
});
|
|
9961
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
9962
|
-
definitionId:
|
|
9963
|
-
targetElementId:
|
|
9964
|
-
value:
|
|
9978
|
+
var DTOElementPropertyValueUpsertPaylod = z313.object({
|
|
9979
|
+
definitionId: z313.string(),
|
|
9980
|
+
targetElementId: z313.string(),
|
|
9981
|
+
value: z313.string().or(z313.number()).or(z313.boolean()).nullable()
|
|
9965
9982
|
});
|
|
9966
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
9967
|
-
type:
|
|
9983
|
+
var DTOElementPropertyValuesEditActionInput = z313.object({
|
|
9984
|
+
type: z313.literal("ElementPropertyValuesEdit"),
|
|
9968
9985
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
9969
9986
|
});
|
|
9970
9987
|
|
|
9971
9988
|
// src/api/dto/elements/elements-action-v2.ts
|
|
9972
|
-
import { z as
|
|
9973
|
-
var DTOElementActionOutput =
|
|
9989
|
+
import { z as z314 } from "zod";
|
|
9990
|
+
var DTOElementActionOutput = z314.discriminatedUnion("type", [
|
|
9974
9991
|
// Documentation pages
|
|
9975
9992
|
DTODocumentationPageCreateActionOutputV2,
|
|
9976
9993
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -9997,7 +10014,7 @@ var DTOElementActionOutput = z313.discriminatedUnion("type", [
|
|
|
9997
10014
|
// Element properties
|
|
9998
10015
|
DTOElementPropertyValuesEditActionOutput
|
|
9999
10016
|
]);
|
|
10000
|
-
var DTOElementActionInput =
|
|
10017
|
+
var DTOElementActionInput = z314.discriminatedUnion("type", [
|
|
10001
10018
|
// Documentation pages
|
|
10002
10019
|
DTODocumentationPageCreateActionInputV2,
|
|
10003
10020
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -10024,52 +10041,52 @@ var DTOElementActionInput = z313.discriminatedUnion("type", [
|
|
|
10024
10041
|
// Element properties
|
|
10025
10042
|
DTOElementPropertyValuesEditActionInput
|
|
10026
10043
|
]).and(
|
|
10027
|
-
|
|
10028
|
-
tId:
|
|
10044
|
+
z314.object({
|
|
10045
|
+
tId: z314.string().optional()
|
|
10029
10046
|
})
|
|
10030
10047
|
);
|
|
10031
10048
|
|
|
10032
10049
|
// src/api/dto/elements/get-elements-v2.ts
|
|
10033
|
-
import { z as
|
|
10034
|
-
var DTOElementsGetTypeFilter =
|
|
10035
|
-
var DTOElementsGetQuerySchema =
|
|
10036
|
-
types:
|
|
10037
|
-
responseVersion:
|
|
10050
|
+
import { z as z315 } from "zod";
|
|
10051
|
+
var DTOElementsGetTypeFilter = z315.enum(["FigmaNode"]);
|
|
10052
|
+
var DTOElementsGetQuerySchema = z315.object({
|
|
10053
|
+
types: z315.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
10054
|
+
responseVersion: z315.coerce.number().default(1)
|
|
10038
10055
|
});
|
|
10039
|
-
var DTOElementsGetOutput =
|
|
10040
|
-
figmaNodes:
|
|
10056
|
+
var DTOElementsGetOutput = z315.object({
|
|
10057
|
+
figmaNodes: z315.array(DTOFigmaNode).optional()
|
|
10041
10058
|
});
|
|
10042
|
-
var DTOElementsGetOutputV2 =
|
|
10043
|
-
figmaNodes:
|
|
10059
|
+
var DTOElementsGetOutputV2 = z315.object({
|
|
10060
|
+
figmaNodes: z315.array(DTOFigmaNodeV2).optional()
|
|
10044
10061
|
});
|
|
10045
10062
|
|
|
10046
10063
|
// src/api/dto/events/forge-project.ts
|
|
10047
|
-
import
|
|
10064
|
+
import z342 from "zod";
|
|
10048
10065
|
|
|
10049
10066
|
// src/api/dto/forge/agent.ts
|
|
10050
|
-
import { z as
|
|
10067
|
+
import { z as z316 } from "zod";
|
|
10051
10068
|
var DTOForgeAgent = ForgeAgent;
|
|
10052
10069
|
var DTOForgeAvatarBuilder = ForgeAvatarBuilder;
|
|
10053
10070
|
var DTOCreateForgeAgent = DTOForgeAgent.omit({ projectId: true });
|
|
10054
|
-
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id:
|
|
10055
|
-
var DTOCreateForgeAgentResponse =
|
|
10071
|
+
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id: z316.string() });
|
|
10072
|
+
var DTOCreateForgeAgentResponse = z316.object({
|
|
10056
10073
|
agent: DTOForgeAgent
|
|
10057
10074
|
});
|
|
10058
|
-
var DTOUGetForgeAgentResponse =
|
|
10075
|
+
var DTOUGetForgeAgentResponse = z316.object({
|
|
10059
10076
|
agent: DTOForgeAgent.nullable()
|
|
10060
10077
|
});
|
|
10061
|
-
var DTOUpdateForgeAgentResponse =
|
|
10078
|
+
var DTOUpdateForgeAgentResponse = z316.object({
|
|
10062
10079
|
agent: DTOForgeAgent.nullable()
|
|
10063
10080
|
});
|
|
10064
|
-
var DTOForgeAgentsListResponse =
|
|
10065
|
-
agents:
|
|
10081
|
+
var DTOForgeAgentsListResponse = z316.object({
|
|
10082
|
+
agents: z316.array(DTOForgeAgent)
|
|
10066
10083
|
});
|
|
10067
|
-
var DTODeleteForgeAgentResponse =
|
|
10068
|
-
ok:
|
|
10084
|
+
var DTODeleteForgeAgentResponse = z316.object({
|
|
10085
|
+
ok: z316.literal(true)
|
|
10069
10086
|
});
|
|
10070
10087
|
|
|
10071
10088
|
// src/api/dto/forge/artifact.ts
|
|
10072
|
-
import { z as
|
|
10089
|
+
import { z as z317 } from "zod";
|
|
10073
10090
|
var DTOCreateForgeBuildArtifact = ForgeBuildArtifact.omit({
|
|
10074
10091
|
id: true,
|
|
10075
10092
|
createdAt: true,
|
|
@@ -10090,117 +10107,117 @@ var DTOCreateForgeSpecArtifact = ForgeSpecArtifact.omit({
|
|
|
10090
10107
|
createdAt: true,
|
|
10091
10108
|
projectIterationId: true
|
|
10092
10109
|
});
|
|
10093
|
-
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id:
|
|
10094
|
-
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id:
|
|
10095
|
-
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id:
|
|
10096
|
-
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id:
|
|
10110
|
+
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id: z317.string() });
|
|
10111
|
+
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id: z317.string() });
|
|
10112
|
+
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id: z317.string() });
|
|
10113
|
+
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id: z317.string() });
|
|
10097
10114
|
var DTOForgeArtifact = ForgeArtifact;
|
|
10098
10115
|
var DTOForgeBuildArtifact = ForgeBuildArtifact;
|
|
10099
10116
|
var DTOForgeFileArtifact = ForgeFileArtifact;
|
|
10100
10117
|
var DTOForgeFigmaArtifact = ForgeFigmaArtifact;
|
|
10101
10118
|
var DTOForgeSpecArtifact = ForgeSpecArtifact;
|
|
10102
|
-
var DTOCreateForgeArtifact =
|
|
10119
|
+
var DTOCreateForgeArtifact = z317.union([
|
|
10103
10120
|
DTOCreateForgeBuildArtifact,
|
|
10104
10121
|
DTOCreateForgeFileArtifact,
|
|
10105
10122
|
DTOCreateForgeFigmaArtifact,
|
|
10106
10123
|
DTOCreateForgeSpecArtifact
|
|
10107
10124
|
]);
|
|
10108
|
-
var DTOUpdateForgeArtifact =
|
|
10125
|
+
var DTOUpdateForgeArtifact = z317.union([
|
|
10109
10126
|
DTOUpdateForgeFileArtifact,
|
|
10110
10127
|
DTOUpdateForgeBuildArtifact,
|
|
10111
10128
|
DTOUpdateForgeSpecArtifact,
|
|
10112
10129
|
DTOUpdateForgeFigmaArtifact
|
|
10113
10130
|
]);
|
|
10114
|
-
var DTOCreateForgeArtifactResponse =
|
|
10131
|
+
var DTOCreateForgeArtifactResponse = z317.object({
|
|
10115
10132
|
artifact: DTOForgeArtifact
|
|
10116
10133
|
});
|
|
10117
|
-
var DTOUpdateForgeArtifactResponse =
|
|
10134
|
+
var DTOUpdateForgeArtifactResponse = z317.object({
|
|
10118
10135
|
artifact: DTOForgeArtifact.nullable()
|
|
10119
10136
|
});
|
|
10120
|
-
var DTODeleteForgeArtifactResponse =
|
|
10121
|
-
ok:
|
|
10137
|
+
var DTODeleteForgeArtifactResponse = z317.object({
|
|
10138
|
+
ok: z317.literal(true)
|
|
10122
10139
|
});
|
|
10123
|
-
var DTOForgeArtifactsListResponse =
|
|
10124
|
-
artifacts:
|
|
10140
|
+
var DTOForgeArtifactsListResponse = z317.object({
|
|
10141
|
+
artifacts: z317.array(DTOForgeArtifact)
|
|
10125
10142
|
});
|
|
10126
|
-
var DTOForgeArtifactGetResponse =
|
|
10143
|
+
var DTOForgeArtifactGetResponse = z317.object({
|
|
10127
10144
|
artifact: DTOForgeArtifact.nullable()
|
|
10128
10145
|
});
|
|
10129
10146
|
|
|
10130
10147
|
// src/api/dto/forge/feature-messages.ts
|
|
10131
|
-
import
|
|
10148
|
+
import z319 from "zod";
|
|
10132
10149
|
|
|
10133
10150
|
// src/api/dto/files/files.ts
|
|
10134
|
-
import
|
|
10151
|
+
import z318 from "zod";
|
|
10135
10152
|
var DTOFileFigmaRenderMode = FileFigmaRenderMode;
|
|
10136
10153
|
var DTOFileSourceUpload = FileSourceUpload;
|
|
10137
10154
|
var DTOFileSourceFigma = FileSourceFigma;
|
|
10138
10155
|
var DTOFileSource = FileSource;
|
|
10139
10156
|
var DTOFile = File;
|
|
10140
10157
|
var DTOFileReference = FileReference;
|
|
10141
|
-
var DTOFileUploadOwnerUser =
|
|
10142
|
-
ownerType:
|
|
10158
|
+
var DTOFileUploadOwnerUser = z318.object({
|
|
10159
|
+
ownerType: z318.literal("User")
|
|
10143
10160
|
});
|
|
10144
|
-
var DTOFileUploadOwnerWorkspace =
|
|
10145
|
-
ownerType:
|
|
10146
|
-
workspaceId:
|
|
10161
|
+
var DTOFileUploadOwnerWorkspace = z318.object({
|
|
10162
|
+
ownerType: z318.literal("Workspace"),
|
|
10163
|
+
workspaceId: z318.string()
|
|
10147
10164
|
});
|
|
10148
|
-
var DTOFileUploadOwner =
|
|
10149
|
-
var DTOFileUploadInput =
|
|
10150
|
-
size:
|
|
10151
|
-
name:
|
|
10152
|
-
checksum:
|
|
10165
|
+
var DTOFileUploadOwner = z318.discriminatedUnion("ownerType", [DTOFileUploadOwnerUser, DTOFileUploadOwnerWorkspace]);
|
|
10166
|
+
var DTOFileUploadInput = z318.object({
|
|
10167
|
+
size: z318.number(),
|
|
10168
|
+
name: z318.string(),
|
|
10169
|
+
checksum: z318.string()
|
|
10153
10170
|
});
|
|
10154
|
-
var DTOFileUploadBulkPayload =
|
|
10171
|
+
var DTOFileUploadBulkPayload = z318.object({
|
|
10155
10172
|
files: DTOFileUploadInput.array()
|
|
10156
10173
|
}).and(DTOFileUploadOwner);
|
|
10157
|
-
var DTOFileFinalizeBulkPayload =
|
|
10158
|
-
fileIds:
|
|
10174
|
+
var DTOFileFinalizeBulkPayload = z318.object({
|
|
10175
|
+
fileIds: z318.string().array()
|
|
10159
10176
|
}).and(DTOFileUploadOwner);
|
|
10160
|
-
var DTOFileListResponse =
|
|
10177
|
+
var DTOFileListResponse = z318.object({
|
|
10161
10178
|
files: DTOFile.array()
|
|
10162
10179
|
});
|
|
10163
|
-
var DTOFileUploadBulkResponse =
|
|
10164
|
-
files:
|
|
10165
|
-
uploadUrls:
|
|
10166
|
-
|
|
10167
|
-
fileId:
|
|
10168
|
-
uploadUrl:
|
|
10180
|
+
var DTOFileUploadBulkResponse = z318.object({
|
|
10181
|
+
files: z318.array(DTOFile),
|
|
10182
|
+
uploadUrls: z318.array(
|
|
10183
|
+
z318.object({
|
|
10184
|
+
fileId: z318.string(),
|
|
10185
|
+
uploadUrl: z318.string()
|
|
10169
10186
|
})
|
|
10170
10187
|
)
|
|
10171
10188
|
});
|
|
10172
|
-
var DTOFileFinalizeBulkResponse =
|
|
10173
|
-
files:
|
|
10189
|
+
var DTOFileFinalizeBulkResponse = z318.object({
|
|
10190
|
+
files: z318.array(DTOFile)
|
|
10174
10191
|
});
|
|
10175
10192
|
|
|
10176
10193
|
// src/api/dto/forge/feature-messages.ts
|
|
10177
|
-
var DTOFeatureMessageUserSender =
|
|
10178
|
-
type:
|
|
10179
|
-
userId:
|
|
10194
|
+
var DTOFeatureMessageUserSender = z319.object({
|
|
10195
|
+
type: z319.literal("User"),
|
|
10196
|
+
userId: z319.string()
|
|
10180
10197
|
});
|
|
10181
|
-
var DTOFeatureMessageAgentSender =
|
|
10182
|
-
type:
|
|
10198
|
+
var DTOFeatureMessageAgentSender = z319.object({
|
|
10199
|
+
type: z319.literal("Agent")
|
|
10183
10200
|
});
|
|
10184
|
-
var DTOFeatureMessageSystemSender =
|
|
10185
|
-
type:
|
|
10186
|
-
onBehalfOfUserId:
|
|
10201
|
+
var DTOFeatureMessageSystemSender = z319.object({
|
|
10202
|
+
type: z319.literal("System"),
|
|
10203
|
+
onBehalfOfUserId: z319.string()
|
|
10187
10204
|
});
|
|
10188
|
-
var DTOFeatureMessageSender =
|
|
10205
|
+
var DTOFeatureMessageSender = z319.discriminatedUnion("type", [
|
|
10189
10206
|
DTOFeatureMessageUserSender,
|
|
10190
10207
|
DTOFeatureMessageAgentSender,
|
|
10191
10208
|
DTOFeatureMessageSystemSender
|
|
10192
10209
|
]);
|
|
10193
|
-
var DTOFeatureMessageReaction =
|
|
10210
|
+
var DTOFeatureMessageReaction = z319.object({
|
|
10194
10211
|
messageId: Id,
|
|
10195
|
-
userId:
|
|
10196
|
-
emoji:
|
|
10197
|
-
createdAt:
|
|
10212
|
+
userId: z319.string(),
|
|
10213
|
+
emoji: z319.string(),
|
|
10214
|
+
createdAt: z319.string()
|
|
10198
10215
|
});
|
|
10199
|
-
var DTOFeatureMessageAttachments =
|
|
10216
|
+
var DTOFeatureMessageAttachments = z319.object({
|
|
10200
10217
|
iterationId: Id.optional()
|
|
10201
10218
|
// TODO Artem: files, etc
|
|
10202
10219
|
});
|
|
10203
|
-
var DTOFeatureMessage =
|
|
10220
|
+
var DTOFeatureMessage = z319.object({
|
|
10204
10221
|
id: Id,
|
|
10205
10222
|
/**
|
|
10206
10223
|
* Describes where the message came from
|
|
@@ -10209,16 +10226,16 @@ var DTOFeatureMessage = z318.object({
|
|
|
10209
10226
|
/**
|
|
10210
10227
|
* Content of the message
|
|
10211
10228
|
*/
|
|
10212
|
-
body:
|
|
10229
|
+
body: z319.string(),
|
|
10213
10230
|
/**
|
|
10214
10231
|
* Indicates if the message was sent in the agentic mode, if so this message will cause an
|
|
10215
10232
|
* AI agent to generate a response and perform an action within the feature
|
|
10216
10233
|
*/
|
|
10217
|
-
isPrompt:
|
|
10234
|
+
isPrompt: z319.boolean().optional(),
|
|
10218
10235
|
/**
|
|
10219
10236
|
* Indicates if the sender requested agent to reply in a thread
|
|
10220
10237
|
*/
|
|
10221
|
-
startsNewThread:
|
|
10238
|
+
startsNewThread: z319.boolean().optional(),
|
|
10222
10239
|
/**
|
|
10223
10240
|
* If defined, this message is considered to be a reply in a thread under parent message id
|
|
10224
10241
|
*/
|
|
@@ -10232,23 +10249,23 @@ var DTOFeatureMessage = z318.object({
|
|
|
10232
10249
|
* If defined, this message is considered to be a reply to different message
|
|
10233
10250
|
*/
|
|
10234
10251
|
replyToMessageId: Id.optional(),
|
|
10235
|
-
createdAt:
|
|
10236
|
-
updatedAt:
|
|
10252
|
+
createdAt: z319.string(),
|
|
10253
|
+
updatedAt: z319.string().optional()
|
|
10237
10254
|
});
|
|
10238
|
-
var DTOFeatureAgentResponseTracker =
|
|
10255
|
+
var DTOFeatureAgentResponseTracker = z319.object({
|
|
10239
10256
|
id: Id,
|
|
10240
|
-
currentBody:
|
|
10257
|
+
currentBody: z319.string().default("")
|
|
10241
10258
|
});
|
|
10242
|
-
var DTOFeatureArtifact =
|
|
10259
|
+
var DTOFeatureArtifact = z319.object({
|
|
10243
10260
|
id: Id,
|
|
10244
10261
|
/**
|
|
10245
10262
|
* Key of the artifact, can include path like `src/components/button.tsx`
|
|
10246
10263
|
*/
|
|
10247
|
-
key:
|
|
10264
|
+
key: z319.string(),
|
|
10248
10265
|
/**
|
|
10249
10266
|
* Id of the project file that holds content of this artifact
|
|
10250
10267
|
*/
|
|
10251
|
-
fileId:
|
|
10268
|
+
fileId: z319.string().optional(),
|
|
10252
10269
|
/**
|
|
10253
10270
|
* Id of the Iteration that this artifact belongs to
|
|
10254
10271
|
*/
|
|
@@ -10256,44 +10273,44 @@ var DTOFeatureArtifact = z318.object({
|
|
|
10256
10273
|
/**
|
|
10257
10274
|
* URL of the feature artifact's contents
|
|
10258
10275
|
*/
|
|
10259
|
-
url:
|
|
10276
|
+
url: z319.string(),
|
|
10260
10277
|
/**
|
|
10261
10278
|
* Relative file path of the artifact (without domain/base URL)
|
|
10262
10279
|
*/
|
|
10263
|
-
filePath:
|
|
10264
|
-
createdAt:
|
|
10265
|
-
updatedAt:
|
|
10266
|
-
});
|
|
10267
|
-
var DTOFeatureIterationArtifactsDiff =
|
|
10268
|
-
created:
|
|
10269
|
-
updated:
|
|
10270
|
-
deleted:
|
|
10271
|
-
});
|
|
10272
|
-
var DTOFeatureIterationState =
|
|
10273
|
-
var DTOFeatureIterationErrorType =
|
|
10274
|
-
var DTOFeatureIterationError =
|
|
10275
|
-
description:
|
|
10280
|
+
filePath: z319.string().optional(),
|
|
10281
|
+
createdAt: z319.string(),
|
|
10282
|
+
updatedAt: z319.string()
|
|
10283
|
+
});
|
|
10284
|
+
var DTOFeatureIterationArtifactsDiff = z319.object({
|
|
10285
|
+
created: z319.array(DTOFeatureArtifact.shape.key).optional().default([]),
|
|
10286
|
+
updated: z319.array(DTOFeatureArtifact.shape.key).optional().default([]),
|
|
10287
|
+
deleted: z319.array(DTOFeatureArtifact.shape.key).optional().default([])
|
|
10288
|
+
});
|
|
10289
|
+
var DTOFeatureIterationState = z319.enum(["InProgress", "Success", "Error", "Timeout"]);
|
|
10290
|
+
var DTOFeatureIterationErrorType = z319.enum(["PackageInstall", "Build", "Compile", "Unknown", "Runtime"]);
|
|
10291
|
+
var DTOFeatureIterationError = z319.object({
|
|
10292
|
+
description: z319.string(),
|
|
10276
10293
|
type: DTOFeatureIterationErrorType
|
|
10277
10294
|
});
|
|
10278
|
-
var DTOFeatureIteration =
|
|
10295
|
+
var DTOFeatureIteration = z319.object({
|
|
10279
10296
|
id: Id,
|
|
10280
10297
|
/**
|
|
10281
10298
|
* Name of the iteration
|
|
10282
10299
|
*/
|
|
10283
|
-
name:
|
|
10300
|
+
name: z319.string(),
|
|
10284
10301
|
/**
|
|
10285
10302
|
* ID of the iteration that this iteration is based on
|
|
10286
10303
|
*/
|
|
10287
|
-
baseIterationId:
|
|
10304
|
+
baseIterationId: z319.string().optional(),
|
|
10288
10305
|
/**
|
|
10289
10306
|
* Message ID that triggered creation of the iteration
|
|
10290
10307
|
*/
|
|
10291
|
-
startedFromMessageId:
|
|
10308
|
+
startedFromMessageId: z319.string(),
|
|
10292
10309
|
/**
|
|
10293
10310
|
* Indicates whether the iteration is currently being generated by an agent
|
|
10294
10311
|
* @deprecated use `state`
|
|
10295
10312
|
*/
|
|
10296
|
-
isInProgress:
|
|
10313
|
+
isInProgress: z319.boolean().optional(),
|
|
10297
10314
|
/**
|
|
10298
10315
|
* Indicates current processing (creation) state of this iteration.
|
|
10299
10316
|
* This property is optional only for backward compatibility with data stored in Liveblocks rooms.
|
|
@@ -10311,7 +10328,7 @@ var DTOFeatureIteration = z318.object({
|
|
|
10311
10328
|
*
|
|
10312
10329
|
* @deprecated use `error.description` instead
|
|
10313
10330
|
*/
|
|
10314
|
-
errorDescription:
|
|
10331
|
+
errorDescription: z319.string().nullish(),
|
|
10315
10332
|
/**
|
|
10316
10333
|
* Description of a sandbox error if there were any (such as during `npm i` or `npm run build`).
|
|
10317
10334
|
* To be used for "fix with AI"
|
|
@@ -10320,26 +10337,26 @@ var DTOFeatureIteration = z318.object({
|
|
|
10320
10337
|
/**
|
|
10321
10338
|
* The cost in credits to generate this iteration
|
|
10322
10339
|
*/
|
|
10323
|
-
creditsCost:
|
|
10340
|
+
creditsCost: z319.number().optional(),
|
|
10324
10341
|
/**
|
|
10325
10342
|
* URL of a static preview of the feature
|
|
10326
10343
|
*/
|
|
10327
|
-
staticPreviewUrl:
|
|
10344
|
+
staticPreviewUrl: z319.string().optional(),
|
|
10328
10345
|
/**
|
|
10329
10346
|
* Indicates whether the iteration is bookmarked by user
|
|
10330
10347
|
*/
|
|
10331
|
-
isBookmarked:
|
|
10348
|
+
isBookmarked: z319.boolean().optional(),
|
|
10332
10349
|
/**
|
|
10333
10350
|
* @deprecated use thumbnail.fileUrl
|
|
10334
10351
|
* URL of a static thumbnail of the feature iteration
|
|
10335
10352
|
*/
|
|
10336
|
-
thumbnailUrl:
|
|
10353
|
+
thumbnailUrl: z319.string().optional(),
|
|
10337
10354
|
thumbnail: DTOFileReference.optional(),
|
|
10338
|
-
createdAt:
|
|
10339
|
-
updatedAt:
|
|
10355
|
+
createdAt: z319.string(),
|
|
10356
|
+
updatedAt: z319.string().optional(),
|
|
10340
10357
|
artifactsDiff: DTOFeatureIterationArtifactsDiff.optional().nullable()
|
|
10341
10358
|
});
|
|
10342
|
-
var DTOFeatureIterationTag =
|
|
10359
|
+
var DTOFeatureIterationTag = z319.object({
|
|
10343
10360
|
id: Id,
|
|
10344
10361
|
featureId: Id,
|
|
10345
10362
|
/**
|
|
@@ -10352,38 +10369,38 @@ var DTOFeatureIterationTag = z318.object({
|
|
|
10352
10369
|
*/
|
|
10353
10370
|
iterationId: Id
|
|
10354
10371
|
});
|
|
10355
|
-
var DTOSandboxError =
|
|
10372
|
+
var DTOSandboxError = z319.object({
|
|
10356
10373
|
/** At what stage the error has occured */
|
|
10357
|
-
stage:
|
|
10374
|
+
stage: z319.enum(["PackageInstall", "HealthCheck", "Build", "Unknown"]),
|
|
10358
10375
|
/** We will use this in "fix with AI" */
|
|
10359
|
-
errorDescription:
|
|
10376
|
+
errorDescription: z319.string()
|
|
10360
10377
|
});
|
|
10361
|
-
var DTOFeatureSandbox =
|
|
10362
|
-
id:
|
|
10363
|
-
url:
|
|
10378
|
+
var DTOFeatureSandbox = z319.object({
|
|
10379
|
+
id: z319.string(),
|
|
10380
|
+
url: z319.string(),
|
|
10364
10381
|
parentMessageId: Id.optional(),
|
|
10365
10382
|
currentIterationId: Id,
|
|
10366
10383
|
featureId: Id,
|
|
10367
|
-
expiresAt:
|
|
10384
|
+
expiresAt: z319.string().optional(),
|
|
10368
10385
|
error: DTOSandboxError.optional()
|
|
10369
10386
|
});
|
|
10370
10387
|
var DTOCreateFeatureSandbox = DTOFeatureSandbox;
|
|
10371
10388
|
var DTOUpdateFeatureSandbox = DTOCreateFeatureSandbox.partial().extend({
|
|
10372
|
-
id:
|
|
10389
|
+
id: z319.string(),
|
|
10373
10390
|
parentMessageId: Id.nullish(),
|
|
10374
|
-
expiresAt:
|
|
10391
|
+
expiresAt: z319.string().nullish(),
|
|
10375
10392
|
error: DTOSandboxError.nullish()
|
|
10376
10393
|
});
|
|
10377
|
-
var DTOFeatureSandboxListResponse =
|
|
10394
|
+
var DTOFeatureSandboxListResponse = z319.object({
|
|
10378
10395
|
sandboxes: DTOFeatureSandbox.array()
|
|
10379
10396
|
});
|
|
10380
|
-
var DTOProvisionFeatureSandboxInput =
|
|
10381
|
-
parentMessageId:
|
|
10397
|
+
var DTOProvisionFeatureSandboxInput = z319.object({
|
|
10398
|
+
parentMessageId: z319.string().optional()
|
|
10382
10399
|
});
|
|
10383
|
-
var DTOProvisionFeatureSandboxResponse =
|
|
10384
|
-
ok:
|
|
10400
|
+
var DTOProvisionFeatureSandboxResponse = z319.object({
|
|
10401
|
+
ok: z319.boolean()
|
|
10385
10402
|
});
|
|
10386
|
-
var DTOKeepAliveFeatureSandboxResponse =
|
|
10403
|
+
var DTOKeepAliveFeatureSandboxResponse = z319.object({
|
|
10387
10404
|
sandbox: DTOFeatureSandbox
|
|
10388
10405
|
});
|
|
10389
10406
|
var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
|
|
@@ -10395,34 +10412,34 @@ var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
|
|
|
10395
10412
|
attachments: true
|
|
10396
10413
|
});
|
|
10397
10414
|
var DTOFeatureMessageUpdateInput = DTOFeatureMessageCreateInput.omit({ id: true }).merge(DTOFeatureMessage.pick({ agentResponseTrackerId: true })).partial();
|
|
10398
|
-
var DTOFeatureMessageReactionCreateInput =
|
|
10415
|
+
var DTOFeatureMessageReactionCreateInput = z319.object({
|
|
10399
10416
|
messageId: Id,
|
|
10400
|
-
emoji:
|
|
10417
|
+
emoji: z319.string()
|
|
10401
10418
|
});
|
|
10402
|
-
var DTOFeatureMessageReactionDeleteInput =
|
|
10419
|
+
var DTOFeatureMessageReactionDeleteInput = z319.object({
|
|
10403
10420
|
messageId: Id,
|
|
10404
|
-
emoji:
|
|
10421
|
+
emoji: z319.string()
|
|
10405
10422
|
});
|
|
10406
|
-
var DTOFeatureArtifactCreateInput =
|
|
10423
|
+
var DTOFeatureArtifactCreateInput = z319.object({
|
|
10407
10424
|
id: Id,
|
|
10408
|
-
key:
|
|
10409
|
-
fileId:
|
|
10425
|
+
key: z319.string(),
|
|
10426
|
+
fileId: z319.string(),
|
|
10410
10427
|
iterationId: Id.optional()
|
|
10411
10428
|
});
|
|
10412
|
-
var DTOFeatureArtifactDeleteInput =
|
|
10429
|
+
var DTOFeatureArtifactDeleteInput = z319.object({
|
|
10413
10430
|
id: Id
|
|
10414
10431
|
});
|
|
10415
10432
|
var DTOFeatureIterationCreateInput = DTOFeatureIteration.pick({
|
|
10416
10433
|
id: true,
|
|
10417
10434
|
startedFromMessageId: true
|
|
10418
10435
|
});
|
|
10419
|
-
var DTOFeatureIterationPromoteInput =
|
|
10436
|
+
var DTOFeatureIterationPromoteInput = z319.object({
|
|
10420
10437
|
id: Id
|
|
10421
10438
|
});
|
|
10422
|
-
var DTOFeatureArtifactGetByIdParam =
|
|
10439
|
+
var DTOFeatureArtifactGetByIdParam = z319.object({
|
|
10423
10440
|
id: Id
|
|
10424
10441
|
});
|
|
10425
|
-
var DTOFeatureIterationSetLatestInput =
|
|
10442
|
+
var DTOFeatureIterationSetLatestInput = z319.object({
|
|
10426
10443
|
id: Id,
|
|
10427
10444
|
/**
|
|
10428
10445
|
* Optional message ID to determine the context for setting this iteration as latest.
|
|
@@ -10432,153 +10449,153 @@ var DTOFeatureIterationSetLatestInput = z318.object({
|
|
|
10432
10449
|
*/
|
|
10433
10450
|
contextMessageId: Id.nullish()
|
|
10434
10451
|
});
|
|
10435
|
-
var DTOFeatureIterationUpdateInput =
|
|
10452
|
+
var DTOFeatureIterationUpdateInput = z319.object({
|
|
10436
10453
|
id: Id,
|
|
10437
|
-
isBookmarked:
|
|
10454
|
+
isBookmarked: z319.boolean().optional()
|
|
10438
10455
|
});
|
|
10439
|
-
var DTOFeatureIterationTagCreateInput =
|
|
10456
|
+
var DTOFeatureIterationTagCreateInput = z319.object({
|
|
10440
10457
|
featureId: Id,
|
|
10441
10458
|
iterationId: Id,
|
|
10442
10459
|
messageId: Id.optional()
|
|
10443
10460
|
});
|
|
10444
|
-
var DTOFeatureIterationArtifactDiff =
|
|
10461
|
+
var DTOFeatureIterationArtifactDiff = z319.object({
|
|
10445
10462
|
/**
|
|
10446
10463
|
* Map of artifact key -> new key that describes artifacts that will be moved in this iteration
|
|
10447
10464
|
*/
|
|
10448
|
-
move:
|
|
10449
|
-
|
|
10450
|
-
newKey:
|
|
10465
|
+
move: z319.record(
|
|
10466
|
+
z319.object({
|
|
10467
|
+
newKey: z319.string()
|
|
10451
10468
|
})
|
|
10452
10469
|
),
|
|
10453
10470
|
/**
|
|
10454
10471
|
* Map of artifact key -> new key that describes artifacts that will be copied in this iteration
|
|
10455
10472
|
*/
|
|
10456
|
-
copy:
|
|
10457
|
-
|
|
10458
|
-
newKey:
|
|
10473
|
+
copy: z319.record(
|
|
10474
|
+
z319.object({
|
|
10475
|
+
newKey: z319.string()
|
|
10459
10476
|
})
|
|
10460
10477
|
).optional(),
|
|
10461
10478
|
/**
|
|
10462
10479
|
* Map of artifact key -> artifact content that describes artifacts that will be
|
|
10463
10480
|
* create or updated in this iteration
|
|
10464
10481
|
*/
|
|
10465
|
-
upsert:
|
|
10466
|
-
|
|
10467
|
-
artifactContent:
|
|
10482
|
+
upsert: z319.record(
|
|
10483
|
+
z319.object({
|
|
10484
|
+
artifactContent: z319.string()
|
|
10468
10485
|
})
|
|
10469
10486
|
),
|
|
10470
10487
|
/**
|
|
10471
10488
|
* List artifact keys to remove from this iteration
|
|
10472
10489
|
*/
|
|
10473
|
-
remove:
|
|
10490
|
+
remove: z319.array(z319.string())
|
|
10474
10491
|
});
|
|
10475
|
-
var DTOFeatureIterationUpdateArtifactsInput =
|
|
10492
|
+
var DTOFeatureIterationUpdateArtifactsInput = z319.object({
|
|
10476
10493
|
id: Id,
|
|
10477
|
-
name:
|
|
10494
|
+
name: z319.string().optional(),
|
|
10478
10495
|
artifactDiff: DTOFeatureIterationArtifactDiff
|
|
10479
10496
|
});
|
|
10480
|
-
var DTOFeatureIterationValidateInput =
|
|
10497
|
+
var DTOFeatureIterationValidateInput = z319.object({
|
|
10481
10498
|
id: Id,
|
|
10482
10499
|
messageId: Id
|
|
10483
10500
|
});
|
|
10484
|
-
var DTOFeatureIterationUpdateArtifactsByMessageInput =
|
|
10501
|
+
var DTOFeatureIterationUpdateArtifactsByMessageInput = z319.object({
|
|
10485
10502
|
messageId: Id,
|
|
10486
|
-
name:
|
|
10503
|
+
name: z319.string().optional(),
|
|
10487
10504
|
artifactDiff: DTOFeatureIterationArtifactDiff
|
|
10488
10505
|
});
|
|
10489
|
-
var DTOFeatureAgentWorkFinalizeInput =
|
|
10506
|
+
var DTOFeatureAgentWorkFinalizeInput = z319.object({
|
|
10490
10507
|
messageId: Id
|
|
10491
10508
|
});
|
|
10492
|
-
var DTOFeatureUpdateThemeInput =
|
|
10493
|
-
parentMessageId:
|
|
10494
|
-
themeCss:
|
|
10509
|
+
var DTOFeatureUpdateThemeInput = z319.object({
|
|
10510
|
+
parentMessageId: z319.string().optional(),
|
|
10511
|
+
themeCss: z319.string()
|
|
10495
10512
|
});
|
|
10496
|
-
var DTOFeatureMessageResponse =
|
|
10513
|
+
var DTOFeatureMessageResponse = z319.object({
|
|
10497
10514
|
message: DTOFeatureMessage
|
|
10498
10515
|
});
|
|
10499
|
-
var DTOFeatureMessageReactionResponse =
|
|
10516
|
+
var DTOFeatureMessageReactionResponse = z319.object({
|
|
10500
10517
|
reaction: DTOFeatureMessageReaction
|
|
10501
10518
|
});
|
|
10502
|
-
var DTOFeatureMessageListResponse =
|
|
10519
|
+
var DTOFeatureMessageListResponse = z319.object({
|
|
10503
10520
|
messages: DTOFeatureMessage.array(),
|
|
10504
10521
|
reactions: DTOFeatureMessageReaction.array(),
|
|
10505
|
-
lastSeenMessageId:
|
|
10522
|
+
lastSeenMessageId: z319.string().optional()
|
|
10506
10523
|
});
|
|
10507
|
-
var DTOFeatureArtifactResponse =
|
|
10524
|
+
var DTOFeatureArtifactResponse = z319.object({
|
|
10508
10525
|
artifact: DTOFeatureArtifact
|
|
10509
10526
|
});
|
|
10510
|
-
var DTOFeatureArtifactListResponse =
|
|
10527
|
+
var DTOFeatureArtifactListResponse = z319.object({
|
|
10511
10528
|
artifacts: DTOFeatureArtifact.array()
|
|
10512
10529
|
});
|
|
10513
|
-
var DTOFeatureArtifactWithContentResponse =
|
|
10530
|
+
var DTOFeatureArtifactWithContentResponse = z319.object({
|
|
10514
10531
|
artifact: DTOFeatureArtifact,
|
|
10515
|
-
content:
|
|
10532
|
+
content: z319.string()
|
|
10516
10533
|
});
|
|
10517
|
-
var DTOFeatureIterationResponse =
|
|
10534
|
+
var DTOFeatureIterationResponse = z319.object({
|
|
10518
10535
|
iteration: DTOFeatureIteration
|
|
10519
10536
|
});
|
|
10520
|
-
var DTOFeatureIterationListResponse =
|
|
10537
|
+
var DTOFeatureIterationListResponse = z319.object({
|
|
10521
10538
|
iterations: DTOFeatureIteration.array()
|
|
10522
10539
|
});
|
|
10523
|
-
var DTOFeatureIterationValidateResponse =
|
|
10524
|
-
|
|
10525
|
-
|
|
10540
|
+
var DTOFeatureIterationValidateResponse = z319.discriminatedUnion("success", [
|
|
10541
|
+
z319.object({ success: z319.literal(true) }),
|
|
10542
|
+
z319.object({ success: z319.literal(false), error: DTOFeatureIterationError })
|
|
10526
10543
|
]);
|
|
10527
|
-
var DTOFeatureIterationTagResponse =
|
|
10544
|
+
var DTOFeatureIterationTagResponse = z319.object({
|
|
10528
10545
|
tag: DTOFeatureIterationTag
|
|
10529
10546
|
});
|
|
10530
|
-
var DTOFeatureIterationTagListResponse =
|
|
10547
|
+
var DTOFeatureIterationTagListResponse = z319.object({
|
|
10531
10548
|
tags: DTOFeatureIterationTag.array()
|
|
10532
10549
|
});
|
|
10533
|
-
var DTOFeatureEventMessagesSent =
|
|
10534
|
-
type:
|
|
10550
|
+
var DTOFeatureEventMessagesSent = z319.object({
|
|
10551
|
+
type: z319.literal("MessagesSent"),
|
|
10535
10552
|
data: DTOFeatureMessage.array()
|
|
10536
10553
|
});
|
|
10537
|
-
var DTOFeatureEventReactionsSent =
|
|
10538
|
-
type:
|
|
10554
|
+
var DTOFeatureEventReactionsSent = z319.object({
|
|
10555
|
+
type: z319.literal("ReactionsSent"),
|
|
10539
10556
|
data: DTOFeatureMessageReaction.array()
|
|
10540
10557
|
});
|
|
10541
|
-
var DTOFeatureEventReactionsDeleted =
|
|
10542
|
-
type:
|
|
10558
|
+
var DTOFeatureEventReactionsDeleted = z319.object({
|
|
10559
|
+
type: z319.literal("ReactionsDeleted"),
|
|
10543
10560
|
data: DTOFeatureMessageReaction
|
|
10544
10561
|
});
|
|
10545
|
-
var DTOFeatureEvent =
|
|
10562
|
+
var DTOFeatureEvent = z319.discriminatedUnion("type", [
|
|
10546
10563
|
DTOFeatureEventMessagesSent,
|
|
10547
10564
|
DTOFeatureEventReactionsSent,
|
|
10548
10565
|
DTOFeatureEventReactionsDeleted
|
|
10549
10566
|
]);
|
|
10550
10567
|
|
|
10551
10568
|
// src/api/dto/forge/feature-room.ts
|
|
10552
|
-
import { z as
|
|
10553
|
-
var DTOForgeFeatureRoom =
|
|
10554
|
-
id:
|
|
10569
|
+
import { z as z320 } from "zod";
|
|
10570
|
+
var DTOForgeFeatureRoom = z320.object({
|
|
10571
|
+
id: z320.string()
|
|
10555
10572
|
});
|
|
10556
|
-
var DTOForgeFeatureRoomResponse =
|
|
10573
|
+
var DTOForgeFeatureRoomResponse = z320.object({
|
|
10557
10574
|
room: DTOForgeFeatureRoom
|
|
10558
10575
|
});
|
|
10559
10576
|
|
|
10560
10577
|
// src/api/dto/forge/figma-node.ts
|
|
10561
|
-
import
|
|
10562
|
-
var DTOForgeFigmaNodeState =
|
|
10563
|
-
var DTOForgeFigmaNodeOrigin =
|
|
10578
|
+
import z321 from "zod";
|
|
10579
|
+
var DTOForgeFigmaNodeState = z321.enum(["Optimizing", "Success", "Failed"]);
|
|
10580
|
+
var DTOForgeFigmaNodeOrigin = z321.object({
|
|
10564
10581
|
/**
|
|
10565
10582
|
* Figma file ID that was passed into the create request as a part of the Figma node URL
|
|
10566
10583
|
*/
|
|
10567
|
-
fileId:
|
|
10568
|
-
fileName:
|
|
10584
|
+
fileId: z321.string(),
|
|
10585
|
+
fileName: z321.string(),
|
|
10569
10586
|
/**
|
|
10570
10587
|
* Timestamp of the last edit to the file, can be used for reusing nodes
|
|
10571
10588
|
* if the file has not changed since
|
|
10572
10589
|
*/
|
|
10573
|
-
fileLastEditedAt:
|
|
10590
|
+
fileLastEditedAt: z321.string(),
|
|
10574
10591
|
/**
|
|
10575
10592
|
* Figma node ID that was passed into the create request as a part of the Figma node URL
|
|
10576
10593
|
*/
|
|
10577
|
-
nodeId:
|
|
10578
|
-
nodeName:
|
|
10594
|
+
nodeId: z321.string(),
|
|
10595
|
+
nodeName: z321.string()
|
|
10579
10596
|
});
|
|
10580
|
-
var DTOForgeFigmaNode =
|
|
10581
|
-
id:
|
|
10597
|
+
var DTOForgeFigmaNode = z321.object({
|
|
10598
|
+
id: z321.string().uuid(),
|
|
10582
10599
|
state: DTOForgeFigmaNodeState,
|
|
10583
10600
|
/**
|
|
10584
10601
|
* Describes where the frame is coming from
|
|
@@ -10602,31 +10619,31 @@ var DTOForgeFigmaNode = z320.object({
|
|
|
10602
10619
|
*/
|
|
10603
10620
|
code: DTOFileReference.optional()
|
|
10604
10621
|
});
|
|
10605
|
-
var DTOForgeFigmaNodeCreateRequest =
|
|
10622
|
+
var DTOForgeFigmaNodeCreateRequest = z321.object({
|
|
10606
10623
|
/**
|
|
10607
10624
|
* Workspace ID that will own the node. Figma API keys will be used from this workspace.
|
|
10608
10625
|
*/
|
|
10609
|
-
workspaceId:
|
|
10626
|
+
workspaceId: z321.string(),
|
|
10610
10627
|
/**
|
|
10611
10628
|
* URL that points to a Figma file and a node within the file.
|
|
10612
10629
|
* Example: https://www.figma.com/design/If4RI8SKtO2azWx8ytfp03/Child-File?node-id=0-1
|
|
10613
10630
|
*
|
|
10614
10631
|
* Note that the file must contain `node-id` query param, otherwise the request will be rejected
|
|
10615
10632
|
*/
|
|
10616
|
-
figmaNodeUrl:
|
|
10633
|
+
figmaNodeUrl: z321.string().url()
|
|
10617
10634
|
});
|
|
10618
|
-
var DTOForgeFigmaNodeResponse =
|
|
10635
|
+
var DTOForgeFigmaNodeResponse = z321.object({
|
|
10619
10636
|
figmaNode: DTOForgeFigmaNode
|
|
10620
10637
|
});
|
|
10621
|
-
var DTOForgeFigmaNodeValidateResponse =
|
|
10622
|
-
isValid:
|
|
10638
|
+
var DTOForgeFigmaNodeValidateResponse = z321.object({
|
|
10639
|
+
isValid: z321.boolean()
|
|
10623
10640
|
});
|
|
10624
10641
|
|
|
10625
10642
|
// src/api/dto/forge/iteration-message-old.ts
|
|
10626
|
-
import { z as
|
|
10643
|
+
import { z as z323 } from "zod";
|
|
10627
10644
|
|
|
10628
10645
|
// src/api/dto/forge/participant.ts
|
|
10629
|
-
import { z as
|
|
10646
|
+
import { z as z322 } from "zod";
|
|
10630
10647
|
var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
|
|
10631
10648
|
agent: DTOForgeAgent.optional(),
|
|
10632
10649
|
user: DTOUser.optional()
|
|
@@ -10636,20 +10653,20 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
|
|
|
10636
10653
|
agent: true,
|
|
10637
10654
|
user: true
|
|
10638
10655
|
});
|
|
10639
|
-
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id:
|
|
10640
|
-
var DTOCreateForgeParticipantResponse =
|
|
10656
|
+
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z322.string() });
|
|
10657
|
+
var DTOCreateForgeParticipantResponse = z322.object({
|
|
10641
10658
|
participant: DTOForgeParticipant
|
|
10642
10659
|
});
|
|
10643
|
-
var DTOUpdateForgeParticipantResponse =
|
|
10660
|
+
var DTOUpdateForgeParticipantResponse = z322.object({
|
|
10644
10661
|
participant: DTOForgeParticipant.nullable()
|
|
10645
10662
|
});
|
|
10646
|
-
var DTODeleteForgeParticipantResponse =
|
|
10647
|
-
ok:
|
|
10663
|
+
var DTODeleteForgeParticipantResponse = z322.object({
|
|
10664
|
+
ok: z322.literal(true)
|
|
10648
10665
|
});
|
|
10649
|
-
var DTOForgeParticipantsListResponse =
|
|
10650
|
-
participants:
|
|
10666
|
+
var DTOForgeParticipantsListResponse = z322.object({
|
|
10667
|
+
participants: z322.array(DTOForgeParticipant)
|
|
10651
10668
|
});
|
|
10652
|
-
var DTOForgeParticipantGetResponse =
|
|
10669
|
+
var DTOForgeParticipantGetResponse = z322.object({
|
|
10653
10670
|
participant: DTOForgeParticipant.nullable()
|
|
10654
10671
|
});
|
|
10655
10672
|
|
|
@@ -10661,121 +10678,121 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
|
|
|
10661
10678
|
projectIterationId: true,
|
|
10662
10679
|
participant: true
|
|
10663
10680
|
});
|
|
10664
|
-
var DTOGetForgeIterationMessageResponse =
|
|
10681
|
+
var DTOGetForgeIterationMessageResponse = z323.object({
|
|
10665
10682
|
message: DTOForgeIterationMessage.nullable()
|
|
10666
10683
|
});
|
|
10667
|
-
var DTOForgeIterationMessagesListResponse =
|
|
10668
|
-
messages:
|
|
10684
|
+
var DTOForgeIterationMessagesListResponse = z323.object({
|
|
10685
|
+
messages: z323.array(DTOForgeIterationMessage)
|
|
10669
10686
|
});
|
|
10670
|
-
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id:
|
|
10671
|
-
var DTOCreateForgeIterationMessageResponse =
|
|
10687
|
+
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z323.string() });
|
|
10688
|
+
var DTOCreateForgeIterationMessageResponse = z323.object({
|
|
10672
10689
|
message: DTOForgeIterationMessage
|
|
10673
10690
|
});
|
|
10674
|
-
var DTOUpdateForgeIterationMessageResponse =
|
|
10691
|
+
var DTOUpdateForgeIterationMessageResponse = z323.object({
|
|
10675
10692
|
message: DTOForgeIterationMessage.nullable()
|
|
10676
10693
|
});
|
|
10677
|
-
var DTODeleteForgeIterationMessageResponse =
|
|
10678
|
-
ok:
|
|
10694
|
+
var DTODeleteForgeIterationMessageResponse = z323.object({
|
|
10695
|
+
ok: z323.literal(true)
|
|
10679
10696
|
});
|
|
10680
10697
|
|
|
10681
10698
|
// src/api/dto/forge/memory.ts
|
|
10682
|
-
import
|
|
10683
|
-
var DTOForgeMemoryEntry =
|
|
10684
|
-
id:
|
|
10685
|
-
projectId:
|
|
10686
|
-
text:
|
|
10687
|
-
category:
|
|
10688
|
-
createdAt:
|
|
10689
|
-
updatedAt:
|
|
10690
|
-
metadata:
|
|
10691
|
-
});
|
|
10692
|
-
var DTOForgeMemoryCreateInput =
|
|
10693
|
-
projectId:
|
|
10694
|
-
text:
|
|
10695
|
-
category:
|
|
10696
|
-
metadata:
|
|
10697
|
-
});
|
|
10698
|
-
var DTOForgeMemoryUpdateInput =
|
|
10699
|
-
id:
|
|
10700
|
-
text:
|
|
10701
|
-
category:
|
|
10702
|
-
metadata:
|
|
10703
|
-
});
|
|
10704
|
-
var DTOForgeMemoryDeleteInput =
|
|
10705
|
-
id:
|
|
10706
|
-
});
|
|
10707
|
-
var DTOForgeMemoryEntryListResponse =
|
|
10699
|
+
import z324 from "zod";
|
|
10700
|
+
var DTOForgeMemoryEntry = z324.object({
|
|
10701
|
+
id: z324.string().uuid(),
|
|
10702
|
+
projectId: z324.string(),
|
|
10703
|
+
text: z324.string(),
|
|
10704
|
+
category: z324.string(),
|
|
10705
|
+
createdAt: z324.string(),
|
|
10706
|
+
updatedAt: z324.string(),
|
|
10707
|
+
metadata: z324.record(z324.string()).optional()
|
|
10708
|
+
});
|
|
10709
|
+
var DTOForgeMemoryCreateInput = z324.object({
|
|
10710
|
+
projectId: z324.string(),
|
|
10711
|
+
text: z324.string(),
|
|
10712
|
+
category: z324.string(),
|
|
10713
|
+
metadata: z324.record(z324.string()).optional()
|
|
10714
|
+
});
|
|
10715
|
+
var DTOForgeMemoryUpdateInput = z324.object({
|
|
10716
|
+
id: z324.string().uuid(),
|
|
10717
|
+
text: z324.string().optional(),
|
|
10718
|
+
category: z324.string(),
|
|
10719
|
+
metadata: z324.record(z324.string()).nullish()
|
|
10720
|
+
});
|
|
10721
|
+
var DTOForgeMemoryDeleteInput = z324.object({
|
|
10722
|
+
id: z324.string().uuid()
|
|
10723
|
+
});
|
|
10724
|
+
var DTOForgeMemoryEntryListResponse = z324.object({
|
|
10708
10725
|
memoryEntries: DTOForgeMemoryEntry.array()
|
|
10709
10726
|
});
|
|
10710
|
-
var DTOForgeMemoryEntryResponse =
|
|
10727
|
+
var DTOForgeMemoryEntryResponse = z324.object({
|
|
10711
10728
|
memoryEntry: DTOForgeMemoryEntry
|
|
10712
10729
|
});
|
|
10713
|
-
var DTOForgeMemoryEntryListQuery =
|
|
10714
|
-
projectId:
|
|
10730
|
+
var DTOForgeMemoryEntryListQuery = z324.object({
|
|
10731
|
+
projectId: z324.string()
|
|
10715
10732
|
});
|
|
10716
10733
|
|
|
10717
10734
|
// src/api/dto/forge/project-action.ts
|
|
10718
|
-
import
|
|
10735
|
+
import z329 from "zod";
|
|
10719
10736
|
|
|
10720
10737
|
// src/api/dto/forge/project-artifact.ts
|
|
10721
|
-
import { z as
|
|
10738
|
+
import { z as z327 } from "zod";
|
|
10722
10739
|
|
|
10723
10740
|
// src/api/dto/threads/threads.ts
|
|
10724
|
-
import
|
|
10725
|
-
var DTOThreadSubjectType =
|
|
10726
|
-
var DTOThreadAgentType =
|
|
10727
|
-
var DTOThreadPromptState =
|
|
10728
|
-
var DTOThread =
|
|
10729
|
-
id:
|
|
10730
|
-
liveblocksRoomId:
|
|
10741
|
+
import z325 from "zod";
|
|
10742
|
+
var DTOThreadSubjectType = z325.enum(["ForgeDocument", "ForgeFeature"]);
|
|
10743
|
+
var DTOThreadAgentType = z325.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
|
|
10744
|
+
var DTOThreadPromptState = z325.enum(["Success", "Timeout", "Error"]);
|
|
10745
|
+
var DTOThread = z325.object({
|
|
10746
|
+
id: z325.string(),
|
|
10747
|
+
liveblocksRoomId: z325.string(),
|
|
10731
10748
|
defaultAgentType: DTOThreadAgentType,
|
|
10732
|
-
subjectId:
|
|
10749
|
+
subjectId: z325.string(),
|
|
10733
10750
|
subjectType: DTOThreadSubjectType,
|
|
10734
|
-
createdAt:
|
|
10735
|
-
updatedAt:
|
|
10751
|
+
createdAt: z325.string(),
|
|
10752
|
+
updatedAt: z325.string()
|
|
10736
10753
|
});
|
|
10737
|
-
var DTOThreadMessageUserSender =
|
|
10738
|
-
type:
|
|
10739
|
-
userId:
|
|
10754
|
+
var DTOThreadMessageUserSender = z325.object({
|
|
10755
|
+
type: z325.literal("User"),
|
|
10756
|
+
userId: z325.string()
|
|
10740
10757
|
});
|
|
10741
|
-
var DTOThreadMessageAgentSender =
|
|
10742
|
-
type:
|
|
10758
|
+
var DTOThreadMessageAgentSender = z325.object({
|
|
10759
|
+
type: z325.literal("Agent"),
|
|
10743
10760
|
agentType: DTOThreadAgentType
|
|
10744
10761
|
});
|
|
10745
|
-
var DTOThreadMessageSystemSender =
|
|
10746
|
-
type:
|
|
10747
|
-
onBehalfOfUserId:
|
|
10762
|
+
var DTOThreadMessageSystemSender = z325.object({
|
|
10763
|
+
type: z325.literal("System"),
|
|
10764
|
+
onBehalfOfUserId: z325.string()
|
|
10748
10765
|
});
|
|
10749
|
-
var DTOThreadMessageSender =
|
|
10766
|
+
var DTOThreadMessageSender = z325.discriminatedUnion("type", [
|
|
10750
10767
|
DTOThreadMessageUserSender,
|
|
10751
10768
|
DTOThreadMessageAgentSender,
|
|
10752
10769
|
DTOThreadMessageSystemSender
|
|
10753
10770
|
]);
|
|
10754
|
-
var DTOThreadReaction =
|
|
10771
|
+
var DTOThreadReaction = z325.object({
|
|
10755
10772
|
messageId: Id,
|
|
10756
|
-
userId:
|
|
10757
|
-
emoji:
|
|
10758
|
-
createdAt:
|
|
10773
|
+
userId: z325.string(),
|
|
10774
|
+
emoji: z325.string(),
|
|
10775
|
+
createdAt: z325.string()
|
|
10759
10776
|
});
|
|
10760
|
-
var DTOThreadMessageAttachments =
|
|
10777
|
+
var DTOThreadMessageAttachments = z325.object({
|
|
10761
10778
|
iterationId: Id.optional(),
|
|
10762
10779
|
files: DTOFileReference.array().optional(),
|
|
10763
|
-
templateId:
|
|
10780
|
+
templateId: z325.string().optional(),
|
|
10764
10781
|
figmaNodes: DTOForgeFigmaNode.array().optional()
|
|
10765
10782
|
});
|
|
10766
|
-
var DTOThreadMessageAnnotation =
|
|
10767
|
-
prompt:
|
|
10768
|
-
elements:
|
|
10769
|
-
|
|
10770
|
-
xpath:
|
|
10771
|
-
line:
|
|
10783
|
+
var DTOThreadMessageAnnotation = z325.object({
|
|
10784
|
+
prompt: z325.string(),
|
|
10785
|
+
elements: z325.array(
|
|
10786
|
+
z325.object({
|
|
10787
|
+
xpath: z325.string(),
|
|
10788
|
+
line: z325.string()
|
|
10772
10789
|
})
|
|
10773
10790
|
)
|
|
10774
10791
|
});
|
|
10775
|
-
var DTOThreadMessageAnnotations =
|
|
10776
|
-
var DTOThreadMessage =
|
|
10792
|
+
var DTOThreadMessageAnnotations = z325.array(DTOThreadMessageAnnotation);
|
|
10793
|
+
var DTOThreadMessage = z325.object({
|
|
10777
10794
|
id: Id,
|
|
10778
|
-
threadId:
|
|
10795
|
+
threadId: z325.string(),
|
|
10779
10796
|
/**
|
|
10780
10797
|
* Describes where the message came from
|
|
10781
10798
|
*/
|
|
@@ -10783,20 +10800,20 @@ var DTOThreadMessage = z324.object({
|
|
|
10783
10800
|
/**
|
|
10784
10801
|
* Content of the message
|
|
10785
10802
|
*/
|
|
10786
|
-
body:
|
|
10803
|
+
body: z325.string(),
|
|
10787
10804
|
/**
|
|
10788
10805
|
* Indicates if the message was sent in the agentic mode, if so this message will cause an
|
|
10789
10806
|
* AI agent to generate a response and perform an action within the feature
|
|
10790
10807
|
*/
|
|
10791
|
-
isPrompt:
|
|
10808
|
+
isPrompt: z325.boolean().optional(),
|
|
10792
10809
|
/**
|
|
10793
10810
|
* Indicates if the message is an attempt to retry agent message. Only available for agent messages.
|
|
10794
10811
|
*/
|
|
10795
|
-
isRetry:
|
|
10812
|
+
isRetry: z325.boolean().optional(),
|
|
10796
10813
|
/**
|
|
10797
10814
|
* Indicates if the sender requested agent to reply in a thread
|
|
10798
10815
|
*/
|
|
10799
|
-
startsNewThread:
|
|
10816
|
+
startsNewThread: z325.boolean().optional(),
|
|
10800
10817
|
/**
|
|
10801
10818
|
* If defined, this message is considered to be a reply in a thread under parent message id
|
|
10802
10819
|
*/
|
|
@@ -10811,19 +10828,19 @@ var DTOThreadMessage = z324.object({
|
|
|
10811
10828
|
* If defined, this message is considered to be a reply to different message
|
|
10812
10829
|
*/
|
|
10813
10830
|
replyToMessageId: Id.optional(),
|
|
10814
|
-
promptMetadata:
|
|
10815
|
-
createdAt:
|
|
10816
|
-
updatedAt:
|
|
10831
|
+
promptMetadata: z325.record(z325.string(), z325.any()).optional(),
|
|
10832
|
+
createdAt: z325.string(),
|
|
10833
|
+
updatedAt: z325.string().optional()
|
|
10817
10834
|
});
|
|
10818
|
-
var DTOThreadAgentResponseTracker =
|
|
10835
|
+
var DTOThreadAgentResponseTracker = z325.object({
|
|
10819
10836
|
id: Id,
|
|
10820
|
-
currentBody:
|
|
10837
|
+
currentBody: z325.string().default("")
|
|
10821
10838
|
});
|
|
10822
|
-
var DTOThreadMessageAttachmentsCreateInput =
|
|
10839
|
+
var DTOThreadMessageAttachmentsCreateInput = z325.object({
|
|
10823
10840
|
iterationId: Id.optional(),
|
|
10824
|
-
fileIds:
|
|
10825
|
-
figmaNodeIds:
|
|
10826
|
-
templateId:
|
|
10841
|
+
fileIds: z325.string().array().optional(),
|
|
10842
|
+
figmaNodeIds: z325.string().array().optional(),
|
|
10843
|
+
templateId: z325.string().optional()
|
|
10827
10844
|
});
|
|
10828
10845
|
var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
10829
10846
|
id: true,
|
|
@@ -10836,67 +10853,67 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
|
10836
10853
|
}).extend({
|
|
10837
10854
|
attachments: DTOThreadMessageAttachmentsCreateInput.optional()
|
|
10838
10855
|
});
|
|
10839
|
-
var DTOThreadMessageFinalizeInput =
|
|
10856
|
+
var DTOThreadMessageFinalizeInput = z325.object({
|
|
10840
10857
|
messageId: Id,
|
|
10841
|
-
agentMessageBody:
|
|
10858
|
+
agentMessageBody: z325.string().optional(),
|
|
10842
10859
|
promptState: DTOThreadPromptState.optional(),
|
|
10843
10860
|
creditsSpend: DTOBillingCreditsSpendInput.optional()
|
|
10844
10861
|
});
|
|
10845
|
-
var DTOThreadMessageRetryInput =
|
|
10862
|
+
var DTOThreadMessageRetryInput = z325.object({
|
|
10846
10863
|
agentMessageId: Id,
|
|
10847
|
-
runtimeError:
|
|
10864
|
+
runtimeError: z325.string().optional(),
|
|
10848
10865
|
/**
|
|
10849
10866
|
* When `true`, the retry message will be sent to a thread started by the user's message
|
|
10850
10867
|
* Useful when user retries a message created in the main thread, but expects the retry to be sent as a thread reply
|
|
10851
10868
|
*/
|
|
10852
|
-
shouldReplyInThread:
|
|
10869
|
+
shouldReplyInThread: z325.boolean().optional(),
|
|
10853
10870
|
message: DTOThreadMessage.pick({ id: true, body: true }).optional()
|
|
10854
10871
|
});
|
|
10855
10872
|
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
10856
10873
|
id: true
|
|
10857
10874
|
}).merge(
|
|
10858
|
-
|
|
10875
|
+
z325.object({
|
|
10859
10876
|
body: DTOThreadMessage.shape.body,
|
|
10860
10877
|
attachments: DTOThreadMessage.shape.attachments,
|
|
10861
10878
|
agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
|
|
10862
10879
|
}).partial()
|
|
10863
10880
|
);
|
|
10864
|
-
var DTOThreadReactionCreateInput =
|
|
10881
|
+
var DTOThreadReactionCreateInput = z325.object({
|
|
10865
10882
|
messageId: Id,
|
|
10866
|
-
emoji:
|
|
10883
|
+
emoji: z325.string()
|
|
10867
10884
|
});
|
|
10868
|
-
var DTOThreadReactionDeleteInput =
|
|
10885
|
+
var DTOThreadReactionDeleteInput = z325.object({
|
|
10869
10886
|
messageId: Id,
|
|
10870
|
-
emoji:
|
|
10887
|
+
emoji: z325.string()
|
|
10871
10888
|
});
|
|
10872
|
-
var DTOThreadMessageResponse =
|
|
10889
|
+
var DTOThreadMessageResponse = z325.object({
|
|
10873
10890
|
message: DTOThreadMessage
|
|
10874
10891
|
});
|
|
10875
|
-
var DTOThreadReactionResponse =
|
|
10892
|
+
var DTOThreadReactionResponse = z325.object({
|
|
10876
10893
|
reaction: DTOThreadReaction
|
|
10877
10894
|
});
|
|
10878
|
-
var DTOThreadMessageListResponse =
|
|
10895
|
+
var DTOThreadMessageListResponse = z325.object({
|
|
10879
10896
|
messages: DTOThreadMessage.array(),
|
|
10880
10897
|
reactions: DTOThreadReaction.array(),
|
|
10881
|
-
lastSeenMessageId:
|
|
10898
|
+
lastSeenMessageId: z325.string().optional()
|
|
10882
10899
|
});
|
|
10883
|
-
var DTOThreadEventMessagesSent =
|
|
10884
|
-
type:
|
|
10900
|
+
var DTOThreadEventMessagesSent = z325.object({
|
|
10901
|
+
type: z325.literal("MessagesSent"),
|
|
10885
10902
|
data: DTOThreadMessage.array()
|
|
10886
10903
|
});
|
|
10887
|
-
var DTOThreadEventMessagesUpdated =
|
|
10888
|
-
type:
|
|
10904
|
+
var DTOThreadEventMessagesUpdated = z325.object({
|
|
10905
|
+
type: z325.literal("MessagesUpdated"),
|
|
10889
10906
|
data: DTOThreadMessage.array()
|
|
10890
10907
|
});
|
|
10891
|
-
var DTOThreadEventReactionsSent =
|
|
10892
|
-
type:
|
|
10908
|
+
var DTOThreadEventReactionsSent = z325.object({
|
|
10909
|
+
type: z325.literal("ReactionsSent"),
|
|
10893
10910
|
data: DTOThreadReaction.array()
|
|
10894
10911
|
});
|
|
10895
|
-
var DTOThreadEventReactionsDeleted =
|
|
10896
|
-
type:
|
|
10912
|
+
var DTOThreadEventReactionsDeleted = z325.object({
|
|
10913
|
+
type: z325.literal("ReactionsDeleted"),
|
|
10897
10914
|
data: DTOThreadReaction.array()
|
|
10898
10915
|
});
|
|
10899
|
-
var DTOThreadEvent =
|
|
10916
|
+
var DTOThreadEvent = z325.discriminatedUnion("type", [
|
|
10900
10917
|
DTOThreadEventMessagesSent,
|
|
10901
10918
|
DTOThreadEventMessagesUpdated,
|
|
10902
10919
|
DTOThreadEventReactionsSent,
|
|
@@ -10904,8 +10921,8 @@ var DTOThreadEvent = z324.discriminatedUnion("type", [
|
|
|
10904
10921
|
]);
|
|
10905
10922
|
|
|
10906
10923
|
// src/api/dto/forge/project-section.ts
|
|
10907
|
-
import
|
|
10908
|
-
var AfterSectionId =
|
|
10924
|
+
import z326 from "zod";
|
|
10925
|
+
var AfterSectionId = z326.string().uuid().nullish().optional();
|
|
10909
10926
|
var DTOForgeSection = ForgeSection;
|
|
10910
10927
|
var DTOForgeSectionCreateInput = DTOForgeSection.pick({
|
|
10911
10928
|
id: true,
|
|
@@ -10916,12 +10933,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
|
|
|
10916
10933
|
});
|
|
10917
10934
|
var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
|
|
10918
10935
|
var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
|
|
10919
|
-
deleteChildren:
|
|
10936
|
+
deleteChildren: z326.boolean().default(false)
|
|
10920
10937
|
});
|
|
10921
10938
|
var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
|
|
10922
10939
|
afterSectionId: AfterSectionId
|
|
10923
10940
|
});
|
|
10924
|
-
var DTOForgeSectionItemMoveInput =
|
|
10941
|
+
var DTOForgeSectionItemMoveInput = z326.object({
|
|
10925
10942
|
id: Id,
|
|
10926
10943
|
sectionId: Id.nullish().optional(),
|
|
10927
10944
|
// undefined=stay, null=no section, string=move to section
|
|
@@ -10931,160 +10948,160 @@ var DTOForgeSectionItemMoveInput = z325.object({
|
|
|
10931
10948
|
|
|
10932
10949
|
// src/api/dto/forge/project-artifact.ts
|
|
10933
10950
|
var DTOForgeProjectArtifact = ForgeProjectArtifact;
|
|
10934
|
-
var DTOForgeProjectArtifactUpdateInput =
|
|
10935
|
-
id:
|
|
10936
|
-
title:
|
|
10937
|
-
isArchived:
|
|
10938
|
-
});
|
|
10939
|
-
var DTOForgeProjectArtifactCreateInput =
|
|
10940
|
-
id:
|
|
10941
|
-
title:
|
|
10942
|
-
sectionId:
|
|
10943
|
-
afterArtifactId:
|
|
10951
|
+
var DTOForgeProjectArtifactUpdateInput = z327.object({
|
|
10952
|
+
id: z327.string(),
|
|
10953
|
+
title: z327.string().optional(),
|
|
10954
|
+
isArchived: z327.boolean().optional()
|
|
10955
|
+
});
|
|
10956
|
+
var DTOForgeProjectArtifactCreateInput = z327.object({
|
|
10957
|
+
id: z327.string(),
|
|
10958
|
+
title: z327.string(),
|
|
10959
|
+
sectionId: z327.string().optional(),
|
|
10960
|
+
afterArtifactId: z327.string().optional().nullable(),
|
|
10944
10961
|
initialMessage: DTOThreadMessageCreateInput.optional()
|
|
10945
10962
|
});
|
|
10946
|
-
var DTOForgeProjectArtifactDeleteInput =
|
|
10963
|
+
var DTOForgeProjectArtifactDeleteInput = z327.object({
|
|
10947
10964
|
id: Id
|
|
10948
10965
|
});
|
|
10949
10966
|
var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
|
|
10950
|
-
var DTOForgeDocumentGetByIdParam =
|
|
10967
|
+
var DTOForgeDocumentGetByIdParam = z327.object({
|
|
10951
10968
|
id: Id
|
|
10952
10969
|
});
|
|
10953
|
-
var DTOForgeProjectArtifactGetResponse =
|
|
10970
|
+
var DTOForgeProjectArtifactGetResponse = z327.object({
|
|
10954
10971
|
artifact: DTOForgeProjectArtifact
|
|
10955
10972
|
});
|
|
10956
|
-
var DTOForgeDocumentGetResponse =
|
|
10973
|
+
var DTOForgeDocumentGetResponse = z327.object({
|
|
10957
10974
|
document: DTOForgeProjectArtifact
|
|
10958
10975
|
});
|
|
10959
|
-
var DTOForgeProjectArtifactCreateResponse =
|
|
10976
|
+
var DTOForgeProjectArtifactCreateResponse = z327.object({
|
|
10960
10977
|
artifact: DTOForgeProjectArtifact
|
|
10961
10978
|
});
|
|
10962
|
-
var DTOForgeProjectArtifactUpdateResponse =
|
|
10979
|
+
var DTOForgeProjectArtifactUpdateResponse = z327.object({
|
|
10963
10980
|
artifact: DTOForgeProjectArtifact
|
|
10964
10981
|
});
|
|
10965
|
-
var DTOForgeProjectArtifactDeleteResponse =
|
|
10966
|
-
ok:
|
|
10982
|
+
var DTOForgeProjectArtifactDeleteResponse = z327.object({
|
|
10983
|
+
ok: z327.literal(true)
|
|
10967
10984
|
});
|
|
10968
|
-
var DTOForgeProjectArtifactMoveResponse =
|
|
10985
|
+
var DTOForgeProjectArtifactMoveResponse = z327.object({
|
|
10969
10986
|
artifact: DTOForgeProjectArtifact
|
|
10970
10987
|
});
|
|
10971
|
-
var DTOForgeProjectArtifactsListResponse =
|
|
10972
|
-
artifacts:
|
|
10988
|
+
var DTOForgeProjectArtifactsListResponse = z327.object({
|
|
10989
|
+
artifacts: z327.array(DTOForgeProjectArtifact)
|
|
10973
10990
|
});
|
|
10974
|
-
var DTOForgeProjectArtifactContentResponse =
|
|
10975
|
-
artifactId:
|
|
10991
|
+
var DTOForgeProjectArtifactContentResponse = z327.object({
|
|
10992
|
+
artifactId: z327.string(),
|
|
10976
10993
|
content: ForgeProjectArtifactContentData
|
|
10977
10994
|
});
|
|
10978
10995
|
|
|
10979
10996
|
// src/api/dto/forge/project-feature.ts
|
|
10980
|
-
import
|
|
10997
|
+
import z328 from "zod";
|
|
10981
10998
|
var DTOFeaturePublishedStateUpdateInput = FeaturePublishedState.pick({
|
|
10982
10999
|
iterationId: true,
|
|
10983
11000
|
hideSupernovaUI: true,
|
|
10984
11001
|
visibility: true
|
|
10985
11002
|
});
|
|
10986
11003
|
var DTOForgeProjectFeature = ProjectFeature;
|
|
10987
|
-
var DTOForgeProjectPublishedFeature =
|
|
10988
|
-
featureName:
|
|
10989
|
-
iterationName:
|
|
10990
|
-
hideSupernovaUI:
|
|
10991
|
-
thumbnailUrl:
|
|
10992
|
-
staticPreviewUrl:
|
|
11004
|
+
var DTOForgeProjectPublishedFeature = z328.object({
|
|
11005
|
+
featureName: z328.string(),
|
|
11006
|
+
iterationName: z328.string(),
|
|
11007
|
+
hideSupernovaUI: z328.boolean(),
|
|
11008
|
+
thumbnailUrl: z328.string().optional(),
|
|
11009
|
+
staticPreviewUrl: z328.string().optional(),
|
|
10993
11010
|
// These are only included when authenticated user has access to the project (for both public & private published features)
|
|
10994
|
-
projectId:
|
|
10995
|
-
projectName:
|
|
10996
|
-
workspaceId:
|
|
11011
|
+
projectId: z328.string().optional(),
|
|
11012
|
+
projectName: z328.string().optional(),
|
|
11013
|
+
workspaceId: z328.string().optional()
|
|
10997
11014
|
});
|
|
10998
|
-
var DTOForgeProjectPublishedFeatureGetResponse =
|
|
11015
|
+
var DTOForgeProjectPublishedFeatureGetResponse = z328.object({
|
|
10999
11016
|
publishedFeature: DTOForgeProjectPublishedFeature
|
|
11000
11017
|
});
|
|
11001
|
-
var DTOForgeProjectFeatureListResponse =
|
|
11018
|
+
var DTOForgeProjectFeatureListResponse = z328.object({
|
|
11002
11019
|
features: DTOForgeProjectFeature.array()
|
|
11003
11020
|
});
|
|
11004
|
-
var DTOForgeProjectFeatureGetResponse =
|
|
11021
|
+
var DTOForgeProjectFeatureGetResponse = z328.object({
|
|
11005
11022
|
feature: DTOForgeProjectFeature
|
|
11006
11023
|
});
|
|
11007
|
-
var DTOForgeProjectFeatureCreateInput =
|
|
11024
|
+
var DTOForgeProjectFeatureCreateInput = z328.object({
|
|
11008
11025
|
id: Id,
|
|
11009
|
-
name:
|
|
11010
|
-
description:
|
|
11026
|
+
name: z328.string().optional(),
|
|
11027
|
+
description: z328.string(),
|
|
11011
11028
|
sectionId: Id.optional(),
|
|
11012
11029
|
afterFeatureId: Id.nullable().optional(),
|
|
11013
11030
|
initialMessage: DTOThreadMessageCreateInput
|
|
11014
11031
|
});
|
|
11015
|
-
var DTOForgeProjectFeatureUpdateInput =
|
|
11032
|
+
var DTOForgeProjectFeatureUpdateInput = z328.object({
|
|
11016
11033
|
id: Id,
|
|
11017
|
-
name:
|
|
11018
|
-
description:
|
|
11019
|
-
isArchived:
|
|
11034
|
+
name: z328.string().optional(),
|
|
11035
|
+
description: z328.string().optional(),
|
|
11036
|
+
isArchived: z328.boolean().optional(),
|
|
11020
11037
|
status: ProjectFeatureStatus.optional(),
|
|
11021
11038
|
/**
|
|
11022
11039
|
* Sending null will result in feature unpublish
|
|
11023
11040
|
*/
|
|
11024
11041
|
publishedState: DTOFeaturePublishedStateUpdateInput.nullish()
|
|
11025
11042
|
});
|
|
11026
|
-
var DTOForgeProjectFeatureDeleteInput =
|
|
11043
|
+
var DTOForgeProjectFeatureDeleteInput = z328.object({
|
|
11027
11044
|
id: Id
|
|
11028
11045
|
});
|
|
11029
|
-
var DTOForgeProjectFeatureGetByIdParam =
|
|
11046
|
+
var DTOForgeProjectFeatureGetByIdParam = z328.object({
|
|
11030
11047
|
id: Id
|
|
11031
11048
|
});
|
|
11032
|
-
var DTOFeatureArtifactListQuery =
|
|
11033
|
-
messageId:
|
|
11034
|
-
iterationId:
|
|
11049
|
+
var DTOFeatureArtifactListQuery = z328.object({
|
|
11050
|
+
messageId: z328.string().optional(),
|
|
11051
|
+
iterationId: z328.string().optional()
|
|
11035
11052
|
});
|
|
11036
11053
|
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
11037
11054
|
|
|
11038
11055
|
// src/api/dto/forge/project-action.ts
|
|
11039
|
-
var DTOForgeProjectActionFeatureCreate =
|
|
11040
|
-
type:
|
|
11056
|
+
var DTOForgeProjectActionFeatureCreate = z329.object({
|
|
11057
|
+
type: z329.literal("FeatureCreate"),
|
|
11041
11058
|
input: DTOForgeProjectFeatureCreateInput
|
|
11042
11059
|
});
|
|
11043
|
-
var DTOForgeProjectActionFeatureUpdate =
|
|
11044
|
-
type:
|
|
11060
|
+
var DTOForgeProjectActionFeatureUpdate = z329.object({
|
|
11061
|
+
type: z329.literal("FeatureUpdate"),
|
|
11045
11062
|
input: DTOForgeProjectFeatureUpdateInput
|
|
11046
11063
|
});
|
|
11047
|
-
var DTOForgeProjectActionFeatureMove =
|
|
11048
|
-
type:
|
|
11064
|
+
var DTOForgeProjectActionFeatureMove = z329.object({
|
|
11065
|
+
type: z329.literal("FeatureMove"),
|
|
11049
11066
|
input: DTOForgeProjectFeatureMoveInput
|
|
11050
11067
|
});
|
|
11051
|
-
var DTOForgeProjectActionFeatureDelete =
|
|
11052
|
-
type:
|
|
11068
|
+
var DTOForgeProjectActionFeatureDelete = z329.object({
|
|
11069
|
+
type: z329.literal("FeatureDelete"),
|
|
11053
11070
|
input: DTOForgeProjectFeatureDeleteInput
|
|
11054
11071
|
});
|
|
11055
|
-
var DTOForgeProjectActionArtifactCreate =
|
|
11056
|
-
type:
|
|
11072
|
+
var DTOForgeProjectActionArtifactCreate = z329.object({
|
|
11073
|
+
type: z329.literal("ArtifactCreate"),
|
|
11057
11074
|
input: DTOForgeProjectArtifactCreateInput
|
|
11058
11075
|
});
|
|
11059
|
-
var DTOForgeProjectActionArtifactUpdate =
|
|
11060
|
-
type:
|
|
11076
|
+
var DTOForgeProjectActionArtifactUpdate = z329.object({
|
|
11077
|
+
type: z329.literal("ArtifactUpdate"),
|
|
11061
11078
|
input: DTOForgeProjectArtifactUpdateInput
|
|
11062
11079
|
});
|
|
11063
|
-
var DTOForgeProjectActionArtifactDelete =
|
|
11064
|
-
type:
|
|
11080
|
+
var DTOForgeProjectActionArtifactDelete = z329.object({
|
|
11081
|
+
type: z329.literal("ArtifactDelete"),
|
|
11065
11082
|
input: DTOForgeProjectArtifactDeleteInput
|
|
11066
11083
|
});
|
|
11067
|
-
var DTOForgeProjectActionArtifactMove =
|
|
11068
|
-
type:
|
|
11084
|
+
var DTOForgeProjectActionArtifactMove = z329.object({
|
|
11085
|
+
type: z329.literal("ArtifactMove"),
|
|
11069
11086
|
input: DTOForgeProjectArtifactMoveInput
|
|
11070
11087
|
});
|
|
11071
|
-
var DTOForgeProjectActionSectionCreate =
|
|
11072
|
-
type:
|
|
11088
|
+
var DTOForgeProjectActionSectionCreate = z329.object({
|
|
11089
|
+
type: z329.literal("SectionCreate"),
|
|
11073
11090
|
input: DTOForgeSectionCreateInput
|
|
11074
11091
|
});
|
|
11075
|
-
var DTOForgeProjectActionSectionUpdate =
|
|
11076
|
-
type:
|
|
11092
|
+
var DTOForgeProjectActionSectionUpdate = z329.object({
|
|
11093
|
+
type: z329.literal("SectionUpdate"),
|
|
11077
11094
|
input: DTOForgeSectionUpdateInput
|
|
11078
11095
|
});
|
|
11079
|
-
var DTOForgeProjectActionSectionDelete =
|
|
11080
|
-
type:
|
|
11096
|
+
var DTOForgeProjectActionSectionDelete = z329.object({
|
|
11097
|
+
type: z329.literal("SectionDelete"),
|
|
11081
11098
|
input: DTOForgeSectionDeleteInput
|
|
11082
11099
|
});
|
|
11083
|
-
var DTOForgeProjectActionSectionMove =
|
|
11084
|
-
type:
|
|
11100
|
+
var DTOForgeProjectActionSectionMove = z329.object({
|
|
11101
|
+
type: z329.literal("SectionMove"),
|
|
11085
11102
|
input: DTOForgeSectionMoveInput
|
|
11086
11103
|
});
|
|
11087
|
-
var DTOForgeProjectAction =
|
|
11104
|
+
var DTOForgeProjectAction = z329.discriminatedUnion("type", [
|
|
11088
11105
|
//features
|
|
11089
11106
|
DTOForgeProjectActionFeatureCreate,
|
|
11090
11107
|
DTOForgeProjectActionFeatureUpdate,
|
|
@@ -11101,41 +11118,41 @@ var DTOForgeProjectAction = z328.discriminatedUnion("type", [
|
|
|
11101
11118
|
DTOForgeProjectActionSectionDelete,
|
|
11102
11119
|
DTOForgeProjectActionSectionMove
|
|
11103
11120
|
]).and(
|
|
11104
|
-
|
|
11105
|
-
tId:
|
|
11121
|
+
z329.object({
|
|
11122
|
+
tId: z329.string().optional()
|
|
11106
11123
|
})
|
|
11107
11124
|
);
|
|
11108
11125
|
|
|
11109
11126
|
// src/api/dto/forge/project-artifact-room.ts
|
|
11110
|
-
import { z as
|
|
11111
|
-
var DTOForgeProjectArtifactRoom =
|
|
11112
|
-
id:
|
|
11127
|
+
import { z as z330 } from "zod";
|
|
11128
|
+
var DTOForgeProjectArtifactRoom = z330.object({
|
|
11129
|
+
id: z330.string()
|
|
11113
11130
|
});
|
|
11114
|
-
var DTOForgeProjectArtifactRoomResponse =
|
|
11131
|
+
var DTOForgeProjectArtifactRoomResponse = z330.object({
|
|
11115
11132
|
room: DTOForgeProjectArtifactRoom
|
|
11116
11133
|
});
|
|
11117
11134
|
|
|
11118
11135
|
// src/api/dto/forge/project-context-override.ts
|
|
11119
|
-
import
|
|
11136
|
+
import z332 from "zod";
|
|
11120
11137
|
|
|
11121
11138
|
// src/api/dto/forge/project-context-v2.ts
|
|
11122
|
-
import { z as
|
|
11123
|
-
var DTOForgeComponentSetTypeV2 =
|
|
11124
|
-
var DTOForgeComponentSet =
|
|
11139
|
+
import { z as z331 } from "zod";
|
|
11140
|
+
var DTOForgeComponentSetTypeV2 = z331.enum(["Shadcn"]);
|
|
11141
|
+
var DTOForgeComponentSet = z331.object({
|
|
11125
11142
|
type: DTOForgeComponentSetTypeV2
|
|
11126
11143
|
});
|
|
11127
|
-
var DTOForgeIconSetTypeV2 =
|
|
11128
|
-
var DTOForgeThemeKnownPreset =
|
|
11129
|
-
var DTOForgeIconSet =
|
|
11144
|
+
var DTOForgeIconSetTypeV2 = z331.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
11145
|
+
var DTOForgeThemeKnownPreset = z331.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
|
|
11146
|
+
var DTOForgeIconSet = z331.object({
|
|
11130
11147
|
type: DTOForgeIconSetTypeV2,
|
|
11131
|
-
variant:
|
|
11148
|
+
variant: z331.string().optional()
|
|
11132
11149
|
});
|
|
11133
|
-
var DTOForgeTokenThemeSet =
|
|
11134
|
-
id:
|
|
11135
|
-
name:
|
|
11136
|
-
tokenThemeIds:
|
|
11150
|
+
var DTOForgeTokenThemeSet = z331.object({
|
|
11151
|
+
id: z331.string(),
|
|
11152
|
+
name: z331.string(),
|
|
11153
|
+
tokenThemeIds: z331.array(z331.string())
|
|
11137
11154
|
});
|
|
11138
|
-
var DTOForgeProjectTheme =
|
|
11155
|
+
var DTOForgeProjectTheme = z331.object({
|
|
11139
11156
|
// Colors
|
|
11140
11157
|
background: ColorTokenData,
|
|
11141
11158
|
foreground: ColorTokenData,
|
|
@@ -11220,28 +11237,28 @@ var DTOForgeProjectTheme = z330.object({
|
|
|
11220
11237
|
shadowXl: ShadowTokenData,
|
|
11221
11238
|
shadow2xl: ShadowTokenData
|
|
11222
11239
|
});
|
|
11223
|
-
var DTOForgeProjectContextV2 =
|
|
11224
|
-
id:
|
|
11225
|
-
name:
|
|
11226
|
-
workspaceId:
|
|
11227
|
-
designSystemId:
|
|
11228
|
-
brandId:
|
|
11229
|
-
defaultTokenThemeSetId:
|
|
11230
|
-
description:
|
|
11231
|
-
productContext:
|
|
11232
|
-
additionalContext:
|
|
11233
|
-
isArchived:
|
|
11234
|
-
themePreset:
|
|
11235
|
-
tokenThemeSets:
|
|
11240
|
+
var DTOForgeProjectContextV2 = z331.object({
|
|
11241
|
+
id: z331.string(),
|
|
11242
|
+
name: z331.string(),
|
|
11243
|
+
workspaceId: z331.string(),
|
|
11244
|
+
designSystemId: z331.string().optional(),
|
|
11245
|
+
brandId: z331.string().optional(),
|
|
11246
|
+
defaultTokenThemeSetId: z331.string().optional(),
|
|
11247
|
+
description: z331.string().optional(),
|
|
11248
|
+
productContext: z331.string().optional(),
|
|
11249
|
+
additionalContext: z331.string().optional(),
|
|
11250
|
+
isArchived: z331.boolean(),
|
|
11251
|
+
themePreset: z331.string().optional(),
|
|
11252
|
+
tokenThemeSets: z331.array(DTOForgeTokenThemeSet).optional(),
|
|
11236
11253
|
componentSet: DTOForgeComponentSet,
|
|
11237
11254
|
iconSet: DTOForgeIconSet,
|
|
11238
11255
|
theme: DTOForgeProjectTheme,
|
|
11239
|
-
createdAt:
|
|
11240
|
-
updatedAt:
|
|
11256
|
+
createdAt: z331.coerce.date(),
|
|
11257
|
+
updatedAt: z331.coerce.date(),
|
|
11241
11258
|
thumbnail: DTOFileReference.optional(),
|
|
11242
|
-
sandboxTemplate:
|
|
11243
|
-
id:
|
|
11244
|
-
version:
|
|
11259
|
+
sandboxTemplate: z331.object({
|
|
11260
|
+
id: z331.string(),
|
|
11261
|
+
version: z331.string()
|
|
11245
11262
|
}).optional()
|
|
11246
11263
|
});
|
|
11247
11264
|
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
@@ -11251,7 +11268,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
11251
11268
|
isArchived: true,
|
|
11252
11269
|
thumbnail: true
|
|
11253
11270
|
}).extend({
|
|
11254
|
-
thumbnailFileId:
|
|
11271
|
+
thumbnailFileId: z331.string().optional()
|
|
11255
11272
|
});
|
|
11256
11273
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
11257
11274
|
id: true,
|
|
@@ -11260,60 +11277,60 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
|
11260
11277
|
updatedAt: true,
|
|
11261
11278
|
thumbnail: true
|
|
11262
11279
|
}).partial().extend({
|
|
11263
|
-
thumbnailFileId:
|
|
11280
|
+
thumbnailFileId: z331.string().nullish()
|
|
11264
11281
|
});
|
|
11265
|
-
var DTOForgeProjectContextResponseV2 =
|
|
11266
|
-
var DTOForgeProjectContextListQueryV2 =
|
|
11267
|
-
workspaceId:
|
|
11282
|
+
var DTOForgeProjectContextResponseV2 = z331.object({ context: DTOForgeProjectContextV2 });
|
|
11283
|
+
var DTOForgeProjectContextListQueryV2 = z331.object({
|
|
11284
|
+
workspaceId: z331.string(),
|
|
11268
11285
|
isArchived: zodQueryBoolean()
|
|
11269
11286
|
});
|
|
11270
|
-
var DTOForgeProjectContextListResponseV2 =
|
|
11287
|
+
var DTOForgeProjectContextListResponseV2 = z331.object({ contexts: z331.array(DTOForgeProjectContextV2) });
|
|
11271
11288
|
|
|
11272
11289
|
// src/api/dto/forge/project-context-override.ts
|
|
11273
|
-
var DTOProjectContextOverride =
|
|
11274
|
-
projectId:
|
|
11290
|
+
var DTOProjectContextOverride = z332.object({
|
|
11291
|
+
projectId: z332.string(),
|
|
11275
11292
|
theme: DTOForgeProjectTheme.partial(),
|
|
11276
|
-
themePreset:
|
|
11293
|
+
themePreset: z332.string().optional()
|
|
11277
11294
|
});
|
|
11278
|
-
var DTOProjectContextOverrideInput =
|
|
11279
|
-
updateSharedContext:
|
|
11295
|
+
var DTOProjectContextOverrideInput = z332.object({
|
|
11296
|
+
updateSharedContext: z332.boolean().optional(),
|
|
11280
11297
|
theme: DTOForgeProjectTheme.partial(),
|
|
11281
|
-
themePreset:
|
|
11298
|
+
themePreset: z332.string().optional()
|
|
11282
11299
|
});
|
|
11283
|
-
var DTOProjectContextOverrideResponse =
|
|
11300
|
+
var DTOProjectContextOverrideResponse = z332.object({
|
|
11284
11301
|
override: DTOProjectContextOverride,
|
|
11285
11302
|
originalContext: DTOForgeProjectContextV2,
|
|
11286
11303
|
resolvedContext: DTOForgeProjectContextV2
|
|
11287
11304
|
});
|
|
11288
11305
|
|
|
11289
11306
|
// src/api/dto/forge/project-context.ts
|
|
11290
|
-
import { z as
|
|
11291
|
-
var DTOForgeProjectContext =
|
|
11292
|
-
definition:
|
|
11293
|
-
dependencies:
|
|
11294
|
-
|
|
11295
|
-
packageName:
|
|
11296
|
-
type:
|
|
11297
|
-
version:
|
|
11307
|
+
import { z as z333 } from "zod";
|
|
11308
|
+
var DTOForgeProjectContext = z333.object({
|
|
11309
|
+
definition: z333.string(),
|
|
11310
|
+
dependencies: z333.array(
|
|
11311
|
+
z333.object({
|
|
11312
|
+
packageName: z333.string(),
|
|
11313
|
+
type: z333.literal("npm"),
|
|
11314
|
+
version: z333.string().default("latest")
|
|
11298
11315
|
})
|
|
11299
11316
|
),
|
|
11300
|
-
designSystemId:
|
|
11301
|
-
id:
|
|
11302
|
-
meta:
|
|
11303
|
-
name:
|
|
11304
|
-
description:
|
|
11317
|
+
designSystemId: z333.string(),
|
|
11318
|
+
id: z333.string(),
|
|
11319
|
+
meta: z333.object({
|
|
11320
|
+
name: z333.string(),
|
|
11321
|
+
description: z333.string().optional()
|
|
11305
11322
|
}),
|
|
11306
|
-
name:
|
|
11323
|
+
name: z333.string(),
|
|
11307
11324
|
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
11308
|
-
platform:
|
|
11309
|
-
styling:
|
|
11310
|
-
tailwindConfig:
|
|
11311
|
-
content:
|
|
11312
|
-
version:
|
|
11325
|
+
platform: z333.enum(["React", "Vue", "Angular"]),
|
|
11326
|
+
styling: z333.enum(["CSS", "Tailwind"]),
|
|
11327
|
+
tailwindConfig: z333.object({
|
|
11328
|
+
content: z333.string(),
|
|
11329
|
+
version: z333.string()
|
|
11313
11330
|
}).optional(),
|
|
11314
|
-
createdAt:
|
|
11315
|
-
updatedAt:
|
|
11316
|
-
workspaceId:
|
|
11331
|
+
createdAt: z333.coerce.date(),
|
|
11332
|
+
updatedAt: z333.coerce.date(),
|
|
11333
|
+
workspaceId: z333.string()
|
|
11317
11334
|
});
|
|
11318
11335
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
11319
11336
|
definition: true,
|
|
@@ -11325,13 +11342,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
11325
11342
|
tailwindConfig: true,
|
|
11326
11343
|
styling: true
|
|
11327
11344
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
11328
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id:
|
|
11329
|
-
var DTOForgeProjectContextGetResponse =
|
|
11330
|
-
var DTOForgeProjectContextListResponse =
|
|
11331
|
-
var DTOForgeProjectContextCreateResponse =
|
|
11332
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
11333
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
11334
|
-
ok:
|
|
11345
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z333.string() });
|
|
11346
|
+
var DTOForgeProjectContextGetResponse = z333.object({ context: DTOForgeProjectContext });
|
|
11347
|
+
var DTOForgeProjectContextListResponse = z333.object({ contexts: z333.array(DTOForgeProjectContext) });
|
|
11348
|
+
var DTOForgeProjectContextCreateResponse = z333.object({ context: DTOForgeProjectContext });
|
|
11349
|
+
var DTOForgeProjectContextUpdateResponse = z333.object({ context: DTOForgeProjectContext });
|
|
11350
|
+
var DTOForgeProjectContextRemoveResponse = z333.object({
|
|
11351
|
+
ok: z333.literal(true)
|
|
11335
11352
|
});
|
|
11336
11353
|
|
|
11337
11354
|
// src/api/dto/forge/project-figma-node.ts
|
|
@@ -11339,42 +11356,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
|
11339
11356
|
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
11340
11357
|
|
|
11341
11358
|
// src/api/dto/forge/project-file.ts
|
|
11342
|
-
import { z as
|
|
11343
|
-
var DTOForgeProjectFile =
|
|
11344
|
-
id:
|
|
11345
|
-
name:
|
|
11346
|
-
checksum:
|
|
11347
|
-
pendingUpload:
|
|
11348
|
-
url:
|
|
11349
|
-
size:
|
|
11350
|
-
});
|
|
11351
|
-
var DTOForgeProjectFileListResponse =
|
|
11352
|
-
files:
|
|
11353
|
-
});
|
|
11354
|
-
var DTOForgeProjectFileUploadPayloadItem =
|
|
11355
|
-
size:
|
|
11356
|
-
name:
|
|
11357
|
-
checksum:
|
|
11358
|
-
});
|
|
11359
|
-
var DTOForgeProjectFileUploadPayload =
|
|
11360
|
-
files:
|
|
11361
|
-
});
|
|
11362
|
-
var DTOForgeProjectFileUploadResponse =
|
|
11363
|
-
files:
|
|
11364
|
-
uploadUrls:
|
|
11365
|
-
|
|
11366
|
-
fileId:
|
|
11367
|
-
uploadUrl:
|
|
11359
|
+
import { z as z334 } from "zod";
|
|
11360
|
+
var DTOForgeProjectFile = z334.object({
|
|
11361
|
+
id: z334.string(),
|
|
11362
|
+
name: z334.string(),
|
|
11363
|
+
checksum: z334.string(),
|
|
11364
|
+
pendingUpload: z334.boolean().optional(),
|
|
11365
|
+
url: z334.string(),
|
|
11366
|
+
size: z334.number()
|
|
11367
|
+
});
|
|
11368
|
+
var DTOForgeProjectFileListResponse = z334.object({
|
|
11369
|
+
files: z334.array(DTOForgeProjectFile)
|
|
11370
|
+
});
|
|
11371
|
+
var DTOForgeProjectFileUploadPayloadItem = z334.object({
|
|
11372
|
+
size: z334.number(),
|
|
11373
|
+
name: z334.string(),
|
|
11374
|
+
checksum: z334.string()
|
|
11375
|
+
});
|
|
11376
|
+
var DTOForgeProjectFileUploadPayload = z334.object({
|
|
11377
|
+
files: z334.array(DTOForgeProjectFileUploadPayloadItem)
|
|
11378
|
+
});
|
|
11379
|
+
var DTOForgeProjectFileUploadResponse = z334.object({
|
|
11380
|
+
files: z334.array(DTOForgeProjectFile),
|
|
11381
|
+
uploadUrls: z334.array(
|
|
11382
|
+
z334.object({
|
|
11383
|
+
fileId: z334.string(),
|
|
11384
|
+
uploadUrl: z334.string()
|
|
11368
11385
|
})
|
|
11369
11386
|
)
|
|
11370
11387
|
});
|
|
11371
|
-
var DTOForgeProjectFileUploadFinalizePayload =
|
|
11372
|
-
fileIds:
|
|
11388
|
+
var DTOForgeProjectFileUploadFinalizePayload = z334.object({
|
|
11389
|
+
fileIds: z334.array(z334.string())
|
|
11373
11390
|
});
|
|
11374
|
-
var DTOForgeProjectFileUploadFinalizeResponse =
|
|
11391
|
+
var DTOForgeProjectFileUploadFinalizeResponse = z334.object({ ok: z334.literal(true) });
|
|
11375
11392
|
|
|
11376
11393
|
// src/api/dto/forge/project-invitation.ts
|
|
11377
|
-
import { z as
|
|
11394
|
+
import { z as z335 } from "zod";
|
|
11378
11395
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
11379
11396
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
11380
11397
|
email: true,
|
|
@@ -11384,24 +11401,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
|
11384
11401
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
11385
11402
|
email: true
|
|
11386
11403
|
});
|
|
11387
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
11388
|
-
invitations:
|
|
11404
|
+
var DTOForgeProjectInvitationsListResponse = z335.object({
|
|
11405
|
+
invitations: z335.array(DTOForgeProjectInvitation)
|
|
11389
11406
|
});
|
|
11390
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
11407
|
+
var DTOForgeProjectInvitationGetResponse = z335.object({
|
|
11391
11408
|
invitation: DTOForgeProjectInvitation
|
|
11392
11409
|
});
|
|
11393
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
11410
|
+
var DTOForgeProjectInvitationCreateResponse = z335.object({
|
|
11394
11411
|
invitation: DTOForgeProjectInvitation
|
|
11395
11412
|
});
|
|
11396
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
11413
|
+
var DTOForgeProjectInvitationUpdateResponse = z335.object({
|
|
11397
11414
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
11398
11415
|
});
|
|
11399
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
11400
|
-
ok:
|
|
11416
|
+
var DTOForgeProjectInvitationRemoveResponse = z335.object({
|
|
11417
|
+
ok: z335.literal(true)
|
|
11401
11418
|
});
|
|
11402
11419
|
|
|
11403
11420
|
// src/api/dto/forge/project-iteration-old.ts
|
|
11404
|
-
import { z as
|
|
11421
|
+
import { z as z336 } from "zod";
|
|
11405
11422
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
11406
11423
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
11407
11424
|
artifacts: true,
|
|
@@ -11412,7 +11429,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
11412
11429
|
messages: DTOForgeIterationMessage.array(),
|
|
11413
11430
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
11414
11431
|
});
|
|
11415
|
-
var DTOGetForgeProjectIterationResponse =
|
|
11432
|
+
var DTOGetForgeProjectIterationResponse = z336.object({
|
|
11416
11433
|
iteration: DTOForgeProjectIteration.nullable()
|
|
11417
11434
|
});
|
|
11418
11435
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -11422,20 +11439,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
11422
11439
|
mergeMeta: true,
|
|
11423
11440
|
createdAt: true
|
|
11424
11441
|
});
|
|
11425
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
11426
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
11442
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z336.string() });
|
|
11443
|
+
var DTOCreateForgeProjectIterationResponse = z336.object({
|
|
11427
11444
|
iteration: DTOForgeProjectIteration
|
|
11428
11445
|
});
|
|
11429
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
11446
|
+
var DTOUpdateForgeProjectIterationResponse = z336.object({
|
|
11430
11447
|
iteration: DTOForgeProjectIteration.nullable()
|
|
11431
11448
|
});
|
|
11432
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
11433
|
-
ok:
|
|
11449
|
+
var DTODeleteForgeProjectIterationResponse = z336.object({
|
|
11450
|
+
ok: z336.literal(true)
|
|
11434
11451
|
});
|
|
11435
|
-
var DTOForgeProjectIterationListResponse =
|
|
11452
|
+
var DTOForgeProjectIterationListResponse = z336.object({ iterations: z336.array(DTOForgeProjectIteration) });
|
|
11436
11453
|
|
|
11437
11454
|
// src/api/dto/forge/project-member.ts
|
|
11438
|
-
import { z as
|
|
11455
|
+
import { z as z337 } from "zod";
|
|
11439
11456
|
|
|
11440
11457
|
// src/utils/figma.ts
|
|
11441
11458
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
@@ -11618,7 +11635,7 @@ var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
|
11618
11635
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
11619
11636
|
user: DTOUser,
|
|
11620
11637
|
effectiveRole: DTOForgeProjectMemberRole,
|
|
11621
|
-
isDeactivated:
|
|
11638
|
+
isDeactivated: z337.boolean()
|
|
11622
11639
|
});
|
|
11623
11640
|
var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
|
|
11624
11641
|
userId: true,
|
|
@@ -11628,93 +11645,93 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
|
11628
11645
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
11629
11646
|
userId: true
|
|
11630
11647
|
});
|
|
11631
|
-
var DTOForgeProjectMemberListQuery =
|
|
11648
|
+
var DTOForgeProjectMemberListQuery = z337.object({
|
|
11632
11649
|
includeImplicitMembers: zodQueryBoolean().optional()
|
|
11633
11650
|
});
|
|
11634
|
-
var DTOForgeProjectMembersListResponse =
|
|
11635
|
-
members:
|
|
11636
|
-
invitations:
|
|
11651
|
+
var DTOForgeProjectMembersListResponse = z337.object({
|
|
11652
|
+
members: z337.array(DTOForgeProjectMember),
|
|
11653
|
+
invitations: z337.array(DTOForgeProjectInvitation)
|
|
11637
11654
|
});
|
|
11638
|
-
var DTOForgeProjectMemberGetResponse =
|
|
11655
|
+
var DTOForgeProjectMemberGetResponse = z337.object({
|
|
11639
11656
|
member: DTOForgeProjectMember
|
|
11640
11657
|
});
|
|
11641
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
11658
|
+
var DTOForgeProjectMemberCreateResponse = z337.object({
|
|
11642
11659
|
member: DTOForgeProjectMember
|
|
11643
11660
|
});
|
|
11644
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
11661
|
+
var DTOForgeProjectMemberUpdateResponse = z337.object({
|
|
11645
11662
|
member: DTOForgeProjectMember.nullable()
|
|
11646
11663
|
});
|
|
11647
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
11648
|
-
ok:
|
|
11664
|
+
var DTOForgeProjectMemberRemoveResponse = z337.object({
|
|
11665
|
+
ok: z337.literal(true)
|
|
11649
11666
|
});
|
|
11650
|
-
var DTOAddMembersToForgeProject =
|
|
11667
|
+
var DTOAddMembersToForgeProject = z337.object({
|
|
11651
11668
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1),
|
|
11652
|
-
featureId:
|
|
11669
|
+
featureId: z337.string().optional()
|
|
11653
11670
|
});
|
|
11654
11671
|
|
|
11655
11672
|
// src/api/dto/forge/project-room.ts
|
|
11656
|
-
import { z as
|
|
11657
|
-
var DTOForgeProjectRoom =
|
|
11658
|
-
id:
|
|
11673
|
+
import { z as z338 } from "zod";
|
|
11674
|
+
var DTOForgeProjectRoom = z338.object({
|
|
11675
|
+
id: z338.string()
|
|
11659
11676
|
});
|
|
11660
|
-
var DTOForgeProjectRoomResponse =
|
|
11677
|
+
var DTOForgeProjectRoomResponse = z338.object({
|
|
11661
11678
|
room: DTOForgeProjectRoom
|
|
11662
11679
|
});
|
|
11663
11680
|
|
|
11664
11681
|
// src/api/dto/forge/project.ts
|
|
11665
|
-
import { z as
|
|
11682
|
+
import { z as z339 } from "zod";
|
|
11666
11683
|
var DTOForgeProjectRole = ForgeProjectRole;
|
|
11667
11684
|
var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
|
|
11668
11685
|
var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
|
|
11669
|
-
var DTOForgeProjectDocumentPreview =
|
|
11670
|
-
id:
|
|
11671
|
-
title:
|
|
11686
|
+
var DTOForgeProjectDocumentPreview = z339.object({
|
|
11687
|
+
id: z339.string(),
|
|
11688
|
+
title: z339.string(),
|
|
11672
11689
|
thumbnail: DTOFileReference.optional(),
|
|
11673
|
-
createdAt:
|
|
11674
|
-
updatedAt:
|
|
11690
|
+
createdAt: z339.string(),
|
|
11691
|
+
updatedAt: z339.string()
|
|
11675
11692
|
});
|
|
11676
|
-
var DTOForgeProjectFeaturePreview =
|
|
11677
|
-
id:
|
|
11678
|
-
name:
|
|
11693
|
+
var DTOForgeProjectFeaturePreview = z339.object({
|
|
11694
|
+
id: z339.string(),
|
|
11695
|
+
name: z339.string(),
|
|
11679
11696
|
thumbnail: DTOFileReference.optional(),
|
|
11680
|
-
isPublished:
|
|
11681
|
-
isArchived:
|
|
11682
|
-
createdAt:
|
|
11683
|
-
updatedAt:
|
|
11684
|
-
});
|
|
11685
|
-
var DTOForgeProject =
|
|
11686
|
-
id:
|
|
11687
|
-
workspaceId:
|
|
11688
|
-
projectContextId:
|
|
11689
|
-
name:
|
|
11690
|
-
description:
|
|
11691
|
-
instruction:
|
|
11692
|
-
tags:
|
|
11697
|
+
isPublished: z339.boolean().optional(),
|
|
11698
|
+
isArchived: z339.boolean().optional(),
|
|
11699
|
+
createdAt: z339.string(),
|
|
11700
|
+
updatedAt: z339.string()
|
|
11701
|
+
});
|
|
11702
|
+
var DTOForgeProject = z339.object({
|
|
11703
|
+
id: z339.string(),
|
|
11704
|
+
workspaceId: z339.string(),
|
|
11705
|
+
projectContextId: z339.string(),
|
|
11706
|
+
name: z339.string(),
|
|
11707
|
+
description: z339.string().optional(),
|
|
11708
|
+
instruction: z339.string().nullable(),
|
|
11709
|
+
tags: z339.array(z339.string()).default([]),
|
|
11693
11710
|
accessMode: DTOForgeProjectAccessMode,
|
|
11694
11711
|
defaultRole: DTOForgeProjectDefaultRole,
|
|
11695
|
-
isArchived:
|
|
11696
|
-
emoji:
|
|
11697
|
-
tokenThemeSetId:
|
|
11698
|
-
createdAt:
|
|
11699
|
-
createdByUserId:
|
|
11700
|
-
lastUserActivityAt:
|
|
11701
|
-
updatedAt:
|
|
11712
|
+
isArchived: z339.boolean(),
|
|
11713
|
+
emoji: z339.string().optional(),
|
|
11714
|
+
tokenThemeSetId: z339.string().optional(),
|
|
11715
|
+
createdAt: z339.coerce.date(),
|
|
11716
|
+
createdByUserId: z339.string().optional(),
|
|
11717
|
+
lastUserActivityAt: z339.coerce.date().optional(),
|
|
11718
|
+
updatedAt: z339.coerce.date(),
|
|
11702
11719
|
documents: DTOForgeProjectDocumentPreview.array(),
|
|
11703
11720
|
features: DTOForgeProjectFeaturePreview.array(),
|
|
11704
11721
|
/** @deprecated use `projectContextId` */
|
|
11705
|
-
fpContextId:
|
|
11722
|
+
fpContextId: z339.string(),
|
|
11706
11723
|
/** @deprecated use `name` and `description` properties on project */
|
|
11707
|
-
meta:
|
|
11708
|
-
name:
|
|
11709
|
-
description:
|
|
11724
|
+
meta: z339.object({
|
|
11725
|
+
name: z339.string(),
|
|
11726
|
+
description: z339.string().optional()
|
|
11710
11727
|
}),
|
|
11711
11728
|
/** @deprecated use features.length */
|
|
11712
|
-
numberOfFeatures:
|
|
11729
|
+
numberOfFeatures: z339.number().int().nonnegative(),
|
|
11713
11730
|
/** @deprecated use documents.length */
|
|
11714
|
-
numberOfDocuments:
|
|
11731
|
+
numberOfDocuments: z339.number().int().nonnegative().optional(),
|
|
11715
11732
|
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
11716
11733
|
context: DTOForgeProjectContextV2.optional(),
|
|
11717
|
-
liveblocksRoomId:
|
|
11734
|
+
liveblocksRoomId: z339.string().optional()
|
|
11718
11735
|
});
|
|
11719
11736
|
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
11720
11737
|
name: true,
|
|
@@ -11727,8 +11744,8 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
|
11727
11744
|
/** @deprecated use `name` and `description` properties on project */
|
|
11728
11745
|
meta: DTOForgeProject.shape.meta.optional(),
|
|
11729
11746
|
/** @deprecated use `projectContextId` */
|
|
11730
|
-
fpContextId:
|
|
11731
|
-
projectContextId:
|
|
11747
|
+
fpContextId: z339.string().optional(),
|
|
11748
|
+
projectContextId: z339.string().optional(),
|
|
11732
11749
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
11733
11750
|
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
11734
11751
|
initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
|
|
@@ -11736,136 +11753,136 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
|
11736
11753
|
defaultRole: DTOForgeProjectDefaultRole.optional()
|
|
11737
11754
|
});
|
|
11738
11755
|
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
11739
|
-
id:
|
|
11740
|
-
isArchived:
|
|
11756
|
+
id: z339.string(),
|
|
11757
|
+
isArchived: z339.boolean().optional()
|
|
11741
11758
|
});
|
|
11742
|
-
var DTOForgeProjectListResponse =
|
|
11743
|
-
projects:
|
|
11759
|
+
var DTOForgeProjectListResponse = z339.object({
|
|
11760
|
+
projects: z339.array(
|
|
11744
11761
|
DTOForgeProject.extend({
|
|
11745
11762
|
effectiveRole: DTOForgeProjectRole
|
|
11746
11763
|
})
|
|
11747
11764
|
)
|
|
11748
11765
|
});
|
|
11749
|
-
var DTOForgeProjectResponse =
|
|
11766
|
+
var DTOForgeProjectResponse = z339.object({
|
|
11750
11767
|
project: DTOForgeProject.extend({
|
|
11751
11768
|
effectiveRole: DTOForgeProjectRole
|
|
11752
11769
|
})
|
|
11753
11770
|
});
|
|
11754
11771
|
|
|
11755
11772
|
// src/api/dto/forge/relation.ts
|
|
11756
|
-
import
|
|
11773
|
+
import z340 from "zod";
|
|
11757
11774
|
var DTOForgeRelationType = ForgeRelationType;
|
|
11758
11775
|
var DTOForgeRelation = ForgeRelation;
|
|
11759
11776
|
var DTOForgeRelationCreate = DTOForgeRelation.omit({ id: true, createdAt: true });
|
|
11760
|
-
var DTOForgeRelationDelete =
|
|
11761
|
-
sourceItemId:
|
|
11762
|
-
targetItemId:
|
|
11777
|
+
var DTOForgeRelationDelete = z340.object({
|
|
11778
|
+
sourceItemId: z340.string().uuid(),
|
|
11779
|
+
targetItemId: z340.string().uuid()
|
|
11763
11780
|
});
|
|
11764
|
-
var DTOForgeRelationListInput =
|
|
11765
|
-
projectId:
|
|
11781
|
+
var DTOForgeRelationListInput = z340.object({
|
|
11782
|
+
projectId: z340.string()
|
|
11766
11783
|
});
|
|
11767
|
-
var DTOForgeRelationListResponse =
|
|
11768
|
-
relations:
|
|
11784
|
+
var DTOForgeRelationListResponse = z340.object({
|
|
11785
|
+
relations: z340.array(DTOForgeRelation)
|
|
11769
11786
|
});
|
|
11770
|
-
var DTOForgeEntity =
|
|
11771
|
-
id:
|
|
11787
|
+
var DTOForgeEntity = z340.object({
|
|
11788
|
+
id: z340.string().uuid(),
|
|
11772
11789
|
type: DTOForgeRelationType
|
|
11773
11790
|
});
|
|
11774
11791
|
|
|
11775
11792
|
// src/api/dto/forge/threads.ts
|
|
11776
|
-
import { z as
|
|
11793
|
+
import { z as z341 } from "zod";
|
|
11777
11794
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
11778
11795
|
var DTOForgeChatThread = ForgeChatThread;
|
|
11779
11796
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
11780
11797
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
11781
|
-
var DTOForgeChatThreadCreateInput =
|
|
11782
|
-
title:
|
|
11798
|
+
var DTOForgeChatThreadCreateInput = z341.object({
|
|
11799
|
+
title: z341.string().optional()
|
|
11783
11800
|
});
|
|
11784
|
-
var DTOForgeChatThreadCreateResponse =
|
|
11801
|
+
var DTOForgeChatThreadCreateResponse = z341.object({
|
|
11785
11802
|
thread: DTOForgeChatThread
|
|
11786
11803
|
});
|
|
11787
|
-
var DTOForgeChatThreadUpdateInput =
|
|
11788
|
-
title:
|
|
11804
|
+
var DTOForgeChatThreadUpdateInput = z341.object({
|
|
11805
|
+
title: z341.string()
|
|
11789
11806
|
});
|
|
11790
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
11807
|
+
var DTOForgeChatThreadUpdateResponse = z341.object({
|
|
11791
11808
|
thread: DTOForgeChatThread
|
|
11792
11809
|
});
|
|
11793
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
11794
|
-
success:
|
|
11810
|
+
var DTOForgeChatThreadDeleteResponse = z341.object({
|
|
11811
|
+
success: z341.boolean()
|
|
11795
11812
|
});
|
|
11796
|
-
var DTOForgeChatThreadListQuery =
|
|
11797
|
-
limit:
|
|
11798
|
-
offset:
|
|
11813
|
+
var DTOForgeChatThreadListQuery = z341.object({
|
|
11814
|
+
limit: z341.number().optional(),
|
|
11815
|
+
offset: z341.number().optional()
|
|
11799
11816
|
});
|
|
11800
|
-
var DTOForgeChatThreadListResponse =
|
|
11801
|
-
threads:
|
|
11802
|
-
pagination:
|
|
11803
|
-
offset:
|
|
11804
|
-
limit:
|
|
11805
|
-
total:
|
|
11817
|
+
var DTOForgeChatThreadListResponse = z341.object({
|
|
11818
|
+
threads: z341.array(DTOForgeChatThread),
|
|
11819
|
+
pagination: z341.object({
|
|
11820
|
+
offset: z341.number(),
|
|
11821
|
+
limit: z341.number(),
|
|
11822
|
+
total: z341.number()
|
|
11806
11823
|
})
|
|
11807
11824
|
});
|
|
11808
|
-
var DTOForgeChatMessageCreateInput =
|
|
11809
|
-
payload:
|
|
11825
|
+
var DTOForgeChatMessageCreateInput = z341.object({
|
|
11826
|
+
payload: z341.string(),
|
|
11810
11827
|
sender: DTOForgeChatMessageSender.optional()
|
|
11811
11828
|
});
|
|
11812
|
-
var DTOForgeChatMessageCreateResponse =
|
|
11829
|
+
var DTOForgeChatMessageCreateResponse = z341.object({
|
|
11813
11830
|
message: DTOForgeChatMessage
|
|
11814
11831
|
});
|
|
11815
|
-
var DTOForgeChatMessageListQuery =
|
|
11816
|
-
limit:
|
|
11817
|
-
offset:
|
|
11832
|
+
var DTOForgeChatMessageListQuery = z341.object({
|
|
11833
|
+
limit: z341.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
11834
|
+
offset: z341.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
11818
11835
|
});
|
|
11819
|
-
var DTOForgeChatMessageListResponse =
|
|
11820
|
-
messages:
|
|
11821
|
-
totalCount:
|
|
11822
|
-
hasMore:
|
|
11836
|
+
var DTOForgeChatMessageListResponse = z341.object({
|
|
11837
|
+
messages: z341.array(DTOForgeChatMessage),
|
|
11838
|
+
totalCount: z341.number(),
|
|
11839
|
+
hasMore: z341.boolean()
|
|
11823
11840
|
});
|
|
11824
|
-
var DTOForgeChatExportResponse =
|
|
11825
|
-
csvDownloadUrl:
|
|
11841
|
+
var DTOForgeChatExportResponse = z341.object({
|
|
11842
|
+
csvDownloadUrl: z341.string().nullable()
|
|
11826
11843
|
});
|
|
11827
|
-
var DTOForgeChatMessageScoreInput =
|
|
11828
|
-
messageId:
|
|
11829
|
-
name:
|
|
11830
|
-
value:
|
|
11831
|
-
categoryName:
|
|
11832
|
-
reason:
|
|
11844
|
+
var DTOForgeChatMessageScoreInput = z341.object({
|
|
11845
|
+
messageId: z341.string(),
|
|
11846
|
+
name: z341.string(),
|
|
11847
|
+
value: z341.number(),
|
|
11848
|
+
categoryName: z341.string().optional(),
|
|
11849
|
+
reason: z341.string().optional()
|
|
11833
11850
|
});
|
|
11834
|
-
var DTOForgeChatMessageTagInput =
|
|
11835
|
-
messageId:
|
|
11836
|
-
tags:
|
|
11851
|
+
var DTOForgeChatMessageTagInput = z341.object({
|
|
11852
|
+
messageId: z341.string(),
|
|
11853
|
+
tags: z341.array(z341.string())
|
|
11837
11854
|
});
|
|
11838
|
-
var DTOForgeChatMessageScoreRequest =
|
|
11855
|
+
var DTOForgeChatMessageScoreRequest = z341.object({
|
|
11839
11856
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
11840
11857
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
11841
11858
|
});
|
|
11842
11859
|
|
|
11843
11860
|
// src/api/dto/events/forge-project.ts
|
|
11844
|
-
var DTOForgeProjectMembersCreated =
|
|
11845
|
-
type:
|
|
11846
|
-
data:
|
|
11861
|
+
var DTOForgeProjectMembersCreated = z342.object({
|
|
11862
|
+
type: z342.literal("ProjectMembersCreated"),
|
|
11863
|
+
data: z342.array(DTOForgeProjectMember)
|
|
11847
11864
|
});
|
|
11848
|
-
var DTOForgeProjectMemberUpdated =
|
|
11849
|
-
type:
|
|
11865
|
+
var DTOForgeProjectMemberUpdated = z342.object({
|
|
11866
|
+
type: z342.literal("ProjectMemberUpdated"),
|
|
11850
11867
|
data: DTOForgeProjectMember
|
|
11851
11868
|
});
|
|
11852
|
-
var DTOForgeProjectMemberDeleted =
|
|
11853
|
-
type:
|
|
11869
|
+
var DTOForgeProjectMemberDeleted = z342.object({
|
|
11870
|
+
type: z342.literal("ProjectMemberDeleted"),
|
|
11854
11871
|
data: DTOForgeProjectMember.pick({ userId: true })
|
|
11855
11872
|
});
|
|
11856
|
-
var DTOForgeProjectIterationTagSet =
|
|
11857
|
-
type:
|
|
11873
|
+
var DTOForgeProjectIterationTagSet = z342.object({
|
|
11874
|
+
type: z342.literal("ProjectIterationTagSet"),
|
|
11858
11875
|
data: DTOFeatureIterationTag
|
|
11859
11876
|
});
|
|
11860
|
-
var DTOForgeProjectFeatureSandboxUpdated =
|
|
11861
|
-
type:
|
|
11877
|
+
var DTOForgeProjectFeatureSandboxUpdated = z342.object({
|
|
11878
|
+
type: z342.literal("ProjectFeatureSandboxUpdated"),
|
|
11862
11879
|
data: DTOFeatureSandbox
|
|
11863
11880
|
});
|
|
11864
|
-
var DTOForgeProjectIterationUpdated =
|
|
11865
|
-
type:
|
|
11881
|
+
var DTOForgeProjectIterationUpdated = z342.object({
|
|
11882
|
+
type: z342.literal("ProjectIterationUpdated"),
|
|
11866
11883
|
data: DTOFeatureIteration.extend({ featureId: Id })
|
|
11867
11884
|
});
|
|
11868
|
-
var DTOForgeProjectRoomEvent =
|
|
11885
|
+
var DTOForgeProjectRoomEvent = z342.discriminatedUnion("type", [
|
|
11869
11886
|
DTOForgeProjectMembersCreated,
|
|
11870
11887
|
DTOForgeProjectMemberUpdated,
|
|
11871
11888
|
DTOForgeProjectMemberDeleted,
|
|
@@ -11875,50 +11892,50 @@ var DTOForgeProjectRoomEvent = z341.discriminatedUnion("type", [
|
|
|
11875
11892
|
]);
|
|
11876
11893
|
|
|
11877
11894
|
// src/api/dto/events/workspace.ts
|
|
11878
|
-
import
|
|
11879
|
-
var DTOForgeProjectCreated =
|
|
11880
|
-
type:
|
|
11881
|
-
data:
|
|
11895
|
+
import z343 from "zod";
|
|
11896
|
+
var DTOForgeProjectCreated = z343.object({
|
|
11897
|
+
type: z343.literal("ProjectCreated"),
|
|
11898
|
+
data: z343.object({ id: z343.string() })
|
|
11882
11899
|
});
|
|
11883
|
-
var DTOForgeProjectUpdated =
|
|
11884
|
-
type:
|
|
11885
|
-
data:
|
|
11900
|
+
var DTOForgeProjectUpdated = z343.object({
|
|
11901
|
+
type: z343.literal("ProjectUpdated"),
|
|
11902
|
+
data: z343.object({ id: z343.string() })
|
|
11886
11903
|
});
|
|
11887
|
-
var DTOForgeProjectContextCreated =
|
|
11888
|
-
type:
|
|
11904
|
+
var DTOForgeProjectContextCreated = z343.object({
|
|
11905
|
+
type: z343.literal("ProjectContextCreated"),
|
|
11889
11906
|
data: DTOForgeProjectContextV2
|
|
11890
11907
|
});
|
|
11891
|
-
var DTOForgeProjectContextUpdated =
|
|
11892
|
-
type:
|
|
11908
|
+
var DTOForgeProjectContextUpdated = z343.object({
|
|
11909
|
+
type: z343.literal("ProjectContextUpdated"),
|
|
11893
11910
|
data: DTOForgeProjectContextV2
|
|
11894
11911
|
});
|
|
11895
|
-
var DTOForgeProjectContextDeleted =
|
|
11896
|
-
type:
|
|
11912
|
+
var DTOForgeProjectContextDeleted = z343.object({
|
|
11913
|
+
type: z343.literal("ProjectContextDeleted"),
|
|
11897
11914
|
data: DTOForgeProjectContextV2.pick({ id: true })
|
|
11898
11915
|
});
|
|
11899
|
-
var DTOSandboxTemplateVersionCreated =
|
|
11900
|
-
type:
|
|
11901
|
-
data:
|
|
11902
|
-
templateId:
|
|
11903
|
-
version:
|
|
11904
|
-
designSystemId:
|
|
11916
|
+
var DTOSandboxTemplateVersionCreated = z343.object({
|
|
11917
|
+
type: z343.literal("SandboxTemplateVersionCreated"),
|
|
11918
|
+
data: z343.object({
|
|
11919
|
+
templateId: z343.string(),
|
|
11920
|
+
version: z343.string(),
|
|
11921
|
+
designSystemId: z343.string()
|
|
11905
11922
|
})
|
|
11906
11923
|
});
|
|
11907
|
-
var DTOSandboxTemplateBuildCreated =
|
|
11908
|
-
type:
|
|
11909
|
-
data:
|
|
11910
|
-
buildId:
|
|
11911
|
-
templateId:
|
|
11924
|
+
var DTOSandboxTemplateBuildCreated = z343.object({
|
|
11925
|
+
type: z343.literal("SandboxTemplateBuildCreated"),
|
|
11926
|
+
data: z343.object({
|
|
11927
|
+
buildId: z343.string(),
|
|
11928
|
+
templateId: z343.string().optional()
|
|
11912
11929
|
})
|
|
11913
11930
|
});
|
|
11914
|
-
var DTOSandboxTemplateBuildFinished =
|
|
11915
|
-
type:
|
|
11916
|
-
data:
|
|
11917
|
-
buildId:
|
|
11918
|
-
templateId:
|
|
11931
|
+
var DTOSandboxTemplateBuildFinished = z343.object({
|
|
11932
|
+
type: z343.literal("SandboxTemplateBuildFinished"),
|
|
11933
|
+
data: z343.object({
|
|
11934
|
+
buildId: z343.string(),
|
|
11935
|
+
templateId: z343.string().optional()
|
|
11919
11936
|
})
|
|
11920
11937
|
});
|
|
11921
|
-
var DTOWorkspaceRoomEvent =
|
|
11938
|
+
var DTOWorkspaceRoomEvent = z343.discriminatedUnion("type", [
|
|
11922
11939
|
DTOForgeProjectUpdated,
|
|
11923
11940
|
DTOForgeProjectCreated,
|
|
11924
11941
|
DTOForgeProjectContextCreated,
|
|
@@ -11930,315 +11947,315 @@ var DTOWorkspaceRoomEvent = z342.discriminatedUnion("type", [
|
|
|
11930
11947
|
]);
|
|
11931
11948
|
|
|
11932
11949
|
// src/api/dto/figma-components/assets/download.ts
|
|
11933
|
-
import { z as
|
|
11934
|
-
var DTOAssetRenderConfiguration =
|
|
11935
|
-
prefix:
|
|
11936
|
-
suffix:
|
|
11937
|
-
scale:
|
|
11938
|
-
format:
|
|
11939
|
-
});
|
|
11940
|
-
var DTORenderedAssetFile =
|
|
11941
|
-
assetId:
|
|
11942
|
-
fileName:
|
|
11943
|
-
sourceUrl:
|
|
11950
|
+
import { z as z344 } from "zod";
|
|
11951
|
+
var DTOAssetRenderConfiguration = z344.object({
|
|
11952
|
+
prefix: z344.string().optional(),
|
|
11953
|
+
suffix: z344.string().optional(),
|
|
11954
|
+
scale: z344.enum(["x1", "x2", "x3", "x4"]),
|
|
11955
|
+
format: z344.enum(["png", "pdf", "svg"])
|
|
11956
|
+
});
|
|
11957
|
+
var DTORenderedAssetFile = z344.object({
|
|
11958
|
+
assetId: z344.string(),
|
|
11959
|
+
fileName: z344.string(),
|
|
11960
|
+
sourceUrl: z344.string(),
|
|
11944
11961
|
settings: DTOAssetRenderConfiguration,
|
|
11945
|
-
originalName:
|
|
11962
|
+
originalName: z344.string()
|
|
11946
11963
|
});
|
|
11947
|
-
var DTODownloadAssetsRequest =
|
|
11948
|
-
persistentIds:
|
|
11964
|
+
var DTODownloadAssetsRequest = z344.object({
|
|
11965
|
+
persistentIds: z344.array(z344.string().uuid()).optional(),
|
|
11949
11966
|
settings: DTOAssetRenderConfiguration.array()
|
|
11950
11967
|
});
|
|
11951
|
-
var DTODownloadAssetsResponse =
|
|
11968
|
+
var DTODownloadAssetsResponse = z344.object({
|
|
11952
11969
|
items: DTORenderedAssetFile.array()
|
|
11953
11970
|
});
|
|
11954
11971
|
|
|
11955
11972
|
// src/api/dto/figma-exporter/figma-node.ts
|
|
11956
|
-
import { z as
|
|
11957
|
-
var DTOFigmaExportNodeFormat =
|
|
11958
|
-
var DTOFigmaExportNodeConfiguration =
|
|
11973
|
+
import { z as z345 } from "zod";
|
|
11974
|
+
var DTOFigmaExportNodeFormat = z345.enum(["HTML", "JSON"]);
|
|
11975
|
+
var DTOFigmaExportNodeConfiguration = z345.object({
|
|
11959
11976
|
format: DTOFigmaExportNodeFormat,
|
|
11960
|
-
minifyOutput:
|
|
11961
|
-
customFontUrls:
|
|
11977
|
+
minifyOutput: z345.boolean().optional(),
|
|
11978
|
+
customFontUrls: z345.string().array().optional()
|
|
11962
11979
|
});
|
|
11963
|
-
var DTOFigmaExportNodePayload =
|
|
11964
|
-
designSystemId:
|
|
11965
|
-
figmaUrl:
|
|
11980
|
+
var DTOFigmaExportNodePayload = z345.object({
|
|
11981
|
+
designSystemId: z345.string(),
|
|
11982
|
+
figmaUrl: z345.string(),
|
|
11966
11983
|
configuration: DTOFigmaExportNodeConfiguration
|
|
11967
11984
|
});
|
|
11968
|
-
var DTOFigmaExportNodeResponse =
|
|
11985
|
+
var DTOFigmaExportNodeResponse = z345.object({
|
|
11969
11986
|
file: DTOFile,
|
|
11970
11987
|
// TODO (jovanblazek): Remove sceneNodes from response when done with development
|
|
11971
|
-
scene:
|
|
11988
|
+
scene: z345.any().optional()
|
|
11972
11989
|
});
|
|
11973
11990
|
|
|
11974
11991
|
// src/api/dto/liveblocks/auth-response.ts
|
|
11975
|
-
import { z as
|
|
11976
|
-
var DTOLiveblocksAuthResponse =
|
|
11977
|
-
token:
|
|
11992
|
+
import { z as z346 } from "zod";
|
|
11993
|
+
var DTOLiveblocksAuthResponse = z346.object({
|
|
11994
|
+
token: z346.string()
|
|
11978
11995
|
});
|
|
11979
11996
|
|
|
11980
11997
|
// src/api/dto/mcp/stream.ts
|
|
11981
|
-
import
|
|
11982
|
-
var DTOMCPStream =
|
|
11983
|
-
id:
|
|
11984
|
-
projectFeatureId:
|
|
11985
|
-
projectDocumentId:
|
|
11998
|
+
import z347 from "zod";
|
|
11999
|
+
var DTOMCPStream = z347.object({
|
|
12000
|
+
id: z347.string().uuid(),
|
|
12001
|
+
projectFeatureId: z347.string().uuid().optional(),
|
|
12002
|
+
projectDocumentId: z347.string().uuid().optional()
|
|
11986
12003
|
});
|
|
11987
12004
|
var DTOMCPStreamUpdateInput = DTOMCPStream.omit({ id: true });
|
|
11988
|
-
var DTOMCPStreamResponse =
|
|
12005
|
+
var DTOMCPStreamResponse = z347.object({
|
|
11989
12006
|
stream: DTOMCPStream
|
|
11990
12007
|
});
|
|
11991
12008
|
|
|
11992
12009
|
// src/api/dto/notifications/notifications.ts
|
|
11993
|
-
import { z as
|
|
11994
|
-
var DTONotificationChatMentionPayload =
|
|
11995
|
-
messageAuthorId:
|
|
11996
|
-
messageText:
|
|
11997
|
-
messageId:
|
|
11998
|
-
parentMessageId:
|
|
11999
|
-
workspaceId:
|
|
12000
|
-
projectId:
|
|
12001
|
-
subjectType:
|
|
12002
|
-
threadSubjectId:
|
|
12003
|
-
subjectName:
|
|
12004
|
-
});
|
|
12005
|
-
var DTONotificationProjectInvitationPayload =
|
|
12006
|
-
workspaceId:
|
|
12007
|
-
projectId:
|
|
12008
|
-
projectTitle:
|
|
12009
|
-
invitedByUserId:
|
|
12010
|
-
invitationRole:
|
|
12011
|
-
featureId:
|
|
12012
|
-
});
|
|
12013
|
-
var DTONotificationProjectDocumentCommentPayload =
|
|
12014
|
-
documentId:
|
|
12015
|
-
entityTitle:
|
|
12016
|
-
projectId:
|
|
12017
|
-
workspaceId:
|
|
12018
|
-
threadId:
|
|
12019
|
-
commentId:
|
|
12020
|
-
commentCreatedAt:
|
|
12021
|
-
commentAuthorId:
|
|
12022
|
-
commentBody:
|
|
12023
|
-
});
|
|
12024
|
-
var DTONotificationBase =
|
|
12025
|
-
userId:
|
|
12026
|
-
subjectId:
|
|
12027
|
-
roomId:
|
|
12028
|
-
workspaceId:
|
|
12029
|
-
});
|
|
12030
|
-
var DTONotificationCreateInput =
|
|
12031
|
-
|
|
12032
|
-
type:
|
|
12010
|
+
import { z as z348 } from "zod";
|
|
12011
|
+
var DTONotificationChatMentionPayload = z348.object({
|
|
12012
|
+
messageAuthorId: z348.string(),
|
|
12013
|
+
messageText: z348.string(),
|
|
12014
|
+
messageId: z348.string(),
|
|
12015
|
+
parentMessageId: z348.string().optional(),
|
|
12016
|
+
workspaceId: z348.string(),
|
|
12017
|
+
projectId: z348.string(),
|
|
12018
|
+
subjectType: z348.string(),
|
|
12019
|
+
threadSubjectId: z348.string(),
|
|
12020
|
+
subjectName: z348.string()
|
|
12021
|
+
});
|
|
12022
|
+
var DTONotificationProjectInvitationPayload = z348.object({
|
|
12023
|
+
workspaceId: z348.string(),
|
|
12024
|
+
projectId: z348.string(),
|
|
12025
|
+
projectTitle: z348.string(),
|
|
12026
|
+
invitedByUserId: z348.string(),
|
|
12027
|
+
invitationRole: z348.string(),
|
|
12028
|
+
featureId: z348.string().optional()
|
|
12029
|
+
});
|
|
12030
|
+
var DTONotificationProjectDocumentCommentPayload = z348.object({
|
|
12031
|
+
documentId: z348.string(),
|
|
12032
|
+
entityTitle: z348.string(),
|
|
12033
|
+
projectId: z348.string(),
|
|
12034
|
+
workspaceId: z348.string(),
|
|
12035
|
+
threadId: z348.string(),
|
|
12036
|
+
commentId: z348.string(),
|
|
12037
|
+
commentCreatedAt: z348.string(),
|
|
12038
|
+
commentAuthorId: z348.string(),
|
|
12039
|
+
commentBody: z348.string()
|
|
12040
|
+
});
|
|
12041
|
+
var DTONotificationBase = z348.object({
|
|
12042
|
+
userId: z348.string(),
|
|
12043
|
+
subjectId: z348.string(),
|
|
12044
|
+
roomId: z348.string().optional(),
|
|
12045
|
+
workspaceId: z348.string()
|
|
12046
|
+
});
|
|
12047
|
+
var DTONotificationCreateInput = z348.discriminatedUnion("type", [
|
|
12048
|
+
z348.object({
|
|
12049
|
+
type: z348.literal(DTONotificationType.enum.ChatMention),
|
|
12033
12050
|
activityData: DTONotificationChatMentionPayload
|
|
12034
12051
|
}),
|
|
12035
|
-
|
|
12036
|
-
type:
|
|
12052
|
+
z348.object({
|
|
12053
|
+
type: z348.literal(DTONotificationType.enum.ProjectInvitation),
|
|
12037
12054
|
activityData: DTONotificationProjectInvitationPayload
|
|
12038
12055
|
}),
|
|
12039
|
-
|
|
12040
|
-
type:
|
|
12056
|
+
z348.object({
|
|
12057
|
+
type: z348.literal(DTONotificationType.enum.ProjectDocumentComment),
|
|
12041
12058
|
activityData: DTONotificationProjectDocumentCommentPayload
|
|
12042
12059
|
})
|
|
12043
12060
|
]).and(DTONotificationBase);
|
|
12044
12061
|
|
|
12045
12062
|
// src/api/dto/portal/portal-settings.ts
|
|
12046
|
-
import { z as
|
|
12063
|
+
import { z as z349 } from "zod";
|
|
12047
12064
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
12048
12065
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
12049
12066
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
12050
12067
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
12051
|
-
var DTOPortalSettings =
|
|
12052
|
-
id:
|
|
12053
|
-
workspaceId:
|
|
12054
|
-
enabledDesignSystemIds:
|
|
12055
|
-
enabledBrandPersistentIds:
|
|
12068
|
+
var DTOPortalSettings = z349.object({
|
|
12069
|
+
id: z349.string(),
|
|
12070
|
+
workspaceId: z349.string(),
|
|
12071
|
+
enabledDesignSystemIds: z349.array(z349.string()),
|
|
12072
|
+
enabledBrandPersistentIds: z349.array(z349.string()),
|
|
12056
12073
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
12057
12074
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
12058
|
-
createdAt:
|
|
12059
|
-
updatedAt:
|
|
12075
|
+
createdAt: z349.coerce.date(),
|
|
12076
|
+
updatedAt: z349.coerce.date()
|
|
12060
12077
|
});
|
|
12061
|
-
var DTOPortalSettingsGetResponse =
|
|
12078
|
+
var DTOPortalSettingsGetResponse = z349.object({
|
|
12062
12079
|
portalSettings: DTOPortalSettings
|
|
12063
12080
|
});
|
|
12064
|
-
var DTOPortalSettingsUpdatePayload =
|
|
12065
|
-
enabledDesignSystemIds:
|
|
12066
|
-
enabledBrandPersistentIds:
|
|
12081
|
+
var DTOPortalSettingsUpdatePayload = z349.object({
|
|
12082
|
+
enabledDesignSystemIds: z349.array(z349.string()).optional(),
|
|
12083
|
+
enabledBrandPersistentIds: z349.array(z349.string()).optional(),
|
|
12067
12084
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
12068
12085
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
12069
12086
|
});
|
|
12070
12087
|
|
|
12071
12088
|
// src/api/dto/sandboxes/template.ts
|
|
12072
|
-
import
|
|
12073
|
-
var DTOSandboxTemplatePreset =
|
|
12074
|
-
id:
|
|
12075
|
-
name:
|
|
12076
|
-
description:
|
|
12077
|
-
thumbnailUrl:
|
|
12078
|
-
files:
|
|
12079
|
-
});
|
|
12080
|
-
var DTOSandboxTemplateVersion =
|
|
12081
|
-
name:
|
|
12082
|
-
createdAt:
|
|
12083
|
-
createdByUserId:
|
|
12084
|
-
e2bTemplateId:
|
|
12089
|
+
import z350 from "zod";
|
|
12090
|
+
var DTOSandboxTemplatePreset = z350.object({
|
|
12091
|
+
id: z350.string(),
|
|
12092
|
+
name: z350.string(),
|
|
12093
|
+
description: z350.string(),
|
|
12094
|
+
thumbnailUrl: z350.string().optional(),
|
|
12095
|
+
files: z350.string().array()
|
|
12096
|
+
});
|
|
12097
|
+
var DTOSandboxTemplateVersion = z350.object({
|
|
12098
|
+
name: z350.string(),
|
|
12099
|
+
createdAt: z350.string(),
|
|
12100
|
+
createdByUserId: z350.string(),
|
|
12101
|
+
e2bTemplateId: z350.string(),
|
|
12085
12102
|
templates: DTOSandboxTemplatePreset.array().optional(),
|
|
12086
|
-
hasDesignModePlugin:
|
|
12103
|
+
hasDesignModePlugin: z350.boolean().optional()
|
|
12087
12104
|
});
|
|
12088
|
-
var DTOSandboxTemplate =
|
|
12089
|
-
id:
|
|
12090
|
-
name:
|
|
12091
|
-
workspaceId:
|
|
12092
|
-
designSystemId:
|
|
12093
|
-
createdAt:
|
|
12105
|
+
var DTOSandboxTemplate = z350.object({
|
|
12106
|
+
id: z350.string(),
|
|
12107
|
+
name: z350.string(),
|
|
12108
|
+
workspaceId: z350.string(),
|
|
12109
|
+
designSystemId: z350.string(),
|
|
12110
|
+
createdAt: z350.string(),
|
|
12094
12111
|
versions: DTOSandboxTemplateVersion.array()
|
|
12095
12112
|
});
|
|
12096
|
-
var DTOSandboxTemplateBuild =
|
|
12097
|
-
id:
|
|
12098
|
-
workspaceId:
|
|
12099
|
-
designSystemId:
|
|
12100
|
-
name:
|
|
12101
|
-
version:
|
|
12102
|
-
createdAt:
|
|
12103
|
-
finishedAt:
|
|
12104
|
-
createdByUserId:
|
|
12105
|
-
dockerImagePath:
|
|
12106
|
-
error:
|
|
12107
|
-
state:
|
|
12108
|
-
});
|
|
12109
|
-
var DTOSandboxTemplateFile =
|
|
12110
|
-
key:
|
|
12111
|
-
fileId:
|
|
12112
|
-
filePath:
|
|
12113
|
-
url:
|
|
12114
|
-
});
|
|
12115
|
-
var DTOSandboxTemplateVersionDetail =
|
|
12113
|
+
var DTOSandboxTemplateBuild = z350.object({
|
|
12114
|
+
id: z350.string(),
|
|
12115
|
+
workspaceId: z350.string(),
|
|
12116
|
+
designSystemId: z350.string(),
|
|
12117
|
+
name: z350.string(),
|
|
12118
|
+
version: z350.string(),
|
|
12119
|
+
createdAt: z350.string(),
|
|
12120
|
+
finishedAt: z350.string().optional(),
|
|
12121
|
+
createdByUserId: z350.string(),
|
|
12122
|
+
dockerImagePath: z350.string(),
|
|
12123
|
+
error: z350.string().optional(),
|
|
12124
|
+
state: z350.enum(["PendingUpload", "Building", "Success", "Failure", "Timeout"])
|
|
12125
|
+
});
|
|
12126
|
+
var DTOSandboxTemplateFile = z350.object({
|
|
12127
|
+
key: z350.string(),
|
|
12128
|
+
fileId: z350.string(),
|
|
12129
|
+
filePath: z350.string(),
|
|
12130
|
+
url: z350.string()
|
|
12131
|
+
});
|
|
12132
|
+
var DTOSandboxTemplateVersionDetail = z350.object({
|
|
12116
12133
|
version: DTOSandboxTemplateVersion,
|
|
12117
12134
|
files: DTOSandboxTemplateFile.array()
|
|
12118
12135
|
});
|
|
12119
|
-
var DTOSandboxTemplateQuery =
|
|
12120
|
-
workspaceId:
|
|
12121
|
-
designSystemId:
|
|
12136
|
+
var DTOSandboxTemplateQuery = z350.object({
|
|
12137
|
+
workspaceId: z350.string(),
|
|
12138
|
+
designSystemId: z350.string().optional()
|
|
12122
12139
|
});
|
|
12123
|
-
var DTOSandboxTemplateListResponse =
|
|
12140
|
+
var DTOSandboxTemplateListResponse = z350.object({
|
|
12124
12141
|
templates: DTOSandboxTemplate.array()
|
|
12125
12142
|
});
|
|
12126
|
-
var DTOSandboxTemplateResponse =
|
|
12143
|
+
var DTOSandboxTemplateResponse = z350.object({
|
|
12127
12144
|
template: DTOSandboxTemplate
|
|
12128
12145
|
});
|
|
12129
|
-
var DTOSandboxTemplateBuildResponse =
|
|
12146
|
+
var DTOSandboxTemplateBuildResponse = z350.object({
|
|
12130
12147
|
build: DTOSandboxTemplateBuild
|
|
12131
12148
|
});
|
|
12132
|
-
var DTOSandboxTemplateBuildCreateInput =
|
|
12133
|
-
workspaceId:
|
|
12134
|
-
designSystemId:
|
|
12135
|
-
name:
|
|
12136
|
-
version:
|
|
12137
|
-
isExistingVersionUpdateAllowed:
|
|
12138
|
-
hasDesignModePlugin:
|
|
12139
|
-
templates:
|
|
12140
|
-
id:
|
|
12141
|
-
name:
|
|
12142
|
-
description:
|
|
12143
|
-
thumbnailUrl:
|
|
12144
|
-
files:
|
|
12149
|
+
var DTOSandboxTemplateBuildCreateInput = z350.object({
|
|
12150
|
+
workspaceId: z350.string(),
|
|
12151
|
+
designSystemId: z350.string(),
|
|
12152
|
+
name: z350.string(),
|
|
12153
|
+
version: z350.string(),
|
|
12154
|
+
isExistingVersionUpdateAllowed: z350.boolean(),
|
|
12155
|
+
hasDesignModePlugin: z350.boolean().optional(),
|
|
12156
|
+
templates: z350.object({
|
|
12157
|
+
id: z350.string(),
|
|
12158
|
+
name: z350.string(),
|
|
12159
|
+
description: z350.string(),
|
|
12160
|
+
thumbnailUrl: z350.string().optional(),
|
|
12161
|
+
files: z350.string().array()
|
|
12145
12162
|
}).array().optional()
|
|
12146
12163
|
});
|
|
12147
|
-
var DTOSandboxTemplateBuildCreateResponse =
|
|
12164
|
+
var DTOSandboxTemplateBuildCreateResponse = z350.object({
|
|
12148
12165
|
/** @deprecated use domain + build.dockerImagePath */
|
|
12149
|
-
dockerUrl:
|
|
12150
|
-
dockerRegistryDomain:
|
|
12166
|
+
dockerUrl: z350.string().optional(),
|
|
12167
|
+
dockerRegistryDomain: z350.string(),
|
|
12151
12168
|
/** @deprecated use docker-login endpoint */
|
|
12152
|
-
dockerAccessToken:
|
|
12169
|
+
dockerAccessToken: z350.string().optional(),
|
|
12153
12170
|
build: DTOSandboxTemplateBuild
|
|
12154
12171
|
});
|
|
12155
|
-
var DTOSandboxTemplateBuildFinalizeResponse =
|
|
12156
|
-
ok:
|
|
12172
|
+
var DTOSandboxTemplateBuildFinalizeResponse = z350.object({
|
|
12173
|
+
ok: z350.boolean()
|
|
12157
12174
|
});
|
|
12158
12175
|
|
|
12159
12176
|
// src/api/dto/storybook-sites/storybook-sites.ts
|
|
12160
|
-
import { z as
|
|
12161
|
-
var DTOStorybookUploadStatus =
|
|
12162
|
-
var DTOStorybookSiteVersion =
|
|
12163
|
-
id:
|
|
12164
|
-
isPublic:
|
|
12165
|
-
createdAt:
|
|
12177
|
+
import { z as z351 } from "zod";
|
|
12178
|
+
var DTOStorybookUploadStatus = z351.enum(["PendingUpload", "Failed", "InProgress", "Completed", "Timeout"]);
|
|
12179
|
+
var DTOStorybookSiteVersion = z351.object({
|
|
12180
|
+
id: z351.string(),
|
|
12181
|
+
isPublic: z351.boolean(),
|
|
12182
|
+
createdAt: z351.string(),
|
|
12166
12183
|
uploadStatus: DTOStorybookUploadStatus
|
|
12167
12184
|
});
|
|
12168
|
-
var DTOStorybookSite =
|
|
12169
|
-
id:
|
|
12170
|
-
designSystemId:
|
|
12171
|
-
name:
|
|
12172
|
-
indexPageUrl:
|
|
12173
|
-
createdAt:
|
|
12185
|
+
var DTOStorybookSite = z351.object({
|
|
12186
|
+
id: z351.string(),
|
|
12187
|
+
designSystemId: z351.string(),
|
|
12188
|
+
name: z351.string(),
|
|
12189
|
+
indexPageUrl: z351.string(),
|
|
12190
|
+
createdAt: z351.string(),
|
|
12174
12191
|
currentVersion: DTOStorybookSiteVersion
|
|
12175
12192
|
});
|
|
12176
|
-
var DTOStorybookSiteListQuery =
|
|
12177
|
-
designSystemId:
|
|
12193
|
+
var DTOStorybookSiteListQuery = z351.object({
|
|
12194
|
+
designSystemId: z351.string()
|
|
12178
12195
|
});
|
|
12179
|
-
var DTOStorybookSiteListResponse =
|
|
12196
|
+
var DTOStorybookSiteListResponse = z351.object({
|
|
12180
12197
|
sites: DTOStorybookSite.array()
|
|
12181
12198
|
});
|
|
12182
|
-
var DTOStorybookSiteUploadPayload =
|
|
12183
|
-
designSystemId:
|
|
12184
|
-
isPublic:
|
|
12185
|
-
name:
|
|
12199
|
+
var DTOStorybookSiteUploadPayload = z351.object({
|
|
12200
|
+
designSystemId: z351.string(),
|
|
12201
|
+
isPublic: z351.boolean(),
|
|
12202
|
+
name: z351.string()
|
|
12186
12203
|
});
|
|
12187
|
-
var DTOStorybookSiteUploadResponse =
|
|
12204
|
+
var DTOStorybookSiteUploadResponse = z351.object({
|
|
12188
12205
|
storybookSiteVersion: DTOStorybookSiteVersion,
|
|
12189
|
-
uploadUrl:
|
|
12206
|
+
uploadUrl: z351.string()
|
|
12190
12207
|
});
|
|
12191
|
-
var DTOStorybookSiteVersionResponse =
|
|
12208
|
+
var DTOStorybookSiteVersionResponse = z351.object({
|
|
12192
12209
|
storybookSiteVersion: DTOStorybookSiteVersion
|
|
12193
12210
|
});
|
|
12194
12211
|
|
|
12195
12212
|
// src/api/dto/themes/override.ts
|
|
12196
|
-
import { z as
|
|
12213
|
+
import { z as z352 } from "zod";
|
|
12197
12214
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
12198
|
-
|
|
12199
|
-
tokenPersistentId:
|
|
12215
|
+
z352.object({
|
|
12216
|
+
tokenPersistentId: z352.string(),
|
|
12200
12217
|
origin: ThemeOverrideOrigin.optional()
|
|
12201
12218
|
})
|
|
12202
12219
|
);
|
|
12203
12220
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
12204
|
-
|
|
12205
|
-
tokenPersistentId:
|
|
12221
|
+
z352.object({
|
|
12222
|
+
tokenPersistentId: z352.string()
|
|
12206
12223
|
})
|
|
12207
12224
|
);
|
|
12208
12225
|
|
|
12209
12226
|
// src/api/dto/themes/theme.ts
|
|
12210
|
-
import { z as
|
|
12211
|
-
var DTOThemesListQuery =
|
|
12212
|
-
brandId:
|
|
12213
|
-
});
|
|
12214
|
-
var DTOTheme =
|
|
12215
|
-
id:
|
|
12216
|
-
persistentId:
|
|
12217
|
-
designSystemVersionId:
|
|
12218
|
-
brandId:
|
|
12227
|
+
import { z as z353 } from "zod";
|
|
12228
|
+
var DTOThemesListQuery = z353.object({
|
|
12229
|
+
brandId: z353.string().optional()
|
|
12230
|
+
});
|
|
12231
|
+
var DTOTheme = z353.object({
|
|
12232
|
+
id: z353.string(),
|
|
12233
|
+
persistentId: z353.string(),
|
|
12234
|
+
designSystemVersionId: z353.string(),
|
|
12235
|
+
brandId: z353.string(),
|
|
12219
12236
|
meta: ObjectMeta,
|
|
12220
|
-
codeName:
|
|
12221
|
-
parentPersistentId:
|
|
12222
|
-
collectionPersistentIds:
|
|
12237
|
+
codeName: z353.string(),
|
|
12238
|
+
parentPersistentId: z353.string().optional(),
|
|
12239
|
+
collectionPersistentIds: z353.string().array(),
|
|
12223
12240
|
overrides: DTOThemeOverride.array()
|
|
12224
12241
|
});
|
|
12225
|
-
var DTOThemeResponse =
|
|
12242
|
+
var DTOThemeResponse = z353.object({
|
|
12226
12243
|
theme: DTOTheme
|
|
12227
12244
|
});
|
|
12228
|
-
var DTOThemeListResponse =
|
|
12245
|
+
var DTOThemeListResponse = z353.object({
|
|
12229
12246
|
themes: DTOTheme.array()
|
|
12230
12247
|
});
|
|
12231
|
-
var DTOThemeCreatePayload =
|
|
12248
|
+
var DTOThemeCreatePayload = z353.object({
|
|
12232
12249
|
meta: ObjectMeta,
|
|
12233
|
-
persistentId:
|
|
12234
|
-
brandId:
|
|
12235
|
-
codeName:
|
|
12250
|
+
persistentId: z353.string(),
|
|
12251
|
+
brandId: z353.string(),
|
|
12252
|
+
codeName: z353.string(),
|
|
12236
12253
|
overrides: DTOThemeOverride.array()
|
|
12237
12254
|
});
|
|
12238
12255
|
|
|
12239
12256
|
// src/api/dto/trail-events/trail-events.ts
|
|
12240
|
-
import { z as
|
|
12241
|
-
var DTOTrailEventType =
|
|
12257
|
+
import { z as z354 } from "zod";
|
|
12258
|
+
var DTOTrailEventType = z354.enum([
|
|
12242
12259
|
"IterationCreated",
|
|
12243
12260
|
"IterationBookmarked",
|
|
12244
12261
|
"FeatureCreated",
|
|
@@ -12256,124 +12273,124 @@ var DTOTrailEventType = z353.enum([
|
|
|
12256
12273
|
"FeaturePublished",
|
|
12257
12274
|
"FeatureUnpublished"
|
|
12258
12275
|
]);
|
|
12259
|
-
var DTOTrailEventBase =
|
|
12260
|
-
id:
|
|
12261
|
-
projectId:
|
|
12262
|
-
userId:
|
|
12263
|
-
createdAt:
|
|
12264
|
-
updatedAt:
|
|
12265
|
-
});
|
|
12266
|
-
var DTOTrailEventIterationCreatedPayload =
|
|
12267
|
-
iterationName:
|
|
12268
|
-
iterationId:
|
|
12269
|
-
featureId:
|
|
12270
|
-
});
|
|
12271
|
-
var DTOTrailEventIterationBookmarkedPayload =
|
|
12272
|
-
iterationId:
|
|
12273
|
-
featureId:
|
|
12274
|
-
iterationName:
|
|
12275
|
-
});
|
|
12276
|
-
var DTOTrailEventIterationPromotedPayload =
|
|
12277
|
-
iterationId:
|
|
12278
|
-
featureId:
|
|
12279
|
-
iterationName:
|
|
12280
|
-
});
|
|
12281
|
-
var DTOTrailEventFeatureCreatedPayload =
|
|
12282
|
-
featureId:
|
|
12283
|
-
name:
|
|
12284
|
-
description:
|
|
12285
|
-
});
|
|
12286
|
-
var DTOTrailEventFeatureDeletedPayload =
|
|
12287
|
-
featureId:
|
|
12288
|
-
name:
|
|
12289
|
-
});
|
|
12290
|
-
var DTOTrailEventFeatureArchivedPayload =
|
|
12291
|
-
featureId:
|
|
12292
|
-
name:
|
|
12293
|
-
});
|
|
12294
|
-
var DTOTrailEventDocumentCreatedPayload =
|
|
12295
|
-
documentId:
|
|
12296
|
-
title:
|
|
12297
|
-
sectionId:
|
|
12298
|
-
});
|
|
12299
|
-
var DTOTrailEventDocumentDeletedPayload =
|
|
12300
|
-
documentId:
|
|
12301
|
-
title:
|
|
12302
|
-
});
|
|
12303
|
-
var DTOTrailEventDocumentUpdatedPayload =
|
|
12304
|
-
documentId:
|
|
12305
|
-
title:
|
|
12306
|
-
sectionId:
|
|
12307
|
-
});
|
|
12308
|
-
var DTOTrailEventDocumentCommentSentPayload =
|
|
12309
|
-
documentId:
|
|
12310
|
-
title:
|
|
12311
|
-
sectionId:
|
|
12312
|
-
});
|
|
12313
|
-
var DTOTrailEventProjectCreatedPayload =
|
|
12314
|
-
name:
|
|
12315
|
-
description:
|
|
12316
|
-
});
|
|
12317
|
-
var DTOTrailEventFeaturePublishedPayload =
|
|
12318
|
-
featureId:
|
|
12319
|
-
featureName:
|
|
12320
|
-
iterationId:
|
|
12321
|
-
iterationName:
|
|
12322
|
-
});
|
|
12323
|
-
var DTOTrailEventFeatureUnpublishedPayload =
|
|
12324
|
-
featureId:
|
|
12325
|
-
featureName:
|
|
12326
|
-
iterationId:
|
|
12327
|
-
iterationName:
|
|
12328
|
-
});
|
|
12329
|
-
var DTOTrailEventProjectArchivedPayload =
|
|
12330
|
-
name:
|
|
12331
|
-
});
|
|
12332
|
-
var DTOTrailEventProjectContextCreatedPayload =
|
|
12333
|
-
contextId:
|
|
12334
|
-
name:
|
|
12335
|
-
description:
|
|
12336
|
-
});
|
|
12337
|
-
var DTOTrailEventProjectContextArchivedPayload =
|
|
12338
|
-
contextId:
|
|
12339
|
-
});
|
|
12340
|
-
var DTOTrailEventPayload =
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12276
|
+
var DTOTrailEventBase = z354.object({
|
|
12277
|
+
id: z354.string(),
|
|
12278
|
+
projectId: z354.string(),
|
|
12279
|
+
userId: z354.string(),
|
|
12280
|
+
createdAt: z354.coerce.date(),
|
|
12281
|
+
updatedAt: z354.coerce.date()
|
|
12282
|
+
});
|
|
12283
|
+
var DTOTrailEventIterationCreatedPayload = z354.object({
|
|
12284
|
+
iterationName: z354.string(),
|
|
12285
|
+
iterationId: z354.string().uuid(),
|
|
12286
|
+
featureId: z354.string().uuid()
|
|
12287
|
+
});
|
|
12288
|
+
var DTOTrailEventIterationBookmarkedPayload = z354.object({
|
|
12289
|
+
iterationId: z354.string().uuid(),
|
|
12290
|
+
featureId: z354.string().uuid(),
|
|
12291
|
+
iterationName: z354.string()
|
|
12292
|
+
});
|
|
12293
|
+
var DTOTrailEventIterationPromotedPayload = z354.object({
|
|
12294
|
+
iterationId: z354.string().uuid(),
|
|
12295
|
+
featureId: z354.string().uuid(),
|
|
12296
|
+
iterationName: z354.string()
|
|
12297
|
+
});
|
|
12298
|
+
var DTOTrailEventFeatureCreatedPayload = z354.object({
|
|
12299
|
+
featureId: z354.string().uuid(),
|
|
12300
|
+
name: z354.string(),
|
|
12301
|
+
description: z354.string().optional()
|
|
12302
|
+
});
|
|
12303
|
+
var DTOTrailEventFeatureDeletedPayload = z354.object({
|
|
12304
|
+
featureId: z354.string().uuid(),
|
|
12305
|
+
name: z354.string()
|
|
12306
|
+
});
|
|
12307
|
+
var DTOTrailEventFeatureArchivedPayload = z354.object({
|
|
12308
|
+
featureId: z354.string().uuid(),
|
|
12309
|
+
name: z354.string()
|
|
12310
|
+
});
|
|
12311
|
+
var DTOTrailEventDocumentCreatedPayload = z354.object({
|
|
12312
|
+
documentId: z354.string().uuid(),
|
|
12313
|
+
title: z354.string(),
|
|
12314
|
+
sectionId: z354.string().uuid().optional()
|
|
12315
|
+
});
|
|
12316
|
+
var DTOTrailEventDocumentDeletedPayload = z354.object({
|
|
12317
|
+
documentId: z354.string().uuid(),
|
|
12318
|
+
title: z354.string()
|
|
12319
|
+
});
|
|
12320
|
+
var DTOTrailEventDocumentUpdatedPayload = z354.object({
|
|
12321
|
+
documentId: z354.string().uuid(),
|
|
12322
|
+
title: z354.string(),
|
|
12323
|
+
sectionId: z354.string().uuid().optional()
|
|
12324
|
+
});
|
|
12325
|
+
var DTOTrailEventDocumentCommentSentPayload = z354.object({
|
|
12326
|
+
documentId: z354.string().uuid(),
|
|
12327
|
+
title: z354.string(),
|
|
12328
|
+
sectionId: z354.string().uuid().optional()
|
|
12329
|
+
});
|
|
12330
|
+
var DTOTrailEventProjectCreatedPayload = z354.object({
|
|
12331
|
+
name: z354.string(),
|
|
12332
|
+
description: z354.string().optional()
|
|
12333
|
+
});
|
|
12334
|
+
var DTOTrailEventFeaturePublishedPayload = z354.object({
|
|
12335
|
+
featureId: z354.string().uuid(),
|
|
12336
|
+
featureName: z354.string(),
|
|
12337
|
+
iterationId: z354.string().uuid().nullish(),
|
|
12338
|
+
iterationName: z354.string().nullish()
|
|
12339
|
+
});
|
|
12340
|
+
var DTOTrailEventFeatureUnpublishedPayload = z354.object({
|
|
12341
|
+
featureId: z354.string().uuid(),
|
|
12342
|
+
featureName: z354.string(),
|
|
12343
|
+
iterationId: z354.string().uuid().nullish(),
|
|
12344
|
+
iterationName: z354.string().nullish()
|
|
12345
|
+
});
|
|
12346
|
+
var DTOTrailEventProjectArchivedPayload = z354.object({
|
|
12347
|
+
name: z354.string()
|
|
12348
|
+
});
|
|
12349
|
+
var DTOTrailEventProjectContextCreatedPayload = z354.object({
|
|
12350
|
+
contextId: z354.number(),
|
|
12351
|
+
name: z354.string(),
|
|
12352
|
+
description: z354.string().optional()
|
|
12353
|
+
});
|
|
12354
|
+
var DTOTrailEventProjectContextArchivedPayload = z354.object({
|
|
12355
|
+
contextId: z354.number()
|
|
12356
|
+
});
|
|
12357
|
+
var DTOTrailEventPayload = z354.discriminatedUnion("type", [
|
|
12358
|
+
z354.object({ type: z354.literal("IterationCreated"), payload: DTOTrailEventIterationCreatedPayload }),
|
|
12359
|
+
z354.object({ type: z354.literal("IterationBookmarked"), payload: DTOTrailEventIterationBookmarkedPayload }),
|
|
12360
|
+
z354.object({ type: z354.literal("FeatureCreated"), payload: DTOTrailEventFeatureCreatedPayload }),
|
|
12361
|
+
z354.object({ type: z354.literal("FeatureDeleted"), payload: DTOTrailEventFeatureDeletedPayload }),
|
|
12362
|
+
z354.object({ type: z354.literal("FeatureArchived"), payload: DTOTrailEventFeatureArchivedPayload }),
|
|
12363
|
+
z354.object({ type: z354.literal("DocumentCreated"), payload: DTOTrailEventDocumentCreatedPayload }),
|
|
12364
|
+
z354.object({ type: z354.literal("DocumentDeleted"), payload: DTOTrailEventDocumentDeletedPayload }),
|
|
12365
|
+
z354.object({ type: z354.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
12366
|
+
z354.object({ type: z354.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload }),
|
|
12367
|
+
z354.object({ type: z354.literal("ProjectCreated"), payload: DTOTrailEventProjectCreatedPayload }),
|
|
12368
|
+
z354.object({ type: z354.literal("ProjectArchived"), payload: DTOTrailEventProjectArchivedPayload }),
|
|
12369
|
+
z354.object({ type: z354.literal("IterationPromoted"), payload: DTOTrailEventIterationPromotedPayload }),
|
|
12370
|
+
z354.object({ type: z354.literal("ProjectContextCreated"), payload: DTOTrailEventProjectContextCreatedPayload }),
|
|
12371
|
+
z354.object({ type: z354.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload }),
|
|
12372
|
+
z354.object({ type: z354.literal("FeaturePublished"), payload: DTOTrailEventFeaturePublishedPayload }),
|
|
12373
|
+
z354.object({ type: z354.literal("FeatureUnpublished"), payload: DTOTrailEventFeatureUnpublishedPayload })
|
|
12357
12374
|
]);
|
|
12358
12375
|
var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
|
|
12359
12376
|
var DTOTrailEventWithDetails = DTOTrailEvent.and(
|
|
12360
|
-
|
|
12361
|
-
projectName:
|
|
12362
|
-
userName:
|
|
12377
|
+
z354.object({
|
|
12378
|
+
projectName: z354.string().optional(),
|
|
12379
|
+
userName: z354.string().optional()
|
|
12363
12380
|
})
|
|
12364
12381
|
);
|
|
12365
|
-
var DTOTrailEventListInput =
|
|
12366
|
-
projectId:
|
|
12382
|
+
var DTOTrailEventListInput = z354.object({
|
|
12383
|
+
projectId: z354.string()
|
|
12367
12384
|
});
|
|
12368
|
-
var DTOTrailEventListResponse =
|
|
12369
|
-
events:
|
|
12385
|
+
var DTOTrailEventListResponse = z354.object({
|
|
12386
|
+
events: z354.array(DTOTrailEventWithDetails)
|
|
12370
12387
|
});
|
|
12371
12388
|
var DTOTrailEventCreate = DTOTrailEventPayload.and(
|
|
12372
12389
|
DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
|
|
12373
12390
|
);
|
|
12374
|
-
var DTOTrailEventClientCreate =
|
|
12375
|
-
|
|
12376
|
-
|
|
12391
|
+
var DTOTrailEventClientCreate = z354.discriminatedUnion("type", [
|
|
12392
|
+
z354.object({ type: z354.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
12393
|
+
z354.object({ type: z354.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
|
|
12377
12394
|
]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
|
|
12378
12395
|
|
|
12379
12396
|
// src/api/endpoints/codegen/exporters.ts
|
|
@@ -12418,13 +12435,13 @@ var ExportersEndpoint = class {
|
|
|
12418
12435
|
};
|
|
12419
12436
|
|
|
12420
12437
|
// src/api/endpoints/codegen/jobs.ts
|
|
12421
|
-
import { z as
|
|
12438
|
+
import { z as z355 } from "zod";
|
|
12422
12439
|
var ExporterJobsEndpoint = class {
|
|
12423
12440
|
constructor(requestExecutor) {
|
|
12424
12441
|
this.requestExecutor = requestExecutor;
|
|
12425
12442
|
}
|
|
12426
12443
|
list(workspaceId) {
|
|
12427
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
12444
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z355.any());
|
|
12428
12445
|
}
|
|
12429
12446
|
get(workspaceId, jobId) {
|
|
12430
12447
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -12482,7 +12499,7 @@ var CodegenEndpoint = class {
|
|
|
12482
12499
|
};
|
|
12483
12500
|
|
|
12484
12501
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
12485
|
-
import { z as
|
|
12502
|
+
import { z as z356 } from "zod";
|
|
12486
12503
|
var BrandsEndpoint = class {
|
|
12487
12504
|
constructor(requestExecutor) {
|
|
12488
12505
|
this.requestExecutor = requestExecutor;
|
|
@@ -12516,7 +12533,7 @@ var BrandsEndpoint = class {
|
|
|
12516
12533
|
});
|
|
12517
12534
|
}
|
|
12518
12535
|
delete(dsId, vId, brandId) {
|
|
12519
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
12536
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z356.any(), {
|
|
12520
12537
|
method: "DELETE"
|
|
12521
12538
|
});
|
|
12522
12539
|
}
|
|
@@ -12570,6 +12587,12 @@ var DocumentationEndpoint = class {
|
|
|
12570
12587
|
constructor(requestExecutor) {
|
|
12571
12588
|
this.requestExecutor = requestExecutor;
|
|
12572
12589
|
}
|
|
12590
|
+
async getConfiguration(designSystemId, versionId) {
|
|
12591
|
+
return await this.requestExecutor.json(
|
|
12592
|
+
`/design-systems/${designSystemId}/versions/${versionId}/documentation`,
|
|
12593
|
+
DTODocumentationConfigurationResponse
|
|
12594
|
+
);
|
|
12595
|
+
}
|
|
12573
12596
|
async getStructure(designSystemId, versionId) {
|
|
12574
12597
|
return await this.requestExecutor.json(
|
|
12575
12598
|
`/design-systems/${designSystemId}/versions/${versionId}/documentation/structure`,
|
|
@@ -12792,7 +12815,7 @@ var ImportJobsEndpoint = class {
|
|
|
12792
12815
|
};
|
|
12793
12816
|
|
|
12794
12817
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
12795
|
-
import { z as
|
|
12818
|
+
import { z as z357 } from "zod";
|
|
12796
12819
|
var OverridesEndpoint = class {
|
|
12797
12820
|
constructor(requestExecutor) {
|
|
12798
12821
|
this.requestExecutor = requestExecutor;
|
|
@@ -12800,7 +12823,7 @@ var OverridesEndpoint = class {
|
|
|
12800
12823
|
create(dsId, versionId, themeId, body) {
|
|
12801
12824
|
return this.requestExecutor.json(
|
|
12802
12825
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
12803
|
-
|
|
12826
|
+
z357.any(),
|
|
12804
12827
|
{
|
|
12805
12828
|
method: "POST",
|
|
12806
12829
|
body
|
|
@@ -12810,7 +12833,7 @@ var OverridesEndpoint = class {
|
|
|
12810
12833
|
};
|
|
12811
12834
|
|
|
12812
12835
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
12813
|
-
import { z as
|
|
12836
|
+
import { z as z358 } from "zod";
|
|
12814
12837
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
12815
12838
|
constructor(requestExecutor) {
|
|
12816
12839
|
this.requestExecutor = requestExecutor;
|
|
@@ -12838,7 +12861,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
12838
12861
|
delete(designSystemId, versionId, defId) {
|
|
12839
12862
|
return this.requestExecutor.json(
|
|
12840
12863
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
12841
|
-
|
|
12864
|
+
z358.any(),
|
|
12842
12865
|
{ method: "DELETE" }
|
|
12843
12866
|
);
|
|
12844
12867
|
}
|
|
@@ -12877,7 +12900,7 @@ var VersionStatsEndpoint = class {
|
|
|
12877
12900
|
};
|
|
12878
12901
|
|
|
12879
12902
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
12880
|
-
import { z as
|
|
12903
|
+
import { z as z359 } from "zod";
|
|
12881
12904
|
var ThemesEndpoint = class {
|
|
12882
12905
|
constructor(requestExecutor) {
|
|
12883
12906
|
this.requestExecutor = requestExecutor;
|
|
@@ -12900,7 +12923,7 @@ var ThemesEndpoint = class {
|
|
|
12900
12923
|
});
|
|
12901
12924
|
}
|
|
12902
12925
|
delete(dsId, versionId, themeId) {
|
|
12903
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
12926
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z359.any(), {
|
|
12904
12927
|
method: "DELETE"
|
|
12905
12928
|
});
|
|
12906
12929
|
}
|
|
@@ -13107,7 +13130,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
13107
13130
|
};
|
|
13108
13131
|
|
|
13109
13132
|
// src/api/endpoints/design-system/design-systems.ts
|
|
13110
|
-
import { z as
|
|
13133
|
+
import { z as z362 } from "zod";
|
|
13111
13134
|
|
|
13112
13135
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
13113
13136
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -13184,7 +13207,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
13184
13207
|
};
|
|
13185
13208
|
|
|
13186
13209
|
// src/api/endpoints/design-system/sources.ts
|
|
13187
|
-
import { z as
|
|
13210
|
+
import { z as z360 } from "zod";
|
|
13188
13211
|
var DesignSystemSourcesEndpoint = class {
|
|
13189
13212
|
constructor(requestExecutor) {
|
|
13190
13213
|
this.requestExecutor = requestExecutor;
|
|
@@ -13202,7 +13225,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
13202
13225
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
13203
13226
|
}
|
|
13204
13227
|
delete(dsId, sourceId) {
|
|
13205
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
13228
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z360.any(), { method: "DELETE" });
|
|
13206
13229
|
}
|
|
13207
13230
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
13208
13231
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -13245,7 +13268,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
13245
13268
|
};
|
|
13246
13269
|
|
|
13247
13270
|
// src/api/endpoints/design-system/storybook.ts
|
|
13248
|
-
import { z as
|
|
13271
|
+
import { z as z361 } from "zod";
|
|
13249
13272
|
var StorybookEntriesEndpoint = class {
|
|
13250
13273
|
constructor(requestExecutor) {
|
|
13251
13274
|
this.requestExecutor = requestExecutor;
|
|
@@ -13263,7 +13286,7 @@ var StorybookEntriesEndpoint = class {
|
|
|
13263
13286
|
);
|
|
13264
13287
|
}
|
|
13265
13288
|
delete(dsId, entryId) {
|
|
13266
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
13289
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z361.any(), {
|
|
13267
13290
|
method: "DELETE"
|
|
13268
13291
|
});
|
|
13269
13292
|
}
|
|
@@ -13307,7 +13330,7 @@ var DesignSystemsEndpoint = class {
|
|
|
13307
13330
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
13308
13331
|
}
|
|
13309
13332
|
delete(dsId) {
|
|
13310
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
13333
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z362.any(), { method: "DELETE" });
|
|
13311
13334
|
}
|
|
13312
13335
|
update(dsId, body) {
|
|
13313
13336
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -13781,7 +13804,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
13781
13804
|
};
|
|
13782
13805
|
|
|
13783
13806
|
// src/api/endpoints/forge/projects.ts
|
|
13784
|
-
import
|
|
13807
|
+
import z363 from "zod";
|
|
13785
13808
|
var ForgeProjectsEndpoint = class {
|
|
13786
13809
|
constructor(requestExecutor) {
|
|
13787
13810
|
this.requestExecutor = requestExecutor;
|
|
@@ -13818,7 +13841,7 @@ var ForgeProjectsEndpoint = class {
|
|
|
13818
13841
|
);
|
|
13819
13842
|
}
|
|
13820
13843
|
action(workspaceId, projectId, body) {
|
|
13821
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`,
|
|
13844
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z363.any(), {
|
|
13822
13845
|
body,
|
|
13823
13846
|
method: "POST"
|
|
13824
13847
|
});
|
|
@@ -13990,7 +14013,7 @@ var WorkspaceBillingEndpoint = class {
|
|
|
13990
14013
|
};
|
|
13991
14014
|
|
|
13992
14015
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
13993
|
-
import { z as
|
|
14016
|
+
import { z as z364 } from "zod";
|
|
13994
14017
|
var WorkspaceChatThreadsEndpoint = class {
|
|
13995
14018
|
constructor(requestExecutor) {
|
|
13996
14019
|
this.requestExecutor = requestExecutor;
|
|
@@ -14022,7 +14045,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
14022
14045
|
);
|
|
14023
14046
|
}
|
|
14024
14047
|
delete(workspaceId, threadId) {
|
|
14025
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
14048
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z364.any(), {
|
|
14026
14049
|
method: "DELETE"
|
|
14027
14050
|
});
|
|
14028
14051
|
}
|
|
@@ -14054,7 +14077,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
14054
14077
|
);
|
|
14055
14078
|
}
|
|
14056
14079
|
score(workspaceId, threadId, body) {
|
|
14057
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
14080
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z364.any(), {
|
|
14058
14081
|
method: "POST",
|
|
14059
14082
|
body
|
|
14060
14083
|
});
|
|
@@ -14062,7 +14085,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
14062
14085
|
};
|
|
14063
14086
|
|
|
14064
14087
|
// src/api/endpoints/workspaces/integrations.ts
|
|
14065
|
-
import { z as
|
|
14088
|
+
import { z as z365 } from "zod";
|
|
14066
14089
|
var WorkspaceIntegrationsEndpoint = class {
|
|
14067
14090
|
constructor(requestExecutor) {
|
|
14068
14091
|
this.requestExecutor = requestExecutor;
|
|
@@ -14071,7 +14094,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
14071
14094
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
14072
14095
|
}
|
|
14073
14096
|
delete(wsId, iId) {
|
|
14074
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
14097
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z365.unknown(), { method: "DELETE" });
|
|
14075
14098
|
}
|
|
14076
14099
|
};
|
|
14077
14100
|
|
|
@@ -14103,7 +14126,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
14103
14126
|
};
|
|
14104
14127
|
|
|
14105
14128
|
// src/api/endpoints/workspaces/members.ts
|
|
14106
|
-
import { z as
|
|
14129
|
+
import { z as z366 } from "zod";
|
|
14107
14130
|
var WorkspaceMembersEndpoint = class {
|
|
14108
14131
|
constructor(requestExecutor) {
|
|
14109
14132
|
this.requestExecutor = requestExecutor;
|
|
@@ -14120,7 +14143,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
14120
14143
|
});
|
|
14121
14144
|
}
|
|
14122
14145
|
invite(workspaceId, body) {
|
|
14123
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
14146
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z366.any(), { method: "POST", body });
|
|
14124
14147
|
}
|
|
14125
14148
|
delete(workspaceId, userId) {
|
|
14126
14149
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -14149,7 +14172,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
14149
14172
|
};
|
|
14150
14173
|
|
|
14151
14174
|
// src/api/endpoints/workspaces/subscription.ts
|
|
14152
|
-
import { z as
|
|
14175
|
+
import { z as z367 } from "zod";
|
|
14153
14176
|
var WorkspaceSubscriptionEndpoint = class {
|
|
14154
14177
|
constructor(requestExecutor) {
|
|
14155
14178
|
this.requestExecutor = requestExecutor;
|
|
@@ -14160,7 +14183,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
14160
14183
|
});
|
|
14161
14184
|
}
|
|
14162
14185
|
update(workspaceId, body) {
|
|
14163
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
14186
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z367.any(), {
|
|
14164
14187
|
method: "PUT",
|
|
14165
14188
|
body
|
|
14166
14189
|
});
|
|
@@ -14178,7 +14201,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
14178
14201
|
};
|
|
14179
14202
|
|
|
14180
14203
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
14181
|
-
import { z as
|
|
14204
|
+
import { z as z368 } from "zod";
|
|
14182
14205
|
var WorkspacesEndpoint = class {
|
|
14183
14206
|
constructor(requestExecutor) {
|
|
14184
14207
|
this.requestExecutor = requestExecutor;
|
|
@@ -14214,7 +14237,7 @@ var WorkspacesEndpoint = class {
|
|
|
14214
14237
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
14215
14238
|
}
|
|
14216
14239
|
delete(workspaceId) {
|
|
14217
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
14240
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z368.any(), { method: "DELETE" });
|
|
14218
14241
|
}
|
|
14219
14242
|
getPortalSettings(workspaceId) {
|
|
14220
14243
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -14289,7 +14312,7 @@ var LiveblocksEndpoint = class {
|
|
|
14289
14312
|
};
|
|
14290
14313
|
|
|
14291
14314
|
// src/api/endpoints/storybook-sites.ts
|
|
14292
|
-
import
|
|
14315
|
+
import z369 from "zod";
|
|
14293
14316
|
var StorybookSitesEndpoint = class {
|
|
14294
14317
|
constructor(requestExecutor) {
|
|
14295
14318
|
this.requestExecutor = requestExecutor;
|
|
@@ -14300,7 +14323,7 @@ var StorybookSitesEndpoint = class {
|
|
|
14300
14323
|
});
|
|
14301
14324
|
}
|
|
14302
14325
|
deleteSite(siteId) {
|
|
14303
|
-
return this.requestExecutor.json(`/storybook/sites/${siteId}`,
|
|
14326
|
+
return this.requestExecutor.json(`/storybook/sites/${siteId}`, z369.unknown(), {
|
|
14304
14327
|
method: "DELETE"
|
|
14305
14328
|
});
|
|
14306
14329
|
}
|
|
@@ -14418,9 +14441,9 @@ ${bodyText}`,
|
|
|
14418
14441
|
|
|
14419
14442
|
// src/api/transport/request-executor.ts
|
|
14420
14443
|
import fetch from "node-fetch";
|
|
14421
|
-
import { z as
|
|
14422
|
-
var ResponseWrapper =
|
|
14423
|
-
result:
|
|
14444
|
+
import { z as z370 } from "zod";
|
|
14445
|
+
var ResponseWrapper = z370.object({
|
|
14446
|
+
result: z370.record(z370.any())
|
|
14424
14447
|
});
|
|
14425
14448
|
var RequestExecutor = class {
|
|
14426
14449
|
constructor(testServerConfig) {
|
|
@@ -14514,25 +14537,25 @@ var SupernovaApiClient = class {
|
|
|
14514
14537
|
};
|
|
14515
14538
|
|
|
14516
14539
|
// src/events/design-system.ts
|
|
14517
|
-
import { z as
|
|
14518
|
-
var DTOEventFigmaNodesRendered =
|
|
14519
|
-
type:
|
|
14520
|
-
designSystemId:
|
|
14521
|
-
versionId:
|
|
14522
|
-
figmaNodePersistentIds:
|
|
14523
|
-
});
|
|
14524
|
-
var DTOEventDataSourcesImported =
|
|
14525
|
-
type:
|
|
14526
|
-
designSystemId:
|
|
14527
|
-
versionId:
|
|
14528
|
-
importJobId:
|
|
14540
|
+
import { z as z371 } from "zod";
|
|
14541
|
+
var DTOEventFigmaNodesRendered = z371.object({
|
|
14542
|
+
type: z371.literal("DesignSystem.FigmaNodesRendered"),
|
|
14543
|
+
designSystemId: z371.string(),
|
|
14544
|
+
versionId: z371.string(),
|
|
14545
|
+
figmaNodePersistentIds: z371.string().array()
|
|
14546
|
+
});
|
|
14547
|
+
var DTOEventDataSourcesImported = z371.object({
|
|
14548
|
+
type: z371.literal("DesignSystem.ImportJobFinished"),
|
|
14549
|
+
designSystemId: z371.string(),
|
|
14550
|
+
versionId: z371.string(),
|
|
14551
|
+
importJobId: z371.string(),
|
|
14529
14552
|
dataSourceType: DataSourceRemoteType,
|
|
14530
|
-
dataSourceIds:
|
|
14553
|
+
dataSourceIds: z371.string().array()
|
|
14531
14554
|
});
|
|
14532
14555
|
|
|
14533
14556
|
// src/events/event.ts
|
|
14534
|
-
import { z as
|
|
14535
|
-
var DTOEvent =
|
|
14557
|
+
import { z as z372 } from "zod";
|
|
14558
|
+
var DTOEvent = z372.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
14536
14559
|
|
|
14537
14560
|
// src/sync/docs-local-action-executor.ts
|
|
14538
14561
|
function applyActionsLocally(input) {
|
|
@@ -14828,7 +14851,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
14828
14851
|
import PQueue from "p-queue";
|
|
14829
14852
|
|
|
14830
14853
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
14831
|
-
import { z as
|
|
14854
|
+
import { z as z373 } from "zod";
|
|
14832
14855
|
|
|
14833
14856
|
// src/yjs/utils/key-value-storage.ts
|
|
14834
14857
|
import { YKeyValue } from "y-utility/y-keyvalue";
|
|
@@ -15445,24 +15468,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
15445
15468
|
};
|
|
15446
15469
|
|
|
15447
15470
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
15448
|
-
var DocumentationHierarchySettings =
|
|
15449
|
-
routingVersion:
|
|
15450
|
-
isDraftFeatureAdopted:
|
|
15451
|
-
isApprovalFeatureEnabled:
|
|
15452
|
-
approvalRequiredForPublishing:
|
|
15471
|
+
var DocumentationHierarchySettings = z373.object({
|
|
15472
|
+
routingVersion: z373.string(),
|
|
15473
|
+
isDraftFeatureAdopted: z373.boolean(),
|
|
15474
|
+
isApprovalFeatureEnabled: z373.boolean(),
|
|
15475
|
+
approvalRequiredForPublishing: z373.boolean()
|
|
15453
15476
|
});
|
|
15454
15477
|
function yjsToDocumentationHierarchy(doc) {
|
|
15455
15478
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
15456
15479
|
}
|
|
15457
15480
|
|
|
15458
15481
|
// src/yjs/design-system-content/item-configuration.ts
|
|
15459
|
-
import { z as
|
|
15460
|
-
var DTODocumentationPageRoomHeaderData =
|
|
15461
|
-
title:
|
|
15482
|
+
import { z as z374 } from "zod";
|
|
15483
|
+
var DTODocumentationPageRoomHeaderData = z374.object({
|
|
15484
|
+
title: z374.string(),
|
|
15462
15485
|
configuration: DTODocumentationItemConfigurationV2
|
|
15463
15486
|
});
|
|
15464
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
15465
|
-
title:
|
|
15487
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z374.object({
|
|
15488
|
+
title: z374.string().optional(),
|
|
15466
15489
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
15467
15490
|
});
|
|
15468
15491
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -15497,9 +15520,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
15497
15520
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
15498
15521
|
|
|
15499
15522
|
// src/yjs/docs-editor/model/page.ts
|
|
15500
|
-
import { z as
|
|
15501
|
-
var DocumentationPageEditorModel =
|
|
15502
|
-
blocks:
|
|
15523
|
+
import { z as z375 } from "zod";
|
|
15524
|
+
var DocumentationPageEditorModel = z375.object({
|
|
15525
|
+
blocks: z375.array(DocumentationPageContentItem)
|
|
15503
15526
|
});
|
|
15504
15527
|
|
|
15505
15528
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -19176,7 +19199,7 @@ var blocks = [
|
|
|
19176
19199
|
|
|
19177
19200
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
19178
19201
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
19179
|
-
import { z as
|
|
19202
|
+
import { z as z376 } from "zod";
|
|
19180
19203
|
function yDocToPage(yDoc, definitions) {
|
|
19181
19204
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
19182
19205
|
}
|
|
@@ -19252,7 +19275,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
19252
19275
|
if (!id) return null;
|
|
19253
19276
|
return {
|
|
19254
19277
|
id,
|
|
19255
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
19278
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z376.string()) ?? "",
|
|
19256
19279
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
19257
19280
|
};
|
|
19258
19281
|
}
|
|
@@ -19286,7 +19309,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
19286
19309
|
});
|
|
19287
19310
|
}
|
|
19288
19311
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
19289
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
19312
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z376.string());
|
|
19290
19313
|
if (!definitionId) {
|
|
19291
19314
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
19292
19315
|
return [];
|
|
@@ -19327,7 +19350,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
19327
19350
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
19328
19351
|
if (!id) return null;
|
|
19329
19352
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
19330
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
19353
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z376.string().optional()));
|
|
19331
19354
|
return {
|
|
19332
19355
|
id,
|
|
19333
19356
|
type: "Block",
|
|
@@ -19450,9 +19473,9 @@ function parseRichTextAttribute(mark) {
|
|
|
19450
19473
|
return null;
|
|
19451
19474
|
}
|
|
19452
19475
|
function parseProsemirrorLink(mark) {
|
|
19453
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
19476
|
+
const href = getProsemirrorAttribute(mark, "href", z376.string().optional());
|
|
19454
19477
|
if (!href) return null;
|
|
19455
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
19478
|
+
const target = getProsemirrorAttribute(mark, "target", z376.string().optional());
|
|
19456
19479
|
const openInNewTab = target === "_blank";
|
|
19457
19480
|
if (href.startsWith("@")) {
|
|
19458
19481
|
return {
|
|
@@ -19471,9 +19494,9 @@ function parseProsemirrorLink(mark) {
|
|
|
19471
19494
|
}
|
|
19472
19495
|
}
|
|
19473
19496
|
function parseProsemirrorCommentHighlight(mark) {
|
|
19474
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
19497
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z376.string().optional());
|
|
19475
19498
|
if (!highlightId) return null;
|
|
19476
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
19499
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z376.boolean().optional()) ?? false;
|
|
19477
19500
|
return {
|
|
19478
19501
|
type: "Comment",
|
|
19479
19502
|
commentHighlightId: highlightId,
|
|
@@ -19484,7 +19507,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
19484
19507
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
19485
19508
|
if (!id) return null;
|
|
19486
19509
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
19487
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
19510
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z376.boolean().optional()) !== false;
|
|
19488
19511
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
19489
19512
|
if (!tableChild) {
|
|
19490
19513
|
return emptyTable(id, variantId, 0);
|
|
@@ -19530,9 +19553,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
19530
19553
|
function parseAsTableCell(prosemirrorNode) {
|
|
19531
19554
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
19532
19555
|
if (!id) return null;
|
|
19533
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
19556
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z376.string().optional());
|
|
19534
19557
|
let columnWidth;
|
|
19535
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
19558
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z376.array(z376.number()).nullish());
|
|
19536
19559
|
if (columnWidthArray) {
|
|
19537
19560
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
19538
19561
|
}
|
|
@@ -19568,7 +19591,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
19568
19591
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
19569
19592
|
};
|
|
19570
19593
|
case "image":
|
|
19571
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
19594
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z376.string());
|
|
19572
19595
|
if (!items) return null;
|
|
19573
19596
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
19574
19597
|
if (!parsedItems.success) return null;
|
|
@@ -19682,7 +19705,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
19682
19705
|
);
|
|
19683
19706
|
}
|
|
19684
19707
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
19685
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
19708
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z376.string());
|
|
19686
19709
|
if (!itemsString) return null;
|
|
19687
19710
|
const itemsJson = JSON.parse(itemsString);
|
|
19688
19711
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -19693,18 +19716,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
19693
19716
|
}
|
|
19694
19717
|
function parseAppearance(prosemirrorNode) {
|
|
19695
19718
|
let appearance = {};
|
|
19696
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
19719
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z376.string().optional());
|
|
19697
19720
|
if (rawAppearanceString) {
|
|
19698
19721
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
19699
19722
|
if (parsedAppearance.success) {
|
|
19700
19723
|
appearance = parsedAppearance.data;
|
|
19701
19724
|
}
|
|
19702
19725
|
}
|
|
19703
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
19726
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z376.number().optional());
|
|
19704
19727
|
if (columns) {
|
|
19705
19728
|
appearance.numberOfColumns = columns;
|
|
19706
19729
|
}
|
|
19707
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
19730
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z376.string().optional());
|
|
19708
19731
|
if (backgroundColor) {
|
|
19709
19732
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
19710
19733
|
if (parsedColor.success) {
|
|
@@ -19805,12 +19828,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
19805
19828
|
}
|
|
19806
19829
|
}
|
|
19807
19830
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
19808
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
19831
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z376.string());
|
|
19809
19832
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
19810
19833
|
return id;
|
|
19811
19834
|
}
|
|
19812
19835
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
19813
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
19836
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z376.string()));
|
|
19814
19837
|
}
|
|
19815
19838
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
19816
19839
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -21061,6 +21084,8 @@ export {
|
|
|
21061
21084
|
DTODocumentationAnalyticsRequest,
|
|
21062
21085
|
DTODocumentationAnalyticsTimeFrame,
|
|
21063
21086
|
DTODocumentationAnalyticsTimeFrameComparison,
|
|
21087
|
+
DTODocumentationConfiguration,
|
|
21088
|
+
DTODocumentationConfigurationResponse,
|
|
21064
21089
|
DTODocumentationDraftChangeType,
|
|
21065
21090
|
DTODocumentationDraftState,
|
|
21066
21091
|
DTODocumentationDraftStateCreated,
|