graphlit-client 1.0.20241207001 → 1.0.20241209001

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,8 +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
- 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>;
53
+ extractText(prompt: string, text: string, tools: Types.ToolDefinitionInput[], specification?: Types.EntityReferenceInput, textType?: Types.TextTypes, correlationId?: string): Promise<Types.ExtractTextMutation>;
54
+ extractContents(prompt: string, tools: Types.ToolDefinitionInput[], specification?: Types.EntityReferenceInput, filter?: Types.ContentFilter, correlationId?: string): Promise<Types.ExtractContentsMutation>;
55
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>;
56
56
  publishText(text: string, textType: Types.TextTypes, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.PublishTextMutation>;
57
57
  getContent(id: string): Promise<Types.GetContentQuery>;
package/dist/client.js CHANGED
@@ -308,12 +308,12 @@ class Graphlit {
308
308
  return this.mutateAndCheckError(Documents.SummarizeContents, { summarizations: summarizations, filter: filter, correlationId: correlationId });
309
309
  });
310
310
  }
311
- extractText(prompt, text, specification, tools, textType, correlationId) {
311
+ extractText(prompt, text, tools, specification, textType, correlationId) {
312
312
  return __awaiter(this, void 0, void 0, function* () {
313
313
  return this.mutateAndCheckError(Documents.ExtractText, { prompt: prompt, text: text, textType: textType, specification: specification, tools: tools, correlationId: correlationId });
314
314
  });
315
315
  }
316
- extractContents(prompt, specification, tools, filter, correlationId) {
316
+ extractContents(prompt, tools, specification, filter, correlationId) {
317
317
  return __awaiter(this, void 0, void 0, function* () {
318
318
  return this.mutateAndCheckError(Documents.ExtractContents, { prompt: prompt, filter: filter, specification: specification, tools: tools, correlationId: correlationId });
319
319
  });
@@ -792,7 +792,7 @@ exports.DescribeImage = (0, graphql_tag_1.default) `
792
792
  }
793
793
  `;
794
794
  exports.ExtractContents = (0, graphql_tag_1.default) `
795
- mutation ExtractContents($prompt: String!, $filter: ContentFilter, $specification: EntityReferenceInput!, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
795
+ mutation ExtractContents($prompt: String!, $filter: ContentFilter, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
796
796
  extractContents(
797
797
  prompt: $prompt
798
798
  filter: $filter
@@ -816,7 +816,7 @@ exports.ExtractContents = (0, graphql_tag_1.default) `
816
816
  }
817
817
  `;
818
818
  exports.ExtractText = (0, graphql_tag_1.default) `
819
- mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput!, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
819
+ mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
820
820
  extractText(
821
821
  prompt: $prompt
822
822
  text: $text
@@ -1077,6 +1077,12 @@ exports.GetContent = (0, graphql_tag_1.default) `
1077
1077
  text
1078
1078
  relevance
1079
1079
  }
1080
+ frames {
1081
+ index
1082
+ description
1083
+ text
1084
+ relevance
1085
+ }
1080
1086
  error
1081
1087
  }
1082
1088
  }
@@ -1508,6 +1514,12 @@ exports.QueryContents = (0, graphql_tag_1.default) `
1508
1514
  text
1509
1515
  relevance
1510
1516
  }
1517
+ frames {
1518
+ index
1519
+ description
1520
+ text
1521
+ relevance
1522
+ }
1511
1523
  error
1512
1524
  }
1513
1525
  }
