@breign/client 1.0.102 → 1.0.103

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.
Files changed (44) hide show
  1. package/dist/apis/OrganizationsApi.d.ts +175 -1
  2. package/dist/apis/OrganizationsApi.js +433 -0
  3. package/dist/models/AccessRoleCreateRequestUio.d.ts +45 -0
  4. package/dist/models/AccessRoleCreateRequestUio.js +55 -0
  5. package/dist/models/AccessRolePermissionsRequestUio.d.ts +33 -0
  6. package/dist/models/AccessRolePermissionsRequestUio.js +51 -0
  7. package/dist/models/AccessRoleUio.d.ts +75 -0
  8. package/dist/models/AccessRoleUio.js +75 -0
  9. package/dist/models/AccessRoleUpdateRequestUio.d.ts +38 -0
  10. package/dist/models/AccessRoleUpdateRequestUio.js +52 -0
  11. package/dist/models/OrganizationMemberUio.d.ts +51 -0
  12. package/dist/models/OrganizationMemberUio.js +63 -0
  13. package/dist/models/OrganizationMemberUserUio.d.ts +32 -0
  14. package/dist/models/OrganizationMemberUserUio.js +50 -0
  15. package/dist/models/OrganizationPermissionKeyUio.d.ts +59 -0
  16. package/dist/models/OrganizationPermissionKeyUio.js +85 -0
  17. package/dist/models/OrganizationUserInviteRequestUio.d.ts +38 -0
  18. package/dist/models/OrganizationUserInviteRequestUio.js +52 -0
  19. package/dist/models/OrganizationUserInviteResponseUio.d.ts +32 -0
  20. package/dist/models/OrganizationUserInviteResponseUio.js +50 -0
  21. package/dist/models/PermissionEntryUio.d.ts +39 -0
  22. package/dist/models/PermissionEntryUio.js +55 -0
  23. package/dist/models/ProviderValiationRequestUio.d.ts +6 -0
  24. package/dist/models/ProviderValiationRequestUio.js +4 -0
  25. package/dist/models/UserAccessRolesRequestUio.d.ts +32 -0
  26. package/dist/models/UserAccessRolesRequestUio.js +50 -0
  27. package/dist/models/UserAccessUio.d.ts +39 -0
  28. package/dist/models/UserAccessUio.js +55 -0
  29. package/dist/models/UserAgentAccessAgentUio.d.ts +38 -0
  30. package/dist/models/UserAgentAccessAgentUio.js +54 -0
  31. package/dist/models/UserAgentAccessRequestUio.d.ts +38 -0
  32. package/dist/models/UserAgentAccessRequestUio.js +54 -0
  33. package/dist/models/UserAgentAccessUio.d.ts +45 -0
  34. package/dist/models/UserAgentAccessUio.js +59 -0
  35. package/dist/models/UserDirectPermissionsRequestUio.d.ts +33 -0
  36. package/dist/models/UserDirectPermissionsRequestUio.js +51 -0
  37. package/dist/models/UserUio.d.ts +3 -3
  38. package/dist/models/UserUio.js +3 -3
  39. package/dist/models/index.d.ts +16 -1
  40. package/dist/models/index.js +16 -1
  41. package/dist/openapi.json +824 -11
  42. package/package.json +1 -1
  43. package/dist/models/UserUserUio.d.ts +0 -32
  44. package/dist/models/UserUserUio.js +0 -50
package/dist/openapi.json CHANGED
@@ -5806,6 +5806,588 @@
5806
5806
  "tags" : [ "organizations" ]
5807
5807
  }
5808
5808
  },
