@nikcli-ai/sdk 1.297.0 → 1.299.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.
@@ -570,11 +570,11 @@ export type Model = {
570
570
  providerID: string;
571
571
  api: {
572
572
  id: string;
573
- url?: string | undefined;
573
+ url?: string;
574
574
  npm: string;
575
575
  };
576
576
  name: string;
577
- family?: string | undefined;
577
+ family?: string;
578
578
  capabilities: {
579
579
  temperature: boolean;
580
580
  reasoning: boolean;
@@ -612,11 +612,11 @@ export type Model = {
612
612
  read: number;
613
613
  write: number;
614
614
  };
615
- } | undefined;
615
+ };
616
616
  };
617
617
  limit: {
618
618
  context: number;
619
- input?: number | undefined;
619
+ input?: number;
620
620
  output: number;
621
621
  };
622
622
  status: "alpha" | "beta" | "deprecated" | "active";
@@ -631,7 +631,7 @@ export type Model = {
631
631
  [x: string]: {
632
632
  [x: string]: any;
633
633
  };
634
- } | undefined;
634
+ };
635
635
  };
636
636
  export type ConnectorStatus = {
637
637
  status: "connected";
@@ -1019,6 +1019,34 @@ export type SessionStatus = {
1019
1019
  } | {
1020
1020
  type: "busy";
1021
1021
  };
1022
+ export type SessionWorktree4 = {
1023
+ name: string;
1024
+ branch: string;
1025
+ directory: string;
1026
+ repositoryDirectory?: string;
1027
+ cleanedAt?: number;
1028
+ };
1029
+ export type SessionWorktree5 = {
1030
+ name: string;
1031
+ branch: string;
1032
+ directory: string;
1033
+ repositoryDirectory?: string;
1034
+ cleanedAt?: number;
1035
+ };
1036
+ export type SessionMobile2 = {
1037
+ platforms: Array<"ios" | "android" | "expo" | "flutter" | "react-native">;
1038
+ primaryPlatform: string;
1039
+ method: string;
1040
+ detectedAt: number;
1041
+ buildStatus?: "unknown" | "building" | "succeeded" | "failed";
1042
+ lastBuildAt?: number;
1043
+ artifacts?: Array<{
1044
+ platform: string;
1045
+ path: string;
1046
+ size?: number;
1047
+ createdAt?: number;
1048
+ }>;
1049
+ };
1022
1050
  export type OutputFormatText = {
1023
1051
  type: "text";
1024
1052
  };
@@ -1284,21 +1312,60 @@ export type QuestionOption = {
1284
1312
  export type JSONSchema1 = {
1285
1313
  [x: string]: any;
1286
1314
  };
1315
+ export type MessageContextOverflowError1 = {
1316
+ name: "MessageContextOverflowError";
1317
+ data: {
1318
+ message: string;
1319
+ statusCode?: number;
1320
+ responseBody?: string;
1321
+ };
1322
+ };
1323
+ export type APIError2 = {
1324
+ name: "APIError";
1325
+ data: {
1326
+ message: string;
1327
+ statusCode?: number;
1328
+ isRetryable: boolean;
1329
+ responseHeaders?: {
1330
+ [x: string]: string;
1331
+ };
1332
+ responseBody?: string;
1333
+ metadata?: {
1334
+ [x: string]: string;
1335
+ };
1336
+ classification?: "payload-too-large";
1337
+ };
1338
+ };
1287
1339
  export type TextPart1 = {
1288
1340
  id: string;
1289
1341
  sessionID: string;
1290
1342
  messageID: string;
1291
1343
  type: "text";
1292
1344
  text: string;
1293
- synthetic?: boolean | undefined;
1294
- ignored?: boolean | undefined;
1345
+ synthetic?: boolean;
1346
+ ignored?: boolean;
1295
1347
  time?: {
1296
1348
  start: number;
1297
- end?: number | undefined;
1298
- } | undefined;
1349
+ end?: number;
1350
+ };
1299
1351
  metadata?: {
1300
1352
  [x: string]: any;
1301
- } | undefined;
1353
+ };
1354
+ };
1355
+ export type SubtaskPart1 = {
1356
+ id: string;
1357
+ sessionID: string;
1358
+ messageID: string;
1359
+ type: "subtask";
1360
+ prompt: string;
1361
+ description: string;
1362
+ agent: string;
1363
+ model?: {
1364
+ providerID: string;
1365
+ modelID: string;
1366
+ };
1367
+ command?: string;
1368
+ background?: boolean;
1302
1369
  };
1303
1370
  export type ReasoningPart1 = {
1304
1371
  id: string;
@@ -1308,10 +1375,10 @@ export type ReasoningPart1 = {
1308
1375
  text: string;
1309
1376
  metadata?: {
1310
1377
  [x: string]: any;
1311
- } | undefined;
1378
+ };
1312
1379
  time: {
1313
1380
  start: number;
1314
- end?: number | undefined;
1381
+ end?: number;
1315
1382
  };
1316
1383
  };
1317
1384
  export type FilePartSourceText6 = {
@@ -1331,13 +1398,13 @@ export type ToolStateRunning1 = {
1331
1398
  input: {
1332
1399
  [x: string]: any;
1333
1400
  };
1334
- title?: string | undefined;
1401
+ title?: string;
1335
1402
  metadata?: {
1336
1403
  [x: string]: any;
1337
- } | undefined;
1404
+ };
1338
1405
  structured?: {
1339
1406
  [x: string]: any;
1340
- } | undefined;
1407
+ };
1341
1408
  content?: Array<{
1342
1409
  type: "text";
1343
1410
  text: string;
@@ -1345,8 +1412,8 @@ export type ToolStateRunning1 = {
1345
1412
  type: "file";
1346
1413
  data: string;
1347
1414
  mime: string;
1348
- name?: string | undefined;
1349
- }> | undefined;
1415
+ name?: string;
1416
+ }>;
1350
1417
  time: {
1351
1418
  start: number;
1352
1419
  };
@@ -1359,12 +1426,38 @@ export type ToolStateError1 = {
1359
1426
  error: string;
1360
1427
  metadata?: {
1361
1428
  [x: string]: any;
1362
- } | undefined;
1429
+ };
1363
1430
  time: {
1364
1431
  start: number;
1365
1432
  end: number;
1366
1433
  };
1367
1434
  };
1435
+ export type StepStartPart1 = {
1436
+ id: string;
1437
+ sessionID: string;
1438
+ messageID: string;
1439
+ type: "step-start";
1440
+ snapshot?: string;
1441
+ };
1442
+ export type StepFinishPart1 = {
1443
+ id: string;
1444
+ sessionID: string;
1445
+ messageID: string;
1446
+ type: "step-finish";
1447
+ reason: string;
1448
+ snapshot?: string;
1449
+ cost: number;
1450
+ tokens: {
1451
+ total?: number;
1452
+ input: number;
1453
+ output: number;
1454
+ reasoning: number;
1455
+ cache: {
1456
+ read: number;
1457
+ write: number;
1458
+ };
1459
+ };
1460
+ };
1368
1461
  export type AgentPart1 = {
1369
1462
  id: string;
1370
1463
  sessionID: string;
@@ -1375,7 +1468,10 @@ export type AgentPart1 = {
1375
1468
  value: string;
1376
1469
  start: number;
1377
1470
  end: number;
1378
- } | undefined;
1471
+ };
1472
+ };
1473
+ export type MobileAccepted = {
1474
+ accepted: true;
1379
1475
  };
1380
1476
  export type MobileGithubPublishResult = {
1381
1477
  commitSha: string;
@@ -1664,15 +1760,15 @@ export type BooleanResult = boolean;
1664
1760
  export type TextPartInput = {
1665
1761
  type: "text";
1666
1762
  text: string;
1667
- synthetic?: boolean | undefined;
1668
- ignored?: boolean | undefined;
1763
+ synthetic?: boolean;
1764
+ ignored?: boolean;
1669
1765
  time?: {
1670
1766
  start: number;
1671
- end?: number | undefined;
1672
- } | undefined;
1767
+ end?: number;
1768
+ };
1673
1769
  metadata?: {
1674
1770
  [x: string]: any;
1675
- } | undefined;
1771
+ };
1676
1772
  id?: string | undefined;
1677
1773
  };
1678
1774
  export type AgentPartInput = {
@@ -1682,7 +1778,7 @@ export type AgentPartInput = {
1682
1778
  value: string;
1683
1779
  start: number;
1684
1780
  end: number;
1685
- } | undefined;
1781
+ };
1686
1782
  id?: string | undefined;
1687
1783
  };
1688
1784
  export type SubtaskPartInput = {
@@ -1693,9 +1789,9 @@ export type SubtaskPartInput = {
1693
1789
  model?: {
1694
1790
  providerID: string;
1695
1791
  modelID: string;
1696
- } | undefined;
1697
- command?: string | undefined;
1698
- background?: boolean | undefined;
1792
+ };
1793
+ command?: string;
1794
+ background?: boolean;
1699
1795
  id?: string | undefined;
1700
1796
  };
1701
1797
  export type SessionV2EntryList = Array<unknown>;
