@1claw/sdk 0.42.1 → 0.43.1

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.
@@ -4872,6 +4872,53 @@ export interface paths {
4872
4872
  patch?: never;
4873
4873
  trace?: never;
4874
4874
  };
4875
+ "/v1/runtimes/{runtimeId}/shell/session": {
4876
+ parameters: {
4877
+ query?: never;
4878
+ header?: never;
4879
+ path?: never;
4880
+ cookie?: never;
4881
+ };
4882
+ get?: never;
4883
+ put?: never;
4884
+ /**
4885
+ * Create interactive shell session
4886
+ * @description Human-only. Creates a short-lived WebSocket session token for the
4887
+ * runtime's PTY terminal. Requires step-up auth via `password`,
4888
+ * `totp_code`, `passkey_credential`, or `reauth_token` (from
4889
+ * `POST /v1/auth/reauth` with purpose `runtime_shell`).
4890
+ * Runtime must have `shell_access_enabled` and be running.
4891
+ * Enabling shell on a running runtime may require stop/start, or
4892
+ * the server may auto-reconcile the sidecar on connect.
4893
+ */
4894
+ post: operations["createShellSession"];
4895
+ delete?: never;
4896
+ options?: never;
4897
+ head?: never;
4898
+ patch?: never;
4899
+ trace?: never;
4900
+ };
4901
+ "/v1/runtimes/{runtimeId}/shell/passkey/begin": {
4902
+ parameters: {
4903
+ query?: never;
4904
+ header?: never;
4905
+ path?: never;
4906
+ cookie?: never;
4907
+ };
4908
+ get?: never;
4909
+ put?: never;
4910
+ /**
4911
+ * Begin shell passkey assertion
4912
+ * @description Human-only. Starts a WebAuthn assertion ceremony for shell
4913
+ * step-up auth (social/Google users without a password).
4914
+ */
4915
+ post: operations["beginShellPasskey"];
4916
+ delete?: never;
4917
+ options?: never;
4918
+ head?: never;
4919
+ patch?: never;
4920
+ trace?: never;
4921
+ };
4875
4922
  "/v1/agents/{agent_id}/memory": {
4876
4923
  parameters: {
4877
4924
  query?: never;
@@ -5019,6 +5066,224 @@ export interface paths {
5019
5066
  patch?: never;
5020
5067
  trace?: never;
5021
5068
  };
5069
+ "/v1/agents/{agent_id}/chat": {
5070
+ parameters: {
5071
+ query?: never;
5072
+ header?: never;
5073
+ path?: never;
5074
+ cookie?: never;
5075
+ };
5076
+ get?: never;
5077
+ put?: never;
5078
+ /**
5079
+ * Send chat message
5080
+ * @description Send a message to an agent and receive a response via Shroud LLM.
5081
+ * Supports SSE streaming when Accept: text/event-stream is set.
5082
+ */
5083
+ post: operations["sendChatMessage"];
5084
+ delete?: never;
5085
+ options?: never;
5086
+ head?: never;
5087
+ patch?: never;
5088
+ trace?: never;
5089
+ };
5090
+ "/v1/agents/{agent_id}/chat/conversations": {
5091
+ parameters: {
5092
+ query?: never;
5093
+ header?: never;
5094
+ path?: never;
5095
+ cookie?: never;
5096
+ };
5097
+ /**
5098
+ * List conversations
5099
+ * @description List all chat conversations for an agent.
5100
+ */
5101
+ get: operations["listChatConversations"];
5102
+ put?: never;
5103
+ post?: never;
5104
+ delete?: never;
5105
+ options?: never;
5106
+ head?: never;
5107
+ patch?: never;
5108
+ trace?: never;
5109
+ };
5110
+ "/v1/agents/{agent_id}/chat/conversations/{conversation_id}": {
5111
+ parameters: {
5112
+ query?: never;
5113
+ header?: never;
5114
+ path?: never;
5115
+ cookie?: never;
5116
+ };
5117
+ /**
5118
+ * Get conversation
5119
+ * @description Get a conversation with its full message history.
5120
+ */
5121
+ get: operations["getChatConversation"];
5122
+ put?: never;
5123
+ post?: never;
5124
+ /**
5125
+ * Archive conversation
5126
+ * @description Archive (soft-delete) a chat conversation.
5127
+ */
5128
+ delete: operations["deleteChatConversation"];
5129
+ options?: never;
5130
+ head?: never;
5131
+ patch?: never;
5132
+ trace?: never;
5133
+ };
5134
+ "/v1/agents/{agent_id}/channels": {
5135
+ parameters: {
5136
+ query?: never;
5137
+ header?: never;
5138
+ path?: never;
5139
+ cookie?: never;
5140
+ };
5141
+ /**
5142
+ * List channels
5143
+ * @description List all messaging channels for an agent.
5144
+ */
5145
+ get: operations["listChannels"];
5146
+ put?: never;
5147
+ /**
5148
+ * Register channel
5149
+ * @description Register a new external messaging channel (Telegram, WhatsApp, Discord)
5150
+ * for an agent. Human-only. Returns the channel with its webhook URL.
5151
+ */
5152
+ post: operations["createChannel"];
5153
+ delete?: never;
5154
+ options?: never;
5155
+ head?: never;
5156
+ patch?: never;
5157
+ trace?: never;
5158
+ };
5159
+ "/v1/agents/{agent_id}/channels/{channel_id}": {
5160
+ parameters: {
5161
+ query?: never;
5162
+ header?: never;
5163
+ path?: never;
5164
+ cookie?: never;
5165
+ };
5166
+ get?: never;
5167
+ put?: never;
5168
+ post?: never;
5169
+ /**
5170
+ * Delete channel
5171
+ * @description Delete a messaging channel. Human-only.
5172
+ */
5173
+ delete: operations["deleteChannel"];
5174
+ options?: never;
5175
+ head?: never;
5176
+ /**
5177
+ * Update channel
5178
+ * @description Update a channel's name, active status, or config. Human-only.
5179
+ */
5180
+ patch: operations["updateChannel"];
5181
+ trace?: never;
5182
+ };
5183
+ "/v1/agents/{agent_id}/channels/{channel_id}/send": {
5184
+ parameters: {
5185
+ query?: never;
5186
+ header?: never;
5187
+ path?: never;
5188
+ cookie?: never;
5189
+ };
5190
+ get?: never;
5191
+ put?: never;
5192
+ /**
5193
+ * Send outbound message
5194
+ * @description Send an outbound message via a registered channel.
5195
+ */
5196
+ post: operations["sendChannelMessage"];
5197
+ delete?: never;
5198
+ options?: never;
5199
+ head?: never;
5200
+ patch?: never;
5201
+ trace?: never;
5202
+ };
5203
+ "/v1/agents/{agent_id}/channels/{channel_id}/messages": {
5204
+ parameters: {
5205
+ query?: never;
5206
+ header?: never;
5207
+ path?: never;
5208
+ cookie?: never;
5209
+ };
5210
+ /**
5211
+ * Channel message history
5212
+ * @description List inbound and outbound messages for a channel.
5213
+ */
5214
+ get: operations["listChannelMessages"];
5215
+ put?: never;
5216
+ post?: never;
5217
+ delete?: never;
5218
+ options?: never;
5219
+ head?: never;
5220
+ patch?: never;
5221
+ trace?: never;
5222
+ };
5223
+ "/v1/webhooks/telegram/{webhook_path}": {
5224
+ parameters: {
5225
+ query?: never;
5226
+ header?: never;
5227
+ path?: never;
5228
+ cookie?: never;
5229
+ };
5230
+ get?: never;
5231
+ put?: never;
5232
+ /**
5233
+ * Telegram webhook
5234
+ * @description Public webhook endpoint for receiving Telegram bot updates.
5235
+ */
5236
+ post: operations["telegramWebhook"];
5237
+ delete?: never;
5238
+ options?: never;
5239
+ head?: never;
5240
+ patch?: never;
5241
+ trace?: never;
5242
+ };
5243
+ "/v1/webhooks/whatsapp/{webhook_path}": {
5244
+ parameters: {
5245
+ query?: never;
5246
+ header?: never;
5247
+ path?: never;
5248
+ cookie?: never;
5249
+ };
5250
+ /**
5251
+ * WhatsApp webhook verification
5252
+ * @description Verification endpoint for WhatsApp Cloud API webhook setup.
5253
+ */
5254
+ get: operations["whatsappWebhookVerify"];
5255
+ put?: never;
5256
+ /**
5257
+ * WhatsApp webhook
5258
+ * @description Public webhook endpoint for receiving WhatsApp Cloud API events.
5259
+ */
5260
+ post: operations["whatsappWebhook"];
5261
+ delete?: never;
5262
+ options?: never;
5263
+ head?: never;
5264
+ patch?: never;
5265
+ trace?: never;
5266
+ };
5267
+ "/v1/webhooks/discord/{webhook_path}": {
5268
+ parameters: {
5269
+ query?: never;
5270
+ header?: never;
5271
+ path?: never;
5272
+ cookie?: never;
5273
+ };
5274
+ get?: never;
5275
+ put?: never;
5276
+ /**
5277
+ * Discord webhook
5278
+ * @description Public webhook endpoint for receiving Discord bot interactions.
5279
+ */
5280
+ post: operations["discordWebhook"];
5281
+ delete?: never;
5282
+ options?: never;
5283
+ head?: never;
5284
+ patch?: never;
5285
+ trace?: never;
5286
+ };
5022
5287
  }
5023
5288
  export type webhooks = Record<string, never>;
5024
5289
  export interface components {
@@ -8074,35 +8339,54 @@ export interface components {
8074
8339
  /** Format: date-time */
8075
8340
  created_at: string;
8076
8341
  };
8342
+ /**
8343
+ * @description Create an automation. `workflow_spec` is required and must be either
8344
+ * a JSON array of steps or `{ "steps": [...] }`. Dashboard `schedule`
8345
+ * trigger_type is accepted and normalized to `cron`. For cron triggers,
8346
+ * `cron_expr` is required.
8347
+ */
8077
8348
  CreateAutomationRequest: {
8078
8349
  name: string;
8079
- description?: string;
8080
8350
  /** Format: uuid */
8081
- agent_id?: string;
8082
- /** @enum {string} */
8083
- trigger_type?: "schedule" | "webhook" | "event" | "manual";
8084
- trigger_config?: {
8351
+ agent_id: string;
8352
+ /**
8353
+ * @description cron | event | webhook | manual (alias schedule → cron)
8354
+ * @enum {string}
8355
+ */
8356
+ trigger_type: "cron" | "event" | "webhook" | "manual" | "schedule";
8357
+ /**
8358
+ * @description Required when trigger_type is cron (or schedule)
8359
+ * @example 0 *\/6 * * *
8360
+ */
8361
+ cron_expr?: string;
8362
+ /**
8363
+ * @default UTC
8364
+ * @example UTC
8365
+ */
8366
+ timezone: string;
8367
+ event_filter?: {
8085
8368
  [key: string]: unknown;
8086
- };
8087
- action_type?: string;
8088
- action_config?: {
8369
+ } | null;
8370
+ /**
8371
+ * @description Workflow steps. Accepts a bare array `[...]` or
8372
+ * `{ "steps": [...] }` (dashboard / preset shape).
8373
+ */
8374
+ workflow_spec: {
8375
+ [key: string]: unknown;
8376
+ }[] | {
8089
8377
  [key: string]: unknown;
8090
8378
  };
8091
- /** @default true */
8092
- is_active: boolean;
8093
8379
  };
8094
8380
  UpdateAutomationRequest: {
8095
8381
  name?: string;
8096
- description?: string;
8097
- /** Format: uuid */
8098
- agent_id?: string;
8099
- /** @enum {string} */
8100
- trigger_type?: "schedule" | "webhook" | "event" | "manual";
8101
- trigger_config?: {
8382
+ cron_expr?: string | null;
8383
+ timezone?: string;
8384
+ event_filter?: {
8102
8385
  [key: string]: unknown;
8103
- };
8104
- action_type?: string;
8105
- action_config?: {
8386
+ } | null;
8387
+ workflow_spec?: {
8388
+ [key: string]: unknown;
8389
+ }[] | {
8106
8390
  [key: string]: unknown;
8107
8391
  };
8108
8392
  is_active?: boolean;
@@ -8110,27 +8394,27 @@ export interface components {
8110
8394
  AutomationResponse: {
8111
8395
  /** Format: uuid */
8112
8396
  id: string;
8113
- name: string;
8114
- description?: string | null;
8115
8397
  /** Format: uuid */
8116
- agent_id?: string | null;
8398
+ agent_id: string;
8399
+ name: string;
8117
8400
  /** @enum {string} */
8118
- trigger_type: "schedule" | "webhook" | "event" | "manual";
8119
- trigger_config?: {
8401
+ trigger_type: "cron" | "event" | "webhook" | "manual";
8402
+ cron_expr?: string | null;
8403
+ timezone: string;
8404
+ event_filter?: {
8120
8405
  [key: string]: unknown;
8121
8406
  } | null;
8122
- action_type?: string | null;
8123
- action_config?: {
8407
+ workflow_spec: {
8124
8408
  [key: string]: unknown;
8125
- } | null;
8409
+ }[] | {
8410
+ [key: string]: unknown;
8411
+ };
8126
8412
  is_active: boolean;
8127
- webhook_url?: string | null;
8128
- schedule_expression?: string | null;
8129
- /** Format: date-time */
8130
- next_run_at?: string | null;
8131
8413
  /** Format: date-time */
8132
8414
  last_run_at?: string | null;
8133
8415
  /** Format: date-time */
8416
+ next_run_at?: string | null;
8417
+ /** Format: date-time */
8134
8418
  created_at: string;
8135
8419
  /** Format: date-time */
8136
8420
  updated_at: string;
@@ -8143,16 +8427,19 @@ export interface components {
8143
8427
  id: string;
8144
8428
  /** Format: uuid */
8145
8429
  automation_id: string;
8430
+ /** Format: uuid */
8431
+ agent_id: string;
8146
8432
  /** @enum {string} */
8147
- status: "pending" | "running" | "completed" | "failed";
8433
+ status: "pending" | "running" | "completed" | "failed" | "denied";
8434
+ step_results?: unknown;
8435
+ error?: string | null;
8436
+ trigger_source?: string | null;
8148
8437
  /** Format: date-time */
8149
8438
  started_at: string;
8150
8439
  /** Format: date-time */
8151
- completed_at?: string | null;
8152
- result?: {
8153
- [key: string]: unknown;
8154
- } | null;
8155
- error?: string | null;
8440
+ finished_at?: string | null;
8441
+ tokens_used: number;
8442
+ cost_cents: number;
8156
8443
  };
8157
8444
  AutomationRunListResponse: {
8158
8445
  runs: components["schemas"]["AutomationRunResponse"][];
@@ -8174,6 +8461,11 @@ export interface components {
8174
8461
  slug?: string;
8175
8462
  /** @enum {string} */
8176
8463
  inbound_auth?: "api_key" | "jwt" | "public";
8464
+ /** @default false */
8465
+ shell_access_enabled: boolean;
8466
+ /** @description Step-up auth policy for shell (e.g. password, passkey, totp) */
8467
+ shell_auth_policy?: string;
8468
+ shell_max_session_minutes?: number;
8177
8469
  };
8178
8470
  UpdateRuntimeRequest: {
8179
8471
  name?: string;
@@ -8189,6 +8481,9 @@ export interface components {
8189
8481
  slug?: string;
8190
8482
  /** @enum {string} */
8191
8483
  inbound_auth?: "api_key" | "jwt" | "public";
8484
+ shell_access_enabled?: boolean;
8485
+ shell_auth_policy?: string;
8486
+ shell_max_session_minutes?: number;
8192
8487
  };
8193
8488
  RuntimeResponse: {
8194
8489
  /** Format: uuid */
@@ -8212,6 +8507,9 @@ export interface components {
8212
8507
  http_port?: number | null;
8213
8508
  /** @enum {string|null} */
8214
8509
  inbound_auth?: "api_key" | "jwt" | "public" | null;
8510
+ shell_access_enabled?: boolean;
8511
+ shell_auth_policy?: string;
8512
+ shell_max_session_minutes?: number;
8215
8513
  monthly_hours_used?: number | null;
8216
8514
  /** Format: date-time */
8217
8515
  created_at: string;
@@ -8226,6 +8524,29 @@ export interface components {
8226
8524
  slug: string;
8227
8525
  reason?: string | null;
8228
8526
  };
8527
+ /**
8528
+ * @description Step-up credentials for an interactive shell session.
8529
+ * Provide one of password, totp_code, passkey_credential, or reauth_token.
8530
+ */
8531
+ ShellSessionRequest: {
8532
+ password?: string;
8533
+ totp_code?: string;
8534
+ passkey_credential?: {
8535
+ [key: string]: unknown;
8536
+ };
8537
+ /** @description Single-use `rat_` token from POST /v1/auth/reauth (purpose runtime_shell) */
8538
+ reauth_token?: string;
8539
+ };
8540
+ ShellSessionResponse: {
8541
+ session_token: string;
8542
+ /** @description WebSocket URL for the PTY terminal */
8543
+ ws_url: string;
8544
+ /** Format: int64 */
8545
+ expires_in: number;
8546
+ /** Format: uuid */
8547
+ runtime_id: string;
8548
+ max_session_minutes: number;
8549
+ };
8229
8550
  MemoryEntry: {
8230
8551
  /** Format: uuid */
8231
8552
  id: string;
@@ -8297,7 +8618,124 @@ export interface components {
8297
8618
  public_description?: string;
8298
8619
  public_tags?: string[];
8299
8620
  };
8300
- };
8621
+ SendChatMessageRequest: {
8622
+ message: string;
8623
+ /** Format: uuid */
8624
+ conversation_id?: string;
8625
+ mode?: string;
8626
+ model?: string;
8627
+ provider?: string;
8628
+ system_prompt?: string;
8629
+ };
8630
+ ChatMessageResponse: {
8631
+ /** Format: uuid */
8632
+ id?: string;
8633
+ /** Format: uuid */
8634
+ conversation_id?: string;
8635
+ role?: string;
8636
+ content?: string;
8637
+ tool_calls?: unknown;
8638
+ tool_results?: unknown;
8639
+ tokens_prompt?: number;
8640
+ tokens_completion?: number;
8641
+ model?: string;
8642
+ /** Format: date-time */
8643
+ created_at?: string;
8644
+ };
8645
+ ChatConversationResponse: {
8646
+ /** Format: uuid */
8647
+ id?: string;
8648
+ /** Format: uuid */
8649
+ agent_id?: string;
8650
+ title?: string;
8651
+ mode?: string;
8652
+ model?: string;
8653
+ provider?: string;
8654
+ /** Format: date-time */
8655
+ created_at?: string;
8656
+ /** Format: date-time */
8657
+ updated_at?: string;
8658
+ };
8659
+ ChatConversationListResponse: {
8660
+ conversations?: components["schemas"]["ChatConversationResponse"][];
8661
+ };
8662
+ ConversationDetailResponse: {
8663
+ conversation?: components["schemas"]["ChatConversationResponse"];
8664
+ messages?: components["schemas"]["ChatMessageResponse"][];
8665
+ };
8666
+ SendChatMessageResponse: {
8667
+ /** Format: uuid */
8668
+ conversation_id?: string;
8669
+ message?: components["schemas"]["ChatMessageResponse"];
8670
+ };
8671
+ CreateChannelRequest: {
8672
+ /** @enum {string} */
8673
+ channel_type: "telegram" | "whatsapp" | "discord";
8674
+ channel_name?: string;
8675
+ /**
8676
+ * @description Platform-specific config.
8677
+ * Telegram: { bot_token }.
8678
+ * WhatsApp: { phone_number_id, access_token, verify_token }.
8679
+ * Discord: { bot_token, application_id }.
8680
+ */
8681
+ config: {
8682
+ [key: string]: string;
8683
+ };
8684
+ };
8685
+ UpdateChannelRequest: {
8686
+ channel_name?: string;
8687
+ is_active?: boolean;
8688
+ config?: {
8689
+ [key: string]: string;
8690
+ };
8691
+ };
8692
+ ChannelResponse: {
8693
+ /** Format: uuid */
8694
+ id?: string;
8695
+ /** Format: uuid */
8696
+ org_id?: string;
8697
+ /** Format: uuid */
8698
+ agent_id?: string;
8699
+ /** @enum {string} */
8700
+ channel_type?: "telegram" | "whatsapp" | "discord";
8701
+ channel_name?: string;
8702
+ webhook_path?: string;
8703
+ webhook_url?: string;
8704
+ is_active?: boolean;
8705
+ /** Format: date-time */
8706
+ created_at?: string;
8707
+ /** Format: date-time */
8708
+ updated_at?: string;
8709
+ };
8710
+ ChannelListResponse: {
8711
+ channels?: components["schemas"]["ChannelResponse"][];
8712
+ };
8713
+ SendChannelMessageRequest: {
8714
+ /** @description External platform chat/user ID */
8715
+ external_chat_id: string;
8716
+ content: string;
8717
+ /** @description External message ID to reply to */
8718
+ reply_to?: string;
8719
+ };
8720
+ ChannelMessageResponse: {
8721
+ /** Format: uuid */
8722
+ id?: string;
8723
+ /** Format: uuid */
8724
+ channel_id?: string;
8725
+ /** @enum {string} */
8726
+ direction?: "inbound" | "outbound";
8727
+ external_chat_id?: string;
8728
+ external_message_id?: string;
8729
+ sender_name?: string;
8730
+ content?: string;
8731
+ media_url?: string;
8732
+ /** Format: date-time */
8733
+ created_at?: string;
8734
+ };
8735
+ ChannelMessageListResponse: {
8736
+ messages?: components["schemas"]["ChannelMessageResponse"][];
8737
+ };
8738
+ };
8301
8739
  responses: {
8302
8740
  /** @description Invalid request */
8303
8741
  BadRequest: {
@@ -14793,6 +15231,63 @@ export interface operations {
14793
15231
  401: components["responses"]["Unauthorized"];
14794
15232
  };
14795
15233
  };
15234
+ createShellSession: {
15235
+ parameters: {
15236
+ query?: never;
15237
+ header?: never;
15238
+ path: {
15239
+ runtimeId: string;
15240
+ };
15241
+ cookie?: never;
15242
+ };
15243
+ requestBody: {
15244
+ content: {
15245
+ "application/json": components["schemas"]["ShellSessionRequest"];
15246
+ };
15247
+ };
15248
+ responses: {
15249
+ /** @description Shell session created */
15250
+ 200: {
15251
+ headers: {
15252
+ [name: string]: unknown;
15253
+ };
15254
+ content: {
15255
+ "application/json": components["schemas"]["ShellSessionResponse"];
15256
+ };
15257
+ };
15258
+ 400: components["responses"]["BadRequest"];
15259
+ 401: components["responses"]["Unauthorized"];
15260
+ 403: components["responses"]["Forbidden"];
15261
+ 404: components["responses"]["NotFound"];
15262
+ };
15263
+ };
15264
+ beginShellPasskey: {
15265
+ parameters: {
15266
+ query?: never;
15267
+ header?: never;
15268
+ path: {
15269
+ runtimeId: string;
15270
+ };
15271
+ cookie?: never;
15272
+ };
15273
+ requestBody?: never;
15274
+ responses: {
15275
+ /** @description Passkey challenge for shell session */
15276
+ 200: {
15277
+ headers: {
15278
+ [name: string]: unknown;
15279
+ };
15280
+ content: {
15281
+ "application/json": {
15282
+ [key: string]: unknown;
15283
+ };
15284
+ };
15285
+ };
15286
+ 401: components["responses"]["Unauthorized"];
15287
+ 403: components["responses"]["Forbidden"];
15288
+ 404: components["responses"]["NotFound"];
15289
+ };
15290
+ };
14796
15291
  listMemoryNamespaces: {
14797
15292
  parameters: {
14798
15293
  query?: never;
@@ -15056,5 +15551,362 @@ export interface operations {
15056
15551
  };
15057
15552
  };
15058
15553
  };
15554
+ sendChatMessage: {
15555
+ parameters: {
15556
+ query?: never;
15557
+ header?: never;
15558
+ path: {
15559
+ agent_id: components["parameters"]["AgentId"];
15560
+ };
15561
+ cookie?: never;
15562
+ };
15563
+ requestBody: {
15564
+ content: {
15565
+ "application/json": components["schemas"]["SendChatMessageRequest"];
15566
+ };
15567
+ };
15568
+ responses: {
15569
+ /** @description Chat response */
15570
+ 200: {
15571
+ headers: {
15572
+ [name: string]: unknown;
15573
+ };
15574
+ content: {
15575
+ "application/json": components["schemas"]["SendChatMessageResponse"];
15576
+ "text/event-stream": string;
15577
+ };
15578
+ };
15579
+ 401: components["responses"]["Unauthorized"];
15580
+ 403: components["responses"]["Forbidden"];
15581
+ };
15582
+ };
15583
+ listChatConversations: {
15584
+ parameters: {
15585
+ query?: never;
15586
+ header?: never;
15587
+ path: {
15588
+ agent_id: components["parameters"]["AgentId"];
15589
+ };
15590
+ cookie?: never;
15591
+ };
15592
+ requestBody?: never;
15593
+ responses: {
15594
+ /** @description Conversation list */
15595
+ 200: {
15596
+ headers: {
15597
+ [name: string]: unknown;
15598
+ };
15599
+ content: {
15600
+ "application/json": components["schemas"]["ChatConversationListResponse"];
15601
+ };
15602
+ };
15603
+ 401: components["responses"]["Unauthorized"];
15604
+ };
15605
+ };
15606
+ getChatConversation: {
15607
+ parameters: {
15608
+ query?: never;
15609
+ header?: never;
15610
+ path: {
15611
+ agent_id: components["parameters"]["AgentId"];
15612
+ conversation_id: string;
15613
+ };
15614
+ cookie?: never;
15615
+ };
15616
+ requestBody?: never;
15617
+ responses: {
15618
+ /** @description Conversation detail */
15619
+ 200: {
15620
+ headers: {
15621
+ [name: string]: unknown;
15622
+ };
15623
+ content: {
15624
+ "application/json": components["schemas"]["ConversationDetailResponse"];
15625
+ };
15626
+ };
15627
+ 401: components["responses"]["Unauthorized"];
15628
+ 404: components["responses"]["NotFound"];
15629
+ };
15630
+ };
15631
+ deleteChatConversation: {
15632
+ parameters: {
15633
+ query?: never;
15634
+ header?: never;
15635
+ path: {
15636
+ agent_id: components["parameters"]["AgentId"];
15637
+ conversation_id: string;
15638
+ };
15639
+ cookie?: never;
15640
+ };
15641
+ requestBody?: never;
15642
+ responses: {
15643
+ /** @description Conversation archived */
15644
+ 204: {
15645
+ headers: {
15646
+ [name: string]: unknown;
15647
+ };
15648
+ content?: never;
15649
+ };
15650
+ 401: components["responses"]["Unauthorized"];
15651
+ 404: components["responses"]["NotFound"];
15652
+ };
15653
+ };
15654
+ listChannels: {
15655
+ parameters: {
15656
+ query?: never;
15657
+ header?: never;
15658
+ path: {
15659
+ agent_id: components["parameters"]["AgentId"];
15660
+ };
15661
+ cookie?: never;
15662
+ };
15663
+ requestBody?: never;
15664
+ responses: {
15665
+ /** @description Channel list */
15666
+ 200: {
15667
+ headers: {
15668
+ [name: string]: unknown;
15669
+ };
15670
+ content: {
15671
+ "application/json": components["schemas"]["ChannelListResponse"];
15672
+ };
15673
+ };
15674
+ 401: components["responses"]["Unauthorized"];
15675
+ };
15676
+ };
15677
+ createChannel: {
15678
+ parameters: {
15679
+ query?: never;
15680
+ header?: never;
15681
+ path: {
15682
+ agent_id: components["parameters"]["AgentId"];
15683
+ };
15684
+ cookie?: never;
15685
+ };
15686
+ requestBody: {
15687
+ content: {
15688
+ "application/json": components["schemas"]["CreateChannelRequest"];
15689
+ };
15690
+ };
15691
+ responses: {
15692
+ /** @description Channel created */
15693
+ 201: {
15694
+ headers: {
15695
+ [name: string]: unknown;
15696
+ };
15697
+ content: {
15698
+ "application/json": components["schemas"]["ChannelResponse"];
15699
+ };
15700
+ };
15701
+ 400: components["responses"]["BadRequest"];
15702
+ 401: components["responses"]["Unauthorized"];
15703
+ 403: components["responses"]["Forbidden"];
15704
+ };
15705
+ };
15706
+ deleteChannel: {
15707
+ parameters: {
15708
+ query?: never;
15709
+ header?: never;
15710
+ path: {
15711
+ agent_id: components["parameters"]["AgentId"];
15712
+ channel_id: string;
15713
+ };
15714
+ cookie?: never;
15715
+ };
15716
+ requestBody?: never;
15717
+ responses: {
15718
+ /** @description Channel deleted */
15719
+ 204: {
15720
+ headers: {
15721
+ [name: string]: unknown;
15722
+ };
15723
+ content?: never;
15724
+ };
15725
+ 401: components["responses"]["Unauthorized"];
15726
+ 403: components["responses"]["Forbidden"];
15727
+ 404: components["responses"]["NotFound"];
15728
+ };
15729
+ };
15730
+ updateChannel: {
15731
+ parameters: {
15732
+ query?: never;
15733
+ header?: never;
15734
+ path: {
15735
+ agent_id: components["parameters"]["AgentId"];
15736
+ channel_id: string;
15737
+ };
15738
+ cookie?: never;
15739
+ };
15740
+ requestBody: {
15741
+ content: {
15742
+ "application/json": components["schemas"]["UpdateChannelRequest"];
15743
+ };
15744
+ };
15745
+ responses: {
15746
+ /** @description Channel updated */
15747
+ 200: {
15748
+ headers: {
15749
+ [name: string]: unknown;
15750
+ };
15751
+ content: {
15752
+ "application/json": components["schemas"]["ChannelResponse"];
15753
+ };
15754
+ };
15755
+ 401: components["responses"]["Unauthorized"];
15756
+ 403: components["responses"]["Forbidden"];
15757
+ 404: components["responses"]["NotFound"];
15758
+ };
15759
+ };
15760
+ sendChannelMessage: {
15761
+ parameters: {
15762
+ query?: never;
15763
+ header?: never;
15764
+ path: {
15765
+ agent_id: components["parameters"]["AgentId"];
15766
+ channel_id: string;
15767
+ };
15768
+ cookie?: never;
15769
+ };
15770
+ requestBody: {
15771
+ content: {
15772
+ "application/json": components["schemas"]["SendChannelMessageRequest"];
15773
+ };
15774
+ };
15775
+ responses: {
15776
+ /** @description Message sent */
15777
+ 200: {
15778
+ headers: {
15779
+ [name: string]: unknown;
15780
+ };
15781
+ content: {
15782
+ "application/json": components["schemas"]["ChannelMessageResponse"];
15783
+ };
15784
+ };
15785
+ 401: components["responses"]["Unauthorized"];
15786
+ 404: components["responses"]["NotFound"];
15787
+ };
15788
+ };
15789
+ listChannelMessages: {
15790
+ parameters: {
15791
+ query?: {
15792
+ limit?: number;
15793
+ };
15794
+ header?: never;
15795
+ path: {
15796
+ agent_id: components["parameters"]["AgentId"];
15797
+ channel_id: string;
15798
+ };
15799
+ cookie?: never;
15800
+ };
15801
+ requestBody?: never;
15802
+ responses: {
15803
+ /** @description Message list */
15804
+ 200: {
15805
+ headers: {
15806
+ [name: string]: unknown;
15807
+ };
15808
+ content: {
15809
+ "application/json": components["schemas"]["ChannelMessageListResponse"];
15810
+ };
15811
+ };
15812
+ 401: components["responses"]["Unauthorized"];
15813
+ };
15814
+ };
15815
+ telegramWebhook: {
15816
+ parameters: {
15817
+ query?: never;
15818
+ header?: never;
15819
+ path: {
15820
+ webhook_path: string;
15821
+ };
15822
+ cookie?: never;
15823
+ };
15824
+ requestBody: {
15825
+ content: {
15826
+ "application/json": Record<string, never>;
15827
+ };
15828
+ };
15829
+ responses: {
15830
+ /** @description Webhook processed */
15831
+ 200: {
15832
+ headers: {
15833
+ [name: string]: unknown;
15834
+ };
15835
+ content?: never;
15836
+ };
15837
+ };
15838
+ };
15839
+ whatsappWebhookVerify: {
15840
+ parameters: {
15841
+ query?: {
15842
+ "hub.mode"?: string;
15843
+ "hub.verify_token"?: string;
15844
+ "hub.challenge"?: string;
15845
+ };
15846
+ header?: never;
15847
+ path: {
15848
+ webhook_path: string;
15849
+ };
15850
+ cookie?: never;
15851
+ };
15852
+ requestBody?: never;
15853
+ responses: {
15854
+ /** @description Challenge response */
15855
+ 200: {
15856
+ headers: {
15857
+ [name: string]: unknown;
15858
+ };
15859
+ content?: never;
15860
+ };
15861
+ };
15862
+ };
15863
+ whatsappWebhook: {
15864
+ parameters: {
15865
+ query?: never;
15866
+ header?: never;
15867
+ path: {
15868
+ webhook_path: string;
15869
+ };
15870
+ cookie?: never;
15871
+ };
15872
+ requestBody: {
15873
+ content: {
15874
+ "application/json": Record<string, never>;
15875
+ };
15876
+ };
15877
+ responses: {
15878
+ /** @description Webhook processed */
15879
+ 200: {
15880
+ headers: {
15881
+ [name: string]: unknown;
15882
+ };
15883
+ content?: never;
15884
+ };
15885
+ };
15886
+ };
15887
+ discordWebhook: {
15888
+ parameters: {
15889
+ query?: never;
15890
+ header?: never;
15891
+ path: {
15892
+ webhook_path: string;
15893
+ };
15894
+ cookie?: never;
15895
+ };
15896
+ requestBody: {
15897
+ content: {
15898
+ "application/json": Record<string, never>;
15899
+ };
15900
+ };
15901
+ responses: {
15902
+ /** @description Webhook processed */
15903
+ 200: {
15904
+ headers: {
15905
+ [name: string]: unknown;
15906
+ };
15907
+ content?: never;
15908
+ };
15909
+ };
15910
+ };
15059
15911
  }
15060
15912
  //# sourceMappingURL=api-types.d.ts.map