@supernova-studio/client 1.48.13 → 1.48.14
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 +181111 -124495
- package/dist/index.d.ts +181111 -124495
- package/dist/index.js +364 -308
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +418 -362
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9884,8 +9884,8 @@ var DTOForgeMemoryEntryListQuery = z319.object({
|
|
|
9884
9884
|
projectId: z319.string()
|
|
9885
9885
|
});
|
|
9886
9886
|
|
|
9887
|
-
// src/api/dto/forge/project.ts
|
|
9888
|
-
import
|
|
9887
|
+
// src/api/dto/forge/project-action.ts
|
|
9888
|
+
import z324 from "zod";
|
|
9889
9889
|
|
|
9890
9890
|
// src/api/dto/forge/project-artifact.ts
|
|
9891
9891
|
import { z as z322 } from "zod";
|
|
@@ -10123,24 +10123,187 @@ var DTOForgeProjectArtifactContentResponse = z322.object({
|
|
|
10123
10123
|
content: ForgeProjectArtifactContentData
|
|
10124
10124
|
});
|
|
10125
10125
|
|
|
10126
|
+
// src/api/dto/forge/project-feature.ts
|
|
10127
|
+
import z323 from "zod";
|
|
10128
|
+
var DTOForgeProjectFeature = ProjectFeature;
|
|
10129
|
+
var DTOForgeProjectFeatureListResponse = z323.object({
|
|
10130
|
+
features: DTOForgeProjectFeature.array()
|
|
10131
|
+
});
|
|
10132
|
+
var DTOForgeProjectFeatureGetResponse = z323.object({
|
|
10133
|
+
feature: DTOForgeProjectFeature
|
|
10134
|
+
});
|
|
10135
|
+
var DTOForgeProjectFeatureCreateInput = z323.object({
|
|
10136
|
+
id: Id,
|
|
10137
|
+
name: z323.string().optional(),
|
|
10138
|
+
description: z323.string(),
|
|
10139
|
+
sectionId: Id.optional(),
|
|
10140
|
+
afterFeatureId: Id.nullable().optional(),
|
|
10141
|
+
initialMessage: DTOThreadMessageCreateInput
|
|
10142
|
+
});
|
|
10143
|
+
var DTOForgeProjectFeatureUpdateInput = z323.object({
|
|
10144
|
+
id: Id,
|
|
10145
|
+
name: z323.string().optional(),
|
|
10146
|
+
description: z323.string().optional(),
|
|
10147
|
+
isArchived: z323.boolean().optional(),
|
|
10148
|
+
status: ProjectFeatureStatus.optional()
|
|
10149
|
+
});
|
|
10150
|
+
var DTOForgeProjectFeatureDeleteInput = z323.object({
|
|
10151
|
+
id: Id
|
|
10152
|
+
});
|
|
10153
|
+
var DTOForgeProjectFeatureGetByIdParam = z323.object({
|
|
10154
|
+
id: Id
|
|
10155
|
+
});
|
|
10156
|
+
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
10157
|
+
|
|
10158
|
+
// src/api/dto/forge/project-action.ts
|
|
10159
|
+
var DTOForgeProjectActionFeatureCreate = z324.object({
|
|
10160
|
+
type: z324.literal("FeatureCreate"),
|
|
10161
|
+
input: DTOForgeProjectFeatureCreateInput
|
|
10162
|
+
});
|
|
10163
|
+
var DTOForgeProjectActionFeatureUpdate = z324.object({
|
|
10164
|
+
type: z324.literal("FeatureUpdate"),
|
|
10165
|
+
input: DTOForgeProjectFeatureUpdateInput
|
|
10166
|
+
});
|
|
10167
|
+
var DTOForgeProjectActionFeatureMove = z324.object({
|
|
10168
|
+
type: z324.literal("FeatureMove"),
|
|
10169
|
+
input: DTOForgeProjectFeatureMoveInput
|
|
10170
|
+
});
|
|
10171
|
+
var DTOForgeProjectActionFeatureDelete = z324.object({
|
|
10172
|
+
type: z324.literal("FeatureDelete"),
|
|
10173
|
+
input: DTOForgeProjectFeatureDeleteInput
|
|
10174
|
+
});
|
|
10175
|
+
var DTOForgeProjectActionArtifactCreate = z324.object({
|
|
10176
|
+
type: z324.literal("ArtifactCreate"),
|
|
10177
|
+
input: DTOForgeProjectArtifactCreateInput
|
|
10178
|
+
});
|
|
10179
|
+
var DTOForgeProjectActionArtifactUpdate = z324.object({
|
|
10180
|
+
type: z324.literal("ArtifactUpdate"),
|
|
10181
|
+
input: DTOForgeProjectArtifactUpdateInput
|
|
10182
|
+
});
|
|
10183
|
+
var DTOForgeProjectActionArtifactDelete = z324.object({
|
|
10184
|
+
type: z324.literal("ArtifactDelete"),
|
|
10185
|
+
input: DTOForgeProjectArtifactDeleteInput
|
|
10186
|
+
});
|
|
10187
|
+
var DTOForgeProjectActionArtifactMove = z324.object({
|
|
10188
|
+
type: z324.literal("ArtifactMove"),
|
|
10189
|
+
input: DTOForgeProjectArtifactMoveInput
|
|
10190
|
+
});
|
|
10191
|
+
var DTOForgeProjectActionSectionCreate = z324.object({
|
|
10192
|
+
type: z324.literal("SectionCreate"),
|
|
10193
|
+
input: DTOForgeSectionCreateInput
|
|
10194
|
+
});
|
|
10195
|
+
var DTOForgeProjectActionSectionUpdate = z324.object({
|
|
10196
|
+
type: z324.literal("SectionUpdate"),
|
|
10197
|
+
input: DTOForgeSectionUpdateInput
|
|
10198
|
+
});
|
|
10199
|
+
var DTOForgeProjectActionSectionDelete = z324.object({
|
|
10200
|
+
type: z324.literal("SectionDelete"),
|
|
10201
|
+
input: DTOForgeSectionDeleteInput
|
|
10202
|
+
});
|
|
10203
|
+
var DTOForgeProjectActionSectionMove = z324.object({
|
|
10204
|
+
type: z324.literal("SectionMove"),
|
|
10205
|
+
input: DTOForgeSectionMoveInput
|
|
10206
|
+
});
|
|
10207
|
+
var DTOForgeProjectAction = z324.discriminatedUnion("type", [
|
|
10208
|
+
//features
|
|
10209
|
+
DTOForgeProjectActionFeatureCreate,
|
|
10210
|
+
DTOForgeProjectActionFeatureUpdate,
|
|
10211
|
+
DTOForgeProjectActionFeatureDelete,
|
|
10212
|
+
DTOForgeProjectActionFeatureMove,
|
|
10213
|
+
//artifacts
|
|
10214
|
+
DTOForgeProjectActionArtifactCreate,
|
|
10215
|
+
DTOForgeProjectActionArtifactUpdate,
|
|
10216
|
+
DTOForgeProjectActionArtifactDelete,
|
|
10217
|
+
DTOForgeProjectActionArtifactMove,
|
|
10218
|
+
//section
|
|
10219
|
+
DTOForgeProjectActionSectionCreate,
|
|
10220
|
+
DTOForgeProjectActionSectionUpdate,
|
|
10221
|
+
DTOForgeProjectActionSectionDelete,
|
|
10222
|
+
DTOForgeProjectActionSectionMove
|
|
10223
|
+
]).and(
|
|
10224
|
+
z324.object({
|
|
10225
|
+
tId: z324.string().optional()
|
|
10226
|
+
})
|
|
10227
|
+
);
|
|
10228
|
+
|
|
10229
|
+
// src/api/dto/forge/project-artifact-room.ts
|
|
10230
|
+
import { z as z325 } from "zod";
|
|
10231
|
+
var DTOForgeProjectArtifactRoom = z325.object({
|
|
10232
|
+
id: z325.string()
|
|
10233
|
+
});
|
|
10234
|
+
var DTOForgeProjectArtifactRoomResponse = z325.object({
|
|
10235
|
+
room: DTOForgeProjectArtifactRoom
|
|
10236
|
+
});
|
|
10237
|
+
|
|
10238
|
+
// src/api/dto/forge/project-context-override.ts
|
|
10239
|
+
import z328 from "zod";
|
|
10240
|
+
|
|
10241
|
+
// src/api/dto/forge/project-context.ts
|
|
10242
|
+
import { z as z326 } from "zod";
|
|
10243
|
+
var DTOForgeProjectContext = z326.object({
|
|
10244
|
+
definition: z326.string(),
|
|
10245
|
+
dependencies: z326.array(
|
|
10246
|
+
z326.object({
|
|
10247
|
+
packageName: z326.string(),
|
|
10248
|
+
type: z326.literal("npm"),
|
|
10249
|
+
version: z326.string().default("latest")
|
|
10250
|
+
})
|
|
10251
|
+
),
|
|
10252
|
+
designSystemId: z326.string(),
|
|
10253
|
+
id: z326.string(),
|
|
10254
|
+
meta: z326.object({
|
|
10255
|
+
name: z326.string(),
|
|
10256
|
+
description: z326.string().optional()
|
|
10257
|
+
}),
|
|
10258
|
+
name: z326.string(),
|
|
10259
|
+
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10260
|
+
platform: z326.enum(["React", "Vue", "Angular"]),
|
|
10261
|
+
styling: z326.enum(["CSS", "Tailwind"]),
|
|
10262
|
+
tailwindConfig: z326.object({
|
|
10263
|
+
content: z326.string(),
|
|
10264
|
+
version: z326.string()
|
|
10265
|
+
}).optional(),
|
|
10266
|
+
createdAt: z326.coerce.date(),
|
|
10267
|
+
updatedAt: z326.coerce.date(),
|
|
10268
|
+
workspaceId: z326.string()
|
|
10269
|
+
});
|
|
10270
|
+
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
10271
|
+
definition: true,
|
|
10272
|
+
name: true,
|
|
10273
|
+
meta: true,
|
|
10274
|
+
designSystemId: true,
|
|
10275
|
+
platform: true,
|
|
10276
|
+
dependencies: true,
|
|
10277
|
+
tailwindConfig: true,
|
|
10278
|
+
styling: true
|
|
10279
|
+
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10280
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z326.string() });
|
|
10281
|
+
var DTOForgeProjectContextGetResponse = z326.object({ context: DTOForgeProjectContext });
|
|
10282
|
+
var DTOForgeProjectContextListResponse = z326.object({ contexts: z326.array(DTOForgeProjectContext) });
|
|
10283
|
+
var DTOForgeProjectContextCreateResponse = z326.object({ context: DTOForgeProjectContext });
|
|
10284
|
+
var DTOForgeProjectContextUpdateResponse = z326.object({ context: DTOForgeProjectContext });
|
|
10285
|
+
var DTOForgeProjectContextRemoveResponse = z326.object({
|
|
10286
|
+
ok: z326.literal(true)
|
|
10287
|
+
});
|
|
10288
|
+
|
|
10126
10289
|
// src/api/dto/forge/project-context-v2.ts
|
|
10127
|
-
import { z as
|
|
10128
|
-
var DTOForgeComponentSetTypeV2 =
|
|
10129
|
-
var DTOForgeComponentSet =
|
|
10290
|
+
import { z as z327 } from "zod";
|
|
10291
|
+
var DTOForgeComponentSetTypeV2 = z327.enum(["Shadcn"]);
|
|
10292
|
+
var DTOForgeComponentSet = z327.object({
|
|
10130
10293
|
type: DTOForgeComponentSetTypeV2
|
|
10131
10294
|
});
|
|
10132
|
-
var DTOForgeIconSetTypeV2 =
|
|
10133
|
-
var DTOForgeThemeKnownPreset =
|
|
10134
|
-
var DTOForgeIconSet =
|
|
10295
|
+
var DTOForgeIconSetTypeV2 = z327.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
10296
|
+
var DTOForgeThemeKnownPreset = z327.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
|
|
10297
|
+
var DTOForgeIconSet = z327.object({
|
|
10135
10298
|
type: DTOForgeIconSetTypeV2,
|
|
10136
|
-
variant:
|
|
10299
|
+
variant: z327.string().optional()
|
|
10137
10300
|
});
|
|
10138
|
-
var DTOForgeTokenThemeSet =
|
|
10139
|
-
id:
|
|
10140
|
-
name:
|
|
10141
|
-
tokenThemeIds:
|
|
10301
|
+
var DTOForgeTokenThemeSet = z327.object({
|
|
10302
|
+
id: z327.string(),
|
|
10303
|
+
name: z327.string(),
|
|
10304
|
+
tokenThemeIds: z327.array(z327.string())
|
|
10142
10305
|
});
|
|
10143
|
-
var DTOForgeProjectTheme =
|
|
10306
|
+
var DTOForgeProjectTheme = z327.object({
|
|
10144
10307
|
// Colors
|
|
10145
10308
|
background: ColorTokenData,
|
|
10146
10309
|
foreground: ColorTokenData,
|
|
@@ -10225,24 +10388,24 @@ var DTOForgeProjectTheme = z323.object({
|
|
|
10225
10388
|
shadowXl: ShadowTokenData,
|
|
10226
10389
|
shadow2xl: ShadowTokenData
|
|
10227
10390
|
});
|
|
10228
|
-
var DTOForgeProjectContextV2 =
|
|
10229
|
-
id:
|
|
10230
|
-
name:
|
|
10231
|
-
workspaceId:
|
|
10232
|
-
designSystemId:
|
|
10233
|
-
brandId:
|
|
10234
|
-
defaultTokenThemeSetId:
|
|
10235
|
-
description:
|
|
10236
|
-
productContext:
|
|
10237
|
-
additionalContext:
|
|
10238
|
-
isArchived:
|
|
10239
|
-
themePreset:
|
|
10240
|
-
tokenThemeSets:
|
|
10391
|
+
var DTOForgeProjectContextV2 = z327.object({
|
|
10392
|
+
id: z327.string(),
|
|
10393
|
+
name: z327.string(),
|
|
10394
|
+
workspaceId: z327.string(),
|
|
10395
|
+
designSystemId: z327.string().optional(),
|
|
10396
|
+
brandId: z327.string().optional(),
|
|
10397
|
+
defaultTokenThemeSetId: z327.string().optional(),
|
|
10398
|
+
description: z327.string().optional(),
|
|
10399
|
+
productContext: z327.string().optional(),
|
|
10400
|
+
additionalContext: z327.string().optional(),
|
|
10401
|
+
isArchived: z327.boolean(),
|
|
10402
|
+
themePreset: z327.string().optional(),
|
|
10403
|
+
tokenThemeSets: z327.array(DTOForgeTokenThemeSet).optional(),
|
|
10241
10404
|
componentSet: DTOForgeComponentSet,
|
|
10242
10405
|
iconSet: DTOForgeIconSet,
|
|
10243
10406
|
theme: DTOForgeProjectTheme,
|
|
10244
|
-
createdAt:
|
|
10245
|
-
updatedAt:
|
|
10407
|
+
createdAt: z327.coerce.date(),
|
|
10408
|
+
updatedAt: z327.coerce.date(),
|
|
10246
10409
|
thumbnail: DTOFileReference.optional()
|
|
10247
10410
|
});
|
|
10248
10411
|
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
@@ -10252,7 +10415,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10252
10415
|
isArchived: true,
|
|
10253
10416
|
thumbnail: true
|
|
10254
10417
|
}).extend({
|
|
10255
|
-
thumbnailFileId:
|
|
10418
|
+
thumbnailFileId: z327.string().optional()
|
|
10256
10419
|
});
|
|
10257
10420
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
10258
10421
|
id: true,
|
|
@@ -10261,49 +10424,70 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10261
10424
|
updatedAt: true,
|
|
10262
10425
|
thumbnail: true
|
|
10263
10426
|
}).partial().extend({
|
|
10264
|
-
thumbnailFileId:
|
|
10427
|
+
thumbnailFileId: z327.string().optional()
|
|
10265
10428
|
});
|
|
10266
|
-
var DTOForgeProjectContextResponseV2 =
|
|
10267
|
-
var DTOForgeProjectContextListQueryV2 =
|
|
10268
|
-
workspaceId:
|
|
10429
|
+
var DTOForgeProjectContextResponseV2 = z327.object({ context: DTOForgeProjectContextV2 });
|
|
10430
|
+
var DTOForgeProjectContextListQueryV2 = z327.object({
|
|
10431
|
+
workspaceId: z327.string(),
|
|
10269
10432
|
isArchived: zodQueryBoolean()
|
|
10270
10433
|
});
|
|
10271
|
-
var DTOForgeProjectContextListResponseV2 =
|
|
10434
|
+
var DTOForgeProjectContextListResponseV2 = z327.object({ contexts: z327.array(DTOForgeProjectContextV2) });
|
|
10272
10435
|
|
|
10273
|
-
// src/api/dto/forge/project-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
features: DTOForgeProjectFeature.array()
|
|
10436
|
+
// src/api/dto/forge/project-context-override.ts
|
|
10437
|
+
var DTOProjectContextOverride = z328.object({
|
|
10438
|
+
projectId: z328.string(),
|
|
10439
|
+
theme: DTOForgeProjectTheme.partial()
|
|
10278
10440
|
});
|
|
10279
|
-
var
|
|
10280
|
-
|
|
10441
|
+
var DTOProjectContextOverrideInput = z328.object({
|
|
10442
|
+
updateSharedContext: z328.boolean().optional(),
|
|
10443
|
+
theme: DTOForgeProjectTheme.partial()
|
|
10281
10444
|
});
|
|
10282
|
-
var
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
description: z324.string(),
|
|
10286
|
-
sectionId: Id.optional(),
|
|
10287
|
-
afterFeatureId: Id.nullable().optional(),
|
|
10288
|
-
initialMessage: DTOThreadMessageCreateInput
|
|
10445
|
+
var DTOProjectContextOverrideResponse = z328.object({
|
|
10446
|
+
override: DTOProjectContextOverride,
|
|
10447
|
+
resolvedContext: DTOForgeProjectContext
|
|
10289
10448
|
});
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10449
|
+
|
|
10450
|
+
// src/api/dto/forge/project-figma-node.ts
|
|
10451
|
+
var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
10452
|
+
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
10453
|
+
|
|
10454
|
+
// src/api/dto/forge/project-file.ts
|
|
10455
|
+
import { z as z329 } from "zod";
|
|
10456
|
+
var DTOForgeProjectFile = z329.object({
|
|
10457
|
+
id: z329.string(),
|
|
10458
|
+
name: z329.string(),
|
|
10459
|
+
checksum: z329.string(),
|
|
10460
|
+
pendingUpload: z329.boolean().optional(),
|
|
10461
|
+
url: z329.string(),
|
|
10462
|
+
size: z329.number()
|
|
10296
10463
|
});
|
|
10297
|
-
var
|
|
10298
|
-
|
|
10464
|
+
var DTOForgeProjectFileListResponse = z329.object({
|
|
10465
|
+
files: z329.array(DTOForgeProjectFile)
|
|
10299
10466
|
});
|
|
10300
|
-
var
|
|
10301
|
-
|
|
10467
|
+
var DTOForgeProjectFileUploadPayloadItem = z329.object({
|
|
10468
|
+
size: z329.number(),
|
|
10469
|
+
name: z329.string(),
|
|
10470
|
+
checksum: z329.string()
|
|
10302
10471
|
});
|
|
10303
|
-
var
|
|
10472
|
+
var DTOForgeProjectFileUploadPayload = z329.object({
|
|
10473
|
+
files: z329.array(DTOForgeProjectFileUploadPayloadItem)
|
|
10474
|
+
});
|
|
10475
|
+
var DTOForgeProjectFileUploadResponse = z329.object({
|
|
10476
|
+
files: z329.array(DTOForgeProjectFile),
|
|
10477
|
+
uploadUrls: z329.array(
|
|
10478
|
+
z329.object({
|
|
10479
|
+
fileId: z329.string(),
|
|
10480
|
+
uploadUrl: z329.string()
|
|
10481
|
+
})
|
|
10482
|
+
)
|
|
10483
|
+
});
|
|
10484
|
+
var DTOForgeProjectFileUploadFinalizePayload = z329.object({
|
|
10485
|
+
fileIds: z329.array(z329.string())
|
|
10486
|
+
});
|
|
10487
|
+
var DTOForgeProjectFileUploadFinalizeResponse = z329.object({ ok: z329.literal(true) });
|
|
10304
10488
|
|
|
10305
10489
|
// src/api/dto/forge/project-invitation.ts
|
|
10306
|
-
import { z as
|
|
10490
|
+
import { z as z330 } from "zod";
|
|
10307
10491
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
10308
10492
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10309
10493
|
email: true,
|
|
@@ -10313,295 +10497,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
|
10313
10497
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10314
10498
|
email: true
|
|
10315
10499
|
});
|
|
10316
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
10317
|
-
invitations:
|
|
10500
|
+
var DTOForgeProjectInvitationsListResponse = z330.object({
|
|
10501
|
+
invitations: z330.array(DTOForgeProjectInvitation)
|
|
10318
10502
|
});
|
|
10319
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
10503
|
+
var DTOForgeProjectInvitationGetResponse = z330.object({
|
|
10320
10504
|
invitation: DTOForgeProjectInvitation
|
|
10321
10505
|
});
|
|
10322
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
10506
|
+
var DTOForgeProjectInvitationCreateResponse = z330.object({
|
|
10323
10507
|
invitation: DTOForgeProjectInvitation
|
|
10324
10508
|
});
|
|
10325
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
10509
|
+
var DTOForgeProjectInvitationUpdateResponse = z330.object({
|
|
10326
10510
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
10327
10511
|
});
|
|
10328
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
10329
|
-
ok:
|
|
10330
|
-
});
|
|
10331
|
-
|
|
10332
|
-
// src/api/dto/forge/project.ts
|
|
10333
|
-
var DTOForgeProjectRole = ForgeProjectRole;
|
|
10334
|
-
var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
|
|
10335
|
-
var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
|
|
10336
|
-
var DTOForgeProjectDocumentPreview = z326.object({
|
|
10337
|
-
id: z326.string(),
|
|
10338
|
-
title: z326.string(),
|
|
10339
|
-
thumbnail: DTOFileReference.optional(),
|
|
10340
|
-
createdAt: z326.string(),
|
|
10341
|
-
updatedAt: z326.string()
|
|
10342
|
-
});
|
|
10343
|
-
var DTOForgeProjectFeaturePreview = z326.object({
|
|
10344
|
-
id: z326.string(),
|
|
10345
|
-
name: z326.string(),
|
|
10346
|
-
thumbnail: DTOFileReference.optional(),
|
|
10347
|
-
createdAt: z326.string(),
|
|
10348
|
-
updatedAt: z326.string()
|
|
10349
|
-
});
|
|
10350
|
-
var DTOForgeProject = z326.object({
|
|
10351
|
-
id: z326.string(),
|
|
10352
|
-
workspaceId: z326.string(),
|
|
10353
|
-
projectContextId: z326.string(),
|
|
10354
|
-
name: z326.string(),
|
|
10355
|
-
description: z326.string().optional(),
|
|
10356
|
-
instruction: z326.string().nullable(),
|
|
10357
|
-
tags: z326.array(z326.string()).default([]),
|
|
10358
|
-
accessMode: DTOForgeProjectAccessMode,
|
|
10359
|
-
defaultRole: DTOForgeProjectDefaultRole,
|
|
10360
|
-
isArchived: z326.boolean(),
|
|
10361
|
-
emoji: z326.string().optional(),
|
|
10362
|
-
tokenThemeSetId: z326.string().optional(),
|
|
10363
|
-
createdAt: z326.coerce.date(),
|
|
10364
|
-
createdByUserId: z326.string().optional(),
|
|
10365
|
-
lastUserActivityAt: z326.coerce.date().optional(),
|
|
10366
|
-
updatedAt: z326.coerce.date(),
|
|
10367
|
-
documents: DTOForgeProjectDocumentPreview.array(),
|
|
10368
|
-
features: DTOForgeProjectFeaturePreview.array(),
|
|
10369
|
-
/** @deprecated use `projectContextId` */
|
|
10370
|
-
fpContextId: z326.string(),
|
|
10371
|
-
/** @deprecated use `name` and `description` properties on project */
|
|
10372
|
-
meta: z326.object({
|
|
10373
|
-
name: z326.string(),
|
|
10374
|
-
description: z326.string().optional()
|
|
10375
|
-
}),
|
|
10376
|
-
/** @deprecated use features.length */
|
|
10377
|
-
numberOfFeatures: z326.number().int().nonnegative(),
|
|
10378
|
-
/** @deprecated use documents.length */
|
|
10379
|
-
numberOfDocuments: z326.number().int().nonnegative().optional(),
|
|
10380
|
-
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
10381
|
-
context: DTOForgeProjectContextV2.optional(),
|
|
10382
|
-
liveblocksRoomId: z326.string().optional()
|
|
10383
|
-
});
|
|
10384
|
-
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
10385
|
-
name: true,
|
|
10386
|
-
description: true,
|
|
10387
|
-
instruction: true,
|
|
10388
|
-
tags: true,
|
|
10389
|
-
emoji: true,
|
|
10390
|
-
tokenThemeSetId: true
|
|
10391
|
-
}).extend({
|
|
10392
|
-
/** @deprecated use `name` and `description` properties on project */
|
|
10393
|
-
meta: DTOForgeProject.shape.meta.optional(),
|
|
10394
|
-
/** @deprecated use `projectContextId` */
|
|
10395
|
-
fpContextId: z326.string().optional(),
|
|
10396
|
-
projectContextId: z326.string().optional(),
|
|
10397
|
-
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
10398
|
-
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
10399
|
-
initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
|
|
10400
|
-
accessMode: DTOForgeProjectAccessMode.optional(),
|
|
10401
|
-
defaultRole: DTOForgeProjectDefaultRole.optional()
|
|
10402
|
-
});
|
|
10403
|
-
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
10404
|
-
id: z326.string(),
|
|
10405
|
-
isArchived: z326.boolean().optional()
|
|
10406
|
-
});
|
|
10407
|
-
var DTOForgeProjectListResponse = z326.object({
|
|
10408
|
-
projects: z326.array(
|
|
10409
|
-
DTOForgeProject.extend({
|
|
10410
|
-
effectiveRole: DTOForgeProjectRole
|
|
10411
|
-
})
|
|
10412
|
-
)
|
|
10413
|
-
});
|
|
10414
|
-
var DTOForgeProjectResponse = z326.object({
|
|
10415
|
-
project: DTOForgeProject.extend({
|
|
10416
|
-
effectiveRole: DTOForgeProjectRole
|
|
10417
|
-
})
|
|
10418
|
-
});
|
|
10419
|
-
|
|
10420
|
-
// src/api/dto/forge/project-action.ts
|
|
10421
|
-
import z327 from "zod";
|
|
10422
|
-
var DTOForgeProjectActionFeatureCreate = z327.object({
|
|
10423
|
-
type: z327.literal("FeatureCreate"),
|
|
10424
|
-
input: DTOForgeProjectFeatureCreateInput
|
|
10425
|
-
});
|
|
10426
|
-
var DTOForgeProjectActionFeatureUpdate = z327.object({
|
|
10427
|
-
type: z327.literal("FeatureUpdate"),
|
|
10428
|
-
input: DTOForgeProjectFeatureUpdateInput
|
|
10429
|
-
});
|
|
10430
|
-
var DTOForgeProjectActionFeatureMove = z327.object({
|
|
10431
|
-
type: z327.literal("FeatureMove"),
|
|
10432
|
-
input: DTOForgeProjectFeatureMoveInput
|
|
10433
|
-
});
|
|
10434
|
-
var DTOForgeProjectActionFeatureDelete = z327.object({
|
|
10435
|
-
type: z327.literal("FeatureDelete"),
|
|
10436
|
-
input: DTOForgeProjectFeatureDeleteInput
|
|
10437
|
-
});
|
|
10438
|
-
var DTOForgeProjectActionArtifactCreate = z327.object({
|
|
10439
|
-
type: z327.literal("ArtifactCreate"),
|
|
10440
|
-
input: DTOForgeProjectArtifactCreateInput
|
|
10441
|
-
});
|
|
10442
|
-
var DTOForgeProjectActionArtifactUpdate = z327.object({
|
|
10443
|
-
type: z327.literal("ArtifactUpdate"),
|
|
10444
|
-
input: DTOForgeProjectArtifactUpdateInput
|
|
10445
|
-
});
|
|
10446
|
-
var DTOForgeProjectActionArtifactDelete = z327.object({
|
|
10447
|
-
type: z327.literal("ArtifactDelete"),
|
|
10448
|
-
input: DTOForgeProjectArtifactDeleteInput
|
|
10449
|
-
});
|
|
10450
|
-
var DTOForgeProjectActionArtifactMove = z327.object({
|
|
10451
|
-
type: z327.literal("ArtifactMove"),
|
|
10452
|
-
input: DTOForgeProjectArtifactMoveInput
|
|
10453
|
-
});
|
|
10454
|
-
var DTOForgeProjectActionSectionCreate = z327.object({
|
|
10455
|
-
type: z327.literal("SectionCreate"),
|
|
10456
|
-
input: DTOForgeSectionCreateInput
|
|
10457
|
-
});
|
|
10458
|
-
var DTOForgeProjectActionSectionUpdate = z327.object({
|
|
10459
|
-
type: z327.literal("SectionUpdate"),
|
|
10460
|
-
input: DTOForgeSectionUpdateInput
|
|
10461
|
-
});
|
|
10462
|
-
var DTOForgeProjectActionSectionDelete = z327.object({
|
|
10463
|
-
type: z327.literal("SectionDelete"),
|
|
10464
|
-
input: DTOForgeSectionDeleteInput
|
|
10465
|
-
});
|
|
10466
|
-
var DTOForgeProjectActionSectionMove = z327.object({
|
|
10467
|
-
type: z327.literal("SectionMove"),
|
|
10468
|
-
input: DTOForgeSectionMoveInput
|
|
10469
|
-
});
|
|
10470
|
-
var DTOForgeProjectAction = z327.discriminatedUnion("type", [
|
|
10471
|
-
//features
|
|
10472
|
-
DTOForgeProjectActionFeatureCreate,
|
|
10473
|
-
DTOForgeProjectActionFeatureUpdate,
|
|
10474
|
-
DTOForgeProjectActionFeatureDelete,
|
|
10475
|
-
DTOForgeProjectActionFeatureMove,
|
|
10476
|
-
//artifacts
|
|
10477
|
-
DTOForgeProjectActionArtifactCreate,
|
|
10478
|
-
DTOForgeProjectActionArtifactUpdate,
|
|
10479
|
-
DTOForgeProjectActionArtifactDelete,
|
|
10480
|
-
DTOForgeProjectActionArtifactMove,
|
|
10481
|
-
//section
|
|
10482
|
-
DTOForgeProjectActionSectionCreate,
|
|
10483
|
-
DTOForgeProjectActionSectionUpdate,
|
|
10484
|
-
DTOForgeProjectActionSectionDelete,
|
|
10485
|
-
DTOForgeProjectActionSectionMove
|
|
10486
|
-
]).and(
|
|
10487
|
-
z327.object({
|
|
10488
|
-
tId: z327.string().optional()
|
|
10489
|
-
})
|
|
10490
|
-
);
|
|
10491
|
-
|
|
10492
|
-
// src/api/dto/forge/project-artifact-room.ts
|
|
10493
|
-
import { z as z328 } from "zod";
|
|
10494
|
-
var DTOForgeProjectArtifactRoom = z328.object({
|
|
10495
|
-
id: z328.string()
|
|
10496
|
-
});
|
|
10497
|
-
var DTOForgeProjectArtifactRoomResponse = z328.object({
|
|
10498
|
-
room: DTOForgeProjectArtifactRoom
|
|
10499
|
-
});
|
|
10500
|
-
|
|
10501
|
-
// src/api/dto/forge/project-context.ts
|
|
10502
|
-
import { z as z329 } from "zod";
|
|
10503
|
-
var DTOForgeProjectContext = z329.object({
|
|
10504
|
-
definition: z329.string(),
|
|
10505
|
-
dependencies: z329.array(
|
|
10506
|
-
z329.object({
|
|
10507
|
-
packageName: z329.string(),
|
|
10508
|
-
type: z329.literal("npm"),
|
|
10509
|
-
version: z329.string().default("latest")
|
|
10510
|
-
})
|
|
10511
|
-
),
|
|
10512
|
-
designSystemId: z329.string(),
|
|
10513
|
-
id: z329.string(),
|
|
10514
|
-
meta: z329.object({
|
|
10515
|
-
name: z329.string(),
|
|
10516
|
-
description: z329.string().optional()
|
|
10517
|
-
}),
|
|
10518
|
-
name: z329.string(),
|
|
10519
|
-
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10520
|
-
platform: z329.enum(["React", "Vue", "Angular"]),
|
|
10521
|
-
styling: z329.enum(["CSS", "Tailwind"]),
|
|
10522
|
-
tailwindConfig: z329.object({
|
|
10523
|
-
content: z329.string(),
|
|
10524
|
-
version: z329.string()
|
|
10525
|
-
}).optional(),
|
|
10526
|
-
createdAt: z329.coerce.date(),
|
|
10527
|
-
updatedAt: z329.coerce.date(),
|
|
10528
|
-
workspaceId: z329.string()
|
|
10529
|
-
});
|
|
10530
|
-
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
10531
|
-
definition: true,
|
|
10532
|
-
name: true,
|
|
10533
|
-
meta: true,
|
|
10534
|
-
designSystemId: true,
|
|
10535
|
-
platform: true,
|
|
10536
|
-
dependencies: true,
|
|
10537
|
-
tailwindConfig: true,
|
|
10538
|
-
styling: true
|
|
10539
|
-
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10540
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z329.string() });
|
|
10541
|
-
var DTOForgeProjectContextGetResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10542
|
-
var DTOForgeProjectContextListResponse = z329.object({ contexts: z329.array(DTOForgeProjectContext) });
|
|
10543
|
-
var DTOForgeProjectContextCreateResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10544
|
-
var DTOForgeProjectContextUpdateResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10545
|
-
var DTOForgeProjectContextRemoveResponse = z329.object({
|
|
10546
|
-
ok: z329.literal(true)
|
|
10547
|
-
});
|
|
10548
|
-
|
|
10549
|
-
// src/api/dto/forge/project-context-override.ts
|
|
10550
|
-
import z330 from "zod";
|
|
10551
|
-
var DTOProjectContextOverride = z330.object({
|
|
10552
|
-
projectId: z330.string(),
|
|
10553
|
-
theme: DTOForgeProjectTheme.partial()
|
|
10554
|
-
});
|
|
10555
|
-
var DTOProjectContextOverrideInput = z330.object({
|
|
10556
|
-
updateSharedContext: z330.boolean().optional(),
|
|
10557
|
-
theme: DTOForgeProjectTheme.partial()
|
|
10558
|
-
});
|
|
10559
|
-
var DTOProjectContextOverrideResponse = z330.object({
|
|
10560
|
-
override: DTOProjectContextOverride,
|
|
10561
|
-
resolvedContext: DTOForgeProjectContext
|
|
10562
|
-
});
|
|
10563
|
-
|
|
10564
|
-
// src/api/dto/forge/project-figma-node.ts
|
|
10565
|
-
var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
10566
|
-
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
10567
|
-
|
|
10568
|
-
// src/api/dto/forge/project-file.ts
|
|
10569
|
-
import { z as z331 } from "zod";
|
|
10570
|
-
var DTOForgeProjectFile = z331.object({
|
|
10571
|
-
id: z331.string(),
|
|
10572
|
-
name: z331.string(),
|
|
10573
|
-
checksum: z331.string(),
|
|
10574
|
-
pendingUpload: z331.boolean().optional(),
|
|
10575
|
-
url: z331.string(),
|
|
10576
|
-
size: z331.number()
|
|
10577
|
-
});
|
|
10578
|
-
var DTOForgeProjectFileListResponse = z331.object({
|
|
10579
|
-
files: z331.array(DTOForgeProjectFile)
|
|
10580
|
-
});
|
|
10581
|
-
var DTOForgeProjectFileUploadPayloadItem = z331.object({
|
|
10582
|
-
size: z331.number(),
|
|
10583
|
-
name: z331.string(),
|
|
10584
|
-
checksum: z331.string()
|
|
10585
|
-
});
|
|
10586
|
-
var DTOForgeProjectFileUploadPayload = z331.object({
|
|
10587
|
-
files: z331.array(DTOForgeProjectFileUploadPayloadItem)
|
|
10588
|
-
});
|
|
10589
|
-
var DTOForgeProjectFileUploadResponse = z331.object({
|
|
10590
|
-
files: z331.array(DTOForgeProjectFile),
|
|
10591
|
-
uploadUrls: z331.array(
|
|
10592
|
-
z331.object({
|
|
10593
|
-
fileId: z331.string(),
|
|
10594
|
-
uploadUrl: z331.string()
|
|
10595
|
-
})
|
|
10596
|
-
)
|
|
10597
|
-
});
|
|
10598
|
-
var DTOForgeProjectFileUploadFinalizePayload = z331.object({
|
|
10599
|
-
fileIds: z331.array(z331.string())
|
|
10512
|
+
var DTOForgeProjectInvitationRemoveResponse = z330.object({
|
|
10513
|
+
ok: z330.literal(true)
|
|
10600
10514
|
});
|
|
10601
|
-
var DTOForgeProjectFileUploadFinalizeResponse = z331.object({ ok: z331.literal(true) });
|
|
10602
10515
|
|
|
10603
10516
|
// src/api/dto/forge/project-iteration-old.ts
|
|
10604
|
-
import { z as
|
|
10517
|
+
import { z as z331 } from "zod";
|
|
10605
10518
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
10606
10519
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
10607
10520
|
artifacts: true,
|
|
@@ -10612,7 +10525,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
10612
10525
|
messages: DTOForgeIterationMessage.array(),
|
|
10613
10526
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
10614
10527
|
});
|
|
10615
|
-
var DTOGetForgeProjectIterationResponse =
|
|
10528
|
+
var DTOGetForgeProjectIterationResponse = z331.object({
|
|
10616
10529
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10617
10530
|
});
|
|
10618
10531
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -10622,25 +10535,25 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
10622
10535
|
mergeMeta: true,
|
|
10623
10536
|
createdAt: true
|
|
10624
10537
|
});
|
|
10625
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
10626
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
10538
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z331.string() });
|
|
10539
|
+
var DTOCreateForgeProjectIterationResponse = z331.object({
|
|
10627
10540
|
iteration: DTOForgeProjectIteration
|
|
10628
10541
|
});
|
|
10629
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
10542
|
+
var DTOUpdateForgeProjectIterationResponse = z331.object({
|
|
10630
10543
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10631
10544
|
});
|
|
10632
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
10633
|
-
ok:
|
|
10545
|
+
var DTODeleteForgeProjectIterationResponse = z331.object({
|
|
10546
|
+
ok: z331.literal(true)
|
|
10634
10547
|
});
|
|
10635
|
-
var DTOForgeProjectIterationListResponse =
|
|
10548
|
+
var DTOForgeProjectIterationListResponse = z331.object({ iterations: z331.array(DTOForgeProjectIteration) });
|
|
10636
10549
|
|
|
10637
10550
|
// src/api/dto/forge/project-member.ts
|
|
10638
|
-
import { z as
|
|
10551
|
+
import { z as z332 } from "zod";
|
|
10639
10552
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
10640
10553
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
10641
10554
|
user: DTOUser,
|
|
10642
10555
|
effectiveRole: DTOForgeProjectMemberRole,
|
|
10643
|
-
isDeactivated:
|
|
10556
|
+
isDeactivated: z332.boolean()
|
|
10644
10557
|
});
|
|
10645
10558
|
var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
|
|
10646
10559
|
userId: true,
|
|
@@ -10650,35 +10563,168 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
|
10650
10563
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
10651
10564
|
userId: true
|
|
10652
10565
|
});
|
|
10653
|
-
var DTOForgeProjectMembersListResponse =
|
|
10654
|
-
members:
|
|
10655
|
-
invitations:
|
|
10566
|
+
var DTOForgeProjectMembersListResponse = z332.object({
|
|
10567
|
+
members: z332.array(DTOForgeProjectMember),
|
|
10568
|
+
invitations: z332.array(DTOForgeProjectInvitation)
|
|
10656
10569
|
});
|
|
10657
|
-
var DTOForgeProjectMemberGetResponse =
|
|
10570
|
+
var DTOForgeProjectMemberGetResponse = z332.object({
|
|
10658
10571
|
member: DTOForgeProjectMember
|
|
10659
10572
|
});
|
|
10660
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
10573
|
+
var DTOForgeProjectMemberCreateResponse = z332.object({
|
|
10661
10574
|
member: DTOForgeProjectMember
|
|
10662
10575
|
});
|
|
10663
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
10576
|
+
var DTOForgeProjectMemberUpdateResponse = z332.object({
|
|
10664
10577
|
member: DTOForgeProjectMember.nullable()
|
|
10665
10578
|
});
|
|
10666
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
10667
|
-
ok:
|
|
10579
|
+
var DTOForgeProjectMemberRemoveResponse = z332.object({
|
|
10580
|
+
ok: z332.literal(true)
|
|
10668
10581
|
});
|
|
10669
|
-
var DTOAddMembersToForgeProject =
|
|
10582
|
+
var DTOAddMembersToForgeProject = z332.object({
|
|
10670
10583
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
|
|
10671
10584
|
});
|
|
10672
10585
|
|
|
10673
10586
|
// src/api/dto/forge/project-room.ts
|
|
10674
|
-
import { z as
|
|
10675
|
-
var DTOForgeProjectRoom =
|
|
10676
|
-
id:
|
|
10587
|
+
import { z as z333 } from "zod";
|
|
10588
|
+
var DTOForgeProjectRoom = z333.object({
|
|
10589
|
+
id: z333.string()
|
|
10677
10590
|
});
|
|
10678
|
-
var DTOForgeProjectRoomResponse =
|
|
10591
|
+
var DTOForgeProjectRoomResponse = z333.object({
|
|
10679
10592
|
room: DTOForgeProjectRoom
|
|
10680
10593
|
});
|
|
10681
10594
|
|
|
10595
|
+
// src/api/dto/forge/project.ts
|
|
10596
|
+
import { z as z334 } from "zod";
|
|
10597
|
+
var DTOForgeProjectRole = ForgeProjectRole;
|
|
10598
|
+
var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
|
|
10599
|
+
var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
|
|
10600
|
+
var DTOForgeProjectDocumentPreview = z334.object({
|
|
10601
|
+
id: z334.string(),
|
|
10602
|
+
title: z334.string(),
|
|
10603
|
+
thumbnail: DTOFileReference.optional(),
|
|
10604
|
+
createdAt: z334.string(),
|
|
10605
|
+
updatedAt: z334.string()
|
|
10606
|
+
});
|
|
10607
|
+
var DTOForgeProjectFeaturePreview = z334.object({
|
|
10608
|
+
id: z334.string(),
|
|
10609
|
+
name: z334.string(),
|
|
10610
|
+
thumbnail: DTOFileReference.optional(),
|
|
10611
|
+
createdAt: z334.string(),
|
|
10612
|
+
updatedAt: z334.string()
|
|
10613
|
+
});
|
|
10614
|
+
var DTOForgeProject = z334.object({
|
|
10615
|
+
id: z334.string(),
|
|
10616
|
+
workspaceId: z334.string(),
|
|
10617
|
+
projectContextId: z334.string(),
|
|
10618
|
+
name: z334.string(),
|
|
10619
|
+
description: z334.string().optional(),
|
|
10620
|
+
instruction: z334.string().nullable(),
|
|
10621
|
+
tags: z334.array(z334.string()).default([]),
|
|
10622
|
+
accessMode: DTOForgeProjectAccessMode,
|
|
10623
|
+
defaultRole: DTOForgeProjectDefaultRole,
|
|
10624
|
+
isArchived: z334.boolean(),
|
|
10625
|
+
emoji: z334.string().optional(),
|
|
10626
|
+
tokenThemeSetId: z334.string().optional(),
|
|
10627
|
+
createdAt: z334.coerce.date(),
|
|
10628
|
+
createdByUserId: z334.string().optional(),
|
|
10629
|
+
lastUserActivityAt: z334.coerce.date().optional(),
|
|
10630
|
+
updatedAt: z334.coerce.date(),
|
|
10631
|
+
documents: DTOForgeProjectDocumentPreview.array(),
|
|
10632
|
+
features: DTOForgeProjectFeaturePreview.array(),
|
|
10633
|
+
/** @deprecated use `projectContextId` */
|
|
10634
|
+
fpContextId: z334.string(),
|
|
10635
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
10636
|
+
meta: z334.object({
|
|
10637
|
+
name: z334.string(),
|
|
10638
|
+
description: z334.string().optional()
|
|
10639
|
+
}),
|
|
10640
|
+
/** @deprecated use features.length */
|
|
10641
|
+
numberOfFeatures: z334.number().int().nonnegative(),
|
|
10642
|
+
/** @deprecated use documents.length */
|
|
10643
|
+
numberOfDocuments: z334.number().int().nonnegative().optional(),
|
|
10644
|
+
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
10645
|
+
context: DTOForgeProjectContextV2.optional(),
|
|
10646
|
+
liveblocksRoomId: z334.string().optional()
|
|
10647
|
+
});
|
|
10648
|
+
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
10649
|
+
name: true,
|
|
10650
|
+
description: true,
|
|
10651
|
+
instruction: true,
|
|
10652
|
+
tags: true,
|
|
10653
|
+
emoji: true,
|
|
10654
|
+
tokenThemeSetId: true
|
|
10655
|
+
}).extend({
|
|
10656
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
10657
|
+
meta: DTOForgeProject.shape.meta.optional(),
|
|
10658
|
+
/** @deprecated use `projectContextId` */
|
|
10659
|
+
fpContextId: z334.string().optional(),
|
|
10660
|
+
projectContextId: z334.string().optional(),
|
|
10661
|
+
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
10662
|
+
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
10663
|
+
initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
|
|
10664
|
+
accessMode: DTOForgeProjectAccessMode.optional(),
|
|
10665
|
+
defaultRole: DTOForgeProjectDefaultRole.optional()
|
|
10666
|
+
});
|
|
10667
|
+
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
10668
|
+
id: z334.string(),
|
|
10669
|
+
isArchived: z334.boolean().optional()
|
|
10670
|
+
});
|
|
10671
|
+
var DTOForgeProjectListResponse = z334.object({
|
|
10672
|
+
projects: z334.array(
|
|
10673
|
+
DTOForgeProject.extend({
|
|
10674
|
+
effectiveRole: DTOForgeProjectRole
|
|
10675
|
+
})
|
|
10676
|
+
)
|
|
10677
|
+
});
|
|
10678
|
+
var DTOForgeProjectResponse = z334.object({
|
|
10679
|
+
project: DTOForgeProject.extend({
|
|
10680
|
+
effectiveRole: DTOForgeProjectRole
|
|
10681
|
+
})
|
|
10682
|
+
});
|
|
10683
|
+
var DTOForgeProjectCreated = z334.object({
|
|
10684
|
+
type: z334.literal("ProjectCreated"),
|
|
10685
|
+
data: z334.object({ id: z334.string() })
|
|
10686
|
+
});
|
|
10687
|
+
var DTOForgeProjectUpdated = z334.object({
|
|
10688
|
+
type: z334.literal("ProjectUpdated"),
|
|
10689
|
+
data: z334.object({ id: z334.string() })
|
|
10690
|
+
});
|
|
10691
|
+
var DTOForgeProjectMembersCreated = z334.object({
|
|
10692
|
+
type: z334.literal("ProjectMembersCreated"),
|
|
10693
|
+
data: z334.array(DTOForgeProjectMember)
|
|
10694
|
+
});
|
|
10695
|
+
var DTOForgeProjectMemberUpdated = z334.object({
|
|
10696
|
+
type: z334.literal("ProjectMemberUpdated"),
|
|
10697
|
+
data: DTOForgeProjectMember
|
|
10698
|
+
});
|
|
10699
|
+
var DTOForgeProjectMemberDeleted = z334.object({
|
|
10700
|
+
type: z334.literal("ProjectMemberDeleted"),
|
|
10701
|
+
data: DTOForgeProjectMember.pick({ userId: true })
|
|
10702
|
+
});
|
|
10703
|
+
var DTOForgeProjectContextCreated = z334.object({
|
|
10704
|
+
type: z334.literal("ProjectContextCreated"),
|
|
10705
|
+
data: DTOForgeProjectContextV2
|
|
10706
|
+
});
|
|
10707
|
+
var DTOForgeProjectContextUpdated = z334.object({
|
|
10708
|
+
type: z334.literal("ProjectContextUpdated"),
|
|
10709
|
+
data: DTOForgeProjectContextV2
|
|
10710
|
+
});
|
|
10711
|
+
var DTOForgeProjectContextDeleted = z334.object({
|
|
10712
|
+
type: z334.literal("ProjectContextDeleted"),
|
|
10713
|
+
data: DTOForgeProjectContextV2.pick({ id: true })
|
|
10714
|
+
});
|
|
10715
|
+
var DTOWorkspaceRoomEvent = z334.discriminatedUnion("type", [
|
|
10716
|
+
DTOForgeProjectUpdated,
|
|
10717
|
+
DTOForgeProjectCreated,
|
|
10718
|
+
DTOForgeProjectContextCreated,
|
|
10719
|
+
DTOForgeProjectContextUpdated,
|
|
10720
|
+
DTOForgeProjectContextDeleted
|
|
10721
|
+
]);
|
|
10722
|
+
var DTOForgeProjectRoomEvent = z334.discriminatedUnion("type", [
|
|
10723
|
+
DTOForgeProjectMembersCreated,
|
|
10724
|
+
DTOForgeProjectMemberUpdated,
|
|
10725
|
+
DTOForgeProjectMemberDeleted
|
|
10726
|
+
]);
|
|
10727
|
+
|
|
10682
10728
|
// src/api/dto/forge/relation.ts
|
|
10683
10729
|
import z335 from "zod";
|
|
10684
10730
|
var DTOForgeRelationType = ForgeRelationType;
|
|
@@ -19999,6 +20045,8 @@ export {
|
|
|
19999
20045
|
DTOForgeProjectContext,
|
|
20000
20046
|
DTOForgeProjectContextCreateResponse,
|
|
20001
20047
|
DTOForgeProjectContextCreateV2,
|
|
20048
|
+
DTOForgeProjectContextCreated,
|
|
20049
|
+
DTOForgeProjectContextDeleted,
|
|
20002
20050
|
DTOForgeProjectContextGetResponse,
|
|
20003
20051
|
DTOForgeProjectContextListQueryV2,
|
|
20004
20052
|
DTOForgeProjectContextListResponse,
|
|
@@ -20007,8 +20055,10 @@ export {
|
|
|
20007
20055
|
DTOForgeProjectContextResponseV2,
|
|
20008
20056
|
DTOForgeProjectContextUpdateResponse,
|
|
20009
20057
|
DTOForgeProjectContextUpdateV2,
|
|
20058
|
+
DTOForgeProjectContextUpdated,
|
|
20010
20059
|
DTOForgeProjectContextV2,
|
|
20011
20060
|
DTOForgeProjectCreate,
|
|
20061
|
+
DTOForgeProjectCreated,
|
|
20012
20062
|
DTOForgeProjectDefaultRole,
|
|
20013
20063
|
DTOForgeProjectDocumentPreview,
|
|
20014
20064
|
DTOForgeProjectFeature,
|
|
@@ -20041,17 +20091,22 @@ export {
|
|
|
20041
20091
|
DTOForgeProjectListResponse,
|
|
20042
20092
|
DTOForgeProjectMember,
|
|
20043
20093
|
DTOForgeProjectMemberCreateResponse,
|
|
20094
|
+
DTOForgeProjectMemberDeleted,
|
|
20044
20095
|
DTOForgeProjectMemberGetResponse,
|
|
20045
20096
|
DTOForgeProjectMemberRemoveResponse,
|
|
20046
20097
|
DTOForgeProjectMemberRole,
|
|
20047
20098
|
DTOForgeProjectMemberUpdateResponse,
|
|
20099
|
+
DTOForgeProjectMemberUpdated,
|
|
20100
|
+
DTOForgeProjectMembersCreated,
|
|
20048
20101
|
DTOForgeProjectMembersListResponse,
|
|
20049
20102
|
DTOForgeProjectResponse,
|
|
20050
20103
|
DTOForgeProjectRole,
|
|
20051
20104
|
DTOForgeProjectRoom,
|
|
20105
|
+
DTOForgeProjectRoomEvent,
|
|
20052
20106
|
DTOForgeProjectRoomResponse,
|
|
20053
20107
|
DTOForgeProjectTheme,
|
|
20054
20108
|
DTOForgeProjectUpdate,
|
|
20109
|
+
DTOForgeProjectUpdated,
|
|
20055
20110
|
DTOForgeRelation,
|
|
20056
20111
|
DTOForgeRelationCreate,
|
|
20057
20112
|
DTOForgeRelationDelete,
|
|
@@ -20270,6 +20325,7 @@ export {
|
|
|
20270
20325
|
DTOWorkspaceProfile,
|
|
20271
20326
|
DTOWorkspaceResponse,
|
|
20272
20327
|
DTOWorkspaceRole,
|
|
20328
|
+
DTOWorkspaceRoomEvent,
|
|
20273
20329
|
DTOWorkspaceSeatType,
|
|
20274
20330
|
DTOWorkspaceUntypedData,
|
|
20275
20331
|
DTOWorkspaceUntypedDataCreatePayload,
|