@supernova-studio/client 1.74.4 → 1.76.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 +141631 -141625
- package/dist/index.d.ts +141631 -141625
- package/dist/index.js +290 -294
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +399 -403
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3721,18 +3721,14 @@ var Collection = z99.object({
|
|
|
3721
3721
|
});
|
|
3722
3722
|
var CollectionImportModelInput = z100.object({
|
|
3723
3723
|
id: z100.string(),
|
|
3724
|
-
legacyId: z100.string(),
|
|
3725
3724
|
name: z100.string(),
|
|
3726
3725
|
parentId: z100.string().optional(),
|
|
3727
|
-
parentLegacyId: z100.string().optional(),
|
|
3728
3726
|
parentPersistentId: z100.string().optional(),
|
|
3729
3727
|
collectionKeyMigrated: z100.boolean()
|
|
3730
3728
|
});
|
|
3731
3729
|
var CollectionImportModel = z100.object({
|
|
3732
3730
|
id: z100.string(),
|
|
3733
|
-
legacyId: z100.string(),
|
|
3734
3731
|
parentId: z100.string().optional(),
|
|
3735
|
-
parentLegacyId: z100.string().optional(),
|
|
3736
3732
|
name: z100.string(),
|
|
3737
3733
|
origin: CollectionOrigin,
|
|
3738
3734
|
parentPersistentId: z100.string().optional()
|
|
@@ -3846,8 +3842,7 @@ var ThemeImportModel = z106.object({
|
|
|
3846
3842
|
originSource: ThemeOriginSource,
|
|
3847
3843
|
overrides: z106.array(ThemeOverrideImportModel),
|
|
3848
3844
|
sortOrder: z106.number(),
|
|
3849
|
-
collectionIds: z106.array(z106.string()).optional()
|
|
3850
|
-
collectionLegacyIds: z106.array(z106.string()).optional()
|
|
3845
|
+
collectionIds: z106.array(z106.string()).optional()
|
|
3851
3846
|
});
|
|
3852
3847
|
var ThemeImportModelInput = z106.object({
|
|
3853
3848
|
id: z106.string(),
|
|
@@ -3855,8 +3850,7 @@ var ThemeImportModelInput = z106.object({
|
|
|
3855
3850
|
meta: ObjectMeta,
|
|
3856
3851
|
originObjects: z106.array(ThemeOriginObject),
|
|
3857
3852
|
overrides: z106.array(ThemeOverrideImportModelInput),
|
|
3858
|
-
collectionIds: z106.array(z106.string()).optional()
|
|
3859
|
-
collectionLegacyIds: z106.array(z106.string()).optional()
|
|
3853
|
+
collectionIds: z106.array(z106.string()).optional()
|
|
3860
3854
|
});
|
|
3861
3855
|
var ThemeUpdateImportModel = z106.object({
|
|
3862
3856
|
themePersistentId: z106.string(),
|
|
@@ -3868,7 +3862,6 @@ var ThemeUpdateImportModelInput = z106.object({
|
|
|
3868
3862
|
});
|
|
3869
3863
|
var DesignTokenImportModelPart = z107.object({
|
|
3870
3864
|
collectionId: z107.string().optional(),
|
|
3871
|
-
collectionLegacyId: z107.string().optional(),
|
|
3872
3865
|
codeSyntax: z107.record(z107.coerce.string()).optional(),
|
|
3873
3866
|
scopes: z107.array(z107.string()).optional()
|
|
3874
3867
|
});
|
|
@@ -7058,7 +7051,7 @@ var Variable = z235.object({
|
|
|
7058
7051
|
name: z235.string(),
|
|
7059
7052
|
key: z235.string(),
|
|
7060
7053
|
variableCollectionId: z235.string(),
|
|
7061
|
-
variableCollectionKey: z235.string()
|
|
7054
|
+
variableCollectionKey: z235.string(),
|
|
7062
7055
|
resolvedType: ResolvedVariableType,
|
|
7063
7056
|
valuesByMode: z235.record(VariableValue),
|
|
7064
7057
|
remote: z235.boolean(),
|
|
@@ -7075,7 +7068,7 @@ var VariableMode = z235.object({
|
|
|
7075
7068
|
var Collection2 = z235.object({
|
|
7076
7069
|
id: z235.string(),
|
|
7077
7070
|
name: z235.string(),
|
|
7078
|
-
key: z235.string()
|
|
7071
|
+
key: z235.string(),
|
|
7079
7072
|
modes: z235.array(VariableMode),
|
|
7080
7073
|
defaultModeId: z235.string(),
|
|
7081
7074
|
remote: z235.boolean(),
|
|
@@ -7173,6 +7166,7 @@ var DTOBffUploadImportRequestBody = z237.object({
|
|
|
7173
7166
|
sourceName: z237.string().optional(),
|
|
7174
7167
|
remoteId: z237.string(),
|
|
7175
7168
|
isTokenTypeSplitEnabled: z237.boolean().optional(),
|
|
7169
|
+
version: z237.string().optional(),
|
|
7176
7170
|
payload: z237.any()
|
|
7177
7171
|
});
|
|
7178
7172
|
var DTOBffImportRequestBody = z237.discriminatedUnion("type", [
|
|
@@ -10062,8 +10056,8 @@ var DTOForgeMemoryEntryListQuery = z320.object({
|
|
|
10062
10056
|
projectId: z320.string()
|
|
10063
10057
|
});
|
|
10064
10058
|
|
|
10065
|
-
// src/api/dto/forge/project.ts
|
|
10066
|
-
import
|
|
10059
|
+
// src/api/dto/forge/project-action.ts
|
|
10060
|
+
import z325 from "zod";
|
|
10067
10061
|
|
|
10068
10062
|
// src/api/dto/forge/project-artifact.ts
|
|
10069
10063
|
import { z as z323 } from "zod";
|
|
@@ -10308,24 +10302,166 @@ var DTOForgeProjectArtifactContentResponse = z323.object({
|
|
|
10308
10302
|
content: ForgeProjectArtifactContentData
|
|
10309
10303
|
});
|
|
10310
10304
|
|
|
10305
|
+
// src/api/dto/forge/project-feature.ts
|
|
10306
|
+
import z324 from "zod";
|
|
10307
|
+
var DTOFeaturePublishedStateUpdateInput = FeaturePublishedState.pick({
|
|
10308
|
+
iterationId: true,
|
|
10309
|
+
hideSupernovaUI: true,
|
|
10310
|
+
visibility: true
|
|
10311
|
+
});
|
|
10312
|
+
var DTOForgeProjectFeature = ProjectFeature;
|
|
10313
|
+
var DTOForgeProjectPublishedFeature = z324.object({
|
|
10314
|
+
featureName: z324.string(),
|
|
10315
|
+
iterationName: z324.string(),
|
|
10316
|
+
hideSupernovaUI: z324.boolean(),
|
|
10317
|
+
thumbnailUrl: z324.string().optional(),
|
|
10318
|
+
staticPreviewUrl: z324.string().optional(),
|
|
10319
|
+
// These are only included when authenticated user has access to the project (for both public & private published features)
|
|
10320
|
+
projectId: z324.string().optional(),
|
|
10321
|
+
projectName: z324.string().optional(),
|
|
10322
|
+
workspaceId: z324.string().optional()
|
|
10323
|
+
});
|
|
10324
|
+
var DTOForgeProjectPublishedFeatureGetResponse = z324.object({
|
|
10325
|
+
publishedFeature: DTOForgeProjectPublishedFeature
|
|
10326
|
+
});
|
|
10327
|
+
var DTOForgeProjectFeatureListResponse = z324.object({
|
|
10328
|
+
features: DTOForgeProjectFeature.array()
|
|
10329
|
+
});
|
|
10330
|
+
var DTOForgeProjectFeatureGetResponse = z324.object({
|
|
10331
|
+
feature: DTOForgeProjectFeature
|
|
10332
|
+
});
|
|
10333
|
+
var DTOForgeProjectFeatureCreateInput = z324.object({
|
|
10334
|
+
id: Id,
|
|
10335
|
+
name: z324.string().optional(),
|
|
10336
|
+
description: z324.string(),
|
|
10337
|
+
sectionId: Id.optional(),
|
|
10338
|
+
afterFeatureId: Id.nullable().optional(),
|
|
10339
|
+
initialMessage: DTOThreadMessageCreateInput
|
|
10340
|
+
});
|
|
10341
|
+
var DTOForgeProjectFeatureUpdateInput = z324.object({
|
|
10342
|
+
id: Id,
|
|
10343
|
+
name: z324.string().optional(),
|
|
10344
|
+
description: z324.string().optional(),
|
|
10345
|
+
isArchived: z324.boolean().optional(),
|
|
10346
|
+
status: ProjectFeatureStatus.optional(),
|
|
10347
|
+
/**
|
|
10348
|
+
* Sending null will result in feature unpublish
|
|
10349
|
+
*/
|
|
10350
|
+
publishedState: DTOFeaturePublishedStateUpdateInput.nullish()
|
|
10351
|
+
});
|
|
10352
|
+
var DTOForgeProjectFeatureDeleteInput = z324.object({
|
|
10353
|
+
id: Id
|
|
10354
|
+
});
|
|
10355
|
+
var DTOForgeProjectFeatureGetByIdParam = z324.object({
|
|
10356
|
+
id: Id
|
|
10357
|
+
});
|
|
10358
|
+
var DTOFeatureArtifactListQuery = z324.object({
|
|
10359
|
+
messageId: z324.string().optional(),
|
|
10360
|
+
iterationId: z324.string().optional()
|
|
10361
|
+
});
|
|
10362
|
+
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
10363
|
+
|
|
10364
|
+
// src/api/dto/forge/project-action.ts
|
|
10365
|
+
var DTOForgeProjectActionFeatureCreate = z325.object({
|
|
10366
|
+
type: z325.literal("FeatureCreate"),
|
|
10367
|
+
input: DTOForgeProjectFeatureCreateInput
|
|
10368
|
+
});
|
|
10369
|
+
var DTOForgeProjectActionFeatureUpdate = z325.object({
|
|
10370
|
+
type: z325.literal("FeatureUpdate"),
|
|
10371
|
+
input: DTOForgeProjectFeatureUpdateInput
|
|
10372
|
+
});
|
|
10373
|
+
var DTOForgeProjectActionFeatureMove = z325.object({
|
|
10374
|
+
type: z325.literal("FeatureMove"),
|
|
10375
|
+
input: DTOForgeProjectFeatureMoveInput
|
|
10376
|
+
});
|
|
10377
|
+
var DTOForgeProjectActionFeatureDelete = z325.object({
|
|
10378
|
+
type: z325.literal("FeatureDelete"),
|
|
10379
|
+
input: DTOForgeProjectFeatureDeleteInput
|
|
10380
|
+
});
|
|
10381
|
+
var DTOForgeProjectActionArtifactCreate = z325.object({
|
|
10382
|
+
type: z325.literal("ArtifactCreate"),
|
|
10383
|
+
input: DTOForgeProjectArtifactCreateInput
|
|
10384
|
+
});
|
|
10385
|
+
var DTOForgeProjectActionArtifactUpdate = z325.object({
|
|
10386
|
+
type: z325.literal("ArtifactUpdate"),
|
|
10387
|
+
input: DTOForgeProjectArtifactUpdateInput
|
|
10388
|
+
});
|
|
10389
|
+
var DTOForgeProjectActionArtifactDelete = z325.object({
|
|
10390
|
+
type: z325.literal("ArtifactDelete"),
|
|
10391
|
+
input: DTOForgeProjectArtifactDeleteInput
|
|
10392
|
+
});
|
|
10393
|
+
var DTOForgeProjectActionArtifactMove = z325.object({
|
|
10394
|
+
type: z325.literal("ArtifactMove"),
|
|
10395
|
+
input: DTOForgeProjectArtifactMoveInput
|
|
10396
|
+
});
|
|
10397
|
+
var DTOForgeProjectActionSectionCreate = z325.object({
|
|
10398
|
+
type: z325.literal("SectionCreate"),
|
|
10399
|
+
input: DTOForgeSectionCreateInput
|
|
10400
|
+
});
|
|
10401
|
+
var DTOForgeProjectActionSectionUpdate = z325.object({
|
|
10402
|
+
type: z325.literal("SectionUpdate"),
|
|
10403
|
+
input: DTOForgeSectionUpdateInput
|
|
10404
|
+
});
|
|
10405
|
+
var DTOForgeProjectActionSectionDelete = z325.object({
|
|
10406
|
+
type: z325.literal("SectionDelete"),
|
|
10407
|
+
input: DTOForgeSectionDeleteInput
|
|
10408
|
+
});
|
|
10409
|
+
var DTOForgeProjectActionSectionMove = z325.object({
|
|
10410
|
+
type: z325.literal("SectionMove"),
|
|
10411
|
+
input: DTOForgeSectionMoveInput
|
|
10412
|
+
});
|
|
10413
|
+
var DTOForgeProjectAction = z325.discriminatedUnion("type", [
|
|
10414
|
+
//features
|
|
10415
|
+
DTOForgeProjectActionFeatureCreate,
|
|
10416
|
+
DTOForgeProjectActionFeatureUpdate,
|
|
10417
|
+
DTOForgeProjectActionFeatureDelete,
|
|
10418
|
+
DTOForgeProjectActionFeatureMove,
|
|
10419
|
+
//artifacts
|
|
10420
|
+
DTOForgeProjectActionArtifactCreate,
|
|
10421
|
+
DTOForgeProjectActionArtifactUpdate,
|
|
10422
|
+
DTOForgeProjectActionArtifactDelete,
|
|
10423
|
+
DTOForgeProjectActionArtifactMove,
|
|
10424
|
+
//section
|
|
10425
|
+
DTOForgeProjectActionSectionCreate,
|
|
10426
|
+
DTOForgeProjectActionSectionUpdate,
|
|
10427
|
+
DTOForgeProjectActionSectionDelete,
|
|
10428
|
+
DTOForgeProjectActionSectionMove
|
|
10429
|
+
]).and(
|
|
10430
|
+
z325.object({
|
|
10431
|
+
tId: z325.string().optional()
|
|
10432
|
+
})
|
|
10433
|
+
);
|
|
10434
|
+
|
|
10435
|
+
// src/api/dto/forge/project-artifact-room.ts
|
|
10436
|
+
import { z as z326 } from "zod";
|
|
10437
|
+
var DTOForgeProjectArtifactRoom = z326.object({
|
|
10438
|
+
id: z326.string()
|
|
10439
|
+
});
|
|
10440
|
+
var DTOForgeProjectArtifactRoomResponse = z326.object({
|
|
10441
|
+
room: DTOForgeProjectArtifactRoom
|
|
10442
|
+
});
|
|
10443
|
+
|
|
10444
|
+
// src/api/dto/forge/project-context-override.ts
|
|
10445
|
+
import z328 from "zod";
|
|
10446
|
+
|
|
10311
10447
|
// src/api/dto/forge/project-context-v2.ts
|
|
10312
|
-
import { z as
|
|
10313
|
-
var DTOForgeComponentSetTypeV2 =
|
|
10314
|
-
var DTOForgeComponentSet =
|
|
10448
|
+
import { z as z327 } from "zod";
|
|
10449
|
+
var DTOForgeComponentSetTypeV2 = z327.enum(["Shadcn"]);
|
|
10450
|
+
var DTOForgeComponentSet = z327.object({
|
|
10315
10451
|
type: DTOForgeComponentSetTypeV2
|
|
10316
10452
|
});
|
|
10317
|
-
var DTOForgeIconSetTypeV2 =
|
|
10318
|
-
var DTOForgeThemeKnownPreset =
|
|
10319
|
-
var DTOForgeIconSet =
|
|
10453
|
+
var DTOForgeIconSetTypeV2 = z327.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
10454
|
+
var DTOForgeThemeKnownPreset = z327.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
|
|
10455
|
+
var DTOForgeIconSet = z327.object({
|
|
10320
10456
|
type: DTOForgeIconSetTypeV2,
|
|
10321
|
-
variant:
|
|
10457
|
+
variant: z327.string().optional()
|
|
10322
10458
|
});
|
|
10323
|
-
var DTOForgeTokenThemeSet =
|
|
10324
|
-
id:
|
|
10325
|
-
name:
|
|
10326
|
-
tokenThemeIds:
|
|
10459
|
+
var DTOForgeTokenThemeSet = z327.object({
|
|
10460
|
+
id: z327.string(),
|
|
10461
|
+
name: z327.string(),
|
|
10462
|
+
tokenThemeIds: z327.array(z327.string())
|
|
10327
10463
|
});
|
|
10328
|
-
var DTOForgeProjectTheme =
|
|
10464
|
+
var DTOForgeProjectTheme = z327.object({
|
|
10329
10465
|
// Colors
|
|
10330
10466
|
background: ColorTokenData,
|
|
10331
10467
|
foreground: ColorTokenData,
|
|
@@ -10410,28 +10546,28 @@ var DTOForgeProjectTheme = z324.object({
|
|
|
10410
10546
|
shadowXl: ShadowTokenData,
|
|
10411
10547
|
shadow2xl: ShadowTokenData
|
|
10412
10548
|
});
|
|
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:
|
|
10549
|
+
var DTOForgeProjectContextV2 = z327.object({
|
|
10550
|
+
id: z327.string(),
|
|
10551
|
+
name: z327.string(),
|
|
10552
|
+
workspaceId: z327.string(),
|
|
10553
|
+
designSystemId: z327.string().optional(),
|
|
10554
|
+
brandId: z327.string().optional(),
|
|
10555
|
+
defaultTokenThemeSetId: z327.string().optional(),
|
|
10556
|
+
description: z327.string().optional(),
|
|
10557
|
+
productContext: z327.string().optional(),
|
|
10558
|
+
additionalContext: z327.string().optional(),
|
|
10559
|
+
isArchived: z327.boolean(),
|
|
10560
|
+
themePreset: z327.string().optional(),
|
|
10561
|
+
tokenThemeSets: z327.array(DTOForgeTokenThemeSet).optional(),
|
|
10426
10562
|
componentSet: DTOForgeComponentSet,
|
|
10427
10563
|
iconSet: DTOForgeIconSet,
|
|
10428
10564
|
theme: DTOForgeProjectTheme,
|
|
10429
|
-
createdAt:
|
|
10430
|
-
updatedAt:
|
|
10565
|
+
createdAt: z327.coerce.date(),
|
|
10566
|
+
updatedAt: z327.coerce.date(),
|
|
10431
10567
|
thumbnail: DTOFileReference.optional(),
|
|
10432
|
-
sandboxTemplate:
|
|
10433
|
-
id:
|
|
10434
|
-
version:
|
|
10568
|
+
sandboxTemplate: z327.object({
|
|
10569
|
+
id: z327.string(),
|
|
10570
|
+
version: z327.string()
|
|
10435
10571
|
}).optional()
|
|
10436
10572
|
});
|
|
10437
10573
|
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
@@ -10441,7 +10577,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10441
10577
|
isArchived: true,
|
|
10442
10578
|
thumbnail: true
|
|
10443
10579
|
}).extend({
|
|
10444
|
-
thumbnailFileId:
|
|
10580
|
+
thumbnailFileId: z327.string().optional()
|
|
10445
10581
|
});
|
|
10446
10582
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
10447
10583
|
id: true,
|
|
@@ -10450,300 +10586,60 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10450
10586
|
updatedAt: true,
|
|
10451
10587
|
thumbnail: true
|
|
10452
10588
|
}).partial().extend({
|
|
10453
|
-
thumbnailFileId:
|
|
10454
|
-
});
|
|
10455
|
-
var DTOForgeProjectContextResponseV2 = z324.object({ context: DTOForgeProjectContextV2 });
|
|
10456
|
-
var DTOForgeProjectContextListQueryV2 = z324.object({
|
|
10457
|
-
workspaceId: z324.string(),
|
|
10458
|
-
isArchived: zodQueryBoolean()
|
|
10589
|
+
thumbnailFileId: z327.string().nullish()
|
|
10459
10590
|
});
|
|
10460
|
-
var
|
|
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
|
|
10483
|
-
});
|
|
10484
|
-
var DTOForgeProjectFeatureListResponse = z325.object({
|
|
10485
|
-
features: DTOForgeProjectFeature.array()
|
|
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(),
|
|
10591
|
+
var DTOForgeProjectContextResponseV2 = z327.object({ context: DTOForgeProjectContextV2 });
|
|
10592
|
+
var DTOForgeProjectContextListQueryV2 = z327.object({
|
|
10570
10593
|
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
|
-
})
|
|
10594
|
+
isArchived: zodQueryBoolean()
|
|
10636
10595
|
});
|
|
10596
|
+
var DTOForgeProjectContextListResponseV2 = z327.object({ contexts: z327.array(DTOForgeProjectContextV2) });
|
|
10637
10597
|
|
|
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
|
|
10598
|
+
// src/api/dto/forge/project-context-override.ts
|
|
10599
|
+
var DTOProjectContextOverride = z328.object({
|
|
10600
|
+
projectId: z328.string(),
|
|
10601
|
+
theme: DTOForgeProjectTheme.partial(),
|
|
10602
|
+
themePreset: z328.string().optional()
|
|
10687
10603
|
});
|
|
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()
|
|
10604
|
+
var DTOProjectContextOverrideInput = z328.object({
|
|
10605
|
+
updateSharedContext: z328.boolean().optional(),
|
|
10606
|
+
theme: DTOForgeProjectTheme.partial(),
|
|
10607
|
+
themePreset: z328.string().optional()
|
|
10714
10608
|
});
|
|
10715
|
-
var
|
|
10716
|
-
|
|
10609
|
+
var DTOProjectContextOverrideResponse = z328.object({
|
|
10610
|
+
override: DTOProjectContextOverride,
|
|
10611
|
+
originalContext: DTOForgeProjectContextV2,
|
|
10612
|
+
resolvedContext: DTOForgeProjectContextV2
|
|
10717
10613
|
});
|
|
10718
10614
|
|
|
10719
10615
|
// 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:
|
|
10616
|
+
import { z as z329 } from "zod";
|
|
10617
|
+
var DTOForgeProjectContext = z329.object({
|
|
10618
|
+
definition: z329.string(),
|
|
10619
|
+
dependencies: z329.array(
|
|
10620
|
+
z329.object({
|
|
10621
|
+
packageName: z329.string(),
|
|
10622
|
+
type: z329.literal("npm"),
|
|
10623
|
+
version: z329.string().default("latest")
|
|
10728
10624
|
})
|
|
10729
10625
|
),
|
|
10730
|
-
designSystemId:
|
|
10731
|
-
id:
|
|
10732
|
-
meta:
|
|
10733
|
-
name:
|
|
10734
|
-
description:
|
|
10626
|
+
designSystemId: z329.string(),
|
|
10627
|
+
id: z329.string(),
|
|
10628
|
+
meta: z329.object({
|
|
10629
|
+
name: z329.string(),
|
|
10630
|
+
description: z329.string().optional()
|
|
10735
10631
|
}),
|
|
10736
|
-
name:
|
|
10632
|
+
name: z329.string(),
|
|
10737
10633
|
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10738
|
-
platform:
|
|
10739
|
-
styling:
|
|
10740
|
-
tailwindConfig:
|
|
10741
|
-
content:
|
|
10742
|
-
version:
|
|
10634
|
+
platform: z329.enum(["React", "Vue", "Angular"]),
|
|
10635
|
+
styling: z329.enum(["CSS", "Tailwind"]),
|
|
10636
|
+
tailwindConfig: z329.object({
|
|
10637
|
+
content: z329.string(),
|
|
10638
|
+
version: z329.string()
|
|
10743
10639
|
}).optional(),
|
|
10744
|
-
createdAt:
|
|
10745
|
-
updatedAt:
|
|
10746
|
-
workspaceId:
|
|
10640
|
+
createdAt: z329.coerce.date(),
|
|
10641
|
+
updatedAt: z329.coerce.date(),
|
|
10642
|
+
workspaceId: z329.string()
|
|
10747
10643
|
});
|
|
10748
10644
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
10749
10645
|
definition: true,
|
|
@@ -10755,31 +10651,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
10755
10651
|
tailwindConfig: true,
|
|
10756
10652
|
styling: true
|
|
10757
10653
|
}).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
|
|
10654
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z329.string() });
|
|
10655
|
+
var DTOForgeProjectContextGetResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10656
|
+
var DTOForgeProjectContextListResponse = z329.object({ contexts: z329.array(DTOForgeProjectContext) });
|
|
10657
|
+
var DTOForgeProjectContextCreateResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10658
|
+
var DTOForgeProjectContextUpdateResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10659
|
+
var DTOForgeProjectContextRemoveResponse = z329.object({
|
|
10660
|
+
ok: z329.literal(true)
|
|
10783
10661
|
});
|
|
10784
10662
|
|
|
10785
10663
|
// src/api/dto/forge/project-figma-node.ts
|
|
@@ -10787,42 +10665,69 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
|
10787
10665
|
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
10788
10666
|
|
|
10789
10667
|
// 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:
|
|
10668
|
+
import { z as z330 } from "zod";
|
|
10669
|
+
var DTOForgeProjectFile = z330.object({
|
|
10670
|
+
id: z330.string(),
|
|
10671
|
+
name: z330.string(),
|
|
10672
|
+
checksum: z330.string(),
|
|
10673
|
+
pendingUpload: z330.boolean().optional(),
|
|
10674
|
+
url: z330.string(),
|
|
10675
|
+
size: z330.number()
|
|
10676
|
+
});
|
|
10677
|
+
var DTOForgeProjectFileListResponse = z330.object({
|
|
10678
|
+
files: z330.array(DTOForgeProjectFile)
|
|
10679
|
+
});
|
|
10680
|
+
var DTOForgeProjectFileUploadPayloadItem = z330.object({
|
|
10681
|
+
size: z330.number(),
|
|
10682
|
+
name: z330.string(),
|
|
10683
|
+
checksum: z330.string()
|
|
10684
|
+
});
|
|
10685
|
+
var DTOForgeProjectFileUploadPayload = z330.object({
|
|
10686
|
+
files: z330.array(DTOForgeProjectFileUploadPayloadItem)
|
|
10687
|
+
});
|
|
10688
|
+
var DTOForgeProjectFileUploadResponse = z330.object({
|
|
10689
|
+
files: z330.array(DTOForgeProjectFile),
|
|
10690
|
+
uploadUrls: z330.array(
|
|
10691
|
+
z330.object({
|
|
10692
|
+
fileId: z330.string(),
|
|
10693
|
+
uploadUrl: z330.string()
|
|
10816
10694
|
})
|
|
10817
10695
|
)
|
|
10818
10696
|
});
|
|
10819
|
-
var DTOForgeProjectFileUploadFinalizePayload =
|
|
10820
|
-
fileIds:
|
|
10697
|
+
var DTOForgeProjectFileUploadFinalizePayload = z330.object({
|
|
10698
|
+
fileIds: z330.array(z330.string())
|
|
10699
|
+
});
|
|
10700
|
+
var DTOForgeProjectFileUploadFinalizeResponse = z330.object({ ok: z330.literal(true) });
|
|
10701
|
+
|
|
10702
|
+
// src/api/dto/forge/project-invitation.ts
|
|
10703
|
+
import { z as z331 } from "zod";
|
|
10704
|
+
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
10705
|
+
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10706
|
+
email: true,
|
|
10707
|
+
role: true
|
|
10708
|
+
});
|
|
10709
|
+
var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
10710
|
+
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10711
|
+
email: true
|
|
10712
|
+
});
|
|
10713
|
+
var DTOForgeProjectInvitationsListResponse = z331.object({
|
|
10714
|
+
invitations: z331.array(DTOForgeProjectInvitation)
|
|
10715
|
+
});
|
|
10716
|
+
var DTOForgeProjectInvitationGetResponse = z331.object({
|
|
10717
|
+
invitation: DTOForgeProjectInvitation
|
|
10718
|
+
});
|
|
10719
|
+
var DTOForgeProjectInvitationCreateResponse = z331.object({
|
|
10720
|
+
invitation: DTOForgeProjectInvitation
|
|
10721
|
+
});
|
|
10722
|
+
var DTOForgeProjectInvitationUpdateResponse = z331.object({
|
|
10723
|
+
invitation: DTOForgeProjectInvitation.nullable()
|
|
10724
|
+
});
|
|
10725
|
+
var DTOForgeProjectInvitationRemoveResponse = z331.object({
|
|
10726
|
+
ok: z331.literal(true)
|
|
10821
10727
|
});
|
|
10822
|
-
var DTOForgeProjectFileUploadFinalizeResponse = z332.object({ ok: z332.literal(true) });
|
|
10823
10728
|
|
|
10824
10729
|
// src/api/dto/forge/project-iteration-old.ts
|
|
10825
|
-
import { z as
|
|
10730
|
+
import { z as z332 } from "zod";
|
|
10826
10731
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
10827
10732
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
10828
10733
|
artifacts: true,
|
|
@@ -10833,7 +10738,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
10833
10738
|
messages: DTOForgeIterationMessage.array(),
|
|
10834
10739
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
10835
10740
|
});
|
|
10836
|
-
var DTOGetForgeProjectIterationResponse =
|
|
10741
|
+
var DTOGetForgeProjectIterationResponse = z332.object({
|
|
10837
10742
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10838
10743
|
});
|
|
10839
10744
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -10843,20 +10748,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
10843
10748
|
mergeMeta: true,
|
|
10844
10749
|
createdAt: true
|
|
10845
10750
|
});
|
|
10846
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
10847
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
10751
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z332.string() });
|
|
10752
|
+
var DTOCreateForgeProjectIterationResponse = z332.object({
|
|
10848
10753
|
iteration: DTOForgeProjectIteration
|
|
10849
10754
|
});
|
|
10850
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
10755
|
+
var DTOUpdateForgeProjectIterationResponse = z332.object({
|
|
10851
10756
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10852
10757
|
});
|
|
10853
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
10854
|
-
ok:
|
|
10758
|
+
var DTODeleteForgeProjectIterationResponse = z332.object({
|
|
10759
|
+
ok: z332.literal(true)
|
|
10855
10760
|
});
|
|
10856
|
-
var DTOForgeProjectIterationListResponse =
|
|
10761
|
+
var DTOForgeProjectIterationListResponse = z332.object({ iterations: z332.array(DTOForgeProjectIteration) });
|
|
10857
10762
|
|
|
10858
10763
|
// src/api/dto/forge/project-member.ts
|
|
10859
|
-
import { z as
|
|
10764
|
+
import { z as z333 } from "zod";
|
|
10860
10765
|
|
|
10861
10766
|
// src/utils/figma.ts
|
|
10862
10767
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
@@ -11039,7 +10944,7 @@ var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
|
11039
10944
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
11040
10945
|
user: DTOUser,
|
|
11041
10946
|
effectiveRole: DTOForgeProjectMemberRole,
|
|
11042
|
-
isDeactivated:
|
|
10947
|
+
isDeactivated: z333.boolean()
|
|
11043
10948
|
});
|
|
11044
10949
|
var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
|
|
11045
10950
|
userId: true,
|
|
@@ -11049,39 +10954,130 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
|
11049
10954
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
11050
10955
|
userId: true
|
|
11051
10956
|
});
|
|
11052
|
-
var DTOForgeProjectMemberListQuery =
|
|
10957
|
+
var DTOForgeProjectMemberListQuery = z333.object({
|
|
11053
10958
|
includeImplicitMembers: zodQueryBoolean().optional()
|
|
11054
10959
|
});
|
|
11055
|
-
var DTOForgeProjectMembersListResponse =
|
|
11056
|
-
members:
|
|
11057
|
-
invitations:
|
|
10960
|
+
var DTOForgeProjectMembersListResponse = z333.object({
|
|
10961
|
+
members: z333.array(DTOForgeProjectMember),
|
|
10962
|
+
invitations: z333.array(DTOForgeProjectInvitation)
|
|
11058
10963
|
});
|
|
11059
|
-
var DTOForgeProjectMemberGetResponse =
|
|
10964
|
+
var DTOForgeProjectMemberGetResponse = z333.object({
|
|
11060
10965
|
member: DTOForgeProjectMember
|
|
11061
10966
|
});
|
|
11062
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
10967
|
+
var DTOForgeProjectMemberCreateResponse = z333.object({
|
|
11063
10968
|
member: DTOForgeProjectMember
|
|
11064
10969
|
});
|
|
11065
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
10970
|
+
var DTOForgeProjectMemberUpdateResponse = z333.object({
|
|
11066
10971
|
member: DTOForgeProjectMember.nullable()
|
|
11067
10972
|
});
|
|
11068
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
11069
|
-
ok:
|
|
10973
|
+
var DTOForgeProjectMemberRemoveResponse = z333.object({
|
|
10974
|
+
ok: z333.literal(true)
|
|
11070
10975
|
});
|
|
11071
|
-
var DTOAddMembersToForgeProject =
|
|
10976
|
+
var DTOAddMembersToForgeProject = z333.object({
|
|
11072
10977
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1),
|
|
11073
|
-
featureId:
|
|
10978
|
+
featureId: z333.string().optional()
|
|
11074
10979
|
});
|
|
11075
10980
|
|
|
11076
10981
|
// src/api/dto/forge/project-room.ts
|
|
11077
|
-
import { z as
|
|
11078
|
-
var DTOForgeProjectRoom =
|
|
11079
|
-
id:
|
|
10982
|
+
import { z as z334 } from "zod";
|
|
10983
|
+
var DTOForgeProjectRoom = z334.object({
|
|
10984
|
+
id: z334.string()
|
|
11080
10985
|
});
|
|
11081
|
-
var DTOForgeProjectRoomResponse =
|
|
10986
|
+
var DTOForgeProjectRoomResponse = z334.object({
|
|
11082
10987
|
room: DTOForgeProjectRoom
|
|
11083
10988
|
});
|
|
11084
10989
|
|
|
10990
|
+
// src/api/dto/forge/project.ts
|
|
10991
|
+
import { z as z335 } from "zod";
|
|
10992
|
+
var DTOForgeProjectRole = ForgeProjectRole;
|
|
10993
|
+
var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
|
|
10994
|
+
var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
|
|
10995
|
+
var DTOForgeProjectDocumentPreview = z335.object({
|
|
10996
|
+
id: z335.string(),
|
|
10997
|
+
title: z335.string(),
|
|
10998
|
+
thumbnail: DTOFileReference.optional(),
|
|
10999
|
+
createdAt: z335.string(),
|
|
11000
|
+
updatedAt: z335.string()
|
|
11001
|
+
});
|
|
11002
|
+
var DTOForgeProjectFeaturePreview = z335.object({
|
|
11003
|
+
id: z335.string(),
|
|
11004
|
+
name: z335.string(),
|
|
11005
|
+
thumbnail: DTOFileReference.optional(),
|
|
11006
|
+
isPublished: z335.boolean().optional(),
|
|
11007
|
+
isArchived: z335.boolean().optional(),
|
|
11008
|
+
createdAt: z335.string(),
|
|
11009
|
+
updatedAt: z335.string()
|
|
11010
|
+
});
|
|
11011
|
+
var DTOForgeProject = z335.object({
|
|
11012
|
+
id: z335.string(),
|
|
11013
|
+
workspaceId: z335.string(),
|
|
11014
|
+
projectContextId: z335.string(),
|
|
11015
|
+
name: z335.string(),
|
|
11016
|
+
description: z335.string().optional(),
|
|
11017
|
+
instruction: z335.string().nullable(),
|
|
11018
|
+
tags: z335.array(z335.string()).default([]),
|
|
11019
|
+
accessMode: DTOForgeProjectAccessMode,
|
|
11020
|
+
defaultRole: DTOForgeProjectDefaultRole,
|
|
11021
|
+
isArchived: z335.boolean(),
|
|
11022
|
+
emoji: z335.string().optional(),
|
|
11023
|
+
tokenThemeSetId: z335.string().optional(),
|
|
11024
|
+
createdAt: z335.coerce.date(),
|
|
11025
|
+
createdByUserId: z335.string().optional(),
|
|
11026
|
+
lastUserActivityAt: z335.coerce.date().optional(),
|
|
11027
|
+
updatedAt: z335.coerce.date(),
|
|
11028
|
+
documents: DTOForgeProjectDocumentPreview.array(),
|
|
11029
|
+
features: DTOForgeProjectFeaturePreview.array(),
|
|
11030
|
+
/** @deprecated use `projectContextId` */
|
|
11031
|
+
fpContextId: z335.string(),
|
|
11032
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
11033
|
+
meta: z335.object({
|
|
11034
|
+
name: z335.string(),
|
|
11035
|
+
description: z335.string().optional()
|
|
11036
|
+
}),
|
|
11037
|
+
/** @deprecated use features.length */
|
|
11038
|
+
numberOfFeatures: z335.number().int().nonnegative(),
|
|
11039
|
+
/** @deprecated use documents.length */
|
|
11040
|
+
numberOfDocuments: z335.number().int().nonnegative().optional(),
|
|
11041
|
+
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
11042
|
+
context: DTOForgeProjectContextV2.optional(),
|
|
11043
|
+
liveblocksRoomId: z335.string().optional()
|
|
11044
|
+
});
|
|
11045
|
+
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
11046
|
+
name: true,
|
|
11047
|
+
description: true,
|
|
11048
|
+
instruction: true,
|
|
11049
|
+
tags: true,
|
|
11050
|
+
emoji: true,
|
|
11051
|
+
tokenThemeSetId: true
|
|
11052
|
+
}).extend({
|
|
11053
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
11054
|
+
meta: DTOForgeProject.shape.meta.optional(),
|
|
11055
|
+
/** @deprecated use `projectContextId` */
|
|
11056
|
+
fpContextId: z335.string().optional(),
|
|
11057
|
+
projectContextId: z335.string().optional(),
|
|
11058
|
+
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
11059
|
+
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
11060
|
+
initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
|
|
11061
|
+
accessMode: DTOForgeProjectAccessMode.optional(),
|
|
11062
|
+
defaultRole: DTOForgeProjectDefaultRole.optional()
|
|
11063
|
+
});
|
|
11064
|
+
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
11065
|
+
id: z335.string(),
|
|
11066
|
+
isArchived: z335.boolean().optional()
|
|
11067
|
+
});
|
|
11068
|
+
var DTOForgeProjectListResponse = z335.object({
|
|
11069
|
+
projects: z335.array(
|
|
11070
|
+
DTOForgeProject.extend({
|
|
11071
|
+
effectiveRole: DTOForgeProjectRole
|
|
11072
|
+
})
|
|
11073
|
+
)
|
|
11074
|
+
});
|
|
11075
|
+
var DTOForgeProjectResponse = z335.object({
|
|
11076
|
+
project: DTOForgeProject.extend({
|
|
11077
|
+
effectiveRole: DTOForgeProjectRole
|
|
11078
|
+
})
|
|
11079
|
+
});
|
|
11080
|
+
|
|
11085
11081
|
// src/api/dto/forge/relation.ts
|
|
11086
11082
|
import z336 from "zod";
|
|
11087
11083
|
var DTOForgeRelationType = ForgeRelationType;
|