@@ -1751,6 +1763,12 @@ exports.QueryContentsFacets = (0, graphql_tag_1.default) `
1751
1763
  text
1752
1764
  relevance
1753
1765
  }
1766
+ frames {
1767
+ index
1768
+ description
1769
+ text
1770
+ relevance
1771
+ }
1754
1772
  error
1755
1773
  }
1756
1774
  facets {
@@ -3013,8 +3013,8 @@ export type ExtractCompletion = {
3013
3013
  name: Scalars['String']['output'];
3014
3014
  /** The page index of the text document, when extracting from document content. */
3015
3015
  pageNumber?: Maybe<Scalars['Int']['output']>;
3016
- /** The LLM specification used for data extraction. */
3017
- specification: EntityReference;
3016
+ /** The LLM specification used for data extraction, optional. */
3017
+ specification?: Maybe<EntityReference>;
3018
3018
  /** The start time of the audio transcript segment, when extracting from audio content. */
3019
3019
  startTime?: Maybe<Scalars['TimeSpan']['output']>;
3020
3020
  /** The extracted JSON value from the called tool. */
@@ -7393,13 +7393,13 @@ export type MutationExtractContentsArgs = {
7393
7393
  correlationId?: InputMaybe<Scalars['String']['input']>;
7394
7394
  filter?: InputMaybe<ContentFilter>;
7395
7395
  prompt: Scalars['String']['input'];
7396
- specification: EntityReferenceInput;
7396
+ specification?: InputMaybe<EntityReferenceInput>;
7397
7397
  tools: Array<ToolDefinitionInput>;
7398
7398
  };
7399
7399
  export type MutationExtractTextArgs = {
7400
7400
  correlationId?: InputMaybe<Scalars['String']['input']>;
7401
7401
  prompt: Scalars['String']['input'];
7402
- specification: EntityReferenceInput;
7402
+ specification?: InputMaybe<EntityReferenceInput>;
7403
7403
  text: Scalars['String']['input'];
7404
7404
  textType?: InputMaybe<TextTypes>;
7405
7405
  tools: Array<ToolDefinitionInput>;
@@ -8297,6 +8297,8 @@ export type OrganizationFilter = {
8297
8297
  searchType?: InputMaybe<SearchTypes>;
8298
8298
  /** Filter organization(s) by their states. */
8299
8299
  states?: InputMaybe<Array<EntityState>>;
8300
+ /** Filter by organization URI. */
8301
+ uri?: InputMaybe<Scalars['URL']['input']>;
8300
8302
  };
8301
8303
  /** Represents an organization. */
8302
8304
  export type OrganizationInput = {
@@ -8542,6 +8544,8 @@ export type PersonFilter = {
8542
8544
  searchType?: InputMaybe<SearchTypes>;
8543
8545
  /** Filter person(s) by their states. */
8544
8546
  states?: InputMaybe<Array<EntityState>>;
8547
+ /** Filter by person URI. */
8548
+ uri?: InputMaybe<Scalars['URL']['input']>;
8545
8549
  };
8546
8550
  /** Represents a person. */
8547
8551
  export type PersonInput = {
@@ -12822,7 +12826,7 @@ export type DescribeImageMutation = {
12822
12826
  export type ExtractContentsMutationVariables = Exact<{
12823
12827
  prompt: Scalars['String']['input'];
12824
12828
  filter?: InputMaybe<ContentFilter>;
12825
- specification: EntityReferenceInput;
12829
+ specification?: InputMaybe<EntityReferenceInput>;
12826
12830
  tools: Array<ToolDefinitionInput> | ToolDefinitionInput;
12827
12831
  correlationId?: InputMaybe<Scalars['String']['input']>;
12828
12832
  }>;
@@ -12836,10 +12840,10 @@ export type ExtractContentsMutation = {
12836
12840
  endTime?: any | null;
12837
12841
  pageNumber?: number | null;
12838
12842
  error?: string | null;
12839
- specification: {
12843
+ specification?: {
12840
12844
  __typename?: 'EntityReference';
12841
12845
  id: string;
12842
- };
12846
+ } | null;
12843
12847
  content?: {
12844
12848
  __typename?: 'EntityReference';
12845
12849
  id: string;
@@ -12850,7 +12854,7 @@ export type ExtractTextMutationVariables = Exact<{
12850
12854
  prompt: Scalars['String']['input'];
12851
12855
  text: Scalars['String']['input'];
12852
12856
  textType?: InputMaybe<TextTypes>;
12853
- specification: EntityReferenceInput;
12857
+ specification?: InputMaybe<EntityReferenceInput>;
12854
12858
  tools: Array<ToolDefinitionInput> | ToolDefinitionInput;
12855
12859
  correlationId?: InputMaybe<Scalars['String']['input']>;
12856
12860
  }>;
@@ -12864,10 +12868,10 @@ export type ExtractTextMutation = {
12864
12868
  endTime?: any | null;
12865
12869
  pageNumber?: number | null;
12866
12870
  error?: string | null;
12867
- specification: {
12871
+ specification?: {
12868
12872
  __typename?: 'EntityReference';
12869
12873
  id: string;
12870
- };
12874
+ } | null;
12871
12875
  content?: {
12872
12876
  __typename?: 'EntityReference';
12873
12877
  id: string;
@@ -13145,6 +13149,13 @@ export type GetContentQuery = {
13145
13149
  text?: string | null;
13146
13150
  relevance?: number | null;
13147
13151
  }> | null;
13152
+ frames?: Array<{
13153
+ __typename?: 'TextFrame';
13154
+ index?: number | null;
13155
+ description?: string | null;
13156
+ text?: string | null;
13157
+ relevance?: number | null;
13158
+ }> | null;
13148
13159
  } | null;
13149
13160
  };
13150
13161
  export type IngestBatchMutationVariables = Exact<{
@@ -13626,6 +13637,13 @@ export type QueryContentsQuery = {
13626
13637
  text?: string | null;
13627
13638
  relevance?: number | null;
13628
13639
  }> | null;
13640
+ frames?: Array<{
13641
+ __typename?: 'TextFrame';
13642
+ index?: number | null;
13643
+ description?: string | null;
13644
+ text?: string | null;
13645
+ relevance?: number | null;
13646
+ }> | null;
13629
13647
  } | null> | null;
13630
13648
  } | null;
13631
13649
  };
@@ -13903,6 +13921,13 @@ export type QueryContentsFacetsQuery = {
13903
13921
  text?: string | null;
13904
13922
  relevance?: number | null;
13905
13923
  }> | null;
13924
+ frames?: Array<{
13925
+ __typename?: 'TextFrame';
13926
+ index?: number | null;
13927
+ description?: string | null;
13928
+ text?: string | null;
13929
+ relevance?: number | null;
13930
+ }> | null;
13906
13931
  } | null> | null;
13907
13932
  facets?: Array<{
13908
13933
  __typename?: 'ContentFacet';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20241207001",
3
+ "version": "1.0.20241209001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",