sim 2.1.22 → 2.1.23-preview.152.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/index.js +594 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9398,6 +9398,21 @@ var V2_OPERATIONS = {
|
|
|
9398
9398
|
summary: "Activate Workflow Version",
|
|
9399
9399
|
workspaceKeyUnsupported: true
|
|
9400
9400
|
},
|
|
9401
|
+
addPermissionGroupMember: {
|
|
9402
|
+
method: "POST",
|
|
9403
|
+
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]/members",
|
|
9404
|
+
pathParams: ["organizationId", "groupId"],
|
|
9405
|
+
pathParamDocs: {
|
|
9406
|
+
organizationId: "Organization that owns the permission groups.",
|
|
9407
|
+
groupId: "Permission group identifier."
|
|
9408
|
+
},
|
|
9409
|
+
responseMode: "json",
|
|
9410
|
+
summary: "Add Permission Group Member",
|
|
9411
|
+
workspaceKeyUnsupported: true,
|
|
9412
|
+
body: {
|
|
9413
|
+
userId: { kind: "string", required: true, describe: "Existing organization member to add." }
|
|
9414
|
+
}
|
|
9415
|
+
},
|
|
9401
9416
|
addTableColumn: {
|
|
9402
9417
|
method: "POST",
|
|
9403
9418
|
path: "/api/v2/tables/[tableId]/columns",
|
|
@@ -9505,6 +9520,28 @@ var V2_OPERATIONS = {
|
|
|
9505
9520
|
}
|
|
9506
9521
|
}
|
|
9507
9522
|
},
|
|
9523
|
+
bulkAddPermissionGroupMembers: {
|
|
9524
|
+
method: "POST",
|
|
9525
|
+
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]/members/bulk",
|
|
9526
|
+
pathParams: ["organizationId", "groupId"],
|
|
9527
|
+
pathParamDocs: {
|
|
9528
|
+
organizationId: "Organization that owns the permission groups.",
|
|
9529
|
+
groupId: "Permission group identifier."
|
|
9530
|
+
},
|
|
9531
|
+
responseMode: "json",
|
|
9532
|
+
summary: "Bulk Add Permission Group Members",
|
|
9533
|
+
workspaceKeyUnsupported: true,
|
|
9534
|
+
body: {
|
|
9535
|
+
userIds: {
|
|
9536
|
+
kind: "array",
|
|
9537
|
+
describe: "Organization member identifiers. Existing group members are skipped; users outside the organization are ignored."
|
|
9538
|
+
},
|
|
9539
|
+
addAllOrganizationMembers: {
|
|
9540
|
+
kind: "boolean",
|
|
9541
|
+
describe: "Add every current organization member in bounded batches within one transaction. Cannot be combined with userIds."
|
|
9542
|
+
}
|
|
9543
|
+
}
|
|
9544
|
+
},
|
|
9508
9545
|
bulkDeleteFiles: {
|
|
9509
9546
|
method: "POST",
|
|
9510
9547
|
path: "/api/v2/files/bulk-delete",
|
|
@@ -10253,6 +10290,53 @@ var V2_OPERATIONS = {
|
|
|
10253
10290
|
}
|
|
10254
10291
|
}
|
|
10255
10292
|
},
|
|
10293
|
+
createOrganizationInvitation: {
|
|
10294
|
+
method: "POST",
|
|
10295
|
+
path: "/api/v2/organizations/[organizationId]/invitations",
|
|
10296
|
+
pathParams: ["organizationId"],
|
|
10297
|
+
pathParamDocs: { organizationId: "Organization identifier." },
|
|
10298
|
+
responseMode: "json",
|
|
10299
|
+
summary: "Create Organization Invitation",
|
|
10300
|
+
workspaceKeyUnsupported: true,
|
|
10301
|
+
body: {
|
|
10302
|
+
email: { kind: "string", required: true, describe: "Email address of the person to invite." },
|
|
10303
|
+
role: {
|
|
10304
|
+
kind: "enum",
|
|
10305
|
+
values: ["member", "admin"],
|
|
10306
|
+
default: "member",
|
|
10307
|
+
describe: "Organization role to offer. Defaults to member; grants no workspace-specific permissions."
|
|
10308
|
+
}
|
|
10309
|
+
}
|
|
10310
|
+
},
|
|
10311
|
+
createPermissionGroup: {
|
|
10312
|
+
method: "POST",
|
|
10313
|
+
path: "/api/v2/organizations/[organizationId]/permission-groups",
|
|
10314
|
+
pathParams: ["organizationId"],
|
|
10315
|
+
pathParamDocs: { organizationId: "Organization that owns the permission groups." },
|
|
10316
|
+
responseMode: "json",
|
|
10317
|
+
summary: "Create Permission Group",
|
|
10318
|
+
workspaceKeyUnsupported: true,
|
|
10319
|
+
body: {
|
|
10320
|
+
name: {
|
|
10321
|
+
kind: "string",
|
|
10322
|
+
required: true,
|
|
10323
|
+
describe: "Group name, unique within the organization."
|
|
10324
|
+
},
|
|
10325
|
+
description: { kind: "string", describe: "Optional group description." },
|
|
10326
|
+
config: {
|
|
10327
|
+
kind: "object",
|
|
10328
|
+
describe: "Permission restrictions to set. Omitted keys use the default permission configuration."
|
|
10329
|
+
},
|
|
10330
|
+
isDefault: {
|
|
10331
|
+
kind: "boolean",
|
|
10332
|
+
describe: "Whether the group is the organization default. Only one group can be the default."
|
|
10333
|
+
},
|
|
10334
|
+
workspaceIds: {
|
|
10335
|
+
kind: "array",
|
|
10336
|
+
describe: "Workspace IDs targeted by a non-default group. Required when creating a non-default group; omit for a default group."
|
|
10337
|
+
}
|
|
10338
|
+
}
|
|
10339
|
+
},
|
|
10256
10340
|
createSandbox: {
|
|
10257
10341
|
method: "POST",
|
|
10258
10342
|
path: "/api/v2/sandboxes",
|
|
@@ -10822,6 +10906,18 @@ var V2_OPERATIONS = {
|
|
|
10822
10906
|
}
|
|
10823
10907
|
}
|
|
10824
10908
|
},
|
|
10909
|
+
deletePermissionGroup: {
|
|
10910
|
+
method: "DELETE",
|
|
10911
|
+
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]",
|
|
10912
|
+
pathParams: ["organizationId", "groupId"],
|
|
10913
|
+
pathParamDocs: {
|
|
10914
|
+
organizationId: "Organization that owns the permission groups.",
|
|
10915
|
+
groupId: "Permission group identifier."
|
|
10916
|
+
},
|
|
10917
|
+
responseMode: "json",
|
|
10918
|
+
summary: "Delete Permission Group",
|
|
10919
|
+
workspaceKeyUnsupported: true
|
|
10920
|
+
},
|
|
10825
10921
|
deleteSandbox: {
|
|
10826
10922
|
method: "DELETE",
|
|
10827
10923
|
path: "/api/v2/sandboxes/[sandboxId]",
|
|
@@ -11589,6 +11685,39 @@ var V2_OPERATIONS = {
|
|
|
11589
11685
|
}
|
|
11590
11686
|
}
|
|
11591
11687
|
},
|
|
11688
|
+
getOrganization: {
|
|
11689
|
+
method: "GET",
|
|
11690
|
+
path: "/api/v2/organizations/[organizationId]",
|
|
11691
|
+
pathParams: ["organizationId"],
|
|
11692
|
+
pathParamDocs: { organizationId: "Organization identifier." },
|
|
11693
|
+
responseMode: "json",
|
|
11694
|
+
summary: "Get Organization",
|
|
11695
|
+
workspaceKeyUnsupported: true
|
|
11696
|
+
},
|
|
11697
|
+
getOrganizationInvitation: {
|
|
11698
|
+
method: "GET",
|
|
11699
|
+
path: "/api/v2/organizations/[organizationId]/invitations/[invitationId]",
|
|
11700
|
+
pathParams: ["organizationId", "invitationId"],
|
|
11701
|
+
pathParamDocs: {
|
|
11702
|
+
organizationId: "Organization identifier.",
|
|
11703
|
+
invitationId: "Invitation identifier."
|
|
11704
|
+
},
|
|
11705
|
+
responseMode: "json",
|
|
11706
|
+
summary: "Get Organization Invitation",
|
|
11707
|
+
workspaceKeyUnsupported: true
|
|
11708
|
+
},
|
|
11709
|
+
getPermissionGroup: {
|
|
11710
|
+
method: "GET",
|
|
11711
|
+
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]",
|
|
11712
|
+
pathParams: ["organizationId", "groupId"],
|
|
11713
|
+
pathParamDocs: {
|
|
11714
|
+
organizationId: "Organization that owns the permission groups.",
|
|
11715
|
+
groupId: "Permission group identifier."
|
|
11716
|
+
},
|
|
11717
|
+
responseMode: "json",
|
|
11718
|
+
summary: "Get Permission Group",
|
|
11719
|
+
workspaceKeyUnsupported: true
|
|
11720
|
+
},
|
|
11592
11721
|
getRowEnrichment: {
|
|
11593
11722
|
method: "GET",
|
|
11594
11723
|
path: "/api/v2/tables/[tableId]/rows/[rowId]/enrichment/[groupId]",
|
|
@@ -13018,6 +13147,225 @@ var V2_OPERATIONS = {
|
|
|
13018
13147
|
}
|
|
13019
13148
|
}
|
|
13020
13149
|
},
|
|
13150
|
+
listOrganizationInvitations: {
|
|
13151
|
+
method: "GET",
|
|
13152
|
+
path: "/api/v2/organizations/[organizationId]/invitations",
|
|
13153
|
+
pathParams: ["organizationId"],
|
|
13154
|
+
pathParamDocs: { organizationId: "Organization identifier." },
|
|
13155
|
+
responseMode: "json",
|
|
13156
|
+
summary: "List Organization Invitations",
|
|
13157
|
+
workspaceKeyUnsupported: true,
|
|
13158
|
+
query: {
|
|
13159
|
+
search: {
|
|
13160
|
+
kind: "string",
|
|
13161
|
+
describe: "Case-insensitive substring match against the invitee email."
|
|
13162
|
+
},
|
|
13163
|
+
status: {
|
|
13164
|
+
kind: "enum",
|
|
13165
|
+
values: ["pending", "accepted", "rejected", "cancelled", "expired"],
|
|
13166
|
+
describe: "Filter by current invitation status. Omit to include all statuses."
|
|
13167
|
+
},
|
|
13168
|
+
sortBy: {
|
|
13169
|
+
kind: "enum",
|
|
13170
|
+
values: ["email", "createdAt"],
|
|
13171
|
+
default: "createdAt",
|
|
13172
|
+
describe: "Field used to sort the result."
|
|
13173
|
+
},
|
|
13174
|
+
sortOrder: {
|
|
13175
|
+
kind: "enum",
|
|
13176
|
+
values: ["asc", "desc"],
|
|
13177
|
+
default: "desc",
|
|
13178
|
+
describe: "Sort direction."
|
|
13179
|
+
},
|
|
13180
|
+
limit: {
|
|
13181
|
+
kind: "integer",
|
|
13182
|
+
default: 50,
|
|
13183
|
+
describe: "Maximum invitations to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13184
|
+
},
|
|
13185
|
+
cursor: {
|
|
13186
|
+
kind: "string",
|
|
13187
|
+
describe: "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor."
|
|
13188
|
+
}
|
|
13189
|
+
}
|
|
13190
|
+
},
|
|
13191
|
+
listOrganizationMembers: {
|
|
13192
|
+
method: "GET",
|
|
13193
|
+
path: "/api/v2/organizations/[organizationId]/members",
|
|
13194
|
+
pathParams: ["organizationId"],
|
|
13195
|
+
pathParamDocs: { organizationId: "Organization identifier." },
|
|
13196
|
+
responseMode: "json",
|
|
13197
|
+
summary: "List Organization Members",
|
|
13198
|
+
workspaceKeyUnsupported: true,
|
|
13199
|
+
query: {
|
|
13200
|
+
search: {
|
|
13201
|
+
kind: "string",
|
|
13202
|
+
describe: "Case-insensitive substring match against member name or email."
|
|
13203
|
+
},
|
|
13204
|
+
sortBy: {
|
|
13205
|
+
kind: "enum",
|
|
13206
|
+
values: ["name", "email", "joinedAt"],
|
|
13207
|
+
default: "name",
|
|
13208
|
+
describe: "Field used to sort the result. Sorting by `name` is case-sensitive and follows the storage collation, so do not rely on a case-insensitive order."
|
|
13209
|
+
},
|
|
13210
|
+
sortOrder: {
|
|
13211
|
+
kind: "enum",
|
|
13212
|
+
values: ["asc", "desc"],
|
|
13213
|
+
default: "asc",
|
|
13214
|
+
describe: "Sort direction."
|
|
13215
|
+
},
|
|
13216
|
+
limit: {
|
|
13217
|
+
kind: "integer",
|
|
13218
|
+
default: 50,
|
|
13219
|
+
describe: "Maximum members to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13220
|
+
},
|
|
13221
|
+
cursor: {
|
|
13222
|
+
kind: "string",
|
|
13223
|
+
describe: "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor."
|
|
13224
|
+
}
|
|
13225
|
+
}
|
|
13226
|
+
},
|
|
13227
|
+
listOrganizations: {
|
|
13228
|
+
method: "GET",
|
|
13229
|
+
path: "/api/v2/organizations",
|
|
13230
|
+
pathParams: [],
|
|
13231
|
+
responseMode: "json",
|
|
13232
|
+
summary: "List Organizations",
|
|
13233
|
+
workspaceKeyUnsupported: true,
|
|
13234
|
+
query: {
|
|
13235
|
+
search: {
|
|
13236
|
+
kind: "string",
|
|
13237
|
+
describe: "Case-insensitive substring match against the organization name."
|
|
13238
|
+
},
|
|
13239
|
+
sortBy: {
|
|
13240
|
+
kind: "enum",
|
|
13241
|
+
values: ["name", "createdAt"],
|
|
13242
|
+
default: "name",
|
|
13243
|
+
describe: "Field used to sort the result. Sorting by `name` is case-sensitive and follows the storage collation, so do not rely on a case-insensitive order."
|
|
13244
|
+
},
|
|
13245
|
+
sortOrder: {
|
|
13246
|
+
kind: "enum",
|
|
13247
|
+
values: ["asc", "desc"],
|
|
13248
|
+
default: "asc",
|
|
13249
|
+
describe: "Sort direction."
|
|
13250
|
+
},
|
|
13251
|
+
limit: {
|
|
13252
|
+
kind: "integer",
|
|
13253
|
+
default: 50,
|
|
13254
|
+
describe: "Maximum organizations to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13255
|
+
},
|
|
13256
|
+
cursor: {
|
|
13257
|
+
kind: "string",
|
|
13258
|
+
describe: "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor."
|
|
13259
|
+
}
|
|
13260
|
+
}
|
|
13261
|
+
},
|
|
13262
|
+
listOrganizationWorkspaces: {
|
|
13263
|
+
method: "GET",
|
|
13264
|
+
path: "/api/v2/organizations/[organizationId]/workspaces",
|
|
13265
|
+
pathParams: ["organizationId"],
|
|
13266
|
+
pathParamDocs: { organizationId: "Organization identifier." },
|
|
13267
|
+
responseMode: "json",
|
|
13268
|
+
summary: "List Organization Workspaces",
|
|
13269
|
+
workspaceKeyUnsupported: true,
|
|
13270
|
+
query: {
|
|
13271
|
+
search: {
|
|
13272
|
+
kind: "string",
|
|
13273
|
+
describe: "Case-insensitive substring match against the workspace name."
|
|
13274
|
+
},
|
|
13275
|
+
sortBy: {
|
|
13276
|
+
kind: "enum",
|
|
13277
|
+
values: ["name", "id"],
|
|
13278
|
+
default: "name",
|
|
13279
|
+
describe: "Field used to sort the result. Sorting by `name` is case-sensitive and follows the storage collation, so do not rely on a case-insensitive order."
|
|
13280
|
+
},
|
|
13281
|
+
sortOrder: {
|
|
13282
|
+
kind: "enum",
|
|
13283
|
+
values: ["asc", "desc"],
|
|
13284
|
+
default: "asc",
|
|
13285
|
+
describe: "Sort direction."
|
|
13286
|
+
},
|
|
13287
|
+
limit: {
|
|
13288
|
+
kind: "integer",
|
|
13289
|
+
default: 50,
|
|
13290
|
+
describe: "Maximum workspaces to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13291
|
+
},
|
|
13292
|
+
cursor: {
|
|
13293
|
+
kind: "string",
|
|
13294
|
+
describe: "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor."
|
|
13295
|
+
}
|
|
13296
|
+
}
|
|
13297
|
+
},
|
|
13298
|
+
listPermissionGroupMembers: {
|
|
13299
|
+
method: "GET",
|
|
13300
|
+
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]/members",
|
|
13301
|
+
pathParams: ["organizationId", "groupId"],
|
|
13302
|
+
pathParamDocs: {
|
|
13303
|
+
organizationId: "Organization that owns the permission groups.",
|
|
13304
|
+
groupId: "Permission group identifier."
|
|
13305
|
+
},
|
|
13306
|
+
responseMode: "json",
|
|
13307
|
+
summary: "List Permission Group Members",
|
|
13308
|
+
workspaceKeyUnsupported: true,
|
|
13309
|
+
query: {
|
|
13310
|
+
sortBy: {
|
|
13311
|
+
kind: "enum",
|
|
13312
|
+
values: ["assignedAt", "userId"],
|
|
13313
|
+
default: "assignedAt",
|
|
13314
|
+
describe: "Field used to sort the result."
|
|
13315
|
+
},
|
|
13316
|
+
sortOrder: {
|
|
13317
|
+
kind: "enum",
|
|
13318
|
+
values: ["asc", "desc"],
|
|
13319
|
+
default: "asc",
|
|
13320
|
+
describe: "Sort direction."
|
|
13321
|
+
},
|
|
13322
|
+
limit: {
|
|
13323
|
+
kind: "integer",
|
|
13324
|
+
default: 50,
|
|
13325
|
+
describe: "Maximum group members to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13326
|
+
},
|
|
13327
|
+
cursor: {
|
|
13328
|
+
kind: "string",
|
|
13329
|
+
describe: "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor."
|
|
13330
|
+
}
|
|
13331
|
+
}
|
|
13332
|
+
},
|
|
13333
|
+
listPermissionGroups: {
|
|
13334
|
+
method: "GET",
|
|
13335
|
+
path: "/api/v2/organizations/[organizationId]/permission-groups",
|
|
13336
|
+
pathParams: ["organizationId"],
|
|
13337
|
+
pathParamDocs: { organizationId: "Organization that owns the permission groups." },
|
|
13338
|
+
responseMode: "json",
|
|
13339
|
+
summary: "List Permission Groups",
|
|
13340
|
+
workspaceKeyUnsupported: true,
|
|
13341
|
+
query: {
|
|
13342
|
+
search: {
|
|
13343
|
+
kind: "string",
|
|
13344
|
+
describe: "Case-insensitive substring match against the group name."
|
|
13345
|
+
},
|
|
13346
|
+
sortBy: {
|
|
13347
|
+
kind: "enum",
|
|
13348
|
+
values: ["name", "createdAt", "updatedAt"],
|
|
13349
|
+
default: "createdAt",
|
|
13350
|
+
describe: "Field used to sort the result. Sorting by `name` is case-sensitive and follows the storage collation, so do not rely on a case-insensitive order."
|
|
13351
|
+
},
|
|
13352
|
+
sortOrder: {
|
|
13353
|
+
kind: "enum",
|
|
13354
|
+
values: ["asc", "desc"],
|
|
13355
|
+
default: "desc",
|
|
13356
|
+
describe: "Sort direction."
|
|
13357
|
+
},
|
|
13358
|
+
limit: {
|
|
13359
|
+
kind: "integer",
|
|
13360
|
+
default: 50,
|
|
13361
|
+
describe: "Maximum permission groups to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13362
|
+
},
|
|
13363
|
+
cursor: {
|
|
13364
|
+
kind: "string",
|
|
13365
|
+
describe: "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor."
|
|
13366
|
+
}
|
|
13367
|
+
}
|
|
13368
|
+
},
|
|
13021
13369
|
listSandboxes: {
|
|
13022
13370
|
method: "GET",
|
|
13023
13371
|
path: "/api/v2/sandboxes",
|
|
@@ -14270,6 +14618,31 @@ var V2_OPERATIONS = {
|
|
|
14270
14618
|
}
|
|
14271
14619
|
}
|
|
14272
14620
|
},
|
|
14621
|
+
removeOrganizationMember: {
|
|
14622
|
+
method: "DELETE",
|
|
14623
|
+
path: "/api/v2/organizations/[organizationId]/members/[userId]",
|
|
14624
|
+
pathParams: ["organizationId", "userId"],
|
|
14625
|
+
pathParamDocs: {
|
|
14626
|
+
organizationId: "Organization identifier.",
|
|
14627
|
+
userId: "User identifier of the organization member."
|
|
14628
|
+
},
|
|
14629
|
+
responseMode: "json",
|
|
14630
|
+
summary: "Remove Organization Member",
|
|
14631
|
+
workspaceKeyUnsupported: true
|
|
14632
|
+
},
|
|
14633
|
+
removePermissionGroupMember: {
|
|
14634
|
+
method: "DELETE",
|
|
14635
|
+
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]/members/[userId]",
|
|
14636
|
+
pathParams: ["organizationId", "groupId", "userId"],
|
|
14637
|
+
pathParamDocs: {
|
|
14638
|
+
organizationId: "Organization that owns the permission groups.",
|
|
14639
|
+
groupId: "Permission group identifier.",
|
|
14640
|
+
userId: "User identifier of the member to remove."
|
|
14641
|
+
},
|
|
14642
|
+
responseMode: "json",
|
|
14643
|
+
summary: "Remove Permission Group Member",
|
|
14644
|
+
workspaceKeyUnsupported: true
|
|
14645
|
+
},
|
|
14273
14646
|
renameFile: {
|
|
14274
14647
|
method: "PATCH",
|
|
14275
14648
|
path: "/api/v2/files/[fileId]",
|
|
@@ -14366,6 +14739,18 @@ var V2_OPERATIONS = {
|
|
|
14366
14739
|
}
|
|
14367
14740
|
}
|
|
14368
14741
|
},
|
|
14742
|
+
resendOrganizationInvitation: {
|
|
14743
|
+
method: "POST",
|
|
14744
|
+
path: "/api/v2/organizations/[organizationId]/invitations/[invitationId]/resend",
|
|
14745
|
+
pathParams: ["organizationId", "invitationId"],
|
|
14746
|
+
pathParamDocs: {
|
|
14747
|
+
organizationId: "Organization identifier.",
|
|
14748
|
+
invitationId: "Invitation identifier."
|
|
14749
|
+
},
|
|
14750
|
+
responseMode: "json",
|
|
14751
|
+
summary: "Resend Organization Invitation",
|
|
14752
|
+
workspaceKeyUnsupported: true
|
|
14753
|
+
},
|
|
14369
14754
|
restoreFile: {
|
|
14370
14755
|
method: "POST",
|
|
14371
14756
|
path: "/api/v2/files/[fileId]/restore",
|
|
@@ -14503,6 +14888,18 @@ var V2_OPERATIONS = {
|
|
|
14503
14888
|
summary: "Revert Workflow To Version",
|
|
14504
14889
|
workspaceKeyUnsupported: true
|
|
14505
14890
|
},
|
|
14891
|
+
revokeOrganizationInvitation: {
|
|
14892
|
+
method: "DELETE",
|
|
14893
|
+
path: "/api/v2/organizations/[organizationId]/invitations/[invitationId]",
|
|
14894
|
+
pathParams: ["organizationId", "invitationId"],
|
|
14895
|
+
pathParamDocs: {
|
|
14896
|
+
organizationId: "Organization identifier.",
|
|
14897
|
+
invitationId: "Invitation identifier."
|
|
14898
|
+
},
|
|
14899
|
+
responseMode: "json",
|
|
14900
|
+
summary: "Revoke Organization Invitation",
|
|
14901
|
+
workspaceKeyUnsupported: true
|
|
14902
|
+
},
|
|
14506
14903
|
revokeSkillEditor: {
|
|
14507
14904
|
method: "DELETE",
|
|
14508
14905
|
path: "/api/v2/skills/[skillId]/editors",
|
|
@@ -15129,6 +15526,57 @@ var V2_OPERATIONS = {
|
|
|
15129
15526
|
}
|
|
15130
15527
|
}
|
|
15131
15528
|
},
|
|
15529
|
+
updateOrganizationMember: {
|
|
15530
|
+
method: "PATCH",
|
|
15531
|
+
path: "/api/v2/organizations/[organizationId]/members/[userId]",
|
|
15532
|
+
pathParams: ["organizationId", "userId"],
|
|
15533
|
+
pathParamDocs: {
|
|
15534
|
+
organizationId: "Organization identifier.",
|
|
15535
|
+
userId: "User identifier of the organization member."
|
|
15536
|
+
},
|
|
15537
|
+
responseMode: "json",
|
|
15538
|
+
summary: "Update Organization Member",
|
|
15539
|
+
workspaceKeyUnsupported: true,
|
|
15540
|
+
body: {
|
|
15541
|
+
role: {
|
|
15542
|
+
kind: "enum",
|
|
15543
|
+
required: true,
|
|
15544
|
+
values: ["member", "admin"],
|
|
15545
|
+
describe: "New organization role. Ownership transfers use a separate operation."
|
|
15546
|
+
}
|
|
15547
|
+
}
|
|
15548
|
+
},
|
|
15549
|
+
updatePermissionGroup: {
|
|
15550
|
+
method: "PATCH",
|
|
15551
|
+
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]",
|
|
15552
|
+
pathParams: ["organizationId", "groupId"],
|
|
15553
|
+
pathParamDocs: {
|
|
15554
|
+
organizationId: "Organization that owns the permission groups.",
|
|
15555
|
+
groupId: "Permission group identifier."
|
|
15556
|
+
},
|
|
15557
|
+
responseMode: "json",
|
|
15558
|
+
summary: "Update Permission Group",
|
|
15559
|
+
workspaceKeyUnsupported: true,
|
|
15560
|
+
body: {
|
|
15561
|
+
name: { kind: "string", describe: "Group name, unique within the organization." },
|
|
15562
|
+
description: {
|
|
15563
|
+
kind: "string",
|
|
15564
|
+
describe: "Group description. Null or an empty string clears it; omission leaves it unchanged."
|
|
15565
|
+
},
|
|
15566
|
+
config: {
|
|
15567
|
+
kind: "object",
|
|
15568
|
+
describe: "Patch of permission restrictions. Omitted keys remain unchanged; each supplied array replaces that entire list."
|
|
15569
|
+
},
|
|
15570
|
+
isDefault: {
|
|
15571
|
+
kind: "boolean",
|
|
15572
|
+
describe: "Whether the group is the organization default. Only one group can be the default."
|
|
15573
|
+
},
|
|
15574
|
+
workspaceIds: {
|
|
15575
|
+
kind: "array",
|
|
15576
|
+
describe: "Workspace identifiers for a non-default group. Required on creation; an empty update makes the group inactive."
|
|
15577
|
+
}
|
|
15578
|
+
}
|
|
15579
|
+
},
|
|
15132
15580
|
updateRowsByFilter: {
|
|
15133
15581
|
method: "PATCH",
|
|
15134
15582
|
path: "/api/v2/tables/[tableId]/rows",
|
|
@@ -16196,6 +16644,16 @@ function configureCommand() {
|
|
|
16196
16644
|
}
|
|
16197
16645
|
|
|
16198
16646
|
// src/contract/commands.ts
|
|
16647
|
+
var ORGANIZATION_FLAG = {
|
|
16648
|
+
organizationId: { name: "organization", describe: "Organization identifier" }
|
|
16649
|
+
};
|
|
16650
|
+
var PERMISSION_GROUP_MEMBER_FLAGS = {
|
|
16651
|
+
...ORGANIZATION_FLAG,
|
|
16652
|
+
groupId: { name: "group", describe: "Permission group identifier" }
|
|
16653
|
+
};
|
|
16654
|
+
var DEFAULT_FLAG = {
|
|
16655
|
+
isDefault: { name: "default", boolean: true, negatable: true }
|
|
16656
|
+
};
|
|
16199
16657
|
var TABLE_NAME_HELP = "Identifier: letters, numbers, and underscores; cannot start with a number";
|
|
16200
16658
|
var TABLE_FILTER_HELP = 'Predicate: {"all":[{"field":"status","op":"eq","value":"active"}]}; groups use all/any. Operators: eq, ne, gt, gte, lt, lte, in, nin, contains, ncontains, startsWith, endsWith, like, ilike, nlike, nilike, isEmpty, isNotEmpty, isNull, isNotNull';
|
|
16201
16659
|
var TABLE_READ_FILTER_HELP = 'Condition: {"field":"status","op":"eq","value":"active"}. Groups: {"all":[{"field":"status","op":"eq","value":"active"}]} or {"any":[{"field":"status","op":"eq","value":"active"}]}; group entries may also be nested groups. Operators: eq, ne, gt, gte, lt, lte, in, nin, contains, ncontains, startsWith, endsWith, like, ilike, nlike, nilike, isEmpty, isNotEmpty, isNull, isNotNull';
|
|
@@ -16894,6 +17352,131 @@ var CLI_CONTRACT = {
|
|
|
16894
17352
|
{ header: "built-in", path: "readOnly", format: "bool" }
|
|
16895
17353
|
]
|
|
16896
17354
|
},
|
|
17355
|
+
listOrganizations: {
|
|
17356
|
+
command: "organizations list",
|
|
17357
|
+
columns: [{ header: "id" }, { header: "name" }, { header: "role" }]
|
|
17358
|
+
},
|
|
17359
|
+
getOrganization: { command: "organizations get" },
|
|
17360
|
+
listOrganizationWorkspaces: {
|
|
17361
|
+
command: "organizations workspaces",
|
|
17362
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
17363
|
+
columns: [{ header: "id" }, { header: "name" }]
|
|
17364
|
+
},
|
|
17365
|
+
listOrganizationMembers: {
|
|
17366
|
+
command: "organizations members list",
|
|
17367
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
17368
|
+
columns: [
|
|
17369
|
+
{ header: "user", path: "userId" },
|
|
17370
|
+
{ header: "name" },
|
|
17371
|
+
{ header: "email" },
|
|
17372
|
+
{ header: "role" }
|
|
17373
|
+
]
|
|
17374
|
+
},
|
|
17375
|
+
updateOrganizationMember: {
|
|
17376
|
+
command: "organizations members update",
|
|
17377
|
+
pathFlags: ORGANIZATION_FLAG
|
|
17378
|
+
},
|
|
17379
|
+
removeOrganizationMember: {
|
|
17380
|
+
command: "organizations members remove",
|
|
17381
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
17382
|
+
confirm: "This removes the member, revokes their organization workspace access, and ends their sessions."
|
|
17383
|
+
},
|
|
17384
|
+
listOrganizationInvitations: {
|
|
17385
|
+
command: "organizations invitations list",
|
|
17386
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
17387
|
+
columns: [
|
|
17388
|
+
{ header: "id" },
|
|
17389
|
+
{ header: "email" },
|
|
17390
|
+
{ header: "role" },
|
|
17391
|
+
{ header: "membership", path: "membershipIntent" },
|
|
17392
|
+
{ header: "status" },
|
|
17393
|
+
{ header: "expires", path: "expiresAt", format: "timestamp" }
|
|
17394
|
+
]
|
|
17395
|
+
},
|
|
17396
|
+
createOrganizationInvitation: {
|
|
17397
|
+
command: "organizations invitations create",
|
|
17398
|
+
pathFlags: ORGANIZATION_FLAG
|
|
17399
|
+
},
|
|
17400
|
+
getOrganizationInvitation: {
|
|
17401
|
+
command: "organizations invitations get",
|
|
17402
|
+
pathFlags: ORGANIZATION_FLAG
|
|
17403
|
+
},
|
|
17404
|
+
resendOrganizationInvitation: {
|
|
17405
|
+
command: "organizations invitations resend",
|
|
17406
|
+
pathFlags: ORGANIZATION_FLAG
|
|
17407
|
+
},
|
|
17408
|
+
revokeOrganizationInvitation: {
|
|
17409
|
+
command: "organizations invitations revoke",
|
|
17410
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
17411
|
+
confirm: "This cancels the invitation and all its workspace grants, preventing acceptance."
|
|
17412
|
+
},
|
|
17413
|
+
updateTableView: {
|
|
17414
|
+
flags: { isDefault: { ...DEFAULT_FLAG.isDefault, renamedFrom: ["is-default"] } }
|
|
17415
|
+
},
|
|
17416
|
+
listPermissionGroups: {
|
|
17417
|
+
command: "permission-groups list",
|
|
17418
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
17419
|
+
columns: [
|
|
17420
|
+
{ header: "id" },
|
|
17421
|
+
{ header: "name" },
|
|
17422
|
+
{ header: "default", path: "isDefault", format: "bool" },
|
|
17423
|
+
{ header: "updated", path: "updatedAt", format: "timestamp" }
|
|
17424
|
+
]
|
|
17425
|
+
},
|
|
17426
|
+
getPermissionGroup: {
|
|
17427
|
+
command: "permission-groups get",
|
|
17428
|
+
pathFlags: ORGANIZATION_FLAG
|
|
17429
|
+
},
|
|
17430
|
+
createPermissionGroup: {
|
|
17431
|
+
command: "permission-groups create",
|
|
17432
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
17433
|
+
flags: DEFAULT_FLAG
|
|
17434
|
+
},
|
|
17435
|
+
updatePermissionGroup: {
|
|
17436
|
+
command: "permission-groups update",
|
|
17437
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
17438
|
+
flags: DEFAULT_FLAG
|
|
17439
|
+
},
|
|
17440
|
+
deletePermissionGroup: {
|
|
17441
|
+
command: "permission-groups delete",
|
|
17442
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
17443
|
+
confirm: "This permanently deletes the permission group and its member assignments."
|
|
17444
|
+
},
|
|
17445
|
+
listPermissionGroupMembers: {
|
|
17446
|
+
command: "permission-groups members list",
|
|
17447
|
+
pathFlags: PERMISSION_GROUP_MEMBER_FLAGS,
|
|
17448
|
+
columns: [
|
|
17449
|
+
{ header: "user", path: "userId" },
|
|
17450
|
+
{ header: "name", path: "userName" },
|
|
17451
|
+
{ header: "email", path: "userEmail" }
|
|
17452
|
+
]
|
|
17453
|
+
},
|
|
17454
|
+
addPermissionGroupMember: {
|
|
17455
|
+
command: "permission-groups members add",
|
|
17456
|
+
pathFlags: PERMISSION_GROUP_MEMBER_FLAGS,
|
|
17457
|
+
flags: { userId: { name: "user" } }
|
|
17458
|
+
},
|
|
17459
|
+
removePermissionGroupMember: {
|
|
17460
|
+
command: "permission-groups members remove",
|
|
17461
|
+
pathFlags: PERMISSION_GROUP_MEMBER_FLAGS,
|
|
17462
|
+
confirm: "This removes the member assignment and changes which permission groups apply to the user."
|
|
17463
|
+
},
|
|
17464
|
+
bulkAddPermissionGroupMembers: {
|
|
17465
|
+
command: "permission-groups members batch-add",
|
|
17466
|
+
pathFlags: PERMISSION_GROUP_MEMBER_FLAGS,
|
|
17467
|
+
flags: {
|
|
17468
|
+
userIds: {
|
|
17469
|
+
name: "user",
|
|
17470
|
+
list: true,
|
|
17471
|
+
describe: "User IDs to add; cannot be combined with --all-members"
|
|
17472
|
+
},
|
|
17473
|
+
addAllOrganizationMembers: {
|
|
17474
|
+
name: "all-members",
|
|
17475
|
+
boolean: true,
|
|
17476
|
+
describe: "Add every current organization member; cannot be combined with --user"
|
|
17477
|
+
}
|
|
17478
|
+
}
|
|
17479
|
+
},
|
|
16897
17480
|
listCustomTools: {
|
|
16898
17481
|
columns: [
|
|
16899
17482
|
{ header: "id" },
|
|
@@ -18363,6 +18946,11 @@ var COMPLETE_LIST_OPERATIONS = new Set([
|
|
|
18363
18946
|
"listChatDeployments",
|
|
18364
18947
|
"listCredentials",
|
|
18365
18948
|
"listCustomTools",
|
|
18949
|
+
"listPermissionGroups",
|
|
18950
|
+
"listPermissionGroupMembers",
|
|
18951
|
+
"listOrganizations",
|
|
18952
|
+
"listOrganizationMembers",
|
|
18953
|
+
"listOrganizationWorkspaces",
|
|
18366
18954
|
"listFiles",
|
|
18367
18955
|
"listKnowledgeBases",
|
|
18368
18956
|
"listKnowledgeConnectors",
|
|
@@ -18421,6 +19009,11 @@ function addFieldOption(command, operation, field, descriptor, slot, paginates,
|
|
|
18421
19009
|
if (!flag.boolean || flag.negatable) {
|
|
18422
19010
|
command.option(`--no-${name}`, `Send --${name} as false`);
|
|
18423
19011
|
}
|
|
19012
|
+
for (const previous of flag.renamedFrom ?? []) {
|
|
19013
|
+
command.addOption(new Option(`--${previous}`).hideHelp());
|
|
19014
|
+
if (!flag.boolean || flag.negatable)
|
|
19015
|
+
command.addOption(new Option(`--no-${previous}`).hideHelp());
|
|
19016
|
+
}
|
|
18424
19017
|
return;
|
|
18425
19018
|
}
|
|
18426
19019
|
const takesList = flag.list === true;
|
|
@@ -18882,6 +19475,7 @@ var GROUP_ALIASES = {
|
|
|
18882
19475
|
"audit-logs": "audit-log",
|
|
18883
19476
|
credentials: "credential",
|
|
18884
19477
|
"custom-tools": "custom-tool",
|
|
19478
|
+
"permission-groups": "permission-group",
|
|
18885
19479
|
files: "file",
|
|
18886
19480
|
knowledge: "kb",
|
|
18887
19481
|
logs: "log",
|