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