@blazingagents/sdk 0.32.0 → 0.34.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/entities/sessions.d.ts +7 -11
- package/dist/contracts/entities/sessions.js +18 -6
- package/dist/contracts/entities/spending-limits.d.ts +0 -23
- package/dist/contracts/entities/spending-limits.js +0 -9
- package/dist/contracts/index.d.ts +5 -5
- package/dist/contracts/index.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/resources/mcp-connections.js +1 -8
- package/dist/types.d.ts +4 -15
- 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
|
|
@@ -361,20 +361,16 @@ export declare const continueToolApprovalsBodySchema: z.ZodObject<{
|
|
|
361
361
|
inputSchema: z.ZodCustom<z.core.JSONSchema.JSONSchema, z.core.JSONSchema.JSONSchema>;
|
|
362
362
|
}, z.core.$strict>>>;
|
|
363
363
|
}, z.core.$strict>;
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
* rides here. `turn_interrupted` is never an HTTP error code. The Turn may
|
|
368
|
-
* have saved its work before the cut, so read the Session's messages.
|
|
369
|
-
*/
|
|
370
|
-
export declare const turnInterruptedEventSchema: z.ZodObject<{
|
|
371
|
-
type: z.ZodLiteral<"data-turn-interrupted">;
|
|
364
|
+
export declare const turnStreamErrorEventSchema: z.ZodObject<{
|
|
365
|
+
type: z.ZodLiteral<"data-ba-error">;
|
|
366
|
+
transient: z.ZodLiteral<true>;
|
|
372
367
|
data: z.ZodObject<{
|
|
373
|
-
code: z.
|
|
368
|
+
code: z.ZodCustom<"admin_agent_managed" | "agent_disabled" | "agent_mcp_connection_not_found" | "agent_mcp_connections_invalid" | "api_key_limit_reached" | "artifact_session_cap_reached" | "chat_webhook_conflict" | "chat_webhook_registration_failed" | "checkout_evidence_mismatch" | "forbidden" | "function_call_conflict" | "idempotency_conflict" | "input_idempotency_conflict" | "insufficient_scope" | "internal" | "invalid_cursor" | "invalid_request" | "mcp_connection_authentication_failed" | "mcp_connection_discovery_failed" | "mcp_connection_in_use" | "mcp_connection_invalid" | "mcp_connection_limit_reached" | "mcp_connection_name_conflict" | "mcp_connection_stale_credential_version" | "mcp_connection_unreachable" | "merchant_account_mismatch" | "merchant_balance_required" | "merchant_binding_not_found" | "merchant_binding_required" | "merchant_connection_not_found" | "merchant_credential_invalid" | "merchant_customer_not_found" | "merchant_customer_unmapped" | "merchant_eligibility_unavailable" | "merchant_event_not_found" | "merchant_event_state_conflict" | "merchant_provider_unavailable" | "merchant_subscription_required" | "message_id_conflict" | "message_not_found" | "model_discovery_unsupported" | "model_not_found" | "model_spending_limit_exceeded" | "model_validation_unavailable" | "not_found" | "prompt_variable_missing" | "prompt_variable_unknown" | "provider_historical_use" | "provider_in_use" | "provider_limit_reached" | "provider_name_conflict" | "provider_not_found" | "provider_required" | "quota_exceeded" | "rate_limited" | "service_unavailable" | "session_busy" | "session_fork_deleted" | "session_fork_unavailable" | "session_turn_unresponsive" | "session_version_mismatch" | "skill_invalid_archive" | "skill_invalid_markdown" | "skill_limit_reached" | "skill_name_conflict" | "skill_not_found" | "skill_too_many_files" | "skill_uncompressed_too_large" | "steer_not_available" | "subscription_required" | "task_active_run_exists" | "tenant_deleting" | "tenant_deletion_in_progress" | "tenant_deletion_not_ready" | "tenant_not_deleting" | "tool_approval_continuation_settled" | "tool_approval_decision_conflict" | "turn_interrupted" | "unauthorized" | "usage_credit_required" | "validation_failed" | "workspace_busy" | "workspace_in_use" | "workspace_not_found" | (string & {}), "admin_agent_managed" | "agent_disabled" | "agent_mcp_connection_not_found" | "agent_mcp_connections_invalid" | "api_key_limit_reached" | "artifact_session_cap_reached" | "chat_webhook_conflict" | "chat_webhook_registration_failed" | "checkout_evidence_mismatch" | "forbidden" | "function_call_conflict" | "idempotency_conflict" | "input_idempotency_conflict" | "insufficient_scope" | "internal" | "invalid_cursor" | "invalid_request" | "mcp_connection_authentication_failed" | "mcp_connection_discovery_failed" | "mcp_connection_in_use" | "mcp_connection_invalid" | "mcp_connection_limit_reached" | "mcp_connection_name_conflict" | "mcp_connection_stale_credential_version" | "mcp_connection_unreachable" | "merchant_account_mismatch" | "merchant_balance_required" | "merchant_binding_not_found" | "merchant_binding_required" | "merchant_connection_not_found" | "merchant_credential_invalid" | "merchant_customer_not_found" | "merchant_customer_unmapped" | "merchant_eligibility_unavailable" | "merchant_event_not_found" | "merchant_event_state_conflict" | "merchant_provider_unavailable" | "merchant_subscription_required" | "message_id_conflict" | "message_not_found" | "model_discovery_unsupported" | "model_not_found" | "model_spending_limit_exceeded" | "model_validation_unavailable" | "not_found" | "prompt_variable_missing" | "prompt_variable_unknown" | "provider_historical_use" | "provider_in_use" | "provider_limit_reached" | "provider_name_conflict" | "provider_not_found" | "provider_required" | "quota_exceeded" | "rate_limited" | "service_unavailable" | "session_busy" | "session_fork_deleted" | "session_fork_unavailable" | "session_turn_unresponsive" | "session_version_mismatch" | "skill_invalid_archive" | "skill_invalid_markdown" | "skill_limit_reached" | "skill_name_conflict" | "skill_not_found" | "skill_too_many_files" | "skill_uncompressed_too_large" | "steer_not_available" | "subscription_required" | "task_active_run_exists" | "tenant_deleting" | "tenant_deletion_in_progress" | "tenant_deletion_not_ready" | "tenant_not_deleting" | "tool_approval_continuation_settled" | "tool_approval_decision_conflict" | "turn_interrupted" | "unauthorized" | "usage_credit_required" | "validation_failed" | "workspace_busy" | "workspace_in_use" | "workspace_not_found" | (string & {})>;
|
|
369
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
370
|
+
message: z.ZodString;
|
|
374
371
|
}, z.core.$strict>;
|
|
375
|
-
transient: z.ZodLiteral<true>;
|
|
376
372
|
}, z.core.$strict>;
|
|
377
|
-
export type
|
|
373
|
+
export type TurnStreamErrorEvent = z.infer<typeof turnStreamErrorEventSchema>;
|
|
378
374
|
export type SessionForkedFrom = z.infer<typeof sessionForkedFromSchema>;
|
|
379
375
|
export type SessionResponse = z.infer<typeof sessionResponseSchema>;
|
|
380
376
|
export type SessionsListResponse = z.infer<typeof sessionsListResponseSchema>;
|
|
@@ -135,15 +135,27 @@ export const continueToolApprovalsBodySchema = z
|
|
|
135
135
|
})
|
|
136
136
|
.strict();
|
|
137
137
|
/**
|
|
138
|
-
* Transient event that precedes the `error` chunk when a Turn stream
|
|
138
|
+
* Transient event that precedes the `error` chunk when a Turn stream fails
|
|
139
139
|
* after it started. The `error` chunk has no field for a code, so the code
|
|
140
|
-
* rides here
|
|
141
|
-
*
|
|
140
|
+
* rides here, in the shape of an HTTP error body's `error`. `turn_interrupted`
|
|
141
|
+
* is the one stream-only code: the stream was cut, and the Turn may have saved
|
|
142
|
+
* its work before the cut, so read the Session's messages.
|
|
142
143
|
*/
|
|
143
|
-
|
|
144
|
+
/** Open like an HTTP error code, so a code added after this release still parses. */
|
|
145
|
+
const turnStreamErrorCodeSchema = z.custom((value) => typeof value === "string" && value.length > 0);
|
|
146
|
+
export const turnStreamErrorEventSchema = z
|
|
144
147
|
.object({
|
|
145
|
-
type: z.literal("data-
|
|
146
|
-
data: z.object({ code: z.literal("turn_interrupted") }).strict(),
|
|
148
|
+
type: z.literal("data-ba-error"),
|
|
147
149
|
transient: z.literal(true),
|
|
150
|
+
data: z
|
|
151
|
+
.object({
|
|
152
|
+
code: turnStreamErrorCodeSchema,
|
|
153
|
+
details: z
|
|
154
|
+
.record(z.string(), z.unknown())
|
|
155
|
+
.refine((value) => Object.keys(value).length > 0)
|
|
156
|
+
.optional(),
|
|
157
|
+
message: z.string().min(1),
|
|
158
|
+
})
|
|
159
|
+
.strict(),
|
|
148
160
|
})
|
|
149
161
|
.strict();
|
|
@@ -76,26 +76,3 @@ export type SpendingLimitResponse = z.infer<typeof spendingLimitResponseSchema>;
|
|
|
76
76
|
export type SpendingLimitStopDetails = z.infer<typeof spendingLimitStopDetailsSchema>;
|
|
77
77
|
export type UpdateSpendingLimitBody = z.infer<typeof updateSpendingLimitBodySchema>;
|
|
78
78
|
export declare function nextSpendingLimitReset(schedule: Pick<SpendingLimit, "resetStartDate" | "resetInterval">, after: string | Date): string;
|
|
79
|
-
export declare const spendingLimitStopEventSchema: z.ZodObject<{
|
|
80
|
-
type: z.ZodLiteral<"data-model-spending-limit">;
|
|
81
|
-
data: z.ZodObject<{
|
|
82
|
-
scope: z.ZodEnum<{
|
|
83
|
-
agent: "agent";
|
|
84
|
-
both: "both";
|
|
85
|
-
tenant: "tenant";
|
|
86
|
-
}>;
|
|
87
|
-
reason: z.ZodEnum<{
|
|
88
|
-
exhausted: "exhausted";
|
|
89
|
-
reserved: "reserved";
|
|
90
|
-
unknown_usage: "unknown_usage";
|
|
91
|
-
unpriced: "unpriced";
|
|
92
|
-
}>;
|
|
93
|
-
spentUsd: z.ZodNumber;
|
|
94
|
-
reservedUsd: z.ZodNumber;
|
|
95
|
-
availableUsd: z.ZodNumber;
|
|
96
|
-
nextResetAt: z.ZodNullable<z.ZodISODateTime>;
|
|
97
|
-
code: z.ZodLiteral<"model_spending_limit_exceeded">;
|
|
98
|
-
}, z.core.$strict>;
|
|
99
|
-
transient: z.ZodLiteral<true>;
|
|
100
|
-
}, z.core.$strict>;
|
|
101
|
-
export type SpendingLimitStopEvent = z.infer<typeof spendingLimitStopEventSchema>;
|
|
@@ -68,12 +68,3 @@ export function nextSpendingLimitReset(schedule, after) {
|
|
|
68
68
|
}
|
|
69
69
|
return boundary().toISOString();
|
|
70
70
|
}
|
|
71
|
-
export const spendingLimitStopEventSchema = z
|
|
72
|
-
.object({
|
|
73
|
-
type: z.literal("data-model-spending-limit"),
|
|
74
|
-
data: spendingLimitStopDetailsSchema.extend({
|
|
75
|
-
code: z.literal("model_spending_limit_exceeded"),
|
|
76
|
-
}),
|
|
77
|
-
transient: z.literal(true),
|
|
78
|
-
})
|
|
79
|
-
.strict();
|
|
@@ -10,18 +10,18 @@ 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";
|
|
17
17
|
export { createProviderBodySchema, providerListItemSchema, providerModelsResponseSchema, providerResponseSchema, providersResponseSchema, providerTypeSchema, thinkingLevelsResponseSchema, updateProviderBodySchema, } from "./entities/providers.ts";
|
|
18
18
|
export type { ChatSteerConsumedEvent, SessionActivity, SessionInput, SessionInputResponse, SessionInputState, SessionInputsQuery, SessionInputsResponse, StopSessionBody, StopSessionResponse, SubmitSessionInputBody, } from "./entities/session-inputs.ts";
|
|
19
19
|
export { chatSteerConsumedEventSchema, sessionActivitySchema, sessionInputRequestIdSchema, sessionInputResponseSchema, sessionInputSchema, sessionInputStateSchema, sessionInputsQuerySchema, sessionInputsResponseSchema, stopSessionBodySchema, stopSessionResponseSchema, submitSessionInputBodySchema, } from "./entities/session-inputs.ts";
|
|
20
|
-
export type { ContinueToolApprovalsBody, SessionForkedFrom, ToolApprovalContinuationState, ToolApprovalDecision, ToolApprovalsResponse,
|
|
21
|
-
export { continueToolApprovalsBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionForkedFromSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionSchema, toolApprovalStateSchema, toolApprovalsResponseSchema,
|
|
20
|
+
export type { ContinueToolApprovalsBody, SessionForkedFrom, ToolApprovalContinuationState, ToolApprovalDecision, ToolApprovalsResponse, TurnStreamErrorEvent, } from "./entities/sessions.ts";
|
|
21
|
+
export { continueToolApprovalsBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionForkedFromSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionSchema, toolApprovalStateSchema, toolApprovalsResponseSchema, turnStreamErrorEventSchema, } from "./entities/sessions.ts";
|
|
22
22
|
export { copySkillBodySchema, createSkillBodySchema, skillCopyResultsSchema, skillDetailSchema, skillsListResponseSchema, } from "./entities/skills.ts";
|
|
23
|
-
export type { SpendingLimit, SpendingLimitResponse, SpendingLimitStopDetails,
|
|
24
|
-
export { nextSpendingLimitReset, spendingLimitPeriodSchema, spendingLimitResetIntervalSchema, spendingLimitResponseSchema, spendingLimitSchema, spendingLimitStopDetailsSchema,
|
|
23
|
+
export type { SpendingLimit, SpendingLimitResponse, SpendingLimitStopDetails, UpdateSpendingLimitBody, } from "./entities/spending-limits.ts";
|
|
24
|
+
export { nextSpendingLimitReset, spendingLimitPeriodSchema, spendingLimitResetIntervalSchema, spendingLimitResponseSchema, spendingLimitSchema, spendingLimitStopDetailsSchema, updateSpendingLimitBodySchema, } from "./entities/spending-limits.ts";
|
|
25
25
|
export { createTaskBodySchema, createTaskResponseSchema, createTaskRunBodySchema, createTaskRunResponseSchema, taskCronConfigSchema, taskIntervalConfigSchema, taskListItemSchema, taskOnceConfigSchema, taskResponseSchema, taskRunMessagesResponseSchema, taskRunResponseSchema, taskRunStatusSchema, taskRunsListResponseSchema, taskScheduleInputSchema, taskScheduleKindSchema, tasksListResponseSchema, updateTaskBodySchema, } from "./entities/tasks.ts";
|
|
26
26
|
export { quotaSchema, subscriptionStatusSchema, tenantDeletionSchema, tenantResponseSchema, tenantSchema, tenantSettingsResponseSchema, updateTenantSettingsBodySchema, } from "./entities/tenants.ts";
|
|
27
27
|
export type { SessionUsageQuery, SessionUsageResponse, UsageBucket, UsageOverviewQuery, UsageOverviewResponse, UsageResponse, UsageTotals, } from "./entities/usage.ts";
|
package/dist/contracts/index.js
CHANGED
|
@@ -8,15 +8,15 @@ 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";
|
|
15
15
|
export { createProviderBodySchema, providerListItemSchema, providerModelsResponseSchema, providerResponseSchema, providersResponseSchema, providerTypeSchema, thinkingLevelsResponseSchema, updateProviderBodySchema, } from "./entities/providers.js";
|
|
16
16
|
export { chatSteerConsumedEventSchema, sessionActivitySchema, sessionInputRequestIdSchema, sessionInputResponseSchema, sessionInputSchema, sessionInputStateSchema, sessionInputsQuerySchema, sessionInputsResponseSchema, stopSessionBodySchema, stopSessionResponseSchema, submitSessionInputBodySchema, } from "./entities/session-inputs.js";
|
|
17
|
-
export { continueToolApprovalsBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionForkedFromSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionSchema, toolApprovalStateSchema, toolApprovalsResponseSchema,
|
|
17
|
+
export { continueToolApprovalsBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionForkedFromSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionSchema, toolApprovalStateSchema, toolApprovalsResponseSchema, turnStreamErrorEventSchema, } from "./entities/sessions.js";
|
|
18
18
|
export { copySkillBodySchema, createSkillBodySchema, skillCopyResultsSchema, skillDetailSchema, skillsListResponseSchema, } from "./entities/skills.js";
|
|
19
|
-
export { nextSpendingLimitReset, spendingLimitPeriodSchema, spendingLimitResetIntervalSchema, spendingLimitResponseSchema, spendingLimitSchema, spendingLimitStopDetailsSchema,
|
|
19
|
+
export { nextSpendingLimitReset, spendingLimitPeriodSchema, spendingLimitResetIntervalSchema, spendingLimitResponseSchema, spendingLimitSchema, spendingLimitStopDetailsSchema, updateSpendingLimitBodySchema, } from "./entities/spending-limits.js";
|
|
20
20
|
export { createTaskBodySchema, createTaskResponseSchema, createTaskRunBodySchema, createTaskRunResponseSchema, taskCronConfigSchema, taskIntervalConfigSchema, taskListItemSchema, taskOnceConfigSchema, taskResponseSchema, taskRunMessagesResponseSchema, taskRunResponseSchema, taskRunStatusSchema, taskRunsListResponseSchema, taskScheduleInputSchema, taskScheduleKindSchema, tasksListResponseSchema, updateTaskBodySchema, } from "./entities/tasks.js";
|
|
21
21
|
export { quotaSchema, subscriptionStatusSchema, tenantDeletionSchema, tenantResponseSchema, tenantSchema, tenantSettingsResponseSchema, updateTenantSettingsBodySchema, } from "./entities/tenants.js";
|
|
22
22
|
export { sessionUsageQuerySchema, sessionUsageResponseSchema, usageOverviewQuerySchema, usageOverviewResponseSchema, usageResponseSchema, } from "./entities/usage.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -12,15 +12,15 @@ 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";
|
|
19
19
|
export type { ChatSteerConsumedEvent, SessionActivity, SessionInput, SessionInputResponse, SessionInputState, SessionInputsQuery, SessionInputsResponse, StopSessionBody, StopSessionResponse, SubmitSessionInputBody, } from "./contracts/entities/session-inputs.ts";
|
|
20
|
-
export type { ContinueToolApprovalsBody, SessionForkedFrom, SessionResponse, ToolApprovalDecision, ToolApprovalState, ToolApprovalsResponse,
|
|
20
|
+
export type { ContinueToolApprovalsBody, SessionForkedFrom, SessionResponse, ToolApprovalDecision, ToolApprovalState, ToolApprovalsResponse, TurnStreamErrorEvent, } from "./contracts/entities/sessions.ts";
|
|
21
21
|
export { sessionResponseSchema } from "./contracts/entities/sessions.ts";
|
|
22
22
|
export type { CreateSkillBody, Skill, SkillArchiveType, SkillCopyResult, SkillCopyResults, SkillDetail, SkillFile, SkillsListResponse, } from "./contracts/entities/skills.ts";
|
|
23
|
-
export type { SpendingLimit, SpendingLimitResponse, SpendingLimitStopDetails,
|
|
23
|
+
export type { SpendingLimit, SpendingLimitResponse, SpendingLimitStopDetails, UpdateSpendingLimitBody, } from "./contracts/entities/spending-limits.ts";
|
|
24
24
|
export { nextSpendingLimitReset } from "./contracts/entities/spending-limits.ts";
|
|
25
25
|
export type { SessionUsageQuery, SessionUsageResponse, UsageBucket, UsageOverviewQuery, UsageOverviewResponse, UsageTotals, } from "./contracts/entities/usage.ts";
|
|
26
26
|
export type { CreateWorkspaceBody, UpdateWorkspaceBody, Workspace, WorkspaceNetworkPolicy, WorkspacesListResponse, WorkspaceTier, } from "./contracts/entities/workspaces.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,15 +4,15 @@ 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";
|
|
11
11
|
import type { CreateProviderBody, DeleteProviderOptions, ProviderModelsResponse, ProviderResponse, ProvidersResponse, ThinkingLevelsResponse, UpdateProviderBody } from "./contracts/entities/providers.ts";
|
|
12
12
|
import type { ChatSteerConsumedEvent, SessionInputResponse, SessionInputsQuery, SessionInputsResponse, StopSessionBody, StopSessionResponse, SubmitSessionInputBody } from "./contracts/entities/session-inputs.ts";
|
|
13
|
-
import type { LatestSessionsListResponse, SessionMessagesResponse, SessionResponse, SessionsListResponse, ToolApprovalDecision, ToolApprovalsResponse,
|
|
13
|
+
import type { LatestSessionsListResponse, SessionMessagesResponse, SessionResponse, SessionsListResponse, ToolApprovalDecision, ToolApprovalsResponse, TurnStreamErrorEvent } from "./contracts/entities/sessions.ts";
|
|
14
14
|
import type { CreateSkillBody, SkillArchiveType, SkillCopyResults, SkillDetail, SkillsListResponse } from "./contracts/entities/skills.ts";
|
|
15
|
-
import type { SpendingLimitResponse,
|
|
15
|
+
import type { SpendingLimitResponse, UpdateSpendingLimitBody } from "./contracts/entities/spending-limits.ts";
|
|
16
16
|
import type { CreateTaskBody, CreateTaskResponse, CreateTaskRunBody, CreateTaskRunResponse, TaskResponse, TaskRunMessagesResponse, TaskRunResponse, TaskRunsListResponse, TasksListResponse, UpdateTaskBody } from "./contracts/entities/tasks.ts";
|
|
17
17
|
import type { TenantSettingsResponse, UpdateTenantSettingsBody } from "./contracts/entities/tenants.ts";
|
|
18
18
|
import type { SessionUsageQuery, SessionUsageResponse, UsageOverviewQuery, UsageOverviewResponse, UsageQuery, UsageResponse } from "./contracts/entities/usage.ts";
|
|
@@ -120,7 +120,7 @@ export interface ResponseObservation {
|
|
|
120
120
|
status: number;
|
|
121
121
|
}
|
|
122
122
|
export type ChatTrigger = "submit-message" | "regenerate-message";
|
|
123
|
-
export type BlazingAgentsUIMessageData = Record<"ba-steer-consumed", ChatSteerConsumedEvent["data"]> & Record<"
|
|
123
|
+
export type BlazingAgentsUIMessageData = Record<"ba-steer-consumed", ChatSteerConsumedEvent["data"]> & Record<"ba-error", TurnStreamErrorEvent["data"]>;
|
|
124
124
|
export type BlazingAgentsUIMessage = UIMessage<BlazingAgentsChatMessageMetadata, BlazingAgentsUIMessageData>;
|
|
125
125
|
export type BlazingAgentsUIMessageChunk = UIMessageChunk<BlazingAgentsChatMessageMetadata, BlazingAgentsUIMessageData>;
|
|
126
126
|
/**
|
|
@@ -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.
|