@naturali/sdk 0.47.1 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -334,6 +334,67 @@ declare const createClient: (config?: Config) => Client;
334
334
  type ClientOptions = {
335
335
  baseUrl: `${string}://{baseUrl}` | (string & {});
336
336
  };
337
+ type ErrorResponse = {
338
+ error: {
339
+ code: string;
340
+ message: string;
341
+ details?: {
342
+ [key: string]: unknown;
343
+ };
344
+ };
345
+ };
346
+ type Address = {
347
+ id: string;
348
+ project_id: string;
349
+ identifier: string;
350
+ display_name: string | null;
351
+ /**
352
+ * The runtime actor this address speaks as; null until it has needed one.
353
+ */
354
+ actor_id: string | null;
355
+ /**
356
+ * This address's own decision, when it has one — beats every route.
357
+ */
358
+ action: 'agent' | 'message' | 'silence' | null;
359
+ agent_id: string | null;
360
+ text: string | null;
361
+ /**
362
+ * Null unless `action` is `message`.
363
+ */
364
+ repeat: 'every' | 'once' | {
365
+ after_seconds: number;
366
+ };
367
+ language: string | null;
368
+ config: {
369
+ [key: string]: unknown;
370
+ } | null;
371
+ created_at: Date;
372
+ updated_at: Date;
373
+ };
374
+ /**
375
+ * `action` is required — one of `agent` / `message` / `silence`, or `null` to clear it. `agent_id` is required when it is `agent`, `text` when it is `message`; `repeat` is only valid alongside `action: message`.
376
+ *
377
+ */
378
+ type AddressActionSet = {
379
+ action: 'agent' | 'message' | 'silence' | null;
380
+ agent_id?: string;
381
+ text?: string;
382
+ repeat?: 'every' | 'once' | {
383
+ after_seconds: number;
384
+ };
385
+ language?: string;
386
+ config?: {
387
+ [key: string]: unknown;
388
+ };
389
+ /**
390
+ * Set only when the address is created by this call.
391
+ */
392
+ display_name?: string;
393
+ };
394
+ type AddressList = {
395
+ data: Array<Address>;
396
+ next_cursor: string | null;
397
+ };
337
398
  type Agent = {
338
399
  /**
339
400
  * Public agent ID (agent_ prefix) — the runtime agent id.
@@ -474,18 +535,6 @@ type StepRules = Array<{
474
535
  step: number;
475
536
  tool_choice?: ToolChoice;
476
537
  }> | null;
477
- type ErrorResponse = {
478
- error: {
479
- code: string;
480
- message: string;
481
- /**
482
- * Optional structured context for the error.
483
- */
484
- details?: {
485
- [key: string]: unknown;
486
- };
487
- };
488
- };
489
538
  type ApiKeyRecord = {
490
539
  /**
491
540
  * Public API key ID (key_ prefix).
@@ -865,6 +914,89 @@ type BoardList = {
865
914
  */
866
915
  next_cursor: string | null;
867
916
  };
