@iblai/iblai-api 4.518.0-ai → 4.519.0-ai
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.cjs.js +547 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +547 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +547 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +12 -0
- package/dist/types/models/ClientToolResultRequest.d.ts +21 -0
- package/dist/types/models/FieldCreate.d.ts +19 -0
- package/dist/types/models/FieldCreateTypeEnum.d.ts +24 -0
- package/dist/types/models/Mentor.d.ts +4 -0
- package/dist/types/models/MentorCreate.d.ts +4 -0
- package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +1 -0
- package/dist/types/models/MentorSettings.d.ts +1 -0
- package/dist/types/models/MentorSettingsPublic.d.ts +1 -0
- package/dist/types/models/MentorSettingsRequest.d.ts +1 -0
- package/dist/types/models/ObjectCreate.d.ts +11 -0
- package/dist/types/models/OnDeleteEnum.d.ts +10 -0
- package/dist/types/models/PaginatedPlatformDatabaseList.d.ts +7 -0
- package/dist/types/models/PatchedFieldUpdate.d.ts +18 -0
- package/dist/types/models/PatchedMentorCreate.d.ts +4 -0
- package/dist/types/models/PatchedObjectUpdate.d.ts +7 -0
- package/dist/types/models/PlatformDatabase.d.ts +20 -0
- package/dist/types/models/PlatformDatabaseCreate.d.ts +6 -0
- package/dist/types/models/Relation.d.ts +8 -0
- package/dist/types/services/AiAnalyticsService.d.ts +8 -0
- package/dist/types/services/V1AnalyticsService.d.ts +8 -0
- package/dist/types/services/V1ChatService.d.ts +18 -0
- package/dist/types/services/V1DatabasesService.d.ts +279 -0
- package/package.json +1 -1
- package/sdk_schema.yml +976 -5
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +12 -0
- package/src/models/ClientToolResultRequest.ts +26 -0
- package/src/models/FieldCreate.ts +24 -0
- package/src/models/FieldCreateTypeEnum.ts +28 -0
- package/src/models/Mentor.ts +4 -0
- package/src/models/MentorCreate.ts +4 -0
- package/src/models/MentorFromTemplateWithSettingRequest.ts +1 -0
- package/src/models/MentorSettings.ts +1 -0
- package/src/models/MentorSettingsPublic.ts +1 -0
- package/src/models/MentorSettingsRequest.ts +1 -0
- package/src/models/ObjectCreate.ts +16 -0
- package/src/models/OnDeleteEnum.ts +14 -0
- package/src/models/PaginatedPlatformDatabaseList.ts +12 -0
- package/src/models/PatchedFieldUpdate.ts +23 -0
- package/src/models/PatchedMentorCreate.ts +4 -0
- package/src/models/PatchedObjectUpdate.ts +12 -0
- package/src/models/PlatformDatabase.ts +25 -0
- package/src/models/PlatformDatabaseCreate.ts +11 -0
- package/src/models/Relation.ts +13 -0
- package/src/services/AiAnalyticsService.ts +8 -0
- package/src/services/AiMentorService.ts +2 -0
- package/src/services/V1AnalyticsService.ts +8 -0
- package/src/services/V1ChatService.ts +39 -0
- package/src/services/V1DatabasesService.ts +595 -0
package/dist/index.cjs.js
CHANGED
|
@@ -110,7 +110,7 @@ class CancelablePromise {
|
|
|
110
110
|
|
|
111
111
|
const OpenAPI = {
|
|
112
112
|
BASE: 'https://base.manager.iblai.app',
|
|
113
|
-
VERSION: '4.
|
|
113
|
+
VERSION: '4.519.0-ai-plus',
|
|
114
114
|
WITH_CREDENTIALS: false,
|
|
115
115
|
CREDENTIALS: 'include',
|
|
116
116
|
TOKEN: undefined,
|
|
@@ -955,6 +955,36 @@ exports.FeedbackModeEnum = void 0;
|
|
|
955
955
|
FeedbackModeEnum["BOTH"] = "both";
|
|
956
956
|
})(exports.FeedbackModeEnum || (exports.FeedbackModeEnum = {}));
|
|
957
957
|
|
|
958
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
959
|
+
/* istanbul ignore file */
|
|
960
|
+
/* tslint:disable */
|
|
961
|
+
/* eslint-disable */
|
|
962
|
+
/**
|
|
963
|
+
* * `TEXT` - TEXT
|
|
964
|
+
* * `NUMBER` - NUMBER
|
|
965
|
+
* * `BOOLEAN` - BOOLEAN
|
|
966
|
+
* * `DATE` - DATE
|
|
967
|
+
* * `DATE_TIME` - DATE_TIME
|
|
968
|
+
* * `UUID` - UUID
|
|
969
|
+
* * `RAW_JSON` - RAW_JSON
|
|
970
|
+
* * `SELECT` - SELECT
|
|
971
|
+
* * `MULTI_SELECT` - MULTI_SELECT
|
|
972
|
+
* * `RELATION` - RELATION
|
|
973
|
+
*/
|
|
974
|
+
exports.FieldCreateTypeEnum = void 0;
|
|
975
|
+
(function (FieldCreateTypeEnum) {
|
|
976
|
+
FieldCreateTypeEnum["TEXT"] = "TEXT";
|
|
977
|
+
FieldCreateTypeEnum["NUMBER"] = "NUMBER";
|
|
978
|
+
FieldCreateTypeEnum["BOOLEAN"] = "BOOLEAN";
|
|
979
|
+
FieldCreateTypeEnum["DATE"] = "DATE";
|
|
980
|
+
FieldCreateTypeEnum["DATE_TIME"] = "DATE_TIME";
|
|
981
|
+
FieldCreateTypeEnum["UUID"] = "UUID";
|
|
982
|
+
FieldCreateTypeEnum["RAW_JSON"] = "RAW_JSON";
|
|
983
|
+
FieldCreateTypeEnum["SELECT"] = "SELECT";
|
|
984
|
+
FieldCreateTypeEnum["MULTI_SELECT"] = "MULTI_SELECT";
|
|
985
|
+
FieldCreateTypeEnum["RELATION"] = "RELATION";
|
|
986
|
+
})(exports.FieldCreateTypeEnum || (exports.FieldCreateTypeEnum = {}));
|
|
987
|
+
|
|
958
988
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
959
989
|
/* istanbul ignore file */
|
|
960
990
|
/* tslint:disable */
|
|
@@ -1517,6 +1547,22 @@ exports.ObjectTypeEnum = void 0;
|
|
|
1517
1547
|
ObjectTypeEnum["ACTIVITIES"] = "activities";
|
|
1518
1548
|
})(exports.ObjectTypeEnum || (exports.ObjectTypeEnum = {}));
|
|
1519
1549
|
|
|
1550
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1551
|
+
/* istanbul ignore file */
|
|
1552
|
+
/* tslint:disable */
|
|
1553
|
+
/* eslint-disable */
|
|
1554
|
+
/**
|
|
1555
|
+
* * `set_null` - set_null
|
|
1556
|
+
* * `cascade` - cascade
|
|
1557
|
+
* * `restrict` - restrict
|
|
1558
|
+
*/
|
|
1559
|
+
exports.OnDeleteEnum = void 0;
|
|
1560
|
+
(function (OnDeleteEnum) {
|
|
1561
|
+
OnDeleteEnum["SET_NULL"] = "set_null";
|
|
1562
|
+
OnDeleteEnum["CASCADE"] = "cascade";
|
|
1563
|
+
OnDeleteEnum["RESTRICT"] = "restrict";
|
|
1564
|
+
})(exports.OnDeleteEnum || (exports.OnDeleteEnum = {}));
|
|
1565
|
+
|
|
1520
1566
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1521
1567
|
/* istanbul ignore file */
|
|
1522
1568
|
/* tslint:disable */
|
|
@@ -7836,6 +7882,10 @@ class AiAnalyticsService {
|
|
|
7836
7882
|
* - Tenant admins (with an analytics policy) and watchers can access the
|
|
7837
7883
|
* data of users they are authorized for via RBAC
|
|
7838
7884
|
* - Other cross-user access is denied
|
|
7885
|
+
*
|
|
7886
|
+
* The list returns only sessions that hold a conversation. The detail route
|
|
7887
|
+
* returns any session the user owns, including one with no messages yet
|
|
7888
|
+
* (``is_conversation`` is false and ``messages`` is empty).
|
|
7839
7889
|
* @returns PaginatedConversationsList
|
|
7840
7890
|
* @throws ApiError
|
|
7841
7891
|
*/
|
|
@@ -8007,6 +8057,10 @@ class AiAnalyticsService {
|
|
|
8007
8057
|
* - Tenant admins (with an analytics policy) and watchers can access the
|
|
8008
8058
|
* data of users they are authorized for via RBAC
|
|
8009
8059
|
* - Other cross-user access is denied
|
|
8060
|
+
*
|
|
8061
|
+
* The list returns only sessions that hold a conversation. The detail route
|
|
8062
|
+
* returns any session the user owns, including one with no messages yet
|
|
8063
|
+
* (``is_conversation`` is false and ``messages`` is empty).
|
|
8010
8064
|
* @returns Conversations
|
|
8011
8065
|
* @throws ApiError
|
|
8012
8066
|
*/
|
|
@@ -19718,7 +19772,7 @@ class AiMentorService{/**
|
|
|
19718
19772
|
* BadRequest: If the Elevenlabs credentials are not found or there's an API error.
|
|
19719
19773
|
* @returns any Voice successfully deleted
|
|
19720
19774
|
* @throws ApiError
|
|
19721
|
-
*/static aiMentorOrgsUsersElevenlabsVoiceDestroy({org,userId,voiceName}){return request(OpenAPI,{method:'DELETE',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/elevenlabs-voice/{voice_name}/',path:{'org':org,'user_id':userId,'voice_name':voiceName},errors:{400:`Credentials not found or API error`}});}/**
|
|
19775
|
+
*/static aiMentorOrgsUsersElevenlabsVoiceDestroy({org,userId,voiceName}){return request(OpenAPI,{method:'DELETE',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/elevenlabs-voice/{voice_name}/',path:{'org':org,'user_id':userId,'voice_name':voiceName},errors:{400:`Credentials not found or API error`,403:`The caller may not delete this user's voices`,404:`No such voice, or the caller may not delete it`}});}/**
|
|
19722
19776
|
* List datasets
|
|
19723
19777
|
* List datasets belonging to the tenant. Supports server-side filtering by name substring and creator email (matched against the cached `created_by_email` in Langfuse metadata).
|
|
19724
19778
|
* @returns PaginatedDatasetList
|
|
@@ -50883,6 +50937,10 @@ class V1AnalyticsService {
|
|
|
50883
50937
|
* - Tenant admins (with an analytics policy) and watchers can access the
|
|
50884
50938
|
* data of users they are authorized for via RBAC
|
|
50885
50939
|
* - Other cross-user access is denied
|
|
50940
|
+
*
|
|
50941
|
+
* The list returns only sessions that hold a conversation. The detail route
|
|
50942
|
+
* returns any session the user owns, including one with no messages yet
|
|
50943
|
+
* (``is_conversation`` is false and ``messages`` is empty).
|
|
50886
50944
|
* @returns PaginatedConversationsList
|
|
50887
50945
|
* @throws ApiError
|
|
50888
50946
|
*/
|
|
@@ -51010,6 +51068,10 @@ class V1AnalyticsService {
|
|
|
51010
51068
|
* - Tenant admins (with an analytics policy) and watchers can access the
|
|
51011
51069
|
* data of users they are authorized for via RBAC
|
|
51012
51070
|
* - Other cross-user access is denied
|
|
51071
|
+
*
|
|
51072
|
+
* The list returns only sessions that hold a conversation. The detail route
|
|
51073
|
+
* returns any session the user owns, including one with no messages yet
|
|
51074
|
+
* (``is_conversation`` is false and ``messages`` is empty).
|
|
51013
51075
|
* @returns Conversations
|
|
51014
51076
|
* @throws ApiError
|
|
51015
51077
|
*/
|
|
@@ -51911,6 +51973,34 @@ class V1ChannelsService {
|
|
|
51911
51973
|
}
|
|
51912
51974
|
|
|
51913
51975
|
class V1ChatService {
|
|
51976
|
+
/**
|
|
51977
|
+
* Return a client tool result to the waiting agent
|
|
51978
|
+
* When a chat turn was started with `client_tools` and the agent calls one, the chat stream carries a `client_tool_call` frame with the call's `id`, `name`, `arguments`, `generation_id` and `timeout_seconds`. The client runs the tool and posts its output here; the agent then continues. Only the user whose turn made the call can answer it, and only the first result for a call is kept. A call that is not answered within `timeout_seconds` fails on the agent's side and can no longer be answered.
|
|
51979
|
+
* @returns any Result accepted
|
|
51980
|
+
* @throws ApiError
|
|
51981
|
+
*/
|
|
51982
|
+
static v1ChatToolResultsCreate({
|
|
51983
|
+
requestBody,
|
|
51984
|
+
iblaiOrg,
|
|
51985
|
+
iblaiUser
|
|
51986
|
+
}) {
|
|
51987
|
+
return request(OpenAPI, {
|
|
51988
|
+
method: 'POST',
|
|
51989
|
+
url: '/v1/chat/tool-results',
|
|
51990
|
+
headers: {
|
|
51991
|
+
'iblai-org': iblaiOrg,
|
|
51992
|
+
'iblai-user': iblaiUser
|
|
51993
|
+
},
|
|
51994
|
+
body: requestBody,
|
|
51995
|
+
mediaType: 'application/json',
|
|
51996
|
+
errors: {
|
|
51997
|
+
400: `Invalid body or oversized output`,
|
|
51998
|
+
403: `Permission denied`,
|
|
51999
|
+
404: `No call of the caller's is waiting under this id`,
|
|
52000
|
+
409: `This call was already answered`
|
|
52001
|
+
}
|
|
52002
|
+
});
|
|
52003
|
+
}
|
|
51914
52004
|
/**
|
|
51915
52005
|
* Send a message to an agent; streams the response (SSE). Session, agent, tenant and token come from the body.
|
|
51916
52006
|
* @returns string Server-sent event stream of the agent's response.
|
|
@@ -52047,6 +52137,460 @@ class V1CoursesService {
|
|
|
52047
52137
|
}
|
|
52048
52138
|
}
|
|
52049
52139
|
|
|
52140
|
+
class V1DatabasesService {
|
|
52141
|
+
/**
|
|
52142
|
+
* List the platform's databases
|
|
52143
|
+
* What every database view shares. RBAC off: platform admins only, the
|
|
52144
|
+
* proxy included. RBAC on: ``RbacAuthGate`` only authenticates, and
|
|
52145
|
+
* ``_check`` enforces the verbs.
|
|
52146
|
+
* @returns PaginatedPlatformDatabaseList
|
|
52147
|
+
* @throws ApiError
|
|
52148
|
+
*/
|
|
52149
|
+
static v1DatabasesRetrieve({
|
|
52150
|
+
dateFilter,
|
|
52151
|
+
endDate,
|
|
52152
|
+
iblaiOrg,
|
|
52153
|
+
startDate
|
|
52154
|
+
}) {
|
|
52155
|
+
return request(OpenAPI, {
|
|
52156
|
+
method: 'GET',
|
|
52157
|
+
url: '/v1/databases',
|
|
52158
|
+
headers: {
|
|
52159
|
+
'iblai-org': iblaiOrg
|
|
52160
|
+
},
|
|
52161
|
+
query: {
|
|
52162
|
+
'date_filter': dateFilter,
|
|
52163
|
+
'end_date': endDate,
|
|
52164
|
+
'start_date': startDate
|
|
52165
|
+
}
|
|
52166
|
+
});
|
|
52167
|
+
}
|
|
52168
|
+
/**
|
|
52169
|
+
* Create a platform database
|
|
52170
|
+
* Ibl.Mentor/Database/action. Creates a schema and its roles on the instance's Supabase and records it; a failed attempt takes its schema down again.
|
|
52171
|
+
* @returns any Created
|
|
52172
|
+
* @throws ApiError
|
|
52173
|
+
*/
|
|
52174
|
+
static v1DatabasesCreate({
|
|
52175
|
+
requestBody,
|
|
52176
|
+
iblaiOrg
|
|
52177
|
+
}) {
|
|
52178
|
+
return request(OpenAPI, {
|
|
52179
|
+
method: 'POST',
|
|
52180
|
+
url: '/v1/databases',
|
|
52181
|
+
headers: {
|
|
52182
|
+
'iblai-org': iblaiOrg
|
|
52183
|
+
},
|
|
52184
|
+
body: requestBody,
|
|
52185
|
+
mediaType: 'application/json',
|
|
52186
|
+
errors: {
|
|
52187
|
+
400: `Bad name`,
|
|
52188
|
+
403: `Permission denied`,
|
|
52189
|
+
409: `Name already taken or limit reached`,
|
|
52190
|
+
502: `Supabase failed`,
|
|
52191
|
+
503: `Not configured`
|
|
52192
|
+
}
|
|
52193
|
+
});
|
|
52194
|
+
}
|
|
52195
|
+
/**
|
|
52196
|
+
* View a platform database
|
|
52197
|
+
* What every database view shares. RBAC off: platform admins only, the
|
|
52198
|
+
* proxy included. RBAC on: ``RbacAuthGate`` only authenticates, and
|
|
52199
|
+
* ``_check`` enforces the verbs.
|
|
52200
|
+
* @returns any database
|
|
52201
|
+
* @throws ApiError
|
|
52202
|
+
*/
|
|
52203
|
+
static v1DatabasesRetrieve2({
|
|
52204
|
+
databaseName,
|
|
52205
|
+
iblaiOrg
|
|
52206
|
+
}) {
|
|
52207
|
+
return request(OpenAPI, {
|
|
52208
|
+
method: 'GET',
|
|
52209
|
+
url: '/v1/databases/{database_name}',
|
|
52210
|
+
path: {
|
|
52211
|
+
'database_name': databaseName
|
|
52212
|
+
},
|
|
52213
|
+
headers: {
|
|
52214
|
+
'iblai-org': iblaiOrg
|
|
52215
|
+
}
|
|
52216
|
+
});
|
|
52217
|
+
}
|
|
52218
|
+
/**
|
|
52219
|
+
* Drop a platform database
|
|
52220
|
+
* Ibl.Mentor/Database/delete. Drops the schema with everything in it and its roles. The body must repeat the schema name: `{"confirm": "<schema_name>"}`.
|
|
52221
|
+
* @returns void
|
|
52222
|
+
* @throws ApiError
|
|
52223
|
+
*/
|
|
52224
|
+
static v1DatabasesDestroy({
|
|
52225
|
+
databaseName,
|
|
52226
|
+
iblaiOrg
|
|
52227
|
+
}) {
|
|
52228
|
+
return request(OpenAPI, {
|
|
52229
|
+
method: 'DELETE',
|
|
52230
|
+
url: '/v1/databases/{database_name}',
|
|
52231
|
+
path: {
|
|
52232
|
+
'database_name': databaseName
|
|
52233
|
+
},
|
|
52234
|
+
headers: {
|
|
52235
|
+
'iblai-org': iblaiOrg
|
|
52236
|
+
},
|
|
52237
|
+
errors: {
|
|
52238
|
+
400: `Confirmation missing or wrong`,
|
|
52239
|
+
403: `Permission denied`,
|
|
52240
|
+
404: `No such database`
|
|
52241
|
+
}
|
|
52242
|
+
});
|
|
52243
|
+
}
|
|
52244
|
+
/**
|
|
52245
|
+
* List the objects of a platform database
|
|
52246
|
+
* Postgres is the record: a request validates its input, reads the
|
|
52247
|
+
* catalog, judges the change against it, then runs one batch.
|
|
52248
|
+
* @returns any count, next_page, previous_page, results: objects, each with its fields
|
|
52249
|
+
* @throws ApiError
|
|
52250
|
+
*/
|
|
52251
|
+
static v1DatabasesObjectsRetrieve({
|
|
52252
|
+
databaseName,
|
|
52253
|
+
iblaiOrg
|
|
52254
|
+
}) {
|
|
52255
|
+
return request(OpenAPI, {
|
|
52256
|
+
method: 'GET',
|
|
52257
|
+
url: '/v1/databases/{database_name}/objects',
|
|
52258
|
+
path: {
|
|
52259
|
+
'database_name': databaseName
|
|
52260
|
+
},
|
|
52261
|
+
headers: {
|
|
52262
|
+
'iblai-org': iblaiOrg
|
|
52263
|
+
}
|
|
52264
|
+
});
|
|
52265
|
+
}
|
|
52266
|
+
/**
|
|
52267
|
+
* Create an object (a table) in a platform database
|
|
52268
|
+
* Ibl.Mentor/Database/action. `{name, description?, fields?: [...]}`; every object gets `id` (uuid), `created_at` and `updated_at`, which every update moves. A field is `{name, type, description?, is_nullable?, is_unique?, default?, options? (SELECT, MULTI_SELECT), relation?: {target, on_delete}}`. PostgREST serves the new object once it has reloaded its schema cache, a moment after the 201.
|
|
52269
|
+
* @returns any Created
|
|
52270
|
+
* @throws ApiError
|
|
52271
|
+
*/
|
|
52272
|
+
static v1DatabasesObjectsCreate({
|
|
52273
|
+
databaseName,
|
|
52274
|
+
requestBody,
|
|
52275
|
+
iblaiOrg
|
|
52276
|
+
}) {
|
|
52277
|
+
return request(OpenAPI, {
|
|
52278
|
+
method: 'POST',
|
|
52279
|
+
url: '/v1/databases/{database_name}/objects',
|
|
52280
|
+
path: {
|
|
52281
|
+
'database_name': databaseName
|
|
52282
|
+
},
|
|
52283
|
+
headers: {
|
|
52284
|
+
'iblai-org': iblaiOrg
|
|
52285
|
+
},
|
|
52286
|
+
body: requestBody,
|
|
52287
|
+
mediaType: 'application/json',
|
|
52288
|
+
errors: {
|
|
52289
|
+
400: `Bad name, type, default or option`,
|
|
52290
|
+
403: `Permission denied`,
|
|
52291
|
+
409: `Name taken or limit reached`
|
|
52292
|
+
}
|
|
52293
|
+
});
|
|
52294
|
+
}
|
|
52295
|
+
/**
|
|
52296
|
+
* View an object and its fields
|
|
52297
|
+
* Postgres is the record: a request validates its input, reads the
|
|
52298
|
+
* catalog, judges the change against it, then runs one batch.
|
|
52299
|
+
* @returns any object
|
|
52300
|
+
* @throws ApiError
|
|
52301
|
+
*/
|
|
52302
|
+
static v1DatabasesObjectsRetrieve2({
|
|
52303
|
+
databaseName,
|
|
52304
|
+
objectName,
|
|
52305
|
+
iblaiOrg
|
|
52306
|
+
}) {
|
|
52307
|
+
return request(OpenAPI, {
|
|
52308
|
+
method: 'GET',
|
|
52309
|
+
url: '/v1/databases/{database_name}/objects/{object_name}',
|
|
52310
|
+
path: {
|
|
52311
|
+
'database_name': databaseName,
|
|
52312
|
+
'object_name': objectName
|
|
52313
|
+
},
|
|
52314
|
+
headers: {
|
|
52315
|
+
'iblai-org': iblaiOrg
|
|
52316
|
+
}
|
|
52317
|
+
});
|
|
52318
|
+
}
|
|
52319
|
+
/**
|
|
52320
|
+
* Rename or describe an object
|
|
52321
|
+
* Ibl.Mentor/Database/write.
|
|
52322
|
+
* @returns any object
|
|
52323
|
+
* @throws ApiError
|
|
52324
|
+
*/
|
|
52325
|
+
static v1DatabasesObjectsPartialUpdate({
|
|
52326
|
+
databaseName,
|
|
52327
|
+
objectName,
|
|
52328
|
+
iblaiOrg,
|
|
52329
|
+
requestBody
|
|
52330
|
+
}) {
|
|
52331
|
+
return request(OpenAPI, {
|
|
52332
|
+
method: 'PATCH',
|
|
52333
|
+
url: '/v1/databases/{database_name}/objects/{object_name}',
|
|
52334
|
+
path: {
|
|
52335
|
+
'database_name': databaseName,
|
|
52336
|
+
'object_name': objectName
|
|
52337
|
+
},
|
|
52338
|
+
headers: {
|
|
52339
|
+
'iblai-org': iblaiOrg
|
|
52340
|
+
},
|
|
52341
|
+
body: requestBody,
|
|
52342
|
+
mediaType: 'application/json'
|
|
52343
|
+
});
|
|
52344
|
+
}
|
|
52345
|
+
/**
|
|
52346
|
+
* Drop an object and its rows
|
|
52347
|
+
* Ibl.Mentor/Database/delete. The body must repeat the object's name: `{"confirm": "<object>"}`. An object another object relates to is refused (409) until that relation field is dropped.
|
|
52348
|
+
* @returns void
|
|
52349
|
+
* @throws ApiError
|
|
52350
|
+
*/
|
|
52351
|
+
static v1DatabasesObjectsDestroy({
|
|
52352
|
+
databaseName,
|
|
52353
|
+
objectName,
|
|
52354
|
+
iblaiOrg
|
|
52355
|
+
}) {
|
|
52356
|
+
return request(OpenAPI, {
|
|
52357
|
+
method: 'DELETE',
|
|
52358
|
+
url: '/v1/databases/{database_name}/objects/{object_name}',
|
|
52359
|
+
path: {
|
|
52360
|
+
'database_name': databaseName,
|
|
52361
|
+
'object_name': objectName
|
|
52362
|
+
},
|
|
52363
|
+
headers: {
|
|
52364
|
+
'iblai-org': iblaiOrg
|
|
52365
|
+
},
|
|
52366
|
+
errors: {
|
|
52367
|
+
400: `Confirmation missing or wrong`,
|
|
52368
|
+
404: `No such object`,
|
|
52369
|
+
409: `Another object relates to it`
|
|
52370
|
+
}
|
|
52371
|
+
});
|
|
52372
|
+
}
|
|
52373
|
+
/**
|
|
52374
|
+
* Add a field (a column) to an object
|
|
52375
|
+
* Postgres is the record: a request validates its input, reads the
|
|
52376
|
+
* catalog, judges the change against it, then runs one batch.
|
|
52377
|
+
* @returns any Created
|
|
52378
|
+
* @throws ApiError
|
|
52379
|
+
*/
|
|
52380
|
+
static v1DatabasesObjectsFieldsCreate({
|
|
52381
|
+
databaseName,
|
|
52382
|
+
objectName,
|
|
52383
|
+
requestBody,
|
|
52384
|
+
iblaiOrg
|
|
52385
|
+
}) {
|
|
52386
|
+
return request(OpenAPI, {
|
|
52387
|
+
method: 'POST',
|
|
52388
|
+
url: '/v1/databases/{database_name}/objects/{object_name}/fields',
|
|
52389
|
+
path: {
|
|
52390
|
+
'database_name': databaseName,
|
|
52391
|
+
'object_name': objectName
|
|
52392
|
+
},
|
|
52393
|
+
headers: {
|
|
52394
|
+
'iblai-org': iblaiOrg
|
|
52395
|
+
},
|
|
52396
|
+
body: requestBody,
|
|
52397
|
+
mediaType: 'application/json',
|
|
52398
|
+
errors: {
|
|
52399
|
+
400: `Bad name, type, default or option`,
|
|
52400
|
+
404: `No such object`,
|
|
52401
|
+
409: `Name taken, limit reached, or rows in the way`
|
|
52402
|
+
}
|
|
52403
|
+
});
|
|
52404
|
+
}
|
|
52405
|
+
/**
|
|
52406
|
+
* Change a field: its name, description, default, uniqueness or options
|
|
52407
|
+
* Ibl.Mentor/Database/write. Type and nullability never change, and options can only be added; create a new field for anything else.
|
|
52408
|
+
* @returns any field
|
|
52409
|
+
* @throws ApiError
|
|
52410
|
+
*/
|
|
52411
|
+
static v1DatabasesObjectsFieldsPartialUpdate({
|
|
52412
|
+
databaseName,
|
|
52413
|
+
fieldName,
|
|
52414
|
+
objectName,
|
|
52415
|
+
iblaiOrg,
|
|
52416
|
+
requestBody
|
|
52417
|
+
}) {
|
|
52418
|
+
return request(OpenAPI, {
|
|
52419
|
+
method: 'PATCH',
|
|
52420
|
+
url: '/v1/databases/{database_name}/objects/{object_name}/fields/{field_name}',
|
|
52421
|
+
path: {
|
|
52422
|
+
'database_name': databaseName,
|
|
52423
|
+
'field_name': fieldName,
|
|
52424
|
+
'object_name': objectName
|
|
52425
|
+
},
|
|
52426
|
+
headers: {
|
|
52427
|
+
'iblai-org': iblaiOrg
|
|
52428
|
+
},
|
|
52429
|
+
body: requestBody,
|
|
52430
|
+
mediaType: 'application/json'
|
|
52431
|
+
});
|
|
52432
|
+
}
|
|
52433
|
+
/**
|
|
52434
|
+
* Drop a field and its values
|
|
52435
|
+
* Ibl.Mentor/Database/delete. The body must repeat the field's name: `{"confirm": "<field>"}`.
|
|
52436
|
+
* @returns void
|
|
52437
|
+
* @throws ApiError
|
|
52438
|
+
*/
|
|
52439
|
+
static v1DatabasesObjectsFieldsDestroy({
|
|
52440
|
+
databaseName,
|
|
52441
|
+
fieldName,
|
|
52442
|
+
objectName,
|
|
52443
|
+
iblaiOrg
|
|
52444
|
+
}) {
|
|
52445
|
+
return request(OpenAPI, {
|
|
52446
|
+
method: 'DELETE',
|
|
52447
|
+
url: '/v1/databases/{database_name}/objects/{object_name}/fields/{field_name}',
|
|
52448
|
+
path: {
|
|
52449
|
+
'database_name': databaseName,
|
|
52450
|
+
'field_name': fieldName,
|
|
52451
|
+
'object_name': objectName
|
|
52452
|
+
},
|
|
52453
|
+
headers: {
|
|
52454
|
+
'iblai-org': iblaiOrg
|
|
52455
|
+
},
|
|
52456
|
+
errors: {
|
|
52457
|
+
400: `A system field, or no confirmation`,
|
|
52458
|
+
404: `No such field`
|
|
52459
|
+
}
|
|
52460
|
+
});
|
|
52461
|
+
}
|
|
52462
|
+
/**
|
|
52463
|
+
* ``…/rest/v1/<path>`` → the stack's ``/rest/v1/<path>``, under a bearer
|
|
52464
|
+
* minted for the caller as the method's token role. Path, query string and
|
|
52465
|
+
* body go through verbatim; headers only from an allowlist, with the schema
|
|
52466
|
+
* fixed. Rows come back streamed, which only a WSGI worker does: under ASGI
|
|
52467
|
+
* Django reads a synchronous stream whole, so that service refuses the route.
|
|
52468
|
+
* @returns any No response body
|
|
52469
|
+
* @throws ApiError
|
|
52470
|
+
*/
|
|
52471
|
+
static v1DatabasesRestV1Retrieve({
|
|
52472
|
+
databaseName,
|
|
52473
|
+
restPath,
|
|
52474
|
+
iblaiOrg
|
|
52475
|
+
}) {
|
|
52476
|
+
return request(OpenAPI, {
|
|
52477
|
+
method: 'GET',
|
|
52478
|
+
url: '/v1/databases/{database_name}/rest/v1/{rest_path}',
|
|
52479
|
+
path: {
|
|
52480
|
+
'database_name': databaseName,
|
|
52481
|
+
'rest_path': restPath
|
|
52482
|
+
},
|
|
52483
|
+
headers: {
|
|
52484
|
+
'iblai-org': iblaiOrg
|
|
52485
|
+
}
|
|
52486
|
+
});
|
|
52487
|
+
}
|
|
52488
|
+
/**
|
|
52489
|
+
* ``…/rest/v1/<path>`` → the stack's ``/rest/v1/<path>``, under a bearer
|
|
52490
|
+
* minted for the caller as the method's token role. Path, query string and
|
|
52491
|
+
* body go through verbatim; headers only from an allowlist, with the schema
|
|
52492
|
+
* fixed. Rows come back streamed, which only a WSGI worker does: under ASGI
|
|
52493
|
+
* Django reads a synchronous stream whole, so that service refuses the route.
|
|
52494
|
+
* @returns any No response body
|
|
52495
|
+
* @throws ApiError
|
|
52496
|
+
*/
|
|
52497
|
+
static v1DatabasesRestV1Create({
|
|
52498
|
+
databaseName,
|
|
52499
|
+
restPath,
|
|
52500
|
+
iblaiOrg
|
|
52501
|
+
}) {
|
|
52502
|
+
return request(OpenAPI, {
|
|
52503
|
+
method: 'POST',
|
|
52504
|
+
url: '/v1/databases/{database_name}/rest/v1/{rest_path}',
|
|
52505
|
+
path: {
|
|
52506
|
+
'database_name': databaseName,
|
|
52507
|
+
'rest_path': restPath
|
|
52508
|
+
},
|
|
52509
|
+
headers: {
|
|
52510
|
+
'iblai-org': iblaiOrg
|
|
52511
|
+
}
|
|
52512
|
+
});
|
|
52513
|
+
}
|
|
52514
|
+
/**
|
|
52515
|
+
* ``…/rest/v1/<path>`` → the stack's ``/rest/v1/<path>``, under a bearer
|
|
52516
|
+
* minted for the caller as the method's token role. Path, query string and
|
|
52517
|
+
* body go through verbatim; headers only from an allowlist, with the schema
|
|
52518
|
+
* fixed. Rows come back streamed, which only a WSGI worker does: under ASGI
|
|
52519
|
+
* Django reads a synchronous stream whole, so that service refuses the route.
|
|
52520
|
+
* @returns any No response body
|
|
52521
|
+
* @throws ApiError
|
|
52522
|
+
*/
|
|
52523
|
+
static v1DatabasesRestV1Update({
|
|
52524
|
+
databaseName,
|
|
52525
|
+
restPath,
|
|
52526
|
+
iblaiOrg
|
|
52527
|
+
}) {
|
|
52528
|
+
return request(OpenAPI, {
|
|
52529
|
+
method: 'PUT',
|
|
52530
|
+
url: '/v1/databases/{database_name}/rest/v1/{rest_path}',
|
|
52531
|
+
path: {
|
|
52532
|
+
'database_name': databaseName,
|
|
52533
|
+
'rest_path': restPath
|
|
52534
|
+
},
|
|
52535
|
+
headers: {
|
|
52536
|
+
'iblai-org': iblaiOrg
|
|
52537
|
+
}
|
|
52538
|
+
});
|
|
52539
|
+
}
|
|
52540
|
+
/**
|
|
52541
|
+
* ``…/rest/v1/<path>`` → the stack's ``/rest/v1/<path>``, under a bearer
|
|
52542
|
+
* minted for the caller as the method's token role. Path, query string and
|
|
52543
|
+
* body go through verbatim; headers only from an allowlist, with the schema
|
|
52544
|
+
* fixed. Rows come back streamed, which only a WSGI worker does: under ASGI
|
|
52545
|
+
* Django reads a synchronous stream whole, so that service refuses the route.
|
|
52546
|
+
* @returns any No response body
|
|
52547
|
+
* @throws ApiError
|
|
52548
|
+
*/
|
|
52549
|
+
static v1DatabasesRestV1PartialUpdate({
|
|
52550
|
+
databaseName,
|
|
52551
|
+
restPath,
|
|
52552
|
+
iblaiOrg
|
|
52553
|
+
}) {
|
|
52554
|
+
return request(OpenAPI, {
|
|
52555
|
+
method: 'PATCH',
|
|
52556
|
+
url: '/v1/databases/{database_name}/rest/v1/{rest_path}',
|
|
52557
|
+
path: {
|
|
52558
|
+
'database_name': databaseName,
|
|
52559
|
+
'rest_path': restPath
|
|
52560
|
+
},
|
|
52561
|
+
headers: {
|
|
52562
|
+
'iblai-org': iblaiOrg
|
|
52563
|
+
}
|
|
52564
|
+
});
|
|
52565
|
+
}
|
|
52566
|
+
/**
|
|
52567
|
+
* ``…/rest/v1/<path>`` → the stack's ``/rest/v1/<path>``, under a bearer
|
|
52568
|
+
* minted for the caller as the method's token role. Path, query string and
|
|
52569
|
+
* body go through verbatim; headers only from an allowlist, with the schema
|
|
52570
|
+
* fixed. Rows come back streamed, which only a WSGI worker does: under ASGI
|
|
52571
|
+
* Django reads a synchronous stream whole, so that service refuses the route.
|
|
52572
|
+
* @returns void
|
|
52573
|
+
* @throws ApiError
|
|
52574
|
+
*/
|
|
52575
|
+
static v1DatabasesRestV1Destroy({
|
|
52576
|
+
databaseName,
|
|
52577
|
+
restPath,
|
|
52578
|
+
iblaiOrg
|
|
52579
|
+
}) {
|
|
52580
|
+
return request(OpenAPI, {
|
|
52581
|
+
method: 'DELETE',
|
|
52582
|
+
url: '/v1/databases/{database_name}/rest/v1/{rest_path}',
|
|
52583
|
+
path: {
|
|
52584
|
+
'database_name': databaseName,
|
|
52585
|
+
'rest_path': restPath
|
|
52586
|
+
},
|
|
52587
|
+
headers: {
|
|
52588
|
+
'iblai-org': iblaiOrg
|
|
52589
|
+
}
|
|
52590
|
+
});
|
|
52591
|
+
}
|
|
52592
|
+
}
|
|
52593
|
+
|
|
52050
52594
|
class V1DisclaimersService {
|
|
52051
52595
|
/**
|
|
52052
52596
|
* Requires the `iblai-org` and `iblai-user` context headers.
|
|
@@ -53564,6 +54108,7 @@ exports.V1ChannelsService = V1ChannelsService;
|
|
|
53564
54108
|
exports.V1ChatService = V1ChatService;
|
|
53565
54109
|
exports.V1ConfigurationsService = V1ConfigurationsService;
|
|
53566
54110
|
exports.V1CoursesService = V1CoursesService;
|
|
54111
|
+
exports.V1DatabasesService = V1DatabasesService;
|
|
53567
54112
|
exports.V1DisclaimersService = V1DisclaimersService;
|
|
53568
54113
|
exports.V1FeaturesService = V1FeaturesService;
|
|
53569
54114
|
exports.V1LlmsService = V1LlmsService;
|