@supernova-studio/client 1.48.6 → 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 +3175 -333
- package/dist/index.d.ts +3175 -333
- package/dist/index.js +45 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +45 -36
- 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,
|
|
@@ -10401,12 +10402,8 @@ var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
|
10401
10402
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10402
10403
|
email: true,
|
|
10403
10404
|
role: true
|
|
10404
|
-
}).extend({
|
|
10405
|
-
workspaceRole: WorkspaceRoleSchema
|
|
10406
|
-
});
|
|
10407
|
-
var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
|
|
10408
|
-
workspaceRole: true
|
|
10409
10405
|
});
|
|
10406
|
+
var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
10410
10407
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10411
10408
|
email: true
|
|
10412
10409
|
});
|
|
@@ -12243,27 +12240,23 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
12243
12240
|
}
|
|
12244
12241
|
list(workspaceId) {
|
|
12245
12242
|
return this.requestExecutor.json(
|
|
12246
|
-
`/
|
|
12247
|
-
|
|
12243
|
+
`/forge/project-contexts?workspaceId=${workspaceId}`,
|
|
12244
|
+
DTOForgeProjectContextListResponseV2,
|
|
12248
12245
|
{
|
|
12249
12246
|
method: "GET"
|
|
12250
12247
|
}
|
|
12251
12248
|
);
|
|
12252
12249
|
}
|
|
12253
|
-
create(
|
|
12254
|
-
return this.requestExecutor.json(
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
method: "POST",
|
|
12259
|
-
body
|
|
12260
|
-
}
|
|
12261
|
-
);
|
|
12250
|
+
create(body) {
|
|
12251
|
+
return this.requestExecutor.json(`/forge/project-contexts`, DTOForgeProjectContextResponseV2, {
|
|
12252
|
+
method: "POST",
|
|
12253
|
+
body
|
|
12254
|
+
});
|
|
12262
12255
|
}
|
|
12263
12256
|
update(workspaceId, contextId, body) {
|
|
12264
12257
|
return this.requestExecutor.json(
|
|
12265
12258
|
`/workspaces/${workspaceId}/forge/project-contexts/${contextId}`,
|
|
12266
|
-
|
|
12259
|
+
DTOForgeProjectContextResponseV2,
|
|
12267
12260
|
{
|
|
12268
12261
|
method: "PUT",
|
|
12269
12262
|
body
|
|
@@ -12340,28 +12333,44 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
12340
12333
|
constructor(requestExecutor) {
|
|
12341
12334
|
this.requestExecutor = requestExecutor;
|
|
12342
12335
|
}
|
|
12343
|
-
list(projectId) {
|
|
12344
|
-
return this.requestExecutor.json(
|
|
12345
|
-
|
|
12346
|
-
|
|
12336
|
+
list(workspaceId, projectId) {
|
|
12337
|
+
return this.requestExecutor.json(
|
|
12338
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/members`,
|
|
12339
|
+
DTOForgeProjectMembersListResponse,
|
|
12340
|
+
{
|
|
12341
|
+
method: "GET"
|
|
12342
|
+
}
|
|
12343
|
+
);
|
|
12347
12344
|
}
|
|
12348
|
-
create(projectId, body) {
|
|
12349
|
-
return this.requestExecutor.json(
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
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
|
+
);
|
|
12353
12354
|
}
|
|
12354
|
-
update(
|
|
12355
|
-
return this.requestExecutor.json(
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
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
|
+
);
|
|
12359
12364
|
}
|
|
12360
|
-
delete(projectId, userId) {
|
|
12361
|
-
return this.requestExecutor.json(
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
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
|
+
);
|
|
12365
12374
|
}
|
|
12366
12375
|
};
|
|
12367
12376
|
|