@supernova-studio/client 1.74.4 → 1.75.0
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 +141354 -141348
- package/dist/index.d.ts +141354 -141348
- package/dist/index.js +329 -326
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +395 -392
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7173,6 +7173,7 @@ var DTOBffUploadImportRequestBody = z237.object({
|
|
|
7173
7173
|
sourceName: z237.string().optional(),
|
|
7174
7174
|
remoteId: z237.string(),
|
|
7175
7175
|
isTokenTypeSplitEnabled: z237.boolean().optional(),
|
|
7176
|
+
version: z237.string().optional(),
|
|
7176
7177
|
payload: z237.any()
|
|
7177
7178
|
});
|
|
7178
7179
|
var DTOBffImportRequestBody = z237.discriminatedUnion("type", [
|
|
@@ -10062,8 +10063,8 @@ var DTOForgeMemoryEntryListQuery = z320.object({
|
|
|
10062
10063
|
projectId: z320.string()
|
|
10063
10064
|
});
|
|
10064
10065
|
|
|
10065
|
-
// src/api/dto/forge/project.ts
|
|
10066
|
-
import
|
|
10066
|
+
// src/api/dto/forge/project-action.ts
|
|
10067
|
+
import z325 from "zod";
|
|
10067
10068
|
|
|
10068
10069
|
// src/api/dto/forge/project-artifact.ts
|
|
10069
10070
|
import { z as z323 } from "zod";
|
|
@@ -10308,24 +10309,166 @@ var DTOForgeProjectArtifactContentResponse = z323.object({
|
|
|
10308
10309
|
content: ForgeProjectArtifactContentData
|
|
10309
10310
|
});
|
|
10310
10311
|
|
|
10312
|
+
// src/api/dto/forge/project-feature.ts
|
|
10313
|
+
import z324 from "zod";
|
|
10314
|
+
var DTOFeaturePublishedStateUpdateInput = FeaturePublishedState.pick({
|
|
10315
|
+
iterationId: true,
|
|
10316
|
+
hideSupernovaUI: true,
|
|
10317
|
+
visibility: true
|
|
10318
|
+
});
|
|
10319
|
+
var DTOForgeProjectFeature = ProjectFeature;
|
|
10320
|
+
var DTOForgeProjectPublishedFeature = z324.object({
|
|
10321
|
+
featureName: z324.string(),
|
|
10322
|
+
iterationName: z324.string(),
|
|
10323
|
+
hideSupernovaUI: z324.boolean(),
|
|
10324
|
+
thumbnailUrl: z324.string().optional(),
|
|
10325
|
+
staticPreviewUrl: z324.string().optional(),
|
|
10326
|
+
// These are only included when authenticated user has access to the project (for both public & private published features)
|
|
10327
|
+
projectId: z324.string().optional(),
|
|
10328
|
+
projectName: z324.string().optional(),
|
|
10329
|
+
workspaceId: z324.string().optional()
|
|
10330
|
+
});
|
|
10331
|
+
var DTOForgeProjectPublishedFeatureGetResponse = z324.object({
|
|
10332
|
+
publishedFeature: DTOForgeProjectPublishedFeature
|
|
10333
|
+
});
|
|
10334
|
+
var DTOForgeProjectFeatureListResponse = z324.object({
|
|
10335
|
+
features: DTOForgeProjectFeature.array()
|
|
10336
|
+
});
|
|
10337
|
+
var DTOForgeProjectFeatureGetResponse = z324.object({
|
|
10338
|
+
feature: DTOForgeProjectFeature
|
|
10339
|
+
});
|
|
10340
|
+
var DTOForgeProjectFeatureCreateInput = z324.object({
|
|
10341
|
+
id: Id,
|
|
10342
|
+
name: z324.string().optional(),
|
|
10343
|
+
description: z324.string(),
|
|
10344
|
+
sectionId: Id.optional(),
|
|
10345
|
+
afterFeatureId: Id.nullable().optional(),
|
|
10346
|
+
initialMessage: DTOThreadMessageCreateInput
|
|
10347
|
+
});
|
|
10348
|
+
var DTOForgeProjectFeatureUpdateInput = z324.object({
|
|
10349
|
+
id: Id,
|
|
10350
|
+
name: z324.string().optional(),
|
|
10351
|
+
description: z324.string().optional(),
|
|
10352
|
+
isArchived: z324.boolean().optional(),
|
|
10353
|
+
status: ProjectFeatureStatus.optional(),
|
|
10354
|
+
/**
|
|
10355
|
+
* Sending null will result in feature unpublish
|
|
10356
|
+
*/
|
|
10357
|
+
publishedState: DTOFeaturePublishedStateUpdateInput.nullish()
|
|
10358
|
+
});
|
|
10359
|
+
var DTOForgeProjectFeatureDeleteInput = z324.object({
|
|
10360
|
+
id: Id
|
|
10361
|
+
});
|
|
10362
|
+
var DTOForgeProjectFeatureGetByIdParam = z324.object({
|
|
10363
|
+
id: Id
|
|
10364
|
+
});
|
|
10365
|
+
var DTOFeatureArtifactListQuery = z324.object({
|
|
10366
|
+
messageId: z324.string().optional(),
|
|
10367
|
+
iterationId: z324.string().optional()
|
|
10368
|
+
});
|
|
10369
|
+
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
10370
|
+
|
|
10371
|
+
// src/api/dto/forge/project-action.ts
|
|
10372
|
+
var DTOForgeProjectActionFeatureCreate = z325.object({
|
|
10373
|
+
type: z325.literal("FeatureCreate"),
|
|
10374
|
+
input: DTOForgeProjectFeatureCreateInput
|
|
10375
|
+
});
|
|
10376
|
+
var DTOForgeProjectActionFeatureUpdate = z325.object({
|
|
10377
|
+
type: z325.literal("FeatureUpdate"),
|
|
10378
|
+
input: DTOForgeProjectFeatureUpdateInput
|
|
10379
|
+
});
|
|
10380
|
+
var DTOForgeProjectActionFeatureMove = z325.object({
|
|
10381
|
+
type: z325.literal("FeatureMove"),
|
|
10382
|
+
input: DTOForgeProjectFeatureMoveInput
|
|
10383
|
+
});
|
|
10384
|
+
var DTOForgeProjectActionFeatureDelete = z325.object({
|
|
10385
|
+
type: z325.literal("FeatureDelete"),
|
|
10386
|
+
input: DTOForgeProjectFeatureDeleteInput
|
|
10387
|
+
});
|
|
10388
|
+
var DTOForgeProjectActionArtifactCreate = z325.object({
|
|
10389
|
+
type: z325.literal("ArtifactCreate"),
|
|
10390
|
+
input: DTOForgeProjectArtifactCreateInput
|
|
10391
|
+
});
|
|
10392
|
+
var DTOForgeProjectActionArtifactUpdate = z325.object({
|
|
10393
|
+
type: z325.literal("ArtifactUpdate"),
|
|
10394
|
+
input: DTOForgeProjectArtifactUpdateInput
|
|
10395
|
+
});
|
|
10396
|
+
var DTOForgeProjectActionArtifactDelete = z325.object({
|
|
10397
|
+
type: z325.literal("ArtifactDelete"),
|
|
10398
|
+
input: DTOForgeProjectArtifactDeleteInput
|
|
10399
|
+
});
|
|
10400
|
+
var DTOForgeProjectActionArtifactMove = z325.object({
|
|
10401
|
+
type: z325.literal("ArtifactMove"),
|
|
10402
|
+
input: DTOForgeProjectArtifactMoveInput
|
|
10403
|
+
});
|
|
10404
|
+
var DTOForgeProjectActionSectionCreate = z325.object({
|
|
10405
|
+
type: z325.literal("SectionCreate"),
|
|
10406
|
+
input: DTOForgeSectionCreateInput
|
|
10407
|
+
});
|
|
10408
|
+
var DTOForgeProjectActionSectionUpdate = z325.object({
|
|
10409
|
+
type: z325.literal("SectionUpdate"),
|
|
10410
|
+
input: DTOForgeSectionUpdateInput
|
|
10411
|
+
});
|
|
10412
|
+
var DTOForgeProjectActionSectionDelete = z325.object({
|
|
10413
|
+
type: z325.literal("SectionDelete"),
|
|
10414
|
+
input: DTOForgeSectionDeleteInput
|
|
10415
|
+
});
|
|
10416
|
+
var DTOForgeProjectActionSectionMove = z325.object({
|
|
10417
|
+
type: z325.literal("SectionMove"),
|
|
10418
|
+
input: DTOForgeSectionMoveInput
|
|
10419
|
+
});
|
|
10420
|
+
var DTOForgeProjectAction = z325.discriminatedUnion("type", [
|
|
10421
|
+
//features
|
|
10422
|
+
DTOForgeProjectActionFeatureCreate,
|
|
10423
|
+
DTOForgeProjectActionFeatureUpdate,
|
|
10424
|
+
DTOForgeProjectActionFeatureDelete,
|
|
10425
|
+
DTOForgeProjectActionFeatureMove,
|
|
10426
|
+
//artifacts
|
|
10427
|
+
DTOForgeProjectActionArtifactCreate,
|
|
10428
|
+
DTOForgeProjectActionArtifactUpdate,
|
|
10429
|
+
DTOForgeProjectActionArtifactDelete,
|
|
10430
|
+
DTOForgeProjectActionArtifactMove,
|
|
10431
|
+
//section
|
|
10432
|
+
DTOForgeProjectActionSectionCreate,
|
|
10433
|
+
DTOForgeProjectActionSectionUpdate,
|
|
10434
|
+
DTOForgeProjectActionSectionDelete,
|
|
10435
|
+
DTOForgeProjectActionSectionMove
|
|
10436
|
+
]).and(
|
|
10437
|
+
z325.object({
|
|
10438
|
+
tId: z325.string().optional()
|
|
10439
|
+
})
|
|
10440
|
+
);
|
|
10441
|
+
|
|
10442
|
+
// src/api/dto/forge/project-artifact-room.ts
|
|
10443
|
+
import { z as z326 } from "zod";
|
|
10444
|
+
var DTOForgeProjectArtifactRoom = z326.object({
|
|
10445
|
+
id: z326.string()
|
|
10446
|
+
});
|
|
10447
|
+
var DTOForgeProjectArtifactRoomResponse = z326.object({
|
|
10448
|
+
room: DTOForgeProjectArtifactRoom
|
|
10449
|
+
});
|
|
10450
|
+
|
|
10451
|
+
// src/api/dto/forge/project-context-override.ts
|
|
10452
|
+
import z328 from "zod";
|
|
10453
|
+
|
|
10311
10454
|
// src/api/dto/forge/project-context-v2.ts
|
|
10312
|
-
import { z as
|
|
10313
|
-
var DTOForgeComponentSetTypeV2 =
|
|
10314
|
-
var DTOForgeComponentSet =
|
|
10455
|
+
import { z as z327 } from "zod";
|
|
10456
|
+
var DTOForgeComponentSetTypeV2 = z327.enum(["Shadcn"]);
|
|
10457
|
+
var DTOForgeComponentSet = z327.object({
|
|
10315
10458
|
type: DTOForgeComponentSetTypeV2
|
|
10316
10459
|
});
|
|
10317
|
-
var DTOForgeIconSetTypeV2 =
|
|
10318
|
-
var DTOForgeThemeKnownPreset =
|
|
10319
|
-
var DTOForgeIconSet =
|
|
10460
|
+
var DTOForgeIconSetTypeV2 = z327.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
10461
|
+
var DTOForgeThemeKnownPreset = z327.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
|
|
10462
|
+
var DTOForgeIconSet = z327.object({
|
|
10320
10463
|
type: DTOForgeIconSetTypeV2,
|
|
10321
|
-
variant:
|
|
10464
|
+
variant: z327.string().optional()
|
|
10322
10465
|
});
|
|
10323
|
-
var DTOForgeTokenThemeSet =
|
|
10324
|
-
id:
|
|
10325
|
-
name:
|
|
10326
|
-
tokenThemeIds:
|
|
10466
|
+
var DTOForgeTokenThemeSet = z327.object({
|
|
10467
|
+
id: z327.string(),
|
|
10468
|
+
name: z327.string(),
|
|
10469
|
+
tokenThemeIds: z327.array(z327.string())
|
|
10327
10470
|
});
|
|
10328
|
-
var DTOForgeProjectTheme =
|
|
10471
|
+
var DTOForgeProjectTheme = z327.object({
|
|
10329
10472
|
// Colors
|
|
10330
10473
|
background: ColorTokenData,
|
|
10331
10474
|
foreground: ColorTokenData,
|
|
@@ -10410,28 +10553,28 @@ var DTOForgeProjectTheme = z324.object({
|
|
|
10410
10553
|
shadowXl: ShadowTokenData,
|
|
10411
10554
|
shadow2xl: ShadowTokenData
|
|
10412
10555
|
});
|
|
10413
|
-
var DTOForgeProjectContextV2 =
|
|
10414
|
-
id:
|
|
10415
|
-
name:
|
|
10416
|
-
workspaceId:
|
|
10417
|
-
designSystemId:
|
|
10418
|
-
brandId:
|
|
10419
|
-
defaultTokenThemeSetId:
|
|
10420
|
-
description:
|
|
10421
|
-
productContext:
|
|
10422
|
-
additionalContext:
|
|
10423
|
-
isArchived:
|
|
10424
|
-
themePreset:
|
|
10425
|
-
tokenThemeSets:
|
|
10556
|
+
var DTOForgeProjectContextV2 = z327.object({
|
|
10557
|
+
id: z327.string(),
|
|
10558
|
+
name: z327.string(),
|
|
10559
|
+
workspaceId: z327.string(),
|
|
10560
|
+
designSystemId: z327.string().optional(),
|
|
10561
|
+
brandId: z327.string().optional(),
|
|
10562
|
+
defaultTokenThemeSetId: z327.string().optional(),
|
|
10563
|
+
description: z327.string().optional(),
|
|
10564
|
+
productContext: z327.string().optional(),
|
|
10565
|
+
additionalContext: z327.string().optional(),
|
|
10566
|
+
isArchived: z327.boolean(),
|
|
10567
|
+
themePreset: z327.string().optional(),
|
|
10568
|
+
tokenThemeSets: z327.array(DTOForgeTokenThemeSet).optional(),
|
|
10426
10569
|
componentSet: DTOForgeComponentSet,
|
|
10427
10570
|
iconSet: DTOForgeIconSet,
|
|
10428
10571
|
theme: DTOForgeProjectTheme,
|
|
10429
|
-
createdAt:
|
|
10430
|
-
updatedAt:
|
|
10572
|
+
createdAt: z327.coerce.date(),
|
|
10573
|
+
updatedAt: z327.coerce.date(),
|
|
10431
10574
|
thumbnail: DTOFileReference.optional(),
|
|
10432
|
-
sandboxTemplate:
|
|
10433
|
-
id:
|
|
10434
|
-
version:
|
|
10575
|
+
sandboxTemplate: z327.object({
|
|
10576
|
+
id: z327.string(),
|
|
10577
|
+
version: z327.string()
|
|
10435
10578
|
}).optional()
|
|
10436
10579
|
});
|
|
10437
10580
|
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
@@ -10441,7 +10584,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10441
10584
|
isArchived: true,
|
|
10442
10585
|
thumbnail: true
|
|
10443
10586
|
}).extend({
|
|
10444
|
-
thumbnailFileId:
|
|
10587
|
+
thumbnailFileId: z327.string().optional()
|
|
10445
10588
|
});
|
|
10446
10589
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
10447
10590
|
id: true,
|
|
@@ -10450,300 +10593,60 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10450
10593
|
updatedAt: true,
|
|
10451
10594
|
thumbnail: true
|
|
10452
10595
|
}).partial().extend({
|
|
10453
|
-
thumbnailFileId:
|
|
10454
|
-
});
|
|
10455
|
-
var DTOForgeProjectContextResponseV2 = z324.object({ context: DTOForgeProjectContextV2 });
|
|
10456
|
-
var DTOForgeProjectContextListQueryV2 = z324.object({
|
|
10457
|
-
workspaceId: z324.string(),
|
|
10458
|
-
isArchived: zodQueryBoolean()
|
|
10459
|
-
});
|
|
10460
|
-
var DTOForgeProjectContextListResponseV2 = z324.object({ contexts: z324.array(DTOForgeProjectContextV2) });
|
|
10461
|
-
|
|
10462
|
-
// src/api/dto/forge/project-feature.ts
|
|
10463
|
-
import z325 from "zod";
|
|
10464
|
-
var DTOFeaturePublishedStateUpdateInput = FeaturePublishedState.pick({
|
|
10465
|
-
iterationId: true,
|
|
10466
|
-
hideSupernovaUI: true,
|
|
10467
|
-
visibility: true
|
|
10468
|
-
});
|
|
10469
|
-
var DTOForgeProjectFeature = ProjectFeature;
|
|
10470
|
-
var DTOForgeProjectPublishedFeature = z325.object({
|
|
10471
|
-
featureName: z325.string(),
|
|
10472
|
-
iterationName: z325.string(),
|
|
10473
|
-
hideSupernovaUI: z325.boolean(),
|
|
10474
|
-
thumbnailUrl: z325.string().optional(),
|
|
10475
|
-
staticPreviewUrl: z325.string().optional(),
|
|
10476
|
-
// These are only included when authenticated user has access to the project (for both public & private published features)
|
|
10477
|
-
projectId: z325.string().optional(),
|
|
10478
|
-
projectName: z325.string().optional(),
|
|
10479
|
-
workspaceId: z325.string().optional()
|
|
10480
|
-
});
|
|
10481
|
-
var DTOForgeProjectPublishedFeatureGetResponse = z325.object({
|
|
10482
|
-
publishedFeature: DTOForgeProjectPublishedFeature
|
|
10596
|
+
thumbnailFileId: z327.string().nullish()
|
|
10483
10597
|
});
|
|
10484
|
-
var
|
|
10485
|
-
|
|
10486
|
-
});
|
|
10487
|
-
var DTOForgeProjectFeatureGetResponse = z325.object({
|
|
10488
|
-
feature: DTOForgeProjectFeature
|
|
10489
|
-
});
|
|
10490
|
-
var DTOForgeProjectFeatureCreateInput = z325.object({
|
|
10491
|
-
id: Id,
|
|
10492
|
-
name: z325.string().optional(),
|
|
10493
|
-
description: z325.string(),
|
|
10494
|
-
sectionId: Id.optional(),
|
|
10495
|
-
afterFeatureId: Id.nullable().optional(),
|
|
10496
|
-
initialMessage: DTOThreadMessageCreateInput
|
|
10497
|
-
});
|
|
10498
|
-
var DTOForgeProjectFeatureUpdateInput = z325.object({
|
|
10499
|
-
id: Id,
|
|
10500
|
-
name: z325.string().optional(),
|
|
10501
|
-
description: z325.string().optional(),
|
|
10502
|
-
isArchived: z325.boolean().optional(),
|
|
10503
|
-
status: ProjectFeatureStatus.optional(),
|
|
10504
|
-
/**
|
|
10505
|
-
* Sending null will result in feature unpublish
|
|
10506
|
-
*/
|
|
10507
|
-
publishedState: DTOFeaturePublishedStateUpdateInput.nullish()
|
|
10508
|
-
});
|
|
10509
|
-
var DTOForgeProjectFeatureDeleteInput = z325.object({
|
|
10510
|
-
id: Id
|
|
10511
|
-
});
|
|
10512
|
-
var DTOForgeProjectFeatureGetByIdParam = z325.object({
|
|
10513
|
-
id: Id
|
|
10514
|
-
});
|
|
10515
|
-
var DTOFeatureArtifactListQuery = z325.object({
|
|
10516
|
-
messageId: z325.string().optional(),
|
|
10517
|
-
iterationId: z325.string().optional()
|
|
10518
|
-
});
|
|
10519
|
-
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
10520
|
-
|
|
10521
|
-
// src/api/dto/forge/project-invitation.ts
|
|
10522
|
-
import { z as z326 } from "zod";
|
|
10523
|
-
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
10524
|
-
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10525
|
-
email: true,
|
|
10526
|
-
role: true
|
|
10527
|
-
});
|
|
10528
|
-
var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
10529
|
-
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10530
|
-
email: true
|
|
10531
|
-
});
|
|
10532
|
-
var DTOForgeProjectInvitationsListResponse = z326.object({
|
|
10533
|
-
invitations: z326.array(DTOForgeProjectInvitation)
|
|
10534
|
-
});
|
|
10535
|
-
var DTOForgeProjectInvitationGetResponse = z326.object({
|
|
10536
|
-
invitation: DTOForgeProjectInvitation
|
|
10537
|
-
});
|
|
10538
|
-
var DTOForgeProjectInvitationCreateResponse = z326.object({
|
|
10539
|
-
invitation: DTOForgeProjectInvitation
|
|
10540
|
-
});
|
|
10541
|
-
var DTOForgeProjectInvitationUpdateResponse = z326.object({
|
|
10542
|
-
invitation: DTOForgeProjectInvitation.nullable()
|
|
10543
|
-
});
|
|
10544
|
-
var DTOForgeProjectInvitationRemoveResponse = z326.object({
|
|
10545
|
-
ok: z326.literal(true)
|
|
10546
|
-
});
|
|
10547
|
-
|
|
10548
|
-
// src/api/dto/forge/project.ts
|
|
10549
|
-
var DTOForgeProjectRole = ForgeProjectRole;
|
|
10550
|
-
var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
|
|
10551
|
-
var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
|
|
10552
|
-
var DTOForgeProjectDocumentPreview = z327.object({
|
|
10553
|
-
id: z327.string(),
|
|
10554
|
-
title: z327.string(),
|
|
10555
|
-
thumbnail: DTOFileReference.optional(),
|
|
10556
|
-
createdAt: z327.string(),
|
|
10557
|
-
updatedAt: z327.string()
|
|
10558
|
-
});
|
|
10559
|
-
var DTOForgeProjectFeaturePreview = z327.object({
|
|
10560
|
-
id: z327.string(),
|
|
10561
|
-
name: z327.string(),
|
|
10562
|
-
thumbnail: DTOFileReference.optional(),
|
|
10563
|
-
isPublished: z327.boolean().optional(),
|
|
10564
|
-
isArchived: z327.boolean().optional(),
|
|
10565
|
-
createdAt: z327.string(),
|
|
10566
|
-
updatedAt: z327.string()
|
|
10567
|
-
});
|
|
10568
|
-
var DTOForgeProject = z327.object({
|
|
10569
|
-
id: z327.string(),
|
|
10598
|
+
var DTOForgeProjectContextResponseV2 = z327.object({ context: DTOForgeProjectContextV2 });
|
|
10599
|
+
var DTOForgeProjectContextListQueryV2 = z327.object({
|
|
10570
10600
|
workspaceId: z327.string(),
|
|
10571
|
-
|
|
10572
|
-
name: z327.string(),
|
|
10573
|
-
description: z327.string().optional(),
|
|
10574
|
-
instruction: z327.string().nullable(),
|
|
10575
|
-
tags: z327.array(z327.string()).default([]),
|
|
10576
|
-
accessMode: DTOForgeProjectAccessMode,
|
|
10577
|
-
defaultRole: DTOForgeProjectDefaultRole,
|
|
10578
|
-
isArchived: z327.boolean(),
|
|
10579
|
-
emoji: z327.string().optional(),
|
|
10580
|
-
tokenThemeSetId: z327.string().optional(),
|
|
10581
|
-
createdAt: z327.coerce.date(),
|
|
10582
|
-
createdByUserId: z327.string().optional(),
|
|
10583
|
-
lastUserActivityAt: z327.coerce.date().optional(),
|
|
10584
|
-
updatedAt: z327.coerce.date(),
|
|
10585
|
-
documents: DTOForgeProjectDocumentPreview.array(),
|
|
10586
|
-
features: DTOForgeProjectFeaturePreview.array(),
|
|
10587
|
-
/** @deprecated use `projectContextId` */
|
|
10588
|
-
fpContextId: z327.string(),
|
|
10589
|
-
/** @deprecated use `name` and `description` properties on project */
|
|
10590
|
-
meta: z327.object({
|
|
10591
|
-
name: z327.string(),
|
|
10592
|
-
description: z327.string().optional()
|
|
10593
|
-
}),
|
|
10594
|
-
/** @deprecated use features.length */
|
|
10595
|
-
numberOfFeatures: z327.number().int().nonnegative(),
|
|
10596
|
-
/** @deprecated use documents.length */
|
|
10597
|
-
numberOfDocuments: z327.number().int().nonnegative().optional(),
|
|
10598
|
-
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
10599
|
-
context: DTOForgeProjectContextV2.optional(),
|
|
10600
|
-
liveblocksRoomId: z327.string().optional()
|
|
10601
|
-
});
|
|
10602
|
-
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
10603
|
-
name: true,
|
|
10604
|
-
description: true,
|
|
10605
|
-
instruction: true,
|
|
10606
|
-
tags: true,
|
|
10607
|
-
emoji: true,
|
|
10608
|
-
tokenThemeSetId: true
|
|
10609
|
-
}).extend({
|
|
10610
|
-
/** @deprecated use `name` and `description` properties on project */
|
|
10611
|
-
meta: DTOForgeProject.shape.meta.optional(),
|
|
10612
|
-
/** @deprecated use `projectContextId` */
|
|
10613
|
-
fpContextId: z327.string().optional(),
|
|
10614
|
-
projectContextId: z327.string().optional(),
|
|
10615
|
-
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
10616
|
-
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
10617
|
-
initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
|
|
10618
|
-
accessMode: DTOForgeProjectAccessMode.optional(),
|
|
10619
|
-
defaultRole: DTOForgeProjectDefaultRole.optional()
|
|
10620
|
-
});
|
|
10621
|
-
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
10622
|
-
id: z327.string(),
|
|
10623
|
-
isArchived: z327.boolean().optional()
|
|
10624
|
-
});
|
|
10625
|
-
var DTOForgeProjectListResponse = z327.object({
|
|
10626
|
-
projects: z327.array(
|
|
10627
|
-
DTOForgeProject.extend({
|
|
10628
|
-
effectiveRole: DTOForgeProjectRole
|
|
10629
|
-
})
|
|
10630
|
-
)
|
|
10631
|
-
});
|
|
10632
|
-
var DTOForgeProjectResponse = z327.object({
|
|
10633
|
-
project: DTOForgeProject.extend({
|
|
10634
|
-
effectiveRole: DTOForgeProjectRole
|
|
10635
|
-
})
|
|
10601
|
+
isArchived: zodQueryBoolean()
|
|
10636
10602
|
});
|
|
10603
|
+
var DTOForgeProjectContextListResponseV2 = z327.object({ contexts: z327.array(DTOForgeProjectContextV2) });
|
|
10637
10604
|
|
|
10638
|
-
// src/api/dto/forge/project-
|
|
10639
|
-
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
});
|
|
10644
|
-
var DTOForgeProjectActionFeatureUpdate = z328.object({
|
|
10645
|
-
type: z328.literal("FeatureUpdate"),
|
|
10646
|
-
input: DTOForgeProjectFeatureUpdateInput
|
|
10647
|
-
});
|
|
10648
|
-
var DTOForgeProjectActionFeatureMove = z328.object({
|
|
10649
|
-
type: z328.literal("FeatureMove"),
|
|
10650
|
-
input: DTOForgeProjectFeatureMoveInput
|
|
10651
|
-
});
|
|
10652
|
-
var DTOForgeProjectActionFeatureDelete = z328.object({
|
|
10653
|
-
type: z328.literal("FeatureDelete"),
|
|
10654
|
-
input: DTOForgeProjectFeatureDeleteInput
|
|
10655
|
-
});
|
|
10656
|
-
var DTOForgeProjectActionArtifactCreate = z328.object({
|
|
10657
|
-
type: z328.literal("ArtifactCreate"),
|
|
10658
|
-
input: DTOForgeProjectArtifactCreateInput
|
|
10659
|
-
});
|
|
10660
|
-
var DTOForgeProjectActionArtifactUpdate = z328.object({
|
|
10661
|
-
type: z328.literal("ArtifactUpdate"),
|
|
10662
|
-
input: DTOForgeProjectArtifactUpdateInput
|
|
10663
|
-
});
|
|
10664
|
-
var DTOForgeProjectActionArtifactDelete = z328.object({
|
|
10665
|
-
type: z328.literal("ArtifactDelete"),
|
|
10666
|
-
input: DTOForgeProjectArtifactDeleteInput
|
|
10667
|
-
});
|
|
10668
|
-
var DTOForgeProjectActionArtifactMove = z328.object({
|
|
10669
|
-
type: z328.literal("ArtifactMove"),
|
|
10670
|
-
input: DTOForgeProjectArtifactMoveInput
|
|
10671
|
-
});
|
|
10672
|
-
var DTOForgeProjectActionSectionCreate = z328.object({
|
|
10673
|
-
type: z328.literal("SectionCreate"),
|
|
10674
|
-
input: DTOForgeSectionCreateInput
|
|
10675
|
-
});
|
|
10676
|
-
var DTOForgeProjectActionSectionUpdate = z328.object({
|
|
10677
|
-
type: z328.literal("SectionUpdate"),
|
|
10678
|
-
input: DTOForgeSectionUpdateInput
|
|
10679
|
-
});
|
|
10680
|
-
var DTOForgeProjectActionSectionDelete = z328.object({
|
|
10681
|
-
type: z328.literal("SectionDelete"),
|
|
10682
|
-
input: DTOForgeSectionDeleteInput
|
|
10683
|
-
});
|
|
10684
|
-
var DTOForgeProjectActionSectionMove = z328.object({
|
|
10685
|
-
type: z328.literal("SectionMove"),
|
|
10686
|
-
input: DTOForgeSectionMoveInput
|
|
10605
|
+
// src/api/dto/forge/project-context-override.ts
|
|
10606
|
+
var DTOProjectContextOverride = z328.object({
|
|
10607
|
+
projectId: z328.string(),
|
|
10608
|
+
theme: DTOForgeProjectTheme.partial(),
|
|
10609
|
+
themePreset: z328.string().optional()
|
|
10687
10610
|
});
|
|
10688
|
-
var
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
DTOForgeProjectActionFeatureDelete,
|
|
10693
|
-
DTOForgeProjectActionFeatureMove,
|
|
10694
|
-
//artifacts
|
|
10695
|
-
DTOForgeProjectActionArtifactCreate,
|
|
10696
|
-
DTOForgeProjectActionArtifactUpdate,
|
|
10697
|
-
DTOForgeProjectActionArtifactDelete,
|
|
10698
|
-
DTOForgeProjectActionArtifactMove,
|
|
10699
|
-
//section
|
|
10700
|
-
DTOForgeProjectActionSectionCreate,
|
|
10701
|
-
DTOForgeProjectActionSectionUpdate,
|
|
10702
|
-
DTOForgeProjectActionSectionDelete,
|
|
10703
|
-
DTOForgeProjectActionSectionMove
|
|
10704
|
-
]).and(
|
|
10705
|
-
z328.object({
|
|
10706
|
-
tId: z328.string().optional()
|
|
10707
|
-
})
|
|
10708
|
-
);
|
|
10709
|
-
|
|
10710
|
-
// src/api/dto/forge/project-artifact-room.ts
|
|
10711
|
-
import { z as z329 } from "zod";
|
|
10712
|
-
var DTOForgeProjectArtifactRoom = z329.object({
|
|
10713
|
-
id: z329.string()
|
|
10611
|
+
var DTOProjectContextOverrideInput = z328.object({
|
|
10612
|
+
updateSharedContext: z328.boolean().optional(),
|
|
10613
|
+
theme: DTOForgeProjectTheme.partial(),
|
|
10614
|
+
themePreset: z328.string().optional()
|
|
10714
10615
|
});
|
|
10715
|
-
var
|
|
10716
|
-
|
|
10616
|
+
var DTOProjectContextOverrideResponse = z328.object({
|
|
10617
|
+
override: DTOProjectContextOverride,
|
|
10618
|
+
originalContext: DTOForgeProjectContextV2,
|
|
10619
|
+
resolvedContext: DTOForgeProjectContextV2
|
|
10717
10620
|
});
|
|
10718
10621
|
|
|
10719
10622
|
// src/api/dto/forge/project-context.ts
|
|
10720
|
-
import { z as
|
|
10721
|
-
var DTOForgeProjectContext =
|
|
10722
|
-
definition:
|
|
10723
|
-
dependencies:
|
|
10724
|
-
|
|
10725
|
-
packageName:
|
|
10726
|
-
type:
|
|
10727
|
-
version:
|
|
10623
|
+
import { z as z329 } from "zod";
|
|
10624
|
+
var DTOForgeProjectContext = z329.object({
|
|
10625
|
+
definition: z329.string(),
|
|
10626
|
+
dependencies: z329.array(
|
|
10627
|
+
z329.object({
|
|
10628
|
+
packageName: z329.string(),
|
|
10629
|
+
type: z329.literal("npm"),
|
|
10630
|
+
version: z329.string().default("latest")
|
|
10728
10631
|
})
|
|
10729
10632
|
),
|
|
10730
|
-
designSystemId:
|
|
10731
|
-
id:
|
|
10732
|
-
meta:
|
|
10733
|
-
name:
|
|
10734
|
-
description:
|
|
10633
|
+
designSystemId: z329.string(),
|
|
10634
|
+
id: z329.string(),
|
|
10635
|
+
meta: z329.object({
|
|
10636
|
+
name: z329.string(),
|
|
10637
|
+
description: z329.string().optional()
|
|
10735
10638
|
}),
|
|
10736
|
-
name:
|
|
10639
|
+
name: z329.string(),
|
|
10737
10640
|
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10738
|
-
platform:
|
|
10739
|
-
styling:
|
|
10740
|
-
tailwindConfig:
|
|
10741
|
-
content:
|
|
10742
|
-
version:
|
|
10641
|
+
platform: z329.enum(["React", "Vue", "Angular"]),
|
|
10642
|
+
styling: z329.enum(["CSS", "Tailwind"]),
|
|
10643
|
+
tailwindConfig: z329.object({
|
|
10644
|
+
content: z329.string(),
|
|
10645
|
+
version: z329.string()
|
|
10743
10646
|
}).optional(),
|
|
10744
|
-
createdAt:
|
|
10745
|
-
updatedAt:
|
|
10746
|
-
workspaceId:
|
|
10647
|
+
createdAt: z329.coerce.date(),
|
|
10648
|
+
updatedAt: z329.coerce.date(),
|
|
10649
|
+
workspaceId: z329.string()
|
|
10747
10650
|
});
|
|
10748
10651
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
10749
10652
|
definition: true,
|
|
@@ -10755,31 +10658,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
10755
10658
|
tailwindConfig: true,
|
|
10756
10659
|
styling: true
|
|
10757
10660
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10758
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id:
|
|
10759
|
-
var DTOForgeProjectContextGetResponse =
|
|
10760
|
-
var DTOForgeProjectContextListResponse =
|
|
10761
|
-
var DTOForgeProjectContextCreateResponse =
|
|
10762
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
10763
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
10764
|
-
ok:
|
|
10765
|
-
});
|
|
10766
|
-
|
|
10767
|
-
// src/api/dto/forge/project-context-override.ts
|
|
10768
|
-
import z331 from "zod";
|
|
10769
|
-
var DTOProjectContextOverride = z331.object({
|
|
10770
|
-
projectId: z331.string(),
|
|
10771
|
-
theme: DTOForgeProjectTheme.partial(),
|
|
10772
|
-
themePreset: z331.string().optional()
|
|
10773
|
-
});
|
|
10774
|
-
var DTOProjectContextOverrideInput = z331.object({
|
|
10775
|
-
updateSharedContext: z331.boolean().optional(),
|
|
10776
|
-
theme: DTOForgeProjectTheme.partial(),
|
|
10777
|
-
themePreset: z331.string().optional()
|
|
10778
|
-
});
|
|
10779
|
-
var DTOProjectContextOverrideResponse = z331.object({
|
|
10780
|
-
override: DTOProjectContextOverride,
|
|
10781
|
-
originalContext: DTOForgeProjectContextV2,
|
|
10782
|
-
resolvedContext: DTOForgeProjectContextV2
|
|
10661
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z329.string() });
|
|
10662
|
+
var DTOForgeProjectContextGetResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10663
|
+
var DTOForgeProjectContextListResponse = z329.object({ contexts: z329.array(DTOForgeProjectContext) });
|
|
10664
|
+
var DTOForgeProjectContextCreateResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10665
|
+
var DTOForgeProjectContextUpdateResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10666
|
+
var DTOForgeProjectContextRemoveResponse = z329.object({
|
|
10667
|
+
ok: z329.literal(true)
|
|
10783
10668
|
});
|
|
10784
10669
|
|
|
10785
10670
|
// src/api/dto/forge/project-figma-node.ts
|
|
@@ -10787,42 +10672,69 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
|
10787
10672
|
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
10788
10673
|
|
|
10789
10674
|
// src/api/dto/forge/project-file.ts
|
|
10790
|
-
import { z as
|
|
10791
|
-
var DTOForgeProjectFile =
|
|
10792
|
-
id:
|
|
10793
|
-
name:
|
|
10794
|
-
checksum:
|
|
10795
|
-
pendingUpload:
|
|
10796
|
-
url:
|
|
10797
|
-
size:
|
|
10798
|
-
});
|
|
10799
|
-
var DTOForgeProjectFileListResponse =
|
|
10800
|
-
files:
|
|
10801
|
-
});
|
|
10802
|
-
var DTOForgeProjectFileUploadPayloadItem =
|
|
10803
|
-
size:
|
|
10804
|
-
name:
|
|
10805
|
-
checksum:
|
|
10806
|
-
});
|
|
10807
|
-
var DTOForgeProjectFileUploadPayload =
|
|
10808
|
-
files:
|
|
10809
|
-
});
|
|
10810
|
-
var DTOForgeProjectFileUploadResponse =
|
|
10811
|
-
files:
|
|
10812
|
-
uploadUrls:
|
|
10813
|
-
|
|
10814
|
-
fileId:
|
|
10815
|
-
uploadUrl:
|
|
10675
|
+
import { z as z330 } from "zod";
|
|
10676
|
+
var DTOForgeProjectFile = z330.object({
|
|
10677
|
+
id: z330.string(),
|
|
10678
|
+
name: z330.string(),
|
|
10679
|
+
checksum: z330.string(),
|
|
10680
|
+
pendingUpload: z330.boolean().optional(),
|
|
10681
|
+
url: z330.string(),
|
|
10682
|
+
size: z330.number()
|
|
10683
|
+
});
|
|
10684
|
+
var DTOForgeProjectFileListResponse = z330.object({
|
|
10685
|
+
files: z330.array(DTOForgeProjectFile)
|
|
10686
|
+
});
|
|
10687
|
+
var DTOForgeProjectFileUploadPayloadItem = z330.object({
|
|
10688
|
+
size: z330.number(),
|
|
10689
|
+
name: z330.string(),
|
|
10690
|
+
checksum: z330.string()
|
|
10691
|
+
});
|
|
10692
|
+
var DTOForgeProjectFileUploadPayload = z330.object({
|
|
10693
|
+
files: z330.array(DTOForgeProjectFileUploadPayloadItem)
|
|
10694
|
+
});
|
|
10695
|
+
var DTOForgeProjectFileUploadResponse = z330.object({
|
|
10696
|
+
files: z330.array(DTOForgeProjectFile),
|
|
10697
|
+
uploadUrls: z330.array(
|
|
10698
|
+
z330.object({
|
|
10699
|
+
fileId: z330.string(),
|
|
10700
|
+
uploadUrl: z330.string()
|
|
10816
10701
|
})
|
|
10817
10702
|
)
|
|
10818
10703
|
});
|
|
10819
|
-
var DTOForgeProjectFileUploadFinalizePayload =
|
|
10820
|
-
fileIds:
|
|
10704
|
+
var DTOForgeProjectFileUploadFinalizePayload = z330.object({
|
|
10705
|
+
fileIds: z330.array(z330.string())
|
|
10706
|
+
});
|
|
10707
|
+
var DTOForgeProjectFileUploadFinalizeResponse = z330.object({ ok: z330.literal(true) });
|
|
10708
|
+
|
|
10709
|
+
// src/api/dto/forge/project-invitation.ts
|
|
10710
|
+
import { z as z331 } from "zod";
|
|
10711
|
+
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
10712
|
+
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10713
|
+
email: true,
|
|
10714
|
+
role: true
|
|
10715
|
+
});
|
|
10716
|
+
var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
10717
|
+
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10718
|
+
email: true
|
|
10719
|
+
});
|
|
10720
|
+
var DTOForgeProjectInvitationsListResponse = z331.object({
|
|
10721
|
+
invitations: z331.array(DTOForgeProjectInvitation)
|
|
10722
|
+
});
|
|
10723
|
+
var DTOForgeProjectInvitationGetResponse = z331.object({
|
|
10724
|
+
invitation: DTOForgeProjectInvitation
|
|
10725
|
+
});
|
|
10726
|
+
var DTOForgeProjectInvitationCreateResponse = z331.object({
|
|
10727
|
+
invitation: DTOForgeProjectInvitation
|
|
10728
|
+
});
|
|
10729
|
+
var DTOForgeProjectInvitationUpdateResponse = z331.object({
|
|
10730
|
+
invitation: DTOForgeProjectInvitation.nullable()
|
|
10731
|
+
});
|
|
10732
|
+
var DTOForgeProjectInvitationRemoveResponse = z331.object({
|
|
10733
|
+
ok: z331.literal(true)
|
|
10821
10734
|
});
|
|
10822
|
-
var DTOForgeProjectFileUploadFinalizeResponse = z332.object({ ok: z332.literal(true) });
|
|
10823
10735
|
|
|
10824
10736
|
// src/api/dto/forge/project-iteration-old.ts
|
|
10825
|
-
import { z as
|
|
10737
|
+
import { z as z332 } from "zod";
|
|
10826
10738
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
10827
10739
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
10828
10740
|
artifacts: true,
|
|
@@ -10833,7 +10745,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
10833
10745
|
messages: DTOForgeIterationMessage.array(),
|
|
10834
10746
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
10835
10747
|
});
|
|
10836
|
-
var DTOGetForgeProjectIterationResponse =
|
|
10748
|
+
var DTOGetForgeProjectIterationResponse = z332.object({
|
|
10837
10749
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10838
10750
|
});
|
|
10839
10751
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -10843,20 +10755,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
10843
10755
|
mergeMeta: true,
|
|
10844
10756
|
createdAt: true
|
|
10845
10757
|
});
|
|
10846
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
10847
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
10758
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z332.string() });
|
|
10759
|
+
var DTOCreateForgeProjectIterationResponse = z332.object({
|
|
10848
10760
|
iteration: DTOForgeProjectIteration
|
|
10849
10761
|
});
|
|
10850
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
10762
|
+
var DTOUpdateForgeProjectIterationResponse = z332.object({
|
|
10851
10763
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10852
10764
|
});
|
|
10853
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
10854
|
-
ok:
|
|
10765
|
+
var DTODeleteForgeProjectIterationResponse = z332.object({
|
|
10766
|
+
ok: z332.literal(true)
|
|
10855
10767
|
});
|
|
10856
|
-
var DTOForgeProjectIterationListResponse =
|
|
10768
|
+
var DTOForgeProjectIterationListResponse = z332.object({ iterations: z332.array(DTOForgeProjectIteration) });
|
|
10857
10769
|
|
|
10858
10770
|
// src/api/dto/forge/project-member.ts
|
|
10859
|
-
import { z as
|
|
10771
|
+
import { z as z333 } from "zod";
|
|
10860
10772
|
|
|
10861
10773
|
// src/utils/figma.ts
|
|
10862
10774
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
@@ -11039,7 +10951,7 @@ var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
|
11039
10951
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
11040
10952
|
user: DTOUser,
|
|
11041
10953
|
effectiveRole: DTOForgeProjectMemberRole,
|
|
11042
|
-
isDeactivated:
|
|
10954
|
+
isDeactivated: z333.boolean()
|
|
11043
10955
|
});
|
|
11044
10956
|
var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
|
|
11045
10957
|
userId: true,
|
|
@@ -11049,39 +10961,130 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
|
11049
10961
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
11050
10962
|
userId: true
|
|
11051
10963
|
});
|
|
11052
|
-
var DTOForgeProjectMemberListQuery =
|
|
10964
|
+
var DTOForgeProjectMemberListQuery = z333.object({
|
|
11053
10965
|
includeImplicitMembers: zodQueryBoolean().optional()
|
|
11054
10966
|
});
|
|
11055
|
-
var DTOForgeProjectMembersListResponse =
|
|
11056
|
-
members:
|
|
11057
|
-
invitations:
|
|
10967
|
+
var DTOForgeProjectMembersListResponse = z333.object({
|
|
10968
|
+
members: z333.array(DTOForgeProjectMember),
|
|
10969
|
+
invitations: z333.array(DTOForgeProjectInvitation)
|
|
11058
10970
|
});
|
|
11059
|
-
var DTOForgeProjectMemberGetResponse =
|
|
10971
|
+
var DTOForgeProjectMemberGetResponse = z333.object({
|
|
11060
10972
|
member: DTOForgeProjectMember
|
|
11061
10973
|
});
|
|
11062
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
10974
|
+
var DTOForgeProjectMemberCreateResponse = z333.object({
|
|
11063
10975
|
member: DTOForgeProjectMember
|
|
11064
10976
|
});
|
|
11065
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
10977
|
+
var DTOForgeProjectMemberUpdateResponse = z333.object({
|
|
11066
10978
|
member: DTOForgeProjectMember.nullable()
|
|
11067
10979
|
});
|
|
11068
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
11069
|
-
ok:
|
|
10980
|
+
var DTOForgeProjectMemberRemoveResponse = z333.object({
|
|
10981
|
+
ok: z333.literal(true)
|
|
11070
10982
|
});
|
|
11071
|
-
var DTOAddMembersToForgeProject =
|
|
10983
|
+
var DTOAddMembersToForgeProject = z333.object({
|
|
11072
10984
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1),
|
|
11073
|
-
featureId:
|
|
10985
|
+
featureId: z333.string().optional()
|
|
11074
10986
|
});
|
|
11075
10987
|
|
|
11076
10988
|
// src/api/dto/forge/project-room.ts
|
|
11077
|
-
import { z as
|
|
11078
|
-
var DTOForgeProjectRoom =
|
|
11079
|
-
id:
|
|
10989
|
+
import { z as z334 } from "zod";
|
|
10990
|
+
var DTOForgeProjectRoom = z334.object({
|
|
10991
|
+
id: z334.string()
|
|
11080
10992
|
});
|
|
11081
|
-
var DTOForgeProjectRoomResponse =
|
|
10993
|
+
var DTOForgeProjectRoomResponse = z334.object({
|
|
11082
10994
|
room: DTOForgeProjectRoom
|
|
11083
10995
|
});
|
|
11084
10996
|
|
|
10997
|
+
// src/api/dto/forge/project.ts
|
|
10998
|
+
import { z as z335 } from "zod";
|
|
10999
|
+
var DTOForgeProjectRole = ForgeProjectRole;
|
|
11000
|
+
var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
|
|
11001
|
+
var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
|
|
11002
|
+
var DTOForgeProjectDocumentPreview = z335.object({
|
|
11003
|
+
id: z335.string(),
|
|
11004
|
+
title: z335.string(),
|
|
11005
|
+
thumbnail: DTOFileReference.optional(),
|
|
11006
|
+
createdAt: z335.string(),
|
|
11007
|
+
updatedAt: z335.string()
|
|
11008
|
+
});
|
|
11009
|
+
var DTOForgeProjectFeaturePreview = z335.object({
|
|
11010
|
+
id: z335.string(),
|
|
11011
|
+
name: z335.string(),
|
|
11012
|
+
thumbnail: DTOFileReference.optional(),
|
|
11013
|
+
isPublished: z335.boolean().optional(),
|
|
11014
|
+
isArchived: z335.boolean().optional(),
|
|
11015
|
+
createdAt: z335.string(),
|
|
11016
|
+
updatedAt: z335.string()
|
|
11017
|
+
});
|
|
11018
|
+
var DTOForgeProject = z335.object({
|
|
11019
|
+
id: z335.string(),
|
|
11020
|
+
workspaceId: z335.string(),
|
|
11021
|
+
projectContextId: z335.string(),
|
|
11022
|
+
name: z335.string(),
|
|
11023
|
+
description: z335.string().optional(),
|
|
11024
|
+
instruction: z335.string().nullable(),
|
|
11025
|
+
tags: z335.array(z335.string()).default([]),
|
|
11026
|
+
accessMode: DTOForgeProjectAccessMode,
|
|
11027
|
+
defaultRole: DTOForgeProjectDefaultRole,
|
|
11028
|
+
isArchived: z335.boolean(),
|
|
11029
|
+
emoji: z335.string().optional(),
|
|
11030
|
+
tokenThemeSetId: z335.string().optional(),
|
|
11031
|
+
createdAt: z335.coerce.date(),
|
|
11032
|
+
createdByUserId: z335.string().optional(),
|
|
11033
|
+
lastUserActivityAt: z335.coerce.date().optional(),
|
|
11034
|
+
updatedAt: z335.coerce.date(),
|
|
11035
|
+
documents: DTOForgeProjectDocumentPreview.array(),
|
|
11036
|
+
features: DTOForgeProjectFeaturePreview.array(),
|
|
11037
|
+
/** @deprecated use `projectContextId` */
|
|
11038
|
+
fpContextId: z335.string(),
|
|
11039
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
11040
|
+
meta: z335.object({
|
|
11041
|
+
name: z335.string(),
|
|
11042
|
+
description: z335.string().optional()
|
|
11043
|
+
}),
|
|
11044
|
+
/** @deprecated use features.length */
|
|
11045
|
+
numberOfFeatures: z335.number().int().nonnegative(),
|
|
11046
|
+
/** @deprecated use documents.length */
|
|
11047
|
+
numberOfDocuments: z335.number().int().nonnegative().optional(),
|
|
11048
|
+
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
11049
|
+
context: DTOForgeProjectContextV2.optional(),
|
|
11050
|
+
liveblocksRoomId: z335.string().optional()
|
|
11051
|
+
});
|
|
11052
|
+
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
11053
|
+
name: true,
|
|
11054
|
+
description: true,
|
|
11055
|
+
instruction: true,
|
|
11056
|
+
tags: true,
|
|
11057
|
+
emoji: true,
|
|
11058
|
+
tokenThemeSetId: true
|
|
11059
|
+
}).extend({
|
|
11060
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
11061
|
+
meta: DTOForgeProject.shape.meta.optional(),
|
|
11062
|
+
/** @deprecated use `projectContextId` */
|
|
11063
|
+
fpContextId: z335.string().optional(),
|
|
11064
|
+
projectContextId: z335.string().optional(),
|
|
11065
|
+
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
11066
|
+
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
11067
|
+
initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
|
|
11068
|
+
accessMode: DTOForgeProjectAccessMode.optional(),
|
|
11069
|
+
defaultRole: DTOForgeProjectDefaultRole.optional()
|
|
11070
|
+
});
|
|
11071
|
+
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
11072
|
+
id: z335.string(),
|
|
11073
|
+
isArchived: z335.boolean().optional()
|
|
11074
|
+
});
|
|
11075
|
+
var DTOForgeProjectListResponse = z335.object({
|
|
11076
|
+
projects: z335.array(
|
|
11077
|
+
DTOForgeProject.extend({
|
|
11078
|
+
effectiveRole: DTOForgeProjectRole
|
|
11079
|
+
})
|
|
11080
|
+
)
|
|
11081
|
+
});
|
|
11082
|
+
var DTOForgeProjectResponse = z335.object({
|
|
11083
|
+
project: DTOForgeProject.extend({
|
|
11084
|
+
effectiveRole: DTOForgeProjectRole
|
|
11085
|
+
})
|
|
11086
|
+
});
|
|
11087
|
+
|
|
11085
11088
|
// src/api/dto/forge/relation.ts
|
|
11086
11089
|
import z336 from "zod";
|
|
11087
11090
|
var DTOForgeRelationType = ForgeRelationType;
|