@robosystems/client 0.2.11 → 0.2.12
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/extensions/AgentClient.d.ts +82 -0
- package/extensions/AgentClient.js +218 -0
- package/extensions/AgentClient.ts +321 -0
- package/extensions/QueryClient.js +85 -37
- package/extensions/QueryClient.ts +82 -34
- package/extensions/index.d.ts +7 -1
- package/extensions/index.js +18 -1
- package/extensions/index.ts +21 -1
- package/package.json +1 -1
- package/sdk/sdk.gen.d.ts +49 -32
- package/sdk/sdk.gen.js +81 -64
- package/sdk/sdk.gen.ts +81 -64
- package/sdk/types.gen.d.ts +94 -73
- package/sdk/types.gen.ts +104 -83
- package/sdk-extensions/AgentClient.d.ts +82 -0
- package/sdk-extensions/AgentClient.js +218 -0
- package/sdk-extensions/AgentClient.ts +321 -0
- package/sdk-extensions/QueryClient.js +85 -37
- package/sdk-extensions/QueryClient.ts +82 -34
- package/sdk-extensions/index.d.ts +7 -1
- package/sdk-extensions/index.js +18 -1
- package/sdk-extensions/index.ts +21 -1
- package/sdk.gen.d.ts +49 -32
- package/sdk.gen.js +81 -64
- package/sdk.gen.ts +81 -64
- package/types.gen.d.ts +94 -73
- package/types.gen.ts +104 -83
package/sdk-extensions/index.js
CHANGED
|
@@ -18,13 +18,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.streamQuery = exports.executeQuery = exports.monitorOperation = exports.extensions = exports.useTableUpload = exports.useStreamingQuery = exports.useSDKClients = exports.useQuery = exports.useOperation = exports.useMultipleOperations = exports.GraphClient = exports.TableIngestClient = exports.SSEClient = exports.QueryClient = exports.OperationClient = exports.RoboSystemsExtensions = void 0;
|
|
21
|
+
exports.analyzeFinancials = exports.agentQuery = exports.streamQuery = exports.executeQuery = exports.monitorOperation = exports.extensions = exports.useTableUpload = exports.useStreamingQuery = exports.useSDKClients = exports.useQuery = exports.useOperation = exports.useMultipleOperations = exports.GraphClient = exports.TableIngestClient = exports.SSEClient = exports.AgentClient = exports.QueryClient = exports.OperationClient = exports.RoboSystemsExtensions = void 0;
|
|
22
22
|
const client_gen_1 = require("../sdk/client.gen");
|
|
23
23
|
const config_1 = require("./config");
|
|
24
24
|
const OperationClient_1 = require("./OperationClient");
|
|
25
25
|
Object.defineProperty(exports, "OperationClient", { enumerable: true, get: function () { return OperationClient_1.OperationClient; } });
|
|
26
26
|
const QueryClient_1 = require("./QueryClient");
|
|
27
27
|
Object.defineProperty(exports, "QueryClient", { enumerable: true, get: function () { return QueryClient_1.QueryClient; } });
|
|
28
|
+
const AgentClient_1 = require("./AgentClient");
|
|
29
|
+
Object.defineProperty(exports, "AgentClient", { enumerable: true, get: function () { return AgentClient_1.AgentClient; } });
|
|
28
30
|
const SSEClient_1 = require("./SSEClient");
|
|
29
31
|
Object.defineProperty(exports, "SSEClient", { enumerable: true, get: function () { return SSEClient_1.SSEClient; } });
|
|
30
32
|
const TableIngestClient_1 = require("./TableIngestClient");
|
|
@@ -51,6 +53,12 @@ class RoboSystemsExtensions {
|
|
|
51
53
|
token: this.config.token,
|
|
52
54
|
headers: this.config.headers,
|
|
53
55
|
});
|
|
56
|
+
this.agent = new AgentClient_1.AgentClient({
|
|
57
|
+
baseUrl: this.config.baseUrl,
|
|
58
|
+
credentials: this.config.credentials,
|
|
59
|
+
token: this.config.token,
|
|
60
|
+
headers: this.config.headers,
|
|
61
|
+
});
|
|
54
62
|
this.operations = new OperationClient_1.OperationClient({
|
|
55
63
|
baseUrl: this.config.baseUrl,
|
|
56
64
|
credentials: this.config.credentials,
|
|
@@ -95,6 +103,7 @@ class RoboSystemsExtensions {
|
|
|
95
103
|
*/
|
|
96
104
|
close() {
|
|
97
105
|
this.query.close();
|
|
106
|
+
this.agent.close();
|
|
98
107
|
this.operations.closeAll();
|
|
99
108
|
this.graphs.close();
|
|
100
109
|
}
|
|
@@ -103,6 +112,7 @@ exports.RoboSystemsExtensions = RoboSystemsExtensions;
|
|
|
103
112
|
// Export all types and classes
|
|
104
113
|
__exportStar(require("./OperationClient"), exports);
|
|
105
114
|
__exportStar(require("./QueryClient"), exports);
|
|
115
|
+
__exportStar(require("./AgentClient"), exports);
|
|
106
116
|
__exportStar(require("./SSEClient"), exports);
|
|
107
117
|
__exportStar(require("./TableIngestClient"), exports);
|
|
108
118
|
__exportStar(require("./GraphClient"), exports);
|
|
@@ -126,6 +136,9 @@ exports.extensions = {
|
|
|
126
136
|
get query() {
|
|
127
137
|
return getExtensions().query;
|
|
128
138
|
},
|
|
139
|
+
get agent() {
|
|
140
|
+
return getExtensions().agent;
|
|
141
|
+
},
|
|
129
142
|
get operations() {
|
|
130
143
|
return getExtensions().operations;
|
|
131
144
|
},
|
|
@@ -143,3 +156,7 @@ const executeQuery = (graphId, query, parameters) => getExtensions().query.query
|
|
|
143
156
|
exports.executeQuery = executeQuery;
|
|
144
157
|
const streamQuery = (graphId, query, parameters, chunkSize) => getExtensions().query.streamQuery(graphId, query, parameters, chunkSize);
|
|
145
158
|
exports.streamQuery = streamQuery;
|
|
159
|
+
const agentQuery = (graphId, message, context) => getExtensions().agent.query(graphId, message, context);
|
|
160
|
+
exports.agentQuery = agentQuery;
|
|
161
|
+
const analyzeFinancials = (graphId, message) => getExtensions().agent.analyzeFinancials(graphId, message);
|
|
162
|
+
exports.analyzeFinancials = analyzeFinancials;
|
package/sdk-extensions/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { client } from '../sdk/client.gen'
|
|
|
7
7
|
import { extractTokenFromSDKClient } from './config'
|
|
8
8
|
import { OperationClient } from './OperationClient'
|
|
9
9
|
import { QueryClient } from './QueryClient'
|
|
10
|
+
import { AgentClient } from './AgentClient'
|
|
10
11
|
import { SSEClient } from './SSEClient'
|
|
11
12
|
import { TableIngestClient } from './TableIngestClient'
|
|
12
13
|
import { GraphClient } from './GraphClient'
|
|
@@ -32,6 +33,7 @@ interface ResolvedConfig {
|
|
|
32
33
|
|
|
33
34
|
export class RoboSystemsExtensions {
|
|
34
35
|
public readonly query: QueryClient
|
|
36
|
+
public readonly agent: AgentClient
|
|
35
37
|
public readonly operations: OperationClient
|
|
36
38
|
public readonly tables: TableIngestClient
|
|
37
39
|
public readonly graphs: GraphClient
|
|
@@ -60,6 +62,13 @@ export class RoboSystemsExtensions {
|
|
|
60
62
|
headers: this.config.headers,
|
|
61
63
|
})
|
|
62
64
|
|
|
65
|
+
this.agent = new AgentClient({
|
|
66
|
+
baseUrl: this.config.baseUrl,
|
|
67
|
+
credentials: this.config.credentials,
|
|
68
|
+
token: this.config.token,
|
|
69
|
+
headers: this.config.headers,
|
|
70
|
+
})
|
|
71
|
+
|
|
63
72
|
this.operations = new OperationClient({
|
|
64
73
|
baseUrl: this.config.baseUrl,
|
|
65
74
|
credentials: this.config.credentials,
|
|
@@ -109,6 +118,7 @@ export class RoboSystemsExtensions {
|
|
|
109
118
|
*/
|
|
110
119
|
close(): void {
|
|
111
120
|
this.query.close()
|
|
121
|
+
this.agent.close()
|
|
112
122
|
this.operations.closeAll()
|
|
113
123
|
this.graphs.close()
|
|
114
124
|
}
|
|
@@ -117,10 +127,11 @@ export class RoboSystemsExtensions {
|
|
|
117
127
|
// Export all types and classes
|
|
118
128
|
export * from './OperationClient'
|
|
119
129
|
export * from './QueryClient'
|
|
130
|
+
export * from './AgentClient'
|
|
120
131
|
export * from './SSEClient'
|
|
121
132
|
export * from './TableIngestClient'
|
|
122
133
|
export * from './GraphClient'
|
|
123
|
-
export { OperationClient, QueryClient, SSEClient, TableIngestClient, GraphClient }
|
|
134
|
+
export { OperationClient, QueryClient, AgentClient, SSEClient, TableIngestClient, GraphClient }
|
|
124
135
|
|
|
125
136
|
// Export React hooks
|
|
126
137
|
export {
|
|
@@ -146,6 +157,9 @@ export const extensions = {
|
|
|
146
157
|
get query() {
|
|
147
158
|
return getExtensions().query
|
|
148
159
|
},
|
|
160
|
+
get agent() {
|
|
161
|
+
return getExtensions().agent
|
|
162
|
+
},
|
|
149
163
|
get operations() {
|
|
150
164
|
return getExtensions().operations
|
|
151
165
|
},
|
|
@@ -171,3 +185,9 @@ export const streamQuery = (
|
|
|
171
185
|
parameters?: Record<string, any>,
|
|
172
186
|
chunkSize?: number
|
|
173
187
|
) => getExtensions().query.streamQuery(graphId, query, parameters, chunkSize)
|
|
188
|
+
|
|
189
|
+
export const agentQuery = (graphId: string, message: string, context?: Record<string, any>) =>
|
|
190
|
+
getExtensions().agent.query(graphId, message, context)
|
|
191
|
+
|
|
192
|
+
export const analyzeFinancials = (graphId: string, message: string) =>
|
|
193
|
+
getExtensions().agent.analyzeFinancials(graphId, message)
|
package/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from './client';
|
|
2
|
-
import type { RegisterUserData, RegisterUserResponses, RegisterUserErrors, LoginUserData, LoginUserResponses, LoginUserErrors, LogoutUserData, LogoutUserResponses, GetCurrentAuthUserData, GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, RefreshAuthSessionData, RefreshAuthSessionResponses, RefreshAuthSessionErrors, ResendVerificationEmailData, ResendVerificationEmailResponses, ResendVerificationEmailErrors, VerifyEmailData, VerifyEmailResponses, VerifyEmailErrors, GetPasswordPolicyData, GetPasswordPolicyResponses, CheckPasswordStrengthData, CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, ForgotPasswordData, ForgotPasswordResponses, ForgotPasswordErrors, ValidateResetTokenData, ValidateResetTokenResponses, ValidateResetTokenErrors, ResetPasswordData, ResetPasswordResponses, ResetPasswordErrors, GenerateSsoTokenData, GenerateSsoTokenResponses, GenerateSsoTokenErrors, SsoTokenExchangeData, SsoTokenExchangeResponses, SsoTokenExchangeErrors, CompleteSsoAuthData, CompleteSsoAuthResponses, CompleteSsoAuthErrors, GetCaptchaConfigData, GetCaptchaConfigResponses, GetServiceStatusData, GetServiceStatusResponses, GetCurrentUserData, GetCurrentUserResponses, UpdateUserData, UpdateUserResponses, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordResponses, UpdateUserPasswordErrors, ListUserApiKeysData, ListUserApiKeysResponses, CreateUserApiKeyData, CreateUserApiKeyResponses, CreateUserApiKeyErrors, RevokeUserApiKeyData, RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, UpdateUserApiKeyData, UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, ListUserOrgsData, ListUserOrgsResponses, CreateOrgData, CreateOrgResponses, CreateOrgErrors, GetOrgData, GetOrgResponses, GetOrgErrors, UpdateOrgData, UpdateOrgResponses, UpdateOrgErrors, ListOrgGraphsData, ListOrgGraphsResponses, ListOrgGraphsErrors, ListOrgMembersData, ListOrgMembersResponses, ListOrgMembersErrors, InviteOrgMemberData, InviteOrgMemberResponses, InviteOrgMemberErrors, RemoveOrgMemberData, RemoveOrgMemberResponses, RemoveOrgMemberErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleResponses, UpdateOrgMemberRoleErrors, GetOrgLimitsData, GetOrgLimitsResponses, GetOrgLimitsErrors, GetOrgUsageData, GetOrgUsageResponses, GetOrgUsageErrors, ListConnectionsData, ListConnectionsResponses, ListConnectionsErrors, CreateConnectionData, CreateConnectionResponses, CreateConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsResponses, GetConnectionOptionsErrors, ExchangeLinkTokenData, ExchangeLinkTokenResponses, ExchangeLinkTokenErrors, CreateLinkTokenData, CreateLinkTokenResponses, CreateLinkTokenErrors, InitOAuthData, InitOAuthResponses, InitOAuthErrors, OauthCallbackData, OauthCallbackResponses, OauthCallbackErrors, DeleteConnectionData, DeleteConnectionResponses, DeleteConnectionErrors, GetConnectionData, GetConnectionResponses, GetConnectionErrors, SyncConnectionData, SyncConnectionResponses, SyncConnectionErrors,
|
|
2
|
+
import type { RegisterUserData, RegisterUserResponses, RegisterUserErrors, LoginUserData, LoginUserResponses, LoginUserErrors, LogoutUserData, LogoutUserResponses, GetCurrentAuthUserData, GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, RefreshAuthSessionData, RefreshAuthSessionResponses, RefreshAuthSessionErrors, ResendVerificationEmailData, ResendVerificationEmailResponses, ResendVerificationEmailErrors, VerifyEmailData, VerifyEmailResponses, VerifyEmailErrors, GetPasswordPolicyData, GetPasswordPolicyResponses, CheckPasswordStrengthData, CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, ForgotPasswordData, ForgotPasswordResponses, ForgotPasswordErrors, ValidateResetTokenData, ValidateResetTokenResponses, ValidateResetTokenErrors, ResetPasswordData, ResetPasswordResponses, ResetPasswordErrors, GenerateSsoTokenData, GenerateSsoTokenResponses, GenerateSsoTokenErrors, SsoTokenExchangeData, SsoTokenExchangeResponses, SsoTokenExchangeErrors, CompleteSsoAuthData, CompleteSsoAuthResponses, CompleteSsoAuthErrors, GetCaptchaConfigData, GetCaptchaConfigResponses, GetServiceStatusData, GetServiceStatusResponses, GetCurrentUserData, GetCurrentUserResponses, UpdateUserData, UpdateUserResponses, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordResponses, UpdateUserPasswordErrors, ListUserApiKeysData, ListUserApiKeysResponses, CreateUserApiKeyData, CreateUserApiKeyResponses, CreateUserApiKeyErrors, RevokeUserApiKeyData, RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, UpdateUserApiKeyData, UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, ListUserOrgsData, ListUserOrgsResponses, CreateOrgData, CreateOrgResponses, CreateOrgErrors, GetOrgData, GetOrgResponses, GetOrgErrors, UpdateOrgData, UpdateOrgResponses, UpdateOrgErrors, ListOrgGraphsData, ListOrgGraphsResponses, ListOrgGraphsErrors, ListOrgMembersData, ListOrgMembersResponses, ListOrgMembersErrors, InviteOrgMemberData, InviteOrgMemberResponses, InviteOrgMemberErrors, RemoveOrgMemberData, RemoveOrgMemberResponses, RemoveOrgMemberErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleResponses, UpdateOrgMemberRoleErrors, GetOrgLimitsData, GetOrgLimitsResponses, GetOrgLimitsErrors, GetOrgUsageData, GetOrgUsageResponses, GetOrgUsageErrors, ListConnectionsData, ListConnectionsResponses, ListConnectionsErrors, CreateConnectionData, CreateConnectionResponses, CreateConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsResponses, GetConnectionOptionsErrors, ExchangeLinkTokenData, ExchangeLinkTokenResponses, ExchangeLinkTokenErrors, CreateLinkTokenData, CreateLinkTokenResponses, CreateLinkTokenErrors, InitOAuthData, InitOAuthResponses, InitOAuthErrors, OauthCallbackData, OauthCallbackResponses, OauthCallbackErrors, DeleteConnectionData, DeleteConnectionResponses, DeleteConnectionErrors, GetConnectionData, GetConnectionResponses, GetConnectionErrors, SyncConnectionData, SyncConnectionResponses, SyncConnectionErrors, ListAgentsData, ListAgentsResponses, ListAgentsErrors, AutoSelectAgentData, AutoSelectAgentResponses, AutoSelectAgentErrors, GetAgentMetadataData, GetAgentMetadataResponses, GetAgentMetadataErrors, ExecuteSpecificAgentData, ExecuteSpecificAgentResponses, ExecuteSpecificAgentErrors, BatchProcessQueriesData, BatchProcessQueriesResponses, BatchProcessQueriesErrors, RecommendAgentData, RecommendAgentResponses, RecommendAgentErrors, ListMcpToolsData, ListMcpToolsResponses, ListMcpToolsErrors, CallMcpToolData, CallMcpToolResponses, CallMcpToolErrors, ListBackupsData, ListBackupsResponses, ListBackupsErrors, CreateBackupData, CreateBackupResponses, CreateBackupErrors, GetBackupDownloadUrlData, GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, RestoreBackupData, RestoreBackupResponses, RestoreBackupErrors, GetBackupStatsData, GetBackupStatsResponses, GetBackupStatsErrors, GetGraphMetricsData, GetGraphMetricsResponses, GetGraphMetricsErrors, GetGraphUsageAnalyticsData, GetGraphUsageAnalyticsResponses, GetGraphUsageAnalyticsErrors, ExecuteCypherQueryData, ExecuteCypherQueryResponses, ExecuteCypherQueryErrors, GetGraphSchemaData, GetGraphSchemaResponses, GetGraphSchemaErrors, ExportGraphSchemaData, ExportGraphSchemaResponses, ExportGraphSchemaErrors, ValidateSchemaData, ValidateSchemaResponses, ValidateSchemaErrors, GetCreditSummaryData, GetCreditSummaryResponses, GetCreditSummaryErrors, ListCreditTransactionsData, ListCreditTransactionsResponses, ListCreditTransactionsErrors, CheckCreditBalanceData, CheckCreditBalanceResponses, CheckCreditBalanceErrors, GetStorageUsageData, GetStorageUsageResponses, GetStorageUsageErrors, CheckStorageLimitsData, CheckStorageLimitsResponses, CheckStorageLimitsErrors, GetDatabaseHealthData, GetDatabaseHealthResponses, GetDatabaseHealthErrors, GetDatabaseInfoData, GetDatabaseInfoResponses, GetDatabaseInfoErrors, GetGraphLimitsData, GetGraphLimitsResponses, GetGraphLimitsErrors, ListSubgraphsData, ListSubgraphsResponses, ListSubgraphsErrors, CreateSubgraphData, CreateSubgraphResponses, CreateSubgraphErrors, DeleteSubgraphData, DeleteSubgraphResponses, DeleteSubgraphErrors, GetSubgraphInfoData, GetSubgraphInfoResponses, GetSubgraphInfoErrors, GetSubgraphQuotaData, GetSubgraphQuotaResponses, GetSubgraphQuotaErrors, CancelSubscriptionData, CancelSubscriptionResponses, CancelSubscriptionErrors, GetGraphSubscriptionData, GetGraphSubscriptionResponses, GetGraphSubscriptionErrors, CreateRepositorySubscriptionData, CreateRepositorySubscriptionResponses, CreateRepositorySubscriptionErrors, UpgradeSubscriptionData, UpgradeSubscriptionResponses, UpgradeSubscriptionErrors, ListTablesData, ListTablesResponses, ListTablesErrors, ListTableFilesData, ListTableFilesResponses, ListTableFilesErrors, GetUploadUrlData, GetUploadUrlResponses, GetUploadUrlErrors, DeleteFileData, DeleteFileResponses, DeleteFileErrors, GetFileInfoData, GetFileInfoResponses, GetFileInfoErrors, UpdateFileStatusData, UpdateFileStatusResponses, UpdateFileStatusErrors, IngestTablesData, IngestTablesResponses, IngestTablesErrors, QueryTablesData, QueryTablesResponses, QueryTablesErrors, GetGraphsData, GetGraphsResponses, GetGraphsErrors, CreateGraphData, CreateGraphResponses, CreateGraphErrors, GetAvailableExtensionsData, GetAvailableExtensionsResponses, GetAvailableExtensionsErrors, GetAvailableGraphTiersData, GetAvailableGraphTiersResponses, GetAvailableGraphTiersErrors, SelectGraphData, SelectGraphResponses, SelectGraphErrors, GetServiceOfferingsData, GetServiceOfferingsResponses, GetServiceOfferingsErrors, StreamOperationEventsData, StreamOperationEventsResponses, StreamOperationEventsErrors, GetOperationStatusData, GetOperationStatusResponses, GetOperationStatusErrors, CancelOperationData, CancelOperationResponses, CancelOperationErrors, GetOrgBillingCustomerData, GetOrgBillingCustomerResponses, GetOrgBillingCustomerErrors, UpdateOrgPaymentMethodData, UpdateOrgPaymentMethodResponses, UpdateOrgPaymentMethodErrors, ListOrgSubscriptionsData, ListOrgSubscriptionsResponses, ListOrgSubscriptionsErrors, GetOrgSubscriptionData, GetOrgSubscriptionResponses, GetOrgSubscriptionErrors, CancelOrgSubscriptionData, CancelOrgSubscriptionResponses, CancelOrgSubscriptionErrors, ListOrgInvoicesData, ListOrgInvoicesResponses, ListOrgInvoicesErrors, GetOrgUpcomingInvoiceData, GetOrgUpcomingInvoiceResponses, GetOrgUpcomingInvoiceErrors, CreateCheckoutSessionData, CreateCheckoutSessionResponses, CreateCheckoutSessionErrors, GetCheckoutStatusData, GetCheckoutStatusResponses, GetCheckoutStatusErrors } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -392,9 +392,22 @@ export declare const getConnection: <ThrowOnError extends boolean = false>(optio
|
|
|
392
392
|
* Returns a task ID for monitoring sync progress.
|
|
393
393
|
*/
|
|
394
394
|
export declare const syncConnection: <ThrowOnError extends boolean = false>(options: Options<SyncConnectionData, ThrowOnError>) => import("./client").RequestResult<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError, "fields">;
|
|
395
|
+
/**
|
|
396
|
+
* List available agents
|
|
397
|
+
* Get a comprehensive list of all available agents with their metadata.
|
|
398
|
+
*
|
|
399
|
+
* **Returns:**
|
|
400
|
+
* - Agent types and names
|
|
401
|
+
* - Capabilities and supported modes
|
|
402
|
+
* - Version information
|
|
403
|
+
* - Credit requirements
|
|
404
|
+
*
|
|
405
|
+
* Use the optional `capability` filter to find agents with specific capabilities.
|
|
406
|
+
*/
|
|
407
|
+
export declare const listAgents: <ThrowOnError extends boolean = false>(options: Options<ListAgentsData, ThrowOnError>) => import("./client").RequestResult<ListAgentsResponses, ListAgentsErrors, ThrowOnError, "fields">;
|
|
395
408
|
/**
|
|
396
409
|
* Auto-select agent for query
|
|
397
|
-
* Automatically select the best agent for your query.
|
|
410
|
+
* Automatically select the best agent for your query with intelligent execution strategy.
|
|
398
411
|
*
|
|
399
412
|
* **Agent Selection Process:**
|
|
400
413
|
*
|
|
@@ -403,7 +416,8 @@ export declare const syncConnection: <ThrowOnError extends boolean = false>(opti
|
|
|
403
416
|
* 2. Enriching context with RAG if enabled
|
|
404
417
|
* 3. Evaluating all available agents against selection criteria
|
|
405
418
|
* 4. Selecting the best match based on confidence scores
|
|
406
|
-
* 5.
|
|
419
|
+
* 5. Choosing execution strategy (sync/SSE/async) based on expected time
|
|
420
|
+
* 6. Executing the query with the selected agent
|
|
407
421
|
*
|
|
408
422
|
* **Available Agent Types:**
|
|
409
423
|
* - `financial`: Financial analysis, SEC filings, company metrics
|
|
@@ -416,6 +430,14 @@ export declare const syncConnection: <ThrowOnError extends boolean = false>(opti
|
|
|
416
430
|
* - `extended`: Comprehensive analysis (~15-60s), deep research
|
|
417
431
|
* - `streaming`: Real-time response streaming
|
|
418
432
|
*
|
|
433
|
+
* **Execution Strategies (automatic):**
|
|
434
|
+
* - Fast operations (<5s): Immediate synchronous response
|
|
435
|
+
* - Medium operations (5-30s): SSE streaming with progress updates
|
|
436
|
+
* - Long operations (>30s): Async Celery worker with operation tracking
|
|
437
|
+
*
|
|
438
|
+
* **Response Mode Override:**
|
|
439
|
+
* Use query parameter `?mode=sync|async` to override automatic strategy selection.
|
|
440
|
+
*
|
|
419
441
|
* **Confidence Score Interpretation:**
|
|
420
442
|
* - `0.9-1.0`: High confidence, agent is ideal match
|
|
421
443
|
* - `0.7-0.9`: Good confidence, agent is suitable
|
|
@@ -438,15 +460,38 @@ export declare const syncConnection: <ThrowOnError extends boolean = false>(opti
|
|
|
438
460
|
* See request/response examples in the "Examples" dropdown below.
|
|
439
461
|
*/
|
|
440
462
|
export declare const autoSelectAgent: <ThrowOnError extends boolean = false>(options: Options<AutoSelectAgentData, ThrowOnError>) => import("./client").RequestResult<AutoSelectAgentResponses, AutoSelectAgentErrors, ThrowOnError, "fields">;
|
|
463
|
+
/**
|
|
464
|
+
* Get agent metadata
|
|
465
|
+
* Get comprehensive metadata for a specific agent type.
|
|
466
|
+
*
|
|
467
|
+
* **Returns:**
|
|
468
|
+
* - Agent name and description
|
|
469
|
+
* - Version information
|
|
470
|
+
* - Supported capabilities and modes
|
|
471
|
+
* - Credit requirements
|
|
472
|
+
* - Author and tags
|
|
473
|
+
* - Configuration options
|
|
474
|
+
*
|
|
475
|
+
* Use this to understand agent capabilities before execution.
|
|
476
|
+
*/
|
|
477
|
+
export declare const getAgentMetadata: <ThrowOnError extends boolean = false>(options: Options<GetAgentMetadataData, ThrowOnError>) => import("./client").RequestResult<GetAgentMetadataResponses, GetAgentMetadataErrors, ThrowOnError, "fields">;
|
|
441
478
|
/**
|
|
442
479
|
* Execute specific agent
|
|
443
|
-
* Execute a specific agent type directly.
|
|
480
|
+
* Execute a specific agent type directly with intelligent execution strategy.
|
|
444
481
|
*
|
|
445
482
|
* Available agents:
|
|
446
483
|
* - **financial**: Financial analysis, SEC filings, accounting data
|
|
447
484
|
* - **research**: Deep research and comprehensive analysis
|
|
448
485
|
* - **rag**: Fast retrieval without AI (no credits required)
|
|
449
486
|
*
|
|
487
|
+
* **Execution Strategies (automatic):**
|
|
488
|
+
* - Fast operations (<5s): Immediate synchronous response
|
|
489
|
+
* - Medium operations (5-30s): SSE streaming with progress updates
|
|
490
|
+
* - Long operations (>30s): Async Celery worker with operation tracking
|
|
491
|
+
*
|
|
492
|
+
* **Response Mode Override:**
|
|
493
|
+
* Use query parameter `?mode=sync|async` to override automatic strategy selection.
|
|
494
|
+
*
|
|
450
495
|
* Use this endpoint when you know which agent you want to use.
|
|
451
496
|
*/
|
|
452
497
|
export declare const executeSpecificAgent: <ThrowOnError extends boolean = false>(options: Options<ExecuteSpecificAgentData, ThrowOnError>) => import("./client").RequestResult<ExecuteSpecificAgentResponses, ExecuteSpecificAgentErrors, ThrowOnError, "fields">;
|
|
@@ -468,34 +513,6 @@ export declare const executeSpecificAgent: <ThrowOnError extends boolean = false
|
|
|
468
513
|
* Returns individual results for each query with execution metrics.
|
|
469
514
|
*/
|
|
470
515
|
export declare const batchProcessQueries: <ThrowOnError extends boolean = false>(options: Options<BatchProcessQueriesData, ThrowOnError>) => import("./client").RequestResult<BatchProcessQueriesResponses, BatchProcessQueriesErrors, ThrowOnError, "fields">;
|
|
471
|
-
/**
|
|
472
|
-
* List available agents
|
|
473
|
-
* Get a comprehensive list of all available agents with their metadata.
|
|
474
|
-
*
|
|
475
|
-
* **Returns:**
|
|
476
|
-
* - Agent types and names
|
|
477
|
-
* - Capabilities and supported modes
|
|
478
|
-
* - Version information
|
|
479
|
-
* - Credit requirements
|
|
480
|
-
*
|
|
481
|
-
* Use the optional `capability` filter to find agents with specific capabilities.
|
|
482
|
-
*/
|
|
483
|
-
export declare const listAgents: <ThrowOnError extends boolean = false>(options: Options<ListAgentsData, ThrowOnError>) => import("./client").RequestResult<ListAgentsResponses, ListAgentsErrors, ThrowOnError, "fields">;
|
|
484
|
-
/**
|
|
485
|
-
* Get agent metadata
|
|
486
|
-
* Get comprehensive metadata for a specific agent type.
|
|
487
|
-
*
|
|
488
|
-
* **Returns:**
|
|
489
|
-
* - Agent name and description
|
|
490
|
-
* - Version information
|
|
491
|
-
* - Supported capabilities and modes
|
|
492
|
-
* - Credit requirements
|
|
493
|
-
* - Author and tags
|
|
494
|
-
* - Configuration options
|
|
495
|
-
*
|
|
496
|
-
* Use this to understand agent capabilities before execution.
|
|
497
|
-
*/
|
|
498
|
-
export declare const getAgentMetadata: <ThrowOnError extends boolean = false>(options: Options<GetAgentMetadataData, ThrowOnError>) => import("./client").RequestResult<GetAgentMetadataResponses, GetAgentMetadataErrors, ThrowOnError, "fields">;
|
|
499
516
|
/**
|
|
500
517
|
* Get agent recommendations
|
|
501
518
|
* Get intelligent agent recommendations for a specific query.
|
package/sdk.gen.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.batchProcessQueries = exports.executeSpecificAgent = exports.getAgentMetadata = exports.autoSelectAgent = exports.listAgents = exports.syncConnection = exports.getConnection = exports.deleteConnection = exports.oauthCallback = exports.initOAuth = exports.createLinkToken = exports.exchangeLinkToken = exports.getConnectionOptions = exports.createConnection = exports.listConnections = exports.getOrgUsage = exports.getOrgLimits = exports.updateOrgMemberRole = exports.removeOrgMember = exports.inviteOrgMember = exports.listOrgMembers = exports.listOrgGraphs = exports.updateOrg = exports.getOrg = exports.createOrg = exports.listUserOrgs = exports.updateUserApiKey = exports.revokeUserApiKey = exports.createUserApiKey = exports.listUserApiKeys = exports.updateUserPassword = exports.updateUser = exports.getCurrentUser = exports.getServiceStatus = exports.getCaptchaConfig = exports.completeSsoAuth = exports.ssoTokenExchange = exports.generateSsoToken = exports.resetPassword = exports.validateResetToken = exports.forgotPassword = exports.checkPasswordStrength = exports.getPasswordPolicy = exports.verifyEmail = exports.resendVerificationEmail = exports.refreshAuthSession = exports.getCurrentAuthUser = exports.logoutUser = exports.loginUser = exports.registerUser = void 0;
|
|
5
5
|
exports.updateOrgPaymentMethod = exports.getOrgBillingCustomer = exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getAvailableGraphTiers = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.queryTables = exports.ingestTables = exports.updateFileStatus = exports.getFileInfo = exports.deleteFile = exports.getUploadUrl = exports.listTableFiles = exports.listTables = exports.upgradeSubscription = exports.createRepositorySubscription = exports.getGraphSubscription = exports.cancelSubscription = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.deleteSubgraph = exports.createSubgraph = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.checkStorageLimits = exports.getStorageUsage = exports.checkCreditBalance = exports.listCreditTransactions = exports.getCreditSummary = exports.validateSchema = exports.exportGraphSchema = exports.getGraphSchema = exports.executeCypherQuery = exports.getGraphUsageAnalytics = exports.getGraphMetrics = exports.getBackupStats = exports.restoreBackup = exports.getBackupDownloadUrl = exports.createBackup = exports.listBackups = exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = void 0;
|
|
6
6
|
exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = exports.listOrgSubscriptions = void 0;
|
|
7
7
|
const client_gen_1 = require("./client.gen");
|
|
@@ -1022,9 +1022,38 @@ const syncConnection = (options) => {
|
|
|
1022
1022
|
});
|
|
1023
1023
|
};
|
|
1024
1024
|
exports.syncConnection = syncConnection;
|
|
1025
|
+
/**
|
|
1026
|
+
* List available agents
|
|
1027
|
+
* Get a comprehensive list of all available agents with their metadata.
|
|
1028
|
+
*
|
|
1029
|
+
* **Returns:**
|
|
1030
|
+
* - Agent types and names
|
|
1031
|
+
* - Capabilities and supported modes
|
|
1032
|
+
* - Version information
|
|
1033
|
+
* - Credit requirements
|
|
1034
|
+
*
|
|
1035
|
+
* Use the optional `capability` filter to find agents with specific capabilities.
|
|
1036
|
+
*/
|
|
1037
|
+
const listAgents = (options) => {
|
|
1038
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1039
|
+
security: [
|
|
1040
|
+
{
|
|
1041
|
+
name: 'X-API-Key',
|
|
1042
|
+
type: 'apiKey'
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
scheme: 'bearer',
|
|
1046
|
+
type: 'http'
|
|
1047
|
+
}
|
|
1048
|
+
],
|
|
1049
|
+
url: '/v1/graphs/{graph_id}/agent',
|
|
1050
|
+
...options
|
|
1051
|
+
});
|
|
1052
|
+
};
|
|
1053
|
+
exports.listAgents = listAgents;
|
|
1025
1054
|
/**
|
|
1026
1055
|
* Auto-select agent for query
|
|
1027
|
-
* Automatically select the best agent for your query.
|
|
1056
|
+
* Automatically select the best agent for your query with intelligent execution strategy.
|
|
1028
1057
|
*
|
|
1029
1058
|
* **Agent Selection Process:**
|
|
1030
1059
|
*
|
|
@@ -1033,7 +1062,8 @@ exports.syncConnection = syncConnection;
|
|
|
1033
1062
|
* 2. Enriching context with RAG if enabled
|
|
1034
1063
|
* 3. Evaluating all available agents against selection criteria
|
|
1035
1064
|
* 4. Selecting the best match based on confidence scores
|
|
1036
|
-
* 5.
|
|
1065
|
+
* 5. Choosing execution strategy (sync/SSE/async) based on expected time
|
|
1066
|
+
* 6. Executing the query with the selected agent
|
|
1037
1067
|
*
|
|
1038
1068
|
* **Available Agent Types:**
|
|
1039
1069
|
* - `financial`: Financial analysis, SEC filings, company metrics
|
|
@@ -1046,6 +1076,14 @@ exports.syncConnection = syncConnection;
|
|
|
1046
1076
|
* - `extended`: Comprehensive analysis (~15-60s), deep research
|
|
1047
1077
|
* - `streaming`: Real-time response streaming
|
|
1048
1078
|
*
|
|
1079
|
+
* **Execution Strategies (automatic):**
|
|
1080
|
+
* - Fast operations (<5s): Immediate synchronous response
|
|
1081
|
+
* - Medium operations (5-30s): SSE streaming with progress updates
|
|
1082
|
+
* - Long operations (>30s): Async Celery worker with operation tracking
|
|
1083
|
+
*
|
|
1084
|
+
* **Response Mode Override:**
|
|
1085
|
+
* Use query parameter `?mode=sync|async` to override automatic strategy selection.
|
|
1086
|
+
*
|
|
1049
1087
|
* **Confidence Score Interpretation:**
|
|
1050
1088
|
* - `0.9-1.0`: High confidence, agent is ideal match
|
|
1051
1089
|
* - `0.7-0.9`: Good confidence, agent is suitable
|
|
@@ -1088,15 +1126,54 @@ const autoSelectAgent = (options) => {
|
|
|
1088
1126
|
});
|
|
1089
1127
|
};
|
|
1090
1128
|
exports.autoSelectAgent = autoSelectAgent;
|
|
1129
|
+
/**
|
|
1130
|
+
* Get agent metadata
|
|
1131
|
+
* Get comprehensive metadata for a specific agent type.
|
|
1132
|
+
*
|
|
1133
|
+
* **Returns:**
|
|
1134
|
+
* - Agent name and description
|
|
1135
|
+
* - Version information
|
|
1136
|
+
* - Supported capabilities and modes
|
|
1137
|
+
* - Credit requirements
|
|
1138
|
+
* - Author and tags
|
|
1139
|
+
* - Configuration options
|
|
1140
|
+
*
|
|
1141
|
+
* Use this to understand agent capabilities before execution.
|
|
1142
|
+
*/
|
|
1143
|
+
const getAgentMetadata = (options) => {
|
|
1144
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1145
|
+
security: [
|
|
1146
|
+
{
|
|
1147
|
+
name: 'X-API-Key',
|
|
1148
|
+
type: 'apiKey'
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
scheme: 'bearer',
|
|
1152
|
+
type: 'http'
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
url: '/v1/graphs/{graph_id}/agent/{agent_type}',
|
|
1156
|
+
...options
|
|
1157
|
+
});
|
|
1158
|
+
};
|
|
1159
|
+
exports.getAgentMetadata = getAgentMetadata;
|
|
1091
1160
|
/**
|
|
1092
1161
|
* Execute specific agent
|
|
1093
|
-
* Execute a specific agent type directly.
|
|
1162
|
+
* Execute a specific agent type directly with intelligent execution strategy.
|
|
1094
1163
|
*
|
|
1095
1164
|
* Available agents:
|
|
1096
1165
|
* - **financial**: Financial analysis, SEC filings, accounting data
|
|
1097
1166
|
* - **research**: Deep research and comprehensive analysis
|
|
1098
1167
|
* - **rag**: Fast retrieval without AI (no credits required)
|
|
1099
1168
|
*
|
|
1169
|
+
* **Execution Strategies (automatic):**
|
|
1170
|
+
* - Fast operations (<5s): Immediate synchronous response
|
|
1171
|
+
* - Medium operations (5-30s): SSE streaming with progress updates
|
|
1172
|
+
* - Long operations (>30s): Async Celery worker with operation tracking
|
|
1173
|
+
*
|
|
1174
|
+
* **Response Mode Override:**
|
|
1175
|
+
* Use query parameter `?mode=sync|async` to override automatic strategy selection.
|
|
1176
|
+
*
|
|
1100
1177
|
* Use this endpoint when you know which agent you want to use.
|
|
1101
1178
|
*/
|
|
1102
1179
|
const executeSpecificAgent = (options) => {
|
|
@@ -1158,66 +1235,6 @@ const batchProcessQueries = (options) => {
|
|
|
1158
1235
|
});
|
|
1159
1236
|
};
|
|
1160
1237
|
exports.batchProcessQueries = batchProcessQueries;
|
|
1161
|
-
/**
|
|
1162
|
-
* List available agents
|
|
1163
|
-
* Get a comprehensive list of all available agents with their metadata.
|
|
1164
|
-
*
|
|
1165
|
-
* **Returns:**
|
|
1166
|
-
* - Agent types and names
|
|
1167
|
-
* - Capabilities and supported modes
|
|
1168
|
-
* - Version information
|
|
1169
|
-
* - Credit requirements
|
|
1170
|
-
*
|
|
1171
|
-
* Use the optional `capability` filter to find agents with specific capabilities.
|
|
1172
|
-
*/
|
|
1173
|
-
const listAgents = (options) => {
|
|
1174
|
-
return (options.client ?? client_gen_1.client).get({
|
|
1175
|
-
security: [
|
|
1176
|
-
{
|
|
1177
|
-
name: 'X-API-Key',
|
|
1178
|
-
type: 'apiKey'
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
scheme: 'bearer',
|
|
1182
|
-
type: 'http'
|
|
1183
|
-
}
|
|
1184
|
-
],
|
|
1185
|
-
url: '/v1/graphs/{graph_id}/agent/list',
|
|
1186
|
-
...options
|
|
1187
|
-
});
|
|
1188
|
-
};
|
|
1189
|
-
exports.listAgents = listAgents;
|
|
1190
|
-
/**
|
|
1191
|
-
* Get agent metadata
|
|
1192
|
-
* Get comprehensive metadata for a specific agent type.
|
|
1193
|
-
*
|
|
1194
|
-
* **Returns:**
|
|
1195
|
-
* - Agent name and description
|
|
1196
|
-
* - Version information
|
|
1197
|
-
* - Supported capabilities and modes
|
|
1198
|
-
* - Credit requirements
|
|
1199
|
-
* - Author and tags
|
|
1200
|
-
* - Configuration options
|
|
1201
|
-
*
|
|
1202
|
-
* Use this to understand agent capabilities before execution.
|
|
1203
|
-
*/
|
|
1204
|
-
const getAgentMetadata = (options) => {
|
|
1205
|
-
return (options.client ?? client_gen_1.client).get({
|
|
1206
|
-
security: [
|
|
1207
|
-
{
|
|
1208
|
-
name: 'X-API-Key',
|
|
1209
|
-
type: 'apiKey'
|
|
1210
|
-
},
|
|
1211
|
-
{
|
|
1212
|
-
scheme: 'bearer',
|
|
1213
|
-
type: 'http'
|
|
1214
|
-
}
|
|
1215
|
-
],
|
|
1216
|
-
url: '/v1/graphs/{graph_id}/agent/{agent_type}/metadata',
|
|
1217
|
-
...options
|
|
1218
|
-
});
|
|
1219
|
-
};
|
|
1220
|
-
exports.getAgentMetadata = getAgentMetadata;
|
|
1221
1238
|
/**
|
|
1222
1239
|
* Get agent recommendations
|
|
1223
1240
|
* Get intelligent agent recommendations for a specific query.
|