graphlit-client 1.0.20241224002 → 1.0.20241227001

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
@@ -53,8 +53,8 @@ declare class Graphlit {
53
53
  summarizeContents(summarizations: [Types.SummarizationStrategyInput], filter?: Types.ContentFilter, correlationId?: string): Promise<Types.SummarizeContentsMutation>;
54
54
  extractText(prompt: string, text: string, tools: Types.ToolDefinitionInput[], specification?: Types.EntityReferenceInput, textType?: Types.TextTypes, correlationId?: string): Promise<Types.ExtractTextMutation>;
55
55
  extractContents(prompt: string, tools: Types.ToolDefinitionInput[], specification?: Types.EntityReferenceInput, filter?: Types.ContentFilter, correlationId?: string): Promise<Types.ExtractContentsMutation>;
56
- publishContents(summaryPrompt: string, summarySpecification: Types.EntityReferenceInput, connector: Types.ContentPublishingConnectorInput, publishPrompt?: string, publishSpecification?: Types.EntityReferenceInput, name?: string, filter?: Types.ContentFilter, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.PublishContentsMutation>;
57
- publishText(text: string, textType: Types.TextTypes, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.PublishTextMutation>;
56
+ publishContents(publishPrompt: string, connector: Types.ContentPublishingConnectorInput, summaryPrompt?: string, summarySpecification?: Types.EntityReferenceInput, publishSpecification?: Types.EntityReferenceInput, name?: string, filter?: Types.ContentFilter, workflow?: Types.EntityReferenceInput, isSynchronous?: boolean, correlationId?: string): Promise<Types.PublishContentsMutation>;
57
+ publishText(text: string, textType: Types.TextTypes, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, isSynchronous?: boolean, correlationId?: string): Promise<Types.PublishTextMutation>;
58
58
  getContent(id: string): Promise<Types.GetContentQuery>;
59
59
  queryContents(filter?: Types.ContentFilter): Promise<Types.QueryContentsQuery>;
60
60
  queryContentsFacets(filter?: Types.ContentFilter): Promise<Types.QueryContentsFacetsQuery>;
@@ -78,7 +78,7 @@ declare class Graphlit {
78
78
  completeConversation(completion: string, id: string, correlationId?: string): Promise<Types.CompleteConversationMutation>;
79
79
  promptConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, tools?: [Types.ToolDefinitionInput], requireTool?: boolean, includeDetails?: boolean, correlationId?: string): Promise<Types.PromptConversationMutation>;
80
80
  continueConversation(id: string, responses: [Types.ConversationToolResponseInput], correlationId?: string): Promise<Types.ContinueConversationMutation>;
81
- publishConversation(id: string, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.PublishConversationMutation>;
81
+ publishConversation(id: string, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, isSynchronous?: boolean, correlationId?: string): Promise<Types.PublishConversationMutation>;
82
82
  suggestConversation(id: string, count?: number, correlationId?: string): Promise<Types.SuggestConversationMutation>;
83
83
  createFeed(feed: Types.FeedInput, correlationId?: string): Promise<Types.CreateFeedMutation>;
84
84
  updateFeed(feed: Types.FeedUpdateInput): Promise<Types.UpdateFeedMutation>;
package/dist/client.js CHANGED
@@ -323,14 +323,14 @@ class Graphlit {
323
323
  return this.mutateAndCheckError(Documents.ExtractContents, { prompt: prompt, filter: filter, specification: specification, tools: tools, correlationId: correlationId });
324
324
  });
325
325
  }
326
- publishContents(summaryPrompt, summarySpecification, connector, publishPrompt, publishSpecification, name, filter, workflow, correlationId) {
326
+ publishContents(publishPrompt, connector, summaryPrompt, summarySpecification, publishSpecification, name, filter, workflow, isSynchronous, correlationId) {
327
327
  return __awaiter(this, void 0, void 0, function* () {
328
- return this.mutateAndCheckError(Documents.PublishContents, { summaryPrompt: summaryPrompt, summarySpecification: summarySpecification, connector: connector, publishPrompt: publishPrompt, publishSpecification: publishSpecification, name: name, filter: filter, workflow: workflow, correlationId: correlationId });
328
+ return this.mutateAndCheckError(Documents.PublishContents, { summaryPrompt: summaryPrompt, summarySpecification: summarySpecification, connector: connector, publishPrompt: publishPrompt, publishSpecification: publishSpecification, name: name, filter: filter, workflow: workflow, isSynchronous: isSynchronous, correlationId: correlationId });
329
329
  });
330
330
  }
331
- publishText(text, textType, connector, name, workflow, correlationId) {
331
+ publishText(text, textType, connector, name, workflow, isSynchronous, correlationId) {
332
332
  return __awaiter(this, void 0, void 0, function* () {
333
- return this.mutateAndCheckError(Documents.PublishText, { text: text, textType: textType, connector: connector, name: name, workflow: workflow, correlationId: correlationId });
333
+ return this.mutateAndCheckError(Documents.PublishText, { text: text, textType: textType, connector: connector, name: name, workflow: workflow, isSynchronous: isSynchronous, correlationId: correlationId });
334
334
  });
335
335
  }
336
336
  getContent(id) {
@@ -448,9 +448,9 @@ class Graphlit {
448
448
  return this.mutateAndCheckError(Documents.ContinueConversation, { id: id, responses: responses, correlationId: correlationId });
449
449
  });
450
450
  }
451
- publishConversation(id, connector, name, workflow, correlationId) {
451
+ publishConversation(id, connector, name, workflow, isSynchronous, correlationId) {
452
452
  return __awaiter(this, void 0, void 0, function* () {
453
- return this.mutateAndCheckError(Documents.PublishConversation, { id: id, connector: connector, name: name, workflow: workflow, correlationId: correlationId });
453
+ return this.mutateAndCheckError(Documents.PublishConversation, { id: id, connector: connector, name: name, workflow: workflow, isSynchronous: isSynchronous, correlationId: correlationId });
454
454
  });
455
455
  }
456
456
  suggestConversation(id, count, correlationId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20241224002",
3
+ "version": "1.0.20241227001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",