agentbase-web-sdk 2.9.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 (34) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/sdk.js +2456 -664
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +2456 -665
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +2456 -664
  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/method.d.ts +9 -0
  21. package/types/enums/path-match.d.ts +4 -0
  22. package/types/enums/scenario.d.ts +6 -0
  23. package/types/enums/scene.d.ts +4 -0
  24. package/types/enums/status.d.ts +7 -1
  25. package/types/enums/timezone.d.ts +1 -0
  26. package/types/index.d.ts +19 -2
  27. package/types/models.d.ts +798 -4
  28. package/types/services/account.d.ts +85 -2
  29. package/types/services/ai-gateway.d.ts +90 -0
  30. package/types/services/data-api.d.ts +257 -0
  31. package/types/services/functions.d.ts +35 -7
  32. package/types/services/knowledge-bases.d.ts +186 -2
  33. package/types/services/llm-gateway.d.ts +8 -1
  34. package/types/services/memory.d.ts +600 -19
package/types/models.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { DataApiFilterLogic } from './enums/data-api-filter-logic';
1
2
  import { DistillationMessageRole } from './enums/distillation-message-role';
2
3
  import { DistillationToolStatus } from './enums/distillation-tool-status';
3
4
  import { MemoryBatchOperation } from './enums/memory-batch-operation';
@@ -7,6 +8,14 @@ import { MemoryRecordKind } from './enums/memory-record-kind';
7
8
  import { MemoryRecordSensitivity } from './enums/memory-record-sensitivity';
8
9
  import { MemoryScope } from './enums/memory-scope';
9
10
  import { TransactionAction } from './enums/transaction-action';
11
+ import { DataApiOwnedBindingPrincipalType } from "./enums/data-api-owned-binding-principal-type";
12
+ import { DataApiOwnedBindingStatus } from "./enums/data-api-owned-binding-status";
13
+ import { DataApiCatalogDataSourceDatabaseType } from "./enums/data-api-catalog-data-source-database-type";
14
+ import { DataApiCatalogDataSourceVisibilitySource } from "./enums/data-api-catalog-data-source-visibility-source";
15
+ import { DataApiCatalogDatabaseClassification } from "./enums/data-api-catalog-database-classification";
16
+ import { DataApiCatalogDatabaseStatus } from "./enums/data-api-catalog-database-status";
17
+ import { DataApiCatalogDatabaseAvailability } from "./enums/data-api-catalog-database-availability";
18
+ import { DataApiCatalogDatabaseVisibilitySource } from "./enums/data-api-catalog-database-visibility-source";
10
19
  import { ExecutionTrigger } from "./enums/execution-trigger";
11
20
  import { ExecutionStatus } from "./enums/execution-status";
12
21
  import { OrganizationProjectDeletionDeletionStatus } from "./enums/organization-project-deletion-deletion-status";
@@ -15,12 +24,402 @@ import { ProjectDeletionResultDeletionStatus } from "./enums/project-deletion-re
15
24
  import { ProjectDeletionRestoreStatus } from "./enums/project-deletion-restore-status";
16
25
  import { MemoryBulkDeleteItemStatus } from "./enums/memory-bulk-delete-item-status";
17
26
  import { MemoryBulkDeleteResponseStatus } from "./enums/memory-bulk-delete-response-status";
27
+ import { MemoryPipelineRunResultStatus } from "./enums/memory-pipeline-run-result-status";
28
+ import { MemoryPipelineRunScenario } from "./enums/memory-pipeline-run-scenario";
29
+ import { MemoryPipelineRunStatus } from "./enums/memory-pipeline-run-status";
18
30
  import { KnowledgeBaseDataSourceDocumentImportResultStatus } from "./enums/knowledge-base-data-source-document-import-result-status";
19
31
  /**
20
32
  * Agentbase Models
21
33
  */
