@blazingagents/sdk 0.33.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/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 +4 -4
- package/dist/contracts/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/types.d.ts +3 -3
- package/package.json +1 -1
|
@@ -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();
|
|
@@ -17,11 +17,11 @@ export { createPromptBodySchema, parsePromptVariables, promptResponseSchema, pro
|
|
|
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
|
@@ -14,9 +14,9 @@ export { createMerchantConnectionBodySchema, merchantBindingResponseSchema, merc
|
|
|
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
|
@@ -17,10 +17,10 @@ export type { CreateMerchantConnectionBody, MerchantBindingResponse, MerchantBin
|
|
|
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";
|
package/dist/types.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ import type { CreateMerchantConnectionBody, MerchantBindingResponse, MerchantBin
|
|
|
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
|
/**
|