graphlit-client 1.0.20250220002 → 1.0.20250224001

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
@@ -74,6 +74,7 @@ declare class Graphlit {
74
74
  reviseText(prompt: string, text: string, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseTextMutation>;
75
75
  reviseContent(prompt: string, content: Types.EntityReferenceInput, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseContentMutation>;
76
76
  prompt(prompt?: string, mimeType?: string, data?: string, specification?: Types.EntityReferenceInput, messages?: [Types.ConversationMessageInput], correlationId?: string): Promise<Types.PromptMutation>;
77
+ retrieveSources(prompt: string, filter?: Types.ContentFilter, augmentedFilter?: Types.ContentFilter, retrievalStrategy?: Types.RetrievalStrategyInput, rerankingStrategy?: Types.RerankingStrategyInput, correlationId?: string): Promise<Types.RetrieveSourcesMutation>;
77
78
  formatConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, includeDetails?: boolean, correlationId?: string): Promise<Types.FormatConversationMutation>;
78
79
  completeConversation(completion: string, id: string, correlationId?: string): Promise<Types.CompleteConversationMutation>;
79
80
  askGraphlit(prompt: string, type?: Types.SdkTypes, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.AskGraphlitMutation>;
package/dist/client.js CHANGED
@@ -428,6 +428,11 @@ class Graphlit {
428
428
  return this.mutateAndCheckError(Documents.Prompt, { prompt: prompt, mimeType: mimeType, data: data, specification: specification, messages: messages, correlationId: correlationId });
429
429
  });
430
430
  }
431
+ retrieveSources(prompt, filter, augmentedFilter, retrievalStrategy, rerankingStrategy, correlationId) {
432
+ return __awaiter(this, void 0, void 0, function* () {
433
+ return this.mutateAndCheckError(Documents.RetrieveSources, { prompt: prompt, filter: filter, augmentedFilter: augmentedFilter, retrievalStrategy: retrievalStrategy, rerankingStrategy: rerankingStrategy, correlationId: correlationId });
434
+ });
435
+ }
431
436
  formatConversation(prompt, id, specification, includeDetails, correlationId) {
432
437
  return __awaiter(this, void 0, void 0, function* () {
433
438
  return this.mutateAndCheckError(Documents.FormatConversation, { prompt: prompt, id: id, specification: specification, includeDetails: includeDetails, correlationId: correlationId });
@@ -1095,6 +1095,7 @@ exports.GetContent = (0, graphql_tag_1.default) `
1095
1095
  confidence
1096
1096
  text
1097
1097
  role
1098
+ language
1098
1099
  relevance
1099
1100
  }
1100
1101
  }
@@ -1857,6 +1858,7 @@ exports.QueryContents = (0, graphql_tag_1.default) `
1857
1858
  confidence
1858
1859
  text
1859
1860
  role
1861
+ language
1860
1862
  relevance
1861
1863
  }
1862
1864
  }
@@ -2107,6 +2109,7 @@ exports.QueryContentsFacets = (0, graphql_tag_1.default) `
2107
2109
  confidence
2108
2110
  text
2109
2111
  role
2112
+ language
2110
2113
  relevance
2111
2114
  }
2112
2115
  }
@@ -4633,12 +4636,17 @@ exports.RetrieveSources = (0, graphql_tag_1.default) `
4633
4636
  correlationId: $correlationId
4634
4637
  ) {
4635
4638
  results {
4639
+ type
4636
4640
  content {
4637
4641
  id
4638
4642
  }
4639
4643
  text
4640
4644
  metadata
4641
4645
  relevance
4646
+ startTime
4647
+ endTime
4648
+ pageNumber
4649
+ frameNumber
4642
4650
  }
4643
4651
  }
4644
4652
  }