22
34
  export declare namespace Models {
23
35
  const __default: unique symbol;
36
+ /**
37
+ * Data API Binding Catalog Table Detail
38
+ */
39
+ export type DataApiRouteCatalogTableDetail = {
40
+ /**
41
+ * Public table metadata.
42
+ */
43
+ table: DataApiCatalogTableMetadata;
44
+ /**
45
+ * Public column metadata.
46
+ */
47
+ columns: DataApiCatalogColumn[];
48
+ /**
49
+ * Public index metadata.
50
+ */
51
+ indexes: DataApiCatalogIndex[];
52
+ /**
53
+ * Public partition metadata.
54
+ */
55
+ partitions: DataApiCatalogPartition[];
56
+ /**
57
+ * Bounded cache state.
58
+ */
59
+ cache: DataApiCatalogCache;
60
+ /**
61
+ * Constraints of the selected binding.
62
+ */
63
+ routeConstraints: DataApiRouteConstraints;
64
+ };
65
+ /**
66
+ * Data API Route Constraints
67
+ */
68
+ export type DataApiRouteConstraints = {
69
+ /**
70
+ * Whether row restrictions apply.
71
+ */
72
+ rowRestricted: boolean;
73
+ /**
74
+ * Effective row limit, null when unlimited.
75
+ */
76
+ maxRows?: number;
77
+ /**
78
+ * Whether organization defaults contribute to the constraints.
79
+ */
80
+ organizationDefault: boolean;
81
+ };
82
+ /**
83
+ * Current Data API Binding
84
+ */
85
+ export type DataApiOwnedBinding = {
86
+ /**
87
+ * Data API access binding ID.
88
+ */
89
+ id: number;
90
+ /**
91
+ * Published policy set used by this binding.
92
+ */
93
+ dataPolicySetId: number;
94
+ /**
95
+ * Binding recipient type.
96
+ */
97
+ principalType: DataApiOwnedBindingPrincipalType;
98
+ /**
99
+ * Binding status.
100
+ */
101
+ status: DataApiOwnedBindingStatus;
102
+ /**
103
+ * Optional binding expiry.
104
+ */
105
+ validUntil?: string;
106
+ /**
107
+ * Binding display name.
108
+ */
109
+ displayName: string;
110
+ /**
111
+ * Binding description.
112
+ */
113
+ description: string;
114
+ };
115
+ /**
116
+ * Current Data API Bindings List
117
+ */
118
+ export type DataApiOwnedBindingList = {
119
+ /**
120
+ * Bindings in this page.
121
+ */
122
+ items: DataApiOwnedBinding[];
123
+ /**
124
+ * Opaque cursor for the next page.
125
+ */
126
+ nextCursor?: string;
127
+ };
128
+ /**
129
+ * Data API Native SQL Result
130
+ */
131
+ export type DataApiNativeSqlResult = {
132
+ /**
133
+ * Ordered result column metadata.
134
+ */
135
+ columns: object[];
136
+ /**
137
+ * Rows of string, number, boolean or null cells aligned with columns. Exact integers and decimals are strings.
138
+ */
139
+ rows: any[][];
140
+ /**
141
+ * Number of returned rows.
142
+ */
143
+ rowCount: number;
144
+ };
145
+ /**
146
+ * Data API REST Result
147
+ */
148
+ export type DataApiRestResult = {
149
+ /**
150
+ * Projected rows or aggregate groups.
151
+ */
152
+ rows: object[];
153
+ /**
154
+ * Effective pagination and ordering information.
155
+ */
156
+ pageInfo: object;
157
+ };
158
+ /**
159
+ * Data API Catalog Data Source
160
+ */
161
+ export type DataApiCatalogDataSource = {
162
+ /**
163
+ * Data source ID.
164
+ */
165
+ dataSourceId: number;
166
+ /**
167
+ * Display name.
168
+ */
169
+ displayName: string;
170
+ /**
171
+ * Database family.
172
+ */
173
+ databaseType: DataApiCatalogDataSourceDatabaseType;
174
+ /**
175
+ * Visibility source.
176
+ */
177
+ visibilitySource: DataApiCatalogDataSourceVisibilitySource;
178
+ };
179
+ /**
180
+ * Data API Catalog Data Sources List
181
+ */
182
+ export type DataApiCatalogDataSourceList = {
183
+ /**
184
+ * Items in this page.
185
+ */
186
+ items: DataApiCatalogDataSource[];
187
+ /**
188
+ * Opaque next-page cursor.
189
+ */
190
+ nextCursor?: string;
191
+ };
192
+ /**
193
+ * Data API Catalog Database
194
+ */
195
+ export type DataApiCatalogDatabase = {
196
+ /**
197
+ * Database ID.
198
+ */
199
+ databaseId: number;
200
+ /**
201
+ * Database name.
202
+ */
203
+ name: string;
204
+ /**
205
+ * Database classification.
206
+ */
207
+ classification: DataApiCatalogDatabaseClassification;
208
+ /**
209
+ * Database status.
210
+ */
211
+ status: DataApiCatalogDatabaseStatus;
212
+ /**
213
+ * Last known availability.
214
+ */
215
+ availability: DataApiCatalogDatabaseAvailability;
216
+ /**
217
+ * Visibility source.
218
+ */
219
+ visibilitySource: DataApiCatalogDatabaseVisibilitySource;
220
+ };
221
+ /**
222
+ * Data API Catalog Databases List
223
+ */
224
+ export type DataApiCatalogDatabaseList = {
225
+ /**
226
+ * Items in this page.
227
+ */
228
+ items: DataApiCatalogDatabase[];
229
+ /**
230
+ * Opaque next-page cursor.
231
+ */
232
+ nextCursor?: string;
233
+ };
234
+ /**
235
+ * Data API Catalog Cache Summary
236
+ */
237
+ export type DataApiCatalogCacheSummary = {
238
+ /**
239
+ * Cache state.
240
+ */
241
+ state: string;
242
+ /**
243
+ * Last observation time.
244
+ */
245
+ observedAt?: string;
246
+ /**
247
+ * Last refresh attempt time.
248
+ */
249
+ lastRefreshAttemptAt?: string;
250
+ /**
251
+ * Stable refresh failure code.
252
+ */
253
+ lastRefreshErrorCode?: string;
254
+ };
255
+ /**
256
+ * Data API Catalog Cache
257
+ */
258
+ export type DataApiCatalogCache = {
259
+ /**
260
+ * Cache state.
261
+ */
262
+ state: string;
263
+ /**
264
+ * Last observation time.
265
+ */
266
+ observedAt?: string;
267
+ /**
268
+ * Last refresh attempt time.
269
+ */
270
+ lastRefreshAttemptAt?: string;
271
+ /**
272
+ * Stable refresh failure code.
273
+ */
274
+ lastRefreshErrorCode?: string;
275
+ /**
276
+ * Cache detail schema version.
277
+ */
278
+ detailSchemaVersion: number;
279
+ };
280
+ /**
281
+ * Data API Catalog Table Metadata
282
+ */
283
+ export type DataApiCatalogTableMetadata = {
284
+ /**
285
+ * Table name.
286
+ */
287
+ tableName: string;
288
+ /**
289
+ * Table type.
290
+ */
291
+ tableType: string;
292
+ /**
293
+ * Visibility source.
294
+ */
295
+ visibilitySource: string;
296
+ /**
297
+ * Whether the table can be queried.
298
+ */
299
+ queryable: boolean;
300
+ };
301
+ /**
302
+ * Data API Catalog Column
303
+ */
304
+ export type DataApiCatalogColumn = {
305
+ /**
306
+ * Column name.
307
+ */
308
+ columnName: string;
309
+ /**
310
+ * One-based visible ordinal.
311
+ */
312
+ visibleOrdinal: number;
313
+ /**
314
+ * Portable data type.
315
+ */
316
+ dataType: string;
317
+ /**
318
+ * Native database type.
319
+ */
320
+ nativeType: string;
321
+ /**
322
+ * Whether null is accepted.
323
+ */
324
+ nullable: boolean;
325
+ /**
326
+ * Visibility source.
327
+ */
328
+ visibilitySource: string;
329
+ /**
330
+ * Effective access mode.
331
+ */
332
+ accessMode: string;
333
+ };
334
+ /**
335
+ * Data API Catalog Column Reference
336
+ */
337
+ export type DataApiCatalogColumnReference = {
338
+ /**
339
+ * Referenced column name.
340
+ */
341
+ columnName: string;
342
+ };
343
+ /**
344
+ * Data API Catalog Index
345
+ */
346
+ export type DataApiCatalogIndex = {
347
+ /**
348
+ * Whether this is a primary index.
349
+ */
350
+ primary: boolean;
351
+ /**
352
+ * Whether values are unique.
353
+ */
354
+ unique: boolean;
355
+ /**
356
+ * Native index type.
357
+ */
358
+ indexType: string;
359
+ /**
360
+ * Whether all index columns are visible.
361
+ */
362
+ complete: boolean;
363
+ /**
364
+ * Ordered index columns.
365
+ */
366
+ columns: DataApiCatalogColumnReference[];
367
+ /**
368
+ * Recommended leading predicate columns.
369
+ */
370
+ recommendedPredicateColumns: string[];
371
+ };
372
+ /**
373
+ * Data API Catalog Partition
374
+ */
375
+ export type DataApiCatalogPartition = {
376
+ /**
377
+ * Partition type.
378
+ */
379
+ partitionType: string;
380
+ /**
381
+ * Whether all partition key columns are visible.
382
+ */
383
+ complete: boolean;
384
+ /**
385
+ * Partition key columns.
386
+ */
387
+ keyColumns: DataApiCatalogColumnReference[];
388
+ };
389
+ /**
390
+ * Data API Catalog Table
391
+ */
392
+ export type DataApiCatalogTable = {
393
+ /**
394
+ * Table name.
395
+ */
396
+ tableName: string;
397
+ /**
398
+ * Table type.
399
+ */
400
+ tableType: string;
401
+ /**
402
+ * Visibility source.
403
+ */
404
+ visibilitySource: string;
405
+ /**
406
+ * Bounded cache summary.
407
+ */
408
+ cache: DataApiCatalogCacheSummary;
409
+ };
410
+ /**
411
+ * Data API Catalog Tables List
412
+ */
413
+ export type DataApiCatalogTableList = {
414
+ /**
415
+ * Items in this page.
416
+ */
417
+ items: DataApiCatalogTable[];
418
+ /**
419
+ * Opaque next-page cursor.
420
+ */
421
+ nextCursor?: string;
422
+ };
24
423
  /**
25
424
  * Aggregated Row
26
425
  */
@@ -379,15 +778,15 @@ export declare namespace Models {
379
778
  /**
380
779
  * Moderation disposition: checking, published, quarantined, private_hold. Only present when moderation is active.
381
780
  */
382
- moderationStatus: string;
781
+ moderationStatus?: string;
383
782
  /**
384
783
  * ID of the moderation job processing this document. Only present when moderation is active.
385
784
  */
386
- moderationJobId: string;
785
+ moderationJobId?: string;
387
786
  /**
388
787
  * Monotonically increasing version of the document content, used by moderation to track which version was reviewed.
389
788
  */
390
- contentVersion: number;
789
+ contentVersion?: number;
391
790
  };
392
791
  export type DefaultDocument = Document & {
393
792
  [key: string]: any;
@@ -674,6 +1073,83 @@ export declare namespace Models {
674
1073
  */
675
1074
  threads: number;
676
1075
  };
1076
+ /**
1077
+ * Account
1078
+ */
1079
+ export type Account<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
1080
+ /**
1081
+ * User ID.
1082
+ */
1083
+ $id: string;
1084
+ /**
1085
+ * User creation date in ISO 8601 format.
1086
+ */
1087
+ $createdAt: string;
1088
+ /**
1089
+ * User update date in ISO 8601 format.
1090
+ */
1091
+ $updatedAt: string;
1092
+ /**
1093
+ * User name.
1094
+ */
1095
+ name: string;
1096
+ /**
1097
+ * User registration date in ISO 8601 format.
1098
+ */
1099
+ registration: string;
1100
+ /**
1101
+ * User status. Pass `true` for enabled and `false` for disabled.
1102
+ */
1103
+ status: boolean;
1104
+ /**
1105
+ * Labels for the user.
1106
+ */
1107
+ labels: string[];
1108
+ /**
1109
+ * Password update time in ISO 8601 format.
1110
+ */
1111
+ passwordUpdate: string;
1112
+ /**
1113
+ * User email address.
1114
+ */
1115
+ email: string;
1116
+ /**
1117
+ * User phone number in E.164 format.
1118
+ */
1119
+ phone: string;
1120
+ /**
1121
+ * Email verification status.
1122
+ */
1123
+ emailVerification: boolean;
1124
+ /**
1125
+ * Phone verification status.
1126
+ */
1127
+ phoneVerification: boolean;
1128
+ /**
1129
+ * Multi factor authentication status.
1130
+ */
1131
+ mfa: boolean;
1132
+ /**
1133
+ * User preferences as a key-value object
1134
+ */
1135
+ prefs: Preferences;
1136
+ /**
1137
+ * A user-owned message receiver. A single user may have multiple e.g. emails, phones, and a browser. Each target is registered with a single provider.
1138
+ */
1139
+ targets: Target[];
1140
+ /**
1141
+ * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
1142
+ */
1143
+ accessedAt: string;
1144
+ /**
1145
+ * Whether the user can impersonate other users.
1146
+ */
1147
+ impersonator?: boolean;
1148
+ /**
1149
+ * ID of the original actor performing the impersonation. Present only when the current request is impersonating another user. Internal audit logs attribute the action to this user, while the impersonated target is recorded only in internal audit payload data.
1150
+ */
1151
+ impersonatorUserId?: string;
1152
+ };
677
1153
  /**
678
1154
  * Preferences
679
1155
  */
@@ -2107,6 +2583,172 @@ export declare namespace Models {
2107
2583
  */
2108
2584
  items: MemoryBulkDeleteItem[];
2109
2585
  };
2586
+ /**
2587
+ * Memory Pipeline Run Error
2588
+ */
2589
+ export type MemoryPipelineRunError = {
2590
+ /**
2591
+ * Stable trial failure code.
2592
+ */
2593
+ code: string;
2594
+ /**
2595
+ * Safe human-readable trial failure detail.
2596
+ */
2597
+ message: string;
2598
+ };
2599
+ /**
2600
+ * Memory Pipeline Run Candidate
2601
+ */
2602
+ export type MemoryPipelineRunCandidate = {
2603
+ /**
2604
+ * Selected Pipeline ID.
2605
+ */
2606
+ pipelineId: string;
2607
+ /**
2608
+ * Frozen saved configuration version ID.
2609
+ */
2610
+ versionId: string;
2611
+ /**
2612
+ * Pipeline name at acceptance.
2613
+ */
2614
+ name: string;
2615
+ /**
2616
+ * Frozen configuration revision.
2617
+ */
2618
+ revision: number;
2619
+ /**
2620
+ * Frozen Pipeline configuration.
2621
+ */
2622
+ config: object;
2623
+ };
2624
+ /**
2625
+ * Memory Pipeline Run Sample
2626
+ */
2627
+ export type MemoryPipelineRunSample = {
2628
+ /**
2629
+ * Sample identifier unique within the run.
2630
+ */
2631
+ id: string;
2632
+ /**
2633
+ * Frozen scenario-specific sample input.
2634
+ */
2635
+ data: object;
2636
+ };
2637
+ /**
2638
+ * Memory Pipeline Run Result
2639
+ */
2640
+ export type MemoryPipelineRunResult = {
2641
+ /**
2642
+ * Sample identifier.
2643
+ */
2644
+ sampleId: string;
2645
+ /**
2646
+ * Candidate Pipeline ID.
2647
+ */
2648
+ pipelineId: string;
2649
+ /**
2650
+ * Frozen candidate version ID.
2651
+ */
2652
+ versionId: string;
2653
+ /**
2654
+ * Outcome of this candidate and sample.
2655
+ */
2656
+ status: MemoryPipelineRunResultStatus;
2657
+ /**
2658
+ * Elapsed execution time in milliseconds.
2659
+ */
2660
+ durationMs: number;
2661
+ /**
2662
+ * Historical baseline shared by candidates for this sample, in UTC.
2663
+ */
2664
+ baselineAt: string;
2665
+ /**
2666
+ * Step objects with id, status, optional reason and scenario-specific output. Output may be an object or an array.
2667
+ */
2668
+ steps: object[];
2669
+ /**
2670
+ * Failure detail when the sample failed.
2671
+ */
2672
+ error?: MemoryPipelineRunError;
2673
+ };
2674
+ /**
2675
+ * Memory Pipeline Run
2676
+ */
2677
+ export type MemoryPipelineRun = {
2678
+ /**
2679
+ * Trial run ID.
2680
+ */
2681
+ runId: string;
2682
+ /**
2683
+ * Trial run name.
2684
+ */
2685
+ name: string;
2686
+ /**
2687
+ * Shared candidate scenario.
2688
+ */
2689
+ scenario: MemoryPipelineRunScenario;
2690
+ /**
2691
+ * Run status. Completed runs may contain failed individual results.
2692
+ */
2693
+ status: MemoryPipelineRunStatus;
2694
+ /**
2695
+ * Run acceptance time in UTC.
2696
+ */
2697
+ createdAt: string;
2698
+ /**
2699
+ * Last progress update time in UTC.
2700
+ */
2701
+ updatedAt: string;
2702
+ /**
2703
+ * Total candidate and sample combinations.
2704
+ */
2705
+ total: number;
2706
+ /**
2707
+ * Finished combinations, including failures.
2708
+ */
2709
+ completed: number;
2710
+ /**
2711
+ * Successful combinations.
2712
+ */
2713
+ succeeded: number;
2714
+ /**
2715
+ * Failed combinations.
2716
+ */
2717
+ failed: number;
2718
+ /**
2719
+ * Frozen candidate configurations.
2720
+ */
2721
+ candidates: MemoryPipelineRunCandidate[];
2722
+ /**
2723
+ * Frozen sample inputs.
2724
+ */
2725
+ samples: MemoryPipelineRunSample[];
2726
+ /**
2727
+ * Available results, including completed results while the run is still running.
2728
+ */
2729
+ results: MemoryPipelineRunResult[];
2730
+ /**
2731
+ * Run-level failure detail.
2732
+ */
2733
+ error?: MemoryPipelineRunError;
2734
+ };
2735
+ /**
2736
+ * Memory Pipeline Run List
2737
+ */
2738
+ export type MemoryPipelineRunList = {
2739
+ /**
2740
+ * Pipeline trial runs.
2741
+ */
2742
+ runs: MemoryPipelineRun[];
2743
+ /**
2744
+ * Number of trial runs matching the scenario.
2745
+ */
2746
+ total: number;
2747
+ /**
2748
+ * Opaque cursor for the next page, or empty when exhausted.
2749
+ */
2750
+ nextCursor: string;
2751
+ };
2110
2752
  /**
2111
2753
  * LLMGatewayModel
2112
2754
  */
@@ -2252,7 +2894,7 @@ export declare namespace Models {
2252
2894
  */
2253
2895
  externalItemId?: string;
2254
2896
  /**
2255
- * Optional document-level chunking strategy override. sheet is only for Excel .xls/.xlsx documents and creates one chunk per non-empty worksheet.
2897
+ * Optional document-level chunking strategy override. sheet is only for Excel .xls/.xlsx documents and splits each non-empty worksheet within token and storage budgets without crossing worksheet boundaries.
2256
2898
  */
2257
2899
  parserId?: string;
2258
2900
  /**
@@ -2304,6 +2946,80 @@ export declare namespace Models {
2304
2946
  */
2305
2947
  lastExecutionId?: string;
2306
2948
  };
2949
+ /**
2950
+ * KnowledgeBaseDataSource
2951
+ */
2952
+ export type KnowledgeBaseDataSource = {
2953
+ /**
2954
+ * Data source ID.
2955
+ */
2956
+ $id: string;
2957
+ /**
2958
+ * Data source creation date (ISO 8601).
2959
+ */
2960
+ $createdAt: string;
2961
+ /**
2962
+ * Data source update date (ISO 8601).
2963
+ */
2964
+ $updatedAt: string;
2965
+ /**
2966
+ * Knowledge base ID this data source is bound to.
2967
+ */
2968
+ kbId: string;
2969
+ /**
2970
+ * Knowledge base Version ID. Null for legacy data sources.
2971
+ */
2972
+ versionId?: string;
2973
+ /**
2974
+ * Data source type.
2975
+ */
2976
+ type: string;
2977
+ /**
2978
+ * Data source name.
2979
+ */
2980
+ name: string;
2981
+ /**
2982
+ * Non-sensitive data source configuration.
2983
+ */
2984
+ config: object;
2985
+ /**
2986
+ * Sensitive credentials metadata. Secret values are never returned.
2987
+ */
2988
+ credentials: object;
2989
+ /**
2990
+ * Data source status: active, disabled, or error.
2991
+ */
2992
+ status: string;
2993
+ /**
2994
+ * Last sync completion timestamp.
2995
+ */
2996
+ lastSyncAt?: string;
2997
+ /**
2998
+ * Last sync status.
2999
+ */
3000
+ lastSyncStatus?: string;
3001
+ /**
3002
+ * Incremental sync cursor.
3003
+ */
3004
+ lastCursor?: string;
3005
+ /**
3006
+ * Last data source error message, if any.
3007
+ */
3008
+ error?: string;
3009
+ };
3010
+ /**
3011
+ * Knowledge Base Data Source list
3012
+ */
3013
+ export type KnowledgeBaseDataSourceList = {
3014
+ /**
3015
+ * Total number of dataSources that matched your query.
3016
+ */
3017
+ total: number;
3018
+ /**
3019
+ * List of dataSources.
3020
+ */
3021
+ dataSources: KnowledgeBaseDataSource[];
3022
+ };
2307
3023
  /**
2308
3024
  * KnowledgeBaseDataSourceDocumentImportResult
2309
3025
  */
@@ -2429,6 +3145,80 @@ export declare namespace Models {
2429
3145
  */
2430
3146
  data?: object;
2431
3147
  };
3148
+ /**
3149
+ * Bounded read-only REST row query.
3150
+ */
3151
+ export type DataApiRestRowsQuery = {
3152
+ /**
3153
+ *
3154
+ */
3155
+ fields: string[];
3156
+ /**
3157
+ *
3158
+ */
3159
+ filter?: object;
3160
+ /**
3161
+ *
3162
+ */
3163
+ filterLogic?: DataApiFilterLogic;
3164
+ /**
3165
+ *
3166
+ */
3167
+ sort?: object[];
3168
+ /**
3169
+ *
3170
+ */
3171
+ limit?: number;
3172
+ /**
3173
+ *
3174
+ */
3175
+ offset?: number;
3176
+ /**
3177
+ *
3178
+ */
3179
+ page?: number;
3180
+ /**
3181
+ *
3182
+ */
3183
+ after?: string;
3184
+ };
3185
+ /**
3186
+ * Bounded read-only REST aggregate query.
3187
+ */
3188
+ export type DataApiRestAggregatesQuery = {
3189
+ /**
3190
+ *
3191
+ */
3192
+ metrics: object[];
3193
+ /**
3194
+ *
3195
+ */
3196
+ filter?: object;
3197
+ /**
3198
+ *
3199
+ */
3200
+ filterLogic?: DataApiFilterLogic;
3201
+ /**
3202
+ *
3203
+ */
3204
+ groupBy?: object[];
3205
+ /**
3206
+ *
3207
+ */
3208
+ sort?: object[];
3209
+ /**
3210
+ *
3211
+ */
3212
+ limit?: number;
3213
+ /**
3214
+ *
3215
+ */
3216
+ offset?: number;
3217
+ /**
3218
+ *
3219
+ */
3220
+ page?: number;
3221
+ };
2432
3222
  /**
2433
3223
  * A role and text content pair used as memory source evidence.
2434
3224
  */
@@ -2483,6 +3273,10 @@ export declare namespace Models {
2483
3273
  * Memory record kind.
2484
3274
  */
2485
3275
  recordKind: MemoryRecordKind;
3276
+ /**
3277
+ * Optional original conversation context. For intelligent historical import, set infer=true. Missing time stays unknown, never the import or event date.
3278
+ */
3279
+ sourceContext?: object;
2486
3280
  /**
2487
3281
  * Memory content.
2488
3282
  */