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/iife/sdk.js CHANGED
@@ -4393,7 +4393,7 @@
4393
4393
  * Holds configuration such as project.
4394
4394
  */
4395
4395
  this.config = {
4396
- endpoint: 'https://appbase.local/v1',
4396
+ endpoint: 'https://example.com[HOSTNAME]/v1',
4397
4397
  endpointRealtime: '',
4398
4398
  project: '',
4399
4399
  organization: '',
@@ -4412,9 +4412,9 @@
4412
4412
  'x-sdk-name': 'Agentbase',
4413
4413
  'x-sdk-platform': 'client',
4414
4414
  'x-sdk-language': 'web',
4415
- 'x-sdk-version': '2.10.0',
4415
+ 'x-sdk-version': '2.12.0',
4416
4416
  'X-AppBase-SDK': 'true',
4417
- 'X-Appwrite-Response-Format': '2.10.0',
4417
+ 'X-Appwrite-Response-Format': '2.12.0',
4418
4418
  };
4419
4419
  this.realtime = {
4420
4420
  socket: undefined,
@@ -5956,6 +5956,131 @@
5956
5956
  };
5957
5957
  return this.client.call('patch', uri, apiHeaders, payload);
5958
5958
  }
5959
+ changePhone(paramsOrFirst, ...rest) {
5960
+ let params;
5961
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5962
+ params = (paramsOrFirst || {});
5963
+ }
5964
+ else {
5965
+ params = {
5966
+ newPhone: paramsOrFirst,
5967
+ challengeId: rest[0],
5968
+ code: rest[1],
5969
+ password: rest[2]
5970
+ };
5971
+ }
5972
+ const newPhone = params.newPhone;
5973
+ const challengeId = params.challengeId;
5974
+ const code = params.code;
5975
+ const password = params.password;
5976
+ if (typeof newPhone === 'undefined') {
5977
+ throw new AgentbaseException('Missing required parameter: "newPhone"');
5978
+ }
5979
+ if (typeof challengeId === 'undefined') {
5980
+ throw new AgentbaseException('Missing required parameter: "challengeId"');
5981
+ }
5982
+ if (typeof code === 'undefined') {
5983
+ throw new AgentbaseException('Missing required parameter: "code"');
5984
+ }
5985
+ const apiPath = '/account/phone/change';
5986
+ const payload = {};
5987
+ if (typeof newPhone !== 'undefined') {
5988
+ payload['newPhone'] = newPhone;
5989
+ }
5990
+ if (typeof challengeId !== 'undefined') {
5991
+ payload['challengeId'] = challengeId;
5992
+ }
5993
+ if (typeof code !== 'undefined') {
5994
+ payload['code'] = code;
5995
+ }
5996
+ if (typeof password !== 'undefined') {
5997
+ payload['password'] = password;
5998
+ }
5999
+ const uri = new URL(this.client.config.endpoint + apiPath);
6000
+ const apiHeaders = {
6001
+ 'X-Appwrite-Project': this.client.config.project,
6002
+ 'content-type': 'application/json',
6003
+ };
6004
+ return this.client.call('post', uri, apiHeaders, payload);
6005
+ }
6006
+ sendPhoneCode(paramsOrFirst, ...rest) {
6007
+ let params;
6008
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
6009
+ params = (paramsOrFirst || {});
6010
+ }
6011
+ else {
6012
+ params = {
6013
+ phone: paramsOrFirst,
6014
+ userId: rest[0],
6015
+ scene: rest[1]
6016
+ };
6017
+ }
6018
+ const phone = params.phone;
6019
+ const userId = params.userId;
6020
+ const scene = params.scene;
6021
+ if (typeof phone === 'undefined') {
6022
+ throw new AgentbaseException('Missing required parameter: "phone"');
6023
+ }
6024
+ const apiPath = '/account/phone/send-code';
6025
+ const payload = {};
6026
+ if (typeof userId !== 'undefined') {
6027
+ payload['userId'] = userId;
6028
+ }
6029
+ if (typeof phone !== 'undefined') {
6030
+ payload['phone'] = phone;
6031
+ }
6032
+ if (typeof scene !== 'undefined') {
6033
+ payload['scene'] = scene;
6034
+ }
6035
+ const uri = new URL(this.client.config.endpoint + apiPath);
6036
+ const apiHeaders = {
6037
+ 'X-Appwrite-Project': this.client.config.project,
6038
+ 'content-type': 'application/json',
6039
+ };
6040
+ return this.client.call('post', uri, apiHeaders, payload);
6041
+ }
6042
+ verifyPhone(paramsOrFirst, ...rest) {
6043
+ let params;
6044
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
6045
+ params = (paramsOrFirst || {});
6046
+ }
6047
+ else {
6048
+ params = {
6049
+ challengeId: paramsOrFirst,
6050
+ phone: rest[0],
6051
+ code: rest[1]
6052
+ };
6053
+ }
6054
+ const challengeId = params.challengeId;
6055
+ const phone = params.phone;
6056
+ const code = params.code;
6057
+ if (typeof challengeId === 'undefined') {
6058
+ throw new AgentbaseException('Missing required parameter: "challengeId"');
6059
+ }
6060
+ if (typeof phone === 'undefined') {
6061
+ throw new AgentbaseException('Missing required parameter: "phone"');
6062
+ }
6063
+ if (typeof code === 'undefined') {
6064
+ throw new AgentbaseException('Missing required parameter: "code"');
6065
+ }
6066
+ const apiPath = '/account/phone/verify';
6067
+ const payload = {};
6068
+ if (typeof challengeId !== 'undefined') {
6069
+ payload['challengeId'] = challengeId;
6070
+ }
6071
+ if (typeof phone !== 'undefined') {
6072
+ payload['phone'] = phone;
6073
+ }
6074
+ if (typeof code !== 'undefined') {
6075
+ payload['code'] = code;
6076
+ }
6077
+ const uri = new URL(this.client.config.endpoint + apiPath);
6078
+ const apiHeaders = {
6079
+ 'X-Appwrite-Project': this.client.config.project,
6080
+ 'content-type': 'application/json',
6081
+ };
6082
+ return this.client.call('post', uri, apiHeaders, payload);
6083
+ }
5959
6084
  /**
5960
6085
  * Get the preferences as a key-value object for the currently logged in user.
5961
6086
  *
@@ -6487,7 +6612,8 @@
6487
6612
  return this.client.call('delete', uri, apiHeaders, payload);
6488
6613
  }
6489
6614
  /**
6490
- * 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.
6615
+ * 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.
6616
+ *
6491
6617
  *
6492
6618
  * @throws {AgentbaseException}
6493
6619
  * @returns {Promise<Models.User<Preferences>>}
@@ -6733,11 +6859,13 @@
6733
6859
  else {
6734
6860
  params = {
6735
6861
  userId: paramsOrFirst,
6736
- phone: rest[0]
6862
+ phone: rest[0],
6863
+ scene: rest[1]
6737
6864
  };
6738
6865
  }
6739
6866
  const userId = params.userId;
6740
6867
  const phone = params.phone;
6868
+ const scene = params.scene;
6741
6869
  if (typeof userId === 'undefined') {
6742
6870
  throw new AgentbaseException('Missing required parameter: "userId"');
6743
6871
  }
@@ -6752,6 +6880,9 @@
6752
6880
  if (typeof phone !== 'undefined') {
6753
6881
  payload['phone'] = phone;
6754
6882
  }
6883
+ if (typeof scene !== 'undefined') {
6884
+ payload['scene'] = scene;
6885
+ }
6755
6886
  const uri = new URL(this.client.config.endpoint + apiPath);
6756
6887
  const apiHeaders = {
6757
6888
  'X-Appwrite-Project': this.client.config.project,
@@ -7488,6 +7619,89 @@
7488
7619
  constructor(client) {
7489
7620
  this.client = client;
7490
7621
  }
7622
+ /**
7623
+ * Manage unified AI Gateway control-plane resources.
7624
+ *
7625
+ * @throws {AgentbaseException}
7626
+ * @returns {Promise<{}>}
7627
+ */
7628
+ listApprovalRequests() {
7629
+ const apiPath = '/ai-gateway/approval-requests';
7630
+ const payload = {};
7631
+ const uri = new URL(this.client.config.endpoint + apiPath);
7632
+ const apiHeaders = {
7633
+ 'X-Appwrite-Project': this.client.config.project,
7634
+ };
7635
+ return this.client.call('get', uri, apiHeaders, payload);
7636
+ }
7637
+ getApprovalRequest(paramsOrFirst) {
7638
+ let params;
7639
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7640
+ params = (paramsOrFirst || {});
7641
+ }
7642
+ else {
7643
+ params = {
7644
+ id: paramsOrFirst
7645
+ };
7646
+ }
7647
+ const id = params.id;
7648
+ if (typeof id === 'undefined') {
7649
+ throw new AgentbaseException('Missing required parameter: "id"');
7650
+ }
7651
+ const apiPath = '/ai-gateway/approval-requests/{id}'.replace('{id}', id);
7652
+ const payload = {};
7653
+ const uri = new URL(this.client.config.endpoint + apiPath);
7654
+ const apiHeaders = {
7655
+ 'X-Appwrite-Project': this.client.config.project,
7656
+ };
7657
+ return this.client.call('get', uri, apiHeaders, payload);
7658
+ }
7659
+ approveApprovalRequest(paramsOrFirst) {
7660
+ let params;
7661
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7662
+ params = (paramsOrFirst || {});
7663
+ }
7664
+ else {
7665
+ params = {
7666
+ id: paramsOrFirst
7667
+ };
7668
+ }
7669
+ const id = params.id;
7670
+ if (typeof id === 'undefined') {
7671
+ throw new AgentbaseException('Missing required parameter: "id"');
7672
+ }
7673
+ const apiPath = '/ai-gateway/approval-requests/{id}/approve'.replace('{id}', id);
7674
+ const payload = {};
7675
+ const uri = new URL(this.client.config.endpoint + apiPath);
7676
+ const apiHeaders = {
7677
+ 'X-Appwrite-Project': this.client.config.project,
7678
+ 'content-type': 'application/json',
7679
+ };
7680
+ return this.client.call('post', uri, apiHeaders, payload);
7681
+ }
7682
+ rejectApprovalRequest(paramsOrFirst) {
7683
+ let params;
7684
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7685
+ params = (paramsOrFirst || {});
7686
+ }
7687
+ else {
7688
+ params = {
7689
+ id: paramsOrFirst
7690
+ };
7691
+ }
7692
+ const id = params.id;
7693
+ if (typeof id === 'undefined') {
7694
+ throw new AgentbaseException('Missing required parameter: "id"');
7695
+ }
7696
+ const apiPath = '/ai-gateway/approval-requests/{id}/reject'.replace('{id}', id);
7697
+ const payload = {};
7698
+ const uri = new URL(this.client.config.endpoint + apiPath);
7699
+ const apiHeaders = {
7700
+ 'X-Appwrite-Project': this.client.config.project,
7701
+ 'content-type': 'application/json',
7702
+ };
7703
+ return this.client.call('post', uri, apiHeaders, payload);
7704
+ }
7491
7705
  updateGatewayPolicy(paramsOrFirst) {
7492
7706
  let params;
7493
7707
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -7556,6 +7770,26 @@
7556
7770
  };
