graphlit-client 1.0.20241201001 → 1.0.20241205001

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
@@ -17,7 +17,7 @@ declare class Graphlit {
17
17
  lookupProjectCredits(correlationId: string): Promise<Types.LookupCreditsQuery>;
18
18
  queryProjectUsage(startDate: Types.Scalars['DateTime'], duration: Types.Scalars['TimeSpan']): Promise<Types.QueryUsageQuery>;
19
19
  queryProjectCredits(startDate: Types.Scalars['DateTime'], duration: Types.Scalars['TimeSpan']): Promise<Types.QueryCreditsQuery>;
20
- searchWeb(text: string, service?: Types.SearchServiceTypes, limit?: number): Promise<Types.SearchWebQuery>;
20
+ searchWeb(text: string, service?: Types.SearchServiceTypes, limit?: number, correlationId?: string): Promise<Types.SearchWebQuery>;
21
21
  createAlert(alert: Types.AlertInput, correlationId?: string): Promise<Types.CreateAlertMutation>;
22
22
  updateAlert(alert: Types.AlertUpdateInput): Promise<Types.UpdateAlertMutation>;
23
23
  deleteAlert(id: string): Promise<Types.DeleteAlertMutation>;
package/dist/client.js CHANGED
@@ -143,9 +143,9 @@ class Graphlit {
143
143
  return this.queryAndCheckError(Documents.QueryCredits, { startDate: startDate, duration: duration });
144
144
  });
145
145
  }
146
- searchWeb(text, service, limit) {
146
+ searchWeb(text, service, limit, correlationId) {
147
147
  return __awaiter(this, void 0, void 0, function* () {
148
- return this.queryAndCheckError(Documents.SearchWeb, { text: text, service: service, limit: limit });
148
+ return this.queryAndCheckError(Documents.SearchWeb, { text: text, service: service, limit: limit, correlationId: correlationId });
149
149
  });
150
150
  }
151
151
  createAlert(alert, correlationId) {
@@ -4046,6 +4046,8 @@ exports.GetFeed = (0, graphql_tag_1.default) `
4046
4046
  }
4047
4047
  oneDrive {
4048
4048
  folderId
4049
+ clientId
4050
+ clientSecret
4049
4051
  refreshToken
4050
4052
  }
4051
4053
  googleDrive {
@@ -4075,6 +4077,8 @@ exports.GetFeed = (0, graphql_tag_1.default) `
4075
4077
  microsoft {
4076
4078
  type
4077
4079
  refreshToken
4080
+ clientId
4081
+ clientSecret
4078
4082
  }
4079
4083
  readLimit
4080
4084
  }
@@ -4142,6 +4146,15 @@ exports.GetFeed = (0, graphql_tag_1.default) `
4142
4146
  channel
4143
4147
  includeAttachments
4144
4148
  }
4149
+ microsoftTeams {
4150
+ readLimit
4151
+ type
4152
+ clientId
4153
+ clientSecret
4154
+ refreshToken
4155
+ teamId
4156
+ channelId
4157
+ }
4145
4158
  discord {
4146
4159
  readLimit
4147
4160
  type
@@ -4232,6 +4245,8 @@ exports.QueryFeeds = (0, graphql_tag_1.default) `
4232
4245
  }
4233
4246
  oneDrive {
4234
4247
  folderId
4248
+ clientId
4249
+ clientSecret
4235
4250
  refreshToken
4236
4251
  }
4237
4252
  googleDrive {
@@ -4261,6 +4276,8 @@ exports.QueryFeeds = (0, graphql_tag_1.default) `
4261
4276
  microsoft {
4262
4277
  type
4263
4278
  refreshToken
4279
+ clientId
4280
+ clientSecret
4264
4281
  }
4265
4282
  readLimit
4266
4283
  }
@@ -4328,6 +4345,15 @@ exports.QueryFeeds = (0, graphql_tag_1.default) `
4328
4345
  channel
4329
4346
  includeAttachments
4330
4347
  }
