weave-typescript 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +204 -0
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +3830 -970
- package/dist/weaveapi/ingestion/v1/service.pb.d.ts +113 -1
- package/dist/weaveapi/ingestion/v1/service.pb.js +679 -40
- package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +45 -1
- package/dist/weaveapi/retrieval/v1/retrieval.pb.js +729 -1
- package/dist/weaveapi/retrieval/v1/service.pb.d.ts +15 -1
- package/dist/weaveapi/retrieval/v1/service.pb.js +79 -0
- package/dist/weavesql/weavedb/ingestion_sql.d.ts +151 -0
- package/dist/weavesql/weavedb/ingestion_sql.js +423 -2
- package/dist/weavesql/weavedb/retrieval_sql.d.ts +31 -0
- package/dist/weavesql/weavedb/retrieval_sql.js +112 -1
- package/package.json +1 -1
|
@@ -82,6 +82,33 @@ export declare enum TemporalValidityKind {
|
|
|
82
82
|
}
|
|
83
83
|
export declare function temporalValidityKindFromJSON(object: any): TemporalValidityKind;
|
|
84
84
|
export declare function temporalValidityKindToJSON(object: TemporalValidityKind): string;
|
|
85
|
+
export declare enum DocumentSortField {
|
|
86
|
+
DOCUMENT_SORT_FIELD_UNSPECIFIED = 0,
|
|
87
|
+
DOCUMENT_SORT_FIELD_UPLOADED_AT = 1,
|
|
88
|
+
DOCUMENT_SORT_FIELD_FILENAME = 2,
|
|
89
|
+
DOCUMENT_SORT_FIELD_THREAD_COUNT = 3,
|
|
90
|
+
UNRECOGNIZED = -1
|
|
91
|
+
}
|
|
92
|
+
export declare function documentSortFieldFromJSON(object: any): DocumentSortField;
|
|
93
|
+
export declare function documentSortFieldToJSON(object: DocumentSortField): string;
|
|
94
|
+
export declare enum SortDirection {
|
|
95
|
+
SORT_DIRECTION_UNSPECIFIED = 0,
|
|
96
|
+
SORT_DIRECTION_ASC = 1,
|
|
97
|
+
SORT_DIRECTION_DESC = 2,
|
|
98
|
+
UNRECOGNIZED = -1
|
|
99
|
+
}
|
|
100
|
+
export declare function sortDirectionFromJSON(object: any): SortDirection;
|
|
101
|
+
export declare function sortDirectionToJSON(object: SortDirection): string;
|
|
102
|
+
export declare enum DocumentSourceBlockKind {
|
|
103
|
+
DOCUMENT_SOURCE_BLOCK_KIND_UNSPECIFIED = 0,
|
|
104
|
+
DOCUMENT_SOURCE_BLOCK_KIND_TEXT = 1,
|
|
105
|
+
DOCUMENT_SOURCE_BLOCK_KIND_TABLE = 2,
|
|
106
|
+
DOCUMENT_SOURCE_BLOCK_KIND_IMAGE = 3,
|
|
107
|
+
DOCUMENT_SOURCE_BLOCK_KIND_PAGE = 4,
|
|
108
|
+
UNRECOGNIZED = -1
|
|
109
|
+
}
|
|
110
|
+
export declare function documentSourceBlockKindFromJSON(object: any): DocumentSourceBlockKind;
|
|
111
|
+
export declare function documentSourceBlockKindToJSON(object: DocumentSourceBlockKind): string;
|
|
85
112
|
export interface DocumentTag {
|
|
86
113
|
tag: string;
|
|
87
114
|
confidence: number;
|
|
@@ -151,6 +178,62 @@ export interface Document {
|
|
|
151
178
|
} | undefined;
|
|
152
179
|
sensitivityTags: string[];
|
|
153
180
|
}
|
|
181
|
+
export interface DocumentThreadCounts {
|
|
182
|
+
total: number;
|
|
183
|
+
pending: number;
|
|
184
|
+
approved: number;
|
|
185
|
+
rejected: number;
|
|
186
|
+
}
|
|
187
|
+
export interface DocumentSummary {
|
|
188
|
+
id: string;
|
|
189
|
+
organizationId: string;
|
|
190
|
+
filename: string;
|
|
191
|
+
mimeType: string;
|
|
192
|
+
fileType: string;
|
|
193
|
+
status: DocumentStatus;
|
|
194
|
+
scope: DocumentScope;
|
|
195
|
+
tags: DocumentTag[];
|
|
196
|
+
sensitivityTags: string[];
|
|
197
|
+
uploadedByUserId: string;
|
|
198
|
+
ownerDisplayName: string;
|
|
199
|
+
uploadedAt: Date | undefined;
|
|
200
|
+
updatedAt: Date | undefined;
|
|
201
|
+
pageCount: number;
|
|
202
|
+
charCount: number;
|
|
203
|
+
latestIngestionRunId: string;
|
|
204
|
+
latestIngestionStatus: IngestionRunStatus;
|
|
205
|
+
threadCounts: DocumentThreadCounts | undefined;
|
|
206
|
+
metadata: {
|
|
207
|
+
[key: string]: any;
|
|
208
|
+
} | undefined;
|
|
209
|
+
}
|
|
210
|
+
export interface DocumentActionPermissions {
|
|
211
|
+
canReviewThreads: boolean;
|
|
212
|
+
canMutateThreads: boolean;
|
|
213
|
+
canMutateTags: boolean;
|
|
214
|
+
canDeleteDocument: boolean;
|
|
215
|
+
canRetryIngestion: boolean;
|
|
216
|
+
}
|
|
217
|
+
export interface DocumentDetail {
|
|
218
|
+
document: DocumentSummary | undefined;
|
|
219
|
+
ingestionRuns: IngestionRun[];
|
|
220
|
+
threads: Thread[];
|
|
221
|
+
permissions: DocumentActionPermissions | undefined;
|
|
222
|
+
}
|
|
223
|
+
export interface DocumentSourceBlock {
|
|
224
|
+
id: string;
|
|
225
|
+
kind: DocumentSourceBlockKind;
|
|
226
|
+
sourceLocation: SourceLocation | undefined;
|
|
227
|
+
text: string;
|
|
228
|
+
table: {
|
|
229
|
+
[key: string]: any;
|
|
230
|
+
} | undefined;
|
|
231
|
+
mimeType: string;
|
|
232
|
+
pageNumber: number;
|
|
233
|
+
metadata: {
|
|
234
|
+
[key: string]: any;
|
|
235
|
+
} | undefined;
|
|
236
|
+
}
|
|
154
237
|
export interface Thread {
|
|
155
238
|
id: string;
|
|
156
239
|
organizationId: string;
|
|
@@ -247,6 +330,65 @@ export interface ListIngestionHistoryResponse {
|
|
|
247
330
|
entries: IngestionHistoryEntry[];
|
|
248
331
|
nextPageToken: string;
|
|
249
332
|
}
|
|
333
|
+
export interface ListDocumentsRequest {
|
|
334
|
+
organizationId: string;
|
|
335
|
+
actingUserId: string;
|
|
336
|
+
tags: string[];
|
|
337
|
+
restrictedTags: string[];
|
|
338
|
+
scopes: DocumentScope[];
|
|
339
|
+
statuses: DocumentStatus[];
|
|
340
|
+
ingestionStatuses: IngestionRunStatus[];
|
|
341
|
+
uploadedAfter: Date | undefined;
|
|
342
|
+
uploadedBefore: Date | undefined;
|
|
343
|
+
pageSize: number;
|
|
344
|
+
pageToken: string;
|
|
345
|
+
sortField: DocumentSortField;
|
|
346
|
+
sortDirection: SortDirection;
|
|
347
|
+
}
|
|
348
|
+
export interface ListDocumentsResponse {
|
|
349
|
+
documents: DocumentSummary[];
|
|
350
|
+
nextPageToken: string;
|
|
351
|
+
}
|
|
352
|
+
export interface GetDocumentDetailRequest {
|
|
353
|
+
organizationId: string;
|
|
354
|
+
documentId: string;
|
|
355
|
+
actingUserId: string;
|
|
356
|
+
}
|
|
357
|
+
export interface GetDocumentDetailResponse {
|
|
358
|
+
detail: DocumentDetail | undefined;
|
|
359
|
+
}
|
|
360
|
+
export interface GetDocumentSourceRequest {
|
|
361
|
+
organizationId: string;
|
|
362
|
+
documentId: string;
|
|
363
|
+
actingUserId: string;
|
|
364
|
+
}
|
|
365
|
+
export interface GetDocumentSourceResponse {
|
|
366
|
+
documentId: string;
|
|
367
|
+
filename: string;
|
|
368
|
+
mimeType: string;
|
|
369
|
+
blocks: DocumentSourceBlock[];
|
|
370
|
+
faithful: boolean;
|
|
371
|
+
fallbackMessage: string;
|
|
372
|
+
}
|
|
373
|
+
export interface UpdateDocumentTagsRequest {
|
|
374
|
+
organizationId: string;
|
|
375
|
+
documentId: string;
|
|
376
|
+
actingUserId: string;
|
|
377
|
+
addTags: string[];
|
|
378
|
+
removeTags: string[];
|
|
379
|
+
}
|
|
380
|
+
export interface UpdateDocumentTagsResponse {
|
|
381
|
+
tags: DocumentTag[];
|
|
382
|
+
}
|
|
383
|
+
export interface DeleteDocumentRequest {
|
|
384
|
+
organizationId: string;
|
|
385
|
+
documentId: string;
|
|
386
|
+
actingUserId: string;
|
|
387
|
+
reason: string;
|
|
388
|
+
}
|
|
389
|
+
export interface DeleteDocumentResponse {
|
|
390
|
+
deleted: boolean;
|
|
391
|
+
}
|
|
250
392
|
export interface RetryIngestionRequest {
|
|
251
393
|
organizationId: string;
|
|
252
394
|
ingestionRunId: string;
|
|
@@ -263,6 +405,47 @@ export interface EditThreadRequest {
|
|
|
263
405
|
threadId: string;
|
|
264
406
|
text: string;
|
|
265
407
|
}
|
|
408
|
+
export interface CreateDocumentThreadRequest {
|
|
409
|
+
organizationId: string;
|
|
410
|
+
documentId: string;
|
|
411
|
+
actingUserId: string;
|
|
412
|
+
text: string;
|
|
413
|
+
knowledgeType: string;
|
|
414
|
+
facetFields: {
|
|
415
|
+
[key: string]: any;
|
|
416
|
+
} | undefined;
|
|
417
|
+
sourceLocation: SourceLocation | undefined;
|
|
418
|
+
metadata: {
|
|
419
|
+
[key: string]: any;
|
|
420
|
+
} | undefined;
|
|
421
|
+
}
|
|
422
|
+
export interface CreateDocumentThreadResponse {
|
|
423
|
+
thread: Thread | undefined;
|
|
424
|
+
}
|
|
425
|
+
export interface UpdateDocumentThreadRequest {
|
|
426
|
+
organizationId: string;
|
|
427
|
+
documentId: string;
|
|
428
|
+
threadId: string;
|
|
429
|
+
actingUserId: string;
|
|
430
|
+
text: string;
|
|
431
|
+
sourceLocation: SourceLocation | undefined;
|
|
432
|
+
metadata: {
|
|
433
|
+
[key: string]: any;
|
|
434
|
+
} | undefined;
|
|
435
|
+
}
|
|
436
|
+
export interface UpdateDocumentThreadResponse {
|
|
437
|
+
thread: Thread | undefined;
|
|
438
|
+
}
|
|
439
|
+
export interface DeleteDocumentThreadRequest {
|
|
440
|
+
organizationId: string;
|
|
441
|
+
documentId: string;
|
|
442
|
+
threadId: string;
|
|
443
|
+
actingUserId: string;
|
|
444
|
+
reason: string;
|
|
445
|
+
}
|
|
446
|
+
export interface DeleteDocumentThreadResponse {
|
|
447
|
+
deleted: boolean;
|
|
448
|
+
}
|
|
266
449
|
export interface ApproveThreadRequest {
|
|
267
450
|
organizationId: string;
|
|
268
451
|
threadId: string;
|
|
@@ -376,6 +559,11 @@ export declare const FacetFieldDefinition: MessageFns<FacetFieldDefinition>;
|
|
|
376
559
|
export declare const FacetConfig: MessageFns<FacetConfig>;
|
|
377
560
|
export declare const Entity: MessageFns<Entity>;
|
|
378
561
|
export declare const Document: MessageFns<Document>;
|
|
562
|
+
export declare const DocumentThreadCounts: MessageFns<DocumentThreadCounts>;
|
|
563
|
+
export declare const DocumentSummary: MessageFns<DocumentSummary>;
|
|
564
|
+
export declare const DocumentActionPermissions: MessageFns<DocumentActionPermissions>;
|
|
565
|
+
export declare const DocumentDetail: MessageFns<DocumentDetail>;
|
|
566
|
+
export declare const DocumentSourceBlock: MessageFns<DocumentSourceBlock>;
|
|
379
567
|
export declare const Thread: MessageFns<Thread>;
|
|
380
568
|
export declare const IngestionRun: MessageFns<IngestionRun>;
|
|
381
569
|
export declare const IngestionHistoryEntry: MessageFns<IngestionHistoryEntry>;
|
|
@@ -385,10 +573,26 @@ export declare const StreamPipelineRequest: MessageFns<StreamPipelineRequest>;
|
|
|
385
573
|
export declare const GetIngestionRunRequest: MessageFns<GetIngestionRunRequest>;
|
|
386
574
|
export declare const ListIngestionHistoryRequest: MessageFns<ListIngestionHistoryRequest>;
|
|
387
575
|
export declare const ListIngestionHistoryResponse: MessageFns<ListIngestionHistoryResponse>;
|
|
576
|
+
export declare const ListDocumentsRequest: MessageFns<ListDocumentsRequest>;
|
|
577
|
+
export declare const ListDocumentsResponse: MessageFns<ListDocumentsResponse>;
|
|
578
|
+
export declare const GetDocumentDetailRequest: MessageFns<GetDocumentDetailRequest>;
|
|
579
|
+
export declare const GetDocumentDetailResponse: MessageFns<GetDocumentDetailResponse>;
|
|
580
|
+
export declare const GetDocumentSourceRequest: MessageFns<GetDocumentSourceRequest>;
|
|
581
|
+
export declare const GetDocumentSourceResponse: MessageFns<GetDocumentSourceResponse>;
|
|
582
|
+
export declare const UpdateDocumentTagsRequest: MessageFns<UpdateDocumentTagsRequest>;
|
|
583
|
+
export declare const UpdateDocumentTagsResponse: MessageFns<UpdateDocumentTagsResponse>;
|
|
584
|
+
export declare const DeleteDocumentRequest: MessageFns<DeleteDocumentRequest>;
|
|
585
|
+
export declare const DeleteDocumentResponse: MessageFns<DeleteDocumentResponse>;
|
|
388
586
|
export declare const RetryIngestionRequest: MessageFns<RetryIngestionRequest>;
|
|
389
587
|
export declare const RetryIngestionResponse: MessageFns<RetryIngestionResponse>;
|
|
390
588
|
export declare const GetThreadRequest: MessageFns<GetThreadRequest>;
|
|
391
589
|
export declare const EditThreadRequest: MessageFns<EditThreadRequest>;
|
|
590
|
+
export declare const CreateDocumentThreadRequest: MessageFns<CreateDocumentThreadRequest>;
|
|
591
|
+
export declare const CreateDocumentThreadResponse: MessageFns<CreateDocumentThreadResponse>;
|
|
592
|
+
export declare const UpdateDocumentThreadRequest: MessageFns<UpdateDocumentThreadRequest>;
|
|
593
|
+
export declare const UpdateDocumentThreadResponse: MessageFns<UpdateDocumentThreadResponse>;
|
|
594
|
+
export declare const DeleteDocumentThreadRequest: MessageFns<DeleteDocumentThreadRequest>;
|
|
595
|
+
export declare const DeleteDocumentThreadResponse: MessageFns<DeleteDocumentThreadResponse>;
|
|
392
596
|
export declare const ApproveThreadRequest: MessageFns<ApproveThreadRequest>;
|
|
393
597
|
export declare const RejectThreadRequest: MessageFns<RejectThreadRequest>;
|
|
394
598
|
export declare const BulkApproveThreadsRequest: MessageFns<BulkApproveThreadsRequest>;
|