graphlit-client 1.0.20240506001 → 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 CHANGED
@@ -9,7 +9,6 @@ declare class Graphlit {
9
9
  private ownerId;
10
10
  private jwtSecret;
11
11
  constructor(organizationId?: string, environmentId?: string, jwtSecret?: string, ownerId?: string, apiUri?: string);
12
- testCall(): void;
13
12
  refreshClient(): void;
14
13
  private generateToken;
15
14
  getProject(): Promise<Types.GetProjectQuery>;
@@ -51,6 +50,7 @@ declare class Graphlit {
51
50
  queryContents(filter?: Types.ContentFilter): Promise<Types.QueryContentsQuery>;
52
51
  queryContentsFacets(filter?: Types.ContentFilter): Promise<Types.QueryContentsFacetsQuery>;
53
52
  queryContentsGraph(filter?: Types.ContentFilter): Promise<Types.QueryContentsGraphQuery>;
53
+ isContentDone(id: string): Promise<Types.IsContentDoneQuery>;
54
54
  createConversation(conversation: Types.ConversationInput, correlationId?: string): Promise<Types.CreateConversationMutation>;
55
55
  updateConversation(conversation: Types.ConversationUpdateInput): Promise<Types.UpdateConversationMutation>;
56
56
  deleteConversation(id: string): Promise<Types.DeleteConversationMutation>;
@@ -72,6 +72,7 @@ declare class Graphlit {
72
72
  disableFeed(id: string): Promise<Types.DeleteFeedMutation>;
73
73
  getFeed(id: string): Promise<Types.GetFeedQuery>;
74
74
  queryFeeds(filter?: Types.FeedFilter): Promise<Types.QueryFeedsQuery>;
75
+ isFeedDone(id: string): Promise<Types.IsFeedDoneQuery>;
75
76
  promptSpecifications(prompt: string, ids: [string]): Promise<Types.PromptSpecificationsMutation>;
76
77
  createSpecification(specification: Types.SpecificationInput): Promise<Types.CreateSpecificationMutation>;
77
78
  updateSpecification(specification: Types.SpecificationUpdateInput): Promise<Types.UpdateSpecificationMutation>;
package/dist/client.js CHANGED
@@ -67,9 +67,6 @@ class Graphlit {
67
67
  }
68
68
  this.refreshClient();
69
69
  }
70
- testCall() {
71
- this.createCollection({ name: "Dinner Table Sessions" });
72
- }
73
70
  refreshClient() {
74
71
  this.client = undefined;
75
72
  this.generateToken();
@@ -308,6 +305,11 @@ class Graphlit {
308
305
  return this.queryAndCheckError(Documents.QueryContentsGraph, { filter: filter });
309
306
  });
310
307
  }
308
+ isContentDone(id) {
309
+ return __awaiter(this, void 0, void 0, function* () {
310
+ return this.queryAndCheckError(Documents.IsContentDone, { id: id });
311
+ });
312
+ }
311
313
  createConversation(conversation, correlationId) {
312
314
  return __awaiter(this, void 0, void 0, function* () {
313
315
  return this.mutateAndCheckError(Documents.CreateConversation, { conversation: conversation, correlationId: correlationId });
@@ -413,6 +415,11 @@ class Graphlit {
413
415
  return this.queryAndCheckError(Documents.QueryFeeds, { filter: filter });
414
416
  });
415
417
  }
418
+ isFeedDone(id) {
419
+ return __awaiter(this, void 0, void 0, function* () {
420
+ return this.queryAndCheckError(Documents.IsFeedDone, { id: id });
421
+ });
422
+ }
416
423
  promptSpecifications(prompt, ids) {
417
424
  return __awaiter(this, void 0, void 0, function* () {
418
425
  return this.mutateAndCheckError(Documents.PromptSpecifications, { prompt: prompt, ids: ids });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20240506001",
3
+ "version": "1.0.20240507001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",