7557
7771
  return this.client.call('get', uri, apiHeaders, payload);
7558
7772
  }
7773
+ /**
7774
+ * 读取当前 Shared V2 项目的 Tool Gateway 初始化状态。请求为 `GET /v1/ai-gateway/initialization-status`,无请求参数。调用方需要项目访问权限和 `aiGateway.read` scope。
7775
+ *
7776
+ * 成功时返回 HTTP 200。`{"status":"ready"}` 表示控制面已确认现有项目表就绪,可沿用原配置重新启用服务。`{"status":"uninitialized"}` 表示项目表尚未就绪,包括尚未建表或迁移标记为 dirty。此查询只读,不会调用模型、建表或开启服务。
7777
+ *
7778
+ * 缺少 `aiGateway.read` 的项目 API Key 会收到 HTTP 401(`general_unauthorized_scope`)。服务被禁用时,非特权调用方也可能先收到 HTTP 403(`general_service_disabled`)。控制面读取存储发生异常或 Core 无法连接控制面时会返回服务端错误,例如 HTTP 500。此时状态未知,调用方应显示错误并允许重试查询。
7779
+ *
7780
+ *
7781
+ * @throws {AgentbaseException}
7782
+ * @returns {Promise<{}>}
7783
+ */
7784
+ getInitializationStatus() {
7785
+ const apiPath = '/ai-gateway/initialization-status';
7786
+ const payload = {};
7787
+ const uri = new URL(this.client.config.endpoint + apiPath);
7788
+ const apiHeaders = {
7789
+ 'X-Appwrite-Project': this.client.config.project,
7790
+ };
7791
+ return this.client.call('get', uri, apiHeaders, payload);
7792
+ }
7559
7793
  /**
7560
7794
  * Manage unified AI Gateway control-plane resources.
7561
7795
  *
@@ -8549,6 +8783,37 @@
8549
8783
  };
8550
8784
  return this.client.call('post', uri, apiHeaders, payload);
8551
8785
  }
8786
+ /**
8787
+ * Manage unified AI Gateway control-plane resources.
8788
+ *
8789
+ * @throws {AgentbaseException}
8790
+ * @returns {Promise<{}>}
8791
+ */
8792
+ listToolEmbeddings() {
8793
+ const apiPath = '/ai-gateway/tool-embeddings';
8794
+ const payload = {};
8795
+ const uri = new URL(this.client.config.endpoint + apiPath);
8796
+ const apiHeaders = {
8797
+ 'X-Appwrite-Project': this.client.config.project,
8798
+ };
8799
+ return this.client.call('get', uri, apiHeaders, payload);
8800
+ }
8801
+ /**
8802
+ * Manage unified AI Gateway control-plane resources.
8803
+ *
8804
+ * @throws {AgentbaseException}
8805
+ * @returns {Promise<{}>}
8806
+ */
8807
+ createToolEmbeddings() {
8808
+ const apiPath = '/ai-gateway/tool-embeddings';
8809
+ const payload = {};
8810
+ const uri = new URL(this.client.config.endpoint + apiPath);
8811
+ const apiHeaders = {
8812
+ 'X-Appwrite-Project': this.client.config.project,
8813
+ 'content-type': 'application/json',
8814
+ };
8815
+ return this.client.call('post', uri, apiHeaders, payload);
8816
+ }
8552
8817
  }
8553
8818
 
8554
8819
  class Avatars {
@@ -8957,68 +9222,384 @@
8957
9222
  }
8958
9223
  }
8959
9224
 
