@ai-matrx/api 0.0.0-stage → 0.1.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/CHANGELOG.md +15 -0
- package/LICENSE +21 -0
- package/README.md +18 -2
- package/dist/account.cjs +670 -0
- package/dist/account.d.cts +3246 -0
- package/dist/account.d.ts +3246 -0
- package/dist/account.js +558 -0
- package/dist/agents.cjs +598 -0
- package/dist/agents.d.cts +3417 -0
- package/dist/agents.d.ts +3417 -0
- package/dist/agents.js +497 -0
- package/dist/ai.cjs +109 -0
- package/dist/ai.d.cts +493 -0
- package/dist/ai.d.ts +493 -0
- package/dist/ai.js +91 -0
- package/dist/apps.cjs +394 -0
- package/dist/apps.d.cts +1094 -0
- package/dist/apps.d.ts +1094 -0
- package/dist/apps.js +328 -0
- package/dist/architecture.cjs +1223 -0
- package/dist/architecture.d.cts +4701 -0
- package/dist/architecture.d.ts +4701 -0
- package/dist/architecture.js +1016 -0
- package/dist/audio.cjs +226 -0
- package/dist/audio.d.cts +723 -0
- package/dist/audio.d.ts +723 -0
- package/dist/audio.js +188 -0
- package/dist/chat.cjs +538 -0
- package/dist/chat.d.cts +2251 -0
- package/dist/chat.d.ts +2251 -0
- package/dist/chat.js +447 -0
- package/dist/chunk-2SXAAKGV.cjs +279 -0
- package/dist/chunk-AY5N6EA4.js +43 -0
- package/dist/chunk-BMQI7UET.cjs +48 -0
- package/dist/chunk-FNIYADWI.cjs +59 -0
- package/dist/chunk-KIEAFMKB.js +264 -0
- package/dist/chunk-UONBYRE4.js +1012 -0
- package/dist/chunk-YTEOFGFC.js +57 -0
- package/dist/chunk-YUDQWDCM.cjs +1047 -0
- package/dist/code.cjs +561 -0
- package/dist/code.d.cts +1976 -0
- package/dist/code.d.ts +1976 -0
- package/dist/code.js +467 -0
- package/dist/commerce.cjs +22 -0
- package/dist/commerce.d.cts +45 -0
- package/dist/commerce.d.ts +45 -0
- package/dist/commerce.js +18 -0
- package/dist/communications.cjs +215 -0
- package/dist/communications.d.cts +948 -0
- package/dist/communications.d.ts +948 -0
- package/dist/communications.js +179 -0
- package/dist/computer.cjs +330 -0
- package/dist/computer.d.cts +733 -0
- package/dist/computer.d.ts +733 -0
- package/dist/computer.js +275 -0
- package/dist/content.cjs +425 -0
- package/dist/content.d.cts +1796 -0
- package/dist/content.d.ts +1796 -0
- package/dist/content.js +354 -0
- package/dist/credentials.cjs +22 -0
- package/dist/credentials.d.cts +82 -0
- package/dist/credentials.d.ts +82 -0
- package/dist/credentials.js +1 -0
- package/dist/crm.cjs +271 -0
- package/dist/crm.d.cts +1731 -0
- package/dist/crm.d.ts +1731 -0
- package/dist/crm.js +226 -0
- package/dist/data.cjs +382 -0
- package/dist/data.d.cts +1860 -0
- package/dist/data.d.ts +1860 -0
- package/dist/data.js +318 -0
- package/dist/education.cjs +28 -0
- package/dist/education.d.cts +73 -0
- package/dist/education.d.ts +73 -0
- package/dist/education.js +23 -0
- package/dist/files.cjs +1330 -0
- package/dist/files.d.cts +4956 -0
- package/dist/files.d.ts +4956 -0
- package/dist/files.js +1104 -0
- package/dist/human-resources.cjs +178 -0
- package/dist/human-resources.d.cts +1208 -0
- package/dist/human-resources.d.ts +1208 -0
- package/dist/human-resources.js +148 -0
- package/dist/index-C2E-Cp19.d.ts +385 -0
- package/dist/index-wC2vtb70.d.cts +385 -0
- package/dist/index.cjs +1934 -0
- package/dist/index.d.cts +2006 -0
- package/dist/index.d.ts +2006 -0
- package/dist/index.js +1668 -0
- package/dist/integrations.cjs +5116 -0
- package/dist/integrations.d.cts +19213 -0
- package/dist/integrations.d.ts +19213 -0
- package/dist/integrations.js +4263 -0
- package/dist/intelligence.cjs +1305 -0
- package/dist/intelligence.d.cts +4658 -0
- package/dist/intelligence.d.ts +4658 -0
- package/dist/intelligence.js +1196 -0
- package/dist/knowledge.cjs +1113 -0
- package/dist/knowledge.d.cts +5427 -0
- package/dist/knowledge.d.ts +5427 -0
- package/dist/knowledge.js +921 -0
- package/dist/legal.cjs +225 -0
- package/dist/legal.d.cts +1038 -0
- package/dist/legal.d.ts +1038 -0
- package/dist/legal.js +187 -0
- package/dist/marketing.cjs +1155 -0
- package/dist/marketing.d.cts +7741 -0
- package/dist/marketing.d.ts +7741 -0
- package/dist/marketing.js +951 -0
- package/dist/masterwork.cjs +283 -0
- package/dist/masterwork.d.cts +1938 -0
- package/dist/masterwork.d.ts +1938 -0
- package/dist/masterwork.js +231 -0
- package/dist/media.cjs +610 -0
- package/dist/media.d.cts +2270 -0
- package/dist/media.d.ts +2270 -0
- package/dist/media.js +507 -0
- package/dist/net.cjs +67 -0
- package/dist/net.d.cts +204 -0
- package/dist/net.d.ts +204 -0
- package/dist/net.js +2 -0
- package/dist/platform.cjs +150 -0
- package/dist/platform.d.cts +572 -0
- package/dist/platform.d.ts +572 -0
- package/dist/platform.js +125 -0
- package/dist/publish.cjs +248 -0
- package/dist/publish.d.cts +1431 -0
- package/dist/publish.d.ts +1431 -0
- package/dist/publish.js +206 -0
- package/dist/schemas.cjs +2 -0
- package/dist/schemas.d.cts +1353 -0
- package/dist/schemas.d.ts +1353 -0
- package/dist/schemas.js +1 -0
- package/dist/stream.cjs +44 -0
- package/dist/stream.d.cts +2 -0
- package/dist/stream.d.ts +2 -0
- package/dist/stream.js +3 -0
- package/dist/web.cjs +1045 -0
- package/dist/web.d.cts +4186 -0
- package/dist/web.d.ts +4186 -0
- package/dist/web.js +867 -0
- package/dist/workflows.cjs +825 -0
- package/dist/workflows.d.cts +4699 -0
- package/dist/workflows.d.ts +4699 -0
- package/dist/workflows.js +686 -0
- package/package.json +418 -4
package/dist/chat.d.cts
ADDED
|
@@ -0,0 +1,2251 @@
|
|
|
1
|
+
import { A as Api, C as CallOptions, J as JsonOrStream, N as NdjsonEvent, a as ApiStream } from './index-wC2vtb70.cjs';
|
|
2
|
+
import { JsonValue, ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema, TtsVoiceSpeaker, TtsDialogueTurn, MediaRef, ImageLora, CustomTool, CompactionSettings, DictionaryConfig, ContextAnchor, ChatMessageInput, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, LLMParams, ResourceContextPolicy, IdeState, SandboxBindingRequest, PageContext, CacheBypass, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, AgentStartRequest, PromptStartRequest, ActionNeeded } from './schemas.cjs';
|
|
3
|
+
import './credentials.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
7
|
+
* CONTRACT_SHA256 50a790edb39e682b46e0fa9e674faf5ce2a0ba7de2cd01930a497fca4c47844a
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** What the chooser sends. Only `provider` plus one of `resource_ref` / */
|
|
11
|
+
type AttachResourceRequest = {
|
|
12
|
+
/** github | google */
|
|
13
|
+
provider: string;
|
|
14
|
+
/** Provider-stable ref, e.g. owner/repo or a Google file id */
|
|
15
|
+
resource_ref?: string | null;
|
|
16
|
+
/** users.integration_connection_resources.id, when known */
|
|
17
|
+
resource_id?: string | null;
|
|
18
|
+
/** Echoed from the candidate; the server re-reads the row. */
|
|
19
|
+
resource_type?: string | null;
|
|
20
|
+
/** Echoed from the candidate; the server re-reads the row. */
|
|
21
|
+
display_name?: string | null;
|
|
22
|
+
/** Echoed from the candidate; the server re-reads the row. */
|
|
23
|
+
link?: string | null;
|
|
24
|
+
/** Echoed from the candidate; the server re-reads the row. */
|
|
25
|
+
metadata?: {
|
|
26
|
+
[key: string]: JsonValue;
|
|
27
|
+
} | null;
|
|
28
|
+
};
|
|
29
|
+
/** BatchDeleteRequest */
|
|
30
|
+
type BatchDeleteRequest = {
|
|
31
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
32
|
+
organization_id?: string | null;
|
|
33
|
+
/** Optional associated project selected by the caller. */
|
|
34
|
+
project_id?: string | null;
|
|
35
|
+
/** Optional associated task selected by the caller. */
|
|
36
|
+
task_id?: string | null;
|
|
37
|
+
/** Stable application slug that initiated the request. */
|
|
38
|
+
source_app?: string | null;
|
|
39
|
+
/** Stable feature slug within the source application. */
|
|
40
|
+
source_feature?: string | null;
|
|
41
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
42
|
+
initiation?: ("user" | "auto") | null;
|
|
43
|
+
selector: MessageSelector;
|
|
44
|
+
cascade_tool_pairs?: boolean;
|
|
45
|
+
dry_run?: boolean;
|
|
46
|
+
};
|
|
47
|
+
/** BatchDeleteResponse */
|
|
48
|
+
type BatchDeleteResponse = {
|
|
49
|
+
deleted_ids: string[];
|
|
50
|
+
cascaded_ids: string[];
|
|
51
|
+
remaining_count: number;
|
|
52
|
+
dry_run: boolean;
|
|
53
|
+
};
|
|
54
|
+
/** CacheL2State */
|
|
55
|
+
type CacheL2State = {
|
|
56
|
+
configured: boolean;
|
|
57
|
+
state: string;
|
|
58
|
+
healthy: boolean;
|
|
59
|
+
bus_connected: boolean;
|
|
60
|
+
channels_connected: string[];
|
|
61
|
+
consecutive_failures: number;
|
|
62
|
+
pending_invalidations: number;
|
|
63
|
+
errors: number;
|
|
64
|
+
last_error: string | null;
|
|
65
|
+
calls: number;
|
|
66
|
+
timeouts: number;
|
|
67
|
+
timeouts_loop_lag: number;
|
|
68
|
+
connection_errors: number;
|
|
69
|
+
breaker_opened: number;
|
|
70
|
+
breaker_recovered: number;
|
|
71
|
+
pending_invalidations_applied: number;
|
|
72
|
+
pending_invalidations_dropped: number;
|
|
73
|
+
};
|
|
74
|
+
/** CadenceEveryRounds */
|
|
75
|
+
type CadenceEveryRounds = {
|
|
76
|
+
every_rounds: number;
|
|
77
|
+
};
|
|
78
|
+
/** CancelResponse */
|
|
79
|
+
type CancelResponse = {
|
|
80
|
+
status: string;
|
|
81
|
+
request_id: string;
|
|
82
|
+
spine_executions_signalled?: string[];
|
|
83
|
+
};
|
|
84
|
+
/** ChatRequest */
|
|
85
|
+
type ChatRequest = {
|
|
86
|
+
model?: string | null;
|
|
87
|
+
offering_id?: string | null;
|
|
88
|
+
max_output_tokens?: number | null;
|
|
89
|
+
temperature?: number | null;
|
|
90
|
+
top_p?: number | null;
|
|
91
|
+
top_k?: number | null;
|
|
92
|
+
tool_choice?: ("none" | "auto" | "required") | null;
|
|
93
|
+
parallel_tool_calls?: boolean | null;
|
|
94
|
+
reasoning_effort?: ("auto" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max") | null;
|
|
95
|
+
reasoning_summary?: ("concise" | "detailed" | "never" | "auto" | "always") | null;
|
|
96
|
+
visualization?: ("auto" | "off") | null;
|
|
97
|
+
thinking_level?: ("minimal" | "low" | "medium" | "high") | null;
|
|
98
|
+
include_thoughts?: boolean | null;
|
|
99
|
+
thinking_budget?: number | null;
|
|
100
|
+
clear_thinking?: boolean | null;
|
|
101
|
+
disable_reasoning?: boolean | null;
|
|
102
|
+
response_format?: (ResponseFormatText | ResponseFormatJsonObject | ResponseFormatJsonSchema) | null;
|
|
103
|
+
stop_sequences?: string[] | null;
|
|
104
|
+
stream?: boolean;
|
|
105
|
+
store: boolean;
|
|
106
|
+
previous_interaction_id?: string | null;
|
|
107
|
+
task?: ("text_to_video" | "image_to_video" | "reference_to_video" | "edit") | null;
|
|
108
|
+
verbosity?: ("low" | "medium" | "high") | null;
|
|
109
|
+
internal_web_search?: boolean | null;
|
|
110
|
+
internal_url_context?: boolean | null;
|
|
111
|
+
internal_x_search?: boolean | null;
|
|
112
|
+
aspect_ratio?: ("1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9") | null;
|
|
113
|
+
width?: number | null;
|
|
114
|
+
height?: number | null;
|
|
115
|
+
count?: number | null;
|
|
116
|
+
render_quality?: ("low" | "medium" | "high" | "auto") | null;
|
|
117
|
+
background?: ("auto" | "opaque" | "transparent") | null;
|
|
118
|
+
output_compression?: number | null;
|
|
119
|
+
moderation?: ("auto" | "low") | null;
|
|
120
|
+
input_fidelity?: ("high" | "low") | null;
|
|
121
|
+
partial_images?: number | null;
|
|
122
|
+
style?: ("vivid" | "natural") | null;
|
|
123
|
+
reference_strength?: number | null;
|
|
124
|
+
tts_voice?: string | TtsVoiceSpeaker[] | TtsDialogueTurn[] | null;
|
|
125
|
+
audio_format?: ("mp3" | "wav" | "ogg" | "opus" | "aac" | "flac" | "pcm" | "mulaw" | "alaw") | null;
|
|
126
|
+
performance_direction?: string | null;
|
|
127
|
+
speech_speed?: number | null;
|
|
128
|
+
turn_pause_ms?: number | null;
|
|
129
|
+
language_code?: string | null;
|
|
130
|
+
duration_seconds?: number | null;
|
|
131
|
+
resolution?: ("480p" | "720p" | "1080p" | "4k" | "1K" | "2K" | "4K") | null;
|
|
132
|
+
fps?: number | null;
|
|
133
|
+
steps?: number | null;
|
|
134
|
+
seed?: number | null;
|
|
135
|
+
guidance_scale?: number | null;
|
|
136
|
+
encode_quality?: number | null;
|
|
137
|
+
negative_prompt?: string | null;
|
|
138
|
+
output_format?: ("jpeg" | "png" | "webp" | "base64" | "url" | "text" | "json_object" | "json_schema") | null;
|
|
139
|
+
frame_images?: MediaRef[] | null;
|
|
140
|
+
reference_images?: MediaRef[] | null;
|
|
141
|
+
image_loras?: ImageLora[] | null;
|
|
142
|
+
disable_safety_checker?: boolean | null;
|
|
143
|
+
generate_audio?: boolean | null;
|
|
144
|
+
enhance_prompt?: boolean | null;
|
|
145
|
+
camera_control?: {
|
|
146
|
+
[key: string]: unknown;
|
|
147
|
+
} | null;
|
|
148
|
+
image_input?: MediaRef | null;
|
|
149
|
+
image_inputs?: MediaRef[] | null;
|
|
150
|
+
mask?: MediaRef | null;
|
|
151
|
+
last_frame_image?: MediaRef | null;
|
|
152
|
+
video_input?: MediaRef | null;
|
|
153
|
+
video_action?: ("generate" | "edit" | "extend") | null;
|
|
154
|
+
custom_tools?: CustomTool[] | null;
|
|
155
|
+
mcp_servers?: string[] | null;
|
|
156
|
+
compaction_settings?: CompactionSettings | null;
|
|
157
|
+
detected_contexts?: {
|
|
158
|
+
[key: string]: string;
|
|
159
|
+
} | null;
|
|
160
|
+
dictionary?: DictionaryConfig | null;
|
|
161
|
+
tts_quality?: ("high_quality" | "fast") | null;
|
|
162
|
+
/** Organization explicitly selected for this new AI conversation. Required except for fingerprint guests, whose organization is resolved by the AI funnel. */
|
|
163
|
+
organization_id?: string | null;
|
|
164
|
+
/** Optional associated project selected by the caller. */
|
|
165
|
+
project_id?: string | null;
|
|
166
|
+
/** Optional associated task selected by the caller. */
|
|
167
|
+
task_id?: string | null;
|
|
168
|
+
/** Stable application slug that initiated the request. */
|
|
169
|
+
source_app?: string | null;
|
|
170
|
+
/** Stable feature slug within the source application. */
|
|
171
|
+
source_feature?: string | null;
|
|
172
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
173
|
+
initiation?: ("user" | "auto") | null;
|
|
174
|
+
/** Active context-scope ids selected by the caller and membership-validated server-side. */
|
|
175
|
+
scope_ids?: string[] | null;
|
|
176
|
+
/** Active scope-type ids selected by the caller (type-level selection with no specific scope chosen). */
|
|
177
|
+
active_scope_type_ids?: string[] | null;
|
|
178
|
+
/** Durable resource identity from which authoritative organization and task context is reloaded. */
|
|
179
|
+
context_anchor?: ContextAnchor | null;
|
|
180
|
+
/** Specific connected desktop instance allowed to claim delegated local tools. */
|
|
181
|
+
target_instance_id?: string | null;
|
|
182
|
+
conversation_id: string;
|
|
183
|
+
is_new: boolean;
|
|
184
|
+
ai_model_id: string;
|
|
185
|
+
messages: ChatMessageInput[];
|
|
186
|
+
agent_id?: string | null;
|
|
187
|
+
is_version?: boolean;
|
|
188
|
+
max_iterations?: number;
|
|
189
|
+
max_retries_per_iteration?: number;
|
|
190
|
+
debug?: boolean;
|
|
191
|
+
dry_run?: boolean;
|
|
192
|
+
system_instruction?: string | SystemInstructionInput | null;
|
|
193
|
+
tools?: (RegisteredToolSpec | InlineToolSpec | AgentToolSpec)[];
|
|
194
|
+
tools_replace?: ((RegisteredToolSpec | InlineToolSpec | AgentToolSpec)[]) | null;
|
|
195
|
+
client?: ClientContext | null;
|
|
196
|
+
user?: UserOverrides | null;
|
|
197
|
+
skill_config?: {
|
|
198
|
+
[key: string]: unknown;
|
|
199
|
+
} | null;
|
|
200
|
+
/** Shapes (content_ir kind slugs) picked for this chat. The server resolves each to the skill that teaches it. Omit to use the chat's saved picks; send [] for none. */
|
|
201
|
+
output_kinds?: string[] | null;
|
|
202
|
+
config_overrides?: LLMParams | null;
|
|
203
|
+
variables?: {
|
|
204
|
+
[key: string]: unknown;
|
|
205
|
+
} | null;
|
|
206
|
+
variable_resource_context?: {
|
|
207
|
+
[key: string]: ResourceContextPolicy;
|
|
208
|
+
} | null;
|
|
209
|
+
variable_definitions?: {
|
|
210
|
+
[key: string]: unknown;
|
|
211
|
+
}[] | null;
|
|
212
|
+
ide_state?: IdeState | null;
|
|
213
|
+
sandbox?: SandboxBindingRequest | null;
|
|
214
|
+
context?: {
|
|
215
|
+
[key: string]: unknown;
|
|
216
|
+
};
|
|
217
|
+
/** The context keys the client withheld this turn (off by the page, the agent or the person's rule). When sent, the context receipt lists saved-rule rows only for these keys; omitted, it lists every save */
|
|
218
|
+
context_withheld?: string[] | null;
|
|
219
|
+
/** This conversation is the page's own (mode 'own') or the person switched the page off (mode 'off'): the page's values, the screens around it and what identifies the conversation are withheld by the con */
|
|
220
|
+
page_context?: PageContext | null;
|
|
221
|
+
/** The surface whose page published each context value that the primary surface (client.surface) does not declare: a screen mounted inside the page (a transcript open on the Knowledge page). Sent or with */
|
|
222
|
+
context_surfaces?: {
|
|
223
|
+
[key: string]: string;
|
|
224
|
+
} | null;
|
|
225
|
+
writable_variables?: string[];
|
|
226
|
+
allow_context_create?: boolean;
|
|
227
|
+
block_mode?: boolean;
|
|
228
|
+
snapshot?: boolean | null;
|
|
229
|
+
memory?: boolean | null;
|
|
230
|
+
memory_model?: string | null;
|
|
231
|
+
memory_offering_id?: string | null;
|
|
232
|
+
memory_scope?: string;
|
|
233
|
+
cache_bypass?: CacheBypass | null;
|
|
234
|
+
metadata?: {
|
|
235
|
+
[key: string]: unknown;
|
|
236
|
+
} | null;
|
|
237
|
+
deprecated_keys_found?: string[][];
|
|
238
|
+
/** Deprecated input alias for `max_output_tokens`. The server normalizes this name before validation and dispatch; new callers should send `max_output_tokens`. */
|
|
239
|
+
max_tokens?: number | null;
|
|
240
|
+
/** Deprecated input alias for `count`. The server normalizes this name before validation and dispatch; new callers should send `count`. */
|
|
241
|
+
n?: number | null;
|
|
242
|
+
/** Deprecated input alias for `count`. The server normalizes this name before validation and dispatch; new callers should send `count`. */
|
|
243
|
+
num_outputs?: number | null;
|
|
244
|
+
/** Deprecated input alias for `count`. The server normalizes this name before validation and dispatch; new callers should send `count`. */
|
|
245
|
+
number_of_images?: number | null;
|
|
246
|
+
/** Deprecated input alias for `render_quality`. The server normalizes this name before validation and dispatch; new callers should send `render_quality`. */
|
|
247
|
+
quality?: ("low" | "medium" | "high" | "auto") | null;
|
|
248
|
+
/** Deprecated input alias for `encode_quality`. The server normalizes this name before validation and dispatch; new callers should send `encode_quality`. */
|
|
249
|
+
output_quality?: number | null;
|
|
250
|
+
/** Deprecated input alias for `duration_seconds`. The server normalizes this name before validation and dispatch; new callers should send `duration_seconds`. */
|
|
251
|
+
seconds?: number | null;
|
|
252
|
+
/** Deprecated input alias for `duration_seconds`. The server normalizes this name before validation and dispatch; new callers should send `duration_seconds`. */
|
|
253
|
+
duration?: number | null;
|
|
254
|
+
[key: string]: unknown;
|
|
255
|
+
};
|
|
256
|
+
/** ClientToolResult */
|
|
257
|
+
type ClientToolResult = {
|
|
258
|
+
call_id: string;
|
|
259
|
+
tool_name: string;
|
|
260
|
+
output?: JsonValue | null;
|
|
261
|
+
is_error?: boolean;
|
|
262
|
+
error_message?: string | null;
|
|
263
|
+
duration_ms?: number | null;
|
|
264
|
+
};
|
|
265
|
+
/** CompactTurnsRequest */
|
|
266
|
+
type CompactTurnsRequest = {
|
|
267
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
268
|
+
organization_id?: string | null;
|
|
269
|
+
/** Optional associated project selected by the caller. */
|
|
270
|
+
project_id?: string | null;
|
|
271
|
+
/** Optional associated task selected by the caller. */
|
|
272
|
+
task_id?: string | null;
|
|
273
|
+
/** Stable application slug that initiated the request. */
|
|
274
|
+
source_app?: string | null;
|
|
275
|
+
/** Stable feature slug within the source application. */
|
|
276
|
+
source_feature?: string | null;
|
|
277
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
278
|
+
initiation?: ("user" | "auto") | null;
|
|
279
|
+
range: TurnRange;
|
|
280
|
+
summary_content: {
|
|
281
|
+
[key: string]: unknown;
|
|
282
|
+
}[];
|
|
283
|
+
mode?: "user" | "system";
|
|
284
|
+
cascade_tool_pairs?: boolean;
|
|
285
|
+
summary_metadata?: {
|
|
286
|
+
[key: string]: unknown;
|
|
287
|
+
} | null;
|
|
288
|
+
};
|
|
289
|
+
/** CompactTurnsResponse */
|
|
290
|
+
type CompactTurnsResponse = {
|
|
291
|
+
compaction_group_id: string;
|
|
292
|
+
summary_message_id: string | null;
|
|
293
|
+
compacted_message_ids: string[];
|
|
294
|
+
turn_count: number;
|
|
295
|
+
position_range: [number, number];
|
|
296
|
+
};
|
|
297
|
+
/** Same shape as the CONTEXT_STATE stream event payload. */
|
|
298
|
+
type ContextStateResponse = {
|
|
299
|
+
conversation_id: string;
|
|
300
|
+
last_request_input_tokens?: number;
|
|
301
|
+
last_request_cached_tokens?: number;
|
|
302
|
+
last_request_output_tokens?: number;
|
|
303
|
+
total_chars_visible_to_model?: number;
|
|
304
|
+
message_count_visible?: number;
|
|
305
|
+
cache_state?: {
|
|
306
|
+
[key: string]: JsonValue;
|
|
307
|
+
};
|
|
308
|
+
last_trim_summary?: {
|
|
309
|
+
[key: string]: JsonValue;
|
|
310
|
+
} | null;
|
|
311
|
+
last_raw_usage?: {
|
|
312
|
+
[key: string]: JsonValue;
|
|
313
|
+
} | null;
|
|
314
|
+
measured_at: string;
|
|
315
|
+
};
|
|
316
|
+
/** One live attachment. `link` and `detail` are the server's words: only it */
|
|
317
|
+
type ConversationAttachmentPayload = {
|
|
318
|
+
association_id: string;
|
|
319
|
+
conversation_id: string;
|
|
320
|
+
created_at?: string | null;
|
|
321
|
+
resource_id: string;
|
|
322
|
+
connection_id: string;
|
|
323
|
+
provider: string;
|
|
324
|
+
resource_type: string;
|
|
325
|
+
resource_ref: string;
|
|
326
|
+
display_name: string;
|
|
327
|
+
link?: string | null;
|
|
328
|
+
detail?: string | null;
|
|
329
|
+
permission_level?: string | null;
|
|
330
|
+
metadata?: {
|
|
331
|
+
[key: string]: JsonValue;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
/** ConversationContinueRequest */
|
|
335
|
+
type ConversationContinueRequest = {
|
|
336
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
337
|
+
organization_id?: string | null;
|
|
338
|
+
/** Optional associated project selected by the caller. */
|
|
339
|
+
project_id?: string | null;
|
|
340
|
+
/** Optional associated task selected by the caller. */
|
|
341
|
+
task_id?: string | null;
|
|
342
|
+
/** Stable application slug that initiated the request. */
|
|
343
|
+
source_app?: string | null;
|
|
344
|
+
/** Stable feature slug within the source application. */
|
|
345
|
+
source_feature?: string | null;
|
|
346
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
347
|
+
initiation?: ("user" | "auto") | null;
|
|
348
|
+
/** Active context-scope ids selected by the caller and membership-validated server-side. */
|
|
349
|
+
scope_ids?: string[] | null;
|
|
350
|
+
/** Active scope-type ids selected by the caller (type-level selection with no specific scope chosen). */
|
|
351
|
+
active_scope_type_ids?: string[] | null;
|
|
352
|
+
/** Durable resource identity from which authoritative organization and task context is reloaded. */
|
|
353
|
+
context_anchor?: ContextAnchor | null;
|
|
354
|
+
/** Persist request outputs when true; run ephemerally when false. */
|
|
355
|
+
store?: boolean;
|
|
356
|
+
/** Specific connected desktop instance allowed to claim delegated local tools. */
|
|
357
|
+
target_instance_id?: string | null;
|
|
358
|
+
user_input?: string | ((TextPart | ThinkingPart | ToolCallPart | ToolResultPart | (UserImageMediaPart | UserAudioMediaPart | UserVideoMediaPart | UserDocumentMediaPart | UserYouTubeMediaPart) | CodeExecPart | CodeResultPart | WebSearchPart | WebpageInputPart | NotesInputPart | TaskInputPart | AgentInputPart | ProjectInputPart | AgentAppInputPart | TranscriptInputPart | TranscriptSessionInputPart | WorkbookInputPart | DocumentInputPart | TableInputPart | ListInputPart | DataInputPart | ContextInputPart | RemarksInputPart | DecisionQuestionsPart | DecisionAnswersPart | SpeechScriptPart)[]) | null;
|
|
359
|
+
retry?: boolean;
|
|
360
|
+
host_turn?: HostTurn | null;
|
|
361
|
+
config_overrides?: LLMParams | null;
|
|
362
|
+
stream?: boolean;
|
|
363
|
+
debug?: boolean;
|
|
364
|
+
tools?: (RegisteredToolSpec | InlineToolSpec | AgentToolSpec)[];
|
|
365
|
+
tools_replace?: ((RegisteredToolSpec | InlineToolSpec | AgentToolSpec)[]) | null;
|
|
366
|
+
client?: ClientContext | null;
|
|
367
|
+
user?: UserOverrides | null;
|
|
368
|
+
ide_state?: IdeState | null;
|
|
369
|
+
sandbox?: SandboxBindingRequest | null;
|
|
370
|
+
context?: {
|
|
371
|
+
[key: string]: unknown;
|
|
372
|
+
};
|
|
373
|
+
/** The context keys the client withheld this turn (off by the page, the agent or the person's rule). When sent, the context receipt lists saved-rule rows only for these keys; omitted, it lists every save */
|
|
374
|
+
context_withheld?: string[] | null;
|
|
375
|
+
/** This conversation is the page's own (mode 'own') or the person switched the page off (mode 'off'): the page's values, the screens around it and what identifies the conversation are withheld by the con */
|
|
376
|
+
page_context?: PageContext | null;
|
|
377
|
+
/** The surface whose page published each context value that the primary surface (client.surface) does not declare: a screen mounted inside the page (a transcript open on the Knowledge page). Sent or with */
|
|
378
|
+
context_surfaces?: {
|
|
379
|
+
[key: string]: string;
|
|
380
|
+
} | null;
|
|
381
|
+
writable_variables?: string[];
|
|
382
|
+
allow_context_create?: boolean;
|
|
383
|
+
block_mode?: boolean;
|
|
384
|
+
snapshot?: boolean | null;
|
|
385
|
+
memory?: boolean | null;
|
|
386
|
+
memory_model?: string | null;
|
|
387
|
+
memory_offering_id?: string | null;
|
|
388
|
+
memory_scope?: string;
|
|
389
|
+
cache_bypass?: CacheBypass | null;
|
|
390
|
+
skill_config?: {
|
|
391
|
+
[key: string]: unknown;
|
|
392
|
+
} | null;
|
|
393
|
+
/** Shapes (content_ir kind slugs) picked for this chat. The server resolves each to the skill that teaches it. Omit to use the chat's saved picks; send [] for none. */
|
|
394
|
+
output_kinds?: string[] | null;
|
|
395
|
+
responder_agent_id?: string | null;
|
|
396
|
+
/** Maximum agent reasoning/tool-loop iterations. */
|
|
397
|
+
max_iterations?: number;
|
|
398
|
+
/** Maximum provider retries allowed within one agent iteration. */
|
|
399
|
+
max_retries_per_iteration?: number;
|
|
400
|
+
};
|
|
401
|
+
/** ConversationDeleteResponse */
|
|
402
|
+
type ConversationDeleteResponse = {
|
|
403
|
+
conversation_id: string;
|
|
404
|
+
deleted: boolean;
|
|
405
|
+
};
|
|
406
|
+
/** Conversation row as returned by ``CxConversation.to_dict()``. */
|
|
407
|
+
type ConversationRecord = {
|
|
408
|
+
id?: string | null;
|
|
409
|
+
user_id?: string | null;
|
|
410
|
+
created_by?: string | null;
|
|
411
|
+
title?: string | null;
|
|
412
|
+
[key: string]: unknown;
|
|
413
|
+
};
|
|
414
|
+
/** ConversationSettingsResponse */
|
|
415
|
+
type ConversationSettingsResponse = {
|
|
416
|
+
conversation_id: string;
|
|
417
|
+
fields: string[];
|
|
418
|
+
title?: string | null;
|
|
419
|
+
status?: string | null;
|
|
420
|
+
exclude_from_kg?: boolean | null;
|
|
421
|
+
};
|
|
422
|
+
/** The fields a person may change on a conversation row. Only fields SENT are written. */
|
|
423
|
+
type ConversationSettingsUpdate = {
|
|
424
|
+
title?: string | null;
|
|
425
|
+
status?: ("active" | "archived") | null;
|
|
426
|
+
exclude_from_kg?: boolean | null;
|
|
427
|
+
};
|
|
428
|
+
/** Whether the warm call populated the cache or found it already hot. */
|
|
429
|
+
type ConversationWarmResponse = {
|
|
430
|
+
status: "cached" | "already_cached";
|
|
431
|
+
conversation_id: string;
|
|
432
|
+
};
|
|
433
|
+
/** CxAttributionRegistry */
|
|
434
|
+
type CxAttributionRegistry = {
|
|
435
|
+
source_apps: string[];
|
|
436
|
+
source_features: string[];
|
|
437
|
+
source_feature_patterns: string[];
|
|
438
|
+
/** matrx_connect ORIGIN_CLASSES + 'unknown' (DB backfill for pre-provenance rows). Valid filter values for origin_class. */
|
|
439
|
+
origin_classes?: string[];
|
|
440
|
+
/** source_apps holding outside (non-AI Matrx) data — today only 'code-plugin'. CX Explorer hides them unless the viewer turns them on. */
|
|
441
|
+
outside_source_apps?: string[];
|
|
442
|
+
};
|
|
443
|
+
/** CxExplorerFacetEntry */
|
|
444
|
+
type CxExplorerFacetEntry = {
|
|
445
|
+
value: string;
|
|
446
|
+
count: number;
|
|
447
|
+
};
|
|
448
|
+
/** CxExplorerFacets */
|
|
449
|
+
type CxExplorerFacets = {
|
|
450
|
+
totals: CxExplorerTotals;
|
|
451
|
+
/** Distinct (status, count) — uses last_request_status when present, otherwise the conversation's own status. Powers the status filter chips. */
|
|
452
|
+
status: CxExplorerFacetEntry[];
|
|
453
|
+
/** Distinct (source_app, count). Drives the app filter. */
|
|
454
|
+
source_app: CxExplorerFacetEntry[];
|
|
455
|
+
/** Distinct (source_feature, count). Drives the searchable feature filter. */
|
|
456
|
+
source_feature: CxExplorerFacetEntry[];
|
|
457
|
+
/** Distinct (origin_class, count) — the witnessed trust axis (matrx_connect ORIGIN_CLASSES + 'unknown' for pre-provenance rows). Drives the origin filter. */
|
|
458
|
+
origin_class: CxExplorerFacetEntry[];
|
|
459
|
+
};
|
|
460
|
+
/** Sums across every row matching the current filter — not just the */
|
|
461
|
+
type CxExplorerTotals = {
|
|
462
|
+
count: number;
|
|
463
|
+
total_tokens: number;
|
|
464
|
+
total_cost: number;
|
|
465
|
+
total_duration_ms: number;
|
|
466
|
+
total_errors: number;
|
|
467
|
+
total_tool_calls: number;
|
|
468
|
+
total_snapshots: number;
|
|
469
|
+
};
|
|
470
|
+
/** DeleteAllMessagesResponse */
|
|
471
|
+
type DeleteAllMessagesResponse = {
|
|
472
|
+
deleted: boolean;
|
|
473
|
+
conversation_id: string;
|
|
474
|
+
count: number;
|
|
475
|
+
};
|
|
476
|
+
/** DeleteMessageResponse */
|
|
477
|
+
type DeleteMessageResponse = {
|
|
478
|
+
deleted: boolean;
|
|
479
|
+
message_id: string;
|
|
480
|
+
};
|
|
481
|
+
/** DirectChatRequest */
|
|
482
|
+
type DirectChatRequest = {
|
|
483
|
+
/** Legacy socket chat_config wrapper. Use /api/ai/conversations/chat directly instead. */
|
|
484
|
+
chat_config: {
|
|
485
|
+
[key: string]: JsonValue;
|
|
486
|
+
};
|
|
487
|
+
[key: string]: unknown;
|
|
488
|
+
};
|
|
489
|
+
/** ForkAndRunRequest */
|
|
490
|
+
type ForkAndRunRequest = {
|
|
491
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
492
|
+
organization_id?: string | null;
|
|
493
|
+
/** Optional associated project selected by the caller. */
|
|
494
|
+
project_id?: string | null;
|
|
495
|
+
/** Optional associated task selected by the caller. */
|
|
496
|
+
task_id?: string | null;
|
|
497
|
+
/** Stable application slug that initiated the request. */
|
|
498
|
+
source_app?: string | null;
|
|
499
|
+
/** Stable feature slug within the source application. */
|
|
500
|
+
source_feature?: string | null;
|
|
501
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
502
|
+
initiation?: ("user" | "auto") | null;
|
|
503
|
+
/** Active context-scope ids selected by the caller and membership-validated server-side. */
|
|
504
|
+
scope_ids?: string[] | null;
|
|
505
|
+
/** Active scope-type ids selected by the caller (type-level selection with no specific scope chosen). */
|
|
506
|
+
active_scope_type_ids?: string[] | null;
|
|
507
|
+
/** Durable resource identity from which authoritative organization and task context is reloaded. */
|
|
508
|
+
context_anchor?: ContextAnchor | null;
|
|
509
|
+
/** Persist request outputs when true; run ephemerally when false. */
|
|
510
|
+
store?: boolean;
|
|
511
|
+
/** Specific connected desktop instance allowed to claim delegated local tools. */
|
|
512
|
+
target_instance_id?: string | null;
|
|
513
|
+
user_input?: string | ((TextPart | ThinkingPart | ToolCallPart | ToolResultPart | (UserImageMediaPart | UserAudioMediaPart | UserVideoMediaPart | UserDocumentMediaPart | UserYouTubeMediaPart) | CodeExecPart | CodeResultPart | WebSearchPart | WebpageInputPart | NotesInputPart | TaskInputPart | AgentInputPart | ProjectInputPart | AgentAppInputPart | TranscriptInputPart | TranscriptSessionInputPart | WorkbookInputPart | DocumentInputPart | TableInputPart | ListInputPart | DataInputPart | ContextInputPart | RemarksInputPart | DecisionQuestionsPart | DecisionAnswersPart | SpeechScriptPart)[]) | null;
|
|
514
|
+
retry?: boolean;
|
|
515
|
+
host_turn?: HostTurn | null;
|
|
516
|
+
config_overrides?: LLMParams | null;
|
|
517
|
+
stream?: boolean;
|
|
518
|
+
debug?: boolean;
|
|
519
|
+
tools?: (RegisteredToolSpec | InlineToolSpec | AgentToolSpec)[];
|
|
520
|
+
tools_replace?: ((RegisteredToolSpec | InlineToolSpec | AgentToolSpec)[]) | null;
|
|
521
|
+
client?: ClientContext | null;
|
|
522
|
+
user?: UserOverrides | null;
|
|
523
|
+
ide_state?: IdeState | null;
|
|
524
|
+
sandbox?: SandboxBindingRequest | null;
|
|
525
|
+
context?: {
|
|
526
|
+
[key: string]: unknown;
|
|
527
|
+
};
|
|
528
|
+
/** The context keys the client withheld this turn (off by the page, the agent or the person's rule). When sent, the context receipt lists saved-rule rows only for these keys; omitted, it lists every save */
|
|
529
|
+
context_withheld?: string[] | null;
|
|
530
|
+
/** This conversation is the page's own (mode 'own') or the person switched the page off (mode 'off'): the page's values, the screens around it and what identifies the conversation are withheld by the con */
|
|
531
|
+
page_context?: PageContext | null;
|
|
532
|
+
/** The surface whose page published each context value that the primary surface (client.surface) does not declare: a screen mounted inside the page (a transcript open on the Knowledge page). Sent or with */
|
|
533
|
+
context_surfaces?: {
|
|
534
|
+
[key: string]: string;
|
|
535
|
+
} | null;
|
|
536
|
+
writable_variables?: string[];
|
|
537
|
+
allow_context_create?: boolean;
|
|
538
|
+
block_mode?: boolean;
|
|
539
|
+
snapshot?: boolean | null;
|
|
540
|
+
memory?: boolean | null;
|
|
541
|
+
memory_model?: string | null;
|
|
542
|
+
memory_offering_id?: string | null;
|
|
543
|
+
memory_scope?: string;
|
|
544
|
+
cache_bypass?: CacheBypass | null;
|
|
545
|
+
skill_config?: {
|
|
546
|
+
[key: string]: unknown;
|
|
547
|
+
} | null;
|
|
548
|
+
/** Shapes (content_ir kind slugs) picked for this chat. The server resolves each to the skill that teaches it. Omit to use the chat's saved picks; send [] for none. */
|
|
549
|
+
output_kinds?: string[] | null;
|
|
550
|
+
responder_agent_id?: string | null;
|
|
551
|
+
/** Maximum agent reasoning/tool-loop iterations. */
|
|
552
|
+
max_iterations?: number;
|
|
553
|
+
/** Maximum provider retries allowed within one agent iteration. */
|
|
554
|
+
max_retries_per_iteration?: number;
|
|
555
|
+
up_to_position?: number | null;
|
|
556
|
+
from_message_id?: string | null;
|
|
557
|
+
exclusive?: boolean;
|
|
558
|
+
fork_title?: string | null;
|
|
559
|
+
};
|
|
560
|
+
/** ForkConversationResponse */
|
|
561
|
+
type ForkConversationResponse = {
|
|
562
|
+
conversation_id: string;
|
|
563
|
+
forked_from_id: string;
|
|
564
|
+
forked_at_position?: number | null;
|
|
565
|
+
message_count: number;
|
|
566
|
+
};
|
|
567
|
+
/** Payload for forking a conversation. */
|
|
568
|
+
type ForkRequest = {
|
|
569
|
+
up_to_position?: number | null;
|
|
570
|
+
from_message_id?: string | null;
|
|
571
|
+
exclusive?: boolean;
|
|
572
|
+
title?: string | null;
|
|
573
|
+
};
|
|
574
|
+
/** GetConversationResponse */
|
|
575
|
+
type GetConversationResponse = {
|
|
576
|
+
conversation: ConversationRecord;
|
|
577
|
+
related: {
|
|
578
|
+
[key: string]: JsonValue;
|
|
579
|
+
} | string;
|
|
580
|
+
[key: string]: unknown;
|
|
581
|
+
};
|
|
582
|
+
/** GroupChatOut */
|
|
583
|
+
type GroupChatOut = {
|
|
584
|
+
anchor_type: string;
|
|
585
|
+
anchor_id: string;
|
|
586
|
+
round: number;
|
|
587
|
+
participants?: ParticipantOut[];
|
|
588
|
+
};
|
|
589
|
+
/** HideRequest */
|
|
590
|
+
type HideRequest = {
|
|
591
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
592
|
+
organization_id?: string | null;
|
|
593
|
+
/** Optional associated project selected by the caller. */
|
|
594
|
+
project_id?: string | null;
|
|
595
|
+
/** Optional associated task selected by the caller. */
|
|
596
|
+
task_id?: string | null;
|
|
597
|
+
/** Stable application slug that initiated the request. */
|
|
598
|
+
source_app?: string | null;
|
|
599
|
+
/** Stable feature slug within the source application. */
|
|
600
|
+
source_feature?: string | null;
|
|
601
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
602
|
+
initiation?: ("user" | "auto") | null;
|
|
603
|
+
selector: MessageSelector;
|
|
604
|
+
cascade_tool_pairs?: boolean;
|
|
605
|
+
};
|
|
606
|
+
/** HideResponse */
|
|
607
|
+
type HideResponse = {
|
|
608
|
+
compaction_group_id: string;
|
|
609
|
+
hidden_message_ids: string[];
|
|
610
|
+
};
|
|
611
|
+
/** A user-role turn the HOST writes — never something a person typed. */
|
|
612
|
+
type HostTurn = {
|
|
613
|
+
/** The activation line the model reads. */
|
|
614
|
+
text: string;
|
|
615
|
+
/** Which host feature wrote it. */
|
|
616
|
+
reason: string;
|
|
617
|
+
/** Extra stamps for the stored message (e.g. revision_key). */
|
|
618
|
+
metadata?: {
|
|
619
|
+
[key: string]: unknown;
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
/** InboxEditRequest */
|
|
623
|
+
type InboxEditRequest = {
|
|
624
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
625
|
+
organization_id?: string | null;
|
|
626
|
+
/** Optional associated project selected by the caller. */
|
|
627
|
+
project_id?: string | null;
|
|
628
|
+
/** Optional associated task selected by the caller. */
|
|
629
|
+
task_id?: string | null;
|
|
630
|
+
/** Stable application slug that initiated the request. */
|
|
631
|
+
source_app?: string | null;
|
|
632
|
+
/** Stable feature slug within the source application. */
|
|
633
|
+
source_feature?: string | null;
|
|
634
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
635
|
+
initiation?: ("user" | "auto") | null;
|
|
636
|
+
text: string;
|
|
637
|
+
};
|
|
638
|
+
/** Enqueue an item into a conversation's Turn-Boundary Inbox. */
|
|
639
|
+
type InboxEnqueueRequest = {
|
|
640
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
641
|
+
organization_id?: string | null;
|
|
642
|
+
/** Optional associated project selected by the caller. */
|
|
643
|
+
project_id?: string | null;
|
|
644
|
+
/** Optional associated task selected by the caller. */
|
|
645
|
+
task_id?: string | null;
|
|
646
|
+
/** Stable application slug that initiated the request. */
|
|
647
|
+
source_app?: string | null;
|
|
648
|
+
/** Stable feature slug within the source application. */
|
|
649
|
+
source_feature?: string | null;
|
|
650
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
651
|
+
initiation?: ("user" | "auto") | null;
|
|
652
|
+
kind?: "user_message" | "system_message";
|
|
653
|
+
/** The message text to inject. */
|
|
654
|
+
text: string;
|
|
655
|
+
/** STEER (next_boundary, default): delivered at the agent's next natural pause mid-run. QUEUE (turn_end): held until the run is COMPLETELY done, then delivered as the next message — one queued message pe */
|
|
656
|
+
delivery?: "next_boundary" | "turn_end";
|
|
657
|
+
/** Whether the injected message is shown in the user's transcript. */
|
|
658
|
+
is_visible_to_user?: boolean;
|
|
659
|
+
/** Whether the model sees the injected message (almost always true). */
|
|
660
|
+
is_visible_to_model?: boolean;
|
|
661
|
+
};
|
|
662
|
+
/** InboxEnqueueResponse */
|
|
663
|
+
type InboxEnqueueResponse = {
|
|
664
|
+
injection_id: string;
|
|
665
|
+
conversation_id: string;
|
|
666
|
+
status: string;
|
|
667
|
+
/** True if a run is in-flight (the message drains at its next turn boundary); false if idle (delivered when the next run starts). */
|
|
668
|
+
run_active: boolean;
|
|
669
|
+
};
|
|
670
|
+
/** InboxItem */
|
|
671
|
+
type InboxItem = {
|
|
672
|
+
injection_id: string;
|
|
673
|
+
kind: string;
|
|
674
|
+
text?: string | null;
|
|
675
|
+
status: string;
|
|
676
|
+
delivery?: string;
|
|
677
|
+
queued_at?: string | null;
|
|
678
|
+
is_visible_to_user?: boolean;
|
|
679
|
+
is_visible_to_model?: boolean;
|
|
680
|
+
source?: string;
|
|
681
|
+
};
|
|
682
|
+
/** InboxMutationResponse */
|
|
683
|
+
type InboxMutationResponse = {
|
|
684
|
+
injection_id: string;
|
|
685
|
+
status: string;
|
|
686
|
+
};
|
|
687
|
+
/** InvalidateCacheResponse */
|
|
688
|
+
type InvalidateCacheResponse = {
|
|
689
|
+
cleared: boolean;
|
|
690
|
+
conversation_id: string;
|
|
691
|
+
};
|
|
692
|
+
/** ListConversationsResponse */
|
|
693
|
+
type ListConversationsResponse = {
|
|
694
|
+
conversations: ConversationRecord[];
|
|
695
|
+
count: number;
|
|
696
|
+
};
|
|
697
|
+
/** ListRequestsResponse */
|
|
698
|
+
type ListRequestsResponse = {
|
|
699
|
+
requests: RequestRecord[];
|
|
700
|
+
count: number;
|
|
701
|
+
};
|
|
702
|
+
/** LocalLlmConnectRequest */
|
|
703
|
+
type LocalLlmConnectRequest = {
|
|
704
|
+
port: number;
|
|
705
|
+
model_name: string;
|
|
706
|
+
};
|
|
707
|
+
/** MemoryCostByEventType */
|
|
708
|
+
type MemoryCostByEventType = {
|
|
709
|
+
count?: number;
|
|
710
|
+
cost?: number;
|
|
711
|
+
input_tokens?: number;
|
|
712
|
+
output_tokens?: number;
|
|
713
|
+
};
|
|
714
|
+
/** MemoryCostSummary */
|
|
715
|
+
type MemoryCostSummary = {
|
|
716
|
+
conversation_id: string;
|
|
717
|
+
total_cost: number;
|
|
718
|
+
total_input_tokens: number;
|
|
719
|
+
total_output_tokens: number;
|
|
720
|
+
event_count: number;
|
|
721
|
+
by_event_type: {
|
|
722
|
+
[key: string]: MemoryCostByEventType;
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
/** Reusable selection grammar for batch message operations. */
|
|
726
|
+
type MessageSelector = {
|
|
727
|
+
message_ids?: string[] | null;
|
|
728
|
+
from_position?: number | null;
|
|
729
|
+
to_position?: number | null;
|
|
730
|
+
from_message_id?: string | null;
|
|
731
|
+
to_message_id?: string | null;
|
|
732
|
+
after_message_id?: string | null;
|
|
733
|
+
inclusive?: boolean;
|
|
734
|
+
};
|
|
735
|
+
/** Fields the client can edit on an existing ``cx_message`` row. */
|
|
736
|
+
type MessageUpdate = {
|
|
737
|
+
content?: {
|
|
738
|
+
[key: string]: unknown;
|
|
739
|
+
}[] | null;
|
|
740
|
+
role?: string | null;
|
|
741
|
+
status?: string | null;
|
|
742
|
+
is_visible_to_user?: boolean | null;
|
|
743
|
+
is_visible_to_model?: boolean | null;
|
|
744
|
+
metadata?: {
|
|
745
|
+
[key: string]: unknown;
|
|
746
|
+
} | null;
|
|
747
|
+
};
|
|
748
|
+
/** The typed payload of a participant edge (``ROOM_VIEW_POLICY_KIND``). */
|
|
749
|
+
type Participant = {
|
|
750
|
+
__kind?: "room_view_policy";
|
|
751
|
+
key: string;
|
|
752
|
+
label: string;
|
|
753
|
+
instance_label?: string | null;
|
|
754
|
+
agent_id?: string | null;
|
|
755
|
+
policy?: ViewPolicy;
|
|
756
|
+
policy_version?: number;
|
|
757
|
+
visible_in_feed?: boolean;
|
|
758
|
+
};
|
|
759
|
+
/** ParticipantOut */
|
|
760
|
+
type ParticipantOut = {
|
|
761
|
+
id: string;
|
|
762
|
+
conversation_id: string;
|
|
763
|
+
position?: number | null;
|
|
764
|
+
participant?: Participant | null;
|
|
765
|
+
raw_payload?: {
|
|
766
|
+
[key: string]: unknown;
|
|
767
|
+
} | null;
|
|
768
|
+
error?: string | null;
|
|
769
|
+
};
|
|
770
|
+
/** PendingCallSummary */
|
|
771
|
+
type PendingCallSummary = {
|
|
772
|
+
id: string;
|
|
773
|
+
call_id: string;
|
|
774
|
+
conversation_id: string;
|
|
775
|
+
user_request_id?: string | null;
|
|
776
|
+
message_id?: string | null;
|
|
777
|
+
tool_name: string;
|
|
778
|
+
arguments?: {
|
|
779
|
+
[key: string]: JsonValue;
|
|
780
|
+
};
|
|
781
|
+
iteration?: number;
|
|
782
|
+
created_at?: string | null;
|
|
783
|
+
expires_at?: string | null;
|
|
784
|
+
target_instance_id?: string | null;
|
|
785
|
+
claimed_by_instance_id?: string | null;
|
|
786
|
+
claim_expires_at?: string | null;
|
|
787
|
+
};
|
|
788
|
+
/** The client's ``callApi`` injects organization_id / project_id / task_id on every PUT body; */
|
|
789
|
+
type PolicyUpdate = {
|
|
790
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
791
|
+
organization_id?: string | null;
|
|
792
|
+
/** Optional associated project selected by the caller. */
|
|
793
|
+
project_id?: string | null;
|
|
794
|
+
/** Optional associated task selected by the caller. */
|
|
795
|
+
task_id?: string | null;
|
|
796
|
+
/** Stable application slug that initiated the request. */
|
|
797
|
+
source_app?: string | null;
|
|
798
|
+
/** Stable feature slug within the source application. */
|
|
799
|
+
source_feature?: string | null;
|
|
800
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
801
|
+
initiation?: ("user" | "auto") | null;
|
|
802
|
+
policy: ViewPolicy;
|
|
803
|
+
expected_policy_version?: number | null;
|
|
804
|
+
};
|
|
805
|
+
/** ProviderReadiness */
|
|
806
|
+
type ProviderReadiness = {
|
|
807
|
+
provider: string;
|
|
808
|
+
ready: boolean;
|
|
809
|
+
action_needed?: ActionNeeded | null;
|
|
810
|
+
};
|
|
811
|
+
/** ReplaceRequest */
|
|
812
|
+
type ReplaceRequest = {
|
|
813
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
814
|
+
organization_id?: string | null;
|
|
815
|
+
/** Optional associated project selected by the caller. */
|
|
816
|
+
project_id?: string | null;
|
|
817
|
+
/** Optional associated task selected by the caller. */
|
|
818
|
+
task_id?: string | null;
|
|
819
|
+
/** Stable application slug that initiated the request. */
|
|
820
|
+
source_app?: string | null;
|
|
821
|
+
/** Stable feature slug within the source application. */
|
|
822
|
+
source_feature?: string | null;
|
|
823
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
824
|
+
initiation?: ("user" | "auto") | null;
|
|
825
|
+
selector: MessageSelector;
|
|
826
|
+
summary_content: {
|
|
827
|
+
[key: string]: unknown;
|
|
828
|
+
}[];
|
|
829
|
+
cascade_tool_pairs?: boolean;
|
|
830
|
+
summary_metadata?: {
|
|
831
|
+
[key: string]: unknown;
|
|
832
|
+
} | null;
|
|
833
|
+
};
|
|
834
|
+
/** ReplaceResponse */
|
|
835
|
+
type ReplaceResponse = {
|
|
836
|
+
summary_message_id: string;
|
|
837
|
+
compaction_group_id: string;
|
|
838
|
+
stashed_message_ids: string[];
|
|
839
|
+
summary_position: number;
|
|
840
|
+
};
|
|
841
|
+
/** RequestRecord */
|
|
842
|
+
type RequestRecord = {
|
|
843
|
+
id?: string | null;
|
|
844
|
+
conversation_id?: string | null;
|
|
845
|
+
[key: string]: unknown;
|
|
846
|
+
};
|
|
847
|
+
/** RestoreRequest */
|
|
848
|
+
type RestoreRequest = {
|
|
849
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
850
|
+
organization_id?: string | null;
|
|
851
|
+
/** Optional associated project selected by the caller. */
|
|
852
|
+
project_id?: string | null;
|
|
853
|
+
/** Optional associated task selected by the caller. */
|
|
854
|
+
task_id?: string | null;
|
|
855
|
+
/** Stable application slug that initiated the request. */
|
|
856
|
+
source_app?: string | null;
|
|
857
|
+
/** Stable feature slug within the source application. */
|
|
858
|
+
source_feature?: string | null;
|
|
859
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
860
|
+
initiation?: ("user" | "auto") | null;
|
|
861
|
+
compaction_group_id?: string | null;
|
|
862
|
+
summary_message_id?: string | null;
|
|
863
|
+
delete_summary?: boolean;
|
|
864
|
+
};
|
|
865
|
+
/** RetryNowResponse */
|
|
866
|
+
type RetryNowResponse = {
|
|
867
|
+
status: string;
|
|
868
|
+
request_id: string;
|
|
869
|
+
};
|
|
870
|
+
/** RevealAfterRound */
|
|
871
|
+
type RevealAfterRound = {
|
|
872
|
+
after_round: number;
|
|
873
|
+
};
|
|
874
|
+
/** RevealEveryRounds */
|
|
875
|
+
type RevealEveryRounds = {
|
|
876
|
+
every_rounds: number;
|
|
877
|
+
};
|
|
878
|
+
/** The user's decision on one parked review. */
|
|
879
|
+
type ReviewDecisionRequest = {
|
|
880
|
+
call_id: string;
|
|
881
|
+
outcome: string;
|
|
882
|
+
message_id?: string | null;
|
|
883
|
+
to?: string | null;
|
|
884
|
+
cc?: string[];
|
|
885
|
+
subject?: string | null;
|
|
886
|
+
from_email?: string | null;
|
|
887
|
+
edited?: boolean;
|
|
888
|
+
error?: string | null;
|
|
889
|
+
};
|
|
890
|
+
/** SandboxBindRequest */
|
|
891
|
+
type SandboxBindRequest = {
|
|
892
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
893
|
+
organization_id?: string | null;
|
|
894
|
+
/** Optional associated project selected by the caller. */
|
|
895
|
+
project_id?: string | null;
|
|
896
|
+
/** Optional associated task selected by the caller. */
|
|
897
|
+
task_id?: string | null;
|
|
898
|
+
/** Stable application slug that initiated the request. */
|
|
899
|
+
source_app?: string | null;
|
|
900
|
+
/** Stable feature slug within the source application. */
|
|
901
|
+
source_feature?: string | null;
|
|
902
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
903
|
+
initiation?: ("user" | "auto") | null;
|
|
904
|
+
/** The sandbox_instances.id (UUID) to bind to this conversation. */
|
|
905
|
+
sandbox_instance_id: string;
|
|
906
|
+
};
|
|
907
|
+
/** Current sandbox binding for a conversation + whether the next agent run */
|
|
908
|
+
type SandboxBindingState = {
|
|
909
|
+
conversation_id: string;
|
|
910
|
+
sandbox_instance_id?: string | null;
|
|
911
|
+
sandbox_id?: string | null;
|
|
912
|
+
status?: string | null;
|
|
913
|
+
tier?: string | null;
|
|
914
|
+
armed?: boolean;
|
|
915
|
+
reason?: string | null;
|
|
916
|
+
};
|
|
917
|
+
/** SeesExcept */
|
|
918
|
+
type SeesExcept = {
|
|
919
|
+
except: string[];
|
|
920
|
+
};
|
|
921
|
+
/** SeesOnly */
|
|
922
|
+
type SeesOnly = {
|
|
923
|
+
only: string[];
|
|
924
|
+
};
|
|
925
|
+
/** Structured system prompt on the chat/manual wire. */
|
|
926
|
+
type SystemInstructionInput = {
|
|
927
|
+
content?: string | null;
|
|
928
|
+
base_instruction?: string | null;
|
|
929
|
+
intro?: string;
|
|
930
|
+
outro?: string;
|
|
931
|
+
append_sections?: string[];
|
|
932
|
+
prepend_sections?: string[];
|
|
933
|
+
content_blocks?: string[];
|
|
934
|
+
tools_list?: string[];
|
|
935
|
+
action_types?: string[];
|
|
936
|
+
include_date?: boolean;
|
|
937
|
+
include_code_guidelines?: boolean;
|
|
938
|
+
include_safety_guidelines?: boolean;
|
|
939
|
+
include_actions_guidance?: boolean;
|
|
940
|
+
include_context_block?: boolean;
|
|
941
|
+
version?: string | null;
|
|
942
|
+
category?: string | null;
|
|
943
|
+
[key: string]: unknown;
|
|
944
|
+
};
|
|
945
|
+
/** Cloud tool names (catalog cloud_name) that cloud agents may NOT use here. */
|
|
946
|
+
type ToolExposureRequest = {
|
|
947
|
+
disabled_tools: string[];
|
|
948
|
+
};
|
|
949
|
+
/** ToolResultsRequest */
|
|
950
|
+
type ToolResultsRequest = {
|
|
951
|
+
results: ClientToolResult[];
|
|
952
|
+
instance_id?: string | null;
|
|
953
|
+
};
|
|
954
|
+
/** ToolResultsResponse */
|
|
955
|
+
type ToolResultsResponse = {
|
|
956
|
+
resolved: string[];
|
|
957
|
+
already_resolved: string[];
|
|
958
|
+
not_found: string[];
|
|
959
|
+
continuation_needed: boolean;
|
|
960
|
+
user_request_id?: string | null;
|
|
961
|
+
conversation_id: string;
|
|
962
|
+
};
|
|
963
|
+
/** Identify one or more contiguous turns to compact. */
|
|
964
|
+
type TurnRange = {
|
|
965
|
+
from_user_message_id: string;
|
|
966
|
+
to_user_message_id?: string | null;
|
|
967
|
+
};
|
|
968
|
+
/** UiClaimRequest */
|
|
969
|
+
type UiClaimRequest = {
|
|
970
|
+
conversation_id: string;
|
|
971
|
+
ttl_seconds?: number;
|
|
972
|
+
};
|
|
973
|
+
/** UpdateMessageResponse */
|
|
974
|
+
type UpdateMessageResponse = {
|
|
975
|
+
updated: boolean;
|
|
976
|
+
message_id: string;
|
|
977
|
+
fields: string[];
|
|
978
|
+
};
|
|
979
|
+
/** What one participant sees of the rest of the group. ``{}`` = the 80% case: sees everyone, */
|
|
980
|
+
type ViewPolicy = {
|
|
981
|
+
sees?: ("everyone" | "none") | SeesOnly | SeesExcept;
|
|
982
|
+
labels?: "named" | "anonymous";
|
|
983
|
+
reveal?: RevealAfterRound | RevealEveryRounds | null;
|
|
984
|
+
cadence?: "person" | CadenceEveryRounds;
|
|
985
|
+
budget_chars?: number;
|
|
986
|
+
};
|
|
987
|
+
/** WarmHealthOut */
|
|
988
|
+
type WarmHealthOut = {
|
|
989
|
+
server_task_id: string;
|
|
990
|
+
l2: CacheL2State;
|
|
991
|
+
namespaces: {
|
|
992
|
+
[key: string]: {
|
|
993
|
+
[key: string]: number;
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
totals: {
|
|
997
|
+
[key: string]: number;
|
|
998
|
+
};
|
|
999
|
+
warm: {
|
|
1000
|
+
[key: string]: number | {
|
|
1001
|
+
[key: string]: number;
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
/** WarmIn */
|
|
1006
|
+
type WarmIn = {
|
|
1007
|
+
reason?: ("session" | "route" | "org_change" | "agent_change" | "conversation_change") | string;
|
|
1008
|
+
items?: WarmItemIn[];
|
|
1009
|
+
};
|
|
1010
|
+
/** WarmItemIn */
|
|
1011
|
+
type WarmItemIn = {
|
|
1012
|
+
key: string;
|
|
1013
|
+
id?: string | null;
|
|
1014
|
+
};
|
|
1015
|
+
/** WarmItemOut */
|
|
1016
|
+
type WarmItemOut = {
|
|
1017
|
+
key: string;
|
|
1018
|
+
id?: string | null;
|
|
1019
|
+
};
|
|
1020
|
+
/** WarmOut */
|
|
1021
|
+
type WarmOut = {
|
|
1022
|
+
accepted: WarmItemOut[];
|
|
1023
|
+
unknown: WarmItemOut[];
|
|
1024
|
+
throttled: WarmItemOut[];
|
|
1025
|
+
limited?: WarmItemOut[];
|
|
1026
|
+
};
|
|
1027
|
+
/** RestoreResponse */
|
|
1028
|
+
type aidream__services__conversation_context__compaction__RestoreResponse = {
|
|
1029
|
+
restored_message_ids: string[];
|
|
1030
|
+
deleted_summary_id: string | null;
|
|
1031
|
+
compaction_group_id: string;
|
|
1032
|
+
};
|
|
1033
|
+
/** ResumeRequest */
|
|
1034
|
+
type aidream__services__conversation_context__continue_conversation__ResumeRequest = {
|
|
1035
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
1036
|
+
organization_id?: string | null;
|
|
1037
|
+
/** Optional associated project selected by the caller. */
|
|
1038
|
+
project_id?: string | null;
|
|
1039
|
+
/** Optional associated task selected by the caller. */
|
|
1040
|
+
task_id?: string | null;
|
|
1041
|
+
/** Stable application slug that initiated the request. */
|
|
1042
|
+
source_app?: string | null;
|
|
1043
|
+
/** Stable feature slug within the source application. */
|
|
1044
|
+
source_feature?: string | null;
|
|
1045
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
1046
|
+
initiation?: ("user" | "auto") | null;
|
|
1047
|
+
/** Active context-scope ids selected by the caller and membership-validated server-side. */
|
|
1048
|
+
scope_ids?: string[] | null;
|
|
1049
|
+
/** Active scope-type ids selected by the caller (type-level selection with no specific scope chosen). */
|
|
1050
|
+
active_scope_type_ids?: string[] | null;
|
|
1051
|
+
/** Durable resource identity from which authoritative organization and task context is reloaded. */
|
|
1052
|
+
context_anchor?: ContextAnchor | null;
|
|
1053
|
+
/** Persist request outputs when true; run ephemerally when false. */
|
|
1054
|
+
store?: boolean;
|
|
1055
|
+
/** Specific connected desktop instance allowed to claim delegated local tools. */
|
|
1056
|
+
target_instance_id?: string | null;
|
|
1057
|
+
user_request_id?: string | null;
|
|
1058
|
+
config_overrides?: LLMParams | null;
|
|
1059
|
+
debug?: boolean;
|
|
1060
|
+
tools?: (RegisteredToolSpec | InlineToolSpec | AgentToolSpec)[];
|
|
1061
|
+
tools_replace?: ((RegisteredToolSpec | InlineToolSpec | AgentToolSpec)[]) | null;
|
|
1062
|
+
client?: ClientContext | null;
|
|
1063
|
+
user?: UserOverrides | null;
|
|
1064
|
+
sandbox?: SandboxBindingRequest | null;
|
|
1065
|
+
context?: {
|
|
1066
|
+
[key: string]: unknown;
|
|
1067
|
+
};
|
|
1068
|
+
/** The context keys the client withheld this turn (off by the page, the agent or the person's rule). When sent, the context receipt lists saved-rule rows only for these keys; omitted, it lists every save */
|
|
1069
|
+
context_withheld?: string[] | null;
|
|
1070
|
+
/** This conversation is the page's own (mode 'own') or the person switched the page off (mode 'off'): the page's values, the screens around it and what identifies the conversation are withheld by the con */
|
|
1071
|
+
page_context?: PageContext | null;
|
|
1072
|
+
/** The surface whose page published each context value that the primary surface (client.surface) does not declare: a screen mounted inside the page (a transcript open on the Knowledge page). Sent or with */
|
|
1073
|
+
context_surfaces?: {
|
|
1074
|
+
[key: string]: string;
|
|
1075
|
+
} | null;
|
|
1076
|
+
writable_variables?: string[];
|
|
1077
|
+
allow_context_create?: boolean;
|
|
1078
|
+
block_mode?: boolean;
|
|
1079
|
+
};
|
|
1080
|
+
type ConversationsWarmConversationArgs = {
|
|
1081
|
+
path: {
|
|
1082
|
+
conversation_id: string;
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
type ConversationsWarmConversationResult = ConversationWarmResponse;
|
|
1086
|
+
/** Warm Conversation */
|
|
1087
|
+
/** `POST /ai/conversation/{conversation_id}/warm` · aidream · auth user · org required */
|
|
1088
|
+
declare function conversationsWarmConversation(api: Api, args: ConversationsWarmConversationArgs, options?: CallOptions): Promise<ConversationsWarmConversationResult>;
|
|
1089
|
+
type ConversationsWarmConversationPostArgs = {
|
|
1090
|
+
path: {
|
|
1091
|
+
conversation_id: string;
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
type ConversationsWarmConversationPostResult = ConversationWarmResponse;
|
|
1095
|
+
/** Warm Conversation */
|
|
1096
|
+
/** `POST /ai/conversations/{conversation_id}/warm` · aidream · auth user · org required */
|
|
1097
|
+
declare function conversationsWarmConversationPost(api: Api, args: ConversationsWarmConversationPostArgs, options?: CallOptions): Promise<ConversationsWarmConversationPostResult>;
|
|
1098
|
+
type ChatArgs = {
|
|
1099
|
+
body: ChatRequest;
|
|
1100
|
+
};
|
|
1101
|
+
type ChatResult = unknown;
|
|
1102
|
+
/** Chat */
|
|
1103
|
+
/** `POST /ai/manual` · aidream · auth guest · org required · ndjson_or_json */
|
|
1104
|
+
declare function chat(api: Api, args: ChatArgs, options?: CallOptions): Promise<JsonOrStream<ChatResult, NdjsonEvent>>;
|
|
1105
|
+
type ChatPostArgs = {
|
|
1106
|
+
body: ChatRequest;
|
|
1107
|
+
};
|
|
1108
|
+
type ChatPostResult = unknown;
|
|
1109
|
+
/** Chat */
|
|
1110
|
+
/** `POST /ai/chat` · aidream · auth guest · org required · ndjson_or_json */
|
|
1111
|
+
declare function chatPost(api: Api, args: ChatPostArgs, options?: CallOptions): Promise<JsonOrStream<ChatPostResult, NdjsonEvent>>;
|
|
1112
|
+
type ConversationsContinueConversationArgs = {
|
|
1113
|
+
path: {
|
|
1114
|
+
conversation_id: string;
|
|
1115
|
+
};
|
|
1116
|
+
body: ConversationContinueRequest;
|
|
1117
|
+
};
|
|
1118
|
+
type ConversationsContinueConversationResult = unknown;
|
|
1119
|
+
/** Continue Conversation */
|
|
1120
|
+
/** `POST /ai/conversation/{conversation_id}` · aidream · auth guest · org required · ndjson */
|
|
1121
|
+
declare function conversationsContinueConversation(api: Api, args: ConversationsContinueConversationArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
1122
|
+
type ConversationsContinueConversationPostArgs = {
|
|
1123
|
+
path: {
|
|
1124
|
+
conversation_id: string;
|
|
1125
|
+
};
|
|
1126
|
+
body: ConversationContinueRequest;
|
|
1127
|
+
};
|
|
1128
|
+
type ConversationsContinueConversationPostResult = unknown;
|
|
1129
|
+
/** Continue Conversation */
|
|
1130
|
+
/** `POST /ai/conversations/{conversation_id}` · aidream · auth guest · org required · ndjson */
|
|
1131
|
+
declare function conversationsContinueConversationPost(api: Api, args: ConversationsContinueConversationPostArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
1132
|
+
type ConversationsForkAndRunArgs = {
|
|
1133
|
+
path: {
|
|
1134
|
+
conversation_id: string;
|
|
1135
|
+
};
|
|
1136
|
+
body: ForkAndRunRequest;
|
|
1137
|
+
};
|
|
1138
|
+
type ConversationsForkAndRunResult = unknown;
|
|
1139
|
+
/** Fork And Run */
|
|
1140
|
+
/** `POST /ai/conversation/{conversation_id}/fork-and-run` · aidream · auth guest · org required · ndjson */
|
|
1141
|
+
declare function conversationsForkAndRun(api: Api, args: ConversationsForkAndRunArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
1142
|
+
type ConversationsForkAndRunPostArgs = {
|
|
1143
|
+
path: {
|
|
1144
|
+
conversation_id: string;
|
|
1145
|
+
};
|
|
1146
|
+
body: ForkAndRunRequest;
|
|
1147
|
+
};
|
|
1148
|
+
type ConversationsForkAndRunPostResult = unknown;
|
|
1149
|
+
/** Fork And Run */
|
|
1150
|
+
/** `POST /ai/conversations/{conversation_id}/fork-and-run` · aidream · auth guest · org required · ndjson */
|
|
1151
|
+
declare function conversationsForkAndRunPost(api: Api, args: ConversationsForkAndRunPostArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
1152
|
+
type ConversationsSubmitToolResultsArgs = {
|
|
1153
|
+
path: {
|
|
1154
|
+
conversation_id: string;
|
|
1155
|
+
};
|
|
1156
|
+
body: ToolResultsRequest;
|
|
1157
|
+
};
|
|
1158
|
+
type ConversationsSubmitToolResultsResult = ToolResultsResponse;
|
|
1159
|
+
/** Submit Tool Results */
|
|
1160
|
+
/** `POST /ai/conversation/{conversation_id}/tool_results` · aidream · auth guest · org required */
|
|
1161
|
+
declare function conversationsSubmitToolResults(api: Api, args: ConversationsSubmitToolResultsArgs, options?: CallOptions): Promise<ConversationsSubmitToolResultsResult>;
|
|
1162
|
+
type ConversationsSubmitToolResultsPostArgs = {
|
|
1163
|
+
path: {
|
|
1164
|
+
conversation_id: string;
|
|
1165
|
+
};
|
|
1166
|
+
body: ToolResultsRequest;
|
|
1167
|
+
};
|
|
1168
|
+
type ConversationsSubmitToolResultsPostResult = ToolResultsResponse;
|
|
1169
|
+
/** Submit Tool Results */
|
|
1170
|
+
/** `POST /ai/conversations/{conversation_id}/tool_results` · aidream · auth guest · org required */
|
|
1171
|
+
declare function conversationsSubmitToolResultsPost(api: Api, args: ConversationsSubmitToolResultsPostArgs, options?: CallOptions): Promise<ConversationsSubmitToolResultsPostResult>;
|
|
1172
|
+
type ConversationsListConversationPendingCallsArgs = {
|
|
1173
|
+
path: {
|
|
1174
|
+
conversation_id: string;
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
type ConversationsListConversationPendingCallsResult = PendingCallSummary[];
|
|
1178
|
+
/** List Conversation Pending Calls */
|
|
1179
|
+
/** `GET /ai/conversation/{conversation_id}/pending_calls` · aidream · auth guest · org optional */
|
|
1180
|
+
declare function conversationsListConversationPendingCalls(api: Api, args: ConversationsListConversationPendingCallsArgs, options?: CallOptions): Promise<ConversationsListConversationPendingCallsResult>;
|
|
1181
|
+
type ConversationsListConversationPendingCallsGetArgs = {
|
|
1182
|
+
path: {
|
|
1183
|
+
conversation_id: string;
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
type ConversationsListConversationPendingCallsGetResult = PendingCallSummary[];
|
|
1187
|
+
/** List Conversation Pending Calls */
|
|
1188
|
+
/** `GET /ai/conversations/{conversation_id}/pending_calls` · aidream · auth guest · org optional */
|
|
1189
|
+
declare function conversationsListConversationPendingCallsGet(api: Api, args: ConversationsListConversationPendingCallsGetArgs, options?: CallOptions): Promise<ConversationsListConversationPendingCallsGetResult>;
|
|
1190
|
+
type ListUserPendingCallsArgs = {
|
|
1191
|
+
query?: {
|
|
1192
|
+
instance_id?: string | null;
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1195
|
+
type ListUserPendingCallsResult = PendingCallSummary[];
|
|
1196
|
+
/** List User Pending Calls */
|
|
1197
|
+
/** `GET /ai/user/pending_calls` · aidream · auth guest · org optional */
|
|
1198
|
+
declare function listUserPendingCalls(api: Api, args?: ListUserPendingCallsArgs, options?: CallOptions): Promise<ListUserPendingCallsResult>;
|
|
1199
|
+
type ConversationsListInboxItemsArgs = {
|
|
1200
|
+
path: {
|
|
1201
|
+
conversation_id: string;
|
|
1202
|
+
};
|
|
1203
|
+
query?: {
|
|
1204
|
+
status?: string;
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
type ConversationsListInboxItemsResult = InboxItem[];
|
|
1208
|
+
/** List Inbox Items */
|
|
1209
|
+
/** `GET /ai/conversation/{conversation_id}/inbox` · aidream · auth guest · org optional */
|
|
1210
|
+
declare function conversationsListInboxItems(api: Api, args: ConversationsListInboxItemsArgs, options?: CallOptions): Promise<ConversationsListInboxItemsResult>;
|
|
1211
|
+
type ConversationsEnqueueInboxItemArgs = {
|
|
1212
|
+
path: {
|
|
1213
|
+
conversation_id: string;
|
|
1214
|
+
};
|
|
1215
|
+
body: InboxEnqueueRequest;
|
|
1216
|
+
};
|
|
1217
|
+
type ConversationsEnqueueInboxItemResult = InboxEnqueueResponse;
|
|
1218
|
+
/** Enqueue Inbox Item */
|
|
1219
|
+
/** `POST /ai/conversation/{conversation_id}/inbox` · aidream · auth guest · org required */
|
|
1220
|
+
declare function conversationsEnqueueInboxItem(api: Api, args: ConversationsEnqueueInboxItemArgs, options?: CallOptions): Promise<ConversationsEnqueueInboxItemResult>;
|
|
1221
|
+
type ConversationsListInboxItemsGetArgs = {
|
|
1222
|
+
path: {
|
|
1223
|
+
conversation_id: string;
|
|
1224
|
+
};
|
|
1225
|
+
query?: {
|
|
1226
|
+
status?: string;
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
type ConversationsListInboxItemsGetResult = InboxItem[];
|
|
1230
|
+
/** List Inbox Items */
|
|
1231
|
+
/** `GET /ai/conversations/{conversation_id}/inbox` · aidream · auth guest · org optional */
|
|
1232
|
+
declare function conversationsListInboxItemsGet(api: Api, args: ConversationsListInboxItemsGetArgs, options?: CallOptions): Promise<ConversationsListInboxItemsGetResult>;
|
|
1233
|
+
type ConversationsEnqueueInboxItemPostArgs = {
|
|
1234
|
+
path: {
|
|
1235
|
+
conversation_id: string;
|
|
1236
|
+
};
|
|
1237
|
+
body: InboxEnqueueRequest;
|
|
1238
|
+
};
|
|
1239
|
+
type ConversationsEnqueueInboxItemPostResult = InboxEnqueueResponse;
|
|
1240
|
+
/** Enqueue Inbox Item */
|
|
1241
|
+
/** `POST /ai/conversations/{conversation_id}/inbox` · aidream · auth guest · org required */
|
|
1242
|
+
declare function conversationsEnqueueInboxItemPost(api: Api, args: ConversationsEnqueueInboxItemPostArgs, options?: CallOptions): Promise<ConversationsEnqueueInboxItemPostResult>;
|
|
1243
|
+
type ConversationsEditInboxItemArgs = {
|
|
1244
|
+
path: {
|
|
1245
|
+
conversation_id: string;
|
|
1246
|
+
injection_id: string;
|
|
1247
|
+
};
|
|
1248
|
+
body: InboxEditRequest;
|
|
1249
|
+
};
|
|
1250
|
+
type ConversationsEditInboxItemResult = InboxMutationResponse;
|
|
1251
|
+
/** Edit Inbox Item */
|
|
1252
|
+
/** `PATCH /ai/conversation/{conversation_id}/inbox/{injection_id}` · aidream · auth guest · org required */
|
|
1253
|
+
declare function conversationsEditInboxItem(api: Api, args: ConversationsEditInboxItemArgs, options?: CallOptions): Promise<ConversationsEditInboxItemResult>;
|
|
1254
|
+
type ConversationsCancelInboxItemArgs = {
|
|
1255
|
+
path: {
|
|
1256
|
+
conversation_id: string;
|
|
1257
|
+
injection_id: string;
|
|
1258
|
+
};
|
|
1259
|
+
};
|
|
1260
|
+
type ConversationsCancelInboxItemResult = InboxMutationResponse;
|
|
1261
|
+
/** Cancel Inbox Item */
|
|
1262
|
+
/** `DELETE /ai/conversation/{conversation_id}/inbox/{injection_id}` · aidream · auth guest · org required */
|
|
1263
|
+
declare function conversationsCancelInboxItem(api: Api, args: ConversationsCancelInboxItemArgs, options?: CallOptions): Promise<ConversationsCancelInboxItemResult>;
|
|
1264
|
+
type ConversationsEditInboxItemPatchArgs = {
|
|
1265
|
+
path: {
|
|
1266
|
+
conversation_id: string;
|
|
1267
|
+
injection_id: string;
|
|
1268
|
+
};
|
|
1269
|
+
body: InboxEditRequest;
|
|
1270
|
+
};
|
|
1271
|
+
type ConversationsEditInboxItemPatchResult = InboxMutationResponse;
|
|
1272
|
+
/** Edit Inbox Item */
|
|
1273
|
+
/** `PATCH /ai/conversations/{conversation_id}/inbox/{injection_id}` · aidream · auth guest · org required */
|
|
1274
|
+
declare function conversationsEditInboxItemPatch(api: Api, args: ConversationsEditInboxItemPatchArgs, options?: CallOptions): Promise<ConversationsEditInboxItemPatchResult>;
|
|
1275
|
+
type ConversationsCancelInboxItemDeleteArgs = {
|
|
1276
|
+
path: {
|
|
1277
|
+
conversation_id: string;
|
|
1278
|
+
injection_id: string;
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
type ConversationsCancelInboxItemDeleteResult = InboxMutationResponse;
|
|
1282
|
+
/** Cancel Inbox Item */
|
|
1283
|
+
/** `DELETE /ai/conversations/{conversation_id}/inbox/{injection_id}` · aidream · auth guest · org required */
|
|
1284
|
+
declare function conversationsCancelInboxItemDelete(api: Api, args: ConversationsCancelInboxItemDeleteArgs, options?: CallOptions): Promise<ConversationsCancelInboxItemDeleteResult>;
|
|
1285
|
+
type ConversationsResumeConversationArgs = {
|
|
1286
|
+
path: {
|
|
1287
|
+
conversation_id: string;
|
|
1288
|
+
};
|
|
1289
|
+
body: aidream__services__conversation_context__continue_conversation__ResumeRequest;
|
|
1290
|
+
};
|
|
1291
|
+
type ConversationsResumeConversationResult = unknown;
|
|
1292
|
+
/** Resume Conversation */
|
|
1293
|
+
/** `POST /ai/conversation/{conversation_id}/resume` · aidream · auth guest · org required · ndjson */
|
|
1294
|
+
declare function conversationsResumeConversation(api: Api, args: ConversationsResumeConversationArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
1295
|
+
type ConversationsResumeConversationPostArgs = {
|
|
1296
|
+
path: {
|
|
1297
|
+
conversation_id: string;
|
|
1298
|
+
};
|
|
1299
|
+
body: aidream__services__conversation_context__continue_conversation__ResumeRequest;
|
|
1300
|
+
};
|
|
1301
|
+
type ConversationsResumeConversationPostResult = unknown;
|
|
1302
|
+
/** Resume Conversation */
|
|
1303
|
+
/** `POST /ai/conversations/{conversation_id}/resume` · aidream · auth guest · org required · ndjson */
|
|
1304
|
+
declare function conversationsResumeConversationPost(api: Api, args: ConversationsResumeConversationPostArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
1305
|
+
type ConversationsGetConversationSandboxArgs = {
|
|
1306
|
+
path: {
|
|
1307
|
+
conversation_id: string;
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
type ConversationsGetConversationSandboxResult = SandboxBindingState;
|
|
1311
|
+
/** Get Conversation Sandbox */
|
|
1312
|
+
/** `GET /ai/conversation/{conversation_id}/sandbox` · aidream · auth guest · org optional */
|
|
1313
|
+
declare function conversationsGetConversationSandbox(api: Api, args: ConversationsGetConversationSandboxArgs, options?: CallOptions): Promise<ConversationsGetConversationSandboxResult>;
|
|
1314
|
+
type ConversationsBindConversationSandboxArgs = {
|
|
1315
|
+
path: {
|
|
1316
|
+
conversation_id: string;
|
|
1317
|
+
};
|
|
1318
|
+
body: SandboxBindRequest;
|
|
1319
|
+
};
|
|
1320
|
+
type ConversationsBindConversationSandboxResult = SandboxBindingState;
|
|
1321
|
+
/** Bind Conversation Sandbox */
|
|
1322
|
+
/** `PUT /ai/conversation/{conversation_id}/sandbox` · aidream · auth guest · org required */
|
|
1323
|
+
declare function conversationsBindConversationSandbox(api: Api, args: ConversationsBindConversationSandboxArgs, options?: CallOptions): Promise<ConversationsBindConversationSandboxResult>;
|
|
1324
|
+
type ConversationsUnbindConversationSandboxArgs = {
|
|
1325
|
+
path: {
|
|
1326
|
+
conversation_id: string;
|
|
1327
|
+
};
|
|
1328
|
+
};
|
|
1329
|
+
type ConversationsUnbindConversationSandboxResult = SandboxBindingState;
|
|
1330
|
+
/** Unbind Conversation Sandbox */
|
|
1331
|
+
/** `DELETE /ai/conversation/{conversation_id}/sandbox` · aidream · auth guest · org required */
|
|
1332
|
+
declare function conversationsUnbindConversationSandbox(api: Api, args: ConversationsUnbindConversationSandboxArgs, options?: CallOptions): Promise<ConversationsUnbindConversationSandboxResult>;
|
|
1333
|
+
type ConversationsGetConversationSandboxGetArgs = {
|
|
1334
|
+
path: {
|
|
1335
|
+
conversation_id: string;
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
type ConversationsGetConversationSandboxGetResult = SandboxBindingState;
|
|
1339
|
+
/** Get Conversation Sandbox */
|
|
1340
|
+
/** `GET /ai/conversations/{conversation_id}/sandbox` · aidream · auth guest · org optional */
|
|
1341
|
+
declare function conversationsGetConversationSandboxGet(api: Api, args: ConversationsGetConversationSandboxGetArgs, options?: CallOptions): Promise<ConversationsGetConversationSandboxGetResult>;
|
|
1342
|
+
type ConversationsBindConversationSandboxPutArgs = {
|
|
1343
|
+
path: {
|
|
1344
|
+
conversation_id: string;
|
|
1345
|
+
};
|
|
1346
|
+
body: SandboxBindRequest;
|
|
1347
|
+
};
|
|
1348
|
+
type ConversationsBindConversationSandboxPutResult = SandboxBindingState;
|
|
1349
|
+
/** Bind Conversation Sandbox */
|
|
1350
|
+
/** `PUT /ai/conversations/{conversation_id}/sandbox` · aidream · auth guest · org required */
|
|
1351
|
+
declare function conversationsBindConversationSandboxPut(api: Api, args: ConversationsBindConversationSandboxPutArgs, options?: CallOptions): Promise<ConversationsBindConversationSandboxPutResult>;
|
|
1352
|
+
type ConversationsUnbindConversationSandboxDeleteArgs = {
|
|
1353
|
+
path: {
|
|
1354
|
+
conversation_id: string;
|
|
1355
|
+
};
|
|
1356
|
+
};
|
|
1357
|
+
type ConversationsUnbindConversationSandboxDeleteResult = SandboxBindingState;
|
|
1358
|
+
/** Unbind Conversation Sandbox */
|
|
1359
|
+
/** `DELETE /ai/conversations/{conversation_id}/sandbox` · aidream · auth guest · org required */
|
|
1360
|
+
declare function conversationsUnbindConversationSandboxDelete(api: Api, args: ConversationsUnbindConversationSandboxDeleteArgs, options?: CallOptions): Promise<ConversationsUnbindConversationSandboxDeleteResult>;
|
|
1361
|
+
type ConversationsGetConversationMemoryCostArgs = {
|
|
1362
|
+
path: {
|
|
1363
|
+
conversation_id: string;
|
|
1364
|
+
};
|
|
1365
|
+
};
|
|
1366
|
+
type ConversationsGetConversationMemoryCostResult = MemoryCostSummary;
|
|
1367
|
+
/** Get Conversation Memory Cost */
|
|
1368
|
+
/** `GET /ai/conversation/{conversation_id}/memory_cost` · aidream · auth guest · org optional */
|
|
1369
|
+
declare function conversationsGetConversationMemoryCost(api: Api, args: ConversationsGetConversationMemoryCostArgs, options?: CallOptions): Promise<ConversationsGetConversationMemoryCostResult>;
|
|
1370
|
+
type ConversationsGetConversationMemoryCostGetArgs = {
|
|
1371
|
+
path: {
|
|
1372
|
+
conversation_id: string;
|
|
1373
|
+
};
|
|
1374
|
+
};
|
|
1375
|
+
type ConversationsGetConversationMemoryCostGetResult = MemoryCostSummary;
|
|
1376
|
+
/** Get Conversation Memory Cost */
|
|
1377
|
+
/** `GET /ai/conversations/{conversation_id}/memory_cost` · aidream · auth guest · org optional */
|
|
1378
|
+
declare function conversationsGetConversationMemoryCostGet(api: Api, args: ConversationsGetConversationMemoryCostGetArgs, options?: CallOptions): Promise<ConversationsGetConversationMemoryCostGetResult>;
|
|
1379
|
+
type CancelRequestArgs = {
|
|
1380
|
+
path: {
|
|
1381
|
+
request_id: string;
|
|
1382
|
+
};
|
|
1383
|
+
query?: {
|
|
1384
|
+
mode?: string;
|
|
1385
|
+
seen_seq?: number | null;
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
type CancelRequestResult = CancelResponse;
|
|
1389
|
+
/** Cancel Request */
|
|
1390
|
+
/** `POST /ai/cancel/{request_id}` · aidream · auth guest · org required */
|
|
1391
|
+
declare function cancelRequest(api: Api, args: CancelRequestArgs, options?: CallOptions): Promise<CancelRequestResult>;
|
|
1392
|
+
type RetryNowRequestArgs = {
|
|
1393
|
+
path: {
|
|
1394
|
+
request_id: string;
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1397
|
+
type RetryNowRequestResult = RetryNowResponse;
|
|
1398
|
+
/** Retry Now Request */
|
|
1399
|
+
/** `POST /ai/retry-now/{request_id}` · aidream · auth guest · org required */
|
|
1400
|
+
declare function retryNowRequest(api: Api, args: RetryNowRequestArgs, options?: CallOptions): Promise<RetryNowRequestResult>;
|
|
1401
|
+
type WarmArgs = {
|
|
1402
|
+
body: WarmIn;
|
|
1403
|
+
};
|
|
1404
|
+
type WarmResult = WarmOut;
|
|
1405
|
+
/** Warm */
|
|
1406
|
+
/** `POST /ai/warm` · aidream · auth guest · org required */
|
|
1407
|
+
declare function warm(api: Api, args: WarmArgs, options?: CallOptions): Promise<WarmResult>;
|
|
1408
|
+
type WarmHealthRouteArgs = {
|
|
1409
|
+
[key: string]: never;
|
|
1410
|
+
};
|
|
1411
|
+
type WarmHealthRouteResult = WarmHealthOut;
|
|
1412
|
+
/** Warm Health Route */
|
|
1413
|
+
/** `GET /ai/warm/health` · aidream · auth admin · org required */
|
|
1414
|
+
declare function warmHealthRoute(api: Api, args?: WarmHealthRouteArgs, options?: CallOptions): Promise<WarmHealthRouteResult>;
|
|
1415
|
+
type DirectChatArgs = {
|
|
1416
|
+
body: DirectChatRequest;
|
|
1417
|
+
};
|
|
1418
|
+
type DirectChatResult = unknown;
|
|
1419
|
+
/** Direct Chat */
|
|
1420
|
+
/** `POST /ai/chat/direct-chat` · aidream · auth guest · org required · ndjson */
|
|
1421
|
+
declare function directChat(api: Api, args: DirectChatArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
1422
|
+
type PromptExecutionArgs = {
|
|
1423
|
+
body: DirectChatRequest;
|
|
1424
|
+
};
|
|
1425
|
+
type PromptExecutionResult = unknown;
|
|
1426
|
+
/** Prompt Execution */
|
|
1427
|
+
/** `POST /ai/chat/prompt-execution` · aidream · auth guest · org required · ndjson */
|
|
1428
|
+
declare function promptExecution(api: Api, args: PromptExecutionArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
1429
|
+
type V2ChatV2Args = {
|
|
1430
|
+
body: ChatRequest;
|
|
1431
|
+
};
|
|
1432
|
+
type V2ChatV2Result = unknown;
|
|
1433
|
+
/** Chat V2 */
|
|
1434
|
+
/** `POST /v2/ai/manual` · aidream · auth guest · org required */
|
|
1435
|
+
declare function v2ChatV2(api: Api, args: V2ChatV2Args, options?: CallOptions): Promise<V2ChatV2Result>;
|
|
1436
|
+
type V2ChatV2PostArgs = {
|
|
1437
|
+
body: ChatRequest;
|
|
1438
|
+
};
|
|
1439
|
+
type V2ChatV2PostResult = unknown;
|
|
1440
|
+
/** Chat V2 */
|
|
1441
|
+
/** `POST /v2/ai/chat` · aidream · auth guest · org required */
|
|
1442
|
+
declare function v2ChatV2Post(api: Api, args: V2ChatV2PostArgs, options?: CallOptions): Promise<V2ChatV2PostResult>;
|
|
1443
|
+
type V2StartAgentV2Args = {
|
|
1444
|
+
path: {
|
|
1445
|
+
agent_id: string;
|
|
1446
|
+
};
|
|
1447
|
+
query?: {
|
|
1448
|
+
is_version?: boolean;
|
|
1449
|
+
};
|
|
1450
|
+
body: AgentStartRequest;
|
|
1451
|
+
};
|
|
1452
|
+
type V2StartAgentV2Result = unknown;
|
|
1453
|
+
/** Start Agent V2 */
|
|
1454
|
+
/** `POST /v2/ai/agent/{agent_id}` · aidream · auth guest · org required */
|
|
1455
|
+
declare function v2StartAgentV2(api: Api, args: V2StartAgentV2Args, options?: CallOptions): Promise<V2StartAgentV2Result>;
|
|
1456
|
+
type V2StartAgentV2PostArgs = {
|
|
1457
|
+
path: {
|
|
1458
|
+
agent_id: string;
|
|
1459
|
+
};
|
|
1460
|
+
query?: {
|
|
1461
|
+
is_version?: boolean;
|
|
1462
|
+
};
|
|
1463
|
+
body: AgentStartRequest;
|
|
1464
|
+
};
|
|
1465
|
+
type V2StartAgentV2PostResult = unknown;
|
|
1466
|
+
/** Start Agent V2 */
|
|
1467
|
+
/** `POST /v2/ai/agents/{agent_id}` · aidream · auth guest · org required */
|
|
1468
|
+
declare function v2StartAgentV2Post(api: Api, args: V2StartAgentV2PostArgs, options?: CallOptions): Promise<V2StartAgentV2PostResult>;
|
|
1469
|
+
type StartMandatedAgentV2Args = {
|
|
1470
|
+
path: {
|
|
1471
|
+
mandate_key: string;
|
|
1472
|
+
};
|
|
1473
|
+
body: AgentStartRequest;
|
|
1474
|
+
};
|
|
1475
|
+
type StartMandatedAgentV2Result = unknown;
|
|
1476
|
+
/** Start Mandated Agent V2 */
|
|
1477
|
+
/** `POST /v2/ai/mandates/{mandate_key}` · aidream · auth guest · org required */
|
|
1478
|
+
declare function startMandatedAgentV2(api: Api, args: StartMandatedAgentV2Args, options?: CallOptions): Promise<StartMandatedAgentV2Result>;
|
|
1479
|
+
type V2ContinueConversationV2Args = {
|
|
1480
|
+
path: {
|
|
1481
|
+
conversation_id: string;
|
|
1482
|
+
};
|
|
1483
|
+
body: ConversationContinueRequest;
|
|
1484
|
+
};
|
|
1485
|
+
type V2ContinueConversationV2Result = unknown;
|
|
1486
|
+
/** Continue Conversation V2 */
|
|
1487
|
+
/** `POST /v2/ai/conversation/{conversation_id}` · aidream · auth guest · org required */
|
|
1488
|
+
declare function v2ContinueConversationV2(api: Api, args: V2ContinueConversationV2Args, options?: CallOptions): Promise<V2ContinueConversationV2Result>;
|
|
1489
|
+
type V2ContinueConversationV2PostArgs = {
|
|
1490
|
+
path: {
|
|
1491
|
+
conversation_id: string;
|
|
1492
|
+
};
|
|
1493
|
+
body: ConversationContinueRequest;
|
|
1494
|
+
};
|
|
1495
|
+
type V2ContinueConversationV2PostResult = unknown;
|
|
1496
|
+
/** Continue Conversation V2 */
|
|
1497
|
+
/** `POST /v2/ai/conversations/{conversation_id}` · aidream · auth guest · org required */
|
|
1498
|
+
declare function v2ContinueConversationV2Post(api: Api, args: V2ContinueConversationV2PostArgs, options?: CallOptions): Promise<V2ContinueConversationV2PostResult>;
|
|
1499
|
+
type StartPromptV2Args = {
|
|
1500
|
+
path: {
|
|
1501
|
+
prompt_id: string;
|
|
1502
|
+
};
|
|
1503
|
+
body: PromptStartRequest;
|
|
1504
|
+
};
|
|
1505
|
+
type StartPromptV2Result = unknown;
|
|
1506
|
+
/** Start Prompt V2 */
|
|
1507
|
+
/** `POST /v2/ai/prompts/{prompt_id}` · aidream · auth guest · org required */
|
|
1508
|
+
declare function startPromptV2(api: Api, args: StartPromptV2Args, options?: CallOptions): Promise<StartPromptV2Result>;
|
|
1509
|
+
type GetConversationAttachmentsArgs = {
|
|
1510
|
+
path: {
|
|
1511
|
+
conversation_id: string;
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
type GetConversationAttachmentsResult = ConversationAttachmentPayload[];
|
|
1515
|
+
/** Get Conversation Attachments */
|
|
1516
|
+
/** `GET /conversations/{conversation_id}/attachments` · aidream · auth guest · org optional */
|
|
1517
|
+
declare function getConversationAttachments(api: Api, args: GetConversationAttachmentsArgs, options?: CallOptions): Promise<GetConversationAttachmentsResult>;
|
|
1518
|
+
type AttachConversationResourceArgs = {
|
|
1519
|
+
path: {
|
|
1520
|
+
conversation_id: string;
|
|
1521
|
+
};
|
|
1522
|
+
body: AttachResourceRequest;
|
|
1523
|
+
};
|
|
1524
|
+
type AttachConversationResourceResult = ConversationAttachmentPayload;
|
|
1525
|
+
/** Attach Conversation Resource */
|
|
1526
|
+
/** `POST /conversations/{conversation_id}/attachments` · aidream · auth guest · org required */
|
|
1527
|
+
declare function attachConversationResource(api: Api, args: AttachConversationResourceArgs, options?: CallOptions): Promise<AttachConversationResourceResult>;
|
|
1528
|
+
type DetachConversationResourceArgs = {
|
|
1529
|
+
path: {
|
|
1530
|
+
conversation_id: string;
|
|
1531
|
+
association_id: string;
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
type DetachConversationResourceResult = ConversationAttachmentPayload;
|
|
1535
|
+
/** Detach Conversation Resource */
|
|
1536
|
+
/** `DELETE /conversations/{conversation_id}/attachments/{association_id}` · aidream · auth guest · org required */
|
|
1537
|
+
declare function detachConversationResource(api: Api, args: DetachConversationResourceArgs, options?: CallOptions): Promise<DetachConversationResourceResult>;
|
|
1538
|
+
type GetGroupChatArgs = {
|
|
1539
|
+
path: {
|
|
1540
|
+
anchor_type: string;
|
|
1541
|
+
anchor_id: string;
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
type GetGroupChatResult = GroupChatOut;
|
|
1545
|
+
/** Get Group Chat */
|
|
1546
|
+
/** `GET /group-chat/{anchor_type}/{anchor_id}` · aidream · auth guest · org required */
|
|
1547
|
+
declare function getGroupChat(api: Api, args: GetGroupChatArgs, options?: CallOptions): Promise<GetGroupChatResult>;
|
|
1548
|
+
type PutParticipantPolicyArgs = {
|
|
1549
|
+
path: {
|
|
1550
|
+
anchor_type: string;
|
|
1551
|
+
anchor_id: string;
|
|
1552
|
+
participant_id: string;
|
|
1553
|
+
};
|
|
1554
|
+
body: PolicyUpdate;
|
|
1555
|
+
};
|
|
1556
|
+
type PutParticipantPolicyResult = ParticipantOut;
|
|
1557
|
+
/** Put Participant Policy */
|
|
1558
|
+
/** `PUT /group-chat/{anchor_type}/{anchor_id}/participants/{participant_id}/policy` · aidream · auth guest · org required */
|
|
1559
|
+
declare function putParticipantPolicy(api: Api, args: PutParticipantPolicyArgs, options?: CallOptions): Promise<PutParticipantPolicyResult>;
|
|
1560
|
+
type GetAttributionRegistryArgs = {
|
|
1561
|
+
[key: string]: never;
|
|
1562
|
+
};
|
|
1563
|
+
type GetAttributionRegistryResult = CxAttributionRegistry;
|
|
1564
|
+
/** Get Attribution Registry */
|
|
1565
|
+
/** `GET /admin/cx-explorer/attribution-registry` · aidream · auth admin · org exempt */
|
|
1566
|
+
declare function getAttributionRegistry(api: Api, args?: GetAttributionRegistryArgs, options?: CallOptions): Promise<GetAttributionRegistryResult>;
|
|
1567
|
+
type GetFacetsArgs = {
|
|
1568
|
+
query?: {
|
|
1569
|
+
q?: string | null;
|
|
1570
|
+
status?: string | null;
|
|
1571
|
+
source_app?: string | null;
|
|
1572
|
+
source_feature?: string | null;
|
|
1573
|
+
origin_class?: string | null;
|
|
1574
|
+
user_id?: string | null;
|
|
1575
|
+
facet_limit?: number;
|
|
1576
|
+
exclude_source_app?: string[] | null;
|
|
1577
|
+
};
|
|
1578
|
+
};
|
|
1579
|
+
type GetFacetsResult = CxExplorerFacets;
|
|
1580
|
+
/** Get Facets */
|
|
1581
|
+
/** `GET /admin/cx-explorer/facets` · aidream · auth admin · org exempt */
|
|
1582
|
+
declare function getFacets(api: Api, args?: GetFacetsArgs, options?: CallOptions): Promise<GetFacetsResult>;
|
|
1583
|
+
type GetUserConversationsArgs = {
|
|
1584
|
+
query?: {
|
|
1585
|
+
limit?: number;
|
|
1586
|
+
offset?: number;
|
|
1587
|
+
};
|
|
1588
|
+
};
|
|
1589
|
+
type GetUserConversationsResult = ListConversationsResponse;
|
|
1590
|
+
/** Get User Conversations */
|
|
1591
|
+
/** `GET /cx/conversations` · aidream · auth guest · org optional */
|
|
1592
|
+
declare function getUserConversations(api: Api, args?: GetUserConversationsArgs, options?: CallOptions): Promise<GetUserConversationsResult>;
|
|
1593
|
+
type GetConversationWithAllRelatedArgs = {
|
|
1594
|
+
path: {
|
|
1595
|
+
conversation_id: string;
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
type GetConversationWithAllRelatedResult = GetConversationResponse;
|
|
1599
|
+
/** Get Conversation With All Related */
|
|
1600
|
+
/** `GET /cx/conversations/{conversation_id}` · aidream · auth guest · org optional */
|
|
1601
|
+
declare function getConversationWithAllRelated(api: Api, args: GetConversationWithAllRelatedArgs, options?: CallOptions): Promise<GetConversationWithAllRelatedResult>;
|
|
1602
|
+
type UpdateConversationSettingsDoorArgs = {
|
|
1603
|
+
path: {
|
|
1604
|
+
conversation_id: string;
|
|
1605
|
+
};
|
|
1606
|
+
body: ConversationSettingsUpdate;
|
|
1607
|
+
};
|
|
1608
|
+
type UpdateConversationSettingsDoorResult = ConversationSettingsResponse;
|
|
1609
|
+
/** Update Conversation Settings Door */
|
|
1610
|
+
/** `PATCH /cx/conversations/{conversation_id}` · aidream · auth guest · org required */
|
|
1611
|
+
declare function updateConversationSettingsDoor(api: Api, args: UpdateConversationSettingsDoorArgs, options?: CallOptions): Promise<UpdateConversationSettingsDoorResult>;
|
|
1612
|
+
type DeleteConversationDoorArgs = {
|
|
1613
|
+
path: {
|
|
1614
|
+
conversation_id: string;
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
type DeleteConversationDoorResult = ConversationDeleteResponse;
|
|
1618
|
+
/** Delete Conversation Door */
|
|
1619
|
+
/** `DELETE /cx/conversations/{conversation_id}` · aidream · auth guest · org required */
|
|
1620
|
+
declare function deleteConversationDoor(api: Api, args: DeleteConversationDoorArgs, options?: CallOptions): Promise<DeleteConversationDoorResult>;
|
|
1621
|
+
type GetConversationRequestsArgs = {
|
|
1622
|
+
path: {
|
|
1623
|
+
conversation_id: string;
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
type GetConversationRequestsResult = ListRequestsResponse;
|
|
1627
|
+
/** Get Conversation Requests */
|
|
1628
|
+
/** `GET /cx/conversations/{conversation_id}/requests` · aidream · auth guest · org optional */
|
|
1629
|
+
declare function getConversationRequests(api: Api, args: GetConversationRequestsArgs, options?: CallOptions): Promise<GetConversationRequestsResult>;
|
|
1630
|
+
type GetContextStateArgs = {
|
|
1631
|
+
path: {
|
|
1632
|
+
conversation_id: string;
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1635
|
+
type GetContextStateResult = ContextStateResponse;
|
|
1636
|
+
/** Get Context State */
|
|
1637
|
+
/** `GET /cx/conversations/{conversation_id}/context-state` · aidream · auth guest · org optional */
|
|
1638
|
+
declare function getContextState(api: Api, args: GetContextStateArgs, options?: CallOptions): Promise<GetContextStateResult>;
|
|
1639
|
+
type InvalidateConversationCacheArgs = {
|
|
1640
|
+
path: {
|
|
1641
|
+
conversation_id: string;
|
|
1642
|
+
};
|
|
1643
|
+
};
|
|
1644
|
+
type InvalidateConversationCacheResult = InvalidateCacheResponse;
|
|
1645
|
+
/** Invalidate Conversation Cache */
|
|
1646
|
+
/** `POST /cx/conversations/{conversation_id}/invalidate-cache` · aidream · auth guest · org required */
|
|
1647
|
+
declare function invalidateConversationCache(api: Api, args: InvalidateConversationCacheArgs, options?: CallOptions): Promise<InvalidateConversationCacheResult>;
|
|
1648
|
+
type UpdateMessageArgs = {
|
|
1649
|
+
path: {
|
|
1650
|
+
conversation_id: string;
|
|
1651
|
+
message_id: string;
|
|
1652
|
+
};
|
|
1653
|
+
body: MessageUpdate;
|
|
1654
|
+
};
|
|
1655
|
+
type UpdateMessageResult = UpdateMessageResponse;
|
|
1656
|
+
/** Update Message */
|
|
1657
|
+
/** `PATCH /cx/conversations/{conversation_id}/messages/{message_id}` · aidream · auth guest · org required */
|
|
1658
|
+
declare function updateMessage(api: Api, args: UpdateMessageArgs, options?: CallOptions): Promise<UpdateMessageResult>;
|
|
1659
|
+
type DeleteMessageArgs = {
|
|
1660
|
+
path: {
|
|
1661
|
+
conversation_id: string;
|
|
1662
|
+
message_id: string;
|
|
1663
|
+
};
|
|
1664
|
+
};
|
|
1665
|
+
type DeleteMessageResult = DeleteMessageResponse;
|
|
1666
|
+
/** Delete Message */
|
|
1667
|
+
/** `DELETE /cx/conversations/{conversation_id}/messages/{message_id}` · aidream · auth guest · org required */
|
|
1668
|
+
declare function deleteMessage(api: Api, args: DeleteMessageArgs, options?: CallOptions): Promise<DeleteMessageResult>;
|
|
1669
|
+
type DeleteAllMessagesArgs = {
|
|
1670
|
+
path: {
|
|
1671
|
+
conversation_id: string;
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1674
|
+
type DeleteAllMessagesResult = DeleteAllMessagesResponse;
|
|
1675
|
+
/** Delete All Messages */
|
|
1676
|
+
/** `DELETE /cx/conversations/{conversation_id}/messages` · aidream · auth guest · org required */
|
|
1677
|
+
declare function deleteAllMessages(api: Api, args: DeleteAllMessagesArgs, options?: CallOptions): Promise<DeleteAllMessagesResult>;
|
|
1678
|
+
type ForkConversationArgs = {
|
|
1679
|
+
path: {
|
|
1680
|
+
conversation_id: string;
|
|
1681
|
+
};
|
|
1682
|
+
body?: ForkRequest | null;
|
|
1683
|
+
};
|
|
1684
|
+
type ForkConversationResult = ForkConversationResponse;
|
|
1685
|
+
/** Fork Conversation */
|
|
1686
|
+
/** `POST /cx/conversations/{conversation_id}/fork` · aidream · auth guest · org required */
|
|
1687
|
+
declare function forkConversation(api: Api, args: ForkConversationArgs, options?: CallOptions): Promise<ForkConversationResult>;
|
|
1688
|
+
type BatchDeleteMessagesArgs = {
|
|
1689
|
+
path: {
|
|
1690
|
+
conversation_id: string;
|
|
1691
|
+
};
|
|
1692
|
+
body: BatchDeleteRequest;
|
|
1693
|
+
};
|
|
1694
|
+
type BatchDeleteMessagesResult = BatchDeleteResponse;
|
|
1695
|
+
/** Batch Delete Messages */
|
|
1696
|
+
/** `POST /cx/conversations/{conversation_id}/messages/delete` · aidream · auth guest · org required */
|
|
1697
|
+
declare function batchDeleteMessages(api: Api, args: BatchDeleteMessagesArgs, options?: CallOptions): Promise<BatchDeleteMessagesResult>;
|
|
1698
|
+
type ReplaceMessagesArgs = {
|
|
1699
|
+
path: {
|
|
1700
|
+
conversation_id: string;
|
|
1701
|
+
};
|
|
1702
|
+
body: ReplaceRequest;
|
|
1703
|
+
};
|
|
1704
|
+
type ReplaceMessagesResult = ReplaceResponse;
|
|
1705
|
+
/** Replace Messages */
|
|
1706
|
+
/** `POST /cx/conversations/{conversation_id}/messages/replace` · aidream · auth guest · org required */
|
|
1707
|
+
declare function replaceMessages(api: Api, args: ReplaceMessagesArgs, options?: CallOptions): Promise<ReplaceMessagesResult>;
|
|
1708
|
+
type HideMessagesFromModelArgs = {
|
|
1709
|
+
path: {
|
|
1710
|
+
conversation_id: string;
|
|
1711
|
+
};
|
|
1712
|
+
body: HideRequest;
|
|
1713
|
+
};
|
|
1714
|
+
type HideMessagesFromModelResult = HideResponse;
|
|
1715
|
+
/** Hide Messages From Model */
|
|
1716
|
+
/** `POST /cx/conversations/{conversation_id}/messages/hide` · aidream · auth guest · org required */
|
|
1717
|
+
declare function hideMessagesFromModel(api: Api, args: HideMessagesFromModelArgs, options?: CallOptions): Promise<HideMessagesFromModelResult>;
|
|
1718
|
+
type RestoreCompactionArgs = {
|
|
1719
|
+
path: {
|
|
1720
|
+
conversation_id: string;
|
|
1721
|
+
};
|
|
1722
|
+
body: RestoreRequest;
|
|
1723
|
+
};
|
|
1724
|
+
type RestoreCompactionResult = aidream__services__conversation_context__compaction__RestoreResponse;
|
|
1725
|
+
/** Restore Compaction */
|
|
1726
|
+
/** `POST /cx/conversations/{conversation_id}/messages/restore` · aidream · auth guest · org required */
|
|
1727
|
+
declare function restoreCompaction(api: Api, args: RestoreCompactionArgs, options?: CallOptions): Promise<RestoreCompactionResult>;
|
|
1728
|
+
type CompactTurnsArgs = {
|
|
1729
|
+
path: {
|
|
1730
|
+
conversation_id: string;
|
|
1731
|
+
};
|
|
1732
|
+
body: CompactTurnsRequest;
|
|
1733
|
+
};
|
|
1734
|
+
type CompactTurnsResult = CompactTurnsResponse;
|
|
1735
|
+
/** Compact Turns */
|
|
1736
|
+
/** `POST /cx/conversations/{conversation_id}/turns/compact` · aidream · auth guest · org required */
|
|
1737
|
+
declare function compactTurns(api: Api, args: CompactTurnsArgs, options?: CallOptions): Promise<CompactTurnsResult>;
|
|
1738
|
+
type ListToolSchemasArgs = {
|
|
1739
|
+
[key: string]: never;
|
|
1740
|
+
};
|
|
1741
|
+
type ListToolSchemasResult = {
|
|
1742
|
+
[key: string]: unknown;
|
|
1743
|
+
};
|
|
1744
|
+
/** List Tool Schemas */
|
|
1745
|
+
/** `GET /chat/tools` · matrx-local · auth public · org exempt */
|
|
1746
|
+
declare function listToolSchemas(api: Api, args?: ListToolSchemasArgs, options?: CallOptions): Promise<ListToolSchemasResult>;
|
|
1747
|
+
type ListToolSchemasByCategoryArgs = {
|
|
1748
|
+
[key: string]: never;
|
|
1749
|
+
};
|
|
1750
|
+
type ListToolSchemasByCategoryResult = {
|
|
1751
|
+
[key: string]: unknown;
|
|
1752
|
+
};
|
|
1753
|
+
/** List Tool Schemas By Category */
|
|
1754
|
+
/** `GET /chat/tools/by-category` · matrx-local · auth public · org exempt */
|
|
1755
|
+
declare function listToolSchemasByCategory(api: Api, args?: ListToolSchemasByCategoryArgs, options?: CallOptions): Promise<ListToolSchemasByCategoryResult>;
|
|
1756
|
+
type ListAnthropicToolSchemasArgs = {
|
|
1757
|
+
[key: string]: never;
|
|
1758
|
+
};
|
|
1759
|
+
type ListAnthropicToolSchemasResult = {
|
|
1760
|
+
[key: string]: unknown;
|
|
1761
|
+
};
|
|
1762
|
+
/** List Anthropic Tool Schemas */
|
|
1763
|
+
/** `GET /chat/tools/anthropic` · matrx-local · auth public · org exempt */
|
|
1764
|
+
declare function listAnthropicToolSchemas(api: Api, args?: ListAnthropicToolSchemasArgs, options?: CallOptions): Promise<ListAnthropicToolSchemasResult>;
|
|
1765
|
+
type ListLocalToolsArgs = {
|
|
1766
|
+
[key: string]: never;
|
|
1767
|
+
};
|
|
1768
|
+
type ListLocalToolsResult = {
|
|
1769
|
+
[key: string]: unknown;
|
|
1770
|
+
};
|
|
1771
|
+
/** List Local Tools */
|
|
1772
|
+
/** `GET /chat/local-tools` · matrx-local · auth loopback_token · org exempt */
|
|
1773
|
+
declare function listLocalTools(api: Api, args?: ListLocalToolsArgs, options?: CallOptions): Promise<ListLocalToolsResult>;
|
|
1774
|
+
type SetLocalToolExposureArgs = {
|
|
1775
|
+
body: ToolExposureRequest;
|
|
1776
|
+
};
|
|
1777
|
+
type SetLocalToolExposureResult = {
|
|
1778
|
+
[key: string]: unknown;
|
|
1779
|
+
};
|
|
1780
|
+
/** Set Local Tool Exposure */
|
|
1781
|
+
/** `PUT /chat/local-tools/exposure` · matrx-local · auth loopback_token · org exempt */
|
|
1782
|
+
declare function setLocalToolExposure(api: Api, args: SetLocalToolExposureArgs, options?: CallOptions): Promise<SetLocalToolExposureResult>;
|
|
1783
|
+
type DelegationStatusArgs = {
|
|
1784
|
+
[key: string]: never;
|
|
1785
|
+
};
|
|
1786
|
+
type DelegationStatusResult = {
|
|
1787
|
+
[key: string]: unknown;
|
|
1788
|
+
};
|
|
1789
|
+
/** Delegation Status */
|
|
1790
|
+
/** `GET /chat/delegation/status` · matrx-local · auth loopback_open · org exempt */
|
|
1791
|
+
declare function delegationStatus(api: Api, args?: DelegationStatusArgs, options?: CallOptions): Promise<DelegationStatusResult>;
|
|
1792
|
+
type DelegationUiClaimArgs = {
|
|
1793
|
+
body: UiClaimRequest;
|
|
1794
|
+
};
|
|
1795
|
+
type DelegationUiClaimResult = {
|
|
1796
|
+
[key: string]: unknown;
|
|
1797
|
+
};
|
|
1798
|
+
/** Delegation Ui Claim */
|
|
1799
|
+
/** `POST /chat/delegation/ui-claim` · matrx-local · auth loopback_token · org exempt */
|
|
1800
|
+
declare function delegationUiClaim(api: Api, args: DelegationUiClaimArgs, options?: CallOptions): Promise<DelegationUiClaimResult>;
|
|
1801
|
+
type DelegationUiReleaseArgs = {
|
|
1802
|
+
body: UiClaimRequest;
|
|
1803
|
+
};
|
|
1804
|
+
type DelegationUiReleaseResult = {
|
|
1805
|
+
[key: string]: unknown;
|
|
1806
|
+
};
|
|
1807
|
+
/** Delegation Ui Release */
|
|
1808
|
+
/** `POST /chat/delegation/ui-release` · matrx-local · auth loopback_token · org exempt */
|
|
1809
|
+
declare function delegationUiRelease(api: Api, args: DelegationUiReleaseArgs, options?: CallOptions): Promise<DelegationUiReleaseResult>;
|
|
1810
|
+
type DelegationPendingReviewsArgs = {
|
|
1811
|
+
[key: string]: never;
|
|
1812
|
+
};
|
|
1813
|
+
type DelegationPendingReviewsResult = {
|
|
1814
|
+
[key: string]: unknown;
|
|
1815
|
+
};
|
|
1816
|
+
/** Delegation Pending Reviews */
|
|
1817
|
+
/** `GET /chat/delegation/reviews` · matrx-local · auth loopback_token · org exempt */
|
|
1818
|
+
declare function delegationPendingReviews(api: Api, args?: DelegationPendingReviewsArgs, options?: CallOptions): Promise<DelegationPendingReviewsResult>;
|
|
1819
|
+
type DelegationReviewDecisionArgs = {
|
|
1820
|
+
body: ReviewDecisionRequest;
|
|
1821
|
+
};
|
|
1822
|
+
type DelegationReviewDecisionResult = {
|
|
1823
|
+
[key: string]: unknown;
|
|
1824
|
+
};
|
|
1825
|
+
/** Delegation Review Decision */
|
|
1826
|
+
/** `POST /chat/delegation/review-decision` · matrx-local · auth loopback_token · org exempt */
|
|
1827
|
+
declare function delegationReviewDecision(api: Api, args: DelegationReviewDecisionArgs, options?: CallOptions): Promise<DelegationReviewDecisionResult>;
|
|
1828
|
+
type DelegationConversationStateArgs = {
|
|
1829
|
+
path: {
|
|
1830
|
+
conversation_id: string;
|
|
1831
|
+
};
|
|
1832
|
+
};
|
|
1833
|
+
type DelegationConversationStateResult = {
|
|
1834
|
+
[key: string]: unknown;
|
|
1835
|
+
};
|
|
1836
|
+
/** Delegation Conversation State */
|
|
1837
|
+
/** `GET /chat/delegation/conversation/{conversation_id}` · matrx-local · auth loopback_token · org exempt */
|
|
1838
|
+
declare function delegationConversationState(api: Api, args: DelegationConversationStateArgs, options?: CallOptions): Promise<DelegationConversationStateResult>;
|
|
1839
|
+
type ListModelsArgs = {
|
|
1840
|
+
[key: string]: never;
|
|
1841
|
+
};
|
|
1842
|
+
type ListModelsResult = {
|
|
1843
|
+
[key: string]: unknown;
|
|
1844
|
+
};
|
|
1845
|
+
/** List Models */
|
|
1846
|
+
/** `GET /chat/models` · matrx-local · auth public · org exempt */
|
|
1847
|
+
declare function listModels(api: Api, args?: ListModelsArgs, options?: CallOptions): Promise<ListModelsResult>;
|
|
1848
|
+
type ChatSyncStatusArgs = {
|
|
1849
|
+
[key: string]: never;
|
|
1850
|
+
};
|
|
1851
|
+
type ChatSyncStatusResult = {
|
|
1852
|
+
[key: string]: unknown;
|
|
1853
|
+
};
|
|
1854
|
+
/** Chat Sync Status */
|
|
1855
|
+
/** `GET /chat/sync/status` · matrx-local · auth public · org exempt */
|
|
1856
|
+
declare function chatSyncStatus(api: Api, args?: ChatSyncStatusArgs, options?: CallOptions): Promise<ChatSyncStatusResult>;
|
|
1857
|
+
type TriggerChatSyncArgs = {
|
|
1858
|
+
[key: string]: never;
|
|
1859
|
+
};
|
|
1860
|
+
type TriggerChatSyncResult = {
|
|
1861
|
+
[key: string]: unknown;
|
|
1862
|
+
};
|
|
1863
|
+
/** Trigger Chat Sync */
|
|
1864
|
+
/** `POST /chat/sync/trigger` · matrx-local · auth loopback_open · org exempt */
|
|
1865
|
+
declare function triggerChatSync(api: Api, args?: TriggerChatSyncArgs, options?: CallOptions): Promise<TriggerChatSyncResult>;
|
|
1866
|
+
type ChatMirrorStatusArgs = {
|
|
1867
|
+
[key: string]: never;
|
|
1868
|
+
};
|
|
1869
|
+
type ChatMirrorStatusResult = {
|
|
1870
|
+
[key: string]: unknown;
|
|
1871
|
+
};
|
|
1872
|
+
/** Chat Mirror Status */
|
|
1873
|
+
/** `GET /chat/mirror/status` · matrx-local · auth loopback_token · org exempt */
|
|
1874
|
+
declare function chatMirrorStatus(api: Api, args?: ChatMirrorStatusArgs, options?: CallOptions): Promise<ChatMirrorStatusResult>;
|
|
1875
|
+
type TriggerChatMirrorSyncArgs = {
|
|
1876
|
+
[key: string]: never;
|
|
1877
|
+
};
|
|
1878
|
+
type TriggerChatMirrorSyncResult = {
|
|
1879
|
+
[key: string]: unknown;
|
|
1880
|
+
};
|
|
1881
|
+
/** Trigger Chat Mirror Sync */
|
|
1882
|
+
/** `POST /chat/mirror/sync` · matrx-local · auth loopback_token · org exempt */
|
|
1883
|
+
declare function triggerChatMirrorSync(api: Api, args?: TriggerChatMirrorSyncArgs, options?: CallOptions): Promise<TriggerChatMirrorSyncResult>;
|
|
1884
|
+
type AiProviderStatusArgs = {
|
|
1885
|
+
[key: string]: never;
|
|
1886
|
+
};
|
|
1887
|
+
type AiProviderStatusResult = {
|
|
1888
|
+
[key: string]: unknown;
|
|
1889
|
+
};
|
|
1890
|
+
/** Ai Provider Status */
|
|
1891
|
+
/** `GET /chat/ai-status` · matrx-local · auth public · org exempt */
|
|
1892
|
+
declare function aiProviderStatus(api: Api, args?: AiProviderStatusArgs, options?: CallOptions): Promise<AiProviderStatusResult>;
|
|
1893
|
+
type ProviderReadinessArgs = {
|
|
1894
|
+
path: {
|
|
1895
|
+
provider: string;
|
|
1896
|
+
};
|
|
1897
|
+
};
|
|
1898
|
+
type ProviderReadinessResult = ProviderReadiness;
|
|
1899
|
+
/** Provider Readiness */
|
|
1900
|
+
/** `GET /chat/provider-readiness/{provider}` · matrx-local · auth loopback_token · org exempt */
|
|
1901
|
+
declare function providerReadiness(api: Api, args: ProviderReadinessArgs, options?: CallOptions): Promise<ProviderReadinessResult>;
|
|
1902
|
+
type LocalLlmConnectArgs = {
|
|
1903
|
+
body: LocalLlmConnectRequest;
|
|
1904
|
+
};
|
|
1905
|
+
type LocalLlmConnectResult = {
|
|
1906
|
+
[key: string]: unknown;
|
|
1907
|
+
};
|
|
1908
|
+
/** Local Llm Connect */
|
|
1909
|
+
/** `POST /chat/local-llm/connect` · matrx-local · auth loopback_open · org exempt */
|
|
1910
|
+
declare function localLlmConnect(api: Api, args: LocalLlmConnectArgs, options?: CallOptions): Promise<LocalLlmConnectResult>;
|
|
1911
|
+
type LocalLlmDisconnectArgs = {
|
|
1912
|
+
[key: string]: never;
|
|
1913
|
+
};
|
|
1914
|
+
type LocalLlmDisconnectResult = {
|
|
1915
|
+
[key: string]: unknown;
|
|
1916
|
+
};
|
|
1917
|
+
/** Local Llm Disconnect */
|
|
1918
|
+
/** `POST /chat/local-llm/disconnect` · matrx-local · auth loopback_open · org exempt */
|
|
1919
|
+
declare function localLlmDisconnect(api: Api, args?: LocalLlmDisconnectArgs, options?: CallOptions): Promise<LocalLlmDisconnectResult>;
|
|
1920
|
+
type LocalLlmStatusArgs = {
|
|
1921
|
+
[key: string]: never;
|
|
1922
|
+
};
|
|
1923
|
+
type LocalLlmStatusResult = {
|
|
1924
|
+
[key: string]: unknown;
|
|
1925
|
+
};
|
|
1926
|
+
/** Local Llm Status */
|
|
1927
|
+
/** `GET /chat/local-llm/status` · matrx-local · auth loopback_open · org exempt */
|
|
1928
|
+
declare function localLlmStatus(api: Api, args?: LocalLlmStatusArgs, options?: CallOptions): Promise<LocalLlmStatusResult>;
|
|
1929
|
+
/** Every JSON operation of this domain by `METHOD path` — for path-keyed calls. */
|
|
1930
|
+
interface Operations {
|
|
1931
|
+
"POST /ai/conversation/{conversation_id}/warm": {
|
|
1932
|
+
args: ConversationsWarmConversationArgs;
|
|
1933
|
+
result: ConversationsWarmConversationResult;
|
|
1934
|
+
};
|
|
1935
|
+
"POST /ai/conversations/{conversation_id}/warm": {
|
|
1936
|
+
args: ConversationsWarmConversationPostArgs;
|
|
1937
|
+
result: ConversationsWarmConversationPostResult;
|
|
1938
|
+
};
|
|
1939
|
+
"POST /ai/conversation/{conversation_id}/tool_results": {
|
|
1940
|
+
args: ConversationsSubmitToolResultsArgs;
|
|
1941
|
+
result: ConversationsSubmitToolResultsResult;
|
|
1942
|
+
};
|
|
1943
|
+
"POST /ai/conversations/{conversation_id}/tool_results": {
|
|
1944
|
+
args: ConversationsSubmitToolResultsPostArgs;
|
|
1945
|
+
result: ConversationsSubmitToolResultsPostResult;
|
|
1946
|
+
};
|
|
1947
|
+
"GET /ai/conversation/{conversation_id}/pending_calls": {
|
|
1948
|
+
args: ConversationsListConversationPendingCallsArgs;
|
|
1949
|
+
result: ConversationsListConversationPendingCallsResult;
|
|
1950
|
+
};
|
|
1951
|
+
"GET /ai/conversations/{conversation_id}/pending_calls": {
|
|
1952
|
+
args: ConversationsListConversationPendingCallsGetArgs;
|
|
1953
|
+
result: ConversationsListConversationPendingCallsGetResult;
|
|
1954
|
+
};
|
|
1955
|
+
"GET /ai/user/pending_calls": {
|
|
1956
|
+
args: ListUserPendingCallsArgs;
|
|
1957
|
+
result: ListUserPendingCallsResult;
|
|
1958
|
+
};
|
|
1959
|
+
"GET /ai/conversation/{conversation_id}/inbox": {
|
|
1960
|
+
args: ConversationsListInboxItemsArgs;
|
|
1961
|
+
result: ConversationsListInboxItemsResult;
|
|
1962
|
+
};
|
|
1963
|
+
"POST /ai/conversation/{conversation_id}/inbox": {
|
|
1964
|
+
args: ConversationsEnqueueInboxItemArgs;
|
|
1965
|
+
result: ConversationsEnqueueInboxItemResult;
|
|
1966
|
+
};
|
|
1967
|
+
"GET /ai/conversations/{conversation_id}/inbox": {
|
|
1968
|
+
args: ConversationsListInboxItemsGetArgs;
|
|
1969
|
+
result: ConversationsListInboxItemsGetResult;
|
|
1970
|
+
};
|
|
1971
|
+
"POST /ai/conversations/{conversation_id}/inbox": {
|
|
1972
|
+
args: ConversationsEnqueueInboxItemPostArgs;
|
|
1973
|
+
result: ConversationsEnqueueInboxItemPostResult;
|
|
1974
|
+
};
|
|
1975
|
+
"PATCH /ai/conversation/{conversation_id}/inbox/{injection_id}": {
|
|
1976
|
+
args: ConversationsEditInboxItemArgs;
|
|
1977
|
+
result: ConversationsEditInboxItemResult;
|
|
1978
|
+
};
|
|
1979
|
+
"DELETE /ai/conversation/{conversation_id}/inbox/{injection_id}": {
|
|
1980
|
+
args: ConversationsCancelInboxItemArgs;
|
|
1981
|
+
result: ConversationsCancelInboxItemResult;
|
|
1982
|
+
};
|
|
1983
|
+
"PATCH /ai/conversations/{conversation_id}/inbox/{injection_id}": {
|
|
1984
|
+
args: ConversationsEditInboxItemPatchArgs;
|
|
1985
|
+
result: ConversationsEditInboxItemPatchResult;
|
|
1986
|
+
};
|
|
1987
|
+
"DELETE /ai/conversations/{conversation_id}/inbox/{injection_id}": {
|
|
1988
|
+
args: ConversationsCancelInboxItemDeleteArgs;
|
|
1989
|
+
result: ConversationsCancelInboxItemDeleteResult;
|
|
1990
|
+
};
|
|
1991
|
+
"GET /ai/conversation/{conversation_id}/sandbox": {
|
|
1992
|
+
args: ConversationsGetConversationSandboxArgs;
|
|
1993
|
+
result: ConversationsGetConversationSandboxResult;
|
|
1994
|
+
};
|
|
1995
|
+
"PUT /ai/conversation/{conversation_id}/sandbox": {
|
|
1996
|
+
args: ConversationsBindConversationSandboxArgs;
|
|
1997
|
+
result: ConversationsBindConversationSandboxResult;
|
|
1998
|
+
};
|
|
1999
|
+
"DELETE /ai/conversation/{conversation_id}/sandbox": {
|
|
2000
|
+
args: ConversationsUnbindConversationSandboxArgs;
|
|
2001
|
+
result: ConversationsUnbindConversationSandboxResult;
|
|
2002
|
+
};
|
|
2003
|
+
"GET /ai/conversations/{conversation_id}/sandbox": {
|
|
2004
|
+
args: ConversationsGetConversationSandboxGetArgs;
|
|
2005
|
+
result: ConversationsGetConversationSandboxGetResult;
|
|
2006
|
+
};
|
|
2007
|
+
"PUT /ai/conversations/{conversation_id}/sandbox": {
|
|
2008
|
+
args: ConversationsBindConversationSandboxPutArgs;
|
|
2009
|
+
result: ConversationsBindConversationSandboxPutResult;
|
|
2010
|
+
};
|
|
2011
|
+
"DELETE /ai/conversations/{conversation_id}/sandbox": {
|
|
2012
|
+
args: ConversationsUnbindConversationSandboxDeleteArgs;
|
|
2013
|
+
result: ConversationsUnbindConversationSandboxDeleteResult;
|
|
2014
|
+
};
|
|
2015
|
+
"GET /ai/conversation/{conversation_id}/memory_cost": {
|
|
2016
|
+
args: ConversationsGetConversationMemoryCostArgs;
|
|
2017
|
+
result: ConversationsGetConversationMemoryCostResult;
|
|
2018
|
+
};
|
|
2019
|
+
"GET /ai/conversations/{conversation_id}/memory_cost": {
|
|
2020
|
+
args: ConversationsGetConversationMemoryCostGetArgs;
|
|
2021
|
+
result: ConversationsGetConversationMemoryCostGetResult;
|
|
2022
|
+
};
|
|
2023
|
+
"POST /ai/cancel/{request_id}": {
|
|
2024
|
+
args: CancelRequestArgs;
|
|
2025
|
+
result: CancelRequestResult;
|
|
2026
|
+
};
|
|
2027
|
+
"POST /ai/retry-now/{request_id}": {
|
|
2028
|
+
args: RetryNowRequestArgs;
|
|
2029
|
+
result: RetryNowRequestResult;
|
|
2030
|
+
};
|
|
2031
|
+
"POST /ai/warm": {
|
|
2032
|
+
args: WarmArgs;
|
|
2033
|
+
result: WarmResult;
|
|
2034
|
+
};
|
|
2035
|
+
"GET /ai/warm/health": {
|
|
2036
|
+
args: WarmHealthRouteArgs;
|
|
2037
|
+
result: WarmHealthRouteResult;
|
|
2038
|
+
};
|
|
2039
|
+
"POST /v2/ai/manual": {
|
|
2040
|
+
args: V2ChatV2Args;
|
|
2041
|
+
result: V2ChatV2Result;
|
|
2042
|
+
};
|
|
2043
|
+
"POST /v2/ai/chat": {
|
|
2044
|
+
args: V2ChatV2PostArgs;
|
|
2045
|
+
result: V2ChatV2PostResult;
|
|
2046
|
+
};
|
|
2047
|
+
"POST /v2/ai/agent/{agent_id}": {
|
|
2048
|
+
args: V2StartAgentV2Args;
|
|
2049
|
+
result: V2StartAgentV2Result;
|
|
2050
|
+
};
|
|
2051
|
+
"POST /v2/ai/agents/{agent_id}": {
|
|
2052
|
+
args: V2StartAgentV2PostArgs;
|
|
2053
|
+
result: V2StartAgentV2PostResult;
|
|
2054
|
+
};
|
|
2055
|
+
"POST /v2/ai/mandates/{mandate_key}": {
|
|
2056
|
+
args: StartMandatedAgentV2Args;
|
|
2057
|
+
result: StartMandatedAgentV2Result;
|
|
2058
|
+
};
|
|
2059
|
+
"POST /v2/ai/conversation/{conversation_id}": {
|
|
2060
|
+
args: V2ContinueConversationV2Args;
|
|
2061
|
+
result: V2ContinueConversationV2Result;
|
|
2062
|
+
};
|
|
2063
|
+
"POST /v2/ai/conversations/{conversation_id}": {
|
|
2064
|
+
args: V2ContinueConversationV2PostArgs;
|
|
2065
|
+
result: V2ContinueConversationV2PostResult;
|
|
2066
|
+
};
|
|
2067
|
+
"POST /v2/ai/prompts/{prompt_id}": {
|
|
2068
|
+
args: StartPromptV2Args;
|
|
2069
|
+
result: StartPromptV2Result;
|
|
2070
|
+
};
|
|
2071
|
+
"GET /conversations/{conversation_id}/attachments": {
|
|
2072
|
+
args: GetConversationAttachmentsArgs;
|
|
2073
|
+
result: GetConversationAttachmentsResult;
|
|
2074
|
+
};
|
|
2075
|
+
"POST /conversations/{conversation_id}/attachments": {
|
|
2076
|
+
args: AttachConversationResourceArgs;
|
|
2077
|
+
result: AttachConversationResourceResult;
|
|
2078
|
+
};
|
|
2079
|
+
"DELETE /conversations/{conversation_id}/attachments/{association_id}": {
|
|
2080
|
+
args: DetachConversationResourceArgs;
|
|
2081
|
+
result: DetachConversationResourceResult;
|
|
2082
|
+
};
|
|
2083
|
+
"GET /group-chat/{anchor_type}/{anchor_id}": {
|
|
2084
|
+
args: GetGroupChatArgs;
|
|
2085
|
+
result: GetGroupChatResult;
|
|
2086
|
+
};
|
|
2087
|
+
"PUT /group-chat/{anchor_type}/{anchor_id}/participants/{participant_id}/policy": {
|
|
2088
|
+
args: PutParticipantPolicyArgs;
|
|
2089
|
+
result: PutParticipantPolicyResult;
|
|
2090
|
+
};
|
|
2091
|
+
"GET /admin/cx-explorer/attribution-registry": {
|
|
2092
|
+
args: GetAttributionRegistryArgs;
|
|
2093
|
+
result: GetAttributionRegistryResult;
|
|
2094
|
+
};
|
|
2095
|
+
"GET /admin/cx-explorer/facets": {
|
|
2096
|
+
args: GetFacetsArgs;
|
|
2097
|
+
result: GetFacetsResult;
|
|
2098
|
+
};
|
|
2099
|
+
"GET /cx/conversations": {
|
|
2100
|
+
args: GetUserConversationsArgs;
|
|
2101
|
+
result: GetUserConversationsResult;
|
|
2102
|
+
};
|
|
2103
|
+
"GET /cx/conversations/{conversation_id}": {
|
|
2104
|
+
args: GetConversationWithAllRelatedArgs;
|
|
2105
|
+
result: GetConversationWithAllRelatedResult;
|
|
2106
|
+
};
|
|
2107
|
+
"PATCH /cx/conversations/{conversation_id}": {
|
|
2108
|
+
args: UpdateConversationSettingsDoorArgs;
|
|
2109
|
+
result: UpdateConversationSettingsDoorResult;
|
|
2110
|
+
};
|
|
2111
|
+
"DELETE /cx/conversations/{conversation_id}": {
|
|
2112
|
+
args: DeleteConversationDoorArgs;
|
|
2113
|
+
result: DeleteConversationDoorResult;
|
|
2114
|
+
};
|
|
2115
|
+
"GET /cx/conversations/{conversation_id}/requests": {
|
|
2116
|
+
args: GetConversationRequestsArgs;
|
|
2117
|
+
result: GetConversationRequestsResult;
|
|
2118
|
+
};
|
|
2119
|
+
"GET /cx/conversations/{conversation_id}/context-state": {
|
|
2120
|
+
args: GetContextStateArgs;
|
|
2121
|
+
result: GetContextStateResult;
|
|
2122
|
+
};
|
|
2123
|
+
"POST /cx/conversations/{conversation_id}/invalidate-cache": {
|
|
2124
|
+
args: InvalidateConversationCacheArgs;
|
|
2125
|
+
result: InvalidateConversationCacheResult;
|
|
2126
|
+
};
|
|
2127
|
+
"PATCH /cx/conversations/{conversation_id}/messages/{message_id}": {
|
|
2128
|
+
args: UpdateMessageArgs;
|
|
2129
|
+
result: UpdateMessageResult;
|
|
2130
|
+
};
|
|
2131
|
+
"DELETE /cx/conversations/{conversation_id}/messages/{message_id}": {
|
|
2132
|
+
args: DeleteMessageArgs;
|
|
2133
|
+
result: DeleteMessageResult;
|
|
2134
|
+
};
|
|
2135
|
+
"DELETE /cx/conversations/{conversation_id}/messages": {
|
|
2136
|
+
args: DeleteAllMessagesArgs;
|
|
2137
|
+
result: DeleteAllMessagesResult;
|
|
2138
|
+
};
|
|
2139
|
+
"POST /cx/conversations/{conversation_id}/fork": {
|
|
2140
|
+
args: ForkConversationArgs;
|
|
2141
|
+
result: ForkConversationResult;
|
|
2142
|
+
};
|
|
2143
|
+
"POST /cx/conversations/{conversation_id}/messages/delete": {
|
|
2144
|
+
args: BatchDeleteMessagesArgs;
|
|
2145
|
+
result: BatchDeleteMessagesResult;
|
|
2146
|
+
};
|
|
2147
|
+
"POST /cx/conversations/{conversation_id}/messages/replace": {
|
|
2148
|
+
args: ReplaceMessagesArgs;
|
|
2149
|
+
result: ReplaceMessagesResult;
|
|
2150
|
+
};
|
|
2151
|
+
"POST /cx/conversations/{conversation_id}/messages/hide": {
|
|
2152
|
+
args: HideMessagesFromModelArgs;
|
|
2153
|
+
result: HideMessagesFromModelResult;
|
|
2154
|
+
};
|
|
2155
|
+
"POST /cx/conversations/{conversation_id}/messages/restore": {
|
|
2156
|
+
args: RestoreCompactionArgs;
|
|
2157
|
+
result: RestoreCompactionResult;
|
|
2158
|
+
};
|
|
2159
|
+
"POST /cx/conversations/{conversation_id}/turns/compact": {
|
|
2160
|
+
args: CompactTurnsArgs;
|
|
2161
|
+
result: CompactTurnsResult;
|
|
2162
|
+
};
|
|
2163
|
+
"GET /chat/tools": {
|
|
2164
|
+
args: ListToolSchemasArgs;
|
|
2165
|
+
result: ListToolSchemasResult;
|
|
2166
|
+
};
|
|
2167
|
+
"GET /chat/tools/by-category": {
|
|
2168
|
+
args: ListToolSchemasByCategoryArgs;
|
|
2169
|
+
result: ListToolSchemasByCategoryResult;
|
|
2170
|
+
};
|
|
2171
|
+
"GET /chat/tools/anthropic": {
|
|
2172
|
+
args: ListAnthropicToolSchemasArgs;
|
|
2173
|
+
result: ListAnthropicToolSchemasResult;
|
|
2174
|
+
};
|
|
2175
|
+
"GET /chat/local-tools": {
|
|
2176
|
+
args: ListLocalToolsArgs;
|
|
2177
|
+
result: ListLocalToolsResult;
|
|
2178
|
+
};
|
|
2179
|
+
"PUT /chat/local-tools/exposure": {
|
|
2180
|
+
args: SetLocalToolExposureArgs;
|
|
2181
|
+
result: SetLocalToolExposureResult;
|
|
2182
|
+
};
|
|
2183
|
+
"GET /chat/delegation/status": {
|
|
2184
|
+
args: DelegationStatusArgs;
|
|
2185
|
+
result: DelegationStatusResult;
|
|
2186
|
+
};
|
|
2187
|
+
"POST /chat/delegation/ui-claim": {
|
|
2188
|
+
args: DelegationUiClaimArgs;
|
|
2189
|
+
result: DelegationUiClaimResult;
|
|
2190
|
+
};
|
|
2191
|
+
"POST /chat/delegation/ui-release": {
|
|
2192
|
+
args: DelegationUiReleaseArgs;
|
|
2193
|
+
result: DelegationUiReleaseResult;
|
|
2194
|
+
};
|
|
2195
|
+
"GET /chat/delegation/reviews": {
|
|
2196
|
+
args: DelegationPendingReviewsArgs;
|
|
2197
|
+
result: DelegationPendingReviewsResult;
|
|
2198
|
+
};
|
|
2199
|
+
"POST /chat/delegation/review-decision": {
|
|
2200
|
+
args: DelegationReviewDecisionArgs;
|
|
2201
|
+
result: DelegationReviewDecisionResult;
|
|
2202
|
+
};
|
|
2203
|
+
"GET /chat/delegation/conversation/{conversation_id}": {
|
|
2204
|
+
args: DelegationConversationStateArgs;
|
|
2205
|
+
result: DelegationConversationStateResult;
|
|
2206
|
+
};
|
|
2207
|
+
"GET /chat/models": {
|
|
2208
|
+
args: ListModelsArgs;
|
|
2209
|
+
result: ListModelsResult;
|
|
2210
|
+
};
|
|
2211
|
+
"GET /chat/sync/status": {
|
|
2212
|
+
args: ChatSyncStatusArgs;
|
|
2213
|
+
result: ChatSyncStatusResult;
|
|
2214
|
+
};
|
|
2215
|
+
"POST /chat/sync/trigger": {
|
|
2216
|
+
args: TriggerChatSyncArgs;
|
|
2217
|
+
result: TriggerChatSyncResult;
|
|
2218
|
+
};
|
|
2219
|
+
"GET /chat/mirror/status": {
|
|
2220
|
+
args: ChatMirrorStatusArgs;
|
|
2221
|
+
result: ChatMirrorStatusResult;
|
|
2222
|
+
};
|
|
2223
|
+
"POST /chat/mirror/sync": {
|
|
2224
|
+
args: TriggerChatMirrorSyncArgs;
|
|
2225
|
+
result: TriggerChatMirrorSyncResult;
|
|
2226
|
+
};
|
|
2227
|
+
"GET /chat/ai-status": {
|
|
2228
|
+
args: AiProviderStatusArgs;
|
|
2229
|
+
result: AiProviderStatusResult;
|
|
2230
|
+
};
|
|
2231
|
+
"GET /chat/provider-readiness/{provider}": {
|
|
2232
|
+
args: ProviderReadinessArgs;
|
|
2233
|
+
result: ProviderReadinessResult;
|
|
2234
|
+
};
|
|
2235
|
+
"POST /chat/local-llm/connect": {
|
|
2236
|
+
args: LocalLlmConnectArgs;
|
|
2237
|
+
result: LocalLlmConnectResult;
|
|
2238
|
+
};
|
|
2239
|
+
"POST /chat/local-llm/disconnect": {
|
|
2240
|
+
args: LocalLlmDisconnectArgs;
|
|
2241
|
+
result: LocalLlmDisconnectResult;
|
|
2242
|
+
};
|
|
2243
|
+
"GET /chat/local-llm/status": {
|
|
2244
|
+
args: LocalLlmStatusArgs;
|
|
2245
|
+
result: LocalLlmStatusResult;
|
|
2246
|
+
};
|
|
2247
|
+
}
|
|
2248
|
+
/** Path-keyed call, scoped to this domain only (never a global path map). */
|
|
2249
|
+
declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
|
|
2250
|
+
|
|
2251
|
+
export { type AiProviderStatusArgs, type AiProviderStatusResult, type AttachConversationResourceArgs, type AttachConversationResourceResult, type AttachResourceRequest, type BatchDeleteMessagesArgs, type BatchDeleteMessagesResult, type BatchDeleteRequest, type BatchDeleteResponse, type CacheL2State, type CadenceEveryRounds, type CancelRequestArgs, type CancelRequestResult, type CancelResponse, type ChatArgs, type ChatMirrorStatusArgs, type ChatMirrorStatusResult, type ChatPostArgs, type ChatPostResult, type ChatRequest, type ChatResult, type ChatSyncStatusArgs, type ChatSyncStatusResult, type ClientToolResult, type CompactTurnsArgs, type CompactTurnsRequest, type CompactTurnsResponse, type CompactTurnsResult, type ContextStateResponse, type ConversationAttachmentPayload, type ConversationContinueRequest, type ConversationDeleteResponse, type ConversationRecord, type ConversationSettingsResponse, type ConversationSettingsUpdate, type ConversationWarmResponse, type ConversationsBindConversationSandboxArgs, type ConversationsBindConversationSandboxPutArgs, type ConversationsBindConversationSandboxPutResult, type ConversationsBindConversationSandboxResult, type ConversationsCancelInboxItemArgs, type ConversationsCancelInboxItemDeleteArgs, type ConversationsCancelInboxItemDeleteResult, type ConversationsCancelInboxItemResult, type ConversationsContinueConversationArgs, type ConversationsContinueConversationPostArgs, type ConversationsContinueConversationPostResult, type ConversationsContinueConversationResult, type ConversationsEditInboxItemArgs, type ConversationsEditInboxItemPatchArgs, type ConversationsEditInboxItemPatchResult, type ConversationsEditInboxItemResult, type ConversationsEnqueueInboxItemArgs, type ConversationsEnqueueInboxItemPostArgs, type ConversationsEnqueueInboxItemPostResult, type ConversationsEnqueueInboxItemResult, type ConversationsForkAndRunArgs, type ConversationsForkAndRunPostArgs, type ConversationsForkAndRunPostResult, type ConversationsForkAndRunResult, type ConversationsGetConversationMemoryCostArgs, type ConversationsGetConversationMemoryCostGetArgs, type ConversationsGetConversationMemoryCostGetResult, type ConversationsGetConversationMemoryCostResult, type ConversationsGetConversationSandboxArgs, type ConversationsGetConversationSandboxGetArgs, type ConversationsGetConversationSandboxGetResult, type ConversationsGetConversationSandboxResult, type ConversationsListConversationPendingCallsArgs, type ConversationsListConversationPendingCallsGetArgs, type ConversationsListConversationPendingCallsGetResult, type ConversationsListConversationPendingCallsResult, type ConversationsListInboxItemsArgs, type ConversationsListInboxItemsGetArgs, type ConversationsListInboxItemsGetResult, type ConversationsListInboxItemsResult, type ConversationsResumeConversationArgs, type ConversationsResumeConversationPostArgs, type ConversationsResumeConversationPostResult, type ConversationsResumeConversationResult, type ConversationsSubmitToolResultsArgs, type ConversationsSubmitToolResultsPostArgs, type ConversationsSubmitToolResultsPostResult, type ConversationsSubmitToolResultsResult, type ConversationsUnbindConversationSandboxArgs, type ConversationsUnbindConversationSandboxDeleteArgs, type ConversationsUnbindConversationSandboxDeleteResult, type ConversationsUnbindConversationSandboxResult, type ConversationsWarmConversationArgs, type ConversationsWarmConversationPostArgs, type ConversationsWarmConversationPostResult, type ConversationsWarmConversationResult, type CxAttributionRegistry, type CxExplorerFacetEntry, type CxExplorerFacets, type CxExplorerTotals, type DelegationConversationStateArgs, type DelegationConversationStateResult, type DelegationPendingReviewsArgs, type DelegationPendingReviewsResult, type DelegationReviewDecisionArgs, type DelegationReviewDecisionResult, type DelegationStatusArgs, type DelegationStatusResult, type DelegationUiClaimArgs, type DelegationUiClaimResult, type DelegationUiReleaseArgs, type DelegationUiReleaseResult, type DeleteAllMessagesArgs, type DeleteAllMessagesResponse, type DeleteAllMessagesResult, type DeleteConversationDoorArgs, type DeleteConversationDoorResult, type DeleteMessageArgs, type DeleteMessageResponse, type DeleteMessageResult, type DetachConversationResourceArgs, type DetachConversationResourceResult, type DirectChatArgs, type DirectChatRequest, type DirectChatResult, type ForkAndRunRequest, type ForkConversationArgs, type ForkConversationResponse, type ForkConversationResult, type ForkRequest, type GetAttributionRegistryArgs, type GetAttributionRegistryResult, type GetContextStateArgs, type GetContextStateResult, type GetConversationAttachmentsArgs, type GetConversationAttachmentsResult, type GetConversationRequestsArgs, type GetConversationRequestsResult, type GetConversationResponse, type GetConversationWithAllRelatedArgs, type GetConversationWithAllRelatedResult, type GetFacetsArgs, type GetFacetsResult, type GetGroupChatArgs, type GetGroupChatResult, type GetUserConversationsArgs, type GetUserConversationsResult, type GroupChatOut, type HideMessagesFromModelArgs, type HideMessagesFromModelResult, type HideRequest, type HideResponse, type HostTurn, type InboxEditRequest, type InboxEnqueueRequest, type InboxEnqueueResponse, type InboxItem, type InboxMutationResponse, type InvalidateCacheResponse, type InvalidateConversationCacheArgs, type InvalidateConversationCacheResult, type ListAnthropicToolSchemasArgs, type ListAnthropicToolSchemasResult, type ListConversationsResponse, type ListLocalToolsArgs, type ListLocalToolsResult, type ListModelsArgs, type ListModelsResult, type ListRequestsResponse, type ListToolSchemasArgs, type ListToolSchemasByCategoryArgs, type ListToolSchemasByCategoryResult, type ListToolSchemasResult, type ListUserPendingCallsArgs, type ListUserPendingCallsResult, type LocalLlmConnectArgs, type LocalLlmConnectRequest, type LocalLlmConnectResult, type LocalLlmDisconnectArgs, type LocalLlmDisconnectResult, type LocalLlmStatusArgs, type LocalLlmStatusResult, type MemoryCostByEventType, type MemoryCostSummary, type MessageSelector, type MessageUpdate, type Operations, type Participant, type ParticipantOut, type PendingCallSummary, type PolicyUpdate, type PromptExecutionArgs, type PromptExecutionResult, type ProviderReadiness, type ProviderReadinessArgs, type ProviderReadinessResult, type PutParticipantPolicyArgs, type PutParticipantPolicyResult, type ReplaceMessagesArgs, type ReplaceMessagesResult, type ReplaceRequest, type ReplaceResponse, type RequestRecord, type RestoreCompactionArgs, type RestoreCompactionResult, type RestoreRequest, type RetryNowRequestArgs, type RetryNowRequestResult, type RetryNowResponse, type RevealAfterRound, type RevealEveryRounds, type ReviewDecisionRequest, type SandboxBindRequest, type SandboxBindingState, type SeesExcept, type SeesOnly, type SetLocalToolExposureArgs, type SetLocalToolExposureResult, type StartMandatedAgentV2Args, type StartMandatedAgentV2Result, type StartPromptV2Args, type StartPromptV2Result, type SystemInstructionInput, type ToolExposureRequest, type ToolResultsRequest, type ToolResultsResponse, type TriggerChatMirrorSyncArgs, type TriggerChatMirrorSyncResult, type TriggerChatSyncArgs, type TriggerChatSyncResult, type TurnRange, type UiClaimRequest, type UpdateConversationSettingsDoorArgs, type UpdateConversationSettingsDoorResult, type UpdateMessageArgs, type UpdateMessageResponse, type UpdateMessageResult, type V2ChatV2Args, type V2ChatV2PostArgs, type V2ChatV2PostResult, type V2ChatV2Result, type V2ContinueConversationV2Args, type V2ContinueConversationV2PostArgs, type V2ContinueConversationV2PostResult, type V2ContinueConversationV2Result, type V2StartAgentV2Args, type V2StartAgentV2PostArgs, type V2StartAgentV2PostResult, type V2StartAgentV2Result, type ViewPolicy, type WarmArgs, type WarmHealthOut, type WarmHealthRouteArgs, type WarmHealthRouteResult, type WarmIn, type WarmItemIn, type WarmItemOut, type WarmOut, type WarmResult, aiProviderStatus, type aidream__services__conversation_context__compaction__RestoreResponse, type aidream__services__conversation_context__continue_conversation__ResumeRequest, attachConversationResource, batchDeleteMessages, call, cancelRequest, chat, chatMirrorStatus, chatPost, chatSyncStatus, compactTurns, conversationsBindConversationSandbox, conversationsBindConversationSandboxPut, conversationsCancelInboxItem, conversationsCancelInboxItemDelete, conversationsContinueConversation, conversationsContinueConversationPost, conversationsEditInboxItem, conversationsEditInboxItemPatch, conversationsEnqueueInboxItem, conversationsEnqueueInboxItemPost, conversationsForkAndRun, conversationsForkAndRunPost, conversationsGetConversationMemoryCost, conversationsGetConversationMemoryCostGet, conversationsGetConversationSandbox, conversationsGetConversationSandboxGet, conversationsListConversationPendingCalls, conversationsListConversationPendingCallsGet, conversationsListInboxItems, conversationsListInboxItemsGet, conversationsResumeConversation, conversationsResumeConversationPost, conversationsSubmitToolResults, conversationsSubmitToolResultsPost, conversationsUnbindConversationSandbox, conversationsUnbindConversationSandboxDelete, conversationsWarmConversation, conversationsWarmConversationPost, delegationConversationState, delegationPendingReviews, delegationReviewDecision, delegationStatus, delegationUiClaim, delegationUiRelease, deleteAllMessages, deleteConversationDoor, deleteMessage, detachConversationResource, directChat, forkConversation, getAttributionRegistry, getContextState, getConversationAttachments, getConversationRequests, getConversationWithAllRelated, getFacets, getGroupChat, getUserConversations, hideMessagesFromModel, invalidateConversationCache, listAnthropicToolSchemas, listLocalTools, listModels, listToolSchemas, listToolSchemasByCategory, listUserPendingCalls, localLlmConnect, localLlmDisconnect, localLlmStatus, promptExecution, providerReadiness, putParticipantPolicy, replaceMessages, restoreCompaction, retryNowRequest, setLocalToolExposure, startMandatedAgentV2, startPromptV2, triggerChatMirrorSync, triggerChatSync, updateConversationSettingsDoor, updateMessage, v2ChatV2, v2ChatV2Post, v2ContinueConversationV2, v2ContinueConversationV2Post, v2StartAgentV2, v2StartAgentV2Post, warm, warmHealthRoute };
|