@runtypelabs/sdk 5.6.0 → 5.7.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
@@ -6188,7 +6188,7 @@ var Runtype = class {
6188
6188
 
6189
6189
  // src/version.ts
6190
6190
  var FALLBACK_VERSION = "0.0.0";
6191
- var SDK_VERSION = "5.6.0".length > 0 ? "5.6.0" : FALLBACK_VERSION;
6191
+ var SDK_VERSION = "5.7.0".length > 0 ? "5.7.0" : FALLBACK_VERSION;
6192
6192
  var RUNTYPE_CLIENT_KIND = "sdk";
6193
6193
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6194
6194
 
package/dist/index.d.cts CHANGED
@@ -2776,6 +2776,107 @@ interface paths {
2776
2776
  patch?: never;
2777
2777
  trace?: never;
2778
2778
  };
2779
+ "/v1/agents/{id}/executions/{executionId}/events": {
2780
+ parameters: {
2781
+ query?: never;
2782
+ header?: never;
2783
+ path?: never;
2784
+ cookie?: never;
2785
+ };
2786
+ /**
2787
+ * Stream execution events
2788
+ * @description Reconnect to a durable Claude Managed agent turn: replay-and-tail its Server-Sent Events. Resolves the per-conversation session owner by (agentId, conversationId), replays buffered events with seq greater than `after`, then live-tails if the turn is still running. Each event carries an SSE `id:` line with its durable seq; reconnect after a disconnect (tab reload, sleep, stream timeout) by passing the last seen id as `after` to resume without missing or duplicating events. The vocabulary follows the same negotiation as the execution stream (`?events=`, `X-Persona-Version`, then the default-sse-event-format flag).
2789
+ */
2790
+ get: {
2791
+ parameters: {
2792
+ query: {
2793
+ /** @description The conversation key that, with the agent id, resolves the durable session owner. */
2794
+ conversationId: string;
2795
+ /** @description Replay only events with seq greater than this value (the last seen SSE id). Defaults to 0. */
2796
+ after?: string;
2797
+ };
2798
+ header?: never;
2799
+ path: {
2800
+ id: string;
2801
+ executionId: string;
2802
+ };
2803
+ cookie?: never;
2804
+ };
2805
+ requestBody?: never;
2806
+ responses: {
2807
+ /** @description Server-Sent Events stream (buffered replay followed by a live tail) */
2808
+ 200: {
2809
+ headers: {
2810
+ [name: string]: unknown;
2811
+ };
2812
+ content: {
2813
+ "text/event-stream": unknown;
2814
+ };
2815
+ };
2816
+ /** @description Invalid agent ID or missing conversationId */
2817
+ 400: {
2818
+ headers: {
2819
+ [name: string]: unknown;
2820
+ };
2821
+ content: {
2822
+ "application/json": components["schemas"]["Error"];
2823
+ };
2824
+ };
2825
+ /** @description Unauthorized */
2826
+ 401: {
2827
+ headers: {
2828
+ [name: string]: unknown;
2829
+ };
2830
+ content: {
2831
+ "application/json": components["schemas"]["Error"];
2832
+ };
2833
+ };
2834
+ /** @description Insufficient permissions */
2835
+ 403: {
2836
+ headers: {
2837
+ [name: string]: unknown;
2838
+ };
2839
+ content: {
2840
+ "application/json": components["schemas"]["Error"];
2841
+ };
2842
+ };
2843
+ /** @description Agent not found */
2844
+ 404: {
2845
+ headers: {
2846
+ [name: string]: unknown;
2847
+ };
2848
+ content: {
2849
+ "application/json": components["schemas"]["Error"];
2850
+ };
2851
+ };
2852
+ /** @description Internal server error */
2853
+ 500: {
2854
+ headers: {
2855
+ [name: string]: unknown;
2856
+ };
2857
+ content: {
2858
+ "application/json": components["schemas"]["Error"];
2859
+ };
2860
+ };
2861
+ /** @description Failed to attach to the execution stream */
2862
+ 502: {
2863
+ headers: {
2864
+ [name: string]: unknown;
2865
+ };
2866
+ content: {
2867
+ "application/json": components["schemas"]["Error"];
2868
+ };
2869
+ };
2870
+ };
2871
+ };
2872
+ put?: never;
2873
+ post?: never;
2874
+ delete?: never;
2875
+ options?: never;
2876
+ head?: never;
2877
+ patch?: never;
2878
+ trace?: never;
2879
+ };
2779
2880
  "/v1/agents/{id}/executions/{executionId}/tool-calls": {
2780
2881
  parameters: {
2781
2882
  query?: never;
@@ -3380,6 +3481,189 @@ interface paths {
3380
3481
  patch?: never;
3381
3482
  trace?: never;
3382
3483
  };
3484
+ "/v1/agents/{id}/runs": {
3485
+ parameters: {
3486
+ query?: never;
3487
+ header?: never;
3488
+ path?: never;
3489
+ cookie?: never;
3490
+ };
3491
+ /**
3492
+ * List managed agent runs
3493
+ * @description List the durable per-turn run summaries for a saved Claude Managed agent, newest first, optionally scoped to one conversation. Each row is written when a managed turn settles. Auth: agent ownership + AGENTS:READ (the same trust level as the events reconnect route).
3494
+ */
3495
+ get: {
3496
+ parameters: {
3497
+ query?: {
3498
+ /** @description Scope to a single conversation key. */
3499
+ conversationId?: string;
3500
+ /** @description Max rows to return (default 50, capped at 200). */
3501
+ limit?: number;
3502
+ };
3503
+ header?: never;
3504
+ path: {
3505
+ id: string;
3506
+ };
3507
+ cookie?: never;
3508
+ };
3509
+ requestBody?: never;
3510
+ responses: {
3511
+ /** @description The agent run summaries */
3512
+ 200: {
3513
+ headers: {
3514
+ [name: string]: unknown;
3515
+ };
3516
+ content: {
3517
+ "application/json": {
3518
+ runs: components["schemas"]["ManagedAgentRunSummary"][];
3519
+ };
3520
+ };
3521
+ };
3522
+ /** @description Invalid agent ID */
3523
+ 400: {
3524
+ headers: {
3525
+ [name: string]: unknown;
3526
+ };
3527
+ content: {
3528
+ "application/json": components["schemas"]["Error"];
3529
+ };
3530
+ };
3531
+ /** @description Unauthorized */
3532
+ 401: {
3533
+ headers: {
3534
+ [name: string]: unknown;
3535
+ };
3536
+ content: {
3537
+ "application/json": components["schemas"]["Error"];
3538
+ };
3539
+ };
3540
+ /** @description Insufficient permissions */
3541
+ 403: {
3542
+ headers: {
3543
+ [name: string]: unknown;
3544
+ };
3545
+ content: {
3546
+ "application/json": components["schemas"]["Error"];
3547
+ };
3548
+ };
3549
+ /** @description Agent not found */
3550
+ 404: {
3551
+ headers: {
3552
+ [name: string]: unknown;
3553
+ };
3554
+ content: {
3555
+ "application/json": components["schemas"]["Error"];
3556
+ };
3557
+ };
3558
+ /** @description Internal server error */
3559
+ 500: {
3560
+ headers: {
3561
+ [name: string]: unknown;
3562
+ };
3563
+ content: {
3564
+ "application/json": components["schemas"]["Error"];
3565
+ };
3566
+ };
3567
+ };
3568
+ };
3569
+ put?: never;
3570
+ post?: never;
3571
+ delete?: never;
3572
+ options?: never;
3573
+ head?: never;
3574
+ patch?: never;
3575
+ trace?: never;
3576
+ };
3577
+ "/v1/agents/{id}/runs/{runId}": {
3578
+ parameters: {
3579
+ query?: never;
3580
+ header?: never;
3581
+ path?: never;
3582
+ cookie?: never;
3583
+ };
3584
+ /**
3585
+ * Get a managed agent run
3586
+ * @description Fetch one durable run summary plus its deliverable pointers (the swept `/mnt/session/outputs/` files; the bytes live in asset storage). Auth: agent ownership + AGENTS:READ.
3587
+ */
3588
+ get: {
3589
+ parameters: {
3590
+ query?: never;
3591
+ header?: never;
3592
+ path: {
3593
+ id: string;
3594
+ runId: string;
3595
+ };
3596
+ cookie?: never;
3597
+ };
3598
+ requestBody?: never;
3599
+ responses: {
3600
+ /** @description The run summary and its deliverables */
3601
+ 200: {
3602
+ headers: {
3603
+ [name: string]: unknown;
3604
+ };
3605
+ content: {
3606
+ "application/json": {
3607
+ outputs: components["schemas"]["ManagedAgentRunOutput"][];
3608
+ run: components["schemas"]["ManagedAgentRunSummary"];
3609
+ };
3610
+ };
3611
+ };
3612
+ /** @description Invalid agent ID */
3613
+ 400: {
3614
+ headers: {
3615
+ [name: string]: unknown;
3616
+ };
3617
+ content: {
3618
+ "application/json": components["schemas"]["Error"];
3619
+ };
3620
+ };
3621
+ /** @description Unauthorized */
3622
+ 401: {
3623
+ headers: {
3624
+ [name: string]: unknown;
3625
+ };
3626
+ content: {
3627
+ "application/json": components["schemas"]["Error"];
3628
+ };
3629
+ };
3630
+ /** @description Insufficient permissions */
3631
+ 403: {
3632
+ headers: {
3633
+ [name: string]: unknown;
3634
+ };
3635
+ content: {
3636
+ "application/json": components["schemas"]["Error"];
3637
+ };
3638
+ };
3639
+ /** @description Agent or run not found */
3640
+ 404: {
3641
+ headers: {
3642
+ [name: string]: unknown;
3643
+ };
3644
+ content: {
3645
+ "application/json": components["schemas"]["Error"];
3646
+ };
3647
+ };
3648
+ /** @description Internal server error */
3649
+ 500: {
3650
+ headers: {
3651
+ [name: string]: unknown;
3652
+ };
3653
+ content: {
3654
+ "application/json": components["schemas"]["Error"];
3655
+ };
3656
+ };
3657
+ };
3658
+ };
3659
+ put?: never;
3660
+ post?: never;
3661
+ delete?: never;
3662
+ options?: never;
3663
+ head?: never;
3664
+ patch?: never;
3665
+ trace?: never;
3666
+ };
3383
3667
  "/v1/agents/{id}/voice": {
3384
3668
  parameters: {
3385
3669
  query?: never;
@@ -36717,7 +37001,9 @@ interface components {
36717
37001
  /** @enum {string} */
36718
37002
  type: "approval_complete";
36719
37003
  } | {
37004
+ awaitReason?: string;
36720
37005
  awaitedAt?: string;
37006
+ crawlId?: string;
36721
37007
  executionId: string;
36722
37008
  /** @enum {string} */
36723
37009
  origin?: "webmcp" | "sdk";
@@ -36726,6 +37012,7 @@ interface components {
36726
37012
  [key: string]: unknown;
36727
37013
  };
36728
37014
  seq: number;
37015
+ stepId?: string;
36729
37016
  toolCallId?: string;
36730
37017
  toolId?: string;
36731
37018
  toolName?: string;
@@ -36885,7 +37172,9 @@ interface components {
36885
37172
  type: "flow_error";
36886
37173
  upgradeUrl?: string;
36887
37174
  } | {
37175
+ awaitReason?: string;
36888
37176
  awaitedAt: string;
37177
+ crawlId?: string;
36889
37178
  executionId?: string;
36890
37179
  flowId: string;
36891
37180
  /** @enum {string} */
@@ -36895,6 +37184,7 @@ interface components {
36895
37184
  [key: string]: unknown;
36896
37185
  };
36897
37186
  seq?: number;
37187
+ stepId?: string;
36898
37188
  toolCallId?: string;
36899
37189
  toolId?: string;
36900
37190
  toolName?: string;
@@ -37186,6 +37476,39 @@ interface components {
37186
37476
  valid: boolean;
37187
37477
  warnings: components["schemas"]["FlowValidationIssue"][];
37188
37478
  };
37479
+ ManagedAgentRunOutput: {
37480
+ anthropicFileId: string;
37481
+ /** @description Asset-storage key the bytes were persisted to. */
37482
+ assetRef: string | null;
37483
+ createdAt: string;
37484
+ filename: string;
37485
+ /** @description Deliverable pointer id (typeid, `mao_…`). */
37486
+ id: string;
37487
+ mimeType: string;
37488
+ sizeBytes: number;
37489
+ };
37490
+ ManagedAgentRunSummary: {
37491
+ agentId: string;
37492
+ conversationId: string;
37493
+ /** @description Cost in thousandths of a cent ($1 = 100,000). */
37494
+ costThousandths: number;
37495
+ createdAt: string;
37496
+ error: string | null;
37497
+ /** @description The DO-minted execution id for the turn. */
37498
+ executionId: string;
37499
+ /** @description The final assistant text (may be large or null). */
37500
+ finalText: string | null;
37501
+ /** @description Run id (typeid, `mar_…`). */
37502
+ id: string;
37503
+ inputTokens: number;
37504
+ /** @description The durable seq at settle (reconnect ceiling). */
37505
+ lastEventSeq: number;
37506
+ outputTokens: number;
37507
+ settledAt: string;
37508
+ startedAt: string;
37509
+ /** @description 'completed' | 'failed' | 'interrupted'. */
37510
+ status: string;
37511
+ };
37189
37512
  Pagination: {
37190
37513
  currentOffset: number;
37191
37514
  currentPage?: number;
package/dist/index.d.ts CHANGED
@@ -2776,6 +2776,107 @@ interface paths {
2776
2776
  patch?: never;
2777
2777
  trace?: never;
2778
2778
  };
2779
+ "/v1/agents/{id}/executions/{executionId}/events": {
2780
+ parameters: {
2781
+ query?: never;
2782
+ header?: never;
2783
+ path?: never;
2784
+ cookie?: never;
2785
+ };
2786
+ /**
2787
+ * Stream execution events
2788
+ * @description Reconnect to a durable Claude Managed agent turn: replay-and-tail its Server-Sent Events. Resolves the per-conversation session owner by (agentId, conversationId), replays buffered events with seq greater than `after`, then live-tails if the turn is still running. Each event carries an SSE `id:` line with its durable seq; reconnect after a disconnect (tab reload, sleep, stream timeout) by passing the last seen id as `after` to resume without missing or duplicating events. The vocabulary follows the same negotiation as the execution stream (`?events=`, `X-Persona-Version`, then the default-sse-event-format flag).
2789
+ */
2790
+ get: {
2791
+ parameters: {
2792
+ query: {
2793
+ /** @description The conversation key that, with the agent id, resolves the durable session owner. */
2794
+ conversationId: string;
2795
+ /** @description Replay only events with seq greater than this value (the last seen SSE id). Defaults to 0. */
2796
+ after?: string;
2797
+ };
2798
+ header?: never;
2799
+ path: {
2800
+ id: string;
2801
+ executionId: string;
2802
+ };
2803
+ cookie?: never;
2804
+ };
2805
+ requestBody?: never;
2806
+ responses: {
2807
+ /** @description Server-Sent Events stream (buffered replay followed by a live tail) */
2808
+ 200: {
2809
+ headers: {
2810
+ [name: string]: unknown;
2811
+ };
2812
+ content: {
2813
+ "text/event-stream": unknown;
2814
+ };
2815
+ };
2816
+ /** @description Invalid agent ID or missing conversationId */
2817
+ 400: {
2818
+ headers: {
2819
+ [name: string]: unknown;
2820
+ };
2821
+ content: {
2822
+ "application/json": components["schemas"]["Error"];
2823
+ };
2824
+ };
2825
+ /** @description Unauthorized */
2826
+ 401: {
2827
+ headers: {
2828
+ [name: string]: unknown;
2829
+ };
2830
+ content: {
2831
+ "application/json": components["schemas"]["Error"];
2832
+ };
2833
+ };
2834
+ /** @description Insufficient permissions */
2835
+ 403: {
2836
+ headers: {
2837
+ [name: string]: unknown;
2838
+ };
2839
+ content: {
2840
+ "application/json": components["schemas"]["Error"];
2841
+ };
2842
+ };
2843
+ /** @description Agent not found */
2844
+ 404: {
2845
+ headers: {
2846
+ [name: string]: unknown;
2847
+ };
2848
+ content: {
2849
+ "application/json": components["schemas"]["Error"];
2850
+ };
2851
+ };
2852
+ /** @description Internal server error */
2853
+ 500: {
2854
+ headers: {
2855
+ [name: string]: unknown;
2856
+ };
2857
+ content: {
2858
+ "application/json": components["schemas"]["Error"];
2859
+ };
2860
+ };
2861
+ /** @description Failed to attach to the execution stream */
2862
+ 502: {
2863
+ headers: {
2864
+ [name: string]: unknown;
2865
+ };
2866
+ content: {
2867
+ "application/json": components["schemas"]["Error"];
2868
+ };
2869
+ };
2870
+ };
2871
+ };
2872
+ put?: never;
2873
+ post?: never;
2874
+ delete?: never;
2875
+ options?: never;
2876
+ head?: never;
2877
+ patch?: never;
2878
+ trace?: never;
2879
+ };
2779
2880
  "/v1/agents/{id}/executions/{executionId}/tool-calls": {
2780
2881
  parameters: {
2781
2882
  query?: never;
@@ -3380,6 +3481,189 @@ interface paths {
3380
3481
  patch?: never;
3381
3482
  trace?: never;
3382
3483
  };
3484
+ "/v1/agents/{id}/runs": {
3485
+ parameters: {
3486
+ query?: never;
3487
+ header?: never;
3488
+ path?: never;
3489
+ cookie?: never;
3490
+ };
3491
+ /**
3492
+ * List managed agent runs
3493
+ * @description List the durable per-turn run summaries for a saved Claude Managed agent, newest first, optionally scoped to one conversation. Each row is written when a managed turn settles. Auth: agent ownership + AGENTS:READ (the same trust level as the events reconnect route).
3494
+ */
3495
+ get: {
3496
+ parameters: {
3497
+ query?: {
3498
+ /** @description Scope to a single conversation key. */
3499
+ conversationId?: string;
3500
+ /** @description Max rows to return (default 50, capped at 200). */
3501
+ limit?: number;
3502
+ };
3503
+ header?: never;
3504
+ path: {
3505
+ id: string;
3506
+ };
3507
+ cookie?: never;
3508
+ };
3509
+ requestBody?: never;
3510
+ responses: {
3511
+ /** @description The agent run summaries */
3512
+ 200: {
3513
+ headers: {
3514
+ [name: string]: unknown;
3515
+ };
3516
+ content: {
3517
+ "application/json": {
3518
+ runs: components["schemas"]["ManagedAgentRunSummary"][];
3519
+ };
3520
+ };
3521
+ };
3522
+ /** @description Invalid agent ID */
3523
+ 400: {
3524
+ headers: {
3525
+ [name: string]: unknown;
3526
+ };
3527
+ content: {
3528
+ "application/json": components["schemas"]["Error"];
3529
+ };
3530
+ };
3531
+ /** @description Unauthorized */
3532
+ 401: {
3533
+ headers: {
3534
+ [name: string]: unknown;
3535
+ };
3536
+ content: {
3537
+ "application/json": components["schemas"]["Error"];
3538
+ };
3539
+ };
3540
+ /** @description Insufficient permissions */
3541
+ 403: {
3542
+ headers: {
3543
+ [name: string]: unknown;
3544
+ };
3545
+ content: {
3546
+ "application/json": components["schemas"]["Error"];
3547
+ };
3548
+ };
3549
+ /** @description Agent not found */
3550
+ 404: {
3551
+ headers: {
3552
+ [name: string]: unknown;
3553
+ };
3554
+ content: {
3555
+ "application/json": components["schemas"]["Error"];
3556
+ };
3557
+ };
3558
+ /** @description Internal server error */
3559
+ 500: {
3560
+ headers: {
3561
+ [name: string]: unknown;
3562
+ };
3563
+ content: {
3564
+ "application/json": components["schemas"]["Error"];
3565
+ };
3566
+ };
3567
+ };
3568
+ };
3569
+ put?: never;
3570
+ post?: never;
3571
+ delete?: never;
3572
+ options?: never;
3573
+ head?: never;
3574
+ patch?: never;
3575
+ trace?: never;
3576
+ };
3577
+ "/v1/agents/{id}/runs/{runId}": {
3578
+ parameters: {
3579
+ query?: never;
3580
+ header?: never;
3581
+ path?: never;
3582
+ cookie?: never;
3583
+ };
3584
+ /**
3585
+ * Get a managed agent run
3586
+ * @description Fetch one durable run summary plus its deliverable pointers (the swept `/mnt/session/outputs/` files; the bytes live in asset storage). Auth: agent ownership + AGENTS:READ.
3587
+ */
3588
+ get: {
3589
+ parameters: {
3590
+ query?: never;
3591
+ header?: never;
3592
+ path: {
3593
+ id: string;
3594
+ runId: string;
3595
+ };
3596
+ cookie?: never;
3597
+ };
3598
+ requestBody?: never;
3599
+ responses: {
3600
+ /** @description The run summary and its deliverables */
3601
+ 200: {
3602
+ headers: {
3603
+ [name: string]: unknown;
3604
+ };
3605
+ content: {
3606
+ "application/json": {
3607
+ outputs: components["schemas"]["ManagedAgentRunOutput"][];
3608
+ run: components["schemas"]["ManagedAgentRunSummary"];
3609
+ };
3610
+ };
3611
+ };
3612
+ /** @description Invalid agent ID */
3613
+ 400: {
3614
+ headers: {
3615
+ [name: string]: unknown;
3616
+ };
3617
+ content: {
3618
+ "application/json": components["schemas"]["Error"];
3619
+ };
3620
+ };
3621
+ /** @description Unauthorized */
3622
+ 401: {
3623
+ headers: {
3624
+ [name: string]: unknown;
3625
+ };
3626
+ content: {
3627
+ "application/json": components["schemas"]["Error"];
3628
+ };
3629
+ };
3630
+ /** @description Insufficient permissions */
3631
+ 403: {
3632
+ headers: {
3633
+ [name: string]: unknown;
3634
+ };
3635
+ content: {
3636
+ "application/json": components["schemas"]["Error"];
3637
+ };
3638
+ };
3639
+ /** @description Agent or run not found */
3640
+ 404: {
3641
+ headers: {
3642
+ [name: string]: unknown;
3643
+ };
3644
+ content: {
3645
+ "application/json": components["schemas"]["Error"];
3646
+ };
3647
+ };
3648
+ /** @description Internal server error */
3649
+ 500: {
3650
+ headers: {
3651
+ [name: string]: unknown;
3652
+ };
3653
+ content: {
3654
+ "application/json": components["schemas"]["Error"];
3655
+ };
3656
+ };
3657
+ };
3658
+ };
3659
+ put?: never;
3660
+ post?: never;
3661
+ delete?: never;
3662
+ options?: never;
3663
+ head?: never;
3664
+ patch?: never;
3665
+ trace?: never;
3666
+ };
3383
3667
  "/v1/agents/{id}/voice": {
3384
3668
  parameters: {
3385
3669
  query?: never;
@@ -36717,7 +37001,9 @@ interface components {
36717
37001
  /** @enum {string} */
36718
37002
  type: "approval_complete";
36719
37003
  } | {
37004
+ awaitReason?: string;
36720
37005
  awaitedAt?: string;
37006
+ crawlId?: string;
36721
37007
  executionId: string;
36722
37008
  /** @enum {string} */
36723
37009
  origin?: "webmcp" | "sdk";
@@ -36726,6 +37012,7 @@ interface components {
36726
37012
  [key: string]: unknown;
36727
37013
  };
36728
37014
  seq: number;
37015
+ stepId?: string;
36729
37016
  toolCallId?: string;
36730
37017
  toolId?: string;
36731
37018
  toolName?: string;
@@ -36885,7 +37172,9 @@ interface components {
36885
37172
  type: "flow_error";
36886
37173
  upgradeUrl?: string;
36887
37174
  } | {
37175
+ awaitReason?: string;
36888
37176
  awaitedAt: string;
37177
+ crawlId?: string;
36889
37178
  executionId?: string;
36890
37179
  flowId: string;
36891
37180
  /** @enum {string} */
@@ -36895,6 +37184,7 @@ interface components {
36895
37184
  [key: string]: unknown;
36896
37185
  };
36897
37186
  seq?: number;
37187
+ stepId?: string;
36898
37188
  toolCallId?: string;
36899
37189
  toolId?: string;
36900
37190
  toolName?: string;
@@ -37186,6 +37476,39 @@ interface components {
37186
37476
  valid: boolean;
37187
37477
  warnings: components["schemas"]["FlowValidationIssue"][];
37188
37478
  };
37479
+ ManagedAgentRunOutput: {
37480
+ anthropicFileId: string;
37481
+ /** @description Asset-storage key the bytes were persisted to. */
37482
+ assetRef: string | null;
37483
+ createdAt: string;
37484
+ filename: string;
37485
+ /** @description Deliverable pointer id (typeid, `mao_…`). */
37486
+ id: string;
37487
+ mimeType: string;
37488
+ sizeBytes: number;
37489
+ };
37490
+ ManagedAgentRunSummary: {
37491
+ agentId: string;
37492
+ conversationId: string;
37493
+ /** @description Cost in thousandths of a cent ($1 = 100,000). */
37494
+ costThousandths: number;
37495
+ createdAt: string;
37496
+ error: string | null;
37497
+ /** @description The DO-minted execution id for the turn. */
37498
+ executionId: string;
37499
+ /** @description The final assistant text (may be large or null). */
37500
+ finalText: string | null;
37501
+ /** @description Run id (typeid, `mar_…`). */
37502
+ id: string;
37503
+ inputTokens: number;
37504
+ /** @description The durable seq at settle (reconnect ceiling). */
37505
+ lastEventSeq: number;
37506
+ outputTokens: number;
37507
+ settledAt: string;
37508
+ startedAt: string;
37509
+ /** @description 'completed' | 'failed' | 'interrupted'. */
37510
+ status: string;
37511
+ };
37189
37512
  Pagination: {
37190
37513
  currentOffset: number;
37191
37514
  currentPage?: number;
package/dist/index.mjs CHANGED
@@ -6002,7 +6002,7 @@ var Runtype = class {
6002
6002
 
6003
6003
  // src/version.ts
6004
6004
  var FALLBACK_VERSION = "0.0.0";
6005
- var SDK_VERSION = "5.6.0".length > 0 ? "5.6.0" : FALLBACK_VERSION;
6005
+ var SDK_VERSION = "5.7.0".length > 0 ? "5.7.0" : FALLBACK_VERSION;
6006
6006
  var RUNTYPE_CLIENT_KIND = "sdk";
6007
6007
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6008
6008
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "5.6.0",
3
+ "version": "5.7.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",