8960
- class Databases {
9225
+ class DataApi {
8961
9226
  constructor(client) {
8962
9227
  this.client = client;
8963
9228
  }
8964
- listTransactions(paramsOrFirst) {
9229
+ listBindingDataSources(paramsOrFirst) {
8965
9230
  let params;
8966
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9231
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8967
9232
  params = (paramsOrFirst || {});
8968
9233
  }
8969
9234
  else {
8970
9235
  params = {
8971
- queries: paramsOrFirst
9236
+ accessBindingId: paramsOrFirst
8972
9237
  };
8973
9238
  }
8974
- const queries = params.queries;
8975
- const apiPath = '/databases/transactions';
8976
- const payload = {};
8977
- if (typeof queries !== 'undefined') {
8978
- payload['queries'] = queries;
9239
+ const accessBindingId = params.accessBindingId;
9240
+ if (typeof accessBindingId === 'undefined') {
9241
+ throw new AgentbaseException('Missing required parameter: "accessBindingId"');
8979
9242
  }
9243
+ const apiPath = '/data-api/bindings/{accessBindingId}/catalog/data-sources'.replace('{accessBindingId}', String(accessBindingId));
9244
+ const payload = {};
8980
9245
  const uri = new URL(this.client.config.endpoint + apiPath);
8981
- const apiHeaders = {
8982
- 'X-Appwrite-Project': this.client.config.project,
8983
- };
9246
+ const apiHeaders = {};
8984
9247
  return this.client.call('get', uri, apiHeaders, payload);
8985
9248
  }
8986
- createTransaction(paramsOrFirst) {
9249
+ listBindingDatabases(paramsOrFirst, ...rest) {
8987
9250
  let params;
8988
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9251
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8989
9252
  params = (paramsOrFirst || {});
8990
9253
  }
8991
9254
  else {
8992
9255
  params = {
8993
- ttl: paramsOrFirst
9256
+ accessBindingId: paramsOrFirst,
9257
+ dataSourceId: rest[0]
8994
9258
  };
8995
9259
  }
8996
- const ttl = params.ttl;
8997
- const apiPath = '/databases/transactions';
8998
- const payload = {};
8999
- if (typeof ttl !== 'undefined') {
9000
- payload['ttl'] = ttl;
9260
+ const accessBindingId = params.accessBindingId;
9261
+ const dataSourceId = params.dataSourceId;
9262
+ if (typeof accessBindingId === 'undefined') {
9263
+ throw new AgentbaseException('Missing required parameter: "accessBindingId"');
9001
9264
  }
9265
+ if (typeof dataSourceId === 'undefined') {
9266
+ throw new AgentbaseException('Missing required parameter: "dataSourceId"');
9267
+ }
9268
+ const apiPath = '/data-api/bindings/{accessBindingId}/catalog/data-sources/{dataSourceId}/databases'.replace('{accessBindingId}', String(accessBindingId)).replace('{dataSourceId}', String(dataSourceId));
9269
+ const payload = {};
9002
9270
  const uri = new URL(this.client.config.endpoint + apiPath);
9003
- const apiHeaders = {
9004
- 'X-Appwrite-Project': this.client.config.project,
9005
- 'content-type': 'application/json',
9006
- };
9007
- return this.client.call('post', uri, apiHeaders, payload);
9271
+ const apiHeaders = {};
9272
+ return this.client.call('get', uri, apiHeaders, payload);
9008
9273
  }
9009
- getTransaction(paramsOrFirst) {
9274
+ listBindingTables(paramsOrFirst, ...rest) {
9010
9275
  let params;
9011
9276
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9012
9277
  params = (paramsOrFirst || {});
9013
9278
  }
9014
9279
  else {
9015
9280
  params = {
9016
- transactionId: paramsOrFirst
9281
+ accessBindingId: paramsOrFirst,
9282
+ dataSourceId: rest[0],
9283
+ databaseId: rest[1]
9017
9284
  };
9018
9285
  }
9019
- const transactionId = params.transactionId;
9020
- if (typeof transactionId === 'undefined') {
9021
- throw new AgentbaseException('Missing required parameter: "transactionId"');
9286
+ const accessBindingId = params.accessBindingId;
9287
+ const dataSourceId = params.dataSourceId;
9288
+ const databaseId = params.databaseId;
9289
+ if (typeof accessBindingId === 'undefined') {
9290
+ throw new AgentbaseException('Missing required parameter: "accessBindingId"');
9291
+ }
9292
+ if (typeof dataSourceId === 'undefined') {
9293
+ throw new AgentbaseException('Missing required parameter: "dataSourceId"');
9294
+ }
9295
+ if (typeof databaseId === 'undefined') {
9296
+ throw new AgentbaseException('Missing required parameter: "databaseId"');
9297
+ }
9298
+ 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));
9299
+ const payload = {};
9300
+ const uri = new URL(this.client.config.endpoint + apiPath);
9301
+ const apiHeaders = {};
9302
+ return this.client.call('get', uri, apiHeaders, payload);
9303
+ }
9304
+ getBindingTable(paramsOrFirst, ...rest) {
9305
+ let params;
9306
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9307
+ params = (paramsOrFirst || {});
9308
+ }
9309
+ else {
9310
+ params = {
9311
+ accessBindingId: paramsOrFirst,
9312
+ dataSourceId: rest[0],
9313
+ databaseId: rest[1],
9314
+ tableName: rest[2]
9315
+ };
9316
+ }
9317
+ const accessBindingId = params.accessBindingId;
9318
+ const dataSourceId = params.dataSourceId;
9319
+ const databaseId = params.databaseId;
9320
+ const tableName = params.tableName;
9321
+ if (typeof accessBindingId === 'undefined') {
9322
+ throw new AgentbaseException('Missing required parameter: "accessBindingId"');
9323
+ }
9324
+ if (typeof dataSourceId === 'undefined') {
9325
+ throw new AgentbaseException('Missing required parameter: "dataSourceId"');
9326
+ }
9327
+ if (typeof databaseId === 'undefined') {
9328
+ throw new AgentbaseException('Missing required parameter: "databaseId"');
9329
+ }
9330
+ if (typeof tableName === 'undefined') {
9331
+ throw new AgentbaseException('Missing required parameter: "tableName"');
9332
+ }
9333
+ 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);
9334
+ const payload = {};
9335
+ const uri = new URL(this.client.config.endpoint + apiPath);
9336
+ const apiHeaders = {};
9337
+ return this.client.call('get', uri, apiHeaders, payload);
9338
+ }
9339
+ executeNativeSql(paramsOrFirst, ...rest) {
9340
+ let params;
9341
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9342
+ params = (paramsOrFirst || {});
9343
+ }
9344
+ else {
9345
+ params = {
9346
+ accessBindingId: paramsOrFirst,
9347
+ sql: rest[0]
9348
+ };
9349
+ }
9350
+ const accessBindingId = params.accessBindingId;
9351
+ const sql = params.sql;
9352
+ if (typeof accessBindingId === 'undefined') {
9353
+ throw new AgentbaseException('Missing required parameter: "accessBindingId"');
9354
+ }
9355
+ if (typeof sql === 'undefined') {
9356
+ throw new AgentbaseException('Missing required parameter: "sql"');
9357
+ }
9358
+ const apiPath = '/data-api/bindings/{accessBindingId}/native-sql'.replace('{accessBindingId}', String(accessBindingId));
9359
+ const payload = {};
9360
+ if (typeof sql !== 'undefined') {
9361
+ payload['sql'] = sql;
9362
+ }
9363
+ const uri = new URL(this.client.config.endpoint + apiPath);
9364
+ const apiHeaders = {
9365
+ 'content-type': 'application/json',
9366
+ };
9367
+ return this.client.call('post', uri, apiHeaders, payload);
9368
+ }
9369
+ executeRestAggregates(paramsOrFirst, ...rest) {
9370
+ let params;
9371
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9372
+ params = (paramsOrFirst || {});
9373
+ }
9374
+ else {
9375
+ params = {
9376
+ accessBindingId: paramsOrFirst,
9377
+ databaseId: rest[0],
9378
+ tableName: rest[1],
9379
+ query: rest[2]
9380
+ };
9381
+ }
9382
+ const accessBindingId = params.accessBindingId;
9383
+ const databaseId = params.databaseId;
9384
+ const tableName = params.tableName;
9385
+ const query = params.query;
9386
+ if (typeof accessBindingId === 'undefined') {
9387
+ throw new AgentbaseException('Missing required parameter: "accessBindingId"');
9388
+ }
9389
+ if (typeof databaseId === 'undefined') {
9390
+ throw new AgentbaseException('Missing required parameter: "databaseId"');
9391
+ }
9392
+ if (typeof tableName === 'undefined') {
9393
+ throw new AgentbaseException('Missing required parameter: "tableName"');
9394
+ }
9395
+ if (typeof query === 'undefined') {
9396
+ throw new AgentbaseException('Missing required parameter: "query"');
9397
+ }
9398
+ const apiPath = '/data-api/bindings/{accessBindingId}/rest/databases/{databaseId}/tables/{tableName}/aggregates/query'.replace('{accessBindingId}', String(accessBindingId)).replace('{databaseId}', String(databaseId)).replace('{tableName}', tableName);
9399
+ const payload = {};
9400
+ if (typeof query !== 'undefined') {
9401
+ payload['query'] = query;
9402
+ }
9403
+ const uri = new URL(this.client.config.endpoint + apiPath);
9404
+ const apiHeaders = {
9405
+ 'content-type': 'application/json',
9406
+ };
9407
+ return this.client.call('post', uri, apiHeaders, payload);
9408
+ }
9409
+ executeRestRows(paramsOrFirst, ...rest) {
9410
+ let params;
9411
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9412
+ params = (paramsOrFirst || {});
9413
+ }
9414
+ else {
9415
+ params = {
9416
+ accessBindingId: paramsOrFirst,
9417
+ databaseId: rest[0],
9418
+ tableName: rest[1],
9419
+ query: rest[2]
9420
+ };
9421
+ }
9422
+ const accessBindingId = params.accessBindingId;
9423
+ const databaseId = params.databaseId;
9424
+ const tableName = params.tableName;
9425
+ const query = params.query;
9426
+ if (typeof accessBindingId === 'undefined') {
9427
+ throw new AgentbaseException('Missing required parameter: "accessBindingId"');
9428
+ }
9429
+ if (typeof databaseId === 'undefined') {
9430
+ throw new AgentbaseException('Missing required parameter: "databaseId"');
9431
+ }
9432
+ if (typeof tableName === 'undefined') {
9433
+ throw new AgentbaseException('Missing required parameter: "tableName"');
9434
+ }
9435
+ if (typeof query === 'undefined') {
9436
+ throw new AgentbaseException('Missing required parameter: "query"');
9437
+ }
9438
+ const apiPath = '/data-api/bindings/{accessBindingId}/rest/databases/{databaseId}/tables/{tableName}/rows/query'.replace('{accessBindingId}', String(accessBindingId)).replace('{databaseId}', String(databaseId)).replace('{tableName}', tableName);
9439
+ const payload = {};
9440
+ if (typeof query !== 'undefined') {
9441
+ payload['query'] = query;
9442
+ }
9443
+ const uri = new URL(this.client.config.endpoint + apiPath);
9444
+ const apiHeaders = {
9445
+ 'content-type': 'application/json',
9446
+ };
9447
+ return this.client.call('post', uri, apiHeaders, payload);
9448
+ }
9449
+ listMyBindings(paramsOrFirst, ...rest) {
9450
+ let params;
9451
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9452
+ params = (paramsOrFirst || {});
9453
+ }
9454
+ else {
9455
+ params = {
9456
+ cursor: paramsOrFirst,
9457
+ limit: rest[0]
9458
+ };
9459
+ }
9460
+ const cursor = params.cursor;
9461
+ const limit = params.limit;
9462
+ const apiPath = '/data-api/me/bindings';
9463
+ const payload = {};
9464
+ if (typeof cursor !== 'undefined') {
9465
+ payload['cursor'] = cursor;
9466
+ }
9467
+ if (typeof limit !== 'undefined') {
9468
+ payload['limit'] = limit;
9469
+ }
9470
+ const uri = new URL(this.client.config.endpoint + apiPath);
9471
+ const apiHeaders = {};
9472
+ return this.client.call('get', uri, apiHeaders, payload);
9473
+ }
9474
+ getMyBinding(paramsOrFirst) {
9475
+ let params;
9476
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9477
+ params = (paramsOrFirst || {});
9478
+ }
9479
+ else {
9480
+ params = {
9481
+ accessBindingId: paramsOrFirst
9482
+ };
9483
+ }
9484
+ const accessBindingId = params.accessBindingId;
9485
+ if (typeof accessBindingId === 'undefined') {
9486
+ throw new AgentbaseException('Missing required parameter: "accessBindingId"');
9487
+ }
9488
+ const apiPath = '/data-api/me/bindings/{accessBindingId}'.replace('{accessBindingId}', String(accessBindingId));
9489
+ const payload = {};
9490
+ const uri = new URL(this.client.config.endpoint + apiPath);
9491
+ const apiHeaders = {};
9492
+ return this.client.call('get', uri, apiHeaders, payload);
9493
+ }
9494
+ executeFixedQueryLink(paramsOrFirst) {
9495
+ let params;
9496
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9497
+ params = (paramsOrFirst || {});
9498
+ }
9499
+ else {
9500
+ params = {
9501
+ queryId: paramsOrFirst
9502
+ };
9503
+ }
9504
+ const queryId = params.queryId;
9505
+ if (typeof queryId === 'undefined') {
9506
+ throw new AgentbaseException('Missing required parameter: "queryId"');
9507
+ }
9508
+ const apiPath = '/data-api/public/query-interfaces/{queryId}/executions'.replace('{queryId}', queryId);
9509
+ const payload = {};
9510
+ const uri = new URL(this.client.config.endpoint + apiPath);
9511
+ const apiHeaders = {
9512
+ 'X-Appwrite-Project': this.client.config.project,
9513
+ };
9514
+ return this.client.call('get', uri, apiHeaders, payload);
9515
+ }
9516
+ executeFixedQuery(paramsOrFirst) {
9517
+ let params;
9518
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9519
+ params = (paramsOrFirst || {});
9520
+ }
9521
+ else {
9522
+ params = {
9523
+ queryId: paramsOrFirst
9524
+ };
9525
+ }
9526
+ const queryId = params.queryId;
9527
+ if (typeof queryId === 'undefined') {
9528
+ throw new AgentbaseException('Missing required parameter: "queryId"');
9529
+ }
9530
+ const apiPath = '/data-api/public/query-interfaces/{queryId}/executions'.replace('{queryId}', queryId);
9531
+ const payload = {};
9532
+ const uri = new URL(this.client.config.endpoint + apiPath);
9533
+ const apiHeaders = {
9534
+ 'X-Appwrite-Project': this.client.config.project,
9535
+ 'content-type': 'application/json',
9536
+ };
9537
+ return this.client.call('post', uri, apiHeaders, payload);
9538
+ }
9539
+ }
9540
+
9541
+ class Databases {
9542
+ constructor(client) {
9543
+ this.client = client;
9544
+ }
9545
+ listTransactions(paramsOrFirst) {
9546
+ let params;
9547
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9548
+ params = (paramsOrFirst || {});
9549
+ }
9550
+ else {
9551
+ params = {
9552
+ queries: paramsOrFirst
9553
+ };
9554
+ }
9555
+ const queries = params.queries;
9556
+ const apiPath = '/databases/transactions';
9557
+ const payload = {};
9558
+ if (typeof queries !== 'undefined') {
9559
+ payload['queries'] = queries;
9560
+ }
9561
+ const uri = new URL(this.client.config.endpoint + apiPath);
9562
+ const apiHeaders = {
9563
+ 'X-Appwrite-Project': this.client.config.project,
9564
+ };
9565
+ return this.client.call('get', uri, apiHeaders, payload);
9566
+ }
9567
+ createTransaction(paramsOrFirst) {
9568
+ let params;
9569
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9570
+ params = (paramsOrFirst || {});
9571
+ }
9572
+ else {
9573
+ params = {
9574
+ ttl: paramsOrFirst
9575
+ };
9576
+ }
9577
+ const ttl = params.ttl;
9578
+ const apiPath = '/databases/transactions';
9579
+ const payload = {};
9580
+ if (typeof ttl !== 'undefined') {
9581
+ payload['ttl'] = ttl;
9582
+ }
9583
+ const uri = new URL(this.client.config.endpoint + apiPath);
9584
+ const apiHeaders = {
9585
+ 'X-Appwrite-Project': this.client.config.project,
9586
+ 'content-type': 'application/json',
9587
+ };
9588
+ return this.client.call('post', uri, apiHeaders, payload);
9589
+ }
9590
+ getTransaction(paramsOrFirst) {
9591
+ let params;
9592
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9593
+ params = (paramsOrFirst || {});
9594
+ }
9595
+ else {
9596
+ params = {
9597
+ transactionId: paramsOrFirst
9598
+ };
9599
+ }
9600
+ const transactionId = params.transactionId;
9601
+ if (typeof transactionId === 'undefined') {
9602
+ throw new AgentbaseException('Missing required parameter: "transactionId"');
9022
9603
  }
