graphlit-client 1.0.20241206002 → 1.0.20241207001
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
@@ -50,7 +50,8 @@ declare class Graphlit {
|
|
50
50
|
deleteAllContents(): Promise<Types.DeleteAllContentsMutation>;
|
51
51
|
summarizeText(summarization: Types.SummarizationStrategyInput, text: string, textType?: Types.TextTypes, correlationId?: string): Promise<Types.SummarizeTextMutation>;
|
52
52
|
summarizeContents(summarizations: [Types.SummarizationStrategyInput], filter?: Types.ContentFilter, correlationId?: string): Promise<Types.SummarizeContentsMutation>;
|
53
|
-
|
53
|
+
extractText(prompt: string, text: string, specification: Types.EntityReferenceInput, tools: Types.ToolDefinitionInput[], textType?: Types.TextTypes, correlationId?: string): Promise<Types.ExtractTextMutation>;
|
54
|
+
extractContents(prompt: string, specification: Types.EntityReferenceInput, tools: Types.ToolDefinitionInput[], filter?: Types.ContentFilter, correlationId?: string): Promise<Types.ExtractContentsMutation>;
|
54
55
|
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>;
|
55
56
|
publishText(text: string, textType: Types.TextTypes, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.PublishTextMutation>;
|
56
57
|
getContent(id: string): Promise<Types.GetContentQuery>;
|
package/dist/client.js
CHANGED
@@ -308,9 +308,14 @@ class Graphlit {
|
|
308
308
|
return this.mutateAndCheckError(Documents.SummarizeContents, { summarizations: summarizations, filter: filter, correlationId: correlationId });
|
309
309
|
});
|
310
310
|
}
|
311
|
-
|
311
|
+
extractText(prompt, text, specification, tools, textType, correlationId) {
|
312
312
|
return __awaiter(this, void 0, void 0, function* () {
|
313
|
-
return this.mutateAndCheckError(Documents.
|
313
|
+
return this.mutateAndCheckError(Documents.ExtractText, { prompt: prompt, text: text, textType: textType, specification: specification, tools: tools, correlationId: correlationId });
|
314
|
+
});
|
315
|
+
}
|
316
|
+
extractContents(prompt, specification, tools, filter, correlationId) {
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
318
|
+
return this.mutateAndCheckError(Documents.ExtractContents, { prompt: prompt, filter: filter, specification: specification, tools: tools, correlationId: correlationId });
|
314
319
|
});
|
315
320
|
}
|
316
321
|
publishContents(summaryPrompt, summarySpecification, connector, publishPrompt, publishSpecification, name, filter, workflow, correlationId) {
|
@@ -33,6 +33,7 @@ export declare const DeleteContents: import("graphql").DocumentNode;
|
|
33
33
|
export declare const DescribeEncodedImage: import("graphql").DocumentNode;
|
34
34
|
export declare const DescribeImage: import("graphql").DocumentNode;
|
35
35
|
export declare const ExtractContents: import("graphql").DocumentNode;
|
36
|
+
export declare const ExtractText: import("graphql").DocumentNode;
|
36
37
|
export declare const GetContent: import("graphql").DocumentNode;
|
37
38
|
export declare const IngestBatch: import("graphql").DocumentNode;
|
38
39
|
export declare const IngestEncodedFile: import("graphql").DocumentNode;
|
@@ -3,12 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.
|
7
|
-
exports.
|
8
|
-
exports.
|
9
|
-
exports.
|
10
|
-
exports.
|
11
|
-
exports.UpdateWorkflow = exports.QueryWorkflows = exports.GetWorkflow = exports.DeleteWorkflows = exports.DeleteWorkflow = exports.DeleteAllWorkflows = exports.CreateWorkflow = exports.CountWorkflows = exports.UpdateSpecification = exports.QuerySpecifications = exports.PromptSpecifications = exports.GetSpecification = exports.DeleteSpecifications = exports.DeleteSpecification = exports.DeleteAllSpecifications = exports.CreateSpecification = exports.CountSpecifications = exports.UpdateSoftware = exports.QuerySoftwares = void 0;
|
6
|
+
exports.SummarizeContents = exports.ScreenshotPage = exports.QueryContentsGraph = exports.QueryContentsFacets = exports.QueryContents = exports.PublishText = exports.PublishContents = exports.IsContentDone = exports.IngestUri = exports.IngestTextBatch = exports.IngestText = exports.IngestEncodedFile = exports.IngestBatch = exports.GetContent = exports.ExtractText = exports.ExtractContents = exports.DescribeImage = exports.DescribeEncodedImage = exports.DeleteContents = exports.DeleteContent = exports.DeleteAllContents = exports.CountContents = exports.UpdateCollection = exports.RemoveContentsFromCollection = exports.QueryCollections = exports.GetCollection = exports.DeleteCollections = exports.DeleteCollection = exports.DeleteAllCollections = exports.CreateCollection = exports.CountCollections = exports.AddContentsToCollections = exports.UpdateCategory = exports.QueryCategories = exports.GetCategory = exports.DeleteCategory = exports.DeleteCategories = exports.DeleteAllCategories = exports.CreateCategory = exports.CountCategories = exports.UpdateAlert = exports.QueryAlerts = exports.GetAlert = exports.EnableAlert = exports.DisableAlert = exports.DeleteAllAlerts = exports.DeleteAlerts = exports.DeleteAlert = exports.CreateAlert = exports.CountAlerts = void 0;
|
7
|
+
exports.CreateLabel = exports.CountLabels = exports.UpdateFeed = exports.QuerySharePointLibraries = exports.QuerySharePointFolders = exports.QueryOneDriveFolders = exports.QueryMicrosoftTeamsTeams = exports.QueryMicrosoftTeamsChannels = exports.QueryFeeds = exports.IsFeedDone = exports.GetSharePointConsentUri = exports.GetFeed = exports.EnableFeed = exports.DisableFeed = exports.DeleteFeeds = exports.DeleteFeed = exports.DeleteAllFeeds = exports.CreateFeed = exports.CountFeeds = exports.UpdateEvent = exports.QueryEvents = exports.GetEvent = exports.DeleteEvents = exports.DeleteEvent = exports.DeleteAllEvents = exports.CreateEvent = exports.CountEvents = exports.UpdateConversation = exports.SuggestConversation = exports.ReviseText = exports.ReviseImage = exports.ReviseEncodedImage = exports.ReviseContent = exports.QueryConversations = exports.PublishConversation = exports.PromptConversation = exports.Prompt = exports.GetConversation = exports.FormatConversation = exports.DeleteConversations = exports.DeleteConversation = exports.DeleteAllConversations = exports.CreateConversation = exports.CountConversations = exports.ContinueConversation = exports.CompleteConversation = exports.CloseConversation = exports.ClearConversation = exports.UpdateContent = exports.SummarizeText = void 0;
|
8
|
+
exports.DeleteMedicalGuideline = exports.DeleteAllMedicalGuidelines = exports.CreateMedicalGuideline = exports.CountMedicalGuidelines = exports.UpdateMedicalDrugClass = exports.QueryMedicalDrugClasses = exports.GetMedicalDrugClass = exports.DeleteMedicalDrugClasses = exports.DeleteMedicalDrugClass = exports.DeleteAllMedicalDrugClasses = exports.CreateMedicalDrugClass = exports.CountMedicalDrugClasses = exports.UpdateMedicalDrug = exports.QueryMedicalDrugs = exports.GetMedicalDrug = exports.DeleteMedicalDrugs = exports.DeleteMedicalDrug = exports.DeleteAllMedicalDrugs = exports.CreateMedicalDrug = exports.CountMedicalDrugs = exports.UpdateMedicalDevice = exports.QueryMedicalDevices = exports.GetMedicalDevice = exports.DeleteMedicalDevices = exports.DeleteMedicalDevice = exports.DeleteAllMedicalDevices = exports.CreateMedicalDevice = exports.CountMedicalDevices = exports.UpdateMedicalContraindication = exports.QueryMedicalContraindications = exports.GetMedicalContraindication = exports.DeleteMedicalContraindications = exports.DeleteMedicalContraindication = exports.DeleteAllMedicalContraindications = exports.CreateMedicalContraindication = exports.CountMedicalContraindications = exports.UpdateMedicalCondition = exports.QueryMedicalConditions = exports.GetMedicalCondition = exports.DeleteMedicalConditions = exports.DeleteMedicalCondition = exports.DeleteAllMedicalConditions = exports.CreateMedicalCondition = exports.CountMedicalConditions = exports.UpdateLabel = exports.QueryLabels = exports.GetLabel = exports.DeleteLabels = exports.DeleteLabel = exports.DeleteAllLabels = void 0;
|
9
|
+
exports.DeleteAllOrganizations = exports.CreateOrganization = exports.CountOrganizations = exports.UpdateObservation = exports.DeleteObservation = exports.CreateObservation = exports.UpdateMedicalTherapy = exports.QueryMedicalTherapies = exports.GetMedicalTherapy = exports.DeleteMedicalTherapy = exports.DeleteMedicalTherapies = exports.DeleteAllMedicalTherapies = exports.CreateMedicalTherapy = exports.CountMedicalTherapies = exports.UpdateMedicalTest = exports.QueryMedicalTests = exports.GetMedicalTest = exports.DeleteMedicalTests = exports.DeleteMedicalTest = exports.DeleteAllMedicalTests = exports.CreateMedicalTest = exports.CountMedicalTests = exports.UpdateMedicalStudy = exports.QueryMedicalStudies = exports.GetMedicalStudy = exports.DeleteMedicalStudy = exports.DeleteMedicalStudies = exports.DeleteAllMedicalStudies = exports.CreateMedicalStudy = exports.CountMedicalStudies = exports.UpdateMedicalProcedure = exports.QueryMedicalProcedures = exports.GetMedicalProcedure = exports.DeleteMedicalProcedures = exports.DeleteMedicalProcedure = exports.DeleteAllMedicalProcedures = exports.CreateMedicalProcedure = exports.CountMedicalProcedures = exports.UpdateMedicalIndication = exports.QueryMedicalIndications = exports.GetMedicalIndication = exports.DeleteMedicalIndications = exports.DeleteMedicalIndication = exports.DeleteAllMedicalIndications = exports.CreateMedicalIndication = exports.CountMedicalIndications = exports.UpdateMedicalGuideline = exports.QueryMedicalGuidelines = exports.GetMedicalGuideline = exports.DeleteMedicalGuidelines = void 0;
|
10
|
+
exports.DeleteSoftwares = exports.DeleteSoftware = exports.DeleteAllSoftwares = exports.CreateSoftware = exports.CountSoftwares = exports.SearchWeb = exports.MapWeb = exports.UpdateRepo = exports.QueryRepos = exports.GetRepo = exports.DeleteRepos = exports.DeleteRepo = exports.DeleteAllRepos = exports.CreateRepo = exports.CountRepos = exports.UpdateProject = exports.QueryUsage = exports.QueryCredits = exports.LookupUsage = exports.LookupCredits = exports.GetProject = exports.UpdateProduct = exports.QueryProducts = exports.GetProduct = exports.DeleteProducts = exports.DeleteProduct = exports.DeleteAllProducts = exports.CreateProduct = exports.CountProducts = exports.UpdatePlace = exports.QueryPlaces = exports.GetPlace = exports.DeletePlaces = exports.DeletePlace = exports.DeleteAllPlaces = exports.CreatePlace = exports.CountPlaces = exports.UpdatePerson = exports.QueryPersons = exports.GetPerson = exports.DeletePersons = exports.DeletePerson = exports.DeleteAllPersons = exports.CreatePerson = exports.CountPersons = exports.UpdateOrganization = exports.QueryOrganizations = exports.GetOrganization = exports.DeleteOrganizations = exports.DeleteOrganization = void 0;
|
11
|
+
exports.UpdateWorkflow = exports.QueryWorkflows = exports.GetWorkflow = exports.DeleteWorkflows = exports.DeleteWorkflow = exports.DeleteAllWorkflows = exports.CreateWorkflow = exports.CountWorkflows = exports.UpdateSpecification = exports.QuerySpecifications = exports.PromptSpecifications = exports.GetSpecification = exports.DeleteSpecifications = exports.DeleteSpecification = exports.DeleteAllSpecifications = exports.CreateSpecification = exports.CountSpecifications = exports.UpdateSoftware = exports.QuerySoftwares = exports.GetSoftware = void 0;
|
12
12
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
13
13
|
exports.CountAlerts = (0, graphql_tag_1.default) `
|
14
14
|
query CountAlerts($filter: AlertFilter) {
|
@@ -806,6 +806,32 @@ exports.ExtractContents = (0, graphql_tag_1.default) `
|
|
806
806
|
content {
|
807
807
|
id
|
808
808
|
}
|
809
|
+
name
|
810
|
+
value
|
811
|
+
startTime
|
812
|
+
endTime
|
813
|
+
pageNumber
|
814
|
+
error
|
815
|
+
}
|
816
|
+
}
|
817
|
+
`;
|
818
|
+
exports.ExtractText = (0, graphql_tag_1.default) `
|
819
|
+
mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput!, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
|
820
|
+
extractText(
|
821
|
+
prompt: $prompt
|
822
|
+
text: $text
|
823
|
+
textType: $textType
|
824
|
+
specification: $specification
|
825
|
+
tools: $tools
|
826
|
+
correlationId: $correlationId
|
827
|
+
) {
|
828
|
+
specification {
|
829
|
+
id
|
830
|
+
}
|
831
|
+
content {
|
832
|
+
id
|
833
|
+
}
|
834
|
+
name
|
809
835
|
value
|
810
836
|
startTime
|
811
837
|
endTime
|
@@ -3000,23 +3000,25 @@ export type EventUpdateInput = {
|
|
3000
3000
|
/** The event URI. */
|
3001
3001
|
uri?: InputMaybe<Scalars['URL']['input']>;
|
3002
3002
|
};
|
3003
|
-
/** Represents an prompted LLM extraction. */
|
3003
|
+
/** Represents an prompted LLM data extraction. */
|
3004
3004
|
export type ExtractCompletion = {
|
3005
3005
|
__typename?: 'ExtractCompletion';
|
3006
|
-
/** The content. */
|
3006
|
+
/** The content from which data was extracted, optional. */
|
3007
3007
|
content?: Maybe<EntityReference>;
|
3008
|
-
/** The end time of the audio transcript segment. */
|
3008
|
+
/** The end time of the audio transcript segment, when extracting from audio content. */
|
3009
3009
|
endTime?: Maybe<Scalars['TimeSpan']['output']>;
|
3010
|
-
/** If
|
3010
|
+
/** If data extraction failed, the error message. */
|
3011
3011
|
error?: Maybe<Scalars['String']['output']>;
|
3012
|
-
/** The
|
3012
|
+
/** The name of the called tool. */
|
3013
|
+
name: Scalars['String']['output'];
|
3014
|
+
/** The page index of the text document, when extracting from document content. */
|
3013
3015
|
pageNumber?: Maybe<Scalars['Int']['output']>;
|
3014
|
-
/** The LLM specification. */
|
3015
|
-
specification
|
3016
|
-
/** The start time of the audio transcript segment. */
|
3016
|
+
/** The LLM specification used for data extraction. */
|
3017
|
+
specification: EntityReference;
|
3018
|
+
/** The start time of the audio transcript segment, when extracting from audio content. */
|
3017
3019
|
startTime?: Maybe<Scalars['TimeSpan']['output']>;
|
3018
|
-
/** The extracted JSON value. */
|
3019
|
-
value
|
3020
|
+
/** The extracted JSON value from the called tool. */
|
3021
|
+
value: Scalars['String']['output'];
|
3020
3022
|
};
|
3021
3023
|
/** Represents an extraction workflow job. */
|
3022
3024
|
export type ExtractionWorkflowJob = {
|
@@ -6797,6 +6799,8 @@ export type Mutation = {
|
|
6797
6799
|
enableFeed?: Maybe<Feed>;
|
6798
6800
|
/** Extracts data using tool calling, from contents resulting from the provided filter criteria. */
|
6799
6801
|
extractContents?: Maybe<Array<Maybe<ExtractCompletion>>>;
|
6802
|
+
/** Extracts data using tool calling, from text. */
|
6803
|
+
extractText?: Maybe<Array<Maybe<ExtractCompletion>>>;
|
6800
6804
|
/** Format a conversation LLM user prompt. */
|
6801
6805
|
formatConversation?: Maybe<PromptConversation>;
|
6802
6806
|
/** Ingests a batch of content by URI. Supports files and webpages. */
|
@@ -7392,6 +7396,14 @@ export type MutationExtractContentsArgs = {
|
|
7392
7396
|
specification: EntityReferenceInput;
|
7393
7397
|
tools: Array<ToolDefinitionInput>;
|
7394
7398
|
};
|
7399
|
+
export type MutationExtractTextArgs = {
|
7400
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
7401
|
+
prompt: Scalars['String']['input'];
|
7402
|
+
specification: EntityReferenceInput;
|
7403
|
+
text: Scalars['String']['input'];
|
7404
|
+
textType?: InputMaybe<TextTypes>;
|
7405
|
+
tools: Array<ToolDefinitionInput>;
|
7406
|
+
};
|
7395
7407
|
export type MutationFormatConversationArgs = {
|
7396
7408
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
7397
7409
|
id?: InputMaybe<Scalars['ID']['input']>;
|
@@ -9400,7 +9412,7 @@ export type PromptCompletion = {
|
|
9400
9412
|
error?: Maybe<Scalars['String']['output']>;
|
9401
9413
|
/** The completed messages. */
|
9402
9414
|
messages?: Maybe<Array<Maybe<ConversationMessage>>>;
|
9403
|
-
/** The LLM specification. */
|
9415
|
+
/** The LLM specification used for prompt completion, optional. */
|
9404
9416
|
specification?: Maybe<EntityReference>;
|
9405
9417
|
};
|
9406
9418
|
/** Represents a prompted conversation. */
|
@@ -12818,15 +12830,44 @@ export type ExtractContentsMutation = {
|
|
12818
12830
|
__typename?: 'Mutation';
|
12819
12831
|
extractContents?: Array<{
|
12820
12832
|
__typename?: 'ExtractCompletion';
|
12821
|
-
|
12833
|
+
name: string;
|
12834
|
+
value: string;
|
12822
12835
|
startTime?: any | null;
|
12823
12836
|
endTime?: any | null;
|
12824
12837
|
pageNumber?: number | null;
|
12825
12838
|
error?: string | null;
|
12826
|
-
specification
|
12839
|
+
specification: {
|
12840
|
+
__typename?: 'EntityReference';
|
12841
|
+
id: string;
|
12842
|
+
};
|
12843
|
+
content?: {
|
12827
12844
|
__typename?: 'EntityReference';
|
12828
12845
|
id: string;
|
12829
12846
|
} | null;
|
12847
|
+
} | null> | null;
|
12848
|
+
};
|
12849
|
+
export type ExtractTextMutationVariables = Exact<{
|
12850
|
+
prompt: Scalars['String']['input'];
|
12851
|
+
text: Scalars['String']['input'];
|
12852
|
+
textType?: InputMaybe<TextTypes>;
|
12853
|
+
specification: EntityReferenceInput;
|
12854
|
+
tools: Array<ToolDefinitionInput> | ToolDefinitionInput;
|
12855
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
12856
|
+
}>;
|
12857
|
+
export type ExtractTextMutation = {
|
12858
|
+
__typename?: 'Mutation';
|
12859
|
+
extractText?: Array<{
|
12860
|
+
__typename?: 'ExtractCompletion';
|
12861
|
+
name: string;
|
12862
|
+
value: string;
|
12863
|
+
startTime?: any | null;
|
12864
|
+
endTime?: any | null;
|
12865
|
+
pageNumber?: number | null;
|
12866
|
+
error?: string | null;
|
12867
|
+
specification: {
|
12868
|
+
__typename?: 'EntityReference';
|
12869
|
+
id: string;
|
12870
|
+
};
|
12830
12871
|
content?: {
|
12831
12872
|
__typename?: 'EntityReference';
|
12832
12873
|
id: string;
|