sim 2.2.24-preview.278.1 → 2.2.24-preview.279.1
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/generated/v2-api.d.ts +67 -0
- package/dist/index.js +45 -2
- package/dist/runtime.js +45 -2
- package/package.json +1 -1
|
@@ -9220,6 +9220,20 @@ type RemovePermissionGroupMemberResponseRef0 = {
|
|
|
9220
9220
|
export type RemovePermissionGroupMemberResponse = {
|
|
9221
9221
|
data: RemovePermissionGroupMemberResponseRef0;
|
|
9222
9222
|
};
|
|
9223
|
+
/** `DELETE /api/v2/workspaces/[workspaceId]/members/[userId]` */
|
|
9224
|
+
export type RemoveWorkspaceMemberParams = {
|
|
9225
|
+
workspaceId: string;
|
|
9226
|
+
userId: string;
|
|
9227
|
+
};
|
|
9228
|
+
export type RemoveWorkspaceMemberQuery = Record<string, unknown>;
|
|
9229
|
+
type RemoveWorkspaceMemberResponseRef0 = {
|
|
9230
|
+
userId: string;
|
|
9231
|
+
deleted: true;
|
|
9232
|
+
organizationMembershipRemoved: boolean;
|
|
9233
|
+
};
|
|
9234
|
+
export type RemoveWorkspaceMemberResponse = {
|
|
9235
|
+
data: RemoveWorkspaceMemberResponseRef0;
|
|
9236
|
+
};
|
|
9223
9237
|
/** `PATCH /api/v2/files/[fileId]` */
|
|
9224
9238
|
export type RenameFileParams = {
|
|
9225
9239
|
fileId: string;
|
|
@@ -11649,6 +11663,27 @@ type UpdateWorkspaceForkMappingsResponseRef0 = {
|
|
|
11649
11663
|
export type UpdateWorkspaceForkMappingsResponse = {
|
|
11650
11664
|
data: UpdateWorkspaceForkMappingsResponseRef0;
|
|
11651
11665
|
};
|
|
11666
|
+
/** `PATCH /api/v2/workspaces/[workspaceId]/members/[userId]` */
|
|
11667
|
+
export type UpdateWorkspaceMemberParams = {
|
|
11668
|
+
workspaceId: string;
|
|
11669
|
+
userId: string;
|
|
11670
|
+
};
|
|
11671
|
+
export type UpdateWorkspaceMemberQuery = Record<string, unknown>;
|
|
11672
|
+
export type UpdateWorkspaceMemberBody = {
|
|
11673
|
+
role: 'admin' | 'write' | 'read';
|
|
11674
|
+
};
|
|
11675
|
+
type UpdateWorkspaceMemberResponseRef0 = {
|
|
11676
|
+
userId: string;
|
|
11677
|
+
email: string;
|
|
11678
|
+
name: string;
|
|
11679
|
+
image: string | null;
|
|
11680
|
+
role: 'admin' | 'write' | 'read';
|
|
11681
|
+
isExternal: boolean;
|
|
11682
|
+
joinedAt: string;
|
|
11683
|
+
};
|
|
11684
|
+
export type UpdateWorkspaceMemberResponse = {
|
|
11685
|
+
data: UpdateWorkspaceMemberResponseRef0;
|
|
11686
|
+
};
|
|
11652
11687
|
/** `POST /api/v2/knowledge/[knowledgeBaseId]/documents` */
|
|
11653
11688
|
export type UploadKnowledgeDocumentParams = {
|
|
11654
11689
|
knowledgeBaseId: string;
|
|
@@ -18904,6 +18939,18 @@ export declare const V2_OPERATIONS: {
|
|
|
18904
18939
|
readonly summary: 'Remove permission group member';
|
|
18905
18940
|
readonly workspaceKeyUnsupported: true;
|
|
18906
18941
|
};
|
|
18942
|
+
readonly removeWorkspaceMember: {
|
|
18943
|
+
readonly method: 'DELETE';
|
|
18944
|
+
readonly path: '/api/v2/workspaces/[workspaceId]/members/[userId]';
|
|
18945
|
+
readonly pathParams: readonly ['workspaceId', 'userId'];
|
|
18946
|
+
readonly pathParamDocs: {
|
|
18947
|
+
readonly workspaceId: 'Workspace the member belongs to.';
|
|
18948
|
+
readonly userId: 'User identifier of the workspace member, as returned by List workspace members.';
|
|
18949
|
+
};
|
|
18950
|
+
readonly responseMode: 'json';
|
|
18951
|
+
readonly summary: 'Remove workspace member';
|
|
18952
|
+
readonly workspaceKeyUnsupported: true;
|
|
18953
|
+
};
|
|
18907
18954
|
readonly renameFile: {
|
|
18908
18955
|
readonly method: 'PATCH';
|
|
18909
18956
|
readonly path: '/api/v2/files/[fileId]';
|
|
@@ -21147,6 +21194,26 @@ export declare const V2_OPERATIONS: {
|
|
|
21147
21194
|
};
|
|
21148
21195
|
};
|
|
21149
21196
|
};
|
|
21197
|
+
readonly updateWorkspaceMember: {
|
|
21198
|
+
readonly method: 'PATCH';
|
|
21199
|
+
readonly path: '/api/v2/workspaces/[workspaceId]/members/[userId]';
|
|
21200
|
+
readonly pathParams: readonly ['workspaceId', 'userId'];
|
|
21201
|
+
readonly pathParamDocs: {
|
|
21202
|
+
readonly workspaceId: 'Workspace the member belongs to.';
|
|
21203
|
+
readonly userId: 'User identifier of the workspace member, as returned by List workspace members.';
|
|
21204
|
+
};
|
|
21205
|
+
readonly responseMode: 'json';
|
|
21206
|
+
readonly summary: 'Update workspace member';
|
|
21207
|
+
readonly workspaceKeyUnsupported: true;
|
|
21208
|
+
readonly body: {
|
|
21209
|
+
readonly role: {
|
|
21210
|
+
readonly kind: 'enum';
|
|
21211
|
+
readonly required: true;
|
|
21212
|
+
readonly values: readonly ['admin', 'write', 'read'];
|
|
21213
|
+
readonly describe: 'New workspace role. Inherited organization Admin access, the workspace owner, and the workspace billing account keep Admin and cannot be changed here.';
|
|
21214
|
+
};
|
|
21215
|
+
};
|
|
21216
|
+
};
|
|
21150
21217
|
readonly uploadKnowledgeDocument: {
|
|
21151
21218
|
readonly method: 'POST';
|
|
21152
21219
|
readonly path: '/api/v2/knowledge/[knowledgeBaseId]/documents';
|
package/dist/index.js
CHANGED
|
@@ -16226,6 +16226,18 @@ var V2_OPERATIONS = {
|
|
|
16226
16226
|
summary: "Remove permission group member",
|
|
16227
16227
|
workspaceKeyUnsupported: true
|
|
16228
16228
|
},
|
|
16229
|
+
removeWorkspaceMember: {
|
|
16230
|
+
method: "DELETE",
|
|
16231
|
+
path: "/api/v2/workspaces/[workspaceId]/members/[userId]",
|
|
16232
|
+
pathParams: ["workspaceId", "userId"],
|
|
16233
|
+
pathParamDocs: {
|
|
16234
|
+
workspaceId: "Workspace the member belongs to.",
|
|
16235
|
+
userId: "User identifier of the workspace member, as returned by List workspace members."
|
|
16236
|
+
},
|
|
16237
|
+
responseMode: "json",
|
|
16238
|
+
summary: "Remove workspace member",
|
|
16239
|
+
workspaceKeyUnsupported: true
|
|
16240
|
+
},
|
|
16229
16241
|
renameFile: {
|
|
16230
16242
|
method: "PATCH",
|
|
16231
16243
|
path: "/api/v2/files/[fileId]",
|
|
@@ -18078,6 +18090,26 @@ var V2_OPERATIONS = {
|
|
|
18078
18090
|
}
|
|
18079
18091
|
}
|
|
18080
18092
|
},
|
|
18093
|
+
updateWorkspaceMember: {
|
|
18094
|
+
method: "PATCH",
|
|
18095
|
+
path: "/api/v2/workspaces/[workspaceId]/members/[userId]",
|
|
18096
|
+
pathParams: ["workspaceId", "userId"],
|
|
18097
|
+
pathParamDocs: {
|
|
18098
|
+
workspaceId: "Workspace the member belongs to.",
|
|
18099
|
+
userId: "User identifier of the workspace member, as returned by List workspace members."
|
|
18100
|
+
},
|
|
18101
|
+
responseMode: "json",
|
|
18102
|
+
summary: "Update workspace member",
|
|
18103
|
+
workspaceKeyUnsupported: true,
|
|
18104
|
+
body: {
|
|
18105
|
+
role: {
|
|
18106
|
+
kind: "enum",
|
|
18107
|
+
required: true,
|
|
18108
|
+
values: ["admin", "write", "read"],
|
|
18109
|
+
describe: "New workspace role. Inherited organization Admin access, the workspace owner, and the workspace billing account keep Admin and cannot be changed here."
|
|
18110
|
+
}
|
|
18111
|
+
}
|
|
18112
|
+
},
|
|
18081
18113
|
uploadKnowledgeDocument: {
|
|
18082
18114
|
method: "POST",
|
|
18083
18115
|
path: "/api/v2/knowledge/[knowledgeBaseId]/documents",
|
|
@@ -20259,7 +20291,8 @@ var CLI_CONTRACT = {
|
|
|
20259
20291
|
]
|
|
20260
20292
|
},
|
|
20261
20293
|
listWorkspaceMembers: {
|
|
20262
|
-
command: "workspaces members",
|
|
20294
|
+
command: "workspaces members list",
|
|
20295
|
+
defaultSubcommand: true,
|
|
20263
20296
|
describe: "List workspace members",
|
|
20264
20297
|
profileWorkspacePath: true,
|
|
20265
20298
|
columns: [
|
|
@@ -20267,9 +20300,19 @@ var CLI_CONTRACT = {
|
|
|
20267
20300
|
{ header: "name" },
|
|
20268
20301
|
{ header: "role" },
|
|
20269
20302
|
{ header: "external", path: "isExternal", format: "bool" },
|
|
20270
|
-
{ header: "joined", path: "joinedAt", format: "timestamp" }
|
|
20303
|
+
{ header: "joined", path: "joinedAt", format: "timestamp" },
|
|
20304
|
+
{ header: "user", path: "userId" }
|
|
20271
20305
|
]
|
|
20272
20306
|
},
|
|
20307
|
+
updateWorkspaceMember: {
|
|
20308
|
+
command: "workspaces members update",
|
|
20309
|
+
profileWorkspacePath: true
|
|
20310
|
+
},
|
|
20311
|
+
removeWorkspaceMember: {
|
|
20312
|
+
command: "workspaces members remove",
|
|
20313
|
+
profileWorkspacePath: true,
|
|
20314
|
+
confirm: "This removes the member’s workspace access. If it was their last workspace in the organization, their organization membership is removed and their sessions end."
|
|
20315
|
+
},
|
|
20273
20316
|
listAuditLogs: {
|
|
20274
20317
|
allWorkspaces: true,
|
|
20275
20318
|
flags: {
|
package/dist/runtime.js
CHANGED
|
@@ -16275,6 +16275,18 @@ var V2_OPERATIONS = {
|
|
|
16275
16275
|
summary: "Remove permission group member",
|
|
16276
16276
|
workspaceKeyUnsupported: true
|
|
16277
16277
|
},
|
|
16278
|
+
removeWorkspaceMember: {
|
|
16279
|
+
method: "DELETE",
|
|
16280
|
+
path: "/api/v2/workspaces/[workspaceId]/members/[userId]",
|
|
16281
|
+
pathParams: ["workspaceId", "userId"],
|
|
16282
|
+
pathParamDocs: {
|
|
16283
|
+
workspaceId: "Workspace the member belongs to.",
|
|
16284
|
+
userId: "User identifier of the workspace member, as returned by List workspace members."
|
|
16285
|
+
},
|
|
16286
|
+
responseMode: "json",
|
|
16287
|
+
summary: "Remove workspace member",
|
|
16288
|
+
workspaceKeyUnsupported: true
|
|
16289
|
+
},
|
|
16278
16290
|
renameFile: {
|
|
16279
16291
|
method: "PATCH",
|
|
16280
16292
|
path: "/api/v2/files/[fileId]",
|
|
@@ -18127,6 +18139,26 @@ var V2_OPERATIONS = {
|
|
|
18127
18139
|
}
|
|
18128
18140
|
}
|
|
18129
18141
|
},
|
|
18142
|
+
updateWorkspaceMember: {
|
|
18143
|
+
method: "PATCH",
|
|
18144
|
+
path: "/api/v2/workspaces/[workspaceId]/members/[userId]",
|
|
18145
|
+
pathParams: ["workspaceId", "userId"],
|
|
18146
|
+
pathParamDocs: {
|
|
18147
|
+
workspaceId: "Workspace the member belongs to.",
|
|
18148
|
+
userId: "User identifier of the workspace member, as returned by List workspace members."
|
|
18149
|
+
},
|
|
18150
|
+
responseMode: "json",
|
|
18151
|
+
summary: "Update workspace member",
|
|
18152
|
+
workspaceKeyUnsupported: true,
|
|
18153
|
+
body: {
|
|
18154
|
+
role: {
|
|
18155
|
+
kind: "enum",
|
|
18156
|
+
required: true,
|
|
18157
|
+
values: ["admin", "write", "read"],
|
|
18158
|
+
describe: "New workspace role. Inherited organization Admin access, the workspace owner, and the workspace billing account keep Admin and cannot be changed here."
|
|
18159
|
+
}
|
|
18160
|
+
}
|
|
18161
|
+
},
|
|
18130
18162
|
uploadKnowledgeDocument: {
|
|
18131
18163
|
method: "POST",
|
|
18132
18164
|
path: "/api/v2/knowledge/[knowledgeBaseId]/documents",
|
|
@@ -20308,7 +20340,8 @@ var CLI_CONTRACT = {
|
|
|
20308
20340
|
]
|
|
20309
20341
|
},
|
|
20310
20342
|
listWorkspaceMembers: {
|
|
20311
|
-
command: "workspaces members",
|
|
20343
|
+
command: "workspaces members list",
|
|
20344
|
+
defaultSubcommand: true,
|
|
20312
20345
|
describe: "List workspace members",
|
|
20313
20346
|
profileWorkspacePath: true,
|
|
20314
20347
|
columns: [
|
|
@@ -20316,9 +20349,19 @@ var CLI_CONTRACT = {
|
|
|
20316
20349
|
{ header: "name" },
|
|
20317
20350
|
{ header: "role" },
|
|
20318
20351
|
{ header: "external", path: "isExternal", format: "bool" },
|
|
20319
|
-
{ header: "joined", path: "joinedAt", format: "timestamp" }
|
|
20352
|
+
{ header: "joined", path: "joinedAt", format: "timestamp" },
|
|
20353
|
+
{ header: "user", path: "userId" }
|
|
20320
20354
|
]
|
|
20321
20355
|
},
|
|
20356
|
+
updateWorkspaceMember: {
|
|
20357
|
+
command: "workspaces members update",
|
|
20358
|
+
profileWorkspacePath: true
|
|
20359
|
+
},
|
|
20360
|
+
removeWorkspaceMember: {
|
|
20361
|
+
command: "workspaces members remove",
|
|
20362
|
+
profileWorkspacePath: true,
|
|
20363
|
+
confirm: "This removes the member’s workspace access. If it was their last workspace in the organization, their organization membership is removed and their sessions end."
|
|
20364
|
+
},
|
|
20322
20365
|
listAuditLogs: {
|
|
20323
20366
|
allWorkspaces: true,
|
|
20324
20367
|
flags: {
|