weave-typescript 0.49.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.
Files changed (27) hide show
  1. package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +13 -14
  2. package/dist/weaveapi/consolidation/v1/consolidation.pb.js +62 -74
  3. package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +82 -50
  4. package/dist/weaveapi/ingestion/v1/ingestion.pb.js +708 -216
  5. package/dist/weaveapi/ingestion/v1/service.pb.d.ts +50 -7
  6. package/dist/weaveapi/ingestion/v1/service.pb.js +279 -16
  7. package/dist/weaveapi/ingestion/v1/table.pb.d.ts +121 -0
  8. package/dist/weaveapi/ingestion/v1/table.pb.js +1478 -0
  9. package/dist/weaveapi/model/v1/model.pb.d.ts +3 -3
  10. package/dist/weaveapi/model/v1/model.pb.js +33 -33
  11. package/dist/weaveapi/model/v1/service.pb.d.ts +3 -3
  12. package/dist/weaveapi/model/v1/service.pb.js +33 -33
  13. package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +123 -0
  14. package/dist/weaveapi/retrieval/v1/retrieval.pb.js +2096 -113
  15. package/dist/weaveapi/retrieval/v1/service.pb.d.ts +29 -1
  16. package/dist/weaveapi/retrieval/v1/service.pb.js +142 -0
  17. package/dist/weavesql/weavedb/agent_sql.d.ts +27 -0
  18. package/dist/weavesql/weavedb/agent_sql.js +43 -1
  19. package/dist/weavesql/weavedb/consolidation_sql.d.ts +33 -33
  20. package/dist/weavesql/weavedb/consolidation_sql.js +56 -56
  21. package/dist/weavesql/weavedb/document_table_sql.d.ts +533 -0
  22. package/dist/weavesql/weavedb/document_table_sql.js +1352 -0
  23. package/dist/weavesql/weavedb/ingestion_sql.d.ts +67 -34
  24. package/dist/weavesql/weavedb/ingestion_sql.js +169 -73
  25. package/dist/weavesql/weavedb/retrieval_sql.d.ts +11 -11
  26. package/dist/weavesql/weavedb/retrieval_sql.js +13 -13
  27. package/package.json +1 -1
@@ -12,18 +12,17 @@ export declare enum ConsolidationRunStatus {
12
12
  }
13
13
  export declare function consolidationRunStatusFromJSON(object: any): ConsolidationRunStatus;
14
14
  export declare function consolidationRunStatusToJSON(object: ConsolidationRunStatus): string;
