sim 2.1.24-preview.154.1 → 2.1.25-preview.156.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 +787 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9693,6 +9693,18 @@ var V2_OPERATIONS = {
|
|
|
9693
9693
|
}
|
|
9694
9694
|
}
|
|
9695
9695
|
},
|
|
9696
|
+
cancelOrganizationAccessRequest: {
|
|
9697
|
+
method: "POST",
|
|
9698
|
+
path: "/api/v2/organizations/[organizationId]/access-requests/[requestId]/cancel",
|
|
9699
|
+
pathParams: ["organizationId", "requestId"],
|
|
9700
|
+
pathParamDocs: {
|
|
9701
|
+
organizationId: "Organization that owns the access requests.",
|
|
9702
|
+
requestId: "Access request identifier."
|
|
9703
|
+
},
|
|
9704
|
+
responseMode: "json",
|
|
9705
|
+
summary: "Cancel Organization Access Request",
|
|
9706
|
+
workspaceKeyUnsupported: true
|
|
9707
|
+
},
|
|
9696
9708
|
cancelTableDispatch: {
|
|
9697
9709
|
method: "DELETE",
|
|
9698
9710
|
path: "/api/v2/tables/[tableId]/dispatches/[dispatchId]",
|
|
@@ -9784,6 +9796,18 @@ var V2_OPERATIONS = {
|
|
|
9784
9796
|
responseMode: "json",
|
|
9785
9797
|
summary: "Cancel Workflow Run"
|
|
9786
9798
|
},
|
|
9799
|
+
cancelWorkspaceAccessRequest: {
|
|
9800
|
+
method: "POST",
|
|
9801
|
+
path: "/api/v2/workspaces/[workspaceId]/access-requests/[requestId]/cancel",
|
|
9802
|
+
pathParams: ["workspaceId", "requestId"],
|
|
9803
|
+
pathParamDocs: {
|
|
9804
|
+
workspaceId: "Workspace in which the acting user requests access.",
|
|
9805
|
+
requestId: "Access request identifier."
|
|
9806
|
+
},
|
|
9807
|
+
responseMode: "json",
|
|
9808
|
+
summary: "Cancel Workspace Access Request",
|
|
9809
|
+
workspaceKeyUnsupported: true
|
|
9810
|
+
},
|
|
9787
9811
|
chat: {
|
|
9788
9812
|
method: "POST",
|
|
9789
9813
|
path: "/api/v2/chat",
|
|
@@ -10290,6 +10314,23 @@ var V2_OPERATIONS = {
|
|
|
10290
10314
|
}
|
|
10291
10315
|
}
|
|
10292
10316
|
},
|
|
10317
|
+
createOrganizationAccessRequest: {
|
|
10318
|
+
method: "POST",
|
|
10319
|
+
path: "/api/v2/organizations/[organizationId]/access-requests",
|
|
10320
|
+
pathParams: ["organizationId"],
|
|
10321
|
+
pathParamDocs: { organizationId: "Organization that owns the access requests." },
|
|
10322
|
+
responseMode: "json",
|
|
10323
|
+
summary: "Create Organization Access Request",
|
|
10324
|
+
workspaceKeyUnsupported: true,
|
|
10325
|
+
body: {
|
|
10326
|
+
target: {
|
|
10327
|
+
kind: "unknown",
|
|
10328
|
+
required: true,
|
|
10329
|
+
describe: "Target returned by Discover Workspace Access Requests or Discover Organization Access Requests. The target must currently be requestable."
|
|
10330
|
+
},
|
|
10331
|
+
reason: { kind: "string", default: "", describe: "Why the acting user needs this access." }
|
|
10332
|
+
}
|
|
10333
|
+
},
|
|
10293
10334
|
createOrganizationInvitation: {
|
|
10294
10335
|
method: "POST",
|
|
10295
10336
|
path: "/api/v2/organizations/[organizationId]/invitations",
|
|
@@ -10663,6 +10704,51 @@ var V2_OPERATIONS = {
|
|
|
10663
10704
|
}
|
|
10664
10705
|
}
|
|
10665
10706
|
},
|
|
10707
|
+
createWorkspaceAccessRequest: {
|
|
10708
|
+
method: "POST",
|
|
10709
|
+
path: "/api/v2/workspaces/[workspaceId]/access-requests",
|
|
10710
|
+
pathParams: ["workspaceId"],
|
|
10711
|
+
pathParamDocs: { workspaceId: "Workspace in which the acting user requests access." },
|
|
10712
|
+
responseMode: "json",
|
|
10713
|
+
summary: "Create Workspace Access Request",
|
|
10714
|
+
workspaceKeyUnsupported: true,
|
|
10715
|
+
body: {
|
|
10716
|
+
target: {
|
|
10717
|
+
kind: "unknown",
|
|
10718
|
+
required: true,
|
|
10719
|
+
describe: "Target returned by Discover Workspace Access Requests or Discover Organization Access Requests. The target must currently be requestable."
|
|
10720
|
+
},
|
|
10721
|
+
reason: { kind: "string", default: "", describe: "Why the acting user needs this access." }
|
|
10722
|
+
}
|
|
10723
|
+
},
|
|
10724
|
+
createWorkspaceInvitations: {
|
|
10725
|
+
method: "POST",
|
|
10726
|
+
path: "/api/v2/workspaces/[workspaceId]/invitations",
|
|
10727
|
+
pathParams: ["workspaceId"],
|
|
10728
|
+
pathParamDocs: { workspaceId: "Unique workspace identifier." },
|
|
10729
|
+
responseMode: "json",
|
|
10730
|
+
summary: "Create Workspace Invitations",
|
|
10731
|
+
workspaceKeyUnsupported: true,
|
|
10732
|
+
body: {
|
|
10733
|
+
emails: {
|
|
10734
|
+
kind: "array",
|
|
10735
|
+
required: true,
|
|
10736
|
+
describe: "Email addresses to invite. Each address is processed separately; inspect failed for unsuccessful recipients."
|
|
10737
|
+
},
|
|
10738
|
+
permission: {
|
|
10739
|
+
kind: "enum",
|
|
10740
|
+
values: ["admin", "write", "read"],
|
|
10741
|
+
default: "read",
|
|
10742
|
+
describe: "Workspace permission to grant. Existing workspace access is preserved."
|
|
10743
|
+
},
|
|
10744
|
+
membership: {
|
|
10745
|
+
kind: "enum",
|
|
10746
|
+
values: ["member", "admin", "external"],
|
|
10747
|
+
default: "member",
|
|
10748
|
+
describe: "Organization membership: member or admin uses a seat when billing is enabled. External grants workspace access only and requires an eligible paid account when billing is enabled. Existing members of another organization remain external."
|
|
10749
|
+
}
|
|
10750
|
+
}
|
|
10751
|
+
},
|
|
10666
10752
|
deleteCredential: {
|
|
10667
10753
|
method: "DELETE",
|
|
10668
10754
|
path: "/api/v2/credentials/[credentialId]",
|
|
@@ -11170,6 +11256,118 @@ var V2_OPERATIONS = {
|
|
|
11170
11256
|
}
|
|
11171
11257
|
}
|
|
11172
11258
|
},
|
|
11259
|
+
discoverOrganizationAccessRequests: {
|
|
11260
|
+
method: "GET",
|
|
11261
|
+
path: "/api/v2/organizations/[organizationId]/access-requests/discovery",
|
|
11262
|
+
pathParams: ["organizationId"],
|
|
11263
|
+
pathParamDocs: { organizationId: "Organization that owns the access requests." },
|
|
11264
|
+
responseMode: "json",
|
|
11265
|
+
summary: "Discover Organization Access Requests",
|
|
11266
|
+
workspaceKeyUnsupported: true,
|
|
11267
|
+
query: {
|
|
11268
|
+
search: {
|
|
11269
|
+
kind: "string",
|
|
11270
|
+
describe: "Case-insensitive substring match against the access item label."
|
|
11271
|
+
},
|
|
11272
|
+
targetKind: {
|
|
11273
|
+
kind: "enum",
|
|
11274
|
+
values: [
|
|
11275
|
+
"feature",
|
|
11276
|
+
"integration",
|
|
11277
|
+
"provider",
|
|
11278
|
+
"model",
|
|
11279
|
+
"tool",
|
|
11280
|
+
"knowledge_connector",
|
|
11281
|
+
"file_share_auth",
|
|
11282
|
+
"chat_deploy_auth",
|
|
11283
|
+
"usage_limit"
|
|
11284
|
+
],
|
|
11285
|
+
describe: "Category of access to discover."
|
|
11286
|
+
},
|
|
11287
|
+
state: {
|
|
11288
|
+
kind: "enum",
|
|
11289
|
+
values: ["allowed", "requestable", "unavailable"],
|
|
11290
|
+
describe: "Filter by the acting user’s current access. Requestable items can be submitted for review."
|
|
11291
|
+
},
|
|
11292
|
+
sortBy: {
|
|
11293
|
+
kind: "enum",
|
|
11294
|
+
values: ["label"],
|
|
11295
|
+
default: "label",
|
|
11296
|
+
describe: "Field used to sort the result."
|
|
11297
|
+
},
|
|
11298
|
+
sortOrder: {
|
|
11299
|
+
kind: "enum",
|
|
11300
|
+
values: ["asc", "desc"],
|
|
11301
|
+
default: "asc",
|
|
11302
|
+
describe: "Sort direction."
|
|
11303
|
+
},
|
|
11304
|
+
limit: {
|
|
11305
|
+
kind: "integer",
|
|
11306
|
+
default: 50,
|
|
11307
|
+
describe: "Maximum access items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
11308
|
+
},
|
|
11309
|
+
cursor: {
|
|
11310
|
+
kind: "string",
|
|
11311
|
+
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."
|
|
11312
|
+
}
|
|
11313
|
+
}
|
|
11314
|
+
},
|
|
11315
|
+
discoverWorkspaceAccessRequests: {
|
|
11316
|
+
method: "GET",
|
|
11317
|
+
path: "/api/v2/workspaces/[workspaceId]/access-requests/discovery",
|
|
11318
|
+
pathParams: ["workspaceId"],
|
|
11319
|
+
pathParamDocs: { workspaceId: "Workspace in which the acting user requests access." },
|
|
11320
|
+
responseMode: "json",
|
|
11321
|
+
summary: "Discover Workspace Access Requests",
|
|
11322
|
+
workspaceKeyUnsupported: true,
|
|
11323
|
+
query: {
|
|
11324
|
+
search: {
|
|
11325
|
+
kind: "string",
|
|
11326
|
+
describe: "Case-insensitive substring match against the access item label."
|
|
11327
|
+
},
|
|
11328
|
+
targetKind: {
|
|
11329
|
+
kind: "enum",
|
|
11330
|
+
values: [
|
|
11331
|
+
"feature",
|
|
11332
|
+
"integration",
|
|
11333
|
+
"provider",
|
|
11334
|
+
"model",
|
|
11335
|
+
"tool",
|
|
11336
|
+
"knowledge_connector",
|
|
11337
|
+
"file_share_auth",
|
|
11338
|
+
"chat_deploy_auth",
|
|
11339
|
+
"usage_limit"
|
|
11340
|
+
],
|
|
11341
|
+
describe: "Category of access to discover."
|
|
11342
|
+
},
|
|
11343
|
+
state: {
|
|
11344
|
+
kind: "enum",
|
|
11345
|
+
values: ["allowed", "requestable", "unavailable"],
|
|
11346
|
+
describe: "Filter by the acting user’s current access. Requestable items can be submitted for review."
|
|
11347
|
+
},
|
|
11348
|
+
sortBy: {
|
|
11349
|
+
kind: "enum",
|
|
11350
|
+
values: ["label"],
|
|
11351
|
+
default: "label",
|
|
11352
|
+
describe: "Field used to sort the result."
|
|
11353
|
+
},
|
|
11354
|
+
sortOrder: {
|
|
11355
|
+
kind: "enum",
|
|
11356
|
+
values: ["asc", "desc"],
|
|
11357
|
+
default: "asc",
|
|
11358
|
+
describe: "Sort direction."
|
|
11359
|
+
},
|
|
11360
|
+
limit: {
|
|
11361
|
+
kind: "integer",
|
|
11362
|
+
default: 50,
|
|
11363
|
+
describe: "Maximum access items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
11364
|
+
},
|
|
11365
|
+
cursor: {
|
|
11366
|
+
kind: "string",
|
|
11367
|
+
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."
|
|
11368
|
+
}
|
|
11369
|
+
}
|
|
11370
|
+
},
|
|
11173
11371
|
downloadFile: {
|
|
11174
11372
|
method: "GET",
|
|
11175
11373
|
path: "/api/v2/files/[fileId]",
|
|
@@ -11694,6 +11892,15 @@ var V2_OPERATIONS = {
|
|
|
11694
11892
|
summary: "Get Organization",
|
|
11695
11893
|
workspaceKeyUnsupported: true
|
|
11696
11894
|
},
|
|
11895
|
+
getOrganizationAccessRequestSettings: {
|
|
11896
|
+
method: "GET",
|
|
11897
|
+
path: "/api/v2/organizations/[organizationId]/access-requests/settings",
|
|
11898
|
+
pathParams: ["organizationId"],
|
|
11899
|
+
pathParamDocs: { organizationId: "Organization that owns the access requests." },
|
|
11900
|
+
responseMode: "json",
|
|
11901
|
+
summary: "Get Organization Access Request Settings",
|
|
11902
|
+
workspaceKeyUnsupported: true
|
|
11903
|
+
},
|
|
11697
11904
|
getOrganizationInvitation: {
|
|
11698
11905
|
method: "GET",
|
|
11699
11906
|
path: "/api/v2/organizations/[organizationId]/invitations/[invitationId]",
|
|
@@ -11706,6 +11913,97 @@ var V2_OPERATIONS = {
|
|
|
11706
11913
|
summary: "Get Organization Invitation",
|
|
11707
11914
|
workspaceKeyUnsupported: true
|
|
11708
11915
|
},
|
|
11916
|
+
getOrganizationMemberUsageLimit: {
|
|
11917
|
+
method: "GET",
|
|
11918
|
+
path: "/api/v2/organizations/[organizationId]/members/[userId]/usage-limit",
|
|
11919
|
+
pathParams: ["organizationId", "userId"],
|
|
11920
|
+
pathParamDocs: {
|
|
11921
|
+
organizationId: "Organization identifier.",
|
|
11922
|
+
userId: "User ID of an organization member or external collaborator with workspace access in this organization. Use List Organization Members or List Workspace Members to find it."
|
|
11923
|
+
},
|
|
11924
|
+
responseMode: "json",
|
|
11925
|
+
summary: "Get Organization Member Credit Limit",
|
|
11926
|
+
workspaceKeyUnsupported: true
|
|
11927
|
+
},
|
|
11928
|
+
getOrganizationUsageBreakdown: {
|
|
11929
|
+
method: "GET",
|
|
11930
|
+
path: "/api/v2/organizations/[organizationId]/usage/breakdown",
|
|
11931
|
+
pathParams: ["organizationId"],
|
|
11932
|
+
pathParamDocs: { organizationId: "Organization identifier." },
|
|
11933
|
+
responseMode: "json",
|
|
11934
|
+
summary: "Get Organization Usage Breakdown",
|
|
11935
|
+
workspaceKeyUnsupported: true,
|
|
11936
|
+
query: {
|
|
11937
|
+
preset: {
|
|
11938
|
+
kind: "enum",
|
|
11939
|
+
values: ["current-period", "previous-period", "7d", "30d", "custom"],
|
|
11940
|
+
default: "30d",
|
|
11941
|
+
describe: "Reporting window. Custom requires startDate and endDate and is capped at 92 days; other presets reject those bounds. Resolved billing windows are capped at 366 days."
|
|
11942
|
+
},
|
|
11943
|
+
startDate: {
|
|
11944
|
+
kind: "string",
|
|
11945
|
+
describe: "First calendar date included, in the selected timezone. Requires preset=custom."
|
|
11946
|
+
},
|
|
11947
|
+
endDate: {
|
|
11948
|
+
kind: "string",
|
|
11949
|
+
describe: "Last calendar date included, in the selected timezone. Requires preset=custom."
|
|
11950
|
+
},
|
|
11951
|
+
timezone: {
|
|
11952
|
+
kind: "string",
|
|
11953
|
+
default: "UTC",
|
|
11954
|
+
describe: "IANA timezone for calendar boundaries; defaults to UTC."
|
|
11955
|
+
},
|
|
11956
|
+
workspaceId: {
|
|
11957
|
+
kind: "string",
|
|
11958
|
+
describe: "Restrict usage to one workspace owned by the organization."
|
|
11959
|
+
},
|
|
11960
|
+
dimension: {
|
|
11961
|
+
kind: "enum",
|
|
11962
|
+
required: true,
|
|
11963
|
+
values: ["member", "workspace", "workflow", "model", "byok", "source"],
|
|
11964
|
+
describe: "Usage grouping dimension."
|
|
11965
|
+
},
|
|
11966
|
+
limit: {
|
|
11967
|
+
kind: "integer",
|
|
11968
|
+
default: 50,
|
|
11969
|
+
describe: "Maximum ranked groups to return. Remaining usage is summarized in other. Must be a whole number from 1 to 100. Defaults to 50."
|
|
11970
|
+
}
|
|
11971
|
+
}
|
|
11972
|
+
},
|
|
11973
|
+
getOrganizationUsageSummary: {
|
|
11974
|
+
method: "GET",
|
|
11975
|
+
path: "/api/v2/organizations/[organizationId]/usage/summary",
|
|
11976
|
+
pathParams: ["organizationId"],
|
|
11977
|
+
pathParamDocs: { organizationId: "Organization identifier." },
|
|
11978
|
+
responseMode: "json",
|
|
11979
|
+
summary: "Get Organization Usage Summary",
|
|
11980
|
+
workspaceKeyUnsupported: true,
|
|
11981
|
+
query: {
|
|
11982
|
+
preset: {
|
|
11983
|
+
kind: "enum",
|
|
11984
|
+
values: ["current-period", "previous-period", "7d", "30d", "custom"],
|
|
11985
|
+
default: "30d",
|
|
11986
|
+
describe: "Reporting window. Custom requires startDate and endDate and is capped at 92 days; other presets reject those bounds. Resolved billing windows are capped at 366 days."
|
|
11987
|
+
},
|
|
11988
|
+
startDate: {
|
|
11989
|
+
kind: "string",
|
|
11990
|
+
describe: "First calendar date included, in the selected timezone. Requires preset=custom."
|
|
11991
|
+
},
|
|
11992
|
+
endDate: {
|
|
11993
|
+
kind: "string",
|
|
11994
|
+
describe: "Last calendar date included, in the selected timezone. Requires preset=custom."
|
|
11995
|
+
},
|
|
11996
|
+
timezone: {
|
|
11997
|
+
kind: "string",
|
|
11998
|
+
default: "UTC",
|
|
11999
|
+
describe: "IANA timezone for calendar boundaries; defaults to UTC."
|
|
12000
|
+
},
|
|
12001
|
+
workspaceId: {
|
|
12002
|
+
kind: "string",
|
|
12003
|
+
describe: "Restrict usage to one workspace owned by the organization."
|
|
12004
|
+
}
|
|
12005
|
+
}
|
|
12006
|
+
},
|
|
11709
12007
|
getPermissionGroup: {
|
|
11710
12008
|
method: "GET",
|
|
11711
12009
|
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]",
|
|
@@ -12159,6 +12457,15 @@ var V2_OPERATIONS = {
|
|
|
12159
12457
|
responseMode: "json",
|
|
12160
12458
|
summary: "Get Workspace Operation"
|
|
12161
12459
|
},
|
|
12460
|
+
getWorkspacePermissionConfig: {
|
|
12461
|
+
method: "GET",
|
|
12462
|
+
path: "/api/v2/workspaces/[workspaceId]/permission-config",
|
|
12463
|
+
pathParams: ["workspaceId"],
|
|
12464
|
+
pathParamDocs: { workspaceId: "Unique workspace identifier." },
|
|
12465
|
+
responseMode: "json",
|
|
12466
|
+
summary: "Get Workspace Permission Config",
|
|
12467
|
+
workspaceKeyUnsupported: true
|
|
12468
|
+
},
|
|
12162
12469
|
grantSkillEditor: {
|
|
12163
12470
|
method: "POST",
|
|
12164
12471
|
path: "/api/v2/skills/[skillId]/editors",
|
|
@@ -13147,6 +13454,121 @@ var V2_OPERATIONS = {
|
|
|
13147
13454
|
}
|
|
13148
13455
|
}
|
|
13149
13456
|
},
|
|
13457
|
+
listMyOrganizationAccessRequests: {
|
|
13458
|
+
method: "GET",
|
|
13459
|
+
path: "/api/v2/organizations/[organizationId]/access-requests/mine",
|
|
13460
|
+
pathParams: ["organizationId"],
|
|
13461
|
+
pathParamDocs: { organizationId: "Organization that owns the access requests." },
|
|
13462
|
+
responseMode: "json",
|
|
13463
|
+
summary: "List My Organization Access Requests",
|
|
13464
|
+
workspaceKeyUnsupported: true,
|
|
13465
|
+
query: {
|
|
13466
|
+
status: {
|
|
13467
|
+
kind: "enum",
|
|
13468
|
+
values: ["pending", "fulfilled", "declined", "cancelled", "closed"],
|
|
13469
|
+
describe: "Filter by request status; omit to include all statuses."
|
|
13470
|
+
},
|
|
13471
|
+
sortBy: {
|
|
13472
|
+
kind: "enum",
|
|
13473
|
+
values: ["createdAt", "targetLabel"],
|
|
13474
|
+
default: "createdAt",
|
|
13475
|
+
describe: "Field used to sort the result."
|
|
13476
|
+
},
|
|
13477
|
+
sortOrder: {
|
|
13478
|
+
kind: "enum",
|
|
13479
|
+
values: ["asc", "desc"],
|
|
13480
|
+
default: "desc",
|
|
13481
|
+
describe: "Sort direction."
|
|
13482
|
+
},
|
|
13483
|
+
limit: {
|
|
13484
|
+
kind: "integer",
|
|
13485
|
+
default: 50,
|
|
13486
|
+
describe: "Maximum access requests to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13487
|
+
},
|
|
13488
|
+
cursor: {
|
|
13489
|
+
kind: "string",
|
|
13490
|
+
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."
|
|
13491
|
+
}
|
|
13492
|
+
}
|
|
13493
|
+
},
|
|
13494
|
+
listMyWorkspaceAccessRequests: {
|
|
13495
|
+
method: "GET",
|
|
13496
|
+
path: "/api/v2/workspaces/[workspaceId]/access-requests",
|
|
13497
|
+
pathParams: ["workspaceId"],
|
|
13498
|
+
pathParamDocs: { workspaceId: "Workspace in which the acting user requests access." },
|
|
13499
|
+
responseMode: "json",
|
|
13500
|
+
summary: "List My Workspace Access Requests",
|
|
13501
|
+
workspaceKeyUnsupported: true,
|
|
13502
|
+
query: {
|
|
13503
|
+
status: {
|
|
13504
|
+
kind: "enum",
|
|
13505
|
+
values: ["pending", "fulfilled", "declined", "cancelled", "closed"],
|
|
13506
|
+
describe: "Filter by request status; omit to include all statuses."
|
|
13507
|
+
},
|
|
13508
|
+
sortBy: {
|
|
13509
|
+
kind: "enum",
|
|
13510
|
+
values: ["createdAt", "targetLabel"],
|
|
13511
|
+
default: "createdAt",
|
|
13512
|
+
describe: "Field used to sort the result."
|
|
13513
|
+
},
|
|
13514
|
+
sortOrder: {
|
|
13515
|
+
kind: "enum",
|
|
13516
|
+
values: ["asc", "desc"],
|
|
13517
|
+
default: "desc",
|
|
13518
|
+
describe: "Sort direction."
|
|
13519
|
+
},
|
|
13520
|
+
limit: {
|
|
13521
|
+
kind: "integer",
|
|
13522
|
+
default: 50,
|
|
13523
|
+
describe: "Maximum access requests to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13524
|
+
},
|
|
13525
|
+
cursor: {
|
|
13526
|
+
kind: "string",
|
|
13527
|
+
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."
|
|
13528
|
+
}
|
|
13529
|
+
}
|
|
13530
|
+
},
|
|
13531
|
+
listOrganizationAccessRequests: {
|
|
13532
|
+
method: "GET",
|
|
13533
|
+
path: "/api/v2/organizations/[organizationId]/access-requests",
|
|
13534
|
+
pathParams: ["organizationId"],
|
|
13535
|
+
pathParamDocs: { organizationId: "Organization that owns the access requests." },
|
|
13536
|
+
responseMode: "json",
|
|
13537
|
+
summary: "List Organization Access Requests",
|
|
13538
|
+
workspaceKeyUnsupported: true,
|
|
13539
|
+
query: {
|
|
13540
|
+
status: {
|
|
13541
|
+
kind: "enum",
|
|
13542
|
+
values: ["pending", "fulfilled", "declined", "cancelled", "closed"],
|
|
13543
|
+
describe: "Filter by request status; omit to include all statuses."
|
|
13544
|
+
},
|
|
13545
|
+
sortBy: {
|
|
13546
|
+
kind: "enum",
|
|
13547
|
+
values: ["createdAt", "targetLabel"],
|
|
13548
|
+
default: "createdAt",
|
|
13549
|
+
describe: "Field used to sort the result."
|
|
13550
|
+
},
|
|
13551
|
+
sortOrder: {
|
|
13552
|
+
kind: "enum",
|
|
13553
|
+
values: ["asc", "desc"],
|
|
13554
|
+
default: "desc",
|
|
13555
|
+
describe: "Sort direction."
|
|
13556
|
+
},
|
|
13557
|
+
limit: {
|
|
13558
|
+
kind: "integer",
|
|
13559
|
+
default: 50,
|
|
13560
|
+
describe: "Maximum access requests to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13561
|
+
},
|
|
13562
|
+
cursor: {
|
|
13563
|
+
kind: "string",
|
|
13564
|
+
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."
|
|
13565
|
+
},
|
|
13566
|
+
search: {
|
|
13567
|
+
kind: "string",
|
|
13568
|
+
describe: "Case-insensitive substring match against the target label or requester name or email."
|
|
13569
|
+
}
|
|
13570
|
+
}
|
|
13571
|
+
},
|
|
13150
13572
|
listOrganizationInvitations: {
|
|
13151
13573
|
method: "GET",
|
|
13152
13574
|
path: "/api/v2/organizations/[organizationId]/invitations",
|
|
@@ -13188,6 +13610,45 @@ var V2_OPERATIONS = {
|
|
|
13188
13610
|
}
|
|
13189
13611
|
}
|
|
13190
13612
|
},
|
|
13613
|
+
listOrganizationInvitationWorkspaces: {
|
|
13614
|
+
method: "GET",
|
|
13615
|
+
path: "/api/v2/organizations/[organizationId]/invitations/[invitationId]/workspaces",
|
|
13616
|
+
pathParams: ["organizationId", "invitationId"],
|
|
13617
|
+
pathParamDocs: {
|
|
13618
|
+
organizationId: "Organization identifier.",
|
|
13619
|
+
invitationId: "Invitation identifier."
|
|
13620
|
+
},
|
|
13621
|
+
responseMode: "json",
|
|
13622
|
+
summary: "List Organization Invitation Workspaces",
|
|
13623
|
+
workspaceKeyUnsupported: true,
|
|
13624
|
+
query: {
|
|
13625
|
+
search: {
|
|
13626
|
+
kind: "string",
|
|
13627
|
+
describe: "Case-insensitive substring match against the workspace name."
|
|
13628
|
+
},
|
|
13629
|
+
sortBy: {
|
|
13630
|
+
kind: "enum",
|
|
13631
|
+
values: ["name", "id"],
|
|
13632
|
+
default: "name",
|
|
13633
|
+
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."
|
|
13634
|
+
},
|
|
13635
|
+
sortOrder: {
|
|
13636
|
+
kind: "enum",
|
|
13637
|
+
values: ["asc", "desc"],
|
|
13638
|
+
default: "asc",
|
|
13639
|
+
describe: "Sort direction."
|
|
13640
|
+
},
|
|
13641
|
+
limit: {
|
|
13642
|
+
kind: "integer",
|
|
13643
|
+
default: 50,
|
|
13644
|
+
describe: "Maximum workspaces to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13645
|
+
},
|
|
13646
|
+
cursor: {
|
|
13647
|
+
kind: "string",
|
|
13648
|
+
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."
|
|
13649
|
+
}
|
|
13650
|
+
}
|
|
13651
|
+
},
|
|
13191
13652
|
listOrganizationMembers: {
|
|
13192
13653
|
method: "GET",
|
|
13193
13654
|
path: "/api/v2/organizations/[organizationId]/members",
|
|
@@ -13259,6 +13720,73 @@ var V2_OPERATIONS = {
|
|
|
13259
13720
|
}
|
|
13260
13721
|
}
|
|
13261
13722
|
},
|
|
13723
|
+
listOrganizationUsageEvents: {
|
|
13724
|
+
method: "GET",
|
|
13725
|
+
path: "/api/v2/organizations/[organizationId]/usage/events",
|
|
13726
|
+
pathParams: ["organizationId"],
|
|
13727
|
+
pathParamDocs: { organizationId: "Organization identifier." },
|
|
13728
|
+
responseMode: "json",
|
|
13729
|
+
summary: "List Organization Usage Events",
|
|
13730
|
+
workspaceKeyUnsupported: true,
|
|
13731
|
+
query: {
|
|
13732
|
+
preset: {
|
|
13733
|
+
kind: "enum",
|
|
13734
|
+
values: ["current-period", "previous-period", "7d", "30d", "custom"],
|
|
13735
|
+
default: "30d",
|
|
13736
|
+
describe: "Reporting window. Custom requires startDate and endDate and is capped at 92 days; other presets reject those bounds. Resolved billing windows are capped at 366 days."
|
|
13737
|
+
},
|
|
13738
|
+
startDate: {
|
|
13739
|
+
kind: "string",
|
|
13740
|
+
describe: "First calendar date included, in the selected timezone. Requires preset=custom."
|
|
13741
|
+
},
|
|
13742
|
+
endDate: {
|
|
13743
|
+
kind: "string",
|
|
13744
|
+
describe: "Last calendar date included, in the selected timezone. Requires preset=custom."
|
|
13745
|
+
},
|
|
13746
|
+
timezone: {
|
|
13747
|
+
kind: "string",
|
|
13748
|
+
default: "UTC",
|
|
13749
|
+
describe: "IANA timezone for calendar boundaries; defaults to UTC."
|
|
13750
|
+
},
|
|
13751
|
+
source: {
|
|
13752
|
+
kind: "enum",
|
|
13753
|
+
values: [
|
|
13754
|
+
"workflow",
|
|
13755
|
+
"wand",
|
|
13756
|
+
"sim-chat",
|
|
13757
|
+
"mcp_copilot",
|
|
13758
|
+
"mothership_block",
|
|
13759
|
+
"knowledge-base",
|
|
13760
|
+
"voice-input",
|
|
13761
|
+
"enrichment",
|
|
13762
|
+
"voice-output",
|
|
13763
|
+
"api-tool"
|
|
13764
|
+
],
|
|
13765
|
+
describe: "Restrict events to one product surface."
|
|
13766
|
+
},
|
|
13767
|
+
limit: {
|
|
13768
|
+
kind: "integer",
|
|
13769
|
+
default: 50,
|
|
13770
|
+
describe: "Maximum usage events per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13771
|
+
},
|
|
13772
|
+
cursor: {
|
|
13773
|
+
kind: "string",
|
|
13774
|
+
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."
|
|
13775
|
+
},
|
|
13776
|
+
sortBy: {
|
|
13777
|
+
kind: "enum",
|
|
13778
|
+
values: ["createdAt"],
|
|
13779
|
+
default: "createdAt",
|
|
13780
|
+
describe: "Field used to sort the result."
|
|
13781
|
+
},
|
|
13782
|
+
sortOrder: {
|
|
13783
|
+
kind: "enum",
|
|
13784
|
+
values: ["asc", "desc"],
|
|
13785
|
+
default: "desc",
|
|
13786
|
+
describe: "Sort direction."
|
|
13787
|
+
}
|
|
13788
|
+
}
|
|
13789
|
+
},
|
|
13262
13790
|
listOrganizationWorkspaces: {
|
|
13263
13791
|
method: "GET",
|
|
13264
13792
|
path: "/api/v2/organizations/[organizationId]/workspaces",
|
|
@@ -14240,6 +14768,18 @@ var V2_OPERATIONS = {
|
|
|
14240
14768
|
}
|
|
14241
14769
|
}
|
|
14242
14770
|
},
|
|
14771
|
+
previewOrganizationAccessRequest: {
|
|
14772
|
+
method: "GET",
|
|
14773
|
+
path: "/api/v2/organizations/[organizationId]/access-requests/[requestId]/preview",
|
|
14774
|
+
pathParams: ["organizationId", "requestId"],
|
|
14775
|
+
pathParamDocs: {
|
|
14776
|
+
organizationId: "Organization that owns the access requests.",
|
|
14777
|
+
requestId: "Access request identifier."
|
|
14778
|
+
},
|
|
14779
|
+
responseMode: "json",
|
|
14780
|
+
summary: "Preview Organization Access Request",
|
|
14781
|
+
workspaceKeyUnsupported: true
|
|
14782
|
+
},
|
|
14243
14783
|
previewWorkflowImport: {
|
|
14244
14784
|
method: "POST",
|
|
14245
14785
|
path: "/api/v2/workflows/import/preview",
|
|
@@ -14751,6 +15291,71 @@ var V2_OPERATIONS = {
|
|
|
14751
15291
|
summary: "Resend Organization Invitation",
|
|
14752
15292
|
workspaceKeyUnsupported: true
|
|
14753
15293
|
},
|
|
15294
|
+
resolveOrganizationAccessRequest: {
|
|
15295
|
+
method: "POST",
|
|
15296
|
+
path: "/api/v2/organizations/[organizationId]/access-requests/[requestId]/resolve",
|
|
15297
|
+
pathParams: ["organizationId", "requestId"],
|
|
15298
|
+
pathParamDocs: {
|
|
15299
|
+
organizationId: "Organization that owns the access requests.",
|
|
15300
|
+
requestId: "Access request identifier."
|
|
15301
|
+
},
|
|
15302
|
+
responseMode: "json",
|
|
15303
|
+
summary: "Resolve Organization Access Request",
|
|
15304
|
+
workspaceKeyUnsupported: true,
|
|
15305
|
+
body: {
|
|
15306
|
+
action: {
|
|
15307
|
+
kind: "enum",
|
|
15308
|
+
required: true,
|
|
15309
|
+
values: ["apply", "decline"],
|
|
15310
|
+
describe: "apply: Apply the reviewed change to the governing group or member credit cap. decline: Decline the request without changing permissions or credit limits."
|
|
15311
|
+
},
|
|
15312
|
+
expectedFingerprint: {
|
|
15313
|
+
kind: "string",
|
|
15314
|
+
describe: "Fingerprint from Preview Organization Access Request. Review its changes and impact before applying; a stale preview returns a conflict. Available when action is apply. Required when action is apply."
|
|
15315
|
+
},
|
|
15316
|
+
newLimitCredits: {
|
|
15317
|
+
kind: "integer",
|
|
15318
|
+
describe: "Required only for a usage-limit request: a whole-number credit cap greater than the current cap. Omit for permission requests. Available when action is apply."
|
|
15319
|
+
},
|
|
15320
|
+
reason: {
|
|
15321
|
+
kind: "string",
|
|
15322
|
+
describe: "Required explanation for declining this request. Available when action is decline. Required when action is decline."
|
|
15323
|
+
}
|
|
15324
|
+
},
|
|
15325
|
+
bodyDiscriminator: {
|
|
15326
|
+
field: "action",
|
|
15327
|
+
variants: {
|
|
15328
|
+
apply: {
|
|
15329
|
+
action: {
|
|
15330
|
+
kind: "string",
|
|
15331
|
+
required: true,
|
|
15332
|
+
describe: "Apply the reviewed change to the governing group or member credit cap."
|
|
15333
|
+
},
|
|
15334
|
+
expectedFingerprint: {
|
|
15335
|
+
kind: "string",
|
|
15336
|
+
required: true,
|
|
15337
|
+
describe: "Fingerprint from Preview Organization Access Request. Review its changes and impact before applying; a stale preview returns a conflict."
|
|
15338
|
+
},
|
|
15339
|
+
newLimitCredits: {
|
|
15340
|
+
kind: "integer",
|
|
15341
|
+
describe: "Required only for a usage-limit request: a whole-number credit cap greater than the current cap. Omit for permission requests."
|
|
15342
|
+
}
|
|
15343
|
+
},
|
|
15344
|
+
decline: {
|
|
15345
|
+
action: {
|
|
15346
|
+
kind: "string",
|
|
15347
|
+
required: true,
|
|
15348
|
+
describe: "Decline the request without changing permissions or credit limits."
|
|
15349
|
+
},
|
|
15350
|
+
reason: {
|
|
15351
|
+
kind: "string",
|
|
15352
|
+
required: true,
|
|
15353
|
+
describe: "Required explanation for declining this request."
|
|
15354
|
+
}
|
|
15355
|
+
}
|
|
15356
|
+
}
|
|
15357
|
+
}
|
|
15358
|
+
},
|
|
14754
15359
|
restoreFile: {
|
|
14755
15360
|
method: "POST",
|
|
14756
15361
|
path: "/api/v2/files/[fileId]/restore",
|
|
@@ -15526,6 +16131,22 @@ var V2_OPERATIONS = {
|
|
|
15526
16131
|
}
|
|
15527
16132
|
}
|
|
15528
16133
|
},
|
|
16134
|
+
updateOrganizationAccessRequestSettings: {
|
|
16135
|
+
method: "PATCH",
|
|
16136
|
+
path: "/api/v2/organizations/[organizationId]/access-requests/settings",
|
|
16137
|
+
pathParams: ["organizationId"],
|
|
16138
|
+
pathParamDocs: { organizationId: "Organization that owns the access requests." },
|
|
16139
|
+
responseMode: "json",
|
|
16140
|
+
summary: "Update Organization Access Request Settings",
|
|
16141
|
+
workspaceKeyUnsupported: true,
|
|
16142
|
+
body: {
|
|
16143
|
+
allowRequests: {
|
|
16144
|
+
kind: "boolean",
|
|
16145
|
+
required: true,
|
|
16146
|
+
describe: "Allow new requests and approvals. Disabling requests preserves history and still allows cancellation and decline."
|
|
16147
|
+
}
|
|
16148
|
+
}
|
|
16149
|
+
},
|
|
15529
16150
|
updateOrganizationMember: {
|
|
15530
16151
|
method: "PATCH",
|
|
15531
16152
|
path: "/api/v2/organizations/[organizationId]/members/[userId]",
|
|
@@ -15546,6 +16167,26 @@ var V2_OPERATIONS = {
|
|
|
15546
16167
|
}
|
|
15547
16168
|
}
|
|
15548
16169
|
},
|
|
16170
|
+
updateOrganizationMemberUsageLimit: {
|
|
16171
|
+
method: "PATCH",
|
|
16172
|
+
path: "/api/v2/organizations/[organizationId]/members/[userId]/usage-limit",
|
|
16173
|
+
pathParams: ["organizationId", "userId"],
|
|
16174
|
+
pathParamDocs: {
|
|
16175
|
+
organizationId: "Organization identifier.",
|
|
16176
|
+
userId: "User ID of an organization member or external collaborator with workspace access in this organization. Use List Organization Members or List Workspace Members to find it."
|
|
16177
|
+
},
|
|
16178
|
+
responseMode: "json",
|
|
16179
|
+
summary: "Update Organization Member Credit Limit",
|
|
16180
|
+
workspaceKeyUnsupported: true,
|
|
16181
|
+
body: {
|
|
16182
|
+
creditLimit: {
|
|
16183
|
+
kind: "integer",
|
|
16184
|
+
nullable: true,
|
|
16185
|
+
required: true,
|
|
16186
|
+
describe: "Credit cap for this person. Send null to clear the cap or 0 to prevent further credit-consuming usage. Organization limits still apply."
|
|
16187
|
+
}
|
|
16188
|
+
}
|
|
16189
|
+
},
|
|
15549
16190
|
updatePermissionGroup: {
|
|
15550
16191
|
method: "PATCH",
|
|
15551
16192
|
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]",
|
|
@@ -16654,6 +17295,13 @@ var PERMISSION_GROUP_MEMBER_FLAGS = {
|
|
|
16654
17295
|
var DEFAULT_FLAG = {
|
|
16655
17296
|
isDefault: { name: "default", boolean: true, negatable: true }
|
|
16656
17297
|
};
|
|
17298
|
+
var ACCESS_REQUEST_COLUMNS = [
|
|
17299
|
+
{ header: "id" },
|
|
17300
|
+
{ header: "target", path: "targetLabel" },
|
|
17301
|
+
{ header: "status" },
|
|
17302
|
+
{ header: "requester", path: "requester.email" },
|
|
17303
|
+
{ header: "created", path: "createdAt", format: "timestamp" }
|
|
17304
|
+
];
|
|
16657
17305
|
var TABLE_NAME_HELP = "Identifier: letters, numbers, and underscores; cannot start with a number";
|
|
16658
17306
|
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';
|
|
16659
17307
|
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';
|
|
@@ -17352,6 +18000,112 @@ var CLI_CONTRACT = {
|
|
|
17352
18000
|
{ header: "built-in", path: "readOnly", format: "bool" }
|
|
17353
18001
|
]
|
|
17354
18002
|
},
|
|
18003
|
+
discoverWorkspaceAccessRequests: {
|
|
18004
|
+
command: "workspaces access-requests discover",
|
|
18005
|
+
profileWorkspacePath: true,
|
|
18006
|
+
columns: [
|
|
18007
|
+
{ header: "label" },
|
|
18008
|
+
{ header: "target" },
|
|
18009
|
+
{ header: "state" },
|
|
18010
|
+
{ header: "pending", path: "pendingRequestId" }
|
|
18011
|
+
]
|
|
18012
|
+
},
|
|
18013
|
+
listMyWorkspaceAccessRequests: {
|
|
18014
|
+
command: "workspaces access-requests mine",
|
|
18015
|
+
profileWorkspacePath: true,
|
|
18016
|
+
columns: ACCESS_REQUEST_COLUMNS
|
|
18017
|
+
},
|
|
18018
|
+
createWorkspaceAccessRequest: {
|
|
18019
|
+
command: "workspaces access-requests create",
|
|
18020
|
+
profileWorkspacePath: true
|
|
18021
|
+
},
|
|
18022
|
+
cancelWorkspaceAccessRequest: {
|
|
18023
|
+
command: "workspaces access-requests cancel",
|
|
18024
|
+
profileWorkspacePath: true
|
|
18025
|
+
},
|
|
18026
|
+
discoverOrganizationAccessRequests: {
|
|
18027
|
+
command: "organizations access-requests discover",
|
|
18028
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
18029
|
+
columns: [
|
|
18030
|
+
{ header: "label" },
|
|
18031
|
+
{ header: "target" },
|
|
18032
|
+
{ header: "state" },
|
|
18033
|
+
{ header: "pending", path: "pendingRequestId" }
|
|
18034
|
+
]
|
|
18035
|
+
},
|
|
18036
|
+
listMyOrganizationAccessRequests: {
|
|
18037
|
+
command: "organizations access-requests mine",
|
|
18038
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
18039
|
+
columns: ACCESS_REQUEST_COLUMNS
|
|
18040
|
+
},
|
|
18041
|
+
createOrganizationAccessRequest: {
|
|
18042
|
+
command: "organizations access-requests create",
|
|
18043
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18044
|
+
},
|
|
18045
|
+
cancelOrganizationAccessRequest: {
|
|
18046
|
+
command: "organizations access-requests cancel",
|
|
18047
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18048
|
+
},
|
|
18049
|
+
listOrganizationAccessRequests: {
|
|
18050
|
+
command: "organizations access-requests list",
|
|
18051
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
18052
|
+
columns: ACCESS_REQUEST_COLUMNS
|
|
18053
|
+
},
|
|
18054
|
+
previewOrganizationAccessRequest: {
|
|
18055
|
+
command: "organizations access-requests preview",
|
|
18056
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18057
|
+
},
|
|
18058
|
+
resolveOrganizationAccessRequest: {
|
|
18059
|
+
command: "organizations access-requests resolve",
|
|
18060
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18061
|
+
},
|
|
18062
|
+
getOrganizationAccessRequestSettings: {
|
|
18063
|
+
command: "organizations access-requests settings get",
|
|
18064
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18065
|
+
},
|
|
18066
|
+
updateOrganizationAccessRequestSettings: {
|
|
18067
|
+
command: "organizations access-requests settings update",
|
|
18068
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18069
|
+
},
|
|
18070
|
+
createWorkspaceInvitations: {
|
|
18071
|
+
command: "workspaces invitations create",
|
|
18072
|
+
profileWorkspacePath: true,
|
|
18073
|
+
flags: { emails: { list: true } }
|
|
18074
|
+
},
|
|
18075
|
+
getWorkspacePermissionConfig: {
|
|
18076
|
+
command: "workspaces permission-config",
|
|
18077
|
+
profileWorkspacePath: true
|
|
18078
|
+
},
|
|
18079
|
+
listOrganizationInvitationWorkspaces: {
|
|
18080
|
+
command: "organizations invitations workspaces",
|
|
18081
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
18082
|
+
columns: [
|
|
18083
|
+
{ header: "id" },
|
|
18084
|
+
{ header: "name" },
|
|
18085
|
+
{ header: "permission" },
|
|
18086
|
+
{ header: "archived", path: "archivedAt", format: "timestamp" }
|
|
18087
|
+
]
|
|
18088
|
+
},
|
|
18089
|
+
getOrganizationMemberUsageLimit: {
|
|
18090
|
+
command: "organizations members usage-limit get",
|
|
18091
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18092
|
+
},
|
|
18093
|
+
updateOrganizationMemberUsageLimit: {
|
|
18094
|
+
command: "organizations members usage-limit update",
|
|
18095
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18096
|
+
},
|
|
18097
|
+
getOrganizationUsageSummary: {
|
|
18098
|
+
command: "organizations usage summary",
|
|
18099
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18100
|
+
},
|
|
18101
|
+
getOrganizationUsageBreakdown: {
|
|
18102
|
+
command: "organizations usage breakdown",
|
|
18103
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18104
|
+
},
|
|
18105
|
+
listOrganizationUsageEvents: {
|
|
18106
|
+
command: "organizations usage events",
|
|
18107
|
+
pathFlags: ORGANIZATION_FLAG
|
|
18108
|
+
},
|
|
17355
18109
|
listOrganizations: {
|
|
17356
18110
|
command: "organizations list",
|
|
17357
18111
|
columns: [{ header: "id" }, { header: "name" }, { header: "role" }]
|
|
@@ -18804,9 +19558,13 @@ function coerce(raw, field, flag, flagName) {
|
|
|
18804
19558
|
}
|
|
18805
19559
|
}
|
|
18806
19560
|
if (NUMERIC_KINDS.has(field.kind)) {
|
|
19561
|
+
if (field.nullable && (raw === null || typeof raw === "string" && raw.trim() === "null"))
|
|
19562
|
+
return null;
|
|
18807
19563
|
const value = Number(raw);
|
|
18808
19564
|
if (Number.isNaN(value))
|
|
18809
19565
|
throw new SimApiError(`--${flagName} must be a number`, 0);
|
|
19566
|
+
if (!Number.isFinite(value))
|
|
19567
|
+
throw new SimApiError(`--${flagName} must be a finite number`, 0);
|
|
18810
19568
|
if (field.kind === "integer" && (!Number.isInteger(value) || FRACTIONAL_DIGITS.test(String(raw)))) {
|
|
18811
19569
|
throw new SimApiError(`--${flagName} must be a whole number`, 0);
|
|
18812
19570
|
}
|
|
@@ -18864,8 +19622,28 @@ function buildRequest(operation, positional, flags, workspaceId) {
|
|
|
18864
19622
|
const body = {};
|
|
18865
19623
|
const headers = {};
|
|
18866
19624
|
const paginatedLimit = cursorSlot(spec) !== null;
|
|
19625
|
+
let bodyFields = spec.body;
|
|
19626
|
+
if (spec.bodyDiscriminator) {
|
|
19627
|
+
const { field, variants } = spec.bodyDiscriminator;
|
|
19628
|
+
const flagName = flagNameFor(operation, field);
|
|
19629
|
+
const descriptor = spec.body?.[field];
|
|
19630
|
+
if (!descriptor)
|
|
19631
|
+
throw new Error(`Missing body discriminator field: ${field}`);
|
|
19632
|
+
const flag = flagSpecFor(operation, field);
|
|
19633
|
+
const value = coerce(flags[camel(flagName)] ?? flag.requestDefault ?? descriptor.default, descriptor, flag, flagName);
|
|
19634
|
+
if (value === undefined)
|
|
19635
|
+
throw new SimApiError(`--${flagName} is required`, 0);
|
|
19636
|
+
if (typeof value !== "string" || !Object.hasOwn(variants, value))
|
|
19637
|
+
throw new SimApiError(`--${flagName} must be one of: ${Object.keys(variants).join(", ")}`, 0);
|
|
19638
|
+
bodyFields = variants[value];
|
|
19639
|
+
for (const candidate of Object.keys(spec.body ?? {})) {
|
|
19640
|
+
const candidateFlag = flagNameFor(operation, candidate);
|
|
19641
|
+
if (!Object.hasOwn(bodyFields, candidate) && flags[camel(candidateFlag)] !== undefined)
|
|
19642
|
+
throw new SimApiError(`--${candidateFlag} is not available when --${flagName} is ${value}`, 0);
|
|
19643
|
+
}
|
|
19644
|
+
}
|
|
18867
19645
|
for (const slot of ["query", "body", "headers"]) {
|
|
18868
|
-
for (const [field, descriptor] of Object.entries(spec[slot] ?? {})) {
|
|
19646
|
+
for (const [field, descriptor] of Object.entries((slot === "body" ? bodyFields : spec[slot]) ?? {})) {
|
|
18869
19647
|
const flag = flagSpecFor(operation, field);
|
|
18870
19648
|
if (flag.omit)
|
|
18871
19649
|
continue;
|
|
@@ -19018,9 +19796,9 @@ function addFieldOption(command, operation, field, descriptor, slot, paginates,
|
|
|
19018
19796
|
}
|
|
19019
19797
|
const takesList = flag.list === true;
|
|
19020
19798
|
const wantsJson = takesJson(descriptor, flag);
|
|
19021
|
-
const placeholder = takesList ? "<value...>" : flag.rowCap ? "<n>" : wantsJson ? "<json|@file>" : "<value>";
|
|
19799
|
+
const placeholder = takesList ? "<value...>" : flag.rowCap ? "<n>" : wantsJson ? "<json|@file>" : descriptor.nullable ? "<number|null>" : "<value>";
|
|
19022
19800
|
const choices = flag.choices ?? descriptor.values;
|
|
19023
|
-
const literalNull = slot === "body" && !takesList && !wantsJson;
|
|
19801
|
+
const literalNull = slot === "body" && !takesList && !wantsJson && !descriptor.nullable;
|
|
19024
19802
|
const describe = `${documented}${takesList ? flag.manifest ? " (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @)" : " (space-separated, or @path / @- with one value per line; @@value for a literal leading @)" : wantsJson ? " (JSON, or @path / @- to read a file or stdin)" : ""}${descriptor.required ? " (required)" : ""}${literalNull ? literalNullHint(documented, name) : ""}`;
|
|
19025
19803
|
const renamedFrom = flag.renamedFrom ?? [];
|
|
19026
19804
|
const option = new Option(`${short}--${name} ${placeholder}`, describe);
|
|
@@ -19135,6 +19913,12 @@ function runFailureMessage(operation, payload) {
|
|
|
19135
19913
|
return safeOneLine(typeof reported === "string" && reported ? reported : fallback);
|
|
19136
19914
|
}
|
|
19137
19915
|
var BULK_OUTCOME_CHECKS = {
|
|
19916
|
+
createWorkspaceInvitations: (payload) => {
|
|
19917
|
+
const failed = lengthOf(payload.failed);
|
|
19918
|
+
if (failed === 0 && payload.success !== false)
|
|
19919
|
+
return null;
|
|
19920
|
+
return `${failed > 0 ? `Invitation batch failed for ${failed} ${failed === 1 ? "recipient" : "recipients"}.` : "Invitation batch failed."} Successful results remain committed; inspect failed recipients before retrying.`;
|
|
19921
|
+
},
|
|
19138
19922
|
bulkDeleteFiles: (payload, body) => {
|
|
19139
19923
|
if (countOf(payload.deletedItems?.files) > 0)
|
|
19140
19924
|
return null;
|