weave-typescript 0.50.0 → 0.51.1
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/index.d.ts +23 -0
- package/dist/index.js +35 -1
- 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/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
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
|
+
export * as agent from './weaveapi/agent/v1/agent.pb';
|
|
2
|
+
export * as agentService from './weaveapi/agent/v1/service.pb';
|
|
1
3
|
export * as event from './weaveapi/atc/v1/event.pb';
|
|
2
4
|
export * as message from './weaveapi/atc/v1/message.pb';
|
|
3
5
|
export * as process from './weaveapi/atc/v1/process.pb';
|
|
4
6
|
export * as run from './weaveapi/atc/v1/run.pb';
|
|
5
7
|
export * as atcService from './weaveapi/atc/v1/service.pb';
|
|
8
|
+
export * as auth from './weaveapi/auth/v1/auth.pb';
|
|
9
|
+
export * as authService from './weaveapi/auth/v1/service.pb';
|
|
10
|
+
export * as chat from './weaveapi/chat/v1/chat.pb';
|
|
11
|
+
export * as chatService from './weaveapi/chat/v1/service.pb';
|
|
12
|
+
export * as consolidation from './weaveapi/consolidation/v1/consolidation.pb';
|
|
13
|
+
export * as consolidationService from './weaveapi/consolidation/v1/service.pb';
|
|
14
|
+
export * as gateway from './weaveapi/gateway/v1/gateway.pb';
|
|
15
|
+
export * as gatewayService from './weaveapi/gateway/v1/service.pb';
|
|
16
|
+
export * as ingestion from './weaveapi/ingestion/v1/ingestion.pb';
|
|
17
|
+
export * as ingestionService from './weaveapi/ingestion/v1/service.pb';
|
|
18
|
+
export * as table from './weaveapi/ingestion/v1/table.pb';
|
|
19
|
+
export * as model from './weaveapi/model/v1/model.pb';
|
|
20
|
+
export * as modelService from './weaveapi/model/v1/service.pb';
|
|
21
|
+
export * as organization from './weaveapi/organization/v1/organization.pb';
|
|
22
|
+
export * as organizationService from './weaveapi/organization/v1/service.pb';
|
|
6
23
|
export * as project from './weaveapi/project/v1/project.pb';
|
|
7
24
|
export * as projectService from './weaveapi/project/v1/service.pb';
|
|
25
|
+
export * as provider from './weaveapi/provider/v1/provider.pb';
|
|
26
|
+
export * as providerService from './weaveapi/provider/v1/service.pb';
|
|
27
|
+
export * as retrieval from './weaveapi/retrieval/v1/retrieval.pb';
|
|
28
|
+
export * as retrievalService from './weaveapi/retrieval/v1/service.pb';
|
|
8
29
|
export * as taskService from './weaveapi/task/v1/service.pb';
|
|
9
30
|
export * as task from './weaveapi/task/v1/task.pb';
|
|
31
|
+
export * as workflowService from './weaveapi/workflow/v1/service.pb';
|
|
32
|
+
export * as workflow from './weaveapi/workflow/v1/workflow.pb';
|
package/dist/index.js
CHANGED
|
@@ -34,16 +34,50 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.task = exports.taskService = exports.projectService = exports.project = exports.atcService = exports.run = exports.process = exports.message = exports.event = void 0;
|
|
37
|
+
exports.workflow = exports.workflowService = exports.task = exports.taskService = exports.retrievalService = exports.retrieval = exports.providerService = exports.provider = exports.projectService = exports.project = exports.organizationService = exports.organization = exports.modelService = exports.model = exports.table = exports.ingestionService = exports.ingestion = exports.gatewayService = exports.gateway = exports.consolidationService = exports.consolidation = exports.chatService = exports.chat = exports.authService = exports.auth = exports.atcService = exports.run = exports.process = exports.message = exports.event = exports.agentService = exports.agent = void 0;
|
|
38
|
+
// Re-export from weaveapi/agent/v1
|
|
39
|
+
exports.agent = __importStar(require("./weaveapi/agent/v1/agent.pb"));
|
|
40
|
+
exports.agentService = __importStar(require("./weaveapi/agent/v1/service.pb"));
|
|
38
41
|
// Re-export from weaveapi/atc/v1
|
|
39
42
|
exports.event = __importStar(require("./weaveapi/atc/v1/event.pb"));
|
|
40
43
|
exports.message = __importStar(require("./weaveapi/atc/v1/message.pb"));
|
|
41
44
|
exports.process = __importStar(require("./weaveapi/atc/v1/process.pb"));
|
|
42
45
|
exports.run = __importStar(require("./weaveapi/atc/v1/run.pb"));
|
|
43
46
|
exports.atcService = __importStar(require("./weaveapi/atc/v1/service.pb"));
|
|
47
|
+
// Re-export from weaveapi/auth/v1
|
|
48
|
+
exports.auth = __importStar(require("./weaveapi/auth/v1/auth.pb"));
|
|
49
|
+
exports.authService = __importStar(require("./weaveapi/auth/v1/service.pb"));
|
|
50
|
+
// Re-export from weaveapi/chat/v1
|
|
51
|
+
exports.chat = __importStar(require("./weaveapi/chat/v1/chat.pb"));
|
|
52
|
+
exports.chatService = __importStar(require("./weaveapi/chat/v1/service.pb"));
|
|
53
|
+
// Re-export from weaveapi/consolidation/v1
|
|
54
|
+
exports.consolidation = __importStar(require("./weaveapi/consolidation/v1/consolidation.pb"));
|
|
55
|
+
exports.consolidationService = __importStar(require("./weaveapi/consolidation/v1/service.pb"));
|
|
56
|
+
// Re-export from weaveapi/gateway/v1
|
|
57
|
+
exports.gateway = __importStar(require("./weaveapi/gateway/v1/gateway.pb"));
|
|
58
|
+
exports.gatewayService = __importStar(require("./weaveapi/gateway/v1/service.pb"));
|
|
59
|
+
// Re-export from weaveapi/ingestion/v1
|
|
60
|
+
exports.ingestion = __importStar(require("./weaveapi/ingestion/v1/ingestion.pb"));
|
|
61
|
+
exports.ingestionService = __importStar(require("./weaveapi/ingestion/v1/service.pb"));
|
|
62
|
+
exports.table = __importStar(require("./weaveapi/ingestion/v1/table.pb"));
|
|
63
|
+
// Re-export from weaveapi/model/v1
|
|
64
|
+
exports.model = __importStar(require("./weaveapi/model/v1/model.pb"));
|
|
65
|
+
exports.modelService = __importStar(require("./weaveapi/model/v1/service.pb"));
|
|
66
|
+
// Re-export from weaveapi/organization/v1
|
|
67
|
+
exports.organization = __importStar(require("./weaveapi/organization/v1/organization.pb"));
|
|
68
|
+
exports.organizationService = __importStar(require("./weaveapi/organization/v1/service.pb"));
|
|
44
69
|
// Re-export from weaveapi/project/v1
|
|
45
70
|
exports.project = __importStar(require("./weaveapi/project/v1/project.pb"));
|
|
46
71
|
exports.projectService = __importStar(require("./weaveapi/project/v1/service.pb"));
|
|
72
|
+
// Re-export from weaveapi/provider/v1
|
|
73
|
+
exports.provider = __importStar(require("./weaveapi/provider/v1/provider.pb"));
|
|
74
|
+
exports.providerService = __importStar(require("./weaveapi/provider/v1/service.pb"));
|
|
75
|
+
// Re-export from weaveapi/retrieval/v1
|
|
76
|
+
exports.retrieval = __importStar(require("./weaveapi/retrieval/v1/retrieval.pb"));
|
|
77
|
+
exports.retrievalService = __importStar(require("./weaveapi/retrieval/v1/service.pb"));
|
|
47
78
|
// Re-export from weaveapi/task/v1
|
|
48
79
|
exports.taskService = __importStar(require("./weaveapi/task/v1/service.pb"));
|
|
49
80
|
exports.task = __importStar(require("./weaveapi/task/v1/task.pb"));
|
|
81
|
+
// Re-export from weaveapi/workflow/v1
|
|
82
|
+
exports.workflowService = __importStar(require("./weaveapi/workflow/v1/service.pb"));
|
|
83
|
+
exports.workflow = __importStar(require("./weaveapi/workflow/v1/workflow.pb"));
|
|
@@ -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
|
};
|