@runtypelabs/sdk 9.7.0 → 9.8.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
@@ -6495,7 +6495,7 @@ var Runtype = class {
6495
6495
 
6496
6496
  // src/version.ts
6497
6497
  var FALLBACK_VERSION = "0.0.0";
6498
- var SDK_VERSION = "9.7.0".length > 0 ? "9.7.0" : FALLBACK_VERSION;
6498
+ var SDK_VERSION = "9.8.0".length > 0 ? "9.8.0" : FALLBACK_VERSION;
6499
6499
  var RUNTYPE_CLIENT_KIND = "sdk";
6500
6500
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6501
6501
 
package/dist/index.d.cts CHANGED
@@ -911,9 +911,33 @@ interface paths {
911
911
  voiceId?: string;
912
912
  };
913
913
  enabled?: boolean;
914
+ endpointing?: {
915
+ silenceMs?: number;
916
+ /** @enum {string} */
917
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
918
+ };
919
+ greeting?: string;
914
920
  /** @enum {string} */
915
921
  interruptionMode?: "none" | "cancel" | "barge-in";
922
+ language?: string;
916
923
  provider?: string;
924
+ speech?: {
925
+ /** @enum {string} */
926
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
927
+ synthesizer: {
928
+ model?: string;
929
+ provider: string;
930
+ settings?: {
931
+ similarity?: number;
932
+ stability?: number;
933
+ };
934
+ voiceId?: string;
935
+ };
936
+ transcriber: {
937
+ model?: string;
938
+ provider: string;
939
+ };
940
+ };
917
941
  };
918
942
  };
919
943
  description?: string;
@@ -1363,9 +1387,33 @@ interface paths {
1363
1387
  voiceId?: string;
1364
1388
  };
1365
1389
  enabled?: boolean;
1390
+ endpointing?: {
1391
+ silenceMs?: number;
1392
+ /** @enum {string} */
1393
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
1394
+ };
1395
+ greeting?: string;
1366
1396
  /** @enum {string} */
1367
1397
  interruptionMode?: "none" | "cancel" | "barge-in";
1398
+ language?: string;
1368
1399
  provider?: string;
1400
+ speech?: {
1401
+ /** @enum {string} */
1402
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
1403
+ synthesizer: {
1404
+ model?: string;
1405
+ provider: string;
1406
+ settings?: {
1407
+ similarity?: number;
1408
+ stability?: number;
1409
+ };
1410
+ voiceId?: string;
1411
+ };
1412
+ transcriber: {
1413
+ model?: string;
1414
+ provider: string;
1415
+ };
1416
+ };
1369
1417
  };
1370
1418
  };
1371
1419
  description?: string;
@@ -2075,9 +2123,33 @@ interface paths {
2075
2123
  voiceId?: string;
2076
2124
  };
2077
2125
  enabled?: boolean;
2126
+ endpointing?: {
2127
+ silenceMs?: number;
2128
+ /** @enum {string} */
2129
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
2130
+ };
2131
+ greeting?: string;
2078
2132
  /** @enum {string} */
2079
2133
  interruptionMode?: "none" | "cancel" | "barge-in";
2134
+ language?: string;
2080
2135
  provider?: string;
2136
+ speech?: {
2137
+ /** @enum {string} */
2138
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
2139
+ synthesizer: {
2140
+ model?: string;
2141
+ provider: string;
2142
+ settings?: {
2143
+ similarity?: number;
2144
+ stability?: number;
2145
+ };
2146
+ voiceId?: string;
2147
+ };
2148
+ transcriber: {
2149
+ model?: string;
2150
+ provider: string;
2151
+ };
2152
+ };
2081
2153
  };
2082
2154
  };
2083
2155
  description?: string;
@@ -11166,9 +11238,33 @@ interface paths {
11166
11238
  voiceId?: string;
11167
11239
  };
11168
11240
  enabled?: boolean;
11241
+ endpointing?: {
11242
+ silenceMs?: number;
11243
+ /** @enum {string} */
11244
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
11245
+ };
11246
+ greeting?: string;
11169
11247
  /** @enum {string} */
11170
11248
  interruptionMode?: "none" | "cancel" | "barge-in";
11249
+ language?: string;
11171
11250
  provider?: string;
