@blazingagents/sdk 0.34.0 → 0.35.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/chat-transport.js +4 -1
- package/dist/client.d.ts +18 -2
- package/dist/client.js +16 -15
- package/dist/contracts/entities/agents.d.ts +7 -6
- package/dist/contracts/entities/agents.js +129 -36
- package/dist/contracts/entities/chat-connections.d.ts +9 -8
- package/dist/contracts/entities/chat-connections.js +70 -40
- package/dist/contracts/entities/chat.d.ts +8 -4
- package/dist/contracts/entities/chat.js +102 -28
- package/dist/contracts/entities/mcp-connections.d.ts +2 -0
- package/dist/contracts/entities/mcp-connections.js +36 -23
- package/dist/contracts/entities/memories.d.ts +1 -0
- package/dist/contracts/entities/memories.js +5 -3
- package/dist/contracts/entities/merchant.js +28 -9
- package/dist/contracts/entities/prompts.d.ts +2 -2
- package/dist/contracts/entities/prompts.js +42 -15
- package/dist/contracts/entities/providers.js +14 -6
- package/dist/contracts/entities/sessions.d.ts +10 -4
- package/dist/contracts/entities/sessions.js +5 -4
- package/dist/contracts/entities/skills.js +6 -3
- package/dist/contracts/entities/tasks.d.ts +4 -7
- package/dist/contracts/entities/tasks.js +45 -15
- package/dist/contracts/entities/tenants.d.ts +2 -28
- package/dist/contracts/entities/tenants.js +15 -22
- package/dist/contracts/entities/usage.d.ts +1 -1
- package/dist/contracts/entities/usage.js +16 -6
- package/dist/contracts/entities/workspaces.d.ts +1 -1
- package/dist/contracts/entities/workspaces.js +26 -10
- package/dist/contracts/index.d.ts +18 -13
- package/dist/contracts/index.js +12 -12
- package/dist/contracts/limitations.d.ts +2 -4
- package/dist/contracts/limitations.js +2 -4
- package/dist/direct-chat-transport.js +2 -1
- package/dist/errors.d.ts +11 -0
- package/dist/errors.js +21 -0
- package/dist/http.d.ts +3 -1
- package/dist/http.js +12 -1
- package/dist/index.d.ts +18 -1
- package/dist/resources/agents.d.ts +120 -1
- package/dist/resources/agents.js +1 -33
- package/dist/resources/artifacts.d.ts +42 -1
- package/dist/resources/artifacts.js +0 -12
- package/dist/resources/chat-connections.d.ts +110 -1
- package/dist/resources/chat-connections.js +0 -33
- package/dist/resources/chat-deliveries.d.ts +23 -1
- package/dist/resources/chat-deliveries.js +1 -4
- package/dist/resources/mcp-connections.d.ts +63 -1
- package/dist/resources/mcp-connections.js +3 -21
- package/dist/resources/memories.d.ts +58 -1
- package/dist/resources/memories.js +0 -15
- package/dist/resources/merchant-bindings.d.ts +39 -1
- package/dist/resources/merchant-bindings.js +0 -9
- package/dist/resources/merchant-connection.d.ts +37 -1
- package/dist/resources/merchant-connection.js +1 -13
- package/dist/resources/merchant-usage-events.d.ts +66 -1
- package/dist/resources/merchant-usage-events.js +0 -18
- package/dist/resources/prompts.d.ts +50 -1
- package/dist/resources/prompts.js +0 -15
- package/dist/resources/providers.d.ts +64 -1
- package/dist/resources/providers.js +0 -21
- package/dist/resources/sessions.d.ts +124 -1
- package/dist/resources/sessions.js +5 -36
- package/dist/resources/skills.d.ts +95 -1
- package/dist/resources/skills.js +0 -27
- package/dist/resources/tasks.d.ts +107 -1
- package/dist/resources/tasks.js +0 -30
- package/dist/resources/tenant.d.ts +23 -1
- package/dist/resources/tenant.js +2 -10
- package/dist/resources/usage.d.ts +34 -1
- package/dist/resources/usage.js +2 -15
- package/dist/resources/workspaces.d.ts +50 -1
- package/dist/resources/workspaces.js +0 -15
- package/dist/types.d.ts +11 -1082
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
import type { UIMessage, UIMessageChunk } from "ai";
|
|
2
2
|
import type { ApiErrorCode } from "./contracts/api.ts";
|
|
3
|
-
import type { Agent, AgentsResponse, CreateAgentBody, UpdateAgentBody } from "./contracts/entities/agents.ts";
|
|
4
|
-
import type { ArtifactDownloadUrlResponse, ArtifactListItem, ArtifactsListResponse } from "./contracts/entities/artifacts.ts";
|
|
5
3
|
import type { BlazingAgentsChatMessageMetadata } from "./contracts/entities/chat.ts";
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type { CreateMemoryBody, MemoriesListResponse, MemoryResponse, UpdateMemoryBody } from "./contracts/entities/memories.ts";
|
|
9
|
-
import type { CreateMerchantConnectionBody, MerchantBindingResponse, MerchantBindingsResponse, MerchantConnectionResponse, MerchantUsageEventResponse, MerchantUsageEventStatus, MerchantUsageEventsResponse, MerchantUsageSummaryResponse, UpdateMerchantConnectionBody, UpsertMerchantBindingBody } from "./contracts/entities/merchant.ts";
|
|
10
|
-
import type { CreatePromptBody, PromptResponse, PromptsResponse, UpdatePromptBody } from "./contracts/entities/prompts.ts";
|
|
11
|
-
import type { CreateProviderBody, DeleteProviderOptions, ProviderModelsResponse, ProviderResponse, ProvidersResponse, ThinkingLevelsResponse, UpdateProviderBody } from "./contracts/entities/providers.ts";
|
|
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, TurnStreamErrorEvent } from "./contracts/entities/sessions.ts";
|
|
14
|
-
import type { CreateSkillBody, SkillArchiveType, SkillCopyResults, SkillDetail, SkillsListResponse } from "./contracts/entities/skills.ts";
|
|
15
|
-
import type { SpendingLimitResponse, UpdateSpendingLimitBody } from "./contracts/entities/spending-limits.ts";
|
|
16
|
-
import type { CreateTaskBody, CreateTaskResponse, CreateTaskRunBody, CreateTaskRunResponse, TaskResponse, TaskRunMessagesResponse, TaskRunResponse, TaskRunsListResponse, TasksListResponse, UpdateTaskBody } from "./contracts/entities/tasks.ts";
|
|
17
|
-
import type { TenantSettingsResponse, UpdateTenantSettingsBody } from "./contracts/entities/tenants.ts";
|
|
18
|
-
import type { SessionUsageQuery, SessionUsageResponse, UsageOverviewQuery, UsageOverviewResponse, UsageQuery, UsageResponse } from "./contracts/entities/usage.ts";
|
|
19
|
-
import type { CreateWorkspaceBody, UpdateWorkspaceBody, Workspace, WorkspacesListResponse } from "./contracts/entities/workspaces.ts";
|
|
4
|
+
import type { ChatSteerConsumedEvent } from "./contracts/entities/session-inputs.ts";
|
|
5
|
+
import type { ToolApprovalDecision, TurnStreamErrorEvent } from "./contracts/entities/sessions.ts";
|
|
20
6
|
import type { ChatFunctions } from "./functions.ts";
|
|
7
|
+
import type { UserAgentsResource } from "./resources/agents.ts";
|
|
8
|
+
import type { ArtifactsResource } from "./resources/artifacts.ts";
|
|
9
|
+
import type { MemoriesResource } from "./resources/memories.ts";
|
|
10
|
+
import type { PromptsResource } from "./resources/prompts.ts";
|
|
11
|
+
import type { SessionsResource } from "./resources/sessions.ts";
|
|
12
|
+
import type { AgentSkillsResource } from "./resources/skills.ts";
|
|
13
|
+
import type { TasksResource } from "./resources/tasks.ts";
|
|
14
|
+
import type { UsageResource } from "./resources/usage.ts";
|
|
15
|
+
import type { WorkspacesResource } from "./resources/workspaces.ts";
|
|
21
16
|
export type KnownBlazingAgentsErrorCode = ApiErrorCode | "invalid_response" | "network_error" | "request_aborted" | "stream_error";
|
|
22
17
|
export type BlazingAgentsErrorCode = KnownBlazingAgentsErrorCode | (string & {});
|
|
23
18
|
export type BlazingAgentsFetch = (input: string, init?: BlazingAgentsRequestInit) => Promise<Response>;
|
|
@@ -61,8 +56,6 @@ export interface BlazingAgentsOptions {
|
|
|
61
56
|
export interface BlazingAgentsRequestOptions {
|
|
62
57
|
clientRequestId: string;
|
|
63
58
|
}
|
|
64
|
-
/** Agent operations on a user-scoped client, which has no spending limits. */
|
|
65
|
-
export type UserAgentsResource = Omit<AgentsResource, "getSpendingLimit" | "updateSpendingLimit">;
|
|
66
59
|
export interface UserClient {
|
|
67
60
|
/**
|
|
68
61
|
* Returns the Skill operations for the selected Agent.
|
|
@@ -284,1071 +277,7 @@ export interface ObjectResult {
|
|
|
284
277
|
export interface ResourceRequestOptions {
|
|
285
278
|
abortSignal?: AbortSignal;
|
|
286
279
|
}
|
|
287
|
-
export interface AgentsResource {
|
|
288
|
-
/**
|
|
289
|
-
* Creates the Agent. Omitting `workspaceId` creates a Core Workspace by default. `workspaceTier` selects its immutable tier and conflicts with `workspaceId`.
|
|
290
|
-
* @param input - creation fields; optional abortSignal.
|
|
291
|
-
* @returns The agent.
|
|
292
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
293
|
-
*/
|
|
294
|
-
create(input: CreateAgentBody & ResourceRequestOptions): Promise<Agent>;
|
|
295
|
-
/**
|
|
296
|
-
* Deletes the Agent while preserving its attached Workspace.
|
|
297
|
-
* @param input - `agentId`; optional abortSignal; includeArtifacts controls Artifact deletion.
|
|
298
|
-
* @returns Resolves when the operation completes.
|
|
299
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
300
|
-
*/
|
|
301
|
-
delete(input: {
|
|
302
|
-
agentId: string;
|
|
303
|
-
includeArtifacts: boolean;
|
|
304
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
305
|
-
/**
|
|
306
|
-
* Disables the Agent.
|
|
307
|
-
* @param input - `agentId`; optional abortSignal.
|
|
308
|
-
* @returns The agent.
|
|
309
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
310
|
-
*/
|
|
311
|
-
disable(input: {
|
|
312
|
-
agentId: string;
|
|
313
|
-
} & ResourceRequestOptions): Promise<Agent>;
|
|
314
|
-
/**
|
|
315
|
-
* Enables the Agent.
|
|
316
|
-
* @param input - `agentId`; optional abortSignal.
|
|
317
|
-
* @returns The agent.
|
|
318
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
319
|
-
*/
|
|
320
|
-
enable(input: {
|
|
321
|
-
agentId: string;
|
|
322
|
-
} & ResourceRequestOptions): Promise<Agent>;
|
|
323
|
-
/**
|
|
324
|
-
* Retrieves the Agent.
|
|
325
|
-
* @param input - `agentId`; optional abortSignal.
|
|
326
|
-
* @returns The agent.
|
|
327
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
328
|
-
*/
|
|
329
|
-
get(input: {
|
|
330
|
-
agentId: string;
|
|
331
|
-
} & ResourceRequestOptions): Promise<Agent>;
|
|
332
|
-
/** Retrieves the Agent model spending limit. Requires tenant authority. */
|
|
333
|
-
getSpendingLimit(input: {
|
|
334
|
-
agentId: string;
|
|
335
|
-
} & ResourceRequestOptions): Promise<SpendingLimitResponse>;
|
|
336
|
-
/**
|
|
337
|
-
* Lists available Agent records.
|
|
338
|
-
* @param input - filters and pagination options.
|
|
339
|
-
* @returns Matching Agents. This response has no pagination cursor.
|
|
340
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
341
|
-
*/
|
|
342
|
-
list(input?: AgentsListOptions): Promise<AgentsResponse>;
|
|
343
|
-
/**
|
|
344
|
-
* Lists the Agent MCP attachments.
|
|
345
|
-
* @param input - `agentId`; optional abortSignal.
|
|
346
|
-
* @returns The mcp attachments response.
|
|
347
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
348
|
-
*/
|
|
349
|
-
listMcpAttachments(input: {
|
|
350
|
-
agentId: string;
|
|
351
|
-
} & ResourceRequestOptions): Promise<McpAttachmentsResponse>;
|
|
352
|
-
/**
|
|
353
|
-
* Removes the Agent avatar.
|
|
354
|
-
* @param input - `agentId`; optional abortSignal.
|
|
355
|
-
* @returns The agent.
|
|
356
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
357
|
-
*/
|
|
358
|
-
removeAvatar(input: {
|
|
359
|
-
agentId: string;
|
|
360
|
-
} & ResourceRequestOptions): Promise<Agent>;
|
|
361
|
-
/**
|
|
362
|
-
* Updates the Agent. A concrete `workspaceId` switches the Agent; detachment is unsupported.
|
|
363
|
-
* @param input - `agentId`; fields to change; optional abortSignal.
|
|
364
|
-
* @returns The agent.
|
|
365
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
366
|
-
*/
|
|
367
|
-
update(input: UpdateAgentBody & {
|
|
368
|
-
agentId: string;
|
|
369
|
-
} & ResourceRequestOptions): Promise<Agent>;
|
|
370
|
-
/**
|
|
371
|
-
* Updates one Agent MCP attachment.
|
|
372
|
-
* @param input - `agentId`, `mcpConnectionId`; fields to change; optional abortSignal.
|
|
373
|
-
* @returns The mcp attachment response.
|
|
374
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
375
|
-
*/
|
|
376
|
-
updateMcpAttachment(input: UpdateMcpAttachmentBody & {
|
|
377
|
-
agentId: string;
|
|
378
|
-
mcpConnectionId: string;
|
|
379
|
-
} & ResourceRequestOptions): Promise<McpAttachmentResponse>;
|
|
380
|
-
/** Sets the Agent model spending limit. Pass null to disable it. Requires tenant authority. */
|
|
381
|
-
updateSpendingLimit(input: UpdateSpendingLimitBody & {
|
|
382
|
-
agentId: string;
|
|
383
|
-
} & ResourceRequestOptions): Promise<SpendingLimitResponse>;
|
|
384
|
-
/**
|
|
385
|
-
* Uploads an Agent avatar as multipart form data.
|
|
386
|
-
* @param input - Target `agentId`, image `file`, and optional abortSignal.
|
|
387
|
-
* @returns The agent.
|
|
388
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
389
|
-
*/
|
|
390
|
-
uploadAvatar(input: {
|
|
391
|
-
agentId: string;
|
|
392
|
-
file: File;
|
|
393
|
-
} & ResourceRequestOptions): Promise<Agent>;
|
|
394
|
-
}
|
|
395
280
|
export interface AgentClient {
|
|
396
281
|
readonly skills: AgentSkillsResource;
|
|
397
282
|
}
|
|
398
|
-
export interface AgentsListOptions extends ResourceRequestOptions {
|
|
399
|
-
cursor?: string;
|
|
400
|
-
limit?: number;
|
|
401
|
-
userId?: string;
|
|
402
|
-
workspaceId?: string;
|
|
403
|
-
}
|
|
404
|
-
export interface WorkspacesResource {
|
|
405
|
-
/**
|
|
406
|
-
* Creates the Workspace.
|
|
407
|
-
* @param input - creation fields; optional abortSignal.
|
|
408
|
-
* @returns The workspace.
|
|
409
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
410
|
-
*/
|
|
411
|
-
create(input?: CreateWorkspaceBody & ResourceRequestOptions): Promise<Workspace>;
|
|
412
|
-
/**
|
|
413
|
-
* Deletes the Workspace.
|
|
414
|
-
* @param input - `workspaceId`; optional abortSignal.
|
|
415
|
-
* @returns "pending" while deletion is underway, otherwise "completed".
|
|
416
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
417
|
-
*/
|
|
418
|
-
delete(input: {
|
|
419
|
-
workspaceId: string;
|
|
420
|
-
} & ResourceRequestOptions): Promise<"completed" | "pending">;
|
|
421
|
-
/**
|
|
422
|
-
* Retrieves the Workspace.
|
|
423
|
-
* @param input - `workspaceId`; optional abortSignal.
|
|
424
|
-
* @returns The workspace.
|
|
425
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
426
|
-
*/
|
|
427
|
-
get(input: {
|
|
428
|
-
workspaceId: string;
|
|
429
|
-
} & ResourceRequestOptions): Promise<Workspace>;
|
|
430
|
-
/**
|
|
431
|
-
* Lists one page of Workspace records.
|
|
432
|
-
* @param input - filters and pagination options.
|
|
433
|
-
* @returns The workspaces list response.
|
|
434
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
435
|
-
*/
|
|
436
|
-
list(input?: WorkspacesListOptions): Promise<WorkspacesListResponse>;
|
|
437
|
-
/**
|
|
438
|
-
* Updates the Workspace.
|
|
439
|
-
* @param input - `workspaceId`; fields to change; optional abortSignal.
|
|
440
|
-
* @returns The workspace.
|
|
441
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
442
|
-
*/
|
|
443
|
-
update(input: UpdateWorkspaceBody & {
|
|
444
|
-
workspaceId: string;
|
|
445
|
-
} & ResourceRequestOptions): Promise<Workspace>;
|
|
446
|
-
}
|
|
447
|
-
export interface WorkspacesListOptions extends ResourceRequestOptions {
|
|
448
|
-
cursor?: string;
|
|
449
|
-
limit?: number;
|
|
450
|
-
userId?: string;
|
|
451
|
-
}
|
|
452
|
-
export interface ArtifactsListOptions extends ResourceRequestOptions {
|
|
453
|
-
agentId?: string;
|
|
454
|
-
cursor?: string;
|
|
455
|
-
sessionId?: string;
|
|
456
|
-
}
|
|
457
|
-
export interface ArtifactsResource {
|
|
458
|
-
/**
|
|
459
|
-
* Creates a temporary Artifact download URL.
|
|
460
|
-
* @param input - `artifactId`; optional abortSignal.
|
|
461
|
-
* @returns The artifact download url response.
|
|
462
|
-
*/
|
|
463
|
-
createDownloadUrl(input: {
|
|
464
|
-
artifactId: string;
|
|
465
|
-
} & ResourceRequestOptions): Promise<ArtifactDownloadUrlResponse>;
|
|
466
|
-
/**
|
|
467
|
-
* Deletes the Artifact.
|
|
468
|
-
* @param input - `artifactId`; optional abortSignal.
|
|
469
|
-
* @returns Resolves when the operation completes.
|
|
470
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
471
|
-
*/
|
|
472
|
-
delete(input: {
|
|
473
|
-
artifactId: string;
|
|
474
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
475
|
-
/**
|
|
476
|
-
* Retrieves the Artifact.
|
|
477
|
-
* @param input - `artifactId`; optional abortSignal.
|
|
478
|
-
* @returns The artifact list item.
|
|
479
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
480
|
-
*/
|
|
481
|
-
get(input: {
|
|
482
|
-
artifactId: string;
|
|
483
|
-
} & ResourceRequestOptions): Promise<ArtifactListItem>;
|
|
484
|
-
/**
|
|
485
|
-
* Lists one page of Artifact records.
|
|
486
|
-
* @param input - filters and pagination options.
|
|
487
|
-
* @returns The artifacts list response.
|
|
488
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
489
|
-
*/
|
|
490
|
-
list(input?: ArtifactsListOptions): Promise<ArtifactsListResponse>;
|
|
491
|
-
}
|
|
492
|
-
export interface MemoriesResource {
|
|
493
|
-
/**
|
|
494
|
-
* Creates the Memory.
|
|
495
|
-
* @param input - `agentId`; creation fields; optional abortSignal.
|
|
496
|
-
* @returns The memory response.
|
|
497
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
498
|
-
*/
|
|
499
|
-
create(input: CreateMemoryBody & {
|
|
500
|
-
agentId: string;
|
|
501
|
-
} & ResourceRequestOptions): Promise<MemoryResponse>;
|
|
502
|
-
/**
|
|
503
|
-
* Deletes the Memory.
|
|
504
|
-
* @param input - `agentId`, `memoryId`; optional abortSignal.
|
|
505
|
-
* @returns Resolves when the operation completes.
|
|
506
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
507
|
-
*/
|
|
508
|
-
delete(input: {
|
|
509
|
-
agentId: string;
|
|
510
|
-
memoryId: string;
|
|
511
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
512
|
-
/**
|
|
513
|
-
* Retrieves the Memory.
|
|
514
|
-
* @param input - `agentId`, `memoryId`; optional abortSignal.
|
|
515
|
-
* @returns The memory response.
|
|
516
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
517
|
-
*/
|
|
518
|
-
get(input: {
|
|
519
|
-
agentId: string;
|
|
520
|
-
memoryId: string;
|
|
521
|
-
} & ResourceRequestOptions): Promise<MemoryResponse>;
|
|
522
|
-
/**
|
|
523
|
-
* Lists one page of Memory records.
|
|
524
|
-
* @param input - `agentId`; filters and pagination options.
|
|
525
|
-
* @returns The memories list response.
|
|
526
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
527
|
-
*/
|
|
528
|
-
list(input: {
|
|
529
|
-
agentId: string;
|
|
530
|
-
} & MemoriesListOptions): Promise<MemoriesListResponse>;
|
|
531
|
-
/**
|
|
532
|
-
* Updates the Memory.
|
|
533
|
-
* @param input - `agentId`, `memoryId`; fields to change; optional abortSignal.
|
|
534
|
-
* @returns The memory response.
|
|
535
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
536
|
-
*/
|
|
537
|
-
update(input: UpdateMemoryBody & {
|
|
538
|
-
agentId: string;
|
|
539
|
-
memoryId: string;
|
|
540
|
-
} & ResourceRequestOptions): Promise<MemoryResponse>;
|
|
541
|
-
}
|
|
542
|
-
export interface MemoriesListOptions extends ResourceRequestOptions {
|
|
543
|
-
cursor?: string;
|
|
544
|
-
limit?: number;
|
|
545
|
-
search?: string;
|
|
546
|
-
userId?: string;
|
|
547
|
-
}
|
|
548
|
-
export interface PromptsResource {
|
|
549
|
-
/**
|
|
550
|
-
* Creates the Prompt.
|
|
551
|
-
* @param input - creation fields; optional abortSignal.
|
|
552
|
-
* @returns The prompt response.
|
|
553
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
554
|
-
*/
|
|
555
|
-
create(input: CreatePromptBody & ResourceRequestOptions): Promise<PromptResponse>;
|
|
556
|
-
/**
|
|
557
|
-
* Deletes the Prompt.
|
|
558
|
-
* @param input - `promptId`; optional abortSignal.
|
|
559
|
-
* @returns Resolves when the operation completes.
|
|
560
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
561
|
-
*/
|
|
562
|
-
delete(input: {
|
|
563
|
-
promptId: string;
|
|
564
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
565
|
-
/**
|
|
566
|
-
* Retrieves the Prompt.
|
|
567
|
-
* @param input - `promptId`; optional abortSignal.
|
|
568
|
-
* @returns The prompt response.
|
|
569
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
570
|
-
*/
|
|
571
|
-
get(input: {
|
|
572
|
-
promptId: string;
|
|
573
|
-
} & ResourceRequestOptions): Promise<PromptResponse>;
|
|
574
|
-
/**
|
|
575
|
-
* Lists one page of Prompt records.
|
|
576
|
-
* @param input - `userId`, `agentId`; filters and pagination options; optional abortSignal.
|
|
577
|
-
* @returns The prompts response.
|
|
578
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
579
|
-
*/
|
|
580
|
-
list(input?: {
|
|
581
|
-
userId?: string;
|
|
582
|
-
agentId?: string;
|
|
583
|
-
cursor?: string;
|
|
584
|
-
limit?: number;
|
|
585
|
-
} & ResourceRequestOptions): Promise<PromptsResponse>;
|
|
586
|
-
/**
|
|
587
|
-
* Updates the Prompt.
|
|
588
|
-
* @param input - `promptId`; fields to change; optional abortSignal.
|
|
589
|
-
* @returns The prompt response.
|
|
590
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
591
|
-
*/
|
|
592
|
-
update(input: UpdatePromptBody & {
|
|
593
|
-
promptId: string;
|
|
594
|
-
} & ResourceRequestOptions): Promise<PromptResponse>;
|
|
595
|
-
}
|
|
596
|
-
export interface ProvidersResource {
|
|
597
|
-
/**
|
|
598
|
-
* Creates the Provider.
|
|
599
|
-
* @param input - creation fields; optional abortSignal.
|
|
600
|
-
* @returns The provider response.
|
|
601
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
602
|
-
*/
|
|
603
|
-
create(input: CreateProviderBody & ResourceRequestOptions): Promise<ProviderResponse>;
|
|
604
|
-
/**
|
|
605
|
-
* Deletes the Provider.
|
|
606
|
-
* @param input - `providerId`; optional abortSignal.
|
|
607
|
-
* @returns Resolves when the operation completes.
|
|
608
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
609
|
-
*/
|
|
610
|
-
delete(input: DeleteProviderOptions & {
|
|
611
|
-
providerId: string;
|
|
612
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
613
|
-
/**
|
|
614
|
-
* Retrieves the Provider.
|
|
615
|
-
* @param input - `providerId`; optional abortSignal.
|
|
616
|
-
* @returns The provider response.
|
|
617
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
618
|
-
*/
|
|
619
|
-
get(input: {
|
|
620
|
-
providerId: string;
|
|
621
|
-
} & ResourceRequestOptions): Promise<ProviderResponse>;
|
|
622
|
-
/**
|
|
623
|
-
* Retrieves supported thinking levels for a Provider model.
|
|
624
|
-
* @param input - `providerId`, provider-specific `model` name, and optional abortSignal.
|
|
625
|
-
* @returns The thinking levels response.
|
|
626
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
627
|
-
*/
|
|
628
|
-
getThinkingLevels(input: {
|
|
629
|
-
providerId: string;
|
|
630
|
-
model: string;
|
|
631
|
-
} & ResourceRequestOptions): Promise<ThinkingLevelsResponse>;
|
|
632
|
-
/**
|
|
633
|
-
* Lists available Provider records.
|
|
634
|
-
* @param input - optional abortSignal.
|
|
635
|
-
* @returns The providers response.
|
|
636
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
637
|
-
*/
|
|
638
|
-
list(input?: ResourceRequestOptions): Promise<ProvidersResponse>;
|
|
639
|
-
/**
|
|
640
|
-
* Lists models exposed by the Provider.
|
|
641
|
-
* @param input - `providerId`; optional abortSignal.
|
|
642
|
-
* @returns The provider models response.
|
|
643
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
644
|
-
*/
|
|
645
|
-
listModels(input: {
|
|
646
|
-
providerId: string;
|
|
647
|
-
} & ResourceRequestOptions): Promise<ProviderModelsResponse>;
|
|
648
|
-
/**
|
|
649
|
-
* Updates the Provider.
|
|
650
|
-
* @param input - `providerId`; fields to change; optional abortSignal.
|
|
651
|
-
* @returns The provider response.
|
|
652
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
653
|
-
*/
|
|
654
|
-
update(input: UpdateProviderBody & {
|
|
655
|
-
providerId: string;
|
|
656
|
-
} & ResourceRequestOptions): Promise<ProviderResponse>;
|
|
657
|
-
}
|
|
658
|
-
export interface McpConnectionsResource {
|
|
659
|
-
/**
|
|
660
|
-
* Creates the MCP Connection.
|
|
661
|
-
* @param input - creation fields; optional abortSignal.
|
|
662
|
-
* @returns The mcp connection response.
|
|
663
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
664
|
-
*/
|
|
665
|
-
create(input: CreateMcpConnectionBody & ResourceRequestOptions): Promise<McpConnectionResponse>;
|
|
666
|
-
/**
|
|
667
|
-
* Deletes the MCP Connection.
|
|
668
|
-
* @param input - `mcpConnectionId`; optional abortSignal.
|
|
669
|
-
* @returns Resolves when the operation completes.
|
|
670
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
671
|
-
*/
|
|
672
|
-
delete(input: {
|
|
673
|
-
mcpConnectionId: string;
|
|
674
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
675
|
-
/**
|
|
676
|
-
* Retrieves the MCP Connection.
|
|
677
|
-
* @param input - `mcpConnectionId`; optional abortSignal.
|
|
678
|
-
* @returns The mcp connection response.
|
|
679
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
680
|
-
*/
|
|
681
|
-
get(input: {
|
|
682
|
-
mcpConnectionId: string;
|
|
683
|
-
} & ResourceRequestOptions): Promise<McpConnectionResponse>;
|
|
684
|
-
/**
|
|
685
|
-
* Lists available MCP Connection records.
|
|
686
|
-
* @param input - optional abortSignal.
|
|
687
|
-
* @returns The mcp connections response.
|
|
688
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
689
|
-
*/
|
|
690
|
-
list(input?: ResourceRequestOptions): Promise<McpConnectionsResponse>;
|
|
691
|
-
/**
|
|
692
|
-
* Reconnects the MCP Connection.
|
|
693
|
-
* @param input - `mcpConnectionId`; fields to change; optional abortSignal.
|
|
694
|
-
* @returns The mcp connection reconnect result.
|
|
695
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
696
|
-
*/
|
|
697
|
-
reconnect(input: ReconnectMcpConnectionBody & {
|
|
698
|
-
mcpConnectionId: string;
|
|
699
|
-
} & ResourceRequestOptions): Promise<McpConnectionReconnectResult>;
|
|
700
|
-
/**
|
|
701
|
-
* Tests the MCP Connection.
|
|
702
|
-
* @param input - `mcpConnectionId`; optional abortSignal.
|
|
703
|
-
* @returns The mcp connection test response.
|
|
704
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
705
|
-
*/
|
|
706
|
-
test(input: {
|
|
707
|
-
mcpConnectionId: string;
|
|
708
|
-
} & ResourceRequestOptions): Promise<McpConnectionTestResponse>;
|
|
709
|
-
/**
|
|
710
|
-
* Updates the MCP Connection.
|
|
711
|
-
* @param input - `mcpConnectionId`; fields to change; optional abortSignal.
|
|
712
|
-
* @returns The mcp connection response.
|
|
713
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
714
|
-
*/
|
|
715
|
-
update(input: UpdateMcpConnectionBody & {
|
|
716
|
-
mcpConnectionId: string;
|
|
717
|
-
} & ResourceRequestOptions): Promise<McpConnectionResponse>;
|
|
718
|
-
}
|
|
719
|
-
export interface SessionsListOptions extends ResourceRequestOptions {
|
|
720
|
-
cursor?: string;
|
|
721
|
-
limit?: number;
|
|
722
|
-
userId?: string;
|
|
723
|
-
}
|
|
724
|
-
export interface LatestSessionsListOptions extends ResourceRequestOptions {
|
|
725
|
-
byAgent?: boolean;
|
|
726
|
-
cursor?: string;
|
|
727
|
-
limit?: number;
|
|
728
|
-
userId?: string;
|
|
729
|
-
}
|
|
730
|
-
export interface SessionMessagesOptions extends ResourceRequestOptions {
|
|
731
|
-
after?: string;
|
|
732
|
-
cursor?: string;
|
|
733
|
-
limit?: number;
|
|
734
|
-
}
|
|
735
|
-
export interface SessionsResource {
|
|
736
|
-
/**
|
|
737
|
-
* Deletes the Session.
|
|
738
|
-
* @param input - `agentId`, `sessionId`; optional abortSignal; deleteArtifacts controls Artifact deletion.
|
|
739
|
-
* @returns Resolves when the operation completes.
|
|
740
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
741
|
-
*/
|
|
742
|
-
delete(input: {
|
|
743
|
-
agentId: string;
|
|
744
|
-
sessionId: string;
|
|
745
|
-
deleteArtifacts: boolean;
|
|
746
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
747
|
-
/**
|
|
748
|
-
* Retry an uncertain acknowledgement with the same explicit idempotencyKey.
|
|
749
|
-
* @param input - `agentId`, `sessionId`, `messageId`; optional abortSignal.
|
|
750
|
-
* @returns The session response.
|
|
751
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
752
|
-
*/
|
|
753
|
-
fork(input: {
|
|
754
|
-
agentId: string;
|
|
755
|
-
sessionId: string;
|
|
756
|
-
messageId: string;
|
|
757
|
-
idempotencyKey: string;
|
|
758
|
-
} & ResourceRequestOptions): Promise<SessionResponse>;
|
|
759
|
-
/**
|
|
760
|
-
* Retrieves the Session.
|
|
761
|
-
* @param input - `agentId`, `sessionId`; optional abortSignal.
|
|
762
|
-
* @returns The session response.
|
|
763
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
764
|
-
*/
|
|
765
|
-
get(input: {
|
|
766
|
-
agentId: string;
|
|
767
|
-
sessionId: string;
|
|
768
|
-
} & ResourceRequestOptions): Promise<SessionResponse>;
|
|
769
|
-
/**
|
|
770
|
-
* Poll from the first page for state changes; cursor only paginates receipts.
|
|
771
|
-
* @param input - `agentId`, `sessionId`; query filters; optional abortSignal.
|
|
772
|
-
* @returns The session inputs response.
|
|
773
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
774
|
-
*/
|
|
775
|
-
inputs(input: {
|
|
776
|
-
agentId: string;
|
|
777
|
-
sessionId: string;
|
|
778
|
-
} & SessionInputsQuery & ResourceRequestOptions): Promise<SessionInputsResponse>;
|
|
779
|
-
/**
|
|
780
|
-
* Lists one page of Session records.
|
|
781
|
-
* @param input - `agentId`; filters and pagination options.
|
|
782
|
-
* @returns The sessions list response.
|
|
783
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
784
|
-
*/
|
|
785
|
-
list(input: {
|
|
786
|
-
agentId: string;
|
|
787
|
-
} & SessionsListOptions): Promise<SessionsListResponse>;
|
|
788
|
-
/**
|
|
789
|
-
* `GET /v1/sessions/latest` — the Tenant's most recently updated Sessions,
|
|
790
|
-
* newest first. Set `byAgent` to return at most one Session per Agent.
|
|
791
|
-
* `userId` narrows the candidate Sessions to one end user's.
|
|
792
|
-
* @param input - filters and pagination options.
|
|
793
|
-
* @returns The latest sessions list response.
|
|
794
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
795
|
-
*/
|
|
796
|
-
listLatest(input?: LatestSessionsListOptions): Promise<LatestSessionsListResponse>;
|
|
797
|
-
/**
|
|
798
|
-
* Lists one page of Session messages.
|
|
799
|
-
* @param input - `agentId`, `sessionId`.
|
|
800
|
-
* @returns The session messages response.
|
|
801
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
802
|
-
*/
|
|
803
|
-
messages(input: {
|
|
804
|
-
agentId: string;
|
|
805
|
-
sessionId: string;
|
|
806
|
-
} & SessionMessagesOptions): Promise<SessionMessagesResponse>;
|
|
807
|
-
/**
|
|
808
|
-
* Records cancellation for the named Turn without waiting for settlement.
|
|
809
|
-
* @param input - `agentId`, `sessionId`; fields to change; optional abortSignal.
|
|
810
|
-
* @returns The stop session response.
|
|
811
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
812
|
-
*/
|
|
813
|
-
stop(input: {
|
|
814
|
-
agentId: string;
|
|
815
|
-
sessionId: string;
|
|
816
|
-
} & StopSessionBody & ResourceRequestOptions): Promise<StopSessionResponse>;
|
|
817
|
-
/**
|
|
818
|
-
* Retry an uncertain acknowledgement with the same requestId and payload.
|
|
819
|
-
* @param input - `agentId`, `sessionId`; fields to change; optional abortSignal.
|
|
820
|
-
* @returns The session input response.
|
|
821
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
822
|
-
*/
|
|
823
|
-
submitInput(input: Omit<SubmitSessionInputBody, "message"> & {
|
|
824
|
-
agentId: string;
|
|
825
|
-
sessionId: string;
|
|
826
|
-
message: UIMessage;
|
|
827
|
-
} & ResourceRequestOptions): Promise<SessionInputResponse>;
|
|
828
|
-
/**
|
|
829
|
-
* Retrieves the pending Tool approval round.
|
|
830
|
-
* @param input - `agentId`, `sessionId`; optional abortSignal.
|
|
831
|
-
* @returns The tool approvals response.
|
|
832
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
833
|
-
*/
|
|
834
|
-
toolApprovals(input: {
|
|
835
|
-
agentId: string;
|
|
836
|
-
sessionId: string;
|
|
837
|
-
} & ResourceRequestOptions): Promise<ToolApprovalsResponse>;
|
|
838
|
-
}
|
|
839
|
-
export interface AgentSkillsResource {
|
|
840
|
-
/**
|
|
841
|
-
* Copies the Skill to the selected Agents.
|
|
842
|
-
* @param input - Source `skillId`, destination `to.agentIds`, and optional abortSignal.
|
|
843
|
-
* @returns The skill copy results.
|
|
844
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
845
|
-
*/
|
|
846
|
-
copy(input: {
|
|
847
|
-
skillId: string;
|
|
848
|
-
to: {
|
|
849
|
-
agentIds: string[];
|
|
850
|
-
};
|
|
851
|
-
} & ResourceRequestOptions): Promise<SkillCopyResults>;
|
|
852
|
-
/**
|
|
853
|
-
* Creates the Skill.
|
|
854
|
-
* @param input - creation fields; optional abortSignal.
|
|
855
|
-
* @returns The skill detail.
|
|
856
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
857
|
-
*/
|
|
858
|
-
create(input: CreateSkillBody & ResourceRequestOptions): Promise<SkillDetail>;
|
|
859
|
-
/**
|
|
860
|
-
* Deletes the Skill.
|
|
861
|
-
* @param input - `skillId`; optional abortSignal.
|
|
862
|
-
* @returns Resolves when the operation completes.
|
|
863
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
864
|
-
*/
|
|
865
|
-
delete(input: {
|
|
866
|
-
skillId: string;
|
|
867
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
868
|
-
/**
|
|
869
|
-
* Deletes a Skill file.
|
|
870
|
-
* @param input - `skillId`, relative file `path`, and optional abortSignal.
|
|
871
|
-
* @returns The skill detail.
|
|
872
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
873
|
-
*/
|
|
874
|
-
deleteFile(input: {
|
|
875
|
-
path: string;
|
|
876
|
-
skillId: string;
|
|
877
|
-
} & ResourceRequestOptions): Promise<SkillDetail>;
|
|
878
|
-
/**
|
|
879
|
-
* Retrieves the Skill.
|
|
880
|
-
* @param input - `skillId`; optional abortSignal.
|
|
881
|
-
* @returns The skill detail.
|
|
882
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
883
|
-
*/
|
|
884
|
-
get(input: {
|
|
885
|
-
skillId: string;
|
|
886
|
-
} & ResourceRequestOptions): Promise<SkillDetail>;
|
|
887
|
-
/**
|
|
888
|
-
* Reads Skill file bytes.
|
|
889
|
-
* @param input - `skillId`, relative file `path`, and optional abortSignal.
|
|
890
|
-
* @returns The requested file bytes.
|
|
891
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
892
|
-
*/
|
|
893
|
-
getFile(input: {
|
|
894
|
-
path: string;
|
|
895
|
-
skillId: string;
|
|
896
|
-
} & ResourceRequestOptions): Promise<Uint8Array>;
|
|
897
|
-
/**
|
|
898
|
-
* Lists one page of Skill records.
|
|
899
|
-
* @param input - filters and pagination options.
|
|
900
|
-
* @returns The skills list response.
|
|
901
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
902
|
-
*/
|
|
903
|
-
list(input?: SkillsListOptions): Promise<SkillsListResponse>;
|
|
904
|
-
/**
|
|
905
|
-
* Replaces a Skill file with the supplied content.
|
|
906
|
-
* @param input - `skillId`, relative `path`, replacement `content`, and optional abortSignal.
|
|
907
|
-
* @returns The skill detail.
|
|
908
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
909
|
-
*/
|
|
910
|
-
putFile(input: {
|
|
911
|
-
content: Blob | string | Uint8Array;
|
|
912
|
-
path: string;
|
|
913
|
-
skillId: string;
|
|
914
|
-
} & ResourceRequestOptions): Promise<SkillDetail>;
|
|
915
|
-
/**
|
|
916
|
-
* Uploads a Skill archive as multipart form data.
|
|
917
|
-
* @param input - Archive bytes in `source.file`, archive format in `source.type`, and optional abortSignal.
|
|
918
|
-
* @returns The skill detail.
|
|
919
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
920
|
-
*/
|
|
921
|
-
upload(input: {
|
|
922
|
-
source: {
|
|
923
|
-
file: Blob | Uint8Array;
|
|
924
|
-
type: SkillArchiveType;
|
|
925
|
-
};
|
|
926
|
-
} & ResourceRequestOptions): Promise<SkillDetail>;
|
|
927
|
-
}
|
|
928
|
-
export interface SkillsListOptions extends ResourceRequestOptions {
|
|
929
|
-
cursor?: string;
|
|
930
|
-
limit?: number;
|
|
931
|
-
}
|
|
932
|
-
export interface TasksListOptions extends ResourceRequestOptions {
|
|
933
|
-
agentId?: string;
|
|
934
|
-
cursor?: string;
|
|
935
|
-
limit?: number;
|
|
936
|
-
userId?: string;
|
|
937
|
-
}
|
|
938
|
-
export interface TaskRunsListOptions extends ResourceRequestOptions {
|
|
939
|
-
cursor?: string;
|
|
940
|
-
limit?: number;
|
|
941
|
-
}
|
|
942
|
-
export interface TaskRunMessagesOptions extends ResourceRequestOptions {
|
|
943
|
-
after?: string;
|
|
944
|
-
cursor?: string;
|
|
945
|
-
limit?: number;
|
|
946
|
-
}
|
|
947
|
-
export interface TasksResource {
|
|
948
|
-
/**
|
|
949
|
-
* Requests cancellation of a Task run.
|
|
950
|
-
* @param input - `taskId`, `runId`; optional abortSignal.
|
|
951
|
-
* @returns Resolves when the operation completes.
|
|
952
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
953
|
-
*/
|
|
954
|
-
cancelRun(input: {
|
|
955
|
-
taskId: string;
|
|
956
|
-
runId: string;
|
|
957
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
958
|
-
/**
|
|
959
|
-
* Creates the Task.
|
|
960
|
-
* @param input - creation fields; optional abortSignal.
|
|
961
|
-
* @returns The create task response.
|
|
962
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
963
|
-
*/
|
|
964
|
-
create(input: CreateTaskBody & ResourceRequestOptions): Promise<CreateTaskResponse>;
|
|
965
|
-
/**
|
|
966
|
-
* Creates a Task run.
|
|
967
|
-
* @param input - `taskId`; creation fields; optional abortSignal.
|
|
968
|
-
* @returns The create task run response.
|
|
969
|
-
*/
|
|
970
|
-
createRun(input: CreateTaskRunBody & {
|
|
971
|
-
taskId: string;
|
|
972
|
-
} & ResourceRequestOptions): Promise<CreateTaskRunResponse>;
|
|
973
|
-
/**
|
|
974
|
-
* Deletes the Task.
|
|
975
|
-
* @param input - `taskId`; optional abortSignal.
|
|
976
|
-
* @returns Resolves when the operation completes.
|
|
977
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
978
|
-
*/
|
|
979
|
-
delete(input: {
|
|
980
|
-
taskId: string;
|
|
981
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
982
|
-
/**
|
|
983
|
-
* Retrieves the Task.
|
|
984
|
-
* @param input - `taskId`; optional abortSignal.
|
|
985
|
-
* @returns The task response.
|
|
986
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
987
|
-
*/
|
|
988
|
-
get(input: {
|
|
989
|
-
taskId: string;
|
|
990
|
-
} & ResourceRequestOptions): Promise<TaskResponse>;
|
|
991
|
-
/**
|
|
992
|
-
* Retrieves a Task run.
|
|
993
|
-
* @param input - `taskId`, `runId`; optional abortSignal.
|
|
994
|
-
* @returns The task run response.
|
|
995
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
996
|
-
*/
|
|
997
|
-
getRun(input: {
|
|
998
|
-
taskId: string;
|
|
999
|
-
runId: string;
|
|
1000
|
-
} & ResourceRequestOptions): Promise<TaskRunResponse>;
|
|
1001
|
-
/**
|
|
1002
|
-
* Lists one page of Task records.
|
|
1003
|
-
* @param input - filters and pagination options.
|
|
1004
|
-
* @returns The tasks list response.
|
|
1005
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1006
|
-
*/
|
|
1007
|
-
list(input?: TasksListOptions): Promise<TasksListResponse>;
|
|
1008
|
-
/**
|
|
1009
|
-
* Lists one page of Task runs.
|
|
1010
|
-
* @param input - `taskId`; filters and pagination options.
|
|
1011
|
-
* @returns The task runs list response.
|
|
1012
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1013
|
-
*/
|
|
1014
|
-
listRuns(input: {
|
|
1015
|
-
taskId: string;
|
|
1016
|
-
} & TaskRunsListOptions): Promise<TaskRunsListResponse>;
|
|
1017
|
-
/**
|
|
1018
|
-
* Lists one page of Task run messages.
|
|
1019
|
-
* @param input - `taskId`, `runId`.
|
|
1020
|
-
* @returns The task run messages response.
|
|
1021
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1022
|
-
*/
|
|
1023
|
-
runMessages(input: {
|
|
1024
|
-
taskId: string;
|
|
1025
|
-
runId: string;
|
|
1026
|
-
} & TaskRunMessagesOptions): Promise<TaskRunMessagesResponse>;
|
|
1027
|
-
/**
|
|
1028
|
-
* Updates the Task.
|
|
1029
|
-
* @param input - `taskId`; fields to change; optional abortSignal.
|
|
1030
|
-
* @returns The task response.
|
|
1031
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1032
|
-
*/
|
|
1033
|
-
update(input: UpdateTaskBody & {
|
|
1034
|
-
taskId: string;
|
|
1035
|
-
} & ResourceRequestOptions): Promise<TaskResponse>;
|
|
1036
|
-
}
|
|
1037
|
-
export interface TenantResource {
|
|
1038
|
-
/**
|
|
1039
|
-
* Retrieves Tenant settings.
|
|
1040
|
-
* @param input - optional abortSignal.
|
|
1041
|
-
* @returns The tenant settings response.
|
|
1042
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1043
|
-
*/
|
|
1044
|
-
get(input?: ResourceRequestOptions): Promise<TenantSettingsResponse>;
|
|
1045
|
-
/** Retrieves the tenant model spending limit. Requires tenant authority. */
|
|
1046
|
-
getSpendingLimit(input?: ResourceRequestOptions): Promise<SpendingLimitResponse>;
|
|
1047
|
-
/**
|
|
1048
|
-
* Updates Tenant settings.
|
|
1049
|
-
* @param input - fields to change; optional abortSignal.
|
|
1050
|
-
* @returns The tenant settings response.
|
|
1051
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1052
|
-
*/
|
|
1053
|
-
patch(input: UpdateTenantSettingsBody & ResourceRequestOptions): Promise<TenantSettingsResponse>;
|
|
1054
|
-
/** Sets the tenant model spending limit. Pass null to disable it. Requires tenant authority. */
|
|
1055
|
-
updateSpendingLimit(input: UpdateSpendingLimitBody & ResourceRequestOptions): Promise<SpendingLimitResponse>;
|
|
1056
|
-
}
|
|
1057
|
-
export interface UsageResource {
|
|
1058
|
-
/**
|
|
1059
|
-
* Retrieves usage totals.
|
|
1060
|
-
* @param input - query filters; optional abortSignal.
|
|
1061
|
-
* @returns The usage response.
|
|
1062
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1063
|
-
*/
|
|
1064
|
-
get(input?: Partial<UsageQuery> & ResourceRequestOptions): Promise<UsageResponse>;
|
|
1065
|
-
/**
|
|
1066
|
-
* Retrieves usage for one Agent.
|
|
1067
|
-
* @param input - `agentId`; query filters; optional abortSignal.
|
|
1068
|
-
* @returns The usage response.
|
|
1069
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1070
|
-
*/
|
|
1071
|
-
getForAgent(input: Partial<UsageQuery> & {
|
|
1072
|
-
agentId: string;
|
|
1073
|
-
} & ResourceRequestOptions): Promise<UsageResponse>;
|
|
1074
|
-
/**
|
|
1075
|
-
* Returns totals, daily usage, and bounded Agent, user, and model rankings.
|
|
1076
|
-
* @param input - query filters; optional abortSignal.
|
|
1077
|
-
* @returns The usage overview response.
|
|
1078
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1079
|
-
*/
|
|
1080
|
-
overview(input?: Partial<UsageOverviewQuery> & ResourceRequestOptions): Promise<UsageOverviewResponse>;
|
|
1081
|
-
/**
|
|
1082
|
-
* Retrieves usage grouped by Session.
|
|
1083
|
-
* @param input - query filters; optional abortSignal.
|
|
1084
|
-
* @returns The session usage response.
|
|
1085
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1086
|
-
*/
|
|
1087
|
-
sessions(input: SessionUsageQuery & ResourceRequestOptions): Promise<SessionUsageResponse>;
|
|
1088
|
-
}
|
|
1089
|
-
/**
|
|
1090
|
-
* `client.merchantConnection` — the tenant's own Polar/Dodo merchant
|
|
1091
|
-
* connection (ADR-0048). `credential` is write-only: responses expose only
|
|
1092
|
-
* `keyFragment`.
|
|
1093
|
-
*/
|
|
1094
|
-
export interface MerchantConnectionResource {
|
|
1095
|
-
/**
|
|
1096
|
-
* Creates the merchant connection.
|
|
1097
|
-
* @param input - creation fields; optional abortSignal.
|
|
1098
|
-
* @returns The merchant connection response.
|
|
1099
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1100
|
-
*/
|
|
1101
|
-
create(input: CreateMerchantConnectionBody & ResourceRequestOptions): Promise<MerchantConnectionResponse>;
|
|
1102
|
-
/**
|
|
1103
|
-
* Retrieves the merchant connection.
|
|
1104
|
-
* @param input - optional abortSignal.
|
|
1105
|
-
* @returns The merchant connection response.
|
|
1106
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1107
|
-
*/
|
|
1108
|
-
get(input?: ResourceRequestOptions): Promise<MerchantConnectionResponse>;
|
|
1109
|
-
/**
|
|
1110
|
-
* Retires the merchant connection and stops deliveries.
|
|
1111
|
-
* @param input - optional abortSignal.
|
|
1112
|
-
* @returns Resolves when the operation completes.
|
|
1113
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1114
|
-
*/
|
|
1115
|
-
retire(input?: ResourceRequestOptions): Promise<void>;
|
|
1116
|
-
/**
|
|
1117
|
-
* Updates the merchant connection.
|
|
1118
|
-
* @param input - fields to change; optional abortSignal.
|
|
1119
|
-
* @returns The merchant connection response.
|
|
1120
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1121
|
-
*/
|
|
1122
|
-
update(input: UpdateMerchantConnectionBody & ResourceRequestOptions): Promise<MerchantConnectionResponse>;
|
|
1123
|
-
}
|
|
1124
|
-
export interface MerchantBindingsListOptions extends ResourceRequestOptions {
|
|
1125
|
-
cursor?: string;
|
|
1126
|
-
limit?: number;
|
|
1127
|
-
userId?: string;
|
|
1128
|
-
}
|
|
1129
|
-
/**
|
|
1130
|
-
* `client.merchantBindings` — end-user → provider customer bindings behind
|
|
1131
|
-
* `/v1/merchant-connection/bindings`. `put` validates the customer against
|
|
1132
|
-
* the provider.
|
|
1133
|
-
*/
|
|
1134
|
-
export interface MerchantBindingsResource {
|
|
1135
|
-
/**
|
|
1136
|
-
* Deletes the end-user merchant binding.
|
|
1137
|
-
* @param input - `userId`; optional abortSignal.
|
|
1138
|
-
* @returns Resolves when the operation completes.
|
|
1139
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1140
|
-
*/
|
|
1141
|
-
delete(input: {
|
|
1142
|
-
userId: string;
|
|
1143
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
1144
|
-
/**
|
|
1145
|
-
* Lists one page of end-user merchant binding records.
|
|
1146
|
-
* @param input - filters and pagination options.
|
|
1147
|
-
* @returns The merchant bindings response.
|
|
1148
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1149
|
-
*/
|
|
1150
|
-
list(input?: MerchantBindingsListOptions): Promise<MerchantBindingsResponse>;
|
|
1151
|
-
/**
|
|
1152
|
-
* Validates and saves the end-user merchant binding.
|
|
1153
|
-
* @param input - `userId`; fields to change; optional abortSignal.
|
|
1154
|
-
* @returns The merchant binding response.
|
|
1155
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1156
|
-
*/
|
|
1157
|
-
put(input: UpsertMerchantBindingBody & {
|
|
1158
|
-
userId: string;
|
|
1159
|
-
} & ResourceRequestOptions): Promise<MerchantBindingResponse>;
|
|
1160
|
-
}
|
|
1161
|
-
export interface MerchantUsageEventsListOptions extends ResourceRequestOptions {
|
|
1162
|
-
cursor?: string;
|
|
1163
|
-
limit?: number;
|
|
1164
|
-
status?: MerchantUsageEventStatus;
|
|
1165
|
-
}
|
|
1166
|
-
/**
|
|
1167
|
-
* `client.merchantUsageEvents` — the immutable delivery ledger behind
|
|
1168
|
-
* `/v1/merchant-usage-events`. `retry`, `release`, and `discard` are the
|
|
1169
|
-
* operator actions on unresolved events.
|
|
1170
|
-
*/
|
|
1171
|
-
export interface MerchantUsageEventsResource {
|
|
1172
|
-
/**
|
|
1173
|
-
* Discards the merchant usage event.
|
|
1174
|
-
* @param input - `eventId`; optional abortSignal.
|
|
1175
|
-
* @returns The merchant usage event response.
|
|
1176
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1177
|
-
*/
|
|
1178
|
-
discard(input: {
|
|
1179
|
-
eventId: string;
|
|
1180
|
-
} & ResourceRequestOptions): Promise<MerchantUsageEventResponse>;
|
|
1181
|
-
/**
|
|
1182
|
-
* Retrieves the merchant usage event.
|
|
1183
|
-
* @param input - `eventId`; optional abortSignal.
|
|
1184
|
-
* @returns The merchant usage event response.
|
|
1185
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1186
|
-
*/
|
|
1187
|
-
get(input: {
|
|
1188
|
-
eventId: string;
|
|
1189
|
-
} & ResourceRequestOptions): Promise<MerchantUsageEventResponse>;
|
|
1190
|
-
/**
|
|
1191
|
-
* Lists one page of merchant usage event records.
|
|
1192
|
-
* @param input - filters and pagination options.
|
|
1193
|
-
* @returns The merchant usage events response.
|
|
1194
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1195
|
-
*/
|
|
1196
|
-
list(input?: MerchantUsageEventsListOptions): Promise<MerchantUsageEventsResponse>;
|
|
1197
|
-
/**
|
|
1198
|
-
* Releases the merchant usage event.
|
|
1199
|
-
* @param input - `eventId`; optional abortSignal.
|
|
1200
|
-
* @returns The merchant usage event response.
|
|
1201
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1202
|
-
*/
|
|
1203
|
-
release(input: {
|
|
1204
|
-
eventId: string;
|
|
1205
|
-
} & ResourceRequestOptions): Promise<MerchantUsageEventResponse>;
|
|
1206
|
-
/**
|
|
1207
|
-
* Retries delivery of the merchant usage event.
|
|
1208
|
-
* @param input - `eventId`; optional abortSignal.
|
|
1209
|
-
* @returns The merchant usage event response.
|
|
1210
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1211
|
-
*/
|
|
1212
|
-
retry(input: {
|
|
1213
|
-
eventId: string;
|
|
1214
|
-
} & ResourceRequestOptions): Promise<MerchantUsageEventResponse>;
|
|
1215
|
-
/**
|
|
1216
|
-
* Retrieves merchant usage delivery totals for the selected day range.
|
|
1217
|
-
* @param input - Lookback window in `days` and optional abortSignal.
|
|
1218
|
-
* @returns The merchant usage summary response.
|
|
1219
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1220
|
-
*/
|
|
1221
|
-
summary(input?: {
|
|
1222
|
-
days?: number;
|
|
1223
|
-
} & ResourceRequestOptions): Promise<MerchantUsageSummaryResponse>;
|
|
1224
|
-
}
|
|
1225
|
-
export interface ChatConnectionsResource {
|
|
1226
|
-
/**
|
|
1227
|
-
* Checks the Chat Connection health.
|
|
1228
|
-
* @param input - `chatConnectionId`; optional abortSignal.
|
|
1229
|
-
* @returns The chat connection.
|
|
1230
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1231
|
-
*/
|
|
1232
|
-
checkHealth(input: {
|
|
1233
|
-
chatConnectionId: string;
|
|
1234
|
-
} & ResourceRequestOptions): Promise<ChatConnection>;
|
|
1235
|
-
/**
|
|
1236
|
-
* Creates the Chat Connection.
|
|
1237
|
-
* @param input - creation fields; optional abortSignal.
|
|
1238
|
-
* @returns The chat connection.
|
|
1239
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1240
|
-
*/
|
|
1241
|
-
create(input: CreateChatConnectionBody & ResourceRequestOptions): Promise<ChatConnection>;
|
|
1242
|
-
/**
|
|
1243
|
-
* Deletes the Chat Connection.
|
|
1244
|
-
* @param input - `chatConnectionId`; optional abortSignal.
|
|
1245
|
-
* @returns Resolves when the operation completes.
|
|
1246
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1247
|
-
*/
|
|
1248
|
-
delete(input: {
|
|
1249
|
-
chatConnectionId: string;
|
|
1250
|
-
} & ResourceRequestOptions): Promise<void>;
|
|
1251
|
-
/**
|
|
1252
|
-
* Disables the Chat Connection.
|
|
1253
|
-
* @param input - `chatConnectionId`; optional abortSignal.
|
|
1254
|
-
* @returns The chat connection.
|
|
1255
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1256
|
-
*/
|
|
1257
|
-
disable(input: {
|
|
1258
|
-
chatConnectionId: string;
|
|
1259
|
-
} & ResourceRequestOptions): Promise<ChatConnection>;
|
|
1260
|
-
/**
|
|
1261
|
-
* Enables the Chat Connection.
|
|
1262
|
-
* @param input - `chatConnectionId`; optional abortSignal.
|
|
1263
|
-
* @returns The chat connection.
|
|
1264
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1265
|
-
*/
|
|
1266
|
-
enable(input: {
|
|
1267
|
-
chatConnectionId: string;
|
|
1268
|
-
} & ResourceRequestOptions): Promise<ChatConnection>;
|
|
1269
|
-
/**
|
|
1270
|
-
* Retrieves the Chat Connection.
|
|
1271
|
-
* @param input - `chatConnectionId`; optional abortSignal.
|
|
1272
|
-
* @returns The chat connection.
|
|
1273
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1274
|
-
*/
|
|
1275
|
-
get(input: {
|
|
1276
|
-
chatConnectionId: string;
|
|
1277
|
-
} & ResourceRequestOptions): Promise<ChatConnection>;
|
|
1278
|
-
/**
|
|
1279
|
-
* Lists available Chat Connection records.
|
|
1280
|
-
* @param input - optional abortSignal.
|
|
1281
|
-
* @returns The chat connections response.
|
|
1282
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1283
|
-
*/
|
|
1284
|
-
list(input?: ResourceRequestOptions): Promise<ChatConnectionsResponse>;
|
|
1285
|
-
/**
|
|
1286
|
-
* Lists one page of the replies and approval cards the Chat Connection has
|
|
1287
|
-
* sent or tried to send, newest first, in every status. Pass `nextCursor`
|
|
1288
|
-
* as `cursor` to fetch older records.
|
|
1289
|
-
* @param input - `chatConnectionId`; optional `cursor`, `limit` (1 to 100, default 100), and abortSignal.
|
|
1290
|
-
* @returns The page of chat deliveries.
|
|
1291
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1292
|
-
*/
|
|
1293
|
-
listDeliveries(input: {
|
|
1294
|
-
chatConnectionId: string;
|
|
1295
|
-
cursor?: string;
|
|
1296
|
-
limit?: number;
|
|
1297
|
-
} & ResourceRequestOptions): Promise<ChatDeliveryList>;
|
|
1298
|
-
/**
|
|
1299
|
-
* Sends a stuck reply or approval card again, without running a turn or
|
|
1300
|
-
* tool. Use it when the previous send stopped before its outcome was known.
|
|
1301
|
-
* Pass the delivery's current `attempt` as `expectedAttempt`; the repair is
|
|
1302
|
-
* refused if it has changed. `previousSenderStopped` and
|
|
1303
|
-
* `acceptDuplicateRisk` must be `true`: the message can appear twice. The
|
|
1304
|
-
* connection must be enabled. Check `status` in the result, because a
|
|
1305
|
-
* successful request does not by itself mean the message was delivered.
|
|
1306
|
-
* @param input - `chatConnectionId`, `deliveryId`, the repair confirmations, and optional abortSignal.
|
|
1307
|
-
* @returns The delivery outcome.
|
|
1308
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1309
|
-
*/
|
|
1310
|
-
repairDelivery(input: RepairChatDeliveryBody & {
|
|
1311
|
-
chatConnectionId: string;
|
|
1312
|
-
deliveryId: string;
|
|
1313
|
-
} & ResourceRequestOptions): Promise<ChatDeliveryResult>;
|
|
1314
|
-
/**
|
|
1315
|
-
* Replaces the Chat Connection credentials.
|
|
1316
|
-
* @param input - `chatConnectionId`; fields to change; optional abortSignal.
|
|
1317
|
-
* @returns The chat connection.
|
|
1318
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1319
|
-
*/
|
|
1320
|
-
rotateCredentials(input: RotateChatConnectionBody & {
|
|
1321
|
-
chatConnectionId: string;
|
|
1322
|
-
} & ResourceRequestOptions): Promise<ChatConnection>;
|
|
1323
|
-
/**
|
|
1324
|
-
* Updates the Chat Connection.
|
|
1325
|
-
* @param input - `chatConnectionId`; fields to change; optional abortSignal.
|
|
1326
|
-
* @returns The chat connection.
|
|
1327
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1328
|
-
*/
|
|
1329
|
-
update(input: UpdateChatConnectionBody & {
|
|
1330
|
-
chatConnectionId: string;
|
|
1331
|
-
} & ResourceRequestOptions): Promise<ChatConnection>;
|
|
1332
|
-
}
|
|
1333
|
-
export interface ChatDeliveriesListOptions extends ResourceRequestOptions {
|
|
1334
|
-
cursor?: string;
|
|
1335
|
-
limit?: number;
|
|
1336
|
-
/** ISO 8601 date-time; inclusive lower bound on `createdAt`. */
|
|
1337
|
-
since?: string;
|
|
1338
|
-
/** `failed` and/or `ambiguous`; omitted means both. */
|
|
1339
|
-
status?: readonly ChatDeliveryListStatus[];
|
|
1340
|
-
}
|
|
1341
|
-
/**
|
|
1342
|
-
* `client.chatDeliveries` — the Tenant's deliveries across all Chat
|
|
1343
|
-
* Connections behind `GET /v1/chat-deliveries`, newest first.
|
|
1344
|
-
*/
|
|
1345
|
-
export interface ChatDeliveriesResource {
|
|
1346
|
-
/**
|
|
1347
|
-
* Lists one page of Chat delivery records.
|
|
1348
|
-
* @param input - filters and pagination options.
|
|
1349
|
-
* @returns The chat deliveries response.
|
|
1350
|
-
* @throws BlazingAgentsError - If the request fails, is aborted, or returns an invalid response.
|
|
1351
|
-
*/
|
|
1352
|
-
list(input?: ChatDeliveriesListOptions): Promise<ChatDeliveriesResponse>;
|
|
1353
|
-
}
|
|
1354
283
|
export {};
|