9023
9604
  const apiPath = '/databases/transactions/{transactionId}'.replace('{transactionId}', transactionId);
9024
9605
  const payload = {};
@@ -10362,45 +10943,199 @@
10362
10943
  const uri = new URL(this.client.config.endpoint + apiPath);
10363
10944
  const apiHeaders = {
10364
10945
  'X-Appwrite-Project': this.client.config.project,
10365
- 'x-sdk-graphql': 'true',
10366
- 'content-type': 'application/json',
10946
+ 'x-sdk-graphql': 'true',
10947
+ 'content-type': 'application/json',
10948
+ };
10949
+ return this.client.call('post', uri, apiHeaders, payload);
10950
+ }
10951
+ mutation(paramsOrFirst) {
10952
+ let params;
10953
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('query' in paramsOrFirst))) {
10954
+ params = (paramsOrFirst || {});
10955
+ }
10956
+ else {
10957
+ params = {
10958
+ query: paramsOrFirst
10959
+ };
10960
+ }
10961
+ const query = params.query;
10962
+ if (typeof query === 'undefined') {
10963
+ throw new AgentbaseException('Missing required parameter: "query"');
10964
+ }
10965
+ const apiPath = '/graphql/mutation';
10966
+ const payload = {};
10967
+ if (typeof query !== 'undefined') {
10968
+ payload['query'] = query;
10969
+ }
10970
+ const uri = new URL(this.client.config.endpoint + apiPath);
10971
+ const apiHeaders = {
10972
+ 'X-Appwrite-Project': this.client.config.project,
10973
+ 'x-sdk-graphql': 'true',
10974
+ 'content-type': 'application/json',
10975
+ };
10976
+ return this.client.call('post', uri, apiHeaders, payload);
10977
+ }
10978
+ }
10979
+
10980
+ class KnowledgeBases {
10981
+ constructor(client) {
10982
+ this.client = client;
10983
+ }
10984
+ createYuqueDocuments(paramsOrFirst, ...rest) {
10985
+ let params;
10986
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
10987
+ params = (paramsOrFirst || {});
10988
+ }
10989
+ else {
10990
+ params = {
10991
+ knowledgeBaseId: paramsOrFirst,
10992
+ sessionId: rest[0],
10993
+ urls: rest[1],
10994
+ idempotencyKey: rest[2],
10995
+ versionId: rest[3]
10996
+ };
10997
+ }
10998
+ const knowledgeBaseId = params.knowledgeBaseId;
10999
+ const sessionId = params.sessionId;
11000
+ const urls = params.urls;
11001
+ const idempotencyKey = params.idempotencyKey;
11002
+ const versionId = params.versionId;
11003
+ if (typeof knowledgeBaseId === 'undefined') {
11004
+ throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
11005
+ }
11006
+ if (typeof sessionId === 'undefined') {
11007
+ throw new AgentbaseException('Missing required parameter: "sessionId"');
11008
+ }
11009
+ if (typeof urls === 'undefined') {
11010
+ throw new AgentbaseException('Missing required parameter: "urls"');
11011
+ }
11012
+ const apiPath = '/knowledgebases/{knowledgeBaseId}/documents/yuque'.replace('{knowledgeBaseId}', knowledgeBaseId);
11013
+ const payload = {};
11014
+ if (typeof sessionId !== 'undefined') {
11015
+ payload['sessionId'] = sessionId;
11016
+ }
11017
+ if (typeof urls !== 'undefined') {
11018
+ payload['urls'] = urls;
11019
+ }
11020
+ if (typeof idempotencyKey !== 'undefined') {
11021
+ payload['idempotencyKey'] = idempotencyKey;
11022
+ }
11023
+ if (typeof versionId !== 'undefined') {
11024
+ payload['versionId'] = versionId;
11025
+ }
11026
+ const uri = new URL(this.client.config.endpoint + apiPath);
11027
+ const apiHeaders = {
11028
+ 'X-Appwrite-Project': this.client.config.project,
11029
+ 'content-type': 'application/json',
11030
+ };
11031
+ return this.client.call('post', uri, apiHeaders, payload);
11032
+ }
11033
+ deleteYuqueOAuthCredential(paramsOrFirst) {
11034
+ let params;
11035
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
11036
+ params = (paramsOrFirst || {});
11037
+ }
11038
+ else {
11039
+ params = {
11040
+ knowledgeBaseId: paramsOrFirst
11041
+ };
11042
+ }
11043
+ const knowledgeBaseId = params.knowledgeBaseId;
11044
+ if (typeof knowledgeBaseId === 'undefined') {
11045
+ throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
11046
+ }
11047
+ const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/oauth/credentials/current'.replace('{knowledgeBaseId}', knowledgeBaseId);
11048
+ const payload = {};
11049
+ const uri = new URL(this.client.config.endpoint + apiPath);
11050
+ const apiHeaders = {
11051
+ 'X-Appwrite-Project': this.client.config.project,
11052
+ 'content-type': 'application/json',
11053
+ };
11054
+ return this.client.call('delete', uri, apiHeaders, payload);
11055
+ }
11056
+ createYuqueOAuthSession(paramsOrFirst, ...rest) {
11057
+ let params;
11058
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
11059
+ params = (paramsOrFirst || {});
11060
+ }
11061
+ else {
11062
+ params = {
11063
+ knowledgeBaseId: paramsOrFirst,
11064
+ force: rest[0]
11065
+ };
11066
+ }
11067
+ const knowledgeBaseId = params.knowledgeBaseId;
11068
+ const force = params.force;
11069
+ if (typeof knowledgeBaseId === 'undefined') {
11070
+ throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
11071
+ }
11072
+ const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/oauth/sessions'.replace('{knowledgeBaseId}', knowledgeBaseId);
11073
+ const payload = {};
11074
+ if (typeof force !== 'undefined') {
11075
+ payload['force'] = force;
11076
+ }
11077
+ const uri = new URL(this.client.config.endpoint + apiPath);
11078
+ const apiHeaders = {
11079
+ 'X-Appwrite-Project': this.client.config.project,
11080
+ 'content-type': 'application/json',
11081
+ };
11082
+ return this.client.call('post', uri, apiHeaders, payload);
11083
+ }
11084
+ getYuqueOAuthSession(paramsOrFirst, ...rest) {
11085
+ let params;
11086
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
11087
+ params = (paramsOrFirst || {});
11088
+ }
11089
+ else {
11090
+ params = {
11091
+ knowledgeBaseId: paramsOrFirst,
11092
+ sessionId: rest[0]
11093
+ };
11094
+ }
11095
+ const knowledgeBaseId = params.knowledgeBaseId;
11096
+ const sessionId = params.sessionId;
11097
+ if (typeof knowledgeBaseId === 'undefined') {
11098
+ throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
11099
+ }
11100
+ if (typeof sessionId === 'undefined') {
11101
+ throw new AgentbaseException('Missing required parameter: "sessionId"');
11102
+ }
11103
+ const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/oauth/sessions/{sessionId}'.replace('{knowledgeBaseId}', knowledgeBaseId).replace('{sessionId}', sessionId);
11104
+ const payload = {};
11105
+ const uri = new URL(this.client.config.endpoint + apiPath);
11106
+ const apiHeaders = {
11107
+ 'X-Appwrite-Project': this.client.config.project,
10367
11108
  };