@@ -1721,7 +1817,7 @@ export type SessionGoalState = {
1721
1817
  goalID: string;
1722
1818
  objective: string;
1723
1819
  status: "active" | "paused" | "blocked" | "usage_limited" | "budget_limited" | "complete";
1724
- tokenBudget?: number | undefined;
1820
+ tokenBudget?: number;
1725
1821
  tokensUsed: number;
1726
1822
  timeUsedSeconds: number;
1727
1823
  iterationCount: number;
@@ -1753,17 +1849,17 @@ export type SessionMonitorOutput2 = {
1753
1849
  sessionID: string;
1754
1850
  messageID: string;
1755
1851
  callID: string;
1756
- partID?: string | null;
1852
+ partID?: string;
1757
1853
  title: string;
1758
1854
  command: string;
1759
1855
  cwd: string;
1760
1856
  agent: string;
1761
1857
  wake: boolean;
1762
- timeoutMs?: number | "Infinity" | "-Infinity" | "NaN" | null;
1858
+ timeoutMs?: number | "Infinity" | "-Infinity" | "NaN";
1763
1859
  status: "running" | "complete" | "error" | "timeout" | "cancelled";
1764
- pid?: number | "Infinity" | "-Infinity" | "NaN" | null;
1765
- exitCode?: number | "Infinity" | "-Infinity" | "NaN" | null;
1766
- signal?: string | null;
1860
+ pid?: number | "Infinity" | "-Infinity" | "NaN";
1861
+ exitCode?: number | "Infinity" | "-Infinity" | "NaN";
1862
+ signal?: string;
1767
1863
  logPath: string;
1768
1864
  commandPath: string;
1769
1865
  pidPath: string;
@@ -1773,7 +1869,7 @@ export type SessionMonitorOutput2 = {
1773
1869
  time: {
1774
1870
  created: number | "Infinity" | "-Infinity" | "NaN";
1775
1871
  updated: number | "Infinity" | "-Infinity" | "NaN";
1776
- completed?: number | "Infinity" | "-Infinity" | "NaN" | null;
1872
+ completed?: number | "Infinity" | "-Infinity" | "NaN";
1777
1873
  };
1778
1874
  } | null;
1779
1875
  export type SessionMonitorLogOutput2 = {
@@ -1782,17 +1878,17 @@ export type SessionMonitorLogOutput2 = {
1782
1878
  sessionID: string;
1783
1879
  messageID: string;
1784
1880
  callID: string;
1785
- partID?: string | null;
1881
+ partID?: string;
1786
1882
  title: string;
1787
1883
  command: string;
1788
1884
  cwd: string;
1789
1885
  agent: string;
1790
1886
  wake: boolean;
1791
- timeoutMs?: number | "Infinity" | "-Infinity" | "NaN" | null;
1887
+ timeoutMs?: number | "Infinity" | "-Infinity" | "NaN";
1792
1888
  status: "running" | "complete" | "error" | "timeout" | "cancelled";
1793
- pid?: number | "Infinity" | "-Infinity" | "NaN" | null;
1794
- exitCode?: number | "Infinity" | "-Infinity" | "NaN" | null;
1795
- signal?: string | null;
1889
+ pid?: number | "Infinity" | "-Infinity" | "NaN";
1890
+ exitCode?: number | "Infinity" | "-Infinity" | "NaN";
1891
+ signal?: string;
1796
1892
  logPath: string;
1797
1893
  commandPath: string;
1798
1894
  pidPath: string;
@@ -1802,7 +1898,7 @@ export type SessionMonitorLogOutput2 = {
1802
1898
  time: {
1803
1899
  created: number | "Infinity" | "-Infinity" | "NaN";
1804
1900
  updated: number | "Infinity" | "-Infinity" | "NaN";
1805
- completed?: number | "Infinity" | "-Infinity" | "NaN" | null;
1901
+ completed?: number | "Infinity" | "-Infinity" | "NaN";
1806
1902
  };
1807
1903
  };
1808
1904
  output: string;
@@ -1979,6 +2075,30 @@ export type EventLspUpdated = {
1979
2075
  type: "lsp.updated";
1980
2076
  properties: {};
1981
2077
  };
2078
+ export type MessageContextOverflowError2 = {
2079
+ name: "MessageContextOverflowError";
2080
+ data: {
2081
+ message: string;
2082
+ statusCode?: number;
2083
+ responseBody?: string;
2084
+ };
2085
+ };
2086
+ export type APIError3 = {
2087
+ name: "APIError";
2088
+ data: {
2089
+ message: string;
2090
+ statusCode?: number;
2091
+ isRetryable: boolean;
2092
+ responseHeaders?: {
2093
+ [x: string]: string;
2094
+ };
2095
+ responseBody?: string;
2096
+ metadata?: {
2097
+ [x: string]: string;
2098
+ };
2099
+ classification?: "payload-too-large";
2100
+ };
2101
+ };
1982
2102
  export type EventMessageRemoved = {
1983
2103
  type: "message.removed";
1984
2104
  properties: {
@@ -1992,15 +2112,15 @@ export type TextPart2 = {
1992
2112
  messageID: string;
1993
2113
  type: "text";
1994
2114
  text: string;
1995
- synthetic?: boolean | undefined;
1996
- ignored?: boolean | undefined;
2115
+ synthetic?: boolean;
2116
+ ignored?: boolean;
1997
2117
  time?: {
1998
2118
  start: number;
1999
- end?: number | undefined;
2000
- } | undefined;
2119
+ end?: number;
2120
+ };
2001
2121
  metadata?: {
2002
2122
  [x: string]: any;
2003
- } | undefined;
2123
+ };
2004
2124
  };
2005
2125
  export type ReasoningPart2 = {
2006
2126
  id: string;
@@ -2010,10 +2130,10 @@ export type ReasoningPart2 = {
2010
2130
  text: string;
2011
2131
  metadata?: {
2012
2132
  [x: string]: any;
2013
- } | undefined;
2133
+ };
2014
2134
  time: {
2015
2135
  start: number;
2016
- end?: number | undefined;
2136
+ end?: number;
2017
2137
  };
2018
2138
  };
2019
2139
  export type ToolStateRunning2 = {
@@ -2021,13 +2141,13 @@ export type ToolStateRunning2 = {
2021
2141
  input: {
2022
2142
  [x: string]: any;
2023
2143
  };
2024
- title?: string | undefined;
2144
+ title?: string;
2025
2145
  metadata?: {
2026
2146
  [x: string]: any;
2027
- } | undefined;
2147
+ };
2028
2148
  structured?: {
2029
2149
  [x: string]: any;
2030
- } | undefined;
2150
+ };
2031
2151
  content?: Array<{
2032
2152
  type: "text";
2033
2153
  text: string;
@@ -2035,8 +2155,8 @@ export type ToolStateRunning2 = {
2035
2155
  type: "file";
2036
2156
  data: string;
2037
2157
  mime: string;
2038
- name?: string | undefined;
2039
- }> | undefined;
2158
+ name?: string;
2159
+ }>;
2040
2160
  time: {
2041
2161
  start: number;
2042
2162
  };
@@ -2049,23 +2169,30 @@ export type ToolStateError2 = {
2049
2169
  error: string;
2050
2170
  metadata?: {
2051
2171
  [x: string]: any;
2052
- } | undefined;
2172
+ };
2053
2173
  time: {
2054
2174
  start: number;
2055
2175
  end: number;
2056
2176
  };
2057
2177
  };
2058
- export type AgentPart2 = {
2178
+ export type StepFinishPart2 = {
2059
2179
  id: string;
2060
2180
  sessionID: string;
2061
2181
  messageID: string;
2062
- type: "agent";
2063
- name: string;
2064
- source?: {
2065
- value: string;
2066
- start: number;
2067
- end: number;
2068
- } | undefined;
2182
+ type: "step-finish";
2183
+ reason: string;
2184
+ snapshot?: string;
2185
+ cost: number;
2186
+ tokens: {
2187
+ total?: number;
2188
+ input: number;
2189
+ output: number;
2190
+ reasoning: number;
2191
+ cache: {
2192
+ read: number;
2193
+ write: number;
2194
+ };
2195
+ };
2069
2196
  };
2070
2197
  export type EventMessagePartRemoved = {
2071
2198
  type: "message.part.removed";
@@ -2075,6 +2202,34 @@ export type EventMessagePartRemoved = {
2075
2202
  partID: string;
2076
2203
  };
2077
2204
  };
2205
+ export type SessionWorktree8 = {
2206
+ name: string;
2207
+ branch: string;
2208
+ directory: string;
2209
+ repositoryDirectory?: string;
2210
+ cleanedAt?: number;
2211
+ };
2212
+ export type SessionWorktree9 = {
2213
+ name: string;
2214
+ branch: string;
2215
+ directory: string;
2216
+ repositoryDirectory?: string;
2217
+ cleanedAt?: number;
2218
+ };
2219
+ export type SessionMobile4 = {
2220
+ platforms: Array<"ios" | "android" | "expo" | "flutter" | "react-native">;
2221
+ primaryPlatform: string;
2222
+ method: string;
2223
+ detectedAt: number;
2224
+ buildStatus?: "unknown" | "building" | "succeeded" | "failed";
2225
+ lastBuildAt?: number;
2226
+ artifacts?: Array<{
2227
+ platform: string;
2228
+ path: string;
2229
+ size?: number;
2230
+ createdAt?: number;
2231
+ }>;
2232
+ };
2078
2233
  export type EventSessionPendingPromoted = {
2079
2234
  type: "session.pending.promoted";
2080
2235
  properties: {
@@ -2204,17 +2359,17 @@ export type EventMonitorCreated = {
2204
2359
  sessionID: string;
2205
2360
  messageID: string;
2206
2361
  callID: string;
2207
- partID?: string | undefined;
2362
+ partID?: string;
2208
2363
  title: string;
2209
2364
  command: string;
2210
2365
  cwd: string;
2211
2366
  agent: string;
2212
2367
  wake: boolean;
2213
- timeoutMs?: number | undefined;
2368
+ timeoutMs?: number;
2214
2369
  status: "running" | "complete" | "error" | "timeout" | "cancelled";
2215
- pid?: number | undefined;
2216
- exitCode?: number | undefined;
2217
- signal?: string | undefined;
2370
+ pid?: number;
2371
+ exitCode?: number;
2372
+ signal?: string;
2218
2373
  logPath: string;
2219
2374
  commandPath: string;
2220
2375
  pidPath: string;
@@ -2224,7 +2379,7 @@ export type EventMonitorCreated = {
2224
2379
  time: {
2225
2380
  created: number;
2226
2381
  updated: number;
2227
- completed?: number | undefined;
2382
+ completed?: number;
2228
2383
  };
2229
2384
  };
2230
2385
  };
@@ -2238,17 +2393,17 @@ export type EventMonitorUpdated = {
2238
2393
  sessionID: string;
2239
2394
  messageID: string;
2240
2395
  callID: string;
2241
- partID?: string | undefined;
2396
+ partID?: string;
2242
2397
  title: string;
2243
2398
  command: string;
2244
2399
  cwd: string;
2245
2400
  agent: string;
2246
2401
  wake: boolean;
2247
- timeoutMs?: number | undefined;
2402
+ timeoutMs?: number;
2248
2403
  status: "running" | "complete" | "error" | "timeout" | "cancelled";
2249
- pid?: number | undefined;
2250
- exitCode?: number | undefined;
2251
- signal?: string | undefined;
2404
+ pid?: number;
2405
+ exitCode?: number;
2406
+ signal?: string;
2252
2407
  logPath: string;
2253
2408
  commandPath: string;
2254
2409
  pidPath: string;
@@ -2258,7 +2413,7 @@ export type EventMonitorUpdated = {
2258
2413
  time: {
2259
2414
  created: number;
2260
2415
  updated: number;
2261
- completed?: number | undefined;
2416
+ completed?: number;
2262
2417
  };
2263
2418
  };
2264
2419
  };
@@ -2705,6 +2860,26 @@ export type EventSessionStatus = {
2705
2860
  status: SessionStatus;
2706
2861
  };
2707
2862
  };
2863
+ export type SessionGithub2 = {
2864
+ owner: string;
2865
+ repo: string;
2866
+ fullName: string;
2867
+ baseBranch: string;
2868
+ headBranch: string;
2869
+ repositoryDirectory?: string;
2870
+ cloneUrl?: string;
2871
+ htmlUrl?: string;
2872
+ private?: boolean;
2873
+ worktree: SessionWorktree4;
2874
+ pullRequest?: {
2875
+ number: number;
2876
+ url: string;
2877
+ title: string;
2878
+ };
2879
+ lastCommitSha?: string;
2880
+ publishedAt?: number;
2881
+ publishError?: string;
2882
+ };
2708
2883
  export type OutputFormatJsonSchema = {
2709
2884
  type: "json_schema";
2710
2885
  schema: JSONSchema;
@@ -2754,15 +2929,46 @@ export type RetryPart = {
2754
2929
  created: number;
2755
2930
  };
2756
2931
  };
2932
+ export type FileSource = {
2933
+ text: FilePartSourceText;
2934
+ type: "file";
2935
+ path: string;
2936
+ };
2937
+ export type ResourceSource = {
2938
+ text: FilePartSourceText;
2939
+ type: "resource";
2940
+ clientName: string;
2941
+ uri: string;
2942
+ };
2943
+ export type SymbolSource = {
2944
+ text: FilePartSourceText;
2945
+ type: "symbol";
2946
+ path: string;
2947
+ range: Range;
2948
+ name: string;
2949
+ kind: number;
2950
+ };
2951
+ export type QuestionInfo = {
2952
+ question: string;
2953
+ header: string;
2954
+ options: Array<QuestionOption>;
2955
+ multiple?: boolean | undefined;
2956
+ custom?: boolean | undefined;
2957
+ };
2958
+ export type OutputFormatJsonSchema1 = {
2959
+ type: "json_schema";
2960
+ schema: JSONSchema1;
2961
+ retryCount: number;
2962
+ };
2757
2963
  export type AssistantMessage1 = {
2758
2964
  id: string;
2759
2965
  sessionID: string;
2760
2966
  role: "assistant";
2761
2967
  time: {
2762
2968
  created: number;
2763
- completed?: number | undefined;
2969
+ completed?: number;
2764
2970
  };
2765
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError | MessageAbortedError | StructuredOutputError | APIError | undefined;
2971
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError1 | MessageAbortedError | StructuredOutputError | APIError2;
2766
2972
  parentID: string;
2767
2973
  modelID: string;
2768
2974
  providerID: string;
@@ -2772,10 +2978,10 @@ export type AssistantMessage1 = {
2772
2978
  cwd: string;
2773
2979
  root: string;
2774
2980
  };
2775
- summary?: boolean | undefined;
2981
+ summary?: boolean;
2776
2982
  cost: number;
2777
2983
  tokens: {
2778
- total?: number | undefined;
2984
+ total?: number;
2779
2985
  input: number;
2780
2986
  output: number;
2781
2987
  reasoning: number;
@@ -2784,79 +2990,19 @@ export type AssistantMessage1 = {
2784
2990
  write: number;
2785
2991
  };
2786
2992
  };
2787
- structured?: any | undefined;
2788
- finish?: string | undefined;
2993
+ structured?: any;
2994
+ finish?: string;
2789
2995
  };
2790
- export type AssistantMessage2 = {
2996
+ export type RetryPart1 = {
2791
2997
  id: string;
2792
2998
  sessionID: string;
2793
- role: "assistant";
2999
+ messageID: string;
3000
+ type: "retry";
3001
+ attempt: number;
3002
+ error: APIError2;
2794
3003
  time: {
2795
3004
  created: number;
2796
- completed?: number | undefined;
2797
3005
  };
2798
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError | MessageAbortedError | StructuredOutputError | APIError | undefined;
2799
- parentID: string;
2800
- modelID: string;
2801
- providerID: string;
2802
- mode: string;
2803
- agent: string;
2804
- path: {
2805
- cwd: string;
2806
- root: string;
2807
- };
2808
- summary?: boolean | undefined;
2809
- cost: number;
2810
- tokens: {
2811
- total?: number | undefined;
2812
- input: number;
2813
- output: number;
2814
- reasoning: number;
2815
- cache: {
2816
- read: number;
2817
- write: number;
2818
- };
2819
- };
2820
- structured?: any | undefined;
2821
- finish?: string | undefined;
2822
- };
2823
- export type EventSessionError = {
2824
- type: "session.error";
2825
- properties: {
2826
- sessionID?: string | undefined;
2827
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError | MessageAbortedError | StructuredOutputError | APIError | undefined;
2828
- };
2829
- };
2830
- export type FileSource = {
2831
- text: FilePartSourceText;
2832
- type: "file";
2833
- path: string;
2834
- };
2835
- export type ResourceSource = {
2836
- text: FilePartSourceText;
2837
- type: "resource";
2838
- clientName: string;
2839
- uri: string;
2840
- };
2841
- export type SymbolSource = {
2842
- text: FilePartSourceText;
2843
- type: "symbol";
2844
- path: string;
2845
- range: Range;
2846
- name: string;
2847
- kind: number;
2848
- };
2849
- export type QuestionInfo = {
2850
- question: string;
2851
- header: string;
2852
- options: Array<QuestionOption>;
2853
- multiple?: boolean | undefined;
2854
- custom?: boolean | undefined;
2855
- };
2856
- export type OutputFormatJsonSchema1 = {
2857
- type: "json_schema";
2858
- schema: JSONSchema1;
2859
- retryCount: number;
2860
3006
  };
2861
3007
  export type FileSource2 = {
2862
3008
  text: FilePartSourceText6;
@@ -3032,6 +3178,77 @@ export type EventQuestionReplied = {
3032
3178
  answers: Array<QuestionAnswer>;
3033
3179
  };
3034
3180
  };
3181
+ export type AssistantMessage2 = {
3182
+ id: string;
3183
+ sessionID: string;
3184
+ role: "assistant";
3185
+ time: {
3186
+ created: number;
3187
+ completed?: number;
3188
+ };
3189
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError2 | MessageAbortedError | StructuredOutputError | APIError3;
3190
+ parentID: string;
3191
+ modelID: string;
3192
+ providerID: string;
3193
+ mode: string;
3194
+ agent: string;
3195
+ path: {
3196
+ cwd: string;
3197
+ root: string;
3198
+ };
3199
+ summary?: boolean;
3200
+ cost: number;
3201
+ tokens: {
3202
+ total?: number;
3203
+ input: number;
3204
+ output: number;
3205
+ reasoning: number;
3206
+ cache: {
3207
+ read: number;
3208
+ write: number;
3209
+ };
3210
+ };
3211
+ structured?: any;
3212
+ finish?: string;
3213
+ };
3214
+ export type RetryPart2 = {
3215
+ id: string;
3216
+ sessionID: string;
3217
+ messageID: string;
3218
+ type: "retry";
3219
+ attempt: number;
3220
+ error: APIError3;
3221
+ time: {
3222
+ created: number;
3223
+ };
3224
+ };
3225
+ export type EventSessionError = {
3226
+ type: "session.error";
3227
+ properties: {
3228
+ sessionID?: string | undefined;
3229
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError2 | MessageAbortedError | StructuredOutputError | APIError3 | undefined;
3230
+ };
3231
+ };
3232
+ export type SessionGithub4 = {
3233
+ owner: string;
3234
+ repo: string;
3235
+ fullName: string;
3236
+ baseBranch: string;
3237
+ headBranch: string;
3238
+ repositoryDirectory?: string;
3239
+ cloneUrl?: string;
3240
+ htmlUrl?: string;
3241
+ private?: boolean;
3242
+ worktree: SessionWorktree8;
3243
+ pullRequest?: {
3244
+ number: number;
3245
+ url: string;
3246
+ title: string;
3247
+ };
3248
+ lastCommitSha?: string;
3249
+ publishedAt?: number;
3250
+ publishError?: string;
3251
+ };
3035
3252
  export type UserSession = {
3036
3253
  token: string;
3037
3254
  user: PublicUser;
@@ -3095,6 +3312,7 @@ export type QuestionRequest = {
3095
3312
  } | undefined;
3096
3313
  };
3097
3314
  export type OutputFormat1 = OutputFormatText | OutputFormatJsonSchema1;
3315
+ export type OutputFormat2 = OutputFormatText | OutputFormatJsonSchema1;
3098
3316
  export type FilePartSource2 = FileSource2 | SymbolSource2 | ResourceSource2;
3099
3317
  export type FilePartSource3 = FileSource2 | SymbolSource3 | ResourceSource2;
3100
3318
  export type LoopListOutput2 = {
@@ -3336,90 +3554,90 @@ export type Session2 = {
3336
3554
  slug: string;
3337
3555
  projectID: string;
3338
3556
  directory: string;
3339
- parentID?: string | undefined;
3340
- workspaceID?: string | undefined;
3557
+ parentID?: string;
3558
+ workspaceID?: string;
3341
3559
  summary?: {
3342
3560
  additions: number;
3343
3561
  deletions: number;
3344
3562
  files: number;
3345
- diffs?: Array<FileDiff> | undefined;
3346
- } | undefined;
3563
+ diffs?: Array<FileDiff>;
3564
+ };
3347
3565
  share?: {
3348
3566
  url: string;
3349
- } | undefined;
3350
- github?: SessionGithub | undefined;
3351
- worktree?: SessionWorktree | undefined;
3352
- mobile?: SessionMobile | undefined;
3567
+ };
3568
+ github?: SessionGithub2;
3569
+ worktree?: SessionWorktree5;
3570
+ mobile?: SessionMobile2;
3353
3571
  title: string;
3354
- activeCommand?: string | undefined;
3572
+ activeCommand?: string;
3355
3573
  version: string;
3356
3574
  time: {
3357
3575
  created: number;
3358
3576
  updated: number;
3359
- compacting?: number | undefined;
3360
- archived?: number | undefined;
3577
+ compacting?: number;
3578
+ archived?: number;
3361
3579
  };
3362
- permission?: PermissionRuleset | undefined;
3363
- skills?: Array<string> | undefined;
3364
- disabledInstructions?: Array<string> | undefined;
3580
+ permission?: PermissionRuleset;
3581
+ skills?: Array<string>;
3582
+ disabledInstructions?: Array<string>;
3365
3583
  disabledTools?: {
3366
3584
  [x: string]: boolean;
3367
- } | undefined;
3585
+ };
3368
3586
  revert?: {
3369
3587
  messageID: string;
3370
- partID?: string | undefined;
3371
- snapshot?: string | undefined;
3372
- diff?: string | undefined;
3373
- } | undefined;
3588
+ partID?: string;
3589
+ snapshot?: string;
3590
+ diff?: string;
3591
+ };
3374
3592
  lastModel?: {
3375
3593
  providerID: string;
3376
3594
  modelID: string;
3377
- } | undefined;
3595
+ };
3378
3596
  };
3379
3597
  export type Session4 = {
3380
3598
  id: string;
3381
3599
  slug: string;
3382
3600
  projectID: string;
3383
3601
  directory: string;
3384
- parentID?: string | undefined;
3385
- workspaceID?: string | undefined;
3602
+ parentID?: string;
3603
+ workspaceID?: string;
3386
3604
  summary?: {
3387
3605
  additions: number;
3388
3606
  deletions: number;
3389
3607
  files: number;
3390
- diffs?: Array<FileDiff> | undefined;
3391
- } | undefined;
3608
+ diffs?: Array<FileDiff>;
3609
+ };
3392
3610
  share?: {
3393
3611
  url: string;
3394
- } | undefined;
3395
- github?: SessionGithub | undefined;
3396
- worktree?: SessionWorktree | undefined;
3397
- mobile?: SessionMobile | undefined;
3612
+ };
3613
+ github?: SessionGithub4;
3614
+ worktree?: SessionWorktree9;
3615
+ mobile?: SessionMobile4;
3398
3616
  title: string;
3399
- activeCommand?: string | undefined;
3617
+ activeCommand?: string;
3400
3618
  version: string;
3401
3619
  time: {
3402
3620
  created: number;
3403
3621
  updated: number;
3404
- compacting?: number | undefined;
3405
- archived?: number | undefined;
3622
+ compacting?: number;
3623
+ archived?: number;
3406
3624
  };
3407
- permission?: PermissionRuleset | undefined;
3408
- skills?: Array<string> | undefined;
3409
- disabledInstructions?: Array<string> | undefined;
3625
+ permission?: PermissionRuleset;
3626
+ skills?: Array<string>;
3627
+ disabledInstructions?: Array<string>;
3410
3628
  disabledTools?: {
3411
3629
  [x: string]: boolean;
3412
- } | undefined;
3630
+ };
3413
3631
  revert?: {
3414
3632
  messageID: string;
3415
- partID?: string | undefined;
3416
- snapshot?: string | undefined;
3417
- diff?: string | undefined;
3418
- } | undefined;
3633
+ partID?: string;
3634
+ snapshot?: string;
3635
+ diff?: string;
3636
+ };
3419
3637
  lastModel?: {
3420
3638
  providerID: string;
3421
3639
  modelID: string;
3422
- } | undefined;
3640
+ };
3423
3641
  };
