graphlit-client 1.0.20240418021 → 1.0.20240418022
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 +57 -57
- package/dist/client.js +4 -4
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
@@ -10,63 +10,63 @@ declare class Graphlit {
|
|
10
10
|
private ownerId;
|
11
11
|
private jwtSecret;
|
12
12
|
constructor(organizationId?: string, environmentId?: string, jwtSecret?: string, ownerId?: string, apiUri?: string, correlationId?: string);
|
13
|
-
createAlert(alert: Types.AlertInput): Promise<Types.
|
14
|
-
updateAlert(alert: Types.AlertUpdateInput): Promise<Types.
|
15
|
-
deleteAlert(id: string): Promise<Types.
|
16
|
-
deleteAllAlerts(): Promise<
|
17
|
-
enableAlert(id: string): Promise<Types.
|
18
|
-
disableAlert(id: string): Promise<Types.
|
19
|
-
getAlert(id: string): Promise<Types.
|
20
|
-
queryAlerts(filter
|
21
|
-
createCollection(Collection: Types.CollectionInput): Promise<Types.
|
22
|
-
updateCollection(Collection: Types.CollectionUpdateInput): Promise<Types.
|
23
|
-
deleteCollection(id: string): Promise<Types.
|
24
|
-
addContentsToCollections(contents: Types.EntityReferenceInput[], collections: Types.EntityReferenceInput[]): Promise<Types.
|
25
|
-
removeContentsFromCollection(contents: Types.EntityReferenceInput[], collection: Types.EntityReferenceInput): Promise<Types.
|
26
|
-
getCollection(id: string): Promise<Types.
|
27
|
-
queryCollections(filter
|
28
|
-
ingestUri(uri: string, name?: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput): Promise<Types.
|
29
|
-
ingestText(name: string, text: string, textType?: Types.TextTypes, uri?: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput): Promise<Types.
|
30
|
-
ingestEncodedFile(name: string, data: string, mimeType: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput): Promise<Types.
|
31
|
-
updateContent(content: Types.ContentUpdateInput): Promise<Types.
|
32
|
-
deleteContent(id: string): Promise<Types.
|
33
|
-
deleteAllContents(): Promise<
|
34
|
-
summarizeContents(summarizations: [Types.SummarizationStrategyInput], filter?: Types.ContentFilter): Promise<Types.
|
35
|
-
extractContents(prompt: string, filter?: Types.ContentFilter, specification?: Types.EntityReferenceInput): Promise<Types.
|
36
|
-
publishContents(summaryPrompt: string, summarySpecification: Types.EntityReferenceInput, connector: Types.ContentPublishingConnectorInput, publishPrompt?: string, publishSpecification?: Types.EntityReferenceInput, name?: string, filter?: Types.ContentFilter, workflow?: Types.EntityReferenceInput): Promise<Types.
|
37
|
-
getContent(id: string): Promise<Types.
|
38
|
-
queryContents(filter
|
39
|
-
createConversation(conversation: Types.ConversationInput): Promise<Types.
|
40
|
-
updateConversation(conversation: Types.ConversationUpdateInput): Promise<Types.
|
41
|
-
deleteConversation(id: string): Promise<Types.
|
42
|
-
deleteAllConversations(): Promise<
|
43
|
-
clearConversation(id: string): Promise<Types.
|
44
|
-
closeConversation(id: string): Promise<Types.
|
45
|
-
getConversation(id: string): Promise<Types.
|
46
|
-
queryConversations(filter
|
47
|
-
promptConversation(prompt: string, id?: string): Promise<Types.
|
48
|
-
publishConversation(id: string, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput): Promise<Types.
|
49
|
-
suggestConversation(id: string, count?: number): Promise<Types.
|
50
|
-
createFeed(feed: Types.FeedInput): Promise<Types.
|
51
|
-
updateFeed(feed: Types.FeedUpdateInput): Promise<Types.
|
52
|
-
deleteFeed(id: string): Promise<Types.
|
53
|
-
deleteAllFeeds(): Promise<
|
54
|
-
enableFeed(id: string): Promise<Types.
|
55
|
-
disableFeed(id: string): Promise<Types.
|
56
|
-
getFeed(id: string): Promise<Types.
|
57
|
-
queryFeeds(filter
|
58
|
-
promptSpecifications(prompt: string, ids: [string]): Promise<Types.
|
59
|
-
createSpecification(specification: Types.SpecificationInput): Promise<Types.
|
60
|
-
updateSpecification(specification: Types.SpecificationUpdateInput): Promise<Types.
|
61
|
-
deleteSpecification(id: string): Promise<Types.
|
62
|
-
getSpecification(id: string): Promise<Types.
|
63
|
-
querySpecifications(filter
|
64
|
-
createWorkflow(workflow: Types.WorkflowInput): Promise<Types.
|
65
|
-
updateWorkflow(workflow: Types.WorkflowUpdateInput): Promise<Types.
|
66
|
-
deleteWorkflow(id: string): Promise<Types.
|
67
|
-
deleteAllWorkflows(): Promise<
|
68
|
-
getWorkflow(id: string): Promise<Types.
|
69
|
-
queryWorkflows(filter
|
13
|
+
createAlert(alert: Types.AlertInput): Promise<Types.CreateAlertMutation>;
|
14
|
+
updateAlert(alert: Types.AlertUpdateInput): Promise<Types.UpdateAlertMutation>;
|
15
|
+
deleteAlert(id: string): Promise<Types.DeleteAlertMutation>;
|
16
|
+
deleteAllAlerts(): Promise<Types.DeleteAllAlertsMutation>;
|
17
|
+
enableAlert(id: string): Promise<Types.EnableAlertMutation>;
|
18
|
+
disableAlert(id: string): Promise<Types.DisableAlertMutation>;
|
19
|
+
getAlert(id: string): Promise<Types.GetAlertQuery>;
|
20
|
+
queryAlerts(filter?: Types.AlertFilter): Promise<Types.QueryAlertsQuery>;
|
21
|
+
createCollection(Collection: Types.CollectionInput): Promise<Types.CreateCollectionMutation>;
|
22
|
+
updateCollection(Collection: Types.CollectionUpdateInput): Promise<Types.UpdateCollectionMutation>;
|
23
|
+
deleteCollection(id: string): Promise<Types.DeleteCollectionMutation>;
|
24
|
+
addContentsToCollections(contents: Types.EntityReferenceInput[], collections: Types.EntityReferenceInput[]): Promise<Types.AddContentsToCollectionsMutation>;
|
25
|
+
removeContentsFromCollection(contents: Types.EntityReferenceInput[], collection: Types.EntityReferenceInput): Promise<Types.RemoveContentsFromCollectionMutation>;
|
26
|
+
getCollection(id: string): Promise<Types.GetCollectionQuery>;
|
27
|
+
queryCollections(filter?: Types.CollectionFilter): Promise<Types.QueryCollectionsQuery>;
|
28
|
+
ingestUri(uri: string, name?: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput): Promise<Types.IngestUriMutation>;
|
29
|
+
ingestText(name: string, text: string, textType?: Types.TextTypes, uri?: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput): Promise<Types.IngestTextMutation>;
|
30
|
+
ingestEncodedFile(name: string, data: string, mimeType: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput): Promise<Types.IngestEncodedFileMutation>;
|
31
|
+
updateContent(content: Types.ContentUpdateInput): Promise<Types.UpdateContentMutation>;
|
32
|
+
deleteContent(id: string): Promise<Types.DeleteContentMutation>;
|
33
|
+
deleteAllContents(): Promise<Types.DeleteAllContentsMutation>;
|
34
|
+
summarizeContents(summarizations: [Types.SummarizationStrategyInput], filter?: Types.ContentFilter): Promise<Types.SummarizeContentsMutation>;
|
35
|
+
extractContents(prompt: string, filter?: Types.ContentFilter, specification?: Types.EntityReferenceInput): Promise<Types.ExtractContentsMutation>;
|
36
|
+
publishContents(summaryPrompt: string, summarySpecification: Types.EntityReferenceInput, connector: Types.ContentPublishingConnectorInput, publishPrompt?: string, publishSpecification?: Types.EntityReferenceInput, name?: string, filter?: Types.ContentFilter, workflow?: Types.EntityReferenceInput): Promise<Types.PublishContentsMutation>;
|
37
|
+
getContent(id: string): Promise<Types.GetContentQuery>;
|
38
|
+
queryContents(filter?: Types.ContentFilter): Promise<Types.QueryContentsQuery>;
|
39
|
+
createConversation(conversation: Types.ConversationInput): Promise<Types.CreateConversationMutation>;
|
40
|
+
updateConversation(conversation: Types.ConversationUpdateInput): Promise<Types.UpdateConversationMutation>;
|
41
|
+
deleteConversation(id: string): Promise<Types.DeleteConversationMutation>;
|
42
|
+
deleteAllConversations(): Promise<Types.DeleteAllConversationsMutation>;
|
43
|
+
clearConversation(id: string): Promise<Types.ClearConversationMutation>;
|
44
|
+
closeConversation(id: string): Promise<Types.CloseConversationMutation>;
|
45
|
+
getConversation(id: string): Promise<Types.GetConversationQuery>;
|
46
|
+
queryConversations(filter?: Types.ConversationFilter): Promise<Types.QueryConversationsQuery>;
|
47
|
+
promptConversation(prompt: string, id?: string): Promise<Types.PromptConversationMutation>;
|
48
|
+
publishConversation(id: string, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput): Promise<Types.PublishConversationMutation>;
|
49
|
+
suggestConversation(id: string, count?: number): Promise<Types.SuggestConversationMutation>;
|
50
|
+
createFeed(feed: Types.FeedInput): Promise<Types.CreateFeedMutation>;
|
51
|
+
updateFeed(feed: Types.FeedUpdateInput): Promise<Types.UpdateFeedMutation>;
|
52
|
+
deleteFeed(id: string): Promise<Types.DeleteFeedMutation>;
|
53
|
+
deleteAllFeeds(): Promise<Types.DeleteAllFeedsMutation>;
|
54
|
+
enableFeed(id: string): Promise<Types.EnableFeedMutation>;
|
55
|
+
disableFeed(id: string): Promise<Types.DeleteFeedMutation>;
|
56
|
+
getFeed(id: string): Promise<Types.GetFeedQuery>;
|
57
|
+
queryFeeds(filter?: Types.FeedFilter): Promise<Types.QueryFeedsQuery>;
|
58
|
+
promptSpecifications(prompt: string, ids: [string]): Promise<Types.PromptSpecificationsMutation>;
|
59
|
+
createSpecification(specification: Types.SpecificationInput): Promise<Types.CreateSpecificationMutation>;
|
60
|
+
updateSpecification(specification: Types.SpecificationUpdateInput): Promise<Types.UpdateSpecificationMutation>;
|
61
|
+
deleteSpecification(id: string): Promise<Types.DeleteSpecificationMutation>;
|
62
|
+
getSpecification(id: string): Promise<Types.GetSpecificationQuery>;
|
63
|
+
querySpecifications(filter?: Types.SpecificationFilter): Promise<Types.QuerySpecificationsQuery>;
|
64
|
+
createWorkflow(workflow: Types.WorkflowInput): Promise<Types.CreateWorkflowMutation>;
|
65
|
+
updateWorkflow(workflow: Types.WorkflowUpdateInput): Promise<Types.UpdateWorkflowMutation>;
|
66
|
+
deleteWorkflow(id: string): Promise<Types.DeleteWorkflowMutation>;
|
67
|
+
deleteAllWorkflows(): Promise<Types.DeleteAllWorkflowsMutation>;
|
68
|
+
getWorkflow(id: string): Promise<Types.GetWorkflowQuery>;
|
69
|
+
queryWorkflows(filter?: Types.WorkflowFilter): Promise<Types.QueryWorkflowsQuery>;
|
70
70
|
private mutateAndCheckError;
|
71
71
|
private queryAndCheckError;
|
72
72
|
}
|
package/dist/client.js
CHANGED
@@ -147,8 +147,8 @@ class Graphlit {
|
|
147
147
|
});
|
148
148
|
}
|
149
149
|
/*
|
150
|
-
public async deleteAllCollections(): Promise<
|
151
|
-
return this.mutateAndCheckError<
|
150
|
+
public async deleteAllCollections(): Promise<Types.DeleteAllCollectionsMutation> {
|
151
|
+
return this.mutateAndCheckError<Types.DeleteAllCollectionsMutation>(
|
152
152
|
Documents.DeleteAllCollections
|
153
153
|
);
|
154
154
|
}
|
@@ -345,8 +345,8 @@ class Graphlit {
|
|
345
345
|
});
|
346
346
|
}
|
347
347
|
/*
|
348
|
-
public async deleteAllSpecifications(): Promise<
|
349
|
-
return this.mutateAndCheckError<
|
348
|
+
public async deleteAllSpecifications(): Promise<Types.DeleteAllSpecificationsMutation> {
|
349
|
+
return this.mutateAndCheckError<Types.DeleteAllSpecificationsMutation>(
|
350
350
|
Documents.DeleteAllSpecifications
|
351
351
|
);
|
352
352
|
}
|