@blazingagents/sdk 0.32.0 → 0.33.0
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 +1 -1
- package/dist/client.js +25 -25
- package/dist/contracts/entities/mcp-connections.d.ts +0 -4
- package/dist/contracts/entities/mcp-connections.js +0 -16
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/resources/mcp-connections.js +1 -8
- package/dist/types.d.ts +1 -12
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentClient, AgentsResource, ArtifactsResource, BlazingAgentsOptions, BlazingAgentsRequestOptions, ChatConnectionsResource, ChatDeliveriesResource, ChatInput, ChatResult, CompletionInput, CompletionResult, ContinueChatInput, McpConnectionsResource, MemoriesResource, MerchantBindingsResource, MerchantConnectionResource, MerchantUsageEventsResource, ObjectInput, ObjectResult, PromptsResource, ProvidersResource, SessionsResource, TasksResource, TenantResource, UsageResource, UserClient, WorkspacesResource } from "./types.ts";
|
|
2
2
|
export declare class BlazingAgents {
|
|
3
|
-
private
|
|
3
|
+
#private;
|
|
4
4
|
readonly chatConnections: ChatConnectionsResource;
|
|
5
5
|
readonly chatDeliveries: ChatDeliveriesResource;
|
|
6
6
|
readonly agents: AgentsResource;
|
package/dist/client.js
CHANGED
|
@@ -58,7 +58,7 @@ function createUserClient(config) {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
export class BlazingAgents {
|
|
61
|
-
config;
|
|
61
|
+
#config;
|
|
62
62
|
chatConnections;
|
|
63
63
|
chatDeliveries;
|
|
64
64
|
agents;
|
|
@@ -80,7 +80,7 @@ export class BlazingAgents {
|
|
|
80
80
|
* @param options - Configuration for this operation.
|
|
81
81
|
*/
|
|
82
82
|
constructor(options) {
|
|
83
|
-
this
|
|
83
|
+
this.#config = {
|
|
84
84
|
apiKey: options.apiKey,
|
|
85
85
|
baseUrl: (options.baseUrl ?? DEFAULT_BASE_URL).replace(TRAILING_SLASH_RE, ""),
|
|
86
86
|
...(options.fetch ? { fetch: options.fetch } : {}),
|
|
@@ -89,29 +89,29 @@ export class BlazingAgents {
|
|
|
89
89
|
: { clientRequestId: options.clientRequestId }),
|
|
90
90
|
onResponse: options.onResponse,
|
|
91
91
|
};
|
|
92
|
-
this.chatConnections = createChatConnectionsResource(this
|
|
93
|
-
this.chatDeliveries = createChatDeliveriesResource(this
|
|
94
|
-
this.agents = createAgentsResource(this
|
|
95
|
-
this.sessions = createSessionsResource(this
|
|
96
|
-
this.providers = createProvidersResource(this
|
|
97
|
-
this.mcpConnections = createMcpConnectionsResource(this
|
|
98
|
-
this.memories = createMemoriesResource(this
|
|
99
|
-
this.prompts = createPromptsResource(this
|
|
100
|
-
this.usage = createUsageResource(this
|
|
101
|
-
this.artifacts = createArtifactsResource(this
|
|
102
|
-
this.tasks = createTasksResource(this
|
|
103
|
-
this.tenant = createTenantResource(this
|
|
104
|
-
this.workspaces = createWorkspacesResource(this
|
|
105
|
-
this.merchantConnection = createMerchantConnectionResource(this
|
|
106
|
-
this.merchantBindings = createMerchantBindingsResource(this
|
|
107
|
-
this.merchantUsageEvents = createMerchantUsageEventsResource(this
|
|
92
|
+
this.chatConnections = createChatConnectionsResource(this.#config);
|
|
93
|
+
this.chatDeliveries = createChatDeliveriesResource(this.#config);
|
|
94
|
+
this.agents = createAgentsResource(this.#config);
|
|
95
|
+
this.sessions = createSessionsResource(this.#config);
|
|
96
|
+
this.providers = createProvidersResource(this.#config);
|
|
97
|
+
this.mcpConnections = createMcpConnectionsResource(this.#config);
|
|
98
|
+
this.memories = createMemoriesResource(this.#config);
|
|
99
|
+
this.prompts = createPromptsResource(this.#config);
|
|
100
|
+
this.usage = createUsageResource(this.#config);
|
|
101
|
+
this.artifacts = createArtifactsResource(this.#config);
|
|
102
|
+
this.tasks = createTasksResource(this.#config);
|
|
103
|
+
this.tenant = createTenantResource(this.#config);
|
|
104
|
+
this.workspaces = createWorkspacesResource(this.#config);
|
|
105
|
+
this.merchantConnection = createMerchantConnectionResource(this.#config);
|
|
106
|
+
this.merchantBindings = createMerchantBindingsResource(this.#config);
|
|
107
|
+
this.merchantUsageEvents = createMerchantUsageEventsResource(this.#config);
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
110
|
* Returns the Skill operations for the selected Agent.
|
|
111
111
|
* @returns The selected Agent Skill client.
|
|
112
112
|
*/
|
|
113
113
|
agent({ agentId }) {
|
|
114
|
-
return { skills: createAgentSkillsResource(this
|
|
114
|
+
return { skills: createAgentSkillsResource(this.#config, agentId) };
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
117
|
* Scope requests to one end user. IDs use printable ASCII, at most 256 characters, without leading or trailing spaces.
|
|
@@ -121,7 +121,7 @@ export class BlazingAgents {
|
|
|
121
121
|
*/
|
|
122
122
|
forUser(userId) {
|
|
123
123
|
return createUserClient({
|
|
124
|
-
...this
|
|
124
|
+
...this.#config,
|
|
125
125
|
scopeUserId: scopedUserIdSchema.parse(userId),
|
|
126
126
|
});
|
|
127
127
|
}
|
|
@@ -133,7 +133,7 @@ export class BlazingAgents {
|
|
|
133
133
|
* @returns The Session ID promise and single-owner SSE accessors.
|
|
134
134
|
*/
|
|
135
135
|
chat(input) {
|
|
136
|
-
return chat(this
|
|
136
|
+
return chat(this.#config, input);
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
139
|
* Records a complete Tool approval round and streams its continuation.
|
|
@@ -142,7 +142,7 @@ export class BlazingAgents {
|
|
|
142
142
|
* @returns The Session ID promise and continuation SSE accessors.
|
|
143
143
|
*/
|
|
144
144
|
continueChat(input) {
|
|
145
|
-
return continueChat(this
|
|
145
|
+
return continueChat(this.#config, input);
|
|
146
146
|
}
|
|
147
147
|
/**
|
|
148
148
|
* `POST /v1/agents/:agentId/generation` — stateless one-shot text
|
|
@@ -151,7 +151,7 @@ export class BlazingAgents {
|
|
|
151
151
|
* @returns Independent text stream, final text promise, and response relay.
|
|
152
152
|
*/
|
|
153
153
|
completion(input) {
|
|
154
|
-
return completion(this
|
|
154
|
+
return completion(this.#config, input);
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
157
|
* `POST /v1/agents/:agentId/generation` — stateless structured output.
|
|
@@ -160,7 +160,7 @@ export class BlazingAgents {
|
|
|
160
160
|
* @returns Partial JSON objects, a final JSON promise, and a text response relay.
|
|
161
161
|
*/
|
|
162
162
|
object(input) {
|
|
163
|
-
return objectGeneration(this
|
|
163
|
+
return objectGeneration(this.#config, input);
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
166
|
* Returns a lightweight client view whose resource and generation calls
|
|
@@ -170,7 +170,7 @@ export class BlazingAgents {
|
|
|
170
170
|
*/
|
|
171
171
|
withOptions(options) {
|
|
172
172
|
return new BlazingAgents({
|
|
173
|
-
...this
|
|
173
|
+
...this.#config,
|
|
174
174
|
clientRequestId: options.clientRequestId,
|
|
175
175
|
});
|
|
176
176
|
}
|
|
@@ -142,9 +142,6 @@ export declare const reconnectMcpConnectionBodySchema: z.ZodDiscriminatedUnion<[
|
|
|
142
142
|
scope: z.ZodOptional<z.ZodString>;
|
|
143
143
|
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
144
144
|
}, z.core.$strict>], "authType">;
|
|
145
|
-
export declare const mcpConnectionOauthConnectResponseSchema: z.ZodObject<{
|
|
146
|
-
authorizationUrl: z.ZodString;
|
|
147
|
-
}, z.core.$strip>;
|
|
148
145
|
export declare const mcpOauthAuthorizationLaunchResponseSchema: z.ZodObject<{
|
|
149
146
|
authorizationUrl: z.ZodString;
|
|
150
147
|
}, z.core.$strip>;
|
|
@@ -249,7 +246,6 @@ export type UpdateMcpConnectionBody = z.infer<typeof updateMcpConnectionBodySche
|
|
|
249
246
|
export type ReconnectMcpConnectionBody = z.infer<typeof reconnectMcpConnectionBodySchema>;
|
|
250
247
|
export type McpConnectionTestResponse = z.infer<typeof mcpConnectionTestResponseSchema>;
|
|
251
248
|
export type McpConnectionReconnectResult = z.infer<typeof mcpConnectionReconnectResultSchema>;
|
|
252
|
-
export type McpConnectionOauthConnectResponse = z.infer<typeof mcpConnectionOauthConnectResponseSchema>;
|
|
253
249
|
export type McpAttachmentResponse = z.infer<typeof mcpAttachmentResponseSchema>;
|
|
254
250
|
export type McpAttachmentsResponse = z.infer<typeof mcpAttachmentsResponseSchema>;
|
|
255
251
|
export type UpdateMcpAttachmentBody = z.infer<typeof updateMcpAttachmentBodySchema>;
|
|
@@ -212,22 +212,6 @@ export const reconnectMcpConnectionBodySchema = z
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
});
|
|
215
|
-
export const mcpConnectionOauthConnectResponseSchema = z
|
|
216
|
-
.object({
|
|
217
|
-
authorizationUrl: z
|
|
218
|
-
.string()
|
|
219
|
-
.url()
|
|
220
|
-
.refine((value) => {
|
|
221
|
-
const url = new URL(value);
|
|
222
|
-
return (url.pathname === "/app/mcp-connections" &&
|
|
223
|
-
url.username === "" &&
|
|
224
|
-
url.password === "" &&
|
|
225
|
-
url.hash === "" &&
|
|
226
|
-
url.searchParams.size === 1 &&
|
|
227
|
-
OPAQUE_MCP_OAUTH_TOKEN_PATTERN.test(url.searchParams.get("mcpOAuthSetup") ?? ""));
|
|
228
|
-
}),
|
|
229
|
-
})
|
|
230
|
-
.strip();
|
|
231
215
|
export const mcpOauthAuthorizationLaunchResponseSchema = z
|
|
232
216
|
.object({
|
|
233
217
|
authorizationUrl: z
|
|
@@ -10,7 +10,7 @@ export { attributionCreateInputSchema, metadataSchema, } from "./entities/attrib
|
|
|
10
10
|
export type { ChatFunctionCallEvent, ChatFunctionDefinition, ChatFunctionDefinitions, ChatFunctionOutcome, ClaimChatFunctionBody, PromptVariables, ResolveChatFunctionBody, UsageSummary, } from "./entities/chat.ts";
|
|
11
11
|
export { blazingAgentsChatMessageMetadataSchema, chatFunctionCallEventSchema, chatFunctionDefinitionSchema, chatFunctionDefinitionsSchema, chatFunctionOutcomeSchema, chatModeSchema, chatRequestBodySchema, chatTriggerSchema, claimChatFunctionBodySchema, claimChatFunctionResponseSchema, generationRequestBodySchema, jsonSchemaShapeSchema, MAX_CHAT_FUNCTION_DEFINITIONS_BYTES, MAX_CHAT_FUNCTION_PAYLOAD_BYTES, MAX_CHAT_FUNCTIONS, promptVariablesSchema, resolveChatFunctionBodySchema, resolveChatFunctionResponseSchema, usageSummarySchema, } from "./entities/chat.ts";
|
|
12
12
|
export { chatConfigurationSchema, chatConnectionSchema, chatConnectionsResponseSchema, chatCredentialsSchema, chatDeliveriesResponseSchema, chatDeliveryListSchema, chatDeliveryListStatusSchema, chatDeliveryResultSchema, chatDeliverySchema, chatDeliveryStatusSchema, chatHealthCheckSchema, chatHealthSchema, chatIdentitySchema, createChatConnectionBodySchema, repairChatDeliveryBodySchema, rotateChatConnectionBodySchema, tenantChatDeliverySchema, updateChatConnectionBodySchema, } from "./entities/chat-connections.ts";
|
|
13
|
-
export { approveMcpOauthAuthorizationBodySchema, createMcpConnectionBodySchema, mcpAttachmentResponseSchema, mcpAttachmentsResponseSchema, mcpConnectionAuthTypeSchema,
|
|
13
|
+
export { approveMcpOauthAuthorizationBodySchema, createMcpConnectionBodySchema, mcpAttachmentResponseSchema, mcpAttachmentsResponseSchema, mcpConnectionAuthTypeSchema, mcpConnectionReconnectResultSchema, mcpConnectionResponseSchema, mcpConnectionStatusSchema, mcpConnectionsResponseSchema, mcpConnectionTestErrorCodeSchema, mcpConnectionTestResponseSchema, mcpOauthAuthorizationLaunchResponseSchema, reconnectMcpConnectionBodySchema, updateMcpAttachmentBodySchema, updateMcpConnectionBodySchema, } from "./entities/mcp-connections.ts";
|
|
14
14
|
export { createMemoryBodySchema, memoriesListResponseSchema, memoryResponseSchema, memorySchema, updateMemoryBodySchema, } from "./entities/memories.ts";
|
|
15
15
|
export { createMerchantConnectionBodySchema, merchantBindingResponseSchema, merchantBindingsResponseSchema, merchantConnectionResponseSchema, merchantConnectionSchema, merchantConnectionStatusSchema, merchantCustomerBindingSchema, merchantEnvironmentSchema, merchantGuardSchema, merchantProviderSchema, merchantUsageEventNextAction, merchantUsageEventNextActionSchema, merchantUsageEventSchema, merchantUsageEventStatusSchema, merchantUsageEventsResponseSchema, merchantUsageSummaryQuerySchema, merchantUsageSummaryResponseSchema, merchantUsageSummarySchema, merchantWorkflowIssueSchema, updateMerchantConnectionBodySchema, upsertMerchantBindingBodySchema, } from "./entities/merchant.ts";
|
|
16
16
|
export { createPromptBodySchema, parsePromptVariables, promptResponseSchema, promptsListQuerySchema, promptsResponseSchema, promptTemplateSchema, renderPromptTemplate, updatePromptBodySchema, } from "./entities/prompts.ts";
|
package/dist/contracts/index.js
CHANGED
|
@@ -8,7 +8,7 @@ export { artifactDownloadUrlResponseSchema, artifactListItemSchema, artifactsLis
|
|
|
8
8
|
export { attributionCreateInputSchema, metadataSchema, } from "./entities/attribution.js";
|
|
9
9
|
export { blazingAgentsChatMessageMetadataSchema, chatFunctionCallEventSchema, chatFunctionDefinitionSchema, chatFunctionDefinitionsSchema, chatFunctionOutcomeSchema, chatModeSchema, chatRequestBodySchema, chatTriggerSchema, claimChatFunctionBodySchema, claimChatFunctionResponseSchema, generationRequestBodySchema, jsonSchemaShapeSchema, MAX_CHAT_FUNCTION_DEFINITIONS_BYTES, MAX_CHAT_FUNCTION_PAYLOAD_BYTES, MAX_CHAT_FUNCTIONS, promptVariablesSchema, resolveChatFunctionBodySchema, resolveChatFunctionResponseSchema, usageSummarySchema, } from "./entities/chat.js";
|
|
10
10
|
export { chatConfigurationSchema, chatConnectionSchema, chatConnectionsResponseSchema, chatCredentialsSchema, chatDeliveriesResponseSchema, chatDeliveryListSchema, chatDeliveryListStatusSchema, chatDeliveryResultSchema, chatDeliverySchema, chatDeliveryStatusSchema, chatHealthCheckSchema, chatHealthSchema, chatIdentitySchema, createChatConnectionBodySchema, repairChatDeliveryBodySchema, rotateChatConnectionBodySchema, tenantChatDeliverySchema, updateChatConnectionBodySchema, } from "./entities/chat-connections.js";
|
|
11
|
-
export { approveMcpOauthAuthorizationBodySchema, createMcpConnectionBodySchema, mcpAttachmentResponseSchema, mcpAttachmentsResponseSchema, mcpConnectionAuthTypeSchema,
|
|
11
|
+
export { approveMcpOauthAuthorizationBodySchema, createMcpConnectionBodySchema, mcpAttachmentResponseSchema, mcpAttachmentsResponseSchema, mcpConnectionAuthTypeSchema, mcpConnectionReconnectResultSchema, mcpConnectionResponseSchema, mcpConnectionStatusSchema, mcpConnectionsResponseSchema, mcpConnectionTestErrorCodeSchema, mcpConnectionTestResponseSchema, mcpOauthAuthorizationLaunchResponseSchema, reconnectMcpConnectionBodySchema, updateMcpAttachmentBodySchema, updateMcpConnectionBodySchema, } from "./entities/mcp-connections.js";
|
|
12
12
|
export { createMemoryBodySchema, memoriesListResponseSchema, memoryResponseSchema, memorySchema, updateMemoryBodySchema, } from "./entities/memories.js";
|
|
13
13
|
export { createMerchantConnectionBodySchema, merchantBindingResponseSchema, merchantBindingsResponseSchema, merchantConnectionResponseSchema, merchantConnectionSchema, merchantConnectionStatusSchema, merchantCustomerBindingSchema, merchantEnvironmentSchema, merchantGuardSchema, merchantProviderSchema, merchantUsageEventNextAction, merchantUsageEventNextActionSchema, merchantUsageEventSchema, merchantUsageEventStatusSchema, merchantUsageEventsResponseSchema, merchantUsageSummaryQuerySchema, merchantUsageSummaryResponseSchema, merchantUsageSummarySchema, merchantWorkflowIssueSchema, updateMerchantConnectionBodySchema, upsertMerchantBindingBodySchema, } from "./entities/merchant.js";
|
|
14
14
|
export { createPromptBodySchema, parsePromptVariables, promptResponseSchema, promptsListQuerySchema, promptsResponseSchema, promptTemplateSchema, renderPromptTemplate, updatePromptBodySchema, } from "./entities/prompts.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type { Agent, AgentConfig, AgentResponse, AgentsListQuery, AgentsResponse
|
|
|
12
12
|
export { agentConfigSchema } from "./contracts/entities/agents.ts";
|
|
13
13
|
export type { ArtifactDownloadUrlResponse, ArtifactListItem, ArtifactsListResponse, } from "./contracts/entities/artifacts.ts";
|
|
14
14
|
export type { ChatConfiguration, ChatConnection, ChatConnectionsResponse, ChatCredentials, ChatDeliveriesResponse, ChatDelivery, ChatDeliveryList, ChatDeliveryListStatus, ChatDeliveryResult, ChatDeliveryStatus, ChatHealth, ChatIdentity, CreateChatConnectionBody, RepairChatDeliveryBody, RotateChatConnectionBody, TenantChatDelivery, UpdateChatConnectionBody, } from "./contracts/entities/chat-connections.ts";
|
|
15
|
-
export type { CreateMcpConnectionBody, McpAttachmentResponse, McpAttachmentsResponse, McpConnectionAuthType,
|
|
15
|
+
export type { CreateMcpConnectionBody, McpAttachmentResponse, McpAttachmentsResponse, McpConnectionAuthType, McpConnectionReconnectResult, McpConnectionResponse, McpConnectionStatus, McpConnectionTestResponse, ReconnectMcpConnectionBody, UpdateMcpAttachmentBody, UpdateMcpConnectionBody, } from "./contracts/entities/mcp-connections.ts";
|
|
16
16
|
export type { CreateMerchantConnectionBody, MerchantBindingResponse, MerchantBindingsResponse, MerchantConnection, MerchantConnectionResponse, MerchantCustomerBinding, MerchantGuard, MerchantProviderKind, MerchantUsageEvent, MerchantUsageEventResponse, MerchantUsageEventStatus, MerchantUsageEventsResponse, MerchantUsageSummary, MerchantUsageSummaryResponse, UpdateMerchantConnectionBody, UpsertMerchantBindingBody, } from "./contracts/entities/merchant.ts";
|
|
17
17
|
export type { CreatePromptBody, PromptResponse, PromptsListQuery, PromptsResponse, UpdatePromptBody, } from "./contracts/entities/prompts.ts";
|
|
18
18
|
export type { CreateProviderBody, ProviderListItem, ProviderModel, ProviderModelsResponse, ProviderResponse, ProvidersResponse, ProviderType, ThinkingLevelsResponse, UpdateProviderBody, } from "./contracts/entities/providers.ts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mcpConnectionReconnectResultSchema, mcpConnectionResponseSchema, mcpConnectionsResponseSchema, mcpConnectionTestResponseSchema, reconnectMcpConnectionBodySchema, updateMcpConnectionBodySchema, } from "../contracts/entities/mcp-connections.js";
|
|
2
2
|
import { apiPath, requestJson } from "../http.js";
|
|
3
3
|
/**
|
|
4
4
|
* Builds the Mcp Connections operations using the shared HTTP configuration.
|
|
@@ -12,13 +12,6 @@ export function createMcpConnectionsResource(config) {
|
|
|
12
12
|
method: "POST",
|
|
13
13
|
}, mcpConnectionResponseSchema));
|
|
14
14
|
return {
|
|
15
|
-
/**
|
|
16
|
-
* Starts OAuth authorization for mcp connections. The API serves this
|
|
17
|
-
* route only to a dashboard session and refuses an API key.
|
|
18
|
-
*/
|
|
19
|
-
async connect({ mcpConnectionId, abortSignal }) {
|
|
20
|
-
return await requestJson(config, apiPath `/v1/mcp-connections/${mcpConnectionId}/connect`, { method: "POST", signal: abortSignal }, mcpConnectionOauthConnectResponseSchema);
|
|
21
|
-
},
|
|
22
15
|
create,
|
|
23
16
|
/**
|
|
24
17
|
* Lists one page of mcp connections.
|
package/dist/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Agent, AgentsResponse, CreateAgentBody, UpdateAgentBody } from "./
|
|
|
4
4
|
import type { ArtifactDownloadUrlResponse, ArtifactListItem, ArtifactsListResponse } from "./contracts/entities/artifacts.ts";
|
|
5
5
|
import type { BlazingAgentsChatMessageMetadata } from "./contracts/entities/chat.ts";
|
|
6
6
|
import type { ChatConnection, ChatConnectionsResponse, ChatDeliveriesResponse, ChatDeliveryList, ChatDeliveryListStatus, ChatDeliveryResult, CreateChatConnectionBody, RepairChatDeliveryBody, RotateChatConnectionBody, UpdateChatConnectionBody } from "./contracts/entities/chat-connections.ts";
|
|
7
|
-
import type { CreateMcpConnectionBody, McpAttachmentResponse, McpAttachmentsResponse,
|
|
7
|
+
import type { CreateMcpConnectionBody, McpAttachmentResponse, McpAttachmentsResponse, McpConnectionReconnectResult, McpConnectionResponse, McpConnectionsResponse, McpConnectionTestResponse, ReconnectMcpConnectionBody, UpdateMcpAttachmentBody, UpdateMcpConnectionBody } from "./contracts/entities/mcp-connections.ts";
|
|
8
8
|
import type { CreateMemoryBody, MemoriesListResponse, MemoryResponse, UpdateMemoryBody } from "./contracts/entities/memories.ts";
|
|
9
9
|
import type { CreateMerchantConnectionBody, MerchantBindingResponse, MerchantBindingsResponse, MerchantConnectionResponse, MerchantUsageEventResponse, MerchantUsageEventStatus, MerchantUsageEventsResponse, MerchantUsageSummaryResponse, UpdateMerchantConnectionBody, UpsertMerchantBindingBody } from "./contracts/entities/merchant.ts";
|
|
10
10
|
import type { CreatePromptBody, PromptResponse, PromptsResponse, UpdatePromptBody } from "./contracts/entities/prompts.ts";
|
|
@@ -656,17 +656,6 @@ export interface ProvidersResource {
|
|
|
656
656
|
} & ResourceRequestOptions): Promise<ProviderResponse>;
|
|
657
657
|
}
|
|
658
658
|
export interface McpConnectionsResource {
|
|
659
|
-
/**
|
|
660
|
-
* Starts OAuth authorization for the MCP Connection. The API serves this
|
|
661
|
-
* route only to a dashboard session (`DashboardJwt`) and refuses an API
|
|
662
|
-
* key, so a client built with an API key gets an error.
|
|
663
|
-
* @param input - `mcpConnectionId`; optional abortSignal.
|
|
664
|
-
* @returns The mcp connection oauth connect response.
|
|
665
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
666
|
-
*/
|
|
667
|
-
connect(input: {
|
|
668
|
-
mcpConnectionId: string;
|
|
669
|
-
} & ResourceRequestOptions): Promise<McpConnectionOauthConnectResponse>;
|
|
670
659
|
/**
|
|
671
660
|
* Creates the MCP Connection.
|
|
672
661
|
* @param input - creation fields; optional abortSignal.
|