917
+ type ChannelSurface = {
918
+ /**
919
+ * Stable, wire-visible id, unique within the kind.
920
+ */
921
+ name: string;
922
+ title: string;
923
+ /**
924
+ * Several humans share one conversation here (a thread, a Slack channel).
925
+ */
926
+ shared: boolean;
927
+ };
928
+ type ChannelPredicate = {
929
+ name: string;
930
+ /**
931
+ * The value shape this predicate's `match` entry expects.
932
+ */
933
+ type: string;
934
+ };
935
+ type ChannelKind = {
936
+ kind: 'whatsapp' | 'discord';
937
+ surfaces: Array<ChannelSurface>;
938
+ predicates: Array<ChannelPredicate>;
939
+ };
940
+ type ChannelKindList = {
941
+ data: Array<ChannelKind>;
942
+ };
943
+ type ChannelRoute = {
944
+ id: string;
945
+ project_id: string;
946
+ channel_id: string;
947
+ /**
948
+ * The surface this route matches, or null for "any" (`GET /v1/channel-kinds`).
949
+ */
950
+ surface: string | null;
951
+ /**
952
+ * The predicate bag, ANDed. `{}` matches every message on this surface.
953
+ */
954
+ match: {
955
+ [key: string]: unknown;
956
+ };
957
+ /**
958
+ * Tiebreak only, after specificity and `surface`.
959
+ */
960
+ priority: number;
961
+ action: 'agent' | 'message' | 'silence';
962
+ agent_id: string | null;
963
+ text: string | null;
964
+ /**
965
+ * Null unless `action` is `message`.
966
+ */
967
+ repeat: 'every' | 'once' | {
968
+ after_seconds: number;
969
+ };
970
+ language: string | null;
971
+ config: {
972
+ [key: string]: unknown;
973
+ } | null;
974
+ status: 'active' | 'disabled';
975
+ created_at: Date;
976
+ updated_at: Date;
977
+ };
978
+ type ChannelRouteWrite = {
979
+ surface?: string | null;
980
+ match?: {
981
+ [key: string]: unknown;
982
+ };
983
+ priority?: number;
984
+ action: 'agent' | 'message' | 'silence';
985
+ agent_id?: string;
986
+ text?: string;
987
+ repeat?: 'every' | 'once' | {
988
+ after_seconds: number;
989
+ };
990
+ language?: string;
991
+ config?: {
992
+ [key: string]: unknown;
993
+ };
994
+ status?: 'active' | 'disabled';
995
+ };
996
+ type ChannelRouteList = {
997
+ data: Array<ChannelRoute>;
998
+ next_cursor: string | null;
999
+ };
868
1000
  type Channel = {
869
1001
  /**
870
1002
  * Public channel ID (chan_ prefix).
@@ -891,6 +1023,7 @@ type Channel = {
891
1023
  */
892
1024
  application_id: string | null;
893
1025
  modes: DiscordModes;
1026
+ default: ChannelDefaultAction;
894
1027
  /**
895
1028
  * Whether an access token is on file (its value is never returned).
896
1029
  */
@@ -911,10 +1044,11 @@ type Channel = {
911
1044
  * as a secret on the runtime; deployments without `CHANNEL_TOKEN_KEY` configured
912
1045
  * return `501`.
913
1046
  *
914
- * No credential value is ever returned.
1047
+ * No credential value is ever returned. `default` is required (CHANNELS-ROUTING.md §3.3.1) — connecting a channel without saying what it does when nothing else matches is the misconfiguration, so it is caught here rather than discovered as silence in production.
915
1048
  *
916
1049
  */
917
1050
  type ChannelCreate = {
1051
+ default: ChannelDefaultActionInput;
918
1052
  channel?: 'whatsapp' | 'discord';
919
1053
  /**
920
1054
  * Required for `whatsapp`.
@@ -952,10 +1086,11 @@ type ChannelCreate = {
952
1086
  modes?: DiscordModes;
953
1087
  };
954
1088
  /**
955
- * At least one field is required. For WhatsApp, `access_token` rotates the write-only credential; for Discord, `bot_token` rotates the sealed bot token and `modes` turns the gateway flows on or off. The worker picks either change up on its next poll and reconnects.
1089
+ * At least one field is required. For WhatsApp, `access_token` rotates the write-only credential; for Discord, `bot_token` rotates the sealed bot token and `modes` turns the gateway flows on or off. `default` replaces the channel's default action whole when present. The worker picks either change up on its next poll and reconnects.
956
1090
  *
957
1091
  */
958
1092
  type ChannelUpdate = {
1093
+ default?: ChannelDefaultActionInput;
959
1094
  /**
960
1095
  * WhatsApp. Write-only. Replaces the stored credential.
961
1096
  */
@@ -992,48 +1127,53 @@ type ChannelList = {
992
1127
  */
993
1128
  next_cursor: string | null;
994
1129
  };
995
- type ChannelBinding = {
1130
+ /**
1131
+ * What happens when no route matches and the address has no action of its own (CHANNELS-ROUTING.md §3.3.1) — the same shape a `route` (`routes.yaml`) and an `address` (`addresses.yaml`) carry. For a Discord channel, `config.discord.allowed_role_ids` / `allowed_user_ids` restrict who may invoke the agent in a server — either list admits, empty or absent lists mean everyone, decided before the agent is invoked so an unlisted member costs nothing.
1132
+ *
1133
+ */
1134
+ type ChannelDefaultAction = {
1135
+ action: 'agent' | 'message' | 'silence';
996
1136
  /**
997
- * Public binding ID (bind_ prefix).
1137
+ * The agent that answers, when `action` is `agent`.
998
1138
  */
999
- id: string;
1000
- project_id: string;
1001
- channel_id: string;
1139
+ agent_id: string | null;
1002
1140
  /**
1003
- * The agent that answers on the channel.
1141
+ * The fixed text delivered, when `action` is `message`.
1004
1142
  */
1005
- agent_id: string;
1143
+ text: string | null;
1144
+ /**
1145
+ * Null unless `action` is `message`. How often it fires (CHANNELS-ROUTING.md §3.3.3): `every` (default), `once`, or `{ after_seconds }`. Null unless `action` is `message`.
1146
+ *
1147
+ */
1148
+ repeat: 'every' | 'once' | {
1149
+ after_seconds: number;
1150
+ };
1006
1151
  /**
1007
1152
  * Preferred reply language; null lets the agent decide.
1008
1153
  */
1009
1154
  language: string | null;
1010
1155
  /**
1011
- * Per-binding config bag — media handling, persona overrides, business hours, fallback.
1012
- * For a Discord channel it also carries who may invoke the agent in a server: `discord.allowed_role_ids` and `discord.allowed_user_ids`. A member is admitted by matching either list, and empty or absent lists mean everyone. Admission is decided from the roles the inbound message carries, before the agent is invoked, so an unlisted member costs nothing.
1013
- *
1156
+ * Conversation config bag — media handling, persona overrides, the Discord allowlist.
1014
1157
  */
1015
1158
  config: {
1016
1159
  [key: string]: unknown;
1017
1160
  } | null;
1018
- status: 'active' | 'disabled';
1019
- created_at: Date;
1020
- updated_at: Date;
1021
1161
  };
1022
1162
  /**
1023
- * Create or replace the channel's binding. `agent_id` is required; the other fields default to null / null / active when absent (full replace).
1163
+ * `action` is required; `agent_id` is required when it is `agent`, `text` when it is `message`. `repeat` is only valid alongside `action: message`.
1024
1164
  *
1025
1165
  */
1026
- type ChannelBindingSet = {
1027
- agent_id: string;
1028
- language?: string | null;
1029
- /**
1030
- * Per-binding config bag. For Discord, `discord.allowed_role_ids` and `discord.allowed_user_ids` restrict who may invoke the agent in a server — either list admits, and empty or absent lists mean everyone.
1031
- *
1032
- */
1166
+ type ChannelDefaultActionInput = {
1167
+ action: 'agent' | 'message' | 'silence';
1168
+ agent_id?: string;
1169
+ text?: string;
1170
+ repeat?: 'every' | 'once' | {
1171
+ after_seconds: number;
1172
+ };
1173
+ language?: string;
1033
1174
  config?: {
1034
1175
  [key: string]: unknown;
1035
- } | null;
1036
- status?: 'active' | 'disabled';
1176
+ };
1037
1177
  };
1038
1178
  /**
1039
1179
  * An address's dialogue on a channel — naturali-native, keyed by (channel, address) so the same identifier never opens two conversations, and mapped 1:1 to the runtime session that carries the message history.
@@ -1048,6 +1188,11 @@ type Conversation = {
1048
1188
  *
1049
1189
  */
1050
1190
  address_id: string;
1191
+ /**
1192
+ * The route this conversation's action came from — a real route id, or one of the two sentinels for "the address's own action" / "the channel default" (CHANNELS-ROUTING.md §3.8). A message resolving to a different action opens a new conversation rather than re-pointing this one.
1193
+ *
1194
+ */
1195
+ route_id: string;
1051
1196
  /**
1052
1197
  * The prefixed, self-describing channel identifier (`whatsapp:dm:…`, `discord:dm:…`, `discord:thread:…`). Read through from the address above.
1053
1198
  *
@@ -2521,6 +2666,15 @@ type Limit = number;
2521
2666
  * Opaque pagination cursor from a previous response's next_cursor.
2522
2667
  */
2523
2668
  type Cursor = string;
2669
+ /**
2670
+ * Project public ID (proj_ prefix).
2671
+ */
2672
+ type ProjectId = string;
2673
+ /**
2674
+ * The prefixed, self-describing channel identifier (`whatsapp:dm:<phone>`, `discord:dm:<user_id>`, `discord:thread:<guild_id>:<channel_id>`), URL-encoded.
2675
+ *
2676
+ */
2677
+ type Identifier = string;
2524
2678
  /**
2525
2679
  * Client-supplied key to make this mutating POST idempotent.
2526
2680
  */
@@ -2530,10 +2684,6 @@ type IdempotencyKey = string;
2530
2684
  *
2531
2685
  */
2532
2686
  type Force = boolean;
2533
- /**
2534
- * Project public ID (proj_ prefix).
2535
- */
2536
- type ProjectId = string;
2537
2687
  /**
2538
2688
  * Agent public ID (agent_ prefix).
2539
2689
  */
@@ -2558,6 +2708,10 @@ type BoardId = string;
2558
2708
  * Channel public ID (chan_ prefix).
2559
2709
  */
2560
2710
  type ChannelId = string;
2711
+ /**
2712
+ * Route public ID (route_ prefix).
2713
+ */
2714
+ type RouteId = string;
2561
2715
  /**
2562
2716
  * Conversation public ID (conv_ prefix).
2563
2717
  */
@@ -2634,7 +2788,7 @@ type WebhookId = string;
2634
2788
  * Delivery public ID (whd_ prefix).
2635
2789
  */
2636
2790
  type DeliveryId = string;
2637
- type ListAgentsData = {
2791
+ type ListAddressesData = {
2638
2792
  body?: never;
2639
2793
  path: {
2640
2794
  /**
@@ -2652,9 +2806,9 @@ type ListAgentsData = {
2652
2806
  */
2653
2807
  cursor?: string;
2654
2808
  };
2655
- url: '/v1/projects/{project_id}/agents';
2809
+ url: '/v1/projects/{project_id}/addresses';
2656
2810
  };
2657
- type ListAgentsErrors = {
2811
+ type ListAddressesErrors = {
2658
2812
  /**
2659
2813
  * Missing or invalid credentials.
2660
2814
  */
@@ -2664,36 +2818,31 @@ type ListAgentsErrors = {
2664
2818
  */
2665
2819
  404: ErrorResponse;
2666
2820
  };
2667
- type ListAgentsError = ListAgentsErrors[keyof ListAgentsErrors];
2668
- type ListAgentsResponses = {
2821
+ type ListAddressesError = ListAddressesErrors[keyof ListAddressesErrors];
2822
+ type ListAddressesResponses = {
2669
2823
  /**
2670
- * A page of agents.
2824
+ * A page of addresses.
2671
2825
  */
2672
- 200: AgentList;
2826
+ 200: AddressList;
2673
2827
  };
2674
- type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses];
2675
- type CreateAgentData = {
2676
- body: AgentCreate;
2677
- headers?: {
2678
- /**
2679
- * Client-supplied key to make this mutating POST idempotent.
2680
- */
2681
- 'Idempotency-Key'?: string;
2682
- };
2828
+ type ListAddressesResponse = ListAddressesResponses[keyof ListAddressesResponses];
2829
+ type DeleteAddressData = {
2830
+ body?: never;
2683
2831
  path: {
2684
2832
  /**
2685
2833
  * Project public ID (proj_ prefix).
2686
2834
  */
2687
2835
  project_id: string;
2836
+ /**
2837
+ * The prefixed, self-describing channel identifier (`whatsapp:dm:<phone>`, `discord:dm:<user_id>`, `discord:thread:<guild_id>:<channel_id>`), URL-encoded.
2838
+ *
2839
+ */
2840
+ identifier: string;
2688
2841
  };
2689
2842
  query?: never;
2690
- url: '/v1/projects/{project_id}/agents';
2843
+ url: '/v1/projects/{project_id}/addresses/{identifier}';
2691
2844
  };
2692
- type CreateAgentErrors = {
2693
- /**
2694
- * The request was malformed or failed validation.
2695
- */
2696
- 400: ErrorResponse;
2845
+ type DeleteAddressErrors = {
2697
2846
  /**
2698
2847
  * Missing or invalid credentials.
2699
2848
  */
@@ -2702,20 +2851,16 @@ type CreateAgentErrors = {
2702
2851
  * The resource does not exist (existence is not leaked).
2703
2852
  */
2704
2853
  404: ErrorResponse;
2705
- /**
2706
- * The upstream runtime could not complete the operation.
2707
- */
2708
- 502: ErrorResponse;
2709
2854
  };
2710
- type CreateAgentError = CreateAgentErrors[keyof CreateAgentErrors];
2711
- type CreateAgentResponses = {
2855
+ type DeleteAddressError = DeleteAddressErrors[keyof DeleteAddressErrors];
2856
+ type DeleteAddressResponses = {
2712
2857
  /**
2713
- * Agent created.
2858
+ * Address erased.
2714
2859
  */
2715
- 201: Agent;
2860
+ 204: void;
2716
2861
  };
2717
- type CreateAgentResponse = CreateAgentResponses[keyof CreateAgentResponses];
2718
- type DeleteAgentData = {
2862
+ type DeleteAddressResponse = DeleteAddressResponses[keyof DeleteAddressResponses];
2863
+ type GetAddressData = {
2719
2864
  body?: never;
2720
2865
  path: {
2721
2866
  /**
@@ -2723,20 +2868,15 @@ type DeleteAgentData = {
2723
2868
  */
2724
2869
  project_id: string;
2725
2870
  /**
2726
- * Agent public ID (agent_ prefix).
2727
- */
2728
- agent_id: string;
2729
- };
2730
- query?: {
2731
- /**
2732
- * When true, delete the agent together with its dependent generations and traces instead of returning 409. Destructive and irreversible.
2871
+ * The prefixed, self-describing channel identifier (`whatsapp:dm:<phone>`, `discord:dm:<user_id>`, `discord:thread:<guild_id>:<channel_id>`), URL-encoded.
2733
2872
  *
2734
2873
  */
2735
- force?: boolean;
2874
+ identifier: string;
2736
2875
  };
2737
- url: '/v1/projects/{project_id}/agents/{agent_id}';
2876
+ query?: never;
2877
+ url: '/v1/projects/{project_id}/addresses/{identifier}';
2738
2878
  };
2739
- type DeleteAgentErrors = {
2879
+ type GetAddressErrors = {
2740
2880
  /**
2741
2881
  * Missing or invalid credentials.
2742
2882
  */
@@ -2745,39 +2885,36 @@ type DeleteAgentErrors = {
2745
2885
  * The resource does not exist (existence is not leaked).
2746
2886
  */
2747
2887
  404: ErrorResponse;
2748
- /**
2749
- * The request conflicts with the resource's current state.
2750
- */
2751
- 409: ErrorResponse;
2752
- /**
2753
- * The upstream runtime could not complete the operation.
2754
- */
2755
- 502: ErrorResponse;
2756
2888
  };
2757
- type DeleteAgentError = DeleteAgentErrors[keyof DeleteAgentErrors];
2758
- type DeleteAgentResponses = {
2889
+ type GetAddressError = GetAddressErrors[keyof GetAddressErrors];
2890
+ type GetAddressResponses = {
2759
2891
  /**
2760
- * Agent deleted.
2892
+ * The address.
2761
2893
  */
2762
- 204: void;
2894
+ 200: Address;
2763
2895
  };
2764
- type DeleteAgentResponse = DeleteAgentResponses[keyof DeleteAgentResponses];
2765
- type GetAgentData = {
2766
- body?: never;
2896
+ type GetAddressResponse = GetAddressResponses[keyof GetAddressResponses];
2897
+ type SetAddressActionData = {
2898
+ body: AddressActionSet;
2767
2899
  path: {
2768
2900
  /**
2769
2901
  * Project public ID (proj_ prefix).
2770
2902
  */
2771
2903
  project_id: string;
2772
2904
  /**
2773
- * Agent public ID (agent_ prefix).
2905
+ * The prefixed, self-describing channel identifier (`whatsapp:dm:<phone>`, `discord:dm:<user_id>`, `discord:thread:<guild_id>:<channel_id>`), URL-encoded.
2906
+ *
2774
2907
  */
2775
- agent_id: string;
2908
+ identifier: string;
2776
2909
  };
2777
2910
  query?: never;
2778
- url: '/v1/projects/{project_id}/agents/{agent_id}';
2911
+ url: '/v1/projects/{project_id}/addresses/{identifier}';
2779
2912
  };
2780
- type GetAgentErrors = {
2913
+ type SetAddressActionErrors = {
2914
+ /**
2915
+ * The request was malformed or failed validation.
2916
+ */
2917
+ 400: ErrorResponse;
2781
2918
  /**
2782
2919
  * Missing or invalid credentials.
2783
2920
  */
@@ -2787,34 +2924,44 @@ type GetAgentErrors = {
2787
2924
  */
2788
2925
  404: ErrorResponse;
2789
2926
  };
2790
- type GetAgentError = GetAgentErrors[keyof GetAgentErrors];
2791
- type GetAgentResponses = {
2927
+ type SetAddressActionError = SetAddressActionErrors[keyof SetAddressActionErrors];
2928
+ type SetAddressActionResponses = {
2792
2929
  /**
2793
- * Agent details.
2930
+ * Action updated.
2794
2931
  */
2795
- 200: Agent;
2932
+ 200: Address;
2933
+ /**
2934
+ * Address created with this action.
2935
+ */
2936
+ 201: Address;
2796
2937
  };
2797
- type GetAgentResponse = GetAgentResponses[keyof GetAgentResponses];
2798
- type UpdateAgentData = {
2799
- body: AgentUpdate;
2938
+ type SetAddressActionResponse = SetAddressActionResponses[keyof SetAddressActionResponses];
2939
+ type ListAddressConversationsData = {
2940
+ body?: never;
2800
2941
  path: {
2801
2942
  /**
2802
2943
  * Project public ID (proj_ prefix).
2803
2944
  */
2804
2945
  project_id: string;
2805
2946
  /**
2806
- * Agent public ID (agent_ prefix).
2947
+ * The prefixed, self-describing channel identifier (`whatsapp:dm:<phone>`, `discord:dm:<user_id>`, `discord:thread:<guild_id>:<channel_id>`), URL-encoded.
2948
+ *
2807
2949
  */
2808
- agent_id: string;
2950
+ identifier: string;
2809
2951
  };
2810
- query?: never;
2811
- url: '/v1/projects/{project_id}/agents/{agent_id}';
2952
+ query?: {
2953
+ /**
2954
+ * Maximum items per page.
2955
+ */
2956
+ limit?: number;
2957
+ /**
2958
+ * Opaque pagination cursor from a previous response's next_cursor.
2959
+ */
2960
+ cursor?: string;
2961
+ };
2962
+ url: '/v1/projects/{project_id}/addresses/{identifier}/conversations';
2812
2963
  };
2813
- type UpdateAgentErrors = {
2814
- /**
2815
- * The request was malformed or failed validation.
2816
- */
2817
- 400: ErrorResponse;
2964
+ type ListAddressConversationsErrors = {
2818
2965
  /**
2819
2966
  * Missing or invalid credentials.
2820
2967
  */
@@ -2823,18 +2970,221 @@ type UpdateAgentErrors = {
2823
2970
  * The resource does not exist (existence is not leaked).
2824
2971
  */
2825
2972
  404: ErrorResponse;
2826
- /**
2827
- * The upstream runtime could not complete the operation.
2828
- */
2829
- 502: ErrorResponse;
2830
2973
  };
2831
- type UpdateAgentError = UpdateAgentErrors[keyof UpdateAgentErrors];
2832
- type UpdateAgentResponses = {
2974
+ type ListAddressConversationsError = ListAddressConversationsErrors[keyof ListAddressConversationsErrors];
2975
+ type ListAddressConversationsResponses = {
2833
2976
  /**
2834
- * Agent updated.
2977
+ * A page of conversations.
2835
2978
  */
2836
- 200: Agent;
2837
- };
2979
+ 200: {
2980
+ data: Array<{
2981
+ [key: string]: unknown;
2982
+ }>;
2983
+ next_cursor: string | null;
2984
+ };
2985
+ };
2986
+ type ListAddressConversationsResponse = ListAddressConversationsResponses[keyof ListAddressConversationsResponses];
2987
+ type ListAgentsData = {
2988
+ body?: never;
2989
+ path: {
2990
+ /**
2991
+ * Project public ID (proj_ prefix).
2992
+ */
2993
+ project_id: string;
2994
+ };
2995
+ query?: {
2996
+ /**
2997
+ * Maximum items per page.
2998
+ */
2999
+ limit?: number;
3000
+ /**
3001
+ * Opaque pagination cursor from a previous response's next_cursor.
3002
+ */
3003
+ cursor?: string;
3004
+ };
3005
+ url: '/v1/projects/{project_id}/agents';
3006
+ };
3007
+ type ListAgentsErrors = {
3008
+ /**
3009
+ * Missing or invalid credentials.
3010
+ */
3011
+ 401: ErrorResponse;
3012
+ /**
3013
+ * The resource does not exist (existence is not leaked).
3014
+ */
3015
+ 404: ErrorResponse;
3016
+ };
3017
+ type ListAgentsError = ListAgentsErrors[keyof ListAgentsErrors];
3018
+ type ListAgentsResponses = {
3019
+ /**
3020
+ * A page of agents.
3021
+ */
3022
+ 200: AgentList;
3023
+ };
3024
+ type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses];
3025
+ type CreateAgentData = {
3026
+ body: AgentCreate;
3027
+ headers?: {
3028
+ /**
3029
+ * Client-supplied key to make this mutating POST idempotent.
3030
+ */
3031
+ 'Idempotency-Key'?: string;
3032
+ };
3033
+ path: {
3034
+ /**
3035
+ * Project public ID (proj_ prefix).
3036
+ */
3037
+ project_id: string;
3038
+ };
3039
+ query?: never;
3040
+ url: '/v1/projects/{project_id}/agents';
3041
+ };
3042
+ type CreateAgentErrors = {
3043
+ /**
3044
+ * The request was malformed or failed validation.
3045
+ */
3046
+ 400: ErrorResponse;
3047
+ /**
3048
+ * Missing or invalid credentials.
3049
+ */
3050
+ 401: ErrorResponse;
3051
+ /**
3052
+ * The resource does not exist (existence is not leaked).
3053
+ */
3054
+ 404: ErrorResponse;
3055
+ /**
3056
+ * The upstream runtime could not complete the operation.
3057
+ */
3058
+ 502: ErrorResponse;
3059
+ };
3060
+ type CreateAgentError = CreateAgentErrors[keyof CreateAgentErrors];
3061
+ type CreateAgentResponses = {
3062
+ /**
3063
+ * Agent created.
3064
+ */
3065
+ 201: Agent;
3066
+ };
3067
+ type CreateAgentResponse = CreateAgentResponses[keyof CreateAgentResponses];
3068
+ type DeleteAgentData = {
3069
+ body?: never;
3070
+ path: {
3071
+ /**
3072
+ * Project public ID (proj_ prefix).
3073
+ */
3074
+ project_id: string;
3075
+ /**
3076
+ * Agent public ID (agent_ prefix).
3077
+ */
3078
+ agent_id: string;
3079
+ };
3080
+ query?: {
3081
+ /**
3082
+ * When true, delete the agent together with its dependent generations and traces instead of returning 409. Destructive and irreversible.
3083
+ *
3084
+ */
3085
+ force?: boolean;
3086
+ };
3087
+ url: '/v1/projects/{project_id}/agents/{agent_id}';
3088
+ };
3089
+ type DeleteAgentErrors = {
3090
+ /**
3091
+ * Missing or invalid credentials.
3092
+ */
3093
+ 401: ErrorResponse;
3094
+ /**
3095
+ * The resource does not exist (existence is not leaked).
3096
+ */
3097
+ 404: ErrorResponse;
3098
+ /**
3099
+ * The request conflicts with the resource's current state.
3100
+ */
3101
+ 409: ErrorResponse;
3102
+ /**
3103
+ * The upstream runtime could not complete the operation.
3104
+ */
3105
+ 502: ErrorResponse;
3106
+ };
3107
+ type DeleteAgentError = DeleteAgentErrors[keyof DeleteAgentErrors];
3108
+ type DeleteAgentResponses = {
3109
+ /**
3110
+ * Agent deleted.
3111
+ */
3112
+ 204: void;
3113
+ };
3114
+ type DeleteAgentResponse = DeleteAgentResponses[keyof DeleteAgentResponses];
3115
+ type GetAgentData = {
3116
+ body?: never;
3117
+ path: {
3118
+ /**
3119
+ * Project public ID (proj_ prefix).
3120
+ */
3121
+ project_id: string;
3122
+ /**
3123
+ * Agent public ID (agent_ prefix).
3124
+ */
3125
+ agent_id: string;
3126
+ };
3127
+ query?: never;
3128
+ url: '/v1/projects/{project_id}/agents/{agent_id}';
3129
+ };
3130
+ type GetAgentErrors = {
3131
+ /**
3132
+ * Missing or invalid credentials.
3133
+ */
3134
+ 401: ErrorResponse;
3135
+ /**
3136
+ * The resource does not exist (existence is not leaked).
3137
+ */
3138
+ 404: ErrorResponse;
3139
+ };
3140
+ type GetAgentError = GetAgentErrors[keyof GetAgentErrors];
3141
+ type GetAgentResponses = {
3142
+ /**
3143
+ * Agent details.
3144
+ */
3145
+ 200: Agent;
3146
+ };
3147
+ type GetAgentResponse = GetAgentResponses[keyof GetAgentResponses];
3148
+ type UpdateAgentData = {
3149
+ body: AgentUpdate;
3150
+ path: {
3151
+ /**
3152
+ * Project public ID (proj_ prefix).
3153
+ */
3154
+ project_id: string;
3155
+ /**
3156
+ * Agent public ID (agent_ prefix).
3157
+ */
3158
+ agent_id: string;
3159
+ };
3160
+ query?: never;
3161
+ url: '/v1/projects/{project_id}/agents/{agent_id}';
3162
+ };
3163
+ type UpdateAgentErrors = {
3164
+ /**
3165
+ * The request was malformed or failed validation.
3166
+ */
3167
+ 400: ErrorResponse;
3168
+ /**
3169
+ * Missing or invalid credentials.
3170
+ */
3171
+ 401: ErrorResponse;
3172
+ /**
3173
+ * The resource does not exist (existence is not leaked).
3174
+ */
3175
+ 404: ErrorResponse;
3176
+ /**
3177
+ * The upstream runtime could not complete the operation.
3178
+ */
3179
+ 502: ErrorResponse;
3180
+ };
3181
+ type UpdateAgentError = UpdateAgentErrors[keyof UpdateAgentErrors];
3182
+ type UpdateAgentResponses = {
3183
+ /**
3184
+ * Agent updated.
3185
+ */
3186
+ 200: Agent;
3187
+ };
2838
3188
  type UpdateAgentResponse = UpdateAgentResponses[keyof UpdateAgentResponses];
2839
3189
  type ListApiKeysData = {
2840
3190
  body?: never;
@@ -3472,9 +3822,309 @@ type UpdateBoardResponses = {
3472
3822
  /**
3473
3823
  * Board updated.
3474
3824
  */
3475
- 200: Board;
3825
+ 200: Board;
3826
+ };
3827
+ type UpdateBoardResponse = UpdateBoardResponses[keyof UpdateBoardResponses];
3828
+ type ListChannelKindsData = {
3829
+ body?: never;
3830
+ path?: never;
3831
+ query?: never;
3832
+ url: '/v1/channel-kinds';
3833
+ };
3834
+ type ListChannelKindsErrors = {
3835
+ /**
3836
+ * Missing or invalid credentials.
3837
+ */
3838
+ 401: ErrorResponse;
3839
+ };
3840
+ type ListChannelKindsError = ListChannelKindsErrors[keyof ListChannelKindsErrors];
3841
+ type ListChannelKindsResponses = {
3842
+ /**
3843
+ * Every channel kind.
3844
+ */
3845
+ 200: ChannelKindList;
3846
+ };
3847
+ type ListChannelKindsResponse = ListChannelKindsResponses[keyof ListChannelKindsResponses];
3848
+ type ListChannelRoutesData = {
3849
+ body?: never;
3850
+ path: {
3851
+ /**
3852
+ * Project public ID (proj_ prefix).
3853
+ */
3854
+ project_id: string;
3855
+ /**
3856
+ * Channel public ID (chan_ prefix).
3857
+ */
3858
+ channel_id: string;
3859
+ };
3860
+ query?: {
3861
+ /**
3862
+ * Maximum items per page.
3863
+ */
3864
+ limit?: number;
3865
+ /**
3866
+ * Opaque pagination cursor from a previous response's next_cursor.
3867
+ */
3868
+ cursor?: string;
3869
+ };
3870
+ url: '/v1/projects/{project_id}/channels/{channel_id}/routes';
3871
+ };
3872
+ type ListChannelRoutesErrors = {
3873
+ /**
3874
+ * Missing or invalid credentials.
3875
+ */
3876
+ 401: ErrorResponse;
3877
+ /**
3878
+ * The resource does not exist (existence is not leaked).
3879
+ */
3880
+ 404: ErrorResponse;
3881
+ };
3882
+ type ListChannelRoutesError = ListChannelRoutesErrors[keyof ListChannelRoutesErrors];
3883
+ type ListChannelRoutesResponses = {
3884
+ /**
3885
+ * A page of routes.
3886
+ */
3887
+ 200: ChannelRouteList;
3888
+ };
3889
+ type ListChannelRoutesResponse = ListChannelRoutesResponses[keyof ListChannelRoutesResponses];
3890
+ type CreateChannelRouteData = {
3891
+ body: ChannelRouteWrite;
3892
+ path: {
3893
+ /**
3894
+ * Project public ID (proj_ prefix).
3895
+ */
3896
+ project_id: string;
3897
+ /**
3898
+ * Channel public ID (chan_ prefix).
3899
+ */
3900
+ channel_id: string;
3901
+ };
3902
+ query?: never;
3903
+ url: '/v1/projects/{project_id}/channels/{channel_id}/routes';
3904
+ };
3905
+ type CreateChannelRouteErrors = {
3906
+ /**
3907
+ * The request was malformed or failed validation.
3908
+ */
3909
+ 400: ErrorResponse;
3910
+ /**
3911
+ * Missing or invalid credentials.
3912
+ */
3913
+ 401: ErrorResponse;
3914
+ /**
3915
+ * The resource does not exist (existence is not leaked).
3916
+ */
3917
+ 404: ErrorResponse;
3918
+ /**
3919
+ * The request conflicts with the resource's current state.
3920
+ */
3921
+ 409: ErrorResponse;
3922
+ };
3923
+ type CreateChannelRouteError = CreateChannelRouteErrors[keyof CreateChannelRouteErrors];
3924
+ type CreateChannelRouteResponses = {
3925
+ /**
3926
+ * Route created.
3927
+ */
3928
+ 201: ChannelRoute;
3929
+ };
3930
+ type CreateChannelRouteResponse = CreateChannelRouteResponses[keyof CreateChannelRouteResponses];
3931
+ type DeleteChannelRouteData = {
3932
+ body?: never;
3933
+ path: {
3934
+ /**
3935
+ * Project public ID (proj_ prefix).
3936
+ */
3937
+ project_id: string;
3938
+ /**
3939
+ * Channel public ID (chan_ prefix).
3940
+ */
3941
+ channel_id: string;
3942
+ /**
3943
+ * Route public ID (route_ prefix).
3944
+ */
3945
+ route_id: string;
3946
+ };
3947
+ query?: never;
3948
+ url: '/v1/projects/{project_id}/channels/{channel_id}/routes/{route_id}';
3949
+ };
3950
+ type DeleteChannelRouteErrors = {
3951
+ /**
3952
+ * Missing or invalid credentials.
3953
+ */
3954
+ 401: ErrorResponse;
3955
+ /**
3956
+ * The resource does not exist (existence is not leaked).
3957
+ */
3958
+ 404: ErrorResponse;
3959
+ };
3960
+ type DeleteChannelRouteError = DeleteChannelRouteErrors[keyof DeleteChannelRouteErrors];
3961
+ type DeleteChannelRouteResponses = {
3962
+ /**
3963
+ * Route deleted.
3964
+ */
3965
+ 204: void;
3966
+ };
3967
+ type DeleteChannelRouteResponse = DeleteChannelRouteResponses[keyof DeleteChannelRouteResponses];
3968
+ type GetChannelRouteData = {
3969
+ body?: never;
3970
+ path: {
3971
+ /**
3972
+ * Project public ID (proj_ prefix).
3973
+ */
3974
+ project_id: string;
3975
+ /**
3976
+ * Channel public ID (chan_ prefix).
3977
+ */
3978
+ channel_id: string;
3979
+ /**
3980
+ * Route public ID (route_ prefix).
3981
+ */
3982
+ route_id: string;
3983
+ };
3984
+ query?: never;
3985
+ url: '/v1/projects/{project_id}/channels/{channel_id}/routes/{route_id}';
3986
+ };
3987
+ type GetChannelRouteErrors = {
3988
+ /**
3989
+ * Missing or invalid credentials.
3990
+ */
3991
+ 401: ErrorResponse;
3992
+ /**
3993
+ * The resource does not exist (existence is not leaked).
3994
+ */
3995
+ 404: ErrorResponse;
3996
+ };
3997
+ type GetChannelRouteError = GetChannelRouteErrors[keyof GetChannelRouteErrors];
3998
+ type GetChannelRouteResponses = {
3999
+ /**
4000
+ * The route.
4001
+ */
4002
+ 200: ChannelRoute;
4003
+ };
4004
+ type GetChannelRouteResponse = GetChannelRouteResponses[keyof GetChannelRouteResponses];
4005
+ type UpdateChannelRouteData = {
4006
+ body: ChannelRouteWrite;
4007
+ path: {
4008
+ /**
4009
+ * Project public ID (proj_ prefix).
4010
+ */
4011
+ project_id: string;
4012
+ /**
4013
+ * Channel public ID (chan_ prefix).
4014
+ */
4015
+ channel_id: string;
4016
+ /**
4017
+ * Route public ID (route_ prefix).
4018
+ */
4019
+ route_id: string;
4020
+ };
4021
+ query?: never;
4022
+ url: '/v1/projects/{project_id}/channels/{channel_id}/routes/{route_id}';
4023
+ };
4024
+ type UpdateChannelRouteErrors = {
4025
+ /**
4026
+ * The request was malformed or failed validation.
4027
+ */
4028
+ 400: ErrorResponse;
4029
+ /**
4030
+ * Missing or invalid credentials.
4031
+ */
4032
+ 401: ErrorResponse;
4033
+ /**
4034
+ * The resource does not exist (existence is not leaked).
4035
+ */
4036
+ 404: ErrorResponse;
4037
+ /**
4038
+ * The request conflicts with the resource's current state.
4039
+ */
4040
+ 409: ErrorResponse;
4041
+ };
4042
+ type UpdateChannelRouteError = UpdateChannelRouteErrors[keyof UpdateChannelRouteErrors];
4043
+ type UpdateChannelRouteResponses = {
4044
+ /**
4045
+ * Route replaced.
4046
+ */
4047
+ 200: ChannelRoute;
4048
+ };
4049
+ type UpdateChannelRouteResponse = UpdateChannelRouteResponses[keyof UpdateChannelRouteResponses];
4050
+ type ListProjectChannelRoutesData = {
4051
+ body?: never;
4052
+ path: {
4053
+ /**
4054
+ * Project public ID (proj_ prefix).
4055
+ */
4056
+ project_id: string;
4057
+ };
4058
+ query?: never;
4059
+ url: '/v1/projects/{project_id}/channel-routes';
4060
+ };
4061
+ type ListProjectChannelRoutesErrors = {
4062
+ /**
4063
+ * Missing or invalid credentials.
4064
+ */
4065
+ 401: ErrorResponse;
4066
+ /**
4067
+ * The resource does not exist (existence is not leaked).
4068
+ */
4069
+ 404: ErrorResponse;
4070
+ };
4071
+ type ListProjectChannelRoutesError = ListProjectChannelRoutesErrors[keyof ListProjectChannelRoutesErrors];
4072
+ type ListProjectChannelRoutesResponses = {
4073
+ /**
4074
+ * Every route in the project.
4075
+ */
4076
+ 200: {
4077
+ data: Array<ChannelRoute>;
4078
+ };
4079
+ };
4080
+ type ListProjectChannelRoutesResponse = ListProjectChannelRoutesResponses[keyof ListProjectChannelRoutesResponses];
4081
+ type CreateConversationData = {
4082
+ body: {
4083
+ channel_id: string;
4084
+ /**
4085
+ * The bare, channel-native identifier (a phone number, a Discord user id).
4086
+ */
4087
+ identifier: string;
4088
+ };
4089
+ path: {
4090
+ /**
4091
+ * Project public ID (proj_ prefix).
4092
+ */
4093
+ project_id: string;
4094
+ };
4095
+ query?: never;
4096
+ url: '/v1/projects/{project_id}/conversations';
4097
+ };
4098
+ type CreateConversationErrors = {
4099
+ /**
4100
+ * The request was malformed or failed validation.
4101
+ */
4102
+ 400: ErrorResponse;
4103
+ /**
4104
+ * Missing or invalid credentials.
4105
+ */
4106
+ 401: ErrorResponse;
4107
+ /**
4108
+ * The resource does not exist (existence is not leaked).
4109
+ */
4110
+ 404: ErrorResponse;
4111
+ /**
4112
+ * The request conflicts with the resource's current state.
4113
+ */
4114
+ 409: ErrorResponse;
4115
+ /**
4116
+ * The upstream runtime could not complete the operation.
4117
+ */
4118
+ 502: ErrorResponse;
4119
+ };
4120
+ type CreateConversationError = CreateConversationErrors[keyof CreateConversationErrors];
4121
+ type CreateConversationResponses = {
4122
+ /**
4123
+ * Conversation opened (or already existing).
4124
+ */
4125
+ 201: Conversation;
3476
4126
  };
3477
- type UpdateBoardResponse = UpdateBoardResponses[keyof UpdateBoardResponses];
4127
+ type CreateConversationResponse = CreateConversationResponses[keyof CreateConversationResponses];
3478
4128
  type ListChannelsData = {
3479
4129
  body?: never;
3480
4130
  path: {
@@ -3676,113 +4326,6 @@ type UpdateChannelResponses = {
3676
4326
  200: Channel;
3677
4327
  };
3678
4328
  type UpdateChannelResponse = UpdateChannelResponses[keyof UpdateChannelResponses];
3679
- type DeleteChannelBindingData = {
3680
- body?: never;
3681
- path: {
3682
- /**
3683
- * Project public ID (proj_ prefix).
3684
- */
3685
- project_id: string;
3686
- /**
3687
- * Channel public ID (chan_ prefix).
3688
- */
3689
- channel_id: string;
3690
- };
3691
- query?: never;
3692
- url: '/v1/projects/{project_id}/channels/{channel_id}/binding';
3693
- };
3694
- type DeleteChannelBindingErrors = {
3695
- /**
3696
- * Missing or invalid credentials.
3697
- */
3698
- 401: ErrorResponse;
3699
- /**
3700
- * The resource does not exist (existence is not leaked).
3701
- */
3702
- 404: ErrorResponse;
3703
- };
3704
- type DeleteChannelBindingError = DeleteChannelBindingErrors[keyof DeleteChannelBindingErrors];
3705
- type DeleteChannelBindingResponses = {
3706
- /**
3707
- * Binding removed.
3708
- */
3709
- 204: void;
3710
- };
3711
- type DeleteChannelBindingResponse = DeleteChannelBindingResponses[keyof DeleteChannelBindingResponses];
3712
- type GetChannelBindingData = {
3713
- body?: never;
3714
- path: {
3715
- /**
3716
- * Project public ID (proj_ prefix).
3717
- */
3718
- project_id: string;
3719
- /**
3720
- * Channel public ID (chan_ prefix).
3721
- */
3722
- channel_id: string;
3723
- };
3724
- query?: never;
3725
- url: '/v1/projects/{project_id}/channels/{channel_id}/binding';
3726
- };
3727
- type GetChannelBindingErrors = {
3728
- /**
3729
- * Missing or invalid credentials.
3730
- */
3731
- 401: ErrorResponse;
3732
- /**
3733
- * The resource does not exist (existence is not leaked).
3734
- */
3735
- 404: ErrorResponse;
3736
- };
3737
- type GetChannelBindingError = GetChannelBindingErrors[keyof GetChannelBindingErrors];
3738
- type GetChannelBindingResponses = {
3739
- /**
3740
- * The channel's agent binding.
3741
- */
3742
- 200: ChannelBinding;
3743
- };
3744
- type GetChannelBindingResponse = GetChannelBindingResponses[keyof GetChannelBindingResponses];
3745
- type SetChannelBindingData = {
3746
- body: ChannelBindingSet;
3747
- path: {
3748
- /**
3749
- * Project public ID (proj_ prefix).
3750
- */
3751
- project_id: string;
3752
- /**
3753
- * Channel public ID (chan_ prefix).
3754
- */
3755
- channel_id: string;
3756
- };
3757
- query?: never;
3758
- url: '/v1/projects/{project_id}/channels/{channel_id}/binding';
3759
- };
3760
- type SetChannelBindingErrors = {
3761
- /**
3762
- * The request was malformed or failed validation.
3763
- */
3764
- 400: ErrorResponse;
3765
- /**
3766
- * Missing or invalid credentials.
3767
- */
3768
- 401: ErrorResponse;
3769
- /**
3770
- * The resource does not exist (existence is not leaked).
3771
- */
3772
- 404: ErrorResponse;
3773
- };
3774
- type SetChannelBindingError = SetChannelBindingErrors[keyof SetChannelBindingErrors];
3775
- type SetChannelBindingResponses = {
3776
- /**
3777
- * Binding replaced.
3778
- */
3779
- 200: ChannelBinding;
3780
- /**
3781
- * Binding created.
3782
- */
3783
- 201: ChannelBinding;
3784
- };
3785
- type SetChannelBindingResponse = SetChannelBindingResponses[keyof SetChannelBindingResponses];
3786
4329
  type ListChannelConversationsData = {
3787
4330
  body?: never;
3788
4331
  path: {
@@ -6577,6 +7120,143 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
6577
7120
  */
6578
7121
  meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
6579
7122
  };
7123
+ declare class Channels {
7124
+ /**
7125
+ * List addresses
7126
+ */
7127
+ static listAddresses<ThrowOnError extends boolean = false>(options: Options<ListAddressesData, ThrowOnError>): RequestResult<ListAddressesResponses, ListAddressesErrors, ThrowOnError>;
7128
+ /**
7129
+ * Erase an address
7130
+ *
7131
+ * Removes the address, its conversations, and its runtime actor and sessions.
7132
+ *
7133
+ */
7134
+ static deleteAddress<ThrowOnError extends boolean = false>(options: Options<DeleteAddressData, ThrowOnError>): RequestResult<DeleteAddressResponses, DeleteAddressErrors, ThrowOnError>;
7135
+ /**
7136
+ * Get an address
7137
+ */
7138
+ static getAddress<ThrowOnError extends boolean = false>(options: Options<GetAddressData, ThrowOnError>): RequestResult<GetAddressResponses, GetAddressErrors, ThrowOnError>;
7139
+ /**
7140
+ * Set or clear this address's own action
7141
+ *
7142
+ * Upserts the address and its `action` in one call. `action: null` forgets the exception and defers back to the route table; any other `action` requires the same fields a route or channel default would (`agent_id` for `agent`, `text` for `message`).
7143
+ *
7144
+ */
7145
+ static setAddressAction<ThrowOnError extends boolean = false>(options: Options<SetAddressActionData, ThrowOnError>): RequestResult<SetAddressActionResponses, SetAddressActionErrors, ThrowOnError>;
7146
+ /**
7147
+ * List an address's conversations
7148
+ *
7149
+ * Every conversation this address has had, across every channel it has ever messaged — an address is project-scoped, not channel-scoped.
7150
+ *
7151
+ */
7152
+ static listAddressConversations<ThrowOnError extends boolean = false>(options: Options<ListAddressConversationsData, ThrowOnError>): RequestResult<ListAddressConversationsResponses, ListAddressConversationsErrors, ThrowOnError>;
7153
+ /**
7154
+ * List channel kinds
7155
+ *
7156
+ * Every connectable kind, its surfaces, and the predicates its routes can match on (engine-wide ones like `address_known` plus its own, like Discord's `guild_id`).
7157
+ *
7158
+ */
7159
+ static listChannelKinds<ThrowOnError extends boolean = false>(options?: Options<ListChannelKindsData, ThrowOnError>): RequestResult<ListChannelKindsResponses, ListChannelKindsErrors, ThrowOnError>;
7160
+ /**
7161
+ * List a channel's routes
7162
+ */
7163
+ static listChannelRoutes<ThrowOnError extends boolean = false>(options: Options<ListChannelRoutesData, ThrowOnError>): RequestResult<ListChannelRoutesResponses, ListChannelRoutesErrors, ThrowOnError>;
7164
+ /**
7165
+ * Create a route
7166
+ *
7167
+ * `action` is required; `agent_id` is required when it is `agent`, `text` when it is `message`; `repeat` is only valid alongside `action: message`. `surface`, when present, must be one this channel's kind serves (`GET /v1/channel-kinds`) — otherwise `400 unknown_surface`. `match` keys must be predicates that kind's registry declares — otherwise `400 unknown_predicate`. Writing a route for a surface whose transport mode is off (e.g. a Discord `guild_thread` route before `mention_threads` is enabled) still succeeds, with `unreachable_surface` in the response `warnings`.
7168
+ *
7169
+ */
7170
+ static createChannelRoute<ThrowOnError extends boolean = false>(options: Options<CreateChannelRouteData, ThrowOnError>): RequestResult<CreateChannelRouteResponses, CreateChannelRouteErrors, ThrowOnError>;
7171
+ /**
7172
+ * Delete a route
7173
+ */
7174
+ static deleteChannelRoute<ThrowOnError extends boolean = false>(options: Options<DeleteChannelRouteData, ThrowOnError>): RequestResult<DeleteChannelRouteResponses, DeleteChannelRouteErrors, ThrowOnError>;
7175
+ /**
7176
+ * Get a route
7177
+ */
7178
+ static getChannelRoute<ThrowOnError extends boolean = false>(options: Options<GetChannelRouteData, ThrowOnError>): RequestResult<GetChannelRouteResponses, GetChannelRouteErrors, ThrowOnError>;
7179
+ /**
7180
+ * Replace a route
7181
+ *
7182
+ * Full replace, the same validation as create.
7183
+ */
7184
+ static updateChannelRoute<ThrowOnError extends boolean = false>(options: Options<UpdateChannelRouteData, ThrowOnError>): RequestResult<UpdateChannelRouteResponses, UpdateChannelRouteErrors, ThrowOnError>;
7185
+ /**
7186
+ * Read the whole route table
7187
+ *
7188
+ * Every route across every channel in the project, one read — the table is small by construction (CHANNELS-ROUTING.md §3.6), so this is unpaginated.
7189
+ *
7190
+ */
7191
+ static listProjectChannelRoutes<ThrowOnError extends boolean = false>(options: Options<ListProjectChannelRoutesData, ThrowOnError>): RequestResult<ListProjectChannelRoutesResponses, ListProjectChannelRoutesErrors, ThrowOnError>;
7192
+ /**
7193
+ * Open a conversation
7194
+ *
7195
+ * The outbound-first path (CHANNELS-ROUTING.md §3.11): open a conversation for `{ channel_id, identifier }` ahead of any inbound message, which falls out of making the identifier the unit rather than the message. Resolves the same three-layer action an inbound would (§3.6); a `409` when that does not land on an agent — there is nothing to open for a `message`/`silence` outcome.
7196
+ *
7197
+ */
7198
+ static createConversation<ThrowOnError extends boolean = false>(options: Options<CreateConversationData, ThrowOnError>): RequestResult<CreateConversationResponses, CreateConversationErrors, ThrowOnError>;
7199
+ /**
7200
+ * List channels
7201
+ *
7202
+ * Lists the channels connected in the project.
7203
+ */
7204
+ static listChannels<ThrowOnError extends boolean = false>(options: Options<ListChannelsData, ThrowOnError>): RequestResult<ListChannelsResponses, ListChannelsErrors, ThrowOnError>;
7205
+ /**
7206
+ * Connect a channel
7207
+ *
7208
+ * Connect a channel. The required fields depend on `channel`; no credential is ever returned.
7209
+ * **Discord** (`channel: discord`) — supply `application_id` and `bot_token`, plus the `modes` selecting which Gateway flows to serve (direct messages, and/or @mention-opens-a-thread). Returns `501` when the deployment has no `CHANNEL_TOKEN_KEY` configured.
7210
+ * **WhatsApp** (default) — one of two credential paths, both filling the same write-only secret:
7211
+ * * **BYOT** (`credential_source: byot`, default) — supply
7212
+ * `phone_number_id` and `access_token` from your own Meta app.
7213
+ *
7214
+ * * **Embedded signup** (`credential_source: embedded_signup`) — supply
7215
+ * `code` and `waba_id` (and optionally `pin`) from the Meta popup;
7216
+ * naturali exchanges the `code` for the token and subscribes its app to
7217
+ * the WABA, so the customer never hands over a token. Returns `501` on
7218
+ * deployments where Meta App credentials are not configured.
7219
+ *
7220
+ */
7221
+ static createChannel<ThrowOnError extends boolean = false>(options: Options<CreateChannelData, ThrowOnError>): RequestResult<CreateChannelResponses, CreateChannelErrors, ThrowOnError>;
7222
+ /**
7223
+ * Delete a channel
7224
+ *
7225
+ * Deletes the channel and whatever it provisioned — the WhatsApp send tool and write-only credential secret, or the Discord channel's sealed bot token (dropped with the row, closing its gateway connection).
7226
+ *
7227
+ */
7228
+ static deleteChannel<ThrowOnError extends boolean = false>(options: Options<DeleteChannelData, ThrowOnError>): RequestResult<DeleteChannelResponses, DeleteChannelErrors, ThrowOnError>;
7229
+ /**
7230
+ * Get a channel
7231
+ */
7232
+ static getChannel<ThrowOnError extends boolean = false>(options: Options<GetChannelData, ThrowOnError>): RequestResult<GetChannelResponses, GetChannelErrors, ThrowOnError>;
7233
+ /**
7234
+ * Update a channel
7235
+ *
7236
+ * Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
7237
+ *
7238
+ */
7239
+ static updateChannel<ThrowOnError extends boolean = false>(options: Options<UpdateChannelData, ThrowOnError>): RequestResult<UpdateChannelResponses, UpdateChannelErrors, ThrowOnError>;
7240
+ /**
7241
+ * List the channel's conversations
7242
+ *
7243
+ * A cursor page of the channel's conversations, newest first. A conversation is one address's dialogue on the channel — the continuity anchor that resumes the same runtime session instead of starting fresh per message — so this is the read path for who has talked to the channel and which actor/session their dialogue resolved to.
7244
+ * Conversations are created by the inbound path (the WhatsApp webhook, the Discord gateway worker) when a real message arrives; there is no way to create one directly.
7245
+ *
7246
+ */
7247
+ static listChannelConversations<ThrowOnError extends boolean = false>(options: Options<ListChannelConversationsData, ThrowOnError>): RequestResult<ListChannelConversationsResponses, ListChannelConversationsErrors, ThrowOnError>;
7248
+ /**
7249
+ * Get a conversation
7250
+ */
7251
+ static getChannelConversation<ThrowOnError extends boolean = false>(options: Options<GetChannelConversationData, ThrowOnError>): RequestResult<GetChannelConversationResponses, GetChannelConversationErrors, ThrowOnError>;
7252
+ /**
7253
+ * Read a conversation's transcript
7254
+ *
7255
+ * The conversation's messages, oldest first. naturali stores no message bodies — the dialogue lives in the runtime session the conversation maps to, so this reads through to the runtime. Pagination is `limit`/`offset` rather than an opaque cursor because the upstream is offset-based over a stable `position` ordering.
7256
+ *
7257
+ */
7258
+ static listChannelConversationMessages<ThrowOnError extends boolean = false>(options: Options<ListChannelConversationMessagesData, ThrowOnError>): RequestResult<ListChannelConversationMessagesResponses, ListChannelConversationMessagesErrors, ThrowOnError>;
7259
+ }
6580
7260
  declare class Agents {
6581
7261
  /**
6582
7262
  * List agents
@@ -6756,83 +7436,6 @@ declare class Boards {
6756
7436
  */
6757
7437
  static updateBoard<ThrowOnError extends boolean = false>(options: Options<UpdateBoardData, ThrowOnError>): RequestResult<UpdateBoardResponses, UpdateBoardErrors, ThrowOnError>;
6758
7438
  }
6759
- declare class Channels {
6760
- /**
6761
- * List channels
6762
- *
6763
- * Lists the channels connected in the project.
6764
- */
6765
- static listChannels<ThrowOnError extends boolean = false>(options: Options<ListChannelsData, ThrowOnError>): RequestResult<ListChannelsResponses, ListChannelsErrors, ThrowOnError>;
6766
- /**
6767
- * Connect a channel
6768
- *
6769
- * Connect a channel. The required fields depend on `channel`; no credential is ever returned.
6770
- * **Discord** (`channel: discord`) — supply `application_id` and `bot_token`, plus the `modes` selecting which Gateway flows to serve (direct messages, and/or @mention-opens-a-thread). Returns `501` when the deployment has no `CHANNEL_TOKEN_KEY` configured.
6771
- * **WhatsApp** (default) — one of two credential paths, both filling the same write-only secret:
6772
- * * **BYOT** (`credential_source: byot`, default) — supply
6773
- * `phone_number_id` and `access_token` from your own Meta app.
6774
- *
6775
- * * **Embedded signup** (`credential_source: embedded_signup`) — supply
6776
- * `code` and `waba_id` (and optionally `pin`) from the Meta popup;
6777
- * naturali exchanges the `code` for the token and subscribes its app to
6778
- * the WABA, so the customer never hands over a token. Returns `501` on
6779
- * deployments where Meta App credentials are not configured.
6780
- *
6781
- */
6782
- static createChannel<ThrowOnError extends boolean = false>(options: Options<CreateChannelData, ThrowOnError>): RequestResult<CreateChannelResponses, CreateChannelErrors, ThrowOnError>;
6783
- /**
6784
- * Delete a channel
6785
- *
6786
- * Deletes the channel and whatever it provisioned — the WhatsApp send tool and write-only credential secret, or the Discord channel's sealed bot token (dropped with the row, closing its gateway connection).
6787
- *
6788
- */
6789
- static deleteChannel<ThrowOnError extends boolean = false>(options: Options<DeleteChannelData, ThrowOnError>): RequestResult<DeleteChannelResponses, DeleteChannelErrors, ThrowOnError>;
6790
- /**
6791
- * Get a channel
6792
- */
6793
- static getChannel<ThrowOnError extends boolean = false>(options: Options<GetChannelData, ThrowOnError>): RequestResult<GetChannelResponses, GetChannelErrors, ThrowOnError>;
6794
- /**
6795
- * Update a channel
6796
- *
6797
- * Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
6798
- *
6799
- */
6800
- static updateChannel<ThrowOnError extends boolean = false>(options: Options<UpdateChannelData, ThrowOnError>): RequestResult<UpdateChannelResponses, UpdateChannelErrors, ThrowOnError>;
6801
- /**
6802
- * Unbind the channel
6803
- */
6804
- static deleteChannelBinding<ThrowOnError extends boolean = false>(options: Options<DeleteChannelBindingData, ThrowOnError>): RequestResult<DeleteChannelBindingResponses, DeleteChannelBindingErrors, ThrowOnError>;
6805
- /**
6806
- * Get the channel's binding
6807
- */
6808
- static getChannelBinding<ThrowOnError extends boolean = false>(options: Options<GetChannelBindingData, ThrowOnError>): RequestResult<GetChannelBindingResponses, GetChannelBindingErrors, ThrowOnError>;
6809
- /**
6810
- * Set the channel's binding
6811
- *
6812
- * Create or replace the channel's agent binding (a channel has one binding in v1). `agent_id` is required and must be an agent owned in the project; `language` / `config` / `status` default to null / null / active when absent (full replace).
6813
- *
6814
- */
6815
- static setChannelBinding<ThrowOnError extends boolean = false>(options: Options<SetChannelBindingData, ThrowOnError>): RequestResult<SetChannelBindingResponses, SetChannelBindingErrors, ThrowOnError>;
6816
- /**
6817
- * List the channel's conversations
6818
- *
6819
- * A cursor page of the channel's conversations, newest first. A conversation is one address's dialogue on the channel — the continuity anchor that resumes the same runtime session instead of starting fresh per message — so this is the read path for who has talked to the channel and which actor/session their dialogue resolved to.
6820
- * Conversations are created by the inbound path (the WhatsApp webhook, the Discord gateway worker) when a real message arrives; there is no way to create one directly.
6821
- *
6822
- */
6823
- static listChannelConversations<ThrowOnError extends boolean = false>(options: Options<ListChannelConversationsData, ThrowOnError>): RequestResult<ListChannelConversationsResponses, ListChannelConversationsErrors, ThrowOnError>;
6824
- /**
6825
- * Get a conversation
6826
- */
6827
- static getChannelConversation<ThrowOnError extends boolean = false>(options: Options<GetChannelConversationData, ThrowOnError>): RequestResult<GetChannelConversationResponses, GetChannelConversationErrors, ThrowOnError>;
6828
- /**
6829
- * Read a conversation's transcript
6830
- *
6831
- * The conversation's messages, oldest first. naturali stores no message bodies — the dialogue lives in the runtime session the conversation maps to, so this reads through to the runtime. Pagination is `limit`/`offset` rather than an opaque cursor because the upstream is offset-based over a stable `position` ordering.
6832
- *
6833
- */
6834
- static listChannelConversationMessages<ThrowOnError extends boolean = false>(options: Options<ListChannelConversationMessagesData, ThrowOnError>): RequestResult<ListChannelConversationMessagesResponses, ListChannelConversationMessagesErrors, ThrowOnError>;
6835
- }
6836
7439
  declare class Generations {
6837
7440
  /**
6838
7441
  * List an agent's generations
@@ -7362,4 +7965,4 @@ declare class NaturaliClient {
7362
7965
  constructor({ token, headers }?: NaturaliClientOptions);
7363
7966
  }
7364
7967
  //#endregion
7365
- export { type Acknowledgement, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageResponse, type AddSessionMessageResponses, type Agent, type AgentCreate, type AgentId, type AgentList, type AgentUpdate, Agents, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, type AssigneeFilter, Assistant, type AssistantChannel, type AssistantGrant, type AssistantGrantList, type AssistantLinkPreview, type AssistantLinkRedeem, type AssistantScope, Auth, type AuthSession, type Board, type BoardCompletionRule, type BoardCreate, type BoardDispatch, type BoardId, type BoardIdFilter, type BoardList, type BoardOnEnter, type BoardState, type BoardTransition, type BoardUpdate, Boards, type Channel, type ChannelBinding, type ChannelBindingSet, type ChannelCreate, type ChannelId, type ChannelList, type ChannelUpdate, Channels, type ClientOptions, type CollectionId, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type ConverterId, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentResponse, type CreateAgentResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBoardData, type CreateBoardError, type CreateBoardErrors, type CreateBoardResponse, type CreateBoardResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateGenerationData, type CreateGenerationError, type CreateGenerationErrors, type CreateGenerationResponse, type CreateGenerationResponses, type CreateKnowledgeCollectionData, type CreateKnowledgeCollectionError, type CreateKnowledgeCollectionErrors, type CreateKnowledgeCollectionResponse, type CreateKnowledgeCollectionResponses, type CreateKnowledgeConverterData, type CreateKnowledgeConverterError, type CreateKnowledgeConverterErrors, type CreateKnowledgeConverterResponse, type CreateKnowledgeConverterResponses, type CreateKnowledgeDocumentData, type CreateKnowledgeDocumentError, type CreateKnowledgeDocumentErrors, type CreateKnowledgeDocumentResponse, type CreateKnowledgeDocumentResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProviderData, type CreateProviderError, type CreateProviderErrors, type CreateProviderResponse, type CreateProviderResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskError, type CreateTaskErrors, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolResponse, type CreateToolResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type Cursor, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteBoardData, type DeleteBoardError, type DeleteBoardErrors, type DeleteBoardResponse, type DeleteBoardResponses, type DeleteChannelBindingData, type DeleteChannelBindingError, type DeleteChannelBindingErrors, type DeleteChannelBindingResponse, type DeleteChannelBindingResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteKnowledgeCollectionData, type DeleteKnowledgeCollectionError, type DeleteKnowledgeCollectionErrors, type DeleteKnowledgeCollectionResponse, type DeleteKnowledgeCollectionResponses, type DeleteKnowledgeConverterData, type DeleteKnowledgeConverterError, type DeleteKnowledgeConverterErrors, type DeleteKnowledgeConverterResponse, type DeleteKnowledgeConverterResponses, type DeleteKnowledgeDocumentData, type DeleteKnowledgeDocumentError, type DeleteKnowledgeDocumentErrors, type DeleteKnowledgeDocumentResponse, type DeleteKnowledgeDocumentResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProviderData, type DeleteProviderError, type DeleteProviderErrors, type DeleteProviderResponse, type DeleteProviderResponses, type DeleteTaskData, type DeleteTaskError, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeliveryId, type DiscordModes, type DocumentId, type ErrorResponse, type Event, type EventSubscription, type EventType, type Force, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationCreate, type GenerationId, type GenerationList, type GenerationResult, type GenerationStatus, type GenerationUsage, Generations, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponses, type GetChannelBindingData, type GetChannelBindingError, type GetChannelBindingErrors, type GetChannelBindingResponse, type GetChannelBindingResponses, type GetChannelConversationData, type GetChannelConversationError, type GetChannelConversationErrors, type GetChannelConversationResponse, type GetChannelConversationResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationUsageData, type GetGenerationUsageError, type GetGenerationUsageErrors, type GetGenerationUsageResponse, type GetGenerationUsageResponses, type GetKnowledgeCollectionData, type GetKnowledgeCollectionError, type GetKnowledgeCollectionErrors, type GetKnowledgeCollectionResponse, type GetKnowledgeCollectionResponses, type GetKnowledgeConverterData, type GetKnowledgeConverterError, type GetKnowledgeConverterErrors, type GetKnowledgeConverterResponse, type GetKnowledgeConverterResponses, type GetKnowledgeDocumentData, type GetKnowledgeDocumentError, type GetKnowledgeDocumentErrors, type GetKnowledgeDocumentResponse, type GetKnowledgeDocumentResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetProviderData, type GetProviderError, type GetProviderErrors, type GetProviderResponse, type GetProviderResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetTaskData, type GetTaskError, type GetTaskErrors, type GetTaskResponse, type GetTaskResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceStepsData, type GetTraceStepsError, type GetTraceStepsErrors, type GetTraceStepsResponse, type GetTraceStepsResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GrantId, type HttpExecute, type IdempotencyKey, Knowledge, type KnowledgeChunk, type KnowledgeCollection, type KnowledgeCollectionCreate, type KnowledgeCollectionList, type KnowledgeCollectionUpdate, type KnowledgeConverter, type KnowledgeConverterCreate, type KnowledgeConverterList, type KnowledgeConverterUpdate, type KnowledgeDocument, type KnowledgeDocumentCreate, type KnowledgeDocumentList, type KnowledgeQueryRequest, type KnowledgeQueryResult, type Limit, type LinkToken, type ListAgentGenerationsData, type ListAgentGenerationsError, type ListAgentGenerationsErrors, type ListAgentGenerationsResponse, type ListAgentGenerationsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListAssistantGrantsData, type ListAssistantGrantsError, type ListAssistantGrantsErrors, type ListAssistantGrantsResponse, type ListAssistantGrantsResponses, type ListBoardsData, type ListBoardsError, type ListBoardsErrors, type ListBoardsResponse, type ListBoardsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListKnowledgeCollectionsData, type ListKnowledgeCollectionsError, type ListKnowledgeCollectionsErrors, type ListKnowledgeCollectionsResponse, type ListKnowledgeCollectionsResponses, type ListKnowledgeConvertersData, type ListKnowledgeConvertersError, type ListKnowledgeConvertersErrors, type ListKnowledgeConvertersResponse, type ListKnowledgeConvertersResponses, type ListKnowledgeDocumentsData, type ListKnowledgeDocumentsError, type ListKnowledgeDocumentsErrors, type ListKnowledgeDocumentsResponse, type ListKnowledgeDocumentsResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListProvidersData, type ListProvidersError, type ListProvidersErrors, type ListProvidersResponse, type ListProvidersResponses, type ListSessionMessagesData, type ListSessionMessagesError, type ListSessionMessagesErrors, type ListSessionMessagesResponse, type ListSessionMessagesResponses, type ListTaskTransitionsData, type ListTaskTransitionsError, type ListTaskTransitionsErrors, type ListTaskTransitionsResponse, type ListTaskTransitionsResponses, type ListTasksData, type ListTasksError, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTraceGenerationsData, type ListTraceGenerationsError, type ListTraceGenerationsErrors, type ListTraceGenerationsResponse, type ListTraceGenerationsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesError, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type McpConfig, type Message, type MessagesLimit, type Model, type ModelList, Models, NaturaliClient, type NaturaliClientOptions, type Offset, type Options, type PreviewAssistantLinkData, type PreviewAssistantLinkError, type PreviewAssistantLinkErrors, type PreviewAssistantLinkResponse, type PreviewAssistantLinkResponses, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectUpdate, type ProjectUsage, Projects, type Provider, type ProviderCreate, type ProviderId, type ProviderList, type ProviderUpdate, Providers, type QueryKnowledgeCollectionData, type QueryKnowledgeCollectionError, type QueryKnowledgeCollectionErrors, type QueryKnowledgeCollectionResponse, type QueryKnowledgeCollectionResponses, type RedeemAssistantLinkData, type RedeemAssistantLinkError, type RedeemAssistantLinkErrors, type RedeemAssistantLinkResponse, type RedeemAssistantLinkResponses, type RedeliverWebhookDeliveryData, type RedeliverWebhookDeliveryError, type RedeliverWebhookDeliveryErrors, type RedeliverWebhookDeliveryResponse, type RedeliverWebhookDeliveryResponses, type RefreshRequest, type RefreshSessionData, type RefreshSessionError, type RefreshSessionErrors, type RefreshSessionResponse, type RefreshSessionResponses, type ReingestKnowledgeDocumentData, type ReingestKnowledgeDocumentError, type ReingestKnowledgeDocumentErrors, type ReingestKnowledgeDocumentResponse, type ReingestKnowledgeDocumentResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RevokeAssistantGrantData, type RevokeAssistantGrantError, type RevokeAssistantGrantErrors, type RevokeAssistantGrantResponse, type RevokeAssistantGrantResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type Session, type SessionCreate, type SessionGenerate, type SessionGeneration, type SessionId, type SessionMessage, type SessionMessageCreate, type SessionMessageList, type SessionTranscriptMessage, Sessions, type SetChannelBindingData, type SetChannelBindingError, type SetChannelBindingErrors, type SetChannelBindingResponse, type SetChannelBindingResponses, type SignInCodeRequest, type SignInCodeVerify, type StateFilter, type StatusFilter, type StepRules, type Task, type TaskCreate, type TaskId, type TaskList, type TaskTransitionList, type TaskTransitionRecord, type TaskTransitionRequest, type TaskUpdate, Tasks, type Tool, type ToolChoice, type ToolContext, type ToolCreate, type ToolId, type ToolList, type ToolUpdate, Tools, type Trace, type TraceId, type TraceList, type TraceSteps, type TraceTreeNode, Traces, type TransitionTaskData, type TransitionTaskError, type TransitionTaskErrors, type TransitionTaskResponse, type TransitionTaskResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateBoardData, type UpdateBoardError, type UpdateBoardErrors, type UpdateBoardResponse, type UpdateBoardResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateKnowledgeCollectionData, type UpdateKnowledgeCollectionError, type UpdateKnowledgeCollectionErrors, type UpdateKnowledgeCollectionResponse, type UpdateKnowledgeCollectionResponses, type UpdateKnowledgeConverterData, type UpdateKnowledgeConverterError, type UpdateKnowledgeConverterErrors, type UpdateKnowledgeConverterResponse, type UpdateKnowledgeConverterResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateProviderData, type UpdateProviderError, type UpdateProviderErrors, type UpdateProviderResponse, type UpdateProviderResponses, type UpdateTaskData, type UpdateTaskError, type UpdateTaskErrors, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolResponse, type UpdateToolResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UsageGroup, type UsageTokens, type User, type VerifySignInCodeData, type VerifySignInCodeError, type VerifySignInCodeErrors, type VerifySignInCodeResponse, type VerifySignInCodeResponses, type Webhook, type WebhookCreate, type WebhookDelivery, type WebhookDeliveryList, type WebhookId, type WebhookList, type WebhookUpdate, type WebhookWithSecret, Webhooks, createClient, createConfig };
7968
+ export { type Acknowledgement, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageResponse, type AddSessionMessageResponses, type Address, type AddressActionSet, type AddressList, type Agent, type AgentCreate, type AgentId, type AgentList, type AgentUpdate, Agents, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, type AssigneeFilter, Assistant, type AssistantChannel, type AssistantGrant, type AssistantGrantList, type AssistantLinkPreview, type AssistantLinkRedeem, type AssistantScope, Auth, type AuthSession, type Board, type BoardCompletionRule, type BoardCreate, type BoardDispatch, type BoardId, type BoardIdFilter, type BoardList, type BoardOnEnter, type BoardState, type BoardTransition, type BoardUpdate, Boards, type Channel, type ChannelCreate, type ChannelDefaultAction, type ChannelDefaultActionInput, type ChannelId, type ChannelKind, type ChannelKindList, type ChannelList, type ChannelPredicate, type ChannelRoute, type ChannelRouteList, type ChannelRouteWrite, type ChannelSurface, type ChannelUpdate, Channels, type ClientOptions, type CollectionId, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type ConverterId, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentResponse, type CreateAgentResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBoardData, type CreateBoardError, type CreateBoardErrors, type CreateBoardResponse, type CreateBoardResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateChannelRouteData, type CreateChannelRouteError, type CreateChannelRouteErrors, type CreateChannelRouteResponse, type CreateChannelRouteResponses, type CreateConversationData, type CreateConversationError, type CreateConversationErrors, type CreateConversationResponse, type CreateConversationResponses, type CreateGenerationData, type CreateGenerationError, type CreateGenerationErrors, type CreateGenerationResponse, type CreateGenerationResponses, type CreateKnowledgeCollectionData, type CreateKnowledgeCollectionError, type CreateKnowledgeCollectionErrors, type CreateKnowledgeCollectionResponse, type CreateKnowledgeCollectionResponses, type CreateKnowledgeConverterData, type CreateKnowledgeConverterError, type CreateKnowledgeConverterErrors, type CreateKnowledgeConverterResponse, type CreateKnowledgeConverterResponses, type CreateKnowledgeDocumentData, type CreateKnowledgeDocumentError, type CreateKnowledgeDocumentErrors, type CreateKnowledgeDocumentResponse, type CreateKnowledgeDocumentResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProviderData, type CreateProviderError, type CreateProviderErrors, type CreateProviderResponse, type CreateProviderResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskError, type CreateTaskErrors, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolResponse, type CreateToolResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type Cursor, type DeleteAddressData, type DeleteAddressError, type DeleteAddressErrors, type DeleteAddressResponse, type DeleteAddressResponses, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteBoardData, type DeleteBoardError, type DeleteBoardErrors, type DeleteBoardResponse, type DeleteBoardResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteChannelRouteData, type DeleteChannelRouteError, type DeleteChannelRouteErrors, type DeleteChannelRouteResponse, type DeleteChannelRouteResponses, type DeleteKnowledgeCollectionData, type DeleteKnowledgeCollectionError, type DeleteKnowledgeCollectionErrors, type DeleteKnowledgeCollectionResponse, type DeleteKnowledgeCollectionResponses, type DeleteKnowledgeConverterData, type DeleteKnowledgeConverterError, type DeleteKnowledgeConverterErrors, type DeleteKnowledgeConverterResponse, type DeleteKnowledgeConverterResponses, type DeleteKnowledgeDocumentData, type DeleteKnowledgeDocumentError, type DeleteKnowledgeDocumentErrors, type DeleteKnowledgeDocumentResponse, type DeleteKnowledgeDocumentResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProviderData, type DeleteProviderError, type DeleteProviderErrors, type DeleteProviderResponse, type DeleteProviderResponses, type DeleteTaskData, type DeleteTaskError, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeliveryId, type DiscordModes, type DocumentId, type ErrorResponse, type Event, type EventSubscription, type EventType, type Force, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationCreate, type GenerationId, type GenerationList, type GenerationResult, type GenerationStatus, type GenerationUsage, Generations, type GetAddressData, type GetAddressError, type GetAddressErrors, type GetAddressResponse, type GetAddressResponses, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponses, type GetChannelConversationData, type GetChannelConversationError, type GetChannelConversationErrors, type GetChannelConversationResponse, type GetChannelConversationResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetChannelRouteData, type GetChannelRouteError, type GetChannelRouteErrors, type GetChannelRouteResponse, type GetChannelRouteResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationUsageData, type GetGenerationUsageError, type GetGenerationUsageErrors, type GetGenerationUsageResponse, type GetGenerationUsageResponses, type GetKnowledgeCollectionData, type GetKnowledgeCollectionError, type GetKnowledgeCollectionErrors, type GetKnowledgeCollectionResponse, type GetKnowledgeCollectionResponses, type GetKnowledgeConverterData, type GetKnowledgeConverterError, type GetKnowledgeConverterErrors, type GetKnowledgeConverterResponse, type GetKnowledgeConverterResponses, type GetKnowledgeDocumentData, type GetKnowledgeDocumentError, type GetKnowledgeDocumentErrors, type GetKnowledgeDocumentResponse, type GetKnowledgeDocumentResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetProviderData, type GetProviderError, type GetProviderErrors, type GetProviderResponse, type GetProviderResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetTaskData, type GetTaskError, type GetTaskErrors, type GetTaskResponse, type GetTaskResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceStepsData, type GetTraceStepsError, type GetTraceStepsErrors, type GetTraceStepsResponse, type GetTraceStepsResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GrantId, type HttpExecute, type IdempotencyKey, type Identifier, Knowledge, type KnowledgeChunk, type KnowledgeCollection, type KnowledgeCollectionCreate, type KnowledgeCollectionList, type KnowledgeCollectionUpdate, type KnowledgeConverter, type KnowledgeConverterCreate, type KnowledgeConverterList, type KnowledgeConverterUpdate, type KnowledgeDocument, type KnowledgeDocumentCreate, type KnowledgeDocumentList, type KnowledgeQueryRequest, type KnowledgeQueryResult, type Limit, type LinkToken, type ListAddressConversationsData, type ListAddressConversationsError, type ListAddressConversationsErrors, type ListAddressConversationsResponse, type ListAddressConversationsResponses, type ListAddressesData, type ListAddressesError, type ListAddressesErrors, type ListAddressesResponse, type ListAddressesResponses, type ListAgentGenerationsData, type ListAgentGenerationsError, type ListAgentGenerationsErrors, type ListAgentGenerationsResponse, type ListAgentGenerationsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListAssistantGrantsData, type ListAssistantGrantsError, type ListAssistantGrantsErrors, type ListAssistantGrantsResponse, type ListAssistantGrantsResponses, type ListBoardsData, type ListBoardsError, type ListBoardsErrors, type ListBoardsResponse, type ListBoardsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type ListChannelKindsData, type ListChannelKindsError, type ListChannelKindsErrors, type ListChannelKindsResponse, type ListChannelKindsResponses, type ListChannelRoutesData, type ListChannelRoutesError, type ListChannelRoutesErrors, type ListChannelRoutesResponse, type ListChannelRoutesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListKnowledgeCollectionsData, type ListKnowledgeCollectionsError, type ListKnowledgeCollectionsErrors, type ListKnowledgeCollectionsResponse, type ListKnowledgeCollectionsResponses, type ListKnowledgeConvertersData, type ListKnowledgeConvertersError, type ListKnowledgeConvertersErrors, type ListKnowledgeConvertersResponse, type ListKnowledgeConvertersResponses, type ListKnowledgeDocumentsData, type ListKnowledgeDocumentsError, type ListKnowledgeDocumentsErrors, type ListKnowledgeDocumentsResponse, type ListKnowledgeDocumentsResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListProjectChannelRoutesData, type ListProjectChannelRoutesError, type ListProjectChannelRoutesErrors, type ListProjectChannelRoutesResponse, type ListProjectChannelRoutesResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListProvidersData, type ListProvidersError, type ListProvidersErrors, type ListProvidersResponse, type ListProvidersResponses, type ListSessionMessagesData, type ListSessionMessagesError, type ListSessionMessagesErrors, type ListSessionMessagesResponse, type ListSessionMessagesResponses, type ListTaskTransitionsData, type ListTaskTransitionsError, type ListTaskTransitionsErrors, type ListTaskTransitionsResponse, type ListTaskTransitionsResponses, type ListTasksData, type ListTasksError, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTraceGenerationsData, type ListTraceGenerationsError, type ListTraceGenerationsErrors, type ListTraceGenerationsResponse, type ListTraceGenerationsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesError, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type McpConfig, type Message, type MessagesLimit, type Model, type ModelList, Models, NaturaliClient, type NaturaliClientOptions, type Offset, type Options, type PreviewAssistantLinkData, type PreviewAssistantLinkError, type PreviewAssistantLinkErrors, type PreviewAssistantLinkResponse, type PreviewAssistantLinkResponses, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectUpdate, type ProjectUsage, Projects, type Provider, type ProviderCreate, type ProviderId, type ProviderList, type ProviderUpdate, Providers, type QueryKnowledgeCollectionData, type QueryKnowledgeCollectionError, type QueryKnowledgeCollectionErrors, type QueryKnowledgeCollectionResponse, type QueryKnowledgeCollectionResponses, type RedeemAssistantLinkData, type RedeemAssistantLinkError, type RedeemAssistantLinkErrors, type RedeemAssistantLinkResponse, type RedeemAssistantLinkResponses, type RedeliverWebhookDeliveryData, type RedeliverWebhookDeliveryError, type RedeliverWebhookDeliveryErrors, type RedeliverWebhookDeliveryResponse, type RedeliverWebhookDeliveryResponses, type RefreshRequest, type RefreshSessionData, type RefreshSessionError, type RefreshSessionErrors, type RefreshSessionResponse, type RefreshSessionResponses, type ReingestKnowledgeDocumentData, type ReingestKnowledgeDocumentError, type ReingestKnowledgeDocumentErrors, type ReingestKnowledgeDocumentResponse, type ReingestKnowledgeDocumentResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RevokeAssistantGrantData, type RevokeAssistantGrantError, type RevokeAssistantGrantErrors, type RevokeAssistantGrantResponse, type RevokeAssistantGrantResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type RouteId, type Session, type SessionCreate, type SessionGenerate, type SessionGeneration, type SessionId, type SessionMessage, type SessionMessageCreate, type SessionMessageList, type SessionTranscriptMessage, Sessions, type SetAddressActionData, type SetAddressActionError, type SetAddressActionErrors, type SetAddressActionResponse, type SetAddressActionResponses, type SignInCodeRequest, type SignInCodeVerify, type StateFilter, type StatusFilter, type StepRules, type Task, type TaskCreate, type TaskId, type TaskList, type TaskTransitionList, type TaskTransitionRecord, type TaskTransitionRequest, type TaskUpdate, Tasks, type Tool, type ToolChoice, type ToolContext, type ToolCreate, type ToolId, type ToolList, type ToolUpdate, Tools, type Trace, type TraceId, type TraceList, type TraceSteps, type TraceTreeNode, Traces, type TransitionTaskData, type TransitionTaskError, type TransitionTaskErrors, type TransitionTaskResponse, type TransitionTaskResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateBoardData, type UpdateBoardError, type UpdateBoardErrors, type UpdateBoardResponse, type UpdateBoardResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateChannelRouteData, type UpdateChannelRouteError, type UpdateChannelRouteErrors, type UpdateChannelRouteResponse, type UpdateChannelRouteResponses, type UpdateKnowledgeCollectionData, type UpdateKnowledgeCollectionError, type UpdateKnowledgeCollectionErrors, type UpdateKnowledgeCollectionResponse, type UpdateKnowledgeCollectionResponses, type UpdateKnowledgeConverterData, type UpdateKnowledgeConverterError, type UpdateKnowledgeConverterErrors, type UpdateKnowledgeConverterResponse, type UpdateKnowledgeConverterResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateProviderData, type UpdateProviderError, type UpdateProviderErrors, type UpdateProviderResponse, type UpdateProviderResponses, type UpdateTaskData, type UpdateTaskError, type UpdateTaskErrors, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolResponse, type UpdateToolResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UsageGroup, type UsageTokens, type User, type VerifySignInCodeData, type VerifySignInCodeError, type VerifySignInCodeErrors, type VerifySignInCodeResponse, type VerifySignInCodeResponses, type Webhook, type WebhookCreate, type WebhookDelivery, type WebhookDeliveryList, type WebhookId, type WebhookList, type WebhookUpdate, type WebhookWithSecret, Webhooks, createClient, createConfig };