4348
+ microsoftTeams {
4349
+ readLimit
4350
+ type
4351
+ clientId
4352
+ clientSecret
4353
+ refreshToken
4354
+ teamId
4355
+ channelId
4356
+ }
4331
4357
  discord {
4332
4358
  readLimit
4333
4359
  type
@@ -6032,8 +6058,13 @@ exports.UpdateRepo = (0, graphql_tag_1.default) `
6032
6058
  }
6033
6059
  `;
6034
6060
  exports.SearchWeb = (0, graphql_tag_1.default) `
6035
- query SearchWeb($text: String!, $service: SearchServiceTypes, $limit: Int) {
6036
- searchWeb(text: $text, service: $service, limit: $limit) {
6061
+ query SearchWeb($text: String!, $service: SearchServiceTypes, $limit: Int, $correlationId: String) {
6062
+ searchWeb(
6063
+ text: $text
6064
+ service: $service
6065
+ limit: $limit
6066
+ correlationId: $correlationId
6067
+ ) {
6037
6068
  results {
6038
6069
  uri
6039
6070
  text
@@ -6192,6 +6223,7 @@ exports.GetSpecification = (0, graphql_tag_1.default) `
6192
6223
  type
6193
6224
  messageLimit
6194
6225
  embedCitations
6226
+ flattenCitations
6195
6227
  enableFacets
6196
6228
  messagesWeight
6197
6229
  contentsWeight
@@ -6495,6 +6527,7 @@ exports.QuerySpecifications = (0, graphql_tag_1.default) `
6495
6527
  type
6496
6528
  messageLimit
6497
6529
  embedCitations
6530
+ flattenCitations
6498
6531
  enableFacets
6499
6532
  messagesWeight
6500
6533
  contentsWeight
@@ -1885,6 +1885,8 @@ export type ConversationStrategy = {
1885
1885
  embedCitations?: Maybe<Scalars['Boolean']['output']>;
1886
1886
  /** Provide content facets with completed conversation. */
1887
1887
  enableFacets?: Maybe<Scalars['Boolean']['output']>;
1888
+ /** Flatten content citations such that only one citation is embedded per content. */
1889
+ flattenCitations?: Maybe<Scalars['Boolean']['output']>;
1888
1890
  /** The maximum number of retrieval user messages to provide with prompt context. Defaults to 5. */
1889
1891
  messageLimit?: Maybe<Scalars['Int']['output']>;
1890
1892
  /** The weight of conversation messages within prompt context, in range [0.0 - 1.0]. */
@@ -1900,6 +1902,8 @@ export type ConversationStrategyInput = {
1900
1902
  embedCitations?: InputMaybe<Scalars['Boolean']['input']>;
1901
1903
  /** Provide content facets with completed conversation. */
1902
1904
  enableFacets?: InputMaybe<Scalars['Boolean']['input']>;
1905
+ /** Flatten content citations such that only one citation is embedded per content. */
1906
+ flattenCitations?: InputMaybe<Scalars['Boolean']['input']>;
1903
1907
  /** The maximum number of retrieval user messages to provide with prompt context. Defaults to 5. */
1904
1908
  messageLimit?: InputMaybe<Scalars['Int']['input']>;
1905
1909
  /** The weight of conversation messages within prompt context, in range [0.0 - 1.0]. */
@@ -1922,6 +1926,8 @@ export type ConversationStrategyUpdateInput = {
1922
1926
  embedCitations?: InputMaybe<Scalars['Boolean']['input']>;
1923
1927
  /** Provide content facets with completed conversation. */
1924
1928
  enableFacets?: InputMaybe<Scalars['Boolean']['input']>;
1929
+ /** Flatten content citations such that only one citation is embedded per content. */
1930
+ flattenCitations?: InputMaybe<Scalars['Boolean']['input']>;
1925
1931
  /** The maximum number of retrieval user messages to provide with prompt context. Defaults to 5. */
1926
1932
  messageLimit?: InputMaybe<Scalars['Int']['input']>;
1927
1933
  /** The weight of conversation messages within prompt context, in range [0.0 - 1.0]. */
@@ -3542,11 +3548,11 @@ export type GoogleDriveFeedPropertiesUpdateInput = {
3542
3548
  /** Represents Google Email feed properties. */
3543
3549
  export type GoogleEmailFeedProperties = {
3544
3550
  __typename?: 'GoogleEmailFeedProperties';
3545
- /** Google client identifier. */
3551
+ /** Google Email client identifier. */
3546
3552
  clientId: Scalars['String']['output'];
3547
- /** Google client secret. */
3553
+ /** Google Email client secret. */
3548
3554
  clientSecret: Scalars['String']['output'];
3549
- /** Google refresh token. */
3555
+ /** Google Email refresh token. */
3550
3556
  refreshToken?: Maybe<Scalars['String']['output']>;
3551
3557
  /** Email listing type, i.e. past or new emails. */
3552
3558
  type?: Maybe<EmailListingTypes>;
@@ -3828,8 +3834,13 @@ export declare enum GroqModels {
3828
3834
  Llama_3_2_11BTextPreview = "LLAMA_3_2_11B_TEXT_PREVIEW",
3829
3835
  /** LLaMA 3.2 11b Vision Preview */
3830
3836
  Llama_3_2_11BVisionPreview = "LLAMA_3_2_11B_VISION_PREVIEW",
3831
- /** LLaMA 3.2 90b Text Preview */
3837
+ /**
3838
+ * LLaMA 3.2 90b Text Preview
3839
+ * @deprecated Use Llama 3.2 90b Vision Preview instead.
3840
+ */
3832
3841
  Llama_3_2_90BTextPreview = "LLAMA_3_2_90B_TEXT_PREVIEW",
3842
+ /** LLaMA 3.2 90b Vision Preview */
3843
+ Llama_3_2_90BVisionPreview = "LLAMA_3_2_90B_VISION_PREVIEW",
3833
3844
  /** LLaMA 3 8b */
3834
3845
  Llama_3_8B = "LLAMA_3_8B",
3835
3846
  /** LLaMA 3 70b */
@@ -6262,21 +6273,33 @@ export type MetadataUpdateInput = {
6262
6273
  /** Represents Microsoft Email feed properties. */
6263
6274
  export type MicrosoftEmailFeedProperties = {
6264
6275
  __typename?: 'MicrosoftEmailFeedProperties';
6265
- /** Microsoft refresh token. */
6276
+ /** Microsoft Email client identifier. */
6277
+ clientId: Scalars['String']['output'];
6278
+ /** Microsoft Email client secret. */
6279
+ clientSecret: Scalars['String']['output'];
6280
+ /** Microsoft Email refresh token. */
6266
6281
  refreshToken: Scalars['String']['output'];
6267
6282
  /** Email listing type, i.e. past or new emails. */
6268
6283
  type?: Maybe<EmailListingTypes>;
6269
6284
  };
6270
6285
  /** Represents Microsoft Email feed properties. */
6271
6286
  export type MicrosoftEmailFeedPropertiesInput = {
6272
- /** Microsoft refresh token. */
6287
+ /** Microsoft Email client identifier. */
6288
+ clientId: Scalars['String']['input'];
6289
+ /** Microsoft Email client secret. */
6290
+ clientSecret: Scalars['String']['input'];
6291
+ /** Microsoft Email refresh token. */
6273
6292
  refreshToken: Scalars['String']['input'];
6274
6293
  /** Email listing type, i.e. past or new emails. */
6275
6294
  type?: InputMaybe<EmailListingTypes>;
6276
6295
  };
6277
6296
  /** Represents Microsoft Email feed properties. */
6278
6297
  export type MicrosoftEmailFeedPropertiesUpdateInput = {
6279
- /** Microsoft refresh token. */
6298
+ /** Microsoft Email client identifier. */
6299
+ clientId?: InputMaybe<Scalars['String']['input']>;
6300
+ /** Microsoft Email client secret. */
6301
+ clientSecret?: InputMaybe<Scalars['String']['input']>;
6302
+ /** Microsoft Email refresh token. */
6280
6303
  refreshToken?: InputMaybe<Scalars['String']['input']>;
6281
6304
  /** Email listing type, i.e. past or new emails. */
6282
6305
  type?: InputMaybe<EmailListingTypes>;
@@ -6297,45 +6320,57 @@ export type MicrosoftTeamsChannelResults = {
6297
6320
  };
6298
6321
  /** Represents Microsoft Teams team channels properties. */
6299
6322
  export type MicrosoftTeamsChannelsInput = {
6300
- /** The Microsoft Graph refresh token. */
6323
+ /** Microsoft Teams refresh token. */
6301
6324
  refreshToken: Scalars['String']['input'];
6302
6325
  };
6303
6326
  /** Represents Microsoft Teams feed properties. */
6304
6327
  export type MicrosoftTeamsFeedProperties = {
6305
6328
  __typename?: 'MicrosoftTeamsFeedProperties';
6306
- /** The Microsoft Teams channel identifier. */
6329
+ /** Microsoft Teams channel identifier. */
6307
6330
  channelId: Scalars['String']['output'];
6331
+ /** Microsoft Teams client identifier. */
6332
+ clientId: Scalars['String']['output'];
6333
+ /** Microsoft Teams client secret. */
6334
+ clientSecret: Scalars['String']['output'];
6308
6335
  /** The limit of items to be read from feed, defaults to 100. */
6309
6336
  readLimit?: Maybe<Scalars['Int']['output']>;
6310
- /** The Microsoft Graph refresh token. */
6337
+ /** Microsoft Teams refresh token. */
6311
6338
  refreshToken: Scalars['String']['output'];
6312
- /** The Microsoft Teams team identifier. */
6339
+ /** Microsoft Teams team identifier. */
6313
6340
  teamId: Scalars['String']['output'];
6314
6341
  /** Feed listing type, i.e. past or new messages. */
6315
6342
  type?: Maybe<FeedListingTypes>;
6316
6343
  };
6317
6344
  /** Represents Microsoft Teams feed properties. */
6318
6345
  export type MicrosoftTeamsFeedPropertiesInput = {
6319
- /** The Microsoft Teams channel identifier. */
6346
+ /** Microsoft Teams channel identifier. */
6320
6347
  channelId: Scalars['String']['input'];
6348
+ /** Microsoft Teams client identifier. */
6349
+ clientId: Scalars['String']['input'];
6350
+ /** Microsoft Teams client secret. */
6351
+ clientSecret: Scalars['String']['input'];
6321
6352
  /** The limit of items to be read from feed, defaults to 100. */
6322
6353
  readLimit?: InputMaybe<Scalars['Int']['input']>;
6323
- /** The Microsoft Graph refresh token. */
6354
+ /** Microsoft Teams refresh token. */
6324
6355
  refreshToken: Scalars['String']['input'];
6325
- /** The Microsoft Teams team identifier. */
6356
+ /** Microsoft Teams team identifier. */
6326
6357
  teamId: Scalars['String']['input'];
6327
6358
  /** Feed listing type, i.e. past or new messages. */
6328
6359
  type?: InputMaybe<FeedListingTypes>;
6329
6360
  };
6330
6361
  /** Represents Microsoft Teams feed properties. */
6331
6362
  export type MicrosoftTeamsFeedPropertiesUpdateInput = {
6332
- /** The Microsoft Teams channel identifier. */
6363
+ /** Microsoft Teams channel identifier. */
6333
6364
  channelId: Scalars['String']['input'];
6365
+ /** Microsoft Teams client identifier. */
6366
+ clientId?: InputMaybe<Scalars['String']['input']>;
6367
+ /** Microsoft Teams client secret. */
6368
+ clientSecret?: InputMaybe<Scalars['String']['input']>;
6334
6369
  /** The limit of items to be read from feed, defaults to 100. */
6335
6370
  readLimit?: InputMaybe<Scalars['Int']['input']>;
6336
- /** The Microsoft Graph refresh token. */
6371
+ /** Microsoft Teams refresh token. */
6337
6372
  refreshToken?: InputMaybe<Scalars['String']['input']>;
6338
- /** The Microsoft Teams team identifier. */
6373
+ /** Microsoft Teams team identifier. */
6339
6374
  teamId: Scalars['String']['input'];
6340
6375
  /** Feed listing type, i.e. past or new messages. */
6341
6376
  type?: InputMaybe<FeedListingTypes>;
@@ -6356,7 +6391,7 @@ export type MicrosoftTeamsTeamResults = {
6356
6391
  };
6357
6392
  /** Represents Microsoft Teams teams properties. */
6358
6393
  export type MicrosoftTeamsTeamsInput = {
6359
- /** The Microsoft Graph refresh token. */
6394
+ /** Microsoft Teams refresh token. */
6360
6395
  refreshToken: Scalars['String']['input'];
6361
6396
  };
6362
6397
  /** Represents Mistral model properties. */
@@ -7857,6 +7892,10 @@ export declare enum OccurrenceTypes {
7857
7892
  /** Represents OneDrive properties. */
7858
7893
  export type OneDriveFeedProperties = {
7859
7894
  __typename?: 'OneDriveFeedProperties';
7895
+ /** OneDrive client identifier. */
7896
+ clientId: Scalars['String']['output'];
7897
+ /** OneDrive client secret. */
7898
+ clientSecret: Scalars['String']['output'];
7860
7899
  /** OneDrive folder identifier. */
7861
7900
  folderId?: Maybe<Scalars['ID']['output']>;
7862
7901
  /** OneDrive refresh token. */
@@ -7864,6 +7903,10 @@ export type OneDriveFeedProperties = {
7864
7903
  };
7865
7904
  /** Represents OneDrive properties. */
7866
7905
  export type OneDriveFeedPropertiesInput = {
7906
+ /** OneDrive client identifier. */
7907
+ clientId: Scalars['String']['input'];
7908
+ /** OneDrive client secret. */
7909
+ clientSecret: Scalars['String']['input'];
7867
7910
  /** OneDrive folder identifier. */
7868
7911
  folderId?: InputMaybe<Scalars['ID']['input']>;
7869
7912
  /** OneDrive refresh token. */
@@ -7871,6 +7914,10 @@ export type OneDriveFeedPropertiesInput = {
7871
7914
  };
7872
7915
  /** Represents OneDrive properties. */
7873
7916
  export type OneDriveFeedPropertiesUpdateInput = {
7917
+ /** OneDrive client identifier. */
7918
+ clientId?: InputMaybe<Scalars['String']['input']>;
7919
+ /** OneDrive client secret. */
7920
+ clientSecret?: InputMaybe<Scalars['String']['input']>;
7874
7921
  /** OneDrive folder identifier. */
7875
7922
  folderId?: InputMaybe<Scalars['ID']['input']>;
7876
7923
  /** OneDrive refresh token. */
@@ -16436,6 +16483,8 @@ export type GetFeedQuery = {
16436
16483
  oneDrive?: {
16437
16484
  __typename?: 'OneDriveFeedProperties';
16438
16485
  folderId?: string | null;
16486
+ clientId: string;
16487
+ clientSecret: string;
16439
16488
  refreshToken: string;
16440
16489
  } | null;
16441
16490
  googleDrive?: {
@@ -16470,6 +16519,8 @@ export type GetFeedQuery = {
16470
16519
  __typename?: 'MicrosoftEmailFeedProperties';
16471
16520
  type?: EmailListingTypes | null;
16472
16521
  refreshToken: string;
16522
+ clientId: string;
16523
+ clientSecret: string;
16473
16524
  } | null;
16474
16525
  } | null;
16475
16526
  issue?: {
@@ -16547,6 +16598,16 @@ export type GetFeedQuery = {
16547
16598
  channel: string;
16548
16599
  includeAttachments?: boolean | null;
16549
16600
  } | null;
16601
+ microsoftTeams?: {
16602
+ __typename?: 'MicrosoftTeamsFeedProperties';
16603
+ readLimit?: number | null;
16604
+ type?: FeedListingTypes | null;
16605
+ clientId: string;
16606
+ clientSecret: string;
16607
+ refreshToken: string;
16608
+ teamId: string;
16609
+ channelId: string;
16610
+ } | null;
16550
16611
  discord?: {
16551
16612
  __typename?: 'DiscordFeedProperties';
16552
16613
  readLimit?: number | null;
@@ -16659,6 +16720,8 @@ export type QueryFeedsQuery = {
16659
16720
  oneDrive?: {
16660
16721
  __typename?: 'OneDriveFeedProperties';
16661
16722
  folderId?: string | null;
16723
+ clientId: string;
16724
+ clientSecret: string;
16662
16725
  refreshToken: string;
16663
16726
  } | null;
16664
16727
  googleDrive?: {
@@ -16693,6 +16756,8 @@ export type QueryFeedsQuery = {
16693
16756
  __typename?: 'MicrosoftEmailFeedProperties';
16694
16757
  type?: EmailListingTypes | null;
16695
16758
  refreshToken: string;
16759
+ clientId: string;
16760
+ clientSecret: string;
16696
16761
  } | null;
16697
16762
  } | null;
16698
16763
  issue?: {
@@ -16770,6 +16835,16 @@ export type QueryFeedsQuery = {
16770
16835
  channel: string;
16771
16836
  includeAttachments?: boolean | null;
16772
16837
  } | null;
16838
+ microsoftTeams?: {
16839
+ __typename?: 'MicrosoftTeamsFeedProperties';
16840
+ readLimit?: number | null;
16841
+ type?: FeedListingTypes | null;
16842
+ clientId: string;
16843
+ clientSecret: string;
16844
+ refreshToken: string;
16845
+ teamId: string;
16846
+ channelId: string;
16847
+ } | null;
16773
16848
  discord?: {
16774
16849
  __typename?: 'DiscordFeedProperties';
16775
16850
  readLimit?: number | null;
@@ -18948,6 +19023,7 @@ export type SearchWebQueryVariables = Exact<{
18948
19023
  text: Scalars['String']['input'];
18949
19024
  service?: InputMaybe<SearchServiceTypes>;
18950
19025
  limit?: InputMaybe<Scalars['Int']['input']>;
19026
+ correlationId?: InputMaybe<Scalars['String']['input']>;
18951
19027
  }>;
18952
19028
  export type SearchWebQuery = {
18953
19029
  __typename?: 'Query';
@@ -19155,6 +19231,7 @@ export type GetSpecificationQuery = {
19155
19231
  type?: ConversationStrategyTypes | null;
19156
19232
  messageLimit?: number | null;
19157
19233
  embedCitations?: boolean | null;
19234
+ flattenCitations?: boolean | null;
19158
19235
  enableFacets?: boolean | null;
19159
19236
  messagesWeight?: number | null;
19160
19237
  contentsWeight?: number | null;
@@ -19495,6 +19572,7 @@ export type QuerySpecificationsQuery = {
19495
19572
  type?: ConversationStrategyTypes | null;
19496
19573
  messageLimit?: number | null;
19497
19574
  embedCitations?: boolean | null;
19575
+ flattenCitations?: boolean | null;
19498
19576
  enableFacets?: boolean | null;
19499
19577
  messagesWeight?: number | null;
19500
19578
  contentsWeight?: number | null;
@@ -776,8 +776,13 @@ var GroqModels;
776
776
  GroqModels["Llama_3_2_11BTextPreview"] = "LLAMA_3_2_11B_TEXT_PREVIEW";
777
777
  /** LLaMA 3.2 11b Vision Preview */
778
778
  GroqModels["Llama_3_2_11BVisionPreview"] = "LLAMA_3_2_11B_VISION_PREVIEW";
779
- /** LLaMA 3.2 90b Text Preview */
779
+ /**
780
+ * LLaMA 3.2 90b Text Preview
781
+ * @deprecated Use Llama 3.2 90b Vision Preview instead.
782
+ */
780
783
  GroqModels["Llama_3_2_90BTextPreview"] = "LLAMA_3_2_90B_TEXT_PREVIEW";
784
+ /** LLaMA 3.2 90b Vision Preview */
785
+ GroqModels["Llama_3_2_90BVisionPreview"] = "LLAMA_3_2_90B_VISION_PREVIEW";
781
786
  /** LLaMA 3 8b */
782
787
  GroqModels["Llama_3_8B"] = "LLAMA_3_8B";
783
788
  /** LLaMA 3 70b */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20241201001",
3
+ "version": "1.0.20241205001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",