@ellipsis-dev/sdk 0.32.0 → 0.34.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.
@@ -62,7 +62,7 @@ interface paths {
62
62
  patch?: never;
63
63
  trace?: never;
64
64
  };
65
- '/v1/account/api-keys/{api_key_id}': {
65
+ '/v1/account/api-keys/{id}': {
66
66
  parameters: {
67
67
  query?: never;
68
68
  header?: never;
@@ -145,8 +145,8 @@ interface paths {
145
145
  * Requires a human account administrator; API keys and session tokens
146
146
  * cannot change this policy. Supply enabled explicitly. Saving amounts
147
147
  * with enabled=false keeps recharge off; enabling requires a saved card.
148
- * A recharge buys amount_cents of credit and charges the platform fee
149
- * in addition. Amounts and thresholds preserve exact cents.
148
+ * A recharge buys `amount` of credit and charges the platform fee in
149
+ * addition. Amounts and thresholds are millicents in whole cents.
150
150
  */
151
151
  put: operations['update_auto_recharge'];
152
152
  post?: never;
@@ -195,7 +195,7 @@ interface paths {
195
195
  *
196
196
  * Requires a human account administrator. Open the returned URL to
197
197
  * complete payment. Credit is granted only after payment succeeds;
198
- * the platform fee is charged in addition to amount_cents. Returning
198
+ * the platform fee is charged in addition to `amount`. Returning
199
199
  * to Billing carries the checkout session ID for receipt lookup.
200
200
  */
201
201
  post: operations['create_credit_checkout_session'];
@@ -260,7 +260,7 @@ interface paths {
260
260
  };
261
261
  /**
262
262
  * Get Fee Schedule
263
- * @description Get the account's rate card, in US dollars.
263
+ * @description Get the account's rate card, in millicents.
264
264
  */
265
265
  get: operations['get_fee_schedule'];
266
266
  put?: never;
@@ -282,7 +282,7 @@ interface paths {
282
282
  * Get Credit Purchase Options
283
283
  * @description Get credit purchase bounds and the platform fee.
284
284
  *
285
- * All amounts are integer US cents. The fee is added to the credit
285
+ * All amounts are in millicents. The fee is added to the credit
286
286
  * amount; it does not reduce the credit granted.
287
287
  */
288
288
  get: operations['get_credit_purchase_options'];
@@ -294,7 +294,7 @@ interface paths {
294
294
  patch?: never;
295
295
  trace?: never;
296
296
  };
297
- '/v1/account/billing/purchases/{checkout_id}': {
297
+ '/v1/account/billing/purchases/{id}': {
298
298
  parameters: {
299
299
  query?: never;
300
300
  header?: never;
@@ -331,8 +331,7 @@ interface paths {
331
331
  * Budgets cover the trailing 1, 7 and 28 days; they do not replenish
332
332
  * prepaid credit. Amounts include measured usage from active sessions.
333
333
  * Each paid LLM request requires positive credit and budget headroom.
334
- * An admitted request can overshoot; concurrent paid requests are limited
335
- * by your account and per-session allowances.
334
+ * An admitted request can overshoot.
336
335
  */
337
336
  get: operations['get_account_budget'];
338
337
  put?: never;
@@ -456,7 +455,7 @@ interface paths {
456
455
  * Set Organization Settings
457
456
  * @description Set the organization settings.
458
457
  *
459
- * `budget_ceiling.session` is in US dollars, at most the platform
458
+ * `budget_ceiling.session` is in millicents, at most the platform
460
459
  * ceiling, and null clears it.
461
460
  * Refused for session tokens (potentially prompt-injected code must
462
461
  * not raise the organization's ceiling).
@@ -484,13 +483,13 @@ interface paths {
484
483
  };
485
484
  /**
486
485
  * Get Usage
487
- * @description Get usage for a calendar month, including its funding sources.
486
+ * @description Get usage for a calendar month, split by billing source.
488
487
  *
489
- * Omit period_start for the current UTC month; select a period returned
490
- * in billing_periods to view history. Credit debits are distinct from
491
- * rated token usage through a developer's Claude or Codex
492
- * subscription. Rated usage estimates are not provider invoices.
493
- * Pending and unresolved requests identify missing measurements.
488
+ * Omit period_start for the current UTC month. Pass a period from
489
+ * billing_periods to view history. Platform usage is charged to
490
+ * Ellipsis credit. Tokens paid by a developer's Claude or Codex
491
+ * subscription show their cost at Ellipsis rates and charge no
492
+ * credit. Pending and unresolved requests are missing measurements.
494
493
  */
495
494
  get: operations['get_account_usage'];
496
495
  put?: never;
@@ -518,7 +517,7 @@ interface paths {
518
517
  * Create Agent
519
518
  * @description Create an agent, managed through the API: no file, live
520
519
  * immediately. To put its definition in a repository instead, create
521
- * it here and then POST /v1/agents/{agent_id}/link.
520
+ * it here and then POST /v1/agents/{id}/link.
522
521
  *
523
522
  * 409 when another live agent already holds the name.
524
523
  */
@@ -546,7 +545,7 @@ interface paths {
546
545
  patch?: never;
547
546
  trace?: never;
548
547
  };
549
- '/v1/agents/{agent_id}': {
548
+ '/v1/agents/{id}': {
550
549
  parameters: {
551
550
  query?: never;
552
551
  header?: never;
@@ -583,7 +582,7 @@ interface paths {
583
582
  patch?: never;
584
583
  trace?: never;
585
584
  };
586
- '/v1/agents/{agent_id}/link': {
585
+ '/v1/agents/{id}/link': {
587
586
  parameters: {
588
587
  query?: never;
589
588
  header?: never;
@@ -608,7 +607,7 @@ interface paths {
608
607
  patch?: never;
609
608
  trace?: never;
610
609
  };
611
- '/v1/agents/{agent_id}/metrics': {
610
+ '/v1/agents/{id}/metrics': {
612
611
  parameters: {
613
612
  query?: never;
614
613
  header?: never;
@@ -634,7 +633,7 @@ interface paths {
634
633
  patch?: never;
635
634
  trace?: never;
636
635
  };
637
- '/v1/agents/{agent_id}/sessions': {
636
+ '/v1/agents/{id}/sessions': {
638
637
  parameters: {
639
638
  query?: never;
640
639
  header?: never;
@@ -666,7 +665,7 @@ interface paths {
666
665
  patch?: never;
667
666
  trace?: never;
668
667
  };
669
- '/v1/agents/{agent_id}/unlink': {
668
+ '/v1/agents/{id}/unlink': {
670
669
  parameters: {
671
670
  query?: never;
672
671
  header?: never;
@@ -715,7 +714,7 @@ interface paths {
715
714
  patch?: never;
716
715
  trace?: never;
717
716
  };
718
- '/v1/alerts/{alert_id}': {
717
+ '/v1/alerts/{id}': {
719
718
  parameters: {
720
719
  query?: never;
721
720
  header?: never;
@@ -737,7 +736,7 @@ interface paths {
737
736
  patch?: never;
738
737
  trace?: never;
739
738
  };
740
- '/v1/alerts/{alert_id}/dismiss': {
739
+ '/v1/alerts/{id}/dismiss': {
741
740
  parameters: {
742
741
  query?: never;
743
742
  header?: never;
@@ -909,7 +908,7 @@ interface paths {
909
908
  patch?: never;
910
909
  trace?: never;
911
910
  };
912
- '/v1/environments/{environment_id}': {
911
+ '/v1/environments/{id}': {
913
912
  parameters: {
914
913
  query?: never;
915
914
  header?: never;
@@ -976,7 +975,7 @@ interface paths {
976
975
  patch?: never;
977
976
  trace?: never;
978
977
  };
979
- '/v1/handlers/{handler_id}/metrics': {
978
+ '/v1/handlers/{id}/metrics': {
980
979
  parameters: {
981
980
  query?: never;
982
981
  header?: never;
@@ -1196,7 +1195,7 @@ interface paths {
1196
1195
  patch?: never;
1197
1196
  trace?: never;
1198
1197
  };
1199
- '/v1/integrations/sentry/{integration_id}': {
1198
+ '/v1/integrations/sentry/{id}': {
1200
1199
  parameters: {
1201
1200
  query?: never;
1202
1201
  header?: never;
@@ -1329,7 +1328,7 @@ interface paths {
1329
1328
  patch?: never;
1330
1329
  trace?: never;
1331
1330
  };
1332
- '/v1/reviews/{review_id}': {
1331
+ '/v1/reviews/{id}': {
1333
1332
  parameters: {
1334
1333
  query?: never;
1335
1334
  header?: never;
@@ -1436,7 +1435,7 @@ interface paths {
1436
1435
  * turn, waiting for one. 400 when `conversation.interactive` is false
1437
1436
  * and there is no prompt, or when `budget.session` exceeds the
1438
1437
  * organization's per-session ceiling. To start a session from a saved
1439
- * agent, use POST /v1/agents/{agent_id}/sessions.
1438
+ * agent, use POST /v1/agents/{id}/sessions.
1440
1439
  */
1441
1440
  post: operations['start_session'];
1442
1441
  delete?: never;
@@ -1479,7 +1478,7 @@ interface paths {
1479
1478
  patch?: never;
1480
1479
  trace?: never;
1481
1480
  };
1482
- '/v1/sessions/{session_id}': {
1481
+ '/v1/sessions/{id}': {
1483
1482
  parameters: {
1484
1483
  query?: never;
1485
1484
  header?: never;
@@ -1518,7 +1517,7 @@ interface paths {
1518
1517
  patch?: never;
1519
1518
  trace?: never;
1520
1519
  };
1521
- '/v1/sessions/{session_id}/analytics': {
1520
+ '/v1/sessions/{id}/analytics': {
1522
1521
  parameters: {
1523
1522
  query?: never;
1524
1523
  header?: never;
@@ -1546,7 +1545,7 @@ interface paths {
1546
1545
  patch?: never;
1547
1546
  trace?: never;
1548
1547
  };
1549
- '/v1/sessions/{session_id}/diff': {
1548
+ '/v1/sessions/{id}/diff': {
1550
1549
  parameters: {
1551
1550
  query?: never;
1552
1551
  header?: never;
@@ -1572,7 +1571,7 @@ interface paths {
1572
1571
  patch?: never;
1573
1572
  trace?: never;
1574
1573
  };
1575
- '/v1/sessions/{session_id}/download': {
1574
+ '/v1/sessions/{id}/download': {
1576
1575
  parameters: {
1577
1576
  query?: never;
1578
1577
  header?: never;
@@ -1601,7 +1600,7 @@ interface paths {
1601
1600
  patch?: never;
1602
1601
  trace?: never;
1603
1602
  };
1604
- '/v1/sessions/{session_id}/git': {
1603
+ '/v1/sessions/{id}/git': {
1605
1604
  parameters: {
1606
1605
  query?: never;
1607
1606
  header?: never;
@@ -1624,7 +1623,7 @@ interface paths {
1624
1623
  patch?: never;
1625
1624
  trace?: never;
1626
1625
  };
1627
- '/v1/sessions/{session_id}/messages': {
1626
+ '/v1/sessions/{id}/messages': {
1628
1627
  parameters: {
1629
1628
  query?: never;
1630
1629
  header?: never;
@@ -1648,7 +1647,7 @@ interface paths {
1648
1647
  patch?: never;
1649
1648
  trace?: never;
1650
1649
  };
1651
- '/v1/sessions/{session_id}/metrics': {
1650
+ '/v1/sessions/{id}/metrics': {
1652
1651
  parameters: {
1653
1652
  query?: never;
1654
1653
  header?: never;
@@ -1671,7 +1670,7 @@ interface paths {
1671
1670
  patch?: never;
1672
1671
  trace?: never;
1673
1672
  };
1674
- '/v1/sessions/{session_id}/records': {
1673
+ '/v1/sessions/{id}/records': {
1675
1674
  parameters: {
1676
1675
  query?: never;
1677
1676
  header?: never;
@@ -1697,7 +1696,7 @@ interface paths {
1697
1696
  patch?: never;
1698
1697
  trace?: never;
1699
1698
  };
1700
- '/v1/sessions/{session_id}/stop': {
1699
+ '/v1/sessions/{id}/stop': {
1701
1700
  parameters: {
1702
1701
  query?: never;
1703
1702
  header?: never;
@@ -1711,7 +1710,7 @@ interface paths {
1711
1710
  * @description Stop the turn in progress and return the session.
1712
1711
  *
1713
1712
  * The turn ends `stopped`; the conversation stays open. 409 when no
1714
- * turn is pending or running. The stopping user is recorded only
1713
+ * turn is queued, preparing, or running. The stopping user is recorded only
1715
1714
  * when the caller's credential maps to a GitHub account.
1716
1715
  */
1717
1716
  post: operations['stop_session'];
@@ -1721,7 +1720,7 @@ interface paths {
1721
1720
  patch?: never;
1722
1721
  trace?: never;
1723
1722
  };
1724
- '/v1/sessions/{session_id}/stream-ticket': {
1723
+ '/v1/sessions/{id}/stream-ticket': {
1725
1724
  parameters: {
1726
1725
  query?: never;
1727
1726
  header?: never;
@@ -1738,7 +1737,7 @@ interface paths {
1738
1737
  patch?: never;
1739
1738
  trace?: never;
1740
1739
  };
1741
- '/v1/sessions/{session_id}/transcript': {
1740
+ '/v1/sessions/{id}/transcript': {
1742
1741
  parameters: {
1743
1742
  query?: never;
1744
1743
  header?: never;
@@ -1764,7 +1763,7 @@ interface paths {
1764
1763
  patch?: never;
1765
1764
  trace?: never;
1766
1765
  };
1767
- '/v1/sessions/{session_id}/turns': {
1766
+ '/v1/sessions/{id}/turns': {
1768
1767
  parameters: {
1769
1768
  query?: never;
1770
1769
  header?: never;
@@ -1788,7 +1787,7 @@ interface paths {
1788
1787
  patch?: never;
1789
1788
  trace?: never;
1790
1789
  };
1791
- '/v1/sessions/{session_id}/turns/{turn_id}': {
1790
+ '/v1/sessions/{session_id}/turns/{id}': {
1792
1791
  parameters: {
1793
1792
  query?: never;
1794
1793
  header?: never;
@@ -1869,7 +1868,7 @@ interface paths {
1869
1868
  patch?: never;
1870
1869
  trace?: never;
1871
1870
  };
1872
- '/v1/templates/{template_id}': {
1871
+ '/v1/templates/{id}': {
1873
1872
  parameters: {
1874
1873
  query?: never;
1875
1874
  header?: never;
@@ -2023,7 +2022,7 @@ interface paths {
2023
2022
  patch?: never;
2024
2023
  trace?: never;
2025
2024
  };
2026
- '/v1/user/tokens/{token_id}': {
2025
+ '/v1/user/tokens/{id}': {
2027
2026
  parameters: {
2028
2027
  query?: never;
2029
2028
  header?: never;
@@ -2057,7 +2056,7 @@ interface paths {
2057
2056
  patch?: never;
2058
2057
  trace?: never;
2059
2058
  };
2060
- '/v1/vm-executions/{vm_execution_id}': {
2059
+ '/v1/vm-executions/{id}': {
2061
2060
  parameters: {
2062
2061
  query?: never;
2063
2062
  header?: never;
@@ -2074,7 +2073,7 @@ interface paths {
2074
2073
  patch?: never;
2075
2074
  trace?: never;
2076
2075
  };
2077
- '/v1/vm-executions/{vm_execution_id}/stream-ticket': {
2076
+ '/v1/vm-executions/{id}/stream-ticket': {
2078
2077
  parameters: {
2079
2078
  query?: never;
2080
2079
  header?: never;
@@ -2113,7 +2112,7 @@ interface paths {
2113
2112
  patch?: never;
2114
2113
  trace?: never;
2115
2114
  };
2116
- '/v1/vm-images/{image_id}': {
2115
+ '/v1/vm-images/{id}': {
2117
2116
  parameters: {
2118
2117
  query?: never;
2119
2118
  header?: never;
@@ -2155,7 +2154,7 @@ interface paths {
2155
2154
  patch?: never;
2156
2155
  trace?: never;
2157
2156
  };
2158
- '/v1/vms/{vm_id}': {
2157
+ '/v1/vms/{id}': {
2159
2158
  parameters: {
2160
2159
  query?: never;
2161
2160
  header?: never;
@@ -2175,7 +2174,7 @@ interface paths {
2175
2174
  patch?: never;
2176
2175
  trace?: never;
2177
2176
  };
2178
- '/v1/vms/{vm_id}/metrics': {
2177
+ '/v1/vms/{id}/metrics': {
2179
2178
  parameters: {
2180
2179
  query?: never;
2181
2180
  header?: never;
@@ -2249,7 +2248,7 @@ interface paths {
2249
2248
  patch?: never;
2250
2249
  trace?: never;
2251
2250
  };
2252
- '/v1/webhooks/deliveries/{delivery_id}': {
2251
+ '/v1/webhooks/deliveries/{id}': {
2253
2252
  parameters: {
2254
2253
  query?: never;
2255
2254
  header?: never;
@@ -2272,7 +2271,7 @@ interface paths {
2272
2271
  patch?: never;
2273
2272
  trace?: never;
2274
2273
  };
2275
- '/v1/webhooks/{webhook_id}': {
2274
+ '/v1/webhooks/{id}': {
2276
2275
  parameters: {
2277
2276
  query?: never;
2278
2277
  header?: never;
@@ -2307,7 +2306,7 @@ interface paths {
2307
2306
  patch?: never;
2308
2307
  trace?: never;
2309
2308
  };
2310
- '/v1/webhooks/{webhook_id}/ping': {
2309
+ '/v1/webhooks/{id}/ping': {
2311
2310
  parameters: {
2312
2311
  query?: never;
2313
2312
  header?: never;
@@ -2378,14 +2377,14 @@ interface components {
2378
2377
  exhausted: boolean;
2379
2378
  /** Fraction Used */
2380
2379
  fraction_used: number;
2381
- /** Limit Usd */
2382
- limit_usd: number;
2383
- /** Platform Max Usd */
2384
- platform_max_usd: number;
2385
- /** Remaining Usd */
2386
- remaining_usd: number;
2387
- /** Spent Usd */
2388
- spent_usd: number;
2380
+ /** Limit */
2381
+ limit: number;
2382
+ /** Platform Max */
2383
+ platform_max: number;
2384
+ /** Remaining */
2385
+ remaining: number;
2386
+ /** Spent */
2387
+ spent: number;
2389
2388
  /**
2390
2389
  * Window Days
2391
2390
  * @description Trailing window length: 1, 7 or 28 days.
@@ -2519,6 +2518,11 @@ interface components {
2519
2518
  * @description The open pull request that adds this agent's file. Non-null means the agent is not live yet: it starts running once the pull request merges and syncs.
2520
2519
  */
2521
2520
  pending_pull_request_url?: string | null;
2521
+ /**
2522
+ * Raw Yaml
2523
+ * @description The agent's YAML: the file as written for agents defined in a repository, or the definition rendered as YAML for agents managed through the API. A failed sync keeps the last valid YAML.
2524
+ */
2525
+ raw_yaml: string;
2522
2526
  /**
2523
2527
  * Sha
2524
2528
  * @description The definition's content identity: the version fingerprint frozen onto each session that runs it.
@@ -2655,25 +2659,18 @@ interface components {
2655
2659
  };
2656
2660
  /**
2657
2661
  * AgentSessionSample
2658
- * @description One finished session of the agent, reduced to the three figures
2659
- * the distributions are drawn from.
2662
+ * @description One finished session of the agent: its duration, cost, and tokens.
2660
2663
  */
2661
2664
  AgentSessionSample: {
2662
- /**
2663
- * Cost
2664
- * @description What the session cost, in millicents.
2665
- */
2666
- cost: number;
2665
+ /** @description What the session cost. */
2666
+ cost: components['schemas']['Cost'];
2667
2667
  /**
2668
2668
  * Duration Seconds
2669
2669
  * @description Wall-clock seconds from the session's creation to its last update.
2670
2670
  */
2671
2671
  duration_seconds: number;
2672
- /**
2673
- * Tokens Total
2674
- * @description Tokens the session consumed across every lane, including prompt-cache reads and writes.
2675
- */
2676
- tokens_total: number;
2672
+ /** @description The tokens the session used. */
2673
+ tokens: components['schemas']['Tokens'];
2677
2674
  };
2678
2675
  /**
2679
2676
  * AgentTemplate
@@ -2765,12 +2762,12 @@ interface components {
2765
2762
  * Cta Label
2766
2763
  * @description The label for the call-to-action link.
2767
2764
  */
2768
- cta_label?: string | null;
2765
+ cta_label: string;
2769
2766
  /**
2770
2767
  * Cta Url
2771
- * @description An optional call-to-action link — where this alert should send the reader.
2768
+ * @description Where this alert sends the reader.
2772
2769
  */
2773
- cta_url?: string | null;
2770
+ cta_url: string;
2774
2771
  /**
2775
2772
  * Id
2776
2773
  * @description The alert's unique identifier.
@@ -3128,10 +3125,10 @@ interface components {
3128
3125
  /** AutoRechargeSettings */
3129
3126
  AutoRechargeSettings: {
3130
3127
  /**
3131
- * Amount Cents
3128
+ * Amount
3132
3129
  * @description Credit bought on each recharge, before the platform fee.
3133
3130
  */
3134
- amount_cents: number;
3131
+ amount: number;
3135
3132
  /** @description The saved card, or null when no card is saved. */
3136
3133
  card: components['schemas']['AutoRechargeCard'] | null;
3137
3134
  /** Consecutive Failures */
@@ -3143,22 +3140,22 @@ interface components {
3143
3140
  enabled: boolean;
3144
3141
  /** Last Attempted At */
3145
3142
  last_attempted_at: string | null;
3146
- /** Min Threshold Cents */
3147
- min_threshold_cents: number;
3148
- /** Threshold Cents */
3149
- threshold_cents: number;
3143
+ /** Min Threshold */
3144
+ min_threshold: number;
3145
+ /** Threshold */
3146
+ threshold: number;
3150
3147
  };
3151
3148
  /** AutoRechargeUpdate */
3152
3149
  AutoRechargeUpdate: {
3153
- /** Amount Cents */
3154
- amount_cents: number;
3150
+ /** Amount */
3151
+ amount: number;
3155
3152
  /**
3156
3153
  * Enabled
3157
3154
  * @description Explicit opt-in; enabling requires a saved card.
3158
3155
  */
3159
3156
  enabled: boolean;
3160
- /** Threshold Cents */
3161
- threshold_cents: number;
3157
+ /** Threshold */
3158
+ threshold: number;
3162
3159
  };
3163
3160
  /** BillingCheckout */
3164
3161
  BillingCheckout: {
@@ -3181,6 +3178,55 @@ interface components {
3181
3178
  /** Period Start */
3182
3179
  period_start: string;
3183
3180
  };
3181
+ /**
3182
+ * BillingSource
3183
+ * @enum {string}
3184
+ */
3185
+ BillingSource: 'platform' | 'claude_subscription' | 'codex_subscription' | 'unknown';
3186
+ /**
3187
+ * BillingSourceUsage
3188
+ * @description Usage for one billing source.
3189
+ *
3190
+ * Token cost is priced at the recorded Ellipsis rate, not the provider's
3191
+ * invoice. Missing measurements are reported as pending or unresolved
3192
+ * requests, never as free ones. Amounts are in millicents. charged includes
3193
+ * compute charges and token_charged does not.
3194
+ */
3195
+ BillingSourceUsage: {
3196
+ billing_source: components['schemas']['BillingSource'];
3197
+ /**
3198
+ * Charged
3199
+ * @default 0
3200
+ */
3201
+ charged: number;
3202
+ /**
3203
+ * Pending Requests
3204
+ * @default 0
3205
+ */
3206
+ pending_requests: number;
3207
+ /**
3208
+ * Requests
3209
+ * @default 0
3210
+ */
3211
+ requests: number;
3212
+ /**
3213
+ * Token Charged
3214
+ * @default 0
3215
+ */
3216
+ token_charged: number;
3217
+ /** Token Cost */
3218
+ token_cost?: number | null;
3219
+ /**
3220
+ * Tokens
3221
+ * @default 0
3222
+ */
3223
+ tokens: number;
3224
+ /**
3225
+ * Unresolved Requests
3226
+ * @default 0
3227
+ */
3228
+ unresolved_requests: number;
3229
+ };
3184
3230
  /** BillingStatus */
3185
3231
  BillingStatus: {
3186
3232
  /**
@@ -3191,15 +3237,15 @@ interface components {
3191
3237
  };
3192
3238
  /**
3193
3239
  * BudgetAlertThresholds
3194
- * @description Independent dollar notification thresholds; null disables a window.
3240
+ * @description Independent notification thresholds in millicents. Null disables a window.
3195
3241
  */
3196
3242
  BudgetAlertThresholds: {
3197
- /** Usd 1D */
3198
- usd_1d?: number | null;
3199
- /** Usd 28D */
3200
- usd_28d?: number | null;
3201
- /** Usd 7D */
3202
- usd_7d?: number | null;
3243
+ /** Day */
3244
+ day?: number | null;
3245
+ /** Month */
3246
+ month?: number | null;
3247
+ /** Week */
3248
+ week?: number | null;
3203
3249
  };
3204
3250
  /**
3205
3251
  * BudgetAlerts
@@ -3212,12 +3258,12 @@ interface components {
3212
3258
  };
3213
3259
  /**
3214
3260
  * BudgetCeiling
3215
- * @description The organization's spend ceilings, in US dollars.
3261
+ * @description The organization's spend ceilings, in millicents.
3216
3262
  */
3217
3263
  BudgetCeiling: {
3218
3264
  /**
3219
3265
  * Session
3220
- * @description The most a single session may be budgeted, in US dollars. A session request or agent asking for more is refused with 400. Null means the platform ceiling applies.
3266
+ * @description The most a single session may be budgeted, in millicents, as a whole number of cents. A session request or agent asking for more is refused with 400. Null means the platform ceiling applies.
3221
3267
  */
3222
3268
  session?: number | null;
3223
3269
  };
@@ -3277,27 +3323,27 @@ interface components {
3277
3323
  };
3278
3324
  /**
3279
3325
  * BudgetLimits
3280
- * @description Spending ceilings over trailing 1, 7 and 28 days, in US dollars.
3326
+ * @description Spending ceilings over trailing 1, 7 and 28 days, in millicents. Each is at least 100,000 ($1) and a whole number of cents.
3281
3327
  */
3282
3328
  BudgetLimits: {
3283
- /** Usd 1D */
3284
- usd_1d: number;
3285
- /** Usd 28D */
3286
- usd_28d: number;
3287
- /** Usd 7D */
3288
- usd_7d: number;
3329
+ /** Day */
3330
+ day: number;
3331
+ /** Month */
3332
+ month: number;
3333
+ /** Week */
3334
+ week: number;
3289
3335
  };
3290
3336
  /**
3291
3337
  * BudgetOverrides
3292
- * @description Per-window overrides in US dollars. Null inherits the developer default.
3338
+ * @description Per-window overrides in millicents. Null inherits the developer default.
3293
3339
  */
3294
3340
  BudgetOverrides: {
3295
- /** Usd 1D */
3296
- usd_1d?: number | null;
3297
- /** Usd 28D */
3298
- usd_28d?: number | null;
3299
- /** Usd 7D */
3300
- usd_7d?: number | null;
3341
+ /** Day */
3342
+ day?: number | null;
3343
+ /** Month */
3344
+ month?: number | null;
3345
+ /** Week */
3346
+ week?: number | null;
3301
3347
  };
3302
3348
  /**
3303
3349
  * BudgetPolicy
@@ -3310,8 +3356,8 @@ interface components {
3310
3356
  */
3311
3357
  BudgetPolicy: {
3312
3358
  account: components['schemas']['BudgetLimits'];
3313
- /** Default Session Usd */
3314
- default_session_usd: number;
3359
+ /** Default Session */
3360
+ default_session: number;
3315
3361
  developer_defaults: components['schemas']['BudgetLimits'] | null;
3316
3362
  /** Developer Overrides */
3317
3363
  developer_overrides: {
@@ -3323,9 +3369,8 @@ interface components {
3323
3369
  * @description Prepaid credit and the actual trailing budgets enforced by the proxy.
3324
3370
  *
3325
3371
  * Budget windows roll continuously; they are not monthly credit renewals.
3326
- * Amounts preserve sub-cent precision and may be negative after overshoot.
3327
- * One admitted request can exceed a limit. Concurrent paid requests are bounded by
3328
- * the account and per-session platform allowances.
3372
+ * Amounts are in millicents and may be negative after overshoot.
3373
+ * One admitted request can exceed a limit.
3329
3374
  */
3330
3375
  BudgetSummary: {
3331
3376
  alerts: components['schemas']['BudgetAlerts'];
@@ -3334,8 +3379,8 @@ interface components {
3334
3379
  * Format: date-time
3335
3380
  */
3336
3381
  as_of: string;
3337
- /** Credit Balance Usd */
3338
- credit_balance_usd: number;
3382
+ /** Credit Balance */
3383
+ credit_balance: number;
3339
3384
  /** Credit Exhausted */
3340
3385
  credit_exhausted: boolean;
3341
3386
  developer_limits: components['schemas']['DeveloperBudgets'];
@@ -3354,13 +3399,16 @@ interface components {
3354
3399
  };
3355
3400
  /**
3356
3401
  * CheckRunAction
3357
- * @description What a completed check run did. `failed` covers the conclusions that
3358
- * mean the check did not pass on its own merits (`failure`, `timed_out`); a
3359
- * cancelled, skipped, neutral or stale check is not a failure and never
3360
- * fires (see FAILED_CHECK_RUN_CONCLUSIONS).
3402
+ * @description The state of a check run when GitHub reports it. A run created before it finishes fires its status, and `in_progress` is `started`. A finished run fires its conclusion, `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.
3403
+ * @enum {string}
3404
+ */
3405
+ CheckRunAction: 'requested' | 'queued' | 'waiting' | 'pending' | 'started' | 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale';
3406
+ /**
3407
+ * CheckSuiteAction
3408
+ * @description The conclusion of a finished check suite. `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.
3361
3409
  * @enum {string}
3362
3410
  */
3363
- CheckRunAction: 'failed';
3411
+ CheckSuiteAction: 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale' | 'startup_failure';
3364
3412
  /** ClaudeAssistantEvent */
3365
3413
  ClaudeAssistantEvent: {
3366
3414
  /** Error */
@@ -3798,6 +3846,10 @@ interface components {
3798
3846
  ellipsis: components['schemas']['CodeReviewIdentity'];
3799
3847
  /**
3800
3848
  * @default {
3849
+ * "comments": {
3850
+ * "max_per_review": 64,
3851
+ * "max_per_reviewer": 64
3852
+ * },
3801
3853
  * "on_fail": "comment",
3802
3854
  * "on_pass": "silent",
3803
3855
  * "summary": false
@@ -4901,23 +4953,23 @@ interface components {
4901
4953
  */
4902
4954
  ConfigSpendWindow: {
4903
4955
  /**
4904
- * Limit Usd
4905
- * @description The enforced configuration cap in US dollars: its own budget clamped to the platform maximum, or the maximum when unset. Account and developer limits also apply.
4956
+ * Limit
4957
+ * @description The enforced configuration cap in millicents. It is the configuration's own budget limited to the platform maximum, or the maximum when unset. Account and developer limits also apply.
4906
4958
  */
4907
- limit_usd: number;
4959
+ limit: number;
4908
4960
  /**
4909
- * Platform Max Usd
4910
- * @description The platform ceiling for this window, in US dollars.
4961
+ * Platform Max
4962
+ * @description The platform ceiling for this window, in millicents.
4911
4963
  */
4912
- platform_max_usd: number;
4964
+ platform_max: number;
4913
4965
  /**
4914
- * Spent Usd
4915
- * @description Recorded credit debits during the window across this configuration's sessions, in US dollars. Preserves sub-cent precision.
4966
+ * Spent
4967
+ * @description Recorded credit debits during the window across this configuration's sessions, in millicents.
4916
4968
  */
4917
- spent_usd: number;
4969
+ spent: number;
4918
4970
  /**
4919
4971
  * Window Days
4920
- * @description The trailing window, in days: 1, 7, or 28.
4972
+ * @description The trailing window in days, which is 1, 7, or 28.
4921
4973
  */
4922
4974
  window_days: number;
4923
4975
  };
@@ -4964,6 +5016,44 @@ interface components {
4964
5016
  */
4965
5017
  reviews: number;
4966
5018
  };
5019
+ /**
5020
+ * Cost
5021
+ * @description What something cost, in millicents.
5022
+ */
5023
+ Cost: {
5024
+ /**
5025
+ * Charged
5026
+ * @description What Ellipsis charged to credit, in millicents. It is everything except subscription tokens, and it is what the budget caps.
5027
+ * @default 0
5028
+ */
5029
+ charged: number;
5030
+ /**
5031
+ * Cpu
5032
+ * @description CPU spend in millicents.
5033
+ * @default 0
5034
+ */
5035
+ cpu: number;
5036
+ /**
5037
+ * Fee
5038
+ * @description Platform fee in millicents.
5039
+ * @default 0
5040
+ */
5041
+ fee: number;
5042
+ /** @description LLM token cost, in total and by model, split by who paid. */
5043
+ llm: components['schemas']['LlmCost'];
5044
+ /**
5045
+ * Memory
5046
+ * @description Memory spend in millicents.
5047
+ * @default 0
5048
+ */
5049
+ memory: number;
5050
+ /**
5051
+ * Total
5052
+ * @description Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee.
5053
+ * @default 0
5054
+ */
5055
+ total: number;
5056
+ };
4967
5057
  /**
4968
5058
  * CreateAgentRequest
4969
5059
  * @description Parameters for creating an agent.
@@ -5006,10 +5096,10 @@ interface components {
5006
5096
  */
5007
5097
  CreditGrant: {
5008
5098
  /**
5009
- * Amount Cents
5010
- * @description Granted credit; negative for a reversal.
5099
+ * Amount
5100
+ * @description Granted credit. It is negative for a reversal.
5011
5101
  */
5012
- amount_cents: number;
5102
+ amount: number;
5013
5103
  category: components['schemas']['CreditGrantCategory'];
5014
5104
  /**
5015
5105
  * Created At
@@ -5040,10 +5130,10 @@ interface components {
5040
5130
  /** Grants */
5041
5131
  grants: components['schemas']['CreditGrant'][];
5042
5132
  /**
5043
- * Total Granted Cents
5133
+ * Total Granted
5044
5134
  * @description Sum of grants before usage. Read the current balance from /v1/account/budget.
5045
5135
  */
5046
- total_granted_cents: number;
5136
+ total_granted: number;
5047
5137
  };
5048
5138
  /** CreditPurchaseOptions */
5049
5139
  CreditPurchaseOptions: {
@@ -5052,31 +5142,31 @@ interface components {
5052
5142
  * @description Platform fee added to purchased credit.
5053
5143
  */
5054
5144
  fee_fraction: number;
5055
- /** Max Amount Cents */
5056
- max_amount_cents: number;
5057
- /** Min Amount Cents */
5058
- min_amount_cents: number;
5145
+ /** Max Amount */
5146
+ max_amount: number;
5147
+ /** Min Amount */
5148
+ min_amount: number;
5059
5149
  /**
5060
- * Preset Amounts Cents
5150
+ * Preset Amounts
5061
5151
  * @description Suggested purchase amounts.
5062
5152
  */
5063
- preset_amounts_cents: number[];
5153
+ preset_amounts: number[];
5064
5154
  };
5065
5155
  /** CreditPurchaseReceipt */
5066
5156
  CreditPurchaseReceipt: {
5067
5157
  /**
5068
- * Amount Paid Cents
5158
+ * Amount Paid
5069
5159
  * @description Amount collected for a completed credit purchase, including the platform fee.
5070
5160
  */
5071
- amount_paid_cents: number;
5161
+ amount_paid: number;
5072
5162
  };
5073
5163
  /** CreditPurchaseRequest */
5074
5164
  CreditPurchaseRequest: {
5075
5165
  /**
5076
- * Amount Cents
5077
- * @description Credit to buy. The platform fee is added at checkout.
5166
+ * Amount
5167
+ * @description Credit to buy, in millicents, as a whole number of cents. The platform fee is added at checkout.
5078
5168
  */
5079
- amount_cents: number;
5169
+ amount: number;
5080
5170
  };
5081
5171
  /**
5082
5172
  * CronTrigger
@@ -5190,10 +5280,10 @@ interface components {
5190
5280
  };
5191
5281
  /** DeveloperBudgetDefaultWindow */
5192
5282
  DeveloperBudgetDefaultWindow: {
5193
- /** Limit Usd */
5194
- limit_usd: number;
5195
- /** Platform Max Usd */
5196
- platform_max_usd: number;
5283
+ /** Limit */
5284
+ limit: number;
5285
+ /** Platform Max */
5286
+ platform_max: number;
5197
5287
  /** Window Days */
5198
5288
  window_days: number;
5199
5289
  };
@@ -5201,14 +5291,14 @@ interface components {
5201
5291
  DeveloperBudgetWindow: {
5202
5292
  /** Exhausted */
5203
5293
  exhausted: boolean;
5204
- /** Limit Usd */
5205
- limit_usd: number | null;
5206
- /** Override Usd */
5207
- override_usd: number | null;
5208
- /** Remaining Usd */
5209
- remaining_usd: number | null;
5210
- /** Spent Usd */
5211
- spent_usd: number;
5294
+ /** Limit */
5295
+ limit: number | null;
5296
+ /** Override */
5297
+ override: number | null;
5298
+ /** Remaining */
5299
+ remaining: number | null;
5300
+ /** Spent */
5301
+ spent: number;
5212
5302
  /** Window Days */
5213
5303
  window_days: number;
5214
5304
  };
@@ -5225,30 +5315,25 @@ interface components {
5225
5315
  enabled: boolean;
5226
5316
  };
5227
5317
  /**
5228
- * DeveloperUsageBreakdown
5229
- * @description Cost for one developer (a distinct attribution_type + attribution_id)
5230
- * over the whole period, split into the four billed categories (millicents).
5231
- * Agent sessions only.
5318
+ * DeveloperUsage
5319
+ * @description One developer's agent sessions over the period. A developer is a distinct attribution_type and attribution_id.
5232
5320
  */
5233
- DeveloperUsageBreakdown: {
5321
+ DeveloperUsage: {
5234
5322
  /** Attribution Id */
5235
5323
  attribution_id: string | null;
5236
5324
  /** Attribution Login */
5237
5325
  attribution_login: string | null;
5238
5326
  /** Attribution Type */
5239
5327
  attribution_type: string | null;
5240
- /** Cost Cpu Millicents */
5241
- cost_cpu_millicents: number;
5242
- /** Cost Fee Millicents */
5243
- cost_fee_millicents: number;
5244
- /** Cost Memory Millicents */
5245
- cost_memory_millicents: number;
5246
- /** Cost Tokens Millicents */
5247
- cost_tokens_millicents: number;
5248
- /** Runs */
5328
+ /** @description What the developer's agent sessions cost. */
5329
+ cost: components['schemas']['Cost'];
5330
+ /**
5331
+ * Runs
5332
+ * @description Agent sessions the developer started.
5333
+ */
5249
5334
  runs: number;
5250
- /** Tokens */
5251
- tokens: number;
5335
+ /** @description The tokens the developer's agent sessions used. */
5336
+ tokens: components['schemas']['Tokens'];
5252
5337
  };
5253
5338
  /**
5254
5339
  * Duration
@@ -5398,6 +5483,11 @@ interface components {
5398
5483
  * @description The environment's customer-unique addressable name; usable anywhere an environment is referenced, interchangeably with the id.
5399
5484
  */
5400
5485
  name: string;
5486
+ /**
5487
+ * Raw Yaml
5488
+ * @description The environment's YAML: the file as written for environments defined in a repository, or the definition rendered as YAML for environments managed through the API. A failed sync keeps the last valid YAML.
5489
+ */
5490
+ raw_yaml: string;
5401
5491
  /**
5402
5492
  * Sha
5403
5493
  * @description The environment's content identity fingerprint.
@@ -6033,54 +6123,6 @@ interface components {
6033
6123
  FeeScheduleResponse: {
6034
6124
  fee_schedule: components['schemas']['PublicFeeSchedule'];
6035
6125
  };
6036
- /**
6037
- * FundingSource
6038
- * @enum {string}
6039
- */
6040
- FundingSource: 'ellipsis' | 'claude_subscription' | 'codex_subscription' | 'unknown';
6041
- /**
6042
- * FundingSourceUsage
6043
- * @description Actual credit debits and separately rated token usage for one funding source.
6044
- *
6045
- * Rated usage is our estimate at the recorded model rate, not an external
6046
- * provider invoice. Missing measurements are reported explicitly, not as free
6047
- * requests. Compute and carried-forward charges contribute to credit debits.
6048
- */
6049
- FundingSourceUsage: {
6050
- /**
6051
- * Charged Millicents
6052
- * @default 0
6053
- */
6054
- charged_millicents: number;
6055
- funding_source: components['schemas']['FundingSource'];
6056
- /**
6057
- * Pending Requests
6058
- * @default 0
6059
- */
6060
- pending_requests: number;
6061
- /** Rated Token Cost Millicents */
6062
- rated_token_cost_millicents?: number | null;
6063
- /**
6064
- * Requests
6065
- * @default 0
6066
- */
6067
- requests: number;
6068
- /**
6069
- * Token Charged Millicents
6070
- * @default 0
6071
- */
6072
- token_charged_millicents: number;
6073
- /**
6074
- * Tokens
6075
- * @default 0
6076
- */
6077
- tokens: number;
6078
- /**
6079
- * Unresolved Requests
6080
- * @default 0
6081
- */
6082
- unresolved_requests: number;
6083
- };
6084
6126
  /**
6085
6127
  * GetAnalyticsMetricsResponse
6086
6128
  * @description Organization-wide pull-request and review analytics, aggregated
@@ -6246,30 +6288,34 @@ interface components {
6246
6288
  };
6247
6289
  /** GetUsageOverTimeResponse */
6248
6290
  GetUsageOverTimeResponse: {
6249
- /** Agent By Model */
6250
- agent_by_model: components['schemas']['ModelUsageBreakdown'][];
6291
+ /** @description Cost and tokens of agent sessions only. */
6292
+ agent_sessions: components['schemas']['UsageTotals'];
6251
6293
  /** Billing Periods */
6252
6294
  billing_periods: components['schemas']['BillingPeriodOption'][];
6253
- /** By Funding Source */
6254
- by_funding_source?: components['schemas']['FundingSourceUsage'][];
6255
- /** By Model */
6256
- by_model: components['schemas']['ModelUsageBreakdown'][];
6257
- /** Daily */
6258
- daily: components['schemas']['UsageDailyPoint'][];
6259
- /** Developer Spend */
6260
- developer_spend: components['schemas']['DeveloperUsageBreakdown'][];
6295
+ /** By Billing Source */
6296
+ by_billing_source?: components['schemas']['BillingSourceUsage'][];
6297
+ /**
6298
+ * By Day
6299
+ * @description One entry per day of the period, oldest first, with zeros for days without usage.
6300
+ */
6301
+ by_day: components['schemas']['UsageDay'][];
6302
+ /**
6303
+ * By Developer
6304
+ * @description Agent session cost and tokens for each developer, highest cost first.
6305
+ */
6306
+ by_developer: components['schemas']['DeveloperUsage'][];
6307
+ /** @description What the period's usage has cost so far. */
6308
+ cost: components['schemas']['Cost'];
6261
6309
  /** Period End */
6262
6310
  period_end: string;
6263
6311
  /** Period Start */
6264
6312
  period_start: string;
6265
- /** Prior Total Cost Millicents */
6266
- prior_total_cost_millicents: number;
6267
- /** Prior Total Tokens */
6268
- prior_total_tokens: number;
6269
- /** Total Cost Millicents */
6270
- total_cost_millicents: number;
6271
- /** Total Tokens */
6272
- total_tokens: number;
6313
+ /** @description What the prior period cost over the same number of elapsed days. */
6314
+ prior_cost: components['schemas']['Cost'];
6315
+ /** @description The tokens the prior period used over the same number of elapsed days. */
6316
+ prior_tokens: components['schemas']['Tokens'];
6317
+ /** @description The tokens used in the period so far. */
6318
+ tokens: components['schemas']['Tokens'];
6273
6319
  };
6274
6320
  'GithubAccountFilter-Input': {
6275
6321
  /**
@@ -6392,6 +6438,30 @@ interface components {
6392
6438
  /** Url */
6393
6439
  url: string;
6394
6440
  };
6441
+ /** GithubCheckSuiteEvent */
6442
+ GithubCheckSuiteEvent: {
6443
+ action: components['schemas']['CheckSuiteAction'];
6444
+ actor: components['schemas']['SessionEventActor'] | null;
6445
+ /** App */
6446
+ app: string | null;
6447
+ /** Branch */
6448
+ branch: string | null;
6449
+ /** Conclusion */
6450
+ conclusion: string | null;
6451
+ /** Head Sha */
6452
+ head_sha: string;
6453
+ /** Pull Request Number */
6454
+ pull_request_number: number | null;
6455
+ /** Repository */
6456
+ repository: string;
6457
+ /**
6458
+ * @description discriminator enum property added by openapi-typescript
6459
+ * @enum {string}
6460
+ */
6461
+ type: 'github.check_suite';
6462
+ /** Url */
6463
+ url: string;
6464
+ };
6395
6465
  /** GithubConfig */
6396
6466
  GithubConfig: {
6397
6467
  ellipsis: components['schemas']['GithubConfigEllipsis'];
@@ -6640,8 +6710,8 @@ interface components {
6640
6710
  *
6641
6711
  * By default the token carries the installation's full permissions on all of
6642
6712
  * the installation's repositories. `permissions` narrows what it may do:
6643
- * the string `read_only` grants read access to contents, issues, metadata and
6644
- * pull requests; a map requests explicit levels per GitHub App permission
6713
+ * the string `read_only` grants read access to every scope the installation
6714
+ * granted; a map requests explicit levels per GitHub App permission
6645
6715
  * scope (e.g. `{contents: read, pull_requests: write}`) and may never exceed
6646
6716
  * what the installation granted. `repositories` scopes the token to exactly
6647
6717
  * the listed repos, by name (they must belong to the installation).
@@ -6666,8 +6736,8 @@ interface components {
6666
6736
  *
6667
6737
  * By default the token carries the installation's full permissions on all of
6668
6738
  * the installation's repositories. `permissions` narrows what it may do:
6669
- * the string `read_only` grants read access to contents, issues, metadata and
6670
- * pull requests; a map requests explicit levels per GitHub App permission
6739
+ * the string `read_only` grants read access to every scope the installation
6740
+ * granted; a map requests explicit levels per GitHub App permission
6671
6741
  * scope (e.g. `{contents: read, pull_requests: write}`) and may never exceed
6672
6742
  * what the installation granted. `repositories` scopes the token to exactly
6673
6743
  * the listed repos, by name (they must belong to the installation).
@@ -6835,6 +6905,30 @@ interface components {
6835
6905
  /** Repo Id */
6836
6906
  repo_id: number;
6837
6907
  };
6908
+ /** GithubStatusEvent */
6909
+ GithubStatusEvent: {
6910
+ action: components['schemas']['StatusAction'];
6911
+ actor: components['schemas']['SessionEventActor'] | null;
6912
+ /** Branch */
6913
+ branch: string | null;
6914
+ /** Context */
6915
+ context: string;
6916
+ /** Head Sha */
6917
+ head_sha: string;
6918
+ /** Pull Request Number */
6919
+ pull_request_number: number | null;
6920
+ /** Repository */
6921
+ repository: string;
6922
+ /** State */
6923
+ state: string;
6924
+ /**
6925
+ * @description discriminator enum property added by openapi-typescript
6926
+ * @enum {string}
6927
+ */
6928
+ type: 'github.status';
6929
+ /** Url */
6930
+ url: string;
6931
+ };
6838
6932
  /**
6839
6933
  * GithubUser
6840
6934
  * @description This is a full user account. It's the most amount of info we need to represent a GitHub user.
@@ -6928,6 +7022,32 @@ interface components {
6928
7022
  /** User View Type */
6929
7023
  user_view_type?: string | null;
6930
7024
  };
7025
+ /** GithubWorkflowRunEvent */
7026
+ GithubWorkflowRunEvent: {
7027
+ action: components['schemas']['WorkflowRunAction'];
7028
+ actor: components['schemas']['SessionEventActor'] | null;
7029
+ /** Branch */
7030
+ branch: string | null;
7031
+ /** Conclusion */
7032
+ conclusion: string | null;
7033
+ /** Head Sha */
7034
+ head_sha: string;
7035
+ /** Name */
7036
+ name: string;
7037
+ /** Pull Request Number */
7038
+ pull_request_number: number | null;
7039
+ /** Repository */
7040
+ repository: string;
7041
+ /** Run Number */
7042
+ run_number: number;
7043
+ /**
7044
+ * @description discriminator enum property added by openapi-typescript
7045
+ * @enum {string}
7046
+ */
7047
+ type: 'github.workflow_run';
7048
+ /** Url */
7049
+ url: string;
7050
+ };
6931
7051
  /** HTTPValidationError */
6932
7052
  HTTPValidationError: {
6933
7053
  /** Detail */
@@ -6939,11 +7059,8 @@ interface components {
6939
7059
  * @description Session counts and spend attributed to one saved handler.
6940
7060
  */
6941
7061
  HandlerMetricsResponse: {
6942
- /**
6943
- * Cost
6944
- * @description Accumulated cost of the selected sessions in millicents (100,000 per US dollar), including LLM, CPU, memory, and fees.
6945
- */
6946
- cost: number;
7062
+ /** @description What the selected sessions cost together. */
7063
+ cost: components['schemas']['Cost'];
6947
7064
  /**
6948
7065
  * End
6949
7066
  * @description Exclusive session creation-time bound, or null for no upper bound.
@@ -7626,6 +7743,49 @@ interface components {
7626
7743
  /** User Tokens */
7627
7744
  user_tokens: components['schemas']['UserTokenApi'][];
7628
7745
  };
7746
+ /**
7747
+ * LlmCost
7748
+ * @description What LLM tokens cost, in total and by model.
7749
+ */
7750
+ LlmCost: {
7751
+ /** @description Token cost across every model. */
7752
+ all: components['schemas']['LlmCostSplit'];
7753
+ /**
7754
+ * By Model
7755
+ * @description Token cost for each model that used tokens.
7756
+ */
7757
+ by_model: components['schemas']['ModelLlmCostSplit'][];
7758
+ };
7759
+ /**
7760
+ * LlmCostSplit
7761
+ * @description What LLM tokens cost, in millicents, split by who paid (Ellipsis credit or the user's own subscription).
7762
+ */
7763
+ LlmCostSplit: {
7764
+ /**
7765
+ * Claude Subscription
7766
+ * @description Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.
7767
+ * @default 0
7768
+ */
7769
+ claude_subscription: number;
7770
+ /**
7771
+ * Codex Subscription
7772
+ * @description Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.
7773
+ * @default 0
7774
+ */
7775
+ codex_subscription: number;
7776
+ /**
7777
+ * Platform
7778
+ * @description Token cost charged to Ellipsis credit, in millicents.
7779
+ * @default 0
7780
+ */
7781
+ platform: number;
7782
+ /**
7783
+ * Total
7784
+ * @description All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.
7785
+ * @default 0
7786
+ */
7787
+ total: number;
7788
+ };
7629
7789
  /**
7630
7790
  * McpRemoteServer
7631
7791
  * @description A bring-your-own remote MCP server: the harness talks HTTP to `url`.
@@ -7979,7 +8139,7 @@ interface components {
7979
8139
  /**
7980
8140
  * MessageRequeuedPayload
7981
8141
  * @description message_requeued: a turn was interrupted before answering, so the
7982
- * message goes back to the inbox with a new pending turn.
8142
+ * message goes back to the inbox with a new queued turn.
7983
8143
  */
7984
8144
  MessageRequeuedPayload: {
7985
8145
  /** Message Id */
@@ -8088,6 +8248,41 @@ interface components {
8088
8248
  */
8089
8249
  reasoning_efforts?: (components['schemas']['EffortLevel'] | components['schemas']['CodexEffortLevel'])[];
8090
8250
  };
8251
+ /**
8252
+ * ModelLlmCostSplit
8253
+ * @description What one model's tokens cost, in millicents, split by who paid.
8254
+ */
8255
+ ModelLlmCostSplit: {
8256
+ /**
8257
+ * Claude Subscription
8258
+ * @description Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.
8259
+ * @default 0
8260
+ */
8261
+ claude_subscription: number;
8262
+ /**
8263
+ * Codex Subscription
8264
+ * @description Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.
8265
+ * @default 0
8266
+ */
8267
+ codex_subscription: number;
8268
+ /**
8269
+ * Model
8270
+ * @description The model that used these tokens.
8271
+ */
8272
+ model: string;
8273
+ /**
8274
+ * Platform
8275
+ * @description Token cost charged to Ellipsis credit, in millicents.
8276
+ * @default 0
8277
+ */
8278
+ platform: number;
8279
+ /**
8280
+ * Total
8281
+ * @description All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.
8282
+ * @default 0
8283
+ */
8284
+ total: number;
8285
+ };
8091
8286
  /**
8092
8287
  * ModelManufacturer
8093
8288
  * @description Who BUILT a model. Never who serves it.
@@ -8095,7 +8290,6 @@ interface components {
8095
8290
  * Serving path is irrelevant here. Anthropic built every Claude model, so all of
8096
8291
  * them are ANTHROPIC even though OpenRouter is what actually serves them.
8097
8292
  * Likewise the `gpt-5.6-*` rows are OPENAI (OpenAI's models, resold to us by
8098
- * OpenRouter), and GLM is ZAI (Z.ai's model, served by DeepInfra via
8099
8293
  * OpenRouter).
8100
8294
  *
8101
8295
  * So this is deliberately NOT derived from `EgressRoute.provider`: routing is an
@@ -8107,56 +8301,60 @@ interface components {
8107
8301
  * model.
8108
8302
  * @enum {string}
8109
8303
  */
8110
- ModelManufacturer: 'anthropic' | 'openai' | 'zai' | 'minimax' | 'moonshot';
8304
+ ModelManufacturer: 'anthropic' | 'openai';
8111
8305
  /** ModelRateCardApi */
8112
8306
  ModelRateCardApi: {
8113
- /** Cache Read Millicents Per 1M Tokens */
8114
- cache_read_millicents_per_1m_tokens: number;
8115
- /** Cache Write 1H Millicents Per 1M Tokens */
8116
- cache_write_1h_millicents_per_1m_tokens: number;
8117
- /** Cache Write 5M Millicents Per 1M Tokens */
8118
- cache_write_5m_millicents_per_1m_tokens: number;
8119
- /** Input Millicents Per 1M Tokens */
8120
- input_millicents_per_1m_tokens: number;
8121
- /** Output Millicents Per 1M Tokens */
8122
- output_millicents_per_1m_tokens: number;
8307
+ /** Cache Read Per 1M Tokens */
8308
+ cache_read_per_1m_tokens: number;
8309
+ /** Cache Write 1H Per 1M Tokens */
8310
+ cache_write_1h_per_1m_tokens: number;
8311
+ /** Cache Write 5M Per 1M Tokens */
8312
+ cache_write_5m_per_1m_tokens: number;
8313
+ /** Input Per 1M Tokens */
8314
+ input_per_1m_tokens: number;
8315
+ /** Output Per 1M Tokens */
8316
+ output_per_1m_tokens: number;
8123
8317
  };
8124
8318
  /**
8125
- * ModelUsageBreakdown
8126
- * @description Usage and cost for one model over the whole period, split into the four
8127
- * billed categories.
8319
+ * ModelTokenCounts
8320
+ * @description Token counts for one model.
8128
8321
  */
8129
- ModelUsageBreakdown: {
8322
+ ModelTokenCounts: {
8130
8323
  /**
8131
- * Cost Cpu Millicents
8132
- * @description CPU cost, in millicents.
8324
+ * Cache Creation
8325
+ * @description Tokens written to the prompt cache.
8326
+ * @default 0
8133
8327
  */
8134
- cost_cpu_millicents: number;
8328
+ cache_creation: number;
8135
8329
  /**
8136
- * Cost Fee Millicents
8137
- * @description Platform fee, in millicents.
8330
+ * Cache Read
8331
+ * @description Tokens read from the prompt cache.
8332
+ * @default 0
8138
8333
  */
8139
- cost_fee_millicents: number;
8334
+ cache_read: number;
8140
8335
  /**
8141
- * Cost Memory Millicents
8142
- * @description Memory cost, in millicents.
8336
+ * Input
8337
+ * @description Input tokens used.
8338
+ * @default 0
8143
8339
  */
8144
- cost_memory_millicents: number;
8340
+ input: number;
8145
8341
  /**
8146
- * Cost Tokens Millicents
8147
- * @description LLM token cost, in millicents (1000 = $0.01).
8342
+ * Model
8343
+ * @description The model that used these tokens.
8148
8344
  */
8149
- cost_tokens_millicents: number;
8345
+ model: string;
8150
8346
  /**
8151
- * Model Id
8152
- * @description The model's identifier.
8347
+ * Output
8348
+ * @description Output tokens used.
8349
+ * @default 0
8153
8350
  */
8154
- model_id: string;
8351
+ output: number;
8155
8352
  /**
8156
- * Tokens
8157
- * @description All tokens used on this model over the period.
8353
+ * Total
8354
+ * @description All tokens used, including prompt cache reads and writes. Token cost is priced on this.
8355
+ * @default 0
8158
8356
  */
8159
- tokens: number;
8357
+ total: number;
8160
8358
  };
8161
8359
  /** ModelsListResponse */
8162
8360
  ModelsListResponse: {
@@ -8287,7 +8485,7 @@ interface components {
8287
8485
  /** @default {} */
8288
8486
  github: components['schemas']['GithubPermissions-Output'];
8289
8487
  };
8290
- PlatformSessionRecord: components['schemas']['SessionClosedRecord'] | components['schemas']['MessageReceivedRecord'] | components['schemas']['MessageDeliveredRecord'] | components['schemas']['MessageRequeuedRecord'] | components['schemas']['TurnStartedRecord'] | components['schemas']['TurnEndedRecord'] | components['schemas']['EnvironmentPhaseRecord'] | components['schemas']['EnvironmentOutputRecord'] | components['schemas']['EnvironmentReadyRecord'];
8488
+ PlatformSessionRecord: components['schemas']['SessionClosedRecord'] | components['schemas']['MessageReceivedRecord'] | components['schemas']['MessageDeliveredRecord'] | components['schemas']['MessageRequeuedRecord'] | components['schemas']['TurnQueuedRecord'] | components['schemas']['TurnStartedRecord'] | components['schemas']['TurnEndedRecord'] | components['schemas']['EnvironmentPhaseRecord'] | components['schemas']['EnvironmentOutputRecord'] | components['schemas']['EnvironmentReadyRecord'];
8291
8489
  /**
8292
8490
  * PollCliAuthResponse
8293
8491
  * @description The state of a device-code flow. Poll until `status` leaves `pending`.
@@ -8312,17 +8510,17 @@ interface components {
8312
8510
  PromptBlockedReason: 'mention_surface' | 'non_interactive' | 'harness_single_turn' | 'budget_exhausted' | 'closed';
8313
8511
  /**
8314
8512
  * PublicFeeSchedule
8315
- * @description Rates in US dollars; purchase_fee_fraction is a fraction, e.g. 0.10.
8513
+ * @description Rates in millicents. purchase_fee_fraction is a fraction, for example 0.10.
8316
8514
  */
8317
8515
  PublicFeeSchedule: {
8318
- /** Cpu Usd Per Core Hour */
8319
- cpu_usd_per_core_hour: number;
8320
- /** Memory Usd Per Gib Hour */
8321
- memory_usd_per_gib_hour: number;
8516
+ /** Cpu Per Core Hour */
8517
+ cpu_per_core_hour: number;
8518
+ /** Memory Per Gib Hour */
8519
+ memory_per_gib_hour: number;
8322
8520
  /** Purchase Fee Fraction */
8323
8521
  purchase_fee_fraction: number;
8324
- /** Signup Credit Usd */
8325
- signup_credit_usd: number;
8522
+ /** Signup Credit */
8523
+ signup_credit: number;
8326
8524
  };
8327
8525
  /**
8328
8526
  * PullRequestAction
@@ -8555,16 +8753,7 @@ interface components {
8555
8753
  };
8556
8754
  /**
8557
8755
  * ReactCheckRun
8558
- * @description A CI/CD check completing on a commit — a `check_run` from GitHub
8559
- * Actions or any other app that reports checks. `names` narrows to the check
8560
- * runs whose name matches (exact, or a prefix ending in `*`); `branch` is the
8561
- * check suite's head branch. The `for:` audience is the commit's author (the
8562
- * pull request author when the check is attached to one), never the CI app
8563
- * that completed the check — a check run's sender is always a bot.
8564
- *
8565
- * Delivery needs the Ellipsis GitHub App's `checks` permission on the
8566
- * installation; without it GitHub sends no check events and the webhook
8567
- * handler refuses the ones it does see.
8756
+ * @description A check run changing state on a commit. A check run is a GitHub Actions job or a check another CI app reports. `on` lists the states that fire. `names` matches check names exactly or by a prefix ending in `*`. `branch` is the branch the check ran on. `for` is the author of the commit the check ran on. Needs the Checks permission.
8568
8757
  */
8569
8758
  'ReactCheckRun-Input': {
8570
8759
  /** Branch */
@@ -8578,16 +8767,7 @@ interface components {
8578
8767
  };
8579
8768
  /**
8580
8769
  * ReactCheckRun
8581
- * @description A CI/CD check completing on a commit — a `check_run` from GitHub
8582
- * Actions or any other app that reports checks. `names` narrows to the check
8583
- * runs whose name matches (exact, or a prefix ending in `*`); `branch` is the
8584
- * check suite's head branch. The `for:` audience is the commit's author (the
8585
- * pull request author when the check is attached to one), never the CI app
8586
- * that completed the check — a check run's sender is always a bot.
8587
- *
8588
- * Delivery needs the Ellipsis GitHub App's `checks` permission on the
8589
- * installation; without it GitHub sends no check events and the webhook
8590
- * handler refuses the ones it does see.
8770
+ * @description A check run changing state on a commit. A check run is a GitHub Actions job or a check another CI app reports. `on` lists the states that fire. `names` matches check names exactly or by a prefix ending in `*`. `branch` is the branch the check ran on. `for` is the author of the commit the check ran on. Needs the Checks permission.
8591
8771
  */
8592
8772
  'ReactCheckRun-Output': {
8593
8773
  /**
@@ -8610,8 +8790,47 @@ interface components {
8610
8790
  on: components['schemas']['CheckRunAction'][];
8611
8791
  repositories: components['schemas']['RepositoryFilter-Output'];
8612
8792
  };
8613
- /** ReactIssue */
8614
- 'ReactIssue-Input': {
8793
+ /**
8794
+ * ReactCheckSuite
8795
+ * @description Every check one CI app reported on a commit finishing. GitHub reports a check suite only when it finishes, so `on` takes only finished states. `apps` matches the reporting app slug, such as `github-actions`, exactly or by a prefix ending in `*`. `branch` and `for` work as on `check_run`. Needs the Checks permission.
8796
+ */
8797
+ 'ReactCheckSuite-Input': {
8798
+ /** Apps */
8799
+ apps?: string[];
8800
+ /** Branch */
8801
+ branch?: string[];
8802
+ for?: components['schemas']['GithubAccountSelector-Input'];
8803
+ /** On */
8804
+ on?: components['schemas']['CheckSuiteAction'][];
8805
+ repositories?: components['schemas']['RepositoryFilter-Input'];
8806
+ };
8807
+ /**
8808
+ * ReactCheckSuite
8809
+ * @description Every check one CI app reported on a commit finishing. GitHub reports a check suite only when it finishes, so `on` takes only finished states. `apps` matches the reporting app slug, such as `github-actions`, exactly or by a prefix ending in `*`. `branch` and `for` work as on `check_run`. Needs the Checks permission.
8810
+ */
8811
+ 'ReactCheckSuite-Output': {
8812
+ /**
8813
+ * Apps
8814
+ * @default []
8815
+ */
8816
+ apps: string[];
8817
+ /**
8818
+ * Branch
8819
+ * @default []
8820
+ */
8821
+ branch: string[];
8822
+ for: components['schemas']['GithubAccountSelector-Output'];
8823
+ /**
8824
+ * On
8825
+ * @default [
8826
+ * "failed"
8827
+ * ]
8828
+ */
8829
+ on: components['schemas']['CheckSuiteAction'][];
8830
+ repositories: components['schemas']['RepositoryFilter-Output'];
8831
+ };
8832
+ /** ReactIssue */
8833
+ 'ReactIssue-Input': {
8615
8834
  for?: components['schemas']['GithubAccountSelector-Input'];
8616
8835
  /** Labels */
8617
8836
  labels?: string[];
@@ -8783,6 +9002,45 @@ interface components {
8783
9002
  };
8784
9003
  /** ReactSlackChannel */
8785
9004
  ReactSlackChannel: Record<string, never>;
9005
+ /**
9006
+ * ReactStatus
9007
+ * @description A commit status changing state, from CI that posts statuses instead of checks. `names` matches status contexts exactly or by a prefix ending in `*`. `branch` matches when any branch GitHub lists for the commit matches. `for` works as on `check_run`. Needs the Commit statuses permission.
9008
+ */
9009
+ 'ReactStatus-Input': {
9010
+ /** Branch */
9011
+ branch?: string[];
9012
+ for?: components['schemas']['GithubAccountSelector-Input'];
9013
+ /** Names */
9014
+ names?: string[];
9015
+ /** On */
9016
+ on?: components['schemas']['StatusAction'][];
9017
+ repositories?: components['schemas']['RepositoryFilter-Input'];
9018
+ };
9019
+ /**
9020
+ * ReactStatus
9021
+ * @description A commit status changing state, from CI that posts statuses instead of checks. `names` matches status contexts exactly or by a prefix ending in `*`. `branch` matches when any branch GitHub lists for the commit matches. `for` works as on `check_run`. Needs the Commit statuses permission.
9022
+ */
9023
+ 'ReactStatus-Output': {
9024
+ /**
9025
+ * Branch
9026
+ * @default []
9027
+ */
9028
+ branch: string[];
9029
+ for: components['schemas']['GithubAccountSelector-Output'];
9030
+ /**
9031
+ * Names
9032
+ * @default []
9033
+ */
9034
+ names: string[];
9035
+ /**
9036
+ * On
9037
+ * @default [
9038
+ * "failed"
9039
+ * ]
9040
+ */
9041
+ on: components['schemas']['StatusAction'][];
9042
+ repositories: components['schemas']['RepositoryFilter-Output'];
9043
+ };
8786
9044
  /**
8787
9045
  * ReactTrigger
8788
9046
  * @description An event trigger: exactly one surface block names the events to match.
@@ -8794,6 +9052,7 @@ interface components {
8794
9052
  */
8795
9053
  'ReactTrigger-Input': {
8796
9054
  check_run?: components['schemas']['ReactCheckRun-Input'] | null;
9055
+ check_suite?: components['schemas']['ReactCheckSuite-Input'] | null;
8797
9056
  /** Enabled */
8798
9057
  enabled?: boolean;
8799
9058
  issue?: components['schemas']['ReactIssue-Input'] | null;
@@ -8803,11 +9062,13 @@ interface components {
8803
9062
  release?: components['schemas']['ReactRelease-Input'] | null;
8804
9063
  sentry?: components['schemas']['ReactSentry-Input'] | null;
8805
9064
  slack_channel?: components['schemas']['ReactSlackChannel'] | null;
9065
+ status?: components['schemas']['ReactStatus-Input'] | null;
8806
9066
  /**
8807
9067
  * @description discriminator enum property added by openapi-typescript
8808
9068
  * @enum {string}
8809
9069
  */
8810
9070
  type: 'react';
9071
+ workflow_run?: components['schemas']['ReactWorkflowRun-Input'] | null;
8811
9072
  };
8812
9073
  /**
8813
9074
  * ReactTrigger
@@ -8820,6 +9081,7 @@ interface components {
8820
9081
  */
8821
9082
  'ReactTrigger-Output': {
8822
9083
  check_run: components['schemas']['ReactCheckRun-Output'] | null;
9084
+ check_suite: components['schemas']['ReactCheckSuite-Output'] | null;
8823
9085
  /**
8824
9086
  * Enabled
8825
9087
  * @default true
@@ -8832,11 +9094,52 @@ interface components {
8832
9094
  release: components['schemas']['ReactRelease-Output'] | null;
8833
9095
  sentry: components['schemas']['ReactSentry-Output'] | null;
8834
9096
  slack_channel: components['schemas']['ReactSlackChannel'] | null;
9097
+ status: components['schemas']['ReactStatus-Output'] | null;
8835
9098
  /**
8836
9099
  * @description discriminator enum property added by openapi-typescript
8837
9100
  * @enum {string}
8838
9101
  */
8839
9102
  type: 'react';
9103
+ workflow_run: components['schemas']['ReactWorkflowRun-Output'] | null;
9104
+ };
9105
+ /**
9106
+ * ReactWorkflowRun
9107
+ * @description A GitHub Actions workflow run changing state. `names` matches workflow names exactly or by a prefix ending in `*`. `branch` is the branch the run is for. `for` works as on `check_run`. Needs the Actions permission.
9108
+ */
9109
+ 'ReactWorkflowRun-Input': {
9110
+ /** Branch */
9111
+ branch?: string[];
9112
+ for?: components['schemas']['GithubAccountSelector-Input'];
9113
+ /** Names */
9114
+ names?: string[];
9115
+ /** On */
9116
+ on?: components['schemas']['WorkflowRunAction'][];
9117
+ repositories?: components['schemas']['RepositoryFilter-Input'];
9118
+ };
9119
+ /**
9120
+ * ReactWorkflowRun
9121
+ * @description A GitHub Actions workflow run changing state. `names` matches workflow names exactly or by a prefix ending in `*`. `branch` is the branch the run is for. `for` works as on `check_run`. Needs the Actions permission.
9122
+ */
9123
+ 'ReactWorkflowRun-Output': {
9124
+ /**
9125
+ * Branch
9126
+ * @default []
9127
+ */
9128
+ branch: string[];
9129
+ for: components['schemas']['GithubAccountSelector-Output'];
9130
+ /**
9131
+ * Names
9132
+ * @default []
9133
+ */
9134
+ names: string[];
9135
+ /**
9136
+ * On
9137
+ * @default [
9138
+ * "failed"
9139
+ * ]
9140
+ */
9141
+ on: components['schemas']['WorkflowRunAction'][];
9142
+ repositories: components['schemas']['RepositoryFilter-Output'];
8840
9143
  };
8841
9144
  /**
8842
9145
  * RecentPullRequest
@@ -9018,16 +9321,13 @@ interface components {
9018
9321
  base_sha: string;
9019
9322
  /**
9020
9323
  * Budget
9021
- * @description The reviewer sessions' spend budgets together, in US dollars.
9324
+ * @description The reviewer sessions' spend budgets together, in millicents.
9022
9325
  */
9023
9326
  budget: number;
9024
9327
  /** Comments */
9025
9328
  comments: components['schemas']['ReviewComment'][];
9026
- /**
9027
- * Cost
9028
- * @description What the reviewer sessions cost together, in millicents.
9029
- */
9030
- cost: number;
9329
+ /** @description What the reviewer sessions cost together. */
9330
+ cost: components['schemas']['Cost'];
9031
9331
  /**
9032
9332
  * Created At
9033
9333
  * Format: date-time
@@ -9062,11 +9362,8 @@ interface components {
9062
9362
  reviewers: components['schemas']['ReviewReviewer'][];
9063
9363
  /** @description running: reviewers are working. posted: one GitHub review was posted. empty: the review passed silently, so nothing was posted. failed: no reviewer finished or GitHub refused the review. */
9064
9364
  status: components['schemas']['CodeReviewStatus'];
9065
- /**
9066
- * Tokens
9067
- * @description Tokens the reviewer sessions consumed together, including prompt-cache reads and writes.
9068
- */
9069
- tokens: number;
9365
+ /** @description Tokens the reviewer sessions used together. */
9366
+ tokens: components['schemas']['Tokens'];
9070
9367
  };
9071
9368
  /**
9072
9369
  * ReviewActor
@@ -9224,6 +9521,19 @@ interface components {
9224
9521
  */
9225
9522
  thumbs_up: number;
9226
9523
  };
9524
+ /** ReviewComments */
9525
+ ReviewComments: {
9526
+ /**
9527
+ * Max Per Review
9528
+ * @default 64
9529
+ */
9530
+ max_per_review: number;
9531
+ /**
9532
+ * Max Per Reviewer
9533
+ * @default 64
9534
+ */
9535
+ max_per_reviewer: number;
9536
+ };
9227
9537
  /**
9228
9538
  * ReviewConfig
9229
9539
  * @description A code review config: a kind: code_review file synced from a
@@ -9262,6 +9572,11 @@ interface components {
9262
9572
  * @description The display name from the file's ellipsis.name, or null when the file sets none.
9263
9573
  */
9264
9574
  name?: string | null;
9575
+ /**
9576
+ * Raw Yaml
9577
+ * @description The config's YAML file as written. A failed sync keeps the last valid YAML.
9578
+ */
9579
+ raw_yaml: string;
9265
9580
  /**
9266
9581
  * Sha
9267
9582
  * @description The config's content identity: it changes with every edit that changes how reviews run.
@@ -9379,9 +9694,18 @@ interface components {
9379
9694
  * @description What the posted review is. A review passes when no reviewer returned a
9380
9695
  * blocking comment and fails otherwise; the pass and fail events are the
9381
9696
  * GitHub review the platform submits in each case. `summary` asks every
9382
- * reviewer for the text the body opens with.
9697
+ * reviewer for the text the body opens with. `comments` caps the comments
9698
+ * one review posts and each reviewer returns; a reviewer's own
9699
+ * `comments.max` wins over `comments.max_per_reviewer`.
9383
9700
  */
9384
9701
  ReviewOutputConfig: {
9702
+ /**
9703
+ * @default {
9704
+ * "max_per_review": 64,
9705
+ * "max_per_reviewer": 64
9706
+ * }
9707
+ */
9708
+ comments: components['schemas']['ReviewComments'];
9385
9709
  /**
9386
9710
  * On Fail
9387
9711
  * @default comment
@@ -9574,6 +9898,8 @@ interface components {
9574
9898
  claude_code?: components['schemas']['ClaudeConfig-Output'] | null;
9575
9899
  /** @description Codex input and native options. Set exactly one of claude_code or codex. */
9576
9900
  codex?: components['schemas']['CodexConfig-Output'] | null;
9901
+ /** @default {} */
9902
+ comments: components['schemas']['ReviewerComments'];
9577
9903
  /**
9578
9904
  * Environment
9579
9905
  * @default {
@@ -9615,6 +9941,11 @@ interface components {
9615
9941
  [key: string]: unknown;
9616
9942
  };
9617
9943
  });
9944
+ /** ReviewerComments */
9945
+ ReviewerComments: {
9946
+ /** Max */
9947
+ max?: number | null;
9948
+ };
9618
9949
  /**
9619
9950
  * ReviewerUsage
9620
9951
  * @description A person who reviewed pull requests in the window.
@@ -10303,7 +10634,7 @@ interface components {
10303
10634
  attribution: components['schemas']['SessionAttribution'];
10304
10635
  /**
10305
10636
  * Budget
10306
- * @description The spend budget enforced for this session, in US dollars, after resolving defaults and ceilings.
10637
+ * @description The spend budget enforced for this session, in millicents, after resolving defaults and ceilings.
10307
10638
  * @default 0
10308
10639
  */
10309
10640
  budget: number;
@@ -10313,8 +10644,8 @@ interface components {
10313
10644
  codex: components['schemas']['CodexConfig-Output'] | null;
10314
10645
  /** @description Whether the session can take more messages, and whether an agent is warm to answer one. */
10315
10646
  conversation: components['schemas']['SessionConversation'];
10316
- /** @description What the session has cost so far, in millicents, broken down by leg and carrying its own total. */
10317
- cost: components['schemas']['SessionCost'];
10647
+ /** @description What the session has cost so far. */
10648
+ cost: components['schemas']['Cost'];
10318
10649
  /**
10319
10650
  * Created At
10320
10651
  * Format: date-time
@@ -10327,7 +10658,7 @@ interface components {
10327
10658
  * Event
10328
10659
  * @description The typed external event that started the session; null for direct and scheduled starts.
10329
10660
  */
10330
- event: (components['schemas']['GithubPullRequestEvent'] | components['schemas']['GithubIssueEvent'] | components['schemas']['GithubPushEvent'] | components['schemas']['GithubCheckRunEvent'] | components['schemas']['GithubReleaseEvent'] | components['schemas']['LinearIssueEvent'] | components['schemas']['SlackMessageEvent'] | components['schemas']['SlackChannelCreatedEvent'] | components['schemas']['SentryAlertEvent']) | null;
10661
+ event: (components['schemas']['GithubPullRequestEvent'] | components['schemas']['GithubIssueEvent'] | components['schemas']['GithubPushEvent'] | components['schemas']['GithubCheckRunEvent'] | components['schemas']['GithubCheckSuiteEvent'] | components['schemas']['GithubWorkflowRunEvent'] | components['schemas']['GithubStatusEvent'] | components['schemas']['GithubReleaseEvent'] | components['schemas']['LinearIssueEvent'] | components['schemas']['SlackMessageEvent'] | components['schemas']['SlackChannelCreatedEvent'] | components['schemas']['SentryAlertEvent']) | null;
10331
10662
  /** @description What the session did to git, one entry per repository in its workspace: the commit and branch it sits on, per-file line counts for its uncommitted changes, and the pull requests it opened. Null if nothing was ever captured. */
10332
10663
  git: components['schemas']['SessionGit'] | null;
10333
10664
  /** @description The saved handler and its effective display name when this session started, frozen at creation. Null for built-in responders, legacy sessions, and sessions started without a handler. */
@@ -10360,8 +10691,8 @@ interface components {
10360
10691
  source: components['schemas']['SessionSource'];
10361
10692
  /** @description The latest live summary of the session's progress while it runs, and when it was generated. */
10362
10693
  summary: components['schemas']['SessionSummary'] | null;
10363
- /** @description The tokens the session spent and the model they went to. `total` includes the prompt-cache lanes. */
10364
- tokens: components['schemas']['SessionTokens'];
10694
+ /** @description The tokens the session has used so far. */
10695
+ tokens: components['schemas']['Tokens'];
10365
10696
  /** @description The turn in progress, or the latest one when none is running. Null until the session has a message. Wait on it: the message you sent is answered when the turn with your message's `turn_id` reaches a final status. */
10366
10697
  turn: components['schemas']['SessionTurn'] | null;
10367
10698
  /**
@@ -10413,10 +10744,8 @@ interface components {
10413
10744
  attribution_request_limit: number;
10414
10745
  /** Bucket Seconds */
10415
10746
  bucket_seconds: number;
10416
- /** Charged Millicents */
10417
- charged_millicents: number;
10418
- /** External Token Value Millicents */
10419
- external_token_value_millicents: number;
10747
+ /** Charged */
10748
+ charged: number;
10420
10749
  /**
10421
10750
  * Historical Entries
10422
10751
  * @description Carried-forward billing totals without per-request measurements. Included in spend, excluded from the timeline and request counts.
@@ -10473,15 +10802,15 @@ interface components {
10473
10802
  };
10474
10803
  /** SessionBudgetDefault */
10475
10804
  SessionBudgetDefault: {
10476
- /** Budget Usd */
10477
- budget_usd: number;
10805
+ /** Budget */
10806
+ budget: number;
10478
10807
  /**
10479
- * Ceiling Usd
10808
+ * Ceiling
10480
10809
  * @description Current effective session ceiling from /account/settings.
10481
10810
  */
10482
- ceiling_usd: number;
10483
- /** Platform Max Usd */
10484
- platform_max_usd: number;
10811
+ ceiling: number;
10812
+ /** Platform Max */
10813
+ platform_max: number;
10485
10814
  };
10486
10815
  /**
10487
10816
  * SessionCapability
@@ -10720,50 +11049,10 @@ interface components {
10720
11049
  */
10721
11050
  interactive: boolean;
10722
11051
  };
10723
- /**
10724
- * SessionCost
10725
- * @description What a session (or one turn of it) cost, in millicents.
10726
- *
10727
- * `llm` is deliberately NOT called `tokens`: it would sit beside the `tokens`
10728
- * object and read as "the token count's cost" rather than "the cost of the
10729
- * LLM leg".
10730
- */
10731
- SessionCost: {
10732
- /**
10733
- * Cpu
10734
- * @description CPU spend in millicents.
10735
- * @default 0
10736
- */
10737
- cpu: number;
10738
- /**
10739
- * Fee
10740
- * @description Platform fee in millicents.
10741
- * @default 0
10742
- */
10743
- fee: number;
10744
- /**
10745
- * Llm
10746
- * @description LLM spend in millicents.
10747
- * @default 0
10748
- */
10749
- llm: number;
10750
- /**
10751
- * Memory
10752
- * @description Memory spend in millicents.
10753
- * @default 0
10754
- */
10755
- memory: number;
10756
- /**
10757
- * Total
10758
- * @description The grand total in millicents: llm + cpu + memory + fee.
10759
- * @default 0
10760
- */
10761
- total: number;
10762
- };
10763
11052
  /** SessionCostCategory */
10764
11053
  SessionCostCategory: {
10765
- /** Charged Millicents */
10766
- charged_millicents: number;
11054
+ /** Charged */
11055
+ charged: number;
10767
11056
  /** Items */
10768
11057
  items: components['schemas']['SessionSpendItem'][];
10769
11058
  /** Key */
@@ -11122,7 +11411,7 @@ interface components {
11122
11411
  SessionMessageResponse: {
11123
11412
  /** @description The message. */
11124
11413
  message: components['schemas']['SessionMessage'];
11125
- /** @description The turn that will answer the message. Wait on it: poll GET /v1/sessions/{id}/turns/{turn_id} or watch the stream's session frames until its status is final. */
11414
+ /** @description The turn that will answer the message. Wait on it: poll GET /v1/sessions/{session_id}/turns/{id} or watch the stream's session frames until its status is final. */
11126
11415
  turn: components['schemas']['SessionTurn'];
11127
11416
  };
11128
11417
  /**
@@ -11371,19 +11660,19 @@ interface components {
11371
11660
  /** SessionSpendItem */
11372
11661
  SessionSpendItem: {
11373
11662
  /**
11374
- * Charged Millicents
11663
+ * Charged
11664
+ * @default 0
11665
+ */
11666
+ charged: number;
11667
+ /**
11668
+ * Cost
11375
11669
  * @default 0
11376
11670
  */
11377
- charged_millicents: number;
11671
+ cost: number;
11378
11672
  /** Key */
11379
11673
  key: string;
11380
11674
  /** Label */
11381
11675
  label: string;
11382
- /**
11383
- * Rated Millicents
11384
- * @default 0
11385
- */
11386
- rated_millicents: number;
11387
11676
  /**
11388
11677
  * Tokens
11389
11678
  * @default 0
@@ -11429,54 +11718,6 @@ interface components {
11429
11718
  */
11430
11719
  description: string;
11431
11720
  };
11432
- /**
11433
- * SessionTokens
11434
- * @description The token counts a session (or turn) spent, and the model they went to.
11435
- *
11436
- * `total` INCLUDES the cache lanes, unlike the old flat `tokens_total` which
11437
- * counted input+output+thinking only and left callers to add cache reads and
11438
- * writes back themselves (the deleted `tokensTotalAll` helper). Cache tokens
11439
- * dominate an agent run's token bill, so a "total" that omits them is the
11440
- * wrong default and produced two competing totals in the dashboard.
11441
- */
11442
- SessionTokens: {
11443
- /**
11444
- * Cache Creation
11445
- * @description Tokens written to the prompt cache.
11446
- * @default 0
11447
- */
11448
- cache_creation: number;
11449
- /**
11450
- * Cache Read
11451
- * @description Tokens read from the prompt cache.
11452
- * @default 0
11453
- */
11454
- cache_read: number;
11455
- /**
11456
- * Input
11457
- * @description Input tokens used.
11458
- * @default 0
11459
- */
11460
- input: number;
11461
- /**
11462
- * Model
11463
- * @description The model the token counts are attributed to.
11464
- * @default
11465
- */
11466
- model: string;
11467
- /**
11468
- * Output
11469
- * @description Output tokens used.
11470
- * @default 0
11471
- */
11472
- output: number;
11473
- /**
11474
- * Total
11475
- * @description Total tokens consumed, INCLUDING the prompt-cache reads and writes — the same basis the token cost is priced on.
11476
- * @default 0
11477
- */
11478
- total: number;
11479
- };
11480
11721
  /** SessionToolCount */
11481
11722
  SessionToolCount: {
11482
11723
  /** Calls */
@@ -11486,14 +11727,14 @@ interface components {
11486
11727
  };
11487
11728
  /**
11488
11729
  * SessionTurn
11489
- * @description One message and the agent's answer to it. A turn is `pending` from the
11490
- * moment its message is received until the agent starts on it, `running`
11491
- * while the agent works, then `completed`, `failed`, `stopped`, or
11492
- * `cancelled`.
11730
+ * @description One message and the agent's answer to it. A turn is `queued` from the
11731
+ * moment its message is received, `preparing` while its environment is set
11732
+ * up, `running` while the agent works, then `completed`, `failed`,
11733
+ * `stopped`, or `cancelled`.
11493
11734
  */
11494
11735
  SessionTurn: {
11495
11736
  /** @description What the turn cost so far, in millicents, broken down by leg. */
11496
- cost: components['schemas']['SessionCost'];
11737
+ cost: components['schemas']['Cost'];
11497
11738
  /**
11498
11739
  * Created At
11499
11740
  * Format: date-time
@@ -11502,7 +11743,7 @@ interface components {
11502
11743
  created_at: string;
11503
11744
  /**
11504
11745
  * Detail
11505
- * @description A human-readable explanation of a failed, stopped, or cancelled turn.
11746
+ * @description A human-readable explanation of a failed, stopped, or cancelled turn, or of why a queued turn waits.
11506
11747
  */
11507
11748
  detail: string | null;
11508
11749
  /**
@@ -11532,7 +11773,7 @@ interface components {
11532
11773
  /** @description When and by whom a stop was requested; null when none was. */
11533
11774
  stopped: components['schemas']['SessionStopped'] | null;
11534
11775
  /** @description The tokens the turn spent and the model they went to. */
11535
- tokens: components['schemas']['SessionTokens'];
11776
+ tokens: components['schemas']['Tokens'];
11536
11777
  };
11537
11778
  /**
11538
11779
  * SessionTurnResponse
@@ -11571,10 +11812,10 @@ interface components {
11571
11812
  */
11572
11813
  cache_write_tokens: number;
11573
11814
  /**
11574
- * Charged Millicents
11815
+ * Charged
11575
11816
  * @default 0
11576
11817
  */
11577
- charged_millicents: number;
11818
+ charged: number;
11578
11819
  /**
11579
11820
  * Date
11580
11821
  * Format: date-time
@@ -12124,7 +12365,7 @@ interface components {
12124
12365
  * vocabulary: the `session:` block of an agent file pastes in as the request
12125
12366
  * body, except that the agent-wide `budget.day`, `week`, and `month` are
12126
12367
  * rejected here. There is no agent behind a raw session; to start a
12127
- * session from a saved agent, use POST /v1/agents/{agent_id}/sessions.
12368
+ * session from a saved agent, use POST /v1/agents/{id}/sessions.
12128
12369
  *
12129
12370
  * Extra keys are a 422, not silently dropped: a retired field
12130
12371
  * (`from_config_id`, `input`, `ellipsis`, `config_id`, `repositories`) must
@@ -12181,6 +12422,12 @@ interface components {
12181
12422
  [key: string]: unknown;
12182
12423
  };
12183
12424
  });
12425
+ /**
12426
+ * StatusAction
12427
+ * @description The state of a commit status. `success` is `passed`, `failure` is `failed`, and `error` is `errored`.
12428
+ * @enum {string}
12429
+ */
12430
+ StatusAction: 'pending' | 'passed' | 'failed' | 'errored';
12184
12431
  /**
12185
12432
  * StreamTicketResponse
12186
12433
  * @description Open ws_url with ?ticket=<ticket> within 60 seconds.
@@ -12340,6 +12587,42 @@ interface components {
12340
12587
  */
12341
12588
  utilization: number;
12342
12589
  };
12590
+ /**
12591
+ * TokenCounts
12592
+ * @description Token counts.
12593
+ */
12594
+ TokenCounts: {
12595
+ /**
12596
+ * Cache Creation
12597
+ * @description Tokens written to the prompt cache.
12598
+ * @default 0
12599
+ */
12600
+ cache_creation: number;
12601
+ /**
12602
+ * Cache Read
12603
+ * @description Tokens read from the prompt cache.
12604
+ * @default 0
12605
+ */
12606
+ cache_read: number;
12607
+ /**
12608
+ * Input
12609
+ * @description Input tokens used.
12610
+ * @default 0
12611
+ */
12612
+ input: number;
12613
+ /**
12614
+ * Output
12615
+ * @description Output tokens used.
12616
+ * @default 0
12617
+ */
12618
+ output: number;
12619
+ /**
12620
+ * Total
12621
+ * @description All tokens used, including prompt cache reads and writes. Token cost is priced on this.
12622
+ * @default 0
12623
+ */
12624
+ total: number;
12625
+ };
12343
12626
  /** TokenRevokedResponse */
12344
12627
  TokenRevokedResponse: {
12345
12628
  /**
@@ -12348,6 +12631,19 @@ interface components {
12348
12631
  */
12349
12632
  ok: boolean;
12350
12633
  };
12634
+ /**
12635
+ * Tokens
12636
+ * @description Tokens used, in total and by model.
12637
+ */
12638
+ Tokens: {
12639
+ /** @description Token counts across every model. */
12640
+ all: components['schemas']['TokenCounts'];
12641
+ /**
12642
+ * By Model
12643
+ * @description Token counts for each model that used tokens.
12644
+ */
12645
+ by_model: components['schemas']['ModelTokenCounts'][];
12646
+ };
12351
12647
  /**
12352
12648
  * TokensInfo
12353
12649
  * @description Token/cost usage, per record (one API call's counts, aggregate fields at
@@ -12386,47 +12682,128 @@ interface components {
12386
12682
  * Num Turns
12387
12683
  * @default 0
12388
12684
  */
12389
- num_turns: number;
12685
+ num_turns: number;
12686
+ /**
12687
+ * Output Tokens
12688
+ * @default 0
12689
+ */
12690
+ output_tokens: number;
12691
+ };
12692
+ /** TranscriptIngestResult */
12693
+ TranscriptIngestResult: {
12694
+ /** Completed Turns */
12695
+ completed_turns: number;
12696
+ /** Ingested */
12697
+ ingested: number;
12698
+ /** Next Offset */
12699
+ next_offset: number;
12700
+ /** Skipped */
12701
+ skipped: number;
12702
+ };
12703
+ /**
12704
+ * TurnEndedPayload
12705
+ * @description turn_ended: the turn reached its final status. `status`, `reason`, and
12706
+ * `detail` match the turn on the session object.
12707
+ */
12708
+ TurnEndedPayload: {
12709
+ /** Detail */
12710
+ detail?: string | null;
12711
+ /** Duration Ms */
12712
+ duration_ms?: number | null;
12713
+ /** Reason */
12714
+ reason?: string | null;
12715
+ /** Status */
12716
+ status: string;
12717
+ /** Turn Id */
12718
+ turn_id: string;
12719
+ /** Turn Index */
12720
+ turn_index: number;
12721
+ } & {
12722
+ [key: string]: unknown;
12723
+ };
12724
+ /** TurnEndedRecord */
12725
+ TurnEndedRecord: {
12726
+ /** Cost */
12727
+ cost: number | null;
12728
+ /**
12729
+ * Created At
12730
+ * Format: date-time
12731
+ */
12732
+ created_at: string;
12733
+ /** Duration */
12734
+ duration: number | null;
12735
+ /**
12736
+ * Feed Seq
12737
+ * @description Position in the session feed and the stream's resume cursor.
12738
+ */
12739
+ feed_seq: number;
12740
+ /**
12741
+ * Id
12742
+ * @description Unique identifier of the record.
12743
+ */
12744
+ id: string;
12745
+ /**
12746
+ * Kind
12747
+ * @default platform
12748
+ * @constant
12749
+ */
12750
+ kind: 'platform';
12751
+ /** Model */
12752
+ model: string | null;
12753
+ payload: components['schemas']['TurnEndedPayload'];
12754
+ /**
12755
+ * Record Format
12756
+ * @default ellipsis_lifecycle@1
12757
+ * @constant
12758
+ */
12759
+ record_format: 'ellipsis_lifecycle@1';
12760
+ /**
12761
+ * @description discriminator enum property added by openapi-typescript
12762
+ * @enum {string}
12763
+ */
12764
+ record_type: 'turn_ended';
12765
+ /**
12766
+ * Session Id
12767
+ * @description Session containing this record.
12768
+ */
12769
+ session_id: string;
12770
+ /**
12771
+ * Session Message Id
12772
+ * @description Message this record receives, delivers, requeues, or echoes.
12773
+ */
12774
+ session_message_id: string | null;
12775
+ /**
12776
+ * Source
12777
+ * @default lifecycle
12778
+ * @constant
12779
+ */
12780
+ source: 'lifecycle';
12781
+ tokens_info: components['schemas']['TokensInfo'] | null;
12782
+ /** Tools */
12783
+ tools: string[] | null;
12390
12784
  /**
12391
- * Output Tokens
12392
- * @default 0
12785
+ * Turn Id
12786
+ * @description Turn containing this record, when applicable.
12393
12787
  */
12394
- output_tokens: number;
12395
- };
12396
- /** TranscriptIngestResult */
12397
- TranscriptIngestResult: {
12398
- /** Completed Turns */
12399
- completed_turns: number;
12400
- /** Ingested */
12401
- ingested: number;
12402
- /** Next Offset */
12403
- next_offset: number;
12404
- /** Skipped */
12405
- skipped: number;
12788
+ turn_id: string | null;
12406
12789
  };
12407
12790
  /**
12408
- * TurnEndedPayload
12409
- * @description turn_ended: the turn reached its final status. `status`, `reason`, and
12410
- * `detail` match the turn on the session object.
12791
+ * TurnQueuedPayload
12792
+ * @description turn_queued: the turn waits because the account already has
12793
+ * `sessions_alive` sessions alive, its limit.
12411
12794
  */
12412
- TurnEndedPayload: {
12413
- /** Detail */
12414
- detail?: string | null;
12415
- /** Duration Ms */
12416
- duration_ms?: number | null;
12417
- /** Reason */
12418
- reason?: string | null;
12419
- /** Status */
12420
- status: string;
12795
+ TurnQueuedPayload: {
12796
+ /** Limit */
12797
+ limit: number;
12798
+ /** Sessions Alive */
12799
+ sessions_alive: number;
12421
12800
  /** Turn Id */
12422
12801
  turn_id: string;
12423
- /** Turn Index */
12424
- turn_index: number;
12425
12802
  } & {
12426
12803
  [key: string]: unknown;
12427
12804
  };
12428
- /** TurnEndedRecord */
12429
- TurnEndedRecord: {
12805
+ /** TurnQueuedRecord */
12806
+ TurnQueuedRecord: {
12430
12807
  /** Cost */
12431
12808
  cost: number | null;
12432
12809
  /**
@@ -12454,7 +12831,7 @@ interface components {
12454
12831
  kind: 'platform';
12455
12832
  /** Model */
12456
12833
  model: string | null;
12457
- payload: components['schemas']['TurnEndedPayload'];
12834
+ payload: components['schemas']['TurnQueuedPayload'];
12458
12835
  /**
12459
12836
  * Record Format
12460
12837
  * @default ellipsis_lifecycle@1
@@ -12465,7 +12842,7 @@ interface components {
12465
12842
  * @description discriminator enum property added by openapi-typescript
12466
12843
  * @enum {string}
12467
12844
  */
12468
- record_type: 'turn_ended';
12845
+ record_type: 'turn_queued';
12469
12846
  /**
12470
12847
  * Session Id
12471
12848
  * @description Session containing this record.
@@ -12577,15 +12954,15 @@ interface components {
12577
12954
  };
12578
12955
  /**
12579
12956
  * TurnStatus
12580
- * @description Where one turn is: queued for an agent, being answered, or over.
12957
+ * @description Where one turn is: waiting, preparing, being answered, or over.
12581
12958
  *
12582
- * `pending` covers everything before the agent starts on the message: queued
12583
- * behind another turn, waiting to start, or preparing the environment.
12584
- * `stopped` and `cancelled` are their own outcomes; `reason` explains a
12959
+ * `queued` turns wait to start, behind another turn or for a free session
12960
+ * slot on the account. `preparing` turns wait while the environment is set
12961
+ * up. `stopped` and `cancelled` are their own outcomes; `reason` explains a
12585
12962
  * `failed` or `cancelled` turn.
12586
12963
  * @enum {string}
12587
12964
  */
12588
- TurnStatus: 'pending' | 'running' | 'completed' | 'failed' | 'stopped' | 'cancelled';
12965
+ TurnStatus: 'queued' | 'preparing' | 'running' | 'completed' | 'failed' | 'stopped' | 'cancelled';
12589
12966
  /** UninstallGithubAppRequest */
12590
12967
  UninstallGithubAppRequest: {
12591
12968
  /** Confirm Account Login */
@@ -12694,61 +13071,29 @@ interface components {
12694
13071
  archived: boolean;
12695
13072
  };
12696
13073
  /**
12697
- * UsageDailyPoint
12698
- * @description One day's usage: tokens split by type, and cost split into the four
12699
- * billed categories. `tokens` is the sum of the four token types.
13074
+ * UsageDay
13075
+ * @description One UTC day's cost and tokens.
12700
13076
  */
12701
- UsageDailyPoint: {
12702
- /**
12703
- * Cost Cpu Millicents
12704
- * @description CPU cost this day, in millicents.
12705
- */
12706
- cost_cpu_millicents: number;
12707
- /**
12708
- * Cost Fee Millicents
12709
- * @description Platform fee this day, in millicents.
12710
- */
12711
- cost_fee_millicents: number;
12712
- /**
12713
- * Cost Memory Millicents
12714
- * @description Memory cost this day, in millicents.
12715
- */
12716
- cost_memory_millicents: number;
12717
- /**
12718
- * Cost Tokens Millicents
12719
- * @description LLM token cost this day, in millicents (1000 = $0.01).
12720
- */
12721
- cost_tokens_millicents: number;
13077
+ UsageDay: {
13078
+ /** @description What the day's usage cost. */
13079
+ cost: components['schemas']['Cost'];
12722
13080
  /**
12723
13081
  * Date
12724
13082
  * @description The UTC day, formatted yyyy-MM-dd.
12725
13083
  */
12726
13084
  date: string;
12727
- /**
12728
- * Tokens
12729
- * @description All tokens used this day — the sum of the four token types.
12730
- */
12731
- tokens: number;
12732
- /**
12733
- * Tokens Cache Creation
12734
- * @description Cache-creation tokens used this day.
12735
- */
12736
- tokens_cache_creation: number;
12737
- /**
12738
- * Tokens Cache Read
12739
- * @description Cache-read tokens used this day.
12740
- */
12741
- tokens_cache_read: number;
12742
- /**
12743
- * Tokens Input
12744
- * @description Input tokens used this day.
12745
- */
12746
- tokens_input: number;
12747
- /**
12748
- * Tokens Output
12749
- * @description Output tokens used this day.
12750
- */
12751
- tokens_output: number;
13085
+ /** @description The tokens used that day. */
13086
+ tokens: components['schemas']['Tokens'];
13087
+ };
13088
+ /**
13089
+ * UsageTotals
13090
+ * @description Cost and tokens over a set of sessions.
13091
+ */
13092
+ UsageTotals: {
13093
+ /** @description What the sessions cost. */
13094
+ cost: components['schemas']['Cost'];
13095
+ /** @description The tokens the sessions used. */
13096
+ tokens: components['schemas']['Tokens'];
12752
13097
  };
12753
13098
  /** UserPlan */
12754
13099
  UserPlan: {
@@ -13220,6 +13565,12 @@ interface components {
13220
13565
  /** Webhooks */
13221
13566
  webhooks: components['schemas']['Webhook'][];
13222
13567
  };
13568
+ /**
13569
+ * WorkflowRunAction
13570
+ * @description The state of a GitHub Actions workflow run when GitHub reports it. Before the run finishes it is the status, and `in_progress` is `started`. After it finishes it is the conclusion, `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.
13571
+ * @enum {string}
13572
+ */
13573
+ WorkflowRunAction: 'requested' | 'queued' | 'waiting' | 'pending' | 'started' | 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale' | 'startup_failure';
13223
13574
  };
13224
13575
  responses: never;
13225
13576
  parameters: never;
@@ -13439,7 +13790,7 @@ interface operations {
13439
13790
  'user-agent'?: string | null;
13440
13791
  };
13441
13792
  path: {
13442
- api_key_id: string;
13793
+ id: string;
13443
13794
  };
13444
13795
  cookie?: never;
13445
13796
  };
@@ -13988,7 +14339,7 @@ interface operations {
13988
14339
  'user-agent'?: string | null;
13989
14340
  };
13990
14341
  path: {
13991
- checkout_id: string;
14342
+ id: string;
13992
14343
  };
13993
14344
  cookie?: never;
13994
14345
  };
@@ -14738,7 +15089,7 @@ interface operations {
14738
15089
  'user-agent'?: string | null;
14739
15090
  };
14740
15091
  path: {
14741
- agent_id: string;
15092
+ id: string;
14742
15093
  };
14743
15094
  cookie?: never;
14744
15095
  };
@@ -14798,7 +15149,7 @@ interface operations {
14798
15149
  'user-agent'?: string | null;
14799
15150
  };
14800
15151
  path: {
14801
- agent_id: string;
15152
+ id: string;
14802
15153
  };
14803
15154
  cookie?: never;
14804
15155
  };
@@ -14880,7 +15231,7 @@ interface operations {
14880
15231
  'user-agent'?: string | null;
14881
15232
  };
14882
15233
  path: {
14883
- agent_id: string;
15234
+ id: string;
14884
15235
  };
14885
15236
  cookie?: never;
14886
15237
  };
@@ -14947,7 +15298,7 @@ interface operations {
14947
15298
  'user-agent'?: string | null;
14948
15299
  };
14949
15300
  path: {
14950
- agent_id: string;
15301
+ id: string;
14951
15302
  };
14952
15303
  cookie?: never;
14953
15304
  };
@@ -15029,7 +15380,7 @@ interface operations {
15029
15380
  'user-agent'?: string | null;
15030
15381
  };
15031
15382
  path: {
15032
- agent_id: string;
15383
+ id: string;
15033
15384
  };
15034
15385
  cookie?: never;
15035
15386
  };
@@ -15089,7 +15440,7 @@ interface operations {
15089
15440
  'user-agent'?: string | null;
15090
15441
  };
15091
15442
  path: {
15092
- agent_id: string;
15443
+ id: string;
15093
15444
  };
15094
15445
  cookie?: never;
15095
15446
  };
@@ -15162,7 +15513,7 @@ interface operations {
15162
15513
  'user-agent'?: string | null;
15163
15514
  };
15164
15515
  path: {
15165
- agent_id: string;
15516
+ id: string;
15166
15517
  };
15167
15518
  cookie?: never;
15168
15519
  };
@@ -15285,7 +15636,7 @@ interface operations {
15285
15636
  'user-agent'?: string | null;
15286
15637
  };
15287
15638
  path: {
15288
- alert_id: string;
15639
+ id: string;
15289
15640
  };
15290
15641
  cookie?: never;
15291
15642
  };
@@ -15345,7 +15696,7 @@ interface operations {
15345
15696
  'user-agent'?: string | null;
15346
15697
  };
15347
15698
  path: {
15348
- alert_id: string;
15699
+ id: string;
15349
15700
  };
15350
15701
  cookie?: never;
15351
15702
  };
@@ -15836,7 +16187,7 @@ interface operations {
15836
16187
  'user-agent'?: string | null;
15837
16188
  };
15838
16189
  path: {
15839
- environment_id: string;
16190
+ id: string;
15840
16191
  };
15841
16192
  cookie?: never;
15842
16193
  };
@@ -15896,7 +16247,7 @@ interface operations {
15896
16247
  'user-agent'?: string | null;
15897
16248
  };
15898
16249
  path: {
15899
- environment_id: string;
16250
+ id: string;
15900
16251
  };
15901
16252
  cookie?: never;
15902
16253
  };
@@ -15978,7 +16329,7 @@ interface operations {
15978
16329
  'user-agent'?: string | null;
15979
16330
  };
15980
16331
  path: {
15981
- environment_id: string;
16332
+ id: string;
15982
16333
  };
15983
16334
  cookie?: never;
15984
16335
  };
@@ -16099,7 +16450,7 @@ interface operations {
16099
16450
  'user-agent'?: string | null;
16100
16451
  };
16101
16452
  path: {
16102
- handler_id: string;
16453
+ id: string;
16103
16454
  };
16104
16455
  cookie?: never;
16105
16456
  };
@@ -16617,7 +16968,7 @@ interface operations {
16617
16968
  'user-agent'?: string | null;
16618
16969
  };
16619
16970
  path: {
16620
- integration_id: string;
16971
+ id: string;
16621
16972
  };
16622
16973
  cookie?: never;
16623
16974
  };
@@ -17003,7 +17354,7 @@ interface operations {
17003
17354
  'user-agent'?: string | null;
17004
17355
  };
17005
17356
  path: {
17006
- review_id: string;
17357
+ id: string;
17007
17358
  };
17008
17359
  cookie?: never;
17009
17360
  };
@@ -17235,7 +17586,7 @@ interface operations {
17235
17586
  author_id?: number | null;
17236
17587
  /** @description "owner/name" (exact) or a bare repo name. Sessions whose repository is named only inside their agent — dashboard starts, cron — do not match. */
17237
17588
  repo?: string | null;
17238
- /** @description Keep only sessions whose current turn is pending or running. */
17589
+ /** @description Keep only sessions whose current turn is queued, preparing, or running. */
17239
17590
  unfinished?: boolean;
17240
17591
  };
17241
17592
  header?: {
@@ -17480,7 +17831,7 @@ interface operations {
17480
17831
  'user-agent'?: string | null;
17481
17832
  };
17482
17833
  path: {
17483
- session_id: string;
17834
+ id: string;
17484
17835
  };
17485
17836
  cookie?: never;
17486
17837
  };
@@ -17540,7 +17891,7 @@ interface operations {
17540
17891
  'user-agent'?: string | null;
17541
17892
  };
17542
17893
  path: {
17543
- session_id: string;
17894
+ id: string;
17544
17895
  };
17545
17896
  cookie?: never;
17546
17897
  };
@@ -17604,7 +17955,7 @@ interface operations {
17604
17955
  'user-agent'?: string | null;
17605
17956
  };
17606
17957
  path: {
17607
- session_id: string;
17958
+ id: string;
17608
17959
  };
17609
17960
  cookie?: never;
17610
17961
  };
@@ -17655,7 +18006,7 @@ interface operations {
17655
18006
  'user-agent'?: string | null;
17656
18007
  };
17657
18008
  path: {
17658
- session_id: string;
18009
+ id: string;
17659
18010
  };
17660
18011
  cookie?: never;
17661
18012
  };
@@ -17715,7 +18066,7 @@ interface operations {
17715
18066
  'user-agent'?: string | null;
17716
18067
  };
17717
18068
  path: {
17718
- session_id: string;
18069
+ id: string;
17719
18070
  };
17720
18071
  cookie?: never;
17721
18072
  };
@@ -17775,7 +18126,7 @@ interface operations {
17775
18126
  'user-agent'?: string | null;
17776
18127
  };
17777
18128
  path: {
17778
- session_id: string;
18129
+ id: string;
17779
18130
  };
17780
18131
  cookie?: never;
17781
18132
  };
@@ -17826,7 +18177,7 @@ interface operations {
17826
18177
  'user-agent'?: string | null;
17827
18178
  };
17828
18179
  path: {
17829
- session_id: string;
18180
+ id: string;
17830
18181
  };
17831
18182
  cookie?: never;
17832
18183
  };
@@ -17908,7 +18259,7 @@ interface operations {
17908
18259
  'user-agent'?: string | null;
17909
18260
  };
17910
18261
  path: {
17911
- session_id: string;
18262
+ id: string;
17912
18263
  };
17913
18264
  cookie?: never;
17914
18265
  };
@@ -17962,7 +18313,7 @@ interface operations {
17962
18313
  'user-agent'?: string | null;
17963
18314
  };
17964
18315
  path: {
17965
- session_id: string;
18316
+ id: string;
17966
18317
  };
17967
18318
  cookie?: never;
17968
18319
  };
@@ -18022,7 +18373,7 @@ interface operations {
18022
18373
  'user-agent'?: string | null;
18023
18374
  };
18024
18375
  path: {
18025
- session_id: string;
18376
+ id: string;
18026
18377
  };
18027
18378
  cookie?: never;
18028
18379
  };
@@ -18064,7 +18415,7 @@ interface operations {
18064
18415
  'application/json': components['schemas']['ErrorResponse'];
18065
18416
  };
18066
18417
  };
18067
- /** @description No turn is pending or running. */
18418
+ /** @description No turn is queued, preparing, or running. */
18068
18419
  409: {
18069
18420
  headers: {
18070
18421
  [name: string]: unknown;
@@ -18091,7 +18442,7 @@ interface operations {
18091
18442
  'user-agent'?: string | null;
18092
18443
  };
18093
18444
  path: {
18094
- session_id: string;
18445
+ id: string;
18095
18446
  };
18096
18447
  cookie?: never;
18097
18448
  };
@@ -18142,7 +18493,7 @@ interface operations {
18142
18493
  'user-agent'?: string | null;
18143
18494
  };
18144
18495
  path: {
18145
- session_id: string;
18496
+ id: string;
18146
18497
  };
18147
18498
  cookie?: never;
18148
18499
  };
@@ -18215,7 +18566,7 @@ interface operations {
18215
18566
  'user-agent'?: string | null;
18216
18567
  };
18217
18568
  path: {
18218
- session_id: string;
18569
+ id: string;
18219
18570
  };
18220
18571
  cookie?: never;
18221
18572
  };
@@ -18276,7 +18627,7 @@ interface operations {
18276
18627
  };
18277
18628
  path: {
18278
18629
  session_id: string;
18279
- turn_id: string;
18630
+ id: string;
18280
18631
  };
18281
18632
  cookie?: never;
18282
18633
  };
@@ -18540,7 +18891,7 @@ interface operations {
18540
18891
  'user-agent'?: string | null;
18541
18892
  };
18542
18893
  path: {
18543
- template_id: string;
18894
+ id: string;
18544
18895
  };
18545
18896
  cookie?: never;
18546
18897
  };
@@ -19009,7 +19360,7 @@ interface operations {
19009
19360
  'user-agent'?: string | null;
19010
19361
  };
19011
19362
  path: {
19012
- token_id: string;
19363
+ id: string;
19013
19364
  };
19014
19365
  cookie?: never;
19015
19366
  };
@@ -19109,7 +19460,7 @@ interface operations {
19109
19460
  'user-agent'?: string | null;
19110
19461
  };
19111
19462
  path: {
19112
- vm_execution_id: string;
19463
+ id: string;
19113
19464
  };
19114
19465
  cookie?: never;
19115
19466
  };
@@ -19160,7 +19511,7 @@ interface operations {
19160
19511
  'user-agent'?: string | null;
19161
19512
  };
19162
19513
  path: {
19163
- vm_execution_id: string;
19514
+ id: string;
19164
19515
  };
19165
19516
  cookie?: never;
19166
19517
  };
@@ -19263,7 +19614,7 @@ interface operations {
19263
19614
  'user-agent'?: string | null;
19264
19615
  };
19265
19616
  path: {
19266
- image_id: string;
19617
+ id: string;
19267
19618
  };
19268
19619
  cookie?: never;
19269
19620
  };
@@ -19366,7 +19717,7 @@ interface operations {
19366
19717
  'user-agent'?: string | null;
19367
19718
  };
19368
19719
  path: {
19369
- vm_id: string;
19720
+ id: string;
19370
19721
  };
19371
19722
  cookie?: never;
19372
19723
  };
@@ -19422,7 +19773,7 @@ interface operations {
19422
19773
  'user-agent'?: string | null;
19423
19774
  };
19424
19775
  path: {
19425
- vm_id: string;
19776
+ id: string;
19426
19777
  };
19427
19778
  cookie?: never;
19428
19779
  };
@@ -19668,7 +20019,7 @@ interface operations {
19668
20019
  'user-agent'?: string | null;
19669
20020
  };
19670
20021
  path: {
19671
- delivery_id: string;
20022
+ id: string;
19672
20023
  };
19673
20024
  cookie?: never;
19674
20025
  };
@@ -19728,7 +20079,7 @@ interface operations {
19728
20079
  'user-agent'?: string | null;
19729
20080
  };
19730
20081
  path: {
19731
- webhook_id: string;
20082
+ id: string;
19732
20083
  };
19733
20084
  cookie?: never;
19734
20085
  };
@@ -19788,7 +20139,7 @@ interface operations {
19788
20139
  'user-agent'?: string | null;
19789
20140
  };
19790
20141
  path: {
19791
- webhook_id: string;
20142
+ id: string;
19792
20143
  };
19793
20144
  cookie?: never;
19794
20145
  };
@@ -19861,7 +20212,7 @@ interface operations {
19861
20212
  'user-agent'?: string | null;
19862
20213
  };
19863
20214
  path: {
19864
- webhook_id: string;
20215
+ id: string;
19865
20216
  };
19866
20217
  cookie?: never;
19867
20218
  };
@@ -19919,7 +20270,7 @@ interface operations {
19919
20270
  'user-agent'?: string | null;
19920
20271
  };
19921
20272
  path: {
19922
- webhook_id: string;
20273
+ id: string;
19923
20274
  };
19924
20275
  cookie?: never;
19925
20276
  };
@@ -19984,7 +20335,7 @@ interface operations {
19984
20335
  }
19985
20336
 
19986
20337
  /**
19987
- * One server-to-client frame of the Ellipsis session stream protocol v6 (WS /v1/sessions/{id}/stream?protocol=6). Clients MUST ignore frames with unknown `type` values — additive frames are not a protocol break.
20338
+ * One server-to-client frame of the Ellipsis session stream protocol v7 (WS /v1/sessions/{id}/stream?protocol=7). Clients MUST ignore frames with unknown `type` values — additive frames are not a protocol break.
19988
20339
  */
19989
20340
  type SessionStreamFrame = SnapshotFrame | RecordsAppendFrame | SessionFrame | DeltaFrame | HeartbeatFrame | DoneFrame | ErrorFrame;
19990
20341
  type AttributionType = 'github_user' | 'linear_user' | 'slack_user' | 'api_key';
@@ -20006,7 +20357,7 @@ type Session = {
20006
20357
  archived: SessionArchived | null;
20007
20358
  attribution: SessionAttribution;
20008
20359
  /**
20009
- * The spend budget enforced for this session, in US dollars, after resolving defaults and ceilings.
20360
+ * The spend budget enforced for this session, in millicents, after resolving defaults and ceilings.
20010
20361
  */
20011
20362
  budget: number;
20012
20363
  /**
@@ -20018,7 +20369,7 @@ type Session = {
20018
20369
  */
20019
20370
  codex: CodexConfig | null;
20020
20371
  conversation: SessionConversation;
20021
- cost: SessionCost;
20372
+ cost: Cost;
20022
20373
  /**
20023
20374
  * When the session was created.
20024
20375
  */
@@ -20027,7 +20378,7 @@ type Session = {
20027
20378
  /**
20028
20379
  * The typed external event that started the session; null for direct and scheduled starts.
20029
20380
  */
20030
- event: (GithubPullRequestEvent | GithubIssueEvent | GithubPushEvent | GithubCheckRunEvent | GithubReleaseEvent | LinearIssueEvent | SlackMessageEvent | SlackChannelCreatedEvent | SentryAlertEvent) | null;
20381
+ event: (GithubPullRequestEvent | GithubIssueEvent | GithubPushEvent | GithubCheckRunEvent | GithubCheckSuiteEvent | GithubWorkflowRunEvent | GithubStatusEvent | GithubReleaseEvent | LinearIssueEvent | SlackMessageEvent | SlackChannelCreatedEvent | SentryAlertEvent) | null;
20031
20382
  /**
20032
20383
  * What the session did to git, one entry per repository in its workspace: the commit and branch it sits on, per-file line counts for its uncommitted changes, and the pull requests it opened. Null if nothing was ever captured.
20033
20384
  */
@@ -20064,7 +20415,7 @@ type Session = {
20064
20415
  * The latest live summary of the session's progress while it runs, and when it was generated.
20065
20416
  */
20066
20417
  summary: SessionSummary | null;
20067
- tokens: SessionTokens;
20418
+ tokens: Tokens;
20068
20419
  /**
20069
20420
  * The turn in progress, or the latest one when none is running. Null until the session has a message. Wait on it: the message you sent is answered when the turn with your message's `turn_id` reaches a final status.
20070
20421
  */
@@ -20142,16 +20493,17 @@ type GithubAccountFilter = {
20142
20493
  include: string[] | boolean;
20143
20494
  } | boolean | string[];
20144
20495
  /**
20145
- * What a completed check run did. `failed` covers the conclusions that
20146
- * mean the check did not pass on its own merits (`failure`, `timed_out`); a
20147
- * cancelled, skipped, neutral or stale check is not a failure and never
20148
- * fires (see FAILED_CHECK_RUN_CONCLUSIONS).
20496
+ * The state of a check run when GitHub reports it. A run created before it finishes fires its status, and `in_progress` is `started`. A finished run fires its conclusion, `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.
20149
20497
  */
20150
- type CheckRunAction = 'failed';
20498
+ type CheckRunAction = 'requested' | 'queued' | 'waiting' | 'pending' | 'started' | 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale';
20151
20499
  type RepositoryFilter = {
20152
20500
  exclude: string[];
20153
20501
  include: string[];
20154
20502
  } | string[];
20503
+ /**
20504
+ * The conclusion of a finished check suite. `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.
20505
+ */
20506
+ type CheckSuiteAction = 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale' | 'startup_failure';
20155
20507
  type IssueAction = 'opened' | 'closed' | 'commented';
20156
20508
  type LinearIssueAction = 'opened';
20157
20509
  type PullRequestAction = 'opened' | 'pushed' | 'merged' | 'closed' | 'review_submitted' | 'commented';
@@ -20162,6 +20514,14 @@ type PullRequestAction = 'opened' | 'pushed' | 'merged' | 'closed' | 'review_sub
20162
20514
  */
20163
20515
  type ReleaseAction = 'published';
20164
20516
  type SentryAction = 'issue_alert' | 'metric_alert';
20517
+ /**
20518
+ * The state of a commit status. `success` is `passed`, `failure` is `failed`, and `error` is `errored`.
20519
+ */
20520
+ type StatusAction = 'pending' | 'passed' | 'failed' | 'errored';
20521
+ /**
20522
+ * The state of a GitHub Actions workflow run when GitHub reports it. Before the run finishes it is the status, and `in_progress` is `started`. After it finishes it is the conclusion, `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.
20523
+ */
20524
+ type WorkflowRunAction = 'requested' | 'queued' | 'waiting' | 'pending' | 'started' | 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale' | 'startup_failure';
20165
20525
  type GithubAccountType = 'User' | 'Organization' | 'Bot' | 'Mannequin';
20166
20526
  /**
20167
20527
  * Why direct prompting is refused. Absent when prompting is allowed.
@@ -20195,12 +20555,12 @@ type TurnReason = 'error' | 'tool_call_failed' | 'budget_hit' | 'payment_require
20195
20555
  /**
20196
20556
  * Where the turn is.
20197
20557
  */
20198
- type TurnStatus = 'pending' | 'running' | 'completed' | 'failed' | 'stopped' | 'cancelled';
20558
+ type TurnStatus = 'queued' | 'preparing' | 'running' | 'completed' | 'failed' | 'stopped' | 'cancelled';
20199
20559
  type SessionRecord$1 = ClaudeSessionRecord | ClaudeNativeSessionRecord | CodexSessionRecord | CodexAppServerSessionRecord | PlatformSessionRecord | UnknownSessionRecord;
20200
20560
  type CodexAppServerNotification = CodexThreadStarted | CodexTurnStarted | CodexTurnCompleted | CodexItemStarted | CodexItemCompleted | CodexTokenUsageUpdated | CodexAppServerError;
20201
20561
  type CodexAppServerItem = CodexUserMessage | CodexAgentMessage | CodexReasoning | CodexPlan | CodexCommandExecution | CodexFileChange | CodexWebSearch | CodexMcpToolCall | CodexContextCompaction;
20202
20562
  type CodexUserInput = CodexTextInput | CodexLocalImageInput;
20203
- type PlatformSessionRecord = SessionClosedRecord | MessageReceivedRecord | MessageDeliveredRecord | MessageRequeuedRecord | TurnStartedRecord | TurnEndedRecord | EnvironmentPhaseRecord | EnvironmentOutputRecord | EnvironmentReadyRecord;
20563
+ type PlatformSessionRecord = SessionClosedRecord | MessageReceivedRecord | MessageDeliveredRecord | MessageRequeuedRecord | TurnQueuedRecord | TurnStartedRecord | TurnEndedRecord | EnvironmentPhaseRecord | EnvironmentOutputRecord | EnvironmentReadyRecord;
20204
20564
  /**
20205
20565
  * The session's current state.
20206
20566
  */
@@ -20215,7 +20575,7 @@ type Session1 = {
20215
20575
  archived: SessionArchived | null;
20216
20576
  attribution: SessionAttribution;
20217
20577
  /**
20218
- * The spend budget enforced for this session, in US dollars, after resolving defaults and ceilings.
20578
+ * The spend budget enforced for this session, in millicents, after resolving defaults and ceilings.
20219
20579
  */
20220
20580
  budget: number;
20221
20581
  /**
@@ -20227,7 +20587,7 @@ type Session1 = {
20227
20587
  */
20228
20588
  codex: CodexConfig | null;
20229
20589
  conversation: SessionConversation;
20230
- cost: SessionCost;
20590
+ cost: Cost;
20231
20591
  /**
20232
20592
  * When the session was created.
20233
20593
  */
@@ -20236,7 +20596,7 @@ type Session1 = {
20236
20596
  /**
20237
20597
  * The typed external event that started the session; null for direct and scheduled starts.
20238
20598
  */
20239
- event: (GithubPullRequestEvent | GithubIssueEvent | GithubPushEvent | GithubCheckRunEvent | GithubReleaseEvent | LinearIssueEvent | SlackMessageEvent | SlackChannelCreatedEvent | SentryAlertEvent) | null;
20599
+ event: (GithubPullRequestEvent | GithubIssueEvent | GithubPushEvent | GithubCheckRunEvent | GithubCheckSuiteEvent | GithubWorkflowRunEvent | GithubStatusEvent | GithubReleaseEvent | LinearIssueEvent | SlackMessageEvent | SlackChannelCreatedEvent | SentryAlertEvent) | null;
20240
20600
  /**
20241
20601
  * What the session did to git, one entry per repository in its workspace: the commit and branch it sits on, per-file line counts for its uncommitted changes, and the pull requests it opened. Null if nothing was ever captured.
20242
20602
  */
@@ -20273,7 +20633,7 @@ type Session1 = {
20273
20633
  * The latest live summary of the session's progress while it runs, and when it was generated.
20274
20634
  */
20275
20635
  summary: SessionSummary | null;
20276
- tokens: SessionTokens;
20636
+ tokens: Tokens;
20277
20637
  /**
20278
20638
  * The turn in progress, or the latest one when none is running. Null until the session has a message. Wait on it: the message you sent is answered when the turn with your message's `turn_id` reaches a final status.
20279
20639
  */
@@ -20768,8 +21128,8 @@ interface EllipsisGrant {
20768
21128
  *
20769
21129
  * By default the token carries the installation's full permissions on all of
20770
21130
  * the installation's repositories. `permissions` narrows what it may do:
20771
- * the string `read_only` grants read access to contents, issues, metadata and
20772
- * pull requests; a map requests explicit levels per GitHub App permission
21131
+ * the string `read_only` grants read access to every scope the installation
21132
+ * granted; a map requests explicit levels per GitHub App permission
20773
21133
  * scope (e.g. `{contents: read, pull_requests: write}`) and may never exceed
20774
21134
  * what the installation granted. `repositories` scopes the token to exactly
20775
21135
  * the listed repos, by name (they must belong to the installation).
@@ -20817,6 +21177,7 @@ interface CronTrigger {
20817
21177
  */
20818
21178
  interface ReactTrigger {
20819
21179
  check_run: ReactCheckRun | null;
21180
+ check_suite: ReactCheckSuite | null;
20820
21181
  enabled: boolean;
20821
21182
  issue: ReactIssue | null;
20822
21183
  linear_issue: ReactLinearIssue | null;
@@ -20825,19 +21186,12 @@ interface ReactTrigger {
20825
21186
  release: ReactRelease | null;
20826
21187
  sentry: ReactSentry | null;
20827
21188
  slack_channel: ReactSlackChannel | null;
21189
+ status: ReactStatus | null;
20828
21190
  type: 'react';
21191
+ workflow_run: ReactWorkflowRun | null;
20829
21192
  }
20830
21193
  /**
20831
- * A CI/CD check completing on a commit — a `check_run` from GitHub
20832
- * Actions or any other app that reports checks. `names` narrows to the check
20833
- * runs whose name matches (exact, or a prefix ending in `*`); `branch` is the
20834
- * check suite's head branch. The `for:` audience is the commit's author (the
20835
- * pull request author when the check is attached to one), never the CI app
20836
- * that completed the check — a check run's sender is always a bot.
20837
- *
20838
- * Delivery needs the Ellipsis GitHub App's `checks` permission on the
20839
- * installation; without it GitHub sends no check events and the webhook
20840
- * handler refuses the ones it does see.
21194
+ * A check run changing state on a commit. A check run is a GitHub Actions job or a check another CI app reports. `on` lists the states that fire. `names` matches check names exactly or by a prefix ending in `*`. `branch` is the branch the check ran on. `for` is the author of the commit the check ran on. Needs the Checks permission.
20841
21195
  */
20842
21196
  interface ReactCheckRun {
20843
21197
  branch: string[];
@@ -20867,6 +21221,16 @@ interface GithubAccountSelector {
20867
21221
  teams: string[];
20868
21222
  users: GithubAccountFilter;
20869
21223
  }
21224
+ /**
21225
+ * Every check one CI app reported on a commit finishing. GitHub reports a check suite only when it finishes, so `on` takes only finished states. `apps` matches the reporting app slug, such as `github-actions`, exactly or by a prefix ending in `*`. `branch` and `for` work as on `check_run`. Needs the Checks permission.
21226
+ */
21227
+ interface ReactCheckSuite {
21228
+ apps: string[];
21229
+ branch: string[];
21230
+ for: GithubAccountSelector;
21231
+ on: CheckSuiteAction[];
21232
+ repositories: RepositoryFilter;
21233
+ }
20870
21234
  interface ReactIssue {
20871
21235
  for: GithubAccountSelector;
20872
21236
  labels: string[];
@@ -20914,6 +21278,26 @@ interface ReactSentry {
20914
21278
  }
20915
21279
  interface ReactSlackChannel {
20916
21280
  }
21281
+ /**
21282
+ * A commit status changing state, from CI that posts statuses instead of checks. `names` matches status contexts exactly or by a prefix ending in `*`. `branch` matches when any branch GitHub lists for the commit matches. `for` works as on `check_run`. Needs the Commit statuses permission.
21283
+ */
21284
+ interface ReactStatus {
21285
+ branch: string[];
21286
+ for: GithubAccountSelector;
21287
+ names: string[];
21288
+ on: StatusAction[];
21289
+ repositories: RepositoryFilter;
21290
+ }
21291
+ /**
21292
+ * A GitHub Actions workflow run changing state. `names` matches workflow names exactly or by a prefix ending in `*`. `branch` is the branch the run is for. `for` works as on `check_run`. Needs the Actions permission.
21293
+ */
21294
+ interface ReactWorkflowRun {
21295
+ branch: string[];
21296
+ for: GithubAccountSelector;
21297
+ names: string[];
21298
+ on: WorkflowRunAction[];
21299
+ repositories: RepositoryFilter;
21300
+ }
20917
21301
  /**
20918
21302
  * When the session was archived and the GitHub user who archived it.
20919
21303
  */
@@ -20983,9 +21367,13 @@ interface SessionPrompting {
20983
21367
  surface_name: string | null;
20984
21368
  }
20985
21369
  /**
20986
- * What the session has cost so far, in millicents, broken down by leg and carrying its own total.
21370
+ * What the session has cost so far.
20987
21371
  */
20988
- interface SessionCost {
21372
+ interface Cost {
21373
+ /**
21374
+ * What Ellipsis charged to credit, in millicents. It is everything except subscription tokens, and it is what the budget caps.
21375
+ */
21376
+ charged: number;
20989
21377
  /**
20990
21378
  * CPU spend in millicents.
20991
21379
  */
@@ -20994,16 +21382,69 @@ interface SessionCost {
20994
21382
  * Platform fee in millicents.
20995
21383
  */
20996
21384
  fee: number;
20997
- /**
20998
- * LLM spend in millicents.
20999
- */
21000
- llm: number;
21385
+ llm: LlmCost;
21001
21386
  /**
21002
21387
  * Memory spend in millicents.
21003
21388
  */
21004
21389
  memory: number;
21005
21390
  /**
21006
- * The grand total in millicents: llm + cpu + memory + fee.
21391
+ * Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee.
21392
+ */
21393
+ total: number;
21394
+ }
21395
+ /**
21396
+ * LLM token cost, in total and by model, split by who paid.
21397
+ */
21398
+ interface LlmCost {
21399
+ all: LlmCostSplit;
21400
+ /**
21401
+ * Token cost for each model that used tokens.
21402
+ */
21403
+ by_model: ModelLlmCostSplit[];
21404
+ }
21405
+ /**
21406
+ * Token cost across every model.
21407
+ */
21408
+ interface LlmCostSplit {
21409
+ /**
21410
+ * Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.
21411
+ */
21412
+ claude_subscription: number;
21413
+ /**
21414
+ * Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.
21415
+ */
21416
+ codex_subscription: number;
21417
+ /**
21418
+ * Token cost charged to Ellipsis credit, in millicents.
21419
+ */
21420
+ platform: number;
21421
+ /**
21422
+ * All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.
21423
+ */
21424
+ total: number;
21425
+ }
21426
+ /**
21427
+ * What one model's tokens cost, in millicents, split by who paid.
21428
+ */
21429
+ interface ModelLlmCostSplit {
21430
+ /**
21431
+ * Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.
21432
+ */
21433
+ claude_subscription: number;
21434
+ /**
21435
+ * Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.
21436
+ */
21437
+ codex_subscription: number;
21438
+ /**
21439
+ * The model that used these tokens.
21440
+ */
21441
+ model: string;
21442
+ /**
21443
+ * Token cost charged to Ellipsis credit, in millicents.
21444
+ */
21445
+ platform: number;
21446
+ /**
21447
+ * All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.
21007
21448
  */
21008
21449
  total: number;
21009
21450
  }
@@ -21130,6 +21571,43 @@ interface GithubCheckRunEvent {
21130
21571
  type: 'github.check_run';
21131
21572
  url: string;
21132
21573
  }
21574
+ interface GithubCheckSuiteEvent {
21575
+ action: CheckSuiteAction;
21576
+ actor: SessionEventActor | null;
21577
+ app: string | null;
21578
+ branch: string | null;
21579
+ conclusion: string | null;
21580
+ head_sha: string;
21581
+ pull_request_number: number | null;
21582
+ repository: string;
21583
+ type: 'github.check_suite';
21584
+ url: string;
21585
+ }
21586
+ interface GithubWorkflowRunEvent {
21587
+ action: WorkflowRunAction;
21588
+ actor: SessionEventActor | null;
21589
+ branch: string | null;
21590
+ conclusion: string | null;
21591
+ head_sha: string;
21592
+ name: string;
21593
+ pull_request_number: number | null;
21594
+ repository: string;
21595
+ run_number: number;
21596
+ type: 'github.workflow_run';
21597
+ url: string;
21598
+ }
21599
+ interface GithubStatusEvent {
21600
+ action: StatusAction;
21601
+ actor: SessionEventActor | null;
21602
+ branch: string | null;
21603
+ context: string;
21604
+ head_sha: string;
21605
+ pull_request_number: number | null;
21606
+ repository: string;
21607
+ state: string;
21608
+ type: 'github.status';
21609
+ url: string;
21610
+ }
21133
21611
  interface GithubReleaseEvent {
21134
21612
  action: ReleaseAction;
21135
21613
  actor: SessionEventActor | null;
@@ -21300,9 +21778,44 @@ interface SessionSummary {
21300
21778
  description: string;
21301
21779
  }
21302
21780
  /**
21303
- * The tokens the session spent and the model they went to. `total` includes the prompt-cache lanes.
21781
+ * The tokens the session has used so far.
21782
+ */
21783
+ interface Tokens {
21784
+ all: TokenCounts;
21785
+ /**
21786
+ * Token counts for each model that used tokens.
21787
+ */
21788
+ by_model: ModelTokenCounts[];
21789
+ }
21790
+ /**
21791
+ * Token counts across every model.
21792
+ */
21793
+ interface TokenCounts {
21794
+ /**
21795
+ * Tokens written to the prompt cache.
21796
+ */
21797
+ cache_creation: number;
21798
+ /**
21799
+ * Tokens read from the prompt cache.
21800
+ */
21801
+ cache_read: number;
21802
+ /**
21803
+ * Input tokens used.
21804
+ */
21805
+ input: number;
21806
+ /**
21807
+ * Output tokens used.
21808
+ */
21809
+ output: number;
21810
+ /**
21811
+ * All tokens used, including prompt cache reads and writes. Token cost is priced on this.
21812
+ */
21813
+ total: number;
21814
+ }
21815
+ /**
21816
+ * Token counts for one model.
21304
21817
  */
21305
- interface SessionTokens {
21818
+ interface ModelTokenCounts {
21306
21819
  /**
21307
21820
  * Tokens written to the prompt cache.
21308
21821
  */
@@ -21316,7 +21829,7 @@ interface SessionTokens {
21316
21829
  */
21317
21830
  input: number;
21318
21831
  /**
21319
- * The model the token counts are attributed to.
21832
+ * The model that used these tokens.
21320
21833
  */
21321
21834
  model: string;
21322
21835
  /**
@@ -21324,24 +21837,24 @@ interface SessionTokens {
21324
21837
  */
21325
21838
  output: number;
21326
21839
  /**
21327
- * Total tokens consumed, INCLUDING the prompt-cache reads and writes — the same basis the token cost is priced on.
21840
+ * All tokens used, including prompt cache reads and writes. Token cost is priced on this.
21328
21841
  */
21329
21842
  total: number;
21330
21843
  }
21331
21844
  /**
21332
- * One message and the agent's answer to it. A turn is `pending` from the
21333
- * moment its message is received until the agent starts on it, `running`
21334
- * while the agent works, then `completed`, `failed`, `stopped`, or
21335
- * `cancelled`.
21845
+ * One message and the agent's answer to it. A turn is `queued` from the
21846
+ * moment its message is received, `preparing` while its environment is set
21847
+ * up, `running` while the agent works, then `completed`, `failed`,
21848
+ * `stopped`, or `cancelled`.
21336
21849
  */
21337
21850
  interface SessionTurn {
21338
- cost: SessionCost1;
21851
+ cost: Cost1;
21339
21852
  /**
21340
21853
  * When the turn's message was received.
21341
21854
  */
21342
21855
  created_at: string;
21343
21856
  /**
21344
- * A human-readable explanation of a failed, stopped, or cancelled turn.
21857
+ * A human-readable explanation of a failed, stopped, or cancelled turn, or of why a queued turn waits.
21345
21858
  */
21346
21859
  detail: string | null;
21347
21860
  /**
@@ -21369,12 +21882,16 @@ interface SessionTurn {
21369
21882
  * When and by whom a stop was requested; null when none was.
21370
21883
  */
21371
21884
  stopped: SessionStopped | null;
21372
- tokens: SessionTokens1;
21885
+ tokens: Tokens1;
21373
21886
  }
21374
21887
  /**
21375
21888
  * What the turn cost so far, in millicents, broken down by leg.
21376
21889
  */
21377
- interface SessionCost1 {
21890
+ interface Cost1 {
21891
+ /**
21892
+ * What Ellipsis charged to credit, in millicents. It is everything except subscription tokens, and it is what the budget caps.
21893
+ */
21894
+ charged: number;
21378
21895
  /**
21379
21896
  * CPU spend in millicents.
21380
21897
  */
@@ -21383,16 +21900,13 @@ interface SessionCost1 {
21383
21900
  * Platform fee in millicents.
21384
21901
  */
21385
21902
  fee: number;
21386
- /**
21387
- * LLM spend in millicents.
21388
- */
21389
- llm: number;
21903
+ llm: LlmCost;
21390
21904
  /**
21391
21905
  * Memory spend in millicents.
21392
21906
  */
21393
21907
  memory: number;
21394
21908
  /**
21395
- * The grand total in millicents: llm + cpu + memory + fee.
21909
+ * Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee.
21396
21910
  */
21397
21911
  total: number;
21398
21912
  }
@@ -21412,31 +21926,12 @@ interface SessionStopped {
21412
21926
  /**
21413
21927
  * The tokens the turn spent and the model they went to.
21414
21928
  */
21415
- interface SessionTokens1 {
21416
- /**
21417
- * Tokens written to the prompt cache.
21418
- */
21419
- cache_creation: number;
21420
- /**
21421
- * Tokens read from the prompt cache.
21422
- */
21423
- cache_read: number;
21424
- /**
21425
- * Input tokens used.
21426
- */
21427
- input: number;
21428
- /**
21429
- * The model the token counts are attributed to.
21430
- */
21431
- model: string;
21929
+ interface Tokens1 {
21930
+ all: TokenCounts;
21432
21931
  /**
21433
- * Output tokens used.
21434
- */
21435
- output: number;
21436
- /**
21437
- * Total tokens consumed, INCLUDING the prompt-cache reads and writes — the same basis the token cost is priced on.
21932
+ * Token counts for each model that used tokens.
21438
21933
  */
21439
- total: number;
21934
+ by_model: ModelTokenCounts[];
21440
21935
  }
21441
21936
  /**
21442
21937
  * Cursored append-only delivery of session records, ordered by feed_seq,
@@ -22361,7 +22856,7 @@ interface MessageRequeuedRecord {
22361
22856
  }
22362
22857
  /**
22363
22858
  * message_requeued: a turn was interrupted before answering, so the
22364
- * message goes back to the inbox with a new pending turn.
22859
+ * message goes back to the inbox with a new queued turn.
22365
22860
  */
22366
22861
  interface MessageRequeuedPayload {
22367
22862
  message_id: string;
@@ -22369,6 +22864,49 @@ interface MessageRequeuedPayload {
22369
22864
  turn_id: string;
22370
22865
  [k: string]: unknown;
22371
22866
  }
22867
+ interface TurnQueuedRecord {
22868
+ cost: number | null;
22869
+ created_at: string;
22870
+ duration: number | null;
22871
+ /**
22872
+ * Position in the session feed and the stream's resume cursor.
22873
+ */
22874
+ feed_seq: number;
22875
+ /**
22876
+ * Unique identifier of the record.
22877
+ */
22878
+ id: string;
22879
+ kind: 'platform';
22880
+ model: string | null;
22881
+ payload: TurnQueuedPayload;
22882
+ record_format: 'ellipsis_lifecycle@1';
22883
+ record_type: 'turn_queued';
22884
+ /**
22885
+ * Session containing this record.
22886
+ */
22887
+ session_id: string;
22888
+ /**
22889
+ * Message this record receives, delivers, requeues, or echoes.
22890
+ */
22891
+ session_message_id: string | null;
22892
+ source: 'lifecycle';
22893
+ tokens_info: TokensInfo | null;
22894
+ tools: string[] | null;
22895
+ /**
22896
+ * Turn containing this record, when applicable.
22897
+ */
22898
+ turn_id: string | null;
22899
+ }
22900
+ /**
22901
+ * turn_queued: the turn waits because the account already has
22902
+ * `sessions_alive` sessions alive, its limit.
22903
+ */
22904
+ interface TurnQueuedPayload {
22905
+ limit: number;
22906
+ sessions_alive: number;
22907
+ turn_id: string;
22908
+ [k: string]: unknown;
22909
+ }
22372
22910
  interface TurnStartedRecord {
22373
22911
  cost: number | null;
22374
22912
  created_at: string;
@@ -22745,4 +23283,4 @@ type ReviewsListResponse = components['schemas']['ReviewsListResponse'];
22745
23283
  type ReviewConfig = components['schemas']['ReviewConfig'];
22746
23284
  type ReviewConfigsListResponse = components['schemas']['ReviewConfigsListResponse'];
22747
23285
 
22748
- export type { CodexReasoning as $, AgentConfig as A, BudgetConfig as B, CheckRunAction as C, CodexConfig as D, CodexContextCompaction as E, CodexEffortLevel as F, CodexErrorEvent as G, CodexErrorItem as H, CodexErrorParams as I, CodexEvent as J, CodexFileChange as K, CodexFileChangeItem as L, CodexFileUpdate as M, CodexItem as N, CodexItemCompleted as O, CodexItemCompletedEvent as P, CodexItemParams as Q, CodexItemStarted as R, CodexItemStartedEvent as S, CodexItemUpdatedEvent as T, CodexLocalImageInput as U, CodexMcpToolCall as V, CodexMcpToolCallAppContext as W, CodexMcpToolCallError as X, CodexMcpToolCallItem as Y, CodexMcpToolCallResult as Z, CodexPlan as _, AgentIdentity as a, LegacyAssistantPayload as a$, CodexReasoningItem as a0, CodexSessionRecord as a1, CodexTextInput as a2, CodexThread as a3, CodexThreadStarted as a4, CodexThreadStartedEvent as a5, CodexThreadStartedParams as a6, CodexThreadTokenUsage as a7, CodexTodoListItem as a8, CodexTokenUsageBreakdown as a9, EnvironmentConfig as aA, EnvironmentHooks as aB, EnvironmentHooks1 as aC, EnvironmentOutputPayload as aD, EnvironmentOutputRecord as aE, EnvironmentPhasePayload as aF, EnvironmentPhaseRecord as aG, EnvironmentReadyPayload as aH, EnvironmentReadyRecord as aI, EnvironmentScript as aJ, EnvironmentSource as aK, EnvironmentVariable as aL, ErrorFrame as aM, GithubAccountFilter as aN, GithubAccountSelector as aO, GithubAccountSnippet as aP, GithubAccountType as aQ, GithubCheckRunEvent as aR, GithubIssueEvent as aS, GithubPermissions as aT, GithubPullRequestEvent as aU, GithubPushEvent as aV, GithubReleaseEvent as aW, HandlerService as aX, HeartbeatFrame as aY, InputContract as aZ, IssueAction as a_, CodexTokenUsageParams as aa, CodexTokenUsageUpdated as ab, CodexTurn as ac, CodexTurnCompleted as ad, CodexTurnCompletedEvent as ae, CodexTurnError as af, CodexTurnFailedEvent as ag, CodexTurnParams as ah, CodexTurnStarted as ai, CodexTurnStartedEvent as aj, CodexUsage as ak, CodexUserInput as al, CodexUserMessage as am, CodexWebSearch as an, CodexWebSearchItem as ao, ComputeConfig as ap, ComputeConfig1 as aq, ConfigMetadata as ar, CronTrigger as as, DeltaFrame as at, DoneFrame as au, Duration as av, EffortLevel as aw, EllipsisGrant as ax, EllipsisPermissions as ay, EnvironmentBaseBuild as az, AttributionType as b, SessionAgent as b$, LegacyNativeUsage as b0, LegacyResultPayload as b1, Level as b2, LifecycleSessionRecord as b3, LinearIssueAction as b4, LinearIssueEvent as b5, McpRemoteServer as b6, McpServerRef as b7, McpStdioServer as b8, MemorySize as b9, ReviewComment as bA, ReviewConfig as bB, ReviewConfigsListResponse as bC, ReviewPullRequest as bD, ReviewPullRequestAuthor as bE, ReviewReviewer as bF, ReviewSummary as bG, ReviewsListResponse as bH, SdkAssistantRecord as bI, SdkCacheCreation as bJ, SdkContentBlock as bK, SdkRateLimitRecord as bL, SdkRecord as bM, SdkResultRecord as bN, SdkServerToolResultBlock as bO, SdkServerToolUseBlock as bP, SdkSystemRecord as bQ, SdkTextBlock as bR, SdkThinkingBlock as bS, SdkToolResultBlock as bT, SdkToolUseBlock as bU, SdkUserRecord as bV, SendSessionMessageRequest as bW, SentryAction as bX, SentryAlertEvent as bY, Session as bZ, Session1 as b_, MessageDeliveredPayload as ba, MessageDeliveredRecord as bb, MessageReceivedPayload as bc, MessageReceivedRecord as bd, MessageRequeuedPayload as be, MessageRequeuedRecord as bf, OutputConfig as bg, PermissionsConfig as bh, PermissionsConfig1 as bi, PlatformSessionRecord as bj, PromptBlockedReason as bk, PullRequestAction as bl, ReactCheckRun as bm, ReactIssue as bn, ReactLinearIssue as bo, ReactPullRequest as bp, ReactPush as bq, ReactRelease as br, ReactSentry as bs, ReactSlackChannel as bt, ReactTrigger as bu, RecordsAppendFrame as bv, ReleaseAction as bw, RepositoryFilter as bx, RepositoryRef as by, Review as bz, components as c, SessionArchived as c0, SessionAttribution as c1, SessionClosedPayload as c2, SessionClosedRecord as c3, SessionConfig as c4, SessionConversation as c5, SessionConversationConfig as c6, SessionCost as c7, SessionCost1 as c8, SessionEnvironment as c9, SessionTurnResponse as cA, SessionTurnsListResponse as cB, SessionsListResponse as cC, SettingsRef as cD, SkillRef as cE, SlackChannelCreatedEvent as cF, SlackMessageEvent as cG, SnapshotFrame as cH, StreamFrame as cI, TokensInfo as cJ, TurnEndedPayload as cK, TurnEndedRecord as cL, TurnReason as cM, TurnStartedPayload as cN, TurnStartedRecord as cO, TurnStatus as cP, UnknownSessionRecord as cQ, UpdateSessionRequest as cR, paths as cS, SessionEventActor as ca, SessionFrame as cb, SessionGit as cc, SessionGitCommit as cd, SessionGitFile as ce, SessionGitPr as cf, SessionGitRepo as cg, SessionHandler as ch, SessionMessage as ci, SessionMessageImage as cj, SessionMessageResponse as ck, SessionMessageStatus as cl, SessionOutput as cm, SessionParent as cn, SessionPrompting as co, SessionRecord as cp, SessionRecordsListResponse as cq, SessionResponse as cr, SessionSource as cs, SessionState as ct, SessionStopped as cu, SessionStreamFrame as cv, SessionSummary as cw, SessionTokens as cx, SessionTokens1 as cy, SessionTurn as cz, ClaudeAssistantEvent as d, ClaudeAssistantMessage as e, ClaudeConfig as f, ClaudeConversationResetEvent as g, ClaudeNativeEvent as h, ClaudeNativeSessionRecord as i, ClaudeNativeUsage as j, ClaudeRateLimitEvent as k, ClaudeRateLimitInfo as l, ClaudeResultEvent as m, ClaudeSessionRecord as n, ClaudeSystemEvent as o, ClaudeUserEvent as p, ClaudeUserMessage as q, CodexAgentMessage as r, CodexAgentMessageItem as s, CodexAppServerError as t, CodexAppServerEvent as u, CodexAppServerItem as v, CodexAppServerNotification as w, CodexAppServerSessionRecord as x, CodexCommandExecution as y, CodexCommandExecutionItem as z };
23286
+ export type { CodexPlan as $, AgentConfig as A, BudgetConfig as B, CheckRunAction as C, CodexCommandExecutionItem as D, CodexConfig as E, CodexContextCompaction as F, CodexEffortLevel as G, CodexErrorEvent as H, CodexErrorItem as I, CodexErrorParams as J, CodexEvent as K, CodexFileChange as L, CodexFileChangeItem as M, CodexFileUpdate as N, CodexItem as O, CodexItemCompleted as P, CodexItemCompletedEvent as Q, CodexItemParams as R, CodexItemStarted as S, CodexItemStartedEvent as T, CodexItemUpdatedEvent as U, CodexLocalImageInput as V, CodexMcpToolCall as W, CodexMcpToolCallAppContext as X, CodexMcpToolCallError as Y, CodexMcpToolCallItem as Z, CodexMcpToolCallResult as _, AgentIdentity as a, GithubStatusEvent as a$, CodexReasoning as a0, CodexReasoningItem as a1, CodexSessionRecord as a2, CodexTextInput as a3, CodexThread as a4, CodexThreadStarted as a5, CodexThreadStartedEvent as a6, CodexThreadStartedParams as a7, CodexThreadTokenUsage as a8, CodexTodoListItem as a9, EllipsisGrant as aA, EllipsisPermissions as aB, EnvironmentBaseBuild as aC, EnvironmentConfig as aD, EnvironmentHooks as aE, EnvironmentHooks1 as aF, EnvironmentOutputPayload as aG, EnvironmentOutputRecord as aH, EnvironmentPhasePayload as aI, EnvironmentPhaseRecord as aJ, EnvironmentReadyPayload as aK, EnvironmentReadyRecord as aL, EnvironmentScript as aM, EnvironmentSource as aN, EnvironmentVariable as aO, ErrorFrame as aP, GithubAccountFilter as aQ, GithubAccountSelector as aR, GithubAccountSnippet as aS, GithubAccountType as aT, GithubCheckRunEvent as aU, GithubCheckSuiteEvent as aV, GithubIssueEvent as aW, GithubPermissions as aX, GithubPullRequestEvent as aY, GithubPushEvent as aZ, GithubReleaseEvent as a_, CodexTokenUsageBreakdown as aa, CodexTokenUsageParams as ab, CodexTokenUsageUpdated as ac, CodexTurn as ad, CodexTurnCompleted as ae, CodexTurnCompletedEvent as af, CodexTurnError as ag, CodexTurnFailedEvent as ah, CodexTurnParams as ai, CodexTurnStarted as aj, CodexTurnStartedEvent as ak, CodexUsage as al, CodexUserInput as am, CodexUserMessage as an, CodexWebSearch as ao, CodexWebSearchItem as ap, ComputeConfig as aq, ComputeConfig1 as ar, ConfigMetadata as as, Cost as at, Cost1 as au, CronTrigger as av, DeltaFrame as aw, DoneFrame as ax, Duration as ay, EffortLevel as az, AttributionType as b, SdkServerToolResultBlock as b$, GithubWorkflowRunEvent as b0, HandlerService as b1, HeartbeatFrame as b2, InputContract as b3, IssueAction as b4, LegacyAssistantPayload as b5, LegacyNativeUsage as b6, LegacyResultPayload as b7, Level as b8, LifecycleSessionRecord as b9, ReactPullRequest as bA, ReactPush as bB, ReactRelease as bC, ReactSentry as bD, ReactSlackChannel as bE, ReactStatus as bF, ReactTrigger as bG, ReactWorkflowRun as bH, RecordsAppendFrame as bI, ReleaseAction as bJ, RepositoryFilter as bK, RepositoryRef as bL, Review as bM, ReviewComment as bN, ReviewConfig as bO, ReviewConfigsListResponse as bP, ReviewPullRequest as bQ, ReviewPullRequestAuthor as bR, ReviewReviewer as bS, ReviewSummary as bT, ReviewsListResponse as bU, SdkAssistantRecord as bV, SdkCacheCreation as bW, SdkContentBlock as bX, SdkRateLimitRecord as bY, SdkRecord as bZ, SdkResultRecord as b_, LinearIssueAction as ba, LinearIssueEvent as bb, LlmCost as bc, LlmCostSplit as bd, McpRemoteServer as be, McpServerRef as bf, McpStdioServer as bg, MemorySize as bh, MessageDeliveredPayload as bi, MessageDeliveredRecord as bj, MessageReceivedPayload as bk, MessageReceivedRecord as bl, MessageRequeuedPayload as bm, MessageRequeuedRecord as bn, ModelLlmCostSplit as bo, ModelTokenCounts as bp, OutputConfig as bq, PermissionsConfig as br, PermissionsConfig1 as bs, PlatformSessionRecord as bt, PromptBlockedReason as bu, PullRequestAction as bv, ReactCheckRun as bw, ReactCheckSuite as bx, ReactIssue as by, ReactLinearIssue as bz, components as c, TurnReason as c$, SdkServerToolUseBlock as c0, SdkSystemRecord as c1, SdkTextBlock as c2, SdkThinkingBlock as c3, SdkToolResultBlock as c4, SdkToolUseBlock as c5, SdkUserRecord as c6, SendSessionMessageRequest as c7, SentryAction as c8, SentryAlertEvent as c9, SessionRecord as cA, SessionRecordsListResponse as cB, SessionResponse as cC, SessionSource as cD, SessionState as cE, SessionStopped as cF, SessionStreamFrame as cG, SessionSummary as cH, SessionTurn as cI, SessionTurnResponse as cJ, SessionTurnsListResponse as cK, SessionsListResponse as cL, SettingsRef as cM, SkillRef as cN, SlackChannelCreatedEvent as cO, SlackMessageEvent as cP, SnapshotFrame as cQ, StatusAction as cR, StreamFrame as cS, TokenCounts as cT, Tokens as cU, Tokens1 as cV, TokensInfo as cW, TurnEndedPayload as cX, TurnEndedRecord as cY, TurnQueuedPayload as cZ, TurnQueuedRecord as c_, Session as ca, Session1 as cb, SessionAgent as cc, SessionArchived as cd, SessionAttribution as ce, SessionClosedPayload as cf, SessionClosedRecord as cg, SessionConfig as ch, SessionConversation as ci, SessionConversationConfig as cj, SessionEnvironment as ck, SessionEventActor as cl, SessionFrame as cm, SessionGit as cn, SessionGitCommit as co, SessionGitFile as cp, SessionGitPr as cq, SessionGitRepo as cr, SessionHandler as cs, SessionMessage as ct, SessionMessageImage as cu, SessionMessageResponse as cv, SessionMessageStatus as cw, SessionOutput as cx, SessionParent as cy, SessionPrompting as cz, CheckSuiteAction as d, TurnStartedPayload as d0, TurnStartedRecord as d1, TurnStatus as d2, UnknownSessionRecord as d3, UpdateSessionRequest as d4, WorkflowRunAction as d5, paths as d6, ClaudeAssistantEvent as e, ClaudeAssistantMessage as f, ClaudeConfig as g, ClaudeConversationResetEvent as h, ClaudeNativeEvent as i, ClaudeNativeSessionRecord as j, ClaudeNativeUsage as k, ClaudeRateLimitEvent as l, ClaudeRateLimitInfo as m, ClaudeResultEvent as n, ClaudeSessionRecord as o, ClaudeSystemEvent as p, ClaudeUserEvent as q, ClaudeUserMessage as r, CodexAgentMessage as s, CodexAgentMessageItem as t, CodexAppServerError as u, CodexAppServerEvent as v, CodexAppServerItem as w, CodexAppServerNotification as x, CodexAppServerSessionRecord as y, CodexCommandExecution as z };