11251
+ speech?: {
11252
+ /** @enum {string} */
11253
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
11254
+ synthesizer: {
11255
+ model?: string;
11256
+ provider: string;
11257
+ settings?: {
11258
+ similarity?: number;
11259
+ stability?: number;
11260
+ };
11261
+ voiceId?: string;
11262
+ };
11263
+ transcriber: {
11264
+ model?: string;
11265
+ provider: string;
11266
+ };
11267
+ };
11172
11268
  };
11173
11269
  };
11174
11270
  clientTools?: ({
@@ -11346,7 +11442,7 @@ interface paths {
11346
11442
  ownerId?: string;
11347
11443
  type?: string;
11348
11444
  };
11349
- /** @description Retired. A NON-EMPTY map on an agent dispatch is rejected with 400 RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED. There is no longer an exception: the legacy engine that honored it for single-turn agents behind `options.useRuntimePackage: false` has been removed, and that opt-out is itself a 400 now. An empty map is accepted and does nothing. Ignored on flow dispatches. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11445
+ /** @description Retired on BOTH dispatch targets. A NON-EMPTY map is rejected with 400: RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED on an agent dispatch, RUNTIME_FLOW_TRANSIENT_SECRETS_UNSUPPORTED on a flow dispatch (the flow target used to drop the map silently). An empty map is accepted and does nothing. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11350
11446
  secrets?: {
11351
11447
  [key: string]: string;
11352
11448
  };
@@ -11542,9 +11638,33 @@ interface paths {
11542
11638
  voiceId?: string;
11543
11639
  };
11544
11640
  enabled?: boolean;
11641
+ endpointing?: {
11642
+ silenceMs?: number;
11643
+ /** @enum {string} */
11644
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
11645
+ };
11646
+ greeting?: string;
11545
11647
  /** @enum {string} */
11546
11648
  interruptionMode?: "none" | "cancel" | "barge-in";
11649
+ language?: string;
11547
11650
  provider?: string;
11651
+ speech?: {
11652
+ /** @enum {string} */
11653
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
11654
+ synthesizer: {
11655
+ model?: string;
11656
+ provider: string;
11657
+ settings?: {
11658
+ similarity?: number;
11659
+ stability?: number;
11660
+ };
11661
+ voiceId?: string;
11662
+ };
11663
+ transcriber: {
11664
+ model?: string;
11665
+ provider: string;
11666
+ };
11667
+ };
11548
11668
  };
11549
11669
  };
11550
11670
  clientTools?: ({
@@ -11722,7 +11842,7 @@ interface paths {
11722
11842
  ownerId?: string;
11723
11843
  type?: string;
11724
11844
  };
11725
- /** @description Retired. A NON-EMPTY map on an agent dispatch is rejected with 400 RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED. There is no longer an exception: the legacy engine that honored it for single-turn agents behind `options.useRuntimePackage: false` has been removed, and that opt-out is itself a 400 now. An empty map is accepted and does nothing. Ignored on flow dispatches. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11845
+ /** @description Retired on BOTH dispatch targets. A NON-EMPTY map is rejected with 400: RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED on an agent dispatch, RUNTIME_FLOW_TRANSIENT_SECRETS_UNSUPPORTED on a flow dispatch (the flow target used to drop the map silently). An empty map is accepted and does nothing. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11726
11846
  secrets?: {
11727
11847
  [key: string]: string;
11728
11848
  };
@@ -25629,6 +25749,10 @@ interface paths {
25629
25749
  /** @default 4096 */
25630
25750
  maxOutputTokens?: number;
25631
25751
  outputCostPer1kTokens: number;
25752
+ reasoning?: {
25753
+ defaultEffort?: string;
25754
+ supported: boolean;
25755
+ };
25632
25756
  /**
25633
25757
  * @default [
25634
25758
  * "text",
@@ -26291,6 +26415,10 @@ interface paths {
26291
26415
  /** @default 4096 */
26292
26416
  maxOutputTokens?: number;
26293
26417
  outputCostPer1kTokens: number;
26418
+ reasoning?: {
26419
+ defaultEffort?: string;
26420
+ supported: boolean;
26421
+ };
26294
26422
  /**
26295
26423
  * @default [
26296
26424
  * "text",
@@ -34454,6 +34582,10 @@ interface paths {
34454
34582
  inputCostPer1kTokens?: number;
34455
34583
  maxOutputTokens?: number;
34456
34584
  outputCostPer1kTokens?: number;
34585
+ reasoning?: {
34586
+ defaultEffort?: string;
34587
+ supported: boolean;
34588
+ };
34457
34589
  supportedResponseFormats?: string[];
34458
34590
  supportsStreaming?: boolean;
34459
34591
  }[];
@@ -45597,9 +45729,33 @@ interface components {
45597
45729
  voiceId?: string;
45598
45730
  };
45599
45731
  enabled?: boolean;
45732
+ endpointing?: {
45733
+ silenceMs?: number;
45734
+ /** @enum {string} */
45735
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
45736
+ };
45737
+ greeting?: string;
45600
45738
  /** @enum {string} */
45601
45739
  interruptionMode?: "none" | "cancel" | "barge-in";
45740
+ language?: string;
45602
45741
  provider?: string;
45742
+ speech?: {
45743
+ /** @enum {string} */
45744
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
45745
+ synthesizer: {
45746
+ model?: string;
45747
+ provider: string;
45748
+ settings?: {
45749
+ similarity?: number;
45750
+ stability?: number;
45751
+ };
45752
+ voiceId?: string;
45753
+ };
45754
+ transcriber: {
45755
+ model?: string;
45756
+ provider: string;
45757
+ };
45758
+ };
45603
45759
  };
