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
|
@@ -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.
|
|
8
|
+
exports.DeleteDocumentResponse = exports.DeleteDocumentRequest = exports.UpdateDocumentTagsResponse = exports.UpdateDocumentTagsRequest = exports.UpdateDocumentSecurityResponse = exports.UpdateDocumentSecurityRequest = exports.GetDocumentSourceResponse = exports.GetDocumentSourceRequest = exports.ListDocumentThreadsResponse = exports.ListDocumentThreadsRequest = exports.GetDocumentDetailResponse = exports.GetDocumentDetailRequest = exports.ListDocumentsResponse = exports.ListDocumentsRequest = exports.ListIngestionHistoryResponse = exports.ListIngestionHistoryRequest = exports.GetIngestionRunRequest = exports.StreamWorkflowRequest = exports.UploadFileResponse = exports.UploadFileRequest = exports.IngestionHistoryEntry = exports.IngestionRun = exports.Thread = exports.DocumentSourceBlock = exports.DocumentDetail = exports.DocumentActionPermissions = exports.DocumentSummary = exports.DocumentThreadCounts = exports.Document = exports.ThreadFacet = exports.Entity = exports.FacetConfig = exports.FacetFieldDefinition = exports.TemporalValidity = exports.SourceLocation = exports.RestrictedGroupReplacement = exports.RestrictedGroup = 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.WorkflowEvent_WorkflowFailed = exports.WorkflowEvent_WorkflowComplete = exports.WorkflowEvent_DiffDecision = exports.WorkflowEvent_ReconcileMatch = exports.WorkflowEvent_EmbedComplete = exports.WorkflowEvent_EmbedStarted = exports.WorkflowEvent_ExtractThread = exports.WorkflowEvent_CreateThreadComplete = exports.WorkflowEvent_CreateThreadCandidate = exports.WorkflowEvent_CreateThreadStarted = exports.WorkflowEvent_CreateTableWarning = exports.WorkflowEvent_CreateTableComplete = exports.WorkflowEvent_CreateTableStarted = exports.WorkflowEvent_ClassifyTag = exports.WorkflowEvent_ParseComplete = exports.WorkflowEvent_ParseStarted = exports.WorkflowEvent = exports.RejectThreadResponse = exports.ApproveThreadResponse = exports.EditThreadResponse = exports.GetThreadResponse = exports.GetIngestionRunResponse = exports.StreamWorkflowResponse = 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 = exports.ListRestrictedGroupsRequest = void 0;
|
|
10
10
|
exports.documentStatusFromJSON = documentStatusFromJSON;
|
|
11
11
|
exports.documentStatusToJSON = documentStatusToJSON;
|
|
12
12
|
exports.documentScopeFromJSON = documentScopeFromJSON;
|
|
@@ -47,7 +47,8 @@ var DocumentStatus;
|
|
|
47
47
|
DocumentStatus[DocumentStatus["DOCUMENT_STATUS_COMMITTED"] = 8] = "DOCUMENT_STATUS_COMMITTED";
|
|
48
48
|
DocumentStatus[DocumentStatus["DOCUMENT_STATUS_FAILED"] = 9] = "DOCUMENT_STATUS_FAILED";
|
|
49
49
|
DocumentStatus[DocumentStatus["DOCUMENT_STATUS_STALE"] = 10] = "DOCUMENT_STATUS_STALE";
|
|
50
|
-
DocumentStatus[DocumentStatus["
|
|
50
|
+
DocumentStatus[DocumentStatus["DOCUMENT_STATUS_CREATING_TABLES"] = 11] = "DOCUMENT_STATUS_CREATING_TABLES";
|
|
51
|
+
DocumentStatus[DocumentStatus["DOCUMENT_STATUS_CREATING_THREADS"] = 12] = "DOCUMENT_STATUS_CREATING_THREADS";
|
|
51
52
|
DocumentStatus[DocumentStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
52
53
|
})(DocumentStatus || (exports.DocumentStatus = DocumentStatus = {}));
|
|
53
54
|
function documentStatusFromJSON(object) {
|
|
@@ -86,8 +87,11 @@ function documentStatusFromJSON(object) {
|
|
|
86
87
|
case "DOCUMENT_STATUS_STALE":
|
|
87
88
|
return DocumentStatus.DOCUMENT_STATUS_STALE;
|
|
88
89
|
case 11:
|
|
89
|
-
case "
|
|
90
|
-
return DocumentStatus.
|
|
90
|
+
case "DOCUMENT_STATUS_CREATING_TABLES":
|
|
91
|
+
return DocumentStatus.DOCUMENT_STATUS_CREATING_TABLES;
|
|
92
|
+
case 12:
|
|
93
|
+
case "DOCUMENT_STATUS_CREATING_THREADS":
|
|
94
|
+
return DocumentStatus.DOCUMENT_STATUS_CREATING_THREADS;
|
|
91
95
|
case -1:
|
|
92
96
|
case "UNRECOGNIZED":
|
|
93
97
|
default:
|
|
@@ -118,8 +122,10 @@ function documentStatusToJSON(object) {
|
|
|
118
122
|
return "DOCUMENT_STATUS_FAILED";
|
|
119
123
|
case DocumentStatus.DOCUMENT_STATUS_STALE:
|
|
120
124
|
return "DOCUMENT_STATUS_STALE";
|
|
121
|
-
case DocumentStatus.
|
|
122
|
-
return "
|
|
125
|
+
case DocumentStatus.DOCUMENT_STATUS_CREATING_TABLES:
|
|
126
|
+
return "DOCUMENT_STATUS_CREATING_TABLES";
|
|
127
|
+
case DocumentStatus.DOCUMENT_STATUS_CREATING_THREADS:
|
|
128
|
+
return "DOCUMENT_STATUS_CREATING_THREADS";
|
|
123
129
|
case DocumentStatus.UNRECOGNIZED:
|
|
124
130
|
default:
|
|
125
131
|
return "UNRECOGNIZED";
|
|
@@ -181,7 +187,8 @@ var IngestionRunStatus;
|
|
|
181
187
|
IngestionRunStatus[IngestionRunStatus["INGESTION_RUN_STATUS_REVIEW_PENDING"] = 8] = "INGESTION_RUN_STATUS_REVIEW_PENDING";
|
|
182
188
|
IngestionRunStatus[IngestionRunStatus["INGESTION_RUN_STATUS_COMMITTED"] = 9] = "INGESTION_RUN_STATUS_COMMITTED";
|
|
183
189
|
IngestionRunStatus[IngestionRunStatus["INGESTION_RUN_STATUS_FAILED"] = 10] = "INGESTION_RUN_STATUS_FAILED";
|
|
184
|
-
IngestionRunStatus[IngestionRunStatus["
|
|
190
|
+
IngestionRunStatus[IngestionRunStatus["INGESTION_RUN_STATUS_CREATING_TABLES"] = 11] = "INGESTION_RUN_STATUS_CREATING_TABLES";
|
|
191
|
+
IngestionRunStatus[IngestionRunStatus["INGESTION_RUN_STATUS_CREATING_THREADS"] = 12] = "INGESTION_RUN_STATUS_CREATING_THREADS";
|
|
185
192
|
IngestionRunStatus[IngestionRunStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
186
193
|
})(IngestionRunStatus || (exports.IngestionRunStatus = IngestionRunStatus = {}));
|
|
187
194
|
function ingestionRunStatusFromJSON(object) {
|
|
@@ -220,8 +227,11 @@ function ingestionRunStatusFromJSON(object) {
|
|
|
220
227
|
case "INGESTION_RUN_STATUS_FAILED":
|
|
221
228
|
return IngestionRunStatus.INGESTION_RUN_STATUS_FAILED;
|
|
222
229
|
case 11:
|
|
223
|
-
case "
|
|
224
|
-
return IngestionRunStatus.
|
|
230
|
+
case "INGESTION_RUN_STATUS_CREATING_TABLES":
|
|
231
|
+
return IngestionRunStatus.INGESTION_RUN_STATUS_CREATING_TABLES;
|
|
232
|
+
case 12:
|
|
233
|
+
case "INGESTION_RUN_STATUS_CREATING_THREADS":
|
|
234
|
+
return IngestionRunStatus.INGESTION_RUN_STATUS_CREATING_THREADS;
|
|
225
235
|
case -1:
|
|
226
236
|
case "UNRECOGNIZED":
|
|
227
237
|
default:
|
|
@@ -252,8 +262,10 @@ function ingestionRunStatusToJSON(object) {
|
|
|
252
262
|
return "INGESTION_RUN_STATUS_COMMITTED";
|
|
253
263
|
case IngestionRunStatus.INGESTION_RUN_STATUS_FAILED:
|
|
254
264
|
return "INGESTION_RUN_STATUS_FAILED";
|
|
255
|
-
case IngestionRunStatus.
|
|
256
|
-
return "
|
|
265
|
+
case IngestionRunStatus.INGESTION_RUN_STATUS_CREATING_TABLES:
|
|
266
|
+
return "INGESTION_RUN_STATUS_CREATING_TABLES";
|
|
267
|
+
case IngestionRunStatus.INGESTION_RUN_STATUS_CREATING_THREADS:
|
|
268
|
+
return "INGESTION_RUN_STATUS_CREATING_THREADS";
|
|
257
269
|
case IngestionRunStatus.UNRECOGNIZED:
|
|
258
270
|
default:
|
|
259
271
|
return "UNRECOGNIZED";
|
|
@@ -3403,7 +3415,7 @@ function createBaseIngestionRun() {
|
|
|
3403
3415
|
committedAt: undefined,
|
|
3404
3416
|
threads: [],
|
|
3405
3417
|
stageModelSettings: undefined,
|
|
3406
|
-
|
|
3418
|
+
createThreadLoopCount: 0,
|
|
3407
3419
|
};
|
|
3408
3420
|
}
|
|
3409
3421
|
exports.IngestionRun = {
|
|
@@ -3456,8 +3468,8 @@ exports.IngestionRun = {
|
|
|
3456
3468
|
if (message.stageModelSettings !== undefined) {
|
|
3457
3469
|
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.stageModelSettings), writer.uint32(130).fork()).join();
|
|
3458
3470
|
}
|
|
3459
|
-
if (message.
|
|
3460
|
-
writer.uint32(136).int32(message.
|
|
3471
|
+
if (message.createThreadLoopCount !== 0) {
|
|
3472
|
+
writer.uint32(136).int32(message.createThreadLoopCount);
|
|
3461
3473
|
}
|
|
3462
3474
|
return writer;
|
|
3463
3475
|
},
|
|
@@ -3584,7 +3596,7 @@ exports.IngestionRun = {
|
|
|
3584
3596
|
if (tag !== 136) {
|
|
3585
3597
|
break;
|
|
3586
3598
|
}
|
|
3587
|
-
message.
|
|
3599
|
+
message.createThreadLoopCount = reader.int32();
|
|
3588
3600
|
continue;
|
|
3589
3601
|
}
|
|
3590
3602
|
}
|
|
@@ -3663,10 +3675,10 @@ exports.IngestionRun = {
|
|
|
3663
3675
|
: isObject(object.stage_model_settings)
|
|
3664
3676
|
? object.stage_model_settings
|
|
3665
3677
|
: undefined,
|
|
3666
|
-
|
|
3667
|
-
? globalThis.Number(object.
|
|
3668
|
-
: isSet(object.
|
|
3669
|
-
? globalThis.Number(object.
|
|
3678
|
+
createThreadLoopCount: isSet(object.createThreadLoopCount)
|
|
3679
|
+
? globalThis.Number(object.createThreadLoopCount)
|
|
3680
|
+
: isSet(object.create_thread_loop_count)
|
|
3681
|
+
? globalThis.Number(object.create_thread_loop_count)
|
|
3670
3682
|
: 0,
|
|
3671
3683
|
};
|
|
3672
3684
|
},
|
|
@@ -3721,8 +3733,8 @@ exports.IngestionRun = {
|
|
|
3721
3733
|
if (message.stageModelSettings !== undefined) {
|
|
3722
3734
|
obj.stageModelSettings = message.stageModelSettings;
|
|
3723
3735
|
}
|
|
3724
|
-
if (message.
|
|
3725
|
-
obj.
|
|
3736
|
+
if (message.createThreadLoopCount !== 0) {
|
|
3737
|
+
obj.createThreadLoopCount = Math.round(message.createThreadLoopCount);
|
|
3726
3738
|
}
|
|
3727
3739
|
return obj;
|
|
3728
3740
|
},
|
|
@@ -3749,7 +3761,7 @@ exports.IngestionRun = {
|
|
|
3749
3761
|
message.committedAt = (_q = object.committedAt) !== null && _q !== void 0 ? _q : undefined;
|
|
3750
3762
|
message.threads = ((_a = object.threads) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Thread.fromPartial(e))) || [];
|
|
3751
3763
|
message.stageModelSettings = (_r = object.stageModelSettings) !== null && _r !== void 0 ? _r : undefined;
|
|
3752
|
-
message.
|
|
3764
|
+
message.createThreadLoopCount = (_s = object.createThreadLoopCount) !== null && _s !== void 0 ? _s : 0;
|
|
3753
3765
|
return message;
|
|
3754
3766
|
},
|
|
3755
3767
|
};
|
|
@@ -4297,10 +4309,10 @@ exports.UploadFileResponse = {
|
|
|
4297
4309
|
return message;
|
|
4298
4310
|
},
|
|
4299
4311
|
};
|
|
4300
|
-
function
|
|
4312
|
+
function createBaseStreamWorkflowRequest() {
|
|
4301
4313
|
return { organizationId: "", ingestionRunId: "" };
|
|
4302
4314
|
}
|
|
4303
|
-
exports.
|
|
4315
|
+
exports.StreamWorkflowRequest = {
|
|
4304
4316
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4305
4317
|
if (message.organizationId !== "") {
|
|
4306
4318
|
writer.uint32(10).string(message.organizationId);
|
|
@@ -4313,7 +4325,7 @@ exports.StreamPipelineRequest = {
|
|
|
4313
4325
|
decode(input, length) {
|
|
4314
4326
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4315
4327
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4316
|
-
const message =
|
|
4328
|
+
const message = createBaseStreamWorkflowRequest();
|
|
4317
4329
|
while (reader.pos < end) {
|
|
4318
4330
|
const tag = reader.uint32();
|
|
4319
4331
|
switch (tag >>> 3) {
|
|
@@ -4364,11 +4376,11 @@ exports.StreamPipelineRequest = {
|
|
|
4364
4376
|
return obj;
|
|
4365
4377
|
},
|
|
4366
4378
|
create(base) {
|
|
4367
|
-
return exports.
|
|
4379
|
+
return exports.StreamWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
4368
4380
|
},
|
|
4369
4381
|
fromPartial(object) {
|
|
4370
4382
|
var _a, _b;
|
|
4371
|
-
const message =
|
|
4383
|
+
const message = createBaseStreamWorkflowRequest();
|
|
4372
4384
|
message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
|
|
4373
4385
|
message.ingestionRunId = (_b = object.ingestionRunId) !== null && _b !== void 0 ? _b : "";
|
|
4374
4386
|
return message;
|
|
@@ -5227,6 +5239,215 @@ exports.GetDocumentDetailResponse = {
|
|
|
5227
5239
|
return message;
|
|
5228
5240
|
},
|
|
5229
5241
|
};
|
|
5242
|
+
function createBaseListDocumentThreadsRequest() {
|
|
5243
|
+
return { organizationId: "", documentId: "", actingUserId: "", pageSize: 0, pageToken: "" };
|
|
5244
|
+
}
|
|
5245
|
+
exports.ListDocumentThreadsRequest = {
|
|
5246
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5247
|
+
if (message.organizationId !== "") {
|
|
5248
|
+
writer.uint32(10).string(message.organizationId);
|
|
5249
|
+
}
|
|
5250
|
+
if (message.documentId !== "") {
|
|
5251
|
+
writer.uint32(18).string(message.documentId);
|
|
5252
|
+
}
|
|
5253
|
+
if (message.actingUserId !== "") {
|
|
5254
|
+
writer.uint32(26).string(message.actingUserId);
|
|
5255
|
+
}
|
|
5256
|
+
if (message.pageSize !== 0) {
|
|
5257
|
+
writer.uint32(32).int32(message.pageSize);
|
|
5258
|
+
}
|
|
5259
|
+
if (message.pageToken !== "") {
|
|
5260
|
+
writer.uint32(42).string(message.pageToken);
|
|
5261
|
+
}
|
|
5262
|
+
return writer;
|
|
5263
|
+
},
|
|
5264
|
+
decode(input, length) {
|
|
5265
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5266
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5267
|
+
const message = createBaseListDocumentThreadsRequest();
|
|
5268
|
+
while (reader.pos < end) {
|
|
5269
|
+
const tag = reader.uint32();
|
|
5270
|
+
switch (tag >>> 3) {
|
|
5271
|
+
case 1: {
|
|
5272
|
+
if (tag !== 10) {
|
|
5273
|
+
break;
|
|
5274
|
+
}
|
|
5275
|
+
message.organizationId = reader.string();
|
|
5276
|
+
continue;
|
|
5277
|
+
}
|
|
5278
|
+
case 2: {
|
|
5279
|
+
if (tag !== 18) {
|
|
5280
|
+
break;
|
|
5281
|
+
}
|
|
5282
|
+
message.documentId = reader.string();
|
|
5283
|
+
continue;
|
|
5284
|
+
}
|
|
5285
|
+
case 3: {
|
|
5286
|
+
if (tag !== 26) {
|
|
5287
|
+
break;
|
|
5288
|
+
}
|
|
5289
|
+
message.actingUserId = reader.string();
|
|
5290
|
+
continue;
|
|
5291
|
+
}
|
|
5292
|
+
case 4: {
|
|
5293
|
+
if (tag !== 32) {
|
|
5294
|
+
break;
|
|
5295
|
+
}
|
|
5296
|
+
message.pageSize = reader.int32();
|
|
5297
|
+
continue;
|
|
5298
|
+
}
|
|
5299
|
+
case 5: {
|
|
5300
|
+
if (tag !== 42) {
|
|
5301
|
+
break;
|
|
5302
|
+
}
|
|
5303
|
+
message.pageToken = reader.string();
|
|
5304
|
+
continue;
|
|
5305
|
+
}
|
|
5306
|
+
}
|
|
5307
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5308
|
+
break;
|
|
5309
|
+
}
|
|
5310
|
+
reader.skip(tag & 7);
|
|
5311
|
+
}
|
|
5312
|
+
return message;
|
|
5313
|
+
},
|
|
5314
|
+
fromJSON(object) {
|
|
5315
|
+
return {
|
|
5316
|
+
organizationId: isSet(object.organizationId)
|
|
5317
|
+
? globalThis.String(object.organizationId)
|
|
5318
|
+
: isSet(object.organization_id)
|
|
5319
|
+
? globalThis.String(object.organization_id)
|
|
5320
|
+
: "",
|
|
5321
|
+
documentId: isSet(object.documentId)
|
|
5322
|
+
? globalThis.String(object.documentId)
|
|
5323
|
+
: isSet(object.document_id)
|
|
5324
|
+
? globalThis.String(object.document_id)
|
|
5325
|
+
: "",
|
|
5326
|
+
actingUserId: isSet(object.actingUserId)
|
|
5327
|
+
? globalThis.String(object.actingUserId)
|
|
5328
|
+
: isSet(object.acting_user_id)
|
|
5329
|
+
? globalThis.String(object.acting_user_id)
|
|
5330
|
+
: "",
|
|
5331
|
+
pageSize: isSet(object.pageSize)
|
|
5332
|
+
? globalThis.Number(object.pageSize)
|
|
5333
|
+
: isSet(object.page_size)
|
|
5334
|
+
? globalThis.Number(object.page_size)
|
|
5335
|
+
: 0,
|
|
5336
|
+
pageToken: isSet(object.pageToken)
|
|
5337
|
+
? globalThis.String(object.pageToken)
|
|
5338
|
+
: isSet(object.page_token)
|
|
5339
|
+
? globalThis.String(object.page_token)
|
|
5340
|
+
: "",
|
|
5341
|
+
};
|
|
5342
|
+
},
|
|
5343
|
+
toJSON(message) {
|
|
5344
|
+
const obj = {};
|
|
5345
|
+
if (message.organizationId !== "") {
|
|
5346
|
+
obj.organizationId = message.organizationId;
|
|
5347
|
+
}
|
|
5348
|
+
if (message.documentId !== "") {
|
|
5349
|
+
obj.documentId = message.documentId;
|
|
5350
|
+
}
|
|
5351
|
+
if (message.actingUserId !== "") {
|
|
5352
|
+
obj.actingUserId = message.actingUserId;
|
|
5353
|
+
}
|
|
5354
|
+
if (message.pageSize !== 0) {
|
|
5355
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
5356
|
+
}
|
|
5357
|
+
if (message.pageToken !== "") {
|
|
5358
|
+
obj.pageToken = message.pageToken;
|
|
5359
|
+
}
|
|
5360
|
+
return obj;
|
|
5361
|
+
},
|
|
5362
|
+
create(base) {
|
|
5363
|
+
return exports.ListDocumentThreadsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
5364
|
+
},
|
|
5365
|
+
fromPartial(object) {
|
|
5366
|
+
var _a, _b, _c, _d, _e;
|
|
5367
|
+
const message = createBaseListDocumentThreadsRequest();
|
|
5368
|
+
message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
|
|
5369
|
+
message.documentId = (_b = object.documentId) !== null && _b !== void 0 ? _b : "";
|
|
5370
|
+
message.actingUserId = (_c = object.actingUserId) !== null && _c !== void 0 ? _c : "";
|
|
5371
|
+
message.pageSize = (_d = object.pageSize) !== null && _d !== void 0 ? _d : 0;
|
|
5372
|
+
message.pageToken = (_e = object.pageToken) !== null && _e !== void 0 ? _e : "";
|
|
5373
|
+
return message;
|
|
5374
|
+
},
|
|
5375
|
+
};
|
|
5376
|
+
function createBaseListDocumentThreadsResponse() {
|
|
5377
|
+
return { threads: [], nextPageToken: "" };
|
|
5378
|
+
}
|
|
5379
|
+
exports.ListDocumentThreadsResponse = {
|
|
5380
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5381
|
+
for (const v of message.threads) {
|
|
5382
|
+
exports.Thread.encode(v, writer.uint32(10).fork()).join();
|
|
5383
|
+
}
|
|
5384
|
+
if (message.nextPageToken !== "") {
|
|
5385
|
+
writer.uint32(18).string(message.nextPageToken);
|
|
5386
|
+
}
|
|
5387
|
+
return writer;
|
|
5388
|
+
},
|
|
5389
|
+
decode(input, length) {
|
|
5390
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5391
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5392
|
+
const message = createBaseListDocumentThreadsResponse();
|
|
5393
|
+
while (reader.pos < end) {
|
|
5394
|
+
const tag = reader.uint32();
|
|
5395
|
+
switch (tag >>> 3) {
|
|
5396
|
+
case 1: {
|
|
5397
|
+
if (tag !== 10) {
|
|
5398
|
+
break;
|
|
5399
|
+
}
|
|
5400
|
+
message.threads.push(exports.Thread.decode(reader, reader.uint32()));
|
|
5401
|
+
continue;
|
|
5402
|
+
}
|
|
5403
|
+
case 2: {
|
|
5404
|
+
if (tag !== 18) {
|
|
5405
|
+
break;
|
|
5406
|
+
}
|
|
5407
|
+
message.nextPageToken = reader.string();
|
|
5408
|
+
continue;
|
|
5409
|
+
}
|
|
5410
|
+
}
|
|
5411
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5412
|
+
break;
|
|
5413
|
+
}
|
|
5414
|
+
reader.skip(tag & 7);
|
|
5415
|
+
}
|
|
5416
|
+
return message;
|
|
5417
|
+
},
|
|
5418
|
+
fromJSON(object) {
|
|
5419
|
+
return {
|
|
5420
|
+
threads: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.threads) ? object.threads.map((e) => exports.Thread.fromJSON(e)) : [],
|
|
5421
|
+
nextPageToken: isSet(object.nextPageToken)
|
|
5422
|
+
? globalThis.String(object.nextPageToken)
|
|
5423
|
+
: isSet(object.next_page_token)
|
|
5424
|
+
? globalThis.String(object.next_page_token)
|
|
5425
|
+
: "",
|
|
5426
|
+
};
|
|
5427
|
+
},
|
|
5428
|
+
toJSON(message) {
|
|
5429
|
+
var _a;
|
|
5430
|
+
const obj = {};
|
|
5431
|
+
if ((_a = message.threads) === null || _a === void 0 ? void 0 : _a.length) {
|
|
5432
|
+
obj.threads = message.threads.map((e) => exports.Thread.toJSON(e));
|
|
5433
|
+
}
|
|
5434
|
+
if (message.nextPageToken !== "") {
|
|
5435
|
+
obj.nextPageToken = message.nextPageToken;
|
|
5436
|
+
}
|
|
5437
|
+
return obj;
|
|
5438
|
+
},
|
|
5439
|
+
create(base) {
|
|
5440
|
+
return exports.ListDocumentThreadsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
5441
|
+
},
|
|
5442
|
+
fromPartial(object) {
|
|
5443
|
+
var _a;
|
|
5444
|
+
var _b;
|
|
5445
|
+
const message = createBaseListDocumentThreadsResponse();
|
|
5446
|
+
message.threads = ((_a = object.threads) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Thread.fromPartial(e))) || [];
|
|
5447
|
+
message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
|
|
5448
|
+
return message;
|
|
5449
|
+
},
|
|
5450
|
+
};
|
|
5230
5451
|
function createBaseGetDocumentSourceRequest() {
|
|
5231
5452
|
return { organizationId: "", documentId: "", actingUserId: "" };
|
|
5232
5453
|
}
|
|
@@ -8457,20 +8678,20 @@ exports.BulkRejectThreadsResponse = {
|
|
|
8457
8678
|
return message;
|
|
8458
8679
|
},
|
|
8459
8680
|
};
|
|
8460
|
-
function
|
|
8681
|
+
function createBaseStreamWorkflowResponse() {
|
|
8461
8682
|
return { event: undefined };
|
|
8462
8683
|
}
|
|
8463
|
-
exports.
|
|
8684
|
+
exports.StreamWorkflowResponse = {
|
|
8464
8685
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8465
8686
|
if (message.event !== undefined) {
|
|
8466
|
-
exports.
|
|
8687
|
+
exports.WorkflowEvent.encode(message.event, writer.uint32(10).fork()).join();
|
|
8467
8688
|
}
|
|
8468
8689
|
return writer;
|
|
8469
8690
|
},
|
|
8470
8691
|
decode(input, length) {
|
|
8471
8692
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8472
8693
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8473
|
-
const message =
|
|
8694
|
+
const message = createBaseStreamWorkflowResponse();
|
|
8474
8695
|
while (reader.pos < end) {
|
|
8475
8696
|
const tag = reader.uint32();
|
|
8476
8697
|
switch (tag >>> 3) {
|
|
@@ -8478,7 +8699,7 @@ exports.StreamPipelineResponse = {
|
|
|
8478
8699
|
if (tag !== 10) {
|
|
8479
8700
|
break;
|
|
8480
8701
|
}
|
|
8481
|
-
message.event = exports.
|
|
8702
|
+
message.event = exports.WorkflowEvent.decode(reader, reader.uint32());
|
|
8482
8703
|
continue;
|
|
8483
8704
|
}
|
|
8484
8705
|
}
|
|
@@ -8490,22 +8711,22 @@ exports.StreamPipelineResponse = {
|
|
|
8490
8711
|
return message;
|
|
8491
8712
|
},
|
|
8492
8713
|
fromJSON(object) {
|
|
8493
|
-
return { event: isSet(object.event) ? exports.
|
|
8714
|
+
return { event: isSet(object.event) ? exports.WorkflowEvent.fromJSON(object.event) : undefined };
|
|
8494
8715
|
},
|
|
8495
8716
|
toJSON(message) {
|
|
8496
8717
|
const obj = {};
|
|
8497
8718
|
if (message.event !== undefined) {
|
|
8498
|
-
obj.event = exports.
|
|
8719
|
+
obj.event = exports.WorkflowEvent.toJSON(message.event);
|
|
8499
8720
|
}
|
|
8500
8721
|
return obj;
|
|
8501
8722
|
},
|
|
8502
8723
|
create(base) {
|
|
8503
|
-
return exports.
|
|
8724
|
+
return exports.StreamWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
8504
8725
|
},
|
|
8505
8726
|
fromPartial(object) {
|
|
8506
|
-
const message =
|
|
8727
|
+
const message = createBaseStreamWorkflowResponse();
|
|
8507
8728
|
message.event = (object.event !== undefined && object.event !== null)
|
|
8508
|
-
? exports.
|
|
8729
|
+
? exports.WorkflowEvent.fromPartial(object.event)
|
|
8509
8730
|
: undefined;
|
|
8510
8731
|
return message;
|
|
8511
8732
|
},
|
|
@@ -8781,7 +9002,7 @@ exports.RejectThreadResponse = {
|
|
|
8781
9002
|
return message;
|
|
8782
9003
|
},
|
|
8783
9004
|
};
|
|
8784
|
-
function
|
|
9005
|
+
function createBaseWorkflowEvent() {
|
|
8785
9006
|
return {
|
|
8786
9007
|
eventId: "",
|
|
8787
9008
|
ingestionRunId: "",
|
|
@@ -8793,14 +9014,17 @@ function createBasePipelineEvent() {
|
|
|
8793
9014
|
embedComplete: undefined,
|
|
8794
9015
|
reconcileMatch: undefined,
|
|
8795
9016
|
diffDecision: undefined,
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
9017
|
+
workflowComplete: undefined,
|
|
9018
|
+
workflowFailed: undefined,
|
|
9019
|
+
createThreadStarted: undefined,
|
|
9020
|
+
createThreadCandidate: undefined,
|
|
9021
|
+
createThreadComplete: undefined,
|
|
9022
|
+
createTableStarted: undefined,
|
|
9023
|
+
createTableComplete: undefined,
|
|
9024
|
+
createTableWarning: undefined,
|
|
8801
9025
|
};
|
|
8802
9026
|
}
|
|
8803
|
-
exports.
|
|
9027
|
+
exports.WorkflowEvent = {
|
|
8804
9028
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8805
9029
|
if (message.eventId !== "") {
|
|
8806
9030
|
writer.uint32(10).string(message.eventId);
|
|
@@ -8809,50 +9033,59 @@ exports.PipelineEvent = {
|
|
|
8809
9033
|
writer.uint32(18).string(message.ingestionRunId);
|
|
8810
9034
|
}
|
|
8811
9035
|
if (message.parseStarted !== undefined) {
|
|
8812
|
-
exports.
|
|
9036
|
+
exports.WorkflowEvent_ParseStarted.encode(message.parseStarted, writer.uint32(26).fork()).join();
|
|
8813
9037
|
}
|
|
8814
9038
|
if (message.parseComplete !== undefined) {
|
|
8815
|
-
exports.
|
|
9039
|
+
exports.WorkflowEvent_ParseComplete.encode(message.parseComplete, writer.uint32(34).fork()).join();
|
|
8816
9040
|
}
|
|
8817
9041
|
if (message.classifyTag !== undefined) {
|
|
8818
|
-
exports.
|
|
9042
|
+
exports.WorkflowEvent_ClassifyTag.encode(message.classifyTag, writer.uint32(42).fork()).join();
|
|
8819
9043
|
}
|
|
8820
9044
|
if (message.extractThread !== undefined) {
|
|
8821
|
-
exports.
|
|
9045
|
+
exports.WorkflowEvent_ExtractThread.encode(message.extractThread, writer.uint32(50).fork()).join();
|
|
8822
9046
|
}
|
|
8823
9047
|
if (message.embedStarted !== undefined) {
|
|
8824
|
-
exports.
|
|
9048
|
+
exports.WorkflowEvent_EmbedStarted.encode(message.embedStarted, writer.uint32(58).fork()).join();
|
|
8825
9049
|
}
|
|
8826
9050
|
if (message.embedComplete !== undefined) {
|
|
8827
|
-
exports.
|
|
9051
|
+
exports.WorkflowEvent_EmbedComplete.encode(message.embedComplete, writer.uint32(66).fork()).join();
|
|
8828
9052
|
}
|
|
8829
9053
|
if (message.reconcileMatch !== undefined) {
|
|
8830
|
-
exports.
|
|
9054
|
+
exports.WorkflowEvent_ReconcileMatch.encode(message.reconcileMatch, writer.uint32(74).fork()).join();
|
|
8831
9055
|
}
|
|
8832
9056
|
if (message.diffDecision !== undefined) {
|
|
8833
|
-
exports.
|
|
9057
|
+
exports.WorkflowEvent_DiffDecision.encode(message.diffDecision, writer.uint32(82).fork()).join();
|
|
9058
|
+
}
|
|
9059
|
+
if (message.workflowComplete !== undefined) {
|
|
9060
|
+
exports.WorkflowEvent_WorkflowComplete.encode(message.workflowComplete, writer.uint32(90).fork()).join();
|
|
9061
|
+
}
|
|
9062
|
+
if (message.workflowFailed !== undefined) {
|
|
9063
|
+
exports.WorkflowEvent_WorkflowFailed.encode(message.workflowFailed, writer.uint32(98).fork()).join();
|
|
8834
9064
|
}
|
|
8835
|
-
if (message.
|
|
8836
|
-
exports.
|
|
9065
|
+
if (message.createThreadStarted !== undefined) {
|
|
9066
|
+
exports.WorkflowEvent_CreateThreadStarted.encode(message.createThreadStarted, writer.uint32(106).fork()).join();
|
|
8837
9067
|
}
|
|
8838
|
-
if (message.
|
|
8839
|
-
exports.
|
|
9068
|
+
if (message.createThreadCandidate !== undefined) {
|
|
9069
|
+
exports.WorkflowEvent_CreateThreadCandidate.encode(message.createThreadCandidate, writer.uint32(114).fork()).join();
|
|
8840
9070
|
}
|
|
8841
|
-
if (message.
|
|
8842
|
-
exports.
|
|
9071
|
+
if (message.createThreadComplete !== undefined) {
|
|
9072
|
+
exports.WorkflowEvent_CreateThreadComplete.encode(message.createThreadComplete, writer.uint32(122).fork()).join();
|
|
8843
9073
|
}
|
|
8844
|
-
if (message.
|
|
8845
|
-
exports.
|
|
9074
|
+
if (message.createTableStarted !== undefined) {
|
|
9075
|
+
exports.WorkflowEvent_CreateTableStarted.encode(message.createTableStarted, writer.uint32(130).fork()).join();
|
|
8846
9076
|
}
|
|
8847
|
-
if (message.
|
|
8848
|
-
exports.
|
|
9077
|
+
if (message.createTableComplete !== undefined) {
|
|
9078
|
+
exports.WorkflowEvent_CreateTableComplete.encode(message.createTableComplete, writer.uint32(138).fork()).join();
|
|
9079
|
+
}
|
|
9080
|
+
if (message.createTableWarning !== undefined) {
|
|
9081
|
+
exports.WorkflowEvent_CreateTableWarning.encode(message.createTableWarning, writer.uint32(146).fork()).join();
|
|
8849
9082
|
}
|
|
8850
9083
|
return writer;
|
|
8851
9084
|
},
|
|
8852
9085
|
decode(input, length) {
|
|
8853
9086
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8854
9087
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8855
|
-
const message =
|
|
9088
|
+
const message = createBaseWorkflowEvent();
|
|
8856
9089
|
while (reader.pos < end) {
|
|
8857
9090
|
const tag = reader.uint32();
|
|
8858
9091
|
switch (tag >>> 3) {
|
|
@@ -8874,91 +9107,112 @@ exports.PipelineEvent = {
|
|
|
8874
9107
|
if (tag !== 26) {
|
|
8875
9108
|
break;
|
|
8876
9109
|
}
|
|
8877
|
-
message.parseStarted = exports.
|
|
9110
|
+
message.parseStarted = exports.WorkflowEvent_ParseStarted.decode(reader, reader.uint32());
|
|
8878
9111
|
continue;
|
|
8879
9112
|
}
|
|
8880
9113
|
case 4: {
|
|
8881
9114
|
if (tag !== 34) {
|
|
8882
9115
|
break;
|
|
8883
9116
|
}
|
|
8884
|
-
message.parseComplete = exports.
|
|
9117
|
+
message.parseComplete = exports.WorkflowEvent_ParseComplete.decode(reader, reader.uint32());
|
|
8885
9118
|
continue;
|
|
8886
9119
|
}
|
|
8887
9120
|
case 5: {
|
|
8888
9121
|
if (tag !== 42) {
|
|
8889
9122
|
break;
|
|
8890
9123
|
}
|
|
8891
|
-
message.classifyTag = exports.
|
|
9124
|
+
message.classifyTag = exports.WorkflowEvent_ClassifyTag.decode(reader, reader.uint32());
|
|
8892
9125
|
continue;
|
|
8893
9126
|
}
|
|
8894
9127
|
case 6: {
|
|
8895
9128
|
if (tag !== 50) {
|
|
8896
9129
|
break;
|
|
8897
9130
|
}
|
|
8898
|
-
message.extractThread = exports.
|
|
9131
|
+
message.extractThread = exports.WorkflowEvent_ExtractThread.decode(reader, reader.uint32());
|
|
8899
9132
|
continue;
|
|
8900
9133
|
}
|
|
8901
9134
|
case 7: {
|
|
8902
9135
|
if (tag !== 58) {
|
|
8903
9136
|
break;
|
|
8904
9137
|
}
|
|
8905
|
-
message.embedStarted = exports.
|
|
9138
|
+
message.embedStarted = exports.WorkflowEvent_EmbedStarted.decode(reader, reader.uint32());
|
|
8906
9139
|
continue;
|
|
8907
9140
|
}
|
|
8908
9141
|
case 8: {
|
|
8909
9142
|
if (tag !== 66) {
|
|
8910
9143
|
break;
|
|
8911
9144
|
}
|
|
8912
|
-
message.embedComplete = exports.
|
|
9145
|
+
message.embedComplete = exports.WorkflowEvent_EmbedComplete.decode(reader, reader.uint32());
|
|
8913
9146
|
continue;
|
|
8914
9147
|
}
|
|
8915
9148
|
case 9: {
|
|
8916
9149
|
if (tag !== 74) {
|
|
8917
9150
|
break;
|
|
8918
9151
|
}
|
|
8919
|
-
message.reconcileMatch = exports.
|
|
9152
|
+
message.reconcileMatch = exports.WorkflowEvent_ReconcileMatch.decode(reader, reader.uint32());
|
|
8920
9153
|
continue;
|
|
8921
9154
|
}
|
|
8922
9155
|
case 10: {
|
|
8923
9156
|
if (tag !== 82) {
|
|
8924
9157
|
break;
|
|
8925
9158
|
}
|
|
8926
|
-
message.diffDecision = exports.
|
|
9159
|
+
message.diffDecision = exports.WorkflowEvent_DiffDecision.decode(reader, reader.uint32());
|
|
8927
9160
|
continue;
|
|
8928
9161
|
}
|
|
8929
9162
|
case 11: {
|
|
8930
9163
|
if (tag !== 90) {
|
|
8931
9164
|
break;
|
|
8932
9165
|
}
|
|
8933
|
-
message.
|
|
9166
|
+
message.workflowComplete = exports.WorkflowEvent_WorkflowComplete.decode(reader, reader.uint32());
|
|
8934
9167
|
continue;
|
|
8935
9168
|
}
|
|
8936
9169
|
case 12: {
|
|
8937
9170
|
if (tag !== 98) {
|
|
8938
9171
|
break;
|
|
8939
9172
|
}
|
|
8940
|
-
message.
|
|
9173
|
+
message.workflowFailed = exports.WorkflowEvent_WorkflowFailed.decode(reader, reader.uint32());
|
|
8941
9174
|
continue;
|
|
8942
9175
|
}
|
|
8943
9176
|
case 13: {
|
|
8944
9177
|
if (tag !== 106) {
|
|
8945
9178
|
break;
|
|
8946
9179
|
}
|
|
8947
|
-
message.
|
|
9180
|
+
message.createThreadStarted = exports.WorkflowEvent_CreateThreadStarted.decode(reader, reader.uint32());
|
|
8948
9181
|
continue;
|
|
8949
9182
|
}
|
|
8950
9183
|
case 14: {
|
|
8951
9184
|
if (tag !== 114) {
|
|
8952
9185
|
break;
|
|
8953
9186
|
}
|
|
8954
|
-
message.
|
|
9187
|
+
message.createThreadCandidate = exports.WorkflowEvent_CreateThreadCandidate.decode(reader, reader.uint32());
|
|
8955
9188
|
continue;
|
|
8956
9189
|
}
|
|
8957
9190
|
case 15: {
|
|
8958
9191
|
if (tag !== 122) {
|
|
8959
9192
|
break;
|
|
8960
9193
|
}
|
|
8961
|
-
message.
|
|
9194
|
+
message.createThreadComplete = exports.WorkflowEvent_CreateThreadComplete.decode(reader, reader.uint32());
|
|
9195
|
+
continue;
|
|
9196
|
+
}
|
|
9197
|
+
case 16: {
|
|
9198
|
+
if (tag !== 130) {
|
|
9199
|
+
break;
|
|
9200
|
+
}
|
|
9201
|
+
message.createTableStarted = exports.WorkflowEvent_CreateTableStarted.decode(reader, reader.uint32());
|
|
9202
|
+
continue;
|
|
9203
|
+
}
|
|
9204
|
+
case 17: {
|
|
9205
|
+
if (tag !== 138) {
|
|
9206
|
+
break;
|
|
9207
|
+
}
|
|
9208
|
+
message.createTableComplete = exports.WorkflowEvent_CreateTableComplete.decode(reader, reader.uint32());
|
|
9209
|
+
continue;
|
|
9210
|
+
}
|
|
9211
|
+
case 18: {
|
|
9212
|
+
if (tag !== 146) {
|
|
9213
|
+
break;
|
|
9214
|
+
}
|
|
9215
|
+
message.createTableWarning = exports.WorkflowEvent_CreateTableWarning.decode(reader, reader.uint32());
|
|
8962
9216
|
continue;
|
|
8963
9217
|
}
|
|
8964
9218
|
}
|
|
@@ -8982,69 +9236,84 @@ exports.PipelineEvent = {
|
|
|
8982
9236
|
? globalThis.String(object.ingestion_run_id)
|
|
8983
9237
|
: "",
|
|
8984
9238
|
parseStarted: isSet(object.parseStarted)
|
|
8985
|
-
? exports.
|
|
9239
|
+
? exports.WorkflowEvent_ParseStarted.fromJSON(object.parseStarted)
|
|
8986
9240
|
: isSet(object.parse_started)
|
|
8987
|
-
? exports.
|
|
9241
|
+
? exports.WorkflowEvent_ParseStarted.fromJSON(object.parse_started)
|
|
8988
9242
|
: undefined,
|
|
8989
9243
|
parseComplete: isSet(object.parseComplete)
|
|
8990
|
-
? exports.
|
|
9244
|
+
? exports.WorkflowEvent_ParseComplete.fromJSON(object.parseComplete)
|
|
8991
9245
|
: isSet(object.parse_complete)
|
|
8992
|
-
? exports.
|
|
9246
|
+
? exports.WorkflowEvent_ParseComplete.fromJSON(object.parse_complete)
|
|
8993
9247
|
: undefined,
|
|
8994
9248
|
classifyTag: isSet(object.classifyTag)
|
|
8995
|
-
? exports.
|
|
9249
|
+
? exports.WorkflowEvent_ClassifyTag.fromJSON(object.classifyTag)
|
|
8996
9250
|
: isSet(object.classify_tag)
|
|
8997
|
-
? exports.
|
|
9251
|
+
? exports.WorkflowEvent_ClassifyTag.fromJSON(object.classify_tag)
|
|
8998
9252
|
: undefined,
|
|
8999
9253
|
extractThread: isSet(object.extractThread)
|
|
9000
|
-
? exports.
|
|
9254
|
+
? exports.WorkflowEvent_ExtractThread.fromJSON(object.extractThread)
|
|
9001
9255
|
: isSet(object.extract_thread)
|
|
9002
|
-
? exports.
|
|
9256
|
+
? exports.WorkflowEvent_ExtractThread.fromJSON(object.extract_thread)
|
|
9003
9257
|
: undefined,
|
|
9004
9258
|
embedStarted: isSet(object.embedStarted)
|
|
9005
|
-
? exports.
|
|
9259
|
+
? exports.WorkflowEvent_EmbedStarted.fromJSON(object.embedStarted)
|
|
9006
9260
|
: isSet(object.embed_started)
|
|
9007
|
-
? exports.
|
|
9261
|
+
? exports.WorkflowEvent_EmbedStarted.fromJSON(object.embed_started)
|
|
9008
9262
|
: undefined,
|
|
9009
9263
|
embedComplete: isSet(object.embedComplete)
|
|
9010
|
-
? exports.
|
|
9264
|
+
? exports.WorkflowEvent_EmbedComplete.fromJSON(object.embedComplete)
|
|
9011
9265
|
: isSet(object.embed_complete)
|
|
9012
|
-
? exports.
|
|
9266
|
+
? exports.WorkflowEvent_EmbedComplete.fromJSON(object.embed_complete)
|
|
9013
9267
|
: undefined,
|
|
9014
9268
|
reconcileMatch: isSet(object.reconcileMatch)
|
|
9015
|
-
? exports.
|
|
9269
|
+
? exports.WorkflowEvent_ReconcileMatch.fromJSON(object.reconcileMatch)
|
|
9016
9270
|
: isSet(object.reconcile_match)
|
|
9017
|
-
? exports.
|
|
9271
|
+
? exports.WorkflowEvent_ReconcileMatch.fromJSON(object.reconcile_match)
|
|
9018
9272
|
: undefined,
|
|
9019
9273
|
diffDecision: isSet(object.diffDecision)
|
|
9020
|
-
? exports.
|
|
9274
|
+
? exports.WorkflowEvent_DiffDecision.fromJSON(object.diffDecision)
|
|
9021
9275
|
: isSet(object.diff_decision)
|
|
9022
|
-
? exports.
|
|
9276
|
+
? exports.WorkflowEvent_DiffDecision.fromJSON(object.diff_decision)
|
|
9277
|
+
: undefined,
|
|
9278
|
+
workflowComplete: isSet(object.workflowComplete)
|
|
9279
|
+
? exports.WorkflowEvent_WorkflowComplete.fromJSON(object.workflowComplete)
|
|
9280
|
+
: isSet(object.workflow_complete)
|
|
9281
|
+
? exports.WorkflowEvent_WorkflowComplete.fromJSON(object.workflow_complete)
|
|
9282
|
+
: undefined,
|
|
9283
|
+
workflowFailed: isSet(object.workflowFailed)
|
|
9284
|
+
? exports.WorkflowEvent_WorkflowFailed.fromJSON(object.workflowFailed)
|
|
9285
|
+
: isSet(object.workflow_failed)
|
|
9286
|
+
? exports.WorkflowEvent_WorkflowFailed.fromJSON(object.workflow_failed)
|
|
9023
9287
|
: undefined,
|
|
9024
|
-
|
|
9025
|
-
? exports.
|
|
9026
|
-
: isSet(object.
|
|
9027
|
-
? exports.
|
|
9288
|
+
createThreadStarted: isSet(object.createThreadStarted)
|
|
9289
|
+
? exports.WorkflowEvent_CreateThreadStarted.fromJSON(object.createThreadStarted)
|
|
9290
|
+
: isSet(object.create_thread_started)
|
|
9291
|
+
? exports.WorkflowEvent_CreateThreadStarted.fromJSON(object.create_thread_started)
|
|
9028
9292
|
: undefined,
|
|
9029
|
-
|
|
9030
|
-
? exports.
|
|
9031
|
-
: isSet(object.
|
|
9032
|
-
? exports.
|
|
9293
|
+
createThreadCandidate: isSet(object.createThreadCandidate)
|
|
9294
|
+
? exports.WorkflowEvent_CreateThreadCandidate.fromJSON(object.createThreadCandidate)
|
|
9295
|
+
: isSet(object.create_thread_candidate)
|
|
9296
|
+
? exports.WorkflowEvent_CreateThreadCandidate.fromJSON(object.create_thread_candidate)
|
|
9033
9297
|
: undefined,
|
|
9034
|
-
|
|
9035
|
-
? exports.
|
|
9036
|
-
: isSet(object.
|
|
9037
|
-
? exports.
|
|
9298
|
+
createThreadComplete: isSet(object.createThreadComplete)
|
|
9299
|
+
? exports.WorkflowEvent_CreateThreadComplete.fromJSON(object.createThreadComplete)
|
|
9300
|
+
: isSet(object.create_thread_complete)
|
|
9301
|
+
? exports.WorkflowEvent_CreateThreadComplete.fromJSON(object.create_thread_complete)
|
|
9038
9302
|
: undefined,
|
|
9039
|
-
|
|
9040
|
-
? exports.
|
|
9041
|
-
: isSet(object.
|
|
9042
|
-
? exports.
|
|
9303
|
+
createTableStarted: isSet(object.createTableStarted)
|
|
9304
|
+
? exports.WorkflowEvent_CreateTableStarted.fromJSON(object.createTableStarted)
|
|
9305
|
+
: isSet(object.create_table_started)
|
|
9306
|
+
? exports.WorkflowEvent_CreateTableStarted.fromJSON(object.create_table_started)
|
|
9043
9307
|
: undefined,
|
|
9044
|
-
|
|
9045
|
-
? exports.
|
|
9046
|
-
: isSet(object.
|
|
9047
|
-
? exports.
|
|
9308
|
+
createTableComplete: isSet(object.createTableComplete)
|
|
9309
|
+
? exports.WorkflowEvent_CreateTableComplete.fromJSON(object.createTableComplete)
|
|
9310
|
+
: isSet(object.create_table_complete)
|
|
9311
|
+
? exports.WorkflowEvent_CreateTableComplete.fromJSON(object.create_table_complete)
|
|
9312
|
+
: undefined,
|
|
9313
|
+
createTableWarning: isSet(object.createTableWarning)
|
|
9314
|
+
? exports.WorkflowEvent_CreateTableWarning.fromJSON(object.createTableWarning)
|
|
9315
|
+
: isSet(object.create_table_warning)
|
|
9316
|
+
? exports.WorkflowEvent_CreateTableWarning.fromJSON(object.create_table_warning)
|
|
9048
9317
|
: undefined,
|
|
9049
9318
|
};
|
|
9050
9319
|
},
|
|
@@ -9057,100 +9326,119 @@ exports.PipelineEvent = {
|
|
|
9057
9326
|
obj.ingestionRunId = message.ingestionRunId;
|
|
9058
9327
|
}
|
|
9059
9328
|
if (message.parseStarted !== undefined) {
|
|
9060
|
-
obj.parseStarted = exports.
|
|
9329
|
+
obj.parseStarted = exports.WorkflowEvent_ParseStarted.toJSON(message.parseStarted);
|
|
9061
9330
|
}
|
|
9062
9331
|
if (message.parseComplete !== undefined) {
|
|
9063
|
-
obj.parseComplete = exports.
|
|
9332
|
+
obj.parseComplete = exports.WorkflowEvent_ParseComplete.toJSON(message.parseComplete);
|
|
9064
9333
|
}
|
|
9065
9334
|
if (message.classifyTag !== undefined) {
|
|
9066
|
-
obj.classifyTag = exports.
|
|
9335
|
+
obj.classifyTag = exports.WorkflowEvent_ClassifyTag.toJSON(message.classifyTag);
|
|
9067
9336
|
}
|
|
9068
9337
|
if (message.extractThread !== undefined) {
|
|
9069
|
-
obj.extractThread = exports.
|
|
9338
|
+
obj.extractThread = exports.WorkflowEvent_ExtractThread.toJSON(message.extractThread);
|
|
9070
9339
|
}
|
|
9071
9340
|
if (message.embedStarted !== undefined) {
|
|
9072
|
-
obj.embedStarted = exports.
|
|
9341
|
+
obj.embedStarted = exports.WorkflowEvent_EmbedStarted.toJSON(message.embedStarted);
|
|
9073
9342
|
}
|
|
9074
9343
|
if (message.embedComplete !== undefined) {
|
|
9075
|
-
obj.embedComplete = exports.
|
|
9344
|
+
obj.embedComplete = exports.WorkflowEvent_EmbedComplete.toJSON(message.embedComplete);
|
|
9076
9345
|
}
|
|
9077
9346
|
if (message.reconcileMatch !== undefined) {
|
|
9078
|
-
obj.reconcileMatch = exports.
|
|
9347
|
+
obj.reconcileMatch = exports.WorkflowEvent_ReconcileMatch.toJSON(message.reconcileMatch);
|
|
9079
9348
|
}
|
|
9080
9349
|
if (message.diffDecision !== undefined) {
|
|
9081
|
-
obj.diffDecision = exports.
|
|
9350
|
+
obj.diffDecision = exports.WorkflowEvent_DiffDecision.toJSON(message.diffDecision);
|
|
9351
|
+
}
|
|
9352
|
+
if (message.workflowComplete !== undefined) {
|
|
9353
|
+
obj.workflowComplete = exports.WorkflowEvent_WorkflowComplete.toJSON(message.workflowComplete);
|
|
9354
|
+
}
|
|
9355
|
+
if (message.workflowFailed !== undefined) {
|
|
9356
|
+
obj.workflowFailed = exports.WorkflowEvent_WorkflowFailed.toJSON(message.workflowFailed);
|
|
9082
9357
|
}
|
|
9083
|
-
if (message.
|
|
9084
|
-
obj.
|
|
9358
|
+
if (message.createThreadStarted !== undefined) {
|
|
9359
|
+
obj.createThreadStarted = exports.WorkflowEvent_CreateThreadStarted.toJSON(message.createThreadStarted);
|
|
9085
9360
|
}
|
|
9086
|
-
if (message.
|
|
9087
|
-
obj.
|
|
9361
|
+
if (message.createThreadCandidate !== undefined) {
|
|
9362
|
+
obj.createThreadCandidate = exports.WorkflowEvent_CreateThreadCandidate.toJSON(message.createThreadCandidate);
|
|
9088
9363
|
}
|
|
9089
|
-
if (message.
|
|
9090
|
-
obj.
|
|
9364
|
+
if (message.createThreadComplete !== undefined) {
|
|
9365
|
+
obj.createThreadComplete = exports.WorkflowEvent_CreateThreadComplete.toJSON(message.createThreadComplete);
|
|
9091
9366
|
}
|
|
9092
|
-
if (message.
|
|
9093
|
-
obj.
|
|
9367
|
+
if (message.createTableStarted !== undefined) {
|
|
9368
|
+
obj.createTableStarted = exports.WorkflowEvent_CreateTableStarted.toJSON(message.createTableStarted);
|
|
9094
9369
|
}
|
|
9095
|
-
if (message.
|
|
9096
|
-
obj.
|
|
9370
|
+
if (message.createTableComplete !== undefined) {
|
|
9371
|
+
obj.createTableComplete = exports.WorkflowEvent_CreateTableComplete.toJSON(message.createTableComplete);
|
|
9372
|
+
}
|
|
9373
|
+
if (message.createTableWarning !== undefined) {
|
|
9374
|
+
obj.createTableWarning = exports.WorkflowEvent_CreateTableWarning.toJSON(message.createTableWarning);
|
|
9097
9375
|
}
|
|
9098
9376
|
return obj;
|
|
9099
9377
|
},
|
|
9100
9378
|
create(base) {
|
|
9101
|
-
return exports.
|
|
9379
|
+
return exports.WorkflowEvent.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9102
9380
|
},
|
|
9103
9381
|
fromPartial(object) {
|
|
9104
9382
|
var _a, _b;
|
|
9105
|
-
const message =
|
|
9383
|
+
const message = createBaseWorkflowEvent();
|
|
9106
9384
|
message.eventId = (_a = object.eventId) !== null && _a !== void 0 ? _a : "";
|
|
9107
9385
|
message.ingestionRunId = (_b = object.ingestionRunId) !== null && _b !== void 0 ? _b : "";
|
|
9108
9386
|
message.parseStarted = (object.parseStarted !== undefined && object.parseStarted !== null)
|
|
9109
|
-
? exports.
|
|
9387
|
+
? exports.WorkflowEvent_ParseStarted.fromPartial(object.parseStarted)
|
|
9110
9388
|
: undefined;
|
|
9111
9389
|
message.parseComplete = (object.parseComplete !== undefined && object.parseComplete !== null)
|
|
9112
|
-
? exports.
|
|
9390
|
+
? exports.WorkflowEvent_ParseComplete.fromPartial(object.parseComplete)
|
|
9113
9391
|
: undefined;
|
|
9114
9392
|
message.classifyTag = (object.classifyTag !== undefined && object.classifyTag !== null)
|
|
9115
|
-
? exports.
|
|
9393
|
+
? exports.WorkflowEvent_ClassifyTag.fromPartial(object.classifyTag)
|
|
9116
9394
|
: undefined;
|
|
9117
9395
|
message.extractThread = (object.extractThread !== undefined && object.extractThread !== null)
|
|
9118
|
-
? exports.
|
|
9396
|
+
? exports.WorkflowEvent_ExtractThread.fromPartial(object.extractThread)
|
|
9119
9397
|
: undefined;
|
|
9120
9398
|
message.embedStarted = (object.embedStarted !== undefined && object.embedStarted !== null)
|
|
9121
|
-
? exports.
|
|
9399
|
+
? exports.WorkflowEvent_EmbedStarted.fromPartial(object.embedStarted)
|
|
9122
9400
|
: undefined;
|
|
9123
9401
|
message.embedComplete = (object.embedComplete !== undefined && object.embedComplete !== null)
|
|
9124
|
-
? exports.
|
|
9402
|
+
? exports.WorkflowEvent_EmbedComplete.fromPartial(object.embedComplete)
|
|
9125
9403
|
: undefined;
|
|
9126
9404
|
message.reconcileMatch = (object.reconcileMatch !== undefined && object.reconcileMatch !== null)
|
|
9127
|
-
? exports.
|
|
9405
|
+
? exports.WorkflowEvent_ReconcileMatch.fromPartial(object.reconcileMatch)
|
|
9128
9406
|
: undefined;
|
|
9129
9407
|
message.diffDecision = (object.diffDecision !== undefined && object.diffDecision !== null)
|
|
9130
|
-
? exports.
|
|
9408
|
+
? exports.WorkflowEvent_DiffDecision.fromPartial(object.diffDecision)
|
|
9409
|
+
: undefined;
|
|
9410
|
+
message.workflowComplete = (object.workflowComplete !== undefined && object.workflowComplete !== null)
|
|
9411
|
+
? exports.WorkflowEvent_WorkflowComplete.fromPartial(object.workflowComplete)
|
|
9412
|
+
: undefined;
|
|
9413
|
+
message.workflowFailed = (object.workflowFailed !== undefined && object.workflowFailed !== null)
|
|
9414
|
+
? exports.WorkflowEvent_WorkflowFailed.fromPartial(object.workflowFailed)
|
|
9131
9415
|
: undefined;
|
|
9132
|
-
message.
|
|
9133
|
-
? exports.
|
|
9416
|
+
message.createThreadStarted = (object.createThreadStarted !== undefined && object.createThreadStarted !== null)
|
|
9417
|
+
? exports.WorkflowEvent_CreateThreadStarted.fromPartial(object.createThreadStarted)
|
|
9134
9418
|
: undefined;
|
|
9135
|
-
message.
|
|
9136
|
-
|
|
9419
|
+
message.createThreadCandidate =
|
|
9420
|
+
(object.createThreadCandidate !== undefined && object.createThreadCandidate !== null)
|
|
9421
|
+
? exports.WorkflowEvent_CreateThreadCandidate.fromPartial(object.createThreadCandidate)
|
|
9422
|
+
: undefined;
|
|
9423
|
+
message.createThreadComplete = (object.createThreadComplete !== undefined && object.createThreadComplete !== null)
|
|
9424
|
+
? exports.WorkflowEvent_CreateThreadComplete.fromPartial(object.createThreadComplete)
|
|
9137
9425
|
: undefined;
|
|
9138
|
-
message.
|
|
9139
|
-
? exports.
|
|
9426
|
+
message.createTableStarted = (object.createTableStarted !== undefined && object.createTableStarted !== null)
|
|
9427
|
+
? exports.WorkflowEvent_CreateTableStarted.fromPartial(object.createTableStarted)
|
|
9140
9428
|
: undefined;
|
|
9141
|
-
message.
|
|
9142
|
-
? exports.
|
|
9429
|
+
message.createTableComplete = (object.createTableComplete !== undefined && object.createTableComplete !== null)
|
|
9430
|
+
? exports.WorkflowEvent_CreateTableComplete.fromPartial(object.createTableComplete)
|
|
9143
9431
|
: undefined;
|
|
9144
|
-
message.
|
|
9145
|
-
? exports.
|
|
9432
|
+
message.createTableWarning = (object.createTableWarning !== undefined && object.createTableWarning !== null)
|
|
9433
|
+
? exports.WorkflowEvent_CreateTableWarning.fromPartial(object.createTableWarning)
|
|
9146
9434
|
: undefined;
|
|
9147
9435
|
return message;
|
|
9148
9436
|
},
|
|
9149
9437
|
};
|
|
9150
|
-
function
|
|
9438
|
+
function createBaseWorkflowEvent_ParseStarted() {
|
|
9151
9439
|
return { filename: "", mime: "" };
|
|
9152
9440
|
}
|
|
9153
|
-
exports.
|
|
9441
|
+
exports.WorkflowEvent_ParseStarted = {
|
|
9154
9442
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9155
9443
|
if (message.filename !== "") {
|
|
9156
9444
|
writer.uint32(10).string(message.filename);
|
|
@@ -9163,7 +9451,7 @@ exports.PipelineEvent_ParseStarted = {
|
|
|
9163
9451
|
decode(input, length) {
|
|
9164
9452
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9165
9453
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9166
|
-
const message =
|
|
9454
|
+
const message = createBaseWorkflowEvent_ParseStarted();
|
|
9167
9455
|
while (reader.pos < end) {
|
|
9168
9456
|
const tag = reader.uint32();
|
|
9169
9457
|
switch (tag >>> 3) {
|
|
@@ -9206,20 +9494,20 @@ exports.PipelineEvent_ParseStarted = {
|
|
|
9206
9494
|
return obj;
|
|
9207
9495
|
},
|
|
9208
9496
|
create(base) {
|
|
9209
|
-
return exports.
|
|
9497
|
+
return exports.WorkflowEvent_ParseStarted.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9210
9498
|
},
|
|
9211
9499
|
fromPartial(object) {
|
|
9212
9500
|
var _a, _b;
|
|
9213
|
-
const message =
|
|
9501
|
+
const message = createBaseWorkflowEvent_ParseStarted();
|
|
9214
9502
|
message.filename = (_a = object.filename) !== null && _a !== void 0 ? _a : "";
|
|
9215
9503
|
message.mime = (_b = object.mime) !== null && _b !== void 0 ? _b : "";
|
|
9216
9504
|
return message;
|
|
9217
9505
|
},
|
|
9218
9506
|
};
|
|
9219
|
-
function
|
|
9507
|
+
function createBaseWorkflowEvent_ParseComplete() {
|
|
9220
9508
|
return { pageCount: 0, charCount: 0 };
|
|
9221
9509
|
}
|
|
9222
|
-
exports.
|
|
9510
|
+
exports.WorkflowEvent_ParseComplete = {
|
|
9223
9511
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9224
9512
|
if (message.pageCount !== 0) {
|
|
9225
9513
|
writer.uint32(8).int32(message.pageCount);
|
|
@@ -9232,7 +9520,7 @@ exports.PipelineEvent_ParseComplete = {
|
|
|
9232
9520
|
decode(input, length) {
|
|
9233
9521
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9234
9522
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9235
|
-
const message =
|
|
9523
|
+
const message = createBaseWorkflowEvent_ParseComplete();
|
|
9236
9524
|
while (reader.pos < end) {
|
|
9237
9525
|
const tag = reader.uint32();
|
|
9238
9526
|
switch (tag >>> 3) {
|
|
@@ -9283,20 +9571,20 @@ exports.PipelineEvent_ParseComplete = {
|
|
|
9283
9571
|
return obj;
|
|
9284
9572
|
},
|
|
9285
9573
|
create(base) {
|
|
9286
|
-
return exports.
|
|
9574
|
+
return exports.WorkflowEvent_ParseComplete.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9287
9575
|
},
|
|
9288
9576
|
fromPartial(object) {
|
|
9289
9577
|
var _a, _b;
|
|
9290
|
-
const message =
|
|
9578
|
+
const message = createBaseWorkflowEvent_ParseComplete();
|
|
9291
9579
|
message.pageCount = (_a = object.pageCount) !== null && _a !== void 0 ? _a : 0;
|
|
9292
9580
|
message.charCount = (_b = object.charCount) !== null && _b !== void 0 ? _b : 0;
|
|
9293
9581
|
return message;
|
|
9294
9582
|
},
|
|
9295
9583
|
};
|
|
9296
|
-
function
|
|
9584
|
+
function createBaseWorkflowEvent_ClassifyTag() {
|
|
9297
9585
|
return { tag: "", confidence: 0 };
|
|
9298
9586
|
}
|
|
9299
|
-
exports.
|
|
9587
|
+
exports.WorkflowEvent_ClassifyTag = {
|
|
9300
9588
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9301
9589
|
if (message.tag !== "") {
|
|
9302
9590
|
writer.uint32(10).string(message.tag);
|
|
@@ -9309,7 +9597,7 @@ exports.PipelineEvent_ClassifyTag = {
|
|
|
9309
9597
|
decode(input, length) {
|
|
9310
9598
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9311
9599
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9312
|
-
const message =
|
|
9600
|
+
const message = createBaseWorkflowEvent_ClassifyTag();
|
|
9313
9601
|
while (reader.pos < end) {
|
|
9314
9602
|
const tag = reader.uint32();
|
|
9315
9603
|
switch (tag >>> 3) {
|
|
@@ -9352,20 +9640,224 @@ exports.PipelineEvent_ClassifyTag = {
|
|
|
9352
9640
|
return obj;
|
|
9353
9641
|
},
|
|
9354
9642
|
create(base) {
|
|
9355
|
-
return exports.
|
|
9643
|
+
return exports.WorkflowEvent_ClassifyTag.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9356
9644
|
},
|
|
9357
9645
|
fromPartial(object) {
|
|
9358
9646
|
var _a, _b;
|
|
9359
|
-
const message =
|
|
9647
|
+
const message = createBaseWorkflowEvent_ClassifyTag();
|
|
9360
9648
|
message.tag = (_a = object.tag) !== null && _a !== void 0 ? _a : "";
|
|
9361
9649
|
message.confidence = (_b = object.confidence) !== null && _b !== void 0 ? _b : 0;
|
|
9362
9650
|
return message;
|
|
9363
9651
|
},
|
|
9364
9652
|
};
|
|
9365
|
-
function
|
|
9653
|
+
function createBaseWorkflowEvent_CreateTableStarted() {
|
|
9654
|
+
return { blockCount: 0 };
|
|
9655
|
+
}
|
|
9656
|
+
exports.WorkflowEvent_CreateTableStarted = {
|
|
9657
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9658
|
+
if (message.blockCount !== 0) {
|
|
9659
|
+
writer.uint32(8).int32(message.blockCount);
|
|
9660
|
+
}
|
|
9661
|
+
return writer;
|
|
9662
|
+
},
|
|
9663
|
+
decode(input, length) {
|
|
9664
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9665
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9666
|
+
const message = createBaseWorkflowEvent_CreateTableStarted();
|
|
9667
|
+
while (reader.pos < end) {
|
|
9668
|
+
const tag = reader.uint32();
|
|
9669
|
+
switch (tag >>> 3) {
|
|
9670
|
+
case 1: {
|
|
9671
|
+
if (tag !== 8) {
|
|
9672
|
+
break;
|
|
9673
|
+
}
|
|
9674
|
+
message.blockCount = reader.int32();
|
|
9675
|
+
continue;
|
|
9676
|
+
}
|
|
9677
|
+
}
|
|
9678
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9679
|
+
break;
|
|
9680
|
+
}
|
|
9681
|
+
reader.skip(tag & 7);
|
|
9682
|
+
}
|
|
9683
|
+
return message;
|
|
9684
|
+
},
|
|
9685
|
+
fromJSON(object) {
|
|
9686
|
+
return {
|
|
9687
|
+
blockCount: isSet(object.blockCount)
|
|
9688
|
+
? globalThis.Number(object.blockCount)
|
|
9689
|
+
: isSet(object.block_count)
|
|
9690
|
+
? globalThis.Number(object.block_count)
|
|
9691
|
+
: 0,
|
|
9692
|
+
};
|
|
9693
|
+
},
|
|
9694
|
+
toJSON(message) {
|
|
9695
|
+
const obj = {};
|
|
9696
|
+
if (message.blockCount !== 0) {
|
|
9697
|
+
obj.blockCount = Math.round(message.blockCount);
|
|
9698
|
+
}
|
|
9699
|
+
return obj;
|
|
9700
|
+
},
|
|
9701
|
+
create(base) {
|
|
9702
|
+
return exports.WorkflowEvent_CreateTableStarted.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9703
|
+
},
|
|
9704
|
+
fromPartial(object) {
|
|
9705
|
+
var _a;
|
|
9706
|
+
const message = createBaseWorkflowEvent_CreateTableStarted();
|
|
9707
|
+
message.blockCount = (_a = object.blockCount) !== null && _a !== void 0 ? _a : 0;
|
|
9708
|
+
return message;
|
|
9709
|
+
},
|
|
9710
|
+
};
|
|
9711
|
+
function createBaseWorkflowEvent_CreateTableComplete() {
|
|
9712
|
+
return { tableCount: 0, summaryBlockCount: 0 };
|
|
9713
|
+
}
|
|
9714
|
+
exports.WorkflowEvent_CreateTableComplete = {
|
|
9715
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9716
|
+
if (message.tableCount !== 0) {
|
|
9717
|
+
writer.uint32(8).int32(message.tableCount);
|
|
9718
|
+
}
|
|
9719
|
+
if (message.summaryBlockCount !== 0) {
|
|
9720
|
+
writer.uint32(16).int32(message.summaryBlockCount);
|
|
9721
|
+
}
|
|
9722
|
+
return writer;
|
|
9723
|
+
},
|
|
9724
|
+
decode(input, length) {
|
|
9725
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9726
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9727
|
+
const message = createBaseWorkflowEvent_CreateTableComplete();
|
|
9728
|
+
while (reader.pos < end) {
|
|
9729
|
+
const tag = reader.uint32();
|
|
9730
|
+
switch (tag >>> 3) {
|
|
9731
|
+
case 1: {
|
|
9732
|
+
if (tag !== 8) {
|
|
9733
|
+
break;
|
|
9734
|
+
}
|
|
9735
|
+
message.tableCount = reader.int32();
|
|
9736
|
+
continue;
|
|
9737
|
+
}
|
|
9738
|
+
case 2: {
|
|
9739
|
+
if (tag !== 16) {
|
|
9740
|
+
break;
|
|
9741
|
+
}
|
|
9742
|
+
message.summaryBlockCount = reader.int32();
|
|
9743
|
+
continue;
|
|
9744
|
+
}
|
|
9745
|
+
}
|
|
9746
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9747
|
+
break;
|
|
9748
|
+
}
|
|
9749
|
+
reader.skip(tag & 7);
|
|
9750
|
+
}
|
|
9751
|
+
return message;
|
|
9752
|
+
},
|
|
9753
|
+
fromJSON(object) {
|
|
9754
|
+
return {
|
|
9755
|
+
tableCount: isSet(object.tableCount)
|
|
9756
|
+
? globalThis.Number(object.tableCount)
|
|
9757
|
+
: isSet(object.table_count)
|
|
9758
|
+
? globalThis.Number(object.table_count)
|
|
9759
|
+
: 0,
|
|
9760
|
+
summaryBlockCount: isSet(object.summaryBlockCount)
|
|
9761
|
+
? globalThis.Number(object.summaryBlockCount)
|
|
9762
|
+
: isSet(object.summary_block_count)
|
|
9763
|
+
? globalThis.Number(object.summary_block_count)
|
|
9764
|
+
: 0,
|
|
9765
|
+
};
|
|
9766
|
+
},
|
|
9767
|
+
toJSON(message) {
|
|
9768
|
+
const obj = {};
|
|
9769
|
+
if (message.tableCount !== 0) {
|
|
9770
|
+
obj.tableCount = Math.round(message.tableCount);
|
|
9771
|
+
}
|
|
9772
|
+
if (message.summaryBlockCount !== 0) {
|
|
9773
|
+
obj.summaryBlockCount = Math.round(message.summaryBlockCount);
|
|
9774
|
+
}
|
|
9775
|
+
return obj;
|
|
9776
|
+
},
|
|
9777
|
+
create(base) {
|
|
9778
|
+
return exports.WorkflowEvent_CreateTableComplete.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9779
|
+
},
|
|
9780
|
+
fromPartial(object) {
|
|
9781
|
+
var _a, _b;
|
|
9782
|
+
const message = createBaseWorkflowEvent_CreateTableComplete();
|
|
9783
|
+
message.tableCount = (_a = object.tableCount) !== null && _a !== void 0 ? _a : 0;
|
|
9784
|
+
message.summaryBlockCount = (_b = object.summaryBlockCount) !== null && _b !== void 0 ? _b : 0;
|
|
9785
|
+
return message;
|
|
9786
|
+
},
|
|
9787
|
+
};
|
|
9788
|
+
function createBaseWorkflowEvent_CreateTableWarning() {
|
|
9789
|
+
return { code: "", message: "" };
|
|
9790
|
+
}
|
|
9791
|
+
exports.WorkflowEvent_CreateTableWarning = {
|
|
9792
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9793
|
+
if (message.code !== "") {
|
|
9794
|
+
writer.uint32(10).string(message.code);
|
|
9795
|
+
}
|
|
9796
|
+
if (message.message !== "") {
|
|
9797
|
+
writer.uint32(18).string(message.message);
|
|
9798
|
+
}
|
|
9799
|
+
return writer;
|
|
9800
|
+
},
|
|
9801
|
+
decode(input, length) {
|
|
9802
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9803
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9804
|
+
const message = createBaseWorkflowEvent_CreateTableWarning();
|
|
9805
|
+
while (reader.pos < end) {
|
|
9806
|
+
const tag = reader.uint32();
|
|
9807
|
+
switch (tag >>> 3) {
|
|
9808
|
+
case 1: {
|
|
9809
|
+
if (tag !== 10) {
|
|
9810
|
+
break;
|
|
9811
|
+
}
|
|
9812
|
+
message.code = reader.string();
|
|
9813
|
+
continue;
|
|
9814
|
+
}
|
|
9815
|
+
case 2: {
|
|
9816
|
+
if (tag !== 18) {
|
|
9817
|
+
break;
|
|
9818
|
+
}
|
|
9819
|
+
message.message = reader.string();
|
|
9820
|
+
continue;
|
|
9821
|
+
}
|
|
9822
|
+
}
|
|
9823
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9824
|
+
break;
|
|
9825
|
+
}
|
|
9826
|
+
reader.skip(tag & 7);
|
|
9827
|
+
}
|
|
9828
|
+
return message;
|
|
9829
|
+
},
|
|
9830
|
+
fromJSON(object) {
|
|
9831
|
+
return {
|
|
9832
|
+
code: isSet(object.code) ? globalThis.String(object.code) : "",
|
|
9833
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
9834
|
+
};
|
|
9835
|
+
},
|
|
9836
|
+
toJSON(message) {
|
|
9837
|
+
const obj = {};
|
|
9838
|
+
if (message.code !== "") {
|
|
9839
|
+
obj.code = message.code;
|
|
9840
|
+
}
|
|
9841
|
+
if (message.message !== "") {
|
|
9842
|
+
obj.message = message.message;
|
|
9843
|
+
}
|
|
9844
|
+
return obj;
|
|
9845
|
+
},
|
|
9846
|
+
create(base) {
|
|
9847
|
+
return exports.WorkflowEvent_CreateTableWarning.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9848
|
+
},
|
|
9849
|
+
fromPartial(object) {
|
|
9850
|
+
var _a, _b;
|
|
9851
|
+
const message = createBaseWorkflowEvent_CreateTableWarning();
|
|
9852
|
+
message.code = (_a = object.code) !== null && _a !== void 0 ? _a : "";
|
|
9853
|
+
message.message = (_b = object.message) !== null && _b !== void 0 ? _b : "";
|
|
9854
|
+
return message;
|
|
9855
|
+
},
|
|
9856
|
+
};
|
|
9857
|
+
function createBaseWorkflowEvent_CreateThreadStarted() {
|
|
9366
9858
|
return { blockCount: 0, loopCount: 0 };
|
|
9367
9859
|
}
|
|
9368
|
-
exports.
|
|
9860
|
+
exports.WorkflowEvent_CreateThreadStarted = {
|
|
9369
9861
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9370
9862
|
if (message.blockCount !== 0) {
|
|
9371
9863
|
writer.uint32(8).int32(message.blockCount);
|
|
@@ -9378,7 +9870,7 @@ exports.PipelineEvent_RefineStarted = {
|
|
|
9378
9870
|
decode(input, length) {
|
|
9379
9871
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9380
9872
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9381
|
-
const message =
|
|
9873
|
+
const message = createBaseWorkflowEvent_CreateThreadStarted();
|
|
9382
9874
|
while (reader.pos < end) {
|
|
9383
9875
|
const tag = reader.uint32();
|
|
9384
9876
|
switch (tag >>> 3) {
|
|
@@ -9429,20 +9921,20 @@ exports.PipelineEvent_RefineStarted = {
|
|
|
9429
9921
|
return obj;
|
|
9430
9922
|
},
|
|
9431
9923
|
create(base) {
|
|
9432
|
-
return exports.
|
|
9924
|
+
return exports.WorkflowEvent_CreateThreadStarted.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9433
9925
|
},
|
|
9434
9926
|
fromPartial(object) {
|
|
9435
9927
|
var _a, _b;
|
|
9436
|
-
const message =
|
|
9928
|
+
const message = createBaseWorkflowEvent_CreateThreadStarted();
|
|
9437
9929
|
message.blockCount = (_a = object.blockCount) !== null && _a !== void 0 ? _a : 0;
|
|
9438
9930
|
message.loopCount = (_b = object.loopCount) !== null && _b !== void 0 ? _b : 0;
|
|
9439
9931
|
return message;
|
|
9440
9932
|
},
|
|
9441
9933
|
};
|
|
9442
|
-
function
|
|
9934
|
+
function createBaseWorkflowEvent_CreateThreadCandidate() {
|
|
9443
9935
|
return { text: "", sourceLocation: undefined, loopIndex: 0 };
|
|
9444
9936
|
}
|
|
9445
|
-
exports.
|
|
9937
|
+
exports.WorkflowEvent_CreateThreadCandidate = {
|
|
9446
9938
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9447
9939
|
if (message.text !== "") {
|
|
9448
9940
|
writer.uint32(10).string(message.text);
|
|
@@ -9458,7 +9950,7 @@ exports.PipelineEvent_RefineThread = {
|
|
|
9458
9950
|
decode(input, length) {
|
|
9459
9951
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9460
9952
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9461
|
-
const message =
|
|
9953
|
+
const message = createBaseWorkflowEvent_CreateThreadCandidate();
|
|
9462
9954
|
while (reader.pos < end) {
|
|
9463
9955
|
const tag = reader.uint32();
|
|
9464
9956
|
switch (tag >>> 3) {
|
|
@@ -9520,11 +10012,11 @@ exports.PipelineEvent_RefineThread = {
|
|
|
9520
10012
|
return obj;
|
|
9521
10013
|
},
|
|
9522
10014
|
create(base) {
|
|
9523
|
-
return exports.
|
|
10015
|
+
return exports.WorkflowEvent_CreateThreadCandidate.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9524
10016
|
},
|
|
9525
10017
|
fromPartial(object) {
|
|
9526
10018
|
var _a, _b;
|
|
9527
|
-
const message =
|
|
10019
|
+
const message = createBaseWorkflowEvent_CreateThreadCandidate();
|
|
9528
10020
|
message.text = (_a = object.text) !== null && _a !== void 0 ? _a : "";
|
|
9529
10021
|
message.sourceLocation = (object.sourceLocation !== undefined && object.sourceLocation !== null)
|
|
9530
10022
|
? exports.SourceLocation.fromPartial(object.sourceLocation)
|
|
@@ -9533,10 +10025,10 @@ exports.PipelineEvent_RefineThread = {
|
|
|
9533
10025
|
return message;
|
|
9534
10026
|
},
|
|
9535
10027
|
};
|
|
9536
|
-
function
|
|
10028
|
+
function createBaseWorkflowEvent_CreateThreadComplete() {
|
|
9537
10029
|
return { threadCount: 0 };
|
|
9538
10030
|
}
|
|
9539
|
-
exports.
|
|
10031
|
+
exports.WorkflowEvent_CreateThreadComplete = {
|
|
9540
10032
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9541
10033
|
if (message.threadCount !== 0) {
|
|
9542
10034
|
writer.uint32(8).int32(message.threadCount);
|
|
@@ -9546,7 +10038,7 @@ exports.PipelineEvent_RefineComplete = {
|
|
|
9546
10038
|
decode(input, length) {
|
|
9547
10039
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9548
10040
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9549
|
-
const message =
|
|
10041
|
+
const message = createBaseWorkflowEvent_CreateThreadComplete();
|
|
9550
10042
|
while (reader.pos < end) {
|
|
9551
10043
|
const tag = reader.uint32();
|
|
9552
10044
|
switch (tag >>> 3) {
|
|
@@ -9582,19 +10074,19 @@ exports.PipelineEvent_RefineComplete = {
|
|
|
9582
10074
|
return obj;
|
|
9583
10075
|
},
|
|
9584
10076
|
create(base) {
|
|
9585
|
-
return exports.
|
|
10077
|
+
return exports.WorkflowEvent_CreateThreadComplete.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9586
10078
|
},
|
|
9587
10079
|
fromPartial(object) {
|
|
9588
10080
|
var _a;
|
|
9589
|
-
const message =
|
|
10081
|
+
const message = createBaseWorkflowEvent_CreateThreadComplete();
|
|
9590
10082
|
message.threadCount = (_a = object.threadCount) !== null && _a !== void 0 ? _a : 0;
|
|
9591
10083
|
return message;
|
|
9592
10084
|
},
|
|
9593
10085
|
};
|
|
9594
|
-
function
|
|
10086
|
+
function createBaseWorkflowEvent_ExtractThread() {
|
|
9595
10087
|
return { threadId: "", text: "", entities: [], sourceLocation: undefined };
|
|
9596
10088
|
}
|
|
9597
|
-
exports.
|
|
10089
|
+
exports.WorkflowEvent_ExtractThread = {
|
|
9598
10090
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9599
10091
|
if (message.threadId !== "") {
|
|
9600
10092
|
writer.uint32(10).string(message.threadId);
|
|
@@ -9613,7 +10105,7 @@ exports.PipelineEvent_ExtractThread = {
|
|
|
9613
10105
|
decode(input, length) {
|
|
9614
10106
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9615
10107
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9616
|
-
const message =
|
|
10108
|
+
const message = createBaseWorkflowEvent_ExtractThread();
|
|
9617
10109
|
while (reader.pos < end) {
|
|
9618
10110
|
const tag = reader.uint32();
|
|
9619
10111
|
switch (tag >>> 3) {
|
|
@@ -9687,12 +10179,12 @@ exports.PipelineEvent_ExtractThread = {
|
|
|
9687
10179
|
return obj;
|
|
9688
10180
|
},
|
|
9689
10181
|
create(base) {
|
|
9690
|
-
return exports.
|
|
10182
|
+
return exports.WorkflowEvent_ExtractThread.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9691
10183
|
},
|
|
9692
10184
|
fromPartial(object) {
|
|
9693
10185
|
var _a;
|
|
9694
10186
|
var _b, _c;
|
|
9695
|
-
const message =
|
|
10187
|
+
const message = createBaseWorkflowEvent_ExtractThread();
|
|
9696
10188
|
message.threadId = (_b = object.threadId) !== null && _b !== void 0 ? _b : "";
|
|
9697
10189
|
message.text = (_c = object.text) !== null && _c !== void 0 ? _c : "";
|
|
9698
10190
|
message.entities = ((_a = object.entities) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
@@ -9702,10 +10194,10 @@ exports.PipelineEvent_ExtractThread = {
|
|
|
9702
10194
|
return message;
|
|
9703
10195
|
},
|
|
9704
10196
|
};
|
|
9705
|
-
function
|
|
10197
|
+
function createBaseWorkflowEvent_EmbedStarted() {
|
|
9706
10198
|
return { threadCount: 0 };
|
|
9707
10199
|
}
|
|
9708
|
-
exports.
|
|
10200
|
+
exports.WorkflowEvent_EmbedStarted = {
|
|
9709
10201
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9710
10202
|
if (message.threadCount !== 0) {
|
|
9711
10203
|
writer.uint32(8).int32(message.threadCount);
|
|
@@ -9715,7 +10207,7 @@ exports.PipelineEvent_EmbedStarted = {
|
|
|
9715
10207
|
decode(input, length) {
|
|
9716
10208
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9717
10209
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9718
|
-
const message =
|
|
10210
|
+
const message = createBaseWorkflowEvent_EmbedStarted();
|
|
9719
10211
|
while (reader.pos < end) {
|
|
9720
10212
|
const tag = reader.uint32();
|
|
9721
10213
|
switch (tag >>> 3) {
|
|
@@ -9751,19 +10243,19 @@ exports.PipelineEvent_EmbedStarted = {
|
|
|
9751
10243
|
return obj;
|
|
9752
10244
|
},
|
|
9753
10245
|
create(base) {
|
|
9754
|
-
return exports.
|
|
10246
|
+
return exports.WorkflowEvent_EmbedStarted.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9755
10247
|
},
|
|
9756
10248
|
fromPartial(object) {
|
|
9757
10249
|
var _a;
|
|
9758
|
-
const message =
|
|
10250
|
+
const message = createBaseWorkflowEvent_EmbedStarted();
|
|
9759
10251
|
message.threadCount = (_a = object.threadCount) !== null && _a !== void 0 ? _a : 0;
|
|
9760
10252
|
return message;
|
|
9761
10253
|
},
|
|
9762
10254
|
};
|
|
9763
|
-
function
|
|
10255
|
+
function createBaseWorkflowEvent_EmbedComplete() {
|
|
9764
10256
|
return { threadCount: 0, model: "", dimensions: 0 };
|
|
9765
10257
|
}
|
|
9766
|
-
exports.
|
|
10258
|
+
exports.WorkflowEvent_EmbedComplete = {
|
|
9767
10259
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9768
10260
|
if (message.threadCount !== 0) {
|
|
9769
10261
|
writer.uint32(8).int32(message.threadCount);
|
|
@@ -9779,7 +10271,7 @@ exports.PipelineEvent_EmbedComplete = {
|
|
|
9779
10271
|
decode(input, length) {
|
|
9780
10272
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9781
10273
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9782
|
-
const message =
|
|
10274
|
+
const message = createBaseWorkflowEvent_EmbedComplete();
|
|
9783
10275
|
while (reader.pos < end) {
|
|
9784
10276
|
const tag = reader.uint32();
|
|
9785
10277
|
switch (tag >>> 3) {
|
|
@@ -9837,21 +10329,21 @@ exports.PipelineEvent_EmbedComplete = {
|
|
|
9837
10329
|
return obj;
|
|
9838
10330
|
},
|
|
9839
10331
|
create(base) {
|
|
9840
|
-
return exports.
|
|
10332
|
+
return exports.WorkflowEvent_EmbedComplete.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9841
10333
|
},
|
|
9842
10334
|
fromPartial(object) {
|
|
9843
10335
|
var _a, _b, _c;
|
|
9844
|
-
const message =
|
|
10336
|
+
const message = createBaseWorkflowEvent_EmbedComplete();
|
|
9845
10337
|
message.threadCount = (_a = object.threadCount) !== null && _a !== void 0 ? _a : 0;
|
|
9846
10338
|
message.model = (_b = object.model) !== null && _b !== void 0 ? _b : "";
|
|
9847
10339
|
message.dimensions = (_c = object.dimensions) !== null && _c !== void 0 ? _c : 0;
|
|
9848
10340
|
return message;
|
|
9849
10341
|
},
|
|
9850
10342
|
};
|
|
9851
|
-
function
|
|
10343
|
+
function createBaseWorkflowEvent_ReconcileMatch() {
|
|
9852
10344
|
return { threadId: "", existingThreadId: "", similarity: 0 };
|
|
9853
10345
|
}
|
|
9854
|
-
exports.
|
|
10346
|
+
exports.WorkflowEvent_ReconcileMatch = {
|
|
9855
10347
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9856
10348
|
if (message.threadId !== "") {
|
|
9857
10349
|
writer.uint32(10).string(message.threadId);
|
|
@@ -9867,7 +10359,7 @@ exports.PipelineEvent_ReconcileMatch = {
|
|
|
9867
10359
|
decode(input, length) {
|
|
9868
10360
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9869
10361
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9870
|
-
const message =
|
|
10362
|
+
const message = createBaseWorkflowEvent_ReconcileMatch();
|
|
9871
10363
|
while (reader.pos < end) {
|
|
9872
10364
|
const tag = reader.uint32();
|
|
9873
10365
|
switch (tag >>> 3) {
|
|
@@ -9929,21 +10421,21 @@ exports.PipelineEvent_ReconcileMatch = {
|
|
|
9929
10421
|
return obj;
|
|
9930
10422
|
},
|
|
9931
10423
|
create(base) {
|
|
9932
|
-
return exports.
|
|
10424
|
+
return exports.WorkflowEvent_ReconcileMatch.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
9933
10425
|
},
|
|
9934
10426
|
fromPartial(object) {
|
|
9935
10427
|
var _a, _b, _c;
|
|
9936
|
-
const message =
|
|
10428
|
+
const message = createBaseWorkflowEvent_ReconcileMatch();
|
|
9937
10429
|
message.threadId = (_a = object.threadId) !== null && _a !== void 0 ? _a : "";
|
|
9938
10430
|
message.existingThreadId = (_b = object.existingThreadId) !== null && _b !== void 0 ? _b : "";
|
|
9939
10431
|
message.similarity = (_c = object.similarity) !== null && _c !== void 0 ? _c : 0;
|
|
9940
10432
|
return message;
|
|
9941
10433
|
},
|
|
9942
10434
|
};
|
|
9943
|
-
function
|
|
10435
|
+
function createBaseWorkflowEvent_DiffDecision() {
|
|
9944
10436
|
return { threadId: "", decision: 0, supersededThreadIds: [] };
|
|
9945
10437
|
}
|
|
9946
|
-
exports.
|
|
10438
|
+
exports.WorkflowEvent_DiffDecision = {
|
|
9947
10439
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9948
10440
|
if (message.threadId !== "") {
|
|
9949
10441
|
writer.uint32(10).string(message.threadId);
|
|
@@ -9959,7 +10451,7 @@ exports.PipelineEvent_DiffDecision = {
|
|
|
9959
10451
|
decode(input, length) {
|
|
9960
10452
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9961
10453
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9962
|
-
const message =
|
|
10454
|
+
const message = createBaseWorkflowEvent_DiffDecision();
|
|
9963
10455
|
while (reader.pos < end) {
|
|
9964
10456
|
const tag = reader.uint32();
|
|
9965
10457
|
switch (tag >>> 3) {
|
|
@@ -10022,22 +10514,22 @@ exports.PipelineEvent_DiffDecision = {
|
|
|
10022
10514
|
return obj;
|
|
10023
10515
|
},
|
|
10024
10516
|
create(base) {
|
|
10025
|
-
return exports.
|
|
10517
|
+
return exports.WorkflowEvent_DiffDecision.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
10026
10518
|
},
|
|
10027
10519
|
fromPartial(object) {
|
|
10028
10520
|
var _a;
|
|
10029
10521
|
var _b, _c;
|
|
10030
|
-
const message =
|
|
10522
|
+
const message = createBaseWorkflowEvent_DiffDecision();
|
|
10031
10523
|
message.threadId = (_b = object.threadId) !== null && _b !== void 0 ? _b : "";
|
|
10032
10524
|
message.decision = (_c = object.decision) !== null && _c !== void 0 ? _c : 0;
|
|
10033
10525
|
message.supersededThreadIds = ((_a = object.supersededThreadIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
10034
10526
|
return message;
|
|
10035
10527
|
},
|
|
10036
10528
|
};
|
|
10037
|
-
function
|
|
10529
|
+
function createBaseWorkflowEvent_WorkflowComplete() {
|
|
10038
10530
|
return { threadCount: 0, pendingReviewCount: 0 };
|
|
10039
10531
|
}
|
|
10040
|
-
exports.
|
|
10532
|
+
exports.WorkflowEvent_WorkflowComplete = {
|
|
10041
10533
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
10042
10534
|
if (message.threadCount !== 0) {
|
|
10043
10535
|
writer.uint32(8).int32(message.threadCount);
|
|
@@ -10050,7 +10542,7 @@ exports.PipelineEvent_PipelineComplete = {
|
|
|
10050
10542
|
decode(input, length) {
|
|
10051
10543
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
10052
10544
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
10053
|
-
const message =
|
|
10545
|
+
const message = createBaseWorkflowEvent_WorkflowComplete();
|
|
10054
10546
|
while (reader.pos < end) {
|
|
10055
10547
|
const tag = reader.uint32();
|
|
10056
10548
|
switch (tag >>> 3) {
|
|
@@ -10101,20 +10593,20 @@ exports.PipelineEvent_PipelineComplete = {
|
|
|
10101
10593
|
return obj;
|
|
10102
10594
|
},
|
|
10103
10595
|
create(base) {
|
|
10104
|
-
return exports.
|
|
10596
|
+
return exports.WorkflowEvent_WorkflowComplete.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
10105
10597
|
},
|
|
10106
10598
|
fromPartial(object) {
|
|
10107
10599
|
var _a, _b;
|
|
10108
|
-
const message =
|
|
10600
|
+
const message = createBaseWorkflowEvent_WorkflowComplete();
|
|
10109
10601
|
message.threadCount = (_a = object.threadCount) !== null && _a !== void 0 ? _a : 0;
|
|
10110
10602
|
message.pendingReviewCount = (_b = object.pendingReviewCount) !== null && _b !== void 0 ? _b : 0;
|
|
10111
10603
|
return message;
|
|
10112
10604
|
},
|
|
10113
10605
|
};
|
|
10114
|
-
function
|
|
10606
|
+
function createBaseWorkflowEvent_WorkflowFailed() {
|
|
10115
10607
|
return { error: "", code: "" };
|
|
10116
10608
|
}
|
|
10117
|
-
exports.
|
|
10609
|
+
exports.WorkflowEvent_WorkflowFailed = {
|
|
10118
10610
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
10119
10611
|
if (message.error !== "") {
|
|
10120
10612
|
writer.uint32(10).string(message.error);
|
|
@@ -10127,7 +10619,7 @@ exports.PipelineEvent_PipelineFailed = {
|
|
|
10127
10619
|
decode(input, length) {
|
|
10128
10620
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
10129
10621
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
10130
|
-
const message =
|
|
10622
|
+
const message = createBaseWorkflowEvent_WorkflowFailed();
|
|
10131
10623
|
while (reader.pos < end) {
|
|
10132
10624
|
const tag = reader.uint32();
|
|
10133
10625
|
switch (tag >>> 3) {
|
|
@@ -10170,11 +10662,11 @@ exports.PipelineEvent_PipelineFailed = {
|
|
|
10170
10662
|
return obj;
|
|
10171
10663
|
},
|
|
10172
10664
|
create(base) {
|
|
10173
|
-
return exports.
|
|
10665
|
+
return exports.WorkflowEvent_WorkflowFailed.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
10174
10666
|
},
|
|
10175
10667
|
fromPartial(object) {
|
|
10176
10668
|
var _a, _b;
|
|
10177
|
-
const message =
|
|
10669
|
+
const message = createBaseWorkflowEvent_WorkflowFailed();
|
|
10178
10670
|
message.error = (_a = object.error) !== null && _a !== void 0 ? _a : "";
|
|
10179
10671
|
message.code = (_b = object.code) !== null && _b !== void 0 ? _b : "";
|
|
10180
10672
|
return message;
|