@soat/sdk 0.15.2 → 0.15.4

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.mts CHANGED
@@ -778,23 +778,27 @@ type ProviderPrice = {
778
778
  * The AI provider instance this override prices
779
779
  */
780
780
  ai_provider_id?: string;
781
+ /**
782
+ * Always `llm_tokens` for provider price overrides
783
+ */
784
+ meter_type?: string;
781
785
  /**
782
786
  * Provider slug (taken from the AI provider instance)
783
787
  */
784
788
  provider?: string;
785
789
  model?: string;
786
790
  /**
787
- * USD per one million input (prompt) tokens
791
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
788
792
  */
789
- input_price_per_m?: number;
793
+ component?: string;
790
794
  /**
791
- * USD per one million output (completion) tokens
795
+ * Always `token` for provider price overrides
792
796
  */
793
- output_price_per_m?: number;
797
+ unit?: string;
794
798
  /**
795
- * USD per one million cached input tokens; null falls back to the input price
799
+ * USD per token for this component
796
800
  */
797
- cached_price_per_m?: number | null;
801
+ unit_price?: number;
798
802
  /**
799
803
  * The row with the latest effective_from <= now() prices a call
800
804
  */
@@ -807,9 +811,18 @@ type ProviderPricesResponse = {
807
811
  type UpsertProviderPricesRequest = {
808
812
  prices: Array<{
809
813
  model: string;
810
- input_price_per_m: number;
811
- output_price_per_m: number;
812
- cached_price_per_m?: number | null;
814
+ /**
815
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
816
+ */
817
+ component: string;
818
+ /**
819
+ * Always `token` for token pricing
820
+ */
821
+ unit: string;
822
+ /**
823
+ * USD per token for this component
824
+ */
825
+ unit_price: number;
813
826
  /**
814
827
  * Must be in the future; past prices are immutable
815
828
  */
@@ -1240,7 +1253,13 @@ type DiscussionRunRecord = {
1240
1253
  started_by?: {
1241
1254
  [key: string]: unknown;
1242
1255
  } | null;
1256
+ /**
1257
+ * Reserved for the generation that invoked this run as a tool. Not currently populated — see trace_id.
1258
+ */
1243
1259
  initiator_generation_id?: string | null;
1260
+ /**
1261
+ * Trace of the generation that invoked this run as a tool. Null for runs started directly via POST /discussions/{discussion_id}/runs.
1262
+ */
1244
1263
  trace_id?: string | null;
1245
1264
  completed_at?: Date | null;
1246
1265
  created_at?: Date;
@@ -1848,6 +1867,18 @@ type DocumentResourceProperties = {
1848
1867
  tags?: {
1849
1868
  [key: string]: unknown;
1850
1869
  } | null;
1870
+ /**
1871
+ * How to split the content into embeddable chunks, matching `POST /documents`. `whole` (default) stores the content as a single chunk; `size` splits into fixed-size character windows with overlap. `page` is equivalent to `whole` for plain text.
1872
+ */
1873
+ chunk_strategy?: 'page' | 'whole' | 'size';
1874
+ /**
1875
+ * Window size in characters when `chunk_strategy=size`. Defaults to 1000.
1876
+ */
1877
+ chunk_size?: number;
1878
+ /**
1879
+ * Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.
1880
+ */
1881
+ chunk_overlap?: number;
1851
1882
  };
1852
1883
  /**
1853
1884
  * Creates a named memory store that actors can read from and write to across conversations.
@@ -2312,6 +2343,21 @@ type PlanChange = {
2312
2343
  logical_id?: string;
2313
2344
  resource_type?: string;
2314
2345
  action?: 'create' | 'update' | 'delete' | 'no-op';
2346
+ /**
2347
+ * The existing resource's physical ID. Present for update / no-op / delete actions, absent for create.
2348
+ */
2349
+ physical_resource_id?: string;
2350
+ /**
2351
+ * Resolved desired-state properties (post parameter/ref substitution) and, when available, the current live or last-applied properties they were compared against. Omitted when neither side could be computed (e.g. an unregistered resource type).
2352
+ */
2353
+ diff?: {
2354
+ desired?: {
2355
+ [key: string]: unknown;
2356
+ };
2357
+ current?: {
2358
+ [key: string]: unknown;
2359
+ } | null;
2360
+ };
2315
2361
  };
2316
2362
  type PlanResult = {
2317
2363
  changes?: Array<PlanChange>;
@@ -2600,7 +2646,7 @@ type OrchestrationNode = {
2600
2646
  /**
2601
2647
  * Node execution type.
2602
2648
  */
2603
- type: 'agent' | 'tool' | 'transform' | 'knowledge' | 'memory_write' | 'condition' | 'human' | 'approval' | 'loop' | 'poll' | 'delay' | 'webhook' | 'sub_orchestration';
2649
+ type: 'agent' | 'tool' | 'transform' | 'knowledge' | 'memory_write' | 'condition' | 'human' | 'approval' | 'loop' | 'poll' | 'delay' | 'webhook' | 'emit_event' | 'sub_orchestration';
2604
2650
  /**
2605
2651
  * For agent nodes — public ID of the agent to invoke.
2606
2652
  */
@@ -2720,25 +2766,15 @@ type OrchestrationNode = {
2720
2766
  */
2721
2767
  duration?: string;
2722
2768
  /**
2723
- * For webhook nodes — whether to emit or receive.
2724
- */
2725
- mode?: 'emit' | 'receive';
2726
- /**
2727
- * For webhook emit nodes — URL to POST to.
2728
- */
2729
- webhook_url?: string;
2730
- /**
2731
- * For webhook emit nodes — extra HTTP headers sent with the POST. Values support `{{secret:...}}` templating, resolved against the run's project at emit time, so an auth header can carry a secret without embedding it in the URL.
2769
+ * For webhook nodes — parks the run awaiting an inbound callback. `receive` is the only mode; to send a notification out of a graph, use an `emit_event` node instead.
2732
2770
  *
2733
2771
  */
2734
- headers?: {
2735
- [key: string]: string;
2736
- };
2772
+ mode?: 'receive';
2737
2773
  /**
2738
- * For webhook emit nodes — when set, the POST body is HMAC-SHA256 signed with this secret and the digest is sent as the `X-Soat-Signature: sha256=<hex>` header so the receiver can authenticate the payload. Supports `{{secret:...}}` templating.
2774
+ * For emit_event nodes — the internal event type to emit (e.g. `guardrail.exception`). The node's input_mapping becomes the event `data`. Any Webhook subscribed to this event type in the run's project then delivers it — signed, retried, and tracked by the Webhooks module so the graph holds no URL or secret of its own.
2739
2775
  *
2740
2776
  */
2741
- signing_secret?: string;
2777
+ event_type?: string;
2742
2778
  /**
2743
2779
  * Public ID of the orchestration this node runs — the child orchestration for sub_orchestration nodes, and the orchestration run once per item for loop nodes.
2744
2780
  *
@@ -2923,12 +2959,29 @@ type OrchestrationRun = {
2923
2959
  * Per-node execution records in chronological order. Each entry captures the resolved input, output, status, and error for a single node execution — the orchestration analogue of an LLM trace.
2924
2960
  */
2925
2961
  node_executions?: Array<NodeExecution>;
2962
+ /**
2963
+ * Usage roll-up (token counts and cost_usd) summed across every metered generation the run produced. Present on the single-run read; omitted from run list responses.
2964
+ */
2965
+ usage?: RunUsageTotals;
2926
2966
  required_action?: RequiredAction | null;
2927
2967
  started_at?: Date | null;
2928
2968
  completed_at?: Date | null;
2929
2969
  created_at: Date;
2930
2970
  updated_at: Date;
2931
2971
  };
2972
+ /**
2973
+ * Token and cost roll-up for an orchestration run, summed across every usage event the run's generations produced.
2974
+ */
2975
+ type RunUsageTotals = {
2976
+ total_input_tokens?: number;
2977
+ total_output_tokens?: number;
2978
+ total_cached_tokens?: number;
2979
+ total_reasoning_tokens?: number;
2980
+ /**
2981
+ * Sum of the run's priced component costs in USD. Null when nothing on the run was priced.
2982
+ */
2983
+ total_cost_usd?: number | null;
2984
+ };
2932
2985
  /**
2933
2986
  * Record of a single node execution within a run, used to debug which node failed, what input it received, and what it produced.
2934
2987
  */
@@ -3070,20 +3123,24 @@ type ProjectPrice = {
3070
3123
  * Always null for a project + provider-slug price
3071
3124
  */
3072
3125
  ai_provider_id?: string | null;
3126
+ /**
3127
+ * Always `llm_tokens` for project prices
3128
+ */
3129
+ meter_type?: string;
3073
3130
  provider?: string;
3074
3131
  model?: string;
3075
3132
  /**
3076
- * USD per one million input (prompt) tokens
3133
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
3077
3134
  */
3078
- input_price_per_m?: number;
3135
+ component?: string;
3079
3136
  /**
3080
- * USD per one million output (completion) tokens
3137
+ * Always `token` for token pricing
3081
3138
  */
3082
- output_price_per_m?: number;
3139
+ unit?: string;
3083
3140
  /**
3084
- * USD per one million cached input tokens; null falls back to the input price
3141
+ * USD per token for this component
3085
3142
  */
3086
- cached_price_per_m?: number | null;
3143
+ unit_price?: number;
3087
3144
  /**
3088
3145
  * The row with the latest effective_from <= now() prices a call
3089
3146
  */
@@ -3097,9 +3154,18 @@ type UpsertProjectPricesRequest = {
3097
3154
  prices: Array<{
3098
3155
  provider: string;
3099
3156
  model: string;
3100
- input_price_per_m: number;
3101
- output_price_per_m: number;
3102
- cached_price_per_m?: number | null;
3157
+ /**
3158
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
3159
+ */
3160
+ component: string;
3161
+ /**
3162
+ * Always `token` for token pricing
3163
+ */
3164
+ unit: string;
3165
+ /**
3166
+ * USD per token for this component
3167
+ */
3168
+ unit_price: number;
3103
3169
  /**
3104
3170
  * Must be in the future; past prices are immutable
3105
3171
  */
@@ -3733,9 +3799,48 @@ type TriggerFiringListResponse = {
3733
3799
  limit?: number;
3734
3800
  offset?: number;
3735
3801
  };
3736
- type UsageMeter = {
3802
+ /**
3803
+ * One priced dimension of a usage event. Every meter type is expressed as components, so tokens and infra are uniform: an `llm_tokens` event has `input_tokens` / `output_tokens` (+ `cached_tokens`, and a non-billable `reasoning_tokens` detail), a `compute_execution` event has one `compute_second` component.
3804
+ *
3805
+ */
3806
+ type UsageComponent = {
3807
+ /**
3808
+ * The measured dimension (e.g. `input_tokens`, `compute_second`)
3809
+ */
3810
+ component?: string;
3811
+ /**
3812
+ * The measured amount, expressed in `unit`
3813
+ */
3814
+ quantity?: number;
3815
+ /**
3816
+ * Unit `quantity` is measured in (`token`, `compute_second`, …)
3817
+ */
3818
+ unit?: string;
3819
+ /**
3820
+ * Whether this component contributes to cost. Non-billable details (e.g. `reasoning_tokens`, a subset of `output_tokens`) are never priced and never double-counted into billable totals.
3821
+ *
3822
+ */
3823
+ billable?: boolean;
3824
+ /**
3825
+ * USD per `unit`, frozen at write time; null when unpriced
3826
+ */
3827
+ unit_price?: number | null;
3828
+ /**
3829
+ * quantity × unit_price, frozen at write time; null when unpriced
3830
+ */
3831
+ cost_usd?: number | null;
3832
+ /**
3833
+ * Public ID of the price-book row that priced this component
3834
+ */
3835
+ price_id?: string | null;
3836
+ };
3837
+ /**
3838
+ * One metered occurrence (a completed LLM call, a node execution, …). Attribution and total cost live here; the measured quantities live in `components`.
3839
+ *
3840
+ */
3841
+ type UsageEvent = {
3737
3842
  /**
3738
- * Public ID of the usage-meter row
3843
+ * Public ID of the usage event
3739
3844
  */
3740
3845
  id?: string;
3741
3846
  /**
@@ -3743,7 +3848,7 @@ type UsageMeter = {
3743
3848
  */
3744
3849
  project_id?: string;
3745
3850
  /**
3746
- * Public ID of the orchestration run that initiated the call, when the generation ran inside a run. Null for standalone generations.
3851
+ * Public ID of the orchestration run that initiated the occurrence. Null for standalone events.
3747
3852
  *
3748
3853
  */
3749
3854
  run_id?: string | null;
@@ -3764,7 +3869,7 @@ type UsageMeter = {
3764
3869
  */
3765
3870
  trace_id?: string | null;
3766
3871
  /**
3767
- * Public ID of the AI provider instance billed. Correlates the meter to the price book. Null if the provider was later deleted; the `provider`/`model` snapshot still records what was billed.
3872
+ * Public ID of the AI provider instance billed. Null if the provider was later deleted; the `provider`/`model` snapshot still records what was billed.
3768
3873
  *
3769
3874
  */
3770
3875
  ai_provider_id?: string | null;
@@ -3779,68 +3884,158 @@ type UsageMeter = {
3779
3884
  */
3780
3885
  action_id?: string | null;
3781
3886
  /**
3782
- * Denormalized as-billed provider slug, retained even if the AI provider is later deleted
3887
+ * What the event measures: `llm_tokens`, `compute_execution`, `api_request`, or `storage`.
3888
+ *
3889
+ */
3890
+ meter_type?: string;
3891
+ /**
3892
+ * As-billed SKU vendor slug, retained even if the AI provider is deleted. `soat` for platform meter types.
3783
3893
  *
3784
3894
  */
3785
3895
  provider?: string;
3786
3896
  /**
3787
- * Model identifier the provider billed
3897
+ * Model id, or the billable SKU for platform meter types
3788
3898
  */
3789
3899
  model?: string;
3790
3900
  /**
3791
- * Input (prompt) tokens reported by the provider
3901
+ * Total USD cost the sum of the priced component costs, frozen at write time. Null when no component was priced.
3902
+ *
3792
3903
  */
3793
- input_tokens?: number;
3904
+ cost_usd?: number | null;
3905
+ components?: Array<UsageComponent>;
3906
+ created_at?: Date;
3907
+ };
3908
+ /**
3909
+ * Summed token counts and cost for a bucket (or the grand total).
3910
+ */
3911
+ type UsageAggregateTotals = {
3794
3912
  /**
3795
- * Output (completion) tokens reported by the provider
3913
+ * Sum of priced event costs in the bucket; null when nothing is priced
3796
3914
  */
3797
- output_tokens?: number;
3915
+ cost_usd?: number | null;
3798
3916
  /**
3799
- * Cached input tokens read, when the provider reports them
3917
+ * Full prompt tokens (uncached input + cached), reconstructed from components
3800
3918
  */
3919
+ input_tokens?: number;
3920
+ output_tokens?: number;
3801
3921
  cached_tokens?: number;
3922
+ reasoning_tokens?: number;
3923
+ };
3924
+ type UsageAggregate = {
3925
+ project_id?: string;
3926
+ /**
3927
+ * Lower bound applied, echoed back; null when unbounded
3928
+ */
3929
+ from?: Date | null;
3930
+ /**
3931
+ * Upper bound applied, echoed back; null when unbounded
3932
+ */
3933
+ to?: Date | null;
3934
+ group_by?: 'model' | 'agent' | 'run' | 'day' | 'meter_type';
3935
+ /**
3936
+ * One entry per distinct value in the chosen dimension.
3937
+ */
3938
+ groups?: Array<{
3939
+ /**
3940
+ * The bucket's value in the chosen dimension (a model id, meter type, agent/run public id, or `YYYY-MM-DD` UTC day). Null when the dimension does not apply to an event.
3941
+ *
3942
+ */
3943
+ key?: string | null;
3944
+ } & UsageAggregateTotals>;
3945
+ totals?: UsageAggregateTotals;
3946
+ };
3947
+ /**
3948
+ * A per-project alert rule on windowed usage. When the project's `metric` over `window` crosses `threshold`, a `usage.threshold_crossed` webhook fires. Fire state is enforced with once-per-window (calendar) / 10% re-arm (rolling) hysteresis.
3949
+ *
3950
+ */
3951
+ type UsageThreshold = {
3952
+ /**
3953
+ * Public ID of the threshold
3954
+ */
3955
+ id?: string;
3956
+ project_id?: string;
3802
3957
  /**
3803
- * Reasoning tokens the provider reports separately (e.g. OpenAI `completion_tokens_details.reasoning_tokens`). 0 when unreported.
3958
+ * What is measured: `cost_usd` (across all meter types) or `tokens` (input + output + cached).
3804
3959
  *
3805
3960
  */
3806
- reasoning_tokens?: number;
3961
+ metric?: 'cost_usd' | 'tokens';
3807
3962
  /**
3808
- * Cost in USD computed at write time from the versioned price book. Null when the tokens are captured but not yet priced.
3963
+ * The evaluation window: the current UTC calendar month, or the trailing 24 hours.
3809
3964
  *
3810
3965
  */
3811
- cost_usd?: number | null;
3966
+ window?: 'calendar_month' | 'rolling_24h';
3967
+ /**
3968
+ * The value the windowed aggregate must cross to fire
3969
+ */
3970
+ threshold?: number;
3812
3971
  /**
3813
- * Public ID of the price-book row that produced `cost_usd` (the price-table version). Null when no price applied.
3972
+ * When the threshold last fired; null until first fire
3973
+ */
3974
+ last_fired_at?: Date | null;
3975
+ /**
3976
+ * The `YYYY-MM` window key of the last fire (calendar_month hysteresis); null for rolling_24h and before the first fire.
3814
3977
  *
3815
3978
  */
3816
- price_id?: string | null;
3979
+ fired_window_key?: string | null;
3817
3980
  created_at?: Date;
3818
3981
  };
3982
+ type CreateUsageThresholdRequest = {
3983
+ project_id: string;
3984
+ metric: 'cost_usd' | 'tokens';
3985
+ window: 'calendar_month' | 'rolling_24h';
3986
+ /**
3987
+ * Must be greater than 0
3988
+ */
3989
+ threshold: number;
3990
+ };
3819
3991
  type UsageReceipt = {
3992
+ /**
3993
+ * Present on a per-generation receipt; absent on a per-run receipt.
3994
+ *
3995
+ */
3820
3996
  generation_id?: string;
3997
+ /**
3998
+ * Present on a per-run receipt (summed across the run's meters); absent on a per-generation receipt.
3999
+ *
4000
+ */
4001
+ run_id?: string;
3821
4002
  currency?: string;
4003
+ /**
4004
+ * One line per usage event — for a generation receipt, the events on that generation; for a run receipt, every event across the run.
4005
+ *
4006
+ */
3822
4007
  line_items?: Array<{
4008
+ event_id?: string;
4009
+ meter_type?: string;
3823
4010
  provider?: string;
3824
4011
  model?: string;
3825
- /**
3826
- * Price-book version that priced this line
3827
- */
3828
- price_id?: string | null;
3829
- input_tokens?: number;
3830
- output_tokens?: number;
3831
- cached_tokens?: number;
3832
- reasoning_tokens?: number;
4012
+ cost_usd?: number | null;
4013
+ components?: Array<UsageComponent>;
4014
+ }>;
4015
+ /**
4016
+ * Per-meter-type cost rollup — the "tokens + infra" split. A single-type receipt has one entry whose cost equals the receipt total.
4017
+ *
4018
+ */
4019
+ by_meter_type?: Array<{
4020
+ meter_type?: string;
3833
4021
  cost_usd?: number | null;
3834
4022
  }>;
4023
+ /**
4024
+ * Full prompt tokens (uncached input + cached), reconstructed from components
4025
+ */
3835
4026
  total_input_tokens?: number;
3836
4027
  total_output_tokens?: number;
3837
4028
  total_cached_tokens?: number;
3838
4029
  total_reasoning_tokens?: number;
3839
4030
  /**
3840
- * Sum of priced line costs; null when no line is priced
4031
+ * Sum of priced component costs; null when nothing is priced
3841
4032
  */
3842
4033
  total_cost_usd?: number | null;
3843
4034
  };
4035
+ /**
4036
+ * A versioned unit price for one billable component of a SKU. Cost is uniform across meter types — quantity × unit_price.
4037
+ *
4038
+ */
3844
4039
  type Price = {
3845
4040
  /**
3846
4041
  * Public ID of the price row
@@ -3851,20 +4046,30 @@ type Price = {
3851
4046
  *
3852
4047
  */
3853
4048
  ai_provider_id?: string | null;
4049
+ /**
4050
+ * Meter type this SKU belongs to (`llm_tokens`, `compute_execution`, …)
4051
+ */
4052
+ meter_type?: string;
4053
+ /**
4054
+ * SKU vendor slug (`openai`, or `soat` for platform SKUs)
4055
+ */
3854
4056
  provider?: string;
4057
+ /**
4058
+ * Model id, or the billable SKU for platform meter types
4059
+ */
3855
4060
  model?: string;
3856
4061
  /**
3857
- * USD per one million input (prompt) tokens
4062
+ * The component this row prices (`input_tokens`, `compute_second`, …)
3858
4063
  */
3859
- input_price_per_m?: number;
4064
+ component?: string;
3860
4065
  /**
3861
- * USD per one million output (completion) tokens
4066
+ * Unit `unit_price` is denominated in (`token`, `compute_second`, …)
3862
4067
  */
3863
- output_price_per_m?: number;
4068
+ unit?: string;
3864
4069
  /**
3865
- * USD per one million cached input tokens; null falls back to the input price
4070
+ * USD per `unit` (for token components, USD per token)
3866
4071
  */
3867
- cached_price_per_m?: number | null;
4072
+ unit_price?: number;
3868
4073
  /**
3869
4074
  * The row with the latest effective_from <= now() prices a call
3870
4075
  */
@@ -3881,11 +4086,25 @@ type UpsertPricesRequest = {
3881
4086
  *
3882
4087
  */
3883
4088
  ai_provider_id?: string | null;
4089
+ /**
4090
+ * Defaults to `llm_tokens`. Set to a platform meter type (e.g. `compute_execution`) for a platform SKU.
4091
+ *
4092
+ */
4093
+ meter_type?: string;
3884
4094
  provider: string;
3885
4095
  model: string;
3886
- input_price_per_m: number;
3887
- output_price_per_m: number;
3888
- cached_price_per_m?: number | null;
4096
+ /**
4097
+ * The component this row prices (`input_tokens`, `compute_second`, …)
4098
+ */
4099
+ component: string;
4100
+ /**
4101
+ * Unit `unit_price` is denominated in (`token`, `compute_second`, …)
4102
+ */
4103
+ unit: string;
4104
+ /**
4105
+ * USD per `unit`
4106
+ */
4107
+ unit_price: number;
3889
4108
  /**
3890
4109
  * Must be in the future; past prices are immutable
3891
4110
  */
@@ -6300,6 +6519,14 @@ type ListDocumentsData = {
6300
6519
  * Project ID (optional)
6301
6520
  */
6302
6521
  project_id?: string;
6522
+ /**
6523
+ * Maximum number of results to return
6524
+ */
6525
+ limit?: number;
6526
+ /**
6527
+ * Number of results to skip
6528
+ */
6529
+ offset?: number;
6303
6530
  };
6304
6531
  url: '/api/v1/documents';
6305
6532
  };
@@ -6318,7 +6545,12 @@ type ListDocumentsResponses = {
6318
6545
  /**
6319
6546
  * List of documents
6320
6547
  */
6321
- 200: Array<DocumentRecord>;
6548
+ 200: {
6549
+ data?: Array<DocumentRecord>;
6550
+ total?: number;
6551
+ limit?: number;
6552
+ offset?: number;
6553
+ };
6322
6554
  };
6323
6555
  type ListDocumentsResponse = ListDocumentsResponses[keyof ListDocumentsResponses];
6324
6556
  type CreateDocumentData = {
@@ -10529,6 +10761,11 @@ type ListUsageMetersData = {
10529
10761
  * Filter by logical action id
10530
10762
  */
10531
10763
  action_id?: string;
10764
+ /**
10765
+ * Filter by meter type (e.g. `llm_tokens`, `compute_execution`, `api_request`, `storage`)
10766
+ *
10767
+ */
10768
+ meter_type?: string;
10532
10769
  limit?: number;
10533
10770
  offset?: number;
10534
10771
  };
@@ -10550,21 +10787,167 @@ type ListUsageMetersResponses = {
10550
10787
  * Paginated list of usage-meter rows
10551
10788
  */
10552
10789
  200: {
10553
- data?: Array<UsageMeter>;
10790
+ data?: Array<UsageEvent>;
10554
10791
  total?: number;
10555
10792
  limit?: number;
10556
10793
  offset?: number;
10557
10794
  };
10558
10795
  };
10559
10796
  type ListUsageMetersResponse = ListUsageMetersResponses[keyof ListUsageMetersResponses];
10560
- type GetUsageReceiptData = {
10797
+ type GetUsageData = {
10561
10798
  body?: never;
10562
10799
  path?: never;
10563
10800
  query: {
10564
10801
  /**
10565
- * Generation public ID
10802
+ * Project public ID to aggregate usage for
10566
10803
  */
10567
- generation_id: string;
10804
+ project_id: string;
10805
+ /**
10806
+ * Dimension to bucket by. `day` buckets on the event's UTC calendar day; the others bucket on the matching column.
10807
+ *
10808
+ */
10809
+ group_by: 'model' | 'agent' | 'run' | 'day' | 'meter_type';
10810
+ /**
10811
+ * Inclusive lower bound (ISO-8601 timestamp) on the event created_at. Omit for no lower bound.
10812
+ *
10813
+ */
10814
+ from?: Date;
10815
+ /**
10816
+ * Inclusive upper bound (ISO-8601 timestamp) on the event created_at. Omit for no upper bound.
10817
+ *
10818
+ */
10819
+ to?: Date;
10820
+ };
10821
+ url: '/api/v1/usage';
10822
+ };
10823
+ type GetUsageErrors = {
10824
+ /**
10825
+ * Bad Request (missing project_id, invalid group_by or timestamp)
10826
+ */
10827
+ 400: ErrorResponse;
10828
+ /**
10829
+ * Unauthorized
10830
+ */
10831
+ 401: ErrorResponse;
10832
+ /**
10833
+ * Forbidden
10834
+ */
10835
+ 403: ErrorResponse;
10836
+ };
10837
+ type GetUsageError = GetUsageErrors[keyof GetUsageErrors];
10838
+ type GetUsageResponses = {
10839
+ /**
10840
+ * The aggregated usage rollup
10841
+ */
10842
+ 200: UsageAggregate;
10843
+ };
10844
+ type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
10845
+ type ListUsageThresholdsData = {
10846
+ body?: never;
10847
+ path?: never;
10848
+ query?: {
10849
+ /**
10850
+ * Filter by project public ID
10851
+ */
10852
+ project_id?: string;
10853
+ };
10854
+ url: '/api/v1/usage/thresholds';
10855
+ };
10856
+ type ListUsageThresholdsErrors = {
10857
+ /**
10858
+ * Unauthorized
10859
+ */
10860
+ 401: ErrorResponse;
10861
+ /**
10862
+ * Forbidden
10863
+ */
10864
+ 403: ErrorResponse;
10865
+ };
10866
+ type ListUsageThresholdsError = ListUsageThresholdsErrors[keyof ListUsageThresholdsErrors];
10867
+ type ListUsageThresholdsResponses = {
10868
+ /**
10869
+ * The usage thresholds
10870
+ */
10871
+ 200: {
10872
+ data?: Array<UsageThreshold>;
10873
+ };
10874
+ };
10875
+ type ListUsageThresholdsResponse = ListUsageThresholdsResponses[keyof ListUsageThresholdsResponses];
10876
+ type CreateUsageThresholdData = {
10877
+ body: CreateUsageThresholdRequest;
10878
+ path?: never;
10879
+ query?: never;
10880
+ url: '/api/v1/usage/thresholds';
10881
+ };
10882
+ type CreateUsageThresholdErrors = {
10883
+ /**
10884
+ * Bad Request (missing/invalid metric, window, or threshold)
10885
+ */
10886
+ 400: ErrorResponse;
10887
+ /**
10888
+ * Unauthorized
10889
+ */
10890
+ 401: ErrorResponse;
10891
+ /**
10892
+ * Forbidden
10893
+ */
10894
+ 403: ErrorResponse;
10895
+ };
10896
+ type CreateUsageThresholdError = CreateUsageThresholdErrors[keyof CreateUsageThresholdErrors];
10897
+ type CreateUsageThresholdResponses = {
10898
+ /**
10899
+ * The created threshold
10900
+ */
10901
+ 201: UsageThreshold;
10902
+ };
10903
+ type CreateUsageThresholdResponse = CreateUsageThresholdResponses[keyof CreateUsageThresholdResponses];
10904
+ type DeleteUsageThresholdData = {
10905
+ body?: never;
10906
+ path: {
10907
+ /**
10908
+ * Threshold public ID
10909
+ */
10910
+ threshold_id: string;
10911
+ };
10912
+ query?: never;
10913
+ url: '/api/v1/usage/thresholds/{threshold_id}';
10914
+ };
10915
+ type DeleteUsageThresholdErrors = {
10916
+ /**
10917
+ * Unauthorized
10918
+ */
10919
+ 401: ErrorResponse;
10920
+ /**
10921
+ * Forbidden
10922
+ */
10923
+ 403: ErrorResponse;
10924
+ /**
10925
+ * Threshold not found
10926
+ */
10927
+ 404: ErrorResponse;
10928
+ };
10929
+ type DeleteUsageThresholdError = DeleteUsageThresholdErrors[keyof DeleteUsageThresholdErrors];
10930
+ type DeleteUsageThresholdResponses = {
10931
+ /**
10932
+ * Deleted
10933
+ */
10934
+ 204: void;
10935
+ };
10936
+ type DeleteUsageThresholdResponse = DeleteUsageThresholdResponses[keyof DeleteUsageThresholdResponses];
10937
+ type GetUsageReceiptData = {
10938
+ body?: never;
10939
+ path?: never;
10940
+ query?: {
10941
+ /**
10942
+ * Generation public ID. Mutually exclusive with run_id.
10943
+ *
10944
+ */
10945
+ generation_id?: string;
10946
+ /**
10947
+ * Orchestration run public ID. Returns the receipt summed across every generation the run metered. Mutually exclusive with generation_id.
10948
+ *
10949
+ */
10950
+ run_id?: string;
10568
10951
  };
10569
10952
  url: '/api/v1/usage/receipt';
10570
10953
  };
@@ -10585,7 +10968,7 @@ type GetUsageReceiptErrors = {
10585
10968
  type GetUsageReceiptError = GetUsageReceiptErrors[keyof GetUsageReceiptErrors];
10586
10969
  type GetUsageReceiptResponses = {
10587
10970
  /**
10588
- * The generation's usage receipt
10971
+ * The generation or run usage receipt
10589
10972
  */
10590
10973
  200: UsageReceipt;
10591
10974
  };
@@ -12280,12 +12663,40 @@ declare class Usage {
12280
12663
  */
12281
12664
  static listUsageMeters<ThrowOnError extends boolean = false>(options?: Options<ListUsageMetersData, ThrowOnError>): RequestResult<ListUsageMetersResponses, ListUsageMetersErrors, ThrowOnError>;
12282
12665
  /**
12283
- * Get a generation's billing receipt
12666
+ * Get aggregated usage for a project
12667
+ *
12668
+ * Returns a project's usage rolled up over an optional `[from, to]` time window, bucketed by a single dimension. Each group and the grand total carry summed token counts and `cost_usd` (null when no event in the bucket was priced). This is the per-project cost-by-range/by-category query — a monthly figure without scanning raw meter rows client-side.
12669
+ *
12670
+ */
12671
+ static getUsage<ThrowOnError extends boolean = false>(options: Options<GetUsageData, ThrowOnError>): RequestResult<GetUsageResponses, GetUsageErrors, ThrowOnError>;
12672
+ /**
12673
+ * List usage thresholds
12674
+ *
12675
+ * Lists the usage alert thresholds the caller can access, optionally filtered by project_id. Each threshold fires the `usage.threshold_crossed` webhook when a project's cost or token usage over a calendar-month or rolling-24h window crosses the configured value.
12676
+ *
12677
+ */
12678
+ static listUsageThresholds<ThrowOnError extends boolean = false>(options?: Options<ListUsageThresholdsData, ThrowOnError>): RequestResult<ListUsageThresholdsResponses, ListUsageThresholdsErrors, ThrowOnError>;
12679
+ /**
12680
+ * Create a usage threshold
12681
+ *
12682
+ * Creates a usage alert threshold on a project. Thresholds are immutable apart from deletion — to change one, delete and recreate it (which resets its fire state).
12683
+ *
12684
+ */
12685
+ static createUsageThreshold<ThrowOnError extends boolean = false>(options: Options<CreateUsageThresholdData, ThrowOnError>): RequestResult<CreateUsageThresholdResponses, CreateUsageThresholdErrors, ThrowOnError>;
12686
+ /**
12687
+ * Delete a usage threshold
12688
+ *
12689
+ * Deletes a usage threshold, resetting its fire state. Recreating a threshold starts its once-per-window / hysteresis state fresh.
12690
+ *
12691
+ */
12692
+ static deleteUsageThreshold<ThrowOnError extends boolean = false>(options: Options<DeleteUsageThresholdData, ThrowOnError>): RequestResult<DeleteUsageThresholdResponses, DeleteUsageThresholdErrors, ThrowOnError>;
12693
+ /**
12694
+ * Get a generation or run billing receipt
12284
12695
  *
12285
- * Returns a billing receipt for a completed generation: per-model line items (tokens, the price-book version that priced them, and cost) plus totals.
12696
+ * Returns a billing receipt. Pass generation_id for a per-generation receipt, or run_id for a per-run receipt summed across the orchestration run's meters — both share the same shape (per-model line items with tokens, the price-book version that priced them, and cost, plus totals). Exactly one of generation_id or run_id must be supplied.
12286
12697
  *
12287
12698
  */
12288
- static getUsageReceipt<ThrowOnError extends boolean = false>(options: Options<GetUsageReceiptData, ThrowOnError>): RequestResult<GetUsageReceiptResponses, GetUsageReceiptErrors, ThrowOnError>;
12699
+ static getUsageReceipt<ThrowOnError extends boolean = false>(options?: Options<GetUsageReceiptData, ThrowOnError>): RequestResult<GetUsageReceiptResponses, GetUsageReceiptErrors, ThrowOnError>;
12289
12700
  /**
12290
12701
  * Get the price book
12291
12702
  *
@@ -12476,4 +12887,4 @@ declare class SoatClient {
12476
12887
  constructor({ baseUrl, token, headers }?: SoatClientOptions);
12477
12888
  }
12478
12889
  //#endregion
12479
- export { type ActorRecord, type ActorResourceProperties, Actors, type AddConversationMessageData, type AddConversationMessageError, type AddConversationMessageErrors, type AddConversationMessageResponse, type AddConversationMessageResponses, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageRequest, type AddSessionMessageResponse, type AddSessionMessageResponse2, type AddSessionMessageResponses, type AddSessionMessageSaved, type Agent, type AgentGenerationResponse, type AgentResourceProperties, Agents, type AiProviderResourceProperties, AiProviders, type ApiKeyCreated, type ApiKeyRecord, type ApiKeyResourceProperties, ApiKeys, type ApprovalId, type ApprovalItem, Approvals, type ApproveApprovalData, type ApproveApprovalErrors, type ApproveApprovalResponse, type ApproveApprovalResponses, type AttachUserPoliciesData, type AttachUserPoliciesError, type AttachUserPoliciesErrors, type AttachUserPoliciesResponse, type AttachUserPoliciesResponses, type BootstrapUserData, type BootstrapUserError, type BootstrapUserErrors, type BootstrapUserResponse, type BootstrapUserResponses, type CallToolData, type CallToolError, type CallToolErrors, type CallToolRequest, type CallToolResponse, type CallToolResponses, type CancelOrchestrationRunData, type CancelOrchestrationRunErrors, type CancelOrchestrationRunResponse, type CancelOrchestrationRunResponses, type Chat, type ChatCompletionChoice, type ChatCompletionForChatRequest, type ChatCompletionRequest, type ChatCompletionResponse, type ChatCompletionResponseMessage, type ChatMessage, type ChatMessageInput, type ChatResourceProperties, Chats, type ClientOptions, type CompleteIngestionCallbackData, type CompleteIngestionCallbackError, type CompleteIngestionCallbackErrors, type CompleteIngestionCallbackResponse, type CompleteIngestionCallbackResponses, type ConversationMessageRecord, type ConversationRecord, type ConversationResourceProperties, Conversations, type CreateActorData, type CreateActorError, type CreateActorErrors, type CreateActorResponse, type CreateActorResponses, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentGenerationData, type CreateAgentGenerationError, type CreateAgentGenerationErrors, type CreateAgentGenerationRequest, type CreateAgentGenerationResponse, type CreateAgentGenerationResponses, type CreateAgentRequest, type CreateAgentResponse, type CreateAgentResponses, type CreateAiProviderData, type CreateAiProviderErrors, type CreateAiProviderResponse, type CreateAiProviderResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateChatCompletionData, type CreateChatCompletionError, type CreateChatCompletionErrors, type CreateChatCompletionForChatData, type CreateChatCompletionForChatError, type CreateChatCompletionForChatErrors, type CreateChatCompletionForChatResponse, type CreateChatCompletionForChatResponses, type CreateChatCompletionResponse, type CreateChatCompletionResponses, type CreateChatData, type CreateChatError, type CreateChatErrors, type CreateChatRequest, type CreateChatResponse, type CreateChatResponses, type CreateConversationData, type CreateConversationError, type CreateConversationErrors, type CreateConversationResponse, type CreateConversationResponses, type CreateDiscussionData, type CreateDiscussionError, type CreateDiscussionErrors, type CreateDiscussionResponse, type CreateDiscussionResponses, type CreateDiscussionRunData, type CreateDiscussionRunError, type CreateDiscussionRunErrors, type CreateDiscussionRunResponse, type CreateDiscussionRunResponses, type CreateDocumentData, type CreateDocumentError, type CreateDocumentErrors, type CreateDocumentResponse, type CreateDocumentResponses, type CreateEmbeddingsData, type CreateEmbeddingsError, type CreateEmbeddingsErrors, type CreateEmbeddingsResponse, type CreateEmbeddingsResponses, type CreateFileData, type CreateFileError, type CreateFileErrors, type CreateFileResponse, type CreateFileResponses, type CreateFormationData, type CreateFormationErrors, type CreateFormationResponse, type CreateFormationResponses, type CreateIngestionRuleData, type CreateIngestionRuleErrors, type CreateIngestionRuleResponse, type CreateIngestionRuleResponses, type CreateMemoryData, type CreateMemoryEntryData, type CreateMemoryEntryErrors, type CreateMemoryEntryResponse, type CreateMemoryEntryResponses, type CreateMemoryErrors, type CreateMemoryResponse, type CreateMemoryResponses, type CreateOrchestrationData, type CreateOrchestrationErrors, type CreateOrchestrationRequest, type CreateOrchestrationResponse, type CreateOrchestrationResponses, type CreatePolicyData, type CreatePolicyError, type CreatePolicyErrors, type CreatePolicyResponse, type CreatePolicyResponses, type CreatePresignedUrlData, type CreatePresignedUrlError, type CreatePresignedUrlErrors, type CreatePresignedUrlResponse, type CreatePresignedUrlResponses, type CreateProjectData, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateSecretData, type CreateSecretErrors, type CreateSecretResponse, type CreateSecretResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionRequest, type CreateSessionResponse, type CreateSessionResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolRequest, type CreateToolResponse, type CreateToolResponses, type CreateTriggerData, type CreateTriggerErrors, type CreateTriggerRequest, type CreateTriggerResponse, type CreateTriggerResponses, type CreateUserData, type CreateUserError, type CreateUserErrors, type CreateUserResponse, type CreateUserResponses, type CreateWebhookData, type CreateWebhookErrors, type CreateWebhookRequest, type CreateWebhookResponse, type CreateWebhookResponses, type DeleteActorData, type DeleteActorError, type DeleteActorErrors, type DeleteActorResponse, type DeleteActorResponses, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteAiProviderData, type DeleteAiProviderErrors, type DeleteAiProviderResponses, type DeleteApiKeyData, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteChatData, type DeleteChatError, type DeleteChatErrors, type DeleteChatResponse, type DeleteChatResponses, type DeleteConversationData, type DeleteConversationError, type DeleteConversationErrors, type DeleteConversationResponse, type DeleteConversationResponses, type DeleteDiscussionData, type DeleteDiscussionError, type DeleteDiscussionErrors, type DeleteDiscussionResponse, type DeleteDiscussionResponses, type DeleteDocumentData, type DeleteDocumentError, type DeleteDocumentErrors, type DeleteDocumentResponse, type DeleteDocumentResponses, type DeleteFileData, type DeleteFileError, type DeleteFileErrors, type DeleteFileResponse, type DeleteFileResponses, type DeleteFormationData, type DeleteFormationErrors, type DeleteFormationResponse, type DeleteFormationResponses, type DeleteIngestionRuleData, type DeleteIngestionRuleErrors, type DeleteIngestionRuleResponse, type DeleteIngestionRuleResponses, type DeleteMemoryData, type DeleteMemoryEntryData, type DeleteMemoryEntryErrors, type DeleteMemoryEntryResponse, type DeleteMemoryEntryResponses, type DeleteMemoryErrors, type DeleteMemoryResponse, type DeleteMemoryResponses, type DeleteOrchestrationData, type DeleteOrchestrationErrors, type DeleteOrchestrationResponse, type DeleteOrchestrationResponses, type DeletePolicyData, type DeletePolicyErrors, type DeletePolicyResponse, type DeletePolicyResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteSecretData, type DeleteSecretErrors, type DeleteSecretResponses, type DeleteSessionData, type DeleteSessionError, type DeleteSessionErrors, type DeleteSessionResponse, type DeleteSessionResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteTriggerData, type DeleteTriggerErrors, type DeleteTriggerResponse, type DeleteTriggerResponses, type DeleteUserData, type DeleteUserError, type DeleteUserErrors, type DeleteUserResponse, type DeleteUserResponses, type DeleteWebhookData, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type Delivery, type DeliveryListResponse, type DiscussionRecord, type DiscussionResourceProperties, type DiscussionRunRecord, Discussions, type DocumentKnowledgeResult, type DocumentMessageContent, type DocumentRecord, type DocumentResourceProperties, type DocumentStatusRecord, Documents, type DownloadFileBase64Data, type DownloadFileBase64Error, type DownloadFileBase64Errors, type DownloadFileBase64Response, type DownloadFileBase64Responses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, Embeddings, type EmbeddingsResponse, type ErrorResponse, type FileRecord, type FileRecordWritable, type FileResourceProperties, Files, type FireTriggerData, type FireTriggerErrors, type FireTriggerRequest, type FireTriggerResponse, type FireTriggerResponses, type Formation, type FormationEvent, type FormationOperation, type FormationResource, type FormationTemplate, type FormationTemplateInput, Formations, type GenerateConversationMessageCompleted, type GenerateConversationMessageData, type GenerateConversationMessageError, type GenerateConversationMessageErrors, type GenerateConversationMessageRequiresAction, type GenerateConversationMessageResponse, type GenerateConversationMessageResponse2, type GenerateConversationMessageResponses, type GenerateSessionRequest, type GenerateSessionResponse, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, Generations, type GetActorData, type GetActorError, type GetActorErrors, type GetActorResponse, type GetActorResponses, type GetActorTagsData, type GetActorTagsError, type GetActorTagsErrors, type GetActorTagsResponse, type GetActorTagsResponses, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetAiProviderData, type GetAiProviderErrors, type GetAiProviderPricesData, type GetAiProviderPricesErrors, type GetAiProviderPricesResponse, type GetAiProviderPricesResponses, type GetAiProviderResponse, type GetAiProviderResponses, type GetApiKeyData, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetApprovalData, type GetApprovalErrors, type GetApprovalResponse, type GetApprovalResponses, type GetChatData, type GetChatError, type GetChatErrors, type GetChatResponse, type GetChatResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetConversationTagsData, type GetConversationTagsError, type GetConversationTagsErrors, type GetConversationTagsResponse, type GetConversationTagsResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetDiscussionData, type GetDiscussionError, type GetDiscussionErrors, type GetDiscussionResponse, type GetDiscussionResponses, type GetDiscussionRunData, type GetDiscussionRunError, type GetDiscussionRunErrors, type GetDiscussionRunResponse, type GetDiscussionRunResponses, type GetDocumentData, type GetDocumentError, type GetDocumentErrors, type GetDocumentResponse, type GetDocumentResponses, type GetDocumentStatusData, type GetDocumentStatusError, type GetDocumentStatusErrors, type GetDocumentStatusResponse, type GetDocumentStatusResponses, type GetDocumentTagsData, type GetDocumentTagsError, type GetDocumentTagsErrors, type GetDocumentTagsResponse, type GetDocumentTagsResponses, type GetFileData, type GetFileError, type GetFileErrors, type GetFileResponse, type GetFileResponses, type GetFileTagsData, type GetFileTagsError, type GetFileTagsErrors, type GetFileTagsResponse, type GetFileTagsResponses, type GetFormationData, type GetFormationErrors, type GetFormationResponse, type GetFormationResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetIngestionRuleData, type GetIngestionRuleErrors, type GetIngestionRuleResponse, type GetIngestionRuleResponses, type GetMemoryData, type GetMemoryEntryData, type GetMemoryEntryErrors, type GetMemoryEntryResponse, type GetMemoryEntryResponses, type GetMemoryErrors, type GetMemoryResponse, type GetMemoryResponses, type GetOrchestrationData, type GetOrchestrationErrors, type GetOrchestrationResponse, type GetOrchestrationResponses, type GetOrchestrationRunData, type GetOrchestrationRunErrors, type GetOrchestrationRunResponse, type GetOrchestrationRunResponses, type GetPolicyData, type GetPolicyErrors, type GetPolicyResponse, type GetPolicyResponses, type GetPriceBookData, type GetPriceBookError, type GetPriceBookErrors, type GetPriceBookResponse, type GetPriceBookResponses, type GetProjectData, type GetProjectErrors, type GetProjectPricesData, type GetProjectPricesErrors, type GetProjectPricesResponse, type GetProjectPricesResponses, type GetProjectResponse, type GetProjectResponses, type GetSecretData, type GetSecretErrors, type GetSecretResponse, type GetSecretResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetSessionTagsData, type GetSessionTagsError, type GetSessionTagsErrors, type GetSessionTagsResponse, type GetSessionTagsResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetTriggerData, type GetTriggerErrors, type GetTriggerFiringData, type GetTriggerFiringErrors, type GetTriggerFiringResponse, type GetTriggerFiringResponses, type GetTriggerResponse, type GetTriggerResponses, type GetTriggerSecretData, type GetTriggerSecretErrors, type GetTriggerSecretResponse, type GetTriggerSecretResponses, type GetUsageReceiptData, type GetUsageReceiptError, type GetUsageReceiptErrors, type GetUsageReceiptResponse, type GetUsageReceiptResponses, type GetUserData, type GetUserError, type GetUserErrors, type GetUserResponse, type GetUserResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GetWebhookSecretData, type GetWebhookSecretErrors, type GetWebhookSecretResponse, type GetWebhookSecretResponses, type HumanInputRequest, type IngestDocumentData, type IngestDocumentError, type IngestDocumentErrors, type IngestDocumentResponse, type IngestDocumentResponses, type IngestedDocumentRecord, type IngestionRule, type IngestionRuleResourceProperties, IngestionRules, Knowledge, type KnowledgeResult, type ListActorsData, type ListActorsError, type ListActorsErrors, type ListActorsResponse, type ListActorsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListAiProvidersData, type ListAiProvidersErrors, type ListAiProvidersResponse, type ListAiProvidersResponses, type ListApiKeysData, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListApprovalsData, type ListApprovalsErrors, type ListApprovalsResponse, type ListApprovalsResponses, type ListChatsData, type ListChatsError, type ListChatsErrors, type ListChatsResponse, type ListChatsResponses, type ListConversationMessagesData, type ListConversationMessagesError, type ListConversationMessagesErrors, type ListConversationMessagesResponse, type ListConversationMessagesResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListDiscussionRunsData, type ListDiscussionRunsError, type ListDiscussionRunsErrors, type ListDiscussionRunsResponse, type ListDiscussionRunsResponses, type ListDiscussionsData, type ListDiscussionsError, type ListDiscussionsErrors, type ListDiscussionsResponse, type ListDiscussionsResponses, type ListDocumentsData, type ListDocumentsError, type ListDocumentsErrors, type ListDocumentsResponse, type ListDocumentsResponses, type ListFilesData, type ListFilesError, type ListFilesErrors, type ListFilesResponse, type ListFilesResponses, type ListFormationEventsData, type ListFormationEventsErrors, type ListFormationEventsResponse, type ListFormationEventsResponses, type ListFormationsData, type ListFormationsErrors, type ListFormationsResponse, type ListFormationsResponses, type ListGenerationsData, type ListGenerationsError, type ListGenerationsErrors, type ListGenerationsResponse, type ListGenerationsResponses, type ListIngestionRulesData, type ListIngestionRulesErrors, type ListIngestionRulesResponse, type ListIngestionRulesResponses, type ListMemoriesData, type ListMemoriesErrors, type ListMemoriesResponse, type ListMemoriesResponses, type ListMemoryEntriesData, type ListMemoryEntriesErrors, type ListMemoryEntriesResponse, type ListMemoryEntriesResponses, type ListOrchestrationRunsData, type ListOrchestrationRunsErrors, type ListOrchestrationRunsResponse, type ListOrchestrationRunsResponses, type ListOrchestrationsData, type ListOrchestrationsErrors, type ListOrchestrationsResponse, type ListOrchestrationsResponses, type ListPoliciesData, type ListPoliciesErrors, type ListPoliciesResponse, type ListPoliciesResponses, type ListProjectsData, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListSecretsData, type ListSecretsErrors, type ListSecretsResponse, type ListSecretsResponses, type ListSessionsData, type ListSessionsError, type ListSessionsErrors, type ListSessionsResponse, type ListSessionsResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListTriggerFiringsData, type ListTriggerFiringsErrors, type ListTriggerFiringsResponse, type ListTriggerFiringsResponses, type ListTriggersData, type ListTriggersErrors, type ListTriggersResponse, type ListTriggersResponses, type ListUsageMetersData, type ListUsageMetersError, type ListUsageMetersErrors, type ListUsageMetersResponse, type ListUsageMetersResponses, type ListUsersData, type ListUsersError, type ListUsersErrors, type ListUsersResponse, type ListUsersResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LoginResponse, type LoginUserData, type LoginUserError, type LoginUserErrors, type LoginUserResponse, type LoginUserResponses, Memories, type Memory, MemoryEntries, type MemoryEntry, type MemoryEntryResourceProperties, type MemoryEntryWriteResult, type MemoryKnowledgeResult, type MemoryResourceProperties, type MergeActorTagsData, type MergeActorTagsError, type MergeActorTagsErrors, type MergeActorTagsResponse, type MergeActorTagsResponses, type MergeConversationTagsData, type MergeConversationTagsError, type MergeConversationTagsErrors, type MergeConversationTagsResponse, type MergeConversationTagsResponses, type MergeDocumentTagsData, type MergeDocumentTagsError, type MergeDocumentTagsErrors, type MergeDocumentTagsResponse, type MergeDocumentTagsResponses, type MergeFileTagsData, type MergeFileTagsError, type MergeFileTagsErrors, type MergeFileTagsResponse, type MergeFileTagsResponses, type MergeSessionTagsData, type MergeSessionTagsError, type MergeSessionTagsErrors, type MergeSessionTagsResponse, type MergeSessionTagsResponses, type NodeExecution, type Options, type Orchestration, type OrchestrationEdge, type OrchestrationId, type OrchestrationNode, type OrchestrationResourceProperties, type OrchestrationRun, Orchestrations, type ParameterDeclaration, type ParticipantInput, type ParticipantRecord, type PatchAgentData, type PatchAgentError, type PatchAgentErrors, type PatchAgentResponse, type PatchAgentResponses, type PlanChange, type PlanFormationData, type PlanFormationErrors, type PlanFormationResponse, type PlanFormationResponses, type PlanResult, Policies, type PolicyDocument, type PolicyRecord, type PolicyResourceProperties, type PolicyStatement, type PresignedUrlRequest, type PresignedUrlResponse, type Price, type PriceBookResponse, type ProjectPrice, type ProjectPricesResponse, type ProjectRecord, Projects, type ProviderPrice, type ProviderPricesResponse, type ReingestDocumentData, type ReingestDocumentError, type ReingestDocumentErrors, type ReingestDocumentResponse, type ReingestDocumentResponses, type RejectApprovalData, type RejectApprovalErrors, type RejectApprovalResponse, type RejectApprovalResponses, type RemoveConversationMessageData, type RemoveConversationMessageError, type RemoveConversationMessageErrors, type RemoveConversationMessageResponse, type RemoveConversationMessageResponses, type ReplaceActorTagsData, type ReplaceActorTagsError, type ReplaceActorTagsErrors, type ReplaceActorTagsResponse, type ReplaceActorTagsResponses, type ReplaceConversationTagsData, type ReplaceConversationTagsError, type ReplaceConversationTagsErrors, type ReplaceConversationTagsResponse, type ReplaceConversationTagsResponses, type ReplaceDocumentTagsData, type ReplaceDocumentTagsError, type ReplaceDocumentTagsErrors, type ReplaceDocumentTagsResponse, type ReplaceDocumentTagsResponses, type ReplaceFileTagsData, type ReplaceFileTagsError, type ReplaceFileTagsErrors, type ReplaceFileTagsResponse, type ReplaceFileTagsResponses, type ReplaceSessionTagsData, type ReplaceSessionTagsError, type ReplaceSessionTagsErrors, type ReplaceSessionTagsResponse, type ReplaceSessionTagsResponses, type RequiredAction, type ResourceDeclaration, type ResumeOrchestrationRunData, type ResumeOrchestrationRunErrors, type ResumeOrchestrationRunResponse, type ResumeOrchestrationRunResponses, type RotateTriggerSecretData, type RotateTriggerSecretErrors, type RotateTriggerSecretResponse, type RotateTriggerSecretResponses, type RotateWebhookSecretData, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type RunId, type SearchKnowledgeData, type SearchKnowledgeError, type SearchKnowledgeErrors, type SearchKnowledgeResponse, type SearchKnowledgeResponses, type SecretResourceProperties, Secrets, type SendSessionMessageResponse, type SessionId, type SessionRecord, type SessionResourceProperties, Sessions, SoatClient, type SoatClientOptions, type StartOrchestrationRunData, type StartOrchestrationRunErrors, type StartOrchestrationRunResponse, type StartOrchestrationRunResponses, type StartRunRequest, type SubmitAgentToolOutputsData, type SubmitAgentToolOutputsError, type SubmitAgentToolOutputsErrors, type SubmitAgentToolOutputsResponse, type SubmitAgentToolOutputsResponses, type SubmitHumanInputData, type SubmitHumanInputErrors, type SubmitHumanInputResponse, type SubmitHumanInputResponses, type SubmitSessionToolOutputsData, type SubmitSessionToolOutputsError, type SubmitSessionToolOutputsErrors, type SubmitSessionToolOutputsRequest, type SubmitSessionToolOutputsResponse, type SubmitSessionToolOutputsResponses, type SubmitToolOutputsRequest, type SynthesisConfig, type Tool, type ToolOutputMessageContent, type ToolResourceProperties, Tools, type Trace, type TraceTreeNode, Traces, type Trigger, type TriggerFiring, type TriggerFiringListResponse, type TriggerResourceProperties, type TriggerSecretResponse, type TriggerWithSecret, Triggers, type UpdateActorData, type UpdateActorError, type UpdateActorErrors, type UpdateActorResponse, type UpdateActorResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentRequest, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateAiProviderData, type UpdateAiProviderErrors, type UpdateAiProviderPricesData, type UpdateAiProviderPricesErrors, type UpdateAiProviderPricesResponse, type UpdateAiProviderPricesResponses, type UpdateAiProviderResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateConversationData, type UpdateConversationError, type UpdateConversationErrors, type UpdateConversationResponse, type UpdateConversationResponses, type UpdateDiscussionData, type UpdateDiscussionError, type UpdateDiscussionErrors, type UpdateDiscussionResponse, type UpdateDiscussionResponses, type UpdateDocumentData, type UpdateDocumentError, type UpdateDocumentErrors, type UpdateDocumentResponse, type UpdateDocumentResponses, type UpdateFileMetadataData, type UpdateFileMetadataError, type UpdateFileMetadataErrors, type UpdateFileMetadataResponse, type UpdateFileMetadataResponses, type UpdateFormationData, type UpdateFormationErrors, type UpdateFormationResponse, type UpdateFormationResponses, type UpdateIngestionRuleData, type UpdateIngestionRuleErrors, type UpdateIngestionRuleResponse, type UpdateIngestionRuleResponses, type UpdateMemoryData, type UpdateMemoryEntryData, type UpdateMemoryEntryErrors, type UpdateMemoryEntryResponse, type UpdateMemoryEntryResponses, type UpdateMemoryErrors, type UpdateMemoryResponse, type UpdateMemoryResponses, type UpdateOrchestrationData, type UpdateOrchestrationErrors, type UpdateOrchestrationRequest, type UpdateOrchestrationResponse, type UpdateOrchestrationResponses, type UpdatePolicyData, type UpdatePolicyError, type UpdatePolicyErrors, type UpdatePolicyResponse, type UpdatePolicyResponses, type UpdateProjectData, type UpdateProjectErrors, type UpdateProjectPricesData, type UpdateProjectPricesErrors, type UpdateProjectPricesResponse, type UpdateProjectPricesResponses, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateSecretData, type UpdateSecretErrors, type UpdateSecretResponses, type UpdateSessionData, type UpdateSessionError, type UpdateSessionErrors, type UpdateSessionRequest, type UpdateSessionResponse, type UpdateSessionResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolRequest, type UpdateToolResponse, type UpdateToolResponses, type UpdateTriggerData, type UpdateTriggerErrors, type UpdateTriggerRequest, type UpdateTriggerResponse, type UpdateTriggerResponses, type UpdateWebhookData, type UpdateWebhookErrors, type UpdateWebhookRequest, type UpdateWebhookResponse, type UpdateWebhookResponses, type UploadFileBase64Data, type UploadFileBase64Error, type UploadFileBase64Errors, type UploadFileBase64Request, type UploadFileBase64Response, type UploadFileBase64Responses, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UploadFileWithTokenData, type UploadFileWithTokenError, type UploadFileWithTokenErrors, type UploadFileWithTokenRequest, type UploadFileWithTokenResponse, type UploadFileWithTokenResponses, type UpsertPriceBookData, type UpsertPriceBookError, type UpsertPriceBookErrors, type UpsertPriceBookResponse, type UpsertPriceBookResponses, type UpsertPricesRequest, type UpsertProjectPricesRequest, type UpsertProviderPricesRequest, Usage, type UsageMeter, type UsageReceipt, type UserRecord, Users, type ValidateFormationData, type ValidateFormationErrors, type ValidateFormationResponse, type ValidateFormationResponses, type ValidateOrchestrationData, type ValidateOrchestrationErrors, type ValidateOrchestrationRequest, type ValidateOrchestrationResponse, type ValidateOrchestrationResponses, type ValidationError, type ValidationResult, type Webhook, type WebhookResourceProperties, type WebhookSecretResponse, type WebhookWithSecret, Webhooks, createClient, createConfig };
12890
+ export { type ActorRecord, type ActorResourceProperties, Actors, type AddConversationMessageData, type AddConversationMessageError, type AddConversationMessageErrors, type AddConversationMessageResponse, type AddConversationMessageResponses, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageRequest, type AddSessionMessageResponse, type AddSessionMessageResponse2, type AddSessionMessageResponses, type AddSessionMessageSaved, type Agent, type AgentGenerationResponse, type AgentResourceProperties, Agents, type AiProviderResourceProperties, AiProviders, type ApiKeyCreated, type ApiKeyRecord, type ApiKeyResourceProperties, ApiKeys, type ApprovalId, type ApprovalItem, Approvals, type ApproveApprovalData, type ApproveApprovalErrors, type ApproveApprovalResponse, type ApproveApprovalResponses, type AttachUserPoliciesData, type AttachUserPoliciesError, type AttachUserPoliciesErrors, type AttachUserPoliciesResponse, type AttachUserPoliciesResponses, type BootstrapUserData, type BootstrapUserError, type BootstrapUserErrors, type BootstrapUserResponse, type BootstrapUserResponses, type CallToolData, type CallToolError, type CallToolErrors, type CallToolRequest, type CallToolResponse, type CallToolResponses, type CancelOrchestrationRunData, type CancelOrchestrationRunErrors, type CancelOrchestrationRunResponse, type CancelOrchestrationRunResponses, type Chat, type ChatCompletionChoice, type ChatCompletionForChatRequest, type ChatCompletionRequest, type ChatCompletionResponse, type ChatCompletionResponseMessage, type ChatMessage, type ChatMessageInput, type ChatResourceProperties, Chats, type ClientOptions, type CompleteIngestionCallbackData, type CompleteIngestionCallbackError, type CompleteIngestionCallbackErrors, type CompleteIngestionCallbackResponse, type CompleteIngestionCallbackResponses, type ConversationMessageRecord, type ConversationRecord, type ConversationResourceProperties, Conversations, type CreateActorData, type CreateActorError, type CreateActorErrors, type CreateActorResponse, type CreateActorResponses, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentGenerationData, type CreateAgentGenerationError, type CreateAgentGenerationErrors, type CreateAgentGenerationRequest, type CreateAgentGenerationResponse, type CreateAgentGenerationResponses, type CreateAgentRequest, type CreateAgentResponse, type CreateAgentResponses, type CreateAiProviderData, type CreateAiProviderErrors, type CreateAiProviderResponse, type CreateAiProviderResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateChatCompletionData, type CreateChatCompletionError, type CreateChatCompletionErrors, type CreateChatCompletionForChatData, type CreateChatCompletionForChatError, type CreateChatCompletionForChatErrors, type CreateChatCompletionForChatResponse, type CreateChatCompletionForChatResponses, type CreateChatCompletionResponse, type CreateChatCompletionResponses, type CreateChatData, type CreateChatError, type CreateChatErrors, type CreateChatRequest, type CreateChatResponse, type CreateChatResponses, type CreateConversationData, type CreateConversationError, type CreateConversationErrors, type CreateConversationResponse, type CreateConversationResponses, type CreateDiscussionData, type CreateDiscussionError, type CreateDiscussionErrors, type CreateDiscussionResponse, type CreateDiscussionResponses, type CreateDiscussionRunData, type CreateDiscussionRunError, type CreateDiscussionRunErrors, type CreateDiscussionRunResponse, type CreateDiscussionRunResponses, type CreateDocumentData, type CreateDocumentError, type CreateDocumentErrors, type CreateDocumentResponse, type CreateDocumentResponses, type CreateEmbeddingsData, type CreateEmbeddingsError, type CreateEmbeddingsErrors, type CreateEmbeddingsResponse, type CreateEmbeddingsResponses, type CreateFileData, type CreateFileError, type CreateFileErrors, type CreateFileResponse, type CreateFileResponses, type CreateFormationData, type CreateFormationErrors, type CreateFormationResponse, type CreateFormationResponses, type CreateIngestionRuleData, type CreateIngestionRuleErrors, type CreateIngestionRuleResponse, type CreateIngestionRuleResponses, type CreateMemoryData, type CreateMemoryEntryData, type CreateMemoryEntryErrors, type CreateMemoryEntryResponse, type CreateMemoryEntryResponses, type CreateMemoryErrors, type CreateMemoryResponse, type CreateMemoryResponses, type CreateOrchestrationData, type CreateOrchestrationErrors, type CreateOrchestrationRequest, type CreateOrchestrationResponse, type CreateOrchestrationResponses, type CreatePolicyData, type CreatePolicyError, type CreatePolicyErrors, type CreatePolicyResponse, type CreatePolicyResponses, type CreatePresignedUrlData, type CreatePresignedUrlError, type CreatePresignedUrlErrors, type CreatePresignedUrlResponse, type CreatePresignedUrlResponses, type CreateProjectData, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateSecretData, type CreateSecretErrors, type CreateSecretResponse, type CreateSecretResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionRequest, type CreateSessionResponse, type CreateSessionResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolRequest, type CreateToolResponse, type CreateToolResponses, type CreateTriggerData, type CreateTriggerErrors, type CreateTriggerRequest, type CreateTriggerResponse, type CreateTriggerResponses, type CreateUsageThresholdData, type CreateUsageThresholdError, type CreateUsageThresholdErrors, type CreateUsageThresholdRequest, type CreateUsageThresholdResponse, type CreateUsageThresholdResponses, type CreateUserData, type CreateUserError, type CreateUserErrors, type CreateUserResponse, type CreateUserResponses, type CreateWebhookData, type CreateWebhookErrors, type CreateWebhookRequest, type CreateWebhookResponse, type CreateWebhookResponses, type DeleteActorData, type DeleteActorError, type DeleteActorErrors, type DeleteActorResponse, type DeleteActorResponses, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteAiProviderData, type DeleteAiProviderErrors, type DeleteAiProviderResponses, type DeleteApiKeyData, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteChatData, type DeleteChatError, type DeleteChatErrors, type DeleteChatResponse, type DeleteChatResponses, type DeleteConversationData, type DeleteConversationError, type DeleteConversationErrors, type DeleteConversationResponse, type DeleteConversationResponses, type DeleteDiscussionData, type DeleteDiscussionError, type DeleteDiscussionErrors, type DeleteDiscussionResponse, type DeleteDiscussionResponses, type DeleteDocumentData, type DeleteDocumentError, type DeleteDocumentErrors, type DeleteDocumentResponse, type DeleteDocumentResponses, type DeleteFileData, type DeleteFileError, type DeleteFileErrors, type DeleteFileResponse, type DeleteFileResponses, type DeleteFormationData, type DeleteFormationErrors, type DeleteFormationResponse, type DeleteFormationResponses, type DeleteIngestionRuleData, type DeleteIngestionRuleErrors, type DeleteIngestionRuleResponse, type DeleteIngestionRuleResponses, type DeleteMemoryData, type DeleteMemoryEntryData, type DeleteMemoryEntryErrors, type DeleteMemoryEntryResponse, type DeleteMemoryEntryResponses, type DeleteMemoryErrors, type DeleteMemoryResponse, type DeleteMemoryResponses, type DeleteOrchestrationData, type DeleteOrchestrationErrors, type DeleteOrchestrationResponse, type DeleteOrchestrationResponses, type DeletePolicyData, type DeletePolicyErrors, type DeletePolicyResponse, type DeletePolicyResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteSecretData, type DeleteSecretErrors, type DeleteSecretResponses, type DeleteSessionData, type DeleteSessionError, type DeleteSessionErrors, type DeleteSessionResponse, type DeleteSessionResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteTriggerData, type DeleteTriggerErrors, type DeleteTriggerResponse, type DeleteTriggerResponses, type DeleteUsageThresholdData, type DeleteUsageThresholdError, type DeleteUsageThresholdErrors, type DeleteUsageThresholdResponse, type DeleteUsageThresholdResponses, type DeleteUserData, type DeleteUserError, type DeleteUserErrors, type DeleteUserResponse, type DeleteUserResponses, type DeleteWebhookData, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type Delivery, type DeliveryListResponse, type DiscussionRecord, type DiscussionResourceProperties, type DiscussionRunRecord, Discussions, type DocumentKnowledgeResult, type DocumentMessageContent, type DocumentRecord, type DocumentResourceProperties, type DocumentStatusRecord, Documents, type DownloadFileBase64Data, type DownloadFileBase64Error, type DownloadFileBase64Errors, type DownloadFileBase64Response, type DownloadFileBase64Responses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, Embeddings, type EmbeddingsResponse, type ErrorResponse, type FileRecord, type FileRecordWritable, type FileResourceProperties, Files, type FireTriggerData, type FireTriggerErrors, type FireTriggerRequest, type FireTriggerResponse, type FireTriggerResponses, type Formation, type FormationEvent, type FormationOperation, type FormationResource, type FormationTemplate, type FormationTemplateInput, Formations, type GenerateConversationMessageCompleted, type GenerateConversationMessageData, type GenerateConversationMessageError, type GenerateConversationMessageErrors, type GenerateConversationMessageRequiresAction, type GenerateConversationMessageResponse, type GenerateConversationMessageResponse2, type GenerateConversationMessageResponses, type GenerateSessionRequest, type GenerateSessionResponse, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, Generations, type GetActorData, type GetActorError, type GetActorErrors, type GetActorResponse, type GetActorResponses, type GetActorTagsData, type GetActorTagsError, type GetActorTagsErrors, type GetActorTagsResponse, type GetActorTagsResponses, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetAiProviderData, type GetAiProviderErrors, type GetAiProviderPricesData, type GetAiProviderPricesErrors, type GetAiProviderPricesResponse, type GetAiProviderPricesResponses, type GetAiProviderResponse, type GetAiProviderResponses, type GetApiKeyData, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetApprovalData, type GetApprovalErrors, type GetApprovalResponse, type GetApprovalResponses, type GetChatData, type GetChatError, type GetChatErrors, type GetChatResponse, type GetChatResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetConversationTagsData, type GetConversationTagsError, type GetConversationTagsErrors, type GetConversationTagsResponse, type GetConversationTagsResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetDiscussionData, type GetDiscussionError, type GetDiscussionErrors, type GetDiscussionResponse, type GetDiscussionResponses, type GetDiscussionRunData, type GetDiscussionRunError, type GetDiscussionRunErrors, type GetDiscussionRunResponse, type GetDiscussionRunResponses, type GetDocumentData, type GetDocumentError, type GetDocumentErrors, type GetDocumentResponse, type GetDocumentResponses, type GetDocumentStatusData, type GetDocumentStatusError, type GetDocumentStatusErrors, type GetDocumentStatusResponse, type GetDocumentStatusResponses, type GetDocumentTagsData, type GetDocumentTagsError, type GetDocumentTagsErrors, type GetDocumentTagsResponse, type GetDocumentTagsResponses, type GetFileData, type GetFileError, type GetFileErrors, type GetFileResponse, type GetFileResponses, type GetFileTagsData, type GetFileTagsError, type GetFileTagsErrors, type GetFileTagsResponse, type GetFileTagsResponses, type GetFormationData, type GetFormationErrors, type GetFormationResponse, type GetFormationResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetIngestionRuleData, type GetIngestionRuleErrors, type GetIngestionRuleResponse, type GetIngestionRuleResponses, type GetMemoryData, type GetMemoryEntryData, type GetMemoryEntryErrors, type GetMemoryEntryResponse, type GetMemoryEntryResponses, type GetMemoryErrors, type GetMemoryResponse, type GetMemoryResponses, type GetOrchestrationData, type GetOrchestrationErrors, type GetOrchestrationResponse, type GetOrchestrationResponses, type GetOrchestrationRunData, type GetOrchestrationRunErrors, type GetOrchestrationRunResponse, type GetOrchestrationRunResponses, type GetPolicyData, type GetPolicyErrors, type GetPolicyResponse, type GetPolicyResponses, type GetPriceBookData, type GetPriceBookError, type GetPriceBookErrors, type GetPriceBookResponse, type GetPriceBookResponses, type GetProjectData, type GetProjectErrors, type GetProjectPricesData, type GetProjectPricesErrors, type GetProjectPricesResponse, type GetProjectPricesResponses, type GetProjectResponse, type GetProjectResponses, type GetSecretData, type GetSecretErrors, type GetSecretResponse, type GetSecretResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetSessionTagsData, type GetSessionTagsError, type GetSessionTagsErrors, type GetSessionTagsResponse, type GetSessionTagsResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetTriggerData, type GetTriggerErrors, type GetTriggerFiringData, type GetTriggerFiringErrors, type GetTriggerFiringResponse, type GetTriggerFiringResponses, type GetTriggerResponse, type GetTriggerResponses, type GetTriggerSecretData, type GetTriggerSecretErrors, type GetTriggerSecretResponse, type GetTriggerSecretResponses, type GetUsageData, type GetUsageError, type GetUsageErrors, type GetUsageReceiptData, type GetUsageReceiptError, type GetUsageReceiptErrors, type GetUsageReceiptResponse, type GetUsageReceiptResponses, type GetUsageResponse, type GetUsageResponses, type GetUserData, type GetUserError, type GetUserErrors, type GetUserResponse, type GetUserResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GetWebhookSecretData, type GetWebhookSecretErrors, type GetWebhookSecretResponse, type GetWebhookSecretResponses, type HumanInputRequest, type IngestDocumentData, type IngestDocumentError, type IngestDocumentErrors, type IngestDocumentResponse, type IngestDocumentResponses, type IngestedDocumentRecord, type IngestionRule, type IngestionRuleResourceProperties, IngestionRules, Knowledge, type KnowledgeResult, type ListActorsData, type ListActorsError, type ListActorsErrors, type ListActorsResponse, type ListActorsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListAiProvidersData, type ListAiProvidersErrors, type ListAiProvidersResponse, type ListAiProvidersResponses, type ListApiKeysData, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListApprovalsData, type ListApprovalsErrors, type ListApprovalsResponse, type ListApprovalsResponses, type ListChatsData, type ListChatsError, type ListChatsErrors, type ListChatsResponse, type ListChatsResponses, type ListConversationMessagesData, type ListConversationMessagesError, type ListConversationMessagesErrors, type ListConversationMessagesResponse, type ListConversationMessagesResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListDiscussionRunsData, type ListDiscussionRunsError, type ListDiscussionRunsErrors, type ListDiscussionRunsResponse, type ListDiscussionRunsResponses, type ListDiscussionsData, type ListDiscussionsError, type ListDiscussionsErrors, type ListDiscussionsResponse, type ListDiscussionsResponses, type ListDocumentsData, type ListDocumentsError, type ListDocumentsErrors, type ListDocumentsResponse, type ListDocumentsResponses, type ListFilesData, type ListFilesError, type ListFilesErrors, type ListFilesResponse, type ListFilesResponses, type ListFormationEventsData, type ListFormationEventsErrors, type ListFormationEventsResponse, type ListFormationEventsResponses, type ListFormationsData, type ListFormationsErrors, type ListFormationsResponse, type ListFormationsResponses, type ListGenerationsData, type ListGenerationsError, type ListGenerationsErrors, type ListGenerationsResponse, type ListGenerationsResponses, type ListIngestionRulesData, type ListIngestionRulesErrors, type ListIngestionRulesResponse, type ListIngestionRulesResponses, type ListMemoriesData, type ListMemoriesErrors, type ListMemoriesResponse, type ListMemoriesResponses, type ListMemoryEntriesData, type ListMemoryEntriesErrors, type ListMemoryEntriesResponse, type ListMemoryEntriesResponses, type ListOrchestrationRunsData, type ListOrchestrationRunsErrors, type ListOrchestrationRunsResponse, type ListOrchestrationRunsResponses, type ListOrchestrationsData, type ListOrchestrationsErrors, type ListOrchestrationsResponse, type ListOrchestrationsResponses, type ListPoliciesData, type ListPoliciesErrors, type ListPoliciesResponse, type ListPoliciesResponses, type ListProjectsData, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListSecretsData, type ListSecretsErrors, type ListSecretsResponse, type ListSecretsResponses, type ListSessionsData, type ListSessionsError, type ListSessionsErrors, type ListSessionsResponse, type ListSessionsResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListTriggerFiringsData, type ListTriggerFiringsErrors, type ListTriggerFiringsResponse, type ListTriggerFiringsResponses, type ListTriggersData, type ListTriggersErrors, type ListTriggersResponse, type ListTriggersResponses, type ListUsageMetersData, type ListUsageMetersError, type ListUsageMetersErrors, type ListUsageMetersResponse, type ListUsageMetersResponses, type ListUsageThresholdsData, type ListUsageThresholdsError, type ListUsageThresholdsErrors, type ListUsageThresholdsResponse, type ListUsageThresholdsResponses, type ListUsersData, type ListUsersError, type ListUsersErrors, type ListUsersResponse, type ListUsersResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LoginResponse, type LoginUserData, type LoginUserError, type LoginUserErrors, type LoginUserResponse, type LoginUserResponses, Memories, type Memory, MemoryEntries, type MemoryEntry, type MemoryEntryResourceProperties, type MemoryEntryWriteResult, type MemoryKnowledgeResult, type MemoryResourceProperties, type MergeActorTagsData, type MergeActorTagsError, type MergeActorTagsErrors, type MergeActorTagsResponse, type MergeActorTagsResponses, type MergeConversationTagsData, type MergeConversationTagsError, type MergeConversationTagsErrors, type MergeConversationTagsResponse, type MergeConversationTagsResponses, type MergeDocumentTagsData, type MergeDocumentTagsError, type MergeDocumentTagsErrors, type MergeDocumentTagsResponse, type MergeDocumentTagsResponses, type MergeFileTagsData, type MergeFileTagsError, type MergeFileTagsErrors, type MergeFileTagsResponse, type MergeFileTagsResponses, type MergeSessionTagsData, type MergeSessionTagsError, type MergeSessionTagsErrors, type MergeSessionTagsResponse, type MergeSessionTagsResponses, type NodeExecution, type Options, type Orchestration, type OrchestrationEdge, type OrchestrationId, type OrchestrationNode, type OrchestrationResourceProperties, type OrchestrationRun, Orchestrations, type ParameterDeclaration, type ParticipantInput, type ParticipantRecord, type PatchAgentData, type PatchAgentError, type PatchAgentErrors, type PatchAgentResponse, type PatchAgentResponses, type PlanChange, type PlanFormationData, type PlanFormationErrors, type PlanFormationResponse, type PlanFormationResponses, type PlanResult, Policies, type PolicyDocument, type PolicyRecord, type PolicyResourceProperties, type PolicyStatement, type PresignedUrlRequest, type PresignedUrlResponse, type Price, type PriceBookResponse, type ProjectPrice, type ProjectPricesResponse, type ProjectRecord, Projects, type ProviderPrice, type ProviderPricesResponse, type ReingestDocumentData, type ReingestDocumentError, type ReingestDocumentErrors, type ReingestDocumentResponse, type ReingestDocumentResponses, type RejectApprovalData, type RejectApprovalErrors, type RejectApprovalResponse, type RejectApprovalResponses, type RemoveConversationMessageData, type RemoveConversationMessageError, type RemoveConversationMessageErrors, type RemoveConversationMessageResponse, type RemoveConversationMessageResponses, type ReplaceActorTagsData, type ReplaceActorTagsError, type ReplaceActorTagsErrors, type ReplaceActorTagsResponse, type ReplaceActorTagsResponses, type ReplaceConversationTagsData, type ReplaceConversationTagsError, type ReplaceConversationTagsErrors, type ReplaceConversationTagsResponse, type ReplaceConversationTagsResponses, type ReplaceDocumentTagsData, type ReplaceDocumentTagsError, type ReplaceDocumentTagsErrors, type ReplaceDocumentTagsResponse, type ReplaceDocumentTagsResponses, type ReplaceFileTagsData, type ReplaceFileTagsError, type ReplaceFileTagsErrors, type ReplaceFileTagsResponse, type ReplaceFileTagsResponses, type ReplaceSessionTagsData, type ReplaceSessionTagsError, type ReplaceSessionTagsErrors, type ReplaceSessionTagsResponse, type ReplaceSessionTagsResponses, type RequiredAction, type ResourceDeclaration, type ResumeOrchestrationRunData, type ResumeOrchestrationRunErrors, type ResumeOrchestrationRunResponse, type ResumeOrchestrationRunResponses, type RotateTriggerSecretData, type RotateTriggerSecretErrors, type RotateTriggerSecretResponse, type RotateTriggerSecretResponses, type RotateWebhookSecretData, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type RunId, type RunUsageTotals, type SearchKnowledgeData, type SearchKnowledgeError, type SearchKnowledgeErrors, type SearchKnowledgeResponse, type SearchKnowledgeResponses, type SecretResourceProperties, Secrets, type SendSessionMessageResponse, type SessionId, type SessionRecord, type SessionResourceProperties, Sessions, SoatClient, type SoatClientOptions, type StartOrchestrationRunData, type StartOrchestrationRunErrors, type StartOrchestrationRunResponse, type StartOrchestrationRunResponses, type StartRunRequest, type SubmitAgentToolOutputsData, type SubmitAgentToolOutputsError, type SubmitAgentToolOutputsErrors, type SubmitAgentToolOutputsResponse, type SubmitAgentToolOutputsResponses, type SubmitHumanInputData, type SubmitHumanInputErrors, type SubmitHumanInputResponse, type SubmitHumanInputResponses, type SubmitSessionToolOutputsData, type SubmitSessionToolOutputsError, type SubmitSessionToolOutputsErrors, type SubmitSessionToolOutputsRequest, type SubmitSessionToolOutputsResponse, type SubmitSessionToolOutputsResponses, type SubmitToolOutputsRequest, type SynthesisConfig, type Tool, type ToolOutputMessageContent, type ToolResourceProperties, Tools, type Trace, type TraceTreeNode, Traces, type Trigger, type TriggerFiring, type TriggerFiringListResponse, type TriggerResourceProperties, type TriggerSecretResponse, type TriggerWithSecret, Triggers, type UpdateActorData, type UpdateActorError, type UpdateActorErrors, type UpdateActorResponse, type UpdateActorResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentRequest, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateAiProviderData, type UpdateAiProviderErrors, type UpdateAiProviderPricesData, type UpdateAiProviderPricesErrors, type UpdateAiProviderPricesResponse, type UpdateAiProviderPricesResponses, type UpdateAiProviderResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateConversationData, type UpdateConversationError, type UpdateConversationErrors, type UpdateConversationResponse, type UpdateConversationResponses, type UpdateDiscussionData, type UpdateDiscussionError, type UpdateDiscussionErrors, type UpdateDiscussionResponse, type UpdateDiscussionResponses, type UpdateDocumentData, type UpdateDocumentError, type UpdateDocumentErrors, type UpdateDocumentResponse, type UpdateDocumentResponses, type UpdateFileMetadataData, type UpdateFileMetadataError, type UpdateFileMetadataErrors, type UpdateFileMetadataResponse, type UpdateFileMetadataResponses, type UpdateFormationData, type UpdateFormationErrors, type UpdateFormationResponse, type UpdateFormationResponses, type UpdateIngestionRuleData, type UpdateIngestionRuleErrors, type UpdateIngestionRuleResponse, type UpdateIngestionRuleResponses, type UpdateMemoryData, type UpdateMemoryEntryData, type UpdateMemoryEntryErrors, type UpdateMemoryEntryResponse, type UpdateMemoryEntryResponses, type UpdateMemoryErrors, type UpdateMemoryResponse, type UpdateMemoryResponses, type UpdateOrchestrationData, type UpdateOrchestrationErrors, type UpdateOrchestrationRequest, type UpdateOrchestrationResponse, type UpdateOrchestrationResponses, type UpdatePolicyData, type UpdatePolicyError, type UpdatePolicyErrors, type UpdatePolicyResponse, type UpdatePolicyResponses, type UpdateProjectData, type UpdateProjectErrors, type UpdateProjectPricesData, type UpdateProjectPricesErrors, type UpdateProjectPricesResponse, type UpdateProjectPricesResponses, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateSecretData, type UpdateSecretErrors, type UpdateSecretResponses, type UpdateSessionData, type UpdateSessionError, type UpdateSessionErrors, type UpdateSessionRequest, type UpdateSessionResponse, type UpdateSessionResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolRequest, type UpdateToolResponse, type UpdateToolResponses, type UpdateTriggerData, type UpdateTriggerErrors, type UpdateTriggerRequest, type UpdateTriggerResponse, type UpdateTriggerResponses, type UpdateWebhookData, type UpdateWebhookErrors, type UpdateWebhookRequest, type UpdateWebhookResponse, type UpdateWebhookResponses, type UploadFileBase64Data, type UploadFileBase64Error, type UploadFileBase64Errors, type UploadFileBase64Request, type UploadFileBase64Response, type UploadFileBase64Responses, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UploadFileWithTokenData, type UploadFileWithTokenError, type UploadFileWithTokenErrors, type UploadFileWithTokenRequest, type UploadFileWithTokenResponse, type UploadFileWithTokenResponses, type UpsertPriceBookData, type UpsertPriceBookError, type UpsertPriceBookErrors, type UpsertPriceBookResponse, type UpsertPriceBookResponses, type UpsertPricesRequest, type UpsertProjectPricesRequest, type UpsertProviderPricesRequest, Usage, type UsageAggregate, type UsageAggregateTotals, type UsageComponent, type UsageEvent, type UsageReceipt, type UsageThreshold, type UserRecord, Users, type ValidateFormationData, type ValidateFormationErrors, type ValidateFormationResponse, type ValidateFormationResponses, type ValidateOrchestrationData, type ValidateOrchestrationErrors, type ValidateOrchestrationRequest, type ValidateOrchestrationResponse, type ValidateOrchestrationResponses, type ValidationError, type ValidationResult, type Webhook, type WebhookResourceProperties, type WebhookSecretResponse, type WebhookWithSecret, Webhooks, createClient, createConfig };