graphlit-client 1.0.20250930003 → 1.0.20251004001

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
@@ -205,6 +205,7 @@ declare class Graphlit {
205
205
  queryDiscordChannels(properties: Types.DiscordChannelsInput): Promise<Types.QueryDiscordChannelsQuery>;
206
206
  querySlackChannels(properties: Types.SlackChannelsInput): Promise<Types.QuerySlackChannelsQuery>;
207
207
  queryLinearProjects(properties: Types.LinearProjectsInput): Promise<Types.QueryLinearProjectsQuery>;
208
+ queryGitHubRepositories(properties: Types.GitHubRepositoriesInput, sortBy?: Types.GitHubRepositorySortTypes): Promise<Types.QueryGitHubRepositoriesQuery>;
208
209
  queryNotionDatabases(properties: Types.NotionDatabasesInput): Promise<Types.QueryNotionDatabasesQuery>;
209
210
  queryNotionPages(properties: Types.NotionPagesInput, identifier: string): Promise<Types.QueryNotionPagesQuery>;
210
211
  createFeed(feed: Types.FeedInput, correlationId?: string): Promise<Types.CreateFeedMutation>;
package/dist/client.js CHANGED
@@ -1003,6 +1003,12 @@ class Graphlit {
1003
1003
  async queryLinearProjects(properties) {
1004
1004
  return this.queryAndCheckError(Documents.QueryLinearProjects, { properties: properties });
1005
1005
  }
1006
+ async queryGitHubRepositories(properties, sortBy) {
1007
+ return this.queryAndCheckError(Documents.QueryGitHubRepositories, {
1008
+ properties: properties,
1009
+ sortBy: sortBy,
1010
+ });
1011
+ }
1006
1012
  async queryNotionDatabases(properties) {
1007
1013
  return this.queryAndCheckError(Documents.QueryNotionDatabases, { properties: properties });
1008
1014
  }
@@ -111,6 +111,7 @@ export declare const QueryDiscordChannels: import("graphql").DocumentNode;
111
111
  export declare const QueryDiscordGuilds: import("graphql").DocumentNode;
112
112
  export declare const QueryDropboxFolders: import("graphql").DocumentNode;
113
113
  export declare const QueryFeeds: import("graphql").DocumentNode;
114
+ export declare const QueryGitHubRepositories: import("graphql").DocumentNode;
114
115
  export declare const QueryGoogleCalendars: import("graphql").DocumentNode;
115
116
  export declare const QueryGoogleDriveFolders: import("graphql").DocumentNode;
116
117
  export declare const QueryLinearProjects: import("graphql").DocumentNode;
@@ -7160,6 +7160,25 @@ export const QueryFeeds = gql `
7160
7160
  }
7161
7161
  }
7162
7162
  `;
7163
+ export const QueryGitHubRepositories = gql `
7164
+ query QueryGitHubRepositories($properties: GitHubRepositoriesInput!, $sortBy: GitHubRepositorySortTypes) {
7165
+ gitHubRepositories(properties: $properties, sortBy: $sortBy) {
7166
+ results {
7167
+ repositoryOwner
7168
+ repositoryName
7169
+ repositoryFullName
7170
+ description
7171
+ isPrivate
7172
+ stargazersCount
7173
+ forksCount
7174
+ pushedAt
7175
+ createdAt
7176
+ isOwner
7177
+ language
7178
+ }
7179
+ }
7180
+ }
7181
+ `;
7163
7182
  export const QueryGoogleCalendars = gql `
7164
7183
  query QueryGoogleCalendars($properties: GoogleCalendarsInput!) {
7165
7184
  googleCalendars(properties: $properties) {
@@ -9255,6 +9274,7 @@ export const GetSpecification = gql `
9255
9274
  type
9256
9275
  contentLimit
9257
9276
  disableFallback
9277
+ expandRelatedContents
9258
9278
  }
9259
9279
  rerankingStrategy {
9260
9280
  serviceType
@@ -9629,6 +9649,7 @@ export const QuerySpecifications = gql `
9629
9649
  type
9630
9650
  contentLimit
9631
9651
  disableFallback
9652
+ expandRelatedContents
9632
9653
  }
9633
9654
  rerankingStrategy {
9634
9655
  serviceType
@@ -4869,6 +4869,58 @@ export type GitHubIssuesFeedPropertiesUpdateInput = {
4869
4869
  /** GitHub Enterprise URI, optional. */
4870
4870
  uri?: InputMaybe<Scalars['URL']['input']>;
4871
4871
  };
4872
+ /** Represents GitHub repositories properties. */
4873
+ export type GitHubRepositoriesInput = {
4874
+ /** GitHub authentication type. */
4875
+ authenticationType: GitHubAuthenticationTypes;
4876
+ /** Authentication identifier, for Connector authentication type. */
4877
+ authorizationId?: InputMaybe<Scalars['String']['input']>;
4878
+ /** GitHub personal access token, requires PersonalAccessToken authentication type. */
4879
+ personalAccessToken?: InputMaybe<Scalars['String']['input']>;
4880
+ /** GitHub OAuth refresh token, requires OAuth authentication type. */
4881
+ refreshToken?: InputMaybe<Scalars['String']['input']>;
4882
+ /** GitHub API URI, optional. Defaults to https://api.github.com/. */
4883
+ uri?: InputMaybe<Scalars['String']['input']>;
4884
+ };
4885
+ /** Represents a GitHub repository. */
4886
+ export type GitHubRepositoryResult = {
4887
+ __typename?: 'GitHubRepositoryResult';
4888
+ /** The date the repository was created. */
4889
+ createdAt?: Maybe<Scalars['DateTime']['output']>;
4890
+ /** The repository description. */
4891
+ description?: Maybe<Scalars['String']['output']>;
4892
+ /** The number of forks the repository has. */
4893
+ forksCount?: Maybe<Scalars['Int']['output']>;
4894
+ /** Whether the authenticated user is the owner of the repository. */
4895
+ isOwner?: Maybe<Scalars['Boolean']['output']>;
4896
+ /** Whether the repository is private. */
4897
+ isPrivate?: Maybe<Scalars['Boolean']['output']>;
4898
+ /** The primary programming language of the repository. */
4899
+ language?: Maybe<Scalars['String']['output']>;
4900
+ /** The last time the repository was pushed to. */
4901
+ pushedAt?: Maybe<Scalars['DateTime']['output']>;
4902
+ /** The repository full name (e.g., 'owner/repo'). */
4903
+ repositoryFullName?: Maybe<Scalars['String']['output']>;
4904
+ /** The repository name. */
4905
+ repositoryName?: Maybe<Scalars['String']['output']>;
4906
+ /** The repository owner/organization name. */
4907
+ repositoryOwner?: Maybe<Scalars['String']['output']>;
4908
+ /** The number of stars the repository has. */
4909
+ stargazersCount?: Maybe<Scalars['Int']['output']>;
4910
+ };
4911
+ /** Represents GitHub repositories. */
4912
+ export type GitHubRepositoryResults = {
4913
+ __typename?: 'GitHubRepositoryResults';
4914
+ /** The GitHub repositories. */
4915
+ results?: Maybe<Array<Maybe<GitHubRepositoryResult>>>;
4916
+ };
4917
+ /** GitHub repository sort type */
4918
+ export declare enum GitHubRepositorySortTypes {
4919
+ /** Sort alphabetically by repository name */
4920
+ Alphabetical = "ALPHABETICAL",
4921
+ /** Sort by activity ranking (stars, recency, ownership) */
4922
+ Ranked = "RANKED"
4923
+ }
4872
4924
  /** Represents Google authentication properties. */
4873
4925
  export type GoogleAuthenticationProperties = {
4874
4926
  __typename?: 'GoogleAuthenticationProperties';
@@ -12258,6 +12310,8 @@ export type Query = {
12258
12310
  feedExists?: Maybe<BooleanResult>;
12259
12311
  /** Retrieves feeds based on the provided filter criteria. */
12260
12312
  feeds?: Maybe<FeedResults>;
12313
+ /** Retrieves available GitHub repositories for the authenticated user. */
12314
+ gitHubRepositories?: Maybe<GitHubRepositoryResults>;
12261
12315
  /** Retrieves available Google calendars. */
12262
12316
  googleCalendars?: Maybe<CalendarResults>;
12263
12317
  /** Retrieves available Google Drive folders. */
@@ -12619,6 +12673,10 @@ export type QueryFeedsArgs = {
12619
12673
  correlationId?: InputMaybe<Scalars['String']['input']>;
12620
12674
  filter?: InputMaybe<FeedFilter>;
12621
12675
  };
12676
+ export type QueryGitHubRepositoriesArgs = {
12677
+ properties: GitHubRepositoriesInput;
12678
+ sortBy?: InputMaybe<GitHubRepositorySortTypes>;
12679
+ };
12622
12680
  export type QueryGoogleCalendarsArgs = {
12623
12681
  properties: GoogleCalendarsInput;
12624
12682
  };
@@ -13386,6 +13444,8 @@ export type RetrievalStrategy = {
13386
13444
  contentLimit?: Maybe<Scalars['Int']['output']>;
13387
13445
  /** Whether to disable fallback to previous contents, when no contents are found by semantic search. Defaults to false. */
13388
13446
  disableFallback?: Maybe<Scalars['Boolean']['output']>;
13447
+ /** Whether to expand related contents bidirectionally (child contents like extracted images, parent contents like source documents). Defaults to false. */
13448
+ expandRelatedContents?: Maybe<Scalars['Boolean']['output']>;
13389
13449
  /** The retrieval strategy type. */
13390
13450
  type: RetrievalStrategyTypes;
13391
13451
  };
@@ -13395,6 +13455,8 @@ export type RetrievalStrategyInput = {
13395
13455
  contentLimit?: InputMaybe<Scalars['Int']['input']>;
13396
13456
  /** Whether to disable fallback to previous contents, when no contents are found by semantic search. Defaults to false. */
13397
13457
  disableFallback?: InputMaybe<Scalars['Boolean']['input']>;
13458
+ /** Whether to expand related contents bidirectionally (child contents like extracted images, parent contents like source documents). Defaults to false. */
13459
+ expandRelatedContents?: InputMaybe<Scalars['Boolean']['input']>;
13398
13460
  /** The retrieval strategy type. */
13399
13461
  type: RetrievalStrategyTypes;
13400
13462
  };
@@ -13411,6 +13473,8 @@ export declare enum RetrievalStrategyTypes {
13411
13473
  export type RetrievalStrategyUpdateInput = {
13412
13474
  /** The maximum number of content sources to provide with prompt context. Defaults to 25. */
13413
13475
  contentLimit?: InputMaybe<Scalars['Int']['input']>;
13476
+ /** Whether to expand related contents bidirectionally (child contents like extracted images, parent contents like source documents). Defaults to false. */
13477
+ expandRelatedContents?: InputMaybe<Scalars['Boolean']['input']>;
13414
13478
  /** The retrieval strategy type. */
13415
13479
  type?: InputMaybe<RetrievalStrategyTypes>;
13416
13480
  };
@@ -13509,6 +13573,8 @@ export declare enum SearchQueryTypes {
13509
13573
  export declare enum SearchServiceTypes {
13510
13574
  /** Exa search feed service */
13511
13575
  Exa = "EXA",
13576
+ /** Exa Code context search service */
13577
+ ExaCode = "EXA_CODE",
13512
13578
  /** Podscan search feed service */
13513
13579
  Podscan = "PODSCAN",
13514
13580
  /** Tavily search feed service */
@@ -15039,7 +15105,7 @@ export type WebSearchResult = {
15039
15105
  /** The content title. */
15040
15106
  title?: Maybe<Scalars['String']['output']>;
15041
15107
  /** The web search result URI, may be a web page or podcast episode. */
15042
- uri: Scalars['URL']['output'];
15108
+ uri?: Maybe<Scalars['URL']['output']>;
15043
15109
  };
15044
15110
  /** Represents web search results. */
15045
15111
  export type WebSearchResults = {
@@ -23542,6 +23608,30 @@ export type QueryFeedsQuery = {
23542
23608
  }> | null;
23543
23609
  } | null;
23544
23610
  };
23611
+ export type QueryGitHubRepositoriesQueryVariables = Exact<{
23612
+ properties: GitHubRepositoriesInput;
23613
+ sortBy?: InputMaybe<GitHubRepositorySortTypes>;
23614
+ }>;
23615
+ export type QueryGitHubRepositoriesQuery = {
23616
+ __typename?: 'Query';
23617
+ gitHubRepositories?: {
23618
+ __typename?: 'GitHubRepositoryResults';
23619
+ results?: Array<{
23620
+ __typename?: 'GitHubRepositoryResult';
23621
+ repositoryOwner?: string | null;
23622
+ repositoryName?: string | null;
23623
+ repositoryFullName?: string | null;
23624
+ description?: string | null;
23625
+ isPrivate?: boolean | null;
23626
+ stargazersCount?: number | null;
23627
+ forksCount?: number | null;
23628
+ pushedAt?: any | null;
23629
+ createdAt?: any | null;
23630
+ isOwner?: boolean | null;
23631
+ language?: string | null;
23632
+ } | null> | null;
23633
+ } | null;
23634
+ };
23545
23635
  export type QueryGoogleCalendarsQueryVariables = Exact<{
23546
23636
  properties: GoogleCalendarsInput;
23547
23637
  }>;
@@ -26028,7 +26118,7 @@ export type SearchWebQuery = {
26028
26118
  __typename?: 'WebSearchResults';
26029
26119
  results?: Array<{
26030
26120
  __typename?: 'WebSearchResult';
26031
- uri: any;
26121
+ uri?: any | null;
26032
26122
  text?: string | null;
26033
26123
  title?: string | null;
26034
26124
  score?: number | null;
@@ -26253,6 +26343,7 @@ export type GetSpecificationQuery = {
26253
26343
  type: RetrievalStrategyTypes;
26254
26344
  contentLimit?: number | null;
26255
26345
  disableFallback?: boolean | null;
26346
+ expandRelatedContents?: boolean | null;
26256
26347
  } | null;
26257
26348
  rerankingStrategy?: {
26258
26349
  __typename?: 'RerankingStrategy';
@@ -26673,6 +26764,7 @@ export type QuerySpecificationsQuery = {
26673
26764
  type: RetrievalStrategyTypes;
26674
26765
  contentLimit?: number | null;
26675
26766
  disableFallback?: boolean | null;
26767
+ expandRelatedContents?: boolean | null;
26676
26768
  } | null;
26677
26769
  rerankingStrategy?: {
26678
26770
  __typename?: 'RerankingStrategy';
@@ -1033,6 +1033,14 @@ export var GitHubIssueAuthenticationTypes;
1033
1033
  GitHubIssueAuthenticationTypes["OAuth"] = "O_AUTH";
1034
1034
  GitHubIssueAuthenticationTypes["PersonalAccessToken"] = "PERSONAL_ACCESS_TOKEN";
1035
1035
  })(GitHubIssueAuthenticationTypes || (GitHubIssueAuthenticationTypes = {}));
1036
+ /** GitHub repository sort type */
1037
+ export var GitHubRepositorySortTypes;
1038
+ (function (GitHubRepositorySortTypes) {
1039
+ /** Sort alphabetically by repository name */
1040
+ GitHubRepositorySortTypes["Alphabetical"] = "ALPHABETICAL";
1041
+ /** Sort by activity ranking (stars, recency, ownership) */
1042
+ GitHubRepositorySortTypes["Ranked"] = "RANKED";
1043
+ })(GitHubRepositorySortTypes || (GitHubRepositorySortTypes = {}));
1036
1044
  export var GoogleCalendarAuthenticationTypes;
1037
1045
  (function (GoogleCalendarAuthenticationTypes) {
1038
1046
  GoogleCalendarAuthenticationTypes["Connector"] = "CONNECTOR";
@@ -2042,6 +2050,8 @@ export var SearchServiceTypes;
2042
2050
  (function (SearchServiceTypes) {
2043
2051
  /** Exa search feed service */
2044
2052
  SearchServiceTypes["Exa"] = "EXA";
2053
+ /** Exa Code context search service */
2054
+ SearchServiceTypes["ExaCode"] = "EXA_CODE";
2045
2055
  /** Podscan search feed service */
2046
2056
  SearchServiceTypes["Podscan"] = "PODSCAN";
2047
2057
  /** Tavily search feed service */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250930003",
3
+ "version": "1.0.20251004001",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",