10368
- return this.client.call('post', uri, apiHeaders, payload);
11109
+ return this.client.call('get', uri, apiHeaders, payload);
10369
11110
  }
10370
- mutation(paramsOrFirst) {
11111
+ listYuquePersonalDataSources(paramsOrFirst, ...rest) {
10371
11112
  let params;
10372
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('query' in paramsOrFirst))) {
11113
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
10373
11114
  params = (paramsOrFirst || {});
10374
11115
  }
10375
11116
  else {
10376
11117
  params = {
10377
- query: paramsOrFirst
11118
+ knowledgeBaseId: paramsOrFirst,
11119
+ versionId: rest[0]
10378
11120
  };
10379
11121
  }
10380
- const query = params.query;
10381
- if (typeof query === 'undefined') {
10382
- throw new AgentbaseException('Missing required parameter: "query"');
11122
+ const knowledgeBaseId = params.knowledgeBaseId;
11123
+ const versionId = params.versionId;
11124
+ if (typeof knowledgeBaseId === 'undefined') {
11125
+ throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
10383
11126
  }
10384
- const apiPath = '/graphql/mutation';
11127
+ const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/personal-datasources'.replace('{knowledgeBaseId}', knowledgeBaseId);
10385
11128
  const payload = {};
10386
- if (typeof query !== 'undefined') {
10387
- payload['query'] = query;
11129
+ if (typeof versionId !== 'undefined') {
11130
+ payload['versionId'] = versionId;
10388
11131
  }
10389
11132
  const uri = new URL(this.client.config.endpoint + apiPath);
10390
11133
  const apiHeaders = {
10391
11134
  'X-Appwrite-Project': this.client.config.project,
10392
- 'x-sdk-graphql': 'true',
10393
- 'content-type': 'application/json',
10394
11135
  };
10395
- return this.client.call('post', uri, apiHeaders, payload);
10396
- }
10397
- }
10398
-
10399
- class KnowledgeBases {
10400
- constructor(client) {
10401
- this.client = client;
11136
+ return this.client.call('get', uri, apiHeaders, payload);
10402
11137
  }
10403
- createYuqueDocuments(paramsOrFirst, ...rest) {
11138
+ createYuquePersonalDataSource(paramsOrFirst, ...rest) {
10404
11139
  let params;
10405
11140
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
10406
11141
  params = (paramsOrFirst || {});
@@ -10409,38 +11144,56 @@
10409
11144
  params = {
10410
11145
  knowledgeBaseId: paramsOrFirst,
10411
11146
  sessionId: rest[0],
10412
- urls: rest[1],
10413
- idempotencyKey: rest[2],
10414
- versionId: rest[3]
11147
+ name: rest[1],
11148
+ urls: rest[2],
11149
+ versionId: rest[3],
11150
+ syncSchedule: rest[4],
11151
+ status: rest[5],
11152
+ triggerSync: rest[6]
10415
11153
  };
10416
11154
  }
10417
11155
  const knowledgeBaseId = params.knowledgeBaseId;
10418
11156
  const sessionId = params.sessionId;
11157
+ const name = params.name;
10419
11158
  const urls = params.urls;
10420
- const idempotencyKey = params.idempotencyKey;
10421
11159
  const versionId = params.versionId;
11160
+ const syncSchedule = params.syncSchedule;
11161
+ const status = params.status;
11162
+ const triggerSync = params.triggerSync;
10422
11163
  if (typeof knowledgeBaseId === 'undefined') {
10423
11164
  throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
10424
11165
  }
10425
11166
  if (typeof sessionId === 'undefined') {
10426
11167
  throw new AgentbaseException('Missing required parameter: "sessionId"');
10427
11168
  }
11169
+ if (typeof name === 'undefined') {
11170
+ throw new AgentbaseException('Missing required parameter: "name"');
11171
+ }
10428
11172
  if (typeof urls === 'undefined') {
10429
11173
  throw new AgentbaseException('Missing required parameter: "urls"');
10430
11174
  }
10431
- const apiPath = '/knowledgebases/{knowledgeBaseId}/documents/yuque'.replace('{knowledgeBaseId}', knowledgeBaseId);
11175
+ const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/personal-datasources'.replace('{knowledgeBaseId}', knowledgeBaseId);
10432
11176
  const payload = {};
11177
+ if (typeof versionId !== 'undefined') {
11178
+ payload['versionId'] = versionId;
11179
+ }
10433
11180
  if (typeof sessionId !== 'undefined') {
10434
11181
  payload['sessionId'] = sessionId;
10435
11182
  }
11183
+ if (typeof name !== 'undefined') {
11184
+ payload['name'] = name;
11185
+ }
10436
11186
  if (typeof urls !== 'undefined') {
10437
11187
  payload['urls'] = urls;
10438
11188
  }
10439
- if (typeof idempotencyKey !== 'undefined') {
10440
- payload['idempotencyKey'] = idempotencyKey;
11189
+ if (typeof syncSchedule !== 'undefined') {
11190
+ payload['syncSchedule'] = syncSchedule;
10441
11191
  }
10442
- if (typeof versionId !== 'undefined') {
10443
- payload['versionId'] = versionId;
11192
+ if (typeof status !== 'undefined') {
11193
+ payload['status'] = status;
11194
+ }
11195
+ if (typeof triggerSync !== 'undefined') {
11196
+ payload['triggerSync'] = triggerSync;
10444
11197
  }
10445
11198
  const uri = new URL(this.client.config.endpoint + apiPath);
10446
11199
  const apiHeaders = {
@@ -10449,30 +11202,39 @@
10449
11202
  };
10450
11203
  return this.client.call('post', uri, apiHeaders, payload);
10451
11204
  }
10452
- deleteYuqueOAuthCredential(paramsOrFirst) {
11205
+ getYuquePersonalDataSource(paramsOrFirst, ...rest) {
10453
11206
  let params;
10454
11207
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
10455
11208
  params = (paramsOrFirst || {});
10456
11209
  }
10457
11210
  else {
10458
11211
  params = {
10459
- knowledgeBaseId: paramsOrFirst
11212
+ knowledgeBaseId: paramsOrFirst,
11213
+ dataSourceId: rest[0],
11214
+ versionId: rest[1]
10460
11215
  };
10461
11216
  }
10462
11217
  const knowledgeBaseId = params.knowledgeBaseId;
11218
+ const dataSourceId = params.dataSourceId;
11219
+ const versionId = params.versionId;
10463
11220
  if (typeof knowledgeBaseId === 'undefined') {
10464
11221
  throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
10465
11222
  }
10466
- const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/oauth/credentials/current'.replace('{knowledgeBaseId}', knowledgeBaseId);
11223
+ if (typeof dataSourceId === 'undefined') {
11224
+ throw new AgentbaseException('Missing required parameter: "dataSourceId"');
11225
+ }
11226
+ const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/personal-datasources/{dataSourceId}'.replace('{knowledgeBaseId}', knowledgeBaseId).replace('{dataSourceId}', dataSourceId);
10467
11227
  const payload = {};
11228
+ if (typeof versionId !== 'undefined') {
11229
+ payload['versionId'] = versionId;
11230
+ }
10468
11231
  const uri = new URL(this.client.config.endpoint + apiPath);
10469
11232
  const apiHeaders = {
10470
11233
  'X-Appwrite-Project': this.client.config.project,
10471
- 'content-type': 'application/json',
10472
11234
  };
10473
- return this.client.call('delete', uri, apiHeaders, payload);
11235
+ return this.client.call('get', uri, apiHeaders, payload);
10474
11236
  }
10475
- createYuqueOAuthSession(paramsOrFirst, ...rest) {
11237
+ updateYuquePersonalDataSource(paramsOrFirst, ...rest) {
10476
11238
  let params;
10477
11239
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
10478
11240
  params = (paramsOrFirst || {});
@@ -10480,27 +11242,52 @@
10480
11242
  else {
10481
11243
  params = {
10482
11244
  knowledgeBaseId: paramsOrFirst,
10483
- force: rest[0]
11245
+ dataSourceId: rest[0],
11246
+ versionId: rest[1],
11247
+ name: rest[2],
11248
+ urls: rest[3],
11249
+ syncSchedule: rest[4],
11250
+ status: rest[5]
10484
11251
  };
10485
11252
  }
10486
11253
  const knowledgeBaseId = params.knowledgeBaseId;
10487
- const force = params.force;
11254
+ const dataSourceId = params.dataSourceId;
11255
+ const versionId = params.versionId;
11256
+ const name = params.name;
11257
+ const urls = params.urls;
11258
+ const syncSchedule = params.syncSchedule;
11259
+ const status = params.status;
10488
11260
  if (typeof knowledgeBaseId === 'undefined') {
10489
11261
  throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
10490
11262
  }
10491
- const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/oauth/sessions'.replace('{knowledgeBaseId}', knowledgeBaseId);
11263
+ if (typeof dataSourceId === 'undefined') {
11264
+ throw new AgentbaseException('Missing required parameter: "dataSourceId"');
11265
+ }
11266
+ const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/personal-datasources/{dataSourceId}'.replace('{knowledgeBaseId}', knowledgeBaseId).replace('{dataSourceId}', dataSourceId);
10492
11267
  const payload = {};
10493
- if (typeof force !== 'undefined') {
10494
- payload['force'] = force;
11268
+ if (typeof versionId !== 'undefined') {
11269
+ payload['versionId'] = versionId;
11270
+ }
11271
+ if (typeof name !== 'undefined') {
11272
+ payload['name'] = name;
11273
+ }
11274
+ if (typeof urls !== 'undefined') {
11275
+ payload['urls'] = urls;
11276
+ }
11277
+ if (typeof syncSchedule !== 'undefined') {
11278
+ payload['syncSchedule'] = syncSchedule;
11279
+ }
11280
+ if (typeof status !== 'undefined') {
11281
+ payload['status'] = status;
10495
11282
  }
10496
11283
  const uri = new URL(this.client.config.endpoint + apiPath);
10497
11284
  const apiHeaders = {
10498
11285
  'X-Appwrite-Project': this.client.config.project,
10499
11286
  'content-type': 'application/json',
10500
11287
  };
10501
- return this.client.call('post', uri, apiHeaders, payload);
11288
+ return this.client.call('patch', uri, apiHeaders, payload);
10502
11289
  }
10503
- getYuqueOAuthSession(paramsOrFirst, ...rest) {
11290
+ deleteYuquePersonalDataSource(paramsOrFirst, ...rest) {
10504
11291
  let params;
10505
11292
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
10506
11293
  params = (paramsOrFirst || {});
@@ -10508,24 +11295,30 @@
10508
11295
  else {
10509
11296
  params = {
10510
11297
  knowledgeBaseId: paramsOrFirst,
10511
- sessionId: rest[0]
11298
+ dataSourceId: rest[0],
11299
+ versionId: rest[1]
10512
11300
  };
10513
11301
  }
10514
11302
  const knowledgeBaseId = params.knowledgeBaseId;
10515
- const sessionId = params.sessionId;
11303
+ const dataSourceId = params.dataSourceId;
11304
+ const versionId = params.versionId;
10516
11305
  if (typeof knowledgeBaseId === 'undefined') {
10517
11306
  throw new AgentbaseException('Missing required parameter: "knowledgeBaseId"');
10518
11307
  }
10519
- if (typeof sessionId === 'undefined') {
10520
- throw new AgentbaseException('Missing required parameter: "sessionId"');
11308
+ if (typeof dataSourceId === 'undefined') {
11309
+ throw new AgentbaseException('Missing required parameter: "dataSourceId"');
10521
11310
  }
10522
- const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/oauth/sessions/{sessionId}'.replace('{knowledgeBaseId}', knowledgeBaseId).replace('{sessionId}', sessionId);
11311
+ const apiPath = '/knowledgebases/{knowledgeBaseId}/yuque/personal-datasources/{dataSourceId}'.replace('{knowledgeBaseId}', knowledgeBaseId).replace('{dataSourceId}', dataSourceId);
10523
11312
  const payload = {};
11313
+ if (typeof versionId !== 'undefined') {
11314
+ payload['versionId'] = versionId;
11315
+ }
10524
11316
  const uri = new URL(this.client.config.endpoint + apiPath);
10525
11317
  const apiHeaders = {
10526
11318
  'X-Appwrite-Project': this.client.config.project,
11319
+ 'content-type': 'application/json',
10527
11320
  };
10528
- return this.client.call('get', uri, apiHeaders, payload);
11321
+ return this.client.call('delete', uri, apiHeaders, payload);
10529
11322
  }
10530
11323
  }
10531
11324
 
@@ -10736,7 +11529,8 @@
10736
11529
  query: rest[0],
10737
11530
  documents: rest[1],
10738
11531
  topN: rest[2],
10739
- returnDocuments: rest[3]
11532
+ returnDocuments: rest[3],
11533
+ instruct: rest[4]
10740
11534
  };
10741
11535
  }
10742
11536
  const model = params.model;
@@ -10744,6 +11538,7 @@
10744
11538
  const documents = params.documents;
10745
11539
  const topN = params.topN;
10746
11540
  const returnDocuments = params.returnDocuments;
11541
+ const instruct = params.instruct;
10747
11542
  if (typeof model === 'undefined') {
10748
11543
  throw new AgentbaseException('Missing required parameter: "model"');
10749
11544
  }
@@ -10770,6 +11565,9 @@
10770
11565
  if (typeof returnDocuments !== 'undefined') {
10771
11566
  payload['returnDocuments'] = returnDocuments;
10772
11567
  }
11568
+ if (typeof instruct !== 'undefined') {
11569
+ payload['instruct'] = instruct;
11570
+ }
10773
11571
  const uri = new URL(this.client.config.endpoint + apiPath);
10774
11572
  const apiHeaders = {
10775
11573
  'X-Appwrite-Project': this.client.config.project,
@@ -11123,9 +11921,10 @@
11123
11921
  sensitivity: rest[10],
11124
11922
  handlingPolicy: rest[11],
11125
11923
  metadata: rest[12],
11126
- infer: rest[13],
11127
- reRemember: rest[14],
11128
- async: rest[15]
11924
+ sourceContext: rest[13],
11925
+ infer: rest[14],
11926
+ reRemember: rest[15],
11927
+ async: rest[16]
11129
11928
  };
11130
11929
  }
11131
11930
  const userId = params.userId;
@@ -11142,6 +11941,7 @@
11142
11941
  const sensitivity = params.sensitivity;
11143
11942
  const handlingPolicy = params.handlingPolicy;
11144
11943
  const metadata = params.metadata;
11944
+ const sourceContext = params.sourceContext;
11145
11945
  const infer = params.infer;
11146
11946
  const reRemember = params.reRemember;
11147
11947
  const async = params.async;
@@ -11201,6 +12001,9 @@
11201
12001
  if (typeof metadata !== 'undefined') {
11202
12002
  payload['metadata'] = metadata;
11203
12003
  }
12004
+ if (typeof sourceContext !== 'undefined') {
12005
+ payload['sourceContext'] = sourceContext;
12006
+ }
11204
12007
  if (typeof infer !== 'undefined') {
11205
12008
  payload['infer'] = infer;
11206
12009
  }
@@ -13055,6 +13858,43 @@
13055
13858
  };
13056
13859
  return this.client.call('post', uri, apiHeaders, payload);
13057
13860
  }
13861
+ listProfiles(paramsOrFirst, ...rest) {
13862
+ let params;
13863
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
13864
+ params = (paramsOrFirst || {});
13865
+ }
13866
+ else {
13867
+ params = {
13868
+ cursor: paramsOrFirst,
13869
+ limit: rest[0],
13870
+ userId: rest[1],
13871
+ profileType: rest[2]
13872
+ };
13873
+ }
13874
+ const cursor = params.cursor;
13875
+ const limit = params.limit;
13876
+ const userId = params.userId;
13877
+ const profileType = params.profileType;
13878
+ const apiPath = '/memory/memories/profiles';
13879
+ const payload = {};
13880
+ if (typeof cursor !== 'undefined') {
13881
+ payload['cursor'] = cursor;
13882
+ }
13883
+ if (typeof limit !== 'undefined') {
13884
+ payload['limit'] = limit;
13885
+ }
13886
+ if (typeof userId !== 'undefined') {
13887
+ payload['userId'] = userId;
13888
+ }
13889
+ if (typeof profileType !== 'undefined') {
13890
+ payload['profileType'] = profileType;
13891
+ }
13892
+ const uri = new URL(this.client.config.endpoint + apiPath);
13893
+ const apiHeaders = {
13894
+ 'X-Appwrite-Project': this.client.config.project,
13895
+ };
13896
+ return this.client.call('get', uri, apiHeaders, payload);
13897
+ }
13058
13898
  /**
13059
13899
  * Get a memory quality report.
13060
13900
  *
@@ -13169,13 +14009,14 @@
13169
14009
  memoryType: rest[7],
13170
14010
  recordKind: rest[8],
13171
14011
  filter: rest[9],
13172
- limit: rest[10],
13173
- cursor: rest[11],
13174
- sort: rest[12],
13175
- memorySubStoreId: rest[13],
13176
- sessionId: rest[14],
13177
- groupId: rest[15],
13178
- accessMode: rest[16]
14012
+ temporal: rest[10],
14013
+ limit: rest[11],
14014
+ cursor: rest[12],
14015
+ sort: rest[13],
14016
+ memorySubStoreId: rest[14],
14017
+ sessionId: rest[15],
14018
+ groupId: rest[16],
14019
+ accessMode: rest[17]
13179
14020
  };
13180
14021
  }
13181
14022
  const query = params.query;
@@ -13189,6 +14030,7 @@
13189
14030
  const memoryType = params.memoryType;
13190
14031
  const recordKind = params.recordKind;
13191
14032
  const filter = params.filter;
14033
+ const temporal = params.temporal;
13192
14034
  const limit = params.limit;
13193
14035
  const cursor = params.cursor;
13194
14036
  const sort = params.sort;
@@ -13231,6 +14073,9 @@
13231
14073
  if (typeof filter !== 'undefined') {
13232
14074
  payload['filter'] = filter;
13233
14075
  }
14076
+ if (typeof temporal !== 'undefined') {
14077
+ payload['temporal'] = temporal;
14078
+ }
13234
14079
  if (typeof limit !== 'undefined') {
13235
14080
  payload['limit'] = limit;
13236
14081
  }
@@ -13956,6 +14801,110 @@
13956
14801
  };
13957
14802
  return this.client.call('get', uri, apiHeaders, payload);
13958
14803
  }
14804
+ listPipelineRuns(paramsOrFirst, ...rest) {
14805
+ let params;
14806
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('scenario' in paramsOrFirst || 'limit' in paramsOrFirst || 'cursor' in paramsOrFirst))) {
14807
+ params = (paramsOrFirst || {});
14808
+ }
14809
+ else {
14810
+ params = {
14811
+ scenario: paramsOrFirst,
14812
+ limit: rest[0],
14813
+ cursor: rest[1]
14814
+ };
14815
+ }
14816
+ const scenario = params.scenario;
14817
+ const limit = params.limit;
14818
+ const cursor = params.cursor;
14819
+ const apiPath = '/memory/pipeline-runs';
14820
+ const payload = {};
14821
+ if (typeof scenario !== 'undefined') {
14822
+ payload['scenario'] = scenario;
14823
+ }
14824
+ if (typeof limit !== 'undefined') {
14825
+ payload['limit'] = limit;
14826
+ }
14827
+ if (typeof cursor !== 'undefined') {
14828
+ payload['cursor'] = cursor;
14829
+ }
14830
+ const uri = new URL(this.client.config.endpoint + apiPath);
14831
+ const apiHeaders = {
14832
+ 'X-Appwrite-Project': this.client.config.project,
14833
+ };
14834
+ return this.client.call('get', uri, apiHeaders, payload);
14835
+ }
14836
+ createPipelineRun(paramsOrFirst, ...rest) {
14837
+ let params;
14838
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14839
+ params = (paramsOrFirst || {});
14840
+ }
14841
+ else {
14842
+ params = {
14843
+ name: paramsOrFirst,
14844
+ scenario: rest[0],
14845
+ candidates: rest[1],
14846
+ samples: rest[2]
14847
+ };
14848
+ }
14849
+ const name = params.name;
14850
+ const scenario = params.scenario;
14851
+ const candidates = params.candidates;
14852
+ const samples = params.samples;
14853
+ if (typeof name === 'undefined') {
14854
+ throw new AgentbaseException('Missing required parameter: "name"');
14855
+ }
14856
+ if (typeof scenario === 'undefined') {
14857
+ throw new AgentbaseException('Missing required parameter: "scenario"');
14858
+ }
14859
+ if (typeof candidates === 'undefined') {
14860
+ throw new AgentbaseException('Missing required parameter: "candidates"');
14861
+ }
14862
+ if (typeof samples === 'undefined') {
14863
+ throw new AgentbaseException('Missing required parameter: "samples"');
14864
+ }
14865
+ const apiPath = '/memory/pipeline-runs';
14866
+ const payload = {};
14867
+ if (typeof name !== 'undefined') {
14868
+ payload['name'] = name;
14869
+ }
14870
+ if (typeof scenario !== 'undefined') {
14871
+ payload['scenario'] = scenario;
14872
+ }
14873
+ if (typeof candidates !== 'undefined') {
14874
+ payload['candidates'] = candidates;
14875
+ }
14876
+ if (typeof samples !== 'undefined') {
14877
+ payload['samples'] = samples;
14878
+ }
14879
+ const uri = new URL(this.client.config.endpoint + apiPath);
14880
+ const apiHeaders = {
14881
+ 'X-Appwrite-Project': this.client.config.project,
14882
+ 'content-type': 'application/json',
14883
+ };
14884
+ return this.client.call('post', uri, apiHeaders, payload);
14885
+ }
14886
+ getPipelineRun(paramsOrFirst) {
14887
+ let params;
14888
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14889
+ params = (paramsOrFirst || {});
14890
+ }
14891
+ else {
14892
+ params = {
14893
+ runId: paramsOrFirst
14894
+ };
14895
+ }
14896
+ const runId = params.runId;
14897
+ if (typeof runId === 'undefined') {
14898
+ throw new AgentbaseException('Missing required parameter: "runId"');
14899
+ }
14900
+ const apiPath = '/memory/pipeline-runs/{runId}'.replace('{runId}', runId);
14901
+ const payload = {};
14902
+ const uri = new URL(this.client.config.endpoint + apiPath);
14903
+ const apiHeaders = {
14904
+ 'X-Appwrite-Project': this.client.config.project,
14905
+ };
14906
+ return this.client.call('get', uri, apiHeaders, payload);
14907
+ }
13959
14908
  listPipelines(paramsOrFirst) {
13960
14909
  let params;
13961
14910
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('scenario' in paramsOrFirst))) {
@@ -14228,12 +15177,14 @@
14228
15177
  params = {
14229
15178
  pipelineId: paramsOrFirst,
14230
15179
  versionId: rest[0],
14231
- data: rest[1]
15180
+ data: rest[1],
15181
+ scenario: rest[2]
14232
15182
  };
14233
15183
  }
14234
15184
  const pipelineId = params.pipelineId;
14235
15185
  const versionId = params.versionId;
14236
15186
  const data = params.data;
15187
+ const scenario = params.scenario;
14237
15188
  if (typeof pipelineId === 'undefined') {
14238
15189
  throw new AgentbaseException('Missing required parameter: "pipelineId"');
14239
15190
  }
@@ -14248,6 +15199,9 @@
14248
15199
  if (typeof versionId !== 'undefined') {
14249
15200
  payload['versionId'] = versionId;
14250
15201
  }
15202
+ if (typeof scenario !== 'undefined') {
15203
+ payload['scenario'] = scenario;
15204
+ }
14251
15205
  if (typeof data !== 'undefined') {
14252
15206
  payload['data'] = data;
14253
15207
  }
@@ -17941,6 +18895,12 @@
17941
18895
  AuthenticationFactor["Recoverycode"] = "recoverycode";
17942
18896
  })(exports.AuthenticationFactor || (exports.AuthenticationFactor = {}));
17943
18897
 
18898
+ exports.Scene = void 0;
18899
+ (function (Scene) {
18900
+ Scene["Verify"] = "verify";
18901
+ Scene["AccountChange"] = "accountChange";
18902
+ })(exports.Scene || (exports.Scene = {}));
18903
+
17944
18904
  exports.OAuthProvider = void 0;
17945
18905
  (function (OAuthProvider) {
17946
18906
  OAuthProvider["Amazon"] = "amazon";
@@ -18009,6 +18969,8 @@
18009
18969
  Status["Approved"] = "approved";
18010
18970
  Status["Rejected"] = "rejected";
18011
18971
  Status["Superseded"] = "superseded";
18972
+ Status["Disabled"] = "disabled";
18973
+ Status["Error"] = "error";
18012
18974
  })(exports.Status || (exports.Status = {}));
18013
18975
 
18014
18976
  exports.Browser = void 0;
@@ -18478,6 +19440,7 @@
18478
19440
  Timezone["AsiaBaku"] = "asia/baku";
18479
19441
  Timezone["AsiaBangkok"] = "asia/bangkok";
18480
19442
  Timezone["AsiaBarnaul"] = "asia/barnaul";
19443
+ Timezone["AsiaBeijing"] = "asia/beijing";
18481
19444
  Timezone["AsiaBeirut"] = "asia/beirut";
18482
19445
  Timezone["AsiaBishkek"] = "asia/bishkek";
18483
19446
  Timezone["AsiaBrunei"] = "asia/brunei";
@@ -18854,6 +19817,12 @@
18854
19817
  VerificationSource["Toolresult"] = "tool-result";
18855
19818
  })(exports.VerificationSource || (exports.VerificationSource = {}));
18856
19819
 
19820
+ exports.ProfileType = void 0;
19821
+ (function (ProfileType) {
19822
+ ProfileType["Content"] = "content";
19823
+ ProfileType["Topics"] = "topics";
19824
+ })(exports.ProfileType || (exports.ProfileType = {}));
19825
+
18857
19826
  exports.Kinds = void 0;
18858
19827
  (function (Kinds) {
18859
19828
  Kinds["Memory"] = "memory";
@@ -18862,12 +19831,6 @@
18862
19831
  Kinds["Experience"] = "experience";
18863
19832
  })(exports.Kinds || (exports.Kinds = {}));
18864
19833
 
18865
- exports.ProfileType = void 0;
18866
- (function (ProfileType) {
18867
- ProfileType["Content"] = "content";
18868
- ProfileType["Topics"] = "topics";
18869
- })(exports.ProfileType || (exports.ProfileType = {}));
18870
-
18871
19834
  exports.ProfileExtractionMode = void 0;
18872
19835
  (function (ProfileExtractionMode) {
18873
19836
  ProfileExtractionMode["Incremental"] = "incremental";
@@ -18937,6 +19900,12 @@
18937
19900
  TransactionAction["BulkDelete"] = "bulkDelete";
18938
19901
  })(exports.TransactionAction || (exports.TransactionAction = {}));
18939
19902
 
19903
+ exports.DataApiFilterLogic = void 0;
19904
+ (function (DataApiFilterLogic) {
19905
+ DataApiFilterLogic["And"] = "AND";
19906
+ DataApiFilterLogic["Or"] = "OR";
19907
+ })(exports.DataApiFilterLogic || (exports.DataApiFilterLogic = {}));
19908
+
18940
19909
  exports.MemoryMessageRole = void 0;
18941
19910
  (function (MemoryMessageRole) {
18942
19911
  MemoryMessageRole["User"] = "user";
@@ -18979,6 +19948,63 @@
18979
19948
  DistillationToolStatus["Failed"] = "failed";
18980
19949
  })(exports.DistillationToolStatus || (exports.DistillationToolStatus = {}));
18981
19950
 
19951
+ exports.DataApiOwnedBindingPrincipalType = void 0;
19952
+ (function (DataApiOwnedBindingPrincipalType) {
19953
+ DataApiOwnedBindingPrincipalType["USER"] = "USER";
19954
+ DataApiOwnedBindingPrincipalType["SERVICE"] = "SERVICE";
19955
+ })(exports.DataApiOwnedBindingPrincipalType || (exports.DataApiOwnedBindingPrincipalType = {}));
19956
+
19957
+ exports.DataApiOwnedBindingStatus = void 0;
19958
+ (function (DataApiOwnedBindingStatus) {
19959
+ DataApiOwnedBindingStatus["ACTIVE"] = "ACTIVE";
19960
+ DataApiOwnedBindingStatus["DISABLED"] = "DISABLED";
19961
+ })(exports.DataApiOwnedBindingStatus || (exports.DataApiOwnedBindingStatus = {}));
19962
+
19963
+ exports.DataApiCatalogDataSourceDatabaseType = void 0;
19964
+ (function (DataApiCatalogDataSourceDatabaseType) {
19965
+ DataApiCatalogDataSourceDatabaseType["OBMYSQL"] = "OB_MYSQL";
19966
+ DataApiCatalogDataSourceDatabaseType["OBORACLE"] = "OB_ORACLE";
19967
+ DataApiCatalogDataSourceDatabaseType["MYSQL"] = "MYSQL";
19968
+ DataApiCatalogDataSourceDatabaseType["ORACLE"] = "ORACLE";
19969
+ })(exports.DataApiCatalogDataSourceDatabaseType || (exports.DataApiCatalogDataSourceDatabaseType = {}));
19970
+
19971
+ exports.DataApiCatalogDataSourceVisibilitySource = void 0;
19972
+ (function (DataApiCatalogDataSourceVisibilitySource) {
19973
+ DataApiCatalogDataSourceVisibilitySource["ORGANIZATIONOWNER"] = "ORGANIZATION_OWNER";
19974
+ DataApiCatalogDataSourceVisibilitySource["PROJECTDATASOURCEGRANT"] = "PROJECT_DATA_SOURCE_GRANT";
19975
+ DataApiCatalogDataSourceVisibilitySource["CONTROLPLANEPOLICY"] = "CONTROL_PLANE_POLICY";
19976
+ DataApiCatalogDataSourceVisibilitySource["ACCESSBINDING"] = "ACCESS_BINDING";
19977
+ DataApiCatalogDataSourceVisibilitySource["BOTH"] = "BOTH";
19978
+ })(exports.DataApiCatalogDataSourceVisibilitySource || (exports.DataApiCatalogDataSourceVisibilitySource = {}));
19979
+
19980
+ exports.DataApiCatalogDatabaseClassification = void 0;
19981
+ (function (DataApiCatalogDatabaseClassification) {
19982
+ DataApiCatalogDatabaseClassification["USER"] = "USER";
19983
+ DataApiCatalogDatabaseClassification["SYSTEM"] = "SYSTEM";
19984
+ })(exports.DataApiCatalogDatabaseClassification || (exports.DataApiCatalogDatabaseClassification = {}));
19985
+
19986
+ exports.DataApiCatalogDatabaseStatus = void 0;
19987
+ (function (DataApiCatalogDatabaseStatus) {
19988
+ DataApiCatalogDatabaseStatus["VALID"] = "VALID";
19989
+ DataApiCatalogDatabaseStatus["INVALID"] = "INVALID";
19990
+ })(exports.DataApiCatalogDatabaseStatus || (exports.DataApiCatalogDatabaseStatus = {}));
19991
+
19992
+ exports.DataApiCatalogDatabaseAvailability = void 0;
19993
+ (function (DataApiCatalogDatabaseAvailability) {
19994
+ DataApiCatalogDatabaseAvailability["UNKNOWN"] = "UNKNOWN";
19995
+ DataApiCatalogDatabaseAvailability["AVAILABLE"] = "AVAILABLE";
19996
+ DataApiCatalogDatabaseAvailability["UNAVAILABLE"] = "UNAVAILABLE";
19997
+ })(exports.DataApiCatalogDatabaseAvailability || (exports.DataApiCatalogDatabaseAvailability = {}));
19998
+
19999
+ exports.DataApiCatalogDatabaseVisibilitySource = void 0;
20000
+ (function (DataApiCatalogDatabaseVisibilitySource) {
20001
+ DataApiCatalogDatabaseVisibilitySource["ORGANIZATIONOWNER"] = "ORGANIZATION_OWNER";
20002
+ DataApiCatalogDatabaseVisibilitySource["PROJECTDATASOURCEGRANT"] = "PROJECT_DATA_SOURCE_GRANT";
20003
+ DataApiCatalogDatabaseVisibilitySource["CONTROLPLANEPOLICY"] = "CONTROL_PLANE_POLICY";
20004
+ DataApiCatalogDatabaseVisibilitySource["ACCESSBINDING"] = "ACCESS_BINDING";
20005
+ DataApiCatalogDatabaseVisibilitySource["BOTH"] = "BOTH";
20006
+ })(exports.DataApiCatalogDatabaseVisibilitySource || (exports.DataApiCatalogDatabaseVisibilitySource = {}));
20007
+
18982
20008
  exports.ExecutionTrigger = void 0;
18983
20009
  (function (ExecutionTrigger) {
18984
20010
  ExecutionTrigger["Http"] = "http";
@@ -19033,6 +20059,28 @@
19033
20059
  MemoryBulkDeleteResponseStatus["PartialFailed"] = "partial_failed";
19034
20060
  })(exports.MemoryBulkDeleteResponseStatus || (exports.MemoryBulkDeleteResponseStatus = {}));
19035
20061
 
20062
+ exports.MemoryPipelineRunResultStatus = void 0;
20063
+ (function (MemoryPipelineRunResultStatus) {
20064
+ MemoryPipelineRunResultStatus["Completed"] = "completed";
20065
+ MemoryPipelineRunResultStatus["Failed"] = "failed";
20066
+ })(exports.MemoryPipelineRunResultStatus || (exports.MemoryPipelineRunResultStatus = {}));
20067
+
20068
+ exports.MemoryPipelineRunScenario = void 0;
20069
+ (function (MemoryPipelineRunScenario) {
20070
+ MemoryPipelineRunScenario["AddMemory"] = "add_memory";
20071
+ MemoryPipelineRunScenario["Profile"] = "profile";
20072
+ MemoryPipelineRunScenario["Distillation"] = "distillation";
20073
+ MemoryPipelineRunScenario["Forgetting"] = "forgetting";
20074
+ })(exports.MemoryPipelineRunScenario || (exports.MemoryPipelineRunScenario = {}));
20075
+
20076
+ exports.MemoryPipelineRunStatus = void 0;
20077
+ (function (MemoryPipelineRunStatus) {
20078
+ MemoryPipelineRunStatus["Queued"] = "queued";
20079
+ MemoryPipelineRunStatus["Running"] = "running";
20080
+ MemoryPipelineRunStatus["Completed"] = "completed";
20081
+ MemoryPipelineRunStatus["Failed"] = "failed";
20082
+ })(exports.MemoryPipelineRunStatus || (exports.MemoryPipelineRunStatus = {}));
20083
+
19036
20084
  exports.KnowledgeBaseDataSourceDocumentImportResultStatus = void 0;
19037
20085
  (function (KnowledgeBaseDataSourceDocumentImportResultStatus) {
19038
20086
  KnowledgeBaseDataSourceDocumentImportResultStatus["Accepted"] = "accepted";
@@ -19047,6 +20095,7 @@
19047
20095
  exports.Avatars = Avatars;
19048
20096
  exports.Channel = Channel;
19049
20097
  exports.Client = Client;
20098
+ exports.DataApi = DataApi;
19050
20099
  exports.Databases = Databases;
19051
20100
  exports.DocumentsDB = DocumentsDB;
19052
20101
  exports.Functions = Functions;