@breign/client 1.0.153 → 1.0.155
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/apis/OrganizationsApi.d.ts +140 -1
- package/dist/apis/OrganizationsApi.js +345 -0
- package/dist/models/AccessRoleCreateRequestUio.d.ts +45 -0
- package/dist/models/AccessRoleCreateRequestUio.js +55 -0
- package/dist/models/AccessRolePermissionsRequestUio.d.ts +33 -0
- package/dist/models/AccessRolePermissionsRequestUio.js +51 -0
- package/dist/models/AccessRoleUio.d.ts +75 -0
- package/dist/models/AccessRoleUio.js +75 -0
- package/dist/models/AccessRoleUpdateRequestUio.d.ts +38 -0
- package/dist/models/AccessRoleUpdateRequestUio.js +52 -0
- package/dist/models/AgentUio.d.ts +6 -0
- package/dist/models/AgentUio.js +2 -0
- package/dist/models/OrganizationPermissionKeyUio.d.ts +63 -0
- package/dist/models/OrganizationPermissionKeyUio.js +89 -0
- package/dist/models/PermissionEntryUio.d.ts +39 -0
- package/dist/models/PermissionEntryUio.js +55 -0
- package/dist/models/UserAccessRolesRequestUio.d.ts +32 -0
- package/dist/models/UserAccessRolesRequestUio.js +50 -0
- package/dist/models/UserAccessUio.d.ts +39 -0
- package/dist/models/UserAccessUio.js +55 -0
- package/dist/models/UserAgentAccessAgentUio.d.ts +38 -0
- package/dist/models/UserAgentAccessAgentUio.js +54 -0
- package/dist/models/UserAgentAccessRequestUio.d.ts +38 -0
- package/dist/models/UserAgentAccessRequestUio.js +54 -0
- package/dist/models/UserAgentAccessUio.d.ts +45 -0
- package/dist/models/UserAgentAccessUio.js +59 -0
- package/dist/models/UserDirectPermissionsRequestUio.d.ts +33 -0
- package/dist/models/UserDirectPermissionsRequestUio.js +51 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/dist/openapi.json +655 -0
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -8165,6 +8165,469 @@
|
|
|
8165
8165
|
"tags" : [ "organizations" ]
|
|
8166
8166
|
}
|
|
8167
8167
|
},
|
|
8168
|
+
"/organizations/{organizationId}/access-roles" : {
|
|
8169
|
+
"get" : {
|
|
8170
|
+
"operationId" : "listOrganizationAccessRoles",
|
|
8171
|
+
"parameters" : [ {
|
|
8172
|
+
"description" : "ID of the organization",
|
|
8173
|
+
"in" : "path",
|
|
8174
|
+
"name" : "organizationId",
|
|
8175
|
+
"required" : true,
|
|
8176
|
+
"schema" : {
|
|
8177
|
+
"type" : "string"
|
|
8178
|
+
}
|
|
8179
|
+
} ],
|
|
8180
|
+
"responses" : {
|
|
8181
|
+
"200" : {
|
|
8182
|
+
"content" : {
|
|
8183
|
+
"application/json" : {
|
|
8184
|
+
"schema" : {
|
|
8185
|
+
"items" : {
|
|
8186
|
+
"$ref" : "#/components/schemas/AccessRole"
|
|
8187
|
+
},
|
|
8188
|
+
"type" : "array"
|
|
8189
|
+
}
|
|
8190
|
+
}
|
|
8191
|
+
},
|
|
8192
|
+
"description" : "Access roles found"
|
|
8193
|
+
},
|
|
8194
|
+
"401" : {
|
|
8195
|
+
"description" : "Unauthorized"
|
|
8196
|
+
},
|
|
8197
|
+
"404" : {
|
|
8198
|
+
"description" : "Organization not found"
|
|
8199
|
+
}
|
|
8200
|
+
},
|
|
8201
|
+
"summary" : "List access roles of an organization",
|
|
8202
|
+
"tags" : [ "organizations" ]
|
|
8203
|
+
},
|
|
8204
|
+
"post" : {
|
|
8205
|
+
"operationId" : "createOrganizationAccessRole",
|
|
8206
|
+
"parameters" : [ {
|
|
8207
|
+
"description" : "ID of the organization",
|
|
8208
|
+
"in" : "path",
|
|
8209
|
+
"name" : "organizationId",
|
|
8210
|
+
"required" : true,
|
|
8211
|
+
"schema" : {
|
|
8212
|
+
"type" : "string"
|
|
8213
|
+
}
|
|
8214
|
+
} ],
|
|
8215
|
+
"requestBody" : {
|
|
8216
|
+
"content" : {
|
|
8217
|
+
"application/json" : {
|
|
8218
|
+
"schema" : {
|
|
8219
|
+
"$ref" : "#/components/schemas/AccessRoleCreateRequest"
|
|
8220
|
+
}
|
|
8221
|
+
}
|
|
8222
|
+
},
|
|
8223
|
+
"required" : true
|
|
8224
|
+
},
|
|
8225
|
+
"responses" : {
|
|
8226
|
+
"201" : {
|
|
8227
|
+
"content" : {
|
|
8228
|
+
"application/json" : {
|
|
8229
|
+
"schema" : {
|
|
8230
|
+
"$ref" : "#/components/schemas/AccessRole"
|
|
8231
|
+
}
|
|
8232
|
+
}
|
|
8233
|
+
},
|
|
8234
|
+
"description" : "Access role created"
|
|
8235
|
+
},
|
|
8236
|
+
"400" : {
|
|
8237
|
+
"description" : "Invalid request body"
|
|
8238
|
+
},
|
|
8239
|
+
"401" : {
|
|
8240
|
+
"description" : "Unauthorized"
|
|
8241
|
+
},
|
|
8242
|
+
"404" : {
|
|
8243
|
+
"description" : "Organization not found"
|
|
8244
|
+
}
|
|
8245
|
+
},
|
|
8246
|
+
"summary" : "Create an access role in an organization",
|
|
8247
|
+
"tags" : [ "organizations" ]
|
|
8248
|
+
}
|
|
8249
|
+
},
|
|
8250
|
+
"/organizations/{organizationId}/access-roles/{roleId}" : {
|
|
8251
|
+
"delete" : {
|
|
8252
|
+
"operationId" : "deleteOrganizationAccessRole",
|
|
8253
|
+
"parameters" : [ {
|
|
8254
|
+
"description" : "ID of the organization",
|
|
8255
|
+
"in" : "path",
|
|
8256
|
+
"name" : "organizationId",
|
|
8257
|
+
"required" : true,
|
|
8258
|
+
"schema" : {
|
|
8259
|
+
"type" : "string"
|
|
8260
|
+
}
|
|
8261
|
+
}, {
|
|
8262
|
+
"in" : "path",
|
|
8263
|
+
"name" : "roleId",
|
|
8264
|
+
"required" : true,
|
|
8265
|
+
"schema" : {
|
|
8266
|
+
"type" : "string"
|
|
8267
|
+
}
|
|
8268
|
+
} ],
|
|
8269
|
+
"responses" : {
|
|
8270
|
+
"204" : {
|
|
8271
|
+
"description" : "Access role deleted"
|
|
8272
|
+
},
|
|
8273
|
+
"401" : {
|
|
8274
|
+
"description" : "Unauthorized"
|
|
8275
|
+
},
|
|
8276
|
+
"404" : {
|
|
8277
|
+
"description" : "Organization not found"
|
|
8278
|
+
}
|
|
8279
|
+
},
|
|
8280
|
+
"summary" : "Delete an access role from an organization",
|
|
8281
|
+
"tags" : [ "organizations" ]
|
|
8282
|
+
},
|
|
8283
|
+
"put" : {
|
|
8284
|
+
"operationId" : "updateOrganizationAccessRole",
|
|
8285
|
+
"parameters" : [ {
|
|
8286
|
+
"description" : "ID of the organization",
|
|
8287
|
+
"in" : "path",
|
|
8288
|
+
"name" : "organizationId",
|
|
8289
|
+
"required" : true,
|
|
8290
|
+
"schema" : {
|
|
8291
|
+
"type" : "string"
|
|
8292
|
+
}
|
|
8293
|
+
}, {
|
|
8294
|
+
"in" : "path",
|
|
8295
|
+
"name" : "roleId",
|
|
8296
|
+
"required" : true,
|
|
8297
|
+
"schema" : {
|
|
8298
|
+
"type" : "string"
|
|
8299
|
+
}
|
|
8300
|
+
} ],
|
|
8301
|
+
"requestBody" : {
|
|
8302
|
+
"content" : {
|
|
8303
|
+
"application/json" : {
|
|
8304
|
+
"schema" : {
|
|
8305
|
+
"$ref" : "#/components/schemas/AccessRoleUpdateRequest"
|
|
8306
|
+
}
|
|
8307
|
+
}
|
|
8308
|
+
},
|
|
8309
|
+
"required" : true
|
|
8310
|
+
},
|
|
8311
|
+
"responses" : {
|
|
8312
|
+
"204" : {
|
|
8313
|
+
"description" : "Access role updated"
|
|
8314
|
+
},
|
|
8315
|
+
"400" : {
|
|
8316
|
+
"description" : "Invalid request body"
|
|
8317
|
+
},
|
|
8318
|
+
"401" : {
|
|
8319
|
+
"description" : "Unauthorized"
|
|
8320
|
+
},
|
|
8321
|
+
"404" : {
|
|
8322
|
+
"description" : "Organization not found"
|
|
8323
|
+
}
|
|
8324
|
+
},
|
|
8325
|
+
"summary" : "Update an access role in an organization",
|
|
8326
|
+
"tags" : [ "organizations" ]
|
|
8327
|
+
}
|
|
8328
|
+
},
|
|
8329
|
+
"/organizations/{organizationId}/access-roles/{roleId}/permissions" : {
|
|
8330
|
+
"put" : {
|
|
8331
|
+
"operationId" : "setOrganizationAccessRolePermissions",
|
|
8332
|
+
"parameters" : [ {
|
|
8333
|
+
"description" : "ID of the organization",
|
|
8334
|
+
"in" : "path",
|
|
8335
|
+
"name" : "organizationId",
|
|
8336
|
+
"required" : true,
|
|
8337
|
+
"schema" : {
|
|
8338
|
+
"type" : "string"
|
|
8339
|
+
}
|
|
8340
|
+
}, {
|
|
8341
|
+
"in" : "path",
|
|
8342
|
+
"name" : "roleId",
|
|
8343
|
+
"required" : true,
|
|
8344
|
+
"schema" : {
|
|
8345
|
+
"type" : "string"
|
|
8346
|
+
}
|
|
8347
|
+
} ],
|
|
8348
|
+
"requestBody" : {
|
|
8349
|
+
"content" : {
|
|
8350
|
+
"application/json" : {
|
|
8351
|
+
"schema" : {
|
|
8352
|
+
"$ref" : "#/components/schemas/AccessRolePermissionsRequest"
|
|
8353
|
+
}
|
|
8354
|
+
}
|
|
8355
|
+
},
|
|
8356
|
+
"required" : true
|
|
8357
|
+
},
|
|
8358
|
+
"responses" : {
|
|
8359
|
+
"204" : {
|
|
8360
|
+
"description" : "Permissions updated"
|
|
8361
|
+
},
|
|
8362
|
+
"400" : {
|
|
8363
|
+
"description" : "Invalid request body"
|
|
8364
|
+
},
|
|
8365
|
+
"401" : {
|
|
8366
|
+
"description" : "Unauthorized"
|
|
8367
|
+
},
|
|
8368
|
+
"404" : {
|
|
8369
|
+
"description" : "Organization not found"
|
|
8370
|
+
}
|
|
8371
|
+
},
|
|
8372
|
+
"summary" : "Set permissions for an access role",
|
|
8373
|
+
"tags" : [ "organizations" ]
|
|
8374
|
+
}
|
|
8375
|
+
},
|
|
8376
|
+
"/organizations/{organizationId}/members/me/permissions" : {
|
|
8377
|
+
"get" : {
|
|
8378
|
+
"operationId" : "getOrganizationMemberPermissions",
|
|
8379
|
+
"parameters" : [ {
|
|
8380
|
+
"description" : "ID of the organization",
|
|
8381
|
+
"in" : "path",
|
|
8382
|
+
"name" : "organizationId",
|
|
8383
|
+
"required" : true,
|
|
8384
|
+
"schema" : {
|
|
8385
|
+
"type" : "string"
|
|
8386
|
+
}
|
|
8387
|
+
} ],
|
|
8388
|
+
"responses" : {
|
|
8389
|
+
"200" : {
|
|
8390
|
+
"content" : {
|
|
8391
|
+
"application/json" : {
|
|
8392
|
+
"schema" : {
|
|
8393
|
+
"$ref" : "#/components/schemas/MemberPermissions"
|
|
8394
|
+
}
|
|
8395
|
+
}
|
|
8396
|
+
},
|
|
8397
|
+
"description" : "Resolved permissions for the current member"
|
|
8398
|
+
},
|
|
8399
|
+
"401" : {
|
|
8400
|
+
"description" : "Unauthorized"
|
|
8401
|
+
},
|
|
8402
|
+
"404" : {
|
|
8403
|
+
"description" : "Organization not found"
|
|
8404
|
+
}
|
|
8405
|
+
},
|
|
8406
|
+
"summary" : "Get current member resolved permissions",
|
|
8407
|
+
"tags" : [ "organizations" ]
|
|
8408
|
+
}
|
|
8409
|
+
},
|
|
8410
|
+
"/organizations/{organizationId}/users/{userId}/access" : {
|
|
8411
|
+
"get" : {
|
|
8412
|
+
"operationId" : "getOrganizationUserAccess",
|
|
8413
|
+
"parameters" : [ {
|
|
8414
|
+
"description" : "ID of the organization",
|
|
8415
|
+
"in" : "path",
|
|
8416
|
+
"name" : "organizationId",
|
|
8417
|
+
"required" : true,
|
|
8418
|
+
"schema" : {
|
|
8419
|
+
"type" : "string"
|
|
8420
|
+
}
|
|
8421
|
+
}, {
|
|
8422
|
+
"in" : "path",
|
|
8423
|
+
"name" : "userId",
|
|
8424
|
+
"required" : true,
|
|
8425
|
+
"schema" : {
|
|
8426
|
+
"type" : "string"
|
|
8427
|
+
}
|
|
8428
|
+
} ],
|
|
8429
|
+
"responses" : {
|
|
8430
|
+
"200" : {
|
|
8431
|
+
"content" : {
|
|
8432
|
+
"application/json" : {
|
|
8433
|
+
"schema" : {
|
|
8434
|
+
"$ref" : "#/components/schemas/UserAccess"
|
|
8435
|
+
}
|
|
8436
|
+
}
|
|
8437
|
+
},
|
|
8438
|
+
"description" : "User access configuration"
|
|
8439
|
+
},
|
|
8440
|
+
"401" : {
|
|
8441
|
+
"description" : "Unauthorized"
|
|
8442
|
+
},
|
|
8443
|
+
"404" : {
|
|
8444
|
+
"description" : "Organization or user not found"
|
|
8445
|
+
}
|
|
8446
|
+
},
|
|
8447
|
+
"summary" : "Get user access roles and direct permissions",
|
|
8448
|
+
"tags" : [ "organizations" ]
|
|
8449
|
+
}
|
|
8450
|
+
},
|
|
8451
|
+
"/organizations/{organizationId}/users/{userId}/access-roles" : {
|
|
8452
|
+
"put" : {
|
|
8453
|
+
"operationId" : "setOrganizationUserAccessRoles",
|
|
8454
|
+
"parameters" : [ {
|
|
8455
|
+
"description" : "ID of the organization",
|
|
8456
|
+
"in" : "path",
|
|
8457
|
+
"name" : "organizationId",
|
|
8458
|
+
"required" : true,
|
|
8459
|
+
"schema" : {
|
|
8460
|
+
"type" : "string"
|
|
8461
|
+
}
|
|
8462
|
+
}, {
|
|
8463
|
+
"in" : "path",
|
|
8464
|
+
"name" : "userId",
|
|
8465
|
+
"required" : true,
|
|
8466
|
+
"schema" : {
|
|
8467
|
+
"type" : "string"
|
|
8468
|
+
}
|
|
8469
|
+
} ],
|
|
8470
|
+
"requestBody" : {
|
|
8471
|
+
"content" : {
|
|
8472
|
+
"application/json" : {
|
|
8473
|
+
"schema" : {
|
|
8474
|
+
"$ref" : "#/components/schemas/UserAccessRolesRequest"
|
|
8475
|
+
}
|
|
8476
|
+
}
|
|
8477
|
+
},
|
|
8478
|
+
"required" : true
|
|
8479
|
+
},
|
|
8480
|
+
"responses" : {
|
|
8481
|
+
"204" : {
|
|
8482
|
+
"description" : "User access roles updated"
|
|
8483
|
+
},
|
|
8484
|
+
"400" : {
|
|
8485
|
+
"description" : "Invalid request body"
|
|
8486
|
+
},
|
|
8487
|
+
"401" : {
|
|
8488
|
+
"description" : "Unauthorized"
|
|
8489
|
+
},
|
|
8490
|
+
"404" : {
|
|
8491
|
+
"description" : "Organization or user not found"
|
|
8492
|
+
}
|
|
8493
|
+
},
|
|
8494
|
+
"summary" : "Set user access roles",
|
|
8495
|
+
"tags" : [ "organizations" ]
|
|
8496
|
+
}
|
|
8497
|
+
},
|
|
8498
|
+
"/organizations/{organizationId}/users/{userId}/permissions" : {
|
|
8499
|
+
"put" : {
|
|
8500
|
+
"operationId" : "setOrganizationUserDirectPermissions",
|
|
8501
|
+
"parameters" : [ {
|
|
8502
|
+
"description" : "ID of the organization",
|
|
8503
|
+
"in" : "path",
|
|
8504
|
+
"name" : "organizationId",
|
|
8505
|
+
"required" : true,
|
|
8506
|
+
"schema" : {
|
|
8507
|
+
"type" : "string"
|
|
8508
|
+
}
|
|
8509
|
+
}, {
|
|
8510
|
+
"in" : "path",
|
|
8511
|
+
"name" : "userId",
|
|
8512
|
+
"required" : true,
|
|
8513
|
+
"schema" : {
|
|
8514
|
+
"type" : "string"
|
|
8515
|
+
}
|
|
8516
|
+
} ],
|
|
8517
|
+
"requestBody" : {
|
|
8518
|
+
"content" : {
|
|
8519
|
+
"application/json" : {
|
|
8520
|
+
"schema" : {
|
|
8521
|
+
"$ref" : "#/components/schemas/UserDirectPermissionsRequest"
|
|
8522
|
+
}
|
|
8523
|
+
}
|
|
8524
|
+
},
|
|
8525
|
+
"required" : true
|
|
8526
|
+
},
|
|
8527
|
+
"responses" : {
|
|
8528
|
+
"204" : {
|
|
8529
|
+
"description" : "User direct permissions updated"
|
|
8530
|
+
},
|
|
8531
|
+
"400" : {
|
|
8532
|
+
"description" : "Invalid request body"
|
|
8533
|
+
},
|
|
8534
|
+
"401" : {
|
|
8535
|
+
"description" : "Unauthorized"
|
|
8536
|
+
},
|
|
8537
|
+
"404" : {
|
|
8538
|
+
"description" : "Organization or user not found"
|
|
8539
|
+
}
|
|
8540
|
+
},
|
|
8541
|
+
"summary" : "Set user direct permissions",
|
|
8542
|
+
"tags" : [ "organizations" ]
|
|
8543
|
+
}
|
|
8544
|
+
},
|
|
8545
|
+
"/organizations/{organizationId}/users/{userId}/agents-access" : {
|
|
8546
|
+
"get" : {
|
|
8547
|
+
"operationId" : "getOrganizationUserAgentsAccess",
|
|
8548
|
+
"parameters" : [ {
|
|
8549
|
+
"description" : "ID of the organization",
|
|
8550
|
+
"in" : "path",
|
|
8551
|
+
"name" : "organizationId",
|
|
8552
|
+
"required" : true,
|
|
8553
|
+
"schema" : {
|
|
8554
|
+
"type" : "string"
|
|
8555
|
+
}
|
|
8556
|
+
}, {
|
|
8557
|
+
"in" : "path",
|
|
8558
|
+
"name" : "userId",
|
|
8559
|
+
"required" : true,
|
|
8560
|
+
"schema" : {
|
|
8561
|
+
"type" : "string"
|
|
8562
|
+
}
|
|
8563
|
+
} ],
|
|
8564
|
+
"responses" : {
|
|
8565
|
+
"200" : {
|
|
8566
|
+
"content" : {
|
|
8567
|
+
"application/json" : {
|
|
8568
|
+
"schema" : {
|
|
8569
|
+
"$ref" : "#/components/schemas/UserAgentAccess"
|
|
8570
|
+
}
|
|
8571
|
+
}
|
|
8572
|
+
},
|
|
8573
|
+
"description" : "User agent access configuration"
|
|
8574
|
+
},
|
|
8575
|
+
"401" : {
|
|
8576
|
+
"description" : "Unauthorized"
|
|
8577
|
+
},
|
|
8578
|
+
"404" : {
|
|
8579
|
+
"description" : "Organization or user not found"
|
|
8580
|
+
}
|
|
8581
|
+
},
|
|
8582
|
+
"summary" : "Get user agent access configuration",
|
|
8583
|
+
"tags" : [ "organizations" ]
|
|
8584
|
+
},
|
|
8585
|
+
"put" : {
|
|
8586
|
+
"operationId" : "setOrganizationUserAgentsAccess",
|
|
8587
|
+
"parameters" : [ {
|
|
8588
|
+
"description" : "ID of the organization",
|
|
8589
|
+
"in" : "path",
|
|
8590
|
+
"name" : "organizationId",
|
|
8591
|
+
"required" : true,
|
|
8592
|
+
"schema" : {
|
|
8593
|
+
"type" : "string"
|
|
8594
|
+
}
|
|
8595
|
+
}, {
|
|
8596
|
+
"in" : "path",
|
|
8597
|
+
"name" : "userId",
|
|
8598
|
+
"required" : true,
|
|
8599
|
+
"schema" : {
|
|
8600
|
+
"type" : "string"
|
|
8601
|
+
}
|
|
8602
|
+
} ],
|
|
8603
|
+
"requestBody" : {
|
|
8604
|
+
"content" : {
|
|
8605
|
+
"application/json" : {
|
|
8606
|
+
"schema" : {
|
|
8607
|
+
"$ref" : "#/components/schemas/UserAgentAccessRequest"
|
|
8608
|
+
}
|
|
8609
|
+
}
|
|
8610
|
+
},
|
|
8611
|
+
"required" : true
|
|
8612
|
+
},
|
|
8613
|
+
"responses" : {
|
|
8614
|
+
"204" : {
|
|
8615
|
+
"description" : "User agent access updated"
|
|
8616
|
+
},
|
|
8617
|
+
"400" : {
|
|
8618
|
+
"description" : "Invalid request body"
|
|
8619
|
+
},
|
|
8620
|
+
"401" : {
|
|
8621
|
+
"description" : "Unauthorized"
|
|
8622
|
+
},
|
|
8623
|
+
"404" : {
|
|
8624
|
+
"description" : "Organization or user not found"
|
|
8625
|
+
}
|
|
8626
|
+
},
|
|
8627
|
+
"summary" : "Set user agent access configuration",
|
|
8628
|
+
"tags" : [ "organizations" ]
|
|
8629
|
+
}
|
|
8630
|
+
},
|
|
8168
8631
|
"/organizations/{organizationId}/engine" : {
|
|
8169
8632
|
"get" : {
|
|
8170
8633
|
"description" : "Retrieves only the engine configuration (providerId, model, options) for a given organization.",
|
|
@@ -15979,6 +16442,9 @@
|
|
|
15979
16442
|
"creator" : {
|
|
15980
16443
|
"$ref" : "#/components/schemas/Agent_creator"
|
|
15981
16444
|
},
|
|
16445
|
+
"updater" : {
|
|
16446
|
+
"$ref" : "#/components/schemas/Agent_creator"
|
|
16447
|
+
},
|
|
15982
16448
|
"engineSource" : {
|
|
15983
16449
|
"enum" : [ "agent", "organization" ],
|
|
15984
16450
|
"type" : "string"
|
|
@@ -20298,6 +20764,195 @@
|
|
|
20298
20764
|
"required" : [ "userId" ],
|
|
20299
20765
|
"type" : "object"
|
|
20300
20766
|
},
|
|
20767
|
+
"AccessRole" : {
|
|
20768
|
+
"properties" : {
|
|
20769
|
+
"id" : {
|
|
20770
|
+
"type" : "string"
|
|
20771
|
+
},
|
|
20772
|
+
"organizationId" : {
|
|
20773
|
+
"type" : "string"
|
|
20774
|
+
},
|
|
20775
|
+
"name" : {
|
|
20776
|
+
"type" : "string"
|
|
20777
|
+
},
|
|
20778
|
+
"description" : {
|
|
20779
|
+
"type" : "string"
|
|
20780
|
+
},
|
|
20781
|
+
"slug" : {
|
|
20782
|
+
"nullable" : true,
|
|
20783
|
+
"type" : "string"
|
|
20784
|
+
},
|
|
20785
|
+
"isSystem" : {
|
|
20786
|
+
"type" : "boolean"
|
|
20787
|
+
},
|
|
20788
|
+
"createdAt" : {
|
|
20789
|
+
"type" : "string"
|
|
20790
|
+
},
|
|
20791
|
+
"permissions" : {
|
|
20792
|
+
"items" : {
|
|
20793
|
+
"$ref" : "#/components/schemas/PermissionEntry"
|
|
20794
|
+
},
|
|
20795
|
+
"type" : "array"
|
|
20796
|
+
}
|
|
20797
|
+
},
|
|
20798
|
+
"required" : [ "createdAt", "description", "id", "name", "organizationId", "permissions" ],
|
|
20799
|
+
"type" : "object"
|
|
20800
|
+
},
|
|
20801
|
+
"PermissionEntry" : {
|
|
20802
|
+
"properties" : {
|
|
20803
|
+
"permission" : {
|
|
20804
|
+
"$ref" : "#/components/schemas/OrganizationPermissionKey"
|
|
20805
|
+
},
|
|
20806
|
+
"allowed" : {
|
|
20807
|
+
"type" : "boolean"
|
|
20808
|
+
}
|
|
20809
|
+
},
|
|
20810
|
+
"required" : [ "allowed", "permission" ],
|
|
20811
|
+
"type" : "object"
|
|
20812
|
+
},
|
|
20813
|
+
"OrganizationPermissionKey" : {
|
|
20814
|
+
"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", "access.manage", "engine.read", "engine.create", "engine.update", "engine.delete", "tool.read", "tool.create", "tool.update", "tool.delete", "flow.read", "aiGateway.use", "aiGateway.metrics", "metrics.read" ],
|
|
20815
|
+
"type" : "string"
|
|
20816
|
+
},
|
|
20817
|
+
"AccessRoleCreateRequest" : {
|
|
20818
|
+
"properties" : {
|
|
20819
|
+
"name" : {
|
|
20820
|
+
"type" : "string"
|
|
20821
|
+
},
|
|
20822
|
+
"description" : {
|
|
20823
|
+
"type" : "string"
|
|
20824
|
+
},
|
|
20825
|
+
"permissions" : {
|
|
20826
|
+
"items" : {
|
|
20827
|
+
"$ref" : "#/components/schemas/PermissionEntry"
|
|
20828
|
+
},
|
|
20829
|
+
"type" : "array"
|
|
20830
|
+
}
|
|
20831
|
+
},
|
|
20832
|
+
"required" : [ "name" ],
|
|
20833
|
+
"type" : "object"
|
|
20834
|
+
},
|
|
20835
|
+
"AccessRoleUpdateRequest" : {
|
|
20836
|
+
"properties" : {
|
|
20837
|
+
"name" : {
|
|
20838
|
+
"type" : "string"
|
|
20839
|
+
},
|
|
20840
|
+
"description" : {
|
|
20841
|
+
"type" : "string"
|
|
20842
|
+
}
|
|
20843
|
+
},
|
|
20844
|
+
"required" : [ "name" ],
|
|
20845
|
+
"type" : "object"
|
|
20846
|
+
},
|
|
20847
|
+
"AccessRolePermissionsRequest" : {
|
|
20848
|
+
"properties" : {
|
|
20849
|
+
"permissions" : {
|
|
20850
|
+
"items" : {
|
|
20851
|
+
"$ref" : "#/components/schemas/PermissionEntry"
|
|
20852
|
+
},
|
|
20853
|
+
"type" : "array"
|
|
20854
|
+
}
|
|
20855
|
+
},
|
|
20856
|
+
"required" : [ "permissions" ],
|
|
20857
|
+
"type" : "object"
|
|
20858
|
+
},
|
|
20859
|
+
"MemberPermissions" : {
|
|
20860
|
+
"additionalProperties" : {
|
|
20861
|
+
"type" : "boolean"
|
|
20862
|
+
},
|
|
20863
|
+
"type" : "object"
|
|
20864
|
+
},
|
|
20865
|
+
"UserAccess" : {
|
|
20866
|
+
"properties" : {
|
|
20867
|
+
"roleIds" : {
|
|
20868
|
+
"items" : {
|
|
20869
|
+
"type" : "string"
|
|
20870
|
+
},
|
|
20871
|
+
"type" : "array"
|
|
20872
|
+
},
|
|
20873
|
+
"directPermissions" : {
|
|
20874
|
+
"items" : {
|
|
20875
|
+
"$ref" : "#/components/schemas/PermissionEntry"
|
|
20876
|
+
},
|
|
20877
|
+
"type" : "array"
|
|
20878
|
+
}
|
|
20879
|
+
},
|
|
20880
|
+
"required" : [ "directPermissions", "roleIds" ],
|
|
20881
|
+
"type" : "object"
|
|
20882
|
+
},
|
|
20883
|
+
"UserAccessRolesRequest" : {
|
|
20884
|
+
"properties" : {
|
|
20885
|
+
"roleIds" : {
|
|
20886
|
+
"items" : {
|
|
20887
|
+
"type" : "string"
|
|
20888
|
+
},
|
|
20889
|
+
"type" : "array"
|
|
20890
|
+
}
|
|
20891
|
+
},
|
|
20892
|
+
"required" : [ "roleIds" ],
|
|
20893
|
+
"type" : "object"
|
|
20894
|
+
},
|
|
20895
|
+
"UserDirectPermissionsRequest" : {
|
|
20896
|
+
"properties" : {
|
|
20897
|
+
"permissions" : {
|
|
20898
|
+
"items" : {
|
|
20899
|
+
"$ref" : "#/components/schemas/PermissionEntry"
|
|
20900
|
+
},
|
|
20901
|
+
"type" : "array"
|
|
20902
|
+
}
|
|
20903
|
+
},
|
|
20904
|
+
"required" : [ "permissions" ],
|
|
20905
|
+
"type" : "object"
|
|
20906
|
+
},
|
|
20907
|
+
"UserAgentAccess" : {
|
|
20908
|
+
"properties" : {
|
|
20909
|
+
"scoped" : {
|
|
20910
|
+
"description" : "When true, only listed agents are accessible (org-wide agent.read is ignored for listing).",
|
|
20911
|
+
"type" : "boolean"
|
|
20912
|
+
},
|
|
20913
|
+
"agentIds" : {
|
|
20914
|
+
"items" : {
|
|
20915
|
+
"type" : "string"
|
|
20916
|
+
},
|
|
20917
|
+
"type" : "array"
|
|
20918
|
+
},
|
|
20919
|
+
"availableAgents" : {
|
|
20920
|
+
"items" : {
|
|
20921
|
+
"$ref" : "#/components/schemas/UserAgentAccessAgent"
|
|
20922
|
+
},
|
|
20923
|
+
"type" : "array"
|
|
20924
|
+
}
|
|
20925
|
+
},
|
|
20926
|
+
"required" : [ "agentIds", "availableAgents", "scoped" ],
|
|
20927
|
+
"type" : "object"
|
|
20928
|
+
},
|
|
20929
|
+
"UserAgentAccessAgent" : {
|
|
20930
|
+
"properties" : {
|
|
20931
|
+
"id" : {
|
|
20932
|
+
"type" : "string"
|
|
20933
|
+
},
|
|
20934
|
+
"name" : {
|
|
20935
|
+
"type" : "string"
|
|
20936
|
+
}
|
|
20937
|
+
},
|
|
20938
|
+
"required" : [ "id", "name" ],
|
|
20939
|
+
"type" : "object"
|
|
20940
|
+
},
|
|
20941
|
+
"UserAgentAccessRequest" : {
|
|
20942
|
+
"properties" : {
|
|
20943
|
+
"scoped" : {
|
|
20944
|
+
"type" : "boolean"
|
|
20945
|
+
},
|
|
20946
|
+
"agentIds" : {
|
|
20947
|
+
"items" : {
|
|
20948
|
+
"type" : "string"
|
|
20949
|
+
},
|
|
20950
|
+
"type" : "array"
|
|
20951
|
+
}
|
|
20952
|
+
},
|
|
20953
|
+
"required" : [ "agentIds", "scoped" ],
|
|
20954
|
+
"type" : "object"
|
|
20955
|
+
},
|
|
20301
20956
|
"OrganizationEngine" : {
|
|
20302
20957
|
"additionalProperties" : false,
|
|
20303
20958
|
"description" : "Engine configuration attached to an organization.",
|