@opencode-ai/client 0.0.0-next-15016 → 0.0.0-next-15017

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.
@@ -1354,16 +1354,12 @@ export type SessionContextOutput = {
1354
1354
  };
1355
1355
  readonly content: ReadonlyArray<{
1356
1356
  readonly type: "text";
1357
- readonly id: string;
1358
1357
  readonly text: string;
1359
1358
  } | {
1360
1359
  readonly type: "reasoning";
1361
- readonly id: string;
1362
1360
  readonly text: string;
1363
- readonly providerMetadata?: {
1364
- readonly [x: string]: {
1365
- readonly [x: string]: JsonValue;
1366
- };
1361
+ readonly state?: {
1362
+ readonly [x: string]: JsonValue;
1367
1363
  };
1368
1364
  readonly time?: {
1369
1365
  readonly created: number;
@@ -1373,18 +1369,12 @@ export type SessionContextOutput = {
1373
1369
  readonly type: "tool";
1374
1370
  readonly id: string;
1375
1371
  readonly name: string;
1376
- readonly provider?: {
1377
- readonly executed: boolean;
1378
- readonly metadata?: {
1379
- readonly [x: string]: {
1380
- readonly [x: string]: JsonValue;
1381
- };
1382
- };
1383
- readonly resultMetadata?: {
1384
- readonly [x: string]: {
1385
- readonly [x: string]: JsonValue;
1386
- };
1387
- };
1372
+ readonly executed?: boolean;
1373
+ readonly providerState?: {
1374
+ readonly [x: string]: JsonValue;
1375
+ };
1376
+ readonly providerResultState?: {
1377
+ readonly [x: string]: JsonValue;
1388
1378
  };
1389
1379
  readonly state: {
1390
1380
  readonly status: "pending";
@@ -1460,7 +1450,7 @@ export type SessionContextOutput = {
1460
1450
  readonly [x: string]: JsonValue;
1461
1451
  };
1462
1452
  readonly error: {
1463
- readonly type: "unknown";
1453
+ readonly type: string;
1464
1454
  readonly message: string;
1465
1455
  };
1466
1456
  readonly result?: JsonValue;
@@ -1477,7 +1467,7 @@ export type SessionContextOutput = {
1477
1467
  readonly end?: string;
1478
1468
  readonly files?: ReadonlyArray<string>;
1479
1469
  };
1480
- readonly finish?: string;
1470
+ readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
1481
1471
  readonly cost?: number;
1482
1472
  readonly tokens?: {
1483
1473
  readonly input: number;
@@ -1489,9 +1479,17 @@ export type SessionContextOutput = {
1489
1479
  };
1490
1480
  };
1491
1481
  readonly error?: {
1492
- readonly type: "unknown";
1482
+ readonly type: string;
1493
1483
  readonly message: string;
1494
1484
  };
1485
+ readonly retry?: {
1486
+ readonly attempt: number;
1487
+ readonly at: number;
1488
+ readonly error: {
1489
+ readonly type: string;
1490
+ readonly message: string;
1491
+ };
1492
+ };
1495
1493
  } | {
1496
1494
  readonly type: "compaction";
1497
1495
  readonly reason: "auto" | "manual";
@@ -1733,6 +1731,87 @@ export type SessionLogOutput = ({
1733
1731
  };
1734
1732
  readonly delivery: "steer" | "queue";
1735
1733
  };
1734
+ } | {
1735
+ readonly id: string;
1736
+ readonly created: number;
1737
+ readonly metadata?: {
1738
+ readonly [x: string]: unknown;
1739
+ };
1740
+ readonly type: "session.execution.started";
1741
+ readonly durable: {
1742
+ readonly aggregateID: string;
1743
+ readonly seq: number;
1744
+ readonly version: number;
1745
+ };
1746
+ readonly location?: {
1747
+ readonly directory: string;
1748
+ readonly workspaceID?: string;
1749
+ };
1750
+ readonly data: {
1751
+ readonly sessionID: string;
1752
+ };
1753
+ } | {
1754
+ readonly id: string;
1755
+ readonly created: number;
1756
+ readonly metadata?: {
1757
+ readonly [x: string]: unknown;
1758
+ };
1759
+ readonly type: "session.execution.succeeded";
1760
+ readonly durable: {
1761
+ readonly aggregateID: string;
1762
+ readonly seq: number;
1763
+ readonly version: number;
1764
+ };
1765
+ readonly location?: {
1766
+ readonly directory: string;
1767
+ readonly workspaceID?: string;
1768
+ };
1769
+ readonly data: {
1770
+ readonly sessionID: string;
1771
+ };
1772
+ } | {
1773
+ readonly id: string;
1774
+ readonly created: number;
1775
+ readonly metadata?: {
1776
+ readonly [x: string]: unknown;
1777
+ };
1778
+ readonly type: "session.execution.failed";
1779
+ readonly durable: {
1780
+ readonly aggregateID: string;
1781
+ readonly seq: number;
1782
+ readonly version: number;
1783
+ };
1784
+ readonly location?: {
1785
+ readonly directory: string;
1786
+ readonly workspaceID?: string;
1787
+ };
1788
+ readonly data: {
1789
+ readonly sessionID: string;
1790
+ readonly error: {
1791
+ readonly type: string;
1792
+ readonly message: string;
1793
+ };
1794
+ };
1795
+ } | {
1796
+ readonly id: string;
1797
+ readonly created: number;
1798
+ readonly metadata?: {
1799
+ readonly [x: string]: unknown;
1800
+ };
1801
+ readonly type: "session.execution.interrupted";
1802
+ readonly durable: {
1803
+ readonly aggregateID: string;
1804
+ readonly seq: number;
1805
+ readonly version: number;
1806
+ };
1807
+ readonly location?: {
1808
+ readonly directory: string;
1809
+ readonly workspaceID?: string;
1810
+ };
1811
+ readonly data: {
1812
+ readonly sessionID: string;
1813
+ readonly reason: "user" | "shutdown" | "superseded";
1814
+ };
1736
1815
  } | {
1737
1816
  readonly id: string;
1738
1817
  readonly created: number;
@@ -1922,7 +2001,7 @@ export type SessionLogOutput = ({
1922
2001
  readonly data: {
1923
2002
  readonly sessionID: string;
1924
2003
  readonly assistantMessageID: string;
1925
- readonly finish: string;
2004
+ readonly finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
1926
2005
  readonly cost: number;
1927
2006
  readonly tokens: {
1928
2007
  readonly input: number;
@@ -1956,7 +2035,7 @@ export type SessionLogOutput = ({
1956
2035
  readonly sessionID: string;
1957
2036
  readonly assistantMessageID: string;
1958
2037
  readonly error: {
1959
- readonly type: "unknown";
2038
+ readonly type: string;
1960
2039
  readonly message: string;
1961
2040
  };
1962
2041
  };
@@ -1979,7 +2058,7 @@ export type SessionLogOutput = ({
1979
2058
  readonly data: {
1980
2059
  readonly sessionID: string;
1981
2060
  readonly assistantMessageID: string;
1982
- readonly textID: string;
2061
+ readonly ordinal: number;
1983
2062
  };
1984
2063
  } | {
1985
2064
  readonly id: string;
@@ -2000,7 +2079,7 @@ export type SessionLogOutput = ({
2000
2079
  readonly data: {
2001
2080
  readonly sessionID: string;
2002
2081
  readonly assistantMessageID: string;
2003
- readonly textID: string;
2082
+ readonly ordinal: number;
2004
2083
  readonly text: string;
2005
2084
  };
2006
2085
  } | {
@@ -2022,11 +2101,9 @@ export type SessionLogOutput = ({
2022
2101
  readonly data: {
2023
2102
  readonly sessionID: string;
2024
2103
  readonly assistantMessageID: string;
2025
- readonly reasoningID: string;
2026
- readonly providerMetadata?: {
2027
- readonly [x: string]: {
2028
- readonly [x: string]: unknown;
2029
- };
2104
+ readonly ordinal: number;
2105
+ readonly state?: {
2106
+ readonly [x: string]: unknown;
2030
2107
  };
2031
2108
  };
2032
2109
  } | {
@@ -2048,12 +2125,10 @@ export type SessionLogOutput = ({
2048
2125
  readonly data: {
2049
2126
  readonly sessionID: string;
2050
2127
  readonly assistantMessageID: string;
2051
- readonly reasoningID: string;
2128
+ readonly ordinal: number;
2052
2129
  readonly text: string;
2053
- readonly providerMetadata?: {
2054
- readonly [x: string]: {
2055
- readonly [x: string]: unknown;
2056
- };
2130
+ readonly state?: {
2131
+ readonly [x: string]: unknown;
2057
2132
  };
2058
2133
  };
2059
2134
  } | {
@@ -2120,17 +2195,12 @@ export type SessionLogOutput = ({
2120
2195
  readonly sessionID: string;
2121
2196
  readonly assistantMessageID: string;
2122
2197
  readonly callID: string;
2123
- readonly tool: string;
2124
2198
  readonly input: {
2125
2199
  readonly [x: string]: unknown;
2126
2200
  };
2127
- readonly provider: {
2128
- readonly executed: boolean;
2129
- readonly metadata?: {
2130
- readonly [x: string]: {
2131
- readonly [x: string]: unknown;
2132
- };
2133
- };
2201
+ readonly executed: boolean;
2202
+ readonly state?: {
2203
+ readonly [x: string]: unknown;
2134
2204
  };
2135
2205
  };
2136
2206
  } | {
@@ -2200,13 +2270,9 @@ export type SessionLogOutput = ({
2200
2270
  }>;
2201
2271
  readonly outputPaths?: ReadonlyArray<string>;
2202
2272
  readonly result?: unknown;
2203
- readonly provider: {
2204
- readonly executed: boolean;
2205
- readonly metadata?: {
2206
- readonly [x: string]: {
2207
- readonly [x: string]: unknown;
2208
- };
2209
- };
2273
+ readonly executed: boolean;
2274
+ readonly resultState?: {
2275
+ readonly [x: string]: unknown;
2210
2276
  };
2211
2277
  };
2212
2278
  } | {
@@ -2230,17 +2296,13 @@ export type SessionLogOutput = ({
2230
2296
  readonly assistantMessageID: string;
2231
2297
  readonly callID: string;
2232
2298
  readonly error: {
2233
- readonly type: "unknown";
2299
+ readonly type: string;
2234
2300
  readonly message: string;
2235
2301
  };
2236
2302
  readonly result?: unknown;
2237
- readonly provider: {
2238
- readonly executed: boolean;
2239
- readonly metadata?: {
2240
- readonly [x: string]: {
2241
- readonly [x: string]: unknown;
2242
- };
2243
- };
2303
+ readonly executed: boolean;
2304
+ readonly resultState?: {
2305
+ readonly [x: string]: unknown;
2244
2306
  };
2245
2307
  };
2246
2308
  } | {
@@ -2249,7 +2311,7 @@ export type SessionLogOutput = ({
2249
2311
  readonly metadata?: {
2250
2312
  readonly [x: string]: unknown;
2251
2313
  };
2252
- readonly type: "session.retried";
2314
+ readonly type: "session.retry.scheduled";
2253
2315
  readonly durable: {
2254
2316
  readonly aggregateID: string;
2255
2317
  readonly seq: number;
@@ -2261,18 +2323,12 @@ export type SessionLogOutput = ({
2261
2323
  };
2262
2324
  readonly data: {
2263
2325
  readonly sessionID: string;
2326
+ readonly assistantMessageID: string;
2264
2327
  readonly attempt: number;
2328
+ readonly at: number;
2265
2329
  readonly error: {
2330
+ readonly type: string;
2266
2331
  readonly message: string;
2267
- readonly statusCode?: number;
2268
- readonly isRetryable: boolean;
2269
- readonly responseHeaders?: {
2270
- readonly [x: string]: string;
2271
- };
2272
- readonly responseBody?: string;
2273
- readonly metadata?: {
2274
- readonly [x: string]: string;
2275
- };
2276
2332
  };
2277
2333
  };
2278
2334
  } | {
@@ -2386,7 +2442,7 @@ export type SessionLogOutput = ({
2386
2442
  };
2387
2443
  readonly data: {
2388
2444
  readonly sessionID: string;
2389
- readonly messageID: string;
2445
+ readonly to: string;
2390
2446
  };
2391
2447
  }) | {
2392
2448
  readonly type: "log.synced";
@@ -2564,16 +2620,12 @@ export type SessionMessageOutput = {
2564
2620
  };
2565
2621
  readonly content: ReadonlyArray<{
2566
2622
  readonly type: "text";
2567
- readonly id: string;
2568
2623
  readonly text: string;
2569
2624
  } | {
2570
2625
  readonly type: "reasoning";
2571
- readonly id: string;
2572
2626
  readonly text: string;
2573
- readonly providerMetadata?: {
2574
- readonly [x: string]: {
2575
- readonly [x: string]: JsonValue;
2576
- };
2627
+ readonly state?: {
2628
+ readonly [x: string]: JsonValue;
2577
2629
  };
2578
2630
  readonly time?: {
2579
2631
  readonly created: number;
@@ -2583,18 +2635,12 @@ export type SessionMessageOutput = {
2583
2635
  readonly type: "tool";
2584
2636
  readonly id: string;
2585
2637
  readonly name: string;
2586
- readonly provider?: {
2587
- readonly executed: boolean;
2588
- readonly metadata?: {
2589
- readonly [x: string]: {
2590
- readonly [x: string]: JsonValue;
2591
- };
2592
- };
2593
- readonly resultMetadata?: {
2594
- readonly [x: string]: {
2595
- readonly [x: string]: JsonValue;
2596
- };
2597
- };
2638
+ readonly executed?: boolean;
2639
+ readonly providerState?: {
2640
+ readonly [x: string]: JsonValue;
2641
+ };
2642
+ readonly providerResultState?: {
2643
+ readonly [x: string]: JsonValue;
2598
2644
  };
2599
2645
  readonly state: {
2600
2646
  readonly status: "pending";
@@ -2670,7 +2716,7 @@ export type SessionMessageOutput = {
2670
2716
  readonly [x: string]: JsonValue;
2671
2717
  };
2672
2718
  readonly error: {
2673
- readonly type: "unknown";
2719
+ readonly type: string;
2674
2720
  readonly message: string;
2675
2721
  };
2676
2722
  readonly result?: JsonValue;
@@ -2687,7 +2733,7 @@ export type SessionMessageOutput = {
2687
2733
  readonly end?: string;
2688
2734
  readonly files?: ReadonlyArray<string>;
2689
2735
  };
2690
- readonly finish?: string;
2736
+ readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
2691
2737
  readonly cost?: number;
2692
2738
  readonly tokens?: {
2693
2739
  readonly input: number;
@@ -2699,9 +2745,17 @@ export type SessionMessageOutput = {
2699
2745
  };
2700
2746
  };
2701
2747
  readonly error?: {
2702
- readonly type: "unknown";
2748
+ readonly type: string;
2703
2749
  readonly message: string;
2704
2750
  };
2751
+ readonly retry?: {
2752
+ readonly attempt: number;
2753
+ readonly at: number;
2754
+ readonly error: {
2755
+ readonly type: string;
2756
+ readonly message: string;
2757
+ };
2758
+ };
2705
2759
  } | {
2706
2760
  readonly type: "compaction";
2707
2761
  readonly reason: "auto" | "manual";
@@ -2885,16 +2939,12 @@ export type MessageListOutput = {
2885
2939
  };
2886
2940
  readonly content: ReadonlyArray<{
2887
2941
  readonly type: "text";
2888
- readonly id: string;
2889
2942
  readonly text: string;
2890
2943
  } | {
2891
2944
  readonly type: "reasoning";
2892
- readonly id: string;
2893
2945
  readonly text: string;
2894
- readonly providerMetadata?: {
2895
- readonly [x: string]: {
2896
- readonly [x: string]: JsonValue;
2897
- };
2946
+ readonly state?: {
2947
+ readonly [x: string]: JsonValue;
2898
2948
  };
2899
2949
  readonly time?: {
2900
2950
  readonly created: number;
@@ -2904,18 +2954,12 @@ export type MessageListOutput = {
2904
2954
  readonly type: "tool";
2905
2955
  readonly id: string;
2906
2956
  readonly name: string;
2907
- readonly provider?: {
2908
- readonly executed: boolean;
2909
- readonly metadata?: {
2910
- readonly [x: string]: {
2911
- readonly [x: string]: JsonValue;
2912
- };
2913
- };
2914
- readonly resultMetadata?: {
2915
- readonly [x: string]: {
2916
- readonly [x: string]: JsonValue;
2917
- };
2918
- };
2957
+ readonly executed?: boolean;
2958
+ readonly providerState?: {
2959
+ readonly [x: string]: JsonValue;
2960
+ };
2961
+ readonly providerResultState?: {
2962
+ readonly [x: string]: JsonValue;
2919
2963
  };
2920
2964
  readonly state: {
2921
2965
  readonly status: "pending";
@@ -2991,7 +3035,7 @@ export type MessageListOutput = {
2991
3035
  readonly [x: string]: JsonValue;
2992
3036
  };
2993
3037
  readonly error: {
2994
- readonly type: "unknown";
3038
+ readonly type: string;
2995
3039
  readonly message: string;
2996
3040
  };
2997
3041
  readonly result?: JsonValue;
@@ -3008,7 +3052,7 @@ export type MessageListOutput = {
3008
3052
  readonly end?: string;
3009
3053
  readonly files?: ReadonlyArray<string>;
3010
3054
  };
3011
- readonly finish?: string;
3055
+ readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
3012
3056
  readonly cost?: number;
3013
3057
  readonly tokens?: {
3014
3058
  readonly input: number;
@@ -3020,9 +3064,17 @@ export type MessageListOutput = {
3020
3064
  };
3021
3065
  };
3022
3066
  readonly error?: {
3023
- readonly type: "unknown";
3067
+ readonly type: string;
3024
3068
  readonly message: string;
3025
3069
  };
3070
+ readonly retry?: {
3071
+ readonly attempt: number;
3072
+ readonly at: number;
3073
+ readonly error: {
3074
+ readonly type: string;
3075
+ readonly message: string;
3076
+ };
3077
+ };
3026
3078
  } | {
3027
3079
  readonly type: "compaction";
3028
3080
  readonly reason: "auto" | "manual";
@@ -6087,19 +6139,81 @@ export type EventSubscribeOutput = {
6087
6139
  readonly metadata?: {
6088
6140
  readonly [x: string]: unknown;
6089
6141
  };
6090
- readonly type: "session.execution.settled";
6142
+ readonly type: "session.execution.started";
6143
+ readonly durable: {
6144
+ readonly aggregateID: string;
6145
+ readonly seq: number;
6146
+ readonly version: number;
6147
+ };
6091
6148
  readonly location?: {
6092
6149
  readonly directory: string;
6093
6150
  readonly workspaceID?: string;
6094
6151
  };
6095
6152
  readonly data: {
6096
6153
  readonly sessionID: string;
6097
- readonly outcome: "success" | "failure" | "interrupted";
6098
- readonly error?: {
6099
- readonly type: "unknown";
6154
+ };
6155
+ } | {
6156
+ readonly id: string;
6157
+ readonly created: number;
6158
+ readonly metadata?: {
6159
+ readonly [x: string]: unknown;
6160
+ };
6161
+ readonly type: "session.execution.succeeded";
6162
+ readonly durable: {
6163
+ readonly aggregateID: string;
6164
+ readonly seq: number;
6165
+ readonly version: number;
6166
+ };
6167
+ readonly location?: {
6168
+ readonly directory: string;
6169
+ readonly workspaceID?: string;
6170
+ };
6171
+ readonly data: {
6172
+ readonly sessionID: string;
6173
+ };
6174
+ } | {
6175
+ readonly id: string;
6176
+ readonly created: number;
6177
+ readonly metadata?: {
6178
+ readonly [x: string]: unknown;
6179
+ };
6180
+ readonly type: "session.execution.failed";
6181
+ readonly durable: {
6182
+ readonly aggregateID: string;
6183
+ readonly seq: number;
6184
+ readonly version: number;
6185
+ };
6186
+ readonly location?: {
6187
+ readonly directory: string;
6188
+ readonly workspaceID?: string;
6189
+ };
6190
+ readonly data: {
6191
+ readonly sessionID: string;
6192
+ readonly error: {
6193
+ readonly type: string;
6100
6194
  readonly message: string;
6101
6195
  };
6102
6196
  };
6197
+ } | {
6198
+ readonly id: string;
6199
+ readonly created: number;
6200
+ readonly metadata?: {
6201
+ readonly [x: string]: unknown;
6202
+ };
6203
+ readonly type: "session.execution.interrupted";
6204
+ readonly durable: {
6205
+ readonly aggregateID: string;
6206
+ readonly seq: number;
6207
+ readonly version: number;
6208
+ };
6209
+ readonly location?: {
6210
+ readonly directory: string;
6211
+ readonly workspaceID?: string;
6212
+ };
6213
+ readonly data: {
6214
+ readonly sessionID: string;
6215
+ readonly reason: "user" | "shutdown" | "superseded";
6216
+ };
6103
6217
  } | {
6104
6218
  readonly id: string;
6105
6219
  readonly created: number;
@@ -6289,7 +6403,7 @@ export type EventSubscribeOutput = {
6289
6403
  readonly data: {
6290
6404
  readonly sessionID: string;
6291
6405
  readonly assistantMessageID: string;
6292
- readonly finish: string;
6406
+ readonly finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
6293
6407
  readonly cost: number;
6294
6408
  readonly tokens: {
6295
6409
  readonly input: number;
@@ -6323,7 +6437,7 @@ export type EventSubscribeOutput = {
6323
6437
  readonly sessionID: string;
6324
6438
  readonly assistantMessageID: string;
6325
6439
  readonly error: {
6326
- readonly type: "unknown";
6440
+ readonly type: string;
6327
6441
  readonly message: string;
6328
6442
  };
6329
6443
  };
@@ -6346,7 +6460,7 @@ export type EventSubscribeOutput = {
6346
6460
  readonly data: {
6347
6461
  readonly sessionID: string;
6348
6462
  readonly assistantMessageID: string;
6349
- readonly textID: string;
6463
+ readonly ordinal: number;
6350
6464
  };
6351
6465
  } | {
6352
6466
  readonly id: string;
@@ -6362,7 +6476,7 @@ export type EventSubscribeOutput = {
6362
6476
  readonly data: {
6363
6477
  readonly sessionID: string;
6364
6478
  readonly assistantMessageID: string;
6365
- readonly textID: string;
6479
+ readonly ordinal: number;
6366
6480
  readonly delta: string;
6367
6481
  };
6368
6482
  } | {
@@ -6384,7 +6498,7 @@ export type EventSubscribeOutput = {
6384
6498
  readonly data: {
6385
6499
  readonly sessionID: string;
6386
6500
  readonly assistantMessageID: string;
6387
- readonly textID: string;
6501
+ readonly ordinal: number;
6388
6502
  readonly text: string;
6389
6503
  };
6390
6504
  } | {
@@ -6406,11 +6520,9 @@ export type EventSubscribeOutput = {
6406
6520
  readonly data: {
6407
6521
  readonly sessionID: string;
6408
6522
  readonly assistantMessageID: string;
6409
- readonly reasoningID: string;
6410
- readonly providerMetadata?: {
6411
- readonly [x: string]: {
6412
- readonly [x: string]: unknown;
6413
- };
6523
+ readonly ordinal: number;
6524
+ readonly state?: {
6525
+ readonly [x: string]: unknown;
6414
6526
  };
6415
6527
  };
6416
6528
  } | {
@@ -6427,7 +6539,7 @@ export type EventSubscribeOutput = {
6427
6539
  readonly data: {
6428
6540
  readonly sessionID: string;
6429
6541
  readonly assistantMessageID: string;
6430
- readonly reasoningID: string;
6542
+ readonly ordinal: number;
6431
6543
  readonly delta: string;
6432
6544
  };
6433
6545
  } | {
@@ -6449,12 +6561,10 @@ export type EventSubscribeOutput = {
6449
6561
  readonly data: {
6450
6562
  readonly sessionID: string;
6451
6563
  readonly assistantMessageID: string;
6452
- readonly reasoningID: string;
6564
+ readonly ordinal: number;
6453
6565
  readonly text: string;
6454
- readonly providerMetadata?: {
6455
- readonly [x: string]: {
6456
- readonly [x: string]: unknown;
6457
- };
6566
+ readonly state?: {
6567
+ readonly [x: string]: unknown;
6458
6568
  };
6459
6569
  };
6460
6570
  } | {
@@ -6538,17 +6648,12 @@ export type EventSubscribeOutput = {
6538
6648
  readonly sessionID: string;
6539
6649
  readonly assistantMessageID: string;
6540
6650
  readonly callID: string;
6541
- readonly tool: string;
6542
6651
  readonly input: {
6543
6652
  readonly [x: string]: unknown;
6544
6653
  };
6545
- readonly provider: {
6546
- readonly executed: boolean;
6547
- readonly metadata?: {
6548
- readonly [x: string]: {
6549
- readonly [x: string]: unknown;
6550
- };
6551
- };
6654
+ readonly executed: boolean;
6655
+ readonly state?: {
6656
+ readonly [x: string]: unknown;
6552
6657
  };
6553
6658
  };
6554
6659
  } | {
@@ -6618,13 +6723,9 @@ export type EventSubscribeOutput = {
6618
6723
  }>;
6619
6724
  readonly outputPaths?: ReadonlyArray<string>;
6620
6725
  readonly result?: unknown;
6621
- readonly provider: {
6622
- readonly executed: boolean;
6623
- readonly metadata?: {
6624
- readonly [x: string]: {
6625
- readonly [x: string]: unknown;
6626
- };
6627
- };
6726
+ readonly executed: boolean;
6727
+ readonly resultState?: {
6728
+ readonly [x: string]: unknown;
6628
6729
  };
6629
6730
  };
6630
6731
  } | {
@@ -6648,17 +6749,13 @@ export type EventSubscribeOutput = {
6648
6749
  readonly assistantMessageID: string;
6649
6750
  readonly callID: string;
6650
6751
  readonly error: {
6651
- readonly type: "unknown";
6752
+ readonly type: string;
6652
6753
  readonly message: string;
6653
6754
  };
6654
6755
  readonly result?: unknown;
6655
- readonly provider: {
6656
- readonly executed: boolean;
6657
- readonly metadata?: {
6658
- readonly [x: string]: {
6659
- readonly [x: string]: unknown;
6660
- };
6661
- };
6756
+ readonly executed: boolean;
6757
+ readonly resultState?: {
6758
+ readonly [x: string]: unknown;
6662
6759
  };
6663
6760
  };
6664
6761
  } | {
@@ -6667,7 +6764,7 @@ export type EventSubscribeOutput = {
6667
6764
  readonly metadata?: {
6668
6765
  readonly [x: string]: unknown;
6669
6766
  };
6670
- readonly type: "session.retried";
6767
+ readonly type: "session.retry.scheduled";
6671
6768
  readonly durable: {
6672
6769
  readonly aggregateID: string;
6673
6770
  readonly seq: number;
@@ -6679,18 +6776,12 @@ export type EventSubscribeOutput = {
6679
6776
  };
6680
6777
  readonly data: {
6681
6778
  readonly sessionID: string;
6779
+ readonly assistantMessageID: string;
6682
6780
  readonly attempt: number;
6781
+ readonly at: number;
6683
6782
  readonly error: {
6783
+ readonly type: string;
6684
6784
  readonly message: string;
6685
- readonly statusCode?: number;
6686
- readonly isRetryable: boolean;
6687
- readonly responseHeaders?: {
6688
- readonly [x: string]: string;
6689
- };
6690
- readonly responseBody?: string;
6691
- readonly metadata?: {
6692
- readonly [x: string]: string;
6693
- };
6694
6785
  };
6695
6786
  };
6696
6787
  } | {
@@ -6819,7 +6910,7 @@ export type EventSubscribeOutput = {
6819
6910
  };
6820
6911
  readonly data: {
6821
6912
  readonly sessionID: string;
6822
- readonly messageID: string;
6913
+ readonly to: string;
6823
6914
  };
6824
6915
  } | {
6825
6916
  readonly id: string;