weave-typescript 0.50.0 → 0.51.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.
@@ -88,8 +88,8 @@ export interface OrganizationIngestionSettings {
88
88
  updatedAt: Date | undefined;
89
89
  classifyModelId: string;
90
90
  classifyProviderConfigurationId: string;
91
- refineModelId: string;
92
- refineProviderConfigurationId: string;
91
+ createThreadModelId: string;
92
+ createThreadProviderConfigurationId: string;
93
93
  extractModelId: string;
94
94
  extractProviderConfigurationId: string;
95
95
  embedModelId: string;
@@ -99,7 +99,7 @@ export interface OrganizationIngestionSettings {
99
99
  reconcileProviderConfigurationId: string;
100
100
  diffModelId: string;
101
101
  diffProviderConfigurationId: string;
102
- refineLoopCount: number;
102
+ createThreadLoopCount: number;
103
103
  }
104
104
  export declare const Model: MessageFns<Model>;
105
105
  export declare const ModelPricing: MessageFns<ModelPricing>;
@@ -976,8 +976,8 @@ function createBaseOrganizationIngestionSettings() {
976
976
  updatedAt: undefined,
977
977
  classifyModelId: "",
978
978
  classifyProviderConfigurationId: "",
979
- refineModelId: "",
980
- refineProviderConfigurationId: "",
979
+ createThreadModelId: "",
980
+ createThreadProviderConfigurationId: "",
981
981
  extractModelId: "",
982
982
  extractProviderConfigurationId: "",
983
983
  embedModelId: "",
@@ -987,7 +987,7 @@ function createBaseOrganizationIngestionSettings() {
987
987
  reconcileProviderConfigurationId: "",
988
988
  diffModelId: "",
989
989
  diffProviderConfigurationId: "",
990
- refineLoopCount: 0,
990
+ createThreadLoopCount: 0,
991
991
  };
992
992
  }
993
993
  exports.OrganizationIngestionSettings = {
@@ -1019,11 +1019,11 @@ exports.OrganizationIngestionSettings = {
1019
1019
  if (message.classifyProviderConfigurationId !== "") {
1020
1020
  writer.uint32(74).string(message.classifyProviderConfigurationId);
1021
1021
  }
1022
- if (message.refineModelId !== "") {
1023
- writer.uint32(82).string(message.refineModelId);
1022
+ if (message.createThreadModelId !== "") {
1023
+ writer.uint32(82).string(message.createThreadModelId);
1024
1024
  }
1025
- if (message.refineProviderConfigurationId !== "") {
1026
- writer.uint32(90).string(message.refineProviderConfigurationId);
1025
+ if (message.createThreadProviderConfigurationId !== "") {
1026
+ writer.uint32(90).string(message.createThreadProviderConfigurationId);
1027
1027
  }
1028
1028
  if (message.extractModelId !== "") {
1029
1029
  writer.uint32(98).string(message.extractModelId);
@@ -1052,8 +1052,8 @@ exports.OrganizationIngestionSettings = {
1052
1052
  if (message.diffProviderConfigurationId !== "") {
1053
1053
  writer.uint32(162).string(message.diffProviderConfigurationId);
1054
1054
  }
1055
- if (message.refineLoopCount !== 0) {
1056
- writer.uint32(168).int32(message.refineLoopCount);
1055
+ if (message.createThreadLoopCount !== 0) {
1056
+ writer.uint32(168).int32(message.createThreadLoopCount);
1057
1057
  }
1058
1058
  return writer;
1059
1059
  },
@@ -1131,14 +1131,14 @@ exports.OrganizationIngestionSettings = {
1131
1131
  if (tag !== 82) {
1132
1132
  break;
1133
1133
  }
1134
- message.refineModelId = reader.string();
1134
+ message.createThreadModelId = reader.string();
1135
1135
  continue;
1136
1136
  }
1137
1137
  case 11: {
1138
1138
  if (tag !== 90) {
1139
1139
  break;
1140
1140
  }
1141
- message.refineProviderConfigurationId = reader.string();
1141
+ message.createThreadProviderConfigurationId = reader.string();
1142
1142
  continue;
1143
1143
  }
1144
1144
  case 12: {
@@ -1208,7 +1208,7 @@ exports.OrganizationIngestionSettings = {
1208
1208
  if (tag !== 168) {
1209
1209
  break;
1210
1210
  }
1211
- message.refineLoopCount = reader.int32();
1211
+ message.createThreadLoopCount = reader.int32();
1212
1212
  continue;
1213
1213
  }
1214
1214
  }
@@ -1266,15 +1266,15 @@ exports.OrganizationIngestionSettings = {
1266
1266
  : isSet(object.classify_provider_configuration_id)
1267
1267
  ? globalThis.String(object.classify_provider_configuration_id)
1268
1268
  : "",
1269
- refineModelId: isSet(object.refineModelId)
1270
- ? globalThis.String(object.refineModelId)
1271
- : isSet(object.refine_model_id)
1272
- ? globalThis.String(object.refine_model_id)
1269
+ createThreadModelId: isSet(object.createThreadModelId)
1270
+ ? globalThis.String(object.createThreadModelId)
1271
+ : isSet(object.create_thread_model_id)
1272
+ ? globalThis.String(object.create_thread_model_id)
1273
1273
  : "",
1274
- refineProviderConfigurationId: isSet(object.refineProviderConfigurationId)
1275
- ? globalThis.String(object.refineProviderConfigurationId)
1276
- : isSet(object.refine_provider_configuration_id)
1277
- ? globalThis.String(object.refine_provider_configuration_id)
1274
+ createThreadProviderConfigurationId: isSet(object.createThreadProviderConfigurationId)
1275
+ ? globalThis.String(object.createThreadProviderConfigurationId)
1276
+ : isSet(object.create_thread_provider_configuration_id)
1277
+ ? globalThis.String(object.create_thread_provider_configuration_id)
1278
1278
  : "",
1279
1279
  extractModelId: isSet(object.extractModelId)
1280
1280
  ? globalThis.String(object.extractModelId)
@@ -1321,10 +1321,10 @@ exports.OrganizationIngestionSettings = {
1321
1321
  : isSet(object.diff_provider_configuration_id)
1322
1322
  ? globalThis.String(object.diff_provider_configuration_id)
1323
1323
  : "",
1324
- refineLoopCount: isSet(object.refineLoopCount)
1325
- ? globalThis.Number(object.refineLoopCount)
1326
- : isSet(object.refine_loop_count)
1327
- ? globalThis.Number(object.refine_loop_count)
1324
+ createThreadLoopCount: isSet(object.createThreadLoopCount)
1325
+ ? globalThis.Number(object.createThreadLoopCount)
1326
+ : isSet(object.create_thread_loop_count)
1327
+ ? globalThis.Number(object.create_thread_loop_count)
1328
1328
  : 0,
1329
1329
  };
1330
1330
  },
@@ -1357,11 +1357,11 @@ exports.OrganizationIngestionSettings = {
1357
1357
  if (message.classifyProviderConfigurationId !== "") {
1358
1358
  obj.classifyProviderConfigurationId = message.classifyProviderConfigurationId;
1359
1359
  }
1360
- if (message.refineModelId !== "") {
1361
- obj.refineModelId = message.refineModelId;
1360
+ if (message.createThreadModelId !== "") {
1361
+ obj.createThreadModelId = message.createThreadModelId;
1362
1362
  }
1363
- if (message.refineProviderConfigurationId !== "") {
1364
- obj.refineProviderConfigurationId = message.refineProviderConfigurationId;
1363
+ if (message.createThreadProviderConfigurationId !== "") {
1364
+ obj.createThreadProviderConfigurationId = message.createThreadProviderConfigurationId;
1365
1365
  }
1366
1366
  if (message.extractModelId !== "") {
1367
1367
  obj.extractModelId = message.extractModelId;
@@ -1390,8 +1390,8 @@ exports.OrganizationIngestionSettings = {
1390
1390
  if (message.diffProviderConfigurationId !== "") {
1391
1391
  obj.diffProviderConfigurationId = message.diffProviderConfigurationId;
1392
1392
  }
1393
- if (message.refineLoopCount !== 0) {
1394
- obj.refineLoopCount = Math.round(message.refineLoopCount);
1393
+ if (message.createThreadLoopCount !== 0) {
1394
+ obj.createThreadLoopCount = Math.round(message.createThreadLoopCount);
1395
1395
  }
1396
1396
  return obj;
1397
1397
  },
@@ -1410,8 +1410,8 @@ exports.OrganizationIngestionSettings = {
1410
1410
  message.updatedAt = (_g = object.updatedAt) !== null && _g !== void 0 ? _g : undefined;
1411
1411
  message.classifyModelId = (_h = object.classifyModelId) !== null && _h !== void 0 ? _h : "";
1412
1412
  message.classifyProviderConfigurationId = (_j = object.classifyProviderConfigurationId) !== null && _j !== void 0 ? _j : "";
1413
- message.refineModelId = (_k = object.refineModelId) !== null && _k !== void 0 ? _k : "";
1414
- message.refineProviderConfigurationId = (_l = object.refineProviderConfigurationId) !== null && _l !== void 0 ? _l : "";
1413
+ message.createThreadModelId = (_k = object.createThreadModelId) !== null && _k !== void 0 ? _k : "";
1414
+ message.createThreadProviderConfigurationId = (_l = object.createThreadProviderConfigurationId) !== null && _l !== void 0 ? _l : "";
1415
1415
  message.extractModelId = (_m = object.extractModelId) !== null && _m !== void 0 ? _m : "";
1416
1416
  message.extractProviderConfigurationId = (_o = object.extractProviderConfigurationId) !== null && _o !== void 0 ? _o : "";
1417
1417
  message.embedModelId = (_p = object.embedModelId) !== null && _p !== void 0 ? _p : "";
@@ -1421,7 +1421,7 @@ exports.OrganizationIngestionSettings = {
1421
1421
  message.reconcileProviderConfigurationId = (_t = object.reconcileProviderConfigurationId) !== null && _t !== void 0 ? _t : "";
1422
1422
  message.diffModelId = (_u = object.diffModelId) !== null && _u !== void 0 ? _u : "";
1423
1423
  message.diffProviderConfigurationId = (_v = object.diffProviderConfigurationId) !== null && _v !== void 0 ? _v : "";
1424
- message.refineLoopCount = (_w = object.refineLoopCount) !== null && _w !== void 0 ? _w : 0;
1424
+ message.createThreadLoopCount = (_w = object.createThreadLoopCount) !== null && _w !== void 0 ? _w : 0;
1425
1425
  return message;
1426
1426
  },
1427
1427
  };
@@ -88,8 +88,8 @@ export interface SetIngestionSettingsRequest {
88
88
  embeddingDimensions: number;
89
89
  classifyModelId: string;
90
90
  classifyProviderConfigurationId: string;
91
- refineModelId: string;
92
- refineProviderConfigurationId: string;
91
+ createThreadModelId: string;
92
+ createThreadProviderConfigurationId: string;
93
93
  extractModelId: string;
94
94
  extractProviderConfigurationId: string;
95
95
  embedModelId: string;
@@ -99,7 +99,7 @@ export interface SetIngestionSettingsRequest {
99
99
  reconcileProviderConfigurationId: string;
100
100
  diffModelId: string;
101
101
  diffProviderConfigurationId: string;
102
- refineLoopCount: number;
102
+ createThreadLoopCount: number;
103
103
  }
104
104
  export interface SetIngestionSettingsResponse {
105
105
  settings: OrganizationIngestionSettings | undefined;
@@ -1492,8 +1492,8 @@ function createBaseSetIngestionSettingsRequest() {
1492
1492
  embeddingDimensions: 0,
1493
1493
  classifyModelId: "",
1494
1494
  classifyProviderConfigurationId: "",
1495
- refineModelId: "",
1496
- refineProviderConfigurationId: "",
1495
+ createThreadModelId: "",
1496
+ createThreadProviderConfigurationId: "",
1497
1497
  extractModelId: "",
1498
1498
  extractProviderConfigurationId: "",
1499
1499
  embedModelId: "",
@@ -1503,7 +1503,7 @@ function createBaseSetIngestionSettingsRequest() {
1503
1503
  reconcileProviderConfigurationId: "",
1504
1504
  diffModelId: "",
1505
1505
  diffProviderConfigurationId: "",
1506
- refineLoopCount: 0,
1506
+ createThreadLoopCount: 0,
1507
1507
  };
1508
1508
  }
1509
1509
  exports.SetIngestionSettingsRequest = {
@@ -1532,11 +1532,11 @@ exports.SetIngestionSettingsRequest = {
1532
1532
  if (message.classifyProviderConfigurationId !== "") {
1533
1533
  writer.uint32(66).string(message.classifyProviderConfigurationId);
1534
1534
  }
1535
- if (message.refineModelId !== "") {
1536
- writer.uint32(74).string(message.refineModelId);
1535
+ if (message.createThreadModelId !== "") {
1536
+ writer.uint32(74).string(message.createThreadModelId);
1537
1537
  }
1538
- if (message.refineProviderConfigurationId !== "") {
1539
- writer.uint32(82).string(message.refineProviderConfigurationId);
1538
+ if (message.createThreadProviderConfigurationId !== "") {
1539
+ writer.uint32(82).string(message.createThreadProviderConfigurationId);
1540
1540
  }
1541
1541
  if (message.extractModelId !== "") {
1542
1542
  writer.uint32(90).string(message.extractModelId);
@@ -1565,8 +1565,8 @@ exports.SetIngestionSettingsRequest = {
1565
1565
  if (message.diffProviderConfigurationId !== "") {
1566
1566
  writer.uint32(154).string(message.diffProviderConfigurationId);
1567
1567
  }
1568
- if (message.refineLoopCount !== 0) {
1569
- writer.uint32(160).int32(message.refineLoopCount);
1568
+ if (message.createThreadLoopCount !== 0) {
1569
+ writer.uint32(160).int32(message.createThreadLoopCount);
1570
1570
  }
1571
1571
  return writer;
1572
1572
  },
@@ -1637,14 +1637,14 @@ exports.SetIngestionSettingsRequest = {
1637
1637
  if (tag !== 74) {
1638
1638
  break;
1639
1639
  }
1640
- message.refineModelId = reader.string();
1640
+ message.createThreadModelId = reader.string();
1641
1641
  continue;
1642
1642
  }
1643
1643
  case 10: {
1644
1644
  if (tag !== 82) {
1645
1645
  break;
1646
1646
  }
1647
- message.refineProviderConfigurationId = reader.string();
1647
+ message.createThreadProviderConfigurationId = reader.string();
1648
1648
  continue;
1649
1649
  }
1650
1650
  case 11: {
@@ -1714,7 +1714,7 @@ exports.SetIngestionSettingsRequest = {
1714
1714
  if (tag !== 160) {
1715
1715
  break;
1716
1716
  }
1717
- message.refineLoopCount = reader.int32();
1717
+ message.createThreadLoopCount = reader.int32();
1718
1718
  continue;
1719
1719
  }
1720
1720
  }
@@ -1767,15 +1767,15 @@ exports.SetIngestionSettingsRequest = {
1767
1767
  : isSet(object.classify_provider_configuration_id)
1768
1768
  ? globalThis.String(object.classify_provider_configuration_id)
1769
1769
  : "",
1770
- refineModelId: isSet(object.refineModelId)
1771
- ? globalThis.String(object.refineModelId)
1772
- : isSet(object.refine_model_id)
1773
- ? globalThis.String(object.refine_model_id)
1770
+ createThreadModelId: isSet(object.createThreadModelId)
1771
+ ? globalThis.String(object.createThreadModelId)
1772
+ : isSet(object.create_thread_model_id)
1773
+ ? globalThis.String(object.create_thread_model_id)
1774
1774
  : "",
1775
- refineProviderConfigurationId: isSet(object.refineProviderConfigurationId)
1776
- ? globalThis.String(object.refineProviderConfigurationId)
1777
- : isSet(object.refine_provider_configuration_id)
1778
- ? globalThis.String(object.refine_provider_configuration_id)
1775
+ createThreadProviderConfigurationId: isSet(object.createThreadProviderConfigurationId)
1776
+ ? globalThis.String(object.createThreadProviderConfigurationId)
1777
+ : isSet(object.create_thread_provider_configuration_id)
1778
+ ? globalThis.String(object.create_thread_provider_configuration_id)
1779
1779
  : "",
1780
1780
  extractModelId: isSet(object.extractModelId)
1781
1781
  ? globalThis.String(object.extractModelId)
@@ -1822,10 +1822,10 @@ exports.SetIngestionSettingsRequest = {
1822
1822
  : isSet(object.diff_provider_configuration_id)
1823
1823
  ? globalThis.String(object.diff_provider_configuration_id)
1824
1824
  : "",
1825
- refineLoopCount: isSet(object.refineLoopCount)
1826
- ? globalThis.Number(object.refineLoopCount)
1827
- : isSet(object.refine_loop_count)
1828
- ? globalThis.Number(object.refine_loop_count)
1825
+ createThreadLoopCount: isSet(object.createThreadLoopCount)
1826
+ ? globalThis.Number(object.createThreadLoopCount)
1827
+ : isSet(object.create_thread_loop_count)
1828
+ ? globalThis.Number(object.create_thread_loop_count)
1829
1829
  : 0,
1830
1830
  };
1831
1831
  },
@@ -1855,11 +1855,11 @@ exports.SetIngestionSettingsRequest = {
1855
1855
  if (message.classifyProviderConfigurationId !== "") {
1856
1856
  obj.classifyProviderConfigurationId = message.classifyProviderConfigurationId;
1857
1857
  }
1858
- if (message.refineModelId !== "") {
1859
- obj.refineModelId = message.refineModelId;
1858
+ if (message.createThreadModelId !== "") {
1859
+ obj.createThreadModelId = message.createThreadModelId;
1860
1860
  }
1861
- if (message.refineProviderConfigurationId !== "") {
1862
- obj.refineProviderConfigurationId = message.refineProviderConfigurationId;
1861
+ if (message.createThreadProviderConfigurationId !== "") {
1862
+ obj.createThreadProviderConfigurationId = message.createThreadProviderConfigurationId;
1863
1863
  }
1864
1864
  if (message.extractModelId !== "") {
1865
1865
  obj.extractModelId = message.extractModelId;
@@ -1888,8 +1888,8 @@ exports.SetIngestionSettingsRequest = {
1888
1888
  if (message.diffProviderConfigurationId !== "") {
1889
1889
  obj.diffProviderConfigurationId = message.diffProviderConfigurationId;
1890
1890
  }
1891
- if (message.refineLoopCount !== 0) {
1892
- obj.refineLoopCount = Math.round(message.refineLoopCount);
1891
+ if (message.createThreadLoopCount !== 0) {
1892
+ obj.createThreadLoopCount = Math.round(message.createThreadLoopCount);
1893
1893
  }
1894
1894
  return obj;
1895
1895
  },
@@ -1907,8 +1907,8 @@ exports.SetIngestionSettingsRequest = {
1907
1907
  message.embeddingDimensions = (_f = object.embeddingDimensions) !== null && _f !== void 0 ? _f : 0;
1908
1908
  message.classifyModelId = (_g = object.classifyModelId) !== null && _g !== void 0 ? _g : "";
1909
1909
  message.classifyProviderConfigurationId = (_h = object.classifyProviderConfigurationId) !== null && _h !== void 0 ? _h : "";
1910
- message.refineModelId = (_j = object.refineModelId) !== null && _j !== void 0 ? _j : "";
1911
- message.refineProviderConfigurationId = (_k = object.refineProviderConfigurationId) !== null && _k !== void 0 ? _k : "";
1910
+ message.createThreadModelId = (_j = object.createThreadModelId) !== null && _j !== void 0 ? _j : "";
1911
+ message.createThreadProviderConfigurationId = (_k = object.createThreadProviderConfigurationId) !== null && _k !== void 0 ? _k : "";
1912
1912
  message.extractModelId = (_l = object.extractModelId) !== null && _l !== void 0 ? _l : "";
1913
1913
  message.extractProviderConfigurationId = (_m = object.extractProviderConfigurationId) !== null && _m !== void 0 ? _m : "";
1914
1914
  message.embedModelId = (_o = object.embedModelId) !== null && _o !== void 0 ? _o : "";
@@ -1918,7 +1918,7 @@ exports.SetIngestionSettingsRequest = {
1918
1918
  message.reconcileProviderConfigurationId = (_s = object.reconcileProviderConfigurationId) !== null && _s !== void 0 ? _s : "";
1919
1919
  message.diffModelId = (_t = object.diffModelId) !== null && _t !== void 0 ? _t : "";
1920
1920
  message.diffProviderConfigurationId = (_u = object.diffProviderConfigurationId) !== null && _u !== void 0 ? _u : "";
1921
- message.refineLoopCount = (_v = object.refineLoopCount) !== null && _v !== void 0 ? _v : 0;
1921
+ message.createThreadLoopCount = (_v = object.createThreadLoopCount) !== null && _v !== void 0 ? _v : 0;
1922
1922
  return message;
1923
1923
  },
1924
1924
  };
@@ -1,5 +1,6 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { DocumentScope, DocumentTag, RestrictedGroup, SourceLocation, TemporalValidity, ThreadClassification } from "../../ingestion/v1/ingestion.pb";
3
+ import { DocumentTableColumn, TableSourceFormat } from "../../ingestion/v1/table.pb";
3
4
  export declare const protobufPackage = "weaveapi.retrieval.v1";
4
5
  export declare enum IntentType {
5
6
  INTENT_TYPE_UNSPECIFIED = 0,
@@ -35,6 +36,14 @@ export declare enum SubQueryStrategy {
35
36
  }
36
37
  export declare function subQueryStrategyFromJSON(object: any): SubQueryStrategy;
37
38
  export declare function subQueryStrategyToJSON(object: SubQueryStrategy): string;
39
+ export declare enum RetrieveDataOperation {
40
+ RETRIEVE_DATA_OPERATION_UNSPECIFIED = 0,
41
+ RETRIEVE_DATA_OPERATION_SEARCH = 1,
42
+ RETRIEVE_DATA_OPERATION_QUERY_TABLE = 2,
43
+ UNRECOGNIZED = -1
44
+ }
45
+ export declare function retrieveDataOperationFromJSON(object: any): RetrieveDataOperation;
46
+ export declare function retrieveDataOperationToJSON(object: RetrieveDataOperation): string;
38
47
  export interface KnowledgeTypeBias {
39
48
  knowledgeType: string;
40
49
  weight: number;
@@ -101,6 +110,108 @@ export interface RetrievedThread {
101
110
  entities: string[];
102
111
  reinforcementCount: number;
103
112
  sessionTurn: number;
113
+ linkedTables: CandidateTable[];
114
+ }
115
+ export interface TabularRetrievalConstraints {
116
+ actingUserId: string;
117
+ threadIds: string[];
118
+ documentIds: string[];
119
+ tableIds: string[];
120
+ maxTables: number;
121
+ maxRows: number;
122
+ maxBytes: number;
123
+ }
124
+ export interface CandidateTable {
125
+ tableId: string;
126
+ documentId: string;
127
+ documentName: string;
128
+ tableName: string;
129
+ summary: string;
130
+ safeTableAlias: string;
131
+ artifactId: string;
132
+ artifactVersion: number;
133
+ sourceFormat: TableSourceFormat;
134
+ parserName: string;
135
+ rowCount: number;
136
+ columnCount: number;
137
+ columns: DocumentTableColumn[];
138
+ sourceLocation: SourceLocation | undefined;
139
+ score: number;
140
+ }
141
+ export interface TabularResultColumn {
142
+ name: string;
143
+ dataType: string;
144
+ sourceName: string;
145
+ }
146
+ export interface TabularCell {
147
+ value: any | undefined;
148
+ displayValue: string;
149
+ }
150
+ export interface TabularResultRow {
151
+ cells: TabularCell[];
152
+ rowIndex: number;
153
+ }
154
+ export interface TabularCitation {
155
+ documentId: string;
156
+ documentName: string;
157
+ tableId: string;
158
+ tableName: string;
159
+ sourceLocation: SourceLocation | undefined;
160
+ rowIndex: number;
161
+ columnName: string;
162
+ }
163
+ export interface TabularQueryResult {
164
+ tableId: string;
165
+ safeTableAlias: string;
166
+ sql: string;
167
+ columns: TabularResultColumn[];
168
+ rows: TabularResultRow[];
169
+ citations: TabularCitation[];
170
+ totalRowCount: number;
171
+ truncated: boolean;
172
+ }
173
+ export interface TabularQueryTrace {
174
+ selectedTableIds: string[];
175
+ sql: string;
176
+ generatedSql: boolean;
177
+ maxRows: number;
178
+ scannedBytes: number;
179
+ durationMs: number;
180
+ }
181
+ export interface RetrieveTabularDataRequest {
182
+ organizationId: string;
183
+ query: string;
184
+ sql: string;
185
+ sessionId: string;
186
+ constraints: TabularRetrievalConstraints | undefined;
187
+ }
188
+ export interface RetrieveTabularDataResponse {
189
+ candidateTables: CandidateTable[];
190
+ results: TabularQueryResult[];
191
+ trace: TabularQueryTrace | undefined;
192
+ warnings: string[];
193
+ }
194
+ export interface RetrieveDataRequest {
195
+ organizationId: string;
196
+ operation: RetrieveDataOperation;
197
+ query: string;
198
+ threadIds: string[];
199
+ documentIds: string[];
200
+ tableIds: string[];
201
+ sql: string;
202
+ maxRows: number;
203
+ limit: number;
204
+ sessionId: string;
205
+ retrievalConstraints: RetrievalConstraints | undefined;
206
+ tabularConstraints: TabularRetrievalConstraints | undefined;
207
+ }
208
+ export interface RetrieveDataResponse {
209
+ threads: RetrievedThread[];
210
+ plan: RetrievalPlan | undefined;
211
+ candidateTables: CandidateTable[];
212
+ tabularResults: TabularQueryResult[];
213
+ trace: TabularQueryTrace | undefined;
214
+ warnings: string[];
104
215
  }
105
216
  export interface DocumentSearchFilters {
106
217
  tags: string[];
@@ -175,6 +286,18 @@ export declare const RerankerConfig: MessageFns<RerankerConfig>;
175
286
  export declare const RetrievalPlan: MessageFns<RetrievalPlan>;
176
287
  export declare const Citation: MessageFns<Citation>;
177
288
  export declare const RetrievedThread: MessageFns<RetrievedThread>;
289
+ export declare const TabularRetrievalConstraints: MessageFns<TabularRetrievalConstraints>;
290
+ export declare const CandidateTable: MessageFns<CandidateTable>;
291
+ export declare const TabularResultColumn: MessageFns<TabularResultColumn>;
292
+ export declare const TabularCell: MessageFns<TabularCell>;
293
+ export declare const TabularResultRow: MessageFns<TabularResultRow>;
294
+ export declare const TabularCitation: MessageFns<TabularCitation>;
295
+ export declare const TabularQueryResult: MessageFns<TabularQueryResult>;
296
+ export declare const TabularQueryTrace: MessageFns<TabularQueryTrace>;
297
+ export declare const RetrieveTabularDataRequest: MessageFns<RetrieveTabularDataRequest>;
298
+ export declare const RetrieveTabularDataResponse: MessageFns<RetrieveTabularDataResponse>;
299
+ export declare const RetrieveDataRequest: MessageFns<RetrieveDataRequest>;
300
+ export declare const RetrieveDataResponse: MessageFns<RetrieveDataResponse>;
178
301
  export declare const DocumentSearchFilters: MessageFns<DocumentSearchFilters>;
179
302
  export declare const DocumentSearchSnippet: MessageFns<DocumentSearchSnippet>;
180
303
  export declare const RetrievedDocument: MessageFns<RetrievedDocument>;