weave-typescript 0.50.0 → 0.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +23 -0
- package/dist/index.js +35 -1
- package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +13 -14
- package/dist/weaveapi/consolidation/v1/consolidation.pb.js +62 -74
- package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +82 -50
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +708 -216
- package/dist/weaveapi/ingestion/v1/service.pb.d.ts +50 -7
- package/dist/weaveapi/ingestion/v1/service.pb.js +279 -16
- package/dist/weaveapi/ingestion/v1/table.pb.d.ts +121 -0
- package/dist/weaveapi/ingestion/v1/table.pb.js +1478 -0
- package/dist/weaveapi/model/v1/model.pb.d.ts +3 -3
- package/dist/weaveapi/model/v1/model.pb.js +33 -33
- package/dist/weaveapi/model/v1/service.pb.d.ts +3 -3
- package/dist/weaveapi/model/v1/service.pb.js +33 -33
- package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +123 -0
- package/dist/weaveapi/retrieval/v1/retrieval.pb.js +2096 -113
- package/dist/weaveapi/retrieval/v1/service.pb.d.ts +29 -1
- package/dist/weaveapi/retrieval/v1/service.pb.js +142 -0
- package/dist/weavesql/weavedb/consolidation_sql.d.ts +33 -33
- package/dist/weavesql/weavedb/consolidation_sql.js +56 -56
- package/dist/weavesql/weavedb/document_table_sql.d.ts +533 -0
- package/dist/weavesql/weavedb/document_table_sql.js +1352 -0
- package/dist/weavesql/weavedb/ingestion_sql.d.ts +67 -34
- package/dist/weavesql/weavedb/ingestion_sql.js +169 -73
- package/dist/weavesql/weavedb/retrieval_sql.d.ts +11 -11
- package/dist/weavesql/weavedb/retrieval_sql.js +13 -13
- package/package.json +1 -1
|
@@ -12,7 +12,8 @@ export declare enum DocumentStatus {
|
|
|
12
12
|
DOCUMENT_STATUS_COMMITTED = 8,
|
|
13
13
|
DOCUMENT_STATUS_FAILED = 9,
|
|
14
14
|
DOCUMENT_STATUS_STALE = 10,
|
|
15
|
-
|
|
15
|
+
DOCUMENT_STATUS_CREATING_TABLES = 11,
|
|
16
|
+
DOCUMENT_STATUS_CREATING_THREADS = 12,
|
|
16
17
|
UNRECOGNIZED = -1
|
|
17
18
|
}
|
|
18
19
|
export declare function documentStatusFromJSON(object: any): DocumentStatus;
|
|
@@ -38,7 +39,8 @@ export declare enum IngestionRunStatus {
|
|
|
38
39
|
INGESTION_RUN_STATUS_REVIEW_PENDING = 8,
|
|
39
40
|
INGESTION_RUN_STATUS_COMMITTED = 9,
|
|
40
41
|
INGESTION_RUN_STATUS_FAILED = 10,
|
|
41
|
-
|
|
42
|
+
INGESTION_RUN_STATUS_CREATING_TABLES = 11,
|
|
43
|
+
INGESTION_RUN_STATUS_CREATING_THREADS = 12,
|
|
42
44
|
UNRECOGNIZED = -1
|
|
43
45
|
}
|
|
44
46
|
export declare function ingestionRunStatusFromJSON(object: any): IngestionRunStatus;
|
|
@@ -306,7 +308,7 @@ export interface IngestionRun {
|
|
|
306
308
|
stageModelSettings: {
|
|
307
309
|
[key: string]: any;
|
|
308
310
|
} | undefined;
|
|
309
|
-
|
|
311
|
+
createThreadLoopCount: number;
|
|
310
312
|
}
|
|
311
313
|
export interface IngestionHistoryEntry {
|
|
312
314
|
ingestionRunId: string;
|
|
@@ -338,7 +340,7 @@ export interface UploadFileResponse {
|
|
|
338
340
|
document: Document | undefined;
|
|
339
341
|
ingestionRun: IngestionRun | undefined;
|
|
340
342
|
}
|
|
341
|
-
export interface
|
|
343
|
+
export interface StreamWorkflowRequest {
|
|
342
344
|
organizationId: string;
|
|
343
345
|
ingestionRunId: string;
|
|
344
346
|
}
|
|
@@ -385,6 +387,17 @@ export interface GetDocumentDetailRequest {
|
|
|
385
387
|
export interface GetDocumentDetailResponse {
|
|
386
388
|
detail: DocumentDetail | undefined;
|
|
387
389
|
}
|
|
390
|
+
export interface ListDocumentThreadsRequest {
|
|
391
|
+
organizationId: string;
|
|
392
|
+
documentId: string;
|
|
393
|
+
actingUserId: string;
|
|
394
|
+
pageSize: number;
|
|
395
|
+
pageToken: string;
|
|
396
|
+
}
|
|
397
|
+
export interface ListDocumentThreadsResponse {
|
|
398
|
+
threads: Thread[];
|
|
399
|
+
nextPageToken: string;
|
|
400
|
+
}
|
|
388
401
|
export interface GetDocumentSourceRequest {
|
|
389
402
|
organizationId: string;
|
|
390
403
|
documentId: string;
|
|
@@ -563,8 +576,8 @@ export interface BulkRejectThreadsRequest {
|
|
|
563
576
|
export interface BulkRejectThreadsResponse {
|
|
564
577
|
threads: Thread[];
|
|
565
578
|
}
|
|
566
|
-
export interface
|
|
567
|
-
event:
|
|
579
|
+
export interface StreamWorkflowResponse {
|
|
580
|
+
event: WorkflowEvent | undefined;
|
|
568
581
|
}
|
|
569
582
|
export interface GetIngestionRunResponse {
|
|
570
583
|
ingestionRun: IngestionRun | undefined;
|
|
@@ -581,76 +594,90 @@ export interface ApproveThreadResponse {
|
|
|
581
594
|
export interface RejectThreadResponse {
|
|
582
595
|
thread: Thread | undefined;
|
|
583
596
|
}
|
|
584
|
-
export interface
|
|
597
|
+
export interface WorkflowEvent {
|
|
585
598
|
eventId: string;
|
|
586
599
|
ingestionRunId: string;
|
|
587
|
-
parseStarted?:
|
|
588
|
-
parseComplete?:
|
|
589
|
-
classifyTag?:
|
|
590
|
-
extractThread?:
|
|
591
|
-
embedStarted?:
|
|
592
|
-
embedComplete?:
|
|
593
|
-
reconcileMatch?:
|
|
594
|
-
diffDecision?:
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
600
|
+
parseStarted?: WorkflowEvent_ParseStarted | undefined;
|
|
601
|
+
parseComplete?: WorkflowEvent_ParseComplete | undefined;
|
|
602
|
+
classifyTag?: WorkflowEvent_ClassifyTag | undefined;
|
|
603
|
+
extractThread?: WorkflowEvent_ExtractThread | undefined;
|
|
604
|
+
embedStarted?: WorkflowEvent_EmbedStarted | undefined;
|
|
605
|
+
embedComplete?: WorkflowEvent_EmbedComplete | undefined;
|
|
606
|
+
reconcileMatch?: WorkflowEvent_ReconcileMatch | undefined;
|
|
607
|
+
diffDecision?: WorkflowEvent_DiffDecision | undefined;
|
|
608
|
+
workflowComplete?: WorkflowEvent_WorkflowComplete | undefined;
|
|
609
|
+
workflowFailed?: WorkflowEvent_WorkflowFailed | undefined;
|
|
610
|
+
createThreadStarted?: WorkflowEvent_CreateThreadStarted | undefined;
|
|
611
|
+
createThreadCandidate?: WorkflowEvent_CreateThreadCandidate | undefined;
|
|
612
|
+
createThreadComplete?: WorkflowEvent_CreateThreadComplete | undefined;
|
|
613
|
+
createTableStarted?: WorkflowEvent_CreateTableStarted | undefined;
|
|
614
|
+
createTableComplete?: WorkflowEvent_CreateTableComplete | undefined;
|
|
615
|
+
createTableWarning?: WorkflowEvent_CreateTableWarning | undefined;
|
|
616
|
+
}
|
|
617
|
+
export interface WorkflowEvent_ParseStarted {
|
|
602
618
|
filename: string;
|
|
603
619
|
mime: string;
|
|
604
620
|
}
|
|
605
|
-
export interface
|
|
621
|
+
export interface WorkflowEvent_ParseComplete {
|
|
606
622
|
pageCount: number;
|
|
607
623
|
charCount: number;
|
|
608
624
|
}
|
|
609
|
-
export interface
|
|
625
|
+
export interface WorkflowEvent_ClassifyTag {
|
|
610
626
|
tag: string;
|
|
611
627
|
confidence: number;
|
|
612
628
|
}
|
|
613
|
-
export interface
|
|
629
|
+
export interface WorkflowEvent_CreateTableStarted {
|
|
630
|
+
blockCount: number;
|
|
631
|
+
}
|
|
632
|
+
export interface WorkflowEvent_CreateTableComplete {
|
|
633
|
+
tableCount: number;
|
|
634
|
+
summaryBlockCount: number;
|
|
635
|
+
}
|
|
636
|
+
export interface WorkflowEvent_CreateTableWarning {
|
|
637
|
+
code: string;
|
|
638
|
+
message: string;
|
|
639
|
+
}
|
|
640
|
+
export interface WorkflowEvent_CreateThreadStarted {
|
|
614
641
|
blockCount: number;
|
|
615
642
|
loopCount: number;
|
|
616
643
|
}
|
|
617
|
-
export interface
|
|
644
|
+
export interface WorkflowEvent_CreateThreadCandidate {
|
|
618
645
|
text: string;
|
|
619
646
|
sourceLocation: SourceLocation | undefined;
|
|
620
647
|
loopIndex: number;
|
|
621
648
|
}
|
|
622
|
-
export interface
|
|
649
|
+
export interface WorkflowEvent_CreateThreadComplete {
|
|
623
650
|
threadCount: number;
|
|
624
651
|
}
|
|
625
|
-
export interface
|
|
652
|
+
export interface WorkflowEvent_ExtractThread {
|
|
626
653
|
threadId: string;
|
|
627
654
|
text: string;
|
|
628
655
|
entities: string[];
|
|
629
656
|
sourceLocation: SourceLocation | undefined;
|
|
630
657
|
}
|
|
631
|
-
export interface
|
|
658
|
+
export interface WorkflowEvent_EmbedStarted {
|
|
632
659
|
threadCount: number;
|
|
633
660
|
}
|
|
634
|
-
export interface
|
|
661
|
+
export interface WorkflowEvent_EmbedComplete {
|
|
635
662
|
threadCount: number;
|
|
636
663
|
model: string;
|
|
637
664
|
dimensions: number;
|
|
638
665
|
}
|
|
639
|
-
export interface
|
|
666
|
+
export interface WorkflowEvent_ReconcileMatch {
|
|
640
667
|
threadId: string;
|
|
641
668
|
existingThreadId: string;
|
|
642
669
|
similarity: number;
|
|
643
670
|
}
|
|
644
|
-
export interface
|
|
671
|
+
export interface WorkflowEvent_DiffDecision {
|
|
645
672
|
threadId: string;
|
|
646
673
|
decision: ThreadClassification;
|
|
647
674
|
supersededThreadIds: string[];
|
|
648
675
|
}
|
|
649
|
-
export interface
|
|
676
|
+
export interface WorkflowEvent_WorkflowComplete {
|
|
650
677
|
threadCount: number;
|
|
651
678
|
pendingReviewCount: number;
|
|
652
679
|
}
|
|
653
|
-
export interface
|
|
680
|
+
export interface WorkflowEvent_WorkflowFailed {
|
|
654
681
|
error: string;
|
|
655
682
|
code: string;
|
|
656
683
|
}
|
|
@@ -674,7 +701,7 @@ export declare const IngestionRun: MessageFns<IngestionRun>;
|
|
|
674
701
|
export declare const IngestionHistoryEntry: MessageFns<IngestionHistoryEntry>;
|
|
675
702
|
export declare const UploadFileRequest: MessageFns<UploadFileRequest>;
|
|
676
703
|
export declare const UploadFileResponse: MessageFns<UploadFileResponse>;
|
|
677
|
-
export declare const
|
|
704
|
+
export declare const StreamWorkflowRequest: MessageFns<StreamWorkflowRequest>;
|
|
678
705
|
export declare const GetIngestionRunRequest: MessageFns<GetIngestionRunRequest>;
|
|
679
706
|
export declare const ListIngestionHistoryRequest: MessageFns<ListIngestionHistoryRequest>;
|
|
680
707
|
export declare const ListIngestionHistoryResponse: MessageFns<ListIngestionHistoryResponse>;
|
|
@@ -682,6 +709,8 @@ export declare const ListDocumentsRequest: MessageFns<ListDocumentsRequest>;
|
|
|
682
709
|
export declare const ListDocumentsResponse: MessageFns<ListDocumentsResponse>;
|
|
683
710
|
export declare const GetDocumentDetailRequest: MessageFns<GetDocumentDetailRequest>;
|
|
684
711
|
export declare const GetDocumentDetailResponse: MessageFns<GetDocumentDetailResponse>;
|
|
712
|
+
export declare const ListDocumentThreadsRequest: MessageFns<ListDocumentThreadsRequest>;
|
|
713
|
+
export declare const ListDocumentThreadsResponse: MessageFns<ListDocumentThreadsResponse>;
|
|
685
714
|
export declare const GetDocumentSourceRequest: MessageFns<GetDocumentSourceRequest>;
|
|
686
715
|
export declare const GetDocumentSourceResponse: MessageFns<GetDocumentSourceResponse>;
|
|
687
716
|
export declare const UpdateDocumentSecurityRequest: MessageFns<UpdateDocumentSecurityRequest>;
|
|
@@ -716,26 +745,29 @@ export declare const BulkApproveThreadsRequest: MessageFns<BulkApproveThreadsReq
|
|
|
716
745
|
export declare const BulkApproveThreadsResponse: MessageFns<BulkApproveThreadsResponse>;
|
|
717
746
|
export declare const BulkRejectThreadsRequest: MessageFns<BulkRejectThreadsRequest>;
|
|
718
747
|
export declare const BulkRejectThreadsResponse: MessageFns<BulkRejectThreadsResponse>;
|
|
719
|
-
export declare const
|
|
748
|
+
export declare const StreamWorkflowResponse: MessageFns<StreamWorkflowResponse>;
|
|
720
749
|
export declare const GetIngestionRunResponse: MessageFns<GetIngestionRunResponse>;
|
|
721
750
|
export declare const GetThreadResponse: MessageFns<GetThreadResponse>;
|
|
722
751
|
export declare const EditThreadResponse: MessageFns<EditThreadResponse>;
|
|
723
752
|
export declare const ApproveThreadResponse: MessageFns<ApproveThreadResponse>;
|
|
724
753
|
export declare const RejectThreadResponse: MessageFns<RejectThreadResponse>;
|
|
725
|
-
export declare const
|
|
726
|
-
export declare const
|
|
727
|
-
export declare const
|
|
728
|
-
export declare const
|
|
729
|
-
export declare const
|
|
730
|
-
export declare const
|
|
731
|
-
export declare const
|
|
732
|
-
export declare const
|
|
733
|
-
export declare const
|
|
734
|
-
export declare const
|
|
735
|
-
export declare const
|
|
736
|
-
export declare const
|
|
737
|
-
export declare const
|
|
738
|
-
export declare const
|
|
754
|
+
export declare const WorkflowEvent: MessageFns<WorkflowEvent>;
|
|
755
|
+
export declare const WorkflowEvent_ParseStarted: MessageFns<WorkflowEvent_ParseStarted>;
|
|
756
|
+
export declare const WorkflowEvent_ParseComplete: MessageFns<WorkflowEvent_ParseComplete>;
|
|
757
|
+
export declare const WorkflowEvent_ClassifyTag: MessageFns<WorkflowEvent_ClassifyTag>;
|
|
758
|
+
export declare const WorkflowEvent_CreateTableStarted: MessageFns<WorkflowEvent_CreateTableStarted>;
|
|
759
|
+
export declare const WorkflowEvent_CreateTableComplete: MessageFns<WorkflowEvent_CreateTableComplete>;
|
|
760
|
+
export declare const WorkflowEvent_CreateTableWarning: MessageFns<WorkflowEvent_CreateTableWarning>;
|
|
761
|
+
export declare const WorkflowEvent_CreateThreadStarted: MessageFns<WorkflowEvent_CreateThreadStarted>;
|
|
762
|
+
export declare const WorkflowEvent_CreateThreadCandidate: MessageFns<WorkflowEvent_CreateThreadCandidate>;
|
|
763
|
+
export declare const WorkflowEvent_CreateThreadComplete: MessageFns<WorkflowEvent_CreateThreadComplete>;
|
|
764
|
+
export declare const WorkflowEvent_ExtractThread: MessageFns<WorkflowEvent_ExtractThread>;
|
|
765
|
+
export declare const WorkflowEvent_EmbedStarted: MessageFns<WorkflowEvent_EmbedStarted>;
|
|
766
|
+
export declare const WorkflowEvent_EmbedComplete: MessageFns<WorkflowEvent_EmbedComplete>;
|
|
767
|
+
export declare const WorkflowEvent_ReconcileMatch: MessageFns<WorkflowEvent_ReconcileMatch>;
|
|
768
|
+
export declare const WorkflowEvent_DiffDecision: MessageFns<WorkflowEvent_DiffDecision>;
|
|
769
|
+
export declare const WorkflowEvent_WorkflowComplete: MessageFns<WorkflowEvent_WorkflowComplete>;
|
|
770
|
+
export declare const WorkflowEvent_WorkflowFailed: MessageFns<WorkflowEvent_WorkflowFailed>;
|
|
739
771
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
740
772
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
741
773
|
[K in keyof T]?: DeepPartial<T[K]>;
|