5809
+ "/organizations/{organizationId}/access-roles" : {
5810
+ "get" : {
5811
+ "operationId" : "listOrganizationAccessRoles",
5812
+ "parameters" : [ {
5813
+ "description" : "ID of the organization",
5814
+ "in" : "path",
5815
+ "name" : "organizationId",
5816
+ "required" : true,
5817
+ "schema" : {
5818
+ "type" : "string"
5819
+ }
5820
+ } ],
5821
+ "responses" : {
5822
+ "200" : {
5823
+ "content" : {
5824
+ "application/json" : {
5825
+ "schema" : {
5826
+ "items" : {
5827
+ "$ref" : "#/components/schemas/AccessRole"
5828
+ },
5829
+ "type" : "array"
5830
+ }
5831
+ }
5832
+ },
5833
+ "description" : "Access roles found"
5834
+ },
5835
+ "401" : {
5836
+ "description" : "Unauthorized"
5837
+ },
5838
+ "404" : {
5839
+ "description" : "Organization not found"
5840
+ }
5841
+ },
5842
+ "summary" : "List access roles of an organization",
5843
+ "tags" : [ "organizations" ]
5844
+ },
5845
+ "post" : {
5846
+ "operationId" : "createOrganizationAccessRole",
5847
+ "parameters" : [ {
5848
+ "description" : "ID of the organization",
5849
+ "in" : "path",
5850
+ "name" : "organizationId",
5851
+ "required" : true,
5852
+ "schema" : {
5853
+ "type" : "string"
5854
+ }
5855
+ } ],
5856
+ "requestBody" : {
5857
+ "content" : {
5858
+ "application/json" : {
5859
+ "schema" : {
5860
+ "$ref" : "#/components/schemas/AccessRoleCreateRequest"
5861
+ }
5862
+ }
5863
+ },
5864
+ "required" : true
5865
+ },
5866
+ "responses" : {
5867
+ "201" : {
5868
+ "content" : {
5869
+ "application/json" : {
5870
+ "schema" : {
5871
+ "$ref" : "#/components/schemas/AccessRole"
5872
+ }
5873
+ }
5874
+ },
5875
+ "description" : "Access role created"
5876
+ },
5877
+ "400" : {
5878
+ "description" : "Invalid request body"
5879
+ },
5880
+ "401" : {
5881
+ "description" : "Unauthorized"
5882
+ },
5883
+ "404" : {
5884
+ "description" : "Organization not found"
5885
+ }
5886
+ },
5887
+ "summary" : "Create an access role in an organization",
5888
+ "tags" : [ "organizations" ]
5889
+ }
5890
+ },
5891
+ "/organizations/{organizationId}/access-roles/{roleId}" : {
5892
+ "delete" : {
5893
+ "operationId" : "deleteOrganizationAccessRole",
5894
+ "parameters" : [ {
5895
+ "description" : "ID of the organization",
5896
+ "in" : "path",
5897
+ "name" : "organizationId",
5898
+ "required" : true,
5899
+ "schema" : {
5900
+ "type" : "string"
5901
+ }
5902
+ }, {
5903
+ "in" : "path",
5904
+ "name" : "roleId",
5905
+ "required" : true,
5906
+ "schema" : {
5907
+ "type" : "string"
5908
+ }
5909
+ } ],
5910
+ "responses" : {
5911
+ "204" : {
5912
+ "description" : "Access role deleted"
5913
+ },
5914
+ "401" : {
5915
+ "description" : "Unauthorized"
5916
+ },
5917
+ "404" : {
5918
+ "description" : "Organization not found"
5919
+ }
5920
+ },
5921
+ "summary" : "Delete an access role from an organization",
5922
+ "tags" : [ "organizations" ]
5923
+ },
5924
+ "put" : {
5925
+ "operationId" : "updateOrganizationAccessRole",
5926
+ "parameters" : [ {
5927
+ "description" : "ID of the organization",
5928
+ "in" : "path",
5929
+ "name" : "organizationId",
5930
+ "required" : true,
5931
+ "schema" : {
5932
+ "type" : "string"
5933
+ }
5934
+ }, {
5935
+ "in" : "path",
5936
+ "name" : "roleId",
5937
+ "required" : true,
5938
+ "schema" : {
5939
+ "type" : "string"
5940
+ }
5941
+ } ],
5942
+ "requestBody" : {
5943
+ "content" : {
5944
+ "application/json" : {
5945
+ "schema" : {
5946
+ "$ref" : "#/components/schemas/AccessRoleUpdateRequest"
5947
+ }
5948
+ }
5949
+ },
5950
+ "required" : true
5951
+ },
5952
+ "responses" : {
5953
+ "204" : {
5954
+ "description" : "Access role updated"
5955
+ },
5956
+ "400" : {
5957
+ "description" : "Invalid request body"
5958
+ },
5959
+ "401" : {
5960
+ "description" : "Unauthorized"
5961
+ },
5962
+ "404" : {
5963
+ "description" : "Organization not found"
5964
+ }
5965
+ },
5966
+ "summary" : "Update an access role in an organization",
5967
+ "tags" : [ "organizations" ]
5968
+ }
5969
+ },
5970
+ "/organizations/{organizationId}/access-roles/{roleId}/permissions" : {
5971
+ "put" : {
5972
+ "operationId" : "setOrganizationAccessRolePermissions",
5973
+ "parameters" : [ {
5974
+ "description" : "ID of the organization",
5975
+ "in" : "path",
5976
+ "name" : "organizationId",
5977
+ "required" : true,
5978
+ "schema" : {
5979
+ "type" : "string"
5980
+ }
5981
+ }, {
5982
+ "in" : "path",
5983
+ "name" : "roleId",
5984
+ "required" : true,
5985
+ "schema" : {
5986
+ "type" : "string"
5987
+ }
5988
+ } ],
5989
+ "requestBody" : {
5990
+ "content" : {
5991
+ "application/json" : {
5992
+ "schema" : {
5993
+ "$ref" : "#/components/schemas/AccessRolePermissionsRequest"
5994
+ }
5995
+ }
5996
+ },
5997
+ "required" : true
5998
+ },
5999
+ "responses" : {
6000
+ "204" : {
6001
+ "description" : "Permissions updated"
6002
+ },
6003
+ "400" : {
6004
+ "description" : "Invalid request body"
6005
+ },
6006
+ "401" : {
6007
+ "description" : "Unauthorized"
6008
+ },
6009
+ "404" : {
6010
+ "description" : "Organization not found"
6011
+ }
6012
+ },
6013
+ "summary" : "Set permissions for an access role",
6014
+ "tags" : [ "organizations" ]
6015
+ }
6016
+ },
6017
+ "/organizations/{organizationId}/members/me/permissions" : {
6018
+ "get" : {
6019
+ "operationId" : "getOrganizationMemberPermissions",
6020
+ "parameters" : [ {
6021
+ "description" : "ID of the organization",
6022
+ "in" : "path",
6023
+ "name" : "organizationId",
6024
+ "required" : true,
6025
+ "schema" : {
6026
+ "type" : "string"
6027
+ }
6028
+ } ],
6029
+ "responses" : {
6030
+ "200" : {
6031
+ "content" : {
6032
+ "application/json" : {
6033
+ "schema" : {
6034
+ "$ref" : "#/components/schemas/MemberPermissions"
6035
+ }
6036
+ }
6037
+ },
6038
+ "description" : "Resolved permissions for the current member"
6039
+ },
6040
+ "401" : {
6041
+ "description" : "Unauthorized"
6042
+ },
6043
+ "404" : {
6044
+ "description" : "Organization not found"
6045
+ }
6046
+ },
6047
+ "summary" : "Get current member resolved permissions",
6048
+ "tags" : [ "organizations" ]
6049
+ }
6050
+ },
6051
+ "/organizations/{organizationId}/users" : {
6052
+ "get" : {
6053
+ "operationId" : "listOrganizationUsers",
6054
+ "parameters" : [ {
6055
+ "description" : "ID of the organization",
6056
+ "in" : "path",
6057
+ "name" : "organizationId",
6058
+ "required" : true,
6059
+ "schema" : {
6060
+ "type" : "string"
6061
+ }
6062
+ } ],
6063
+ "responses" : {
6064
+ "200" : {
6065
+ "content" : {
6066
+ "application/json" : {
6067
+ "schema" : {
6068
+ "items" : {
6069
+ "$ref" : "#/components/schemas/OrganizationMember"
6070
+ },
6071
+ "type" : "array"
6072
+ }
6073
+ }
6074
+ },
6075
+ "description" : "Organization users"
6076
+ },
6077
+ "401" : {
6078
+ "description" : "Unauthorized"
6079
+ },
6080
+ "404" : {
6081
+ "description" : "Organization not found"
6082
+ }
6083
+ },
6084
+ "summary" : "List users of an organization",
6085
+ "tags" : [ "organizations" ]
6086
+ },
6087
+ "post" : {
6088
+ "operationId" : "inviteOrganizationUser",
6089
+ "parameters" : [ {
6090
+ "description" : "ID of the organization",
6091
+ "in" : "path",
6092
+ "name" : "organizationId",
6093
+ "required" : true,
6094
+ "schema" : {
6095
+ "type" : "string"
6096
+ }
6097
+ } ],
6098
+ "requestBody" : {
6099
+ "content" : {
6100
+ "application/json" : {
6101
+ "schema" : {
6102
+ "$ref" : "#/components/schemas/OrganizationUserInviteRequest"
6103
+ }
6104
+ }
6105
+ },
6106
+ "required" : true
6107
+ },
6108
+ "responses" : {
6109
+ "201" : {
6110
+ "content" : {
6111
+ "application/json" : {
6112
+ "schema" : {
6113
+ "$ref" : "#/components/schemas/OrganizationUserInviteResponse"
6114
+ }
6115
+ }
6116
+ },
6117
+ "description" : "User invited"
6118
+ },
6119
+ "400" : {
6120
+ "description" : "Invalid request body"
6121
+ },
6122
+ "401" : {
6123
+ "description" : "Unauthorized"
6124
+ },
6125
+ "409" : {
6126
+ "description" : "User already in organization"
6127
+ }
6128
+ },
6129
+ "summary" : "Invite a user to an organization",
6130
+ "tags" : [ "organizations" ]
6131
+ }
6132
+ },
6133
+ "/organizations/{organizationId}/users/{userId}" : {
6134
+ "delete" : {
6135
+ "operationId" : "deleteOrganizationUser",
6136
+ "parameters" : [ {
6137
+ "description" : "ID of the organization",
6138
+ "in" : "path",
6139
+ "name" : "organizationId",
6140
+ "required" : true,
6141
+ "schema" : {
6142
+ "type" : "string"
6143
+ }
6144
+ }, {
6145
+ "in" : "path",
6146
+ "name" : "userId",
6147
+ "required" : true,
6148
+ "schema" : {
6149
+ "type" : "string"
6150
+ }
6151
+ } ],
6152
+ "responses" : {
6153
+ "204" : {
6154
+ "description" : "User removed"
6155
+ },
6156
+ "401" : {
6157
+ "description" : "Unauthorized"
6158
+ },
6159
+ "403" : {
6160
+ "description" : "Cannot delete admin user"
6161
+ },
6162
+ "404" : {
6163
+ "description" : "Organization or user not found"
6164
+ }
6165
+ },
6166
+ "summary" : "Remove a user from an organization",
6167
+ "tags" : [ "organizations" ]
6168
+ }
6169
+ },
6170
+ "/organizations/{organizationId}/users/{userId}/access" : {
6171
+ "get" : {
6172
+ "operationId" : "getOrganizationUserAccess",
6173
+ "parameters" : [ {
6174
+ "description" : "ID of the organization",
6175
+ "in" : "path",
6176
+ "name" : "organizationId",
6177
+ "required" : true,
6178
+ "schema" : {
6179
+ "type" : "string"
6180
+ }
6181
+ }, {
6182
+ "in" : "path",
6183
+ "name" : "userId",
6184
+ "required" : true,
6185
+ "schema" : {
6186
+ "type" : "string"
6187
+ }
6188
+ } ],
6189
+ "responses" : {
6190
+ "200" : {
6191
+ "content" : {
6192
+ "application/json" : {
6193
+ "schema" : {
6194
+ "$ref" : "#/components/schemas/UserAccess"
6195
+ }
6196
+ }
6197
+ },
6198
+ "description" : "User access configuration"
6199
+ },
6200
+ "401" : {
6201
+ "description" : "Unauthorized"
6202
+ },
6203
+ "404" : {
6204
+ "description" : "Organization or user not found"
6205
+ }
6206
+ },
6207
+ "summary" : "Get user access roles and direct permissions",
6208
+ "tags" : [ "organizations" ]
6209
+ }
6210
+ },
6211
+ "/organizations/{organizationId}/users/{userId}/access-roles" : {
6212
+ "put" : {
6213
+ "operationId" : "setOrganizationUserAccessRoles",
6214
+ "parameters" : [ {
6215
+ "description" : "ID of the organization",
6216
+ "in" : "path",
6217
+ "name" : "organizationId",
6218
+ "required" : true,
6219
+ "schema" : {
6220
+ "type" : "string"
6221
+ }
6222
+ }, {
6223
+ "in" : "path",
6224
+ "name" : "userId",
6225
+ "required" : true,
6226
+ "schema" : {
6227
+ "type" : "string"
6228
+ }
6229
+ } ],
6230
+ "requestBody" : {
6231
+ "content" : {
6232
+ "application/json" : {
6233
+ "schema" : {
6234
+ "$ref" : "#/components/schemas/UserAccessRolesRequest"
6235
+ }
6236
+ }
6237
+ },
6238
+ "required" : true
6239
+ },
6240
+ "responses" : {
6241
+ "204" : {
6242
+ "description" : "User access roles updated"
6243
+ },
6244
+ "400" : {
6245
+ "description" : "Invalid request body"
6246
+ },
6247
+ "401" : {
6248
+ "description" : "Unauthorized"
6249
+ },
6250
+ "404" : {
6251
+ "description" : "Organization or user not found"
6252
+ }
6253
+ },
6254
+ "summary" : "Set user access roles",
6255
+ "tags" : [ "organizations" ]
6256
+ }
6257
+ },
6258
+ "/organizations/{organizationId}/users/{userId}/permissions" : {
6259
+ "put" : {
6260
+ "operationId" : "setOrganizationUserDirectPermissions",
6261
+ "parameters" : [ {
6262
+ "description" : "ID of the organization",
6263
+ "in" : "path",
6264
+ "name" : "organizationId",
6265
+ "required" : true,
6266
+ "schema" : {
6267
+ "type" : "string"
6268
+ }
6269
+ }, {
6270
+ "in" : "path",
6271
+ "name" : "userId",
6272
+ "required" : true,
6273
+ "schema" : {
6274
+ "type" : "string"
6275
+ }
6276
+ } ],
6277
+ "requestBody" : {
6278
+ "content" : {
6279
+ "application/json" : {
6280
+ "schema" : {
6281
+ "$ref" : "#/components/schemas/UserDirectPermissionsRequest"
6282
+ }
6283
+ }
6284
+ },
6285
+ "required" : true
6286
+ },
6287
+ "responses" : {
6288
+ "204" : {
6289
+ "description" : "User direct permissions updated"
6290
+ },
6291
+ "400" : {
6292
+ "description" : "Invalid request body"
6293
+ },
6294
+ "401" : {
6295
+ "description" : "Unauthorized"
6296
+ },
6297
+ "404" : {
6298
+ "description" : "Organization or user not found"
6299
+ }
6300
+ },
6301
+ "summary" : "Set user direct permissions",
6302
+ "tags" : [ "organizations" ]
6303
+ }
6304
+ },
6305
+ "/organizations/{organizationId}/users/{userId}/agents-access" : {
6306
+ "get" : {
6307
+ "operationId" : "getOrganizationUserAgentsAccess",
6308
+ "parameters" : [ {
6309
+ "description" : "ID of the organization",
6310
+ "in" : "path",
6311
+ "name" : "organizationId",
6312
+ "required" : true,
6313
+ "schema" : {
6314
+ "type" : "string"
6315
+ }
6316
+ }, {
6317
+ "in" : "path",
6318
+ "name" : "userId",
6319
+ "required" : true,
6320
+ "schema" : {
6321
+ "type" : "string"
6322
+ }
6323
+ } ],
6324
+ "responses" : {
6325
+ "200" : {
6326
+ "content" : {
6327
+ "application/json" : {
6328
+ "schema" : {
6329
+ "$ref" : "#/components/schemas/UserAgentAccess"
6330
+ }
6331
+ }
6332
+ },
6333
+ "description" : "User agent access configuration"
6334
+ },
6335
+ "401" : {
6336
+ "description" : "Unauthorized"
6337
+ },
6338
+ "404" : {
6339
+ "description" : "Organization or user not found"
6340
+ }
6341
+ },
6342
+ "summary" : "Get user agent access configuration",
6343
+ "tags" : [ "organizations" ]
6344
+ },
6345
+ "put" : {
6346
+ "operationId" : "setOrganizationUserAgentsAccess",
6347
+ "parameters" : [ {
6348
+ "description" : "ID of the organization",
6349
+ "in" : "path",
6350
+ "name" : "organizationId",
6351
+ "required" : true,
6352
+ "schema" : {
6353
+ "type" : "string"
6354
+ }
6355
+ }, {
6356
+ "in" : "path",
6357
+ "name" : "userId",
6358
+ "required" : true,
6359
+ "schema" : {
6360
+ "type" : "string"
6361
+ }
6362
+ } ],
6363
+ "requestBody" : {
6364
+ "content" : {
6365
+ "application/json" : {
6366
+ "schema" : {
6367
+ "$ref" : "#/components/schemas/UserAgentAccessRequest"
6368
+ }
6369
+ }
6370
+ },
6371
+ "required" : true
6372
+ },
6373
+ "responses" : {
6374
+ "204" : {
6375
+ "description" : "User agent access updated"
6376
+ },
6377
+ "400" : {
6378
+ "description" : "Invalid request body"
6379
+ },
6380
+ "401" : {
6381
+ "description" : "Unauthorized"
6382
+ },
6383
+ "404" : {
6384
+ "description" : "Organization or user not found"
6385
+ }
6386
+ },
6387
+ "summary" : "Set user agent access configuration",
6388
+ "tags" : [ "organizations" ]
6389
+ }
6390
+ },
5809
6391
  "/organizations/{organizationId}/engine" : {
5810
6392
  "get" : {
5811
6393
  "description" : "Retrieves only the engine configuration (providerId, model, options) for a given organization.",
@@ -12556,6 +13138,9 @@
12556
13138
  },
12557
13139
  "ProviderValiationRequest" : {
12558
13140
  "properties" : {
13141
+ "organizationId" : {
13142
+ "type" : "string"
13143
+ },
12559
13144
  "providerType" : {
12560
13145
  "type" : "string"
12561
13146
  },
@@ -12563,7 +13148,7 @@
12563
13148
  "type" : "string"
12564
13149
  }
12565
13150
  },
12566
- "required" : [ "apiKey", "providerType" ],
13151
+ "required" : [ "apiKey", "organizationId", "providerType" ],
12567
13152
  "type" : "object"
12568
13153
  },
