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