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.
- package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +13 -14
- package/dist/weaveapi/consolidation/v1/consolidation.pb.js +62 -74
- package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +82 -50
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +708 -216
- package/dist/weaveapi/ingestion/v1/service.pb.d.ts +50 -7
- package/dist/weaveapi/ingestion/v1/service.pb.js +279 -16
- package/dist/weaveapi/ingestion/v1/table.pb.d.ts +121 -0
- package/dist/weaveapi/ingestion/v1/table.pb.js +1478 -0
- package/dist/weaveapi/model/v1/model.pb.d.ts +3 -3
- package/dist/weaveapi/model/v1/model.pb.js +33 -33
- package/dist/weaveapi/model/v1/service.pb.d.ts +3 -3
- package/dist/weaveapi/model/v1/service.pb.js +33 -33
- package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +123 -0
- package/dist/weaveapi/retrieval/v1/retrieval.pb.js +2096 -113
- package/dist/weaveapi/retrieval/v1/service.pb.d.ts +29 -1
- package/dist/weaveapi/retrieval/v1/service.pb.js +142 -0
- package/dist/weavesql/weavedb/agent_sql.d.ts +27 -0
- package/dist/weavesql/weavedb/agent_sql.js +43 -1
- package/dist/weavesql/weavedb/consolidation_sql.d.ts +33 -33
- package/dist/weavesql/weavedb/consolidation_sql.js +56 -56
- package/dist/weavesql/weavedb/document_table_sql.d.ts +533 -0
- package/dist/weavesql/weavedb/document_table_sql.js +1352 -0
- package/dist/weavesql/weavedb/ingestion_sql.d.ts +67 -34
- package/dist/weavesql/weavedb/ingestion_sql.js +169 -73
- package/dist/weavesql/weavedb/retrieval_sql.d.ts +11 -11
- package/dist/weavesql/weavedb/retrieval_sql.js +13 -13
- 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
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
24
|
-
export declare function
|
|
25
|
-
export interface
|
|
26
|
-
kind:
|
|
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
|
-
|
|
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
|
-
|
|
82
|
+
scope: Scope | undefined;
|
|
84
83
|
}
|
|
85
84
|
export interface GetConceptClusterRequest {
|
|
86
85
|
organizationId: string;
|
|
87
86
|
conceptClusterId: string;
|
|
88
87
|
actingUserId: string;
|
|
89
|
-
|
|
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
|
|
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.
|
|
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.
|
|
12
|
-
exports.
|
|
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
|
|
79
|
-
(function (
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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 "
|
|
91
|
-
return
|
|
89
|
+
case "SCOPE_KIND_UNSPECIFIED":
|
|
90
|
+
return ScopeKind.SCOPE_KIND_UNSPECIFIED;
|
|
92
91
|
case 1:
|
|
93
|
-
case "
|
|
94
|
-
return
|
|
92
|
+
case "SCOPE_KIND_ORG":
|
|
93
|
+
return ScopeKind.SCOPE_KIND_ORG;
|
|
95
94
|
case 2:
|
|
96
|
-
case "
|
|
97
|
-
return
|
|
95
|
+
case "SCOPE_KIND_USER":
|
|
96
|
+
return ScopeKind.SCOPE_KIND_USER;
|
|
98
97
|
case 3:
|
|
99
|
-
case "
|
|
100
|
-
return
|
|
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
|
|
103
|
+
return ScopeKind.UNRECOGNIZED;
|
|
108
104
|
}
|
|
109
105
|
}
|
|
110
|
-
function
|
|
106
|
+
function scopeKindToJSON(object) {
|
|
111
107
|
switch (object) {
|
|
112
|
-
case
|
|
113
|
-
return "
|
|
114
|
-
case
|
|
115
|
-
return "
|
|
116
|
-
case
|
|
117
|
-
return "
|
|
118
|
-
case
|
|
119
|
-
return "
|
|
120
|
-
case
|
|
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
|
|
121
|
+
function createBaseScope() {
|
|
128
122
|
return { kind: 0, key: "" };
|
|
129
123
|
}
|
|
130
|
-
exports.
|
|
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 =
|
|
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) ?
|
|
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 =
|
|
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.
|
|
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 =
|
|
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
|
-
|
|
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.
|
|
464
|
-
exports.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
678
|
-
obj.
|
|
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.
|
|
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: "",
|
|
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.
|
|
1146
|
-
exports.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
1240
|
-
obj.
|
|
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.
|
|
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: "",
|
|
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.
|
|
1275
|
-
exports.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
1354
|
-
obj.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
567
|
-
event:
|
|
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
|
|
597
|
+
export interface WorkflowEvent {
|
|
585
598
|
eventId: string;
|
|
586
599
|
ingestionRunId: string;
|
|
587
|
-
parseStarted?:
|
|
588
|
-
parseComplete?:
|
|
589
|
-
classifyTag?:
|
|
590
|
-
extractThread?:
|
|
591
|
-
embedStarted?:
|
|
592
|
-
embedComplete?:
|
|
593
|
-
reconcileMatch?:
|
|
594
|
-
diffDecision?:
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
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
|
|
621
|
+
export interface WorkflowEvent_ParseComplete {
|
|
606
622
|
pageCount: number;
|
|
607
623
|
charCount: number;
|
|
608
624
|
}
|
|
609
|
-
export interface
|
|
625
|
+
export interface WorkflowEvent_ClassifyTag {
|
|
610
626
|
tag: string;
|
|
611
627
|
confidence: number;
|
|
612
628
|
}
|
|
613
|
-
export interface
|
|
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
|
|
644
|
+
export interface WorkflowEvent_CreateThreadCandidate {
|
|
618
645
|
text: string;
|
|
619
646
|
sourceLocation: SourceLocation | undefined;
|
|
620
647
|
loopIndex: number;
|
|
621
648
|
}
|
|
622
|
-
export interface
|
|
649
|
+
export interface WorkflowEvent_CreateThreadComplete {
|
|
623
650
|
threadCount: number;
|
|
624
651
|
}
|
|
625
|
-
export interface
|
|
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
|
|
658
|
+
export interface WorkflowEvent_EmbedStarted {
|
|
632
659
|
threadCount: number;
|
|
633
660
|
}
|
|
634
|
-
export interface
|
|
661
|
+
export interface WorkflowEvent_EmbedComplete {
|
|
635
662
|
threadCount: number;
|
|
636
663
|
model: string;
|
|
637
664
|
dimensions: number;
|
|
638
665
|
}
|
|
639
|
-
export interface
|
|
666
|
+
export interface WorkflowEvent_ReconcileMatch {
|
|
640
667
|
threadId: string;
|
|
641
668
|
existingThreadId: string;
|
|
642
669
|
similarity: number;
|
|
643
670
|
}
|
|
644
|
-
export interface
|
|
671
|
+
export interface WorkflowEvent_DiffDecision {
|
|
645
672
|
threadId: string;
|
|
646
673
|
decision: ThreadClassification;
|
|
647
674
|
supersededThreadIds: string[];
|
|
648
675
|
}
|
|
649
|
-
export interface
|
|
676
|
+
export interface WorkflowEvent_WorkflowComplete {
|
|
650
677
|
threadCount: number;
|
|
651
678
|
pendingReviewCount: number;
|
|
652
679
|
}
|
|
653
|
-
export interface
|
|
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
|
|
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
|
|
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
|
|
726
|
-
export declare const
|
|
727
|
-
export declare const
|
|
728
|
-
export declare const
|
|
729
|
-
export declare const
|
|
730
|
-
export declare const
|
|
731
|
-
export declare const
|
|
732
|
-
export declare const
|
|
733
|
-
export declare const
|
|
734
|
-
export declare const
|
|
735
|
-
export declare const
|
|
736
|
-
export declare const
|
|
737
|
-
export declare const
|
|
738
|
-
export declare const
|
|
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]>;
|