graphlit-client 1.0.20250627001 → 1.0.20250627002
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
@@ -174,6 +174,7 @@ declare class Graphlit {
|
|
174
174
|
reviseText(prompt: string, text: string, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseTextMutation>;
|
175
175
|
reviseContent(prompt: string, content: Types.EntityReferenceInput, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseContentMutation>;
|
176
176
|
prompt(prompt?: string, mimeType?: string, data?: string, specification?: Types.EntityReferenceInput, messages?: Types.ConversationMessageInput[], correlationId?: string): Promise<Types.PromptMutation>;
|
177
|
+
retrieveView(prompt: string, id: string, retrievalStrategy?: Types.RetrievalStrategyInput, rerankingStrategy?: Types.RerankingStrategyInput, correlationId?: string): Promise<Types.RetrieveViewMutation>;
|
177
178
|
retrieveSources(prompt: string, filter?: Types.ContentFilter, augmentedFilter?: Types.ContentFilter, retrievalStrategy?: Types.RetrievalStrategyInput, rerankingStrategy?: Types.RerankingStrategyInput, correlationId?: string): Promise<Types.RetrieveSourcesMutation>;
|
178
179
|
formatConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, tools?: Types.ToolDefinitionInput[], systemPrompt?: string, includeDetails?: boolean, correlationId?: string): Promise<Types.FormatConversationMutation>;
|
179
180
|
completeConversation(completion: string, id: string, completionTime?: Types.Scalars["TimeSpan"]["input"], ttft?: Types.Scalars["TimeSpan"]["input"], throughput?: Types.Scalars["Float"]["input"], correlationId?: string): Promise<Types.CompleteConversationMutation>;
|
@@ -193,6 +194,8 @@ declare class Graphlit {
|
|
193
194
|
querySharePointLibraries(properties: Types.SharePointLibrariesInput): Promise<Types.QuerySharePointLibrariesQuery>;
|
194
195
|
queryMicrosoftTeamsTeams(properties: Types.MicrosoftTeamsTeamsInput): Promise<Types.QueryMicrosoftTeamsTeamsQuery>;
|
195
196
|
queryMicrosoftTeamsChannels(properties: Types.MicrosoftTeamsChannelsInput, teamId: string): Promise<Types.QueryMicrosoftTeamsChannelsQuery>;
|
197
|
+
queryDiscordGuilds(properties: Types.DiscordGuildsInput): Promise<Types.QueryDiscordGuildsQuery>;
|
198
|
+
queryDiscordChannels(properties: Types.DiscordChannelsInput): Promise<Types.QueryDiscordChannelsQuery>;
|
196
199
|
querySlackChannels(properties: Types.SlackChannelsInput): Promise<Types.QuerySlackChannelsQuery>;
|
197
200
|
queryLinearProjects(properties: Types.LinearProjectsInput): Promise<Types.QueryLinearProjectsQuery>;
|
198
201
|
queryNotionDatabases(properties: Types.NotionDatabasesInput): Promise<Types.QueryNotionDatabasesQuery>;
|
package/dist/client.js
CHANGED
@@ -794,6 +794,15 @@ class Graphlit {
|
|
794
794
|
correlationId: correlationId,
|
795
795
|
});
|
796
796
|
}
|
797
|
+
async retrieveView(prompt, id, retrievalStrategy, rerankingStrategy, correlationId) {
|
798
|
+
return this.mutateAndCheckError(Documents.RetrieveView, {
|
799
|
+
prompt: prompt,
|
800
|
+
id: id,
|
801
|
+
retrievalStrategy: retrievalStrategy,
|
802
|
+
rerankingStrategy: rerankingStrategy,
|
803
|
+
correlationId: correlationId,
|
804
|
+
});
|
805
|
+
}
|
797
806
|
async retrieveSources(prompt, filter, augmentedFilter, retrievalStrategy, rerankingStrategy, correlationId) {
|
798
807
|
return this.mutateAndCheckError(Documents.RetrieveSources, {
|
799
808
|
prompt: prompt,
|
@@ -930,6 +939,12 @@ class Graphlit {
|
|
930
939
|
teamId: teamId,
|
931
940
|
});
|
932
941
|
}
|
942
|
+
async queryDiscordGuilds(properties) {
|
943
|
+
return this.queryAndCheckError(Documents.QueryDiscordGuilds, { properties: properties });
|
944
|
+
}
|
945
|
+
async queryDiscordChannels(properties) {
|
946
|
+
return this.queryAndCheckError(Documents.QueryDiscordChannels, { properties: properties });
|
947
|
+
}
|
933
948
|
async querySlackChannels(properties) {
|
934
949
|
return this.queryAndCheckError(Documents.QuerySlackChannels, { properties: properties });
|
935
950
|
}
|
@@ -79,6 +79,7 @@ export declare const PromptConversation: import("graphql").DocumentNode;
|
|
79
79
|
export declare const PublishConversation: import("graphql").DocumentNode;
|
80
80
|
export declare const QueryConversations: import("graphql").DocumentNode;
|
81
81
|
export declare const RetrieveSources: import("graphql").DocumentNode;
|
82
|
+
export declare const RetrieveView: import("graphql").DocumentNode;
|
82
83
|
export declare const ReviseContent: import("graphql").DocumentNode;
|
83
84
|
export declare const ReviseEncodedImage: import("graphql").DocumentNode;
|
84
85
|
export declare const ReviseImage: import("graphql").DocumentNode;
|
@@ -105,6 +106,8 @@ export declare const GetFeed: import("graphql").DocumentNode;
|
|
105
106
|
export declare const GetSharePointConsentUri: import("graphql").DocumentNode;
|
106
107
|
export declare const IsFeedDone: import("graphql").DocumentNode;
|
107
108
|
export declare const QueryBoxFolders: import("graphql").DocumentNode;
|
109
|
+
export declare const QueryDiscordChannels: import("graphql").DocumentNode;
|
110
|
+
export declare const QueryDiscordGuilds: import("graphql").DocumentNode;
|
108
111
|
export declare const QueryDropboxFolders: import("graphql").DocumentNode;
|
109
112
|
export declare const QueryFeeds: import("graphql").DocumentNode;
|
110
113
|
export declare const QueryGoogleCalendars: import("graphql").DocumentNode;
|
@@ -5535,6 +5535,31 @@ export const RetrieveSources = gql `
|
|
5535
5535
|
}
|
5536
5536
|
}
|
5537
5537
|
`;
|
5538
|
+
export const RetrieveView = gql `
|
5539
|
+
mutation RetrieveView($prompt: String!, $id: ID!, $retrievalStrategy: RetrievalStrategyInput, $rerankingStrategy: RerankingStrategyInput, $correlationId: String) {
|
5540
|
+
retrieveView(
|
5541
|
+
prompt: $prompt
|
5542
|
+
id: $id
|
5543
|
+
retrievalStrategy: $retrievalStrategy
|
5544
|
+
rerankingStrategy: $rerankingStrategy
|
5545
|
+
correlationId: $correlationId
|
5546
|
+
) {
|
5547
|
+
results {
|
5548
|
+
type
|
5549
|
+
content {
|
5550
|
+
id
|
5551
|
+
}
|
5552
|
+
text
|
5553
|
+
metadata
|
5554
|
+
relevance
|
5555
|
+
startTime
|
5556
|
+
endTime
|
5557
|
+
pageNumber
|
5558
|
+
frameNumber
|
5559
|
+
}
|
5560
|
+
}
|
5561
|
+
}
|
5562
|
+
`;
|
5538
5563
|
export const ReviseContent = gql `
|
5539
5564
|
mutation ReviseContent($prompt: String!, $content: EntityReferenceInput!, $id: ID, $specification: EntityReferenceInput, $correlationId: String) {
|
5540
5565
|
reviseContent(
|
@@ -6614,6 +6639,26 @@ export const QueryBoxFolders = gql `
|
|
6614
6639
|
}
|
6615
6640
|
}
|
6616
6641
|
`;
|
6642
|
+
export const QueryDiscordChannels = gql `
|
6643
|
+
query QueryDiscordChannels($properties: DiscordChannelsInput!) {
|
6644
|
+
discordChannels(properties: $properties) {
|
6645
|
+
results {
|
6646
|
+
channelName
|
6647
|
+
channelId
|
6648
|
+
}
|
6649
|
+
}
|
6650
|
+
}
|
6651
|
+
`;
|
6652
|
+
export const QueryDiscordGuilds = gql `
|
6653
|
+
query QueryDiscordGuilds($properties: DiscordGuildsInput!) {
|
6654
|
+
discordGuilds(properties: $properties) {
|
6655
|
+
results {
|
6656
|
+
guildName
|
6657
|
+
guildId
|
6658
|
+
}
|
6659
|
+
}
|
6660
|
+
}
|
6661
|
+
`;
|
6617
6662
|
export const QueryDropboxFolders = gql `
|
6618
6663
|
query QueryDropboxFolders($properties: DropboxFoldersInput!, $folderPath: String) {
|
6619
6664
|
dropboxFolders(properties: $properties, folderPath: $folderPath) {
|
@@ -21143,6 +21143,34 @@ export type RetrieveSourcesMutation = {
|
|
21143
21143
|
} | null> | null;
|
21144
21144
|
} | null;
|
21145
21145
|
};
|
21146
|
+
export type RetrieveViewMutationVariables = Exact<{
|
21147
|
+
prompt: Scalars['String']['input'];
|
21148
|
+
id: Scalars['ID']['input'];
|
21149
|
+
retrievalStrategy?: InputMaybe<RetrievalStrategyInput>;
|
21150
|
+
rerankingStrategy?: InputMaybe<RerankingStrategyInput>;
|
21151
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
21152
|
+
}>;
|
21153
|
+
export type RetrieveViewMutation = {
|
21154
|
+
__typename?: 'Mutation';
|
21155
|
+
retrieveView?: {
|
21156
|
+
__typename?: 'ContentSourceResults';
|
21157
|
+
results?: Array<{
|
21158
|
+
__typename?: 'ContentSource';
|
21159
|
+
type?: ContentSourceTypes | null;
|
21160
|
+
text: string;
|
21161
|
+
metadata?: string | null;
|
21162
|
+
relevance: number;
|
21163
|
+
startTime?: any | null;
|
21164
|
+
endTime?: any | null;
|
21165
|
+
pageNumber?: number | null;
|
21166
|
+
frameNumber?: number | null;
|
21167
|
+
content: {
|
21168
|
+
__typename?: 'EntityReference';
|
21169
|
+
id: string;
|
21170
|
+
};
|
21171
|
+
} | null> | null;
|
21172
|
+
} | null;
|
21173
|
+
};
|
21146
21174
|
export type ReviseContentMutationVariables = Exact<{
|
21147
21175
|
prompt: Scalars['String']['input'];
|
21148
21176
|
content: EntityReferenceInput;
|
@@ -22375,6 +22403,34 @@ export type QueryBoxFoldersQuery = {
|
|
22375
22403
|
} | null> | null;
|
22376
22404
|
} | null;
|
22377
22405
|
};
|
22406
|
+
export type QueryDiscordChannelsQueryVariables = Exact<{
|
22407
|
+
properties: DiscordChannelsInput;
|
22408
|
+
}>;
|
22409
|
+
export type QueryDiscordChannelsQuery = {
|
22410
|
+
__typename?: 'Query';
|
22411
|
+
discordChannels?: {
|
22412
|
+
__typename?: 'DiscordChannelResults';
|
22413
|
+
results?: Array<{
|
22414
|
+
__typename?: 'DiscordChannelResult';
|
22415
|
+
channelName?: string | null;
|
22416
|
+
channelId?: string | null;
|
22417
|
+
} | null> | null;
|
22418
|
+
} | null;
|
22419
|
+
};
|
22420
|
+
export type QueryDiscordGuildsQueryVariables = Exact<{
|
22421
|
+
properties: DiscordGuildsInput;
|
22422
|
+
}>;
|
22423
|
+
export type QueryDiscordGuildsQuery = {
|
22424
|
+
__typename?: 'Query';
|
22425
|
+
discordGuilds?: {
|
22426
|
+
__typename?: 'DiscordGuildResults';
|
22427
|
+
results?: Array<{
|
22428
|
+
__typename?: 'DiscordGuildResult';
|
22429
|
+
guildName?: string | null;
|
22430
|
+
guildId?: string | null;
|
22431
|
+
} | null> | null;
|
22432
|
+
} | null;
|
22433
|
+
};
|
22378
22434
|
export type QueryDropboxFoldersQueryVariables = Exact<{
|
22379
22435
|
properties: DropboxFoldersInput;
|
22380
22436
|
folderPath?: InputMaybe<Scalars['String']['input']>;
|