@supernova-studio/client 1.48.5 → 1.48.7
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 +3817 -155
- package/dist/index.d.ts +3817 -155
- package/dist/index.js +56 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +56 -40
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7424,6 +7424,7 @@ var DTOUserWorkspaceMembership = z247.object({
|
|
|
7424
7424
|
effectiveSeatType: DTOWorkspaceSeatType
|
|
7425
7425
|
});
|
|
7426
7426
|
var DTOWorkspaceMember = z247.object({
|
|
7427
|
+
membershipId: z247.string(),
|
|
7427
7428
|
user: User,
|
|
7428
7429
|
role: DTOWorkspaceRole,
|
|
7429
7430
|
effectiveRole: DTOWorkspaceRole,
|
|
@@ -10280,20 +10281,27 @@ var DTOForgeProjectContextV2 = z324.object({
|
|
|
10280
10281
|
iconSet: DTOForgeIconSet,
|
|
10281
10282
|
theme: DTOForgeProjectTheme,
|
|
10282
10283
|
createdAt: z324.coerce.date(),
|
|
10283
|
-
updatedAt: z324.coerce.date()
|
|
10284
|
+
updatedAt: z324.coerce.date(),
|
|
10285
|
+
thumbnail: DTOFileReference.optional()
|
|
10284
10286
|
});
|
|
10285
10287
|
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
10286
10288
|
id: true,
|
|
10287
10289
|
createdAt: true,
|
|
10288
10290
|
updatedAt: true,
|
|
10289
|
-
isArchived: true
|
|
10291
|
+
isArchived: true,
|
|
10292
|
+
thumbnail: true
|
|
10293
|
+
}).extend({
|
|
10294
|
+
thumbnailFileId: z324.string().optional()
|
|
10290
10295
|
});
|
|
10291
10296
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
10292
10297
|
id: true,
|
|
10293
10298
|
workspaceId: true,
|
|
10294
10299
|
createdAt: true,
|
|
10295
|
-
updatedAt: true
|
|
10296
|
-
|
|
10300
|
+
updatedAt: true,
|
|
10301
|
+
thumbnail: true
|
|
10302
|
+
}).partial().extend({
|
|
10303
|
+
thumbnailFileId: z324.string().optional()
|
|
10304
|
+
});
|
|
10297
10305
|
var DTOForgeProjectContextResponseV2 = z324.object({ context: DTOForgeProjectContextV2 });
|
|
10298
10306
|
var DTOForgeProjectContextListQueryV2 = z324.object({
|
|
10299
10307
|
workspaceId: z324.string(),
|
|
@@ -10394,12 +10402,8 @@ var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
|
10394
10402
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10395
10403
|
email: true,
|
|
10396
10404
|
role: true
|
|
10397
|
-
}).extend({
|
|
10398
|
-
workspaceRole: WorkspaceRoleSchema
|
|
10399
|
-
});
|
|
10400
|
-
var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
|
|
10401
|
-
workspaceRole: true
|
|
10402
10405
|
});
|
|
10406
|
+
var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
10403
10407
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10404
10408
|
email: true
|
|
10405
10409
|
});
|
|
@@ -12236,27 +12240,23 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
12236
12240
|
}
|
|
12237
12241
|
list(workspaceId) {
|
|
12238
12242
|
return this.requestExecutor.json(
|
|
12239
|
-
`/
|
|
12240
|
-
|
|
12243
|
+
`/forge/project-contexts?workspaceId=${workspaceId}`,
|
|
12244
|
+
DTOForgeProjectContextListResponseV2,
|
|
12241
12245
|
{
|
|
12242
12246
|
method: "GET"
|
|
12243
12247
|
}
|
|
12244
12248
|
);
|
|
12245
12249
|
}
|
|
12246
|
-
create(
|
|
12247
|
-
return this.requestExecutor.json(
|
|
12248
|
-
|
|
12249
|
-
|
|
12250
|
-
|
|
12251
|
-
method: "POST",
|
|
12252
|
-
body
|
|
12253
|
-
}
|
|
12254
|
-
);
|
|
12250
|
+
create(body) {
|
|
12251
|
+
return this.requestExecutor.json(`/forge/project-contexts`, DTOForgeProjectContextResponseV2, {
|
|
12252
|
+
method: "POST",
|
|
12253
|
+
body
|
|
12254
|
+
});
|
|
12255
12255
|
}
|
|
12256
12256
|
update(workspaceId, contextId, body) {
|
|
12257
12257
|
return this.requestExecutor.json(
|
|
12258
12258
|
`/workspaces/${workspaceId}/forge/project-contexts/${contextId}`,
|
|
12259
|
-
|
|
12259
|
+
DTOForgeProjectContextResponseV2,
|
|
12260
12260
|
{
|
|
12261
12261
|
method: "PUT",
|
|
12262
12262
|
body
|
|
@@ -12333,28 +12333,44 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
12333
12333
|
constructor(requestExecutor) {
|
|
12334
12334
|
this.requestExecutor = requestExecutor;
|
|
12335
12335
|
}
|
|
12336
|
-
list(projectId) {
|
|
12337
|
-
return this.requestExecutor.json(
|
|
12338
|
-
|
|
12339
|
-
|
|
12336
|
+
list(workspaceId, projectId) {
|
|
12337
|
+
return this.requestExecutor.json(
|
|
12338
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/members`,
|
|
12339
|
+
DTOForgeProjectMembersListResponse,
|
|
12340
|
+
{
|
|
12341
|
+
method: "GET"
|
|
12342
|
+
}
|
|
12343
|
+
);
|
|
12340
12344
|
}
|
|
12341
|
-
create(projectId, body) {
|
|
12342
|
-
return this.requestExecutor.json(
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12345
|
+
create(workspaceId, projectId, body) {
|
|
12346
|
+
return this.requestExecutor.json(
|
|
12347
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/members`,
|
|
12348
|
+
DTOForgeProjectMembersListResponse,
|
|
12349
|
+
{
|
|
12350
|
+
method: "POST",
|
|
12351
|
+
body
|
|
12352
|
+
}
|
|
12353
|
+
);
|
|
12346
12354
|
}
|
|
12347
|
-
update(
|
|
12348
|
-
return this.requestExecutor.json(
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12355
|
+
update(workspaceId, projectId, body) {
|
|
12356
|
+
return this.requestExecutor.json(
|
|
12357
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/members`,
|
|
12358
|
+
DTOForgeProjectMemberCreateResponse,
|
|
12359
|
+
{
|
|
12360
|
+
method: "PUT",
|
|
12361
|
+
body
|
|
12362
|
+
}
|
|
12363
|
+
);
|
|
12352
12364
|
}
|
|
12353
|
-
delete(projectId, userId) {
|
|
12354
|
-
return this.requestExecutor.json(
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12365
|
+
delete(workspaceId, projectId, userId) {
|
|
12366
|
+
return this.requestExecutor.json(
|
|
12367
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/members`,
|
|
12368
|
+
DTOForgeProjectMemberRemoveResponse,
|
|
12369
|
+
{
|
|
12370
|
+
method: "DELETE",
|
|
12371
|
+
body: { userId }
|
|
12372
|
+
}
|
|
12373
|
+
);
|
|
12358
12374
|
}
|
|
12359
12375
|
};
|
|
12360
12376
|
|