45604
45760
  };
45605
45761
  description?: string;
@@ -46411,6 +46567,11 @@ interface components {
46411
46567
  /** @enum {string} */
46412
46568
  role: "user" | "assistant" | "system";
46413
46569
  seq: number;
46570
+ subagent?: {
46571
+ agentName?: string;
46572
+ parentToolCallId?: string;
46573
+ toolName: string;
46574
+ };
46414
46575
  turnIndex?: number;
46415
46576
  /** @enum {string} */
46416
46577
  type: "turn_start";
@@ -46451,6 +46612,11 @@ interface components {
46451
46612
  seq: number;
46452
46613
  /** @enum {string} */
46453
46614
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
46615
+ subagent?: {
46616
+ agentName?: string;
46617
+ parentToolCallId?: string;
46618
+ toolName: string;
46619
+ };
46454
46620
  tokens?: {
46455
46621
  input: number;
46456
46622
  output: number;
@@ -46466,6 +46632,11 @@ interface components {
46466
46632
  seq: number;
46467
46633
  startedAt?: string;
46468
46634
  stepType?: string;
46635
+ subagent?: {
46636
+ agentName?: string;
46637
+ parentToolCallId?: string;
46638
+ toolName: string;
46639
+ };
46469
46640
  totalSteps?: number;
46470
46641
  /** @enum {string} */
46471
46642
  type: "step_start";
@@ -46496,6 +46667,11 @@ interface components {
46496
46667
  stepType?: string;
46497
46668
  /** @enum {string} */
46498
46669
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
46670
+ subagent?: {
46671
+ agentName?: string;
46672
+ parentToolCallId?: string;
46673
+ toolName: string;
46674
+ };
46499
46675
  success?: boolean;
46500
46676
  tokensUsed?: number;
46501
46677
  /** @enum {string} */
@@ -46521,6 +46697,11 @@ interface components {
46521
46697
  role?: "user" | "assistant" | "system";
46522
46698
  seq: number;
46523
46699
  stepId?: string;
46700
+ subagent?: {
46701
+ agentName?: string;
46702
+ parentToolCallId?: string;
46703
+ toolName: string;
46704
+ };
46524
46705
  turnId?: string;
46525
46706
  /** @enum {string} */
46526
46707
  type: "text_start";
@@ -46529,12 +46710,22 @@ interface components {
46529
46710
  executionId: string;
46530
46711
  id: string;
46531
46712
  seq: number;
46713
+ subagent?: {
46714
+ agentName?: string;
46715
+ parentToolCallId?: string;
46716
+ toolName: string;
46717
+ };
46532
46718
  /** @enum {string} */
46533
46719
  type: "text_delta";
46534
46720
  } | {
46535
46721
  executionId: string;
46536
46722
  id: string;
46537
46723
  seq: number;
46724
+ subagent?: {
46725
+ agentName?: string;
46726
+ parentToolCallId?: string;
46727
+ toolName: string;
46728
+ };
46538
46729
  text?: string;
46539
46730
  /** @enum {string} */
46540
46731
  type: "text_complete";
@@ -46545,6 +46736,11 @@ interface components {
46545
46736
  /** @enum {string} */
46546
46737
  scope?: "turn" | "loop";
46547
46738
  seq: number;
46739
+ subagent?: {
46740
+ agentName?: string;
46741
+ parentToolCallId?: string;
46742
+ toolName: string;
46743
+ };
46548
46744
  /** @enum {string} */
46549
46745
  type: "reasoning_start";
46550
46746
  } | {
@@ -46552,6 +46748,11 @@ interface components {
46552
46748
  executionId: string;
46553
46749
  id: string;
46554
46750
  seq: number;
46751
+ subagent?: {
46752
+ agentName?: string;
46753
+ parentToolCallId?: string;
46754
+ toolName: string;
46755
+ };
46555
46756
  /** @enum {string} */
46556
46757
  type: "reasoning_delta";
46557
46758
  } | {
@@ -46560,6 +46761,11 @@ interface components {
46560
46761
  /** @enum {string} */
46561
46762
  scope?: "turn" | "loop";
46562
46763
  seq: number;
46764
+ subagent?: {
46765
+ agentName?: string;
46766
+ parentToolCallId?: string;
46767
+ toolName: string;
46768
+ };
46563
46769
  text?: string;
46564
46770
  /** @enum {string} */
46565
46771
  type: "reasoning_complete";
@@ -46674,6 +46880,11 @@ interface components {
46674
46880
  seq: number;
46675
46881
  startedAt?: string;
46676
46882
  stepId?: string;
46883
+ subagent?: {
46884
+ agentName?: string;
46885
+ parentToolCallId?: string;
46886
+ toolName: string;
46887
+ };
46677
46888
  toolCallId: string;
46678
46889
  toolName: string;
46679
46890
  toolType: string;
@@ -46683,6 +46894,11 @@ interface components {
46683
46894
  delta: string;
46684
46895
  executionId: string;
46685
46896
  seq: number;
46897
+ subagent?: {
46898
+ agentName?: string;
46899
+ parentToolCallId?: string;
46900
+ toolName: string;
46901
+ };
46686
46902
  toolCallId: string;
46687
46903
  /** @enum {string} */
46688
46904
  type: "tool_input_delta";
@@ -46693,6 +46909,11 @@ interface components {
46693
46909
  [key: string]: unknown;
46694
46910
  };
46695
46911
  seq: number;
46912
+ subagent?: {
46913
+ agentName?: string;
46914
+ parentToolCallId?: string;
46915
+ toolName: string;
46916
+ };
46696
46917
  toolCallId: string;
46697
46918
  toolName?: string;
46698
46919
  /** @enum {string} */
@@ -46712,6 +46933,11 @@ interface components {
46712
46933
  result?: unknown;
46713
46934
  seq: number;
46714
46935
  stepId?: string;
46936
+ subagent?: {
46937
+ agentName?: string;
46938
+ parentToolCallId?: string;
46939
+ toolName: string;
46940
+ };
46715
46941
  success: boolean;
46716
46942
  toolCallId: string;
46717
46943
  toolCost?: number;
@@ -49226,6 +49452,14 @@ interface ProviderKeyModel {
49226
49452
  inputCostPer1kTokens?: number;
49227
49453
  outputCostPer1kTokens?: number;
49228
49454
  supportedResponseFormats?: string[];
49455
+ /**
49456
+ * Whether the endpoint accepts `reasoning_effort` for this model, and the effort sent when an
49457
+ * agent or step sets no reasoning of its own. `defaultEffort` requires `supported: true`.
49458
+ */
49459
+ reasoning?: {
49460
+ supported: boolean;
49461
+ defaultEffort?: string;
49462
+ };
49229
49463
  }
49230
49464
  /** Content part types for multi-modal messages */
49231
49465
  interface TextContentPart {
package/dist/index.d.ts CHANGED
@@ -911,9 +911,33 @@ interface paths {
911
911
  voiceId?: string;
912
912
  };
913
913
  enabled?: boolean;
914
+ endpointing?: {
915
+ silenceMs?: number;
916
+ /** @enum {string} */
917
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
918
+ };
919
+ greeting?: string;
914
920
  /** @enum {string} */
915
921
  interruptionMode?: "none" | "cancel" | "barge-in";
922
+ language?: string;
916
923
  provider?: string;
924
+ speech?: {
925
+ /** @enum {string} */
926
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
927
+ synthesizer: {
928
+ model?: string;
929
+ provider: string;
930
+ settings?: {
931
+ similarity?: number;
932
+ stability?: number;
933
+ };
934
+ voiceId?: string;
935
+ };
936
+ transcriber: {
937
+ model?: string;
938
+ provider: string;
939
+ };
940
+ };
917
941
  };
918
942
  };
919
943
  description?: string;
@@ -1363,9 +1387,33 @@ interface paths {
1363
1387
  voiceId?: string;
1364
1388
  };
1365
1389
  enabled?: boolean;
1390
+ endpointing?: {
1391
+ silenceMs?: number;
1392
+ /** @enum {string} */
1393
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
1394
+ };
1395
+ greeting?: string;
1366
1396
  /** @enum {string} */
1367
1397
  interruptionMode?: "none" | "cancel" | "barge-in";
1398
+ language?: string;
1368
1399
  provider?: string;
1400
+ speech?: {
1401
+ /** @enum {string} */
1402
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
1403
+ synthesizer: {
1404
+ model?: string;
1405
+ provider: string;
1406
+ settings?: {
1407
+ similarity?: number;
1408
+ stability?: number;
1409
+ };
1410
+ voiceId?: string;
1411
+ };
1412
+ transcriber: {
1413
+ model?: string;
1414
+ provider: string;
1415
+ };
1416
+ };
1369
1417
  };
1370
1418
  };
1371
1419
  description?: string;
@@ -2075,9 +2123,33 @@ interface paths {
2075
2123
  voiceId?: string;
2076
2124
  };
2077
2125
  enabled?: boolean;
2126
+ endpointing?: {
2127
+ silenceMs?: number;
2128
+ /** @enum {string} */
2129
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
2130
+ };
2131
+ greeting?: string;
2078
2132
  /** @enum {string} */
2079
2133
  interruptionMode?: "none" | "cancel" | "barge-in";
2134
+ language?: string;
2080
2135
  provider?: string;
2136
+ speech?: {
2137
+ /** @enum {string} */
2138
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
2139
+ synthesizer: {
2140
+ model?: string;
2141
+ provider: string;
2142
+ settings?: {
2143
+ similarity?: number;
2144
+ stability?: number;
2145
+ };
2146
+ voiceId?: string;
2147
+ };
2148
+ transcriber: {
2149
+ model?: string;
2150
+ provider: string;
2151
+ };
2152
+ };
2081
2153
  };
2082
2154
  };
2083
2155
  description?: string;
@@ -11166,9 +11238,33 @@ interface paths {
11166
11238
  voiceId?: string;
11167
11239
  };
11168
11240
  enabled?: boolean;
11241
+ endpointing?: {
11242
+ silenceMs?: number;
11243
+ /** @enum {string} */
11244
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
11245
+ };
11246
+ greeting?: string;
11169
11247
  /** @enum {string} */
11170
11248
  interruptionMode?: "none" | "cancel" | "barge-in";
11249
+ language?: string;
11171
11250
  provider?: string;
11251
+ speech?: {
11252
+ /** @enum {string} */
11253
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
11254
+ synthesizer: {
11255
+ model?: string;
11256
+ provider: string;
11257
+ settings?: {
11258
+ similarity?: number;
11259
+ stability?: number;
11260
+ };
11261
+ voiceId?: string;
11262
+ };
11263
+ transcriber: {
11264
+ model?: string;
11265
+ provider: string;
11266
+ };
11267
+ };
11172
11268
  };
11173
11269
  };
11174
11270
  clientTools?: ({
@@ -11346,7 +11442,7 @@ interface paths {
11346
11442
  ownerId?: string;
11347
11443
  type?: string;
11348
11444
  };
11349
- /** @description Retired. A NON-EMPTY map on an agent dispatch is rejected with 400 RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED. There is no longer an exception: the legacy engine that honored it for single-turn agents behind `options.useRuntimePackage: false` has been removed, and that opt-out is itself a 400 now. An empty map is accepted and does nothing. Ignored on flow dispatches. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11445
+ /** @description Retired on BOTH dispatch targets. A NON-EMPTY map is rejected with 400: RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED on an agent dispatch, RUNTIME_FLOW_TRANSIENT_SECRETS_UNSUPPORTED on a flow dispatch (the flow target used to drop the map silently). An empty map is accepted and does nothing. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11350
11446
  secrets?: {
11351
11447
  [key: string]: string;
11352
11448
  };
@@ -11542,9 +11638,33 @@ interface paths {
11542
11638
  voiceId?: string;
11543
11639
  };
11544
11640
  enabled?: boolean;
11641
+ endpointing?: {
11642
+ silenceMs?: number;
11643
+ /** @enum {string} */
11644
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
11645
+ };
11646
+ greeting?: string;
11545
11647
  /** @enum {string} */
11546
11648
  interruptionMode?: "none" | "cancel" | "barge-in";
11649
+ language?: string;
11547
11650
  provider?: string;
11651
+ speech?: {
11652
+ /** @enum {string} */
11653
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
11654
+ synthesizer: {
11655
+ model?: string;
11656
+ provider: string;
11657
+ settings?: {
11658
+ similarity?: number;
11659
+ stability?: number;
11660
+ };
11661
+ voiceId?: string;
11662
+ };
11663
+ transcriber: {
11664
+ model?: string;
11665
+ provider: string;
11666
+ };
11667
+ };
11548
11668
  };
11549
11669
  };
11550
11670
  clientTools?: ({
@@ -11722,7 +11842,7 @@ interface paths {
11722
11842
  ownerId?: string;
11723
11843
  type?: string;
11724
11844
  };
11725
- /** @description Retired. A NON-EMPTY map on an agent dispatch is rejected with 400 RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED. There is no longer an exception: the legacy engine that honored it for single-turn agents behind `options.useRuntimePackage: false` has been removed, and that opt-out is itself a 400 now. An empty map is accepted and does nothing. Ignored on flow dispatches. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11845
+ /** @description Retired on BOTH dispatch targets. A NON-EMPTY map is rejected with 400: RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED on an agent dispatch, RUNTIME_FLOW_TRANSIENT_SECRETS_UNSUPPORTED on a flow dispatch (the flow target used to drop the map silently). An empty map is accepted and does nothing. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11726
11846
  secrets?: {
11727
11847
  [key: string]: string;
11728
11848
  };
@@ -25629,6 +25749,10 @@ interface paths {
25629
25749
  /** @default 4096 */
25630
25750
  maxOutputTokens?: number;
25631
25751
  outputCostPer1kTokens: number;
25752
+ reasoning?: {
25753
+ defaultEffort?: string;
25754
+ supported: boolean;
25755
+ };
25632
25756
  /**
25633
25757
  * @default [
25634
25758
  * "text",
@@ -26291,6 +26415,10 @@ interface paths {
26291
26415
  /** @default 4096 */
26292
26416
  maxOutputTokens?: number;
26293
26417
  outputCostPer1kTokens: number;
26418
+ reasoning?: {
26419
+ defaultEffort?: string;
26420
+ supported: boolean;
26421
+ };
26294
26422
  /**
26295
26423
  * @default [
26296
26424
  * "text",
@@ -34454,6 +34582,10 @@ interface paths {
34454
34582
  inputCostPer1kTokens?: number;
34455
34583
  maxOutputTokens?: number;
34456
34584
  outputCostPer1kTokens?: number;
34585
+ reasoning?: {
34586
+ defaultEffort?: string;
34587
+ supported: boolean;
34588
+ };
34457
34589
  supportedResponseFormats?: string[];
34458
34590
  supportsStreaming?: boolean;
34459
34591
  }[];
@@ -45597,9 +45729,33 @@ interface components {
45597
45729
  voiceId?: string;
45598
45730
  };
45599
45731
  enabled?: boolean;
45732
+ endpointing?: {
45733
+ silenceMs?: number;
45734
+ /** @enum {string} */
45735
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
45736
+ };
45737
+ greeting?: string;
45600
45738
  /** @enum {string} */
45601
45739
  interruptionMode?: "none" | "cancel" | "barge-in";
45740
+ language?: string;
45602
45741
  provider?: string;
45742
+ speech?: {
45743
+ /** @enum {string} */
45744
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
45745
+ synthesizer: {
45746
+ model?: string;
45747
+ provider: string;
45748
+ settings?: {
45749
+ similarity?: number;
45750
+ stability?: number;
45751
+ };
45752
+ voiceId?: string;
45753
+ };
45754
+ transcriber: {
45755
+ model?: string;
45756
+ provider: string;
45757
+ };
45758
+ };
45603
45759
  };
45604
45760
  };
45605
45761
  description?: string;
@@ -46411,6 +46567,11 @@ interface components {
46411
46567
  /** @enum {string} */
46412
46568
  role: "user" | "assistant" | "system";
46413
46569
  seq: number;
46570
+ subagent?: {
46571
+ agentName?: string;
46572
+ parentToolCallId?: string;
46573
+ toolName: string;
46574
+ };
46414
46575
  turnIndex?: number;
46415
46576
  /** @enum {string} */
46416
46577
  type: "turn_start";
@@ -46451,6 +46612,11 @@ interface components {
46451
46612
  seq: number;
46452
46613
  /** @enum {string} */
46453
46614
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
46615
+ subagent?: {
46616
+ agentName?: string;
46617
+ parentToolCallId?: string;
46618
+ toolName: string;
46619
+ };
46454
46620
  tokens?: {
46455
46621
  input: number;
46456
46622
  output: number;
@@ -46466,6 +46632,11 @@ interface components {
46466
46632
  seq: number;
46467
46633
  startedAt?: string;
46468
46634
  stepType?: string;
46635
+ subagent?: {
46636
+ agentName?: string;
46637
+ parentToolCallId?: string;
46638
+ toolName: string;
46639
+ };
46469
46640
  totalSteps?: number;
46470
46641
  /** @enum {string} */
46471
46642
  type: "step_start";
@@ -46496,6 +46667,11 @@ interface components {
46496
46667
  stepType?: string;
46497
46668
  /** @enum {string} */
46498
46669
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
46670
+ subagent?: {
46671
+ agentName?: string;
46672
+ parentToolCallId?: string;
46673
+ toolName: string;
46674
+ };
46499
46675
  success?: boolean;
46500
46676
  tokensUsed?: number;
46501
46677
  /** @enum {string} */
@@ -46521,6 +46697,11 @@ interface components {
46521
46697
  role?: "user" | "assistant" | "system";
46522
46698
  seq: number;
46523
46699
  stepId?: string;
46700
+ subagent?: {
46701
+ agentName?: string;
46702
+ parentToolCallId?: string;
46703
+ toolName: string;
46704
+ };
46524
46705
  turnId?: string;
46525
46706
  /** @enum {string} */
46526
46707
  type: "text_start";
@@ -46529,12 +46710,22 @@ interface components {
46529
46710
  executionId: string;
46530
46711
  id: string;
46531
46712
  seq: number;
46713
+ subagent?: {
46714
+ agentName?: string;
46715
+ parentToolCallId?: string;
46716
+ toolName: string;
46717
+ };
46532
46718
  /** @enum {string} */
46533
46719
  type: "text_delta";
46534
46720
  } | {
46535
46721
  executionId: string;
46536
46722
  id: string;
46537
46723
  seq: number;
46724
+ subagent?: {
46725
+ agentName?: string;
46726
+ parentToolCallId?: string;
46727
+ toolName: string;
46728
+ };
46538
46729
  text?: string;
46539
46730
  /** @enum {string} */
46540
46731
  type: "text_complete";
@@ -46545,6 +46736,11 @@ interface components {
46545
46736
  /** @enum {string} */
46546
46737
  scope?: "turn" | "loop";
46547
46738
  seq: number;
46739
+ subagent?: {
46740
+ agentName?: string;
46741
+ parentToolCallId?: string;
46742
+ toolName: string;
46743
+ };
46548
46744
  /** @enum {string} */
46549
46745
  type: "reasoning_start";
46550
46746
  } | {
@@ -46552,6 +46748,11 @@ interface components {
46552
46748
  executionId: string;
46553
46749
  id: string;
46554
46750
  seq: number;
46751
+ subagent?: {
46752
+ agentName?: string;
46753
+ parentToolCallId?: string;
46754
+ toolName: string;
46755
+ };
46555
46756
  /** @enum {string} */
46556
46757
  type: "reasoning_delta";
46557
46758
  } | {
@@ -46560,6 +46761,11 @@ interface components {
46560
46761
  /** @enum {string} */
46561
46762
  scope?: "turn" | "loop";
46562
46763
  seq: number;
46764
+ subagent?: {
46765
+ agentName?: string;
46766
+ parentToolCallId?: string;
46767
+ toolName: string;
46768
+ };
46563
46769
  text?: string;
46564
46770
  /** @enum {string} */
46565
46771
  type: "reasoning_complete";
@@ -46674,6 +46880,11 @@ interface components {
46674
46880
  seq: number;
46675
46881
  startedAt?: string;
46676
46882
  stepId?: string;
46883
+ subagent?: {
46884
+ agentName?: string;
46885
+ parentToolCallId?: string;
46886
+ toolName: string;
46887
+ };
46677
46888
  toolCallId: string;
46678
46889
  toolName: string;
46679
46890
  toolType: string;
@@ -46683,6 +46894,11 @@ interface components {
46683
46894
  delta: string;
46684
46895
  executionId: string;
46685
46896
  seq: number;
46897
+ subagent?: {
46898
+ agentName?: string;
46899
+ parentToolCallId?: string;
46900
+ toolName: string;
46901
+ };
46686
46902
  toolCallId: string;
46687
46903
  /** @enum {string} */
46688
46904
  type: "tool_input_delta";
@@ -46693,6 +46909,11 @@ interface components {
46693
46909
  [key: string]: unknown;
46694
46910
  };
46695
46911
  seq: number;
46912
+ subagent?: {
46913
+ agentName?: string;
46914
+ parentToolCallId?: string;
46915
+ toolName: string;
46916
+ };
46696
46917
  toolCallId: string;
46697
46918
  toolName?: string;
46698
46919
  /** @enum {string} */
@@ -46712,6 +46933,11 @@ interface components {
46712
46933
  result?: unknown;
46713
46934
  seq: number;
46714
46935
  stepId?: string;
46936
+ subagent?: {
46937
+ agentName?: string;
46938
+ parentToolCallId?: string;
46939
+ toolName: string;
46940
+ };
46715
46941
  success: boolean;
46716
46942
  toolCallId: string;
46717
46943
  toolCost?: number;
@@ -49226,6 +49452,14 @@ interface ProviderKeyModel {
49226
49452
  inputCostPer1kTokens?: number;
49227
49453
  outputCostPer1kTokens?: number;
49228
49454
  supportedResponseFormats?: string[];
49455
+ /**
49456
+ * Whether the endpoint accepts `reasoning_effort` for this model, and the effort sent when an
49457
+ * agent or step sets no reasoning of its own. `defaultEffort` requires `supported: true`.
49458
+ */
49459
+ reasoning?: {
49460
+ supported: boolean;
49461
+ defaultEffort?: string;
49462
+ };
49229
49463
  }
49230
49464
  /** Content part types for multi-modal messages */
49231
49465
  interface TextContentPart {
package/dist/index.mjs CHANGED
@@ -6300,7 +6300,7 @@ var Runtype = class {
6300
6300
 
6301
6301
  // src/version.ts
6302
6302
  var FALLBACK_VERSION = "0.0.0";
6303
- var SDK_VERSION = "9.7.0".length > 0 ? "9.7.0" : FALLBACK_VERSION;
6303
+ var SDK_VERSION = "9.8.0".length > 0 ? "9.8.0" : FALLBACK_VERSION;
6304
6304
  var RUNTYPE_CLIENT_KIND = "sdk";
6305
6305
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6306
6306
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "9.7.0",
3
+ "version": "9.8.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
6
6
  "main": "dist/index.cjs",