12569
13154
  "Model" : {
@@ -12899,6 +13484,234 @@
12899
13484
  "required" : [ "color", "name" ],
12900
13485
  "type" : "object"
12901
13486
  },
13487
+ "AccessRole" : {
13488
+ "properties" : {
13489
+ "id" : {
13490
+ "type" : "string"
13491
+ },
13492
+ "organizationId" : {
13493
+ "type" : "string"
13494
+ },
13495
+ "name" : {
13496
+ "type" : "string"
13497
+ },
13498
+ "description" : {
13499
+ "type" : "string"
13500
+ },
13501
+ "slug" : {
13502
+ "nullable" : true,
13503
+ "type" : "string"
13504
+ },
13505
+ "isSystem" : {
13506
+ "type" : "boolean"
13507
+ },
13508
+ "createdAt" : {
13509
+ "type" : "string"
13510
+ },
13511
+ "permissions" : {
13512
+ "items" : {
13513
+ "$ref" : "#/components/schemas/PermissionEntry"
13514
+ },
13515
+ "type" : "array"
13516
+ }
13517
+ },
13518
+ "required" : [ "createdAt", "description", "id", "name", "organizationId", "permissions" ],
13519
+ "type" : "object"
13520
+ },
13521
+ "PermissionEntry" : {
13522
+ "properties" : {
13523
+ "permission" : {
13524
+ "$ref" : "#/components/schemas/OrganizationPermissionKey"
13525
+ },
13526
+ "allowed" : {
13527
+ "type" : "boolean"
13528
+ }
13529
+ },
13530
+ "required" : [ "allowed", "permission" ],
13531
+ "type" : "object"
13532
+ },
13533
+ "OrganizationPermissionKey" : {
13534
+ "enum" : [ "org.read", "agent.read", "agent.update", "agent.delete", "agent.chat", "app.read", "knowledge.read", "knowledge.create", "knowledge.update", "knowledge.delete", "knowledge.file.add", "knowledge.file.delete", "knowledge.file.download", "skill.read", "skill.create", "skill.update", "skill.delete", "skill.file.add", "skill.file.delete", "moderation.read", "moderation.create", "moderation.update", "moderation.delete", "user.read", "user.create", "user.update", "user.delete", "engine.read", "engine.create", "engine.update", "engine.delete", "tool.read", "tool.create", "tool.update", "tool.delete", "flow.read" ],
13535
+ "type" : "string"
13536
+ },
13537
+ "AccessRoleCreateRequest" : {
13538
+ "properties" : {
13539
+ "name" : {
13540
+ "type" : "string"
13541
+ },
13542
+ "description" : {
13543
+ "type" : "string"
13544
+ },
13545
+ "permissions" : {
13546
+ "items" : {
13547
+ "$ref" : "#/components/schemas/PermissionEntry"
13548
+ },
13549
+ "type" : "array"
13550
+ }
13551
+ },
13552
+ "required" : [ "name" ],
13553
+ "type" : "object"
13554
+ },
13555
+ "AccessRoleUpdateRequest" : {
13556
+ "properties" : {
13557
+ "name" : {
13558
+ "type" : "string"
13559
+ },
13560
+ "description" : {
13561
+ "type" : "string"
13562
+ }
13563
+ },
13564
+ "required" : [ "name" ],
13565
+ "type" : "object"
13566
+ },
13567
+ "AccessRolePermissionsRequest" : {
13568
+ "properties" : {
13569
+ "permissions" : {
13570
+ "items" : {
13571
+ "$ref" : "#/components/schemas/PermissionEntry"
13572
+ },
13573
+ "type" : "array"
13574
+ }
13575
+ },
13576
+ "required" : [ "permissions" ],
13577
+ "type" : "object"
13578
+ },
13579
+ "MemberPermissions" : {
13580
+ "additionalProperties" : {
13581
+ "type" : "boolean"
13582
+ },
13583
+ "type" : "object"
13584
+ },
13585
+ "OrganizationMember" : {
13586
+ "properties" : {
13587
+ "id" : {
13588
+ "type" : "string"
13589
+ },
13590
+ "role" : {
13591
+ "type" : "string"
13592
+ },
13593
+ "createdAt" : {
13594
+ "type" : "string"
13595
+ },
13596
+ "user" : {
13597
+ "$ref" : "#/components/schemas/OrganizationMember_user"
13598
+ }
13599
+ },
13600
+ "required" : [ "createdAt", "id", "role", "user" ],
13601
+ "type" : "object"
13602
+ },
13603
+ "OrganizationUserInviteRequest" : {
13604
+ "properties" : {
13605
+ "email" : {
13606
+ "type" : "string"
13607
+ },
13608
+ "role" : {
13609
+ "type" : "string"
13610
+ }
13611
+ },
13612
+ "required" : [ "email" ],
13613
+ "type" : "object"
13614
+ },
13615
+ "OrganizationUserInviteResponse" : {
13616
+ "properties" : {
13617
+ "userId" : {
13618
+ "type" : "string"
13619
+ }
13620
+ },
13621
+ "required" : [ "userId" ],
13622
+ "type" : "object"
13623
+ },
13624
+ "UserAccess" : {
13625
+ "properties" : {
13626
+ "roleIds" : {
13627
+ "items" : {
13628
+ "type" : "string"
13629
+ },
13630
+ "type" : "array"
13631
+ },
13632
+ "directPermissions" : {
13633
+ "items" : {
13634
+ "$ref" : "#/components/schemas/PermissionEntry"
13635
+ },
13636
+ "type" : "array"
13637
+ }
13638
+ },
13639
+ "required" : [ "directPermissions", "roleIds" ],
13640
+ "type" : "object"
13641
+ },
13642
+ "UserAccessRolesRequest" : {
13643
+ "properties" : {
13644
+ "roleIds" : {
13645
+ "items" : {
13646
+ "type" : "string"
13647
+ },
13648
+ "type" : "array"
13649
+ }
13650
+ },
13651
+ "required" : [ "roleIds" ],
13652
+ "type" : "object"
13653
+ },
13654
+ "UserDirectPermissionsRequest" : {
13655
+ "properties" : {
13656
+ "permissions" : {
13657
+ "items" : {
13658
+ "$ref" : "#/components/schemas/PermissionEntry"
13659
+ },
13660
+ "type" : "array"
13661
+ }
13662
+ },
13663
+ "required" : [ "permissions" ],
13664
+ "type" : "object"
13665
+ },
13666
+ "UserAgentAccess" : {
13667
+ "properties" : {
13668
+ "scoped" : {
13669
+ "description" : "When true, only listed agents are accessible (org-wide agent.read is ignored for listing).",
13670
+ "type" : "boolean"
13671
+ },
13672
+ "agentIds" : {
13673
+ "items" : {
13674
+ "type" : "string"
13675
+ },
13676
+ "type" : "array"
13677
+ },
13678
+ "availableAgents" : {
13679
+ "items" : {
13680
+ "$ref" : "#/components/schemas/UserAgentAccessAgent"
13681
+ },
13682
+ "type" : "array"
13683
+ }
13684
+ },
13685
+ "required" : [ "agentIds", "availableAgents", "scoped" ],
13686
+ "type" : "object"
13687
+ },
13688
+ "UserAgentAccessAgent" : {
13689
+ "properties" : {
13690
+ "id" : {
13691
+ "type" : "string"
13692
+ },
13693
+ "name" : {
13694
+ "type" : "string"
13695
+ }
13696
+ },
13697
+ "required" : [ "id", "name" ],
13698
+ "type" : "object"
13699
+ },
13700
+ "UserAgentAccessRequest" : {
13701
+ "properties" : {
13702
+ "scoped" : {
13703
+ "type" : "boolean"
13704
+ },
13705
+ "agentIds" : {
13706
+ "items" : {
13707
+ "type" : "string"
13708
+ },
13709
+ "type" : "array"
13710
+ }
13711
+ },
13712
+ "required" : [ "agentIds", "scoped" ],
13713
+ "type" : "object"
13714
+ },
12902
13715
  "OrganizationEngine" : {
12903
13716
  "additionalProperties" : false,
12904
13717
  "description" : "Engine configuration attached to an organization.",
@@ -13776,7 +14589,7 @@
13776
14589
  "type" : "boolean"
13777
14590
  },
