@ellipsis-dev/sdk 0.37.0 → 0.38.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.
@@ -82,6 +82,26 @@ interface paths {
82
82
  patch?: never;
83
83
  trace?: never;
84
84
  };
85
+ '/v1/account/api-requests': {
86
+ parameters: {
87
+ query?: never;
88
+ header?: never;
89
+ path?: never;
90
+ cookie?: never;
91
+ };
92
+ /**
93
+ * List Api Requests
94
+ * @description List requests made to the API with API keys, user tokens, and session tokens, newest first.
95
+ */
96
+ get: operations['list_api_requests'];
97
+ put?: never;
98
+ post?: never;
99
+ delete?: never;
100
+ options?: never;
101
+ head?: never;
102
+ patch?: never;
103
+ trace?: never;
104
+ };
85
105
  '/v1/account/audit-log': {
86
106
  parameters: {
87
107
  query?: never;
@@ -138,90 +158,8 @@ interface paths {
138
158
  * card. No payment-method identifier or card details are exposed.
139
159
  */
140
160
  get: operations['get_auto_recharge'];
141
- /**
142
- * Update Auto Recharge
143
- * @description Set your automatic credit recharge policy.
144
- *
145
- * Requires a human account administrator; API keys and session tokens
146
- * cannot change this policy. Supply enabled explicitly. Saving amounts
147
- * with enabled=false keeps recharge off; enabling requires a saved card.
148
- * A recharge buys `amount` of credit and charges the platform fee in
149
- * addition. Amounts and thresholds are millicents in whole cents.
150
- */
151
- put: operations['update_auto_recharge'];
152
- post?: never;
153
- delete?: never;
154
- options?: never;
155
- head?: never;
156
- patch?: never;
157
- trace?: never;
158
- };
159
- '/v1/account/billing/card-setup': {
160
- parameters: {
161
- query?: never;
162
- header?: never;
163
- path?: never;
164
- cookie?: never;
165
- };
166
- get?: never;
167
- put?: never;
168
- /**
169
- * Create Card Setup Session
170
- * @description Save a card through Stripe's hosted setup flow.
171
- *
172
- * Requires a human account administrator. Open the returned URL to
173
- * finish setup and return to Billing. Saving a card does not enable
174
- * auto-recharge or buy credit.
175
- */
176
- post: operations['create_card_setup_session'];
177
- delete?: never;
178
- options?: never;
179
- head?: never;
180
- patch?: never;
181
- trace?: never;
182
- };
183
- '/v1/account/billing/checkout': {
184
- parameters: {
185
- query?: never;
186
- header?: never;
187
- path?: never;
188
- cookie?: never;
189
- };
190
- get?: never;
191
- put?: never;
192
- /**
193
- * Create Credit Checkout Session
194
- * @description Buy prepaid credit through Stripe's hosted checkout.
195
- *
196
- * Requires a human account administrator. Open the returned URL to
197
- * complete payment. Credit is granted only after payment succeeds;
198
- * the platform fee is charged in addition to `amount`. Returning
199
- * to Billing carries the checkout session ID for receipt lookup.
200
- */
201
- post: operations['create_credit_checkout_session'];
202
- delete?: never;
203
- options?: never;
204
- head?: never;
205
- patch?: never;
206
- trace?: never;
207
- };
208
- '/v1/account/billing/claim-signup-credit': {
209
- parameters: {
210
- query?: never;
211
- header?: never;
212
- path?: never;
213
- cookie?: never;
214
- };
215
- get?: never;
216
161
  put?: never;
217
- /**
218
- * Claim Signup Credit
219
- * @description The "Claim $100" button. Runs the same idempotent billing
220
- * bootstrap that otherwise fires lazily at the first session (Stripe
221
- * customer + usage subscription + the signup grant). A repeat call is
222
- * a no-op that returns the current state.
223
- */
224
- post: operations['claim_signup_credit'];
162
+ post?: never;
225
163
  delete?: never;
226
164
  options?: never;
227
165
  head?: never;
@@ -381,60 +319,6 @@ interface paths {
381
319
  patch?: never;
382
320
  trace?: never;
383
321
  };
384
- '/v1/account/notifications/test-email': {
385
- parameters: {
386
- query?: never;
387
- header?: never;
388
- path?: never;
389
- cookie?: never;
390
- };
391
- get?: never;
392
- put?: never;
393
- /**
394
- * Send Test Notification Email
395
- * @description Send the alert email template to one address with sample data,
396
- * so a typo'd finance alias is caught by a human instead of failing
397
- * silently when a real alert fires.
398
- */
399
- post: operations['send_test_notification_email'];
400
- delete?: never;
401
- options?: never;
402
- head?: never;
403
- patch?: never;
404
- trace?: never;
405
- };
406
- '/v1/account/onboarding': {
407
- parameters: {
408
- query?: never;
409
- header?: never;
410
- path?: never;
411
- cookie?: never;
412
- };
413
- /**
414
- * Get Account Onboarding
415
- * @description Read the account's saved onboarding answers, or null before setup.
416
- */
417
- get: operations['get_account_onboarding'];
418
- put?: never;
419
- post?: never;
420
- delete?: never;
421
- options?: never;
422
- head?: never;
423
- /**
424
- * Update Account Onboarding
425
- * @description Save supplied onboarding answers, preserving omitted answers.
426
- *
427
- * Organizations can save their work email before selecting use cases.
428
- * Saving use cases requires a valid organization work email and at
429
- * least one choice. When Other is the only choice, describe it.
430
- * Personal accounts save a null work email. This does not change the
431
- * billing contact email. Session tokens cannot update answers.
432
- * Supplying an organization work email requires a human user and sends
433
- * a Slack Connect invitation. Slack failures do not undo saved answers.
434
- */
435
- patch: operations['update_account_onboarding'];
436
- trace?: never;
437
- };
438
322
  '/v1/account/settings': {
439
323
  parameters: {
440
324
  query?: never;
@@ -616,13 +500,14 @@ interface paths {
616
500
  };
617
501
  /**
618
502
  * Get Agent Metrics
619
- * @description Return an agent's session distribution and trailing spend,
620
- * by id or by name.
503
+ * @description Return an agent's session distribution, trailing spend, and
504
+ * usage over a window, by id or by name.
621
505
  *
622
506
  * `samples` carries one entry per finished session (duration, cost,
623
507
  * tokens) for distributions; `spend_windows` carries what the
624
508
  * agent's sessions cost over the last 1, 7, and 28 days against
625
- * its budget for each window.
509
+ * its budget for each window; `buckets` splits start to end by
510
+ * `interval`, chosen from the window's length.
626
511
  */
627
512
  get: operations['get_agent_metrics'];
628
513
  put?: never;
@@ -758,86 +643,6 @@ interface paths {
758
643
  patch?: never;
759
644
  trace?: never;
760
645
  };
761
- '/v1/analytics/metrics': {
762
- parameters: {
763
- query?: never;
764
- header?: never;
765
- path?: never;
766
- cookie?: never;
767
- };
768
- /**
769
- * Get Analytics Metrics
770
- * @description Return PR and review analytics metrics.
771
- *
772
- * The same data as the analytics dashboard.
773
- *
774
- * Windowing: pass explicit start/end, or days (default: the last
775
- * 30 days). `interval` names the width of each entry in `series`,
776
- * chosen from the window's length. account_type in all|user|bot
777
- * scopes the authors (bot = the apps/agents). Available to all
778
- * credential types: the responses expose the organization's own
779
- * GitHub PR/review activity, no secrets.
780
- */
781
- get: operations['get_analytics_metrics'];
782
- put?: never;
783
- post?: never;
784
- delete?: never;
785
- options?: never;
786
- head?: never;
787
- patch?: never;
788
- trace?: never;
789
- };
790
- '/v1/analytics/pull-requests': {
791
- parameters: {
792
- query?: never;
793
- header?: never;
794
- path?: never;
795
- cookie?: never;
796
- };
797
- /**
798
- * Get Analytics Pull Requests
799
- * @description Return pull-request analytics.
800
- *
801
- * Windowing: pass explicit start/end, or days (default: the last
802
- * 30 days). `interval` names the width of each entry in `series`,
803
- * chosen from the window's length. account_type in all|user|bot
804
- * scopes the authors.
805
- */
806
- get: operations['get_analytics_pull_requests'];
807
- put?: never;
808
- post?: never;
809
- delete?: never;
810
- options?: never;
811
- head?: never;
812
- patch?: never;
813
- trace?: never;
814
- };
815
- '/v1/analytics/reviews': {
816
- parameters: {
817
- query?: never;
818
- header?: never;
819
- path?: never;
820
- cookie?: never;
821
- };
822
- /**
823
- * Get Analytics Reviews
824
- * @description Return pull request review analytics.
825
- *
826
- * account_type scopes reviewers (bot|user|all) — e.g. "what apps
827
- * review the most PRs?" is the reviewer facets here with
828
- * account_type=bot. Windowing: pass explicit start/end, or days
829
- * (default: the last 30 days). `interval` names the width of each
830
- * entry in `series`, chosen from the window's length.
831
- */
832
- get: operations['get_analytics_reviews'];
833
- put?: never;
834
- post?: never;
835
- delete?: never;
836
- options?: never;
837
- head?: never;
838
- patch?: never;
839
- trace?: never;
840
- };
841
646
  '/v1/auth/cli/poll': {
842
647
  parameters: {
843
648
  query?: never;
@@ -990,8 +795,8 @@ interface paths {
990
795
  * Get Handler Metrics
991
796
  * @description Return session counts and accumulated spend for a saved handler.
992
797
  *
993
- * Filters only by session creation time. Omitted bounds include all
994
- * history. Counts use the current turn and conversation state, so an open
798
+ * Filters only by session creation time. `buckets` splits the window
799
+ * by `interval`, chosen from the window's length. Counts use the current turn and conversation state, so an open
995
800
  * conversation awaiting another message remains active. Spend includes the selected sessions' full
996
801
  * accumulated cost, including activity after the creation-time window.
997
802
  * Only sessions carrying this exact saved handler id are counted;
@@ -1276,23 +1081,6 @@ interface paths {
1276
1081
  patch?: never;
1277
1082
  trace?: never;
1278
1083
  };
1279
- '/v1/integrations/slack/operations-channel': {
1280
- parameters: {
1281
- query?: never;
1282
- header?: never;
1283
- path?: never;
1284
- cookie?: never;
1285
- };
1286
- get?: never;
1287
- put?: never;
1288
- /** Create Operations Channel */
1289
- post: operations['create_operations_channel'];
1290
- delete?: never;
1291
- options?: never;
1292
- head?: never;
1293
- patch?: never;
1294
- trace?: never;
1295
- };
1296
1084
  '/v1/reviews': {
1297
1085
  parameters: {
1298
1086
  query?: never;
@@ -1448,23 +1236,6 @@ interface paths {
1448
1236
  patch?: never;
1449
1237
  trace?: never;
1450
1238
  };
1451
- '/v1/sessions/search': {
1452
- parameters: {
1453
- query?: never;
1454
- header?: never;
1455
- path?: never;
1456
- cookie?: never;
1457
- };
1458
- /** Search Sessions */
1459
- get: operations['search_sessions'];
1460
- put?: never;
1461
- post?: never;
1462
- delete?: never;
1463
- options?: never;
1464
- head?: never;
1465
- patch?: never;
1466
- trace?: never;
1467
- };
1468
1239
  '/v1/sessions/stream-ticket': {
1469
1240
  parameters: {
1470
1241
  query?: never;
@@ -1508,8 +1279,18 @@ interface paths {
1508
1279
  * Set archived to true to record the current server time and the
1509
1280
  * authenticated GitHub user. API-key requests record no user.
1510
1281
  * Repeated archive requests preserve the original time and user.
1511
- * Set archived to false to clear both fields. Archiving is available
1512
- * in any session state and does not stop a running session.
1282
+ * Archiving stops the message in progress. An archived session takes
1283
+ * no messages (409 `session_archived`), and a reply on the Slack
1284
+ * thread, pull request, issue, or Linear issue it answers starts a
1285
+ * new session. A session is also archived when it closes and after
1286
+ * the account's `archive_inactive_sessions_days` without a message.
1287
+ * When the account sets session log retention, the session's
1288
+ * records, messages, and prompt are deleted that many days after it
1289
+ * was archived (`archived.deletes_at`). The session itself stays.
1290
+ *
1291
+ * Set archived to false to clear both fields and let the session
1292
+ * take messages again. 409 `session_superseded` when a newer session
1293
+ * now answers the same thread.
1513
1294
  *
1514
1295
  * Changes are delivered to session and session-list streams.
1515
1296
  */
@@ -1640,8 +1421,8 @@ interface paths {
1640
1421
  * Send Session Message
1641
1422
  * @description Send a message to a session.
1642
1423
  *
1643
- * 409 for mention, non-interactive, closed, and out-of-budget
1644
- * sessions. Returns the created message; a retried send with the
1424
+ * 409 for mention, non-interactive, closed, archived, and
1425
+ * out-of-budget sessions. Returns the created message; a retried send with the
1645
1426
  * same idempotency_key returns the original one. The message is
1646
1427
  * answered once the session's status is `idle` or `closed`.
1647
1428
  */
@@ -1742,67 +1523,6 @@ interface paths {
1742
1523
  patch?: never;
1743
1524
  trace?: never;
1744
1525
  };
1745
- '/v1/sessions/{id}/transcript': {
1746
- parameters: {
1747
- query?: never;
1748
- header?: never;
1749
- path?: never;
1750
- cookie?: never;
1751
- };
1752
- get?: never;
1753
- put?: never;
1754
- /**
1755
- * Ingest Session Transcript
1756
- * @description Append transcript lines to a session's record.
1757
- *
1758
- * The transcript tailer running inside the session's environment, for
1759
- * interactive sessions.
1760
- *
1761
- * A session token may only push its own session's transcript.
1762
- * Idempotent by transcript line uuid; tolerant of malformed lines.
1763
- */
1764
- post: operations['ingest_session_transcript'];
1765
- delete?: never;
1766
- options?: never;
1767
- head?: never;
1768
- patch?: never;
1769
- trace?: never;
1770
- };
1771
- '/v1/support/slack': {
1772
- parameters: {
1773
- query?: never;
1774
- header?: never;
1775
- path?: never;
1776
- cookie?: never;
1777
- };
1778
- /** Get Slack Help */
1779
- get: operations['get_slack_help'];
1780
- put?: never;
1781
- /** Request Slack Help */
1782
- post: operations['request_slack_help'];
1783
- delete?: never;
1784
- options?: never;
1785
- head?: never;
1786
- patch?: never;
1787
- trace?: never;
1788
- };
1789
- '/v1/support/slack/invites': {
1790
- parameters: {
1791
- query?: never;
1792
- header?: never;
1793
- path?: never;
1794
- cookie?: never;
1795
- };
1796
- get?: never;
1797
- put?: never;
1798
- /** Invite To Slack Help */
1799
- post: operations['invite_to_slack_help'];
1800
- delete?: never;
1801
- options?: never;
1802
- head?: never;
1803
- patch?: never;
1804
- trace?: never;
1805
- };
1806
1526
  '/v1/user/tokens': {
1807
1527
  parameters: {
1808
1528
  query?: never;
@@ -2189,54 +1909,6 @@ interface components {
2189
1909
  */
2190
1910
  window_days: number;
2191
1911
  };
2192
- /**
2193
- * AccountOnboarding
2194
- * @description How the installed account plans to use Ellipsis.
2195
- */
2196
- AccountOnboarding: {
2197
- /**
2198
- * Cli Logged In
2199
- * @description True once a member approves a CLI login for this account.
2200
- * @default false
2201
- */
2202
- cli_logged_in: boolean;
2203
- /**
2204
- * Finished
2205
- * @description True once a member finishes onboarding for this account.
2206
- * @default false
2207
- */
2208
- finished: boolean;
2209
- /** Other Use Case */
2210
- other_use_case?: string | null;
2211
- /** Use Cases */
2212
- use_cases?: components['schemas']['AccountOnboardingUseCase'][];
2213
- /**
2214
- * Work Email
2215
- * @description Required for organizations; saved as null for personal accounts. Separate from the account's billing contact email.
2216
- */
2217
- work_email?: string | null;
2218
- };
2219
- /** AccountOnboardingResponse */
2220
- AccountOnboardingResponse: {
2221
- onboarding: components['schemas']['AccountOnboarding'] | null;
2222
- /** @description Invitation outcome when a signed-in user saves an organization work email. Sent means this request confirmed a new invitation; saving answers still succeeds if Slack is unavailable. Null for reads and other updates. */
2223
- slack_invitation?: components['schemas']['AccountOnboardingSlackInvitation'] | null;
2224
- };
2225
- /** AccountOnboardingSlackInvitation */
2226
- AccountOnboardingSlackInvitation: {
2227
- /** Error */
2228
- error?: string | null;
2229
- /**
2230
- * Status
2231
- * @enum {string}
2232
- */
2233
- status: 'sent' | 'already_sent' | 'connected' | 'failed' | 'unknown';
2234
- };
2235
- /**
2236
- * AccountOnboardingUseCase
2237
- * @enum {string}
2238
- */
2239
- AccountOnboardingUseCase: 'development' | 'automations' | 'software-factories' | 'code-review' | 'slack-agents' | 'other';
2240
1912
  /** AccountResponse */
2241
1913
  AccountResponse: {
2242
1914
  /** Account Id */
@@ -2441,6 +2113,13 @@ interface components {
2441
2113
  * @description An agent's session distribution and trailing spend.
2442
2114
  */
2443
2115
  AgentMetricsResponse: {
2116
+ /**
2117
+ * Buckets
2118
+ * @description Sessions created and usage in each bucket of the window, oldest first, with zeros for buckets without either.
2119
+ */
2120
+ buckets: components['schemas']['ConfigUsageBucket'][];
2121
+ /** @description The width of each bucket, chosen from the window's length. */
2122
+ interval: components['schemas']['SeriesInterval'];
2444
2123
  /**
2445
2124
  * Samples
2446
2125
  * @description One entry per finished session, unordered.
@@ -2595,213 +2274,6 @@ interface components {
2595
2274
  */
2596
2275
  next_cursor?: string | null;
2597
2276
  };
2598
- /**
2599
- * AnalyticsMetricsBucket
2600
- * @description Pull-request and review activity in one bucket of the window. Each count
2601
- * keys on its own event's timestamp. Pull requests count when they were
2602
- * opened, merged, or closed, review verdicts when the review was submitted,
2603
- * and review comments when the comment was created. The shipped rollup
2604
- * (additions, deletions, commits, active contributors) covers pull requests
2605
- * merged in the bucket.
2606
- */
2607
- AnalyticsMetricsBucket: {
2608
- /**
2609
- * Active Contributors
2610
- * @description Distinct authors who merged a pull request in this bucket.
2611
- */
2612
- active_contributors: number;
2613
- /**
2614
- * Additions
2615
- * @description Lines added across pull requests merged in this bucket.
2616
- */
2617
- additions: number;
2618
- /**
2619
- * Approved
2620
- * @description Approving reviews submitted in this bucket.
2621
- */
2622
- approved: number;
2623
- /**
2624
- * Changes Requested
2625
- * @description Changes-requested reviews submitted in this bucket.
2626
- */
2627
- changes_requested: number;
2628
- /**
2629
- * Commented
2630
- * @description Comment-only reviews submitted in this bucket.
2631
- */
2632
- commented: number;
2633
- /**
2634
- * Commits
2635
- * @description Commits across pull requests merged in this bucket.
2636
- */
2637
- commits: number;
2638
- /**
2639
- * Date
2640
- * Format: date-time
2641
- * @description When the bucket starts, in UTC.
2642
- */
2643
- date: string;
2644
- /**
2645
- * Deletions
2646
- * @description Lines deleted across pull requests merged in this bucket.
2647
- */
2648
- deletions: number;
2649
- /**
2650
- * Prs Closed
2651
- * @description Pull requests closed without merging in this bucket.
2652
- */
2653
- prs_closed: number;
2654
- /**
2655
- * Prs Merged
2656
- * @description Pull requests merged in this bucket.
2657
- */
2658
- prs_merged: number;
2659
- /**
2660
- * Prs Opened
2661
- * @description Pull requests opened in this bucket.
2662
- */
2663
- prs_opened: number;
2664
- /**
2665
- * Review Comments
2666
- * @description Inline review comments created in this bucket.
2667
- */
2668
- review_comments: number;
2669
- /**
2670
- * Reviews
2671
- * @description Reviews submitted in this bucket.
2672
- */
2673
- reviews: number;
2674
- /** @description Time-to-merge percentiles over pull requests merged in this bucket. */
2675
- time_to_merge_hours: components['schemas']['DurationPercentiles'];
2676
- };
2677
- /**
2678
- * AnalyticsMetricsTotals
2679
- * @description Window-wide totals for the analytics overview.
2680
- */
2681
- AnalyticsMetricsTotals: {
2682
- /**
2683
- * Active Contributors
2684
- * @description Distinct authors who merged a pull request in the window.
2685
- */
2686
- active_contributors: number;
2687
- /**
2688
- * Additions
2689
- * @description Lines added across pull requests merged in the window.
2690
- */
2691
- additions: number;
2692
- /**
2693
- * Approved
2694
- * @description Approving reviews in the window.
2695
- */
2696
- approved: number;
2697
- /**
2698
- * Changes Requested
2699
- * @description Changes-requested reviews in the window.
2700
- */
2701
- changes_requested: number;
2702
- /**
2703
- * Commented
2704
- * @description Comment-only reviews in the window.
2705
- */
2706
- commented: number;
2707
- /**
2708
- * Commits
2709
- * @description Commits across pull requests merged in the window.
2710
- */
2711
- commits: number;
2712
- /**
2713
- * Deletions
2714
- * @description Lines deleted across pull requests merged in the window.
2715
- */
2716
- deletions: number;
2717
- /**
2718
- * Median Time To First Review Hours
2719
- * @description Median hours from opening a pull request to its first review, over pull requests reviewed in the window.
2720
- */
2721
- median_time_to_first_review_hours: number;
2722
- /**
2723
- * Median Time To Merge Hours
2724
- * @description Median hours from opening to merging, over pull requests merged in the window.
2725
- */
2726
- median_time_to_merge_hours: number;
2727
- /**
2728
- * Open Prs
2729
- * @description Pull requests opened in the window that are still open or draft.
2730
- */
2731
- open_prs: number;
2732
- /**
2733
- * Prs Closed
2734
- * @description Pull requests closed without merging in the window.
2735
- */
2736
- prs_closed: number;
2737
- /**
2738
- * Prs Merged
2739
- * @description Pull requests merged in the window.
2740
- */
2741
- prs_merged: number;
2742
- /**
2743
- * Prs Opened
2744
- * @description Pull requests opened in the window.
2745
- */
2746
- prs_opened: number;
2747
- /**
2748
- * Prs Reviewed
2749
- * @description Distinct pull requests that received at least one review in the window.
2750
- */
2751
- prs_reviewed: number;
2752
- /**
2753
- * Review Comments
2754
- * @description Inline review comments created in the window.
2755
- */
2756
- review_comments: number;
2757
- /**
2758
- * Reviews
2759
- * @description Reviews submitted in the window.
2760
- */
2761
- reviews: number;
2762
- };
2763
- /**
2764
- * AnalyticsRepoUsage
2765
- * @description Per-repository shipped activity: pull requests merged in the window and
2766
- * the lines they carried.
2767
- */
2768
- AnalyticsRepoUsage: {
2769
- /**
2770
- * Active Contributors
2771
- * @description Distinct authors who merged a pull request in this repository.
2772
- */
2773
- active_contributors: number;
2774
- /**
2775
- * Additions
2776
- * @description Lines added across merged pull requests in this repository.
2777
- */
2778
- additions: number;
2779
- /**
2780
- * Ai Attributed Prs
2781
- * @description Merged pull requests whose author is a bot.
2782
- */
2783
- ai_attributed_prs: number;
2784
- /**
2785
- * Deletions
2786
- * @description Lines deleted across merged pull requests in this repository.
2787
- */
2788
- deletions: number;
2789
- /**
2790
- * Prs Merged
2791
- * @description Pull requests merged in this repository in the window.
2792
- */
2793
- prs_merged: number;
2794
- /**
2795
- * Repo Full Name
2796
- * @description The repository's full "owner/name" identifier.
2797
- */
2798
- repo_full_name: string;
2799
- /**
2800
- * Reviews
2801
- * @description Reviews submitted in this repository in the window.
2802
- */
2803
- reviews: number;
2804
- };
2805
2277
  /** AnalyticsSettings */
2806
2278
  'AnalyticsSettings-Input': {
2807
2279
  /** Enabled */
@@ -2832,26 +2304,80 @@ interface components {
2832
2304
  revoked_at: string | null;
2833
2305
  };
2834
2306
  /**
2835
- * AttributionType
2836
- * @enum {string}
2307
+ * ApiRequest
2308
+ * @description One authenticated call to the API.
2837
2309
  */
2838
- AttributionType: 'github_user' | 'linear_user' | 'slack_user' | 'api_key';
2310
+ ApiRequest: {
2311
+ /**
2312
+ * Created At
2313
+ * Format: date-time
2314
+ */
2315
+ created_at: string;
2316
+ credential: components['schemas']['ApiRequestCredential'] | null;
2317
+ /** Duration Ms */
2318
+ duration_ms: number;
2319
+ /**
2320
+ * Id
2321
+ * @description The `X-Request-ID` header returned with the response.
2322
+ */
2323
+ id: string;
2324
+ /** Method */
2325
+ method: string;
2326
+ /**
2327
+ * Operation
2328
+ * @description The operation id, such as `start_session`. Null when the path matched no route.
2329
+ */
2330
+ operation: string | null;
2331
+ /** Path */
2332
+ path: string;
2333
+ /** Status Code */
2334
+ status_code: number;
2335
+ /** User Agent */
2336
+ user_agent: string | null;
2337
+ };
2839
2338
  /**
2840
- * AuthorFacet
2841
- * @description An author filter option, counted over the unfiltered window.
2339
+ * ApiRequestCredential
2340
+ * @description The credential that authenticated a request.
2842
2341
  */
2843
- AuthorFacet: {
2342
+ ApiRequestCredential: {
2844
2343
  /**
2845
- * Login
2846
- * @description The author's GitHub login.
2344
+ * Id
2345
+ * @description The API key or user token id. For a session token, the session id.
2847
2346
  */
2848
- login: string;
2347
+ id: string | null;
2849
2348
  /**
2850
- * Prs
2851
- * @description Unfiltered pull-request count for this author in the window.
2349
+ * Name
2350
+ * @description The API key or user token name. Null for a session token.
2351
+ */
2352
+ name: string | null;
2353
+ type: components['schemas']['ApiRequestCredentialType'];
2354
+ };
2355
+ /**
2356
+ * ApiRequestCredentialType
2357
+ * @enum {string}
2358
+ */
2359
+ ApiRequestCredentialType: 'api_key' | 'user_token' | 'session_token';
2360
+ /** ApiRequestsListResponse */
2361
+ ApiRequestsListResponse: {
2362
+ /** Api Requests */
2363
+ api_requests: components['schemas']['ApiRequest'][];
2364
+ /**
2365
+ * Has More
2366
+ * @description Whether more results exist past this page.
2367
+ * @default false
2368
+ */
2369
+ has_more: boolean;
2370
+ /**
2371
+ * Next Cursor
2372
+ * @description Pass as `cursor` to fetch the next page. Null on the last page. Opaque — echo it back rather than parsing it.
2852
2373
  */
2853
- prs: number;
2374
+ next_cursor?: string | null;
2854
2375
  };
2376
+ /**
2377
+ * AttributionType
2378
+ * @enum {string}
2379
+ */
2380
+ AttributionType: 'github_user' | 'linear_user' | 'slack_user' | 'api_key';
2855
2381
  /** AutoRechargeCard */
2856
2382
  AutoRechargeCard: {
2857
2383
  /**
@@ -2892,26 +2418,6 @@ interface components {
2892
2418
  /** Threshold */
2893
2419
  threshold: number;
2894
2420
  };
2895
- /** AutoRechargeUpdate */
2896
- AutoRechargeUpdate: {
2897
- /** Amount */
2898
- amount: number;
2899
- /**
2900
- * Enabled
2901
- * @description Explicit opt-in; enabling requires a saved card.
2902
- */
2903
- enabled: boolean;
2904
- /** Threshold */
2905
- threshold: number;
2906
- };
2907
- /** BillingCheckout */
2908
- BillingCheckout: {
2909
- /**
2910
- * Url
2911
- * @description Stripe-hosted URL to open to complete this flow.
2912
- */
2913
- url: string;
2914
- };
2915
2421
  /**
2916
2422
  * BillingPeriodOption
2917
2423
  * @description One selectable billing period. Dates are yyyy-MM-dd (UTC); period_end is
@@ -4751,47 +4257,25 @@ interface components {
4751
4257
  window_days: number;
4752
4258
  };
4753
4259
  /**
4754
- * ContributorUsage
4755
- * @description An author who merged a pull request in the window. The pull-request and
4756
- * line counts cover their merged pull requests; `reviews` counts reviews this
4757
- * person also submitted.
4260
+ * ConfigUsageBucket
4261
+ * @description One bucket of a saved agent's or handler's sessions and usage.
4758
4262
  */
4759
- ContributorUsage: {
4760
- /**
4761
- * Additions
4762
- * @description Lines added across their merged pull requests.
4763
- */
4764
- additions: number;
4765
- /**
4766
- * Ai Attributed Prs
4767
- * @description Their merged pull requests authored by a bot identity.
4768
- */
4769
- ai_attributed_prs: number;
4770
- /**
4771
- * Avatar Url
4772
- * @description The contributor's GitHub avatar URL.
4773
- */
4774
- avatar_url: string | null;
4775
- /**
4776
- * Deletions
4777
- * @description Lines deleted across their merged pull requests.
4778
- */
4779
- deletions: number;
4780
- /**
4781
- * Login
4782
- * @description The contributor's GitHub login.
4783
- */
4784
- login: string;
4263
+ ConfigUsageBucket: {
4264
+ /** @description What the bucket's usage cost. */
4265
+ cost: components['schemas']['Cost'];
4785
4266
  /**
4786
- * Prs Merged
4787
- * @description Pull requests this contributor merged in the window.
4267
+ * Date
4268
+ * Format: date-time
4269
+ * @description When the bucket starts, in UTC.
4788
4270
  */
4789
- prs_merged: number;
4271
+ date: string;
4790
4272
  /**
4791
- * Reviews
4792
- * @description Reviews this contributor submitted in the window.
4273
+ * Sessions
4274
+ * @description Sessions created in the bucket.
4793
4275
  */
4794
- reviews: number;
4276
+ sessions: number;
4277
+ /** @description The tokens used in the bucket. */
4278
+ tokens: components['schemas']['Tokens'];
4795
4279
  };
4796
4280
  /**
4797
4281
  * Cost
@@ -4937,14 +4421,6 @@ interface components {
4937
4421
  */
4938
4422
  amount_paid: number;
4939
4423
  };
4940
- /** CreditPurchaseRequest */
4941
- CreditPurchaseRequest: {
4942
- /**
4943
- * Amount
4944
- * @description Credit to buy, in millicents, as a whole number of cents. The platform fee is added at checkout.
4945
- */
4946
- amount: number;
4947
- };
4948
4424
  /**
4949
4425
  * CronTrigger
4950
4426
  * @description A schedule: `schedule` is a five-field cron expression in UTC.
@@ -5002,12 +4478,20 @@ interface components {
5002
4478
  * @description Reserved; API request retention is not yet enforced.
5003
4479
  */
5004
4480
  api_requests_days?: number | null;
4481
+ /**
4482
+ * Archive Inactive Sessions Days
4483
+ * @description Days without a message before a session is archived. A session is also archived when it closes. 1 to 90, default 7.
4484
+ */
4485
+ archive_inactive_sessions_days?: number;
5005
4486
  /**
5006
4487
  * Environment Snapshots Days
5007
4488
  * @description Retention of newly created reusable environment snapshots, up to 28 days from creation. Paused session workspaces have a separate lifetime.
5008
4489
  */
5009
4490
  environment_snapshots_days?: number;
5010
- /** Session Logs Days */
4491
+ /**
4492
+ * Session Logs Days
4493
+ * @description Days after a session is archived before its records and messages are deleted. The session itself stays. Null keeps them.
4494
+ */
5011
4495
  session_logs_days?: number | null;
5012
4496
  /**
5013
4497
  * Webhooks Days
@@ -5022,13 +4506,22 @@ interface components {
5022
4506
  * @description Reserved; API request retention is not yet enforced.
5023
4507
  */
5024
4508
  api_requests_days: number | null;
4509
+ /**
4510
+ * Archive Inactive Sessions Days
4511
+ * @description Days without a message before a session is archived. A session is also archived when it closes. 1 to 90, default 7.
4512
+ * @default 7
4513
+ */
4514
+ archive_inactive_sessions_days: number;
5025
4515
  /**
5026
4516
  * Environment Snapshots Days
5027
4517
  * @description Retention of newly created reusable environment snapshots, up to 28 days from creation. Paused session workspaces have a separate lifetime.
5028
4518
  * @default 28
5029
4519
  */
5030
4520
  environment_snapshots_days: number;
5031
- /** Session Logs Days */
4521
+ /**
4522
+ * Session Logs Days
4523
+ * @description Days after a session is archived before its records and messages are deleted. The session itself stays. Null keeps them.
4524
+ */
5032
4525
  session_logs_days: number | null;
5033
4526
  /**
5034
4527
  * Webhooks Days
@@ -5140,38 +4633,6 @@ interface components {
5140
4633
  /** Seconds */
5141
4634
  seconds: number | null;
5142
4635
  };
5143
- /**
5144
- * DurationPercentiles
5145
- * @description Percentiles of a duration distribution, in hours. p0 = fastest,
5146
- * p100 = slowest; the spread shows how merge latency varies.
5147
- */
5148
- DurationPercentiles: {
5149
- /**
5150
- * P0
5151
- * @description The fastest value, in hours.
5152
- */
5153
- p0: number;
5154
- /**
5155
- * P100
5156
- * @description The slowest value, in hours.
5157
- */
5158
- p100: number;
5159
- /**
5160
- * P25
5161
- * @description The 25th-percentile value, in hours.
5162
- */
5163
- p25: number;
5164
- /**
5165
- * P50
5166
- * @description The median value, in hours.
5167
- */
5168
- p50: number;
5169
- /**
5170
- * P75
5171
- * @description The 75th-percentile value, in hours.
5172
- */
5173
- p75: number;
5174
- };
5175
4636
  /**
5176
4637
  * EffortLevel
5177
4638
  * @enum {string}
@@ -5874,7 +5335,7 @@ interface components {
5874
5335
  ErrorInfo: {
5875
5336
  /**
5876
5337
  * Code
5877
- * @description Stable machine-readable error code. Open vocabulary — handle unknown codes by HTTP status. Known values: account_blocked, budget_exceeds_ceiling, conflict, contact_email_required, failed_dependency, forbidden, internal_error, invalid_cursor, invalid_request, not_found, rate_limit_exceeded, rate_limited, session_budget_exhausted, session_closed, session_finished, session_harness_single_turn, session_mention_surface, session_non_interactive, session_not_spawner, unauthorized, unavailable, unsupported_session_combination, webhook_limit_reached, webhook_not_pending, webhook_ping_rate_limited, webhook_unverified, webhooks_unavailable.
5338
+ * @description Stable machine-readable error code. Open vocabulary — handle unknown codes by HTTP status. Known values: account_blocked, budget_exceeds_ceiling, conflict, contact_email_required, failed_dependency, forbidden, internal_error, invalid_cursor, invalid_request, not_found, rate_limit_exceeded, rate_limited, session_archived, session_budget_exhausted, session_closed, session_finished, session_harness_single_turn, session_mention_surface, session_non_interactive, session_not_spawner, session_superseded, unauthorized, unavailable, unsupported_session_combination, webhook_limit_reached, webhook_not_pending, webhook_ping_rate_limited, webhook_unverified, webhooks_unavailable.
5878
5339
  */
5879
5340
  code: string;
5880
5341
  /**
@@ -6216,105 +5677,6 @@ interface components {
6216
5677
  } & {
6217
5678
  [key: string]: unknown;
6218
5679
  };
6219
- /**
6220
- * GetAnalyticsMetricsResponse
6221
- * @description Organization-wide pull-request and review analytics, aggregated
6222
- * server-side over the requested window and filters, with filter facets
6223
- * derived from the unfiltered pull-request set.
6224
- */
6225
- GetAnalyticsMetricsResponse: {
6226
- /**
6227
- * Available Authors
6228
- * @description Author filter options from the unfiltered window.
6229
- */
6230
- available_authors: components['schemas']['AuthorFacet'][];
6231
- /**
6232
- * Available Repos
6233
- * @description Repository filter options from the unfiltered window.
6234
- */
6235
- available_repos: components['schemas']['RepoFacet'][];
6236
- /**
6237
- * Contributors
6238
- * @description Per-contributor breakdown, most merged pull requests first.
6239
- */
6240
- contributors: components['schemas']['ContributorUsage'][];
6241
- /** @description The width of each bucket in series, chosen from the window's length. */
6242
- interval: components['schemas']['SeriesInterval'];
6243
- /**
6244
- * Repositories
6245
- * @description Per-repository breakdown, most merged pull requests first.
6246
- */
6247
- repositories: components['schemas']['AnalyticsRepoUsage'][];
6248
- /**
6249
- * Reviewers
6250
- * @description Per-reviewer breakdown, most reviews first.
6251
- */
6252
- reviewers: components['schemas']['ReviewerUsage'][];
6253
- /**
6254
- * Series
6255
- * @description Buckets covering the window, oldest first, one interval wide each.
6256
- */
6257
- series: components['schemas']['AnalyticsMetricsBucket'][];
6258
- /** @description Window-wide totals. */
6259
- totals: components['schemas']['AnalyticsMetricsTotals'];
6260
- };
6261
- /**
6262
- * GetAnalyticsPullRequestsResponse
6263
- * @description Pull-request analytics for the requested window: per-day trends with
6264
- * human/bot splits, window totals, filter facets, and the most recent pull
6265
- * requests.
6266
- */
6267
- GetAnalyticsPullRequestsResponse: {
6268
- /** @description Available filter options, from the unfiltered window. */
6269
- facets: components['schemas']['PullRequestFacets'];
6270
- /** @description The width of each bucket in series, chosen from the window's length. */
6271
- interval: components['schemas']['SeriesInterval'];
6272
- /**
6273
- * Recent
6274
- * @description The most recent pull requests, newest first, capped.
6275
- */
6276
- recent: components['schemas']['RecentPullRequest'][];
6277
- /**
6278
- * Series
6279
- * @description Buckets covering the window, oldest first, one interval wide each.
6280
- */
6281
- series: components['schemas']['PullRequestsBucket'][];
6282
- /** @description Window-wide totals. */
6283
- totals: components['schemas']['PullRequestsTotals'];
6284
- /**
6285
- * Truncated
6286
- * @description True when the window hit the scan limit and the figures undercount.
6287
- */
6288
- truncated: boolean;
6289
- };
6290
- /**
6291
- * GetAnalyticsReviewsResponse
6292
- * @description Review analytics for the requested window: the review and inline-comment
6293
- * feeds, per-day trends, full-set totals, and filter facets.
6294
- */
6295
- GetAnalyticsReviewsResponse: {
6296
- /** @description Available filter options. */
6297
- facets: components['schemas']['ReviewFacets'];
6298
- /** @description The width of each bucket in series, chosen from the window's length. */
6299
- interval: components['schemas']['SeriesInterval'];
6300
- /**
6301
- * Review Comments
6302
- * @description The inline-comment feed, newest first, capped.
6303
- */
6304
- review_comments: components['schemas']['ReviewCommentListItem'][];
6305
- /**
6306
- * Reviews
6307
- * @description The review feed, newest first, capped.
6308
- */
6309
- reviews: components['schemas']['ReviewListItem'][];
6310
- /**
6311
- * Series
6312
- * @description Buckets covering the window, oldest first, one interval wide each.
6313
- */
6314
- series: components['schemas']['ReviewsBucket'][];
6315
- /** @description Window-wide totals. */
6316
- totals: components['schemas']['ReviewsTotals'];
6317
- };
6318
5680
  /**
6319
5681
  * GetIntegrationsResponse
6320
5682
  * @description Everything connected for the calling account, in one call. A key is
@@ -6417,16 +5779,10 @@ interface components {
6417
5779
  tokens: components['schemas']['Tokens'];
6418
5780
  };
6419
5781
  'GithubAccountFilter-Input': {
6420
- /**
6421
- * Exclude
6422
- * @default []
6423
- */
6424
- exclude: string[];
6425
- /**
6426
- * Include
6427
- * @default true
6428
- */
6429
- include: string[] | boolean;
5782
+ /** Exclude */
5783
+ exclude?: string[];
5784
+ /** Include */
5785
+ include?: string[] | boolean;
6430
5786
  } | boolean | string[];
6431
5787
  'GithubAccountFilter-Output': {
6432
5788
  /**
@@ -6968,8 +6324,29 @@ interface components {
6968
6324
  private: boolean;
6969
6325
  };
6970
6326
  /**
6971
- * GithubRoutes
6972
- * @description Which repositories one agent answers @ellipsis in. `"*"` means every one.
6327
+ * GithubRepositorySnippet
6328
+ * @description A GitHub repository, named by its owner and name.
6329
+ */
6330
+ GithubRepositorySnippet: {
6331
+ /**
6332
+ * Id
6333
+ * @description The GitHub repository id.
6334
+ */
6335
+ id: number;
6336
+ /**
6337
+ * Name
6338
+ * @description The repository name.
6339
+ */
6340
+ name: string;
6341
+ /**
6342
+ * Owner
6343
+ * @description The repository owner's login.
6344
+ */
6345
+ owner: string;
6346
+ };
6347
+ /**
6348
+ * GithubRoutes
6349
+ * @description Which repositories one agent answers @ellipsis in. `"*"` means every one.
6973
6350
  *
6974
6351
  * `repositories` must be non-empty: an entry claiming nothing would be a config
6975
6352
  * a customer wrote, committed, and that answers nowhere — the silent-config
@@ -7153,18 +6530,26 @@ interface components {
7153
6530
  * @description Session counts and spend attributed to one saved handler.
7154
6531
  */
7155
6532
  HandlerMetricsResponse: {
6533
+ /**
6534
+ * Buckets
6535
+ * @description Sessions created and usage in each bucket of the window, oldest first, with zeros for buckets without either.
6536
+ */
6537
+ buckets: components['schemas']['ConfigUsageBucket'][];
7156
6538
  /** @description What the selected sessions cost together. */
7157
6539
  cost: components['schemas']['Cost'];
7158
6540
  /**
7159
6541
  * End
7160
- * @description Exclusive session creation-time bound, or null for no upper bound.
6542
+ * Format: date-time
6543
+ * @description Exclusive session creation-time bound.
7161
6544
  */
7162
- end: string | null;
6545
+ end: string;
7163
6546
  /**
7164
6547
  * Handler Id
7165
6548
  * @description The saved handler whose sessions are counted.
7166
6549
  */
7167
6550
  handler_id: string;
6551
+ /** @description The width of each bucket, chosen from the window's length. */
6552
+ interval: components['schemas']['SeriesInterval'];
7168
6553
  /** @description Current outcomes of sessions created in the window; outcome counts sum to total. */
7169
6554
  sessions: components['schemas']['HandlerSessionCounts'];
7170
6555
  /**
@@ -7174,9 +6559,10 @@ interface components {
7174
6559
  spend_windows: components['schemas']['ConfigSpendWindow'][];
7175
6560
  /**
7176
6561
  * Start
7177
- * @description Inclusive session creation-time bound, or null for no lower bound.
6562
+ * Format: date-time
6563
+ * @description Inclusive session creation-time bound.
7178
6564
  */
7179
- start: string | null;
6565
+ start: string;
7180
6566
  };
7181
6567
  /**
7182
6568
  * HandlerService
@@ -7284,23 +6670,6 @@ interface components {
7284
6670
  */
7285
6671
  media_type: 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp';
7286
6672
  };
7287
- /**
7288
- * IngestTranscriptRequest
7289
- * @description A batch of raw transcript lines pushed from inside a session's
7290
- * environment.
7291
- */
7292
- IngestTranscriptRequest: {
7293
- /**
7294
- * Lines
7295
- * @description Raw on-disk transcript lines starting at `offset`.
7296
- */
7297
- lines: string[];
7298
- /**
7299
- * Offset
7300
- * @description The line offset the batch starts at.
7301
- */
7302
- offset?: number;
7303
- };
7304
6673
  /**
7305
6674
  * InputContract
7306
6675
  * @description The typed input contract: what goes INTO a session (the trigger is
@@ -7682,7 +7051,31 @@ interface components {
7682
7051
  * LinearIssueAction
7683
7052
  * @enum {string}
7684
7053
  */
7685
- LinearIssueAction: 'opened';
7054
+ LinearIssueAction: 'opened' | 'updated';
7055
+ /**
7056
+ * LinearIssueChanged
7057
+ * @description The fields an `updated` event watches. Every listed field must change in
7058
+ * the same edit.
7059
+ */
7060
+ 'LinearIssueChanged-Input': {
7061
+ assignee?: components['schemas']['LinearValueChange-Input'] | null;
7062
+ labels?: components['schemas']['LinearLabelsChange-Input'] | null;
7063
+ priority?: components['schemas']['LinearValueChange-Input'] | null;
7064
+ project?: components['schemas']['LinearValueChange-Input'] | null;
7065
+ state?: components['schemas']['LinearValueChange-Input'] | null;
7066
+ };
7067
+ /**
7068
+ * LinearIssueChanged
7069
+ * @description The fields an `updated` event watches. Every listed field must change in
7070
+ * the same edit.
7071
+ */
7072
+ 'LinearIssueChanged-Output': {
7073
+ assignee: components['schemas']['LinearValueChange-Output'] | null;
7074
+ labels: components['schemas']['LinearLabelsChange-Output'] | null;
7075
+ priority: components['schemas']['LinearValueChange-Output'] | null;
7076
+ project: components['schemas']['LinearValueChange-Output'] | null;
7077
+ state: components['schemas']['LinearValueChange-Output'] | null;
7078
+ };
7686
7079
  /** LinearIssueEvent */
7687
7080
  LinearIssueEvent: {
7688
7081
  /** Action */
@@ -7702,6 +7095,26 @@ interface components {
7702
7095
  /** Url */
7703
7096
  url: string;
7704
7097
  };
7098
+ /**
7099
+ * LinearLabelsChange
7100
+ * @description A change to the issue's labels. `added` matches when a listed label was
7101
+ * added and `removed` when a listed label was removed. `{}` is any label
7102
+ * change.
7103
+ */
7104
+ 'LinearLabelsChange-Input': {
7105
+ added?: components['schemas']['LinearValueFilter-Input'] | null;
7106
+ removed?: components['schemas']['LinearValueFilter-Input'] | null;
7107
+ };
7108
+ /**
7109
+ * LinearLabelsChange
7110
+ * @description A change to the issue's labels. `added` matches when a listed label was
7111
+ * added and `removed` when a listed label was removed. `{}` is any label
7112
+ * change.
7113
+ */
7114
+ 'LinearLabelsChange-Output': {
7115
+ added: components['schemas']['LinearValueFilter-Output'] | null;
7116
+ removed: components['schemas']['LinearValueFilter-Output'] | null;
7117
+ };
7705
7118
  /**
7706
7119
  * LinearRoutes
7707
7120
  * @description Which Linear issues one agent answers @ellipsis on.
@@ -7771,6 +7184,44 @@ interface components {
7771
7184
  */
7772
7185
  teams: components['schemas']['LinearTeam'][];
7773
7186
  };
7187
+ /**
7188
+ * LinearValueChange
7189
+ * @description A change to one issue field. `from` matches the value before the change
7190
+ * and `to` the value after it. Leaving either out matches any value, so `{}`
7191
+ * is any change to the field.
7192
+ */
7193
+ 'LinearValueChange-Input': {
7194
+ from?: components['schemas']['LinearValueFilter-Input'] | null;
7195
+ to?: components['schemas']['LinearValueFilter-Input'] | null;
7196
+ };
7197
+ /**
7198
+ * LinearValueChange
7199
+ * @description A change to one issue field. `from` matches the value before the change
7200
+ * and `to` the value after it. Leaving either out matches any value, so `{}`
7201
+ * is any change to the field.
7202
+ */
7203
+ 'LinearValueChange-Output': {
7204
+ from: components['schemas']['LinearValueFilter-Output'] | null;
7205
+ to: components['schemas']['LinearValueFilter-Output'] | null;
7206
+ };
7207
+ 'LinearValueFilter-Input': {
7208
+ /** Exclude */
7209
+ exclude?: string[];
7210
+ /** Include */
7211
+ include?: string[];
7212
+ } | string[] | string;
7213
+ 'LinearValueFilter-Output': {
7214
+ /**
7215
+ * Exclude
7216
+ * @default []
7217
+ */
7218
+ exclude: string[];
7219
+ /**
7220
+ * Include
7221
+ * @default []
7222
+ */
7223
+ include: string[];
7224
+ } | string[] | string;
7774
7225
  /**
7775
7226
  * LinkAgentRequest
7776
7227
  * @description Where to put the file of an agent being moved into a repository.
@@ -8600,20 +8051,6 @@ interface components {
8600
8051
  [key: string]: unknown;
8601
8052
  };
8602
8053
  };
8603
- /**
8604
- * PatchAccountOnboardingRequest
8605
- * @description Save supplied answers; omitted answers stay unchanged.
8606
- */
8607
- PatchAccountOnboardingRequest: {
8608
- /** Finished */
8609
- finished?: boolean;
8610
- /** Other Use Case */
8611
- other_use_case?: string | null;
8612
- /** Use Cases */
8613
- use_cases?: components['schemas']['AccountOnboardingUseCase'][];
8614
- /** Work Email */
8615
- work_email?: string | null;
8616
- };
8617
8054
  /** PatchAccountRequest */
8618
8055
  PatchAccountRequest: {
8619
8056
  /** Can Start Sessions */
@@ -8701,7 +8138,7 @@ interface components {
8701
8138
  * @description Why direct prompting is refused. Absent when prompting is allowed.
8702
8139
  * @enum {string}
8703
8140
  */
8704
- PromptBlockedReason: 'mention_surface' | 'non_interactive' | 'harness_single_turn' | 'budget_exhausted' | 'closed';
8141
+ PromptBlockedReason: 'mention_surface' | 'non_interactive' | 'harness_single_turn' | 'budget_exhausted' | 'closed' | 'archived';
8705
8142
  /**
8706
8143
  * PublicFeeSchedule
8707
8144
  * @description Rates in millicents. purchase_fee_fraction is a fraction, for example 0.10.
@@ -8717,211 +8154,90 @@ interface components {
8717
8154
  signup_credit: number;
8718
8155
  };
8719
8156
  /**
8720
- * PullRequestAction
8721
- * @enum {string}
8722
- */
8723
- PullRequestAction: 'opened' | 'pushed' | 'merged' | 'closed' | 'review_submitted' | 'commented';
8724
- /**
8725
- * PullRequestAuthorFacet
8726
- * @description An author filter option, counted over the unfiltered window.
8727
- */
8728
- PullRequestAuthorFacet: {
8729
- /**
8730
- * Account Type
8731
- * @description The author's GitHub account type (e.g. "User" or "Bot").
8732
- */
8733
- account_type: string;
8734
- /**
8735
- * Author Id
8736
- * @description The author's GitHub account id.
8737
- */
8738
- author_id: number;
8739
- /**
8740
- * Avatar Url
8741
- * @description The author's avatar URL.
8742
- */
8743
- avatar_url: string;
8744
- /**
8745
- * Login
8746
- * @description The author's GitHub login.
8747
- */
8748
- login: string;
8749
- /**
8750
- * Prs
8751
- * @description Unfiltered pull-request count in the window.
8752
- */
8753
- prs: number;
8754
- };
8755
- /**
8756
- * PullRequestFacets
8757
- * @description The available filter options, derived from the unfiltered window.
8758
- */
8759
- PullRequestFacets: {
8760
- /**
8761
- * Account Types
8762
- * @description Author account types present in the window.
8763
- */
8764
- account_types: string[];
8765
- /**
8766
- * Authors
8767
- * @description Author filter options.
8768
- */
8769
- authors: components['schemas']['PullRequestAuthorFacet'][];
8770
- /**
8771
- * Repos
8772
- * @description Repository filter options.
8773
- */
8774
- repos: components['schemas']['PullRequestRepoFacet'][];
8775
- };
8776
- /**
8777
- * PullRequestRepoFacet
8778
- * @description A repository filter option, counted over the unfiltered window so
8779
- * options never vanish when filters are applied.
8780
- */
8781
- PullRequestRepoFacet: {
8782
- /**
8783
- * Prs
8784
- * @description Unfiltered pull-request count in the window.
8785
- */
8786
- prs: number;
8787
- /**
8788
- * Repository Id
8789
- * @description The repository's GitHub id.
8790
- */
8791
- repository_id: number;
8792
- /**
8793
- * Repository Name
8794
- * @description The repository's full "owner/name" identifier.
8795
- */
8796
- repository_name: string;
8797
- };
8798
- /**
8799
- * PullRequestsBucket
8800
- * @description Pull-request activity in one bucket of the window. `prs`, `lines`,
8801
- * `authors`, and `commits` count pull requests created in the bucket.
8802
- * `merged` and `merge_time` cover pull requests merged in the bucket, and
8803
- * `closed` counts pull requests closed without merging in the bucket.
8804
- *
8805
- * Each count of created pull requests also splits bots from humans. `*_bot`
8806
- * counts pull requests whose author is a bot (a Bot account or a `[bot]`
8807
- * login), and `*_human` is everything else, so the pair always sums to the
8808
- * total.
8157
+ * PullRequest
8158
+ * @description A GitHub pull request. A session's pull requests are read live. A review's is kept as it was when the review ran.
8809
8159
  */
8810
- PullRequestsBucket: {
8811
- /**
8812
- * Authors
8813
- * @description Distinct pull-request authors active in this bucket, humans and bots.
8814
- */
8815
- authors: number;
8816
- /**
8817
- * Authors Bot
8818
- * @description Distinct bot authors active in this bucket.
8819
- */
8820
- authors_bot: number;
8160
+ PullRequest: {
8821
8161
  /**
8822
- * Authors Human
8823
- * @description Distinct human authors active in this bucket.
8162
+ * Additions
8163
+ * @description Lines added, null until GitHub reports them.
8824
8164
  */
8825
- authors_human: number;
8165
+ additions?: number | null;
8166
+ /** @description Who opened the pull request. */
8167
+ author: components['schemas']['GithubAccountSnippet'];
8168
+ /** @description The branch the changes merge into. */
8169
+ base: components['schemas']['PullRequestBranch'];
8826
8170
  /**
8827
- * Closed
8828
- * @description Pull requests closed without merging in this bucket.
8171
+ * Changed Files
8172
+ * @description Files changed, null until GitHub reports them.
8829
8173
  */
8830
- closed: number;
8174
+ changed_files?: number | null;
8831
8175
  /**
8832
8176
  * Commits
8833
- * @description Total commits across pull requests created in this bucket.
8834
- */
8835
- commits: number;
8836
- /**
8837
- * Commits Bot
8838
- * @description Commits across pull requests created by bot authors.
8839
- */
8840
- commits_bot: number;
8841
- /**
8842
- * Commits Human
8843
- * @description Commits across pull requests created by human authors.
8177
+ * @description Commits, null until GitHub reports them.
8844
8178
  */
8845
- commits_human: number;
8179
+ commits?: number | null;
8846
8180
  /**
8847
- * Date
8181
+ * Created At
8848
8182
  * Format: date-time
8849
- * @description When the bucket starts, in UTC.
8850
- */
8851
- date: string;
8852
- /**
8853
- * Lines
8854
- * @description Lines added plus deleted across pull requests created in this bucket.
8855
- */
8856
- lines: number;
8857
- /**
8858
- * Lines Bot
8859
- * @description Lines across pull requests created by bot authors.
8860
8183
  */
8861
- lines_bot: number;
8184
+ created_at: string;
8862
8185
  /**
8863
- * Lines Human
8864
- * @description Lines across pull requests created by human authors.
8186
+ * Deletions
8187
+ * @description Lines deleted, null until GitHub reports them.
8865
8188
  */
8866
- lines_human: number;
8867
- /** @description Time-to-merge percentiles, in hours, for pull requests merged this day. */
8868
- merge_time: components['schemas']['DurationPercentiles'];
8189
+ deletions?: number | null;
8190
+ /** @description The branch with the changes. */
8191
+ head: components['schemas']['PullRequestBranch'];
8869
8192
  /**
8870
- * Merged
8871
- * @description Pull requests merged in this bucket.
8193
+ * Id
8194
+ * @description The pull request's GitHub id.
8872
8195
  */
8873
- merged: number;
8196
+ id: number;
8197
+ /** Merged At */
8198
+ merged_at?: string | null;
8199
+ /** Number */
8200
+ number: number;
8201
+ /** @description The repository the pull request merges into. */
8202
+ repository: components['schemas']['GithubRepositorySnippet'];
8874
8203
  /**
8875
- * Prs
8876
- * @description Pull requests created in this bucket.
8204
+ * Status
8205
+ * @enum {string}
8877
8206
  */
8878
- prs: number;
8207
+ status: 'open' | 'draft' | 'merged' | 'closed';
8208
+ /** Title */
8209
+ title: string;
8879
8210
  /**
8880
- * Prs Bot
8881
- * @description Pull requests created in this bucket by bot authors.
8211
+ * Updated At
8212
+ * Format: date-time
8882
8213
  */
8883
- prs_bot: number;
8214
+ updated_at: string;
8884
8215
  /**
8885
- * Prs Human
8886
- * @description Pull requests created in this bucket by human authors.
8216
+ * Url
8217
+ * @description The pull request on GitHub.
8887
8218
  */
8888
- prs_human: number;
8219
+ url: string;
8889
8220
  };
8890
8221
  /**
8891
- * PullRequestsTotals
8892
- * @description Window-wide pull-request totals.
8222
+ * PullRequestAction
8223
+ * @enum {string}
8893
8224
  */
8894
- PullRequestsTotals: {
8895
- /**
8896
- * Active Authors
8897
- * @description Distinct pull-request authors in the window.
8898
- */
8899
- active_authors: number;
8900
- /**
8901
- * Commits
8902
- * @description Total commits across pull requests in the window.
8903
- */
8904
- commits: number;
8905
- /**
8906
- * Lines
8907
- * @description Lines added plus deleted across pull requests in the window.
8908
- */
8909
- lines: number;
8910
- /**
8911
- * Merge Time P50 Hours
8912
- * @description Median hours to merge over all merged pull requests in the window; 0 when none merged.
8913
- */
8914
- merge_time_p50_hours: number;
8225
+ PullRequestAction: 'opened' | 'pushed' | 'merged' | 'closed' | 'review_submitted' | 'commented';
8226
+ /**
8227
+ * PullRequestBranch
8228
+ * @description One side of a pull request, a branch and the commit it pointed at.
8229
+ */
8230
+ PullRequestBranch: {
8915
8231
  /**
8916
- * Merged
8917
- * @description Pull requests merged in the window.
8232
+ * Ref
8233
+ * @description The branch name.
8918
8234
  */
8919
- merged: number;
8235
+ ref: string;
8920
8236
  /**
8921
- * Prs
8922
- * @description Pull requests created in the window.
8237
+ * Sha
8238
+ * @description The commit the branch pointed at.
8923
8239
  */
8924
- prs: number;
8240
+ sha: string;
8925
8241
  };
8926
8242
  /**
8927
8243
  * PutSecretsRequest
@@ -8947,7 +8263,7 @@ interface components {
8947
8263
  /** Names */
8948
8264
  names?: string[];
8949
8265
  /** On */
8950
- on?: components['schemas']['CheckRunAction'][];
8266
+ on: components['schemas']['CheckRunAction'][];
8951
8267
  repositories?: components['schemas']['RepositoryFilter-Input'];
8952
8268
  };
8953
8269
  /**
@@ -8966,12 +8282,7 @@ interface components {
8966
8282
  * @default []
8967
8283
  */
8968
8284
  names: string[];
8969
- /**
8970
- * On
8971
- * @default [
8972
- * "failed"
8973
- * ]
8974
- */
8285
+ /** On */
8975
8286
  on: components['schemas']['CheckRunAction'][];
8976
8287
  repositories: components['schemas']['RepositoryFilter-Output'];
8977
8288
  };
@@ -8986,7 +8297,7 @@ interface components {
8986
8297
  branch?: string[];
8987
8298
  for?: components['schemas']['GithubAccountSelector-Input'];
8988
8299
  /** On */
8989
- on?: components['schemas']['CheckSuiteAction'][];
8300
+ on: components['schemas']['CheckSuiteAction'][];
8990
8301
  repositories?: components['schemas']['RepositoryFilter-Input'];
8991
8302
  };
8992
8303
  /**
@@ -9005,12 +8316,7 @@ interface components {
9005
8316
  */
9006
8317
  branch: string[];
9007
8318
  for: components['schemas']['GithubAccountSelector-Output'];
9008
- /**
9009
- * On
9010
- * @default [
9011
- * "failed"
9012
- * ]
9013
- */
8319
+ /** On */
9014
8320
  on: components['schemas']['CheckSuiteAction'][];
9015
8321
  repositories: components['schemas']['RepositoryFilter-Output'];
9016
8322
  };
@@ -9035,22 +8341,47 @@ interface components {
9035
8341
  on: components['schemas']['IssueAction'][];
9036
8342
  repositories: components['schemas']['RepositoryFilter-Output'];
9037
8343
  };
9038
- /** ReactLinearIssue */
8344
+ /**
8345
+ * ReactLinearIssue
8346
+ * @description A Linear issue being created (`opened`) or changed (`updated`). An
8347
+ * `updated` event fires only when every field under `changed` changed in
8348
+ * one edit. `team`, `state`, `labels`, `project`, `assignee`, and
8349
+ * `priority` filter on the issue as it is after the event. `state` matches
8350
+ * a status name or a status type. `for` is the person who created or
8351
+ * changed the issue.
8352
+ */
9039
8353
  'ReactLinearIssue-Input': {
8354
+ assignee?: components['schemas']['LinearValueFilter-Input'] | null;
8355
+ changed?: components['schemas']['LinearIssueChanged-Input'] | null;
9040
8356
  for?: components['schemas']['GithubAccountSelector-Input'];
8357
+ labels?: components['schemas']['LinearValueFilter-Input'] | null;
9041
8358
  /** On */
9042
- on?: components['schemas']['LinearIssueAction'][];
8359
+ on: components['schemas']['LinearIssueAction'][];
8360
+ priority?: components['schemas']['LinearValueFilter-Input'] | null;
8361
+ project?: components['schemas']['LinearValueFilter-Input'] | null;
8362
+ state?: components['schemas']['LinearValueFilter-Input'] | null;
8363
+ team?: components['schemas']['LinearValueFilter-Input'] | null;
9043
8364
  };
9044
- /** ReactLinearIssue */
8365
+ /**
8366
+ * ReactLinearIssue
8367
+ * @description A Linear issue being created (`opened`) or changed (`updated`). An
8368
+ * `updated` event fires only when every field under `changed` changed in
8369
+ * one edit. `team`, `state`, `labels`, `project`, `assignee`, and
8370
+ * `priority` filter on the issue as it is after the event. `state` matches
8371
+ * a status name or a status type. `for` is the person who created or
8372
+ * changed the issue.
8373
+ */
9045
8374
  'ReactLinearIssue-Output': {
8375
+ assignee: components['schemas']['LinearValueFilter-Output'] | null;
8376
+ changed: components['schemas']['LinearIssueChanged-Output'] | null;
9046
8377
  for: components['schemas']['GithubAccountSelector-Output'];
9047
- /**
9048
- * On
9049
- * @default [
9050
- * "opened"
9051
- * ]
9052
- */
8378
+ labels: components['schemas']['LinearValueFilter-Output'] | null;
8379
+ /** On */
9053
8380
  on: components['schemas']['LinearIssueAction'][];
8381
+ priority: components['schemas']['LinearValueFilter-Output'] | null;
8382
+ project: components['schemas']['LinearValueFilter-Output'] | null;
8383
+ state: components['schemas']['LinearValueFilter-Output'] | null;
8384
+ team: components['schemas']['LinearValueFilter-Output'] | null;
9054
8385
  };
9055
8386
  /** ReactPullRequest */
9056
8387
  'ReactPullRequest-Input': {
@@ -9134,7 +8465,7 @@ interface components {
9134
8465
  'ReactRelease-Input': {
9135
8466
  for?: components['schemas']['GithubAccountSelector-Input'];
9136
8467
  /** On */
9137
- on?: components['schemas']['ReleaseAction'][];
8468
+ on: components['schemas']['ReleaseAction'][];
9138
8469
  /** Prerelease */
9139
8470
  prerelease?: boolean | null;
9140
8471
  repositories?: components['schemas']['RepositoryFilter-Input'];
@@ -9152,12 +8483,7 @@ interface components {
9152
8483
  */
9153
8484
  'ReactRelease-Output': {
9154
8485
  for: components['schemas']['GithubAccountSelector-Output'];
9155
- /**
9156
- * On
9157
- * @default [
9158
- * "published"
9159
- * ]
9160
- */
8486
+ /** On */
9161
8487
  on: components['schemas']['ReleaseAction'][];
9162
8488
  /** Prerelease */
9163
8489
  prerelease: boolean | null;
@@ -9198,7 +8524,7 @@ interface components {
9198
8524
  /** Names */
9199
8525
  names?: string[];
9200
8526
  /** On */
9201
- on?: components['schemas']['StatusAction'][];
8527
+ on: components['schemas']['StatusAction'][];
9202
8528
  repositories?: components['schemas']['RepositoryFilter-Input'];
9203
8529
  };
9204
8530
  /**
@@ -9217,12 +8543,7 @@ interface components {
9217
8543
  * @default []
9218
8544
  */
9219
8545
  names: string[];
9220
- /**
9221
- * On
9222
- * @default [
9223
- * "failed"
9224
- * ]
9225
- */
8546
+ /** On */
9226
8547
  on: components['schemas']['StatusAction'][];
9227
8548
  repositories: components['schemas']['RepositoryFilter-Output'];
9228
8549
  };
@@ -9298,7 +8619,7 @@ interface components {
9298
8619
  /** Names */
9299
8620
  names?: string[];
9300
8621
  /** On */
9301
- on?: components['schemas']['WorkflowRunAction'][];
8622
+ on: components['schemas']['WorkflowRunAction'][];
9302
8623
  repositories?: components['schemas']['RepositoryFilter-Input'];
9303
8624
  };
9304
8625
  /**
@@ -9317,155 +8638,40 @@ interface components {
9317
8638
  * @default []
9318
8639
  */
9319
8640
  names: string[];
9320
- /**
9321
- * On
9322
- * @default [
9323
- * "failed"
9324
- * ]
9325
- */
8641
+ /** On */
9326
8642
  on: components['schemas']['WorkflowRunAction'][];
9327
8643
  repositories: components['schemas']['RepositoryFilter-Output'];
9328
8644
  };
9329
8645
  /**
9330
- * RecentPullRequest
9331
- * @description One pull request in the recent-activity table.
8646
+ * ReleaseAction
8647
+ * @description What happened to a GitHub release. `published` is the one moment a
8648
+ * release becomes visible: a release or prerelease published directly, or a
8649
+ * draft published later. Edits, deletions, and unpublishes never fire.
8650
+ * @enum {string}
9332
8651
  */
9333
- RecentPullRequest: {
9334
- /**
9335
- * Additions
9336
- * @description Lines added, when known.
9337
- */
9338
- additions: number | null;
9339
- /**
9340
- * Changed Files
9341
- * @description Number of changed files, when known.
9342
- */
9343
- changed_files: number | null;
9344
- /**
9345
- * Commits
9346
- * @description Number of commits, when known.
9347
- */
9348
- commits: number | null;
9349
- /**
9350
- * Created At
9351
- * Format: date-time
9352
- * @description When the pull request was opened.
9353
- */
9354
- created_at: string;
9355
- /**
9356
- * Deletions
9357
- * @description Lines deleted, when known.
9358
- */
9359
- deletions: number | null;
8652
+ ReleaseAction: 'published';
8653
+ /** RepositoryBackfillStatus */
8654
+ RepositoryBackfillStatus: {
8655
+ /** Backfill Complete */
8656
+ backfill_complete: boolean;
8657
+ /** Repository Id */
8658
+ repository_id: number;
8659
+ };
8660
+ 'RepositoryFilter-Input': {
8661
+ /** Exclude */
8662
+ exclude?: string[];
8663
+ /** Include */
8664
+ include?: string[];
8665
+ } | string[];
8666
+ 'RepositoryFilter-Output': {
9360
8667
  /**
9361
- * Head Ref
9362
- * @description The head branch name.
8668
+ * Exclude
8669
+ * @default []
9363
8670
  */
9364
- head_ref: string;
8671
+ exclude: string[];
9365
8672
  /**
9366
- * Head Sha
9367
- * @description The head commit SHA.
9368
- */
9369
- head_sha: string;
9370
- /**
9371
- * Html Url
9372
- * @description The pull request's URL on GitHub.
9373
- */
9374
- html_url: string;
9375
- /**
9376
- * Id
9377
- * @description The pull request's GitHub id.
9378
- */
9379
- id: number;
9380
- /**
9381
- * Merged At
9382
- * @description When the pull request was merged, or null.
9383
- */
9384
- merged_at: string | null;
9385
- /**
9386
- * Number
9387
- * @description The pull request number.
9388
- */
9389
- number: number;
9390
- /**
9391
- * Repository Name
9392
- * @description The repository's full "owner/name" identifier.
9393
- */
9394
- repository_name: string;
9395
- /**
9396
- * Status
9397
- * @description The derived status: open, draft, merged, or closed.
9398
- */
9399
- status: string;
9400
- /**
9401
- * Title
9402
- * @description The pull request title.
9403
- */
9404
- title: string;
9405
- /**
9406
- * User Avatar Url
9407
- * @description The author's avatar URL.
9408
- */
9409
- user_avatar_url: string;
9410
- /**
9411
- * User Login
9412
- * @description The author's GitHub login.
9413
- */
9414
- user_login: string;
9415
- };
9416
- /**
9417
- * ReleaseAction
9418
- * @description What happened to a GitHub release. `published` is the one moment a
9419
- * release becomes visible: a release or prerelease published directly, or a
9420
- * draft published later. Edits, deletions, and unpublishes never fire.
9421
- * @enum {string}
9422
- */
9423
- ReleaseAction: 'published';
9424
- /**
9425
- * RepoFacet
9426
- * @description A repository filter option, counted over the unfiltered window so
9427
- * options never vanish when filters are applied.
9428
- */
9429
- RepoFacet: {
9430
- /**
9431
- * Prs
9432
- * @description Unfiltered pull-request count for this repository in the window.
9433
- */
9434
- prs: number;
9435
- /**
9436
- * Repo Full Name
9437
- * @description The repository's full "owner/name" identifier.
9438
- */
9439
- repo_full_name: string;
9440
- };
9441
- /** RepositoryBackfillStatus */
9442
- RepositoryBackfillStatus: {
9443
- /** Backfill Complete */
9444
- backfill_complete: boolean;
9445
- /** Repository Id */
9446
- repository_id: number;
9447
- };
9448
- 'RepositoryFilter-Input': {
9449
- /**
9450
- * Exclude
9451
- * @default []
9452
- */
9453
- exclude: string[];
9454
- /**
9455
- * Include
9456
- * @default []
9457
- */
9458
- include: string[];
9459
- } | string[];
9460
- 'RepositoryFilter-Output': {
9461
- /**
9462
- * Exclude
9463
- * @default []
9464
- */
9465
- exclude: string[];
9466
- /**
9467
- * Include
9468
- * @default []
8673
+ * Include
8674
+ * @default []
9469
8675
  */
9470
8676
  include: string[];
9471
8677
  } | string[];
@@ -9541,8 +8747,9 @@ interface components {
9541
8747
  head_sha: string;
9542
8748
  /** Id */
9543
8749
  id: string;
9544
- pull_request: components['schemas']['ReviewPullRequest'];
9545
- repository: components['schemas']['ReviewRepository'];
8750
+ /** @description The pull request as it was when the review ran. Null for a review Ellipsis ran before it kept the pull request. */
8751
+ pull_request: components['schemas']['PullRequest'] | null;
8752
+ repository: components['schemas']['GithubRepositorySnippet'];
9546
8753
  /** Reviewers */
9547
8754
  reviewers: components['schemas']['ReviewReviewer'][];
9548
8755
  /** @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. */
@@ -9550,59 +8757,6 @@ interface components {
9550
8757
  /** @description Tokens the reviewer sessions used together. */
9551
8758
  tokens: components['schemas']['Tokens'];
9552
8759
  };
9553
- /**
9554
- * ReviewActor
9555
- * @description A GitHub account as it appears on a review or its parent pull
9556
- * request.
9557
- */
9558
- ReviewActor: {
9559
- /**
9560
- * Avatar Url
9561
- * @description The account's avatar URL.
9562
- */
9563
- avatar_url: string | null;
9564
- /**
9565
- * Id
9566
- * @description The account's GitHub id.
9567
- */
9568
- id: number | null;
9569
- /**
9570
- * Login
9571
- * @description The account's GitHub login.
9572
- */
9573
- login: string | null;
9574
- /**
9575
- * Type
9576
- * @description The account type (e.g. "User" or "Bot").
9577
- */
9578
- type: string | null;
9579
- };
9580
- /**
9581
- * ReviewAuthorFacet
9582
- * @description A reviewer filter option for the reviews view.
9583
- */
9584
- ReviewAuthorFacet: {
9585
- /**
9586
- * Account Type
9587
- * @description The reviewer's account type (e.g. "User" or "Bot").
9588
- */
9589
- account_type: string | null;
9590
- /**
9591
- * Avatar Url
9592
- * @description The reviewer's avatar URL.
9593
- */
9594
- avatar_url: string | null;
9595
- /**
9596
- * Login
9597
- * @description The reviewer's GitHub login.
9598
- */
9599
- login: string;
9600
- /**
9601
- * Reviews
9602
- * @description Reviews this person submitted.
9603
- */
9604
- reviews: number;
9605
- };
9606
8760
  /** ReviewComment */
9607
8761
  ReviewComment: {
9608
8762
  /**
@@ -9632,80 +8786,6 @@ interface components {
9632
8786
  /** @description posted: in the GitHub review. outside_range: on a line this reviewer had already covered. not_in_diff: on a line the pull request does not change. eligible: will post. */
9633
8787
  status: components['schemas']['CodeReviewCommentStatus'];
9634
8788
  };
9635
- /**
9636
- * ReviewCommentListItem
9637
- * @description One inline review comment in the comment feed.
9638
- */
9639
- ReviewCommentListItem: {
9640
- /** @description Who authored the comment. */
9641
- author: components['schemas']['ReviewActor'];
9642
- /**
9643
- * Base Ref
9644
- * @description The parent pull request's base branch.
9645
- */
9646
- base_ref: string;
9647
- /**
9648
- * Body Preview
9649
- * @description The start of the comment body, trimmed for the feed.
9650
- */
9651
- body_preview: string;
9652
- /**
9653
- * Created At
9654
- * Format: date-time
9655
- * @description When the comment was created.
9656
- */
9657
- created_at: string;
9658
- /**
9659
- * Html Url
9660
- * @description The comment's URL on GitHub.
9661
- */
9662
- html_url: string;
9663
- /**
9664
- * Id
9665
- * @description The comment's GitHub id.
9666
- */
9667
- id: number;
9668
- /**
9669
- * Path
9670
- * @description The file path the comment is anchored to, or null when GitHub can't place the comment in the diff.
9671
- */
9672
- path: string | null;
9673
- /**
9674
- * Pr Html Url
9675
- * @description The parent pull request's URL on GitHub.
9676
- */
9677
- pr_html_url: string;
9678
- /**
9679
- * Pr Number
9680
- * @description The parent pull request's number.
9681
- */
9682
- pr_number: number;
9683
- /**
9684
- * Pr Status
9685
- * @description The parent pull request's status: open, draft, merged, or closed.
9686
- */
9687
- pr_status: string;
9688
- /**
9689
- * Pr Title
9690
- * @description The parent pull request's title.
9691
- */
9692
- pr_title: string;
9693
- /**
9694
- * Repo Full Name
9695
- * @description The repository's full "owner/name" identifier.
9696
- */
9697
- repo_full_name: string;
9698
- /**
9699
- * Thumbs Down
9700
- * @description Thumbs-down reactions on the comment.
9701
- */
9702
- thumbs_down: number;
9703
- /**
9704
- * Thumbs Up
9705
- * @description Thumbs-up reactions on the comment.
9706
- */
9707
- thumbs_up: number;
9708
- };
9709
8789
  /** ReviewComments */
9710
8790
  ReviewComments: {
9711
8791
  /**
@@ -9787,93 +8867,6 @@ interface components {
9787
8867
  */
9788
8868
  configs: components['schemas']['ReviewConfig'][];
9789
8869
  };
9790
- /**
9791
- * ReviewFacets
9792
- * @description The available filter options for the reviews view.
9793
- */
9794
- ReviewFacets: {
9795
- /**
9796
- * Authors
9797
- * @description Reviewer filter options.
9798
- */
9799
- authors: components['schemas']['ReviewAuthorFacet'][];
9800
- /**
9801
- * Repos
9802
- * @description Repository filter options.
9803
- */
9804
- repos: components['schemas']['ReviewRepoFacet'][];
9805
- };
9806
- /**
9807
- * ReviewListItem
9808
- * @description One pull-request review in the review feed.
9809
- */
9810
- ReviewListItem: {
9811
- /**
9812
- * Base Ref
9813
- * @description The parent pull request's base branch.
9814
- */
9815
- base_ref: string;
9816
- /**
9817
- * Comment Count
9818
- * @description Inline review comments tied to this review.
9819
- */
9820
- comment_count: number;
9821
- /**
9822
- * Has Body
9823
- * @description Whether the review carried a summary body, as opposed to inline comments only.
9824
- */
9825
- has_body: boolean;
9826
- /**
9827
- * Html Url
9828
- * @description The review's URL on GitHub.
9829
- */
9830
- html_url: string;
9831
- /**
9832
- * Id
9833
- * @description The review's GitHub id.
9834
- */
9835
- id: number;
9836
- /** @description The parent pull request's author. */
9837
- pr_author: components['schemas']['ReviewActor'];
9838
- /**
9839
- * Pr Html Url
9840
- * @description The parent pull request's URL on GitHub.
9841
- */
9842
- pr_html_url: string;
9843
- /**
9844
- * Pr Number
9845
- * @description The parent pull request's number.
9846
- */
9847
- pr_number: number;
9848
- /**
9849
- * Pr Status
9850
- * @description The parent pull request's status: open, draft, merged, or closed.
9851
- */
9852
- pr_status: string;
9853
- /**
9854
- * Pr Title
9855
- * @description The parent pull request's title.
9856
- */
9857
- pr_title: string;
9858
- /**
9859
- * Repo Full Name
9860
- * @description The repository's full "owner/name" identifier.
9861
- */
9862
- repo_full_name: string;
9863
- /** @description Who submitted the review. */
9864
- reviewer: components['schemas']['ReviewActor'];
9865
- /**
9866
- * State
9867
- * @description The review verdict: APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED, or another GitHub review state.
9868
- */
9869
- state: string;
9870
- /**
9871
- * Submitted At
9872
- * Format: date-time
9873
- * @description When the review was submitted.
9874
- */
9875
- submitted_at: string;
9876
- };
9877
8870
  /**
9878
8871
  * ReviewOutputConfig
9879
8872
  * @description What the posted review is. A review passes when no reviewer returned a
@@ -9909,94 +8902,6 @@ interface components {
9909
8902
  */
9910
8903
  summary: boolean;
9911
8904
  };
9912
- /** ReviewPullRequest */
9913
- ReviewPullRequest: {
9914
- /**
9915
- * Additions
9916
- * @description Lines added, as GitHub last reported them.
9917
- */
9918
- additions?: number | null;
9919
- /** @description Who opened the pull request; null until Ellipsis has stored it. */
9920
- author?: components['schemas']['ReviewPullRequestAuthor'] | null;
9921
- /**
9922
- * Changed Files
9923
- * @description Files changed, as GitHub last reported them.
9924
- */
9925
- changed_files?: number | null;
9926
- /**
9927
- * Commits
9928
- * @description Commits, as GitHub last reported them.
9929
- */
9930
- commits?: number | null;
9931
- /**
9932
- * Deletions
9933
- * @description Lines deleted, as GitHub last reported them.
9934
- */
9935
- deletions?: number | null;
9936
- /** Number */
9937
- number: number;
9938
- /**
9939
- * Title
9940
- * @description Null until Ellipsis has stored the pull request.
9941
- */
9942
- title?: string | null;
9943
- /**
9944
- * Url
9945
- * @description The pull request on GitHub; null when the repository is no longer on the account.
9946
- */
9947
- url: string | null;
9948
- };
9949
- /** ReviewPullRequestAuthor */
9950
- ReviewPullRequestAuthor: {
9951
- /** Avatar Url */
9952
- avatar_url: string;
9953
- /**
9954
- * Id
9955
- * @description The account's GitHub id.
9956
- */
9957
- id: number;
9958
- /** Login */
9959
- login: string;
9960
- /**
9961
- * Type
9962
- * @description "User", "Organization", or "Bot".
9963
- */
9964
- type: string;
9965
- };
9966
- /**
9967
- * ReviewRepoFacet
9968
- * @description A repository filter option for the reviews view.
9969
- */
9970
- ReviewRepoFacet: {
9971
- /**
9972
- * Repository Name
9973
- * @description The repository's full "owner/name" identifier.
9974
- */
9975
- repository_name: string;
9976
- /**
9977
- * Reviews
9978
- * @description Reviews in this repository.
9979
- */
9980
- reviews: number;
9981
- };
9982
- /** ReviewRepository */
9983
- ReviewRepository: {
9984
- /**
9985
- * Id
9986
- * @description The GitHub repository id.
9987
- */
9988
- id: number;
9989
- /**
9990
- * Name
9991
- * @description The repository name.
9992
- */
9993
- name: string;
9994
- /**
9995
- * Owner
9996
- * @description The repository owner's login.
9997
- */
9998
- owner: string;
9999
- };
10000
8905
  /** ReviewReviewer */
10001
8906
  ReviewReviewer: {
10002
8907
  /**
@@ -10070,8 +8975,9 @@ interface components {
10070
8975
  head_sha: string;
10071
8976
  /** Id */
10072
8977
  id: string;
10073
- pull_request: components['schemas']['ReviewPullRequest'];
10074
- repository: components['schemas']['ReviewRepository'];
8978
+ /** @description The pull request as it was when the review ran. Null for a review Ellipsis ran before it kept the pull request. */
8979
+ pull_request: components['schemas']['PullRequest'] | null;
8980
+ repository: components['schemas']['GithubRepositorySnippet'];
10075
8981
  /** @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. */
10076
8982
  status: components['schemas']['CodeReviewStatus'];
10077
8983
  };
@@ -10141,111 +9047,6 @@ interface components {
10141
9047
  /** Max */
10142
9048
  max?: number | null;
10143
9049
  };
10144
- /**
10145
- * ReviewerUsage
10146
- * @description A person who reviewed pull requests in the window.
10147
- */
10148
- ReviewerUsage: {
10149
- /**
10150
- * Approved
10151
- * @description Their approving reviews.
10152
- */
10153
- approved: number;
10154
- /**
10155
- * Avatar Url
10156
- * @description The reviewer's GitHub avatar URL.
10157
- */
10158
- avatar_url: string | null;
10159
- /**
10160
- * Changes Requested
10161
- * @description Their changes-requested reviews.
10162
- */
10163
- changes_requested: number;
10164
- /**
10165
- * Comments
10166
- * @description Inline review comments this person authored.
10167
- */
10168
- comments: number;
10169
- /**
10170
- * Lines Reviewed
10171
- * @description Lines added plus deleted across the distinct pull requests they reviewed.
10172
- */
10173
- lines_reviewed: number;
10174
- /**
10175
- * Login
10176
- * @description The reviewer's GitHub login.
10177
- */
10178
- login: string;
10179
- /**
10180
- * Reviews
10181
- * @description Reviews this person submitted in the window.
10182
- */
10183
- reviews: number;
10184
- };
10185
- /**
10186
- * ReviewsBucket
10187
- * @description Review activity in one bucket of the window. Verdict counts and
10188
- * distinct-reviewer counts come from the review feed (which is capped), and
10189
- * comment counts come from the full, uncapped comment metrics.
10190
- */
10191
- ReviewsBucket: {
10192
- /**
10193
- * Approved
10194
- * @description Approving reviews in this bucket.
10195
- */
10196
- approved: number;
10197
- /**
10198
- * Changes Requested
10199
- * @description Changes-requested reviews in this bucket.
10200
- */
10201
- changes_requested: number;
10202
- /**
10203
- * Commented
10204
- * @description Comment-only reviews in this bucket.
10205
- */
10206
- commented: number;
10207
- /**
10208
- * Comments
10209
- * @description Inline review comments created in this bucket.
10210
- */
10211
- comments: number;
10212
- /**
10213
- * Comments Bot
10214
- * @description Inline review comments by bot authors in this bucket.
10215
- */
10216
- comments_bot: number;
10217
- /**
10218
- * Comments Human
10219
- * @description Inline review comments by human authors in this bucket.
10220
- */
10221
- comments_human: number;
10222
- /**
10223
- * Date
10224
- * Format: date-time
10225
- * @description When the bucket starts, in UTC.
10226
- */
10227
- date: string;
10228
- /**
10229
- * Reviewers Bot
10230
- * @description Distinct bot reviewers in this bucket.
10231
- */
10232
- reviewers_bot: number;
10233
- /**
10234
- * Reviewers Human
10235
- * @description Distinct human reviewers in this bucket.
10236
- */
10237
- reviewers_human: number;
10238
- /**
10239
- * Reviewers Total
10240
- * @description Distinct reviewers in this bucket.
10241
- */
10242
- reviewers_total: number;
10243
- /**
10244
- * Reviews
10245
- * @description All reviews submitted in this bucket, regardless of verdict.
10246
- */
10247
- reviews: number;
10248
- };
10249
9050
  /** ReviewsListResponse */
10250
9051
  ReviewsListResponse: {
10251
9052
  /**
@@ -10262,53 +9063,6 @@ interface components {
10262
9063
  /** Reviews */
10263
9064
  reviews: components['schemas']['ReviewSummary'][];
10264
9065
  };
10265
- /**
10266
- * ReviewsTotals
10267
- * @description Window-wide review totals, computed over the full set rather than the
10268
- * capped feeds.
10269
- */
10270
- ReviewsTotals: {
10271
- /**
10272
- * Comments
10273
- * @description Inline review comments created in the window.
10274
- */
10275
- comments: number;
10276
- /**
10277
- * Comments Bot
10278
- * @description Inline review comments by bot authors.
10279
- */
10280
- comments_bot: number;
10281
- /**
10282
- * Comments Human
10283
- * @description Inline review comments by human authors.
10284
- */
10285
- comments_human: number;
10286
- /**
10287
- * Prs
10288
- * @description Distinct pull requests that received a review in the window.
10289
- */
10290
- prs: number;
10291
- /**
10292
- * Reviewers
10293
- * @description Distinct reviewers in the window.
10294
- */
10295
- reviewers: number;
10296
- /**
10297
- * Reviews
10298
- * @description Reviews submitted in the window (full count, not the capped feed).
10299
- */
10300
- reviews: number;
10301
- /**
10302
- * Thumbs Down
10303
- * @description Thumbs-down reactions across the window's review comments.
10304
- */
10305
- thumbs_down: number;
10306
- /**
10307
- * Thumbs Up
10308
- * @description Thumbs-up reactions across the window's review comments.
10309
- */
10310
- thumbs_up: number;
10311
- };
10312
9066
  /**
10313
9067
  * RunBudget
10314
9068
  * @description Spend limit for one session.
@@ -10643,11 +9397,6 @@ interface components {
10643
9397
  */
10644
9398
  message: string;
10645
9399
  };
10646
- /** SendTestNotificationEmailRequest */
10647
- SendTestNotificationEmailRequest: {
10648
- /** Email */
10649
- email: string;
10650
- };
10651
9400
  /**
10652
9401
  * SentryAction
10653
9402
  * @enum {string}
@@ -10833,7 +9582,7 @@ interface components {
10833
9582
  Session: {
10834
9583
  /** @description The agent the session was started from, or null for a raw session started with POST /v1/sessions. */
10835
9584
  agent: components['schemas']['SessionAgent'] | null;
10836
- /** @description When and by whom the session was archived; null when unarchived. Archiving does not stop or close a session. */
9585
+ /** @description When and by whom the session was archived, or null when it isn't. A session is archived when it closes, after the account's archive_inactive_sessions_days without a message, or by PUT /v1/sessions/{id}. An archived session takes no messages, and a reply on the Slack thread, pull request, issue, or Linear issue it answers starts a new session. */
10837
9586
  archived: components['schemas']['SessionArchived'] | null;
10838
9587
  /** @description The principal this session is attributed to. */
10839
9588
  attribution: components['schemas']['SessionAttribution'];
@@ -10847,6 +9596,11 @@ interface components {
10847
9596
  claude_code: components['schemas']['ClaudeConfig-Output'] | null;
10848
9597
  /** @description Codex input and native options. Set exactly one of claude_code, codex, or gemini. */
10849
9598
  codex: components['schemas']['CodexConfig-Output'] | null;
9599
+ /**
9600
+ * Content Deleted At
9601
+ * @description When session log retention deleted the session's records, messages, and prompt, or null. The session's status, cost, tokens, and summary stay.
9602
+ */
9603
+ content_deleted_at: string | null;
10850
9604
  /** @description Whether the session can take more messages, and whether an agent is warm to answer one. */
10851
9605
  conversation: components['schemas']['SessionConversation'];
10852
9606
  /** @description What the session has cost so far. */
@@ -10891,6 +9645,8 @@ interface components {
10891
9645
  parent: components['schemas']['SessionParent'] | null;
10892
9646
  /** @description What the session may touch, per minted credential. */
10893
9647
  permissions: components['schemas']['PermissionsConfig-Output'];
9648
+ /** @description The code review this session ran for; null unless the source is `code_review`. */
9649
+ review: components['schemas']['SessionReview'] | null;
10894
9650
  /**
10895
9651
  * Skills
10896
9652
  * @description Skills installed for this session.
@@ -10910,6 +9666,11 @@ interface components {
10910
9666
  * @description When the session was last updated.
10911
9667
  */
10912
9668
  updated_at: string;
9669
+ /**
9670
+ * Wait Ms
9671
+ * @description Milliseconds from when the session was created to when it started, including any time it waited because your account already had its limit of sessions alive. Null until the session starts, and for sessions created before this field was added.
9672
+ */
9673
+ wait_ms: number | null;
10913
9674
  } & ({
10914
9675
  claude_code: {
10915
9676
  [key: string]: unknown;
@@ -11000,6 +9761,11 @@ interface components {
11000
9761
  at: string;
11001
9762
  /** @description The GitHub user who archived the session; null if unknown or unavailable. */
11002
9763
  by: components['schemas']['GithubAccountSnippet'] | null;
9764
+ /**
9765
+ * Deletes At
9766
+ * @description When the session's records and messages are deleted, from the account's current session log retention. It moves when the retention changes. Null when the account keeps them or they're already deleted.
9767
+ */
9768
+ deletes_at: string | null;
11003
9769
  };
11004
9770
  /**
11005
9771
  * SessionAttribution
@@ -11674,73 +10440,27 @@ interface components {
11674
10440
  SessionPrEntry: {
11675
10441
  /** Number */
11676
10442
  number: number;
11677
- pull_request: components['schemas']['SessionPullRequest'] | null;
10443
+ pull_request: components['schemas']['PullRequest'] | null;
11678
10444
  /** Reviews */
11679
10445
  reviews: components['schemas']['SessionPullRequestReview'][];
11680
- /** Title */
11681
- title: string | null;
11682
10446
  /** Url */
11683
10447
  url: string;
11684
10448
  };
11685
- /**
11686
- * SessionPrompting
11687
- * @description The prompt-affordance projection. `enabled` answers "would a send work",
11688
- * and when it wouldn't, `blocked_reason` + `detail` say why.
11689
- *
11690
- * `surface_name` is set only for MENTION_SURFACE, naming where to reply.
11691
- */
11692
- SessionPrompting: {
11693
- blocked_reason: components['schemas']['PromptBlockedReason'] | null;
11694
- /** Detail */
11695
- detail: string | null;
11696
- /** Enabled */
11697
- enabled: boolean;
11698
- /** Surface Name */
11699
- surface_name: string | null;
11700
- };
11701
- /** SessionPullRequest */
11702
- SessionPullRequest: {
11703
- /** Additions */
11704
- additions?: number | null;
11705
- base: components['schemas']['SessionPullRequestBranch'];
11706
- /** Changed Files */
11707
- changed_files?: number | null;
11708
- /** Commits */
11709
- commits?: number | null;
11710
- /**
11711
- * Created At
11712
- * Format: date-time
11713
- */
11714
- created_at: string;
11715
- /** Deletions */
11716
- deletions?: number | null;
11717
- /** Draft */
11718
- draft: boolean | null;
11719
- head: components['schemas']['SessionPullRequestBranch'];
11720
- /** Html Url */
11721
- html_url: string;
11722
- /** Id */
11723
- id: number;
11724
- /** Merged At */
11725
- merged_at: string | null;
11726
- /** Number */
11727
- number: number;
11728
- /** State */
11729
- state: string;
11730
- /** Title */
11731
- title: string;
11732
- /**
11733
- * Updated At
11734
- * Format: date-time
11735
- */
11736
- updated_at: string;
11737
- };
11738
- /** SessionPullRequestBranch */
11739
- SessionPullRequestBranch: {
11740
- /** Ref */
11741
- ref: string;
11742
- /** Sha */
11743
- sha: string;
10449
+ /**
10450
+ * SessionPrompting
10451
+ * @description The prompt-affordance projection. `enabled` answers "would a send work",
10452
+ * and when it wouldn't, `blocked_reason` + `detail` say why.
10453
+ *
10454
+ * `surface_name` is set only for MENTION_SURFACE, naming where to reply.
10455
+ */
10456
+ SessionPrompting: {
10457
+ blocked_reason: components['schemas']['PromptBlockedReason'] | null;
10458
+ /** Detail */
10459
+ detail: string | null;
10460
+ /** Enabled */
10461
+ enabled: boolean;
10462
+ /** Surface Name */
10463
+ surface_name: string | null;
11744
10464
  };
11745
10465
  /** SessionPullRequestReview */
11746
10466
  SessionPullRequestReview: {
@@ -11759,47 +10479,7 @@ interface components {
11759
10479
  submitted_at: string;
11760
10480
  user: components['schemas']['GithubAccountSnippet'] | null;
11761
10481
  };
11762
- /**
11763
- * SessionPullRequestSummary
11764
- * @description What a session list row says about a PR the session opened: the live
11765
- * state and the size of the change, read from gh_prs at response time and
11766
- * looked up by gh_pr_id (the identity — repo, number, url — rides on the
11767
- * session's output_git). Counts are None until GitHub reports them.
11768
- */
11769
- SessionPullRequestSummary: {
11770
- /** Additions */
11771
- additions: number | null;
11772
- /** Changed Files */
11773
- changed_files: number | null;
11774
- /** Commits */
11775
- commits: number | null;
11776
- /** Deletions */
11777
- deletions: number | null;
11778
- /** Id */
11779
- id: number;
11780
- /**
11781
- * Status
11782
- * @enum {string}
11783
- */
11784
- status: 'open' | 'draft' | 'merged' | 'closed';
11785
- };
11786
10482
  SessionRecord: components['schemas']['ClaudeSessionRecord'] | components['schemas']['ClaudeNativeSessionRecord'] | components['schemas']['CodexSessionRecord'] | components['schemas']['CodexAppServerSessionRecord'] | components['schemas']['GeminiSessionRecord'] | components['schemas']['PlatformSessionRecord'] | components['schemas']['UnknownSessionRecord'];
11787
- /** SessionRecordSearchHit */
11788
- SessionRecordSearchHit: {
11789
- /**
11790
- * Created At
11791
- * Format: date-time
11792
- */
11793
- created_at: string;
11794
- /** Id */
11795
- id: string;
11796
- /** Record Type */
11797
- record_type: string;
11798
- /** Snippet */
11799
- snippet: string;
11800
- /** Stream Seq */
11801
- stream_seq: number;
11802
- };
11803
10483
  /**
11804
10484
  * SessionRecordsListResponse
11805
10485
  * @description A session's log: everything that happened, oldest first.
@@ -11835,30 +10515,17 @@ interface components {
11835
10515
  /** @description The session. */
11836
10516
  session: components['schemas']['Session'];
11837
10517
  };
11838
- /** SessionSearchResponse */
11839
- SessionSearchResponse: {
11840
- /** Results */
11841
- results: components['schemas']['SessionSearchResult'][];
11842
- };
11843
- /** SessionSearchResult */
11844
- SessionSearchResult: {
11845
- /** Matched */
11846
- matched: string[];
11847
- /** Recap Snippet */
11848
- recap_snippet: string | null;
11849
- /** Record Hit Count */
11850
- record_hit_count: number;
11851
- /** Record Hits */
11852
- record_hits: components['schemas']['SessionRecordSearchHit'][];
11853
- session: components['schemas']['Session'];
11854
- };
11855
10518
  /**
11856
- * SessionSearchScope
11857
- * @description What text a search query is matched against: the session log's record
11858
- * text, the session recaps (summaries), or both.
11859
- * @enum {string}
10519
+ * SessionReview
10520
+ * @description The code review a reviewer session ran for.
11860
10521
  */
11861
- SessionSearchScope: 'records' | 'recaps' | 'both';
10522
+ SessionReview: {
10523
+ /**
10524
+ * Id
10525
+ * @description Identifier of the code review.
10526
+ */
10527
+ id: string;
10528
+ };
11862
10529
  /**
11863
10530
  * SessionSource
11864
10531
  * @description Where a session came from: the credential that started it (web app,
@@ -11915,7 +10582,15 @@ interface components {
11915
10582
  * @description One-line description of what the session is doing.
11916
10583
  */
11917
10584
  description: string;
10585
+ /** @description Where this summary came from. `prompt` is the first line of the prompt the session started with, `generated` is written by Ellipsis as the session runs, and `user` was set by a person and is never replaced by a generated one. */
10586
+ source: components['schemas']['SessionSummarySource'];
11918
10587
  };
10588
+ /**
10589
+ * SessionSummarySource
10590
+ * @description Where a session's summary came from.
10591
+ * @enum {string}
10592
+ */
10593
+ SessionSummarySource: 'prompt' | 'generated' | 'user';
11919
10594
  /** SessionToolCount */
11920
10595
  SessionToolCount: {
11921
10596
  /** Calls */
@@ -11986,7 +10661,7 @@ interface components {
11986
10661
  next_cursor?: string | null;
11987
10662
  /** Pull Requests */
11988
10663
  pull_requests?: {
11989
- [key: string]: components['schemas']['SessionPullRequestSummary'];
10664
+ [key: string]: components['schemas']['PullRequest'];
11990
10665
  };
11991
10666
  /**
11992
10667
  * Sessions
@@ -12205,55 +10880,6 @@ interface components {
12205
10880
  */
12206
10881
  updated_at: string;
12207
10882
  };
12208
- /** SlackHelpChannel */
12209
- SlackHelpChannel: {
12210
- /** Id */
12211
- id: string;
12212
- /** Name */
12213
- name: string;
12214
- };
12215
- /** SlackHelpInvite */
12216
- SlackHelpInvite: {
12217
- /** Email */
12218
- email: string;
12219
- /** Error */
12220
- error?: string | null;
12221
- /** Joined At */
12222
- joined_at?: string | null;
12223
- /** Resend Available At */
12224
- resend_available_at?: string | null;
12225
- /** Sent At */
12226
- sent_at?: string | null;
12227
- /**
12228
- * Status
12229
- * @enum {string}
12230
- */
12231
- status: 'sending' | 'sent' | 'accepted' | 'approval_pending' | 'joined' | 'failed' | 'expired' | 'declined' | 'unknown';
12232
- };
12233
- /** SlackHelpRequest */
12234
- SlackHelpRequest: {
12235
- /** Emails */
12236
- emails: string[];
12237
- /**
12238
- * Resend
12239
- * @description Explicitly resend an existing invitation after its cooldown. Accepted and joined invitations are not resent.
12240
- */
12241
- resend?: boolean;
12242
- };
12243
- /** SlackHelpResponse */
12244
- SlackHelpResponse: {
12245
- channel: components['schemas']['SlackHelpChannel'];
12246
- /** Invitations */
12247
- invitations?: components['schemas']['SlackHelpInvite'][];
12248
- /** Ok */
12249
- ok: boolean;
12250
- /**
12251
- * Status
12252
- * @default unknown
12253
- * @enum {string}
12254
- */
12255
- status: 'pending' | 'connected' | 'archived' | 'unknown';
12256
- };
12257
10883
  /**
12258
10884
  * SlackIntegrationSummary
12259
10885
  * @description The account's connected Slack workspace.
@@ -12682,17 +11308,6 @@ interface components {
12682
11308
  */
12683
11309
  output_tokens: number;
12684
11310
  };
12685
- /** TranscriptIngestResult */
12686
- TranscriptIngestResult: {
12687
- /** Completed Turns */
12688
- completed_turns: number;
12689
- /** Ingested */
12690
- ingested: number;
12691
- /** Next Offset */
12692
- next_offset: number;
12693
- /** Skipped */
12694
- skipped: number;
12695
- };
12696
11311
  /** UninstallGithubAppRequest */
12697
11312
  UninstallGithubAppRequest: {
12698
11313
  /** Confirm Account Login */
@@ -13255,191 +11870,40 @@ interface components {
13255
11870
  /** Id */
13256
11871
  id: string;
13257
11872
  /**
13258
- * @description discriminator enum property added by openapi-typescript
13259
- * @enum {string}
13260
- */
13261
- type: 'session.create';
13262
- };
13263
- /** WebhookSessionData */
13264
- WebhookSessionData: {
13265
- session: components['schemas']['Session'];
13266
- };
13267
- /**
13268
- * WebhookState
13269
- * @enum {string}
13270
- */
13271
- WebhookState: 'unverified' | 'pending' | 'active';
13272
- /** WebhooksListResponse */
13273
- WebhooksListResponse: {
13274
- /** Webhooks */
13275
- webhooks: components['schemas']['Webhook'][];
13276
- };
13277
- /**
13278
- * WorkflowRunAction
13279
- * @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.
13280
- * @enum {string}
13281
- */
13282
- WorkflowRunAction: 'requested' | 'queued' | 'waiting' | 'pending' | 'started' | 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale' | 'startup_failure';
13283
- };
13284
- responses: never;
13285
- parameters: never;
13286
- requestBodies: never;
13287
- headers: never;
13288
- pathItems: never;
13289
- }
13290
- interface operations {
13291
- update_customer: {
13292
- parameters: {
13293
- query?: never;
13294
- header?: {
13295
- 'user-agent'?: string | null;
13296
- };
13297
- path?: never;
13298
- cookie?: never;
13299
- };
13300
- requestBody: {
13301
- content: {
13302
- 'application/json': components['schemas']['PatchAccountRequest'];
13303
- };
13304
- };
13305
- responses: {
13306
- /** @description Successful Response */
13307
- 200: {
13308
- headers: {
13309
- [name: string]: unknown;
13310
- };
13311
- content: {
13312
- 'application/json': components['schemas']['AccountResponse'];
13313
- };
13314
- };
13315
- /** @description The bearer token is missing, invalid, or revoked. */
13316
- 401: {
13317
- headers: {
13318
- [name: string]: unknown;
13319
- };
13320
- content: {
13321
- 'application/json': components['schemas']['ErrorResponse'];
13322
- };
13323
- };
13324
- /** @description The credential may not perform this action, or the account is blocked. */
13325
- 403: {
13326
- headers: {
13327
- [name: string]: unknown;
13328
- };
13329
- content: {
13330
- 'application/json': components['schemas']['ErrorResponse'];
13331
- };
13332
- };
13333
- /** @description Validation Error */
13334
- 422: {
13335
- headers: {
13336
- [name: string]: unknown;
13337
- };
13338
- content: {
13339
- 'application/json': components['schemas']['HTTPValidationError'];
13340
- };
13341
- };
13342
- };
13343
- };
13344
- get_customer_activity: {
13345
- parameters: {
13346
- query?: never;
13347
- header?: {
13348
- 'user-agent'?: string | null;
13349
- };
13350
- path?: never;
13351
- cookie?: never;
13352
- };
13353
- requestBody?: never;
13354
- responses: {
13355
- /** @description Successful Response */
13356
- 200: {
13357
- headers: {
13358
- [name: string]: unknown;
13359
- };
13360
- content: {
13361
- 'application/json': components['schemas']['AccountActivity'];
13362
- };
13363
- };
13364
- /** @description The bearer token is missing, invalid, or revoked. */
13365
- 401: {
13366
- headers: {
13367
- [name: string]: unknown;
13368
- };
13369
- content: {
13370
- 'application/json': components['schemas']['ErrorResponse'];
13371
- };
13372
- };
13373
- /** @description The credential may not perform this action, or the account is blocked. */
13374
- 403: {
13375
- headers: {
13376
- [name: string]: unknown;
13377
- };
13378
- content: {
13379
- 'application/json': components['schemas']['ErrorResponse'];
13380
- };
13381
- };
13382
- /** @description Validation Error */
13383
- 422: {
13384
- headers: {
13385
- [name: string]: unknown;
13386
- };
13387
- content: {
13388
- 'application/json': components['schemas']['HTTPValidationError'];
13389
- };
13390
- };
13391
- };
13392
- };
13393
- list_api_keys: {
13394
- parameters: {
13395
- query?: never;
13396
- header?: {
13397
- 'user-agent'?: string | null;
13398
- };
13399
- path?: never;
13400
- cookie?: never;
13401
- };
13402
- requestBody?: never;
13403
- responses: {
13404
- /** @description Successful Response */
13405
- 200: {
13406
- headers: {
13407
- [name: string]: unknown;
13408
- };
13409
- content: {
13410
- 'application/json': components['schemas']['ListApiKeysResponse'];
13411
- };
13412
- };
13413
- /** @description The bearer token is missing, invalid, or revoked. */
13414
- 401: {
13415
- headers: {
13416
- [name: string]: unknown;
13417
- };
13418
- content: {
13419
- 'application/json': components['schemas']['ErrorResponse'];
13420
- };
13421
- };
13422
- /** @description The credential may not perform this action, or the account is blocked. */
13423
- 403: {
13424
- headers: {
13425
- [name: string]: unknown;
13426
- };
13427
- content: {
13428
- 'application/json': components['schemas']['ErrorResponse'];
13429
- };
13430
- };
13431
- /** @description Validation Error */
13432
- 422: {
13433
- headers: {
13434
- [name: string]: unknown;
13435
- };
13436
- content: {
13437
- 'application/json': components['schemas']['HTTPValidationError'];
13438
- };
13439
- };
11873
+ * @description discriminator enum property added by openapi-typescript
11874
+ * @enum {string}
11875
+ */
11876
+ type: 'session.create';
11877
+ };
11878
+ /** WebhookSessionData */
11879
+ WebhookSessionData: {
11880
+ session: components['schemas']['Session'];
11881
+ };
11882
+ /**
11883
+ * WebhookState
11884
+ * @enum {string}
11885
+ */
11886
+ WebhookState: 'unverified' | 'pending' | 'active';
11887
+ /** WebhooksListResponse */
11888
+ WebhooksListResponse: {
11889
+ /** Webhooks */
11890
+ webhooks: components['schemas']['Webhook'][];
13440
11891
  };
11892
+ /**
11893
+ * WorkflowRunAction
11894
+ * @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.
11895
+ * @enum {string}
11896
+ */
11897
+ WorkflowRunAction: 'requested' | 'queued' | 'waiting' | 'pending' | 'started' | 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale' | 'startup_failure';
13441
11898
  };
13442
- create_api_key: {
11899
+ responses: never;
11900
+ parameters: never;
11901
+ requestBodies: never;
11902
+ headers: never;
11903
+ pathItems: never;
11904
+ }
11905
+ interface operations {
11906
+ update_customer: {
13443
11907
  parameters: {
13444
11908
  query?: never;
13445
11909
  header?: {
@@ -13450,109 +11914,9 @@ interface operations {
13450
11914
  };
13451
11915
  requestBody: {
13452
11916
  content: {
13453
- 'application/json': components['schemas']['CreateApiKeyRequest'];
13454
- };
13455
- };
13456
- responses: {
13457
- /** @description Successful Response */
13458
- 201: {
13459
- headers: {
13460
- [name: string]: unknown;
13461
- };
13462
- content: {
13463
- 'application/json': components['schemas']['CreateApiKeyResponse'];
13464
- };
13465
- };
13466
- /** @description The bearer token is missing, invalid, or revoked. */
13467
- 401: {
13468
- headers: {
13469
- [name: string]: unknown;
13470
- };
13471
- content: {
13472
- 'application/json': components['schemas']['ErrorResponse'];
13473
- };
13474
- };
13475
- /** @description The credential may not perform this action, or the account is blocked. */
13476
- 403: {
13477
- headers: {
13478
- [name: string]: unknown;
13479
- };
13480
- content: {
13481
- 'application/json': components['schemas']['ErrorResponse'];
13482
- };
13483
- };
13484
- /** @description Validation Error */
13485
- 422: {
13486
- headers: {
13487
- [name: string]: unknown;
13488
- };
13489
- content: {
13490
- 'application/json': components['schemas']['HTTPValidationError'];
13491
- };
13492
- };
13493
- };
13494
- };
13495
- revoke_api_key: {
13496
- parameters: {
13497
- query?: never;
13498
- header?: {
13499
- 'user-agent'?: string | null;
13500
- };
13501
- path: {
13502
- id: string;
13503
- };
13504
- cookie?: never;
13505
- };
13506
- requestBody?: never;
13507
- responses: {
13508
- /** @description Successful Response */
13509
- 200: {
13510
- headers: {
13511
- [name: string]: unknown;
13512
- };
13513
- content: {
13514
- 'application/json': components['schemas']['TokenRevokedResponse'];
13515
- };
13516
- };
13517
- /** @description The bearer token is missing, invalid, or revoked. */
13518
- 401: {
13519
- headers: {
13520
- [name: string]: unknown;
13521
- };
13522
- content: {
13523
- 'application/json': components['schemas']['ErrorResponse'];
13524
- };
13525
- };
13526
- /** @description The credential may not perform this action, or the account is blocked. */
13527
- 403: {
13528
- headers: {
13529
- [name: string]: unknown;
13530
- };
13531
- content: {
13532
- 'application/json': components['schemas']['ErrorResponse'];
13533
- };
13534
- };
13535
- /** @description Validation Error */
13536
- 422: {
13537
- headers: {
13538
- [name: string]: unknown;
13539
- };
13540
- content: {
13541
- 'application/json': components['schemas']['HTTPValidationError'];
13542
- };
13543
- };
13544
- };
13545
- };
13546
- get_customer_audit_log: {
13547
- parameters: {
13548
- query?: never;
13549
- header?: {
13550
- 'user-agent'?: string | null;
11917
+ 'application/json': components['schemas']['PatchAccountRequest'];
13551
11918
  };
13552
- path?: never;
13553
- cookie?: never;
13554
11919
  };
13555
- requestBody?: never;
13556
11920
  responses: {
13557
11921
  /** @description Successful Response */
13558
11922
  200: {
@@ -13560,7 +11924,7 @@ interface operations {
13560
11924
  [name: string]: unknown;
13561
11925
  };
13562
11926
  content: {
13563
- 'application/json': components['schemas']['AccountAuditLogResponse'];
11927
+ 'application/json': components['schemas']['AccountResponse'];
13564
11928
  };
13565
11929
  };
13566
11930
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -13592,7 +11956,7 @@ interface operations {
13592
11956
  };
13593
11957
  };
13594
11958
  };
13595
- get_account_billing: {
11959
+ get_customer_activity: {
13596
11960
  parameters: {
13597
11961
  query?: never;
13598
11962
  header?: {
@@ -13609,7 +11973,7 @@ interface operations {
13609
11973
  [name: string]: unknown;
13610
11974
  };
13611
11975
  content: {
13612
- 'application/json': components['schemas']['BillingStatus'];
11976
+ 'application/json': components['schemas']['AccountActivity'];
13613
11977
  };
13614
11978
  };
13615
11979
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -13641,7 +12005,7 @@ interface operations {
13641
12005
  };
13642
12006
  };
13643
12007
  };
13644
- get_auto_recharge: {
12008
+ list_api_keys: {
13645
12009
  parameters: {
13646
12010
  query?: never;
13647
12011
  header?: {
@@ -13658,7 +12022,7 @@ interface operations {
13658
12022
  [name: string]: unknown;
13659
12023
  };
13660
12024
  content: {
13661
- 'application/json': components['schemas']['AutoRechargeSettings'];
12025
+ 'application/json': components['schemas']['ListApiKeysResponse'];
13662
12026
  };
13663
12027
  };
13664
12028
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -13690,7 +12054,7 @@ interface operations {
13690
12054
  };
13691
12055
  };
13692
12056
  };
13693
- update_auto_recharge: {
12057
+ create_api_key: {
13694
12058
  parameters: {
13695
12059
  query?: never;
13696
12060
  header?: {
@@ -13701,17 +12065,17 @@ interface operations {
13701
12065
  };
13702
12066
  requestBody: {
13703
12067
  content: {
13704
- 'application/json': components['schemas']['AutoRechargeUpdate'];
12068
+ 'application/json': components['schemas']['CreateApiKeyRequest'];
13705
12069
  };
13706
12070
  };
13707
12071
  responses: {
13708
12072
  /** @description Successful Response */
13709
- 200: {
12073
+ 201: {
13710
12074
  headers: {
13711
12075
  [name: string]: unknown;
13712
12076
  };
13713
12077
  content: {
13714
- 'application/json': components['schemas']['AutoRechargeSettings'];
12078
+ 'application/json': components['schemas']['CreateApiKeyResponse'];
13715
12079
  };
13716
12080
  };
13717
12081
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -13732,35 +12096,37 @@ interface operations {
13732
12096
  'application/json': components['schemas']['ErrorResponse'];
13733
12097
  };
13734
12098
  };
13735
- /** @description Error. */
12099
+ /** @description Validation Error */
13736
12100
  422: {
13737
12101
  headers: {
13738
12102
  [name: string]: unknown;
13739
12103
  };
13740
12104
  content: {
13741
- 'application/json': components['schemas']['ErrorResponse'];
12105
+ 'application/json': components['schemas']['HTTPValidationError'];
13742
12106
  };
13743
12107
  };
13744
12108
  };
13745
12109
  };
13746
- create_card_setup_session: {
12110
+ revoke_api_key: {
13747
12111
  parameters: {
13748
12112
  query?: never;
13749
12113
  header?: {
13750
12114
  'user-agent'?: string | null;
13751
12115
  };
13752
- path?: never;
12116
+ path: {
12117
+ id: string;
12118
+ };
13753
12119
  cookie?: never;
13754
12120
  };
13755
12121
  requestBody?: never;
13756
12122
  responses: {
13757
12123
  /** @description Successful Response */
13758
- 201: {
12124
+ 200: {
13759
12125
  headers: {
13760
12126
  [name: string]: unknown;
13761
12127
  };
13762
12128
  content: {
13763
- 'application/json': components['schemas']['BillingCheckout'];
12129
+ 'application/json': components['schemas']['TokenRevokedResponse'];
13764
12130
  };
13765
12131
  };
13766
12132
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -13792,41 +12158,44 @@ interface operations {
13792
12158
  };
13793
12159
  };
13794
12160
  };
13795
- create_credit_checkout_session: {
12161
+ list_api_requests: {
13796
12162
  parameters: {
13797
- query?: never;
12163
+ query?: {
12164
+ /** @description Only requests at or after this time. */
12165
+ start?: string | null;
12166
+ /** @description Only requests before this time. */
12167
+ end?: string | null;
12168
+ /** @description Only requests to these operations. */
12169
+ operation?: string[] | null;
12170
+ /** @description Only requests that returned these status codes. */
12171
+ status_code?: number[] | null;
12172
+ /** @description Only requests made with these credential types. */
12173
+ credential_type?: components['schemas']['ApiRequestCredentialType'][] | null;
12174
+ /** @description Only requests made with these API keys, user tokens, or sessions, by id. */
12175
+ credential_id?: string[] | null;
12176
+ limit?: number;
12177
+ /** @description The `next_cursor` of the previous page. */
12178
+ cursor?: string | null;
12179
+ };
13798
12180
  header?: {
13799
12181
  'user-agent'?: string | null;
13800
12182
  };
13801
12183
  path?: never;
13802
12184
  cookie?: never;
13803
12185
  };
13804
- requestBody: {
13805
- content: {
13806
- 'application/json': components['schemas']['CreditPurchaseRequest'];
13807
- };
13808
- };
12186
+ requestBody?: never;
13809
12187
  responses: {
13810
12188
  /** @description Successful Response */
13811
- 201: {
13812
- headers: {
13813
- [name: string]: unknown;
13814
- };
13815
- content: {
13816
- 'application/json': components['schemas']['BillingCheckout'];
13817
- };
13818
- };
13819
- /** @description The bearer token is missing, invalid, or revoked. */
13820
- 401: {
12189
+ 200: {
13821
12190
  headers: {
13822
12191
  [name: string]: unknown;
13823
12192
  };
13824
12193
  content: {
13825
- 'application/json': components['schemas']['ErrorResponse'];
12194
+ 'application/json': components['schemas']['ApiRequestsListResponse'];
13826
12195
  };
13827
12196
  };
13828
- /** @description The credential may not perform this action, or the account is blocked. */
13829
- 403: {
12197
+ /** @description The request is invalid or combines incompatible fields. */
12198
+ 400: {
13830
12199
  headers: {
13831
12200
  [name: string]: unknown;
13832
12201
  };
@@ -13834,37 +12203,6 @@ interface operations {
13834
12203
  'application/json': components['schemas']['ErrorResponse'];
13835
12204
  };
13836
12205
  };
13837
- /** @description Validation Error */
13838
- 422: {
13839
- headers: {
13840
- [name: string]: unknown;
13841
- };
13842
- content: {
13843
- 'application/json': components['schemas']['HTTPValidationError'];
13844
- };
13845
- };
13846
- };
13847
- };
13848
- claim_signup_credit: {
13849
- parameters: {
13850
- query?: never;
13851
- header?: {
13852
- 'user-agent'?: string | null;
13853
- };
13854
- path?: never;
13855
- cookie?: never;
13856
- };
13857
- requestBody?: never;
13858
- responses: {
13859
- /** @description Successful Response */
13860
- 200: {
13861
- headers: {
13862
- [name: string]: unknown;
13863
- };
13864
- content: {
13865
- 'application/json': components['schemas']['BillingStatus'];
13866
- };
13867
- };
13868
12206
  /** @description The bearer token is missing, invalid, or revoked. */
13869
12207
  401: {
13870
12208
  headers: {
@@ -13894,7 +12232,7 @@ interface operations {
13894
12232
  };
13895
12233
  };
13896
12234
  };
13897
- list_credit_grants: {
12235
+ get_customer_audit_log: {
13898
12236
  parameters: {
13899
12237
  query?: never;
13900
12238
  header?: {
@@ -13911,7 +12249,7 @@ interface operations {
13911
12249
  [name: string]: unknown;
13912
12250
  };
13913
12251
  content: {
13914
- 'application/json': components['schemas']['CreditGrantsResponse'];
12252
+ 'application/json': components['schemas']['AccountAuditLogResponse'];
13915
12253
  };
13916
12254
  };
13917
12255
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -13943,7 +12281,7 @@ interface operations {
13943
12281
  };
13944
12282
  };
13945
12283
  };
13946
- get_fee_schedule: {
12284
+ get_account_billing: {
13947
12285
  parameters: {
13948
12286
  query?: never;
13949
12287
  header?: {
@@ -13960,7 +12298,7 @@ interface operations {
13960
12298
  [name: string]: unknown;
13961
12299
  };
13962
12300
  content: {
13963
- 'application/json': components['schemas']['FeeScheduleResponse'];
12301
+ 'application/json': components['schemas']['BillingStatus'];
13964
12302
  };
13965
12303
  };
13966
12304
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -13992,7 +12330,7 @@ interface operations {
13992
12330
  };
13993
12331
  };
13994
12332
  };
13995
- get_credit_purchase_options: {
12333
+ get_auto_recharge: {
13996
12334
  parameters: {
13997
12335
  query?: never;
13998
12336
  header?: {
@@ -14009,7 +12347,7 @@ interface operations {
14009
12347
  [name: string]: unknown;
14010
12348
  };
14011
12349
  content: {
14012
- 'application/json': components['schemas']['CreditPurchaseOptions'];
12350
+ 'application/json': components['schemas']['AutoRechargeSettings'];
14013
12351
  };
14014
12352
  };
14015
12353
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -14041,15 +12379,13 @@ interface operations {
14041
12379
  };
14042
12380
  };
14043
12381
  };
14044
- get_credit_purchase: {
12382
+ list_credit_grants: {
14045
12383
  parameters: {
14046
12384
  query?: never;
14047
12385
  header?: {
14048
12386
  'user-agent'?: string | null;
14049
12387
  };
14050
- path: {
14051
- id: string;
14052
- };
12388
+ path?: never;
14053
12389
  cookie?: never;
14054
12390
  };
14055
12391
  requestBody?: never;
@@ -14060,7 +12396,7 @@ interface operations {
14060
12396
  [name: string]: unknown;
14061
12397
  };
14062
12398
  content: {
14063
- 'application/json': components['schemas']['CreditPurchaseReceipt'];
12399
+ 'application/json': components['schemas']['CreditGrantsResponse'];
14064
12400
  };
14065
12401
  };
14066
12402
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -14081,15 +12417,6 @@ interface operations {
14081
12417
  'application/json': components['schemas']['ErrorResponse'];
14082
12418
  };
14083
12419
  };
14084
- /** @description No such resource in your account. */
14085
- 404: {
14086
- headers: {
14087
- [name: string]: unknown;
14088
- };
14089
- content: {
14090
- 'application/json': components['schemas']['ErrorResponse'];
14091
- };
14092
- };
14093
12420
  /** @description Validation Error */
14094
12421
  422: {
14095
12422
  headers: {
@@ -14101,7 +12428,7 @@ interface operations {
14101
12428
  };
14102
12429
  };
14103
12430
  };
14104
- get_account_budget: {
12431
+ get_fee_schedule: {
14105
12432
  parameters: {
14106
12433
  query?: never;
14107
12434
  header?: {
@@ -14118,7 +12445,7 @@ interface operations {
14118
12445
  [name: string]: unknown;
14119
12446
  };
14120
12447
  content: {
14121
- 'application/json': components['schemas']['BudgetSummary'];
12448
+ 'application/json': components['schemas']['FeeScheduleResponse'];
14122
12449
  };
14123
12450
  };
14124
12451
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -14150,7 +12477,7 @@ interface operations {
14150
12477
  };
14151
12478
  };
14152
12479
  };
14153
- update_account_budget: {
12480
+ get_credit_purchase_options: {
14154
12481
  parameters: {
14155
12482
  query?: never;
14156
12483
  header?: {
@@ -14159,11 +12486,7 @@ interface operations {
14159
12486
  path?: never;
14160
12487
  cookie?: never;
14161
12488
  };
14162
- requestBody: {
14163
- content: {
14164
- 'application/json': components['schemas']['BudgetUpdate'];
14165
- };
14166
- };
12489
+ requestBody?: never;
14167
12490
  responses: {
14168
12491
  /** @description Successful Response */
14169
12492
  200: {
@@ -14171,7 +12494,7 @@ interface operations {
14171
12494
  [name: string]: unknown;
14172
12495
  };
14173
12496
  content: {
14174
- 'application/json': components['schemas']['BudgetSummary'];
12497
+ 'application/json': components['schemas']['CreditPurchaseOptions'];
14175
12498
  };
14176
12499
  };
14177
12500
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -14203,13 +12526,15 @@ interface operations {
14203
12526
  };
14204
12527
  };
14205
12528
  };
14206
- list_account_models: {
12529
+ get_credit_purchase: {
14207
12530
  parameters: {
14208
12531
  query?: never;
14209
12532
  header?: {
14210
12533
  'user-agent'?: string | null;
14211
12534
  };
14212
- path?: never;
12535
+ path: {
12536
+ id: string;
12537
+ };
14213
12538
  cookie?: never;
14214
12539
  };
14215
12540
  requestBody?: never;
@@ -14220,7 +12545,7 @@ interface operations {
14220
12545
  [name: string]: unknown;
14221
12546
  };
14222
12547
  content: {
14223
- 'application/json': components['schemas']['ModelsListResponse'];
12548
+ 'application/json': components['schemas']['CreditPurchaseReceipt'];
14224
12549
  };
14225
12550
  };
14226
12551
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -14241,6 +12566,15 @@ interface operations {
14241
12566
  'application/json': components['schemas']['ErrorResponse'];
14242
12567
  };
14243
12568
  };
12569
+ /** @description No such resource in your account. */
12570
+ 404: {
12571
+ headers: {
12572
+ [name: string]: unknown;
12573
+ };
12574
+ content: {
12575
+ 'application/json': components['schemas']['ErrorResponse'];
12576
+ };
12577
+ };
14244
12578
  /** @description Validation Error */
14245
12579
  422: {
14246
12580
  headers: {
@@ -14252,7 +12586,7 @@ interface operations {
14252
12586
  };
14253
12587
  };
14254
12588
  };
14255
- send_test_notification_email: {
12589
+ get_account_budget: {
14256
12590
  parameters: {
14257
12591
  query?: never;
14258
12592
  header?: {
@@ -14261,11 +12595,7 @@ interface operations {
14261
12595
  path?: never;
14262
12596
  cookie?: never;
14263
12597
  };
14264
- requestBody: {
14265
- content: {
14266
- 'application/json': components['schemas']['SendTestNotificationEmailRequest'];
14267
- };
14268
- };
12598
+ requestBody?: never;
14269
12599
  responses: {
14270
12600
  /** @description Successful Response */
14271
12601
  200: {
@@ -14273,7 +12603,7 @@ interface operations {
14273
12603
  [name: string]: unknown;
14274
12604
  };
14275
12605
  content: {
14276
- 'application/json': components['schemas']['AccountActionResponse'];
12606
+ 'application/json': components['schemas']['BudgetSummary'];
14277
12607
  };
14278
12608
  };
14279
12609
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -14305,7 +12635,7 @@ interface operations {
14305
12635
  };
14306
12636
  };
14307
12637
  };
14308
- get_account_onboarding: {
12638
+ update_account_budget: {
14309
12639
  parameters: {
14310
12640
  query?: never;
14311
12641
  header?: {
@@ -14314,7 +12644,11 @@ interface operations {
14314
12644
  path?: never;
14315
12645
  cookie?: never;
14316
12646
  };
14317
- requestBody?: never;
12647
+ requestBody: {
12648
+ content: {
12649
+ 'application/json': components['schemas']['BudgetUpdate'];
12650
+ };
12651
+ };
14318
12652
  responses: {
14319
12653
  /** @description Successful Response */
14320
12654
  200: {
@@ -14322,7 +12656,7 @@ interface operations {
14322
12656
  [name: string]: unknown;
14323
12657
  };
14324
12658
  content: {
14325
- 'application/json': components['schemas']['AccountOnboardingResponse'];
12659
+ 'application/json': components['schemas']['BudgetSummary'];
14326
12660
  };
14327
12661
  };
14328
12662
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -14354,7 +12688,7 @@ interface operations {
14354
12688
  };
14355
12689
  };
14356
12690
  };
14357
- update_account_onboarding: {
12691
+ list_account_models: {
14358
12692
  parameters: {
14359
12693
  query?: never;
14360
12694
  header?: {
@@ -14363,11 +12697,7 @@ interface operations {
14363
12697
  path?: never;
14364
12698
  cookie?: never;
14365
12699
  };
14366
- requestBody: {
14367
- content: {
14368
- 'application/json': components['schemas']['PatchAccountOnboardingRequest'];
14369
- };
14370
- };
12700
+ requestBody?: never;
14371
12701
  responses: {
14372
12702
  /** @description Successful Response */
14373
12703
  200: {
@@ -14375,7 +12705,7 @@ interface operations {
14375
12705
  [name: string]: unknown;
14376
12706
  };
14377
12707
  content: {
14378
- 'application/json': components['schemas']['AccountOnboardingResponse'];
12708
+ 'application/json': components['schemas']['ModelsListResponse'];
14379
12709
  };
14380
12710
  };
14381
12711
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -14396,13 +12726,13 @@ interface operations {
14396
12726
  'application/json': components['schemas']['ErrorResponse'];
14397
12727
  };
14398
12728
  };
14399
- /** @description Error. */
12729
+ /** @description Validation Error */
14400
12730
  422: {
14401
12731
  headers: {
14402
12732
  [name: string]: unknown;
14403
12733
  };
14404
12734
  content: {
14405
- 'application/json': components['schemas']['ErrorResponse'];
12735
+ 'application/json': components['schemas']['HTTPValidationError'];
14406
12736
  };
14407
12737
  };
14408
12738
  };
@@ -15026,215 +13356,13 @@ interface operations {
15026
13356
  'application/json': components['schemas']['LinkAgentResponse'];
15027
13357
  };
15028
13358
  };
15029
- /** @description The path is not a synced location, or the repository has no commits. */
15030
- 400: {
15031
- headers: {
15032
- [name: string]: unknown;
15033
- };
15034
- content: {
15035
- 'application/json': components['schemas']['ErrorResponse'];
15036
- };
15037
- };
15038
- /** @description The bearer token is missing, invalid, or revoked. */
15039
- 401: {
15040
- headers: {
15041
- [name: string]: unknown;
15042
- };
15043
- content: {
15044
- 'application/json': components['schemas']['ErrorResponse'];
15045
- };
15046
- };
15047
- /** @description The credential may not perform this action, or the account is blocked. */
15048
- 403: {
15049
- headers: {
15050
- [name: string]: unknown;
15051
- };
15052
- content: {
15053
- 'application/json': components['schemas']['ErrorResponse'];
15054
- };
15055
- };
15056
- /** @description The agent or repository was not found in your account. */
15057
- 404: {
15058
- headers: {
15059
- [name: string]: unknown;
15060
- };
15061
- content: {
15062
- 'application/json': components['schemas']['ErrorResponse'];
15063
- };
15064
- };
15065
- /** @description The agent is already defined by a file, a link is already open for it, a file already exists at that path, or another agent syncs from it. */
15066
- 409: {
15067
- headers: {
15068
- [name: string]: unknown;
15069
- };
15070
- content: {
15071
- 'application/json': components['schemas']['ErrorResponse'];
15072
- };
15073
- };
15074
- /** @description GitHub rejected the pull request. */
15075
- 422: {
15076
- headers: {
15077
- [name: string]: unknown;
15078
- };
15079
- content: {
15080
- 'application/json': components['schemas']['ErrorResponse'];
15081
- };
15082
- };
15083
- };
15084
- };
15085
- get_agent_metrics: {
15086
- parameters: {
15087
- query?: never;
15088
- header?: {
15089
- 'user-agent'?: string | null;
15090
- };
15091
- path: {
15092
- id: string;
15093
- };
15094
- cookie?: never;
15095
- };
15096
- requestBody?: never;
15097
- responses: {
15098
- /** @description Successful Response */
15099
- 200: {
15100
- headers: {
15101
- [name: string]: unknown;
15102
- };
15103
- content: {
15104
- 'application/json': components['schemas']['AgentMetricsResponse'];
15105
- };
15106
- };
15107
- /** @description The bearer token is missing, invalid, or revoked. */
15108
- 401: {
15109
- headers: {
15110
- [name: string]: unknown;
15111
- };
15112
- content: {
15113
- 'application/json': components['schemas']['ErrorResponse'];
15114
- };
15115
- };
15116
- /** @description The credential may not perform this action, or the account is blocked. */
15117
- 403: {
15118
- headers: {
15119
- [name: string]: unknown;
15120
- };
15121
- content: {
15122
- 'application/json': components['schemas']['ErrorResponse'];
15123
- };
15124
- };
15125
- /** @description No such agent in your account. */
15126
- 404: {
15127
- headers: {
15128
- [name: string]: unknown;
15129
- };
15130
- content: {
15131
- 'application/json': components['schemas']['ErrorResponse'];
15132
- };
15133
- };
15134
- /** @description Validation Error */
15135
- 422: {
15136
- headers: {
15137
- [name: string]: unknown;
15138
- };
15139
- content: {
15140
- 'application/json': components['schemas']['HTTPValidationError'];
15141
- };
15142
- };
15143
- };
15144
- };
15145
- start_agent_session: {
15146
- parameters: {
15147
- query?: never;
15148
- header?: {
15149
- 'user-agent'?: string | null;
15150
- };
15151
- path: {
15152
- id: string;
15153
- };
15154
- cookie?: never;
15155
- };
15156
- requestBody: {
15157
- content: {
15158
- 'application/json': components['schemas']['StartAgentSessionRequest'];
15159
- };
15160
- };
15161
- responses: {
15162
- /** @description Successful Response */
15163
- 201: {
15164
- headers: {
15165
- [name: string]: unknown;
15166
- };
15167
- content: {
15168
- 'application/json': components['schemas']['SessionResponse'];
15169
- };
15170
- };
15171
- /** @description The resolved agent combination is not supported (unsupported_session_combination), a run-once session has no prompt or input, or budget exceeds the organization's ceiling. */
15172
- 400: {
15173
- headers: {
15174
- [name: string]: unknown;
15175
- };
15176
- content: {
15177
- 'application/json': components['schemas']['ErrorResponse'];
15178
- };
15179
- };
15180
- /** @description The bearer token is missing, invalid, or revoked. */
15181
- 401: {
15182
- headers: {
15183
- [name: string]: unknown;
15184
- };
15185
- content: {
15186
- 'application/json': components['schemas']['ErrorResponse'];
15187
- };
15188
- };
15189
- /** @description The credential may not perform this action, or the account is blocked. */
15190
- 403: {
15191
- headers: {
15192
- [name: string]: unknown;
15193
- };
15194
- content: {
15195
- 'application/json': components['schemas']['ErrorResponse'];
15196
- };
15197
- };
15198
- /** @description No such agent in your account, or its environment no longer exists. */
15199
- 404: {
15200
- headers: {
15201
- [name: string]: unknown;
15202
- };
15203
- content: {
15204
- 'application/json': components['schemas']['ErrorResponse'];
15205
- };
15206
- };
15207
- /** @description A field is malformed, `budget` carries `day`, `week`, or `month`, both `claude_code` and `codex` are set, the merged settings are invalid, `input` is missing when the agent declares a schema or sent when it declares none, or the body carries a key this route does not accept. Input must match the schema and render a non-empty message. */
15208
- 422: {
15209
- headers: {
15210
- [name: string]: unknown;
15211
- };
15212
- content: {
15213
- 'application/json': components['schemas']['ErrorResponse'];
15214
- };
15215
- };
15216
- };
15217
- };
15218
- unlink_agent: {
15219
- parameters: {
15220
- query?: never;
15221
- header?: {
15222
- 'user-agent'?: string | null;
15223
- };
15224
- path: {
15225
- id: string;
15226
- };
15227
- cookie?: never;
15228
- };
15229
- requestBody?: never;
15230
- responses: {
15231
- /** @description Successful Response */
15232
- 200: {
13359
+ /** @description The path is not a synced location, or the repository has no commits. */
13360
+ 400: {
15233
13361
  headers: {
15234
13362
  [name: string]: unknown;
15235
13363
  };
15236
13364
  content: {
15237
- 'application/json': components['schemas']['AgentResponse'];
13365
+ 'application/json': components['schemas']['ErrorResponse'];
15238
13366
  };
15239
13367
  };
15240
13368
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -15255,7 +13383,7 @@ interface operations {
15255
13383
  'application/json': components['schemas']['ErrorResponse'];
15256
13384
  };
15257
13385
  };
15258
- /** @description No such agent in your account. */
13386
+ /** @description The agent or repository was not found in your account. */
15259
13387
  404: {
15260
13388
  headers: {
15261
13389
  [name: string]: unknown;
@@ -15264,7 +13392,7 @@ interface operations {
15264
13392
  'application/json': components['schemas']['ErrorResponse'];
15265
13393
  };
15266
13394
  };
15267
- /** @description The agent is already managed through the API. */
13395
+ /** @description The agent is already defined by a file, a link is already open for it, a file already exists at that path, or another agent syncs from it. */
15268
13396
  409: {
15269
13397
  headers: {
15270
13398
  [name: string]: unknown;
@@ -15273,7 +13401,7 @@ interface operations {
15273
13401
  'application/json': components['schemas']['ErrorResponse'];
15274
13402
  };
15275
13403
  };
15276
- /** @description The definition has a file reference that names no repository, so it cannot resolve without its source repository. */
13404
+ /** @description GitHub rejected the pull request. */
15277
13405
  422: {
15278
13406
  headers: {
15279
13407
  [name: string]: unknown;
@@ -15284,18 +13412,20 @@ interface operations {
15284
13412
  };
15285
13413
  };
15286
13414
  };
15287
- list_alerts: {
13415
+ get_agent_metrics: {
15288
13416
  parameters: {
15289
- query?: {
15290
- status?: components['schemas']['AlertStatus'] | null;
15291
- source?: components['schemas']['AlertSource'] | null;
15292
- limit?: number;
15293
- cursor?: string | null;
13417
+ query: {
13418
+ /** @description Inclusive start of the usage window. Naive timestamps use UTC. */
13419
+ start: string;
13420
+ /** @description Exclusive end of the usage window. Naive timestamps use UTC. */
13421
+ end: string;
15294
13422
  };
15295
13423
  header?: {
15296
13424
  'user-agent'?: string | null;
15297
13425
  };
15298
- path?: never;
13426
+ path: {
13427
+ id: string;
13428
+ };
15299
13429
  cookie?: never;
15300
13430
  };
15301
13431
  requestBody?: never;
@@ -15306,7 +13436,7 @@ interface operations {
15306
13436
  [name: string]: unknown;
15307
13437
  };
15308
13438
  content: {
15309
- 'application/json': components['schemas']['AlertsListResponse'];
13439
+ 'application/json': components['schemas']['AgentMetricsResponse'];
15310
13440
  };
15311
13441
  };
15312
13442
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -15327,18 +13457,27 @@ interface operations {
15327
13457
  'application/json': components['schemas']['ErrorResponse'];
15328
13458
  };
15329
13459
  };
15330
- /** @description Validation Error */
13460
+ /** @description No such agent in your account. */
13461
+ 404: {
13462
+ headers: {
13463
+ [name: string]: unknown;
13464
+ };
13465
+ content: {
13466
+ 'application/json': components['schemas']['ErrorResponse'];
13467
+ };
13468
+ };
13469
+ /** @description A time bound is malformed, or start is not earlier than end. */
15331
13470
  422: {
15332
13471
  headers: {
15333
13472
  [name: string]: unknown;
15334
13473
  };
15335
13474
  content: {
15336
- 'application/json': components['schemas']['HTTPValidationError'];
13475
+ 'application/json': components['schemas']['ErrorResponse'];
15337
13476
  };
15338
13477
  };
15339
13478
  };
15340
13479
  };
15341
- get_alert: {
13480
+ start_agent_session: {
15342
13481
  parameters: {
15343
13482
  query?: never;
15344
13483
  header?: {
@@ -15349,15 +13488,28 @@ interface operations {
15349
13488
  };
15350
13489
  cookie?: never;
15351
13490
  };
15352
- requestBody?: never;
13491
+ requestBody: {
13492
+ content: {
13493
+ 'application/json': components['schemas']['StartAgentSessionRequest'];
13494
+ };
13495
+ };
15353
13496
  responses: {
15354
13497
  /** @description Successful Response */
15355
- 200: {
13498
+ 201: {
15356
13499
  headers: {
15357
13500
  [name: string]: unknown;
15358
13501
  };
15359
13502
  content: {
15360
- 'application/json': components['schemas']['AlertResponse'];
13503
+ 'application/json': components['schemas']['SessionResponse'];
13504
+ };
13505
+ };
13506
+ /** @description The resolved agent combination is not supported (unsupported_session_combination), a run-once session has no prompt or input, or budget exceeds the organization's ceiling. */
13507
+ 400: {
13508
+ headers: {
13509
+ [name: string]: unknown;
13510
+ };
13511
+ content: {
13512
+ 'application/json': components['schemas']['ErrorResponse'];
15361
13513
  };
15362
13514
  };
15363
13515
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -15378,7 +13530,7 @@ interface operations {
15378
13530
  'application/json': components['schemas']['ErrorResponse'];
15379
13531
  };
15380
13532
  };
15381
- /** @description No such alert in your account. */
13533
+ /** @description No such agent in your account, or its environment no longer exists. */
15382
13534
  404: {
15383
13535
  headers: {
15384
13536
  [name: string]: unknown;
@@ -15387,18 +13539,18 @@ interface operations {
15387
13539
  'application/json': components['schemas']['ErrorResponse'];
15388
13540
  };
15389
13541
  };
15390
- /** @description Validation Error */
13542
+ /** @description A field is malformed, `budget` carries `day`, `week`, or `month`, both `claude_code` and `codex` are set, the merged settings are invalid, `input` is missing when the agent declares a schema or sent when it declares none, or the body carries a key this route does not accept. Input must match the schema and render a non-empty message. */
15391
13543
  422: {
15392
13544
  headers: {
15393
13545
  [name: string]: unknown;
15394
13546
  };
15395
13547
  content: {
15396
- 'application/json': components['schemas']['HTTPValidationError'];
13548
+ 'application/json': components['schemas']['ErrorResponse'];
15397
13549
  };
15398
13550
  };
15399
13551
  };
15400
13552
  };
15401
- dismiss_alert: {
13553
+ unlink_agent: {
15402
13554
  parameters: {
15403
13555
  query?: never;
15404
13556
  header?: {
@@ -15417,7 +13569,7 @@ interface operations {
15417
13569
  [name: string]: unknown;
15418
13570
  };
15419
13571
  content: {
15420
- 'application/json': components['schemas']['AlertResponse'];
13572
+ 'application/json': components['schemas']['AgentResponse'];
15421
13573
  };
15422
13574
  };
15423
13575
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -15438,7 +13590,7 @@ interface operations {
15438
13590
  'application/json': components['schemas']['ErrorResponse'];
15439
13591
  };
15440
13592
  };
15441
- /** @description No such alert in your account. */
13593
+ /** @description No such agent in your account. */
15442
13594
  404: {
15443
13595
  headers: {
15444
13596
  [name: string]: unknown;
@@ -15447,7 +13599,7 @@ interface operations {
15447
13599
  'application/json': components['schemas']['ErrorResponse'];
15448
13600
  };
15449
13601
  };
15450
- /** @description The alert is not open. */
13602
+ /** @description The agent is already managed through the API. */
15451
13603
  409: {
15452
13604
  headers: {
15453
13605
  [name: string]: unknown;
@@ -15456,30 +13608,24 @@ interface operations {
15456
13608
  'application/json': components['schemas']['ErrorResponse'];
15457
13609
  };
15458
13610
  };
15459
- /** @description Validation Error */
13611
+ /** @description The definition has a file reference that names no repository, so it cannot resolve without its source repository. */
15460
13612
  422: {
15461
13613
  headers: {
15462
13614
  [name: string]: unknown;
15463
13615
  };
15464
13616
  content: {
15465
- 'application/json': components['schemas']['HTTPValidationError'];
13617
+ 'application/json': components['schemas']['ErrorResponse'];
15466
13618
  };
15467
13619
  };
15468
13620
  };
15469
13621
  };
15470
- get_analytics_metrics: {
13622
+ list_alerts: {
15471
13623
  parameters: {
15472
13624
  query?: {
15473
- days?: number | null;
15474
- start?: string | null;
15475
- end?: string | null;
15476
- /** @description Filter to repositories by "owner/name". */
15477
- repo?: string[] | null;
15478
- /** @description Filter by PR-author login(s). */
15479
- author?: string[] | null;
15480
- account_type?: string;
15481
- /** @description Filter by parent-PR status (open|draft|merged|closed). */
15482
- status?: string[] | null;
13625
+ status?: components['schemas']['AlertStatus'] | null;
13626
+ source?: components['schemas']['AlertSource'] | null;
13627
+ limit?: number;
13628
+ cursor?: string | null;
15483
13629
  };
15484
13630
  header?: {
15485
13631
  'user-agent'?: string | null;
@@ -15495,16 +13641,7 @@ interface operations {
15495
13641
  [name: string]: unknown;
15496
13642
  };
15497
13643
  content: {
15498
- 'application/json': components['schemas']['GetAnalyticsMetricsResponse'];
15499
- };
15500
- };
15501
- /** @description The time window is invalid: days combined with start, a non-positive days, or end not after start. */
15502
- 400: {
15503
- headers: {
15504
- [name: string]: unknown;
15505
- };
15506
- content: {
15507
- 'application/json': components['schemas']['ErrorResponse'];
13644
+ 'application/json': components['schemas']['AlertsListResponse'];
15508
13645
  };
15509
13646
  };
15510
13647
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -15536,23 +13673,15 @@ interface operations {
15536
13673
  };
15537
13674
  };
15538
13675
  };
15539
- get_analytics_pull_requests: {
13676
+ get_alert: {
15540
13677
  parameters: {
15541
- query?: {
15542
- days?: number | null;
15543
- start?: string | null;
15544
- end?: string | null;
15545
- /** @description Filter to repositories by "owner/name". */
15546
- repo?: string[] | null;
15547
- /** @description Filter by PR-author login(s). */
15548
- author?: string[] | null;
15549
- account_type?: string;
15550
- status?: string[] | null;
15551
- };
13678
+ query?: never;
15552
13679
  header?: {
15553
13680
  'user-agent'?: string | null;
15554
13681
  };
15555
- path?: never;
13682
+ path: {
13683
+ id: string;
13684
+ };
15556
13685
  cookie?: never;
15557
13686
  };
15558
13687
  requestBody?: never;
@@ -15563,11 +13692,11 @@ interface operations {
15563
13692
  [name: string]: unknown;
15564
13693
  };
15565
13694
  content: {
15566
- 'application/json': components['schemas']['GetAnalyticsPullRequestsResponse'];
13695
+ 'application/json': components['schemas']['AlertResponse'];
15567
13696
  };
15568
13697
  };
15569
- /** @description The time window is invalid: days combined with start, a non-positive days, or end not after start. */
15570
- 400: {
13698
+ /** @description The bearer token is missing, invalid, or revoked. */
13699
+ 401: {
15571
13700
  headers: {
15572
13701
  [name: string]: unknown;
15573
13702
  };
@@ -15575,8 +13704,8 @@ interface operations {
15575
13704
  'application/json': components['schemas']['ErrorResponse'];
15576
13705
  };
15577
13706
  };
15578
- /** @description The bearer token is missing, invalid, or revoked. */
15579
- 401: {
13707
+ /** @description The credential may not perform this action, or the account is blocked. */
13708
+ 403: {
15580
13709
  headers: {
15581
13710
  [name: string]: unknown;
15582
13711
  };
@@ -15584,8 +13713,8 @@ interface operations {
15584
13713
  'application/json': components['schemas']['ErrorResponse'];
15585
13714
  };
15586
13715
  };
15587
- /** @description The credential may not perform this action, or the account is blocked. */
15588
- 403: {
13716
+ /** @description No such alert in your account. */
13717
+ 404: {
15589
13718
  headers: {
15590
13719
  [name: string]: unknown;
15591
13720
  };
@@ -15604,22 +13733,15 @@ interface operations {
15604
13733
  };
15605
13734
  };
15606
13735
  };
15607
- get_analytics_reviews: {
13736
+ dismiss_alert: {
15608
13737
  parameters: {
15609
- query?: {
15610
- days?: number | null;
15611
- start?: string | null;
15612
- end?: string | null;
15613
- repo?: string[] | null;
15614
- /** @description Filter by reviewer login(s). */
15615
- author?: string[] | null;
15616
- account_type?: string;
15617
- review_state?: string[] | null;
15618
- };
13738
+ query?: never;
15619
13739
  header?: {
15620
13740
  'user-agent'?: string | null;
15621
13741
  };
15622
- path?: never;
13742
+ path: {
13743
+ id: string;
13744
+ };
15623
13745
  cookie?: never;
15624
13746
  };
15625
13747
  requestBody?: never;
@@ -15630,11 +13752,20 @@ interface operations {
15630
13752
  [name: string]: unknown;
15631
13753
  };
15632
13754
  content: {
15633
- 'application/json': components['schemas']['GetAnalyticsReviewsResponse'];
13755
+ 'application/json': components['schemas']['AlertResponse'];
13756
+ };
13757
+ };
13758
+ /** @description The bearer token is missing, invalid, or revoked. */
13759
+ 401: {
13760
+ headers: {
13761
+ [name: string]: unknown;
13762
+ };
13763
+ content: {
13764
+ 'application/json': components['schemas']['ErrorResponse'];
15634
13765
  };
15635
13766
  };
15636
- /** @description The time window is invalid: days combined with start, a non-positive days, or end not after start. */
15637
- 400: {
13767
+ /** @description The credential may not perform this action, or the account is blocked. */
13768
+ 403: {
15638
13769
  headers: {
15639
13770
  [name: string]: unknown;
15640
13771
  };
@@ -15642,8 +13773,8 @@ interface operations {
15642
13773
  'application/json': components['schemas']['ErrorResponse'];
15643
13774
  };
15644
13775
  };
15645
- /** @description The bearer token is missing, invalid, or revoked. */
15646
- 401: {
13776
+ /** @description No such alert in your account. */
13777
+ 404: {
15647
13778
  headers: {
15648
13779
  [name: string]: unknown;
15649
13780
  };
@@ -15651,8 +13782,8 @@ interface operations {
15651
13782
  'application/json': components['schemas']['ErrorResponse'];
15652
13783
  };
15653
13784
  };
15654
- /** @description The credential may not perform this action, or the account is blocked. */
15655
- 403: {
13785
+ /** @description The alert is not open. */
13786
+ 409: {
15656
13787
  headers: {
15657
13788
  [name: string]: unknown;
15658
13789
  };
@@ -16149,11 +14280,11 @@ interface operations {
16149
14280
  };
16150
14281
  get_handler_metrics: {
16151
14282
  parameters: {
16152
- query?: {
14283
+ query: {
16153
14284
  /** @description Inclusive session creation-time bound. Naive timestamps use UTC. */
16154
- start?: string | null;
14285
+ start: string;
16155
14286
  /** @description Exclusive session creation-time bound. Naive timestamps use UTC. */
16156
- end?: string | null;
14287
+ end: string;
16157
14288
  };
16158
14289
  header?: {
16159
14290
  'user-agent'?: string | null;
@@ -16886,55 +15017,6 @@ interface operations {
16886
15017
  };
16887
15018
  };
16888
15019
  };
16889
- create_operations_channel: {
16890
- parameters: {
16891
- query?: never;
16892
- header?: {
16893
- 'user-agent'?: string | null;
16894
- };
16895
- path?: never;
16896
- cookie?: never;
16897
- };
16898
- requestBody?: never;
16899
- responses: {
16900
- /** @description Successful Response */
16901
- 200: {
16902
- headers: {
16903
- [name: string]: unknown;
16904
- };
16905
- content: {
16906
- 'application/json': components['schemas']['SlackChannel'];
16907
- };
16908
- };
16909
- /** @description The bearer token is missing, invalid, or revoked. */
16910
- 401: {
16911
- headers: {
16912
- [name: string]: unknown;
16913
- };
16914
- content: {
16915
- 'application/json': components['schemas']['ErrorResponse'];
16916
- };
16917
- };
16918
- /** @description The credential may not perform this action, or the account is blocked. */
16919
- 403: {
16920
- headers: {
16921
- [name: string]: unknown;
16922
- };
16923
- content: {
16924
- 'application/json': components['schemas']['ErrorResponse'];
16925
- };
16926
- };
16927
- /** @description Validation Error */
16928
- 422: {
16929
- headers: {
16930
- [name: string]: unknown;
16931
- };
16932
- content: {
16933
- 'application/json': components['schemas']['HTTPValidationError'];
16934
- };
16935
- };
16936
- };
16937
- };
16938
15020
  list_reviews: {
16939
15021
  parameters: {
16940
15022
  query?: {
@@ -17404,82 +15486,13 @@ interface operations {
17404
15486
  'application/json': components['schemas']['ErrorResponse'];
17405
15487
  };
17406
15488
  };
17407
- /** @description A field is malformed, or the body carries a key this route does not accept. */
17408
- 422: {
17409
- headers: {
17410
- [name: string]: unknown;
17411
- };
17412
- content: {
17413
- 'application/json': components['schemas']['ErrorResponse'];
17414
- };
17415
- };
17416
- };
17417
- };
17418
- search_sessions: {
17419
- parameters: {
17420
- query: {
17421
- q: string;
17422
- scope?: components['schemas']['SessionSearchScope'];
17423
- source?: components['schemas']['SessionSource'][] | null;
17424
- /** @description Service whose mention or event started the session. */
17425
- service?: components['schemas']['HandlerService'] | null;
17426
- /** @description Exact saved handler id recorded when the session started. */
17427
- handler?: string | null;
17428
- /** @description Attributed GitHub user account ids. */
17429
- author_id?: number[] | null;
17430
- /** @description Saved agent ids (ORed with author_id). */
17431
- agent_id?: string[] | null;
17432
- session_ids?: string[] | null;
17433
- /** @description "owner/name" (exact) or a bare repo name; ORed. */
17434
- repo?: string[] | null;
17435
- /** @description Keep only sessions in these statuses. */
17436
- status?: components['schemas']['SessionStatus'][] | null;
17437
- start?: string | null;
17438
- end?: string | null;
17439
- limit?: number;
17440
- };
17441
- header?: {
17442
- 'user-agent'?: string | null;
17443
- };
17444
- path?: never;
17445
- cookie?: never;
17446
- };
17447
- requestBody?: never;
17448
- responses: {
17449
- /** @description Successful Response */
17450
- 200: {
17451
- headers: {
17452
- [name: string]: unknown;
17453
- };
17454
- content: {
17455
- 'application/json': components['schemas']['SessionSearchResponse'];
17456
- };
17457
- };
17458
- /** @description The bearer token is missing, invalid, or revoked. */
17459
- 401: {
17460
- headers: {
17461
- [name: string]: unknown;
17462
- };
17463
- content: {
17464
- 'application/json': components['schemas']['ErrorResponse'];
17465
- };
17466
- };
17467
- /** @description The credential may not perform this action, or the account is blocked. */
17468
- 403: {
17469
- headers: {
17470
- [name: string]: unknown;
17471
- };
17472
- content: {
17473
- 'application/json': components['schemas']['ErrorResponse'];
17474
- };
17475
- };
17476
- /** @description Validation Error */
15489
+ /** @description A field is malformed, or the body carries a key this route does not accept. */
17477
15490
  422: {
17478
15491
  headers: {
17479
15492
  [name: string]: unknown;
17480
15493
  };
17481
15494
  content: {
17482
- 'application/json': components['schemas']['HTTPValidationError'];
15495
+ 'application/json': components['schemas']['ErrorResponse'];
17483
15496
  };
17484
15497
  };
17485
15498
  };
@@ -17646,6 +15659,15 @@ interface operations {
17646
15659
  'application/json': components['schemas']['ErrorResponse'];
17647
15660
  };
17648
15661
  };
15662
+ /** @description A newer session now answers the archived session's Slack thread, pull request, or issue. */
15663
+ 409: {
15664
+ headers: {
15665
+ [name: string]: unknown;
15666
+ };
15667
+ content: {
15668
+ 'application/json': components['schemas']['ErrorResponse'];
15669
+ };
15670
+ };
17649
15671
  /** @description Validation Error */
17650
15672
  422: {
17651
15673
  headers: {
@@ -17941,7 +15963,7 @@ interface operations {
17941
15963
  'application/json': components['schemas']['ErrorResponse'];
17942
15964
  };
17943
15965
  };
17944
- /** @description The session cannot be messaged: it is closed, non-interactive, or steered from its triggering surface (mention). */
15966
+ /** @description The session cannot be messaged: it is closed, archived, non-interactive, or steered from its triggering surface (mention). */
17945
15967
  409: {
17946
15968
  headers: {
17947
15969
  [name: string]: unknown;
@@ -18197,234 +16219,6 @@ interface operations {
18197
16219
  };
18198
16220
  };
18199
16221
  };
18200
- ingest_session_transcript: {
18201
- parameters: {
18202
- query?: never;
18203
- header?: {
18204
- 'user-agent'?: string | null;
18205
- };
18206
- path: {
18207
- id: string;
18208
- };
18209
- cookie?: never;
18210
- };
18211
- requestBody: {
18212
- content: {
18213
- 'application/json': components['schemas']['IngestTranscriptRequest'];
18214
- };
18215
- };
18216
- responses: {
18217
- /** @description Successful Response */
18218
- 200: {
18219
- headers: {
18220
- [name: string]: unknown;
18221
- };
18222
- content: {
18223
- 'application/json': components['schemas']['TranscriptIngestResult'];
18224
- };
18225
- };
18226
- /** @description The bearer token is missing, invalid, or revoked. */
18227
- 401: {
18228
- headers: {
18229
- [name: string]: unknown;
18230
- };
18231
- content: {
18232
- 'application/json': components['schemas']['ErrorResponse'];
18233
- };
18234
- };
18235
- /** @description The credential may not perform this action, or the account is blocked. */
18236
- 403: {
18237
- headers: {
18238
- [name: string]: unknown;
18239
- };
18240
- content: {
18241
- 'application/json': components['schemas']['ErrorResponse'];
18242
- };
18243
- };
18244
- /** @description No such session in your account. */
18245
- 404: {
18246
- headers: {
18247
- [name: string]: unknown;
18248
- };
18249
- content: {
18250
- 'application/json': components['schemas']['ErrorResponse'];
18251
- };
18252
- };
18253
- /** @description No turn has started yet. */
18254
- 409: {
18255
- headers: {
18256
- [name: string]: unknown;
18257
- };
18258
- content: {
18259
- 'application/json': components['schemas']['ErrorResponse'];
18260
- };
18261
- };
18262
- /** @description Validation Error */
18263
- 422: {
18264
- headers: {
18265
- [name: string]: unknown;
18266
- };
18267
- content: {
18268
- 'application/json': components['schemas']['HTTPValidationError'];
18269
- };
18270
- };
18271
- };
18272
- };
18273
- get_slack_help: {
18274
- parameters: {
18275
- query?: never;
18276
- header?: {
18277
- 'user-agent'?: string | null;
18278
- };
18279
- path?: never;
18280
- cookie?: never;
18281
- };
18282
- requestBody?: never;
18283
- responses: {
18284
- /** @description Successful Response */
18285
- 200: {
18286
- headers: {
18287
- [name: string]: unknown;
18288
- };
18289
- content: {
18290
- 'application/json': components['schemas']['SlackHelpResponse'] | null;
18291
- };
18292
- };
18293
- /** @description The bearer token is missing, invalid, or revoked. */
18294
- 401: {
18295
- headers: {
18296
- [name: string]: unknown;
18297
- };
18298
- content: {
18299
- 'application/json': components['schemas']['ErrorResponse'];
18300
- };
18301
- };
18302
- /** @description The credential may not perform this action, or the account is blocked. */
18303
- 403: {
18304
- headers: {
18305
- [name: string]: unknown;
18306
- };
18307
- content: {
18308
- 'application/json': components['schemas']['ErrorResponse'];
18309
- };
18310
- };
18311
- /** @description Validation Error */
18312
- 422: {
18313
- headers: {
18314
- [name: string]: unknown;
18315
- };
18316
- content: {
18317
- 'application/json': components['schemas']['HTTPValidationError'];
18318
- };
18319
- };
18320
- };
18321
- };
18322
- request_slack_help: {
18323
- parameters: {
18324
- query?: never;
18325
- header?: {
18326
- 'user-agent'?: string | null;
18327
- };
18328
- path?: never;
18329
- cookie?: never;
18330
- };
18331
- requestBody: {
18332
- content: {
18333
- 'application/json': components['schemas']['SlackHelpRequest'];
18334
- };
18335
- };
18336
- responses: {
18337
- /** @description Successful Response */
18338
- 201: {
18339
- headers: {
18340
- [name: string]: unknown;
18341
- };
18342
- content: {
18343
- 'application/json': components['schemas']['SlackHelpResponse'];
18344
- };
18345
- };
18346
- /** @description The bearer token is missing, invalid, or revoked. */
18347
- 401: {
18348
- headers: {
18349
- [name: string]: unknown;
18350
- };
18351
- content: {
18352
- 'application/json': components['schemas']['ErrorResponse'];
18353
- };
18354
- };
18355
- /** @description The credential may not perform this action, or the account is blocked. */
18356
- 403: {
18357
- headers: {
18358
- [name: string]: unknown;
18359
- };
18360
- content: {
18361
- 'application/json': components['schemas']['ErrorResponse'];
18362
- };
18363
- };
18364
- /** @description Validation Error */
18365
- 422: {
18366
- headers: {
18367
- [name: string]: unknown;
18368
- };
18369
- content: {
18370
- 'application/json': components['schemas']['HTTPValidationError'];
18371
- };
18372
- };
18373
- };
18374
- };
18375
- invite_to_slack_help: {
18376
- parameters: {
18377
- query?: never;
18378
- header?: {
18379
- 'user-agent'?: string | null;
18380
- };
18381
- path?: never;
18382
- cookie?: never;
18383
- };
18384
- requestBody: {
18385
- content: {
18386
- 'application/json': components['schemas']['SlackHelpRequest'];
18387
- };
18388
- };
18389
- responses: {
18390
- /** @description Successful Response */
18391
- 200: {
18392
- headers: {
18393
- [name: string]: unknown;
18394
- };
18395
- content: {
18396
- 'application/json': components['schemas']['SlackHelpResponse'];
18397
- };
18398
- };
18399
- /** @description The bearer token is missing, invalid, or revoked. */
18400
- 401: {
18401
- headers: {
18402
- [name: string]: unknown;
18403
- };
18404
- content: {
18405
- 'application/json': components['schemas']['ErrorResponse'];
18406
- };
18407
- };
18408
- /** @description The credential may not perform this action, or the account is blocked. */
18409
- 403: {
18410
- headers: {
18411
- [name: string]: unknown;
18412
- };
18413
- content: {
18414
- 'application/json': components['schemas']['ErrorResponse'];
18415
- };
18416
- };
18417
- /** @description Validation Error */
18418
- 422: {
18419
- headers: {
18420
- [name: string]: unknown;
18421
- };
18422
- content: {
18423
- 'application/json': components['schemas']['HTTPValidationError'];
18424
- };
18425
- };
18426
- };
18427
- };
18428
16222
  list_user_tokens: {
18429
16223
  parameters: {
18430
16224
  query?: never;
@@ -19468,7 +17262,7 @@ type Session = {
19468
17262
  */
19469
17263
  agent: SessionAgent | null;
19470
17264
  /**
19471
- * When and by whom the session was archived; null when unarchived. Archiving does not stop or close a session.
17265
+ * When and by whom the session was archived, or null when it isn't. A session is archived when it closes, after the account's archive_inactive_sessions_days without a message, or by PUT /v1/sessions/{id}. An archived session takes no messages, and a reply on the Slack thread, pull request, issue, or Linear issue it answers starts a new session.
19472
17266
  */
19473
17267
  archived: SessionArchived | null;
19474
17268
  attribution: SessionAttribution;
@@ -19484,6 +17278,10 @@ type Session = {
19484
17278
  * Codex input and native options. Set exactly one of claude_code, codex, or gemini.
19485
17279
  */
19486
17280
  codex: CodexConfig | null;
17281
+ /**
17282
+ * When session log retention deleted the session's records, messages, and prompt, or null. The session's status, cost, tokens, and summary stay.
17283
+ */
17284
+ content_deleted_at: string | null;
19487
17285
  conversation: SessionConversation;
19488
17286
  cost: Cost;
19489
17287
  /**
@@ -19530,6 +17328,10 @@ type Session = {
19530
17328
  */
19531
17329
  parent: SessionParent | null;
19532
17330
  permissions: PermissionsConfig1;
17331
+ /**
17332
+ * The code review this session ran for; null unless the source is `code_review`.
17333
+ */
17334
+ review: SessionReview | null;
19533
17335
  /**
19534
17336
  * Skills installed for this session.
19535
17337
  */
@@ -19545,6 +17347,10 @@ type Session = {
19545
17347
  * When the session was last updated.
19546
17348
  */
19547
17349
  updated_at: string;
17350
+ /**
17351
+ * Milliseconds from when the session was created to when it started, including any time it waited because your account already had its limit of sessions alive. Null until the session starts, and for sessions created before this field was added.
17352
+ */
17353
+ wait_ms: number | null;
19548
17354
  } & ({
19549
17355
  claude_code: {
19550
17356
  [k: string]: unknown;
@@ -19646,7 +17452,11 @@ type RepositoryFilter = {
19646
17452
  */
19647
17453
  type CheckSuiteAction = 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale' | 'startup_failure';
19648
17454
  type IssueAction = 'opened' | 'closed' | 'commented';
19649
- type LinearIssueAction = 'opened';
17455
+ type LinearValueFilter = {
17456
+ exclude: string[];
17457
+ include: string[];
17458
+ } | string[] | string;
17459
+ type LinearIssueAction = 'opened' | 'updated';
19650
17460
  type PullRequestAction = 'opened' | 'pushed' | 'merged' | 'closed' | 'review_submitted' | 'commented';
19651
17461
  /**
19652
17462
  * What happened to a GitHub release. `published` is the one moment a
@@ -19668,7 +17478,7 @@ type AttributionType = 'github_user' | 'linear_user' | 'slack_user' | 'api_key';
19668
17478
  /**
19669
17479
  * Why direct prompting is refused. Absent when prompting is allowed.
19670
17480
  */
19671
- type PromptBlockedReason = 'mention_surface' | 'non_interactive' | 'harness_single_turn' | 'budget_exhausted' | 'closed';
17481
+ type PromptBlockedReason = 'mention_surface' | 'non_interactive' | 'harness_single_turn' | 'budget_exhausted' | 'closed' | 'archived';
19672
17482
  /**
19673
17483
  * How a session's environment was chosen. None (the field is nullable)
19674
17484
  * when the config carried an inline environment block and no resolution ran —
@@ -19694,6 +17504,10 @@ type SessionSource = 'react' | 'code_review' | 'web' | 'api' | 'cli' | 'mention'
19694
17504
  * Where the session is. A message you sent is answered once the status is `idle` or `closed`; its `message_ended` record in GET /v1/sessions/{id}/records says how.
19695
17505
  */
19696
17506
  type SessionStatus = 'queued' | 'preparing' | 'running' | 'idle' | 'closed';
17507
+ /**
17508
+ * Where this summary came from. `prompt` is the first line of the prompt the session started with, `generated` is written by Ellipsis as the session runs, and `user` was set by a person and is never replaced by a generated one.
17509
+ */
17510
+ type SessionSummarySource = 'prompt' | 'generated' | 'user';
19697
17511
  type SessionRecord$1 = ClaudeSessionRecord | ClaudeNativeSessionRecord | CodexSessionRecord | CodexAppServerSessionRecord | GeminiSessionRecord | PlatformSessionRecord | UnknownSessionRecord;
19698
17512
  type CodexAppServerNotification = CodexThreadStarted | CodexTurnStarted | CodexTurnCompleted | CodexItemStarted | CodexItemCompleted | CodexTokenUsageUpdated | CodexAppServerError;
19699
17513
  type CodexAppServerItem = CodexUserMessage | CodexAgentMessage | CodexReasoning | CodexPlan | CodexCommandExecution | CodexFileChange | CodexWebSearch | CodexMcpToolCall | CodexContextCompaction | CodexSubAgentActivity | CodexCollabAgentToolCall;
@@ -20223,9 +18037,53 @@ interface ReactIssue {
20223
18037
  on: IssueAction[];
20224
18038
  repositories: RepositoryFilter;
20225
18039
  }
18040
+ /**
18041
+ * A Linear issue being created (`opened`) or changed (`updated`). An
18042
+ * `updated` event fires only when every field under `changed` changed in
18043
+ * one edit. `team`, `state`, `labels`, `project`, `assignee`, and
18044
+ * `priority` filter on the issue as it is after the event. `state` matches
18045
+ * a status name or a status type. `for` is the person who created or
18046
+ * changed the issue.
18047
+ */
20226
18048
  interface ReactLinearIssue {
18049
+ assignee: LinearValueFilter | null;
18050
+ changed: LinearIssueChanged | null;
20227
18051
  for: GithubAccountSelector;
18052
+ labels: LinearValueFilter | null;
20228
18053
  on: LinearIssueAction[];
18054
+ priority: LinearValueFilter | null;
18055
+ project: LinearValueFilter | null;
18056
+ state: LinearValueFilter | null;
18057
+ team: LinearValueFilter | null;
18058
+ }
18059
+ /**
18060
+ * The fields an `updated` event watches. Every listed field must change in
18061
+ * the same edit.
18062
+ */
18063
+ interface LinearIssueChanged {
18064
+ assignee: LinearValueChange | null;
18065
+ labels: LinearLabelsChange | null;
18066
+ priority: LinearValueChange | null;
18067
+ project: LinearValueChange | null;
18068
+ state: LinearValueChange | null;
18069
+ }
18070
+ /**
18071
+ * A change to one issue field. `from` matches the value before the change
18072
+ * and `to` the value after it. Leaving either out matches any value, so `{}`
18073
+ * is any change to the field.
18074
+ */
18075
+ interface LinearValueChange {
18076
+ from: LinearValueFilter | null;
18077
+ to: LinearValueFilter | null;
18078
+ }
18079
+ /**
18080
+ * A change to the issue's labels. `added` matches when a listed label was
18081
+ * added and `removed` when a listed label was removed. `{}` is any label
18082
+ * change.
18083
+ */
18084
+ interface LinearLabelsChange {
18085
+ added: LinearValueFilter | null;
18086
+ removed: LinearValueFilter | null;
20229
18087
  }
20230
18088
  interface ReactPullRequest {
20231
18089
  base: string[];
@@ -20296,6 +18154,10 @@ interface SessionArchived {
20296
18154
  * The GitHub user who archived the session; null if unknown or unavailable.
20297
18155
  */
20298
18156
  by: GithubAccountSnippet | null;
18157
+ /**
18158
+ * When the session's records and messages are deleted, from the account's current session log retention. It moves when the retention changes. Null when the account keeps them or they're already deleted.
18159
+ */
18160
+ deletes_at: string | null;
20299
18161
  }
20300
18162
  /**
20301
18163
  * Sometimes the GitHub API returns a user of github (can include bots)
@@ -20765,6 +18627,15 @@ interface PermissionsConfig1 {
20765
18627
  ellipsis: (true | 'all') | EllipsisPermissions;
20766
18628
  github: GithubPermissions;
20767
18629
  }
18630
+ /**
18631
+ * The code review a reviewer session ran for.
18632
+ */
18633
+ interface SessionReview {
18634
+ /**
18635
+ * Identifier of the code review.
18636
+ */
18637
+ id: string;
18638
+ }
20768
18639
  /**
20769
18640
  * A live one-line summary of what the session is doing, refreshed
20770
18641
  * every few steps while it runs.
@@ -20778,6 +18649,7 @@ interface SessionSummary {
20778
18649
  * One-line description of what the session is doing.
20779
18650
  */
20780
18651
  description: string;
18652
+ source: SessionSummarySource;
20781
18653
  }
20782
18654
  /**
20783
18655
  * Tokens used, in total and by model.
@@ -22275,11 +20147,10 @@ type SessionsListResponse = components['schemas']['SessionsListResponse'];
22275
20147
  type Review = components['schemas']['Review'];
22276
20148
  type ReviewSummary = components['schemas']['ReviewSummary'];
22277
20149
  type ReviewReviewer = components['schemas']['ReviewReviewer'];
22278
- type ReviewPullRequest = components['schemas']['ReviewPullRequest'];
22279
- type ReviewPullRequestAuthor = components['schemas']['ReviewPullRequestAuthor'];
20150
+ type PullRequest = components['schemas']['PullRequest'];
22280
20151
  type ReviewComment = components['schemas']['ReviewComment'];
22281
20152
  type ReviewsListResponse = components['schemas']['ReviewsListResponse'];
22282
20153
  type ReviewConfig = components['schemas']['ReviewConfig'];
22283
20154
  type ReviewConfigsListResponse = components['schemas']['ReviewConfigsListResponse'];
22284
20155
 
22285
- export type { CodexMcpToolCallResult as $, AgentConfig as A, BudgetConfig as B, CheckRunAction as C, CodexCommandExecution as D, CodexCommandExecutionItem as E, CodexConfig as F, CodexContextCompaction as G, CodexEffortLevel as H, CodexErrorEvent as I, CodexErrorItem as J, CodexErrorParams as K, CodexEvent as L, CodexFileChange as M, CodexFileChangeItem as N, CodexFileUpdate as O, CodexItem as P, CodexItemCompleted as Q, CodexItemCompletedEvent as R, CodexItemParams as S, CodexItemStarted as T, CodexItemStartedEvent as U, CodexItemUpdatedEvent as V, CodexLocalImageInput as W, CodexMcpToolCall as X, CodexMcpToolCallAppContext as Y, CodexMcpToolCallError as Z, CodexMcpToolCallItem as _, AgentIdentity as a, GeminiToolError as a$, CodexPlan as a0, CodexReasoning as a1, CodexReasoningItem as a2, CodexSessionRecord as a3, CodexSubAgentActivity as a4, CodexTextInput as a5, CodexThread as a6, CodexThreadStarted as a7, CodexThreadStartedEvent as a8, CodexThreadStartedParams as a9, EffortLevel as aA, EllipsisGrant as aB, EllipsisPermissions as aC, EnvironmentBaseBuild as aD, EnvironmentConfig as aE, EnvironmentHooks as aF, EnvironmentHooks1 as aG, EnvironmentOutputPayload as aH, EnvironmentOutputRecord as aI, EnvironmentPhasePayload as aJ, EnvironmentPhaseRecord as aK, EnvironmentReadyPayload as aL, EnvironmentReadyRecord as aM, EnvironmentScript as aN, EnvironmentSource as aO, EnvironmentVariable as aP, ErrorFrame as aQ, ErrorReason as aR, GeminiConfig as aS, GeminiErrorEvent as aT, GeminiInitEvent as aU, GeminiMessageEvent as aV, GeminiModelStats as aW, GeminiResultEvent as aX, GeminiSessionRecord as aY, GeminiStreamEvent as aZ, GeminiStreamStats as a_, CodexThreadTokenUsage as aa, CodexTodoListItem as ab, CodexTokenUsageBreakdown as ac, CodexTokenUsageParams as ad, CodexTokenUsageUpdated as ae, CodexTurn as af, CodexTurnCompleted as ag, CodexTurnCompletedEvent as ah, CodexTurnError as ai, CodexTurnFailedEvent as aj, CodexTurnParams as ak, CodexTurnStarted as al, CodexTurnStartedEvent as am, CodexUsage as an, CodexUserInput as ao, CodexUserMessage as ap, CodexWebSearch as aq, CodexWebSearchItem as ar, ComputeConfig as as, ComputeConfig1 as at, ConfigMetadata as au, Cost as av, Cost1 as aw, CronTrigger as ax, DeltaFrame as ay, Duration as az, AttributionType as b, RepositoryFilter as b$, GeminiToolResultEvent as b0, GeminiToolUseEvent as b1, GithubAccountFilter as b2, GithubAccountSelector as b3, GithubAccountSnippet as b4, GithubAccountType as b5, GithubCheckRunEvent as b6, GithubCheckSuiteEvent as b7, GithubIssueEvent as b8, GithubPermissions as b9, MessageRecord as bA, MessageRequeuedPayload as bB, MessageRequeuedRecord as bC, MessageStartedPayload as bD, MessageStartedRecord as bE, ModelLlmCostSplit as bF, ModelTokenCounts as bG, OutputConfig as bH, PermissionsConfig as bI, PermissionsConfig1 as bJ, PlatformSessionRecord as bK, PromptBlockedReason as bL, PullRequestAction as bM, ReactCheckRun as bN, ReactCheckSuite as bO, ReactIssue as bP, ReactLinearIssue as bQ, ReactPullRequest as bR, ReactPush as bS, ReactRelease as bT, ReactSentry as bU, ReactSlackChannel as bV, ReactStatus as bW, ReactTrigger as bX, ReactWorkflowRun as bY, RecordsFrame as bZ, ReleaseAction as b_, GithubPullRequestEvent as ba, GithubPushEvent as bb, GithubReleaseEvent as bc, GithubStatusEvent as bd, GithubWorkflowRunEvent as be, HandlerService as bf, HeartbeatFrame as bg, InputContract as bh, IssueAction as bi, LegacyAssistantPayload as bj, LegacyNativeUsage as bk, LegacyResultPayload as bl, Level as bm, LifecycleSessionRecord as bn, LinearIssueAction as bo, LinearIssueEvent as bp, LlmCost as bq, LlmCostSplit as br, McpRemoteServer as bs, McpServerRef as bt, McpStdioServer as bu, MemorySize as bv, MessageEndedPayload as bw, MessageEndedRecord as bx, MessageQueuedPayload as by, MessageQueuedRecord as bz, components as c, SlackMessageEvent as c$, RepositoryRef as c0, Review as c1, ReviewComment as c2, ReviewConfig as c3, ReviewConfigsListResponse as c4, ReviewPullRequest as c5, ReviewPullRequestAuthor as c6, ReviewReviewer as c7, ReviewSummary as c8, ReviewsListResponse as c9, SessionEnvironment as cA, SessionError as cB, SessionEventActor as cC, SessionFrame as cD, SessionGit as cE, SessionGitCommit as cF, SessionGitFile as cG, SessionGitPr as cH, SessionGitRepo as cI, SessionHandler as cJ, SessionMessage as cK, SessionMessageImage as cL, SessionMessageResponse as cM, SessionOutput as cN, SessionParent as cO, SessionPrompting as cP, SessionRecord as cQ, SessionRecordsListResponse as cR, SessionResponse as cS, SessionSource as cT, SessionStatus as cU, SessionStreamFrame as cV, SessionSummary as cW, SessionsListResponse as cX, SettingsRef as cY, SkillRef as cZ, SlackChannelCreatedEvent as c_, SdkAssistantRecord as ca, SdkCacheCreation as cb, SdkContentBlock as cc, SdkRateLimitRecord as cd, SdkRecord as ce, SdkResultRecord as cf, SdkServerToolResultBlock as cg, SdkServerToolUseBlock as ch, SdkSystemRecord as ci, SdkTextBlock as cj, SdkThinkingBlock as ck, SdkToolResultBlock as cl, SdkToolUseBlock as cm, SdkUserRecord as cn, SendSessionMessageRequest as co, SentryAction as cp, SentryAlertEvent as cq, Session as cr, SessionAgent as cs, SessionArchived as ct, SessionAttribution as cu, SessionClosedPayload as cv, SessionClosedRecord as cw, SessionConfig as cx, SessionConversation as cy, SessionConversationConfig as cz, CheckSuiteAction as d, StatusAction as d0, StreamFrame as d1, TokenCounts as d2, Tokens as d3, Tokens1 as d4, TokensInfo as d5, UnknownSessionRecord as d6, UpdateSessionRequest as d7, WorkflowRunAction as d8, paths as d9, 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, CodexCollabAgentToolCall as z };
20156
+ export type { CodexMcpToolCallResult as $, AgentConfig as A, BudgetConfig as B, CheckRunAction as C, CodexCommandExecution as D, CodexCommandExecutionItem as E, CodexConfig as F, CodexContextCompaction as G, CodexEffortLevel as H, CodexErrorEvent as I, CodexErrorItem as J, CodexErrorParams as K, CodexEvent as L, CodexFileChange as M, CodexFileChangeItem as N, CodexFileUpdate as O, CodexItem as P, CodexItemCompleted as Q, CodexItemCompletedEvent as R, CodexItemParams as S, CodexItemStarted as T, CodexItemStartedEvent as U, CodexItemUpdatedEvent as V, CodexLocalImageInput as W, CodexMcpToolCall as X, CodexMcpToolCallAppContext as Y, CodexMcpToolCallError as Z, CodexMcpToolCallItem as _, AgentIdentity as a, GeminiToolError as a$, CodexPlan as a0, CodexReasoning as a1, CodexReasoningItem as a2, CodexSessionRecord as a3, CodexSubAgentActivity as a4, CodexTextInput as a5, CodexThread as a6, CodexThreadStarted as a7, CodexThreadStartedEvent as a8, CodexThreadStartedParams as a9, EffortLevel as aA, EllipsisGrant as aB, EllipsisPermissions as aC, EnvironmentBaseBuild as aD, EnvironmentConfig as aE, EnvironmentHooks as aF, EnvironmentHooks1 as aG, EnvironmentOutputPayload as aH, EnvironmentOutputRecord as aI, EnvironmentPhasePayload as aJ, EnvironmentPhaseRecord as aK, EnvironmentReadyPayload as aL, EnvironmentReadyRecord as aM, EnvironmentScript as aN, EnvironmentSource as aO, EnvironmentVariable as aP, ErrorFrame as aQ, ErrorReason as aR, GeminiConfig as aS, GeminiErrorEvent as aT, GeminiInitEvent as aU, GeminiMessageEvent as aV, GeminiModelStats as aW, GeminiResultEvent as aX, GeminiSessionRecord as aY, GeminiStreamEvent as aZ, GeminiStreamStats as a_, CodexThreadTokenUsage as aa, CodexTodoListItem as ab, CodexTokenUsageBreakdown as ac, CodexTokenUsageParams as ad, CodexTokenUsageUpdated as ae, CodexTurn as af, CodexTurnCompleted as ag, CodexTurnCompletedEvent as ah, CodexTurnError as ai, CodexTurnFailedEvent as aj, CodexTurnParams as ak, CodexTurnStarted as al, CodexTurnStartedEvent as am, CodexUsage as an, CodexUserInput as ao, CodexUserMessage as ap, CodexWebSearch as aq, CodexWebSearchItem as ar, ComputeConfig as as, ComputeConfig1 as at, ConfigMetadata as au, Cost as av, Cost1 as aw, CronTrigger as ax, DeltaFrame as ay, Duration as az, AttributionType as b, ReactStatus as b$, GeminiToolResultEvent as b0, GeminiToolUseEvent as b1, GithubAccountFilter as b2, GithubAccountSelector as b3, GithubAccountSnippet as b4, GithubAccountType as b5, GithubCheckRunEvent as b6, GithubCheckSuiteEvent as b7, GithubIssueEvent as b8, GithubPermissions as b9, MessageEndedPayload as bA, MessageEndedRecord as bB, MessageQueuedPayload as bC, MessageQueuedRecord as bD, MessageRecord as bE, MessageRequeuedPayload as bF, MessageRequeuedRecord as bG, MessageStartedPayload as bH, MessageStartedRecord as bI, ModelLlmCostSplit as bJ, ModelTokenCounts as bK, OutputConfig as bL, PermissionsConfig as bM, PermissionsConfig1 as bN, PlatformSessionRecord as bO, PromptBlockedReason as bP, PullRequest as bQ, PullRequestAction as bR, ReactCheckRun as bS, ReactCheckSuite as bT, ReactIssue as bU, ReactLinearIssue as bV, ReactPullRequest as bW, ReactPush as bX, ReactRelease as bY, ReactSentry as bZ, ReactSlackChannel as b_, GithubPullRequestEvent as ba, GithubPushEvent as bb, GithubReleaseEvent as bc, GithubStatusEvent as bd, GithubWorkflowRunEvent as be, HandlerService as bf, HeartbeatFrame as bg, InputContract as bh, IssueAction as bi, LegacyAssistantPayload as bj, LegacyNativeUsage as bk, LegacyResultPayload as bl, Level as bm, LifecycleSessionRecord as bn, LinearIssueAction as bo, LinearIssueChanged as bp, LinearIssueEvent as bq, LinearLabelsChange as br, LinearValueChange as bs, LinearValueFilter as bt, LlmCost as bu, LlmCostSplit as bv, McpRemoteServer as bw, McpServerRef as bx, McpStdioServer as by, MemorySize as bz, components as c, SessionSummarySource as c$, ReactTrigger as c0, ReactWorkflowRun as c1, RecordsFrame as c2, ReleaseAction as c3, RepositoryFilter as c4, RepositoryRef as c5, Review as c6, ReviewComment as c7, ReviewConfig as c8, ReviewConfigsListResponse as c9, SessionConfig as cA, SessionConversation as cB, SessionConversationConfig as cC, SessionEnvironment as cD, SessionError as cE, SessionEventActor as cF, SessionFrame as cG, SessionGit as cH, SessionGitCommit as cI, SessionGitFile as cJ, SessionGitPr as cK, SessionGitRepo as cL, SessionHandler as cM, SessionMessage as cN, SessionMessageImage as cO, SessionMessageResponse as cP, SessionOutput as cQ, SessionParent as cR, SessionPrompting as cS, SessionRecord as cT, SessionRecordsListResponse as cU, SessionResponse as cV, SessionReview as cW, SessionSource as cX, SessionStatus as cY, SessionStreamFrame as cZ, SessionSummary as c_, ReviewReviewer as ca, ReviewSummary as cb, ReviewsListResponse as cc, SdkAssistantRecord as cd, SdkCacheCreation as ce, SdkContentBlock as cf, SdkRateLimitRecord as cg, SdkRecord as ch, SdkResultRecord as ci, SdkServerToolResultBlock as cj, SdkServerToolUseBlock as ck, SdkSystemRecord as cl, SdkTextBlock as cm, SdkThinkingBlock as cn, SdkToolResultBlock as co, SdkToolUseBlock as cp, SdkUserRecord as cq, SendSessionMessageRequest as cr, SentryAction as cs, SentryAlertEvent as ct, Session as cu, SessionAgent as cv, SessionArchived as cw, SessionAttribution as cx, SessionClosedPayload as cy, SessionClosedRecord as cz, CheckSuiteAction as d, SessionsListResponse as d0, SettingsRef as d1, SkillRef as d2, SlackChannelCreatedEvent as d3, SlackMessageEvent as d4, StatusAction as d5, StreamFrame as d6, TokenCounts as d7, Tokens as d8, Tokens1 as d9, TokensInfo as da, UnknownSessionRecord as db, UpdateSessionRequest as dc, WorkflowRunAction as dd, paths as de, 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, CodexCollabAgentToolCall as z };