weave-typescript 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +35 -20
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +556 -404
- package/dist/weaveapi/model/v1/model.pb.d.ts +14 -0
- package/dist/weaveapi/model/v1/model.pb.js +281 -1
- package/dist/weaveapi/model/v1/service.pb.d.ts +14 -0
- package/dist/weaveapi/model/v1/service.pb.js +281 -1
- package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +0 -1
- package/dist/weaveapi/retrieval/v1/retrieval.pb.js +14 -34
- package/dist/weavesql/weavedb/ingestion_sql.d.ts +159 -9
- package/dist/weavesql/weavedb/ingestion_sql.js +565 -60
- package/package.json +1 -1
|
@@ -86,6 +86,20 @@ export interface OrganizationIngestionSettings {
|
|
|
86
86
|
embeddingProviderConfigurationId: string;
|
|
87
87
|
embeddingDimensions: number;
|
|
88
88
|
updatedAt: Date | undefined;
|
|
89
|
+
classifyModelId: string;
|
|
90
|
+
classifyProviderConfigurationId: string;
|
|
91
|
+
refineModelId: string;
|
|
92
|
+
refineProviderConfigurationId: string;
|
|
93
|
+
extractModelId: string;
|
|
94
|
+
extractProviderConfigurationId: string;
|
|
95
|
+
embedModelId: string;
|
|
96
|
+
embedProviderConfigurationId: string;
|
|
97
|
+
embedDimensions: number;
|
|
98
|
+
reconcileModelId: string;
|
|
99
|
+
reconcileProviderConfigurationId: string;
|
|
100
|
+
diffModelId: string;
|
|
101
|
+
diffProviderConfigurationId: string;
|
|
102
|
+
refineLoopCount: number;
|
|
89
103
|
}
|
|
90
104
|
export declare const Model: MessageFns<Model>;
|
|
91
105
|
export declare const ModelPricing: MessageFns<ModelPricing>;
|
|
@@ -974,6 +974,20 @@ function createBaseOrganizationIngestionSettings() {
|
|
|
974
974
|
embeddingProviderConfigurationId: "",
|
|
975
975
|
embeddingDimensions: 0,
|
|
976
976
|
updatedAt: undefined,
|
|
977
|
+
classifyModelId: "",
|
|
978
|
+
classifyProviderConfigurationId: "",
|
|
979
|
+
refineModelId: "",
|
|
980
|
+
refineProviderConfigurationId: "",
|
|
981
|
+
extractModelId: "",
|
|
982
|
+
extractProviderConfigurationId: "",
|
|
983
|
+
embedModelId: "",
|
|
984
|
+
embedProviderConfigurationId: "",
|
|
985
|
+
embedDimensions: 0,
|
|
986
|
+
reconcileModelId: "",
|
|
987
|
+
reconcileProviderConfigurationId: "",
|
|
988
|
+
diffModelId: "",
|
|
989
|
+
diffProviderConfigurationId: "",
|
|
990
|
+
refineLoopCount: 0,
|
|
977
991
|
};
|
|
978
992
|
}
|
|
979
993
|
exports.OrganizationIngestionSettings = {
|
|
@@ -999,6 +1013,48 @@ exports.OrganizationIngestionSettings = {
|
|
|
999
1013
|
if (message.updatedAt !== undefined) {
|
|
1000
1014
|
timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(58).fork()).join();
|
|
1001
1015
|
}
|
|
1016
|
+
if (message.classifyModelId !== "") {
|
|
1017
|
+
writer.uint32(66).string(message.classifyModelId);
|
|
1018
|
+
}
|
|
1019
|
+
if (message.classifyProviderConfigurationId !== "") {
|
|
1020
|
+
writer.uint32(74).string(message.classifyProviderConfigurationId);
|
|
1021
|
+
}
|
|
1022
|
+
if (message.refineModelId !== "") {
|
|
1023
|
+
writer.uint32(82).string(message.refineModelId);
|
|
1024
|
+
}
|
|
1025
|
+
if (message.refineProviderConfigurationId !== "") {
|
|
1026
|
+
writer.uint32(90).string(message.refineProviderConfigurationId);
|
|
1027
|
+
}
|
|
1028
|
+
if (message.extractModelId !== "") {
|
|
1029
|
+
writer.uint32(98).string(message.extractModelId);
|
|
1030
|
+
}
|
|
1031
|
+
if (message.extractProviderConfigurationId !== "") {
|
|
1032
|
+
writer.uint32(106).string(message.extractProviderConfigurationId);
|
|
1033
|
+
}
|
|
1034
|
+
if (message.embedModelId !== "") {
|
|
1035
|
+
writer.uint32(114).string(message.embedModelId);
|
|
1036
|
+
}
|
|
1037
|
+
if (message.embedProviderConfigurationId !== "") {
|
|
1038
|
+
writer.uint32(122).string(message.embedProviderConfigurationId);
|
|
1039
|
+
}
|
|
1040
|
+
if (message.embedDimensions !== 0) {
|
|
1041
|
+
writer.uint32(128).int32(message.embedDimensions);
|
|
1042
|
+
}
|
|
1043
|
+
if (message.reconcileModelId !== "") {
|
|
1044
|
+
writer.uint32(138).string(message.reconcileModelId);
|
|
1045
|
+
}
|
|
1046
|
+
if (message.reconcileProviderConfigurationId !== "") {
|
|
1047
|
+
writer.uint32(146).string(message.reconcileProviderConfigurationId);
|
|
1048
|
+
}
|
|
1049
|
+
if (message.diffModelId !== "") {
|
|
1050
|
+
writer.uint32(154).string(message.diffModelId);
|
|
1051
|
+
}
|
|
1052
|
+
if (message.diffProviderConfigurationId !== "") {
|
|
1053
|
+
writer.uint32(162).string(message.diffProviderConfigurationId);
|
|
1054
|
+
}
|
|
1055
|
+
if (message.refineLoopCount !== 0) {
|
|
1056
|
+
writer.uint32(168).int32(message.refineLoopCount);
|
|
1057
|
+
}
|
|
1002
1058
|
return writer;
|
|
1003
1059
|
},
|
|
1004
1060
|
decode(input, length) {
|
|
@@ -1057,6 +1113,104 @@ exports.OrganizationIngestionSettings = {
|
|
|
1057
1113
|
message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
1058
1114
|
continue;
|
|
1059
1115
|
}
|
|
1116
|
+
case 8: {
|
|
1117
|
+
if (tag !== 66) {
|
|
1118
|
+
break;
|
|
1119
|
+
}
|
|
1120
|
+
message.classifyModelId = reader.string();
|
|
1121
|
+
continue;
|
|
1122
|
+
}
|
|
1123
|
+
case 9: {
|
|
1124
|
+
if (tag !== 74) {
|
|
1125
|
+
break;
|
|
1126
|
+
}
|
|
1127
|
+
message.classifyProviderConfigurationId = reader.string();
|
|
1128
|
+
continue;
|
|
1129
|
+
}
|
|
1130
|
+
case 10: {
|
|
1131
|
+
if (tag !== 82) {
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
1134
|
+
message.refineModelId = reader.string();
|
|
1135
|
+
continue;
|
|
1136
|
+
}
|
|
1137
|
+
case 11: {
|
|
1138
|
+
if (tag !== 90) {
|
|
1139
|
+
break;
|
|
1140
|
+
}
|
|
1141
|
+
message.refineProviderConfigurationId = reader.string();
|
|
1142
|
+
continue;
|
|
1143
|
+
}
|
|
1144
|
+
case 12: {
|
|
1145
|
+
if (tag !== 98) {
|
|
1146
|
+
break;
|
|
1147
|
+
}
|
|
1148
|
+
message.extractModelId = reader.string();
|
|
1149
|
+
continue;
|
|
1150
|
+
}
|
|
1151
|
+
case 13: {
|
|
1152
|
+
if (tag !== 106) {
|
|
1153
|
+
break;
|
|
1154
|
+
}
|
|
1155
|
+
message.extractProviderConfigurationId = reader.string();
|
|
1156
|
+
continue;
|
|
1157
|
+
}
|
|
1158
|
+
case 14: {
|
|
1159
|
+
if (tag !== 114) {
|
|
1160
|
+
break;
|
|
1161
|
+
}
|
|
1162
|
+
message.embedModelId = reader.string();
|
|
1163
|
+
continue;
|
|
1164
|
+
}
|
|
1165
|
+
case 15: {
|
|
1166
|
+
if (tag !== 122) {
|
|
1167
|
+
break;
|
|
1168
|
+
}
|
|
1169
|
+
message.embedProviderConfigurationId = reader.string();
|
|
1170
|
+
continue;
|
|
1171
|
+
}
|
|
1172
|
+
case 16: {
|
|
1173
|
+
if (tag !== 128) {
|
|
1174
|
+
break;
|
|
1175
|
+
}
|
|
1176
|
+
message.embedDimensions = reader.int32();
|
|
1177
|
+
continue;
|
|
1178
|
+
}
|
|
1179
|
+
case 17: {
|
|
1180
|
+
if (tag !== 138) {
|
|
1181
|
+
break;
|
|
1182
|
+
}
|
|
1183
|
+
message.reconcileModelId = reader.string();
|
|
1184
|
+
continue;
|
|
1185
|
+
}
|
|
1186
|
+
case 18: {
|
|
1187
|
+
if (tag !== 146) {
|
|
1188
|
+
break;
|
|
1189
|
+
}
|
|
1190
|
+
message.reconcileProviderConfigurationId = reader.string();
|
|
1191
|
+
continue;
|
|
1192
|
+
}
|
|
1193
|
+
case 19: {
|
|
1194
|
+
if (tag !== 154) {
|
|
1195
|
+
break;
|
|
1196
|
+
}
|
|
1197
|
+
message.diffModelId = reader.string();
|
|
1198
|
+
continue;
|
|
1199
|
+
}
|
|
1200
|
+
case 20: {
|
|
1201
|
+
if (tag !== 162) {
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
message.diffProviderConfigurationId = reader.string();
|
|
1205
|
+
continue;
|
|
1206
|
+
}
|
|
1207
|
+
case 21: {
|
|
1208
|
+
if (tag !== 168) {
|
|
1209
|
+
break;
|
|
1210
|
+
}
|
|
1211
|
+
message.refineLoopCount = reader.int32();
|
|
1212
|
+
continue;
|
|
1213
|
+
}
|
|
1060
1214
|
}
|
|
1061
1215
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1062
1216
|
break;
|
|
@@ -1102,6 +1256,76 @@ exports.OrganizationIngestionSettings = {
|
|
|
1102
1256
|
: isSet(object.updated_at)
|
|
1103
1257
|
? fromJsonTimestamp(object.updated_at)
|
|
1104
1258
|
: undefined,
|
|
1259
|
+
classifyModelId: isSet(object.classifyModelId)
|
|
1260
|
+
? globalThis.String(object.classifyModelId)
|
|
1261
|
+
: isSet(object.classify_model_id)
|
|
1262
|
+
? globalThis.String(object.classify_model_id)
|
|
1263
|
+
: "",
|
|
1264
|
+
classifyProviderConfigurationId: isSet(object.classifyProviderConfigurationId)
|
|
1265
|
+
? globalThis.String(object.classifyProviderConfigurationId)
|
|
1266
|
+
: isSet(object.classify_provider_configuration_id)
|
|
1267
|
+
? globalThis.String(object.classify_provider_configuration_id)
|
|
1268
|
+
: "",
|
|
1269
|
+
refineModelId: isSet(object.refineModelId)
|
|
1270
|
+
? globalThis.String(object.refineModelId)
|
|
1271
|
+
: isSet(object.refine_model_id)
|
|
1272
|
+
? globalThis.String(object.refine_model_id)
|
|
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)
|
|
1278
|
+
: "",
|
|
1279
|
+
extractModelId: isSet(object.extractModelId)
|
|
1280
|
+
? globalThis.String(object.extractModelId)
|
|
1281
|
+
: isSet(object.extract_model_id)
|
|
1282
|
+
? globalThis.String(object.extract_model_id)
|
|
1283
|
+
: "",
|
|
1284
|
+
extractProviderConfigurationId: isSet(object.extractProviderConfigurationId)
|
|
1285
|
+
? globalThis.String(object.extractProviderConfigurationId)
|
|
1286
|
+
: isSet(object.extract_provider_configuration_id)
|
|
1287
|
+
? globalThis.String(object.extract_provider_configuration_id)
|
|
1288
|
+
: "",
|
|
1289
|
+
embedModelId: isSet(object.embedModelId)
|
|
1290
|
+
? globalThis.String(object.embedModelId)
|
|
1291
|
+
: isSet(object.embed_model_id)
|
|
1292
|
+
? globalThis.String(object.embed_model_id)
|
|
1293
|
+
: "",
|
|
1294
|
+
embedProviderConfigurationId: isSet(object.embedProviderConfigurationId)
|
|
1295
|
+
? globalThis.String(object.embedProviderConfigurationId)
|
|
1296
|
+
: isSet(object.embed_provider_configuration_id)
|
|
1297
|
+
? globalThis.String(object.embed_provider_configuration_id)
|
|
1298
|
+
: "",
|
|
1299
|
+
embedDimensions: isSet(object.embedDimensions)
|
|
1300
|
+
? globalThis.Number(object.embedDimensions)
|
|
1301
|
+
: isSet(object.embed_dimensions)
|
|
1302
|
+
? globalThis.Number(object.embed_dimensions)
|
|
1303
|
+
: 0,
|
|
1304
|
+
reconcileModelId: isSet(object.reconcileModelId)
|
|
1305
|
+
? globalThis.String(object.reconcileModelId)
|
|
1306
|
+
: isSet(object.reconcile_model_id)
|
|
1307
|
+
? globalThis.String(object.reconcile_model_id)
|
|
1308
|
+
: "",
|
|
1309
|
+
reconcileProviderConfigurationId: isSet(object.reconcileProviderConfigurationId)
|
|
1310
|
+
? globalThis.String(object.reconcileProviderConfigurationId)
|
|
1311
|
+
: isSet(object.reconcile_provider_configuration_id)
|
|
1312
|
+
? globalThis.String(object.reconcile_provider_configuration_id)
|
|
1313
|
+
: "",
|
|
1314
|
+
diffModelId: isSet(object.diffModelId)
|
|
1315
|
+
? globalThis.String(object.diffModelId)
|
|
1316
|
+
: isSet(object.diff_model_id)
|
|
1317
|
+
? globalThis.String(object.diff_model_id)
|
|
1318
|
+
: "",
|
|
1319
|
+
diffProviderConfigurationId: isSet(object.diffProviderConfigurationId)
|
|
1320
|
+
? globalThis.String(object.diffProviderConfigurationId)
|
|
1321
|
+
: isSet(object.diff_provider_configuration_id)
|
|
1322
|
+
? globalThis.String(object.diff_provider_configuration_id)
|
|
1323
|
+
: "",
|
|
1324
|
+
refineLoopCount: isSet(object.refineLoopCount)
|
|
1325
|
+
? globalThis.Number(object.refineLoopCount)
|
|
1326
|
+
: isSet(object.refine_loop_count)
|
|
1327
|
+
? globalThis.Number(object.refine_loop_count)
|
|
1328
|
+
: 0,
|
|
1105
1329
|
};
|
|
1106
1330
|
},
|
|
1107
1331
|
toJSON(message) {
|
|
@@ -1127,13 +1351,55 @@ exports.OrganizationIngestionSettings = {
|
|
|
1127
1351
|
if (message.updatedAt !== undefined) {
|
|
1128
1352
|
obj.updatedAt = message.updatedAt.toISOString();
|
|
1129
1353
|
}
|
|
1354
|
+
if (message.classifyModelId !== "") {
|
|
1355
|
+
obj.classifyModelId = message.classifyModelId;
|
|
1356
|
+
}
|
|
1357
|
+
if (message.classifyProviderConfigurationId !== "") {
|
|
1358
|
+
obj.classifyProviderConfigurationId = message.classifyProviderConfigurationId;
|
|
1359
|
+
}
|
|
1360
|
+
if (message.refineModelId !== "") {
|
|
1361
|
+
obj.refineModelId = message.refineModelId;
|
|
1362
|
+
}
|
|
1363
|
+
if (message.refineProviderConfigurationId !== "") {
|
|
1364
|
+
obj.refineProviderConfigurationId = message.refineProviderConfigurationId;
|
|
1365
|
+
}
|
|
1366
|
+
if (message.extractModelId !== "") {
|
|
1367
|
+
obj.extractModelId = message.extractModelId;
|
|
1368
|
+
}
|
|
1369
|
+
if (message.extractProviderConfigurationId !== "") {
|
|
1370
|
+
obj.extractProviderConfigurationId = message.extractProviderConfigurationId;
|
|
1371
|
+
}
|
|
1372
|
+
if (message.embedModelId !== "") {
|
|
1373
|
+
obj.embedModelId = message.embedModelId;
|
|
1374
|
+
}
|
|
1375
|
+
if (message.embedProviderConfigurationId !== "") {
|
|
1376
|
+
obj.embedProviderConfigurationId = message.embedProviderConfigurationId;
|
|
1377
|
+
}
|
|
1378
|
+
if (message.embedDimensions !== 0) {
|
|
1379
|
+
obj.embedDimensions = Math.round(message.embedDimensions);
|
|
1380
|
+
}
|
|
1381
|
+
if (message.reconcileModelId !== "") {
|
|
1382
|
+
obj.reconcileModelId = message.reconcileModelId;
|
|
1383
|
+
}
|
|
1384
|
+
if (message.reconcileProviderConfigurationId !== "") {
|
|
1385
|
+
obj.reconcileProviderConfigurationId = message.reconcileProviderConfigurationId;
|
|
1386
|
+
}
|
|
1387
|
+
if (message.diffModelId !== "") {
|
|
1388
|
+
obj.diffModelId = message.diffModelId;
|
|
1389
|
+
}
|
|
1390
|
+
if (message.diffProviderConfigurationId !== "") {
|
|
1391
|
+
obj.diffProviderConfigurationId = message.diffProviderConfigurationId;
|
|
1392
|
+
}
|
|
1393
|
+
if (message.refineLoopCount !== 0) {
|
|
1394
|
+
obj.refineLoopCount = Math.round(message.refineLoopCount);
|
|
1395
|
+
}
|
|
1130
1396
|
return obj;
|
|
1131
1397
|
},
|
|
1132
1398
|
create(base) {
|
|
1133
1399
|
return exports.OrganizationIngestionSettings.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1134
1400
|
},
|
|
1135
1401
|
fromPartial(object) {
|
|
1136
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1402
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1137
1403
|
const message = createBaseOrganizationIngestionSettings();
|
|
1138
1404
|
message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
|
|
1139
1405
|
message.reasoningModelId = (_b = object.reasoningModelId) !== null && _b !== void 0 ? _b : "";
|
|
@@ -1142,6 +1408,20 @@ exports.OrganizationIngestionSettings = {
|
|
|
1142
1408
|
message.embeddingProviderConfigurationId = (_e = object.embeddingProviderConfigurationId) !== null && _e !== void 0 ? _e : "";
|
|
1143
1409
|
message.embeddingDimensions = (_f = object.embeddingDimensions) !== null && _f !== void 0 ? _f : 0;
|
|
1144
1410
|
message.updatedAt = (_g = object.updatedAt) !== null && _g !== void 0 ? _g : undefined;
|
|
1411
|
+
message.classifyModelId = (_h = object.classifyModelId) !== null && _h !== void 0 ? _h : "";
|
|
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 : "";
|
|
1415
|
+
message.extractModelId = (_m = object.extractModelId) !== null && _m !== void 0 ? _m : "";
|
|
1416
|
+
message.extractProviderConfigurationId = (_o = object.extractProviderConfigurationId) !== null && _o !== void 0 ? _o : "";
|
|
1417
|
+
message.embedModelId = (_p = object.embedModelId) !== null && _p !== void 0 ? _p : "";
|
|
1418
|
+
message.embedProviderConfigurationId = (_q = object.embedProviderConfigurationId) !== null && _q !== void 0 ? _q : "";
|
|
1419
|
+
message.embedDimensions = (_r = object.embedDimensions) !== null && _r !== void 0 ? _r : 0;
|
|
1420
|
+
message.reconcileModelId = (_s = object.reconcileModelId) !== null && _s !== void 0 ? _s : "";
|
|
1421
|
+
message.reconcileProviderConfigurationId = (_t = object.reconcileProviderConfigurationId) !== null && _t !== void 0 ? _t : "";
|
|
1422
|
+
message.diffModelId = (_u = object.diffModelId) !== null && _u !== void 0 ? _u : "";
|
|
1423
|
+
message.diffProviderConfigurationId = (_v = object.diffProviderConfigurationId) !== null && _v !== void 0 ? _v : "";
|
|
1424
|
+
message.refineLoopCount = (_w = object.refineLoopCount) !== null && _w !== void 0 ? _w : 0;
|
|
1145
1425
|
return message;
|
|
1146
1426
|
},
|
|
1147
1427
|
};
|
|
@@ -86,6 +86,20 @@ export interface SetIngestionSettingsRequest {
|
|
|
86
86
|
embeddingModelId: string;
|
|
87
87
|
embeddingProviderConfigurationId: string;
|
|
88
88
|
embeddingDimensions: number;
|
|
89
|
+
classifyModelId: string;
|
|
90
|
+
classifyProviderConfigurationId: string;
|
|
91
|
+
refineModelId: string;
|
|
92
|
+
refineProviderConfigurationId: string;
|
|
93
|
+
extractModelId: string;
|
|
94
|
+
extractProviderConfigurationId: string;
|
|
95
|
+
embedModelId: string;
|
|
96
|
+
embedProviderConfigurationId: string;
|
|
97
|
+
embedDimensions: number;
|
|
98
|
+
reconcileModelId: string;
|
|
99
|
+
reconcileProviderConfigurationId: string;
|
|
100
|
+
diffModelId: string;
|
|
101
|
+
diffProviderConfigurationId: string;
|
|
102
|
+
refineLoopCount: number;
|
|
89
103
|
}
|
|
90
104
|
export interface SetIngestionSettingsResponse {
|
|
91
105
|
settings: OrganizationIngestionSettings | undefined;
|