13778
14591
  "user" : {
13779
- "$ref" : "#/components/schemas/User_user"
14592
+ "$ref" : "#/components/schemas/OrganizationMember_user"
13780
14593
  },
13781
14594
  "createdAt" : {
13782
14595
  "type" : "string"
@@ -14841,6 +15654,15 @@
14841
15654
  "required" : [ "id" ],
14842
15655
  "type" : "object"
14843
15656
  },
15657
+ "OrganizationMember_user" : {
15658
+ "properties" : {
15659
+ "email" : {
15660
+ "type" : "string"
15661
+ }
15662
+ },
15663
+ "required" : [ "email" ],
15664
+ "type" : "object"
15665
+ },
14844
15666
  "KnowledgeFileSummary_knowledgeBaseId" : {
14845
15667
  "oneOf" : [ {
14846
15668
  "type" : "string"
@@ -15015,15 +15837,6 @@
15015
15837
  }
15016
15838
  },
15017
15839
  "type" : "object"
15018
- },
15019
- "User_user" : {
15020
- "properties" : {
15021
- "email" : {
15022
- "type" : "string"
15023
- }
15024
- },
15025
- "required" : [ "email" ],
15026
- "type" : "object"
15027
15840
  }
15028
15841
  },
15029
15842
  "securitySchemes" : {