agentbase-web-sdk 2.10.0 → 2.12.0
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/README.md +2 -2
- package/dist/cjs/sdk.js +1152 -103
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1152 -104
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1152 -103
- package/package.json +3 -3
- package/types/enums/data-api-catalog-data-source-database-type.d.ts +6 -0
- package/types/enums/data-api-catalog-data-source-visibility-source.d.ts +7 -0
- package/types/enums/data-api-catalog-database-availability.d.ts +5 -0
- package/types/enums/data-api-catalog-database-classification.d.ts +4 -0
- package/types/enums/data-api-catalog-database-status.d.ts +4 -0
- package/types/enums/data-api-catalog-database-visibility-source.d.ts +7 -0
- package/types/enums/data-api-filter-logic.d.ts +4 -0
- package/types/enums/data-api-owned-binding-principal-type.d.ts +4 -0
- package/types/enums/data-api-owned-binding-status.d.ts +4 -0
- package/types/enums/memory-pipeline-run-result-status.d.ts +4 -0
- package/types/enums/memory-pipeline-run-scenario.d.ts +6 -0
- package/types/enums/memory-pipeline-run-status.d.ts +6 -0
- package/types/enums/scene.d.ts +4 -0
- package/types/enums/status.d.ts +3 -1
- package/types/enums/timezone.d.ts +1 -0
- package/types/index.d.ts +16 -2
- package/types/models.d.ts +798 -4
- package/types/services/account.d.ts +85 -2
- package/types/services/ai-gateway.d.ts +90 -0
- package/types/services/data-api.d.ts +257 -0
- package/types/services/functions.d.ts +2 -0
- package/types/services/knowledge-bases.d.ts +186 -2
- package/types/services/llm-gateway.d.ts +8 -1
- package/types/services/memory.d.ts +117 -8
package/dist/cjs/sdk.js
CHANGED
|
@@ -595,7 +595,7 @@ class Client {
|
|
|
595
595
|
* Holds configuration such as project.
|
|
596
596
|
*/
|
|
597
597
|
this.config = {
|
|
598
|
-
endpoint: 'https://
|
|
598
|
+
endpoint: 'https://example.com[HOSTNAME]/v1',
|
|
599
599
|
endpointRealtime: '',
|
|
600
600
|
project: '',
|
|
601
601
|
organization: '',
|
|
@@ -614,9 +614,9 @@ class Client {
|
|
|
614
614
|
'x-sdk-name': 'Agentbase',
|
|
615
615
|
'x-sdk-platform': 'client',
|
|
616
616
|
'x-sdk-language': 'web',
|
|
617
|
-
'x-sdk-version': '2.
|
|
617
|
+
'x-sdk-version': '2.12.0',
|
|
618
618
|
'X-AppBase-SDK': 'true',
|
|
619
|
-
'X-Appwrite-Response-Format': '2.
|
|
619
|
+
'X-Appwrite-Response-Format': '2.12.0',
|
|
620
620
|
};
|
|
621
621
|
this.realtime = {
|
|
622
622
|
socket: undefined,
|
|
@@ -2158,6 +2158,131 @@ class Account {
|
|
|
2158
2158
|
};
|
|
2159
2159
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
2160
2160
|
}
|
|
2161
|
+
changePhone(paramsOrFirst, ...rest) {
|
|
2162
|
+
let params;
|
|
2163
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
2164
|
+
params = (paramsOrFirst || {});
|
|
2165
|
+
}
|
|
2166
|
+
else {
|
|
2167
|
+
params = {
|
|
2168
|
+
newPhone: paramsOrFirst,
|
|
2169
|
+
challengeId: rest[0],
|
|
2170
|
+
code: rest[1],
|
|
2171
|
+
password: rest[2]
|
|
2172
|
+
};
|
|
2173
|
+
}
|
|
2174
|
+
const newPhone = params.newPhone;
|
|
2175
|
+
const challengeId = params.challengeId;
|
|
2176
|
+
const code = params.code;
|
|
2177
|
+
const password = params.password;
|
|
2178
|
+
if (typeof newPhone === 'undefined') {
|
|
2179
|
+
throw new AgentbaseException('Missing required parameter: "newPhone"');
|
|
2180
|
+
}
|
|
2181
|
+
if (typeof challengeId === 'undefined') {
|
|
2182
|
+
throw new AgentbaseException('Missing required parameter: "challengeId"');
|
|
2183
|
+
}
|
|
2184
|
+
if (typeof code === 'undefined') {
|
|
2185
|
+
throw new AgentbaseException('Missing required parameter: "code"');
|
|
2186
|
+
}
|
|
2187
|
+
const apiPath = '/account/phone/change';
|
|
2188
|
+
const payload = {};
|
|
2189
|
+
if (typeof newPhone !== 'undefined') {
|
|
2190
|
+
payload['newPhone'] = newPhone;
|
|
2191
|
+
}
|
|
2192
|
+
if (typeof challengeId !== 'undefined') {
|
|
2193
|
+
payload['challengeId'] = challengeId;
|
|
2194
|
+
}
|
|
2195
|
+
if (typeof code !== 'undefined') {
|
|
2196
|
+
payload['code'] = code;
|
|
2197
|
+
}
|
|
2198
|
+
if (typeof password !== 'undefined') {
|
|
2199
|
+
payload['password'] = password;
|
|
2200
|
+
}
|
|
2201
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2202
|
+
const apiHeaders = {
|
|
2203
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
2204
|
+
'content-type': 'application/json',
|
|
2205
|
+
};
|
|
2206
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
2207
|
+
}
|
|
2208
|
+
sendPhoneCode(paramsOrFirst, ...rest) {
|
|
2209
|
+
let params;
|
|
2210
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
2211
|
+
params = (paramsOrFirst || {});
|
|
2212
|
+
}
|
|
2213
|
+
else {
|
|
2214
|
+
params = {
|
|
2215
|
+
phone: paramsOrFirst,
|
|
2216
|
+
userId: rest[0],
|
|
2217
|
+
scene: rest[1]
|
|
2218
|
+
};
|
|
2219
|
+
}
|
|
2220
|
+
const phone = params.phone;
|
|
2221
|
+
const userId = params.userId;
|
|
2222
|
+
const scene = params.scene;
|
|
2223
|
+
if (typeof phone === 'undefined') {
|
|
2224
|
+
throw new AgentbaseException('Missing required parameter: "phone"');
|
|
2225
|
+
}
|
|
2226
|
+
const apiPath = '/account/phone/send-code';
|
|
2227
|
+
const payload = {};
|
|
2228
|
+
if (typeof userId !== 'undefined') {
|
|
2229
|
+
payload['userId'] = userId;
|
|
2230
|
+
}
|
|
2231
|
+
if (typeof phone !== 'undefined') {
|
|
2232
|
+
payload['phone'] = phone;
|
|
2233
|
+
}
|
|
2234
|
+
if (typeof scene !== 'undefined') {
|
|
2235
|
+
payload['scene'] = scene;
|
|
2236
|
+
}
|
|
2237
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2238
|
+
const apiHeaders = {
|
|
2239
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
2240
|
+
'content-type': 'application/json',
|
|
2241
|
+
};
|
|
2242
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
2243
|
+
}
|
|
2244
|
+
verifyPhone(paramsOrFirst, ...rest) {
|
|
2245
|
+
let params;
|
|
2246
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
2247
|
+
params = (paramsOrFirst || {});
|
|
2248
|
+
}
|
|
2249
|
+
else {
|
|
2250
|
+
params = {
|
|
2251
|
+
challengeId: paramsOrFirst,
|
|
2252
|
+
phone: rest[0],
|
|
2253
|
+
code: rest[1]
|
|
2254
|
+
};
|
|
2255
|
+
}
|
|
2256
|
+
const challengeId = params.challengeId;
|
|
2257
|
+
const phone = params.phone;
|
|
2258
|
+
const code = params.code;
|
|
2259
|
+
if (typeof challengeId === 'undefined') {
|
|
2260
|
+
throw new AgentbaseException('Missing required parameter: "challengeId"');
|
|
2261
|
+
}
|
|
2262
|
+
if (typeof phone === 'undefined') {
|
|
2263
|
+
throw new AgentbaseException('Missing required parameter: "phone"');
|
|
2264
|
+
}
|
|
2265
|
+
if (typeof code === 'undefined') {
|
|
2266
|
+
throw new AgentbaseException('Missing required parameter: "code"');
|
|
2267
|
+
}
|
|
2268
|
+
const apiPath = '/account/phone/verify';
|
|
2269
|
+
const payload = {};
|
|
2270
|
+
if (typeof challengeId !== 'undefined') {
|
|
2271
|
+
payload['challengeId'] = challengeId;
|
|
2272
|
+
}
|
|
2273
|
+
if (typeof phone !== 'undefined') {
|
|
2274
|
+
payload['phone'] = phone;
|
|
2275
|
+
}
|
|
2276
|
+
if (typeof code !== 'undefined') {
|
|
2277
|
+
payload['code'] = code;
|
|
2278
|
+
}
|
|
2279
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2280
|
+
const apiHeaders = {
|
|
2281
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
2282
|
+
'content-type': 'application/json',
|
|
2283
|
+
};
|
|
2284
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
2285
|
+
}
|
|
2161
2286
|
/**
|
|
2162
2287
|
* Get the preferences as a key-value object for the currently logged in user.
|
|
2163
2288
|
*
|
|
@@ -2689,7 +2814,8 @@ class Account {
|
|
|
2689
2814
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
2690
2815
|
}
|
|
2691
2816
|
/**
|
|
2692
|
-
* Block the currently logged in user account
|
|
2817
|
+
* Block the currently logged in user account in an application project. The user record is retained, and access remains blocked until an authorized project administrator restores the status through the Users API. Console platform accounts cannot disable themselves through this endpoint; requests authenticated as a Console account return HTTP 403 with type `general_access_forbidden` without changing the account status or clearing its session cookies. To completely delete a project user, use the Users API instead.
|
|
2818
|
+
*
|
|
2693
2819
|
*
|
|
2694
2820
|
* @throws {AgentbaseException}
|
|
2695
2821
|
* @returns {Promise<Models.User<Preferences>>}
|
|
@@ -2935,11 +3061,13 @@ class Account {
|
|
|
2935
3061
|
else {
|
|
2936
3062
|
params = {
|
|
2937
3063
|
userId: paramsOrFirst,
|
|
2938
|
-
phone: rest[0]
|
|
3064
|
+
phone: rest[0],
|
|
3065
|
+
scene: rest[1]
|
|
2939
3066
|
};
|
|
2940
3067
|
}
|
|
2941
3068
|
const userId = params.userId;
|
|
2942
3069
|
const phone = params.phone;
|
|
3070
|
+
const scene = params.scene;
|
|
2943
3071
|
if (typeof userId === 'undefined') {
|
|
2944
3072
|
throw new AgentbaseException('Missing required parameter: "userId"');
|
|
2945
3073
|
}
|
|
@@ -2954,6 +3082,9 @@ class Account {
|
|
|
2954
3082
|
if (typeof phone !== 'undefined') {
|
|
2955
3083
|
payload['phone'] = phone;
|
|
2956
3084
|
}
|
|
3085
|
+
if (typeof scene !== 'undefined') {
|
|
3086
|
+
payload['scene'] = scene;
|
|
3087
|
+
}
|
|
2957
3088
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2958
3089
|
const apiHeaders = {
|
|
2959
3090
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -3690,6 +3821,89 @@ class AiGateway {
|
|
|
3690
3821
|
constructor(client) {
|
|
3691
3822
|
this.client = client;
|
|
3692
3823
|
}
|
|
3824
|
+
/**
|
|
3825
|
+
* Manage unified AI Gateway control-plane resources.
|
|
3826
|
+
*
|
|
3827
|
+
* @throws {AgentbaseException}
|
|
3828
|
+
* @returns {Promise<{}>}
|
|
3829
|
+
*/
|
|
3830
|
+
listApprovalRequests() {
|
|
3831
|
+
const apiPath = '/ai-gateway/approval-requests';
|
|
3832
|
+
const payload = {};
|
|
3833
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3834
|
+
const apiHeaders = {
|
|
3835
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
3836
|
+
};
|
|
3837
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
3838
|
+
}
|
|
3839
|
+
getApprovalRequest(paramsOrFirst) {
|
|
3840
|
+
let params;
|
|
3841
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
3842
|
+
params = (paramsOrFirst || {});
|
|
3843
|
+
}
|
|
3844
|
+
else {
|
|
3845
|
+
params = {
|
|
3846
|
+
id: paramsOrFirst
|
|
3847
|
+
};
|
|
3848
|
+
}
|
|
3849
|
+
const id = params.id;
|
|
3850
|
+
if (typeof id === 'undefined') {
|
|
3851
|
+
throw new AgentbaseException('Missing required parameter: "id"');
|
|
3852
|
+
}
|
|
3853
|
+
const apiPath = '/ai-gateway/approval-requests/{id}'.replace('{id}', id);
|
|
3854
|
+
const payload = {};
|
|
3855
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3856
|
+
const apiHeaders = {
|
|
3857
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
3858
|
+
};
|
|
3859
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
3860
|
+
}
|
|
3861
|
+
approveApprovalRequest(paramsOrFirst) {
|
|
3862
|
+
let params;
|
|
3863
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
3864
|
+
params = (paramsOrFirst || {});
|
|
3865
|
+
}
|
|
3866
|
+
else {
|
|
3867
|
+
params = {
|
|
3868
|
+
id: paramsOrFirst
|
|
3869
|
+
};
|
|
3870
|
+
}
|
|
3871
|
+
const id = params.id;
|
|
3872
|
+
if (typeof id === 'undefined') {
|
|
3873
|
+
throw new AgentbaseException('Missing required parameter: "id"');
|
|
3874
|
+
}
|
|
3875
|
+
const apiPath = '/ai-gateway/approval-requests/{id}/approve'.replace('{id}', id);
|
|
3876
|
+
const payload = {};
|
|
3877
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3878
|
+
const apiHeaders = {
|
|
3879
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
3880
|
+
'content-type': 'application/json',
|
|
3881
|
+
};
|
|
3882
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
3883
|
+
}
|
|
3884
|
+
rejectApprovalRequest(paramsOrFirst) {
|
|
3885
|
+
let params;
|
|
3886
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
3887
|
+
params = (paramsOrFirst || {});
|
|
3888
|
+
}
|
|
3889
|
+
else {
|
|
3890
|
+
params = {
|
|
3891
|
+
id: paramsOrFirst
|
|
3892
|
+
};
|
|
3893
|
+
}
|
|
3894
|
+
const id = params.id;
|
|
3895
|
+
if (typeof id === 'undefined') {
|
|
3896
|
+
throw new AgentbaseException('Missing required parameter: "id"');
|
|
3897
|
+
}
|
|
3898
|
+
const apiPath = '/ai-gateway/approval-requests/{id}/reject'.replace('{id}', id);
|
|
3899
|
+
const payload = {};
|
|
3900
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3901
|
+
const apiHeaders = {
|
|
3902
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
3903
|
+
'content-type': 'application/json',
|
|
3904
|
+
};
|
|
3905
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
3906
|
+
}
|
|
3693
3907
|
updateGatewayPolicy(paramsOrFirst) {
|
|
3694
3908
|
let params;
|
|
3695
3909
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -3758,6 +3972,26 @@ class AiGateway {
|
|
|
3758
3972
|
};
|
|
3759
3973
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
3760
3974
|
}
|
|
3975
|
+
/**
|
|
3976
|
+
* 读取当前 Shared V2 项目的 Tool Gateway 初始化状态。请求为 `GET /v1/ai-gateway/initialization-status`,无请求参数。调用方需要项目访问权限和 `aiGateway.read` scope。
|
|
3977
|
+
*
|
|
3978
|
+
* 成功时返回 HTTP 200。`{"status":"ready"}` 表示控制面已确认现有项目表就绪,可沿用原配置重新启用服务。`{"status":"uninitialized"}` 表示项目表尚未就绪,包括尚未建表或迁移标记为 dirty。此查询只读,不会调用模型、建表或开启服务。
|
|
3979
|
+
*
|
|
3980
|
+
* 缺少 `aiGateway.read` 的项目 API Key 会收到 HTTP 401(`general_unauthorized_scope`)。服务被禁用时,非特权调用方也可能先收到 HTTP 403(`general_service_disabled`)。控制面读取存储发生异常或 Core 无法连接控制面时会返回服务端错误,例如 HTTP 500。此时状态未知,调用方应显示错误并允许重试查询。
|
|
3981
|
+
*
|
|
3982
|
+
*
|
|
3983
|
+
* @throws {AgentbaseException}
|
|
3984
|
+
* @returns {Promise<{}>}
|
|
3985
|
+
*/
|
|
3986
|
+
getInitializationStatus() {
|
|
3987
|
+
const apiPath = '/ai-gateway/initialization-status';
|
|
3988
|
+
const payload = {};
|
|
3989
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3990
|
+
const apiHeaders = {
|
|
3991
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
3992
|
+
};
|
|
3993
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
3994
|
+
}
|
|
3761
3995
|
/**
|
|
3762
3996
|
* Manage unified AI Gateway control-plane resources.
|
|
3763
3997
|
*
|
|
@@ -4751,6 +4985,37 @@ class AiGateway {
|
|
|
4751
4985
|
};
|
|
4752
4986
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
4753
4987
|
}
|
|
4988
|
+
/**
|
|
4989
|
+
* Manage unified AI Gateway control-plane resources.
|
|
4990
|
+
*
|
|
4991
|
+
* @throws {AgentbaseException}
|
|
4992
|
+
* @returns {Promise<{}>}
|
|
4993
|
+
*/
|
|
4994
|
+
listToolEmbeddings() {
|
|
4995
|
+
const apiPath = '/ai-gateway/tool-embeddings';
|
|
4996
|
+
const payload = {};
|
|
4997
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4998
|
+
const apiHeaders = {
|
|
4999
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
5000
|
+
};
|
|
5001
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
5002
|
+
}
|
|
5003
|
+
/**
|
|
5004
|
+
* Manage unified AI Gateway control-plane resources.
|
|
5005
|
+
*
|
|
5006
|
+
* @throws {AgentbaseException}
|
|
5007
|
+
* @returns {Promise<{}>}
|
|
5008
|
+
*/
|
|
5009
|
+
createToolEmbeddings() {
|
|
5010
|
+
const apiPath = '/ai-gateway/tool-embeddings';
|
|
5011
|
+
const payload = {};
|
|
5012
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5013
|
+
const apiHeaders = {
|
|
5014
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
5015
|
+
'content-type': 'application/json',
|
|
5016
|
+
};
|
|
5017
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
5018
|
+
}
|
|
4754
5019
|
}
|
|
4755
5020
|
|
|
4756
5021
|
class Avatars {
|
|
@@ -5159,68 +5424,384 @@ class Avatars {
|
|
|
5159
5424
|
}
|
|
5160
5425
|
}
|
|
5161
5426
|
|
|
5162
|
-
class
|
|
5427
|
+
class DataApi {
|
|
5163
5428
|
constructor(client) {
|
|
5164
5429
|
this.client = client;
|
|
5165
5430
|
}
|
|
5166
|
-
|
|
5431
|
+
listBindingDataSources(paramsOrFirst) {
|
|
5167
5432
|
let params;
|
|
5168
|
-
if (
|
|
5433
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5169
5434
|
params = (paramsOrFirst || {});
|
|
5170
5435
|
}
|
|
5171
5436
|
else {
|
|
5172
5437
|
params = {
|
|
5173
|
-
|
|
5438
|
+
accessBindingId: paramsOrFirst
|
|
5174
5439
|
};
|
|
5175
5440
|
}
|
|
5176
|
-
const
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
if (typeof queries !== 'undefined') {
|
|
5180
|
-
payload['queries'] = queries;
|
|
5441
|
+
const accessBindingId = params.accessBindingId;
|
|
5442
|
+
if (typeof accessBindingId === 'undefined') {
|
|
5443
|
+
throw new AgentbaseException('Missing required parameter: "accessBindingId"');
|
|
5181
5444
|
}
|
|
5445
|
+
const apiPath = '/data-api/bindings/{accessBindingId}/catalog/data-sources'.replace('{accessBindingId}', String(accessBindingId));
|
|
5446
|
+
const payload = {};
|
|
5182
5447
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5183
|
-
const apiHeaders = {
|
|
5184
|
-
'X-Appwrite-Project': this.client.config.project,
|
|
5185
|
-
};
|
|
5448
|
+
const apiHeaders = {};
|
|
5186
5449
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
5187
5450
|
}
|
|
5188
|
-
|
|
5451
|
+
listBindingDatabases(paramsOrFirst, ...rest) {
|
|
5189
5452
|
let params;
|
|
5190
|
-
if (
|
|
5453
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5191
5454
|
params = (paramsOrFirst || {});
|
|
5192
5455
|
}
|
|
5193
5456
|
else {
|
|
5194
5457
|
params = {
|
|
5195
|
-
|
|
5458
|
+
accessBindingId: paramsOrFirst,
|
|
5459
|
+
dataSourceId: rest[0]
|
|
5196
5460
|
};
|
|
5197
5461
|
}
|
|
5198
|
-
const
|
|
5199
|
-
const
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
payload['ttl'] = ttl;
|
|
5462
|
+
const accessBindingId = params.accessBindingId;
|
|
5463
|
+
const dataSourceId = params.dataSourceId;
|
|
5464
|
+
if (typeof accessBindingId === 'undefined') {
|
|
5465
|
+
throw new AgentbaseException('Missing required parameter: "accessBindingId"');
|
|
5203
5466
|
}
|
|
5467
|
+
if (typeof dataSourceId === 'undefined') {
|
|
5468
|
+
throw new AgentbaseException('Missing required parameter: "dataSourceId"');
|
|
5469
|
+
}
|
|
5470
|
+
const apiPath = '/data-api/bindings/{accessBindingId}/catalog/data-sources/{dataSourceId}/databases'.replace('{accessBindingId}', String(accessBindingId)).replace('{dataSourceId}', String(dataSourceId));
|
|
5471
|
+
const payload = {};
|
|
5204
5472
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5205
|
-
const apiHeaders = {
|
|
5206
|
-
|
|
5207
|
-
'content-type': 'application/json',
|
|
5208
|
-
};
|
|
5209
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
5473
|
+
const apiHeaders = {};
|
|
5474
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
5210
5475
|
}
|
|
5211
|
-
|
|
5476
|
+
listBindingTables(paramsOrFirst, ...rest) {
|
|
5212
5477
|
let params;
|
|
5213
5478
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5214
5479
|
params = (paramsOrFirst || {});
|
|
5215
5480
|
}
|
|
5216
5481
|
else {
|
|
5217
5482
|
params = {
|
|
5218
|
-
|
|
5483
|
+
accessBindingId: paramsOrFirst,
|
|
5484
|
+
dataSourceId: rest[0],
|
|
5485
|
+
databaseId: rest[1]
|
|
5219
5486
|
};
|
|
5220
5487
|
}
|
|
5221
|
-
const
|
|
5222
|
-
|
|
5223
|
-
|
|
5488
|
+
const accessBindingId = params.accessBindingId;
|
|
5489
|
+
const dataSourceId = params.dataSourceId;
|
|
5490
|
+
const databaseId = params.databaseId;
|
|
5491
|
+
if (typeof accessBindingId === 'undefined') {
|
|
5492
|
+
throw new AgentbaseException('Missing required parameter: "accessBindingId"');
|
|
5493
|
+
}
|
|
5494
|
+
if (typeof dataSourceId === 'undefined') {
|
|
5495
|
+
throw new AgentbaseException('Missing required parameter: "dataSourceId"');
|
|
5496
|
+
}
|
|
5497
|
+
if (typeof databaseId === 'undefined') {
|
|
5498
|
+
throw new AgentbaseException('Missing required parameter: "databaseId"');
|
|
5499
|
+
}
|
|
5500
|
+
const apiPath = '/data-api/bindings/{accessBindingId}/catalog/data-sources/{dataSourceId}/databases/{databaseId}/tables'.replace('{accessBindingId}', String(accessBindingId)).replace('{dataSourceId}', String(dataSourceId)).replace('{databaseId}', String(databaseId));
|
|
5501
|
+
const payload = {};
|
|
5502
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5503
|
+
const apiHeaders = {};
|
|
5504
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
5505
|
+
}
|
|
5506
|
+
getBindingTable(paramsOrFirst, ...rest) {
|
|
5507
|
+
let params;
|
|
5508
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5509
|
+
params = (paramsOrFirst || {});
|
|
5510
|
+
}
|
|
5511
|
+
else {
|
|
5512
|
+
params = {
|
|
5513
|
+
accessBindingId: paramsOrFirst,
|
|
5514
|
+
dataSourceId: rest[0],
|
|
5515
|
+
databaseId: rest[1],
|
|
5516
|
+
tableName: rest[2]
|
|
5517
|
+
};
|
|
5518
|
+
}
|
|
5519
|
+
const accessBindingId = params.accessBindingId;
|
|
5520
|
+
const dataSourceId = params.dataSourceId;
|
|
5521
|
+
const databaseId = params.databaseId;
|
|
5522
|
+
const tableName = params.tableName;
|
|
5523
|
+
if (typeof accessBindingId === 'undefined') {
|
|
5524
|
+
throw new AgentbaseException('Missing required parameter: "accessBindingId"');
|
|
5525
|
+
}
|
|
5526
|
+
if (typeof dataSourceId === 'undefined') {
|
|
5527
|
+
throw new AgentbaseException('Missing required parameter: "dataSourceId"');
|
|
5528
|
+
}
|
|
5529
|
+
if (typeof databaseId === 'undefined') {
|
|
5530
|
+
throw new AgentbaseException('Missing required parameter: "databaseId"');
|
|
5531
|
+
}
|
|
5532
|
+
if (typeof tableName === 'undefined') {
|
|
5533
|
+
throw new AgentbaseException('Missing required parameter: "tableName"');
|
|
5534
|
+
}
|
|
5535
|
+
const apiPath = '/data-api/bindings/{accessBindingId}/catalog/data-sources/{dataSourceId}/databases/{databaseId}/tables/{tableName}'.replace('{accessBindingId}', String(accessBindingId)).replace('{dataSourceId}', String(dataSourceId)).replace('{databaseId}', String(databaseId)).replace('{tableName}', tableName);
|
|
5536
|
+
const payload = {};
|
|
5537
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5538
|
+
const apiHeaders = {};
|
|
5539
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
5540
|
+
}
|
|
5541
|
+
executeNativeSql(paramsOrFirst, ...rest) {
|
|
5542
|
+
let params;
|
|
5543
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5544
|
+
params = (paramsOrFirst || {});
|
|
5545
|
+
}
|
|
5546
|
+
else {
|
|
5547
|
+
params = {
|
|
5548
|
+
accessBindingId: paramsOrFirst,
|
|
5549
|
+
sql: rest[0]
|
|
5550
|
+
};
|
|
5551
|
+
}
|
|
5552
|
+
const accessBindingId = params.accessBindingId;
|
|
5553
|
+
const sql = params.sql;
|
|
5554
|
+
if (typeof accessBindingId === 'undefined') {
|
|
5555
|
+
throw new AgentbaseException('Missing required parameter: "accessBindingId"');
|
|
5556
|
+
}
|
|
5557
|
+
if (typeof sql === 'undefined') {
|
|
5558
|
+
throw new AgentbaseException('Missing required parameter: "sql"');
|
|
5559
|
+
}
|
|
5560
|
+
const apiPath = '/data-api/bindings/{accessBindingId}/native-sql'.replace('{accessBindingId}', String(accessBindingId));
|
|
5561
|
+
const payload = {};
|
|
5562
|
+
if (typeof sql !== 'undefined') {
|
|
5563
|
+
payload['sql'] = sql;
|
|
5564
|
+
}
|
|
5565
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5566
|
+
const apiHeaders = {
|
|
5567
|
+
'content-type': 'application/json',
|
|
5568
|
+
};
|
|
5569
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
5570
|
+
}
|
|
5571
|
+
executeRestAggregates(paramsOrFirst, ...rest) {
|
|
5572
|
+
let params;
|
|
5573
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5574
|
+
params = (paramsOrFirst || {});
|
|
5575
|
+
}
|
|
5576
|
+
else {
|
|
5577
|
+
params = {
|
|
5578
|
+
accessBindingId: paramsOrFirst,
|
|
5579
|
+
databaseId: rest[0],
|
|
5580
|
+
tableName: rest[1],
|
|
5581
|
+
query: rest[2]
|
|
5582
|
+
};
|
|
5583
|
+
}
|
|
5584
|
+
const accessBindingId = params.accessBindingId;
|
|
5585
|
+
const databaseId = params.databaseId;
|
|
5586
|
+
const tableName = params.tableName;
|
|
5587
|
+
const query = params.query;
|
|
5588
|
+
if (typeof accessBindingId === 'undefined') {
|
|
5589
|
+
throw new AgentbaseException('Missing required parameter: "accessBindingId"');
|
|
5590
|
+
}
|
|
5591
|
+
if (typeof databaseId === 'undefined') {
|
|
5592
|
+
throw new AgentbaseException('Missing required parameter: "databaseId"');
|
|
5593
|
+
}
|
|
5594
|
+
if (typeof tableName === 'undefined') {
|
|
5595
|
+
throw new AgentbaseException('Missing required parameter: "tableName"');
|
|
5596
|
+
}
|
|
5597
|
+
if (typeof query === 'undefined') {
|
|
5598
|
+
throw new AgentbaseException('Missing required parameter: "query"');
|
|
5599
|
+
}
|
|
5600
|
+
const apiPath = '/data-api/bindings/{accessBindingId}/rest/databases/{databaseId}/tables/{tableName}/aggregates/query'.replace('{accessBindingId}', String(accessBindingId)).replace('{databaseId}', String(databaseId)).replace('{tableName}', tableName);
|
|
5601
|
+
const payload = {};
|
|
5602
|
+
if (typeof query !== 'undefined') {
|
|
5603
|
+
payload['query'] = query;
|
|
5604
|
+
}
|
|
5605
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5606
|
+
const apiHeaders = {
|
|
5607
|
+
'content-type': 'application/json',
|
|
5608
|
+
};
|
|
5609
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
5610
|
+
}
|
|
5611
|
+
executeRestRows(paramsOrFirst, ...rest) {
|
|
5612
|
+
let params;
|
|
5613
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5614
|
+
params = (paramsOrFirst || {});
|
|
5615
|
+
}
|
|
5616
|
+
else {
|
|
5617
|
+
params = {
|
|
5618
|
+
accessBindingId: paramsOrFirst,
|
|
5619
|
+
databaseId: rest[0],
|
|
5620
|
+
tableName: rest[1],
|
|
5621
|
+
query: rest[2]
|
|
5622
|
+
};
|
|
5623
|
+
}
|
|
5624
|
+
const accessBindingId = params.accessBindingId;
|
|
5625
|
+
const databaseId = params.databaseId;
|
|
5626
|
+
const tableName = params.tableName;
|
|
5627
|
+
const query = params.query;
|
|
5628
|
+
if (typeof accessBindingId === 'undefined') {
|
|
5629
|
+
throw new AgentbaseException('Missing required parameter: "accessBindingId"');
|
|
5630
|
+
}
|
|
5631
|
+
if (typeof databaseId === 'undefined') {
|
|
5632
|
+
throw new AgentbaseException('Missing required parameter: "databaseId"');
|
|
5633
|
+
}
|
|
5634
|
+
if (typeof tableName === 'undefined') {
|
|
5635
|
+
throw new AgentbaseException('Missing required parameter: "tableName"');
|
|
5636
|
+
}
|
|
5637
|
+
if (typeof query === 'undefined') {
|
|
5638
|
+
throw new AgentbaseException('Missing required parameter: "query"');
|
|
5639
|
+
}
|
|
5640
|
+
const apiPath = '/data-api/bindings/{accessBindingId}/rest/databases/{databaseId}/tables/{tableName}/rows/query'.replace('{accessBindingId}', String(accessBindingId)).replace('{databaseId}', String(databaseId)).replace('{tableName}', tableName);
|
|
5641
|
+
const payload = {};
|
|
5642
|
+
if (typeof query !== 'undefined') {
|
|
5643
|
+
payload['query'] = query;
|
|
5644
|
+
}
|
|
5645
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5646
|
+
const apiHeaders = {
|
|
5647
|
+
'content-type': 'application/json',
|
|
5648
|
+
};
|
|
5649
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
5650
|
+
}
|
|
5651
|
+
listMyBindings(paramsOrFirst, ...rest) {
|
|
5652
|
+
let params;
|
|
5653
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5654
|
+
params = (paramsOrFirst || {});
|
|
5655
|
+
}
|
|
5656
|
+
else {
|
|
5657
|
+
params = {
|
|
5658
|
+
cursor: paramsOrFirst,
|
|
5659
|
+
limit: rest[0]
|
|
5660
|
+
};
|
|
5661
|
+
}
|
|
5662
|
+
const cursor = params.cursor;
|
|
5663
|
+
const limit = params.limit;
|
|
5664
|
+
const apiPath = '/data-api/me/bindings';
|
|
5665
|
+
const payload = {};
|
|
5666
|
+
if (typeof cursor !== 'undefined') {
|
|
5667
|
+
payload['cursor'] = cursor;
|
|
5668
|
+
}
|
|
5669
|
+
if (typeof limit !== 'undefined') {
|
|
5670
|
+
payload['limit'] = limit;
|
|
5671
|
+
}
|
|
5672
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5673
|
+
const apiHeaders = {};
|
|
5674
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
5675
|
+
}
|
|
5676
|
+
getMyBinding(paramsOrFirst) {
|
|
5677
|
+
let params;
|
|
5678
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5679
|
+
params = (paramsOrFirst || {});
|
|
5680
|
+
}
|
|
5681
|
+
else {
|
|
5682
|
+
params = {
|
|
5683
|
+
accessBindingId: paramsOrFirst
|
|
5684
|
+
};
|
|
5685
|
+
}
|
|
5686
|
+
const accessBindingId = params.accessBindingId;
|
|
5687
|
+
if (typeof accessBindingId === 'undefined') {
|
|
5688
|
+
throw new AgentbaseException('Missing required parameter: "accessBindingId"');
|
|
5689
|
+
}
|
|
5690
|
+
const apiPath = '/data-api/me/bindings/{accessBindingId}'.replace('{accessBindingId}', String(accessBindingId));
|
|
5691
|
+
const payload = {};
|
|
5692
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5693
|
+
const apiHeaders = {};
|
|
5694
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
5695
|
+
}
|
|
5696
|
+
executeFixedQueryLink(paramsOrFirst) {
|
|
5697
|
+
let params;
|
|
5698
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5699
|
+
params = (paramsOrFirst || {});
|
|
5700
|
+
}
|
|
5701
|
+
else {
|
|
5702
|
+
params = {
|
|
5703
|
+
queryId: paramsOrFirst
|
|
5704
|
+
};
|
|
5705
|
+
}
|
|
5706
|
+
const queryId = params.queryId;
|
|
5707
|
+
if (typeof queryId === 'undefined') {
|
|
5708
|
+
throw new AgentbaseException('Missing required parameter: "queryId"');
|
|
5709
|
+
}
|
|
5710
|
+
const apiPath = '/data-api/public/query-interfaces/{queryId}/executions'.replace('{queryId}', queryId);
|
|
5711
|
+
const payload = {};
|
|
5712
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5713
|
+
const apiHeaders = {
|
|
5714
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
5715
|
+
};
|
|
5716
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
5717
|
+
}
|
|
5718
|
+
executeFixedQuery(paramsOrFirst) {
|
|
5719
|
+
let params;
|
|
5720
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5721
|
+
params = (paramsOrFirst || {});
|
|
5722
|
+
}
|
|
5723
|
+
else {
|
|
5724
|
+
params = {
|
|
5725
|
+
queryId: paramsOrFirst
|
|
5726
|
+
};
|
|
5727
|
+
}
|
|
5728
|
+
const queryId = params.queryId;
|
|
5729
|
+
if (typeof queryId === 'undefined') {
|
|
5730
|
+
throw new AgentbaseException('Missing required parameter: "queryId"');
|
|
5731
|
+
}
|
|
5732
|
+
const apiPath = '/data-api/public/query-interfaces/{queryId}/executions'.replace('{queryId}', queryId);
|
|
5733
|
+
const payload = {};
|
|
5734
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5735
|
+
const apiHeaders = {
|
|
5736
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
5737
|
+
'content-type': 'application/json',
|
|
5738
|
+
};
|
|
5739
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
5740
|
+
}
|
|
5741
|
+
}
|
|
5742
|
+
|
|
5743
|
+
class Databases {
|
|
5744
|
+
constructor(client) {
|
|
5745
|
+
this.client = client;
|
|
5746
|
+
}
|
|
5747
|
+
listTransactions(paramsOrFirst) {
|
|
5748
|
+
let params;
|
|
5749
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5750
|
+
params = (paramsOrFirst || {});
|
|
5751
|
+
}
|
|
5752
|
+
else {
|
|
5753
|
+
params = {
|
|
5754
|
+
queries: paramsOrFirst
|
|
5755
|
+
};
|
|
5756
|
+
}
|
|
5757
|
+
const queries = params.queries;
|
|
5758
|
+
const apiPath = '/databases/transactions';
|
|
5759
|
+
const payload = {};
|
|
5760
|
+
if (typeof queries !== 'undefined') {
|
|
5761
|
+
payload['queries'] = queries;
|
|
5762
|
+
}
|
|
5763
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5764
|
+
const apiHeaders = {
|
|
5765
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
5766
|
+
};
|
|
5767
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
5768
|
+
}
|
|
5769
|
+
createTransaction(paramsOrFirst) {
|
|
5770
|
+
let params;
|
|
5771
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5772
|
+
params = (paramsOrFirst || {});
|
|
5773
|
+
}
|
|
5774
|
+
else {
|
|
5775
|
+
params = {
|
|
5776
|
+
ttl: paramsOrFirst
|
|
5777
|
+
};
|
|
5778
|
+
}
|
|
5779
|
+
const ttl = params.ttl;
|
|
5780
|
+
const apiPath = '/databases/transactions';
|
|
5781
|
+
const payload = {};
|
|
5782
|
+
if (typeof ttl !== 'undefined') {
|
|
5783
|
+
payload['ttl'] = ttl;
|
|
5784
|
+
}
|
|
5785
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5786
|
+
const apiHeaders = {
|
|
5787
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
5788
|
+
'content-type': 'application/json',
|
|
5789
|
+
};
|
|
5790
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
5791
|
+
}
|
|
5792
|
+
getTransaction(paramsOrFirst) {
|
|
5793
|
+
let params;
|
|
5794
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5795
|
+
params = (paramsOrFirst || {});
|
|
5796
|
+
}
|
|
5797
|
+
else {
|
|
5798
|
+
params = {
|
|
5799
|
+
transactionId: paramsOrFirst
|
|
5800
|
+
};
|
|
5801
|
+
}
|
|
5802
|
+
const transactionId = params.transactionId;
|
|
5803
|
+
if (typeof transactionId === 'undefined') {
|
|
5804
|
+
throw new AgentbaseException('Missing required parameter: "transactionId"');
|
|
5224
5805
|
}
|
|
5225
5806
|
const apiPath = '/databases/transactions/{transactionId}'.replace('{transactionId}', transactionId);
|
|
5226
5807
|
const payload = {};
|
|
@@ -6564,45 +7145,199 @@ class Graphql {
|
|
|
6564
7145
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6565
7146
|
const apiHeaders = {
|
|
6566
7147
|
'X-Appwrite-Project': this.client.config.project,
|
|
6567
|
-
'x-sdk-graphql': 'true',
|
|
6568
|
-
'content-type': 'application/json',
|
|
7148
|
+
'x-sdk-graphql': 'true',
|
|
7149
|
+
'content-type': 'application/json',
|
|
7150
|
+
};
|
|
7151
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
7152
|
+
}
|
|
7153
|
+
mutation(paramsOrFirst) {
|
|
7154
|
+
let params;
|
|
7155
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('query' in paramsOrFirst))) {
|
|
7156
|
+
params = (paramsOrFirst || {});
|
|
7157
|
+
}
|
|
7158
|
+
else {
|
|
7159
|
+
params = {
|
|
7160
|
+
query: paramsOrFirst
|
|
7161
|
+
};
|
|
7162
|
+
}
|
|
7163
|
+
const query = params.query;
|
|
7164
|
+
if (typeof query === 'undefined') {
|
|
7165
|
+
throw new AgentbaseException('Missing required parameter: "query"');
|
|
7166
|
+
}
|
|
7167
|
+
const apiPath = '/graphql/mutation';
|
|
7168
|
+
const payload = {};
|
|
7169
|
+
if (typeof query !== 'undefined') {
|
|
7170
|
+
payload['query'] = query;
|
|
7171
|
+
}
|
|
7172
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7173
|
+
const apiHeaders = {
|
|
7174
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
7175
|
+
'x-sdk-graphql': 'true',
|
|
7176
|
+
'content-type': 'application/json',
|
|
7177
|
+
};
|
|
7178
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
7179
|
+
}
|
|
7180
|
+
}
|
|
7181
|
+
|
|
7182
|
+
class KnowledgeBases {
|
|
7183
|
+
constructor(client) {
|
|
7184
|
+
this.client = client;
|
|
7185
|
+
}
|
|
7186
|
+
createYuqueDocuments(paramsOrFirst, ...rest) {
|
|
7187
|
+
let params;
|
|
7188
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
7189
|
+
params = (paramsOrFirst || {});
|
|
7190
|
+
}
|
|
7191
|
+
else {
|
|
7192
|
+
params = {
|
|
7193
|
+
knowledgeBaseId: paramsOrFirst,
|
|
7194
|
+
sessionId: rest[0],
|
|
7195
|
+
urls: rest[1],
|
|
7196
|
+
idempotencyKey: rest[2],
|
|
7197
|
+
versionId: rest[3]
|
|
7198
|
+
};
|
|
7199
|
+
}
|
|
7200
|
+
const knowledgeBaseId = params.knowledgeBaseId;
|
|
7201
|
+
const sessionId = params.sessionId;
|
|
7202
|
+
const urls = params.urls;
|
|
7203
|
+
const idempotencyKey = params.idempotencyKey;
|
|
7204
|
+
const versionId = params.versionId;
|
|
7205
|
+
if (typeof knowledgeBaseId === 'undefined') {
|
|
7206
|
+
throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
|
|
7207
|
+
}
|
|
7208
|
+
if (typeof sessionId === 'undefined') {
|
|
7209
|
+
throw new AgentbaseException('Missing required parameter: "sessionId"');
|
|
7210
|
+
}
|
|
7211
|
+
if (typeof urls === 'undefined') {
|
|
7212
|
+
throw new AgentbaseException('Missing required parameter: "urls"');
|
|
7213
|
+
}
|
|
7214
|
+
const apiPath = '/knowledgebases/{knowledgeBaseId}/documents/yuque'.replace('{knowledgeBaseId}', knowledgeBaseId);
|
|
7215
|
+
const payload = {};
|
|
7216
|
+
if (typeof sessionId !== 'undefined') {
|
|
7217
|
+
payload['sessionId'] = sessionId;
|
|
7218
|
+
}
|
|
7219
|
+
if (typeof urls !== 'undefined') {
|
|
7220
|
+
payload['urls'] = urls;
|
|
7221
|
+
}
|
|
7222
|
+
if (typeof idempotencyKey !== 'undefined') {
|
|
7223
|
+
payload['idempotencyKey'] = idempotencyKey;
|
|
7224
|
+
}
|
|
7225
|
+
if (typeof versionId !== 'undefined') {
|
|
7226
|
+
payload['versionId'] = versionId;
|
|
7227
|
+
}
|
|
7228
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7229
|
+
const apiHeaders = {
|
|
7230
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
7231
|
+
'content-type': 'application/json',
|
|
7232
|
+
};
|
|
7233
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
7234
|
+
}
|
|
7235
|
+
deleteYuqueOAuthCredential(paramsOrFirst) {
|
|
7236
|
+
let params;
|
|
7237
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
7238
|
+
params = (paramsOrFirst || {});
|
|
7239
|
+
}
|
|
7240
|
+
else {
|
|
7241
|
+
params = {
|
|
7242
|
+
knowledgeBaseId: paramsOrFirst
|
|
7243
|
+
};
|
|
7244
|
+
}
|
|
7245
|
+
const knowledgeBaseId = params.knowledgeBaseId;
|
|
7246
|
+
if (typeof knowledgeBaseId === 'undefined') {
|
|
7247
|
+
throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
|
|
7248
|
+
}
|
|
7249
|
+
const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/oauth/credentials/current'.replace('{knowledgeBaseId}', knowledgeBaseId);
|
|
7250
|
+
const payload = {};
|
|
7251
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7252
|
+
const apiHeaders = {
|
|
7253
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
7254
|
+
'content-type': 'application/json',
|
|
7255
|
+
};
|
|
7256
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
7257
|
+
}
|
|
7258
|
+
createYuqueOAuthSession(paramsOrFirst, ...rest) {
|
|
7259
|
+
let params;
|
|
7260
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
7261
|
+
params = (paramsOrFirst || {});
|
|
7262
|
+
}
|
|
7263
|
+
else {
|
|
7264
|
+
params = {
|
|
7265
|
+
knowledgeBaseId: paramsOrFirst,
|
|
7266
|
+
force: rest[0]
|
|
7267
|
+
};
|
|
7268
|
+
}
|
|
7269
|
+
const knowledgeBaseId = params.knowledgeBaseId;
|
|
7270
|
+
const force = params.force;
|
|
7271
|
+
if (typeof knowledgeBaseId === 'undefined') {
|
|
7272
|
+
throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
|
|
7273
|
+
}
|
|
7274
|
+
const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/oauth/sessions'.replace('{knowledgeBaseId}', knowledgeBaseId);
|
|
7275
|
+
const payload = {};
|
|
7276
|
+
if (typeof force !== 'undefined') {
|
|
7277
|
+
payload['force'] = force;
|
|
7278
|
+
}
|
|
7279
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7280
|
+
const apiHeaders = {
|
|
7281
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
7282
|
+
'content-type': 'application/json',
|
|
7283
|
+
};
|
|
7284
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
7285
|
+
}
|
|
7286
|
+
getYuqueOAuthSession(paramsOrFirst, ...rest) {
|
|
7287
|
+
let params;
|
|
7288
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
7289
|
+
params = (paramsOrFirst || {});
|
|
7290
|
+
}
|
|
7291
|
+
else {
|
|
7292
|
+
params = {
|
|
7293
|
+
knowledgeBaseId: paramsOrFirst,
|
|
7294
|
+
sessionId: rest[0]
|
|
7295
|
+
};
|
|
7296
|
+
}
|
|
7297
|
+
const knowledgeBaseId = params.knowledgeBaseId;
|
|
7298
|
+
const sessionId = params.sessionId;
|
|
7299
|
+
if (typeof knowledgeBaseId === 'undefined') {
|
|
7300
|
+
throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
|
|
7301
|
+
}
|
|
7302
|
+
if (typeof sessionId === 'undefined') {
|
|
7303
|
+
throw new AgentbaseException('Missing required parameter: "sessionId"');
|
|
7304
|
+
}
|
|
7305
|
+
const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/oauth/sessions/{sessionId}'.replace('{knowledgeBaseId}', knowledgeBaseId).replace('{sessionId}', sessionId);
|
|
7306
|
+
const payload = {};
|
|
7307
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7308
|
+
const apiHeaders = {
|
|
7309
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
6569
7310
|
};
|
|
6570
|
-
return this.client.call('
|
|
7311
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
6571
7312
|
}
|
|
6572
|
-
|
|
7313
|
+
listYuquePersonalDataSources(paramsOrFirst, ...rest) {
|
|
6573
7314
|
let params;
|
|
6574
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)
|
|
7315
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6575
7316
|
params = (paramsOrFirst || {});
|
|
6576
7317
|
}
|
|
6577
7318
|
else {
|
|
6578
7319
|
params = {
|
|
6579
|
-
|
|
7320
|
+
knowledgeBaseId: paramsOrFirst,
|
|
7321
|
+
versionId: rest[0]
|
|
6580
7322
|
};
|
|
6581
7323
|
}
|
|
6582
|
-
const
|
|
6583
|
-
|
|
6584
|
-
|
|
7324
|
+
const knowledgeBaseId = params.knowledgeBaseId;
|
|
7325
|
+
const versionId = params.versionId;
|
|
7326
|
+
if (typeof knowledgeBaseId === 'undefined') {
|
|
7327
|
+
throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
|
|
6585
7328
|
}
|
|
6586
|
-
const apiPath = '/
|
|
7329
|
+
const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/personal-datasources'.replace('{knowledgeBaseId}', knowledgeBaseId);
|
|
6587
7330
|
const payload = {};
|
|
6588
|
-
if (typeof
|
|
6589
|
-
payload['
|
|
7331
|
+
if (typeof versionId !== 'undefined') {
|
|
7332
|
+
payload['versionId'] = versionId;
|
|
6590
7333
|
}
|
|
6591
7334
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6592
7335
|
const apiHeaders = {
|
|
6593
7336
|
'X-Appwrite-Project': this.client.config.project,
|
|
6594
|
-
'x-sdk-graphql': 'true',
|
|
6595
|
-
'content-type': 'application/json',
|
|
6596
7337
|
};
|
|
6597
|
-
return this.client.call('
|
|
6598
|
-
}
|
|
6599
|
-
}
|
|
6600
|
-
|
|
6601
|
-
class KnowledgeBases {
|
|
6602
|
-
constructor(client) {
|
|
6603
|
-
this.client = client;
|
|
7338
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
6604
7339
|
}
|
|
6605
|
-
|
|
7340
|
+
createYuquePersonalDataSource(paramsOrFirst, ...rest) {
|
|
6606
7341
|
let params;
|
|
6607
7342
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6608
7343
|
params = (paramsOrFirst || {});
|
|
@@ -6611,38 +7346,56 @@ class KnowledgeBases {
|
|
|
6611
7346
|
params = {
|
|
6612
7347
|
knowledgeBaseId: paramsOrFirst,
|
|
6613
7348
|
sessionId: rest[0],
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
versionId: rest[3]
|
|
7349
|
+
name: rest[1],
|
|
7350
|
+
urls: rest[2],
|
|
7351
|
+
versionId: rest[3],
|
|
7352
|
+
syncSchedule: rest[4],
|
|
7353
|
+
status: rest[5],
|
|
7354
|
+
triggerSync: rest[6]
|
|
6617
7355
|
};
|
|
6618
7356
|
}
|
|
6619
7357
|
const knowledgeBaseId = params.knowledgeBaseId;
|
|
6620
7358
|
const sessionId = params.sessionId;
|
|
7359
|
+
const name = params.name;
|
|
6621
7360
|
const urls = params.urls;
|
|
6622
|
-
const idempotencyKey = params.idempotencyKey;
|
|
6623
7361
|
const versionId = params.versionId;
|
|
7362
|
+
const syncSchedule = params.syncSchedule;
|
|
7363
|
+
const status = params.status;
|
|
7364
|
+
const triggerSync = params.triggerSync;
|
|
6624
7365
|
if (typeof knowledgeBaseId === 'undefined') {
|
|
6625
7366
|
throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
|
|
6626
7367
|
}
|
|
6627
7368
|
if (typeof sessionId === 'undefined') {
|
|
6628
7369
|
throw new AgentbaseException('Missing required parameter: "sessionId"');
|
|
6629
7370
|
}
|
|
7371
|
+
if (typeof name === 'undefined') {
|
|
7372
|
+
throw new AgentbaseException('Missing required parameter: "name"');
|
|
7373
|
+
}
|
|
6630
7374
|
if (typeof urls === 'undefined') {
|
|
6631
7375
|
throw new AgentbaseException('Missing required parameter: "urls"');
|
|
6632
7376
|
}
|
|
6633
|
-
const apiPath = '/knowledgebases/{knowledgeBaseId}/
|
|
7377
|
+
const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/personal-datasources'.replace('{knowledgeBaseId}', knowledgeBaseId);
|
|
6634
7378
|
const payload = {};
|
|
7379
|
+
if (typeof versionId !== 'undefined') {
|
|
7380
|
+
payload['versionId'] = versionId;
|
|
7381
|
+
}
|
|
6635
7382
|
if (typeof sessionId !== 'undefined') {
|
|
6636
7383
|
payload['sessionId'] = sessionId;
|
|
6637
7384
|
}
|
|
7385
|
+
if (typeof name !== 'undefined') {
|
|
7386
|
+
payload['name'] = name;
|
|
7387
|
+
}
|
|
6638
7388
|
if (typeof urls !== 'undefined') {
|
|
6639
7389
|
payload['urls'] = urls;
|
|
6640
7390
|
}
|
|
6641
|
-
if (typeof
|
|
6642
|
-
payload['
|
|
7391
|
+
if (typeof syncSchedule !== 'undefined') {
|
|
7392
|
+
payload['syncSchedule'] = syncSchedule;
|
|
6643
7393
|
}
|
|
6644
|
-
if (typeof
|
|
6645
|
-
payload['
|
|
7394
|
+
if (typeof status !== 'undefined') {
|
|
7395
|
+
payload['status'] = status;
|
|
7396
|
+
}
|
|
7397
|
+
if (typeof triggerSync !== 'undefined') {
|
|
7398
|
+
payload['triggerSync'] = triggerSync;
|
|
6646
7399
|
}
|
|
6647
7400
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6648
7401
|
const apiHeaders = {
|
|
@@ -6651,30 +7404,39 @@ class KnowledgeBases {
|
|
|
6651
7404
|
};
|
|
6652
7405
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
6653
7406
|
}
|
|
6654
|
-
|
|
7407
|
+
getYuquePersonalDataSource(paramsOrFirst, ...rest) {
|
|
6655
7408
|
let params;
|
|
6656
7409
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6657
7410
|
params = (paramsOrFirst || {});
|
|
6658
7411
|
}
|
|
6659
7412
|
else {
|
|
6660
7413
|
params = {
|
|
6661
|
-
knowledgeBaseId: paramsOrFirst
|
|
7414
|
+
knowledgeBaseId: paramsOrFirst,
|
|
7415
|
+
dataSourceId: rest[0],
|
|
7416
|
+
versionId: rest[1]
|
|
6662
7417
|
};
|
|
6663
7418
|
}
|
|
6664
7419
|
const knowledgeBaseId = params.knowledgeBaseId;
|
|
7420
|
+
const dataSourceId = params.dataSourceId;
|
|
7421
|
+
const versionId = params.versionId;
|
|
6665
7422
|
if (typeof knowledgeBaseId === 'undefined') {
|
|
6666
7423
|
throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
|
|
6667
7424
|
}
|
|
6668
|
-
|
|
7425
|
+
if (typeof dataSourceId === 'undefined') {
|
|
7426
|
+
throw new AgentbaseException('Missing required parameter: "dataSourceId"');
|
|
7427
|
+
}
|
|
7428
|
+
const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/personal-datasources/{dataSourceId}'.replace('{knowledgeBaseId}', knowledgeBaseId).replace('{dataSourceId}', dataSourceId);
|
|
6669
7429
|
const payload = {};
|
|
7430
|
+
if (typeof versionId !== 'undefined') {
|
|
7431
|
+
payload['versionId'] = versionId;
|
|
7432
|
+
}
|
|
6670
7433
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6671
7434
|
const apiHeaders = {
|
|
6672
7435
|
'X-Appwrite-Project': this.client.config.project,
|
|
6673
|
-
'content-type': 'application/json',
|
|
6674
7436
|
};
|
|
6675
|
-
return this.client.call('
|
|
7437
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
6676
7438
|
}
|
|
6677
|
-
|
|
7439
|
+
updateYuquePersonalDataSource(paramsOrFirst, ...rest) {
|
|
6678
7440
|
let params;
|
|
6679
7441
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6680
7442
|
params = (paramsOrFirst || {});
|
|
@@ -6682,27 +7444,52 @@ class KnowledgeBases {
|
|
|
6682
7444
|
else {
|
|
6683
7445
|
params = {
|
|
6684
7446
|
knowledgeBaseId: paramsOrFirst,
|
|
6685
|
-
|
|
7447
|
+
dataSourceId: rest[0],
|
|
7448
|
+
versionId: rest[1],
|
|
7449
|
+
name: rest[2],
|
|
7450
|
+
urls: rest[3],
|
|
7451
|
+
syncSchedule: rest[4],
|
|
7452
|
+
status: rest[5]
|
|
6686
7453
|
};
|
|
6687
7454
|
}
|
|
6688
7455
|
const knowledgeBaseId = params.knowledgeBaseId;
|
|
6689
|
-
const
|
|
7456
|
+
const dataSourceId = params.dataSourceId;
|
|
7457
|
+
const versionId = params.versionId;
|
|
7458
|
+
const name = params.name;
|
|
7459
|
+
const urls = params.urls;
|
|
7460
|
+
const syncSchedule = params.syncSchedule;
|
|
7461
|
+
const status = params.status;
|
|
6690
7462
|
if (typeof knowledgeBaseId === 'undefined') {
|
|
6691
7463
|
throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
|
|
6692
7464
|
}
|
|
6693
|
-
|
|
7465
|
+
if (typeof dataSourceId === 'undefined') {
|
|
7466
|
+
throw new AgentbaseException('Missing required parameter: "dataSourceId"');
|
|
7467
|
+
}
|
|
7468
|
+
const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/personal-datasources/{dataSourceId}'.replace('{knowledgeBaseId}', knowledgeBaseId).replace('{dataSourceId}', dataSourceId);
|
|
6694
7469
|
const payload = {};
|
|
6695
|
-
if (typeof
|
|
6696
|
-
payload['
|
|
7470
|
+
if (typeof versionId !== 'undefined') {
|
|
7471
|
+
payload['versionId'] = versionId;
|
|
7472
|
+
}
|
|
7473
|
+
if (typeof name !== 'undefined') {
|
|
7474
|
+
payload['name'] = name;
|
|
7475
|
+
}
|
|
7476
|
+
if (typeof urls !== 'undefined') {
|
|
7477
|
+
payload['urls'] = urls;
|
|
7478
|
+
}
|
|
7479
|
+
if (typeof syncSchedule !== 'undefined') {
|
|
7480
|
+
payload['syncSchedule'] = syncSchedule;
|
|
7481
|
+
}
|
|
7482
|
+
if (typeof status !== 'undefined') {
|
|
7483
|
+
payload['status'] = status;
|
|
6697
7484
|
}
|
|
6698
7485
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6699
7486
|
const apiHeaders = {
|
|
6700
7487
|
'X-Appwrite-Project': this.client.config.project,
|
|
6701
7488
|
'content-type': 'application/json',
|
|
6702
7489
|
};
|
|
6703
|
-
return this.client.call('
|
|
7490
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
6704
7491
|
}
|
|
6705
|
-
|
|
7492
|
+
deleteYuquePersonalDataSource(paramsOrFirst, ...rest) {
|
|
6706
7493
|
let params;
|
|
6707
7494
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6708
7495
|
params = (paramsOrFirst || {});
|
|
@@ -6710,24 +7497,30 @@ class KnowledgeBases {
|
|
|
6710
7497
|
else {
|
|
6711
7498
|
params = {
|
|
6712
7499
|
knowledgeBaseId: paramsOrFirst,
|
|
6713
|
-
|
|
7500
|
+
dataSourceId: rest[0],
|
|
7501
|
+
versionId: rest[1]
|
|
6714
7502
|
};
|
|
6715
7503
|
}
|
|
6716
7504
|
const knowledgeBaseId = params.knowledgeBaseId;
|
|
6717
|
-
const
|
|
7505
|
+
const dataSourceId = params.dataSourceId;
|
|
7506
|
+
const versionId = params.versionId;
|
|
6718
7507
|
if (typeof knowledgeBaseId === 'undefined') {
|
|
6719
7508
|
throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
|
|
6720
7509
|
}
|
|
6721
|
-
if (typeof
|
|
6722
|
-
throw new AgentbaseException('Missing required parameter: "
|
|
7510
|
+
if (typeof dataSourceId === 'undefined') {
|
|
7511
|
+
throw new AgentbaseException('Missing required parameter: "dataSourceId"');
|
|
6723
7512
|
}
|
|
6724
|
-
const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/
|
|
7513
|
+
const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/personal-datasources/{dataSourceId}'.replace('{knowledgeBaseId}', knowledgeBaseId).replace('{dataSourceId}', dataSourceId);
|
|
6725
7514
|
const payload = {};
|
|
7515
|
+
if (typeof versionId !== 'undefined') {
|
|
7516
|
+
payload['versionId'] = versionId;
|
|
7517
|
+
}
|
|
6726
7518
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6727
7519
|
const apiHeaders = {
|
|
6728
7520
|
'X-Appwrite-Project': this.client.config.project,
|
|
7521
|
+
'content-type': 'application/json',
|
|
6729
7522
|
};
|
|
6730
|
-
return this.client.call('
|
|
7523
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
6731
7524
|
}
|
|
6732
7525
|
}
|
|
6733
7526
|
|
|
@@ -6938,7 +7731,8 @@ class LlmGateway {
|
|
|
6938
7731
|
query: rest[0],
|
|
6939
7732
|
documents: rest[1],
|
|
6940
7733
|
topN: rest[2],
|
|
6941
|
-
returnDocuments: rest[3]
|
|
7734
|
+
returnDocuments: rest[3],
|
|
7735
|
+
instruct: rest[4]
|
|
6942
7736
|
};
|
|
6943
7737
|
}
|
|
6944
7738
|
const model = params.model;
|
|
@@ -6946,6 +7740,7 @@ class LlmGateway {
|
|
|
6946
7740
|
const documents = params.documents;
|
|
6947
7741
|
const topN = params.topN;
|
|
6948
7742
|
const returnDocuments = params.returnDocuments;
|
|
7743
|
+
const instruct = params.instruct;
|
|
6949
7744
|
if (typeof model === 'undefined') {
|
|
6950
7745
|
throw new AgentbaseException('Missing required parameter: "model"');
|
|
6951
7746
|
}
|
|
@@ -6972,6 +7767,9 @@ class LlmGateway {
|
|
|
6972
7767
|
if (typeof returnDocuments !== 'undefined') {
|
|
6973
7768
|
payload['returnDocuments'] = returnDocuments;
|
|
6974
7769
|
}
|
|
7770
|
+
if (typeof instruct !== 'undefined') {
|
|
7771
|
+
payload['instruct'] = instruct;
|
|
7772
|
+
}
|
|
6975
7773
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6976
7774
|
const apiHeaders = {
|
|
6977
7775
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -7325,9 +8123,10 @@ class Memory {
|
|
|
7325
8123
|
sensitivity: rest[10],
|
|
7326
8124
|
handlingPolicy: rest[11],
|
|
7327
8125
|
metadata: rest[12],
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
8126
|
+
sourceContext: rest[13],
|
|
8127
|
+
infer: rest[14],
|
|
8128
|
+
reRemember: rest[15],
|
|
8129
|
+
async: rest[16]
|
|
7331
8130
|
};
|
|
7332
8131
|
}
|
|
7333
8132
|
const userId = params.userId;
|
|
@@ -7344,6 +8143,7 @@ class Memory {
|
|
|
7344
8143
|
const sensitivity = params.sensitivity;
|
|
7345
8144
|
const handlingPolicy = params.handlingPolicy;
|
|
7346
8145
|
const metadata = params.metadata;
|
|
8146
|
+
const sourceContext = params.sourceContext;
|
|
7347
8147
|
const infer = params.infer;
|
|
7348
8148
|
const reRemember = params.reRemember;
|
|
7349
8149
|
const async = params.async;
|
|
@@ -7403,6 +8203,9 @@ class Memory {
|
|
|
7403
8203
|
if (typeof metadata !== 'undefined') {
|
|
7404
8204
|
payload['metadata'] = metadata;
|
|
7405
8205
|
}
|
|
8206
|
+
if (typeof sourceContext !== 'undefined') {
|
|
8207
|
+
payload['sourceContext'] = sourceContext;
|
|
8208
|
+
}
|
|
7406
8209
|
if (typeof infer !== 'undefined') {
|
|
7407
8210
|
payload['infer'] = infer;
|
|
7408
8211
|
}
|
|
@@ -9257,6 +10060,43 @@ class Memory {
|
|
|
9257
10060
|
};
|
|
9258
10061
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
9259
10062
|
}
|
|
10063
|
+
listProfiles(paramsOrFirst, ...rest) {
|
|
10064
|
+
let params;
|
|
10065
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
10066
|
+
params = (paramsOrFirst || {});
|
|
10067
|
+
}
|
|
10068
|
+
else {
|
|
10069
|
+
params = {
|
|
10070
|
+
cursor: paramsOrFirst,
|
|
10071
|
+
limit: rest[0],
|
|
10072
|
+
userId: rest[1],
|
|
10073
|
+
profileType: rest[2]
|
|
10074
|
+
};
|
|
10075
|
+
}
|
|
10076
|
+
const cursor = params.cursor;
|
|
10077
|
+
const limit = params.limit;
|
|
10078
|
+
const userId = params.userId;
|
|
10079
|
+
const profileType = params.profileType;
|
|
10080
|
+
const apiPath = '/memory/memories/profiles';
|
|
10081
|
+
const payload = {};
|
|
10082
|
+
if (typeof cursor !== 'undefined') {
|
|
10083
|
+
payload['cursor'] = cursor;
|
|
10084
|
+
}
|
|
10085
|
+
if (typeof limit !== 'undefined') {
|
|
10086
|
+
payload['limit'] = limit;
|
|
10087
|
+
}
|
|
10088
|
+
if (typeof userId !== 'undefined') {
|
|
10089
|
+
payload['userId'] = userId;
|
|
10090
|
+
}
|
|
10091
|
+
if (typeof profileType !== 'undefined') {
|
|
10092
|
+
payload['profileType'] = profileType;
|
|
10093
|
+
}
|
|
10094
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10095
|
+
const apiHeaders = {
|
|
10096
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
10097
|
+
};
|
|
10098
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
10099
|
+
}
|
|
9260
10100
|
/**
|
|
9261
10101
|
* Get a memory quality report.
|
|
9262
10102
|
*
|
|
@@ -9371,13 +10211,14 @@ class Memory {
|
|
|
9371
10211
|
memoryType: rest[7],
|
|
9372
10212
|
recordKind: rest[8],
|
|
9373
10213
|
filter: rest[9],
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
10214
|
+
temporal: rest[10],
|
|
10215
|
+
limit: rest[11],
|
|
10216
|
+
cursor: rest[12],
|
|
10217
|
+
sort: rest[13],
|
|
10218
|
+
memorySubStoreId: rest[14],
|
|
10219
|
+
sessionId: rest[15],
|
|
10220
|
+
groupId: rest[16],
|
|
10221
|
+
accessMode: rest[17]
|
|
9381
10222
|
};
|
|
9382
10223
|
}
|
|
9383
10224
|
const query = params.query;
|
|
@@ -9391,6 +10232,7 @@ class Memory {
|
|
|
9391
10232
|
const memoryType = params.memoryType;
|
|
9392
10233
|
const recordKind = params.recordKind;
|
|
9393
10234
|
const filter = params.filter;
|
|
10235
|
+
const temporal = params.temporal;
|
|
9394
10236
|
const limit = params.limit;
|
|
9395
10237
|
const cursor = params.cursor;
|
|
9396
10238
|
const sort = params.sort;
|
|
@@ -9433,6 +10275,9 @@ class Memory {
|
|
|
9433
10275
|
if (typeof filter !== 'undefined') {
|
|
9434
10276
|
payload['filter'] = filter;
|
|
9435
10277
|
}
|
|
10278
|
+
if (typeof temporal !== 'undefined') {
|
|
10279
|
+
payload['temporal'] = temporal;
|
|
10280
|
+
}
|
|
9436
10281
|
if (typeof limit !== 'undefined') {
|
|
9437
10282
|
payload['limit'] = limit;
|
|
9438
10283
|
}
|
|
@@ -10158,6 +11003,110 @@ class Memory {
|
|
|
10158
11003
|
};
|
|
10159
11004
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
10160
11005
|
}
|
|
11006
|
+
listPipelineRuns(paramsOrFirst, ...rest) {
|
|
11007
|
+
let params;
|
|
11008
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('scenario' in paramsOrFirst || 'limit' in paramsOrFirst || 'cursor' in paramsOrFirst))) {
|
|
11009
|
+
params = (paramsOrFirst || {});
|
|
11010
|
+
}
|
|
11011
|
+
else {
|
|
11012
|
+
params = {
|
|
11013
|
+
scenario: paramsOrFirst,
|
|
11014
|
+
limit: rest[0],
|
|
11015
|
+
cursor: rest[1]
|
|
11016
|
+
};
|
|
11017
|
+
}
|
|
11018
|
+
const scenario = params.scenario;
|
|
11019
|
+
const limit = params.limit;
|
|
11020
|
+
const cursor = params.cursor;
|
|
11021
|
+
const apiPath = '/memory/pipeline-runs';
|
|
11022
|
+
const payload = {};
|
|
11023
|
+
if (typeof scenario !== 'undefined') {
|
|
11024
|
+
payload['scenario'] = scenario;
|
|
11025
|
+
}
|
|
11026
|
+
if (typeof limit !== 'undefined') {
|
|
11027
|
+
payload['limit'] = limit;
|
|
11028
|
+
}
|
|
11029
|
+
if (typeof cursor !== 'undefined') {
|
|
11030
|
+
payload['cursor'] = cursor;
|
|
11031
|
+
}
|
|
11032
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11033
|
+
const apiHeaders = {
|
|
11034
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
11035
|
+
};
|
|
11036
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
11037
|
+
}
|
|
11038
|
+
createPipelineRun(paramsOrFirst, ...rest) {
|
|
11039
|
+
let params;
|
|
11040
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
11041
|
+
params = (paramsOrFirst || {});
|
|
11042
|
+
}
|
|
11043
|
+
else {
|
|
11044
|
+
params = {
|
|
11045
|
+
name: paramsOrFirst,
|
|
11046
|
+
scenario: rest[0],
|
|
11047
|
+
candidates: rest[1],
|
|
11048
|
+
samples: rest[2]
|
|
11049
|
+
};
|
|
11050
|
+
}
|
|
11051
|
+
const name = params.name;
|
|
11052
|
+
const scenario = params.scenario;
|
|
11053
|
+
const candidates = params.candidates;
|
|
11054
|
+
const samples = params.samples;
|
|
11055
|
+
if (typeof name === 'undefined') {
|
|
11056
|
+
throw new AgentbaseException('Missing required parameter: "name"');
|
|
11057
|
+
}
|
|
11058
|
+
if (typeof scenario === 'undefined') {
|
|
11059
|
+
throw new AgentbaseException('Missing required parameter: "scenario"');
|
|
11060
|
+
}
|
|
11061
|
+
if (typeof candidates === 'undefined') {
|
|
11062
|
+
throw new AgentbaseException('Missing required parameter: "candidates"');
|
|
11063
|
+
}
|
|
11064
|
+
if (typeof samples === 'undefined') {
|
|
11065
|
+
throw new AgentbaseException('Missing required parameter: "samples"');
|
|
11066
|
+
}
|
|
11067
|
+
const apiPath = '/memory/pipeline-runs';
|
|
11068
|
+
const payload = {};
|
|
11069
|
+
if (typeof name !== 'undefined') {
|
|
11070
|
+
payload['name'] = name;
|
|
11071
|
+
}
|
|
11072
|
+
if (typeof scenario !== 'undefined') {
|
|
11073
|
+
payload['scenario'] = scenario;
|
|
11074
|
+
}
|
|
11075
|
+
if (typeof candidates !== 'undefined') {
|
|
11076
|
+
payload['candidates'] = candidates;
|
|
11077
|
+
}
|
|
11078
|
+
if (typeof samples !== 'undefined') {
|
|
11079
|
+
payload['samples'] = samples;
|
|
11080
|
+
}
|
|
11081
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11082
|
+
const apiHeaders = {
|
|
11083
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
11084
|
+
'content-type': 'application/json',
|
|
11085
|
+
};
|
|
11086
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
11087
|
+
}
|
|
11088
|
+
getPipelineRun(paramsOrFirst) {
|
|
11089
|
+
let params;
|
|
11090
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
11091
|
+
params = (paramsOrFirst || {});
|
|
11092
|
+
}
|
|
11093
|
+
else {
|
|
11094
|
+
params = {
|
|
11095
|
+
runId: paramsOrFirst
|
|
11096
|
+
};
|
|
11097
|
+
}
|
|
11098
|
+
const runId = params.runId;
|
|
11099
|
+
if (typeof runId === 'undefined') {
|
|
11100
|
+
throw new AgentbaseException('Missing required parameter: "runId"');
|
|
11101
|
+
}
|
|
11102
|
+
const apiPath = '/memory/pipeline-runs/{runId}'.replace('{runId}', runId);
|
|
11103
|
+
const payload = {};
|
|
11104
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11105
|
+
const apiHeaders = {
|
|
11106
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
11107
|
+
};
|
|
11108
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
11109
|
+
}
|
|
10161
11110
|
listPipelines(paramsOrFirst) {
|
|
10162
11111
|
let params;
|
|
10163
11112
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('scenario' in paramsOrFirst))) {
|
|
@@ -10430,12 +11379,14 @@ class Memory {
|
|
|
10430
11379
|
params = {
|
|
10431
11380
|
pipelineId: paramsOrFirst,
|
|
10432
11381
|
versionId: rest[0],
|
|
10433
|
-
data: rest[1]
|
|
11382
|
+
data: rest[1],
|
|
11383
|
+
scenario: rest[2]
|
|
10434
11384
|
};
|
|
10435
11385
|
}
|
|
10436
11386
|
const pipelineId = params.pipelineId;
|
|
10437
11387
|
const versionId = params.versionId;
|
|
10438
11388
|
const data = params.data;
|
|
11389
|
+
const scenario = params.scenario;
|
|
10439
11390
|
if (typeof pipelineId === 'undefined') {
|
|
10440
11391
|
throw new AgentbaseException('Missing required parameter: "pipelineId"');
|
|
10441
11392
|
}
|
|
@@ -10450,6 +11401,9 @@ class Memory {
|
|
|
10450
11401
|
if (typeof versionId !== 'undefined') {
|
|
10451
11402
|
payload['versionId'] = versionId;
|
|
10452
11403
|
}
|
|
11404
|
+
if (typeof scenario !== 'undefined') {
|
|
11405
|
+
payload['scenario'] = scenario;
|
|
11406
|
+
}
|
|
10453
11407
|
if (typeof data !== 'undefined') {
|
|
10454
11408
|
payload['data'] = data;
|
|
10455
11409
|
}
|
|
@@ -14143,6 +15097,12 @@ exports.AuthenticationFactor = void 0;
|
|
|
14143
15097
|
AuthenticationFactor["Recoverycode"] = "recoverycode";
|
|
14144
15098
|
})(exports.AuthenticationFactor || (exports.AuthenticationFactor = {}));
|
|
14145
15099
|
|
|
15100
|
+
exports.Scene = void 0;
|
|
15101
|
+
(function (Scene) {
|
|
15102
|
+
Scene["Verify"] = "verify";
|
|
15103
|
+
Scene["AccountChange"] = "accountChange";
|
|
15104
|
+
})(exports.Scene || (exports.Scene = {}));
|
|
15105
|
+
|
|
14146
15106
|
exports.OAuthProvider = void 0;
|
|
14147
15107
|
(function (OAuthProvider) {
|
|
14148
15108
|
OAuthProvider["Amazon"] = "amazon";
|
|
@@ -14211,6 +15171,8 @@ exports.Status = void 0;
|
|
|
14211
15171
|
Status["Approved"] = "approved";
|
|
14212
15172
|
Status["Rejected"] = "rejected";
|
|
14213
15173
|
Status["Superseded"] = "superseded";
|
|
15174
|
+
Status["Disabled"] = "disabled";
|
|
15175
|
+
Status["Error"] = "error";
|
|
14214
15176
|
})(exports.Status || (exports.Status = {}));
|
|
14215
15177
|
|
|
14216
15178
|
exports.Browser = void 0;
|
|
@@ -14680,6 +15642,7 @@ exports.Timezone = void 0;
|
|
|
14680
15642
|
Timezone["AsiaBaku"] = "asia/baku";
|
|
14681
15643
|
Timezone["AsiaBangkok"] = "asia/bangkok";
|
|
14682
15644
|
Timezone["AsiaBarnaul"] = "asia/barnaul";
|
|
15645
|
+
Timezone["AsiaBeijing"] = "asia/beijing";
|
|
14683
15646
|
Timezone["AsiaBeirut"] = "asia/beirut";
|
|
14684
15647
|
Timezone["AsiaBishkek"] = "asia/bishkek";
|
|
14685
15648
|
Timezone["AsiaBrunei"] = "asia/brunei";
|
|
@@ -15056,6 +16019,12 @@ exports.VerificationSource = void 0;
|
|
|
15056
16019
|
VerificationSource["Toolresult"] = "tool-result";
|
|
15057
16020
|
})(exports.VerificationSource || (exports.VerificationSource = {}));
|
|
15058
16021
|
|
|
16022
|
+
exports.ProfileType = void 0;
|
|
16023
|
+
(function (ProfileType) {
|
|
16024
|
+
ProfileType["Content"] = "content";
|
|
16025
|
+
ProfileType["Topics"] = "topics";
|
|
16026
|
+
})(exports.ProfileType || (exports.ProfileType = {}));
|
|
16027
|
+
|
|
15059
16028
|
exports.Kinds = void 0;
|
|
15060
16029
|
(function (Kinds) {
|
|
15061
16030
|
Kinds["Memory"] = "memory";
|
|
@@ -15064,12 +16033,6 @@ exports.Kinds = void 0;
|
|
|
15064
16033
|
Kinds["Experience"] = "experience";
|
|
15065
16034
|
})(exports.Kinds || (exports.Kinds = {}));
|
|
15066
16035
|
|
|
15067
|
-
exports.ProfileType = void 0;
|
|
15068
|
-
(function (ProfileType) {
|
|
15069
|
-
ProfileType["Content"] = "content";
|
|
15070
|
-
ProfileType["Topics"] = "topics";
|
|
15071
|
-
})(exports.ProfileType || (exports.ProfileType = {}));
|
|
15072
|
-
|
|
15073
16036
|
exports.ProfileExtractionMode = void 0;
|
|
15074
16037
|
(function (ProfileExtractionMode) {
|
|
15075
16038
|
ProfileExtractionMode["Incremental"] = "incremental";
|
|
@@ -15139,6 +16102,12 @@ exports.TransactionAction = void 0;
|
|
|
15139
16102
|
TransactionAction["BulkDelete"] = "bulkDelete";
|
|
15140
16103
|
})(exports.TransactionAction || (exports.TransactionAction = {}));
|
|
15141
16104
|
|
|
16105
|
+
exports.DataApiFilterLogic = void 0;
|
|
16106
|
+
(function (DataApiFilterLogic) {
|
|
16107
|
+
DataApiFilterLogic["And"] = "AND";
|
|
16108
|
+
DataApiFilterLogic["Or"] = "OR";
|
|
16109
|
+
})(exports.DataApiFilterLogic || (exports.DataApiFilterLogic = {}));
|
|
16110
|
+
|
|
15142
16111
|
exports.MemoryMessageRole = void 0;
|
|
15143
16112
|
(function (MemoryMessageRole) {
|
|
15144
16113
|
MemoryMessageRole["User"] = "user";
|
|
@@ -15181,6 +16150,63 @@ exports.DistillationToolStatus = void 0;
|
|
|
15181
16150
|
DistillationToolStatus["Failed"] = "failed";
|
|
15182
16151
|
})(exports.DistillationToolStatus || (exports.DistillationToolStatus = {}));
|
|
15183
16152
|
|
|
16153
|
+
exports.DataApiOwnedBindingPrincipalType = void 0;
|
|
16154
|
+
(function (DataApiOwnedBindingPrincipalType) {
|
|
16155
|
+
DataApiOwnedBindingPrincipalType["USER"] = "USER";
|
|
16156
|
+
DataApiOwnedBindingPrincipalType["SERVICE"] = "SERVICE";
|
|
16157
|
+
})(exports.DataApiOwnedBindingPrincipalType || (exports.DataApiOwnedBindingPrincipalType = {}));
|
|
16158
|
+
|
|
16159
|
+
exports.DataApiOwnedBindingStatus = void 0;
|
|
16160
|
+
(function (DataApiOwnedBindingStatus) {
|
|
16161
|
+
DataApiOwnedBindingStatus["ACTIVE"] = "ACTIVE";
|
|
16162
|
+
DataApiOwnedBindingStatus["DISABLED"] = "DISABLED";
|
|
16163
|
+
})(exports.DataApiOwnedBindingStatus || (exports.DataApiOwnedBindingStatus = {}));
|
|
16164
|
+
|
|
16165
|
+
exports.DataApiCatalogDataSourceDatabaseType = void 0;
|
|
16166
|
+
(function (DataApiCatalogDataSourceDatabaseType) {
|
|
16167
|
+
DataApiCatalogDataSourceDatabaseType["OBMYSQL"] = "OB_MYSQL";
|
|
16168
|
+
DataApiCatalogDataSourceDatabaseType["OBORACLE"] = "OB_ORACLE";
|
|
16169
|
+
DataApiCatalogDataSourceDatabaseType["MYSQL"] = "MYSQL";
|
|
16170
|
+
DataApiCatalogDataSourceDatabaseType["ORACLE"] = "ORACLE";
|
|
16171
|
+
})(exports.DataApiCatalogDataSourceDatabaseType || (exports.DataApiCatalogDataSourceDatabaseType = {}));
|
|
16172
|
+
|
|
16173
|
+
exports.DataApiCatalogDataSourceVisibilitySource = void 0;
|
|
16174
|
+
(function (DataApiCatalogDataSourceVisibilitySource) {
|
|
16175
|
+
DataApiCatalogDataSourceVisibilitySource["ORGANIZATIONOWNER"] = "ORGANIZATION_OWNER";
|
|
16176
|
+
DataApiCatalogDataSourceVisibilitySource["PROJECTDATASOURCEGRANT"] = "PROJECT_DATA_SOURCE_GRANT";
|
|
16177
|
+
DataApiCatalogDataSourceVisibilitySource["CONTROLPLANEPOLICY"] = "CONTROL_PLANE_POLICY";
|
|
16178
|
+
DataApiCatalogDataSourceVisibilitySource["ACCESSBINDING"] = "ACCESS_BINDING";
|
|
16179
|
+
DataApiCatalogDataSourceVisibilitySource["BOTH"] = "BOTH";
|
|
16180
|
+
})(exports.DataApiCatalogDataSourceVisibilitySource || (exports.DataApiCatalogDataSourceVisibilitySource = {}));
|
|
16181
|
+
|
|
16182
|
+
exports.DataApiCatalogDatabaseClassification = void 0;
|
|
16183
|
+
(function (DataApiCatalogDatabaseClassification) {
|
|
16184
|
+
DataApiCatalogDatabaseClassification["USER"] = "USER";
|
|
16185
|
+
DataApiCatalogDatabaseClassification["SYSTEM"] = "SYSTEM";
|
|
16186
|
+
})(exports.DataApiCatalogDatabaseClassification || (exports.DataApiCatalogDatabaseClassification = {}));
|
|
16187
|
+
|
|
16188
|
+
exports.DataApiCatalogDatabaseStatus = void 0;
|
|
16189
|
+
(function (DataApiCatalogDatabaseStatus) {
|
|
16190
|
+
DataApiCatalogDatabaseStatus["VALID"] = "VALID";
|
|
16191
|
+
DataApiCatalogDatabaseStatus["INVALID"] = "INVALID";
|
|
16192
|
+
})(exports.DataApiCatalogDatabaseStatus || (exports.DataApiCatalogDatabaseStatus = {}));
|
|
16193
|
+
|
|
16194
|
+
exports.DataApiCatalogDatabaseAvailability = void 0;
|
|
16195
|
+
(function (DataApiCatalogDatabaseAvailability) {
|
|
16196
|
+
DataApiCatalogDatabaseAvailability["UNKNOWN"] = "UNKNOWN";
|
|
16197
|
+
DataApiCatalogDatabaseAvailability["AVAILABLE"] = "AVAILABLE";
|
|
16198
|
+
DataApiCatalogDatabaseAvailability["UNAVAILABLE"] = "UNAVAILABLE";
|
|
16199
|
+
})(exports.DataApiCatalogDatabaseAvailability || (exports.DataApiCatalogDatabaseAvailability = {}));
|
|
16200
|
+
|
|
16201
|
+
exports.DataApiCatalogDatabaseVisibilitySource = void 0;
|
|
16202
|
+
(function (DataApiCatalogDatabaseVisibilitySource) {
|
|
16203
|
+
DataApiCatalogDatabaseVisibilitySource["ORGANIZATIONOWNER"] = "ORGANIZATION_OWNER";
|
|
16204
|
+
DataApiCatalogDatabaseVisibilitySource["PROJECTDATASOURCEGRANT"] = "PROJECT_DATA_SOURCE_GRANT";
|
|
16205
|
+
DataApiCatalogDatabaseVisibilitySource["CONTROLPLANEPOLICY"] = "CONTROL_PLANE_POLICY";
|
|
16206
|
+
DataApiCatalogDatabaseVisibilitySource["ACCESSBINDING"] = "ACCESS_BINDING";
|
|
16207
|
+
DataApiCatalogDatabaseVisibilitySource["BOTH"] = "BOTH";
|
|
16208
|
+
})(exports.DataApiCatalogDatabaseVisibilitySource || (exports.DataApiCatalogDatabaseVisibilitySource = {}));
|
|
16209
|
+
|
|
15184
16210
|
exports.ExecutionTrigger = void 0;
|
|
15185
16211
|
(function (ExecutionTrigger) {
|
|
15186
16212
|
ExecutionTrigger["Http"] = "http";
|
|
@@ -15235,6 +16261,28 @@ exports.MemoryBulkDeleteResponseStatus = void 0;
|
|
|
15235
16261
|
MemoryBulkDeleteResponseStatus["PartialFailed"] = "partial_failed";
|
|
15236
16262
|
})(exports.MemoryBulkDeleteResponseStatus || (exports.MemoryBulkDeleteResponseStatus = {}));
|
|
15237
16263
|
|
|
16264
|
+
exports.MemoryPipelineRunResultStatus = void 0;
|
|
16265
|
+
(function (MemoryPipelineRunResultStatus) {
|
|
16266
|
+
MemoryPipelineRunResultStatus["Completed"] = "completed";
|
|
16267
|
+
MemoryPipelineRunResultStatus["Failed"] = "failed";
|
|
16268
|
+
})(exports.MemoryPipelineRunResultStatus || (exports.MemoryPipelineRunResultStatus = {}));
|
|
16269
|
+
|
|
16270
|
+
exports.MemoryPipelineRunScenario = void 0;
|
|
16271
|
+
(function (MemoryPipelineRunScenario) {
|
|
16272
|
+
MemoryPipelineRunScenario["AddMemory"] = "add_memory";
|
|
16273
|
+
MemoryPipelineRunScenario["Profile"] = "profile";
|
|
16274
|
+
MemoryPipelineRunScenario["Distillation"] = "distillation";
|
|
16275
|
+
MemoryPipelineRunScenario["Forgetting"] = "forgetting";
|
|
16276
|
+
})(exports.MemoryPipelineRunScenario || (exports.MemoryPipelineRunScenario = {}));
|
|
16277
|
+
|
|
16278
|
+
exports.MemoryPipelineRunStatus = void 0;
|
|
16279
|
+
(function (MemoryPipelineRunStatus) {
|
|
16280
|
+
MemoryPipelineRunStatus["Queued"] = "queued";
|
|
16281
|
+
MemoryPipelineRunStatus["Running"] = "running";
|
|
16282
|
+
MemoryPipelineRunStatus["Completed"] = "completed";
|
|
16283
|
+
MemoryPipelineRunStatus["Failed"] = "failed";
|
|
16284
|
+
})(exports.MemoryPipelineRunStatus || (exports.MemoryPipelineRunStatus = {}));
|
|
16285
|
+
|
|
15238
16286
|
exports.KnowledgeBaseDataSourceDocumentImportResultStatus = void 0;
|
|
15239
16287
|
(function (KnowledgeBaseDataSourceDocumentImportResultStatus) {
|
|
15240
16288
|
KnowledgeBaseDataSourceDocumentImportResultStatus["Accepted"] = "accepted";
|
|
@@ -15249,6 +16297,7 @@ exports.AiGateway = AiGateway;
|
|
|
15249
16297
|
exports.Avatars = Avatars;
|
|
15250
16298
|
exports.Channel = Channel;
|
|
15251
16299
|
exports.Client = Client;
|
|
16300
|
+
exports.DataApi = DataApi;
|
|
15252
16301
|
exports.Databases = Databases;
|
|
15253
16302
|
exports.DocumentsDB = DocumentsDB;
|
|
15254
16303
|
exports.Functions = Functions;
|