@@ -375,6 +375,10 @@ export declare enum AnthropicModels {
375
375
  Claude_3_5Sonnet_20240620 = "CLAUDE_3_5_SONNET_20240620",
376
376
  /** Claude 3.5 Sonnet (10-22-2024 version) */
377
377
  Claude_3_5Sonnet_20241022 = "CLAUDE_3_5_SONNET_20241022",
378
+ /** Claude 3.7 Sonnet (Latest) */
379
+ Claude_3_7Sonnet = "CLAUDE_3_7_SONNET",
380
+ /** Claude 3.7 Sonnet (02-19-2025 version) */
381
+ Claude_3_7Sonnet_20250219 = "CLAUDE_3_7_SONNET_20250219",
378
382
  /** Claude 3 Haiku (Latest) */
379
383
  Claude_3Haiku = "CLAUDE_3_HAIKU",
380
384
  /** Claude 3 Haiku (03-07-2024 version) */
@@ -12268,6 +12272,8 @@ export type TextChunk = {
12268
12272
  confidence?: Maybe<Scalars['Float']['output']>;
12269
12273
  /** The text chunk index. */
12270
12274
  index?: Maybe<Scalars['Int']['output']>;
12275
+ /** The text chunk language. May be assigned for code chunks. */
12276
+ language?: Maybe<Scalars['String']['output']>;
12271
12277
  /** The page index of chunk, if within section. */
12272
12278
  pageIndex?: Maybe<Scalars['Int']['output']>;
12273
12279
  /** The relevance score of the text chunk. */
@@ -14329,6 +14335,7 @@ export type GetContentQuery = {
14329
14335
  confidence?: number | null;
14330
14336
  text?: string | null;
14331
14337
  role?: TextRoles | null;
14338
+ language?: string | null;
14332
14339
  relevance?: number | null;
14333
14340
  } | null> | null;
14334
14341
  }> | null;
@@ -15177,6 +15184,7 @@ export type QueryContentsQuery = {
15177
15184
  confidence?: number | null;
15178
15185
  text?: string | null;
15179
15186
  role?: TextRoles | null;
15187
+ language?: string | null;
15180
15188
  relevance?: number | null;
15181
15189
  } | null> | null;
15182
15190
  }> | null;
@@ -15463,6 +15471,7 @@ export type QueryContentsFacetsQuery = {
15463
15471
  confidence?: number | null;
15464
15472
  text?: string | null;
15465
15473
  role?: TextRoles | null;
15474
+ language?: string | null;
15466
15475
  relevance?: number | null;
15467
15476
  } | null> | null;
15468
15477
  }> | null;
@@ -18306,9 +18315,14 @@ export type RetrieveSourcesMutation = {
18306
18315
  __typename?: 'ContentSourceResults';
18307
18316
  results?: Array<{
18308
18317
  __typename?: 'ContentSource';
18318
+ type?: ContentSourceTypes | null;
18309
18319
  text: string;
18310
18320
  metadata?: string | null;
18311
18321
  relevance: number;
18322
+ startTime?: any | null;
18323
+ endTime?: any | null;
18324
+ pageNumber?: number | null;
18325
+ frameNumber?: number | null;
18312
18326
  content: {
18313
18327
  __typename?: 'EntityReference';
18314
18328
  id: string;
@@ -28,6 +28,10 @@ var AnthropicModels;
28
28
  AnthropicModels["Claude_3_5Sonnet_20240620"] = "CLAUDE_3_5_SONNET_20240620";
29
29
  /** Claude 3.5 Sonnet (10-22-2024 version) */
30
30
  AnthropicModels["Claude_3_5Sonnet_20241022"] = "CLAUDE_3_5_SONNET_20241022";
31
+ /** Claude 3.7 Sonnet (Latest) */
32
+ AnthropicModels["Claude_3_7Sonnet"] = "CLAUDE_3_7_SONNET";
33
+ /** Claude 3.7 Sonnet (02-19-2025 version) */
34
+ AnthropicModels["Claude_3_7Sonnet_20250219"] = "CLAUDE_3_7_SONNET_20250219";
31
35
  /** Claude 3 Haiku (Latest) */
32
36
  AnthropicModels["Claude_3Haiku"] = "CLAUDE_3_HAIKU";
33
37
  /** Claude 3 Haiku (03-07-2024 version) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250220002",
3
+ "version": "1.0.20250224001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",