@soat/sdk 0.47.0 → 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.cjs CHANGED
@@ -714,7 +714,7 @@ var Actors = class {
714
714
  /**
715
715
  * Merge actor tags
716
716
  *
717
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
717
+ * Merges provided tags into the actor's existing tags (existing tags are preserved unless overridden)
718
718
  */
719
719
  static mergeActorTags(options) {
720
720
  return (options.client ?? client).patch({
@@ -1475,7 +1475,7 @@ var Conversations = class {
1475
1475
  /**
1476
1476
  * Merge conversation tags
1477
1477
  *
1478
- * Merges provided tags with existing tags
1478
+ * Merges provided tags into the conversation's existing tags (existing tags are preserved unless overridden)
1479
1479
  */
1480
1480
  static mergeConversationTags(options) {
1481
1481
  return (options.client ?? client).patch({
@@ -1669,7 +1669,7 @@ var Documents = class {
1669
1669
  /**
1670
1670
  * Merge document tags
1671
1671
  *
1672
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
1672
+ * Merges provided tags into the document's existing tags (existing tags are preserved unless overridden)
1673
1673
  */
1674
1674
  static mergeDocumentTags(options) {
1675
1675
  return (options.client ?? client).patch({
@@ -2209,7 +2209,7 @@ var Files = class {
2209
2209
  /**
2210
2210
  * Merge file tags
2211
2211
  *
2212
- * Merges provided tags with existing tags
2212
+ * Merges provided tags into the file's existing tags (existing tags are preserved unless overridden)
2213
2213
  */
2214
2214
  static mergeFileTags(options) {
2215
2215
  return (options.client ?? client).patch({
@@ -2722,7 +2722,7 @@ var Memories = class {
2722
2722
  /**
2723
2723
  * Merge memory tags
2724
2724
  *
2725
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
2725
+ * Merges provided tags into the memory's existing tags (existing tags are preserved unless overridden)
2726
2726
  */
2727
2727
  static mergeMemoryTags(options) {
2728
2728
  return (options.client ?? client).patch({
@@ -2828,7 +2828,7 @@ var MemoryEntries = class {
2828
2828
  /**
2829
2829
  * Merge memory entry tags
2830
2830
  *
2831
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
2831
+ * Merges provided tags into the memory entry's existing tags (existing tags are preserved unless overridden)
2832
2832
  */
2833
2833
  static mergeMemoryEntryTags(options) {
2834
2834
  return (options.client ?? client).patch({
package/dist/index.d.cts CHANGED
@@ -338,9 +338,9 @@ type ActivityEntry = {
338
338
  id?: string;
339
339
  project_id?: string;
340
340
  /**
341
- * How the entry was produced
341
+ * How the entry was produced. `tool_resolution_failed` means a tool binding's source could not be reached (an unreachable MCP server, most often) and the turn ran without it — the generation itself completes, carrying no error, so this is the only signal that it answered with fewer tools than it was configured to have.
342
342
  */
343
- kind?: 'action_executed' | 'approval_created' | 'approval_resolved' | 'exception_created' | 'schedule_fired';
343
+ kind?: 'action_executed' | 'approval_created' | 'approval_resolved' | 'exception_created' | 'schedule_fired' | 'tool_resolution_failed';
344
344
  severity?: 'info' | 'warning' | 'critical';
345
345
  /**
346
346
  * One-line, human-readable description
@@ -538,6 +538,15 @@ type Agent = {
538
538
  output_schema?: {
539
539
  [key: string]: unknown;
540
540
  } | null;
541
+ /**
542
+ * Prompt caching for this agent's turns. `{"enabled": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together — so a provider that caches by explicit breakpoint reads that prefix back on every later step of the turn and every later turn of the session instead of being charged for it again. Null or omitted is off: a cache write costs more than an uncached token, so an agent whose prefix is never re-read would pay for the privilege. An agent with no `instructions` has no block to mark and caches nothing. Cache reads are reported as `cached_tokens` and cache writes as `cache_write_tokens` on usage.
543
+ */
544
+ prompt_caching?: {
545
+ /**
546
+ * Whether the breakpoint is marked. Defaults to false.
547
+ */
548
+ enabled?: boolean;
549
+ } | null;
541
550
  /**
542
551
  * Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
543
552
  */
@@ -752,6 +761,15 @@ type CreateAgentRequest = {
752
761
  output_schema?: {
753
762
  [key: string]: unknown;
754
763
  } | null;
764
+ /**
765
+ * Prompt caching for this agent's turns. `{"enabled": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together — so a provider that caches by explicit breakpoint reads that prefix back on every later step of the turn and every later turn of the session instead of being charged for it again. Null or omitted is off: a cache write costs more than an uncached token, so an agent whose prefix is never re-read would pay for the privilege. An agent with no `instructions` has no block to mark and caches nothing. Cache reads are reported as `cached_tokens` and cache writes as `cache_write_tokens` on usage.
766
+ */
767
+ prompt_caching?: {
768
+ /**
769
+ * Whether the breakpoint is marked. Defaults to false.
770
+ */
771
+ enabled?: boolean;
772
+ } | null;
755
773
  /**
756
774
  * Maximum number of recent messages included in the context window. Null means no limit.
757
775
  */
@@ -860,6 +878,15 @@ type UpdateAgentRequest = {
860
878
  output_schema?: {
861
879
  [key: string]: unknown;
862
880
  } | null;
881
+ /**
882
+ * Prompt caching for this agent's turns. `{"enabled": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together — so a provider that caches by explicit breakpoint reads that prefix back on every later step of the turn and every later turn of the session instead of being charged for it again. Null or omitted is off: a cache write costs more than an uncached token, so an agent whose prefix is never re-read would pay for the privilege. An agent with no `instructions` has no block to mark and caches nothing. Cache reads are reported as `cached_tokens` and cache writes as `cache_write_tokens` on usage.
883
+ */
884
+ prompt_caching?: {
885
+ /**
886
+ * Whether the breakpoint is marked. Defaults to false.
887
+ */
888
+ enabled?: boolean;
889
+ } | null;
863
890
  /**
864
891
  * Maximum number of recent messages included in the context window. Null means no limit.
865
892
  */
@@ -1095,7 +1122,7 @@ type ProviderPrice = {
1095
1122
  provider?: string;
1096
1123
  model?: string;
1097
1124
  /**
1098
- * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
1125
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`, `cache_write_tokens`)
1099
1126
  */
1100
1127
  component?: string;
1101
1128
  /**
@@ -1119,7 +1146,7 @@ type UpsertProviderPricesRequest = {
1119
1146
  prices: Array<{
1120
1147
  model: string;
1121
1148
  /**
1122
- * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
1149
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`, `cache_write_tokens`)
1123
1150
  */
1124
1151
  component: string;
1125
1152
  /**
@@ -2399,6 +2426,15 @@ type AgentResourceProperties = {
2399
2426
  output_schema?: {
2400
2427
  [key: string]: unknown;
2401
2428
  } | null;
2429
+ /**
2430
+ * Prompt caching for this agent's turns. `{"enabled": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together. Null or omitted is off.
2431
+ */
2432
+ prompt_caching?: {
2433
+ /**
2434
+ * Whether the breakpoint is marked. Defaults to false.
2435
+ */
2436
+ enabled?: boolean;
2437
+ } | null;
2402
2438
  };
2403
2439
  /**
2404
2440
  * Creates a stateful conversation actor that wraps an agent or chat session and optionally links to a memory store.
@@ -2928,7 +2964,7 @@ type ProjectPriceResourceProperties = {
2928
2964
  */
2929
2965
  model: string;
2930
2966
  /**
2931
- * The billable component this row prices (input_tokens, output_tokens, cached_tokens, compute_second, …)
2967
+ * The billable component this row prices (input_tokens, output_tokens, cached_tokens, cache_write_tokens, compute_second, …)
2932
2968
  */
2933
2969
  component: string;
2934
2970
  /**
@@ -4770,11 +4806,18 @@ type UsageTotals = {
4770
4806
  */
4771
4807
  cost_usd?: number | null;
4772
4808
  /**
4773
- * Full prompt tokens (uncached input + cached), reconstructed from components
4809
+ * Full prompt tokens — uncached input + `cached_tokens` + `cache_write_tokens` — reconstructed from components.
4774
4810
  */
4775
4811
  input_tokens?: number;
4776
4812
  output_tokens?: number;
4813
+ /**
4814
+ * Prompt tokens served from the provider's prompt cache.
4815
+ */
4777
4816
  cached_tokens?: number;
4817
+ /**
4818
+ * Prompt tokens written into the provider's prompt cache.
4819
+ */
4820
+ cache_write_tokens?: number;
4778
4821
  reasoning_tokens?: number;
4779
4822
  };
4780
4823
  /**
@@ -5007,7 +5050,7 @@ type ProjectPrice = {
5007
5050
  provider?: string;
5008
5051
  model?: string;
5009
5052
  /**
5010
- * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
5053
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`, `cache_write_tokens`)
5011
5054
  */
5012
5055
  component?: string;
5013
5056
  /**
@@ -5032,7 +5075,7 @@ type UpsertProjectPricesRequest = {
5032
5075
  provider: string;
5033
5076
  model: string;
5034
5077
  /**
5035
- * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
5078
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`, `cache_write_tokens`)
5036
5079
  */
5037
5080
  component: string;
5038
5081
  /**
@@ -6013,7 +6056,9 @@ type TriggerFiringListResponse = {
6013
6056
  offset?: number;
6014
6057
  };
6015
6058
  /**
6016
- * 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.
6059
+ * 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` for prompt-cache reads, `cache_write_tokens` for prompt-cache writes, and a non-billable `reasoning_tokens` detail), a `compute_execution` event has one `compute_second` component.
6060
+ *
6061
+ * The three input dimensions are disjoint and partition the provider's reported prompt tokens: `input_tokens` is the uncached input **alone**. They are separate components because they are separately priced — a cache read costs a fraction of an uncached token and a cache write costs more than one. A dimension with no price row of its own falls back to the `input_tokens` rate, never to zero.
6017
6062
  *
6018
6063
  */
6019
6064
  type UsageComponent = {
@@ -6161,7 +6206,7 @@ type UsageDistinct = {
6161
6206
  */
6162
6207
  type UsageAggregateComponent = {
6163
6208
  /**
6164
- * The measured dimension: `input_tokens`, `cached_tokens`, `output_tokens`, `reasoning_tokens`, `compute_second`, `request`, `gb_day`, `chunk_count`, …
6209
+ * The measured dimension: `input_tokens`, `cached_tokens`, `cache_write_tokens`, `output_tokens`, `reasoning_tokens`, `compute_second`, `request`, `gb_day`, `chunk_count`, …
6165
6210
  *
6166
6211
  */
6167
6212
  component?: string;
@@ -6711,7 +6756,7 @@ type ListActivityData = {
6711
6756
  /**
6712
6757
  * Filter by activity kind
6713
6758
  */
6714
- kind?: 'action_executed' | 'approval_created' | 'approval_resolved' | 'exception_created' | 'schedule_fired';
6759
+ kind?: 'action_executed' | 'approval_created' | 'approval_resolved' | 'exception_created' | 'schedule_fired' | 'tool_resolution_failed';
6715
6760
  /**
6716
6761
  * Filter by severity
6717
6762
  */
@@ -17912,7 +17957,7 @@ declare class Actors {
17912
17957
  /**
17913
17958
  * Merge actor tags
17914
17959
  *
17915
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
17960
+ * Merges provided tags into the actor's existing tags (existing tags are preserved unless overridden)
17916
17961
  */
17917
17962
  static mergeActorTags<ThrowOnError extends boolean = false>(options: Options<MergeActorTagsData, ThrowOnError>): RequestResult<MergeActorTagsResponses, MergeActorTagsErrors, ThrowOnError>;
17918
17963
  /**
@@ -18311,7 +18356,7 @@ declare class Conversations {
18311
18356
  /**
18312
18357
  * Merge conversation tags
18313
18358
  *
18314
- * Merges provided tags with existing tags
18359
+ * Merges provided tags into the conversation's existing tags (existing tags are preserved unless overridden)
18315
18360
  */
18316
18361
  static mergeConversationTags<ThrowOnError extends boolean = false>(options: Options<MergeConversationTagsData, ThrowOnError>): RequestResult<MergeConversationTagsResponses, MergeConversationTagsErrors, ThrowOnError>;
18317
18362
  /**
@@ -18417,7 +18462,7 @@ declare class Documents {
18417
18462
  /**
18418
18463
  * Merge document tags
18419
18464
  *
18420
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
18465
+ * Merges provided tags into the document's existing tags (existing tags are preserved unless overridden)
18421
18466
  */
18422
18467
  static mergeDocumentTags<ThrowOnError extends boolean = false>(options: Options<MergeDocumentTagsData, ThrowOnError>): RequestResult<MergeDocumentTagsResponses, MergeDocumentTagsErrors, ThrowOnError>;
18423
18468
  /**
@@ -18689,7 +18734,7 @@ declare class Files {
18689
18734
  /**
18690
18735
  * Merge file tags
18691
18736
  *
18692
- * Merges provided tags with existing tags
18737
+ * Merges provided tags into the file's existing tags (existing tags are preserved unless overridden)
18693
18738
  */
18694
18739
  static mergeFileTags<ThrowOnError extends boolean = false>(options: Options<MergeFileTagsData, ThrowOnError>): RequestResult<MergeFileTagsResponses, MergeFileTagsErrors, ThrowOnError>;
18695
18740
  /**
@@ -18958,7 +19003,7 @@ declare class Memories {
18958
19003
  /**
18959
19004
  * Merge memory tags
18960
19005
  *
18961
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
19006
+ * Merges provided tags into the memory's existing tags (existing tags are preserved unless overridden)
18962
19007
  */
18963
19008
  static mergeMemoryTags<ThrowOnError extends boolean = false>(options: Options<MergeMemoryTagsData, ThrowOnError>): RequestResult<MergeMemoryTagsResponses, MergeMemoryTagsErrors, ThrowOnError>;
18964
19009
  /**
@@ -19008,7 +19053,7 @@ declare class MemoryEntries {
19008
19053
  /**
19009
19054
  * Merge memory entry tags
19010
19055
  *
19011
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
19056
+ * Merges provided tags into the memory entry's existing tags (existing tags are preserved unless overridden)
19012
19057
  */
19013
19058
  static mergeMemoryEntryTags<ThrowOnError extends boolean = false>(options: Options<MergeMemoryEntryTagsData, ThrowOnError>): RequestResult<MergeMemoryEntryTagsResponses, MergeMemoryEntryTagsErrors, ThrowOnError>;
19014
19059
  /**
package/dist/index.d.mts CHANGED
@@ -338,9 +338,9 @@ type ActivityEntry = {
338
338
  id?: string;
339
339
  project_id?: string;
340
340
  /**
341
- * How the entry was produced
341
+ * How the entry was produced. `tool_resolution_failed` means a tool binding's source could not be reached (an unreachable MCP server, most often) and the turn ran without it — the generation itself completes, carrying no error, so this is the only signal that it answered with fewer tools than it was configured to have.
342
342
  */
343
- kind?: 'action_executed' | 'approval_created' | 'approval_resolved' | 'exception_created' | 'schedule_fired';
343
+ kind?: 'action_executed' | 'approval_created' | 'approval_resolved' | 'exception_created' | 'schedule_fired' | 'tool_resolution_failed';
344
344
  severity?: 'info' | 'warning' | 'critical';
345
345
  /**
346
346
  * One-line, human-readable description
@@ -538,6 +538,15 @@ type Agent = {
538
538
  output_schema?: {
539
539
  [key: string]: unknown;
540
540
  } | null;
541
+ /**
542
+ * Prompt caching for this agent's turns. `{"enabled": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together — so a provider that caches by explicit breakpoint reads that prefix back on every later step of the turn and every later turn of the session instead of being charged for it again. Null or omitted is off: a cache write costs more than an uncached token, so an agent whose prefix is never re-read would pay for the privilege. An agent with no `instructions` has no block to mark and caches nothing. Cache reads are reported as `cached_tokens` and cache writes as `cache_write_tokens` on usage.
543
+ */
544
+ prompt_caching?: {
545
+ /**
546
+ * Whether the breakpoint is marked. Defaults to false.
547
+ */
548
+ enabled?: boolean;
549
+ } | null;
541
550
  /**
542
551
  * Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
543
552
  */
@@ -752,6 +761,15 @@ type CreateAgentRequest = {
752
761
  output_schema?: {
753
762
  [key: string]: unknown;
754
763
  } | null;
764
+ /**
765
+ * Prompt caching for this agent's turns. `{"enabled": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together — so a provider that caches by explicit breakpoint reads that prefix back on every later step of the turn and every later turn of the session instead of being charged for it again. Null or omitted is off: a cache write costs more than an uncached token, so an agent whose prefix is never re-read would pay for the privilege. An agent with no `instructions` has no block to mark and caches nothing. Cache reads are reported as `cached_tokens` and cache writes as `cache_write_tokens` on usage.
766
+ */
767
+ prompt_caching?: {
768
+ /**
769
+ * Whether the breakpoint is marked. Defaults to false.
770
+ */
771
+ enabled?: boolean;
772
+ } | null;
755
773
  /**
756
774
  * Maximum number of recent messages included in the context window. Null means no limit.
757
775
  */
@@ -860,6 +878,15 @@ type UpdateAgentRequest = {
860
878
  output_schema?: {
861
879
  [key: string]: unknown;
862
880
  } | null;
881
+ /**
882
+ * Prompt caching for this agent's turns. `{"enabled": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together — so a provider that caches by explicit breakpoint reads that prefix back on every later step of the turn and every later turn of the session instead of being charged for it again. Null or omitted is off: a cache write costs more than an uncached token, so an agent whose prefix is never re-read would pay for the privilege. An agent with no `instructions` has no block to mark and caches nothing. Cache reads are reported as `cached_tokens` and cache writes as `cache_write_tokens` on usage.
883
+ */
884
+ prompt_caching?: {
885
+ /**
886
+ * Whether the breakpoint is marked. Defaults to false.
887
+ */
888
+ enabled?: boolean;
889
+ } | null;
863
890
  /**
864
891
  * Maximum number of recent messages included in the context window. Null means no limit.
865
892
  */
@@ -1095,7 +1122,7 @@ type ProviderPrice = {
1095
1122
  provider?: string;
1096
1123
  model?: string;
1097
1124
  /**
1098
- * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
1125
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`, `cache_write_tokens`)
1099
1126
  */
1100
1127
  component?: string;
1101
1128
  /**
@@ -1119,7 +1146,7 @@ type UpsertProviderPricesRequest = {
1119
1146
  prices: Array<{
1120
1147
  model: string;
1121
1148
  /**
1122
- * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
1149
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`, `cache_write_tokens`)
1123
1150
  */
1124
1151
  component: string;
1125
1152
  /**
@@ -2399,6 +2426,15 @@ type AgentResourceProperties = {
2399
2426
  output_schema?: {
2400
2427
  [key: string]: unknown;
2401
2428
  } | null;
2429
+ /**
2430
+ * Prompt caching for this agent's turns. `{"enabled": true}` marks a cache breakpoint at the end of the turn's static prefix — the tool definitions and the instructions together. Null or omitted is off.
2431
+ */
2432
+ prompt_caching?: {
2433
+ /**
2434
+ * Whether the breakpoint is marked. Defaults to false.
2435
+ */
2436
+ enabled?: boolean;
2437
+ } | null;
2402
2438
  };
2403
2439
  /**
2404
2440
  * Creates a stateful conversation actor that wraps an agent or chat session and optionally links to a memory store.
@@ -2928,7 +2964,7 @@ type ProjectPriceResourceProperties = {
2928
2964
  */
2929
2965
  model: string;
2930
2966
  /**
2931
- * The billable component this row prices (input_tokens, output_tokens, cached_tokens, compute_second, …)
2967
+ * The billable component this row prices (input_tokens, output_tokens, cached_tokens, cache_write_tokens, compute_second, …)
2932
2968
  */
2933
2969
  component: string;
2934
2970
  /**
@@ -4770,11 +4806,18 @@ type UsageTotals = {
4770
4806
  */
4771
4807
  cost_usd?: number | null;
4772
4808
  /**
4773
- * Full prompt tokens (uncached input + cached), reconstructed from components
4809
+ * Full prompt tokens — uncached input + `cached_tokens` + `cache_write_tokens` — reconstructed from components.
4774
4810
  */
4775
4811
  input_tokens?: number;
4776
4812
  output_tokens?: number;
4813
+ /**
4814
+ * Prompt tokens served from the provider's prompt cache.
4815
+ */
4777
4816
  cached_tokens?: number;
4817
+ /**
4818
+ * Prompt tokens written into the provider's prompt cache.
4819
+ */
4820
+ cache_write_tokens?: number;
4778
4821
  reasoning_tokens?: number;
4779
4822
  };
4780
4823
  /**
@@ -5007,7 +5050,7 @@ type ProjectPrice = {
5007
5050
  provider?: string;
5008
5051
  model?: string;
5009
5052
  /**
5010
- * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
5053
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`, `cache_write_tokens`)
5011
5054
  */
5012
5055
  component?: string;
5013
5056
  /**
@@ -5032,7 +5075,7 @@ type UpsertProjectPricesRequest = {
5032
5075
  provider: string;
5033
5076
  model: string;
5034
5077
  /**
5035
- * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`)
5078
+ * The token component this row prices (`input_tokens`, `output_tokens`, `cached_tokens`, `cache_write_tokens`)
5036
5079
  */
5037
5080
  component: string;
5038
5081
  /**
@@ -6013,7 +6056,9 @@ type TriggerFiringListResponse = {
6013
6056
  offset?: number;
6014
6057
  };
6015
6058
  /**
6016
- * 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.
6059
+ * 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` for prompt-cache reads, `cache_write_tokens` for prompt-cache writes, and a non-billable `reasoning_tokens` detail), a `compute_execution` event has one `compute_second` component.
6060
+ *
6061
+ * The three input dimensions are disjoint and partition the provider's reported prompt tokens: `input_tokens` is the uncached input **alone**. They are separate components because they are separately priced — a cache read costs a fraction of an uncached token and a cache write costs more than one. A dimension with no price row of its own falls back to the `input_tokens` rate, never to zero.
6017
6062
  *
6018
6063
  */
6019
6064
  type UsageComponent = {
@@ -6161,7 +6206,7 @@ type UsageDistinct = {
6161
6206
  */
6162
6207
  type UsageAggregateComponent = {
6163
6208
  /**
6164
- * The measured dimension: `input_tokens`, `cached_tokens`, `output_tokens`, `reasoning_tokens`, `compute_second`, `request`, `gb_day`, `chunk_count`, …
6209
+ * The measured dimension: `input_tokens`, `cached_tokens`, `cache_write_tokens`, `output_tokens`, `reasoning_tokens`, `compute_second`, `request`, `gb_day`, `chunk_count`, …
6165
6210
  *
6166
6211
  */
6167
6212
  component?: string;
@@ -6711,7 +6756,7 @@ type ListActivityData = {
6711
6756
  /**
6712
6757
  * Filter by activity kind
6713
6758
  */
6714
- kind?: 'action_executed' | 'approval_created' | 'approval_resolved' | 'exception_created' | 'schedule_fired';
6759
+ kind?: 'action_executed' | 'approval_created' | 'approval_resolved' | 'exception_created' | 'schedule_fired' | 'tool_resolution_failed';
6715
6760
  /**
6716
6761
  * Filter by severity
6717
6762
  */
@@ -17912,7 +17957,7 @@ declare class Actors {
17912
17957
  /**
17913
17958
  * Merge actor tags
17914
17959
  *
17915
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
17960
+ * Merges provided tags into the actor's existing tags (existing tags are preserved unless overridden)
17916
17961
  */
17917
17962
  static mergeActorTags<ThrowOnError extends boolean = false>(options: Options<MergeActorTagsData, ThrowOnError>): RequestResult<MergeActorTagsResponses, MergeActorTagsErrors, ThrowOnError>;
17918
17963
  /**
@@ -18311,7 +18356,7 @@ declare class Conversations {
18311
18356
  /**
18312
18357
  * Merge conversation tags
18313
18358
  *
18314
- * Merges provided tags with existing tags
18359
+ * Merges provided tags into the conversation's existing tags (existing tags are preserved unless overridden)
18315
18360
  */
18316
18361
  static mergeConversationTags<ThrowOnError extends boolean = false>(options: Options<MergeConversationTagsData, ThrowOnError>): RequestResult<MergeConversationTagsResponses, MergeConversationTagsErrors, ThrowOnError>;
18317
18362
  /**
@@ -18417,7 +18462,7 @@ declare class Documents {
18417
18462
  /**
18418
18463
  * Merge document tags
18419
18464
  *
18420
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
18465
+ * Merges provided tags into the document's existing tags (existing tags are preserved unless overridden)
18421
18466
  */
18422
18467
  static mergeDocumentTags<ThrowOnError extends boolean = false>(options: Options<MergeDocumentTagsData, ThrowOnError>): RequestResult<MergeDocumentTagsResponses, MergeDocumentTagsErrors, ThrowOnError>;
18423
18468
  /**
@@ -18689,7 +18734,7 @@ declare class Files {
18689
18734
  /**
18690
18735
  * Merge file tags
18691
18736
  *
18692
- * Merges provided tags with existing tags
18737
+ * Merges provided tags into the file's existing tags (existing tags are preserved unless overridden)
18693
18738
  */
18694
18739
  static mergeFileTags<ThrowOnError extends boolean = false>(options: Options<MergeFileTagsData, ThrowOnError>): RequestResult<MergeFileTagsResponses, MergeFileTagsErrors, ThrowOnError>;
18695
18740
  /**
@@ -18958,7 +19003,7 @@ declare class Memories {
18958
19003
  /**
18959
19004
  * Merge memory tags
18960
19005
  *
18961
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
19006
+ * Merges provided tags into the memory's existing tags (existing tags are preserved unless overridden)
18962
19007
  */
18963
19008
  static mergeMemoryTags<ThrowOnError extends boolean = false>(options: Options<MergeMemoryTagsData, ThrowOnError>): RequestResult<MergeMemoryTagsResponses, MergeMemoryTagsErrors, ThrowOnError>;
18964
19009
  /**
@@ -19008,7 +19053,7 @@ declare class MemoryEntries {
19008
19053
  /**
19009
19054
  * Merge memory entry tags
19010
19055
  *
19011
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
19056
+ * Merges provided tags into the memory entry's existing tags (existing tags are preserved unless overridden)
19012
19057
  */
19013
19058
  static mergeMemoryEntryTags<ThrowOnError extends boolean = false>(options: Options<MergeMemoryEntryTagsData, ThrowOnError>): RequestResult<MergeMemoryEntryTagsResponses, MergeMemoryEntryTagsErrors, ThrowOnError>;
19014
19059
  /**
package/dist/index.mjs CHANGED
@@ -713,7 +713,7 @@ var Actors = class {
713
713
  /**
714
714
  * Merge actor tags
715
715
  *
716
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
716
+ * Merges provided tags into the actor's existing tags (existing tags are preserved unless overridden)
717
717
  */
718
718
  static mergeActorTags(options) {
719
719
  return (options.client ?? client).patch({
@@ -1474,7 +1474,7 @@ var Conversations = class {
1474
1474
  /**
1475
1475
  * Merge conversation tags
1476
1476
  *
1477
- * Merges provided tags with existing tags
1477
+ * Merges provided tags into the conversation's existing tags (existing tags are preserved unless overridden)
1478
1478
  */
1479
1479
  static mergeConversationTags(options) {
1480
1480
  return (options.client ?? client).patch({
@@ -1668,7 +1668,7 @@ var Documents = class {
1668
1668
  /**
1669
1669
  * Merge document tags
1670
1670
  *
1671
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
1671
+ * Merges provided tags into the document's existing tags (existing tags are preserved unless overridden)
1672
1672
  */
1673
1673
  static mergeDocumentTags(options) {
1674
1674
  return (options.client ?? client).patch({
@@ -2208,7 +2208,7 @@ var Files = class {
2208
2208
  /**
2209
2209
  * Merge file tags
2210
2210
  *
2211
- * Merges provided tags with existing tags
2211
+ * Merges provided tags into the file's existing tags (existing tags are preserved unless overridden)
2212
2212
  */
2213
2213
  static mergeFileTags(options) {
2214
2214
  return (options.client ?? client).patch({
@@ -2721,7 +2721,7 @@ var Memories = class {
2721
2721
  /**
2722
2722
  * Merge memory tags
2723
2723
  *
2724
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
2724
+ * Merges provided tags into the memory's existing tags (existing tags are preserved unless overridden)
2725
2725
  */
2726
2726
  static mergeMemoryTags(options) {
2727
2727
  return (options.client ?? client).patch({
@@ -2827,7 +2827,7 @@ var MemoryEntries = class {
2827
2827
  /**
2828
2828
  * Merge memory entry tags
2829
2829
  *
2830
- * Merges provided tags with existing tags (existing tags are preserved unless overridden)
2830
+ * Merges provided tags into the memory entry's existing tags (existing tags are preserved unless overridden)
2831
2831
  */
2832
2832
  static mergeMemoryEntryTags(options) {
2833
2833
  return (options.client ?? client).patch({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "description": "TypeScript SDK for SOAT — open-source infrastructure for production-ready AI agents.",
5
5
  "keywords": [
6
6
  "ai-agents",