@axiom-lattice/client-sdk 5.0.1 → 6.0.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/__tests__/commands.test.d.ts +2 -0
- package/dist/__tests__/commands.test.d.ts.map +1 -0
- package/dist/__tests__/commands.test.js +96 -0
- package/dist/__tests__/commands.test.js.map +1 -0
- package/dist/__tests__/crons.test.d.ts +2 -0
- package/dist/__tests__/crons.test.d.ts.map +1 -0
- package/dist/__tests__/crons.test.js +103 -0
- package/dist/__tests__/crons.test.js.map +1 -0
- package/dist/__tests__/info.test.d.ts +2 -0
- package/dist/__tests__/info.test.d.ts.map +1 -0
- package/dist/__tests__/info.test.js +109 -0
- package/dist/__tests__/info.test.js.map +1 -0
- package/dist/__tests__/project-rooms.test.js +12 -0
- package/dist/__tests__/project-rooms.test.js.map +1 -1
- package/dist/__tests__/resume-last-event-id.test.d.ts +2 -0
- package/dist/__tests__/resume-last-event-id.test.d.ts.map +1 -0
- package/dist/__tests__/resume-last-event-id.test.js +111 -0
- package/dist/__tests__/resume-last-event-id.test.js.map +1 -0
- package/dist/__tests__/resume-stream-http-error.test.d.ts +2 -0
- package/dist/__tests__/resume-stream-http-error.test.d.ts.map +1 -0
- package/dist/__tests__/resume-stream-http-error.test.js +45 -0
- package/dist/__tests__/resume-stream-http-error.test.js.map +1 -0
- package/dist/__tests__/runs-task-queue.test.d.ts +2 -0
- package/dist/__tests__/runs-task-queue.test.d.ts.map +1 -0
- package/dist/__tests__/runs-task-queue.test.js +159 -0
- package/dist/__tests__/runs-task-queue.test.js.map +1 -0
- package/dist/__tests__/runs.test.d.ts +2 -0
- package/dist/__tests__/runs.test.d.ts.map +1 -0
- package/dist/__tests__/runs.test.js +135 -0
- package/dist/__tests__/runs.test.js.map +1 -0
- package/dist/__tests__/runtime-client.test.js +29 -0
- package/dist/__tests__/runtime-client.test.js.map +1 -1
- package/dist/__tests__/store.test.d.ts +2 -0
- package/dist/__tests__/store.test.d.ts.map +1 -0
- package/dist/__tests__/store.test.js +100 -0
- package/dist/__tests__/store.test.js.map +1 -0
- package/dist/__tests__/thread-event-stream.test.d.ts +2 -0
- package/dist/__tests__/thread-event-stream.test.d.ts.map +1 -0
- package/dist/__tests__/thread-event-stream.test.js +109 -0
- package/dist/__tests__/thread-event-stream.test.js.map +1 -0
- package/dist/__tests__/thread-maintenance.test.d.ts +2 -0
- package/dist/__tests__/thread-maintenance.test.d.ts.map +1 -0
- package/dist/__tests__/thread-maintenance.test.js +98 -0
- package/dist/__tests__/thread-maintenance.test.js.map +1 -0
- package/dist/abstract-client.d.ts +234 -1
- package/dist/abstract-client.d.ts.map +1 -1
- package/dist/abstract-client.js +406 -1
- package/dist/abstract-client.js.map +1 -1
- package/dist/client.d.ts +9 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +35 -5
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +588 -3
- package/dist/index.js +622 -121
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +622 -121
- package/dist/index.mjs.map +1 -1
- package/dist/project-rooms.d.ts +3 -0
- package/dist/project-rooms.d.ts.map +1 -1
- package/dist/project-rooms.js +1 -0
- package/dist/project-rooms.js.map +1 -1
- package/dist/runtime-client.d.ts.map +1 -1
- package/dist/runtime-client.js +2 -6
- package/dist/runtime-client.js.map +1 -1
- package/dist/types.d.ts +342 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +9 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
|
|
2
|
-
import { McpUiResourcePayload, CapabilityBundle, CapabilityPreview, AgentWebApp, Message, MessageChunk, DatabaseConfigEntry, MetricsServerConfigEntry, DataSource, McpServerConfigEntry, McpTool, LocalA2ATemplateDefinition, OpenGrant, TaskItem, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, ModelProviderPublicEntry, CreateModelProviderRequest, UpdateModelProviderRequest, ModelProviderProbeRequest, ModelProviderProbeResult, ModelSelection, ModelDiscoveryResult, TenantModelCatalog, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, ConnectionEntry, CreateTaskRequest, UpdateTaskRequest, TaskWorkItem, LocalA2AProviderState, OpenCatalog, McpUiRef, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, CreateAgentWebAppInput, UpdateAgentWebAppInput, Skill, CreateSkillRequest, CreateShareRequest, ShareResult, ShareRecord, ProjectRoom, ProjectRoomPublicMessage, ProjectMembership, ProjectBotMembership, ProjectRoomPublicMembership, ProjectRoomPublicBotMembership, ProjectRoomMention, ProjectHumanRole, ProjectBotRole, Project as Project$1, ProjectRoomEventScope, ToolCallUi } from '@axiom-lattice/protocols';
|
|
3
|
-
export { AgentWebApp, AgentWebAppAppearance, AgentWebAppFeatures, AgentWebAppQuickPrompt, AgentWebAppScope, AgentWebAppStatus, CapabilityBundle, CapabilityPreview, CreateAgentWebAppInput, CreateCapabilityBundleInput, LocalA2AProviderId, LocalA2AProviderState, LocalA2AProviderStatus, LocalA2ATemplateDefinition, LocalRuntimeConfig, UpdateAgentWebAppInput, UpdateCapabilityBundleInput } from '@axiom-lattice/protocols';
|
|
2
|
+
import { McpUiResourcePayload, CapabilityBundle, CapabilityPreview, AgentWebApp, AgentInterrupt, Message, MessageChunk, DatabaseConfigEntry, MetricsServerConfigEntry, DataSource, McpServerConfigEntry, McpTool, LocalA2ATemplateDefinition, OpenGrant, TaskItem, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, ModelProviderPublicEntry, CreateModelProviderRequest, UpdateModelProviderRequest, ModelProviderProbeRequest, ModelProviderProbeResult, ModelSelection, ModelDiscoveryResult, TenantModelCatalog, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, ConnectionEntry, CreateTaskRequest, UpdateTaskRequest, TaskWorkItem, ThreadCheckpointStorage, LocalA2AProviderState, OpenCatalog, McpUiRef, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, CreateAgentWebAppInput, UpdateAgentWebAppInput, Skill, CreateSkillRequest, CreateShareRequest, ShareResult, ShareRecord, ProjectRoom, ProjectRoomPublicMessage, ProjectMembership, ProjectBotMembership, ProjectRoomPublicMembership, ProjectRoomPublicBotMembership, ProjectRoomMention, ProjectHumanRole, ProjectBotRole, Project as Project$1, ProjectRoomEventScope, ToolCallUi } from '@axiom-lattice/protocols';
|
|
3
|
+
export { AgentInterrupt, AgentWebApp, AgentWebAppAppearance, AgentWebAppFeatures, AgentWebAppQuickPrompt, AgentWebAppScope, AgentWebAppStatus, CapabilityBundle, CapabilityPreview, CreateAgentWebAppInput, CreateCapabilityBundleInput, LocalA2AProviderId, LocalA2AProviderState, LocalA2AProviderStatus, LocalA2ATemplateDefinition, LocalRuntimeConfig, ThreadCheckpointStorage, UpdateAgentWebAppInput, UpdateCapabilityBundleInput } from '@axiom-lattice/protocols';
|
|
4
4
|
|
|
5
5
|
/** Resolved MCP App UI resource plus its ready-to-use CSP policy string. */
|
|
6
6
|
interface McpUiResourceResponse extends McpUiResourcePayload {
|
|
@@ -116,6 +116,47 @@ interface CreateThreadOptions {
|
|
|
116
116
|
* Optional metadata for the thread
|
|
117
117
|
*/
|
|
118
118
|
metadata?: Record<string, any>;
|
|
119
|
+
/** Optional relative TTL in seconds. */
|
|
120
|
+
ttlSeconds?: number;
|
|
121
|
+
/** Optional absolute ISO expiry; ignored when ttlSeconds is supplied. */
|
|
122
|
+
expiresAt?: string;
|
|
123
|
+
/** Optional pre-populated graph state written at creation. */
|
|
124
|
+
supersteps?: ThreadSuperstepInput[];
|
|
125
|
+
}
|
|
126
|
+
/** One checkpoint update applied when creating a thread. */
|
|
127
|
+
interface ThreadSuperstepInput {
|
|
128
|
+
updates: Array<{
|
|
129
|
+
values: Record<string, unknown>;
|
|
130
|
+
as_node?: string;
|
|
131
|
+
}>;
|
|
132
|
+
}
|
|
133
|
+
/** Thread status and pending HITL interrupts. */
|
|
134
|
+
interface ThreadStatusInfo {
|
|
135
|
+
status: "idle" | "busy" | "interrupted" | "error";
|
|
136
|
+
pendingMessages: number;
|
|
137
|
+
interrupts: AgentInterrupt[];
|
|
138
|
+
}
|
|
139
|
+
/** One page of thread checkpoint history (newest first). */
|
|
140
|
+
interface ThreadHistoryPage {
|
|
141
|
+
history: unknown[];
|
|
142
|
+
}
|
|
143
|
+
/** Result of a thread copy operation. */
|
|
144
|
+
type CopiedThread = Thread;
|
|
145
|
+
/** Prune strategy input. */
|
|
146
|
+
interface PruneThreadInput {
|
|
147
|
+
strategy: "delete" | "keep_latest";
|
|
148
|
+
keep?: number;
|
|
149
|
+
}
|
|
150
|
+
/** Result of a thread prune operation. */
|
|
151
|
+
interface PruneThreadResult {
|
|
152
|
+
pruned: boolean;
|
|
153
|
+
strategy?: "delete" | "keep_latest";
|
|
154
|
+
keep?: number;
|
|
155
|
+
counts?: {
|
|
156
|
+
checkpoints: number;
|
|
157
|
+
blobs: number;
|
|
158
|
+
writes: number;
|
|
159
|
+
};
|
|
119
160
|
}
|
|
120
161
|
/**
|
|
121
162
|
* Thread information
|
|
@@ -296,6 +337,13 @@ interface ResumeStreamOptions {
|
|
|
296
337
|
* Polling interval in milliseconds (default: 100ms)
|
|
297
338
|
*/
|
|
298
339
|
pollInterval?: number;
|
|
340
|
+
/**
|
|
341
|
+
* Last SSE event id received on a prior connection.
|
|
342
|
+
*
|
|
343
|
+
* Sent as `Last-Event-ID` so a shared/cursor-addressable chunk source resumes
|
|
344
|
+
* strictly after that record. Omit to position by message id.
|
|
345
|
+
*/
|
|
346
|
+
lastEventId?: string;
|
|
299
347
|
}
|
|
300
348
|
/**
|
|
301
349
|
* Thread list options
|
|
@@ -577,6 +625,298 @@ declare enum ScheduledTaskStatus {
|
|
|
577
625
|
/**
|
|
578
626
|
* Scheduled task definition
|
|
579
627
|
*/
|
|
628
|
+
/** Queue behavior for an Agent cron. */
|
|
629
|
+
type CronMultitaskStrategy = "enqueue" | "interrupt";
|
|
630
|
+
/** Completion behavior for a stateless Agent cron. */
|
|
631
|
+
type CronOnRunCompleted = "keep" | "delete";
|
|
632
|
+
/** Agent cron resource returned by the gateway. */
|
|
633
|
+
interface AgentCron {
|
|
634
|
+
cron_id: string;
|
|
635
|
+
thread_id?: string;
|
|
636
|
+
assistant_id: string;
|
|
637
|
+
schedule: string;
|
|
638
|
+
timezone: string;
|
|
639
|
+
end_time?: string;
|
|
640
|
+
next_run_date?: string;
|
|
641
|
+
enabled: boolean;
|
|
642
|
+
payload: Record<string, unknown>;
|
|
643
|
+
on_run_completed?: CronOnRunCompleted;
|
|
644
|
+
multitask_strategy: CronMultitaskStrategy;
|
|
645
|
+
created_at: string;
|
|
646
|
+
updated_at: string;
|
|
647
|
+
run_count: number;
|
|
648
|
+
status: string;
|
|
649
|
+
}
|
|
650
|
+
/** Shared create fields for thread and stateless crons. */
|
|
651
|
+
interface CreateCronInput {
|
|
652
|
+
schedule: string;
|
|
653
|
+
timezone?: string;
|
|
654
|
+
end_time?: string;
|
|
655
|
+
payload: {
|
|
656
|
+
input: Record<string, unknown>;
|
|
657
|
+
};
|
|
658
|
+
enabled?: boolean;
|
|
659
|
+
multitask_strategy?: CronMultitaskStrategy;
|
|
660
|
+
}
|
|
661
|
+
/** Create a cron bound to an existing thread. */
|
|
662
|
+
type CreateThreadCronInput = CreateCronInput;
|
|
663
|
+
/** Create a stateless cron that starts a fresh thread per fire. */
|
|
664
|
+
interface CreateStatelessCronInput extends CreateCronInput {
|
|
665
|
+
assistant_id: string;
|
|
666
|
+
on_run_completed?: CronOnRunCompleted;
|
|
667
|
+
}
|
|
668
|
+
/** Filters accepted by cron search/count. */
|
|
669
|
+
interface CronSearchFilters {
|
|
670
|
+
assistant_id?: string;
|
|
671
|
+
thread_id?: string;
|
|
672
|
+
enabled?: boolean;
|
|
673
|
+
limit?: number;
|
|
674
|
+
offset?: number;
|
|
675
|
+
}
|
|
676
|
+
/** Count filters accepted by the cron count endpoint. */
|
|
677
|
+
interface CronCountFilters {
|
|
678
|
+
assistant_id?: string;
|
|
679
|
+
thread_id?: string;
|
|
680
|
+
enabled?: boolean;
|
|
681
|
+
}
|
|
682
|
+
/** Patchable fields on an Agent cron (D1: enabled only). */
|
|
683
|
+
interface UpdateAgentCronInput {
|
|
684
|
+
enabled: boolean;
|
|
685
|
+
}
|
|
686
|
+
/** Structured Agent graph returned by `agent.getTree`. */
|
|
687
|
+
interface AgentGraphTree {
|
|
688
|
+
nodes: unknown[];
|
|
689
|
+
edges: unknown[];
|
|
690
|
+
mermaid: string;
|
|
691
|
+
namespaces: string[][];
|
|
692
|
+
}
|
|
693
|
+
/** Input payload accepted by the `run.start` thread command. */
|
|
694
|
+
interface CommandRunStartInput {
|
|
695
|
+
message?: string;
|
|
696
|
+
messages?: Array<{
|
|
697
|
+
role: string;
|
|
698
|
+
content: unknown;
|
|
699
|
+
}>;
|
|
700
|
+
id?: string;
|
|
701
|
+
}
|
|
702
|
+
/** Arguments for `run.start`. */
|
|
703
|
+
interface CommandRunStartArgs {
|
|
704
|
+
input: CommandRunStartInput;
|
|
705
|
+
config?: Record<string, unknown>;
|
|
706
|
+
metadata?: Record<string, unknown>;
|
|
707
|
+
multitask_strategy?: "enqueue" | "interrupt" | "collect";
|
|
708
|
+
}
|
|
709
|
+
/** Result of `run.start`. */
|
|
710
|
+
interface CommandRunStartResult {
|
|
711
|
+
messageId: string;
|
|
712
|
+
queued: boolean;
|
|
713
|
+
mode: string;
|
|
714
|
+
}
|
|
715
|
+
/** Arguments for `input.respond`. */
|
|
716
|
+
interface CommandInputRespondArgs {
|
|
717
|
+
interrupt_id: string;
|
|
718
|
+
response?: unknown;
|
|
719
|
+
answers?: unknown[];
|
|
720
|
+
resume?: Record<string, unknown>;
|
|
721
|
+
config?: Record<string, unknown>;
|
|
722
|
+
/** Server currently derives this from `interrupt_id`; accepted for forward compatibility. */
|
|
723
|
+
expected_interrupt_id?: string;
|
|
724
|
+
}
|
|
725
|
+
/** Result of `input.respond` (queue-first: the answer is accepted before it runs). */
|
|
726
|
+
interface CommandInputRespondResult {
|
|
727
|
+
messageId: string;
|
|
728
|
+
queued: boolean;
|
|
729
|
+
interruptId: string;
|
|
730
|
+
/** Present on queue-first responses; the answer was durably accepted. */
|
|
731
|
+
accepted?: boolean;
|
|
732
|
+
/** Present on queue-first responses; the queued command id. */
|
|
733
|
+
commandId?: string;
|
|
734
|
+
}
|
|
735
|
+
/** Input accepted by the single-run create API. */
|
|
736
|
+
interface RunCreateInput {
|
|
737
|
+
message?: string;
|
|
738
|
+
messages?: Array<{
|
|
739
|
+
role: string;
|
|
740
|
+
content: unknown;
|
|
741
|
+
}>;
|
|
742
|
+
id?: string;
|
|
743
|
+
}
|
|
744
|
+
/** Options accepted by the single-run create API. */
|
|
745
|
+
interface RunCreateOptions {
|
|
746
|
+
config?: Record<string, unknown>;
|
|
747
|
+
mode?: "followup" | "enqueue";
|
|
748
|
+
/** HITL resume command; mutually exclusive with `input`. */
|
|
749
|
+
command?: {
|
|
750
|
+
resume: unknown;
|
|
751
|
+
};
|
|
752
|
+
/**
|
|
753
|
+
* Behavior when the thread already has an active run. Defaults to `enqueue`.
|
|
754
|
+
*
|
|
755
|
+
* @remarks `reject` returns `409 RUN_REJECTED` without touching the active
|
|
756
|
+
* run; `interrupt` settles or interrupts exactly one active run, waits for it
|
|
757
|
+
* to become terminal, then creates the new pending run; `rollback` rewinds
|
|
758
|
+
* and deletes the active run first. `interrupt`/`rollback` return
|
|
759
|
+
* `409 MULTITASK_INTERRUPT_CONFLICT` / `409 MULTITASK_ROLLBACK_CONFLICT` when
|
|
760
|
+
* more than one run is active.
|
|
761
|
+
*/
|
|
762
|
+
multitaskStrategy?: "enqueue" | "reject" | "interrupt" | "rollback";
|
|
763
|
+
}
|
|
764
|
+
/** Result of creating a single run (durable pending queue entry). */
|
|
765
|
+
interface RunCreateResult {
|
|
766
|
+
runId: string;
|
|
767
|
+
/** Present for input runs; command runs do not create a user message. */
|
|
768
|
+
messageId?: string;
|
|
769
|
+
status: "pending";
|
|
770
|
+
}
|
|
771
|
+
/** Safe, client-facing projection of a run ledger record. */
|
|
772
|
+
interface RunRecord {
|
|
773
|
+
runId: string;
|
|
774
|
+
status: AgentRunStatus;
|
|
775
|
+
/** Null while the run is pending. */
|
|
776
|
+
owner: string | null;
|
|
777
|
+
attempts: number;
|
|
778
|
+
error: string | null;
|
|
779
|
+
cancelRequested: boolean;
|
|
780
|
+
createdAt: number;
|
|
781
|
+
updatedAt: number;
|
|
782
|
+
/** Null while the run is pending. */
|
|
783
|
+
startedAt: number | null;
|
|
784
|
+
finishedAt: number | null;
|
|
785
|
+
}
|
|
786
|
+
/** Options for cancelling a run. */
|
|
787
|
+
interface RunCancelOptions {
|
|
788
|
+
/** Wait for the run to reach a terminal status (server caps the wait). */
|
|
789
|
+
wait?: boolean;
|
|
790
|
+
/**
|
|
791
|
+
* `interrupt` keeps the run and its checkpoints; `rollback` deletes the
|
|
792
|
+
* pending row or rewinds a running run's checkpoints and row.
|
|
793
|
+
*/
|
|
794
|
+
action?: "interrupt" | "rollback";
|
|
795
|
+
}
|
|
796
|
+
/** Result of a run cancellation request. */
|
|
797
|
+
interface RunCancelResult {
|
|
798
|
+
success: boolean;
|
|
799
|
+
accepted: boolean;
|
|
800
|
+
/** `rolled_back` means the run row was deleted; no `run` is returned. */
|
|
801
|
+
status: AgentRunStatus | "requested" | "rolled_back";
|
|
802
|
+
terminal: boolean;
|
|
803
|
+
run?: RunRecord;
|
|
804
|
+
}
|
|
805
|
+
/** One projected thread event from the SSE event stream. */
|
|
806
|
+
interface ThreadEvent {
|
|
807
|
+
type: "event";
|
|
808
|
+
event_id: string;
|
|
809
|
+
seq: string;
|
|
810
|
+
method: string;
|
|
811
|
+
params: {
|
|
812
|
+
namespace: string[];
|
|
813
|
+
timestamp: number;
|
|
814
|
+
data: unknown;
|
|
815
|
+
node?: string;
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
/** Filters/resume cursor for the thread event stream. */
|
|
819
|
+
interface ThreadEventStreamOptions {
|
|
820
|
+
channels?: string[];
|
|
821
|
+
namespaces?: string[][];
|
|
822
|
+
depth?: number;
|
|
823
|
+
since?: string | number;
|
|
824
|
+
}
|
|
825
|
+
/** Error delivered to `streamThreadEvents` consumers. */
|
|
826
|
+
interface ThreadEventStreamError extends Error {
|
|
827
|
+
code?: string;
|
|
828
|
+
/** HTTP status for non-OK stream responses. */
|
|
829
|
+
status?: number;
|
|
830
|
+
/** Parsed JSON body for non-OK stream responses. */
|
|
831
|
+
responseBody?: unknown;
|
|
832
|
+
}
|
|
833
|
+
/** Public gateway identity, flags, capabilities, and endpoint paths. */
|
|
834
|
+
interface GatewayInfo {
|
|
835
|
+
service: "lattice-gateway";
|
|
836
|
+
version: string;
|
|
837
|
+
commit?: string;
|
|
838
|
+
startedAt: string;
|
|
839
|
+
uptimeSeconds: number;
|
|
840
|
+
flags: {
|
|
841
|
+
authRequired: boolean;
|
|
842
|
+
executionWorker: boolean;
|
|
843
|
+
chunkSource: "memory" | "redis";
|
|
844
|
+
multiReplica: boolean;
|
|
845
|
+
};
|
|
846
|
+
capabilities: {
|
|
847
|
+
a2a: boolean;
|
|
848
|
+
mcp: boolean;
|
|
849
|
+
store: boolean;
|
|
850
|
+
crons: boolean;
|
|
851
|
+
threadEvents: boolean;
|
|
852
|
+
threadEventsWebSocket: boolean;
|
|
853
|
+
metrics: boolean;
|
|
854
|
+
taskLifecycle: boolean;
|
|
855
|
+
};
|
|
856
|
+
endpoints: {
|
|
857
|
+
health: string;
|
|
858
|
+
metrics: string;
|
|
859
|
+
info: string;
|
|
860
|
+
mcp: string;
|
|
861
|
+
store: string;
|
|
862
|
+
threadEvents: string;
|
|
863
|
+
a2aAgentCard: string;
|
|
864
|
+
a2aJsonRpc: string;
|
|
865
|
+
};
|
|
866
|
+
metadata: {
|
|
867
|
+
deployment?: string;
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
/** Agent run lifecycle status exposed by `/metrics`. */
|
|
871
|
+
type AgentRunStatus = "pending" | "running" | "success" | "error" | "interrupted" | "cancelled" | "timeout";
|
|
872
|
+
/** Execution worker posture exposed by `/metrics`. */
|
|
873
|
+
interface SystemMetricsWorker {
|
|
874
|
+
enabled: boolean;
|
|
875
|
+
started?: boolean;
|
|
876
|
+
inFlight?: number;
|
|
877
|
+
maxConcurrentThreads?: number;
|
|
878
|
+
scanIntervalMs?: number;
|
|
879
|
+
}
|
|
880
|
+
/** Chunk stream posture exposed by `/metrics`. */
|
|
881
|
+
interface SystemMetricsChunk {
|
|
882
|
+
source: "memory" | "redis";
|
|
883
|
+
ttlMs: number;
|
|
884
|
+
maxLen: number;
|
|
885
|
+
}
|
|
886
|
+
/** Point-in-time gateway posture returned by `/metrics?format=json`. */
|
|
887
|
+
interface SystemMetrics {
|
|
888
|
+
replicaId: string;
|
|
889
|
+
uptimeSeconds: number;
|
|
890
|
+
agentRuns?: Record<AgentRunStatus, number>;
|
|
891
|
+
pendingThreads?: number;
|
|
892
|
+
worker: SystemMetricsWorker;
|
|
893
|
+
chunk: SystemMetricsChunk;
|
|
894
|
+
}
|
|
895
|
+
/** Tenant-scoped namespaced store item. */
|
|
896
|
+
interface StoreItem {
|
|
897
|
+
namespace: string[];
|
|
898
|
+
key: string;
|
|
899
|
+
value: Record<string, unknown>;
|
|
900
|
+
createdAt: string;
|
|
901
|
+
updatedAt: string;
|
|
902
|
+
expiresAt?: string;
|
|
903
|
+
}
|
|
904
|
+
/** Create/replace input for a store item. */
|
|
905
|
+
interface StorePutInput {
|
|
906
|
+
namespace: string[];
|
|
907
|
+
key: string;
|
|
908
|
+
value: Record<string, unknown>;
|
|
909
|
+
ttlMinutes?: number;
|
|
910
|
+
index?: boolean | string[];
|
|
911
|
+
}
|
|
912
|
+
/** Search input for the tenant store. */
|
|
913
|
+
interface StoreSearchInput {
|
|
914
|
+
namespacePrefix?: string[];
|
|
915
|
+
filter?: Record<string, unknown>;
|
|
916
|
+
query?: string;
|
|
917
|
+
limit?: number;
|
|
918
|
+
offset?: number;
|
|
919
|
+
}
|
|
580
920
|
interface ScheduledTask {
|
|
581
921
|
/**
|
|
582
922
|
* Unique task identifier
|
|
@@ -1237,6 +1577,27 @@ declare abstract class AbstractClient {
|
|
|
1237
1577
|
* @returns A new client instance with the same configuration and state
|
|
1238
1578
|
*/
|
|
1239
1579
|
clone(overrides?: Partial<ClientConfig>): AbstractClient;
|
|
1580
|
+
/**
|
|
1581
|
+
* Headers for thread event SSE requests. Concrete clients may add live
|
|
1582
|
+
* tenant/workspace/auth state.
|
|
1583
|
+
*
|
|
1584
|
+
* @returns Request headers.
|
|
1585
|
+
*/
|
|
1586
|
+
protected getThreadEventHeaders(): Record<string, string>;
|
|
1587
|
+
/**
|
|
1588
|
+
* Stream thread-wide projected events over SSE.
|
|
1589
|
+
*
|
|
1590
|
+
* The caller owns reconnection: pass the last `event.seq` as `since`.
|
|
1591
|
+
* There is no automatic retry. Browser WebSocket auth is not covered here;
|
|
1592
|
+
* this SSE path uses `fetch` and the normal Authorization headers.
|
|
1593
|
+
*
|
|
1594
|
+
* @param threadId - Thread id.
|
|
1595
|
+
* @param options - Channel/namespace/depth filters and resume cursor.
|
|
1596
|
+
* @param onEvent - Callback for each projected event.
|
|
1597
|
+
* @param onError - Callback for stream/cursor errors (stream stops).
|
|
1598
|
+
* @returns Abort function.
|
|
1599
|
+
*/
|
|
1600
|
+
streamThreadEvents(threadId: string, options: ThreadEventStreamOptions, onEvent: (event: ThreadEvent) => void, onError?: (error: ThreadEventStreamError) => void): () => void;
|
|
1240
1601
|
/**
|
|
1241
1602
|
* Abstract method for making API requests
|
|
1242
1603
|
* To be implemented by concrete client classes
|
|
@@ -1282,6 +1643,58 @@ declare abstract class AbstractClient {
|
|
|
1282
1643
|
* @returns A promise that resolves to an array of threads
|
|
1283
1644
|
*/
|
|
1284
1645
|
listThreads(options?: ListThreadsOptions): Promise<Thread[]>;
|
|
1646
|
+
/**
|
|
1647
|
+
* Reads a thread's run status, pending message count, and interrupts.
|
|
1648
|
+
* @param threadId - Thread identifier.
|
|
1649
|
+
* @returns Thread status projection.
|
|
1650
|
+
*/
|
|
1651
|
+
getThreadStatus(threadId: string): Promise<ThreadStatusInfo>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Reads a page of thread checkpoint history.
|
|
1654
|
+
* @param threadId - Thread identifier.
|
|
1655
|
+
* @param options - Optional limit and before-checkpoint cursor.
|
|
1656
|
+
* @returns Checkpoint snapshots, newest first.
|
|
1657
|
+
*/
|
|
1658
|
+
getThreadHistory(threadId: string, options?: {
|
|
1659
|
+
limit?: number;
|
|
1660
|
+
before?: string;
|
|
1661
|
+
}): Promise<unknown[]>;
|
|
1662
|
+
/**
|
|
1663
|
+
* Reads the raw snapshot at one checkpoint.
|
|
1664
|
+
* @param threadId - Thread identifier.
|
|
1665
|
+
* @param checkpointId - Checkpoint identifier.
|
|
1666
|
+
* @returns The raw checkpoint snapshot.
|
|
1667
|
+
*/
|
|
1668
|
+
getThreadStateAtCheckpoint(threadId: string, checkpointId: string): Promise<unknown>;
|
|
1669
|
+
/**
|
|
1670
|
+
* Reads checkpoint storage accounting for a thread.
|
|
1671
|
+
* @param threadId - Thread identifier.
|
|
1672
|
+
* @returns Storage byte/count projection.
|
|
1673
|
+
*/
|
|
1674
|
+
getThreadStorage(threadId: string): Promise<ThreadCheckpointStorage>;
|
|
1675
|
+
/**
|
|
1676
|
+
* Copies a thread's checkpoints and row into a new thread.
|
|
1677
|
+
* @param threadId - Source thread identifier.
|
|
1678
|
+
* @returns The created thread.
|
|
1679
|
+
*/
|
|
1680
|
+
copyThread(threadId: string): Promise<CopiedThread>;
|
|
1681
|
+
/**
|
|
1682
|
+
* Prunes a thread's checkpoints or deletes the thread.
|
|
1683
|
+
* @param threadId - Thread identifier.
|
|
1684
|
+
* @param input - Prune strategy and optional keep count.
|
|
1685
|
+
* @returns Prune result.
|
|
1686
|
+
*/
|
|
1687
|
+
pruneThread(threadId: string, input: PruneThreadInput): Promise<PruneThreadResult>;
|
|
1688
|
+
/**
|
|
1689
|
+
* Reads the public gateway info surface.
|
|
1690
|
+
* @returns Service identity, flags, capabilities, endpoints, and metadata.
|
|
1691
|
+
*/
|
|
1692
|
+
getInfo(): Promise<GatewayInfo>;
|
|
1693
|
+
/**
|
|
1694
|
+
* Reads the current gateway replica's runtime metrics.
|
|
1695
|
+
* @returns Run counts, pending threads, worker posture, and chunk posture.
|
|
1696
|
+
*/
|
|
1697
|
+
getSystemMetrics(): Promise<SystemMetrics>;
|
|
1285
1698
|
/**
|
|
1286
1699
|
* Deletes a thread
|
|
1287
1700
|
* @deprecated Use threads.delete() instead
|
|
@@ -1332,6 +1745,7 @@ declare abstract class AbstractClient {
|
|
|
1332
1745
|
sendBackground: (options: ChatSendOptions) => Promise<{
|
|
1333
1746
|
messageId: string;
|
|
1334
1747
|
queued: boolean;
|
|
1748
|
+
runId?: string;
|
|
1335
1749
|
}>;
|
|
1336
1750
|
/**
|
|
1337
1751
|
* Sends a message to a thread and streams the response
|
|
@@ -1832,6 +2246,165 @@ declare abstract class AbstractClient {
|
|
|
1832
2246
|
*/
|
|
1833
2247
|
resume: (taskId: string) => Promise<boolean>;
|
|
1834
2248
|
};
|
|
2249
|
+
/**
|
|
2250
|
+
* Agent cron resources (`/api/runs/crons` and thread-bound crons).
|
|
2251
|
+
*/
|
|
2252
|
+
crons: {
|
|
2253
|
+
/**
|
|
2254
|
+
* Creates a cron bound to an existing thread.
|
|
2255
|
+
* @param threadId - Thread that receives follow-up runs.
|
|
2256
|
+
* @param body - Cron definition.
|
|
2257
|
+
* @returns The created cron.
|
|
2258
|
+
*/
|
|
2259
|
+
createForThread: (threadId: string, body: CreateThreadCronInput) => Promise<AgentCron>;
|
|
2260
|
+
/**
|
|
2261
|
+
* Creates a stateless cron that starts a fresh thread per fire.
|
|
2262
|
+
* @param body - Cron definition including the assistant id.
|
|
2263
|
+
* @returns The created cron.
|
|
2264
|
+
*/
|
|
2265
|
+
createStateless: (body: CreateStatelessCronInput) => Promise<AgentCron>;
|
|
2266
|
+
/**
|
|
2267
|
+
* Searches tenant-scoped Agent crons.
|
|
2268
|
+
* @param body - Optional assistant/thread/enabled/pagination filters.
|
|
2269
|
+
* @returns Matching crons.
|
|
2270
|
+
*/
|
|
2271
|
+
search: (body?: CronSearchFilters) => Promise<AgentCron[]>;
|
|
2272
|
+
/**
|
|
2273
|
+
* Counts tenant-scoped Agent crons.
|
|
2274
|
+
* @param body - Optional assistant/thread/enabled filters.
|
|
2275
|
+
* @returns Matching cron count.
|
|
2276
|
+
*/
|
|
2277
|
+
count: (body?: CronCountFilters) => Promise<number>;
|
|
2278
|
+
/**
|
|
2279
|
+
* Reads one Agent cron.
|
|
2280
|
+
* @param cronId - Cron id.
|
|
2281
|
+
* @returns The cron resource.
|
|
2282
|
+
*/
|
|
2283
|
+
get: (cronId: string) => Promise<AgentCron>;
|
|
2284
|
+
/**
|
|
2285
|
+
* Pauses or resumes a cron.
|
|
2286
|
+
* @param cronId - Cron id.
|
|
2287
|
+
* @param enabled - Desired enabled state.
|
|
2288
|
+
* @returns The updated cron.
|
|
2289
|
+
*/
|
|
2290
|
+
updateEnabled: (cronId: string, enabled: boolean) => Promise<AgentCron>;
|
|
2291
|
+
/**
|
|
2292
|
+
* Cancels/deletes a cron.
|
|
2293
|
+
* @param cronId - Cron id.
|
|
2294
|
+
* @returns True when the gateway reports success.
|
|
2295
|
+
*/
|
|
2296
|
+
delete: (cronId: string) => Promise<boolean>;
|
|
2297
|
+
};
|
|
2298
|
+
/**
|
|
2299
|
+
* Thread command surface (`run.start`, `input.respond`, `agent.getTree`).
|
|
2300
|
+
*/
|
|
2301
|
+
commands: {
|
|
2302
|
+
/**
|
|
2303
|
+
* Starts a run on a thread.
|
|
2304
|
+
* @param threadId - Thread id.
|
|
2305
|
+
* @param args - Input/config/metadata/strategy.
|
|
2306
|
+
* @returns Queued message id and mode.
|
|
2307
|
+
*/
|
|
2308
|
+
runStart: (threadId: string, args: CommandRunStartArgs) => Promise<CommandRunStartResult>;
|
|
2309
|
+
/**
|
|
2310
|
+
* Answers a pending interrupt.
|
|
2311
|
+
* @param threadId - Thread id.
|
|
2312
|
+
* @param args - Interrupt id and response/resume payload.
|
|
2313
|
+
* @returns Queued message id and interrupt id.
|
|
2314
|
+
*/
|
|
2315
|
+
respond: (threadId: string, args: CommandInputRespondArgs) => Promise<CommandInputRespondResult>;
|
|
2316
|
+
/**
|
|
2317
|
+
* Reads the structured Agent graph.
|
|
2318
|
+
* @param threadId - Thread id.
|
|
2319
|
+
* @returns Nodes, edges, Mermaid, and namespace placeholder.
|
|
2320
|
+
*/
|
|
2321
|
+
getTree: (threadId: string) => Promise<AgentGraphTree>;
|
|
2322
|
+
};
|
|
2323
|
+
/**
|
|
2324
|
+
* Single-run surface (`POST/GET /threads/:id/runs`, cancellation).
|
|
2325
|
+
*/
|
|
2326
|
+
runs: {
|
|
2327
|
+
/**
|
|
2328
|
+
* Enqueues one run-bound input or HITL resume command.
|
|
2329
|
+
* @param threadId - Thread id.
|
|
2330
|
+
* @param input - Message or messages accepted by the run API; omit for command runs.
|
|
2331
|
+
* @param options - Optional config, mode, command, and multitask strategy.
|
|
2332
|
+
* @param assistantId - Assistant id override (defaults to the client's).
|
|
2333
|
+
* @returns Pending run id and the optional input message id.
|
|
2334
|
+
*/
|
|
2335
|
+
create: (threadId: string, input: RunCreateInput | undefined, options?: RunCreateOptions, assistantId?: string) => Promise<RunCreateResult>;
|
|
2336
|
+
/**
|
|
2337
|
+
* Lists run ledger records for a thread.
|
|
2338
|
+
* @param threadId - Thread id.
|
|
2339
|
+
* @param assistantId - Assistant id override (defaults to the client's).
|
|
2340
|
+
* @returns Safe run records.
|
|
2341
|
+
*/
|
|
2342
|
+
list: (threadId: string, assistantId?: string) => Promise<RunRecord[]>;
|
|
2343
|
+
/**
|
|
2344
|
+
* Reads one run ledger record.
|
|
2345
|
+
* @param threadId - Thread id.
|
|
2346
|
+
* @param runId - Run id.
|
|
2347
|
+
* @param assistantId - Assistant id override (defaults to the client's).
|
|
2348
|
+
* @returns The safe run record.
|
|
2349
|
+
*/
|
|
2350
|
+
get: (threadId: string, runId: string, assistantId?: string) => Promise<RunRecord>;
|
|
2351
|
+
/**
|
|
2352
|
+
* Waits for a run to reach a terminal status (server-capped).
|
|
2353
|
+
* @param threadId - Thread id.
|
|
2354
|
+
* @param runId - Run id.
|
|
2355
|
+
* @param assistantId - Assistant id override (defaults to the client's).
|
|
2356
|
+
* @returns The terminal run record.
|
|
2357
|
+
* @throws {ApiError} On `504 RUN_JOIN_TIMEOUT` or `404 RUN_NOT_FOUND`.
|
|
2358
|
+
*/
|
|
2359
|
+
join: (threadId: string, runId: string, assistantId?: string) => Promise<RunRecord>;
|
|
2360
|
+
/**
|
|
2361
|
+
* Requests cancellation of one run.
|
|
2362
|
+
* @param threadId - Thread id.
|
|
2363
|
+
* @param runId - Run id.
|
|
2364
|
+
* @param options - Optional `wait` and `action` (`interrupt` or `rollback`).
|
|
2365
|
+
* @param assistantId - Assistant id override (defaults to the client's).
|
|
2366
|
+
* @returns Acceptance, terminal status, and optional latest run.
|
|
2367
|
+
*/
|
|
2368
|
+
cancel: (threadId: string, runId: string, options?: RunCancelOptions, assistantId?: string) => Promise<RunCancelResult>;
|
|
2369
|
+
};
|
|
2370
|
+
/**
|
|
2371
|
+
* Tenant-scoped namespaced key-value store (viewer/editor surface).
|
|
2372
|
+
*/
|
|
2373
|
+
store: {
|
|
2374
|
+
/**
|
|
2375
|
+
* Creates or replaces a store item.
|
|
2376
|
+
* @param input - Namespace, key, value, optional TTL/index hint.
|
|
2377
|
+
* @returns The persisted item.
|
|
2378
|
+
*/
|
|
2379
|
+
put: (input: StorePutInput) => Promise<StoreItem>;
|
|
2380
|
+
/**
|
|
2381
|
+
* Reads one item by namespace and key.
|
|
2382
|
+
* @param namespace - Namespace path.
|
|
2383
|
+
* @param key - Item key.
|
|
2384
|
+
* @returns The item.
|
|
2385
|
+
*/
|
|
2386
|
+
get: (namespace: string[], key: string) => Promise<StoreItem>;
|
|
2387
|
+
/**
|
|
2388
|
+
* Deletes one item.
|
|
2389
|
+
* @param namespace - Namespace path.
|
|
2390
|
+
* @param key - Item key.
|
|
2391
|
+
* @returns True when deleted.
|
|
2392
|
+
*/
|
|
2393
|
+
delete: (namespace: string[], key: string) => Promise<boolean>;
|
|
2394
|
+
/**
|
|
2395
|
+
* Searches items under a namespace prefix.
|
|
2396
|
+
* @param input - Prefix/filter/query/pagination.
|
|
2397
|
+
* @returns Matching items.
|
|
2398
|
+
*/
|
|
2399
|
+
search: (input?: StoreSearchInput) => Promise<StoreItem[]>;
|
|
2400
|
+
/**
|
|
2401
|
+
* Lists distinct namespace paths.
|
|
2402
|
+
* @param prefix - Optional namespace prefix.
|
|
2403
|
+
* @param limit - Optional result cap (gateway clamps).
|
|
2404
|
+
* @returns Namespace paths.
|
|
2405
|
+
*/
|
|
2406
|
+
namespaces: (prefix?: string[], limit?: number) => Promise<string[][]>;
|
|
2407
|
+
};
|
|
1835
2408
|
}
|
|
1836
2409
|
|
|
1837
2410
|
/**
|
|
@@ -2080,15 +2653,18 @@ type ResumeProjectRoomInterruptInput = {
|
|
|
2080
2653
|
kind: "presence";
|
|
2081
2654
|
membershipId: string;
|
|
2082
2655
|
};
|
|
2656
|
+
interruptId?: string;
|
|
2083
2657
|
answers?: ProjectRoomInterruptAnswerInput[];
|
|
2084
2658
|
} | {
|
|
2085
2659
|
ref: {
|
|
2086
2660
|
kind: "task";
|
|
2087
2661
|
taskId: string;
|
|
2088
2662
|
};
|
|
2663
|
+
interruptId?: string;
|
|
2089
2664
|
answers?: ProjectRoomInterruptAnswerInput[];
|
|
2090
2665
|
} | {
|
|
2091
2666
|
membershipId: string;
|
|
2667
|
+
interruptId?: string;
|
|
2092
2668
|
answers?: ProjectRoomInterruptAnswerInput[];
|
|
2093
2669
|
};
|
|
2094
2670
|
type HeadersGetter$1 = () => Record<string, string>;
|
|
@@ -2279,6 +2855,8 @@ declare class RoomEventsClient {
|
|
|
2279
2855
|
*/
|
|
2280
2856
|
declare class Client extends AbstractClient {
|
|
2281
2857
|
private headers;
|
|
2858
|
+
/** Last SSE event id observed per thread, for automatic resume. */
|
|
2859
|
+
private resumeEventIds;
|
|
2282
2860
|
resources: ResourcesClient;
|
|
2283
2861
|
exportImport: ExportImportClient;
|
|
2284
2862
|
readonly projectRooms: ProjectRoomsClient;
|
|
@@ -2326,6 +2904,12 @@ declare class Client extends AbstractClient {
|
|
|
2326
2904
|
* Get workspace headers for THIS instance (merged with global fallback)
|
|
2327
2905
|
*/
|
|
2328
2906
|
getWorkspaceHeaders(): Record<string, string>;
|
|
2907
|
+
/**
|
|
2908
|
+
* Instance-only workspace headers (never merged with the process-global
|
|
2909
|
+
* Console context). Runtime transports use this so a web-app scope cannot
|
|
2910
|
+
* inherit a Console tenant/project selection from another client.
|
|
2911
|
+
*/
|
|
2912
|
+
getInstanceWorkspaceHeaders(): Record<string, string>;
|
|
2329
2913
|
/**
|
|
2330
2914
|
* Get global workspace headers (legacy static API)
|
|
2331
2915
|
*/
|
|
@@ -2384,6 +2968,7 @@ declare class Client extends AbstractClient {
|
|
|
2384
2968
|
* @private
|
|
2385
2969
|
*/
|
|
2386
2970
|
protected getAllHeaders(): Record<string, string>;
|
|
2971
|
+
protected getThreadEventHeaders(): Record<string, string>;
|
|
2387
2972
|
protected bodyAffinityHeaders(body: unknown): Record<string, string>;
|
|
2388
2973
|
private streamRun;
|
|
2389
2974
|
}
|
|
@@ -2658,4 +3243,4 @@ declare function normalizeToolResult(message: {
|
|
|
2658
3243
|
artifact?: unknown;
|
|
2659
3244
|
}): NormalizedToolResult;
|
|
2660
3245
|
|
|
2661
|
-
export { A2AKeyListItem, A2AKeysListResponse, AbortAgentParams, AbstractClient, AddProjectBotMembershipInput, AddProjectMembershipInput, AgentState, AgentWebAppsListResponse, ApiError, ArchiveInput, Assistant, AssistantListResponse, AssistantResponse, AuthenticationError, CapabilityBundleListResponse, ChatResponse, ChatSendOptions, ChatStreamOptions, Client, ClientConfig, CompleteTaskInput, CompleteTaskResponse, CreateA2AKeyInput, CreateAssistantOptions, CreateProjectRequest, CreateThreadOptions, CreateWorkspaceRequest, DatabaseConfigResponse, DatabaseConfigsListResponse, DatasourcesListResponse, ExportBundle, ExportConfigResult, ExportConfirmationRequired, ExportDownload, ExportEntityIds, ExportEntityPreview, ExportEntityPreviewMap, ExportImportClient, ExportableEntity, ExportableTypeInfo, FileItem, GetMessagesOptions, GetScheduledTasksOptions, ImportApplyResult, ImportConflict, ImportEntityResult, ImportInsertion, ImportPreviewError, ImportPreviewResult, ImportResolution, ImportResolutions, ImportSource, InvalidCapabilityBundleSummary, KeyExposure, ListAgentWebAppsParams, ListProjectRoomMessagesOptions, ListThreadsOptions, LocalA2ATemplatesListResponse, McpServerResponse, McpServersListResponse, McpUiResourceResponse, MetricsConfigResponse, MetricsConfigsListResponse, MutationExpectedUpdatedAt, NetworkError, NormalizedToolResult, OpenAuditLogRecord, PendingMessage, Project, ProjectCapabilitiesResponse, ProjectKind, ProjectRecord, ProjectRoomBotRecord, ProjectRoomClientError, ProjectRoomDispatchErrorCode, ProjectRoomDispatchResult, ProjectRoomInterruptAnswerInput, ProjectRoomMembershipRecord, ProjectRoomMessageRecord, ProjectRoomPublicBotRecord, ProjectRoomPublicMembershipRecord, ProjectRoomRecord, ProjectRoomSendResult, ProjectRoomsClient, RegisterToolOptions, RemovePendingMessageOptions, ResourcesClient, ResumeProjectRoomInterruptInput, ResumeStreamOptions, RetryConfig, RoomEventScopeRecord, RoomEventsClient, RunOptions, RuntimeAxiomClient, RuntimeAxiomIdentity, ScheduleExecutionType, ScheduledTask, ScheduledTaskStatus, ScheduledTasksListResponse, SendProjectRoomMessageInput, StorageType, StreamCallbacks, StreamEvent, TaskCommandInput, TaskCommandResponse, TaskLifecycleWarning, TaskResponse, TasksListResponse, TestConnectionResponse, TestMcpServerResponse, Thread, ThreadListResponse, ThreadResponse, Tool, ToolResponse, ToolsListResponse, Transport, UpdateAssistantOptions, UpdateProjectBotMembershipInput, UpdateProjectMembershipInput, UpdateProjectRequest, UpdateThreadOptions, UpdateWorkspaceRequest, WeChatClient, Workspace, WorkspaceClient, WorkspaceMemberRecord, WorkspaceMembersClient, WorkspaceRoomBusinessEvent, WorkspaceRoomControlEvent, WorkspaceRoomEntryRecord, WorkspaceRoomEventConnection, WorkspaceRoomEventFrame, WorkspaceRoomKnownBusinessEvent, WorkspaceRoomUnknownBusinessEvent, WorkspaceRoomsClient, createSimpleMessageMerger, normalizeToolResult };
|
|
3246
|
+
export { A2AKeyListItem, A2AKeysListResponse, AbortAgentParams, AbstractClient, AddProjectBotMembershipInput, AddProjectMembershipInput, AgentCron, AgentGraphTree, AgentRunStatus, AgentState, AgentWebAppsListResponse, ApiError, ArchiveInput, Assistant, AssistantListResponse, AssistantResponse, AuthenticationError, CapabilityBundleListResponse, ChatResponse, ChatSendOptions, ChatStreamOptions, Client, ClientConfig, CommandInputRespondArgs, CommandInputRespondResult, CommandRunStartArgs, CommandRunStartInput, CommandRunStartResult, CompleteTaskInput, CompleteTaskResponse, CopiedThread, CreateA2AKeyInput, CreateAssistantOptions, CreateCronInput, CreateProjectRequest, CreateStatelessCronInput, CreateThreadCronInput, CreateThreadOptions, CreateWorkspaceRequest, CronCountFilters, CronMultitaskStrategy, CronOnRunCompleted, CronSearchFilters, DatabaseConfigResponse, DatabaseConfigsListResponse, DatasourcesListResponse, ExportBundle, ExportConfigResult, ExportConfirmationRequired, ExportDownload, ExportEntityIds, ExportEntityPreview, ExportEntityPreviewMap, ExportImportClient, ExportableEntity, ExportableTypeInfo, FileItem, GatewayInfo, GetMessagesOptions, GetScheduledTasksOptions, ImportApplyResult, ImportConflict, ImportEntityResult, ImportInsertion, ImportPreviewError, ImportPreviewResult, ImportResolution, ImportResolutions, ImportSource, InvalidCapabilityBundleSummary, KeyExposure, ListAgentWebAppsParams, ListProjectRoomMessagesOptions, ListThreadsOptions, LocalA2ATemplatesListResponse, McpServerResponse, McpServersListResponse, McpUiResourceResponse, MetricsConfigResponse, MetricsConfigsListResponse, MutationExpectedUpdatedAt, NetworkError, NormalizedToolResult, OpenAuditLogRecord, PendingMessage, Project, ProjectCapabilitiesResponse, ProjectKind, ProjectRecord, ProjectRoomBotRecord, ProjectRoomClientError, ProjectRoomDispatchErrorCode, ProjectRoomDispatchResult, ProjectRoomInterruptAnswerInput, ProjectRoomMembershipRecord, ProjectRoomMessageRecord, ProjectRoomPublicBotRecord, ProjectRoomPublicMembershipRecord, ProjectRoomRecord, ProjectRoomSendResult, ProjectRoomsClient, PruneThreadInput, PruneThreadResult, RegisterToolOptions, RemovePendingMessageOptions, ResourcesClient, ResumeProjectRoomInterruptInput, ResumeStreamOptions, RetryConfig, RoomEventScopeRecord, RoomEventsClient, RunCancelOptions, RunCancelResult, RunCreateInput, RunCreateOptions, RunCreateResult, RunOptions, RunRecord, RuntimeAxiomClient, RuntimeAxiomIdentity, ScheduleExecutionType, ScheduledTask, ScheduledTaskStatus, ScheduledTasksListResponse, SendProjectRoomMessageInput, StorageType, StoreItem, StorePutInput, StoreSearchInput, StreamCallbacks, StreamEvent, SystemMetrics, SystemMetricsChunk, SystemMetricsWorker, TaskCommandInput, TaskCommandResponse, TaskLifecycleWarning, TaskResponse, TasksListResponse, TestConnectionResponse, TestMcpServerResponse, Thread, ThreadEvent, ThreadEventStreamError, ThreadEventStreamOptions, ThreadHistoryPage, ThreadListResponse, ThreadResponse, ThreadStatusInfo, ThreadSuperstepInput, Tool, ToolResponse, ToolsListResponse, Transport, UpdateAgentCronInput, UpdateAssistantOptions, UpdateProjectBotMembershipInput, UpdateProjectMembershipInput, UpdateProjectRequest, UpdateThreadOptions, UpdateWorkspaceRequest, WeChatClient, Workspace, WorkspaceClient, WorkspaceMemberRecord, WorkspaceMembersClient, WorkspaceRoomBusinessEvent, WorkspaceRoomControlEvent, WorkspaceRoomEntryRecord, WorkspaceRoomEventConnection, WorkspaceRoomEventFrame, WorkspaceRoomKnownBusinessEvent, WorkspaceRoomUnknownBusinessEvent, WorkspaceRoomsClient, createSimpleMessageMerger, normalizeToolResult };
|