weave-typescript 0.39.0 → 0.41.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 +13 -0
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +215 -4
- package/dist/weaveapi/ingestion/v1/service.pb.d.ts +15 -1
- package/dist/weaveapi/ingestion/v1/service.pb.js +86 -4
- package/dist/weavesql/weavedb/consolidation_sql.d.ts +5 -0
- package/dist/weavesql/weavedb/consolidation_sql.js +7 -1
- package/package.json +1 -1
|
@@ -334,6 +334,7 @@ export interface UploadFileRequest {
|
|
|
334
334
|
metadata: {
|
|
335
335
|
[key: string]: any;
|
|
336
336
|
} | undefined;
|
|
337
|
+
actingUserId: string;
|
|
337
338
|
}
|
|
338
339
|
export interface UploadFileResponse {
|
|
339
340
|
document: Document | undefined;
|
|
@@ -399,6 +400,16 @@ export interface GetDocumentSourceResponse {
|
|
|
399
400
|
faithful: boolean;
|
|
400
401
|
fallbackMessage: string;
|
|
401
402
|
}
|
|
403
|
+
export interface UpdateDocumentSecurityRequest {
|
|
404
|
+
organizationId: string;
|
|
405
|
+
documentId: string;
|
|
406
|
+
actingUserId: string;
|
|
407
|
+
scope: DocumentScope;
|
|
408
|
+
restrictedGroupIds: string[];
|
|
409
|
+
}
|
|
410
|
+
export interface UpdateDocumentSecurityResponse {
|
|
411
|
+
document: DocumentSummary | undefined;
|
|
412
|
+
}
|
|
402
413
|
export interface UpdateDocumentTagsRequest {
|
|
403
414
|
organizationId: string;
|
|
404
415
|
documentId: string;
|
|
@@ -661,6 +672,8 @@ export declare const GetDocumentDetailRequest: MessageFns<GetDocumentDetailReque
|
|
|
661
672
|
export declare const GetDocumentDetailResponse: MessageFns<GetDocumentDetailResponse>;
|
|
662
673
|
export declare const GetDocumentSourceRequest: MessageFns<GetDocumentSourceRequest>;
|
|
663
674
|
export declare const GetDocumentSourceResponse: MessageFns<GetDocumentSourceResponse>;
|
|
675
|
+
export declare const UpdateDocumentSecurityRequest: MessageFns<UpdateDocumentSecurityRequest>;
|
|
676
|
+
export declare const UpdateDocumentSecurityResponse: MessageFns<UpdateDocumentSecurityResponse>;
|
|
664
677
|
export declare const UpdateDocumentTagsRequest: MessageFns<UpdateDocumentTagsRequest>;
|
|
665
678
|
export declare const UpdateDocumentTagsResponse: MessageFns<UpdateDocumentTagsResponse>;
|
|
666
679
|
export declare const DeleteDocumentRequest: MessageFns<DeleteDocumentRequest>;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/ingestion/v1/ingestion.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.PipelineEvent_PipelineFailed = exports.PipelineEvent_PipelineComplete = exports.PipelineEvent_DiffDecision = exports.PipelineEvent_ReconcileMatch = exports.PipelineEvent_EmbedComplete = exports.PipelineEvent_EmbedStarted = exports.PipelineEvent_ExtractThread = exports.PipelineEvent_ClassifyTag = exports.PipelineEvent_ParseComplete = exports.PipelineEvent_ParseStarted = exports.PipelineEvent = exports.RejectThreadResponse = exports.ApproveThreadResponse = exports.EditThreadResponse = exports.GetThreadResponse = exports.GetIngestionRunResponse = exports.StreamPipelineResponse = exports.BulkRejectThreadsResponse = exports.BulkRejectThreadsRequest = exports.BulkApproveThreadsResponse = exports.BulkApproveThreadsRequest = exports.RejectThreadRequest = exports.ApproveThreadRequest = exports.DeleteDocumentThreadResponse = exports.DeleteDocumentThreadRequest = exports.UpdateDocumentThreadResponse = exports.UpdateDocumentThreadRequest = exports.CreateDocumentThreadResponse = exports.CreateDocumentThreadRequest = exports.EditThreadRequest = exports.GetThreadRequest = exports.RetryIngestionResponse = exports.RetryIngestionRequest = exports.DeleteRestrictedGroupResponse = exports.DeleteRestrictedGroupRequest = exports.UpdateRestrictedGroupResponse = exports.UpdateRestrictedGroupRequest = exports.CreateRestrictedGroupResponse = exports.CreateRestrictedGroupRequest = exports.GetRestrictedGroupResponse = void 0;
|
|
8
|
+
exports.ListRestrictedGroupsRequest = exports.DeleteDocumentResponse = exports.DeleteDocumentRequest = exports.UpdateDocumentTagsResponse = exports.UpdateDocumentTagsRequest = exports.UpdateDocumentSecurityResponse = exports.UpdateDocumentSecurityRequest = exports.GetDocumentSourceResponse = exports.GetDocumentSourceRequest = exports.GetDocumentDetailResponse = exports.GetDocumentDetailRequest = exports.ListDocumentsResponse = exports.ListDocumentsRequest = exports.ListIngestionHistoryResponse = exports.ListIngestionHistoryRequest = exports.GetIngestionRunRequest = exports.StreamPipelineRequest = exports.UploadFileResponse = exports.UploadFileRequest = exports.IngestionHistoryEntry = exports.IngestionRun = exports.Thread = exports.DocumentSourceBlock = exports.DocumentDetail = exports.DocumentActionPermissions = exports.DocumentSummary = exports.DocumentThreadCounts = exports.Document = exports.Entity = exports.FacetConfig = exports.FacetFieldDefinition = exports.TemporalValidity = exports.SourceLocation = exports.RestrictedGroupReplacement = exports.RestrictedGroup = exports.UserSensitivityClearance = exports.SensitivityTagDefinition = exports.DocumentTag = exports.RestrictedGroupReplacementTarget = exports.DocumentSourceBlockKind = exports.SortDirection = exports.DocumentSortField = exports.TemporalValidityKind = exports.ThreadActivityAction = exports.ThreadRetrievalStatus = exports.ThreadClassification = exports.IngestionRunStatus = exports.DocumentScope = exports.DocumentStatus = exports.protobufPackage = void 0;
|
|
9
|
+
exports.PipelineEvent_PipelineFailed = exports.PipelineEvent_PipelineComplete = exports.PipelineEvent_DiffDecision = exports.PipelineEvent_ReconcileMatch = exports.PipelineEvent_EmbedComplete = exports.PipelineEvent_EmbedStarted = exports.PipelineEvent_ExtractThread = exports.PipelineEvent_ClassifyTag = exports.PipelineEvent_ParseComplete = exports.PipelineEvent_ParseStarted = exports.PipelineEvent = exports.RejectThreadResponse = exports.ApproveThreadResponse = exports.EditThreadResponse = exports.GetThreadResponse = exports.GetIngestionRunResponse = exports.StreamPipelineResponse = exports.BulkRejectThreadsResponse = exports.BulkRejectThreadsRequest = exports.BulkApproveThreadsResponse = exports.BulkApproveThreadsRequest = exports.RejectThreadRequest = exports.ApproveThreadRequest = exports.DeleteDocumentThreadResponse = exports.DeleteDocumentThreadRequest = exports.UpdateDocumentThreadResponse = exports.UpdateDocumentThreadRequest = exports.CreateDocumentThreadResponse = exports.CreateDocumentThreadRequest = exports.EditThreadRequest = exports.GetThreadRequest = exports.RetryIngestionResponse = exports.RetryIngestionRequest = exports.DeleteRestrictedGroupResponse = exports.DeleteRestrictedGroupRequest = exports.UpdateRestrictedGroupResponse = exports.UpdateRestrictedGroupRequest = exports.CreateRestrictedGroupResponse = exports.CreateRestrictedGroupRequest = exports.GetRestrictedGroupResponse = exports.GetRestrictedGroupRequest = exports.ListRestrictedGroupsResponse = void 0;
|
|
10
10
|
exports.documentStatusFromJSON = documentStatusFromJSON;
|
|
11
11
|
exports.documentStatusToJSON = documentStatusToJSON;
|
|
12
12
|
exports.documentScopeFromJSON = documentScopeFromJSON;
|
|
@@ -4217,7 +4217,14 @@ exports.IngestionHistoryEntry = {
|
|
|
4217
4217
|
},
|
|
4218
4218
|
};
|
|
4219
4219
|
function createBaseUploadFileRequest() {
|
|
4220
|
-
return {
|
|
4220
|
+
return {
|
|
4221
|
+
organizationId: "",
|
|
4222
|
+
filename: "",
|
|
4223
|
+
mimeType: "",
|
|
4224
|
+
content: new Uint8Array(0),
|
|
4225
|
+
metadata: undefined,
|
|
4226
|
+
actingUserId: "",
|
|
4227
|
+
};
|
|
4221
4228
|
}
|
|
4222
4229
|
exports.UploadFileRequest = {
|
|
4223
4230
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -4236,6 +4243,9 @@ exports.UploadFileRequest = {
|
|
|
4236
4243
|
if (message.metadata !== undefined) {
|
|
4237
4244
|
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(50).fork()).join();
|
|
4238
4245
|
}
|
|
4246
|
+
if (message.actingUserId !== "") {
|
|
4247
|
+
writer.uint32(58).string(message.actingUserId);
|
|
4248
|
+
}
|
|
4239
4249
|
return writer;
|
|
4240
4250
|
},
|
|
4241
4251
|
decode(input, length) {
|
|
@@ -4280,6 +4290,13 @@ exports.UploadFileRequest = {
|
|
|
4280
4290
|
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
4281
4291
|
continue;
|
|
4282
4292
|
}
|
|
4293
|
+
case 7: {
|
|
4294
|
+
if (tag !== 58) {
|
|
4295
|
+
break;
|
|
4296
|
+
}
|
|
4297
|
+
message.actingUserId = reader.string();
|
|
4298
|
+
continue;
|
|
4299
|
+
}
|
|
4283
4300
|
}
|
|
4284
4301
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4285
4302
|
break;
|
|
@@ -4303,6 +4320,11 @@ exports.UploadFileRequest = {
|
|
|
4303
4320
|
: "",
|
|
4304
4321
|
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(0),
|
|
4305
4322
|
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
4323
|
+
actingUserId: isSet(object.actingUserId)
|
|
4324
|
+
? globalThis.String(object.actingUserId)
|
|
4325
|
+
: isSet(object.acting_user_id)
|
|
4326
|
+
? globalThis.String(object.acting_user_id)
|
|
4327
|
+
: "",
|
|
4306
4328
|
};
|
|
4307
4329
|
},
|
|
4308
4330
|
toJSON(message) {
|
|
@@ -4322,19 +4344,23 @@ exports.UploadFileRequest = {
|
|
|
4322
4344
|
if (message.metadata !== undefined) {
|
|
4323
4345
|
obj.metadata = message.metadata;
|
|
4324
4346
|
}
|
|
4347
|
+
if (message.actingUserId !== "") {
|
|
4348
|
+
obj.actingUserId = message.actingUserId;
|
|
4349
|
+
}
|
|
4325
4350
|
return obj;
|
|
4326
4351
|
},
|
|
4327
4352
|
create(base) {
|
|
4328
4353
|
return exports.UploadFileRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
4329
4354
|
},
|
|
4330
4355
|
fromPartial(object) {
|
|
4331
|
-
var _a, _b, _c, _d, _e;
|
|
4356
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4332
4357
|
const message = createBaseUploadFileRequest();
|
|
4333
4358
|
message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
|
|
4334
4359
|
message.filename = (_b = object.filename) !== null && _b !== void 0 ? _b : "";
|
|
4335
4360
|
message.mimeType = (_c = object.mimeType) !== null && _c !== void 0 ? _c : "";
|
|
4336
4361
|
message.content = (_d = object.content) !== null && _d !== void 0 ? _d : new Uint8Array(0);
|
|
4337
4362
|
message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
|
|
4363
|
+
message.actingUserId = (_f = object.actingUserId) !== null && _f !== void 0 ? _f : "";
|
|
4338
4364
|
return message;
|
|
4339
4365
|
},
|
|
4340
4366
|
};
|
|
@@ -5585,6 +5611,191 @@ exports.GetDocumentSourceResponse = {
|
|
|
5585
5611
|
return message;
|
|
5586
5612
|
},
|
|
5587
5613
|
};
|
|
5614
|
+
function createBaseUpdateDocumentSecurityRequest() {
|
|
5615
|
+
return { organizationId: "", documentId: "", actingUserId: "", scope: 0, restrictedGroupIds: [] };
|
|
5616
|
+
}
|
|
5617
|
+
exports.UpdateDocumentSecurityRequest = {
|
|
5618
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5619
|
+
if (message.organizationId !== "") {
|
|
5620
|
+
writer.uint32(10).string(message.organizationId);
|
|
5621
|
+
}
|
|
5622
|
+
if (message.documentId !== "") {
|
|
5623
|
+
writer.uint32(18).string(message.documentId);
|
|
5624
|
+
}
|
|
5625
|
+
if (message.actingUserId !== "") {
|
|
5626
|
+
writer.uint32(26).string(message.actingUserId);
|
|
5627
|
+
}
|
|
5628
|
+
if (message.scope !== 0) {
|
|
5629
|
+
writer.uint32(32).int32(message.scope);
|
|
5630
|
+
}
|
|
5631
|
+
for (const v of message.restrictedGroupIds) {
|
|
5632
|
+
writer.uint32(42).string(v);
|
|
5633
|
+
}
|
|
5634
|
+
return writer;
|
|
5635
|
+
},
|
|
5636
|
+
decode(input, length) {
|
|
5637
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5638
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5639
|
+
const message = createBaseUpdateDocumentSecurityRequest();
|
|
5640
|
+
while (reader.pos < end) {
|
|
5641
|
+
const tag = reader.uint32();
|
|
5642
|
+
switch (tag >>> 3) {
|
|
5643
|
+
case 1: {
|
|
5644
|
+
if (tag !== 10) {
|
|
5645
|
+
break;
|
|
5646
|
+
}
|
|
5647
|
+
message.organizationId = reader.string();
|
|
5648
|
+
continue;
|
|
5649
|
+
}
|
|
5650
|
+
case 2: {
|
|
5651
|
+
if (tag !== 18) {
|
|
5652
|
+
break;
|
|
5653
|
+
}
|
|
5654
|
+
message.documentId = reader.string();
|
|
5655
|
+
continue;
|
|
5656
|
+
}
|
|
5657
|
+
case 3: {
|
|
5658
|
+
if (tag !== 26) {
|
|
5659
|
+
break;
|
|
5660
|
+
}
|
|
5661
|
+
message.actingUserId = reader.string();
|
|
5662
|
+
continue;
|
|
5663
|
+
}
|
|
5664
|
+
case 4: {
|
|
5665
|
+
if (tag !== 32) {
|
|
5666
|
+
break;
|
|
5667
|
+
}
|
|
5668
|
+
message.scope = reader.int32();
|
|
5669
|
+
continue;
|
|
5670
|
+
}
|
|
5671
|
+
case 5: {
|
|
5672
|
+
if (tag !== 42) {
|
|
5673
|
+
break;
|
|
5674
|
+
}
|
|
5675
|
+
message.restrictedGroupIds.push(reader.string());
|
|
5676
|
+
continue;
|
|
5677
|
+
}
|
|
5678
|
+
}
|
|
5679
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5680
|
+
break;
|
|
5681
|
+
}
|
|
5682
|
+
reader.skip(tag & 7);
|
|
5683
|
+
}
|
|
5684
|
+
return message;
|
|
5685
|
+
},
|
|
5686
|
+
fromJSON(object) {
|
|
5687
|
+
return {
|
|
5688
|
+
organizationId: isSet(object.organizationId)
|
|
5689
|
+
? globalThis.String(object.organizationId)
|
|
5690
|
+
: isSet(object.organization_id)
|
|
5691
|
+
? globalThis.String(object.organization_id)
|
|
5692
|
+
: "",
|
|
5693
|
+
documentId: isSet(object.documentId)
|
|
5694
|
+
? globalThis.String(object.documentId)
|
|
5695
|
+
: isSet(object.document_id)
|
|
5696
|
+
? globalThis.String(object.document_id)
|
|
5697
|
+
: "",
|
|
5698
|
+
actingUserId: isSet(object.actingUserId)
|
|
5699
|
+
? globalThis.String(object.actingUserId)
|
|
5700
|
+
: isSet(object.acting_user_id)
|
|
5701
|
+
? globalThis.String(object.acting_user_id)
|
|
5702
|
+
: "",
|
|
5703
|
+
scope: isSet(object.scope) ? documentScopeFromJSON(object.scope) : 0,
|
|
5704
|
+
restrictedGroupIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.restrictedGroupIds)
|
|
5705
|
+
? object.restrictedGroupIds.map((e) => globalThis.String(e))
|
|
5706
|
+
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.restricted_group_ids)
|
|
5707
|
+
? object.restricted_group_ids.map((e) => globalThis.String(e))
|
|
5708
|
+
: [],
|
|
5709
|
+
};
|
|
5710
|
+
},
|
|
5711
|
+
toJSON(message) {
|
|
5712
|
+
var _a;
|
|
5713
|
+
const obj = {};
|
|
5714
|
+
if (message.organizationId !== "") {
|
|
5715
|
+
obj.organizationId = message.organizationId;
|
|
5716
|
+
}
|
|
5717
|
+
if (message.documentId !== "") {
|
|
5718
|
+
obj.documentId = message.documentId;
|
|
5719
|
+
}
|
|
5720
|
+
if (message.actingUserId !== "") {
|
|
5721
|
+
obj.actingUserId = message.actingUserId;
|
|
5722
|
+
}
|
|
5723
|
+
if (message.scope !== 0) {
|
|
5724
|
+
obj.scope = documentScopeToJSON(message.scope);
|
|
5725
|
+
}
|
|
5726
|
+
if ((_a = message.restrictedGroupIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
5727
|
+
obj.restrictedGroupIds = message.restrictedGroupIds;
|
|
5728
|
+
}
|
|
5729
|
+
return obj;
|
|
5730
|
+
},
|
|
5731
|
+
create(base) {
|
|
5732
|
+
return exports.UpdateDocumentSecurityRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
5733
|
+
},
|
|
5734
|
+
fromPartial(object) {
|
|
5735
|
+
var _a;
|
|
5736
|
+
var _b, _c, _d, _e;
|
|
5737
|
+
const message = createBaseUpdateDocumentSecurityRequest();
|
|
5738
|
+
message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
|
|
5739
|
+
message.documentId = (_c = object.documentId) !== null && _c !== void 0 ? _c : "";
|
|
5740
|
+
message.actingUserId = (_d = object.actingUserId) !== null && _d !== void 0 ? _d : "";
|
|
5741
|
+
message.scope = (_e = object.scope) !== null && _e !== void 0 ? _e : 0;
|
|
5742
|
+
message.restrictedGroupIds = ((_a = object.restrictedGroupIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
5743
|
+
return message;
|
|
5744
|
+
},
|
|
5745
|
+
};
|
|
5746
|
+
function createBaseUpdateDocumentSecurityResponse() {
|
|
5747
|
+
return { document: undefined };
|
|
5748
|
+
}
|
|
5749
|
+
exports.UpdateDocumentSecurityResponse = {
|
|
5750
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5751
|
+
if (message.document !== undefined) {
|
|
5752
|
+
exports.DocumentSummary.encode(message.document, writer.uint32(10).fork()).join();
|
|
5753
|
+
}
|
|
5754
|
+
return writer;
|
|
5755
|
+
},
|
|
5756
|
+
decode(input, length) {
|
|
5757
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5758
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5759
|
+
const message = createBaseUpdateDocumentSecurityResponse();
|
|
5760
|
+
while (reader.pos < end) {
|
|
5761
|
+
const tag = reader.uint32();
|
|
5762
|
+
switch (tag >>> 3) {
|
|
5763
|
+
case 1: {
|
|
5764
|
+
if (tag !== 10) {
|
|
5765
|
+
break;
|
|
5766
|
+
}
|
|
5767
|
+
message.document = exports.DocumentSummary.decode(reader, reader.uint32());
|
|
5768
|
+
continue;
|
|
5769
|
+
}
|
|
5770
|
+
}
|
|
5771
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5772
|
+
break;
|
|
5773
|
+
}
|
|
5774
|
+
reader.skip(tag & 7);
|
|
5775
|
+
}
|
|
5776
|
+
return message;
|
|
5777
|
+
},
|
|
5778
|
+
fromJSON(object) {
|
|
5779
|
+
return { document: isSet(object.document) ? exports.DocumentSummary.fromJSON(object.document) : undefined };
|
|
5780
|
+
},
|
|
5781
|
+
toJSON(message) {
|
|
5782
|
+
const obj = {};
|
|
5783
|
+
if (message.document !== undefined) {
|
|
5784
|
+
obj.document = exports.DocumentSummary.toJSON(message.document);
|
|
5785
|
+
}
|
|
5786
|
+
return obj;
|
|
5787
|
+
},
|
|
5788
|
+
create(base) {
|
|
5789
|
+
return exports.UpdateDocumentSecurityResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
5790
|
+
},
|
|
5791
|
+
fromPartial(object) {
|
|
5792
|
+
const message = createBaseUpdateDocumentSecurityResponse();
|
|
5793
|
+
message.document = (object.document !== undefined && object.document !== null)
|
|
5794
|
+
? exports.DocumentSummary.fromPartial(object.document)
|
|
5795
|
+
: undefined;
|
|
5796
|
+
return message;
|
|
5797
|
+
},
|
|
5798
|
+
};
|
|
5588
5799
|
function createBaseUpdateDocumentTagsRequest() {
|
|
5589
5800
|
return { organizationId: "", documentId: "", actingUserId: "", addTags: [], removeTags: [] };
|
|
5590
5801
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import { ApproveThreadRequest, ApproveThreadResponse, BulkApproveThreadsRequest, BulkApproveThreadsResponse, BulkRejectThreadsRequest, BulkRejectThreadsResponse, CreateDocumentThreadRequest, CreateDocumentThreadResponse, CreateRestrictedGroupRequest, CreateRestrictedGroupResponse, DeleteDocumentRequest, DeleteDocumentResponse, DeleteDocumentThreadRequest, DeleteDocumentThreadResponse, DeleteRestrictedGroupRequest, DeleteRestrictedGroupResponse, EditThreadRequest, EditThreadResponse, GetDocumentDetailRequest, GetDocumentDetailResponse, GetDocumentSourceRequest, GetDocumentSourceResponse, GetIngestionRunRequest, GetIngestionRunResponse, GetRestrictedGroupRequest, GetRestrictedGroupResponse, GetThreadRequest, GetThreadResponse, ListDocumentsRequest, ListDocumentsResponse, ListIngestionHistoryRequest, ListIngestionHistoryResponse, ListRestrictedGroupsRequest, ListRestrictedGroupsResponse, RejectThreadRequest, RejectThreadResponse, RetryIngestionRequest, RetryIngestionResponse, StreamPipelineRequest, StreamPipelineResponse, UpdateDocumentTagsRequest, UpdateDocumentTagsResponse, UpdateDocumentThreadRequest, UpdateDocumentThreadResponse, UpdateRestrictedGroupRequest, UpdateRestrictedGroupResponse, UploadFileRequest, UploadFileResponse } from "./ingestion.pb";
|
|
2
|
+
import { ApproveThreadRequest, ApproveThreadResponse, BulkApproveThreadsRequest, BulkApproveThreadsResponse, BulkRejectThreadsRequest, BulkRejectThreadsResponse, CreateDocumentThreadRequest, CreateDocumentThreadResponse, CreateRestrictedGroupRequest, CreateRestrictedGroupResponse, DeleteDocumentRequest, DeleteDocumentResponse, DeleteDocumentThreadRequest, DeleteDocumentThreadResponse, DeleteRestrictedGroupRequest, DeleteRestrictedGroupResponse, EditThreadRequest, EditThreadResponse, GetDocumentDetailRequest, GetDocumentDetailResponse, GetDocumentSourceRequest, GetDocumentSourceResponse, GetIngestionRunRequest, GetIngestionRunResponse, GetRestrictedGroupRequest, GetRestrictedGroupResponse, GetThreadRequest, GetThreadResponse, ListDocumentsRequest, ListDocumentsResponse, ListIngestionHistoryRequest, ListIngestionHistoryResponse, ListRestrictedGroupsRequest, ListRestrictedGroupsResponse, RejectThreadRequest, RejectThreadResponse, RetryIngestionRequest, RetryIngestionResponse, StreamPipelineRequest, StreamPipelineResponse, UpdateDocumentSecurityRequest, UpdateDocumentSecurityResponse, UpdateDocumentTagsRequest, UpdateDocumentTagsResponse, UpdateDocumentThreadRequest, UpdateDocumentThreadResponse, UpdateRestrictedGroupRequest, UpdateRestrictedGroupResponse, UploadFileRequest, UploadFileResponse } from "./ingestion.pb";
|
|
3
3
|
export declare const protobufPackage = "weaveapi.ingestion.v1";
|
|
4
4
|
export interface IngestionService {
|
|
5
5
|
UploadFile(request: UploadFileRequest): Promise<UploadFileResponse>;
|
|
@@ -9,6 +9,7 @@ export interface IngestionService {
|
|
|
9
9
|
ListDocuments(request: ListDocumentsRequest): Promise<ListDocumentsResponse>;
|
|
10
10
|
GetDocumentDetail(request: GetDocumentDetailRequest): Promise<GetDocumentDetailResponse>;
|
|
11
11
|
GetDocumentSource(request: GetDocumentSourceRequest): Promise<GetDocumentSourceResponse>;
|
|
12
|
+
UpdateDocumentSecurity(request: UpdateDocumentSecurityRequest): Promise<UpdateDocumentSecurityResponse>;
|
|
12
13
|
UpdateDocumentTags(request: UpdateDocumentTagsRequest): Promise<UpdateDocumentTagsResponse>;
|
|
13
14
|
DeleteDocument(request: DeleteDocumentRequest): Promise<DeleteDocumentResponse>;
|
|
14
15
|
ListRestrictedGroups(request: ListRestrictedGroupsRequest): Promise<ListRestrictedGroupsResponse>;
|
|
@@ -41,6 +42,7 @@ export declare class IngestionServiceClientImpl implements IngestionService {
|
|
|
41
42
|
ListDocuments(request: ListDocumentsRequest): Promise<ListDocumentsResponse>;
|
|
42
43
|
GetDocumentDetail(request: GetDocumentDetailRequest): Promise<GetDocumentDetailResponse>;
|
|
43
44
|
GetDocumentSource(request: GetDocumentSourceRequest): Promise<GetDocumentSourceResponse>;
|
|
45
|
+
UpdateDocumentSecurity(request: UpdateDocumentSecurityRequest): Promise<UpdateDocumentSecurityResponse>;
|
|
44
46
|
UpdateDocumentTags(request: UpdateDocumentTagsRequest): Promise<UpdateDocumentTagsResponse>;
|
|
45
47
|
DeleteDocument(request: DeleteDocumentRequest): Promise<DeleteDocumentResponse>;
|
|
46
48
|
ListRestrictedGroups(request: ListRestrictedGroupsRequest): Promise<ListRestrictedGroupsResponse>;
|
|
@@ -148,6 +150,18 @@ export declare const IngestionServiceDefinition: {
|
|
|
148
150
|
};
|
|
149
151
|
};
|
|
150
152
|
};
|
|
153
|
+
readonly updateDocumentSecurity: {
|
|
154
|
+
readonly name: "UpdateDocumentSecurity";
|
|
155
|
+
readonly requestType: typeof UpdateDocumentSecurityRequest;
|
|
156
|
+
readonly requestStream: false;
|
|
157
|
+
readonly responseType: typeof UpdateDocumentSecurityResponse;
|
|
158
|
+
readonly responseStream: false;
|
|
159
|
+
readonly options: {
|
|
160
|
+
readonly _unknownFields: {
|
|
161
|
+
readonly 578365826: readonly [Uint8Array];
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
151
165
|
readonly updateDocumentTags: {
|
|
152
166
|
readonly name: "UpdateDocumentTags";
|
|
153
167
|
readonly requestType: typeof UpdateDocumentTagsRequest;
|
|
@@ -23,6 +23,7 @@ class IngestionServiceClientImpl {
|
|
|
23
23
|
this.ListDocuments = this.ListDocuments.bind(this);
|
|
24
24
|
this.GetDocumentDetail = this.GetDocumentDetail.bind(this);
|
|
25
25
|
this.GetDocumentSource = this.GetDocumentSource.bind(this);
|
|
26
|
+
this.UpdateDocumentSecurity = this.UpdateDocumentSecurity.bind(this);
|
|
26
27
|
this.UpdateDocumentTags = this.UpdateDocumentTags.bind(this);
|
|
27
28
|
this.DeleteDocument = this.DeleteDocument.bind(this);
|
|
28
29
|
this.ListRestrictedGroups = this.ListRestrictedGroups.bind(this);
|
|
@@ -76,6 +77,11 @@ class IngestionServiceClientImpl {
|
|
|
76
77
|
const promise = this.rpc.request(this.service, "GetDocumentSource", data);
|
|
77
78
|
return promise.then((data) => ingestion_pb_1.GetDocumentSourceResponse.decode(new wire_1.BinaryReader(data)));
|
|
78
79
|
}
|
|
80
|
+
UpdateDocumentSecurity(request) {
|
|
81
|
+
const data = ingestion_pb_1.UpdateDocumentSecurityRequest.encode(request).finish();
|
|
82
|
+
const promise = this.rpc.request(this.service, "UpdateDocumentSecurity", data);
|
|
83
|
+
return promise.then((data) => ingestion_pb_1.UpdateDocumentSecurityResponse.decode(new wire_1.BinaryReader(data)));
|
|
84
|
+
}
|
|
79
85
|
UpdateDocumentTags(request) {
|
|
80
86
|
const data = ingestion_pb_1.UpdateDocumentTagsRequest.encode(request).finish();
|
|
81
87
|
const promise = this.rpc.request(this.service, "UpdateDocumentTags", data);
|
|
@@ -637,6 +643,85 @@ exports.IngestionServiceDefinition = {
|
|
|
637
643
|
},
|
|
638
644
|
},
|
|
639
645
|
},
|
|
646
|
+
updateDocumentSecurity: {
|
|
647
|
+
name: "UpdateDocumentSecurity",
|
|
648
|
+
requestType: ingestion_pb_1.UpdateDocumentSecurityRequest,
|
|
649
|
+
requestStream: false,
|
|
650
|
+
responseType: ingestion_pb_1.UpdateDocumentSecurityResponse,
|
|
651
|
+
responseStream: false,
|
|
652
|
+
options: {
|
|
653
|
+
_unknownFields: {
|
|
654
|
+
578365826: [
|
|
655
|
+
new Uint8Array([
|
|
656
|
+
63,
|
|
657
|
+
58,
|
|
658
|
+
1,
|
|
659
|
+
42,
|
|
660
|
+
50,
|
|
661
|
+
58,
|
|
662
|
+
47,
|
|
663
|
+
118,
|
|
664
|
+
49,
|
|
665
|
+
47,
|
|
666
|
+
111,
|
|
667
|
+
114,
|
|
668
|
+
103,
|
|
669
|
+
47,
|
|
670
|
+
123,
|
|
671
|
+
111,
|
|
672
|
+
114,
|
|
673
|
+
103,
|
|
674
|
+
97,
|
|
675
|
+
110,
|
|
676
|
+
105,
|
|
677
|
+
122,
|
|
678
|
+
97,
|
|
679
|
+
116,
|
|
680
|
+
105,
|
|
681
|
+
111,
|
|
682
|
+
110,
|
|
683
|
+
95,
|
|
684
|
+
105,
|
|
685
|
+
100,
|
|
686
|
+
125,
|
|
687
|
+
47,
|
|
688
|
+
100,
|
|
689
|
+
111,
|
|
690
|
+
99,
|
|
691
|
+
117,
|
|
692
|
+
109,
|
|
693
|
+
101,
|
|
694
|
+
110,
|
|
695
|
+
116,
|
|
696
|
+
115,
|
|
697
|
+
47,
|
|
698
|
+
123,
|
|
699
|
+
100,
|
|
700
|
+
111,
|
|
701
|
+
99,
|
|
702
|
+
117,
|
|
703
|
+
109,
|
|
704
|
+
101,
|
|
705
|
+
110,
|
|
706
|
+
116,
|
|
707
|
+
95,
|
|
708
|
+
105,
|
|
709
|
+
100,
|
|
710
|
+
125,
|
|
711
|
+
47,
|
|
712
|
+
115,
|
|
713
|
+
101,
|
|
714
|
+
99,
|
|
715
|
+
117,
|
|
716
|
+
114,
|
|
717
|
+
105,
|
|
718
|
+
116,
|
|
719
|
+
121,
|
|
720
|
+
]),
|
|
721
|
+
],
|
|
722
|
+
},
|
|
723
|
+
},
|
|
724
|
+
},
|
|
640
725
|
updateDocumentTags: {
|
|
641
726
|
name: "UpdateDocumentTags",
|
|
642
727
|
requestType: ingestion_pb_1.UpdateDocumentTagsRequest,
|
|
@@ -1083,10 +1168,7 @@ exports.IngestionServiceDefinition = {
|
|
|
1083
1168
|
_unknownFields: {
|
|
1084
1169
|
578365826: [
|
|
1085
1170
|
new Uint8Array([
|
|
1086
|
-
|
|
1087
|
-
58,
|
|
1088
|
-
1,
|
|
1089
|
-
42,
|
|
1171
|
+
67,
|
|
1090
1172
|
42,
|
|
1091
1173
|
65,
|
|
1092
1174
|
47,
|
|
@@ -209,4 +209,9 @@ export declare const clearThreadClusterAssignmentsByOrganizationQuery = "-- name
|
|
|
209
209
|
export interface ClearThreadClusterAssignmentsByOrganizationArgs {
|
|
210
210
|
organizationId: string;
|
|
211
211
|
}
|
|
212
|
+
export declare const clearThreadClusterAssignmentsByDocumentQuery = "-- name: ClearThreadClusterAssignmentsByDocument :execrows\nUPDATE weave.threads\nSET cluster_id = NULL\nWHERE organization_id = $1\n AND document_id = $2\n AND cluster_id IS NOT NULL";
|
|
213
|
+
export interface ClearThreadClusterAssignmentsByDocumentArgs {
|
|
214
|
+
organizationId: string;
|
|
215
|
+
documentId: string;
|
|
216
|
+
}
|
|
212
217
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.clearThreadClusterAssignmentsByOrganizationQuery = exports.assignThreadsToClusterQuery = exports.listApprovedThreadsForConsolidationQuery = exports.listConceptClustersByParentAndRealmQuery = exports.listConceptClustersByRealmQuery = exports.getConceptClusterByOrganizationRealmAndIDQuery = exports.upsertConceptClusterQuery = exports.listConsolidationRunsByOrganizationQuery = exports.updateConsolidationRunStateQuery = exports.getConsolidationRunByOrganizationAndIDQuery = exports.createConsolidationRunQuery = void 0;
|
|
3
|
+
exports.clearThreadClusterAssignmentsByDocumentQuery = exports.clearThreadClusterAssignmentsByOrganizationQuery = exports.assignThreadsToClusterQuery = exports.listApprovedThreadsForConsolidationQuery = exports.listConceptClustersByParentAndRealmQuery = exports.listConceptClustersByRealmQuery = exports.getConceptClusterByOrganizationRealmAndIDQuery = exports.upsertConceptClusterQuery = exports.listConsolidationRunsByOrganizationQuery = exports.updateConsolidationRunStateQuery = exports.getConsolidationRunByOrganizationAndIDQuery = exports.createConsolidationRunQuery = void 0;
|
|
4
4
|
exports.createConsolidationRun = createConsolidationRun;
|
|
5
5
|
exports.getConsolidationRunByOrganizationAndID = getConsolidationRunByOrganizationAndID;
|
|
6
6
|
exports.updateConsolidationRunState = updateConsolidationRunState;
|
|
@@ -478,3 +478,9 @@ UPDATE weave.threads
|
|
|
478
478
|
SET cluster_id = NULL
|
|
479
479
|
WHERE organization_id = $1
|
|
480
480
|
AND cluster_id IS NOT NULL`;
|
|
481
|
+
exports.clearThreadClusterAssignmentsByDocumentQuery = `-- name: ClearThreadClusterAssignmentsByDocument :execrows
|
|
482
|
+
UPDATE weave.threads
|
|
483
|
+
SET cluster_id = NULL
|
|
484
|
+
WHERE organization_id = $1
|
|
485
|
+
AND document_id = $2
|
|
486
|
+
AND cluster_id IS NOT NULL`;
|