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