3424
3642
  export type UserMessage = {
3425
3643
  id: string;
@@ -3462,22 +3680,22 @@ export type UserMessage1 = {
3462
3680
  time: {
3463
3681
  created: number;
3464
3682
  };
3465
- format?: OutputFormat1 | undefined;
3683
+ format?: OutputFormat1;
3466
3684
  summary?: {
3467
- title?: string | undefined;
3468
- body?: string | undefined;
3685
+ title?: string;
3686
+ body?: string;
3469
3687
  diffs: Array<FileDiff>;
3470
- } | undefined;
3688
+ };
3471
3689
  agent: string;
3472
3690
  model: {
3473
3691
  providerID: string;
3474
3692
  modelID: string;
3475
3693
  };
3476
- system?: string | undefined;
3694
+ system?: string;
3477
3695
  tools?: {
3478
3696
  [x: string]: boolean;
3479
- } | undefined;
3480
- variant?: string | undefined;
3697
+ };
3698
+ variant?: string;
3481
3699
  };
3482
3700
  export type UserMessage2 = {
3483
3701
  id: string;
@@ -3486,22 +3704,22 @@ export type UserMessage2 = {
3486
3704
  time: {
3487
3705
  created: number;
3488
3706
  };
3489
- format?: OutputFormat1 | undefined;
3707
+ format?: OutputFormat1;
3490
3708
  summary?: {
3491
- title?: string | undefined;
3492
- body?: string | undefined;
3709
+ title?: string;
3710
+ body?: string;
3493
3711
  diffs: Array<FileDiff>;
3494
- } | undefined;
3712
+ };
3495
3713
  agent: string;
3496
3714
  model: {
3497
3715
  providerID: string;
3498
3716
  modelID: string;
3499
3717
  };
3500
- system?: string | undefined;
3718
+ system?: string;
3501
3719
  tools?: {
3502
3720
  [x: string]: boolean;
3503
- } | undefined;
3504
- variant?: string | undefined;
3721
+ };
3722
+ variant?: string;
3505
3723
  };