15
- export declare enum KnowledgeRealmKind {
16
- KNOWLEDGE_REALM_KIND_UNSPECIFIED = 0,
17
- KNOWLEDGE_REALM_KIND_ORG = 1,
18
- KNOWLEDGE_REALM_KIND_TAG = 2,
19
- KNOWLEDGE_REALM_KIND_USER = 3,
20
- KNOWLEDGE_REALM_KIND_RESTRICTED_GROUP = 4,
15
+ export declare enum ScopeKind {
16
+ SCOPE_KIND_UNSPECIFIED = 0,
17
+ SCOPE_KIND_ORG = 1,
18
+ SCOPE_KIND_USER = 2,
19
+ SCOPE_KIND_RESTRICTED_GROUP = 3,
21
20
  UNRECOGNIZED = -1
22
21
  }
23
- export declare function knowledgeRealmKindFromJSON(object: any): KnowledgeRealmKind;
24
- export declare function knowledgeRealmKindToJSON(object: KnowledgeRealmKind): string;
25
- export interface KnowledgeRealm {
26
- kind: KnowledgeRealmKind;
22
+ export declare function scopeKindFromJSON(object: any): ScopeKind;
23
+ export declare function scopeKindToJSON(object: ScopeKind): string;
24
+ export interface Scope {
25
+ kind: ScopeKind;
27
26
  key: string;
28
27
  }
29
28
  export interface ConsolidationRun {
@@ -51,7 +50,7 @@ export interface ConceptCluster {
51
50
  updatedAt: Date | undefined;
52
51
  childClusterIds: string[];
53
52
  threadIds: string[];
54
- realm: KnowledgeRealm | undefined;
53
+ scope: Scope | undefined;
55
54
  }
56
55
  export interface ConceptHierarchy {
57
56
  clusters: ConceptCluster[];
@@ -80,13 +79,13 @@ export interface GetConceptHierarchyRequest {
80
79
  knowledgeType: string;
81
80
  maxDepth: number;
82
81
  actingUserId: string;
83
- realm: KnowledgeRealm | undefined;
82
+ scope: Scope | undefined;
84
83
  }
85
84
  export interface GetConceptClusterRequest {
86
85
  organizationId: string;
87
86
  conceptClusterId: string;
88
87
  actingUserId: string;
89
- realm: KnowledgeRealm | undefined;
88
+ scope: Scope | undefined;
90
89
  }
91
90
  export interface TriggerConsolidationResponse {
92
91
  consolidationRun: ConsolidationRun | undefined;
@@ -100,7 +99,7 @@ export interface GetConceptHierarchyResponse {
100
99
  export interface GetConceptClusterResponse {
101
100
  conceptCluster: ConceptCluster | undefined;
102
101
  }
103
- export declare const KnowledgeRealm: MessageFns<KnowledgeRealm>;
102
+ export declare const Scope: MessageFns<Scope>;
104
103
  export declare const ConsolidationRun: MessageFns<ConsolidationRun>;
105
104
  export declare const ConceptCluster: MessageFns<ConceptCluster>;
106
105
  export declare const ConceptHierarchy: MessageFns<ConceptHierarchy>;
@@ -5,11 +5,11 @@
5
5
  // protoc unknown
6
6
  // source: weaveapi/consolidation/v1/consolidation.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.GetConceptClusterResponse = exports.GetConceptHierarchyResponse = exports.GetConsolidationRunResponse = exports.TriggerConsolidationResponse = exports.GetConceptClusterRequest = exports.GetConceptHierarchyRequest = exports.ListConsolidationHistoryResponse = exports.ListConsolidationHistoryRequest = exports.GetConsolidationRunRequest = exports.TriggerConsolidationRequest = exports.ConceptHierarchy = exports.ConceptCluster = exports.ConsolidationRun = exports.KnowledgeRealm = exports.KnowledgeRealmKind = exports.ConsolidationRunStatus = exports.protobufPackage = void 0;
8
+ exports.GetConceptClusterResponse = exports.GetConceptHierarchyResponse = exports.GetConsolidationRunResponse = exports.TriggerConsolidationResponse = exports.GetConceptClusterRequest = exports.GetConceptHierarchyRequest = exports.ListConsolidationHistoryResponse = exports.ListConsolidationHistoryRequest = exports.GetConsolidationRunRequest = exports.TriggerConsolidationRequest = exports.ConceptHierarchy = exports.ConceptCluster = exports.ConsolidationRun = exports.Scope = exports.ScopeKind = exports.ConsolidationRunStatus = exports.protobufPackage = void 0;
9
9
  exports.consolidationRunStatusFromJSON = consolidationRunStatusFromJSON;
10
10
  exports.consolidationRunStatusToJSON = consolidationRunStatusToJSON;
11
- exports.knowledgeRealmKindFromJSON = knowledgeRealmKindFromJSON;
12
- exports.knowledgeRealmKindToJSON = knowledgeRealmKindToJSON;
11
+ exports.scopeKindFromJSON = scopeKindFromJSON;
12
+ exports.scopeKindToJSON = scopeKindToJSON;
13
13
  /* eslint-disable */
14
14
  const wire_1 = require("@bufbuild/protobuf/wire");
15
15
  const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
@@ -75,59 +75,53 @@ function consolidationRunStatusToJSON(object) {
75
75
  return "UNRECOGNIZED";
76
76
  }
77
77
  }
78
- var KnowledgeRealmKind;
79
- (function (KnowledgeRealmKind) {
80
- KnowledgeRealmKind[KnowledgeRealmKind["KNOWLEDGE_REALM_KIND_UNSPECIFIED"] = 0] = "KNOWLEDGE_REALM_KIND_UNSPECIFIED";
81
- KnowledgeRealmKind[KnowledgeRealmKind["KNOWLEDGE_REALM_KIND_ORG"] = 1] = "KNOWLEDGE_REALM_KIND_ORG";
82
- KnowledgeRealmKind[KnowledgeRealmKind["KNOWLEDGE_REALM_KIND_TAG"] = 2] = "KNOWLEDGE_REALM_KIND_TAG";
83
- KnowledgeRealmKind[KnowledgeRealmKind["KNOWLEDGE_REALM_KIND_USER"] = 3] = "KNOWLEDGE_REALM_KIND_USER";
84
- KnowledgeRealmKind[KnowledgeRealmKind["KNOWLEDGE_REALM_KIND_RESTRICTED_GROUP"] = 4] = "KNOWLEDGE_REALM_KIND_RESTRICTED_GROUP";
85
- KnowledgeRealmKind[KnowledgeRealmKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
86
- })(KnowledgeRealmKind || (exports.KnowledgeRealmKind = KnowledgeRealmKind = {}));
87
- function knowledgeRealmKindFromJSON(object) {
78
+ var ScopeKind;
79
+ (function (ScopeKind) {
80
+ ScopeKind[ScopeKind["SCOPE_KIND_UNSPECIFIED"] = 0] = "SCOPE_KIND_UNSPECIFIED";
81
+ ScopeKind[ScopeKind["SCOPE_KIND_ORG"] = 1] = "SCOPE_KIND_ORG";
82
+ ScopeKind[ScopeKind["SCOPE_KIND_USER"] = 2] = "SCOPE_KIND_USER";
83
+ ScopeKind[ScopeKind["SCOPE_KIND_RESTRICTED_GROUP"] = 3] = "SCOPE_KIND_RESTRICTED_GROUP";
84
+ ScopeKind[ScopeKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
85
+ })(ScopeKind || (exports.ScopeKind = ScopeKind = {}));
86
+ function scopeKindFromJSON(object) {
88
87
  switch (object) {
89
88
  case 0:
90
- case "KNOWLEDGE_REALM_KIND_UNSPECIFIED":
91
- return KnowledgeRealmKind.KNOWLEDGE_REALM_KIND_UNSPECIFIED;
89
+ case "SCOPE_KIND_UNSPECIFIED":
90
+ return ScopeKind.SCOPE_KIND_UNSPECIFIED;
92
91
  case 1:
93
- case "KNOWLEDGE_REALM_KIND_ORG":
94
- return KnowledgeRealmKind.KNOWLEDGE_REALM_KIND_ORG;
92
+ case "SCOPE_KIND_ORG":
93
+ return ScopeKind.SCOPE_KIND_ORG;
95
94
  case 2:
96
- case "KNOWLEDGE_REALM_KIND_TAG":
97
- return KnowledgeRealmKind.KNOWLEDGE_REALM_KIND_TAG;
95
+ case "SCOPE_KIND_USER":
96
+ return ScopeKind.SCOPE_KIND_USER;
98
97
  case 3:
99
- case "KNOWLEDGE_REALM_KIND_USER":
100
- return KnowledgeRealmKind.KNOWLEDGE_REALM_KIND_USER;
101
- case 4:
102
- case "KNOWLEDGE_REALM_KIND_RESTRICTED_GROUP":
103
- return KnowledgeRealmKind.KNOWLEDGE_REALM_KIND_RESTRICTED_GROUP;
98
+ case "SCOPE_KIND_RESTRICTED_GROUP":
99
+ return ScopeKind.SCOPE_KIND_RESTRICTED_GROUP;
104
100
  case -1:
105
101
  case "UNRECOGNIZED":
106
102
  default:
107
- return KnowledgeRealmKind.UNRECOGNIZED;
103
+ return ScopeKind.UNRECOGNIZED;
108
104
  }
109
105
  }
110
- function knowledgeRealmKindToJSON(object) {
106
+ function scopeKindToJSON(object) {
111
107
  switch (object) {
112
- case KnowledgeRealmKind.KNOWLEDGE_REALM_KIND_UNSPECIFIED:
113
- return "KNOWLEDGE_REALM_KIND_UNSPECIFIED";
114
- case KnowledgeRealmKind.KNOWLEDGE_REALM_KIND_ORG:
115
- return "KNOWLEDGE_REALM_KIND_ORG";
116
- case KnowledgeRealmKind.KNOWLEDGE_REALM_KIND_TAG:
117
- return "KNOWLEDGE_REALM_KIND_TAG";
118
- case KnowledgeRealmKind.KNOWLEDGE_REALM_KIND_USER:
119
- return "KNOWLEDGE_REALM_KIND_USER";
120
- case KnowledgeRealmKind.KNOWLEDGE_REALM_KIND_RESTRICTED_GROUP:
121
- return "KNOWLEDGE_REALM_KIND_RESTRICTED_GROUP";
122
- case KnowledgeRealmKind.UNRECOGNIZED:
108
+ case ScopeKind.SCOPE_KIND_UNSPECIFIED:
109
+ return "SCOPE_KIND_UNSPECIFIED";
110
+ case ScopeKind.SCOPE_KIND_ORG:
111
+ return "SCOPE_KIND_ORG";
112
+ case ScopeKind.SCOPE_KIND_USER:
113
+ return "SCOPE_KIND_USER";
114
+ case ScopeKind.SCOPE_KIND_RESTRICTED_GROUP:
115
+ return "SCOPE_KIND_RESTRICTED_GROUP";
116
+ case ScopeKind.UNRECOGNIZED:
123
117
  default:
124
118
  return "UNRECOGNIZED";
125
119
  }
126
120
  }
127
- function createBaseKnowledgeRealm() {
121
+ function createBaseScope() {
128
122
  return { kind: 0, key: "" };
129
123
  }
130
- exports.KnowledgeRealm = {
124
+ exports.Scope = {
131
125
  encode(message, writer = new wire_1.BinaryWriter()) {
132
126
  if (message.kind !== 0) {
133
127
  writer.uint32(8).int32(message.kind);
@@ -140,7 +134,7 @@ exports.KnowledgeRealm = {
140
134
  decode(input, length) {
141
135
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
142
136
  const end = length === undefined ? reader.len : reader.pos + length;
143
- const message = createBaseKnowledgeRealm();
137
+ const message = createBaseScope();
144
138
  while (reader.pos < end) {
145
139
  const tag = reader.uint32();
146
140
  switch (tag >>> 3) {
@@ -168,14 +162,14 @@ exports.KnowledgeRealm = {
168
162
  },
169
163
  fromJSON(object) {
170
164
  return {
171
- kind: isSet(object.kind) ? knowledgeRealmKindFromJSON(object.kind) : 0,
165
+ kind: isSet(object.kind) ? scopeKindFromJSON(object.kind) : 0,
172
166
  key: isSet(object.key) ? globalThis.String(object.key) : "",
173
167
  };
174
168
  },
175
169
  toJSON(message) {
176
170
  const obj = {};
177
171
  if (message.kind !== 0) {
178
- obj.kind = knowledgeRealmKindToJSON(message.kind);
172
+ obj.kind = scopeKindToJSON(message.kind);
179
173
  }
180
174
  if (message.key !== "") {
181
175
  obj.key = message.key;
@@ -183,11 +177,11 @@ exports.KnowledgeRealm = {
183
177
  return obj;
184
178
  },
185
179
  create(base) {
186
- return exports.KnowledgeRealm.fromPartial(base !== null && base !== void 0 ? base : {});
180
+ return exports.Scope.fromPartial(base !== null && base !== void 0 ? base : {});
187
181
  },
188
182
  fromPartial(object) {
189
183
  var _a, _b;
190
- const message = createBaseKnowledgeRealm();
184
+ const message = createBaseScope();
191
185
  message.kind = (_a = object.kind) !== null && _a !== void 0 ? _a : 0;
192
186
  message.key = (_b = object.key) !== null && _b !== void 0 ? _b : "";
193
187
  return message;
@@ -416,7 +410,7 @@ function createBaseConceptCluster() {
416
410
  updatedAt: undefined,
417
411
  childClusterIds: [],
418
412
  threadIds: [],
419
- realm: undefined,
413
+ scope: undefined,
420
414
  };
421
415
  }
422
416
  exports.ConceptCluster = {
@@ -460,8 +454,8 @@ exports.ConceptCluster = {
460
454
  for (const v of message.threadIds) {
461
455
  writer.uint32(106).string(v);
462
456
  }
463
- if (message.realm !== undefined) {
464
- exports.KnowledgeRealm.encode(message.realm, writer.uint32(114).fork()).join();
457
+ if (message.scope !== undefined) {
458
+ exports.Scope.encode(message.scope, writer.uint32(114).fork()).join();
465
459
  }
466
460
  return writer;
467
461
  },
@@ -567,7 +561,7 @@ exports.ConceptCluster = {
567
561
  if (tag !== 114) {
568
562
  break;
569
563
  }
570
- message.realm = exports.KnowledgeRealm.decode(reader, reader.uint32());
564
+ message.scope = exports.Scope.decode(reader, reader.uint32());
571
565
  continue;
572
566
  }
573
567
  }
@@ -629,7 +623,7 @@ exports.ConceptCluster = {
629
623
  : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.thread_ids)
630
624
  ? object.thread_ids.map((e) => globalThis.String(e))
631
625
  : [],
632
- realm: isSet(object.realm) ? exports.KnowledgeRealm.fromJSON(object.realm) : undefined,
626
+ scope: isSet(object.scope) ? exports.Scope.fromJSON(object.scope) : undefined,
633
627
  };
634
628
  },
635
629
  toJSON(message) {
@@ -674,8 +668,8 @@ exports.ConceptCluster = {
674
668
  if ((_b = message.threadIds) === null || _b === void 0 ? void 0 : _b.length) {
675
669
  obj.threadIds = message.threadIds;
676
670
  }
677
- if (message.realm !== undefined) {
678
- obj.realm = exports.KnowledgeRealm.toJSON(message.realm);
671
+ if (message.scope !== undefined) {
672
+ obj.scope = exports.Scope.toJSON(message.scope);
679
673
  }
680
674
  return obj;
681
675
  },
@@ -699,9 +693,7 @@ exports.ConceptCluster = {
699
693
  message.updatedAt = (_o = object.updatedAt) !== null && _o !== void 0 ? _o : undefined;
700
694
  message.childClusterIds = ((_a = object.childClusterIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
701
695
  message.threadIds = ((_b = object.threadIds) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
702
- message.realm = (object.realm !== undefined && object.realm !== null)
703
- ? exports.KnowledgeRealm.fromPartial(object.realm)
704
- : undefined;
696
+ message.scope = (object.scope !== undefined && object.scope !== null) ? exports.Scope.fromPartial(object.scope) : undefined;
705
697
  return message;
706
698
  },
707
699
  };
@@ -1126,7 +1118,7 @@ exports.ListConsolidationHistoryResponse = {
1126
1118
  },
1127
1119
  };
1128
1120
  function createBaseGetConceptHierarchyRequest() {
1129
- return { organizationId: "", knowledgeType: "", maxDepth: 0, actingUserId: "", realm: undefined };
1121
+ return { organizationId: "", knowledgeType: "", maxDepth: 0, actingUserId: "", scope: undefined };
1130
1122
  }
1131
1123
  exports.GetConceptHierarchyRequest = {
1132
1124
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -1142,8 +1134,8 @@ exports.GetConceptHierarchyRequest = {
1142
1134
  if (message.actingUserId !== "") {
1143
1135
  writer.uint32(34).string(message.actingUserId);
1144
1136
  }
1145
- if (message.realm !== undefined) {
1146
- exports.KnowledgeRealm.encode(message.realm, writer.uint32(42).fork()).join();
1137
+ if (message.scope !== undefined) {
1138
+ exports.Scope.encode(message.scope, writer.uint32(42).fork()).join();
1147
1139
  }
1148
1140
  return writer;
1149
1141
  },
@@ -1186,7 +1178,7 @@ exports.GetConceptHierarchyRequest = {
1186
1178
  if (tag !== 42) {
1187
1179
  break;
1188
1180
  }
1189
- message.realm = exports.KnowledgeRealm.decode(reader, reader.uint32());
1181
+ message.scope = exports.Scope.decode(reader, reader.uint32());
1190
1182
  continue;
1191
1183
  }
1192
1184
  }
@@ -1219,7 +1211,7 @@ exports.GetConceptHierarchyRequest = {
1219
1211
  : isSet(object.acting_user_id)
1220
1212
  ? globalThis.String(object.acting_user_id)
1221
1213
  : "",
1222
- realm: isSet(object.realm) ? exports.KnowledgeRealm.fromJSON(object.realm) : undefined,
1214
+ scope: isSet(object.scope) ? exports.Scope.fromJSON(object.scope) : undefined,
1223
1215
  };
1224
1216
  },
1225
1217
  toJSON(message) {
@@ -1236,8 +1228,8 @@ exports.GetConceptHierarchyRequest = {
1236
1228
  if (message.actingUserId !== "") {
1237
1229
  obj.actingUserId = message.actingUserId;
1238
1230
  }
1239
- if (message.realm !== undefined) {
1240
- obj.realm = exports.KnowledgeRealm.toJSON(message.realm);
1231
+ if (message.scope !== undefined) {
1232
+ obj.scope = exports.Scope.toJSON(message.scope);
1241
1233
  }
1242
1234
  return obj;
1243
1235
  },
@@ -1251,14 +1243,12 @@ exports.GetConceptHierarchyRequest = {
1251
1243
  message.knowledgeType = (_b = object.knowledgeType) !== null && _b !== void 0 ? _b : "";
1252
1244
  message.maxDepth = (_c = object.maxDepth) !== null && _c !== void 0 ? _c : 0;
1253
1245
  message.actingUserId = (_d = object.actingUserId) !== null && _d !== void 0 ? _d : "";
1254
- message.realm = (object.realm !== undefined && object.realm !== null)
1255
- ? exports.KnowledgeRealm.fromPartial(object.realm)
1256
- : undefined;
1246
+ message.scope = (object.scope !== undefined && object.scope !== null) ? exports.Scope.fromPartial(object.scope) : undefined;
1257
1247
  return message;
1258
1248
  },
1259
1249
  };
1260
1250
  function createBaseGetConceptClusterRequest() {
1261
- return { organizationId: "", conceptClusterId: "", actingUserId: "", realm: undefined };
1251
+ return { organizationId: "", conceptClusterId: "", actingUserId: "", scope: undefined };
1262
1252
  }
1263
1253
  exports.GetConceptClusterRequest = {
1264
1254
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -1271,8 +1261,8 @@ exports.GetConceptClusterRequest = {
1271
1261
  if (message.actingUserId !== "") {
1272
1262
  writer.uint32(26).string(message.actingUserId);
1273
1263
  }
1274
- if (message.realm !== undefined) {
1275
- exports.KnowledgeRealm.encode(message.realm, writer.uint32(34).fork()).join();
1264
+ if (message.scope !== undefined) {
1265
+ exports.Scope.encode(message.scope, writer.uint32(34).fork()).join();
1276
1266
  }
1277
1267
  return writer;
1278
1268
  },
@@ -1308,7 +1298,7 @@ exports.GetConceptClusterRequest = {
1308
1298
  if (tag !== 34) {
1309
1299
  break;
1310
1300
  }
1311
- message.realm = exports.KnowledgeRealm.decode(reader, reader.uint32());
1301
+ message.scope = exports.Scope.decode(reader, reader.uint32());
1312
1302
  continue;
1313
1303
  }
1314
1304
  }
@@ -1336,7 +1326,7 @@ exports.GetConceptClusterRequest = {
1336
1326
  : isSet(object.acting_user_id)
1337
1327
  ? globalThis.String(object.acting_user_id)
1338
1328
  : "",
1339
- realm: isSet(object.realm) ? exports.KnowledgeRealm.fromJSON(object.realm) : undefined,
1329
+ scope: isSet(object.scope) ? exports.Scope.fromJSON(object.scope) : undefined,
1340
1330
  };
1341
1331
  },
1342
1332
  toJSON(message) {
@@ -1350,8 +1340,8 @@ exports.GetConceptClusterRequest = {
1350
1340
  if (message.actingUserId !== "") {
1351
1341
  obj.actingUserId = message.actingUserId;
1352
1342
  }
1353
- if (message.realm !== undefined) {
1354
- obj.realm = exports.KnowledgeRealm.toJSON(message.realm);
1343
+ if (message.scope !== undefined) {
1344
+ obj.scope = exports.Scope.toJSON(message.scope);
1355
1345
  }
1356
1346
  return obj;
1357
1347
  },
@@ -1364,9 +1354,7 @@ exports.GetConceptClusterRequest = {
1364
1354
  message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
1365
1355
  message.conceptClusterId = (_b = object.conceptClusterId) !== null && _b !== void 0 ? _b : "";
1366
1356
  message.actingUserId = (_c = object.actingUserId) !== null && _c !== void 0 ? _c : "";
1367
- message.realm = (object.realm !== undefined && object.realm !== null)
1368
- ? exports.KnowledgeRealm.fromPartial(object.realm)
1369
- : undefined;
1357
+ message.scope = (object.scope !== undefined && object.scope !== null) ? exports.Scope.fromPartial(object.scope) : undefined;
1370
1358
  return message;
1371
1359
  },
1372
1360
  };
@@ -12,7 +12,8 @@ export declare enum DocumentStatus {
12
12
  DOCUMENT_STATUS_COMMITTED = 8,
13
13
  DOCUMENT_STATUS_FAILED = 9,
14
14
  DOCUMENT_STATUS_STALE = 10,
15
- DOCUMENT_STATUS_REFINING = 11,
15
+ DOCUMENT_STATUS_CREATING_TABLES = 11,
16
+ DOCUMENT_STATUS_CREATING_THREADS = 12,
16
17
  UNRECOGNIZED = -1
17
18
  }
18
19
  export declare function documentStatusFromJSON(object: any): DocumentStatus;
@@ -38,7 +39,8 @@ export declare enum IngestionRunStatus {
38
39
  INGESTION_RUN_STATUS_REVIEW_PENDING = 8,
39
40
  INGESTION_RUN_STATUS_COMMITTED = 9,
40
41
  INGESTION_RUN_STATUS_FAILED = 10,
41
- INGESTION_RUN_STATUS_REFINING = 11,
42
+ INGESTION_RUN_STATUS_CREATING_TABLES = 11,
43
+ INGESTION_RUN_STATUS_CREATING_THREADS = 12,
42
44
  UNRECOGNIZED = -1
43
45
  }
44
46
  export declare function ingestionRunStatusFromJSON(object: any): IngestionRunStatus;
@@ -306,7 +308,7 @@ export interface IngestionRun {
306
308
  stageModelSettings: {
307
309
  [key: string]: any;
308
310
  } | undefined;
309
- refineLoopCount: number;
311
+ createThreadLoopCount: number;
310
312
  }
311
313
  export interface IngestionHistoryEntry {
312
314
  ingestionRunId: string;
@@ -338,7 +340,7 @@ export interface UploadFileResponse {
338
340
  document: Document | undefined;
339
341
  ingestionRun: IngestionRun | undefined;
340
342
  }
341
- export interface StreamPipelineRequest {
343
+ export interface StreamWorkflowRequest {
342
344
  organizationId: string;
343
345
  ingestionRunId: string;
344
346
  }
@@ -385,6 +387,17 @@ export interface GetDocumentDetailRequest {
385
387
  export interface GetDocumentDetailResponse {
386
388
  detail: DocumentDetail | undefined;
387
389
  }
390
+ export interface ListDocumentThreadsRequest {
391
+ organizationId: string;
392
+ documentId: string;
393
+ actingUserId: string;
394
+ pageSize: number;
395
+ pageToken: string;
396
+ }
397
+ export interface ListDocumentThreadsResponse {
398
+ threads: Thread[];
399
+ nextPageToken: string;
400
+ }
388
401
  export interface GetDocumentSourceRequest {
389
402
  organizationId: string;
390
403
  documentId: string;
@@ -563,8 +576,8 @@ export interface BulkRejectThreadsRequest {
563
576
  export interface BulkRejectThreadsResponse {
564
577
  threads: Thread[];
565
578
  }
566
- export interface StreamPipelineResponse {
567
- event: PipelineEvent | undefined;
579
+ export interface StreamWorkflowResponse {
580
+ event: WorkflowEvent | undefined;
568
581
  }
569
582
  export interface GetIngestionRunResponse {
570
583
  ingestionRun: IngestionRun | undefined;
@@ -581,76 +594,90 @@ export interface ApproveThreadResponse {
581
594
  export interface RejectThreadResponse {
582
595
  thread: Thread | undefined;
583
596
  }
584
- export interface PipelineEvent {
597
+ export interface WorkflowEvent {
585
598
  eventId: string;
586
599
  ingestionRunId: string;
587
- parseStarted?: PipelineEvent_ParseStarted | undefined;
588
- parseComplete?: PipelineEvent_ParseComplete | undefined;
589
- classifyTag?: PipelineEvent_ClassifyTag | undefined;
590
- extractThread?: PipelineEvent_ExtractThread | undefined;
591
- embedStarted?: PipelineEvent_EmbedStarted | undefined;
592
- embedComplete?: PipelineEvent_EmbedComplete | undefined;
593
- reconcileMatch?: PipelineEvent_ReconcileMatch | undefined;
594
- diffDecision?: PipelineEvent_DiffDecision | undefined;
595
- pipelineComplete?: PipelineEvent_PipelineComplete | undefined;
596
- pipelineFailed?: PipelineEvent_PipelineFailed | undefined;
597
- refineStarted?: PipelineEvent_RefineStarted | undefined;
598
- refineThread?: PipelineEvent_RefineThread | undefined;
599
- refineComplete?: PipelineEvent_RefineComplete | undefined;
600
- }
601
- export interface PipelineEvent_ParseStarted {
600
+ parseStarted?: WorkflowEvent_ParseStarted | undefined;
601
+ parseComplete?: WorkflowEvent_ParseComplete | undefined;
602
+ classifyTag?: WorkflowEvent_ClassifyTag | undefined;
603
+ extractThread?: WorkflowEvent_ExtractThread | undefined;
604
+ embedStarted?: WorkflowEvent_EmbedStarted | undefined;
605
+ embedComplete?: WorkflowEvent_EmbedComplete | undefined;
606
+ reconcileMatch?: WorkflowEvent_ReconcileMatch | undefined;
607
+ diffDecision?: WorkflowEvent_DiffDecision | undefined;
608
+ workflowComplete?: WorkflowEvent_WorkflowComplete | undefined;
609
+ workflowFailed?: WorkflowEvent_WorkflowFailed | undefined;
610
+ createThreadStarted?: WorkflowEvent_CreateThreadStarted | undefined;
611
+ createThreadCandidate?: WorkflowEvent_CreateThreadCandidate | undefined;
612
+ createThreadComplete?: WorkflowEvent_CreateThreadComplete | undefined;
613
+ createTableStarted?: WorkflowEvent_CreateTableStarted | undefined;
614
+ createTableComplete?: WorkflowEvent_CreateTableComplete | undefined;
615
+ createTableWarning?: WorkflowEvent_CreateTableWarning | undefined;
616
+ }
617
+ export interface WorkflowEvent_ParseStarted {
602
618
  filename: string;
603
619
  mime: string;
604
620
  }
605
- export interface PipelineEvent_ParseComplete {
621
+ export interface WorkflowEvent_ParseComplete {
606
622
  pageCount: number;
607
623
  charCount: number;
608
624
  }
609
- export interface PipelineEvent_ClassifyTag {
625
+ export interface WorkflowEvent_ClassifyTag {
610
626
  tag: string;
611
627
  confidence: number;
612
628
  }
613
- export interface PipelineEvent_RefineStarted {
629
+ export interface WorkflowEvent_CreateTableStarted {
630
+ blockCount: number;
631
+ }
632
+ export interface WorkflowEvent_CreateTableComplete {
633
+ tableCount: number;
634
+ summaryBlockCount: number;
635
+ }
636
+ export interface WorkflowEvent_CreateTableWarning {
637
+ code: string;
638
+ message: string;
639
+ }
640
+ export interface WorkflowEvent_CreateThreadStarted {
614
641
  blockCount: number;
615
642
  loopCount: number;
616
643
  }
617
- export interface PipelineEvent_RefineThread {
644
+ export interface WorkflowEvent_CreateThreadCandidate {
618
645
  text: string;
619
646
  sourceLocation: SourceLocation | undefined;
620
647
  loopIndex: number;
621
648
  }
622
- export interface PipelineEvent_RefineComplete {
649
+ export interface WorkflowEvent_CreateThreadComplete {
623
650
  threadCount: number;
624
651
  }
625
- export interface PipelineEvent_ExtractThread {
652
+ export interface WorkflowEvent_ExtractThread {
626
653
  threadId: string;
627
654
  text: string;
628
655
  entities: string[];
629
656
  sourceLocation: SourceLocation | undefined;
630
657
  }
631
- export interface PipelineEvent_EmbedStarted {
658
+ export interface WorkflowEvent_EmbedStarted {
632
659
  threadCount: number;
633
660
  }
634
- export interface PipelineEvent_EmbedComplete {
661
+ export interface WorkflowEvent_EmbedComplete {
635
662
  threadCount: number;
636
663
  model: string;
637
664
  dimensions: number;
638
665
  }
639
- export interface PipelineEvent_ReconcileMatch {
666
+ export interface WorkflowEvent_ReconcileMatch {
640
667
  threadId: string;
641
668
  existingThreadId: string;
642
669
  similarity: number;
643
670
  }
644
- export interface PipelineEvent_DiffDecision {
671
+ export interface WorkflowEvent_DiffDecision {
645
672
  threadId: string;
646
673
  decision: ThreadClassification;
647
674
  supersededThreadIds: string[];
648
675
  }
649
- export interface PipelineEvent_PipelineComplete {
676
+ export interface WorkflowEvent_WorkflowComplete {
650
677
  threadCount: number;
651
678
  pendingReviewCount: number;
652
679
  }
653
- export interface PipelineEvent_PipelineFailed {
680
+ export interface WorkflowEvent_WorkflowFailed {
654
681
  error: string;
655
682
  code: string;
656
683
  }
@@ -674,7 +701,7 @@ export declare const IngestionRun: MessageFns<IngestionRun>;
674
701
  export declare const IngestionHistoryEntry: MessageFns<IngestionHistoryEntry>;
675
702
  export declare const UploadFileRequest: MessageFns<UploadFileRequest>;
676
703
  export declare const UploadFileResponse: MessageFns<UploadFileResponse>;
677
- export declare const StreamPipelineRequest: MessageFns<StreamPipelineRequest>;
704
+ export declare const StreamWorkflowRequest: MessageFns<StreamWorkflowRequest>;
678
705
  export declare const GetIngestionRunRequest: MessageFns<GetIngestionRunRequest>;
679
706
  export declare const ListIngestionHistoryRequest: MessageFns<ListIngestionHistoryRequest>;
680
707
  export declare const ListIngestionHistoryResponse: MessageFns<ListIngestionHistoryResponse>;
@@ -682,6 +709,8 @@ export declare const ListDocumentsRequest: MessageFns<ListDocumentsRequest>;
682
709
  export declare const ListDocumentsResponse: MessageFns<ListDocumentsResponse>;
683
710
  export declare const GetDocumentDetailRequest: MessageFns<GetDocumentDetailRequest>;
684
711
  export declare const GetDocumentDetailResponse: MessageFns<GetDocumentDetailResponse>;
712
+ export declare const ListDocumentThreadsRequest: MessageFns<ListDocumentThreadsRequest>;
713
+ export declare const ListDocumentThreadsResponse: MessageFns<ListDocumentThreadsResponse>;
685
714
  export declare const GetDocumentSourceRequest: MessageFns<GetDocumentSourceRequest>;
686
715
  export declare const GetDocumentSourceResponse: MessageFns<GetDocumentSourceResponse>;
687
716
  export declare const UpdateDocumentSecurityRequest: MessageFns<UpdateDocumentSecurityRequest>;
@@ -716,26 +745,29 @@ export declare const BulkApproveThreadsRequest: MessageFns<BulkApproveThreadsReq
716
745
  export declare const BulkApproveThreadsResponse: MessageFns<BulkApproveThreadsResponse>;
717
746
  export declare const BulkRejectThreadsRequest: MessageFns<BulkRejectThreadsRequest>;
718
747
  export declare const BulkRejectThreadsResponse: MessageFns<BulkRejectThreadsResponse>;
719
- export declare const StreamPipelineResponse: MessageFns<StreamPipelineResponse>;
748
+ export declare const StreamWorkflowResponse: MessageFns<StreamWorkflowResponse>;
720
749
  export declare const GetIngestionRunResponse: MessageFns<GetIngestionRunResponse>;
721
750
  export declare const GetThreadResponse: MessageFns<GetThreadResponse>;
722
751
  export declare const EditThreadResponse: MessageFns<EditThreadResponse>;
723
752
  export declare const ApproveThreadResponse: MessageFns<ApproveThreadResponse>;
724
753
  export declare const RejectThreadResponse: MessageFns<RejectThreadResponse>;
725
- export declare const PipelineEvent: MessageFns<PipelineEvent>;
726
- export declare const PipelineEvent_ParseStarted: MessageFns<PipelineEvent_ParseStarted>;
727
- export declare const PipelineEvent_ParseComplete: MessageFns<PipelineEvent_ParseComplete>;
728
- export declare const PipelineEvent_ClassifyTag: MessageFns<PipelineEvent_ClassifyTag>;
729
- export declare const PipelineEvent_RefineStarted: MessageFns<PipelineEvent_RefineStarted>;
730
- export declare const PipelineEvent_RefineThread: MessageFns<PipelineEvent_RefineThread>;
731
- export declare const PipelineEvent_RefineComplete: MessageFns<PipelineEvent_RefineComplete>;
732
- export declare const PipelineEvent_ExtractThread: MessageFns<PipelineEvent_ExtractThread>;
733
- export declare const PipelineEvent_EmbedStarted: MessageFns<PipelineEvent_EmbedStarted>;
734
- export declare const PipelineEvent_EmbedComplete: MessageFns<PipelineEvent_EmbedComplete>;
735
- export declare const PipelineEvent_ReconcileMatch: MessageFns<PipelineEvent_ReconcileMatch>;
736
- export declare const PipelineEvent_DiffDecision: MessageFns<PipelineEvent_DiffDecision>;
737
- export declare const PipelineEvent_PipelineComplete: MessageFns<PipelineEvent_PipelineComplete>;
738
- export declare const PipelineEvent_PipelineFailed: MessageFns<PipelineEvent_PipelineFailed>;
754
+ export declare const WorkflowEvent: MessageFns<WorkflowEvent>;
755
+ export declare const WorkflowEvent_ParseStarted: MessageFns<WorkflowEvent_ParseStarted>;
756
+ export declare const WorkflowEvent_ParseComplete: MessageFns<WorkflowEvent_ParseComplete>;
757
+ export declare const WorkflowEvent_ClassifyTag: MessageFns<WorkflowEvent_ClassifyTag>;
758
+ export declare const WorkflowEvent_CreateTableStarted: MessageFns<WorkflowEvent_CreateTableStarted>;
759
+ export declare const WorkflowEvent_CreateTableComplete: MessageFns<WorkflowEvent_CreateTableComplete>;
760
+ export declare const WorkflowEvent_CreateTableWarning: MessageFns<WorkflowEvent_CreateTableWarning>;
761
+ export declare const WorkflowEvent_CreateThreadStarted: MessageFns<WorkflowEvent_CreateThreadStarted>;
762
+ export declare const WorkflowEvent_CreateThreadCandidate: MessageFns<WorkflowEvent_CreateThreadCandidate>;
763
+ export declare const WorkflowEvent_CreateThreadComplete: MessageFns<WorkflowEvent_CreateThreadComplete>;
764
+ export declare const WorkflowEvent_ExtractThread: MessageFns<WorkflowEvent_ExtractThread>;
765
+ export declare const WorkflowEvent_EmbedStarted: MessageFns<WorkflowEvent_EmbedStarted>;
766
+ export declare const WorkflowEvent_EmbedComplete: MessageFns<WorkflowEvent_EmbedComplete>;
767
+ export declare const WorkflowEvent_ReconcileMatch: MessageFns<WorkflowEvent_ReconcileMatch>;
768
+ export declare const WorkflowEvent_DiffDecision: MessageFns<WorkflowEvent_DiffDecision>;
769
+ export declare const WorkflowEvent_WorkflowComplete: MessageFns<WorkflowEvent_WorkflowComplete>;
770
+ export declare const WorkflowEvent_WorkflowFailed: MessageFns<WorkflowEvent_WorkflowFailed>;
739
771
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
740
772
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
741
773
  [K in keyof T]?: DeepPartial<T[K]>;