@blazingagents/sdk 0.40.0 → 0.42.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 +0 -2
- package/dist/client.js +0 -3
- package/dist/contracts/api.d.ts +9 -3
- package/dist/contracts/api.js +9 -3
- package/dist/contracts/entities/chat-connections.d.ts +0 -153
- package/dist/contracts/entities/chat-connections.js +1 -63
- package/dist/contracts/entities/mcp-connections.d.ts +0 -3
- package/dist/contracts/entities/mcp-connections.js +0 -3
- package/dist/contracts/entities/merchant.d.ts +0 -34
- package/dist/contracts/entities/merchant.js +0 -16
- package/dist/contracts/entities/session-inputs.d.ts +4 -12
- package/dist/contracts/entities/session-inputs.js +0 -2
- package/dist/contracts/entities/sessions.d.ts +1 -1
- package/dist/contracts/entities/spending-limits.d.ts +0 -5
- package/dist/contracts/entities/spending-limits.js +1 -3
- package/dist/contracts/entities/tasks.d.ts +12 -186
- package/dist/contracts/entities/tasks.js +2 -2
- package/dist/contracts/ids.d.ts +0 -1
- package/dist/contracts/ids.js +0 -1
- package/dist/contracts/index.d.ts +4 -4
- package/dist/contracts/index.js +4 -4
- package/dist/index.d.ts +1 -2
- package/dist/resources/agents.d.ts +1 -1
- package/dist/resources/chat-connections.d.ts +1 -30
- package/dist/resources/chat-connections.js +1 -12
- package/dist/resources/merchant-usage-events.d.ts +3 -12
- package/dist/resources/merchant-usage-events.js +1 -4
- package/dist/resources/sessions.d.ts +2 -2
- package/dist/resources/workspaces.d.ts +1 -2
- package/dist/resources/workspaces.js +5 -3
- package/package.json +1 -1
- package/dist/resources/chat-deliveries.d.ts +0 -30
- package/dist/resources/chat-deliveries.js +0 -23
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type ChatDeliveriesResponse, type ChatDeliveryListStatus } from "../contracts/entities/chat-connections.ts";
|
|
2
|
-
import type { HttpConfig, ResourceRequestOptions } from "../types.ts";
|
|
3
|
-
export interface ChatDeliveriesListOptions extends ResourceRequestOptions {
|
|
4
|
-
cursor?: string;
|
|
5
|
-
limit?: number;
|
|
6
|
-
/** ISO 8601 date-time; inclusive lower bound on `createdAt`. */
|
|
7
|
-
since?: string;
|
|
8
|
-
/** `failed` and/or `ambiguous`; omitted means both. */
|
|
9
|
-
status?: readonly ChatDeliveryListStatus[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* `client.chatDeliveries` — the Tenant's deliveries across all Chat
|
|
13
|
-
* Connections behind `GET /v1/chat-deliveries`, newest first.
|
|
14
|
-
*/
|
|
15
|
-
export interface ChatDeliveriesResource {
|
|
16
|
-
/**
|
|
17
|
-
* Lists one page of Chat delivery records.
|
|
18
|
-
* @param input - filters and pagination options.
|
|
19
|
-
* @returns The chat deliveries response.
|
|
20
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
21
|
-
*/
|
|
22
|
-
list(input?: ChatDeliveriesListOptions): Promise<ChatDeliveriesResponse>;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* `client.chatDeliveries` — `GET /v1/chat-deliveries`, the Tenant-wide
|
|
26
|
-
* delivery feed across all Chat Connections, newest first.
|
|
27
|
-
* @param config - Shared authentication and transport configuration.
|
|
28
|
-
* @returns The configured resource client.
|
|
29
|
-
*/
|
|
30
|
-
export declare function createChatDeliveriesResource(config: HttpConfig): ChatDeliveriesResource;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { chatDeliveriesResponseSchema, } from "../contracts/entities/chat-connections.js";
|
|
2
|
-
import { requestJson } from "../http.js";
|
|
3
|
-
/**
|
|
4
|
-
* `client.chatDeliveries` — `GET /v1/chat-deliveries`, the Tenant-wide
|
|
5
|
-
* delivery feed across all Chat Connections, newest first.
|
|
6
|
-
* @param config - Shared authentication and transport configuration.
|
|
7
|
-
* @returns The configured resource client.
|
|
8
|
-
*/
|
|
9
|
-
export function createChatDeliveriesResource(config) {
|
|
10
|
-
return {
|
|
11
|
-
async list({ abortSignal, status, ...query } = {}) {
|
|
12
|
-
return await requestJson(config, "/v1/chat-deliveries", {
|
|
13
|
-
query: {
|
|
14
|
-
...query,
|
|
15
|
-
// Multi-value filters serialize as one comma-separated parameter.
|
|
16
|
-
status: status?.length ? status.join(",") : undefined,
|
|
17
|
-
},
|
|
18
|
-
credentialBearing: true,
|
|
19
|
-
signal: abortSignal,
|
|
20
|
-
}, chatDeliveriesResponseSchema);
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
}
|