3506
3724
  export type FilePart2 = {
3507
3725
  id: string;
@@ -3509,16 +3727,16 @@ export type FilePart2 = {
3509
3727
  messageID: string;
3510
3728
  type: "file";
3511
3729
  mime: string;
3512
- filename?: string | undefined;
3730
+ filename?: string;
3513
3731
  url: string;
3514
- source?: FilePartSource2 | undefined;
3732
+ source?: FilePartSource2;
3515
3733
  };
3516
3734
  export type FilePartInput = {
3517
3735
  type: "file";
3518
3736
  mime: string;
3519
- filename?: string | undefined;
3737
+ filename?: string;
3520
3738
  url: string;
3521
- source?: FilePartSource2 | undefined;
3739
+ source?: FilePartSource2;
3522
3740
  id?: string | undefined;
3523
3741
  };
3524
3742
  export type FilePart3 = {
@@ -3527,9 +3745,9 @@ export type FilePart3 = {
3527
3745
  messageID: string;
3528
3746
  type: "file";
3529
3747
  mime: string;
3530
- filename?: string | undefined;
3748
+ filename?: string;
3531
3749
  url: string;
3532
- source?: FilePartSource3 | undefined;
3750
+ source?: FilePartSource3;
3533
3751
  };
3534
3752
  export type EventQuestionAsked = {
3535
3753
  type: "question.asked";
@@ -3622,9 +3840,9 @@ export type ToolStateCompleted1 = {
3622
3840
  time: {
3623
3841
  start: number;
3624
3842
  end: number;
3625
- compacted?: number | undefined;
3843
+ compacted?: number;
3626
3844
  };
3627
- attachments?: Array<FilePart2> | undefined;
3845
+ attachments?: Array<FilePart2>;
3628
3846
  };
3629
3847
  export type PromptPartInput = TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput;
3630
3848
  export type ToolStateCompleted2 = {
@@ -3640,9 +3858,9 @@ export type ToolStateCompleted2 = {
3640
3858
  time: {
3641
3859
  start: number;
3642
3860
  end: number;
3643
- compacted?: number | undefined;
3861
+ compacted?: number;
3644
3862
  };
3645
- attachments?: Array<FilePart3> | undefined;
3863
+ attachments?: Array<FilePart3>;
3646
3864
  };
3647
3865
  export type Config = {
3648
3866
  $schema?: string | undefined;
@@ -4197,20 +4415,20 @@ export type EventMessageUpdated = {
4197
4415
  export type ToolState1 = ToolStatePending1 | ToolStateRunning1 | ToolStateCompleted1 | ToolStateError1;
4198
4416
  export type SessionPendingPromptInput = {
4199
4417
  sessionID: string;
4200
- messageID?: string | undefined;
4201
- delivery?: "steer" | "queue" | undefined;
4418
+ messageID?: string;
4419
+ delivery?: "steer" | "queue";
4202
4420
  model?: {
4203
4421
  providerID: string;
4204
4422
  modelID: string;
4205
- } | undefined;
4206
- agent?: string | undefined;
4207
- noReply?: boolean | undefined;
4423
+ };
4424
+ agent?: string;
4425
+ noReply?: boolean;
4208
4426
  tools?: {
4209
4427
  [x: string]: boolean;
4210
- } | undefined;
4211
- format?: OutputFormat1 | undefined;
4212
- system?: string | undefined;
4213
- variant?: string | undefined;
4428
+ };
4429
+ format?: OutputFormat2;
4430
+ system?: string;
4431
+ variant?: string;
4214
4432
  parts: Array<PromptPartInput>;
4215
4433
  };
4216
4434
  export type ToolState2 = ToolStatePending1 | ToolStateRunning2 | ToolStateCompleted2 | ToolStateError2;
@@ -4236,7 +4454,7 @@ export type ToolPart1 = {
4236
4454
  state: ToolState1;
4237
4455
  metadata?: {
4238
4456
  [x: string]: any;
4239
- } | undefined;
4457
+ };
4240
4458
  };
4241
4459
  export type SessionPendingInput2 = {
4242
4460
  id: string;
@@ -4256,12 +4474,12 @@ export type ToolPart2 = {
4256
4474
  state: ToolState2;
4257
4475
  metadata?: {
4258
4476
  [x: string]: any;
4259
- } | undefined;
4477
+ };
4260
4478
  };
4261
4479
  export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
4262
- export type Part1 = TextPart1 | SubtaskPart | ReasoningPart1 | FilePart2 | ToolPart1 | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart1 | RetryPart | CompactionPart;
4480
+ export type Part1 = TextPart1 | SubtaskPart1 | ReasoningPart1 | FilePart2 | ToolPart1 | StepStartPart1 | StepFinishPart1 | SnapshotPart | PatchPart | AgentPart1 | RetryPart1 | CompactionPart;
4263
4481
  export type SessionPendingInputList = Array<SessionPendingInput2>;
4264
- export type Part2 = TextPart2 | SubtaskPart | ReasoningPart2 | FilePart3 | ToolPart2 | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart2 | RetryPart | CompactionPart;
4482
+ export type Part2 = TextPart2 | SubtaskPart1 | ReasoningPart2 | FilePart3 | ToolPart2 | StepStartPart1 | StepFinishPart2 | SnapshotPart | PatchPart | AgentPart1 | RetryPart2 | CompactionPart;
4265
4483
  export type MobileSessionDetail = {
4266
4484
  info: Session;
4267
4485
  status?: SessionStatus | undefined;
@@ -4305,7 +4523,7 @@ export type EventMessagePartUpdated = {
4305
4523
  type: "message.part.updated";
4306
4524
  properties: {
4307
4525
  part: Part2;
4308
- delta?: string | undefined;
4526
+ delta?: string;
4309
4527
  };
4310
4528
  };
4311
4529
  export type Event = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionPendingPromoted | EventSessionInstructionsUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
@@ -4356,6 +4574,18 @@ export type MissionNotFound = {
4356
4574
  readonly [x: string]: any;
4357
4575
  };
4358
4576
  };
4577
+ export type MobileNotFound = {
4578
+ readonly name: "NotFoundError";
4579
+ readonly error: string;
4580
+ };
4581
+ export type MobileUnauthorized = {
4582
+ readonly name: "Unauthorized";
4583
+ readonly error: string;
4584
+ };
4585
+ export type MobileBadRequest = {
4586
+ readonly name: "BadRequest";
4587
+ readonly error: string;
4588
+ };
4359
4589
  export type PtyCreateErrorBody = {
4360
4590
  readonly name: "PtyCreateError";
4361
4591
  readonly data: {
@@ -4616,8 +4846,8 @@ export type MissionFeatureMutatePayload = {
4616
4846
  readonly appendDependsOn?: ReadonlyArray<string> | undefined;
4617
4847
  };
4618
4848
  export type MobileAuthTokenCreatePayload = {
4619
- readonly name?: string | undefined;
4620
- readonly expiresInDays?: number | undefined;
4849
+ readonly name?: string;
4850
+ readonly expiresInDays?: number;
4621
4851
  };
4622
4852
  export type MobileMemoryStashCreatePayload = {
4623
4853
  readonly input: string;
@@ -4696,264 +4926,87 @@ export type MobileSessionCommandPayload = {
4696
4926
  readonly variant?: string | undefined;
4697
4927
  };
4698
4928
  export type MobileSessionMessagePayload = {
4699
- readonly messageID?: string | undefined;
4700
- readonly model?: {
4701
- readonly providerID: string;
4702
- readonly modelID: string;
4703
- } | undefined;
4704
- readonly agent?: string | undefined;
4705
- readonly noReply?: boolean | undefined;
4706
- readonly tools?: {
4707
- readonly [x: string]: boolean;
4708
- } | undefined;
4709
- readonly format?: unknown | undefined;
4710
- readonly system?: string | undefined;
4711
- readonly variant?: string | undefined;
4712
- readonly parts: ReadonlyArray<{
4713
- readonly id: string;
4714
- readonly sessionID: string;
4715
- readonly messageID: string;
4716
- readonly type: "text";
4717
- readonly text: string;
4718
- readonly synthetic?: boolean | undefined;
4719
- readonly ignored?: boolean | undefined;
4720
- readonly time?: {
4721
- readonly start: number;
4722
- readonly end?: number | undefined;
4723
- } | undefined;
4724
- readonly metadata?: {
4725
- readonly [x: string]: any;
4726
- } | undefined;
4727
- } | {
4728
- readonly id: string;
4729
- readonly sessionID: string;
4730
- readonly messageID: string;
4731
- readonly type: "subtask";
4732
- readonly prompt: string;
4733
- readonly description: string;
4734
- readonly agent: string;
4735
- readonly model?: {
4736
- readonly providerID: string;
4737
- readonly modelID: string;
4738
- } | undefined;
4739
- readonly command?: string | undefined;
4740
- readonly background?: boolean | undefined;
4741
- } | {
4742
- readonly id: string;
4743
- readonly sessionID: string;
4744
- readonly messageID: string;
4745
- readonly type: "reasoning";
4746
- readonly text: string;
4747
- readonly metadata?: {
4748
- readonly [x: string]: any;
4749
- } | undefined;
4750
- readonly time: {
4751
- readonly start: number;
4752
- readonly end?: number | undefined;
4753
- };
4754
- } | {
4755
- readonly id: string;
4756
- readonly sessionID: string;
4757
- readonly messageID: string;
4758
- readonly type: "file";
4759
- readonly mime: string;
4760
- readonly filename?: string | undefined;
4761
- readonly url: string;
4762
- readonly source?: ({
4763
- readonly text: {
4764
- readonly value: string;
4765
- readonly start: number;
4766
- readonly end: number;
4767
- };
4768
- readonly type: "file";
4769
- readonly path: string;
4770
- } | {
4771
- readonly text: {
4772
- readonly value: string;
4773
- readonly start: number;
4774
- readonly end: number;
4775
- };
4776
- readonly type: "symbol";
4777
- readonly path: string;
4778
- readonly range: {
4779
- readonly start: {
4780
- readonly line: number;
4781
- readonly character: number;
4782
- };
4783
- readonly end: {
4784
- readonly line: number;
4785
- readonly character: number;
4786
- };
4787
- };
4788
- readonly name: string;
4789
- readonly kind: number;
4790
- } | {
4791
- readonly text: {
4792
- readonly value: string;
4793
- readonly start: number;
4794
- readonly end: number;
4795
- };
4796
- readonly type: "resource";
4797
- readonly clientName: string;
4798
- readonly uri: string;
4799
- }) | undefined;
4800
- } | {
4801
- readonly id: string;
4802
- readonly sessionID: string;
4803
- readonly messageID: string;
4804
- readonly type: "tool";
4805
- readonly callID: string;
4806
- readonly tool: string;
4807
- readonly state: {
4808
- readonly status: "pending";
4809
- readonly input: {
4810
- readonly [x: string]: any;
4811
- };
4812
- readonly raw: string;
4813
- } | {
4814
- readonly status: "running";
4815
- readonly input: {
4816
- readonly [x: string]: any;
4817
- };
4818
- readonly title?: string | undefined;
4819
- readonly metadata?: {
4820
- readonly [x: string]: any;
4821
- } | undefined;
4822
- readonly structured?: {
4823
- readonly [x: string]: any;
4824
- } | undefined;
4825
- readonly content?: ReadonlyArray<{
4826
- readonly type: "text";
4827
- readonly text: string;
4828
- } | {
4829
- readonly type: "file";
4830
- readonly data: string;
4831
- readonly mime: string;
4832
- readonly name?: string | undefined;
4833
- }> | undefined;
4834
- readonly time: {
4835
- readonly start: number;
4836
- };
4837
- } | {
4838
- readonly status: "completed";
4839
- readonly input: {
4840
- readonly [x: string]: any;
4841
- };
4842
- readonly output: string;
4843
- readonly title: string;
4844
- readonly metadata: {
4845
- readonly [x: string]: any;
4846
- };
4847
- readonly time: {
4848
- readonly start: number;
4849
- readonly end: number;
4850
- readonly compacted?: number | undefined;
4851
- };
4852
- readonly attachments?: ReadonlyArray<{
4853
- readonly id: string;
4854
- readonly sessionID: string;
4855
- readonly messageID: string;
4856
- readonly type: "file";
4857
- readonly mime: string;
4858
- readonly filename?: string | undefined;
4859
- readonly url: string;
4860
- readonly source?: ({
4861
- readonly text: {
4862
- readonly value: string;
4863
- readonly start: number;
4864
- readonly end: number;
4865
- };
4866
- readonly type: "file";
4867
- readonly path: string;
4868
- } | {
4869
- readonly text: {
4870
- readonly value: string;
4871
- readonly start: number;
4872
- readonly end: number;
4873
- };
4874
- readonly type: "symbol";
4875
- readonly path: string;
4876
- readonly range: {
4877
- readonly start: {
4878
- readonly line: number;
4879
- readonly character: number;
4880
- };
4881
- readonly end: {
4882
- readonly line: number;
4883
- readonly character: number;
4884
- };
4885
- };
4886
- readonly name: string;
4887
- readonly kind: number;
4888
- } | {
4889
- readonly text: {
4890
- readonly value: string;
4891
- readonly start: number;
4892
- readonly end: number;
4893
- };
4894
- readonly type: "resource";
4895
- readonly clientName: string;
4896
- readonly uri: string;
4897
- }) | undefined;
4898
- }> | undefined;
4899
- } | {
4900
- readonly status: "error";
4901
- readonly input: {
4902
- readonly [x: string]: any;
4903
- };
4904
- readonly error: string;
4905
- readonly metadata?: {
4906
- readonly [x: string]: any;
4907
- } | undefined;
4908
- readonly time: {
4909
- readonly start: number;
4910
- readonly end: number;
4911
- };
4929
+ readonly messageID?: string | undefined;
4930
+ readonly delivery?: "steer" | "queue" | undefined;
4931
+ readonly model?: {
4932
+ readonly providerID: string;
4933
+ readonly modelID: string;
4934
+ } | undefined;
4935
+ readonly agent?: string | undefined;
4936
+ readonly noReply?: boolean | undefined;
4937
+ readonly tools?: {
4938
+ readonly [x: string]: boolean;
4939
+ } | undefined;
4940
+ readonly format?: ({
4941
+ readonly type: "text";
4942
+ } | {
4943
+ readonly type: "json_schema";
4944
+ readonly schema: {
4945
+ readonly [x: string]: any;
4912
4946
  };
4947
+ readonly retryCount?: number | undefined;
4948
+ }) | undefined;
4949
+ readonly system?: string | undefined;
4950
+ readonly variant?: string | undefined;
4951
+ readonly parts: ReadonlyArray<{
4952
+ readonly id?: string | undefined;
4953
+ readonly type: "text";
4954
+ readonly text: string;
4955
+ readonly synthetic?: boolean | undefined;
4956
+ readonly ignored?: boolean | undefined;
4957
+ readonly time?: {
4958
+ readonly start: number;
4959
+ readonly end?: number | undefined;
4960
+ } | undefined;
4913
4961
  readonly metadata?: {
4914
4962
  readonly [x: string]: any;
4915
4963
  } | undefined;
4916
4964
  } | {
4917
- readonly id: string;
4918
- readonly sessionID: string;
4919
- readonly messageID: string;
4920
- readonly type: "step-start";
4921
- readonly snapshot?: string | undefined;
4922
- } | {
4923
- readonly id: string;
4924
- readonly sessionID: string;
4925
- readonly messageID: string;
4926
- readonly type: "step-finish";
4927
- readonly reason: string;
4928
- readonly snapshot?: string | undefined;
4929
- readonly cost: number;
4930
- readonly tokens: {
4931
- readonly total?: number | undefined;
4932
- readonly input: number;
4933
- readonly output: number;
4934
- readonly reasoning: number;
4935
- readonly cache: {
4936
- readonly read: number;
4937
- readonly write: number;
4965
+ readonly id?: string | undefined;
4966
+ readonly type: "file";
4967
+ readonly mime: string;
4968
+ readonly filename?: string | undefined;
4969
+ readonly url: string;
4970
+ readonly source?: ({
4971
+ readonly text: {
4972
+ readonly value: string;
4973
+ readonly start: number;
4974
+ readonly end: number;
4938
4975
  };
4939
- };
4940
- } | {
4941
- readonly id: string;
4942
- readonly sessionID: string;
4943
- readonly messageID: string;
4944
- readonly type: "snapshot";
4945
- readonly snapshot: string;
4946
- } | {
4947
- readonly id: string;
4948
- readonly sessionID: string;
4949
- readonly messageID: string;
4950
- readonly type: "patch";
4951
- readonly hash: string;
4952
- readonly files: ReadonlyArray<string>;
4976
+ readonly type: "file";
4977
+ readonly path: string;
4978
+ } | {
4979
+ readonly text: {
4980
+ readonly value: string;
4981
+ readonly start: number;
4982
+ readonly end: number;
4983
+ };
4984
+ readonly type: "symbol";
4985
+ readonly path: string;
4986
+ readonly range: {
4987
+ readonly start: {
4988
+ readonly line: number;
4989
+ readonly character: number;
4990
+ };
4991
+ readonly end: {
4992
+ readonly line: number;
4993
+ readonly character: number;
4994
+ };
4995
+ };
4996
+ readonly name: string;
4997
+ readonly kind: number;
4998
+ } | {
4999
+ readonly text: {
5000
+ readonly value: string;
5001
+ readonly start: number;
5002
+ readonly end: number;
5003
+ };
5004
+ readonly type: "resource";
5005
+ readonly clientName: string;
5006
+ readonly uri: string;
5007
+ }) | undefined;
4953
5008
  } | {
4954
- readonly id: string;
4955
- readonly sessionID: string;
4956
- readonly messageID: string;
5009
+ readonly id?: string | undefined;
4957
5010
  readonly type: "agent";
4958
5011
  readonly name: string;
4959
5012
  readonly source?: {
@@ -4962,40 +5015,22 @@ export type MobileSessionMessagePayload = {
4962
5015
  readonly end: number;
4963
5016
  } | undefined;
4964
5017
  } | {
4965
- readonly id: string;
4966
- readonly sessionID: string;
4967
- readonly messageID: string;
4968
- readonly type: "retry";
4969
- readonly attempt: number;
4970
- readonly error: {
4971
- readonly name: "APIError";
4972
- readonly data: {
4973
- readonly message: string;
4974
- readonly statusCode?: number | undefined;
4975
- readonly isRetryable: boolean;
4976
- readonly responseHeaders?: {
4977
- readonly [x: string]: string;
4978
- } | undefined;
4979
- readonly responseBody?: string | undefined;
4980
- readonly metadata?: {
4981
- readonly [x: string]: string;
4982
- } | undefined;
4983
- readonly classification?: "payload-too-large" | undefined;
4984
- };
4985
- };
4986
- readonly time: {
4987
- readonly created: number;
4988
- };
4989
- } | {
4990
- readonly id: string;
4991
- readonly sessionID: string;
4992
- readonly messageID: string;
4993
- readonly type: "compaction";
4994
- readonly auto: boolean;
5018
+ readonly id?: string | undefined;
5019
+ readonly type: "subtask";
5020
+ readonly prompt: string;
5021
+ readonly description: string;
5022
+ readonly agent: string;
5023
+ readonly model?: {
5024
+ readonly providerID: string;
5025
+ readonly modelID: string;
5026
+ } | undefined;
5027
+ readonly command?: string | undefined;
5028
+ readonly background?: boolean | undefined;
4995
5029
  }>;
5030
+ readonly parentSessionID?: string | undefined;
4996
5031
  };
4997
5032
  export type MobilePermissionRespondPayload = {
4998
- readonly response: string;
5033
+ readonly response: "once" | "always" | "reject";
4999
5034
  };
5000
5035
  export type MobileQuestionRespondPayload = {
5001
5036
  readonly answers: ReadonlyArray<ReadonlyArray<string>>;
@@ -5929,18 +5964,18 @@ export type ConfigManagementProfileCreatePayload = {
5929
5964
  readonly name: string;
5930
5965
  };
5931
5966
  export type SessionPromptPromptPayload = {
5932
- readonly messageID?: string | undefined;
5933
- readonly delivery?: "steer" | "queue" | undefined;
5967
+ readonly messageID?: string;
5968
+ readonly delivery?: "steer" | "queue";
5934
5969
  readonly model?: {
5935
5970
  readonly providerID: string;
5936
5971
  readonly modelID: string;
5937
- } | undefined;
5938
- readonly agent?: string | undefined;
5939
- readonly noReply?: boolean | undefined;
5972
+ };
5973
+ readonly agent?: string;
5974
+ readonly noReply?: boolean;
5940
5975
  readonly tools?: {
5941
5976
  readonly [x: string]: boolean;
5942
- } | undefined;
5943
- readonly format?: ({
5977
+ };
5978
+ readonly format?: {
5944
5979
  readonly type: "text";
5945
5980
  } | {
5946
5981
  readonly type: "json_schema";
@@ -5948,28 +5983,28 @@ export type SessionPromptPromptPayload = {
5948
5983
  readonly [x: string]: any;
5949
5984
  };
5950
5985
  readonly retryCount: number;
5951
- }) | undefined;
5952
- readonly system?: string | undefined;
5953
- readonly variant?: string | undefined;
5986
+ };
5987
+ readonly system?: string;
5988
+ readonly variant?: string;
5954
5989
  readonly parts: ReadonlyArray<{
5955
5990
  readonly type: "text";
5956
5991
  readonly text: string;
5957
- readonly synthetic?: boolean | undefined;
5958
- readonly ignored?: boolean | undefined;
5992
+ readonly synthetic?: boolean;
5993
+ readonly ignored?: boolean;
5959
5994
  readonly time?: {
5960
5995
  readonly start: number;
5961
- readonly end?: number | undefined;
5962
- } | undefined;
5996
+ readonly end?: number;
5997
+ };
5963
5998
  readonly metadata?: {
5964
5999
  readonly [x: string]: any;
5965
- } | undefined;
6000
+ };
5966
6001
  readonly id?: string | undefined;
5967
6002
  } | {
5968
6003
  readonly type: "file";
5969
6004
  readonly mime: string;
5970
- readonly filename?: string | undefined;
6005
+ readonly filename?: string;
5971
6006
  readonly url: string;
5972
- readonly source?: ({
6007
+ readonly source?: {
5973
6008
  readonly text: {
5974
6009
  readonly value: string;
5975
6010
  readonly start: number;
@@ -6006,7 +6041,7 @@ export type SessionPromptPromptPayload = {
6006
6041
  readonly type: "resource";
6007
6042
  readonly clientName: string;
6008
6043
  readonly uri: string;
6009
- }) | undefined;
6044
+ };
6010
6045
  readonly id?: string | undefined;
6011
6046
  } | {
6012
6047
  readonly type: "agent";
@@ -6015,7 +6050,7 @@ export type SessionPromptPromptPayload = {
6015
6050
  readonly value: string;
6016
6051
  readonly start: number;
6017
6052
  readonly end: number;
6018
- } | undefined;
6053
+ };
6019
6054
  readonly id?: string | undefined;
6020
6055
  } | {
6021
6056
  readonly type: "subtask";
@@ -6025,25 +6060,25 @@ export type SessionPromptPromptPayload = {
6025
6060
  readonly model?: {
6026
6061
  readonly providerID: string;
6027
6062
  readonly modelID: string;
6028
- } | undefined;
6029
- readonly command?: string | undefined;
6030
- readonly background?: boolean | undefined;
6063
+ };
6064
+ readonly command?: string;
6065
+ readonly background?: boolean;
6031
6066
  readonly id?: string | undefined;
6032
6067
  }>;
6033
6068
  };
6034
6069
  export type SessionPromptPromptAsyncPayload = {
6035
- readonly messageID?: string | undefined;
6036
- readonly delivery?: "steer" | "queue" | undefined;
6070
+ readonly messageID?: string;
6071
+ readonly delivery?: "steer" | "queue";
6037
6072
  readonly model?: {
6038
6073
  readonly providerID: string;
6039
6074
  readonly modelID: string;
6040
- } | undefined;
6041
- readonly agent?: string | undefined;
6042
- readonly noReply?: boolean | undefined;
6075
+ };
6076
+ readonly agent?: string;
6077
+ readonly noReply?: boolean;
6043
6078
  readonly tools?: {
6044
6079
  readonly [x: string]: boolean;
6045
- } | undefined;
6046
- readonly format?: ({
6080
+ };
6081
+ readonly format?: {
6047
6082
  readonly type: "text";
6048
6083
  } | {
6049
6084
  readonly type: "json_schema";
@@ -6051,28 +6086,28 @@ export type SessionPromptPromptAsyncPayload = {
6051
6086
  readonly [x: string]: any;
6052
6087
  };
6053
6088
  readonly retryCount: number;
6054
- }) | undefined;
6055
- readonly system?: string | undefined;
6056
- readonly variant?: string | undefined;
6089
+ };
6090
+ readonly system?: string;
6091
+ readonly variant?: string;
6057
6092
  readonly parts: ReadonlyArray<{
6058
6093
  readonly type: "text";
6059
6094
  readonly text: string;
6060
- readonly synthetic?: boolean | undefined;
6061
- readonly ignored?: boolean | undefined;
6095
+ readonly synthetic?: boolean;
6096
+ readonly ignored?: boolean;
6062
6097
  readonly time?: {
6063
6098
  readonly start: number;
6064
- readonly end?: number | undefined;
6065
- } | undefined;
6099
+ readonly end?: number;
6100
+ };
6066
6101
  readonly metadata?: {
6067
6102
  readonly [x: string]: any;
6068
- } | undefined;
6103
+ };
6069
6104
  readonly id?: string | undefined;
6070
6105
  } | {
6071
6106
  readonly type: "file";
6072
6107
  readonly mime: string;
6073
- readonly filename?: string | undefined;
6108
+ readonly filename?: string;
6074
6109
  readonly url: string;
6075
- readonly source?: ({
6110
+ readonly source?: {
6076
6111
  readonly text: {
6077
6112
  readonly value: string;
6078
6113
  readonly start: number;
@@ -6109,7 +6144,7 @@ export type SessionPromptPromptAsyncPayload = {
6109
6144
  readonly type: "resource";
6110
6145
  readonly clientName: string;
6111
6146
  readonly uri: string;
6112
- }) | undefined;
6147
+ };
6113
6148
  readonly id?: string | undefined;
6114
6149
  } | {
6115
6150
  readonly type: "agent";
@@ -6118,7 +6153,7 @@ export type SessionPromptPromptAsyncPayload = {
6118
6153
  readonly value: string;
6119
6154
  readonly start: number;
6120
6155
  readonly end: number;
6121
- } | undefined;
6156
+ };
6122
6157
  readonly id?: string | undefined;
6123
6158
  } | {
6124
6159
  readonly type: "subtask";
@@ -6128,9 +6163,9 @@ export type SessionPromptPromptAsyncPayload = {
6128
6163
  readonly model?: {
6129
6164
  readonly providerID: string;
6130
6165
  readonly modelID: string;
6131
- } | undefined;
6132
- readonly command?: string | undefined;
6133
- readonly background?: boolean | undefined;
6166
+ };
6167
+ readonly command?: string;
6168
+ readonly background?: boolean;
6134
6169
  readonly id?: string | undefined;
6135
6170
  }>;
6136
6171
  };
@@ -7666,6 +7701,7 @@ export type MobileSessionMessageInput = {
7666
7701
  readonly sessionID: string;
7667
7702
  }["sessionID"];
7668
7703
  readonly messageID?: MobileSessionMessagePayload["messageID"];
7704
+ readonly delivery?: MobileSessionMessagePayload["delivery"];
7669
7705
  readonly model?: MobileSessionMessagePayload["model"];
7670
7706
  readonly agent?: MobileSessionMessagePayload["agent"];
7671
7707
  readonly noReply?: MobileSessionMessagePayload["noReply"];
@@ -7674,10 +7710,9 @@ export type MobileSessionMessageInput = {
7674
7710
  readonly system?: MobileSessionMessagePayload["system"];
7675
7711
  readonly variant?: MobileSessionMessagePayload["variant"];
7676
7712
  readonly parts: MobileSessionMessagePayload["parts"];
7713
+ readonly parentSessionID?: MobileSessionMessagePayload["parentSessionID"];
7677
7714
  };
7678
- export type MobileSessionMessageOutput = {
7679
- accepted: true;
7680
- };
7715
+ export type MobileSessionMessageOutput = MobileAccepted;
7681
7716
  export type MobileSessionAbortInput = {
7682
7717
  readonly sessionID: {
7683
7718
  readonly sessionID: string;
@@ -7796,7 +7831,7 @@ export type MobileWorktreeCreateInput = {
7796
7831
  readonly sourceDirectory?: MobileWorktreeCreatePayload["sourceDirectory"];
7797
7832
  readonly root?: MobileWorktreeCreatePayload["root"];
7798
7833
  };
7799
- export type MobileWorktreeCreateOutput = ManagedWorktreeInfo;
7834
+ export type MobileWorktreeCreateOutput = Worktree;
7800
7835
  export type MobileWorktreeRemoveInput = {
7801
7836
  readonly directory: MobileWorktreeRemovePayload["directory"];
7802
7837
  readonly force?: MobileWorktreeRemovePayload["force"];
@@ -8778,15 +8813,15 @@ export type SessionPartUpdateInput = {
8778
8813
  readonly messageID: string;
8779
8814
  readonly type: "text";
8780
8815
  readonly text: string;
8781
- readonly synthetic?: boolean | undefined;
8782
- readonly ignored?: boolean | undefined;
8816
+ readonly synthetic?: boolean;
8817
+ readonly ignored?: boolean;
8783
8818
  readonly time?: {
8784
8819
  readonly start: number;
8785
- readonly end?: number | undefined;
8786
- } | undefined;
8820
+ readonly end?: number;
8821
+ };
8787
8822
  readonly metadata?: {
8788
8823
  readonly [x: string]: any;
8789
- } | undefined;
8824
+ };
8790
8825
  } | {
8791
8826
  readonly id: string;
8792
8827
  readonly sessionID: string;
@@ -8798,9 +8833,9 @@ export type SessionPartUpdateInput = {
8798
8833
  readonly model?: {
8799
8834
  readonly providerID: string;
8800
8835
  readonly modelID: string;
8801
- } | undefined;
8802
- readonly command?: string | undefined;
8803
- readonly background?: boolean | undefined;
8836
+ };
8837
+ readonly command?: string;
8838
+ readonly background?: boolean;
8804
8839
  } | {
8805
8840
  readonly id: string;
8806
8841
  readonly sessionID: string;
@@ -8809,10 +8844,10 @@ export type SessionPartUpdateInput = {
8809
8844
  readonly text: string;
8810
8845
  readonly metadata?: {
8811
8846
  readonly [x: string]: any;
8812
- } | undefined;
8847
+ };
8813
8848
  readonly time: {
8814
8849
  readonly start: number;
8815
- readonly end?: number | undefined;
8850
+ readonly end?: number;
8816
8851
  };
8817
8852
  } | {
8818
8853
  readonly id: string;
@@ -8820,9 +8855,9 @@ export type SessionPartUpdateInput = {
8820
8855
  readonly messageID: string;
8821
8856
  readonly type: "file";
8822
8857
  readonly mime: string;
8823
- readonly filename?: string | undefined;
8858
+ readonly filename?: string;
8824
8859
  readonly url: string;
8825
- readonly source?: ({
8860
+ readonly source?: {
8826
8861
  readonly text: {
8827
8862
  readonly value: string;
8828
8863
  readonly start: number;
@@ -8859,7 +8894,7 @@ export type SessionPartUpdateInput = {
8859
8894
  readonly type: "resource";
8860
8895
  readonly clientName: string;
8861
8896
  readonly uri: string;
8862
- }) | undefined;
8897
+ };
8863
8898
  } | {
8864
8899
  readonly id: string;
8865
8900
  readonly sessionID: string;
@@ -8878,13 +8913,13 @@ export type SessionPartUpdateInput = {
8878
8913
  readonly input: {
8879
8914
  readonly [x: string]: any;
8880
8915
  };
8881
- readonly title?: string | undefined;
8916
+ readonly title?: string;
8882
8917
  readonly metadata?: {
8883
8918
  readonly [x: string]: any;
8884
- } | undefined;
8919
+ };
8885
8920
  readonly structured?: {
8886
8921
  readonly [x: string]: any;
8887
- } | undefined;
8922
+ };
8888
8923
  readonly content?: ReadonlyArray<{
8889
8924
  readonly type: "text";
8890
8925
  readonly text: string;
@@ -8892,8 +8927,8 @@ export type SessionPartUpdateInput = {
8892
8927
  readonly type: "file";
8893
8928
  readonly data: string;
8894
8929
  readonly mime: string;
8895
- readonly name?: string | undefined;
8896
- }> | undefined;
8930
+ readonly name?: string;
8931
+ }>;
8897
8932
  readonly time: {
8898
8933
  readonly start: number;
8899
8934
  };
@@ -8910,7 +8945,7 @@ export type SessionPartUpdateInput = {
8910
8945
  readonly time: {
8911
8946
  readonly start: number;
8912
8947
  readonly end: number;
8913
- readonly compacted?: number | undefined;
8948
+ readonly compacted?: number;
8914
8949
  };
8915
8950
  readonly attachments?: ReadonlyArray<{
8916
8951
  readonly id: string;
@@ -8918,9 +8953,9 @@ export type SessionPartUpdateInput = {
8918
8953
  readonly messageID: string;
8919
8954
  readonly type: "file";
8920
8955
  readonly mime: string;
8921
- readonly filename?: string | undefined;
8956
+ readonly filename?: string;
8922
8957
  readonly url: string;
8923
- readonly source?: ({
8958
+ readonly source?: {
8924
8959
  readonly text: {
8925
8960
  readonly value: string;
8926
8961
  readonly start: number;
@@ -8957,8 +8992,8 @@ export type SessionPartUpdateInput = {
8957
8992
  readonly type: "resource";
8958
8993
  readonly clientName: string;
8959
8994
  readonly uri: string;
8960
- }) | undefined;
8961
- }> | undefined;
8995
+ };
8996
+ }>;
8962
8997
  } | {
8963
8998
  readonly status: "error";
8964
8999
  readonly input: {
@@ -8967,7 +9002,7 @@ export type SessionPartUpdateInput = {
8967
9002
  readonly error: string;
8968
9003
  readonly metadata?: {
8969
9004
  readonly [x: string]: any;
8970
- } | undefined;
9005
+ };
8971
9006
  readonly time: {
8972
9007
  readonly start: number;
8973
9008
  readonly end: number;
@@ -8975,23 +9010,23 @@ export type SessionPartUpdateInput = {
8975
9010
  };
8976
9011
  readonly metadata?: {
8977
9012
  readonly [x: string]: any;
8978
- } | undefined;
9013
+ };
8979
9014
  } | {
8980
9015
  readonly id: string;
8981
9016
  readonly sessionID: string;
8982
9017
  readonly messageID: string;
8983
9018
  readonly type: "step-start";
8984
- readonly snapshot?: string | undefined;
9019
+ readonly snapshot?: string;
8985
9020
  } | {
8986
9021
  readonly id: string;
8987
9022
  readonly sessionID: string;
8988
9023
  readonly messageID: string;
8989
9024
  readonly type: "step-finish";
8990
9025
  readonly reason: string;
8991
- readonly snapshot?: string | undefined;
9026
+ readonly snapshot?: string;
8992
9027
  readonly cost: number;
8993
9028
  readonly tokens: {
8994
- readonly total?: number | undefined;
9029
+ readonly total?: number;
8995
9030
  readonly input: number;
8996
9031
  readonly output: number;
8997
9032
  readonly reasoning: number;
@@ -9023,7 +9058,7 @@ export type SessionPartUpdateInput = {
9023
9058
  readonly value: string;
9024
9059
  readonly start: number;
9025
9060
  readonly end: number;
9026
- } | undefined;
9061
+ };
9027
9062
  } | {
9028
9063
  readonly id: string;
9029
9064
  readonly sessionID: string;
@@ -9034,16 +9069,16 @@ export type SessionPartUpdateInput = {
9034
9069
  readonly name: "APIError";
9035
9070
  readonly data: {
9036
9071
  readonly message: string;
9037
- readonly statusCode?: number | undefined;
9072
+ readonly statusCode?: number;
9038
9073
  readonly isRetryable: boolean;
9039
9074
  readonly responseHeaders?: {
9040
9075
  readonly [x: string]: string;
9041
- } | undefined;
9042
- readonly responseBody?: string | undefined;
9076
+ };
9077
+ readonly responseBody?: string;
9043
9078
  readonly metadata?: {
9044
9079
  readonly [x: string]: string;
9045
- } | undefined;
9046
- readonly classification?: "payload-too-large" | undefined;
9080
+ };
9081
+ readonly classification?: "payload-too-large";
9047
9082
  };
9048
9083
  };
9049
9084
  readonly time: {