graphlit-client 1.0.20240506002 → 1.0.20240507001
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/client.d.ts +2 -0
- package/dist/client.js +10 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
@@ -50,6 +50,7 @@ declare class Graphlit {
|
|
50
50
|
queryContents(filter?: Types.ContentFilter): Promise<Types.QueryContentsQuery>;
|
51
51
|
queryContentsFacets(filter?: Types.ContentFilter): Promise<Types.QueryContentsFacetsQuery>;
|
52
52
|
queryContentsGraph(filter?: Types.ContentFilter): Promise<Types.QueryContentsGraphQuery>;
|
53
|
+
isContentDone(id: string): Promise<Types.IsContentDoneQuery>;
|
53
54
|
createConversation(conversation: Types.ConversationInput, correlationId?: string): Promise<Types.CreateConversationMutation>;
|
54
55
|
updateConversation(conversation: Types.ConversationUpdateInput): Promise<Types.UpdateConversationMutation>;
|
55
56
|
deleteConversation(id: string): Promise<Types.DeleteConversationMutation>;
|
@@ -71,6 +72,7 @@ declare class Graphlit {
|
|
71
72
|
disableFeed(id: string): Promise<Types.DeleteFeedMutation>;
|
72
73
|
getFeed(id: string): Promise<Types.GetFeedQuery>;
|
73
74
|
queryFeeds(filter?: Types.FeedFilter): Promise<Types.QueryFeedsQuery>;
|
75
|
+
isFeedDone(id: string): Promise<Types.IsFeedDoneQuery>;
|
74
76
|
promptSpecifications(prompt: string, ids: [string]): Promise<Types.PromptSpecificationsMutation>;
|
75
77
|
createSpecification(specification: Types.SpecificationInput): Promise<Types.CreateSpecificationMutation>;
|
76
78
|
updateSpecification(specification: Types.SpecificationUpdateInput): Promise<Types.UpdateSpecificationMutation>;
|
package/dist/client.js
CHANGED
@@ -305,6 +305,11 @@ class Graphlit {
|
|
305
305
|
return this.queryAndCheckError(Documents.QueryContentsGraph, { filter: filter });
|
306
306
|
});
|
307
307
|
}
|
308
|
+
isContentDone(id) {
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
310
|
+
return this.queryAndCheckError(Documents.IsContentDone, { id: id });
|
311
|
+
});
|
312
|
+
}
|
308
313
|
createConversation(conversation, correlationId) {
|
309
314
|
return __awaiter(this, void 0, void 0, function* () {
|
310
315
|
return this.mutateAndCheckError(Documents.CreateConversation, { conversation: conversation, correlationId: correlationId });
|
@@ -410,6 +415,11 @@ class Graphlit {
|
|
410
415
|
return this.queryAndCheckError(Documents.QueryFeeds, { filter: filter });
|
411
416
|
});
|
412
417
|
}
|
418
|
+
isFeedDone(id) {
|
419
|
+
return __awaiter(this, void 0, void 0, function* () {
|
420
|
+
return this.queryAndCheckError(Documents.IsFeedDone, { id: id });
|
421
|
+
});
|
422
|
+
}
|
413
423
|
promptSpecifications(prompt, ids) {
|
414
424
|
return __awaiter(this, void 0, void 0, function* () {
|
415
425
|
return this.mutateAndCheckError(Documents.PromptSpecifications, { prompt: prompt, ids: ids });
|