@ellipsis-dev/sdk 0.8.0 → 0.8.1

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.
@@ -145,7 +145,7 @@ interface paths {
145
145
  };
146
146
  /**
147
147
  * List Alerts
148
- * @description List budget alerts for the organization.
148
+ * @description List budget alerts for the organization, newest first.
149
149
  *
150
150
  * Optionally filtered by status and source.
151
151
  *
@@ -359,7 +359,7 @@ interface paths {
359
359
  * @description List uploaded files, newest first.
360
360
  *
361
361
  * Metadata only — download URLs are minted per explicit GET, not
362
- * per row. agent_session_id scopes the list to one run's uploads.
362
+ * per row. session_id scopes the list to one run's uploads.
363
363
  */
364
364
  get: operations['list_files'];
365
365
  put?: never;
@@ -772,23 +772,23 @@ interface paths {
772
772
  cookie?: never;
773
773
  };
774
774
  /**
775
- * List Sandbox Variables
776
- * @description List sandbox variables.
775
+ * List Secrets
776
+ * @description List secrets.
777
777
  *
778
778
  * Values are write-only: the response carries only names and
779
779
  * timestamps, never the stored value.
780
780
  */
781
- get: operations['list_sandbox_variables'];
781
+ get: operations['list_secrets'];
782
782
  /**
783
- * Put Sandbox Variables
784
- * @description Upsert sandbox variables.
783
+ * Put Secrets
784
+ * @description Upsert secrets.
785
785
  *
786
- * Values are write-only: the response carries only names and
787
- * timestamps. Refused for sandbox tokens (held by
786
+ * Returns only the secrets this call wrote, names and timestamps
787
+ * only — values are write-only. Refused for sandbox tokens (held by
788
788
  * potentially-untrusted in-sandbox code); mutations require an
789
789
  * API key or user token.
790
790
  */
791
- put: operations['put_sandbox_variables'];
791
+ put: operations['put_secrets'];
792
792
  post?: never;
793
793
  delete?: never;
794
794
  options?: never;
@@ -807,13 +807,13 @@ interface paths {
807
807
  put?: never;
808
808
  post?: never;
809
809
  /**
810
- * Delete Sandbox Variable
811
- * @description Delete a sandbox variable by name.
810
+ * Delete Secret
811
+ * @description Delete a secret by name.
812
812
  *
813
813
  * Refused for sandbox tokens; mutations require an API key or
814
814
  * user token.
815
815
  */
816
- delete: operations['delete_sandbox_variable'];
816
+ delete: operations['delete_secret'];
817
817
  options?: never;
818
818
  head?: never;
819
819
  patch?: never;
@@ -828,7 +828,7 @@ interface paths {
828
828
  };
829
829
  /**
830
830
  * List Agent Sessions
831
- * @description List cloud agent sessions.
831
+ * @description List cloud agent sessions, newest first.
832
832
  *
833
833
  * Optionally filtered by config, source, time window, attributed
834
834
  * author, repository, and whether the session is still going.
@@ -1074,15 +1074,14 @@ interface paths {
1074
1074
  };
1075
1075
  /**
1076
1076
  * Get Agent Session Records
1077
- * @description Return the session's stored transcript records.
1077
+ * @description Return the session's stored transcript records, oldest first.
1078
1078
  *
1079
- * Pagination is opt-in (after_seq/limit the same feed_seq
1080
- * cursor as the stream); a bare call returns the full retained
1081
- * transcript. Available to sandbox tokens too: an agent answering
1082
- * "did X look into Y?" needs to read the session it found via
1083
- * /sessions/search, and any org member sees the same transcript
1084
- * in the dashboard (laptop transcripts are redacted client-side
1085
- * before they are ever uploaded).
1079
+ * Pagination is opt-in (cursor/limit); a bare call returns the
1080
+ * full retained transcript. Available to sandbox tokens too: an
1081
+ * agent answering "did X look into Y?" needs to read the session
1082
+ * it found via /sessions/search, and any org member sees the same
1083
+ * transcript in the dashboard (laptop transcripts are redacted
1084
+ * client-side before they are ever uploaded).
1086
1085
  */
1087
1086
  get: operations['get_agent_session_records'];
1088
1087
  put?: never;
@@ -1166,32 +1165,6 @@ interface paths {
1166
1165
  patch?: never;
1167
1166
  trace?: never;
1168
1167
  };
1169
- '/sessions/{session_id}/turns': {
1170
- parameters: {
1171
- query?: never;
1172
- header?: never;
1173
- path?: never;
1174
- cookie?: never;
1175
- };
1176
- /**
1177
- * Get Agent Session Turns
1178
- * @description Return the session's turns and inbox messages.
1179
- *
1180
- * The conversation structure, for durable (keyed) sessions; empty lists for
1181
- * single-shot sessions.
1182
- *
1183
- * The session's per-conversation state (idle | running | closed)
1184
- * rides on the session object itself (session_state).
1185
- */
1186
- get: operations['get_agent_session_turns'];
1187
- put?: never;
1188
- post?: never;
1189
- delete?: never;
1190
- options?: never;
1191
- head?: never;
1192
- patch?: never;
1193
- trace?: never;
1194
- };
1195
1168
  '/usage': {
1196
1169
  parameters: {
1197
1170
  query?: never;
@@ -1697,6 +1670,14 @@ interface components {
1697
1670
  /** Ref */
1698
1671
  ref?: string | null;
1699
1672
  };
1673
+ /**
1674
+ * AgentConfigResponse
1675
+ * @description One saved agent config.
1676
+ */
1677
+ AgentConfigResponse: {
1678
+ /** @description The saved agent config. */
1679
+ config: components['schemas']['Config'];
1680
+ };
1700
1681
  /**
1701
1682
  * AgentConfigSettingsRef
1702
1683
  * @description A config-declared Claude Code settings.json, resolved at run start and
@@ -1761,11 +1742,22 @@ interface components {
1761
1742
  file: string;
1762
1743
  };
1763
1744
  /**
1764
- * AgentDefaultV1
1745
+ * AgentConfigsListResponse
1746
+ * @description The caller's saved agent configs.
1747
+ */
1748
+ AgentConfigsListResponse: {
1749
+ /**
1750
+ * Configs
1751
+ * @description Saved agent configs.
1752
+ */
1753
+ configs: components['schemas']['Config'][];
1754
+ };
1755
+ /**
1756
+ * AgentDefault
1765
1757
  * @description A default-agent setting: which agent config serves sessions started
1766
1758
  * without an explicit config, for the whole account or for one repository.
1767
1759
  */
1768
- AgentDefaultV1: {
1760
+ AgentDefault: {
1769
1761
  /**
1770
1762
  * Broken
1771
1763
  * @description Why this default cannot serve sessions, or null when it is healthy.
@@ -1798,6 +1790,25 @@ interface components {
1798
1790
  */
1799
1791
  updated_at: string;
1800
1792
  };
1793
+ /**
1794
+ * AgentDefaultResponse
1795
+ * @description One default-agent setting.
1796
+ */
1797
+ AgentDefaultResponse: {
1798
+ /** @description The default-agent setting. */
1799
+ default: components['schemas']['AgentDefault'];
1800
+ };
1801
+ /**
1802
+ * AgentDefaultsListResponse
1803
+ * @description The account's default-agent settings.
1804
+ */
1805
+ AgentDefaultsListResponse: {
1806
+ /**
1807
+ * Defaults
1808
+ * @description The configured defaults.
1809
+ */
1810
+ defaults: components['schemas']['AgentDefault'][];
1811
+ };
1801
1812
  /**
1802
1813
  * AgentSessionExitStatus
1803
1814
  * @description Why a terminal agent session ended — a finer-grained reason than `status`.
@@ -1839,478 +1850,199 @@ interface components {
1839
1850
  */
1840
1851
  AgentSessionStatus: 'scheduled' | 'creating_sandbox' | 'running' | 'retrying' | 'completed' | 'error' | 'cancelled' | 'stopped';
1841
1852
  /**
1842
- * AgentSessionWire
1843
- * @description An agent session: one conversation with an agent, from trigger to
1844
- * terminal state. Returned by `GET /sessions/{id}` and carried by the
1845
- * session stream's `session`/`snapshot` frames — REST and stream never
1846
- * disagree about what a session looks like.
1853
+ * AgentTemplate
1854
+ * @description A built-in agent template: a ready-to-use agent config plus the
1855
+ * metadata that describes it in the template gallery.
1847
1856
  */
1848
- AgentSessionWire: {
1857
+ AgentTemplate: {
1849
1858
  /**
1850
- * Agent Config Id
1851
- * @description Identifier of the saved agent config the session ran on, if any.
1859
+ * Description
1860
+ * @description A short description of the template.
1852
1861
  */
1853
- agent_config_id?: string | null;
1854
- /** @description The GitHub user the session is attributed to, when the attribution is a GitHub user. */
1855
- attributed_user?: components['schemas']['GithubAccountSnippet'] | null;
1862
+ description: string;
1856
1863
  /**
1857
- * Attribution Id
1858
- * @description Identifier of the principal the session is attributed to.
1864
+ * Name
1865
+ * @description The template's display name.
1859
1866
  */
1860
- attribution_id?: string | null;
1861
- /** @description Kind of principal the session is attributed to (e.g. a GitHub user or an API key). */
1862
- attribution_type?: components['schemas']['AttributionType'] | null;
1867
+ name: string;
1863
1868
  /**
1864
- * Client Version
1865
- * @description Version of the client that started the session, if reported.
1869
+ * Slug
1870
+ * @description The template's unique identifier.
1866
1871
  */
1867
- client_version?: string | null;
1872
+ slug: string;
1868
1873
  /**
1869
- * Config Override
1870
- * @description The partial-config diff applied for this run; null when the config was unmodified.
1874
+ * Summary
1875
+ * @description A one-line summary of the template.
1871
1876
  */
1872
- config_override?: {
1873
- [key: string]: unknown;
1874
- } | null;
1877
+ summary: string;
1875
1878
  /**
1876
- * Context Repository
1877
- * @description The "owner/name" repository context the session was started in, if any.
1879
+ * Tags
1880
+ * @description Gallery tags for the template.
1878
1881
  */
1879
- context_repository?: string | null;
1882
+ tags: string[];
1880
1883
  /**
1881
- * Cost Fee
1882
- * @description Platform fee in millicents.
1883
- * @default 0
1884
+ * Use Case
1885
+ * @description The use case the template is designed for.
1884
1886
  */
1885
- cost_fee: number;
1887
+ use_case: string;
1886
1888
  /**
1887
- * Cost Sandbox Cpu
1888
- * @description Sandbox CPU spend in millicents.
1889
- * @default 0
1889
+ * Yaml
1890
+ * @description The complete, schema-valid agent config YAML, ready to write to disk.
1890
1891
  */
1891
- cost_sandbox_cpu: number;
1892
+ yaml: string;
1893
+ };
1894
+ /**
1895
+ * AgentTemplatesListResponse
1896
+ * @description The built-in agent templates.
1897
+ */
1898
+ AgentTemplatesListResponse: {
1892
1899
  /**
1893
- * Cost Sandbox Memory
1894
- * @description Sandbox memory spend in millicents.
1895
- * @default 0
1900
+ * Templates
1901
+ * @description The available templates.
1896
1902
  */
1897
- cost_sandbox_memory: number;
1903
+ templates: components['schemas']['AgentTemplate'][];
1898
1904
  /**
1899
- * Cost Tokens
1900
- * @description Token spend in millicents. The session's grand total cost is the sum of cost_tokens, cost_sandbox_cpu, cost_sandbox_memory, and cost_fee.
1905
+ * Walkthrough Yaml
1906
+ * @description A fully-populated example agent config, for display in setup walkthroughs. Not a template to run as-is.
1901
1907
  */
1902
- cost_tokens: number;
1908
+ walkthrough_yaml: string;
1909
+ };
1910
+ /**
1911
+ * Alert
1912
+ * @description One thing Ellipsis told (or will tell) your team about — e.g. a budget
1913
+ * threshold being crossed.
1914
+ */
1915
+ Alert: {
1916
+ /**
1917
+ * Body
1918
+ * @description The alert body, in Markdown.
1919
+ */
1920
+ body: string;
1903
1921
  /**
1904
1922
  * Created At
1905
1923
  * Format: date-time
1906
- * @description When the session was created.
1924
+ * @description When the alert was raised.
1907
1925
  */
1908
1926
  created_at: string;
1909
1927
  /**
1910
- * Customer Id
1911
- * @description Identifier of the account that owns the session.
1928
+ * Cta Label
1929
+ * @description The label for the call-to-action link.
1912
1930
  */
1913
- customer_id: string;
1914
- /** @description How the session's config was resolved from the account's defaults, when no explicit config was given. */
1915
- default_resolution?: components['schemas']['DefaultResolution'] | null;
1916
- /** @description How the session ended; null until it is terminal. */
1917
- exit_status?: components['schemas']['AgentSessionExitStatus'] | null;
1918
- /** @description The coding-agent harness the session runs on. */
1919
- harness: components['schemas']['Harness'];
1931
+ cta_label?: string | null;
1932
+ /**
1933
+ * Cta Url
1934
+ * @description An optional call-to-action link where this alert should send the reader.
1935
+ */
1936
+ cta_url?: string | null;
1920
1937
  /**
1921
1938
  * Id
1922
- * @description Unique identifier of the session.
1939
+ * @description The alert's unique identifier.
1923
1940
  */
1924
1941
  id: string;
1925
1942
  /**
1926
- * Last Activity At
1927
- * @description When the session last showed activity.
1943
+ * Resolved At
1944
+ * @description When the alert was resolved.
1928
1945
  */
1929
- last_activity_at?: string | null;
1946
+ resolved_at?: string | null;
1930
1947
  /**
1931
- * Last Message At
1932
- * @description When the session last received a message.
1948
+ * Resolved By
1949
+ * @description The GitHub account id of the person who dismissed the alert, when a human resolved it.
1933
1950
  */
1934
- last_message_at?: string | null;
1951
+ resolved_by?: number | null;
1952
+ /** @description The alert's severity. Cosmetic only; it does not affect routing. */
1953
+ severity: components['schemas']['AlertSeverity'];
1954
+ source: components['schemas']['AlertSource'];
1955
+ /** @description The alert's lifecycle state. */
1956
+ status: components['schemas']['AlertStatus'];
1935
1957
  /**
1936
- * Live Summary
1937
- * @description A live summary of the session's progress while it runs.
1958
+ * Title
1959
+ * @description A one-line, plain-text title.
1938
1960
  */
1939
- live_summary?: string | null;
1961
+ title: string;
1940
1962
  /**
1941
- * Metadata
1942
- * @description Caller-supplied metadata key-value pairs.
1943
- * @default {}
1963
+ * Updated At
1964
+ * Format: date-time
1965
+ * @description When the alert last changed.
1944
1966
  */
1945
- metadata: {
1946
- [key: string]: string;
1947
- };
1967
+ updated_at: string;
1968
+ };
1969
+ /**
1970
+ * AlertResponse
1971
+ * @description One alert.
1972
+ */
1973
+ AlertResponse: {
1974
+ /** @description The alert. */
1975
+ alert: components['schemas']['Alert'];
1976
+ };
1977
+ /**
1978
+ * AlertSeverity
1979
+ * @description Cosmetic only (badge tone, Slack emoji, email subject prefix). Routing
1980
+ * is the category's job, never severity's.
1981
+ * @enum {string}
1982
+ */
1983
+ AlertSeverity: 'info' | 'warning';
1984
+ /**
1985
+ * AlertSource
1986
+ * @description What raised the alert.
1987
+ * @enum {string}
1988
+ */
1989
+ AlertSource: 'budget';
1990
+ /**
1991
+ * AlertStatus
1992
+ * @description The alert's lifecycle state: open until a human dismisses it or the
1993
+ * system resolves it (the condition cleared or the alert went stale).
1994
+ * @enum {string}
1995
+ */
1996
+ AlertStatus: 'open' | 'dismissed' | 'expired';
1997
+ /**
1998
+ * AlertsListResponse
1999
+ * @description A page of alerts for the caller's organization.
2000
+ */
2001
+ AlertsListResponse: {
1948
2002
  /**
1949
- * Output Prs
1950
- * @description Pull requests the session created or updated.
2003
+ * Alerts
2004
+ * @description The matching alerts.
1951
2005
  */
1952
- output_prs?: components['schemas']['AgentSessionPr'][] | null;
2006
+ alerts: components['schemas']['Alert'][];
1953
2007
  /**
1954
- * Parent Agent Session Id
1955
- * @description Identifier of the parent session that spawned this one, if any.
2008
+ * Has More
2009
+ * @description Whether more results exist past this page.
2010
+ * @default false
1956
2011
  */
1957
- parent_agent_session_id?: string | null;
1958
- /** @description How this session relates to its parent session, if any. */
1959
- parent_kind?: components['schemas']['ParentKind'] | null;
2012
+ has_more: boolean;
1960
2013
  /**
1961
- * Prompt
1962
- * @description The per-session prompt the session was started with.
2014
+ * Next Cursor
2015
+ * @description Pass as `cursor` to fetch the next page. Null on the last page. Opaque — echo it back rather than parsing it.
1963
2016
  */
1964
- prompt?: string | null;
1965
- /** @description Whether a client may send this session a message and, when it may not, the reason to show instead of a composer. */
1966
- prompting: components['schemas']['SessionPrompting'];
2017
+ next_cursor?: string | null;
2018
+ };
2019
+ /**
2020
+ * AnalyticsMetricsBucket
2021
+ * @description Pull-request and review activity on one UTC day. Each count keys on the
2022
+ * relevant event's own timestamp: PRs on when they were opened, merged, or
2023
+ * closed; review verdicts on when the review was submitted; review comments
2024
+ * on when the comment was created. The "shipped" rollup (additions,
2025
+ * deletions, commits, active contributors) covers PRs merged that day.
2026
+ */
2027
+ AnalyticsMetricsBucket: {
1967
2028
  /**
1968
- * Replayed From Session Id
1969
- * @description Identifier of the original session this one was replayed from, if it was started via replay.
2029
+ * Active Contributors
2030
+ * @description Distinct authors who merged a pull request this day.
1970
2031
  */
1971
- replayed_from_session_id?: string | null;
2032
+ active_contributors: number;
1972
2033
  /**
1973
- * Resolved Budget Cents
1974
- * @description The spend budget resolved for this session, in cents.
2034
+ * Additions
2035
+ * @description Lines added across pull requests merged this day.
1975
2036
  */
1976
- resolved_budget_cents: number;
1977
- /** @description Where the resolved budget came from. */
1978
- resolved_budget_source: components['schemas']['BudgetSource'];
2037
+ additions: number;
1979
2038
  /**
1980
- * Sandbox Id
1981
- * @description Identifier of the sandbox the session runs in, if any.
2039
+ * Approved
2040
+ * @description Approving reviews submitted this day.
1982
2041
  */
1983
- sandbox_id?: string | null;
2042
+ approved: number;
1984
2043
  /**
1985
- * Session Key
1986
- * @description Key identifying the durable conversation this session belongs to, or null for single-shot sessions.
1987
- */
1988
- session_key?: string | null;
1989
- /** @description Lifecycle state of the durable conversation, or null for sessions without one. */
1990
- session_state?: components['schemas']['SessionState'] | null;
1991
- /** @description Where the session came from (e.g. react, manual, api, cli, mention, cron, laptop). */
1992
- source: components['schemas']['AgentSessionSource'];
1993
- /** @description Execution status of the session. */
1994
- status: components['schemas']['AgentSessionStatus'];
1995
- /**
1996
- * Status Reason
1997
- * @description Human-readable reason for the current status, when there is one.
1998
- */
1999
- status_reason?: string | null;
2000
- /**
2001
- * Stopped At
2002
- * @description When a stop was requested, if one was.
2003
- */
2004
- stopped_at?: string | null;
2005
- /**
2006
- * Stopped By
2007
- * @description GitHub account id of the user who stopped the session, if known.
2008
- */
2009
- stopped_by?: number | null;
2010
- /** @description The GitHub user who stopped the session, if it was stopped. */
2011
- stopped_by_user?: components['schemas']['GithubAccountSnippet'] | null;
2012
- /** @description The public status projection; null for laptop-synced sessions. */
2013
- surface?: components['schemas']['SessionSurface'] | null;
2014
- /**
2015
- * Tokens Cache Creation
2016
- * @description Tokens written to the prompt cache.
2017
- * @default 0
2018
- */
2019
- tokens_cache_creation: number;
2020
- /**
2021
- * Tokens Cache Read
2022
- * @description Tokens read from the prompt cache.
2023
- * @default 0
2024
- */
2025
- tokens_cache_read: number;
2026
- /**
2027
- * Tokens Input
2028
- * @description Input tokens used.
2029
- * @default 0
2030
- */
2031
- tokens_input: number;
2032
- /**
2033
- * Tokens Model
2034
- * @description The model the token counts are attributed to.
2035
- */
2036
- tokens_model: string;
2037
- /**
2038
- * Tokens Output
2039
- * @description Output tokens used.
2040
- * @default 0
2041
- */
2042
- tokens_output: number;
2043
- /**
2044
- * Tokens Total
2045
- * @description Total tokens used by the session.
2046
- * @default 0
2047
- */
2048
- tokens_total: number;
2049
- /**
2050
- * Updated At
2051
- * Format: date-time
2052
- * @description When the session was last updated.
2053
- */
2054
- updated_at: string;
2055
- /**
2056
- * Webhook Id
2057
- * @description Identifier of the webhook event that triggered the session, if any.
2058
- */
2059
- webhook_id?: string | null;
2060
- /** @description Type of the webhook event that triggered the session, if any. */
2061
- webhook_type?: components['schemas']['WebhookType'] | null;
2062
- };
2063
- /**
2064
- * AgentTemplate
2065
- * @description A built-in agent template: a ready-to-use agent config plus the
2066
- * metadata that describes it in the template gallery.
2067
- */
2068
- AgentTemplate: {
2069
- /**
2070
- * Description
2071
- * @description A short description of the template.
2072
- */
2073
- description: string;
2074
- /**
2075
- * Name
2076
- * @description The template's display name.
2077
- */
2078
- name: string;
2079
- /**
2080
- * Slug
2081
- * @description The template's unique identifier.
2082
- */
2083
- slug: string;
2084
- /**
2085
- * Summary
2086
- * @description A one-line summary of the template.
2087
- */
2088
- summary: string;
2089
- /**
2090
- * Tags
2091
- * @description Gallery tags for the template.
2092
- */
2093
- tags: string[];
2094
- /**
2095
- * Use Case
2096
- * @description The use case the template is designed for.
2097
- */
2098
- use_case: string;
2099
- /**
2100
- * Yaml
2101
- * @description The complete, schema-valid agent config YAML, ready to write to disk.
2102
- */
2103
- yaml: string;
2104
- };
2105
- /**
2106
- * AgentTurn
2107
- * @description One exchange within a session: a single Claude Code execution driven by the
2108
- * session's inbox. Over subsequent slices this absorbs the per-execution fields
2109
- * (status, cost, tokens, exit_status) that currently live on agent_sessions.
2110
- */
2111
- AgentTurn: {
2112
- /** Agent Session Id */
2113
- agent_session_id: string;
2114
- /** Completed At */
2115
- completed_at?: string | null;
2116
- /**
2117
- * Cost Fee
2118
- * @default 0
2119
- */
2120
- cost_fee: number;
2121
- /**
2122
- * Cost Sandbox Cpu
2123
- * @default 0
2124
- */
2125
- cost_sandbox_cpu: number;
2126
- /**
2127
- * Cost Sandbox Memory
2128
- * @default 0
2129
- */
2130
- cost_sandbox_memory: number;
2131
- /**
2132
- * Cost Tokens
2133
- * @default 0
2134
- */
2135
- cost_tokens: number;
2136
- /**
2137
- * Created At
2138
- * Format: date-time
2139
- */
2140
- created_at: string;
2141
- exit_status?: components['schemas']['AgentSessionExitStatus'] | null;
2142
- /** Id */
2143
- id: string;
2144
- /** React Action */
2145
- react_action?: string | null;
2146
- /** Sandbox Id */
2147
- sandbox_id?: string | null;
2148
- /** Session Execution Id */
2149
- session_execution_id?: string | null;
2150
- /** Started At */
2151
- started_at?: string | null;
2152
- status: components['schemas']['AgentTurnStatus'];
2153
- /** Status Reason */
2154
- status_reason?: string | null;
2155
- /**
2156
- * Tokens Cache Creation
2157
- * @default 0
2158
- */
2159
- tokens_cache_creation: number;
2160
- /**
2161
- * Tokens Cache Read
2162
- * @default 0
2163
- */
2164
- tokens_cache_read: number;
2165
- /**
2166
- * Tokens Input
2167
- * @default 0
2168
- */
2169
- tokens_input: number;
2170
- /** Tokens Model */
2171
- tokens_model?: string | null;
2172
- /**
2173
- * Tokens Output
2174
- * @default 0
2175
- */
2176
- tokens_output: number;
2177
- /**
2178
- * Tokens Total
2179
- * @default 0
2180
- */
2181
- tokens_total: number;
2182
- /** Turn Index */
2183
- turn_index: number;
2184
- /**
2185
- * Updated At
2186
- * Format: date-time
2187
- */
2188
- updated_at: string;
2189
- /** Webhook Id */
2190
- webhook_id?: string | null;
2191
- webhook_type?: components['schemas']['WebhookType'] | null;
2192
- };
2193
- /**
2194
- * AgentTurnStatus
2195
- * @enum {string}
2196
- */
2197
- AgentTurnStatus: 'scheduled' | 'running' | 'completed' | 'error' | 'cancelled';
2198
- /**
2199
- * Alert
2200
- * @description One thing Ellipsis told (or will tell) your team about — e.g. a budget
2201
- * threshold being crossed.
2202
- */
2203
- Alert: {
2204
- /**
2205
- * Body
2206
- * @description The alert body, in Markdown.
2207
- */
2208
- body: string;
2209
- /**
2210
- * Created At
2211
- * Format: date-time
2212
- * @description When the alert was raised.
2213
- */
2214
- created_at: string;
2215
- /**
2216
- * Cta Label
2217
- * @description The label for the call-to-action link.
2218
- */
2219
- cta_label?: string | null;
2220
- /**
2221
- * Cta Url
2222
- * @description An optional call-to-action link — where this alert should send the reader.
2223
- */
2224
- cta_url?: string | null;
2225
- /**
2226
- * Customer Id
2227
- * @description The account the alert belongs to.
2228
- */
2229
- customer_id: string;
2230
- /**
2231
- * Dedupe Key
2232
- * @description Deduplication key: at most one open alert exists per account and key, so re-raising a known condition is a no-op.
2233
- */
2234
- dedupe_key: string;
2235
- /**
2236
- * Id
2237
- * @description The alert's unique identifier.
2238
- */
2239
- id: string;
2240
- /**
2241
- * Resolved At
2242
- * @description When the alert was resolved.
2243
- */
2244
- resolved_at?: string | null;
2245
- /**
2246
- * Resolved By
2247
- * @description The GitHub account id of the person who dismissed the alert, when a human resolved it.
2248
- */
2249
- resolved_by?: number | null;
2250
- /** @description The alert's severity. Cosmetic only; it does not affect routing. */
2251
- severity: components['schemas']['AlertSeverity'];
2252
- source: components['schemas']['AlertSource'];
2253
- /** @description The alert's lifecycle state. */
2254
- status: components['schemas']['AlertStatus'];
2255
- /**
2256
- * Title
2257
- * @description A one-line, plain-text title.
2258
- */
2259
- title: string;
2260
- /**
2261
- * Updated At
2262
- * Format: date-time
2263
- * @description When the alert last changed.
2264
- */
2265
- updated_at: string;
2266
- };
2267
- /**
2268
- * AlertSeverity
2269
- * @description Cosmetic only (badge tone, Slack emoji, email subject prefix). Routing
2270
- * is the category's job, never severity's.
2271
- * @enum {string}
2272
- */
2273
- AlertSeverity: 'info' | 'warning';
2274
- /**
2275
- * AlertSource
2276
- * @description What raised the alert.
2277
- * @enum {string}
2278
- */
2279
- AlertSource: 'budget';
2280
- /**
2281
- * AlertStatus
2282
- * @description The alert's lifecycle state: open until a human dismisses it or the
2283
- * system resolves it (the condition cleared or the alert went stale).
2284
- * @enum {string}
2285
- */
2286
- AlertStatus: 'open' | 'dismissed' | 'expired';
2287
- /**
2288
- * AnalyticsMetricsBucket
2289
- * @description Pull-request and review activity on one UTC day. Each count keys on the
2290
- * relevant event's own timestamp: PRs on when they were opened, merged, or
2291
- * closed; review verdicts on when the review was submitted; review comments
2292
- * on when the comment was created. The "shipped" rollup (additions,
2293
- * deletions, commits, active contributors) covers PRs merged that day.
2294
- */
2295
- AnalyticsMetricsBucket: {
2296
- /**
2297
- * Active Contributors
2298
- * @description Distinct authors who merged a pull request this day.
2299
- */
2300
- active_contributors: number;
2301
- /**
2302
- * Additions
2303
- * @description Lines added across pull requests merged this day.
2304
- */
2305
- additions: number;
2306
- /**
2307
- * Approved
2308
- * @description Approving reviews submitted this day.
2309
- */
2310
- approved: number;
2311
- /**
2312
- * Changes Requested
2313
- * @description Changes-requested reviews submitted this day.
2044
+ * Changes Requested
2045
+ * @description Changes-requested reviews submitted this day.
2314
2046
  */
2315
2047
  changes_requested: number;
2316
2048
  /**
@@ -2590,6 +2322,61 @@ interface components {
2590
2322
  * @enum {string}
2591
2323
  */
2592
2324
  CodeReviewRunStatus: 'scheduled' | 'running' | 'posting' | 'completed' | 'skipped' | 'error' | 'cancelled';
2325
+ /**
2326
+ * Config
2327
+ * @description A saved agent config: the stored row for one agent, plus where it syncs
2328
+ * from and the state of that sync.
2329
+ */
2330
+ Config: {
2331
+ /** @description The agent definition itself, as parsed from its YAML file. */
2332
+ agent_config: components['schemas']['AgentConfig'];
2333
+ /** @description The repository, path, and branch the config syncs from. Null only transiently, before the creating pull request's file lands on the branch. */
2334
+ agent_config_source_details?: components['schemas']['AgentConfigSourceGithub'] | null;
2335
+ /**
2336
+ * Created At
2337
+ * Format: date-time
2338
+ * @description When the config was created.
2339
+ */
2340
+ created_at: string;
2341
+ /** @description The GitHub account that last edited the config, when the edit came from a known user. */
2342
+ edited_by?: components['schemas']['GithubAccountSnippet'] | null;
2343
+ /**
2344
+ * Id
2345
+ * @description Unique identifier of the config.
2346
+ */
2347
+ id: string;
2348
+ /**
2349
+ * Last Session Created At
2350
+ * @description When that most recent session was created.
2351
+ */
2352
+ last_session_created_at?: string | null;
2353
+ /**
2354
+ * Last Session Id
2355
+ * @description The most recent session started from this config, or null if it has never run.
2356
+ */
2357
+ last_session_id?: string | null;
2358
+ /**
2359
+ * Last Sync Error
2360
+ * @description The parse or validation error from the most recent sync attempt, or null when it succeeded. A non-null value means the agent is not running the YAML currently on the branch.
2361
+ */
2362
+ last_sync_error?: string | null;
2363
+ /**
2364
+ * Last Synced Commit Sha
2365
+ * @description The last commit the config was synced from.
2366
+ */
2367
+ last_synced_commit_sha?: string | null;
2368
+ /**
2369
+ * Pending Pull Request Url
2370
+ * @description The open pull request that adds this config's file. Non-null means the agent is not live yet: it starts running once the pull request merges and syncs.
2371
+ */
2372
+ pending_pull_request_url?: string | null;
2373
+ /**
2374
+ * Updated At
2375
+ * Format: date-time
2376
+ * @description When the config was last updated.
2377
+ */
2378
+ updated_at: string;
2379
+ };
2593
2380
  /**
2594
2381
  * ContributorUsage
2595
2382
  * @description An author who merged a pull request in the window. The pull-request and
@@ -2657,6 +2444,24 @@ interface components {
2657
2444
  */
2658
2445
  template_id?: string | null;
2659
2446
  };
2447
+ /**
2448
+ * CreateAgentConfigResponse
2449
+ * @description The created agent config and the pull request that adds its file.
2450
+ */
2451
+ CreateAgentConfigResponse: {
2452
+ /** @description The created agent config. */
2453
+ config: components['schemas']['Config'];
2454
+ /**
2455
+ * Path
2456
+ * @description The file path the config was written to.
2457
+ */
2458
+ path: string;
2459
+ /**
2460
+ * Pull Request Url
2461
+ * @description The pull request that adds the config file. The agent becomes live once it merges and syncs.
2462
+ */
2463
+ pull_request_url: string;
2464
+ };
2660
2465
  /**
2661
2466
  * CreateFileRequest
2662
2467
  * @description Upload a file owned by the calling account.
@@ -2684,7 +2489,7 @@ interface components {
2684
2489
  */
2685
2490
  CreateFileResponse: {
2686
2491
  /** @description The stored file's metadata. */
2687
- file: components['schemas']['FileView'];
2492
+ file: components['schemas']['File'];
2688
2493
  /**
2689
2494
  * Url
2690
2495
  * @description The file's dashboard URL (app.ellipsis.dev/files/{id}). Access is gated to members of the owning organization, so this link is safe to share, e.g. in a pull request comment.
@@ -2751,14 +2556,6 @@ interface components {
2751
2556
  */
2752
2557
  scope: components['schemas']['ReviewScope'];
2753
2558
  };
2754
- /** CreatedAgentConfig */
2755
- CreatedAgentConfig: {
2756
- config: components['schemas']['SavedAgentConfig'];
2757
- /** Path */
2758
- path: string;
2759
- /** Pull Request Url */
2760
- pull_request_url: string;
2761
- };
2762
2559
  /**
2763
2560
  * DefaultResolution
2764
2561
  * @description How a session that arrived with no explicit config source resolved its
@@ -2828,22 +2625,6 @@ interface components {
2828
2625
  * @enum {string}
2829
2626
  */
2830
2627
  EffortLevel: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
2831
- /**
2832
- * EnvironmentVariableInput
2833
- * @description One environment variable to store.
2834
- */
2835
- EnvironmentVariableInput: {
2836
- /**
2837
- * Name
2838
- * @description The variable name. Must start with a letter or underscore and contain only letters, digits, and underscores.
2839
- */
2840
- name: string;
2841
- /**
2842
- * Value
2843
- * @description The variable value. Write-only: it is injected into sandboxes but never returned by the API.
2844
- */
2845
- value: string;
2846
- };
2847
2628
  /** ErrorInfo */
2848
2629
  ErrorInfo: {
2849
2630
  /**
@@ -2878,16 +2659,11 @@ interface components {
2878
2659
  */
2879
2660
  ExecutionStatus: 'running' | 'failed' | 'done';
2880
2661
  /**
2881
- * FileView
2662
+ * File
2882
2663
  * @description A file's metadata — the file itself is fetched via a separate
2883
2664
  * download URL.
2884
2665
  */
2885
- FileView: {
2886
- /**
2887
- * Agent Session Id
2888
- * @description The agent session that produced this file, when it was uploaded from a sandbox. Null for uploads made outside an agent session.
2889
- */
2890
- agent_session_id?: string | null;
2666
+ File: {
2891
2667
  /**
2892
2668
  * Content Type
2893
2669
  * @description The file's MIME type.
@@ -2903,17 +2679,45 @@ interface components {
2903
2679
  * Filename
2904
2680
  * @description The original file basename, for display.
2905
2681
  */
2906
- filename: string;
2682
+ filename: string;
2683
+ /**
2684
+ * Id
2685
+ * @description The file's unique identifier.
2686
+ */
2687
+ id: string;
2688
+ /**
2689
+ * Session Id
2690
+ * @description The agent session that produced this file, when it was uploaded from a sandbox. Null for uploads made outside an agent session.
2691
+ */
2692
+ session_id?: string | null;
2693
+ /**
2694
+ * Size Bytes
2695
+ * @description The size of the stored file in bytes.
2696
+ */
2697
+ size_bytes: number;
2698
+ };
2699
+ /**
2700
+ * FilesListResponse
2701
+ * @description A page of the calling account's files, newest first. Metadata only —
2702
+ * fetch an individual file to get a download URL.
2703
+ */
2704
+ FilesListResponse: {
2705
+ /**
2706
+ * Files
2707
+ * @description The account's files, newest first.
2708
+ */
2709
+ files: components['schemas']['File'][];
2907
2710
  /**
2908
- * Id
2909
- * @description The file's unique identifier.
2711
+ * Has More
2712
+ * @description Whether more results exist past this page.
2713
+ * @default false
2910
2714
  */
2911
- id: string;
2715
+ has_more: boolean;
2912
2716
  /**
2913
- * Size Bytes
2914
- * @description The size of the stored file in bytes.
2717
+ * Next Cursor
2718
+ * @description Pass as `cursor` to fetch the next page. Null on the last page. Opaque — echo it back rather than parsing it.
2915
2719
  */
2916
- size_bytes: number;
2720
+ next_cursor?: string | null;
2917
2721
  };
2918
2722
  /**
2919
2723
  * FindingAnchor
@@ -2974,7 +2778,7 @@ interface components {
2974
2778
  * Recent
2975
2779
  * @description The most recent pull requests, newest first, capped.
2976
2780
  */
2977
- recent: components['schemas']['RecentPullRequestDTO'][];
2781
+ recent: components['schemas']['RecentPullRequest'][];
2978
2782
  /**
2979
2783
  * Series
2980
2784
  * @description Per-day activity buckets covering the window.
@@ -3026,7 +2830,7 @@ interface components {
3026
2830
  */
3027
2831
  download_url: string;
3028
2832
  /** @description The file's metadata. */
3029
- file: components['schemas']['FileView'];
2833
+ file: components['schemas']['File'];
3030
2834
  /**
3031
2835
  * Url
3032
2836
  * @description The file's dashboard URL — the same shareable link returned when the file was created.
@@ -3056,18 +2860,6 @@ interface components {
3056
2860
  /** @description The connected Slack workspace, or null if not connected. */
3057
2861
  slack?: components['schemas']['SlackIntegrationSummary'] | null;
3058
2862
  };
3059
- /**
3060
- * GetSandboxVariablesResponse
3061
- * @description The account's sandbox environment variables, names and timestamps only —
3062
- * values are never returned.
3063
- */
3064
- GetSandboxVariablesResponse: {
3065
- /**
3066
- * Variables
3067
- * @description The stored variables.
3068
- */
3069
- variables: components['schemas']['SandboxEnvironmentVariableSummary'][];
3070
- };
3071
2863
  /**
3072
2864
  * GetSessionIdeResponse
3073
2865
  * @description The IDE link for a session's live sandbox.
@@ -3085,7 +2877,7 @@ interface components {
3085
2877
  * of the session — every record (agent output, tool calls, thinking,
3086
2878
  * lifecycle events, sandbox output, message events), archived into
3087
2879
  * seq-ranged segments. For a running session `latest_feed_seq` may exceed
3088
- * `archived_through_feed_seq`; `caught_up` tells the client whether the
2880
+ * `archived_through_feed_seq`; `has_more` tells the client whether the
3089
2881
  * manifest is the whole story yet.
3090
2882
  */
3091
2883
  GetSessionLogResponse: {
@@ -3094,11 +2886,6 @@ interface components {
3094
2886
  * @description The highest feed_seq covered by an archived segment (0 when none yet).
3095
2887
  */
3096
2888
  archived_through_feed_seq: number;
3097
- /**
3098
- * Caught Up
3099
- * @description Whether the archived segments cover the session's whole history so far.
3100
- */
3101
- caught_up: boolean;
3102
2889
  /**
3103
2890
  * Earliest Feed Seq
3104
2891
  * @description The retention head: the first feed_seq still available, or null when nothing has been recorded yet.
@@ -3110,6 +2897,11 @@ interface components {
3110
2897
  * @default ellipsis_session_log@1
3111
2898
  */
3112
2899
  format: string;
2900
+ /**
2901
+ * Has More
2902
+ * @description Whether records exist past the archived segments — true for a running session whose newest records are not archived yet.
2903
+ */
2904
+ has_more: boolean;
3113
2905
  /**
3114
2906
  * Latest Feed Seq
3115
2907
  * @description The feed head: the last allocated feed_seq.
@@ -3119,7 +2911,7 @@ interface components {
3119
2911
  * Segments
3120
2912
  * @description The archived segments, in feed_seq order.
3121
2913
  */
3122
- segments: components['schemas']['SessionLogSegmentView'][];
2914
+ segments: components['schemas']['SessionLogSegment'][];
3123
2915
  /**
3124
2916
  * Session Id
3125
2917
  * @description Identifier of the session.
@@ -3142,11 +2934,6 @@ interface components {
3142
2934
  */
3143
2935
  url: string;
3144
2936
  };
3145
- /** GetSupportedModelsResponse */
3146
- GetSupportedModelsResponse: {
3147
- /** Models */
3148
- models: components['schemas']['SupportedModelApi'][];
3149
- };
3150
2937
  /**
3151
2938
  * GetUsageDashboardResponse
3152
2939
  * @description The account's usage over a period: token and cost totals, a per-day
@@ -3269,13 +3056,13 @@ interface components {
3269
3056
  suspended: boolean;
3270
3057
  };
3271
3058
  /**
3272
- * GithubMemberSummary
3059
+ * GithubMember
3273
3060
  * @description A member of the GitHub organization (or the account itself for a
3274
3061
  * personal account) — the universe of `author_id` values for session/log
3275
3062
  * queries. `slack` is set when this account is linked to a Slack workspace
3276
3063
  * user.
3277
3064
  */
3278
- GithubMemberSummary: {
3065
+ GithubMember: {
3279
3066
  /**
3280
3067
  * Avatar Url
3281
3068
  * @description The member's GitHub avatar URL.
@@ -3301,6 +3088,66 @@ interface components {
3301
3088
  /** @description The Slack identity linked to this member, when one is known. */
3302
3089
  slack?: components['schemas']['LinkedSlackIdentity'] | null;
3303
3090
  };
3091
+ /**
3092
+ * GithubMembersListResponse
3093
+ * @description The members of the account's GitHub organization.
3094
+ */
3095
+ GithubMembersListResponse: {
3096
+ /**
3097
+ * Members
3098
+ * @description The organization's members, sorted by login.
3099
+ */
3100
+ members: components['schemas']['GithubMember'][];
3101
+ };
3102
+ /**
3103
+ * GithubRepositoriesListResponse
3104
+ * @description The repositories connected to the account's GitHub installation.
3105
+ */
3106
+ GithubRepositoriesListResponse: {
3107
+ /**
3108
+ * Repositories
3109
+ * @description The connected repositories.
3110
+ */
3111
+ repositories: components['schemas']['GithubRepository'][];
3112
+ };
3113
+ /**
3114
+ * GithubRepository
3115
+ * @description A repository connected to the account's GitHub installation — a valid
3116
+ * target for `repository` when creating an agent config and for the
3117
+ * repository lists inside an agent config.
3118
+ */
3119
+ GithubRepository: {
3120
+ /**
3121
+ * Default Branch
3122
+ * @description The repository's default branch.
3123
+ */
3124
+ default_branch?: string | null;
3125
+ /**
3126
+ * Description
3127
+ * @description The repository's description on GitHub.
3128
+ */
3129
+ description?: string | null;
3130
+ /**
3131
+ * Full Name
3132
+ * @description The repository's full "owner/name" identifier.
3133
+ */
3134
+ full_name: string;
3135
+ /**
3136
+ * Id
3137
+ * @description The repository's GitHub id.
3138
+ */
3139
+ id: number;
3140
+ /**
3141
+ * Name
3142
+ * @description The repository name, without the owner.
3143
+ */
3144
+ name: string;
3145
+ /**
3146
+ * Private
3147
+ * @description Whether the repository is private.
3148
+ */
3149
+ private: boolean;
3150
+ };
3304
3151
  /**
3305
3152
  * GithubUser
3306
3153
  * @description This is a full user account. It's the most amount of info we need to represent a GitHub user.
@@ -3481,7 +3328,7 @@ interface components {
3481
3328
  * Teams
3482
3329
  * @description The organization's teams.
3483
3330
  */
3484
- teams: components['schemas']['LinearTeamSummary'][];
3331
+ teams: components['schemas']['LinearTeam'][];
3485
3332
  };
3486
3333
  /**
3487
3334
  * LinearIssueAction
@@ -3489,378 +3336,109 @@ interface components {
3489
3336
  */
3490
3337
  LinearIssueAction: 'opened';
3491
3338
  /**
3492
- * LinearTeamSummary
3493
- * @description One team in the connected Linear organization.
3494
- */
3495
- LinearTeamSummary: {
3496
- /**
3497
- * Id
3498
- * @description The Linear team id.
3499
- */
3500
- id: string;
3501
- /**
3502
- * Is Enabled
3503
- * @description Whether Ellipsis is enabled for this team.
3504
- */
3505
- is_enabled: boolean;
3506
- /**
3507
- * Key
3508
- * @description The team's short key (issue prefix).
3509
- */
3510
- key?: string | null;
3511
- /**
3512
- * Name
3513
- * @description The team's display name.
3514
- */
3515
- name: string;
3516
- };
3517
- /**
3518
- * LinkedGithubIdentity
3519
- * @description The GitHub identity linked to a Slack member.
3520
- */
3521
- LinkedGithubIdentity: {
3522
- /**
3523
- * Id
3524
- * @description The linked GitHub account id.
3525
- */
3526
- id: number;
3527
- /**
3528
- * Login
3529
- * @description The linked GitHub login, if known.
3530
- */
3531
- login?: string | null;
3532
- };
3533
- /**
3534
- * LinkedSlackIdentity
3535
- * @description The Slack identity linked to a GitHub member.
3536
- */
3537
- LinkedSlackIdentity: {
3538
- /**
3539
- * Slack Email
3540
- * @description The linked Slack user's email, if known.
3541
- */
3542
- slack_email?: string | null;
3543
- /**
3544
- * Slack User Id
3545
- * @description The linked Slack user id.
3546
- */
3547
- slack_user_id: string;
3548
- };
3549
- /**
3550
- * ListAgentConfigsResponse
3551
- * @description The caller's saved agent configs.
3552
- */
3553
- ListAgentConfigsResponse: {
3554
- /**
3555
- * Configs
3556
- * @description Saved agent configs.
3557
- */
3558
- configs: components['schemas']['SavedAgentConfig'][];
3559
- };
3560
- /**
3561
- * ListAgentDefaultsV1Response
3562
- * @description The account's default-agent settings.
3563
- */
3564
- ListAgentDefaultsV1Response: {
3565
- /**
3566
- * Defaults
3567
- * @description The configured defaults.
3568
- */
3569
- defaults: components['schemas']['AgentDefaultV1'][];
3570
- };
3571
- /**
3572
- * ListAgentSessionsResponse
3573
- * @description A list of sessions in the lean wire shape.
3574
- */
3575
- ListAgentSessionsResponse: {
3576
- /**
3577
- * Sessions
3578
- * @description Lean wire rows — the same shape GET /sessions/{id} and the stream's session frames carry. The heavy blobs (config snapshot, input/output) live on the detail endpoints.
3579
- */
3580
- sessions: components['schemas']['AgentSessionWire'][];
3581
- };
3582
- /**
3583
- * ListAgentTemplatesResponse
3584
- * @description The built-in agent templates.
3585
- */
3586
- ListAgentTemplatesResponse: {
3587
- /**
3588
- * Templates
3589
- * @description The available templates.
3590
- */
3591
- templates: components['schemas']['AgentTemplate'][];
3592
- /**
3593
- * Walkthrough Yaml
3594
- * @description A fully-populated example agent config, for display in setup walkthroughs. Not a template to run as-is.
3595
- */
3596
- walkthrough_yaml: string;
3597
- };
3598
- /**
3599
- * ListAlertsResponse
3600
- * @description A list of alerts for the caller's organization.
3601
- */
3602
- ListAlertsResponse: {
3603
- /**
3604
- * Alerts
3605
- * @description The matching alerts.
3606
- */
3607
- alerts: components['schemas']['Alert'][];
3608
- };
3609
- /**
3610
- * ListFilesResponse
3611
- * @description The calling account's files, newest first. Metadata only — fetch an
3612
- * individual file to get a download URL.
3613
- */
3614
- ListFilesResponse: {
3615
- /**
3616
- * Files
3617
- * @description The account's files, newest first.
3618
- */
3619
- files: components['schemas']['FileView'][];
3620
- };
3621
- /**
3622
- * ListGithubMembersResponse
3623
- * @description The members of the account's GitHub organization.
3624
- */
3625
- ListGithubMembersResponse: {
3626
- /**
3627
- * Members
3628
- * @description The organization's members, sorted by login.
3629
- */
3630
- members: components['schemas']['GithubMemberSummary'][];
3631
- };
3632
- /**
3633
- * ListGithubRepositoriesResponse
3634
- * @description The repositories connected to the account's GitHub installation.
3635
- */
3636
- ListGithubRepositoriesResponse: {
3637
- /**
3638
- * Repositories
3639
- * @description The connected repositories.
3640
- */
3641
- repositories: components['schemas']['RepositorySummary'][];
3642
- };
3643
- /**
3644
- * ListLinearTeamsResponse
3645
- * @description The teams in the connected Linear organization.
3646
- */
3647
- ListLinearTeamsResponse: {
3648
- /**
3649
- * Organization Id
3650
- * @description The Linear organization id.
3651
- */
3652
- organization_id: string;
3653
- /**
3654
- * Teams
3655
- * @description The organization's teams.
3656
- */
3657
- teams: components['schemas']['LinearTeamSummary'][];
3658
- };
3659
- /**
3660
- * ListMemoriesWireResponse
3661
- * @description The organization's memories: the rendered index a reader scans, plus the
3662
- * same entries structured. Content is fetched per memory.
3663
- */
3664
- ListMemoriesWireResponse: {
3665
- /**
3666
- * Index
3667
- * @description The memories rendered as a markdown index — one line per memory carrying its id, path, and description, grouped by top-level prefix. Read this, then fetch the ids that matter.
3668
- */
3669
- index: string;
3670
- /**
3671
- * Memories
3672
- * @description The same memories as structured entries, ordered by path.
3673
- */
3674
- memories: components['schemas']['MemoryStubWire'][];
3675
- };
3676
- /**
3677
- * ListReviewsResponse
3678
- * @description Reviews matching the query, newest first. `findings` are omitted
3679
- * (counters only); automatically-triggered reviews are included, so this
3680
- * answers "show me every review on this pull request".
3681
- */
3682
- ListReviewsResponse: {
3683
- /**
3684
- * Reviews
3685
- * @description The matching reviews.
3686
- */
3687
- reviews: components['schemas']['Review'][];
3688
- };
3689
- /**
3690
- * ListSentryOrganizationsResponse
3691
- * @description The connected Sentry organizations; empty if none are connected.
3692
- */
3693
- ListSentryOrganizationsResponse: {
3694
- /**
3695
- * Organizations
3696
- * @description The connected Sentry organizations.
3697
- */
3698
- organizations: components['schemas']['SentryOrganizationSummary'][];
3699
- };
3700
- /**
3701
- * ListSessionExecutionsResponse
3702
- * @description A session's executions with the launch context each was given.
3703
- */
3704
- ListSessionExecutionsResponse: {
3705
- /**
3706
- * Executions
3707
- * @description The session's executions (initial start, cold wakes, infra retries), ordered by execution_index. Each carries the launch context the harness was given: system_prompt_append (the text appended to Claude Code's default system prompt), the initial query, and the model.
3708
- */
3709
- executions: components['schemas']['SessionExecutionWire'][];
3710
- };
3711
- /**
3712
- * ListSessionRecordsResponse
3713
- * @description A session's stored transcript records, plus its pending inbox
3714
- * messages.
3339
+ * LinearTeam
3340
+ * @description One team in the connected Linear organization.
3715
3341
  */
3716
- ListSessionRecordsResponse: {
3342
+ LinearTeam: {
3717
3343
  /**
3718
- * Earliest Feed Seq
3719
- * @description The retention head: the lowest feed_seq still stored, or null when the session has no stored records.
3344
+ * Id
3345
+ * @description The Linear team id.
3720
3346
  */
3721
- earliest_feed_seq?: number | null;
3347
+ id: string;
3722
3348
  /**
3723
- * Has More
3724
- * @description Whether records past this page remain (only meaningful with `limit`).
3725
- * @default false
3349
+ * Is Enabled
3350
+ * @description Whether Ellipsis is enabled for this team.
3726
3351
  */
3727
- has_more: boolean;
3352
+ is_enabled: boolean;
3728
3353
  /**
3729
- * Messages
3730
- * @description The open inbox slice (pending rows only): queued messages not yet consumed by a turn. Delivered history comes from records plus the /turns endpoint.
3731
- * @default []
3354
+ * Key
3355
+ * @description The team's short key (issue prefix).
3732
3356
  */
3733
- messages: components['schemas']['SessionMessageWire'][];
3357
+ key?: string | null;
3734
3358
  /**
3735
- * Records
3736
- * @description The session's records (transcript + lifecycle), ordered by feed_seq. Clients render each by (source, record_format, record_type). Pagination is opt-in (`after_seq` + `limit`); a bare call returns the full retained transcript.
3359
+ * Name
3360
+ * @description The team's display name.
3737
3361
  */
3738
- records: components['schemas']['SessionRecordWire'][];
3362
+ name: string;
3739
3363
  };
3740
3364
  /**
3741
- * ListSessionTurnsResponse
3742
- * @description A session's conversation structure: its turns and inbox messages.
3743
- * Both lists are empty for single-shot sessions.
3365
+ * LinearTeamsListResponse
3366
+ * @description The teams in the connected Linear organization.
3744
3367
  */
3745
- ListSessionTurnsResponse: {
3368
+ LinearTeamsListResponse: {
3746
3369
  /**
3747
- * Messages
3748
- * @description The whole inbox oldest-first (turn 0's query included), joined to the consuming turn via delivered_turn_id (null = still pending).
3370
+ * Organization Id
3371
+ * @description The Linear organization id.
3749
3372
  */
3750
- messages: components['schemas']['SessionMessage'][];
3373
+ organization_id: string;
3751
3374
  /**
3752
- * Turns
3753
- * @description The session's turns, ordered by turn_index.
3375
+ * Teams
3376
+ * @description The organization's teams.
3754
3377
  */
3755
- turns: components['schemas']['AgentTurn'][];
3378
+ teams: components['schemas']['LinearTeam'][];
3756
3379
  };
3757
3380
  /**
3758
- * ListSlackChannelsResponse
3759
- * @description The channels the Ellipsis app can see in the connected Slack
3760
- * workspace.
3381
+ * LinkedGithubIdentity
3382
+ * @description The GitHub identity linked to a Slack member.
3761
3383
  */
3762
- ListSlackChannelsResponse: {
3763
- /**
3764
- * Channels
3765
- * @description The workspace's channels.
3766
- */
3767
- channels: components['schemas']['SlackChannelSummary'][];
3384
+ LinkedGithubIdentity: {
3768
3385
  /**
3769
- * Team Id
3770
- * @description The Slack workspace (team) id.
3386
+ * Id
3387
+ * @description The linked GitHub account id.
3771
3388
  */
3772
- team_id: string;
3389
+ id: number;
3773
3390
  /**
3774
- * Team Name
3775
- * @description The Slack workspace name.
3391
+ * Login
3392
+ * @description The linked GitHub login, if known.
3776
3393
  */
3777
- team_name: string;
3394
+ login?: string | null;
3778
3395
  };
3779
3396
  /**
3780
- * ListSlackMembersResponse
3781
- * @description The human members of the connected Slack workspace (bots excluded).
3397
+ * LinkedSlackIdentity
3398
+ * @description The Slack identity linked to a GitHub member.
3782
3399
  */
3783
- ListSlackMembersResponse: {
3784
- /**
3785
- * Members
3786
- * @description The workspace's human members.
3787
- */
3788
- members: components['schemas']['SlackMemberSummary'][];
3400
+ LinkedSlackIdentity: {
3789
3401
  /**
3790
- * Team Id
3791
- * @description The Slack workspace (team) id.
3402
+ * Slack Email
3403
+ * @description The linked Slack user's email, if known.
3792
3404
  */
3793
- team_id: string;
3405
+ slack_email?: string | null;
3794
3406
  /**
3795
- * Team Name
3796
- * @description The Slack workspace name.
3407
+ * Slack User Id
3408
+ * @description The linked Slack user id.
3797
3409
  */
3798
- team_name: string;
3410
+ slack_user_id: string;
3799
3411
  };
3800
3412
  /**
3801
- * LogSearchHit
3802
- * @description One session record matching a Logs search query, denormalized with just
3803
- * enough session context to render a result row and deep-link to the session.
3804
- * The full record/transcript hydrates from the session detail page.
3413
+ * MemoriesListResponse
3414
+ * @description The organization's memories: the rendered index a reader scans, plus the
3415
+ * same entries structured. Content is fetched per memory.
3805
3416
  */
3806
- LogSearchHit: {
3807
- /** Agent Config Id */
3808
- agent_config_id?: string | null;
3809
- /** Agent Session Id */
3810
- agent_session_id: string;
3811
- /** Attribution Id */
3812
- attribution_id?: string | null;
3813
- attribution_type?: components['schemas']['AttributionType'] | null;
3417
+ MemoriesListResponse: {
3814
3418
  /**
3815
- * Created At
3816
- * Format: date-time
3419
+ * Index
3420
+ * @description The memories rendered as a markdown index — one line per memory carrying its id, path, and description, grouped by top-level prefix. Read this, then fetch the ids that matter.
3817
3421
  */
3818
- created_at: string;
3819
- /** Id */
3820
- id: string;
3821
- /** Output Prs */
3822
- output_prs?: components['schemas']['AgentSessionPr'][] | null;
3823
- /** Record Type */
3824
- record_type: string;
3825
- /** Session Execution Id */
3826
- session_execution_id: string | null;
3827
- session_source?: components['schemas']['AgentSessionSource'] | null;
3828
- session_status?: components['schemas']['AgentSessionStatus'] | null;
3829
- /** Snippet */
3830
- snippet: string;
3831
- /** Stream Seq */
3832
- stream_seq: number;
3833
- };
3834
- /**
3835
- * MemoryActorType
3836
- * @enum {string}
3837
- */
3838
- MemoryActorType: 'agent_session' | 'api_key' | 'user';
3839
- /**
3840
- * MemoryActorWire
3841
- * @description Who wrote a memory, derived from their credential.
3842
- */
3843
- MemoryActorWire: {
3422
+ index: string;
3844
3423
  /**
3845
- * Id
3846
- * @description The writer's identifier: the agent session id, the API key id, or the GitHub account id, matching `type`.
3424
+ * Memories
3425
+ * @description The same memories as structured entries, ordered by path.
3847
3426
  */
3848
- id: string;
3849
- /** @description The kind of credential that wrote the memory: agent_session (an agent writing from inside its sandbox), api_key, or user. */
3850
- type: components['schemas']['MemoryActorType'];
3427
+ memories: components['schemas']['MemorySummary'][];
3851
3428
  };
3852
3429
  /**
3853
- * MemoryStubWire
3854
- * @description One entry in the index: a memory with every field except `content`.
3855
- *
3856
- * Content is the only omission, and it's the whole reason this shape exists —
3857
- * an account can hold 2,000 memories of 100 KB each, so a listing that carried
3858
- * content would be a 200 MB response.
3430
+ * Memory
3431
+ * @description One memory, including its full markdown content.
3859
3432
  */
3860
- MemoryStubWire: {
3433
+ Memory: {
3434
+ /**
3435
+ * Content
3436
+ * @description The memory's markdown content.
3437
+ */
3438
+ content: string;
3861
3439
  /**
3862
3440
  * Content Sha256
3863
- * @description Hex SHA-256 of the content, usable as an `if_sha256` precondition.
3441
+ * @description Hex SHA-256 of the content, computed server-side. Pass it back as `if_sha256` on an edit or delete to fail instead of overwriting a change someone else made in the meantime.
3864
3442
  */
3865
3443
  content_sha256: string;
3866
3444
  /**
@@ -3870,10 +3448,10 @@ interface components {
3870
3448
  */
3871
3449
  created_at: string;
3872
3450
  /** @description The credential that created the memory. */
3873
- created_by: components['schemas']['MemoryActorWire'];
3451
+ created_by: components['schemas']['MemoryActor'];
3874
3452
  /**
3875
3453
  * Description
3876
- * @description The one-line summary of the memory.
3454
+ * @description The one-line summary shown in the index. This is what a reader sees before deciding to open the memory.
3877
3455
  */
3878
3456
  description: string;
3879
3457
  /**
@@ -3883,7 +3461,7 @@ interface components {
3883
3461
  id: string;
3884
3462
  /**
3885
3463
  * Path
3886
- * @description The memory's address within the organization.
3464
+ * @description The memory's address, unique within the organization, e.g. repos/acme/deploys.md.
3887
3465
  */
3888
3466
  path: string;
3889
3467
  /**
@@ -3893,21 +3471,46 @@ interface components {
3893
3471
  */
3894
3472
  updated_at: string;
3895
3473
  /** @description The credential that last wrote the memory. */
3896
- updated_by: components['schemas']['MemoryActorWire'];
3474
+ updated_by: components['schemas']['MemoryActor'];
3897
3475
  };
3898
3476
  /**
3899
- * MemoryWire
3900
- * @description One memory, including its full markdown content.
3477
+ * MemoryActor
3478
+ * @description Who wrote a memory, derived from their credential.
3901
3479
  */
3902
- MemoryWire: {
3480
+ MemoryActor: {
3903
3481
  /**
3904
- * Content
3905
- * @description The memory's markdown content.
3482
+ * Id
3483
+ * @description The writer's identifier: the agent session id, the API key id, or the GitHub account id, matching `type`.
3906
3484
  */
3907
- content: string;
3485
+ id: string;
3486
+ /** @description The kind of credential that wrote the memory: agent_session (an agent writing from inside its sandbox), api_key, or user. */
3487
+ type: components['schemas']['MemoryActorType'];
3488
+ };
3489
+ /**
3490
+ * MemoryActorType
3491
+ * @enum {string}
3492
+ */
3493
+ MemoryActorType: 'agent_session' | 'api_key' | 'user';
3494
+ /**
3495
+ * MemoryResponse
3496
+ * @description One memory.
3497
+ */
3498
+ MemoryResponse: {
3499
+ /** @description The memory. */
3500
+ memory: components['schemas']['Memory'];
3501
+ };
3502
+ /**
3503
+ * MemorySummary
3504
+ * @description One entry in the index: a memory with every field except `content`.
3505
+ *
3506
+ * Content is the only omission, and it's the whole reason this shape exists —
3507
+ * an account can hold 2,000 memories of 100 KB each, so a listing that carried
3508
+ * content would be a 200 MB response.
3509
+ */
3510
+ MemorySummary: {
3908
3511
  /**
3909
3512
  * Content Sha256
3910
- * @description Hex SHA-256 of the content, computed server-side. Pass it back as `if_sha256` on an edit or delete to fail instead of overwriting a change someone else made in the meantime.
3513
+ * @description Hex SHA-256 of the content, usable as an `if_sha256` precondition.
3911
3514
  */
3912
3515
  content_sha256: string;
3913
3516
  /**
@@ -3917,10 +3520,10 @@ interface components {
3917
3520
  */
3918
3521
  created_at: string;
3919
3522
  /** @description The credential that created the memory. */
3920
- created_by: components['schemas']['MemoryActorWire'];
3523
+ created_by: components['schemas']['MemoryActor'];
3921
3524
  /**
3922
3525
  * Description
3923
- * @description The one-line summary shown in the index. This is what a reader sees before deciding to open the memory.
3526
+ * @description The one-line summary of the memory.
3924
3527
  */
3925
3528
  description: string;
3926
3529
  /**
@@ -3930,7 +3533,7 @@ interface components {
3930
3533
  id: string;
3931
3534
  /**
3932
3535
  * Path
3933
- * @description The memory's address, unique within the organization, e.g. repos/acme/deploys.md.
3536
+ * @description The memory's address within the organization.
3934
3537
  */
3935
3538
  path: string;
3936
3539
  /**
@@ -3940,7 +3543,18 @@ interface components {
3940
3543
  */
3941
3544
  updated_at: string;
3942
3545
  /** @description The credential that last wrote the memory. */
3943
- updated_by: components['schemas']['MemoryActorWire'];
3546
+ updated_by: components['schemas']['MemoryActor'];
3547
+ };
3548
+ /** Model */
3549
+ Model: {
3550
+ /** Display Name */
3551
+ display_name: string;
3552
+ /** Id */
3553
+ id: string;
3554
+ /** Is Default Agent Model */
3555
+ is_default_agent_model: boolean;
3556
+ manufacturer: components['schemas']['ModelManufacturer'];
3557
+ rate_card: components['schemas']['ModelRateCardApi'];
3944
3558
  };
3945
3559
  /**
3946
3560
  * ModelManufacturer
@@ -4013,6 +3627,11 @@ interface components {
4013
3627
  */
4014
3628
  tokens: number;
4015
3629
  };
3630
+ /** ModelsListResponse */
3631
+ ModelsListResponse: {
3632
+ /** Models */
3633
+ models: components['schemas']['Model'][];
3634
+ };
4016
3635
  /**
4017
3636
  * OrganizationRole
4018
3637
  * @enum {string}
@@ -4278,16 +3897,16 @@ interface components {
4278
3897
  repository?: string | null;
4279
3898
  };
4280
3899
  /**
4281
- * PutSandboxVariablesRequest
4282
- * @description Store environment variables for the account's sandboxes. Each variable
4283
- * is upserted by name: existing names are overwritten.
3900
+ * PutSecretsRequest
3901
+ * @description Store secrets for the account's sandboxes. Each secret is upserted by
3902
+ * name: existing names are overwritten.
4284
3903
  */
4285
- PutSandboxVariablesRequest: {
3904
+ PutSecretsRequest: {
4286
3905
  /**
4287
- * Variables
4288
- * @description The variables to store.
3906
+ * Secrets
3907
+ * @description The secrets to store.
4289
3908
  */
4290
- variables: components['schemas']['EnvironmentVariableInput'][];
3909
+ secrets: components['schemas']['SecretInput'][];
4291
3910
  };
4292
3911
  /** ReactIssue */
4293
3912
  ReactIssue: {
@@ -4369,10 +3988,10 @@ interface components {
4369
3988
  /** ReactSlackChannel */
4370
3989
  ReactSlackChannel: Record<string, never>;
4371
3990
  /**
4372
- * RecentPullRequestDTO
3991
+ * RecentPullRequest
4373
3992
  * @description One pull request in the recent-activity table.
4374
3993
  */
4375
- RecentPullRequestDTO: {
3994
+ RecentPullRequest: {
4376
3995
  /**
4377
3996
  * Additions
4378
3997
  * @description Lines added, when known.
@@ -4455,6 +4074,71 @@ interface components {
4455
4074
  */
4456
4075
  user_login: string;
4457
4076
  };
4077
+ /**
4078
+ * RecordHit
4079
+ * @description One session-log record matching a search query, denormalized with just
4080
+ * enough session context to render a result row and deep-link to the
4081
+ * session.
4082
+ */
4083
+ RecordHit: {
4084
+ /**
4085
+ * Attribution Id
4086
+ * @description The actor the session is attributed to; the key into the response's attributed_users map for github_user attributions.
4087
+ */
4088
+ attribution_id?: string | null;
4089
+ /** @description What kind of actor the session is attributed to. Only github_user attributions appear in the response's attributed_users map. */
4090
+ attribution_type?: components['schemas']['AttributionType'] | null;
4091
+ /**
4092
+ * Config Id
4093
+ * @description The agent config the session ran from, when it ran from a stored config.
4094
+ */
4095
+ config_id?: string | null;
4096
+ /**
4097
+ * Created At
4098
+ * Format: date-time
4099
+ * @description When the record was written.
4100
+ */
4101
+ created_at: string;
4102
+ /**
4103
+ * Execution Id
4104
+ * @description The session execution that produced the record, or null for session-scoped lifecycle records.
4105
+ */
4106
+ execution_id?: string | null;
4107
+ /**
4108
+ * Id
4109
+ * @description The matching record's unique identifier.
4110
+ */
4111
+ id: string;
4112
+ /**
4113
+ * Output Prs
4114
+ * @description Pull requests the session created, so a result row can show what it shipped without fetching the session.
4115
+ */
4116
+ output_prs?: components['schemas']['AgentSessionPr'][] | null;
4117
+ /**
4118
+ * Record Type
4119
+ * @description The record's event type.
4120
+ */
4121
+ record_type: string;
4122
+ /**
4123
+ * Session Id
4124
+ * @description The session the record belongs to.
4125
+ */
4126
+ session_id: string;
4127
+ /** @description Where the matching session came from. */
4128
+ session_source?: components['schemas']['AgentSessionSource'] | null;
4129
+ /** @description The matching session's status. */
4130
+ session_status?: components['schemas']['AgentSessionStatus'] | null;
4131
+ /**
4132
+ * Snippet
4133
+ * @description A short window of the indexed text around the first match.
4134
+ */
4135
+ snippet: string;
4136
+ /**
4137
+ * Stream Seq
4138
+ * @description The record's position within its execution's stream.
4139
+ */
4140
+ stream_seq: number;
4141
+ };
4458
4142
  /**
4459
4143
  * RecordSource
4460
4144
  * @description `session_records.source` — the client render switch. `lifecycle` rows are
@@ -4511,59 +4195,21 @@ interface components {
4511
4195
  };
4512
4196
  RepositoryFilter: {
4513
4197
  /**
4514
- * Exclude
4515
- * @default []
4516
- */
4517
- exclude: string[];
4518
- /**
4519
- * Include
4520
- * @default []
4521
- */
4522
- include: string[];
4523
- } | string[];
4524
- /**
4525
- * RepositorySelection
4526
- * @enum {string}
4527
- */
4528
- RepositorySelection: 'all' | 'selected';
4529
- /**
4530
- * RepositorySummary
4531
- * @description A repository connected to the account's GitHub installation — a valid
4532
- * target for `repository` when creating an agent config and for the
4533
- * repository lists inside an agent config.
4534
- */
4535
- RepositorySummary: {
4536
- /**
4537
- * Default Branch
4538
- * @description The repository's default branch.
4539
- */
4540
- default_branch?: string | null;
4541
- /**
4542
- * Description
4543
- * @description The repository's description on GitHub.
4544
- */
4545
- description?: string | null;
4546
- /**
4547
- * Full Name
4548
- * @description The repository's full "owner/name" identifier.
4549
- */
4550
- full_name: string;
4551
- /**
4552
- * Id
4553
- * @description The repository's GitHub id.
4554
- */
4555
- id: number;
4556
- /**
4557
- * Name
4558
- * @description The repository name, without the owner.
4198
+ * Exclude
4199
+ * @default []
4559
4200
  */
4560
- name: string;
4201
+ exclude: string[];
4561
4202
  /**
4562
- * Private
4563
- * @description Whether the repository is private.
4203
+ * Include
4204
+ * @default []
4564
4205
  */
4565
- private: boolean;
4566
- };
4206
+ include: string[];
4207
+ } | string[];
4208
+ /**
4209
+ * RepositorySelection
4210
+ * @enum {string}
4211
+ */
4212
+ RepositorySelection: 'all' | 'selected';
4567
4213
  /**
4568
4214
  * ResolvedReviewScope
4569
4215
  * @description The range a minted review actually covers, read back off the (possibly
@@ -5348,6 +4994,30 @@ interface components {
5348
4994
  */
5349
4995
  reviews: number;
5350
4996
  };
4997
+ /**
4998
+ * ReviewsListResponse
4999
+ * @description A page of reviews matching the query, newest first. `findings` are
5000
+ * omitted (counters only); automatically-triggered reviews are included, so
5001
+ * this answers "show me every review on this pull request".
5002
+ */
5003
+ ReviewsListResponse: {
5004
+ /**
5005
+ * Has More
5006
+ * @description Whether more results exist past this page.
5007
+ * @default false
5008
+ */
5009
+ has_more: boolean;
5010
+ /**
5011
+ * Next Cursor
5012
+ * @description Pass as `cursor` to fetch the next page. Null on the last page. Opaque — echo it back rather than parsing it.
5013
+ */
5014
+ next_cursor?: string | null;
5015
+ /**
5016
+ * Reviews
5017
+ * @description The matching reviews.
5018
+ */
5019
+ reviews: components['schemas']['Review'][];
5020
+ };
5351
5021
  /**
5352
5022
  * ReviewsTotals
5353
5023
  * @description Window-wide review totals, computed over the full set rather than the
@@ -5393,147 +5063,340 @@ interface components {
5393
5063
  * Thumbs Up
5394
5064
  * @description Thumbs-up reactions across the window's review comments.
5395
5065
  */
5396
- thumbs_up: number;
5397
- };
5398
- /**
5399
- * RunStatus
5400
- * @description What the current (or most recent) execution is doing (backs `run`).
5401
- * @enum {string}
5402
- */
5403
- RunStatus: 'scheduled' | 'starting' | 'working' | 'waiting' | 'done' | 'failed' | 'stopped' | 'cancelled' | 'retrying';
5404
- /**
5405
- * SandboxEnvironmentVariableSummary
5406
- * @description A stored variable WITHOUT its value. Values are write-only: once
5407
- * uploaded they are injected into sandboxes but never returned to a caller.
5408
- */
5409
- SandboxEnvironmentVariableSummary: {
5066
+ thumbs_up: number;
5067
+ };
5068
+ /**
5069
+ * RunStatus
5070
+ * @description What the current (or most recent) execution is doing (backs `run`).
5071
+ * @enum {string}
5072
+ */
5073
+ RunStatus: 'scheduled' | 'starting' | 'working' | 'waiting' | 'done' | 'failed' | 'stopped' | 'cancelled' | 'retrying';
5074
+ /**
5075
+ * Secret
5076
+ * @description A stored variable WITHOUT its value. Values are write-only: once
5077
+ * uploaded they are injected into sandboxes but never returned to a caller.
5078
+ */
5079
+ Secret: {
5080
+ /**
5081
+ * Created At
5082
+ * Format: date-time
5083
+ * @description When the variable was created.
5084
+ */
5085
+ created_at: string;
5086
+ /**
5087
+ * Name
5088
+ * @description The variable name.
5089
+ */
5090
+ name: string;
5091
+ /**
5092
+ * Updated At
5093
+ * Format: date-time
5094
+ * @description When the variable's value was last updated.
5095
+ */
5096
+ updated_at: string;
5097
+ };
5098
+ /**
5099
+ * SecretInput
5100
+ * @description One environment variable to store.
5101
+ */
5102
+ SecretInput: {
5103
+ /**
5104
+ * Name
5105
+ * @description The variable name. Must start with a letter or underscore and contain only letters, digits, and underscores.
5106
+ */
5107
+ name: string;
5108
+ /**
5109
+ * Value
5110
+ * @description The variable value. Write-only: it is injected into sandboxes but never returned by the API.
5111
+ */
5112
+ value: string;
5113
+ };
5114
+ /**
5115
+ * SecretsListResponse
5116
+ * @description The account's sandbox environment variables, names and timestamps only —
5117
+ * values are never returned.
5118
+ */
5119
+ SecretsListResponse: {
5120
+ /**
5121
+ * Secrets
5122
+ * @description The stored secrets.
5123
+ */
5124
+ secrets: components['schemas']['Secret'][];
5125
+ };
5126
+ /**
5127
+ * SendSessionMessageRequest
5128
+ * @description A human message posted into a durable session's conversation.
5129
+ * Delivered to the live agent at the next turn boundary, or wakes the
5130
+ * session when idle.
5131
+ */
5132
+ SendSessionMessageRequest: {
5133
+ /**
5134
+ * Idempotency Key
5135
+ * @description Optional retry-safety key, unique per (session, key): a retry with the same key returns the original message — no duplicate message, no double turn, no double spend. The SDK auto-generates one per send.
5136
+ */
5137
+ idempotency_key?: string | null;
5138
+ /**
5139
+ * Message
5140
+ * @description The message text.
5141
+ */
5142
+ message: string;
5143
+ };
5144
+ /**
5145
+ * SentryAction
5146
+ * @enum {string}
5147
+ */
5148
+ SentryAction: 'issue_alert' | 'metric_alert';
5149
+ /**
5150
+ * SentryOrganizationSummary
5151
+ * @description One connected Sentry organization.
5152
+ */
5153
+ SentryOrganizationSummary: {
5154
+ /**
5155
+ * Integration Id
5156
+ * @description The Sentry integration id.
5157
+ */
5158
+ integration_id: string;
5159
+ /**
5160
+ * Organization Slug
5161
+ * @description The Sentry organization's slug.
5162
+ */
5163
+ organization_slug: string;
5164
+ };
5165
+ /**
5166
+ * SentryOrganizationsListResponse
5167
+ * @description The connected Sentry organizations; empty if none are connected.
5168
+ */
5169
+ SentryOrganizationsListResponse: {
5170
+ /**
5171
+ * Organizations
5172
+ * @description The connected Sentry organizations.
5173
+ */
5174
+ organizations: components['schemas']['SentryOrganizationSummary'][];
5175
+ };
5176
+ /**
5177
+ * Session
5178
+ * @description An agent session: one conversation with an agent, from trigger to
5179
+ * terminal state. Returned by `GET /sessions/{id}` and carried by the
5180
+ * session stream's `session`/`snapshot` frames — REST and stream never
5181
+ * disagree about what a session looks like.
5182
+ */
5183
+ Session: {
5184
+ /** @description The GitHub user the session is attributed to, when the attribution is a GitHub user. */
5185
+ attributed_user?: components['schemas']['GithubAccountSnippet'] | null;
5186
+ /**
5187
+ * Attribution Id
5188
+ * @description Identifier of the principal the session is attributed to.
5189
+ */
5190
+ attribution_id?: string | null;
5191
+ /** @description Kind of principal the session is attributed to (e.g. a GitHub user or an API key). */
5192
+ attribution_type?: components['schemas']['AttributionType'] | null;
5193
+ /**
5194
+ * Client Version
5195
+ * @description Version of the client that started the session, if reported.
5196
+ */
5197
+ client_version?: string | null;
5198
+ /**
5199
+ * Config Id
5200
+ * @description Identifier of the saved agent config the session ran on, if any.
5201
+ */
5202
+ config_id?: string | null;
5203
+ /**
5204
+ * Config Override
5205
+ * @description The partial-config diff applied for this run; null when the config was unmodified.
5206
+ */
5207
+ config_override?: {
5208
+ [key: string]: unknown;
5209
+ } | null;
5210
+ /**
5211
+ * Context Repository
5212
+ * @description The "owner/name" repository context the session was started in, if any.
5213
+ */
5214
+ context_repository?: string | null;
5215
+ /**
5216
+ * Cost Fee
5217
+ * @description Platform fee in millicents.
5218
+ * @default 0
5219
+ */
5220
+ cost_fee: number;
5221
+ /**
5222
+ * Cost Sandbox Cpu
5223
+ * @description Sandbox CPU spend in millicents.
5224
+ * @default 0
5225
+ */
5226
+ cost_sandbox_cpu: number;
5227
+ /**
5228
+ * Cost Sandbox Memory
5229
+ * @description Sandbox memory spend in millicents.
5230
+ * @default 0
5231
+ */
5232
+ cost_sandbox_memory: number;
5233
+ /**
5234
+ * Cost Tokens
5235
+ * @description Token spend in millicents. The session's grand total cost is the sum of cost_tokens, cost_sandbox_cpu, cost_sandbox_memory, and cost_fee.
5236
+ */
5237
+ cost_tokens: number;
5238
+ /**
5239
+ * Created At
5240
+ * Format: date-time
5241
+ * @description When the session was created.
5242
+ */
5243
+ created_at: string;
5244
+ /** @description How the session's config was resolved from the account's defaults, when no explicit config was given. */
5245
+ default_resolution?: components['schemas']['DefaultResolution'] | null;
5246
+ /** @description How the session ended; null until it is terminal. */
5247
+ exit_status?: components['schemas']['AgentSessionExitStatus'] | null;
5248
+ /** @description The coding-agent harness the session runs on. */
5249
+ harness: components['schemas']['Harness'];
5250
+ /**
5251
+ * Id
5252
+ * @description Unique identifier of the session.
5253
+ */
5254
+ id: string;
5255
+ /**
5256
+ * Last Activity At
5257
+ * @description When the session last showed activity.
5258
+ */
5259
+ last_activity_at?: string | null;
5260
+ /**
5261
+ * Last Message At
5262
+ * @description When the session last received a message.
5263
+ */
5264
+ last_message_at?: string | null;
5265
+ /**
5266
+ * Live Summary
5267
+ * @description A live summary of the session's progress while it runs.
5268
+ */
5269
+ live_summary?: string | null;
5270
+ /**
5271
+ * Metadata
5272
+ * @description Caller-supplied metadata key-value pairs.
5273
+ * @default {}
5274
+ */
5275
+ metadata: {
5276
+ [key: string]: string;
5277
+ };
5278
+ /**
5279
+ * Output Prs
5280
+ * @description Pull requests the session created or updated.
5281
+ */
5282
+ output_prs?: components['schemas']['AgentSessionPr'][] | null;
5283
+ /** @description How this session relates to its parent session, if any. */
5284
+ parent_kind?: components['schemas']['ParentKind'] | null;
5285
+ /**
5286
+ * Parent Session Id
5287
+ * @description Identifier of the parent session that spawned this one, if any.
5288
+ */
5289
+ parent_session_id?: string | null;
5290
+ /**
5291
+ * Prompt
5292
+ * @description The per-session prompt the session was started with.
5293
+ */
5294
+ prompt?: string | null;
5295
+ /** @description Whether a client may send this session a message and, when it may not, the reason to show instead of a composer. */
5296
+ prompting: components['schemas']['SessionPrompting'];
5297
+ /**
5298
+ * Replayed From Session Id
5299
+ * @description Identifier of the original session this one was replayed from, if it was started via replay.
5300
+ */
5301
+ replayed_from_session_id?: string | null;
5302
+ /**
5303
+ * Resolved Budget Cents
5304
+ * @description The spend budget resolved for this session, in cents.
5305
+ */
5306
+ resolved_budget_cents: number;
5307
+ /** @description Where the resolved budget came from. */
5308
+ resolved_budget_source: components['schemas']['BudgetSource'];
5410
5309
  /**
5411
- * Created At
5412
- * Format: date-time
5413
- * @description When the variable was created.
5310
+ * Sandbox Id
5311
+ * @description Identifier of the sandbox the session runs in, if any.
5414
5312
  */
5415
- created_at: string;
5313
+ sandbox_id?: string | null;
5416
5314
  /**
5417
- * Name
5418
- * @description The variable name.
5315
+ * Session Key
5316
+ * @description Key identifying the durable conversation this session belongs to, or null for single-shot sessions.
5419
5317
  */
5420
- name: string;
5318
+ session_key?: string | null;
5319
+ /** @description Lifecycle state of the durable conversation, or null for sessions without one. */
5320
+ session_state?: components['schemas']['SessionState'] | null;
5321
+ /** @description Where the session came from (e.g. react, manual, api, cli, mention, cron, laptop). */
5322
+ source: components['schemas']['AgentSessionSource'];
5323
+ /** @description Execution status of the session. */
5324
+ status: components['schemas']['AgentSessionStatus'];
5421
5325
  /**
5422
- * Updated At
5423
- * Format: date-time
5424
- * @description When the variable's value was last updated.
5326
+ * Status Reason
5327
+ * @description Human-readable reason for the current status, when there is one.
5425
5328
  */
5426
- updated_at: string;
5427
- };
5428
- /** SavedAgentConfig */
5429
- SavedAgentConfig: {
5430
- agent_config: components['schemas']['AgentConfig'];
5431
- agent_config_source_details?: components['schemas']['AgentConfigSourceGithub'] | null;
5329
+ status_reason?: string | null;
5432
5330
  /**
5433
- * Created At
5434
- * Format: date-time
5331
+ * Stopped At
5332
+ * @description When a stop was requested, if one was.
5435
5333
  */
5436
- created_at: string;
5437
- /** Customer Id */
5438
- customer_id: string;
5334
+ stopped_at?: string | null;
5439
5335
  /**
5440
- * Deleted
5441
- * @default false
5336
+ * Stopped By
5337
+ * @description GitHub account id of the user who stopped the session, if known.
5442
5338
  */
5443
- deleted: boolean;
5444
- edited_by?: components['schemas']['GithubAccountSnippet'] | null;
5445
- /** Id */
5446
- id: string;
5339
+ stopped_by?: number | null;
5340
+ /** @description The GitHub user who stopped the session, if it was stopped. */
5341
+ stopped_by_user?: components['schemas']['GithubAccountSnippet'] | null;
5342
+ /** @description The public status projection; null for laptop-synced sessions. */
5343
+ surface?: components['schemas']['SessionSurface'] | null;
5447
5344
  /**
5448
- * Is Pull Request Head Preview
5449
- * @default false
5345
+ * Tokens Cache Creation
5346
+ * @description Tokens written to the prompt cache.
5347
+ * @default 0
5450
5348
  */
5451
- is_pull_request_head_preview: boolean;
5452
- /** Last Agent Session Created At */
5453
- last_agent_session_created_at?: string | null;
5454
- /** Last Agent Session Id */
5455
- last_agent_session_id?: string | null;
5456
- /** Last Sync Error */
5457
- last_sync_error?: string | null;
5458
- /** Last Synced Commit Sha */
5459
- last_synced_commit_sha?: string | null;
5460
- /** Pending Pull Request Url */
5461
- pending_pull_request_url?: string | null;
5349
+ tokens_cache_creation: number;
5462
5350
  /**
5463
- * Updated At
5464
- * Format: date-time
5351
+ * Tokens Cache Read
5352
+ * @description Tokens read from the prompt cache.
5353
+ * @default 0
5465
5354
  */
5466
- updated_at: string;
5467
- };
5468
- /**
5469
- * SearchSessionsWireResponse
5470
- * @description A page of session search results.
5471
- */
5472
- SearchSessionsWireResponse: {
5355
+ tokens_cache_read: number;
5473
5356
  /**
5474
- * Attributed Users
5475
- * @description GitHub account snippets for the user attributions among the results, keyed by attribution_id, so callers can render author logins and avatars.
5357
+ * Tokens Input
5358
+ * @description Input tokens used.
5359
+ * @default 0
5476
5360
  */
5477
- attributed_users: {
5478
- [key: string]: components['schemas']['GithubAccountSnippet'];
5479
- };
5361
+ tokens_input: number;
5480
5362
  /**
5481
- * Results
5482
- * @description The matching sessions, newest first.
5363
+ * Tokens Model
5364
+ * @description The model the token counts are attributed to.
5483
5365
  */
5484
- results: components['schemas']['SessionSearchResultWire'][];
5485
- };
5486
- /**
5487
- * SendSessionMessageRequest
5488
- * @description A human message posted into a durable session's conversation.
5489
- * Delivered to the live agent at the next turn boundary, or wakes the
5490
- * session when idle.
5491
- */
5492
- SendSessionMessageRequest: {
5366
+ tokens_model: string;
5493
5367
  /**
5494
- * Idempotency Key
5495
- * @description Optional retry-safety key, unique per (session, key): a retry with the same key returns the original message — no duplicate message, no double turn, no double spend. The SDK auto-generates one per send.
5368
+ * Tokens Output
5369
+ * @description Output tokens used.
5370
+ * @default 0
5496
5371
  */
5497
- idempotency_key?: string | null;
5372
+ tokens_output: number;
5498
5373
  /**
5499
- * Message
5500
- * @description The message text.
5374
+ * Tokens Total
5375
+ * @description Total tokens used by the session.
5376
+ * @default 0
5501
5377
  */
5502
- message: string;
5503
- };
5504
- /**
5505
- * SentryAction
5506
- * @enum {string}
5507
- */
5508
- SentryAction: 'issue_alert' | 'metric_alert';
5509
- /**
5510
- * SentryOrganizationSummary
5511
- * @description One connected Sentry organization.
5512
- */
5513
- SentryOrganizationSummary: {
5378
+ tokens_total: number;
5514
5379
  /**
5515
- * Integration Id
5516
- * @description The Sentry integration id.
5380
+ * Updated At
5381
+ * Format: date-time
5382
+ * @description When the session was last updated.
5517
5383
  */
5518
- integration_id: string;
5384
+ updated_at: string;
5519
5385
  /**
5520
- * Organization Slug
5521
- * @description The Sentry organization's slug.
5386
+ * Webhook Id
5387
+ * @description Identifier of the webhook event that triggered the session, if any.
5522
5388
  */
5523
- organization_slug: string;
5389
+ webhook_id?: string | null;
5390
+ /** @description Type of the webhook event that triggered the session, if any. */
5391
+ webhook_type?: components['schemas']['WebhookType'] | null;
5524
5392
  };
5525
5393
  /**
5526
- * SessionExecutionWire
5394
+ * SessionExecution
5527
5395
  * @description One runtime attempt of a session — the initial start, a cold wake of a
5528
5396
  * durable conversation, or an infrastructure retry — including the launch
5529
5397
  * context the model was actually given.
5530
5398
  */
5531
- SessionExecutionWire: {
5532
- /**
5533
- * Agent Session Id
5534
- * @description Identifier of the session this execution belongs to.
5535
- */
5536
- agent_session_id: string;
5399
+ SessionExecution: {
5537
5400
  /**
5538
5401
  * Attempt Index
5539
5402
  * @description Infrastructure-retry counter within one wake.
@@ -5575,6 +5438,11 @@ interface components {
5575
5438
  * @description Whether this execution resumed a prior conversation (a cold wake with the previous state restored).
5576
5439
  */
5577
5440
  resumed: boolean;
5441
+ /**
5442
+ * Session Id
5443
+ * @description Identifier of the session this execution belongs to.
5444
+ */
5445
+ session_id: string;
5578
5446
  /** @description Execution status. */
5579
5447
  status: components['schemas']['ExecutionStatus'];
5580
5448
  /**
@@ -5588,6 +5456,17 @@ interface components {
5588
5456
  */
5589
5457
  wake_index: number;
5590
5458
  };
5459
+ /**
5460
+ * SessionExecutionsListResponse
5461
+ * @description A session's executions with the launch context each was given.
5462
+ */
5463
+ SessionExecutionsListResponse: {
5464
+ /**
5465
+ * Executions
5466
+ * @description The session's executions (initial start, cold wakes, infra retries), ordered by execution_index. Each carries the launch context the harness was given: system_prompt_append (the text appended to Claude Code's default system prompt), the initial query, and the model.
5467
+ */
5468
+ executions: components['schemas']['SessionExecution'][];
5469
+ };
5591
5470
  /**
5592
5471
  * SessionLiveness
5593
5472
  * @description The durable conversation axis (backs the surfaced `session` field).
@@ -5595,12 +5474,12 @@ interface components {
5595
5474
  */
5596
5475
  SessionLiveness: 'alive' | 'sleeping' | 'closed';
5597
5476
  /**
5598
- * SessionLogSegmentView
5477
+ * SessionLogSegment
5599
5478
  * @description One immutable archived segment of the session log: its feed_seq range
5600
5479
  * plus a short-lived presigned download URL. Segments are gzip members —
5601
5480
  * download them in order and concatenate for the whole log.
5602
5481
  */
5603
- SessionLogSegmentView: {
5482
+ SessionLogSegment: {
5604
5483
  /**
5605
5484
  * Bytes
5606
5485
  * @description The segment's size in bytes.
@@ -5634,64 +5513,10 @@ interface components {
5634
5513
  };
5635
5514
  /**
5636
5515
  * SessionMessage
5637
- * @description One entry in a session's inbox: an event, rendered into a user message,
5638
- * waiting to be consumed by a turn. body is the RENDERED text (pointers to
5639
- * code/events, never embedded diffs), so a turn's initial query is built from
5640
- * the pending messages without re-fetching the trigger.
5641
- */
5642
- SessionMessage: {
5643
- /** Agent Session Id */
5644
- agent_session_id: string;
5645
- /** Author */
5646
- author?: string | null;
5647
- /** Body */
5648
- body: string;
5649
- /**
5650
- * Closes Session
5651
- * @default false
5652
- */
5653
- closes_session: boolean;
5654
- /**
5655
- * Created At
5656
- * Format: date-time
5657
- */
5658
- created_at: string;
5659
- /** Delivered At */
5660
- delivered_at?: string | null;
5661
- /** Delivered Turn Id */
5662
- delivered_turn_id?: string | null;
5663
- /** Feed Seq */
5664
- feed_seq?: number | null;
5665
- /** Id */
5666
- id: string;
5667
- /** Idempotency Key */
5668
- idempotency_key?: string | null;
5669
- /** Platform Ts */
5670
- platform_ts?: string | null;
5671
- /** Sender Attribution Id */
5672
- sender_attribution_id?: string | null;
5673
- sender_attribution_type?: components['schemas']['AttributionType'] | null;
5674
- status: components['schemas']['SessionMessageStatus'];
5675
- /** Webhook Id */
5676
- webhook_id?: string | null;
5677
- webhook_type?: components['schemas']['WebhookType'] | null;
5678
- };
5679
- /**
5680
- * SessionMessageStatus
5681
- * @enum {string}
5682
- */
5683
- SessionMessageStatus: 'pending' | 'delivered';
5684
- /**
5685
- * SessionMessageWire
5686
5516
  * @description One message in a session's inbox: what a queued message renders and
5687
5517
  * retires on. The webhook provenance internals stay off the wire.
5688
5518
  */
5689
- SessionMessageWire: {
5690
- /**
5691
- * Agent Session Id
5692
- * @description Identifier of the session the message belongs to.
5693
- */
5694
- agent_session_id: string;
5519
+ SessionMessage: {
5695
5520
  /**
5696
5521
  * Author
5697
5522
  * @description Display attribution of the message's sender.
@@ -5735,9 +5560,27 @@ interface components {
5735
5560
  sender_attribution_id?: string | null;
5736
5561
  /** @description Kind of principal that sent the message, if attributed. */
5737
5562
  sender_attribution_type?: components['schemas']['AttributionType'] | null;
5563
+ /**
5564
+ * Session Id
5565
+ * @description Identifier of the session the message belongs to.
5566
+ */
5567
+ session_id: string;
5738
5568
  /** @description Delivery status of the message. */
5739
5569
  status: components['schemas']['SessionMessageStatus'];
5740
5570
  };
5571
+ /**
5572
+ * SessionMessageResponse
5573
+ * @description One inbox message.
5574
+ */
5575
+ SessionMessageResponse: {
5576
+ /** @description The message. */
5577
+ message: components['schemas']['SessionMessage'];
5578
+ };
5579
+ /**
5580
+ * SessionMessageStatus
5581
+ * @enum {string}
5582
+ */
5583
+ SessionMessageStatus: 'pending' | 'delivered';
5741
5584
  /**
5742
5585
  * SessionPrompting
5743
5586
  * @description The prompt-affordance projection. `enabled` answers "would a send work",
@@ -5755,17 +5598,12 @@ interface components {
5755
5598
  surface_name?: string | null;
5756
5599
  };
5757
5600
  /**
5758
- * SessionRecordWire
5601
+ * SessionRecord
5759
5602
  * @description One entry of a session's log: a stable envelope around the harness's
5760
5603
  * native payload. Internal-only columns are deliberately absent so internal
5761
5604
  * model evolution stays free.
5762
5605
  */
5763
- SessionRecordWire: {
5764
- /**
5765
- * Agent Session Id
5766
- * @description Identifier of the session the record belongs to.
5767
- */
5768
- agent_session_id: string;
5606
+ SessionRecord: {
5769
5607
  /**
5770
5608
  * Agent Turn Id
5771
5609
  * @description Identifier of the turn the record belongs to, if any.
@@ -5819,31 +5657,96 @@ interface components {
5819
5657
  * @description The record's type within its format.
5820
5658
  */
5821
5659
  record_type: string;
5660
+ /**
5661
+ * Session Id
5662
+ * @description Identifier of the session the record belongs to.
5663
+ */
5664
+ session_id: string;
5822
5665
  /**
5823
5666
  * Session Message Id
5824
5667
  * @description Correlates a user-echo record back to the session message it echoes, so clients can retire queued messages by id.
5825
5668
  */
5826
- session_message_id?: string | null;
5827
- /** @description Which subsystem produced the record. */
5828
- source: components['schemas']['RecordSource'];
5669
+ session_message_id?: string | null;
5670
+ /** @description Which subsystem produced the record. */
5671
+ source: components['schemas']['RecordSource'];
5672
+ /**
5673
+ * Stream Seq
5674
+ * @description The record's position within its execution's stream.
5675
+ */
5676
+ stream_seq: number;
5677
+ /** @description Token usage reported for this record, if any. */
5678
+ tokens_info?: components['schemas']['TokensInfo'] | null;
5679
+ /**
5680
+ * Tools
5681
+ * @description Names of the tools used in this record, if any.
5682
+ */
5683
+ tools?: string[] | null;
5684
+ };
5685
+ /**
5686
+ * SessionRecordsListResponse
5687
+ * @description A session's stored transcript records, plus its pending inbox
5688
+ * messages.
5689
+ */
5690
+ SessionRecordsListResponse: {
5691
+ /**
5692
+ * Earliest Feed Seq
5693
+ * @description The retention head: the lowest feed_seq still stored, or null when the session has no stored records.
5694
+ */
5695
+ earliest_feed_seq?: number | null;
5696
+ /**
5697
+ * Has More
5698
+ * @description Whether more results exist past this page.
5699
+ * @default false
5700
+ */
5701
+ has_more: boolean;
5702
+ /**
5703
+ * Messages
5704
+ * @description The open inbox slice (pending rows only): queued messages not yet consumed by a turn. Delivered history comes from the records themselves.
5705
+ * @default []
5706
+ */
5707
+ messages: components['schemas']['SessionMessage'][];
5708
+ /**
5709
+ * Next Cursor
5710
+ * @description Pass as `cursor` to fetch the next page. Null on the last page. Opaque — echo it back rather than parsing it.
5711
+ */
5712
+ next_cursor?: string | null;
5713
+ /**
5714
+ * Records
5715
+ * @description The session's records (transcript + lifecycle), ordered by feed_seq. Clients render each by (source, record_format, record_type). Pagination is opt-in (`cursor` + `limit`); a bare call returns the full retained transcript.
5716
+ */
5717
+ records: components['schemas']['SessionRecord'][];
5718
+ };
5719
+ /**
5720
+ * SessionResponse
5721
+ * @description One session.
5722
+ */
5723
+ SessionResponse: {
5724
+ /** @description The session. */
5725
+ session: components['schemas']['Session'];
5726
+ };
5727
+ /**
5728
+ * SessionSearchResponse
5729
+ * @description A page of session search results.
5730
+ */
5731
+ SessionSearchResponse: {
5829
5732
  /**
5830
- * Stream Seq
5831
- * @description The record's position within its execution's stream.
5733
+ * Attributed Users
5734
+ * @description GitHub account snippets for the user attributions among the results, keyed by attribution_id, so callers can render author logins and avatars.
5832
5735
  */
5833
- stream_seq: number;
5834
- /** @description Token usage reported for this record, if any. */
5835
- tokens_info?: components['schemas']['TokensInfo'] | null;
5736
+ attributed_users: {
5737
+ [key: string]: components['schemas']['GithubAccountSnippet'];
5738
+ };
5836
5739
  /**
5837
- * Tools
5838
- * @description Names of the tools used in this record, if any.
5740
+ * Results
5741
+ * @description The matching sessions, newest first.
5839
5742
  */
5840
- tools?: string[] | null;
5743
+ results: components['schemas']['SessionSearchResult'][];
5841
5744
  };
5842
5745
  /**
5843
- * SessionSearchResultWire
5746
+ * SessionSearchResult
5844
5747
  * @description One search hit: a session plus how and where the query matched it.
5845
5748
  */
5846
- SessionSearchResultWire: {
5749
+ SessionSearchResult: {
5847
5750
  /**
5848
5751
  * Matched
5849
5752
  * @description Which search arms matched this session: "records", "recap", "pr", and/or "similar".
@@ -5865,9 +5768,9 @@ interface components {
5865
5768
  * @description Matching session-log entries, capped per session.
5866
5769
  * @default []
5867
5770
  */
5868
- record_hits: components['schemas']['LogSearchHit'][];
5771
+ record_hits: components['schemas']['RecordHit'][];
5869
5772
  /** @description The matching session. */
5870
- session: components['schemas']['AgentSessionWire'];
5773
+ session: components['schemas']['Session'];
5871
5774
  };
5872
5775
  /**
5873
5776
  * SessionSearchScope
@@ -5901,10 +5804,32 @@ interface components {
5901
5804
  status: string | null;
5902
5805
  };
5903
5806
  /**
5904
- * SlackChannelSummary
5807
+ * SessionsListResponse
5808
+ * @description A page of sessions in the lean wire shape.
5809
+ */
5810
+ SessionsListResponse: {
5811
+ /**
5812
+ * Has More
5813
+ * @description Whether more results exist past this page.
5814
+ * @default false
5815
+ */
5816
+ has_more: boolean;
5817
+ /**
5818
+ * Next Cursor
5819
+ * @description Pass as `cursor` to fetch the next page. Null on the last page. Opaque — echo it back rather than parsing it.
5820
+ */
5821
+ next_cursor?: string | null;
5822
+ /**
5823
+ * Sessions
5824
+ * @description Lean wire rows — the same shape GET /sessions/{id} and the stream's session frames carry. The heavy blobs (config snapshot, input/output) live on the detail endpoints.
5825
+ */
5826
+ sessions: components['schemas']['Session'][];
5827
+ };
5828
+ /**
5829
+ * SlackChannel
5905
5830
  * @description One channel in the connected Slack workspace.
5906
5831
  */
5907
- SlackChannelSummary: {
5832
+ SlackChannel: {
5908
5833
  /**
5909
5834
  * Id
5910
5835
  * @description The Slack channel id.
@@ -5926,6 +5851,28 @@ interface components {
5926
5851
  */
5927
5852
  name?: string | null;
5928
5853
  };
5854
+ /**
5855
+ * SlackChannelsListResponse
5856
+ * @description The channels the Ellipsis app can see in the connected Slack
5857
+ * workspace.
5858
+ */
5859
+ SlackChannelsListResponse: {
5860
+ /**
5861
+ * Channels
5862
+ * @description The workspace's channels.
5863
+ */
5864
+ channels: components['schemas']['SlackChannel'][];
5865
+ /**
5866
+ * Team Id
5867
+ * @description The Slack workspace (team) id.
5868
+ */
5869
+ team_id: string;
5870
+ /**
5871
+ * Team Name
5872
+ * @description The Slack workspace name.
5873
+ */
5874
+ team_name: string;
5875
+ };
5929
5876
  /**
5930
5877
  * SlackIntegrationSummary
5931
5878
  * @description The account's connected Slack workspace.
@@ -5948,11 +5895,11 @@ interface components {
5948
5895
  team_name: string;
5949
5896
  };
5950
5897
  /**
5951
- * SlackMemberSummary
5898
+ * SlackMember
5952
5899
  * @description A human member of the connected Slack workspace. `github` is set when
5953
5900
  * this user is linked to a GitHub account.
5954
5901
  */
5955
- SlackMemberSummary: {
5902
+ SlackMember: {
5956
5903
  /**
5957
5904
  * Display Name
5958
5905
  * @description The member's display name, if set.
@@ -5967,308 +5914,118 @@ interface components {
5967
5914
  github?: components['schemas']['LinkedGithubIdentity'] | null;
5968
5915
  /**
5969
5916
  * Id
5970
- * @description The member's Slack user id.
5971
- */
5972
- id: string;
5973
- /**
5974
- * Name
5975
- * @description The member's Slack username.
5976
- */
5977
- name?: string | null;
5978
- /**
5979
- * Real Name
5980
- * @description The member's real name, if set.
5981
- */
5982
- real_name?: string | null;
5983
- };
5984
- /**
5985
- * StartAgentSessionRequest
5986
- * @description Parameters for starting a new agent session.
5987
- */
5988
- StartAgentSessionRequest: {
5989
- /** @description An inline agent config to run under. */
5990
- config?: components['schemas']['AgentConfig'] | null;
5991
- /**
5992
- * Config Id
5993
- * @description A saved agent config id to run under.
5994
- */
5995
- config_id?: string | null;
5996
- /**
5997
- * Config Override
5998
- * @description Optional partial-config override merged onto the chosen config and re-validated (e.g. {"limits": {"run": 5.0}} to raise just this run's budget). Merged onto config_id/template_id or the platform default; with an inline config, set fields directly instead. Mutually exclusive with config_override_yaml.
5999
- */
6000
- config_override?: {
6001
- [key: string]: unknown;
6002
- } | null;
6003
- /**
6004
- * Config Override Yaml
6005
- * @description The same partial-config override as a YAML/JSON string (e.g. read from a file). Mutually exclusive with config_override.
6006
- */
6007
- config_override_yaml?: string | null;
6008
- /**
6009
- * Force Rebuild
6010
- * @description Skip the image cache for this session's initial provision: a fresh full build whose snapshot then refreshes the cache for later runs. A wake of a durable session provisions through the cache as usual. The CLI's `--rebuild`.
6011
- * @default false
6012
- */
6013
- force_rebuild: boolean;
6014
- /** @description Laptop-to-cloud handoff parameters. When set, the built-in handoff config is used and config_id/config/template_id must be omitted. */
6015
- handoff?: components['schemas']['HandoffAgentSessionParams'] | null;
6016
- /**
6017
- * Idle Start
6018
- * @description Start the session with no initial message: the sandbox spins up, the agent starts idle at the prompt, and the first message sent to the session opens turn 0. Mutually exclusive with prompt and handoff. Ignored when the resolved config is not interactive (an ephemeral run keeps its kickoff — it can never receive a message).
6019
- * @default false
6020
- */
6021
- idle_start: boolean;
6022
- /**
6023
- * Metadata
6024
- * @description Arbitrary string key/value metadata stored on the session.
6025
- * @default {}
6026
- */
6027
- metadata: {
6028
- [key: string]: string;
6029
- };
6030
- /**
6031
- * Prompt
6032
- * @description Per-run instructions appended to the initial query after the config's shared system prompt. Applies regardless of which config source is used. For a handoff, this is the developer's handoff note.
6033
- */
6034
- prompt?: string | null;
6035
- /**
6036
- * Repository
6037
- * @description The "owner/name" repository the client is standing in (the CLI's detected git remote). Selects the repo rung of the defaults ladder, and is merged into the sandbox repository set (cloned at its default branch) regardless of which config source is used. An unknown or foreign repo is ignored.
6038
- */
6039
- repository?: string | null;
6040
- /**
6041
- * Template Id
6042
- * @description A maintained run-on-demand template slug (e.g. "ellipsis-helper"), resolved server-side to its config. At most one of config_id, config, or template_id may be set; if none is, the run resolves the account's default-config ladder (repo default, then account default, then the platform default config).
6043
- */
6044
- template_id?: string | null;
6045
- };
6046
- /**
6047
- * StartAgentSessionResponse
6048
- * @description The started session, plus explicit fields describing how its config
6049
- * was resolved.
6050
- */
6051
- StartAgentSessionResponse: {
6052
- /**
6053
- * Agent Config Id
6054
- * @description Identifier of the saved agent config the session ran on, if any.
6055
- */
6056
- agent_config_id?: string | null;
6057
- /** @description The GitHub user the session is attributed to, when the attribution is a GitHub user. */
6058
- attributed_user?: components['schemas']['GithubAccountSnippet'] | null;
6059
- /**
6060
- * Attribution Id
6061
- * @description Identifier of the principal the session is attributed to.
6062
- */
6063
- attribution_id?: string | null;
6064
- /** @description Kind of principal the session is attributed to (e.g. a GitHub user or an API key). */
6065
- attribution_type?: components['schemas']['AttributionType'] | null;
6066
- /**
6067
- * Client Version
6068
- * @description Version of the client that started the session, if reported.
6069
- */
6070
- client_version?: string | null;
6071
- /**
6072
- * Config Override
6073
- * @description The partial-config diff applied for this run; null when the config was unmodified.
6074
- */
6075
- config_override?: {
6076
- [key: string]: unknown;
6077
- } | null;
6078
- /**
6079
- * Context Repository
6080
- * @description The "owner/name" repository context the session was started in, if any.
6081
- */
6082
- context_repository?: string | null;
6083
- /**
6084
- * Cost Fee
6085
- * @description Platform fee in millicents.
6086
- * @default 0
6087
- */
6088
- cost_fee: number;
6089
- /**
6090
- * Cost Sandbox Cpu
6091
- * @description Sandbox CPU spend in millicents.
6092
- * @default 0
6093
- */
6094
- cost_sandbox_cpu: number;
6095
- /**
6096
- * Cost Sandbox Memory
6097
- * @description Sandbox memory spend in millicents.
6098
- * @default 0
6099
- */
6100
- cost_sandbox_memory: number;
6101
- /**
6102
- * Cost Tokens
6103
- * @description Token spend in millicents. The session's grand total cost is the sum of cost_tokens, cost_sandbox_cpu, cost_sandbox_memory, and cost_fee.
6104
- */
6105
- cost_tokens: number;
6106
- /**
6107
- * Created At
6108
- * Format: date-time
6109
- * @description When the session was created.
6110
- */
6111
- created_at: string;
6112
- /**
6113
- * Customer Id
6114
- * @description Identifier of the account that owns the session.
6115
- */
6116
- customer_id: string;
6117
- /** @description How the session's config was resolved from the account's defaults, when no explicit config was given. */
6118
- default_resolution?: components['schemas']['DefaultResolution'] | null;
6119
- /** @description How the session ended; null until it is terminal. */
6120
- exit_status?: components['schemas']['AgentSessionExitStatus'] | null;
6121
- /** @description The coding-agent harness the session runs on. */
6122
- harness: components['schemas']['Harness'];
6123
- /**
6124
- * Id
6125
- * @description Unique identifier of the session.
6126
- */
6127
- id: string;
6128
- /**
6129
- * Last Activity At
6130
- * @description When the session last showed activity.
6131
- */
6132
- last_activity_at?: string | null;
6133
- /**
6134
- * Last Message At
6135
- * @description When the session last received a message.
6136
- */
6137
- last_message_at?: string | null;
6138
- /**
6139
- * Live Summary
6140
- * @description A live summary of the session's progress while it runs.
6141
- */
6142
- live_summary?: string | null;
6143
- /**
6144
- * Metadata
6145
- * @description Caller-supplied metadata key-value pairs.
6146
- * @default {}
6147
- */
6148
- metadata: {
6149
- [key: string]: string;
6150
- };
6151
- /**
6152
- * Output Prs
6153
- * @description Pull requests the session created or updated.
6154
- */
6155
- output_prs?: components['schemas']['AgentSessionPr'][] | null;
6156
- /**
6157
- * Parent Agent Session Id
6158
- * @description Identifier of the parent session that spawned this one, if any.
6159
- */
6160
- parent_agent_session_id?: string | null;
6161
- /** @description How this session relates to its parent session, if any. */
6162
- parent_kind?: components['schemas']['ParentKind'] | null;
6163
- /**
6164
- * Prompt
6165
- * @description The per-session prompt the session was started with.
6166
- */
6167
- prompt?: string | null;
6168
- /** @description Whether a client may send this session a message and, when it may not, the reason to show instead of a composer. */
6169
- prompting: components['schemas']['SessionPrompting'];
6170
- /**
6171
- * Replayed From Session Id
6172
- * @description Identifier of the original session this one was replayed from, if it was started via replay.
5917
+ * @description The member's Slack user id.
6173
5918
  */
6174
- replayed_from_session_id?: string | null;
6175
- /** @description Which rung of the defaults ladder chose the config (repo_default | account_default | none). Null when an explicit config/config_id/template_id (or a handoff) bypassed resolution. */
6176
- resolution_source?: components['schemas']['DefaultResolution'] | null;
5919
+ id: string;
6177
5920
  /**
6178
- * Resolved Budget Cents
6179
- * @description The spend budget resolved for this session, in cents.
5921
+ * Name
5922
+ * @description The member's Slack username.
6180
5923
  */
6181
- resolved_budget_cents: number;
6182
- /** @description Where the resolved budget came from. */
6183
- resolved_budget_source: components['schemas']['BudgetSource'];
5924
+ name?: string | null;
6184
5925
  /**
6185
- * Resolved Config Name
6186
- * @description The name of the config the session runs under.
5926
+ * Real Name
5927
+ * @description The member's real name, if set.
6187
5928
  */
6188
- resolved_config_name?: string | null;
5929
+ real_name?: string | null;
5930
+ };
5931
+ /**
5932
+ * SlackMembersListResponse
5933
+ * @description The human members of the connected Slack workspace (bots excluded).
5934
+ */
5935
+ SlackMembersListResponse: {
6189
5936
  /**
6190
- * Sandbox Id
6191
- * @description Identifier of the sandbox the session runs in, if any.
5937
+ * Members
5938
+ * @description The workspace's human members.
6192
5939
  */
6193
- sandbox_id?: string | null;
5940
+ members: components['schemas']['SlackMember'][];
6194
5941
  /**
6195
- * Session Key
6196
- * @description Key identifying the durable conversation this session belongs to, or null for single-shot sessions.
5942
+ * Team Id
5943
+ * @description The Slack workspace (team) id.
6197
5944
  */
6198
- session_key?: string | null;
6199
- /** @description Lifecycle state of the durable conversation, or null for sessions without one. */
6200
- session_state?: components['schemas']['SessionState'] | null;
6201
- /** @description Where the session came from (e.g. react, manual, api, cli, mention, cron, laptop). */
6202
- source: components['schemas']['AgentSessionSource'];
6203
- /** @description Execution status of the session. */
6204
- status: components['schemas']['AgentSessionStatus'];
5945
+ team_id: string;
6205
5946
  /**
6206
- * Status Reason
6207
- * @description Human-readable reason for the current status, when there is one.
5947
+ * Team Name
5948
+ * @description The Slack workspace name.
6208
5949
  */
6209
- status_reason?: string | null;
5950
+ team_name: string;
5951
+ };
5952
+ /**
5953
+ * StartAgentSessionRequest
5954
+ * @description Parameters for starting a new agent session.
5955
+ */
5956
+ StartAgentSessionRequest: {
5957
+ /** @description An inline agent config to run under. */
5958
+ config?: components['schemas']['AgentConfig'] | null;
6210
5959
  /**
6211
- * Stopped At
6212
- * @description When a stop was requested, if one was.
5960
+ * Config Id
5961
+ * @description A saved agent config id to run under.
6213
5962
  */
6214
- stopped_at?: string | null;
5963
+ config_id?: string | null;
6215
5964
  /**
6216
- * Stopped By
6217
- * @description GitHub account id of the user who stopped the session, if known.
5965
+ * Config Override
5966
+ * @description Optional partial-config override merged onto the chosen config and re-validated (e.g. {"limits": {"run": 5.0}} to raise just this run's budget). Merged onto config_id/template_id or the platform default; with an inline config, set fields directly instead. Mutually exclusive with config_override_yaml.
6218
5967
  */
6219
- stopped_by?: number | null;
6220
- /** @description The GitHub user who stopped the session, if it was stopped. */
6221
- stopped_by_user?: components['schemas']['GithubAccountSnippet'] | null;
6222
- /** @description The public status projection; null for laptop-synced sessions. */
6223
- surface?: components['schemas']['SessionSurface'] | null;
5968
+ config_override?: {
5969
+ [key: string]: unknown;
5970
+ } | null;
6224
5971
  /**
6225
- * Tokens Cache Creation
6226
- * @description Tokens written to the prompt cache.
6227
- * @default 0
5972
+ * Config Override Yaml
5973
+ * @description The same partial-config override as a YAML/JSON string (e.g. read from a file). Mutually exclusive with config_override.
6228
5974
  */
6229
- tokens_cache_creation: number;
5975
+ config_override_yaml?: string | null;
6230
5976
  /**
6231
- * Tokens Cache Read
6232
- * @description Tokens read from the prompt cache.
6233
- * @default 0
5977
+ * Force Rebuild
5978
+ * @description Skip the image cache for this session's initial provision: a fresh full build whose snapshot then refreshes the cache for later runs. A wake of a durable session provisions through the cache as usual. The CLI's `--rebuild`.
5979
+ * @default false
6234
5980
  */
6235
- tokens_cache_read: number;
5981
+ force_rebuild: boolean;
5982
+ /** @description Laptop-to-cloud handoff parameters. When set, the built-in handoff config is used and config_id/config/template_id must be omitted. */
5983
+ handoff?: components['schemas']['HandoffAgentSessionParams'] | null;
6236
5984
  /**
6237
- * Tokens Input
6238
- * @description Input tokens used.
6239
- * @default 0
5985
+ * Idle Start
5986
+ * @description Start the session with no initial message: the sandbox spins up, the agent starts idle at the prompt, and the first message sent to the session opens turn 0. Mutually exclusive with prompt and handoff. Ignored when the resolved config is not interactive (an ephemeral run keeps its kickoff — it can never receive a message).
5987
+ * @default false
6240
5988
  */
6241
- tokens_input: number;
5989
+ idle_start: boolean;
6242
5990
  /**
6243
- * Tokens Model
6244
- * @description The model the token counts are attributed to.
5991
+ * Metadata
5992
+ * @description Arbitrary string key/value metadata stored on the session.
5993
+ * @default {}
6245
5994
  */
6246
- tokens_model: string;
5995
+ metadata: {
5996
+ [key: string]: string;
5997
+ };
6247
5998
  /**
6248
- * Tokens Output
6249
- * @description Output tokens used.
6250
- * @default 0
5999
+ * Prompt
6000
+ * @description Per-run instructions appended to the initial query after the config's shared system prompt. Applies regardless of which config source is used. For a handoff, this is the developer's handoff note.
6251
6001
  */
6252
- tokens_output: number;
6002
+ prompt?: string | null;
6253
6003
  /**
6254
- * Tokens Total
6255
- * @description Total tokens used by the session.
6256
- * @default 0
6004
+ * Repository
6005
+ * @description The "owner/name" repository the client is standing in (the CLI's detected git remote). Selects the repo rung of the defaults ladder, and is merged into the sandbox repository set (cloned at its default branch) regardless of which config source is used. An unknown or foreign repo is ignored.
6257
6006
  */
6258
- tokens_total: number;
6007
+ repository?: string | null;
6259
6008
  /**
6260
- * Updated At
6261
- * Format: date-time
6262
- * @description When the session was last updated.
6009
+ * Template Id
6010
+ * @description A maintained run-on-demand template slug (e.g. "ellipsis-helper"), resolved server-side to its config. At most one of config_id, config, or template_id may be set; if none is, the run resolves the account's default-config ladder (repo default, then account default, then the platform default config).
6263
6011
  */
6264
- updated_at: string;
6012
+ template_id?: string | null;
6013
+ };
6014
+ /**
6015
+ * StartAgentSessionResponse
6016
+ * @description The started session, plus explicit fields describing how its config
6017
+ * was resolved.
6018
+ */
6019
+ StartAgentSessionResponse: {
6020
+ /** @description Which rung of the defaults ladder chose the config (repo_default | account_default | none). Null when an explicit config/config_id/template_id (or a handoff) bypassed resolution. */
6021
+ resolution_source?: components['schemas']['DefaultResolution'] | null;
6265
6022
  /**
6266
- * Webhook Id
6267
- * @description Identifier of the webhook event that triggered the session, if any.
6023
+ * Resolved Config Name
6024
+ * @description The name of the config the session runs under.
6268
6025
  */
6269
- webhook_id?: string | null;
6270
- /** @description Type of the webhook event that triggered the session, if any. */
6271
- webhook_type?: components['schemas']['WebhookType'] | null;
6026
+ resolved_config_name?: string | null;
6027
+ /** @description The started session. */
6028
+ session: components['schemas']['Session'];
6272
6029
  };
6273
6030
  /**
6274
6031
  * StartCliAuthResponse
@@ -6307,17 +6064,6 @@ interface components {
6307
6064
  */
6308
6065
  verification_uri_complete: string;
6309
6066
  };
6310
- /** SupportedModelApi */
6311
- SupportedModelApi: {
6312
- /** Display Name */
6313
- display_name: string;
6314
- /** Id */
6315
- id: string;
6316
- /** Is Default Agent Model */
6317
- is_default_agent_model: boolean;
6318
- manufacturer: components['schemas']['ModelManufacturer'];
6319
- rate_card: components['schemas']['ModelRateCardApi'];
6320
- };
6321
6067
  /**
6322
6068
  * SyncAgentSessionRequest
6323
6069
  * @description One hook-driven transcript sync from a developer laptop. The CLI reads
@@ -6584,7 +6330,7 @@ interface operations {
6584
6330
  [name: string]: unknown;
6585
6331
  };
6586
6332
  content: {
6587
- 'application/json': components['schemas']['ListAgentConfigsResponse'];
6333
+ 'application/json': components['schemas']['AgentConfigsListResponse'];
6588
6334
  };
6589
6335
  };
6590
6336
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -6637,7 +6383,7 @@ interface operations {
6637
6383
  [name: string]: unknown;
6638
6384
  };
6639
6385
  content: {
6640
- 'application/json': components['schemas']['CreatedAgentConfig'];
6386
+ 'application/json': components['schemas']['CreateAgentConfigResponse'];
6641
6387
  };
6642
6388
  };
6643
6389
  /** @description Provide exactly one of config or template_id; or the config, path, or target branch is invalid. */
@@ -6715,7 +6461,7 @@ interface operations {
6715
6461
  [name: string]: unknown;
6716
6462
  };
6717
6463
  content: {
6718
- 'application/json': components['schemas']['SavedAgentConfig'];
6464
+ 'application/json': components['schemas']['AgentConfigResponse'];
6719
6465
  };
6720
6466
  };
6721
6467
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -6773,7 +6519,7 @@ interface operations {
6773
6519
  [name: string]: unknown;
6774
6520
  };
6775
6521
  content: {
6776
- 'application/json': components['schemas']['ListAgentDefaultsV1Response'];
6522
+ 'application/json': components['schemas']['AgentDefaultsListResponse'];
6777
6523
  };
6778
6524
  };
6779
6525
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -6826,7 +6572,7 @@ interface operations {
6826
6572
  [name: string]: unknown;
6827
6573
  };
6828
6574
  content: {
6829
- 'application/json': components['schemas']['AgentDefaultV1'];
6575
+ 'application/json': components['schemas']['AgentDefaultResponse'];
6830
6576
  };
6831
6577
  };
6832
6578
  /** @description The config is not eligible as a default: its pull request has not merged, or it is disabled. */
@@ -6952,7 +6698,7 @@ interface operations {
6952
6698
  [name: string]: unknown;
6953
6699
  };
6954
6700
  content: {
6955
- 'application/json': components['schemas']['ListAgentTemplatesResponse'];
6701
+ 'application/json': components['schemas']['AgentTemplatesListResponse'];
6956
6702
  };
6957
6703
  };
6958
6704
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -7050,6 +6796,7 @@ interface operations {
7050
6796
  status?: components['schemas']['AlertStatus'] | null;
7051
6797
  source?: components['schemas']['AlertSource'] | null;
7052
6798
  limit?: number;
6799
+ cursor?: string | null;
7053
6800
  };
7054
6801
  header?: {
7055
6802
  'user-agent'?: string | null;
@@ -7065,7 +6812,7 @@ interface operations {
7065
6812
  [name: string]: unknown;
7066
6813
  };
7067
6814
  content: {
7068
- 'application/json': components['schemas']['ListAlertsResponse'];
6815
+ 'application/json': components['schemas']['AlertsListResponse'];
7069
6816
  };
7070
6817
  };
7071
6818
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -7116,7 +6863,7 @@ interface operations {
7116
6863
  [name: string]: unknown;
7117
6864
  };
7118
6865
  content: {
7119
- 'application/json': components['schemas']['Alert'];
6866
+ 'application/json': components['schemas']['AlertResponse'];
7120
6867
  };
7121
6868
  };
7122
6869
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -7176,7 +6923,7 @@ interface operations {
7176
6923
  [name: string]: unknown;
7177
6924
  };
7178
6925
  content: {
7179
- 'application/json': components['schemas']['Alert'];
6926
+ 'application/json': components['schemas']['AlertResponse'];
7180
6927
  };
7181
6928
  };
7182
6929
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -7578,8 +7325,9 @@ interface operations {
7578
7325
  list_files: {
7579
7326
  parameters: {
7580
7327
  query?: {
7581
- agent_session_id?: string | null;
7328
+ session_id?: string | null;
7582
7329
  limit?: number;
7330
+ cursor?: string | null;
7583
7331
  };
7584
7332
  header?: {
7585
7333
  'user-agent'?: string | null;
@@ -7595,7 +7343,7 @@ interface operations {
7595
7343
  [name: string]: unknown;
7596
7344
  };
7597
7345
  content: {
7598
- 'application/json': components['schemas']['ListFilesResponse'];
7346
+ 'application/json': components['schemas']['FilesListResponse'];
7599
7347
  };
7600
7348
  };
7601
7349
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -7882,7 +7630,7 @@ interface operations {
7882
7630
  [name: string]: unknown;
7883
7631
  };
7884
7632
  content: {
7885
- 'application/json': components['schemas']['ListGithubMembersResponse'];
7633
+ 'application/json': components['schemas']['GithubMembersListResponse'];
7886
7634
  };
7887
7635
  };
7888
7636
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -7931,7 +7679,7 @@ interface operations {
7931
7679
  [name: string]: unknown;
7932
7680
  };
7933
7681
  content: {
7934
- 'application/json': components['schemas']['ListGithubRepositoriesResponse'];
7682
+ 'application/json': components['schemas']['GithubRepositoriesListResponse'];
7935
7683
  };
7936
7684
  };
7937
7685
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -7980,7 +7728,7 @@ interface operations {
7980
7728
  [name: string]: unknown;
7981
7729
  };
7982
7730
  content: {
7983
- 'application/json': components['schemas']['ListLinearTeamsResponse'];
7731
+ 'application/json': components['schemas']['LinearTeamsListResponse'];
7984
7732
  };
7985
7733
  };
7986
7734
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -8038,7 +7786,7 @@ interface operations {
8038
7786
  [name: string]: unknown;
8039
7787
  };
8040
7788
  content: {
8041
- 'application/json': components['schemas']['ListSentryOrganizationsResponse'];
7789
+ 'application/json': components['schemas']['SentryOrganizationsListResponse'];
8042
7790
  };
8043
7791
  };
8044
7792
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -8087,7 +7835,7 @@ interface operations {
8087
7835
  [name: string]: unknown;
8088
7836
  };
8089
7837
  content: {
8090
- 'application/json': components['schemas']['ListSlackChannelsResponse'];
7838
+ 'application/json': components['schemas']['SlackChannelsListResponse'];
8091
7839
  };
8092
7840
  };
8093
7841
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -8145,7 +7893,7 @@ interface operations {
8145
7893
  [name: string]: unknown;
8146
7894
  };
8147
7895
  content: {
8148
- 'application/json': components['schemas']['ListSlackMembersResponse'];
7896
+ 'application/json': components['schemas']['SlackMembersListResponse'];
8149
7897
  };
8150
7898
  };
8151
7899
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -8255,7 +8003,7 @@ interface operations {
8255
8003
  [name: string]: unknown;
8256
8004
  };
8257
8005
  content: {
8258
- 'application/json': components['schemas']['ListMemoriesWireResponse'];
8006
+ 'application/json': components['schemas']['MemoriesListResponse'];
8259
8007
  };
8260
8008
  };
8261
8009
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -8308,7 +8056,7 @@ interface operations {
8308
8056
  [name: string]: unknown;
8309
8057
  };
8310
8058
  content: {
8311
- 'application/json': components['schemas']['MemoryWire'];
8059
+ 'application/json': components['schemas']['MemoryResponse'];
8312
8060
  };
8313
8061
  };
8314
8062
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -8368,7 +8116,7 @@ interface operations {
8368
8116
  [name: string]: unknown;
8369
8117
  };
8370
8118
  content: {
8371
- 'application/json': components['schemas']['MemoryWire'];
8119
+ 'application/json': components['schemas']['MemoryResponse'];
8372
8120
  };
8373
8121
  };
8374
8122
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -8432,7 +8180,7 @@ interface operations {
8432
8180
  [name: string]: unknown;
8433
8181
  };
8434
8182
  content: {
8435
- 'application/json': components['schemas']['MemoryWire'];
8183
+ 'application/json': components['schemas']['MemoryResponse'];
8436
8184
  };
8437
8185
  };
8438
8186
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -8569,7 +8317,7 @@ interface operations {
8569
8317
  [name: string]: unknown;
8570
8318
  };
8571
8319
  content: {
8572
- 'application/json': components['schemas']['GetSupportedModelsResponse'];
8320
+ 'application/json': components['schemas']['ModelsListResponse'];
8573
8321
  };
8574
8322
  };
8575
8323
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -8609,6 +8357,7 @@ interface operations {
8609
8357
  pull_request_number?: number | null;
8610
8358
  status?: components['schemas']['CodeReviewRunStatus'] | null;
8611
8359
  limit?: number;
8360
+ cursor?: string | null;
8612
8361
  };
8613
8362
  header?: {
8614
8363
  'user-agent'?: string | null;
@@ -8624,7 +8373,7 @@ interface operations {
8624
8373
  [name: string]: unknown;
8625
8374
  };
8626
8375
  content: {
8627
- 'application/json': components['schemas']['ListReviewsResponse'];
8376
+ 'application/json': components['schemas']['ReviewsListResponse'];
8628
8377
  };
8629
8378
  };
8630
8379
  /** @description Filtering by repository requires both owner and repo (and pull_request_number requires them too). */
@@ -8814,7 +8563,7 @@ interface operations {
8814
8563
  };
8815
8564
  };
8816
8565
  };
8817
- list_sandbox_variables: {
8566
+ list_secrets: {
8818
8567
  parameters: {
8819
8568
  query?: never;
8820
8569
  header?: {
@@ -8831,7 +8580,7 @@ interface operations {
8831
8580
  [name: string]: unknown;
8832
8581
  };
8833
8582
  content: {
8834
- 'application/json': components['schemas']['GetSandboxVariablesResponse'];
8583
+ 'application/json': components['schemas']['SecretsListResponse'];
8835
8584
  };
8836
8585
  };
8837
8586
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -8863,7 +8612,7 @@ interface operations {
8863
8612
  };
8864
8613
  };
8865
8614
  };
8866
- put_sandbox_variables: {
8615
+ put_secrets: {
8867
8616
  parameters: {
8868
8617
  query?: never;
8869
8618
  header?: {
@@ -8874,7 +8623,7 @@ interface operations {
8874
8623
  };
8875
8624
  requestBody: {
8876
8625
  content: {
8877
- 'application/json': components['schemas']['PutSandboxVariablesRequest'];
8626
+ 'application/json': components['schemas']['PutSecretsRequest'];
8878
8627
  };
8879
8628
  };
8880
8629
  responses: {
@@ -8884,7 +8633,7 @@ interface operations {
8884
8633
  [name: string]: unknown;
8885
8634
  };
8886
8635
  content: {
8887
- 'application/json': components['schemas']['GetSandboxVariablesResponse'];
8636
+ 'application/json': components['schemas']['SecretsListResponse'];
8888
8637
  };
8889
8638
  };
8890
8639
  /** @description A variable name is invalid, or the batch would exceed the per-account variable limit. */
@@ -8925,7 +8674,7 @@ interface operations {
8925
8674
  };
8926
8675
  };
8927
8676
  };
8928
- delete_sandbox_variable: {
8677
+ delete_secret: {
8929
8678
  parameters: {
8930
8679
  query?: never;
8931
8680
  header?: {
@@ -8939,13 +8688,11 @@ interface operations {
8939
8688
  requestBody?: never;
8940
8689
  responses: {
8941
8690
  /** @description Successful Response */
8942
- 200: {
8691
+ 204: {
8943
8692
  headers: {
8944
8693
  [name: string]: unknown;
8945
8694
  };
8946
- content: {
8947
- 'application/json': components['schemas']['GetSandboxVariablesResponse'];
8948
- };
8695
+ content?: never;
8949
8696
  };
8950
8697
  /** @description The bearer token is missing, invalid, or revoked. */
8951
8698
  401: {
@@ -8985,6 +8732,7 @@ interface operations {
8985
8732
  start?: string | null;
8986
8733
  end?: string | null;
8987
8734
  limit?: number;
8735
+ cursor?: string | null;
8988
8736
  /** @description A GitHub account id (see GET /v1/integrations/github/members); scopes the list to sessions attributed to that developer. */
8989
8737
  author_id?: number | null;
8990
8738
  /** @description "owner/name" (exact) or a bare repo name, matched the same way as on GET /v1/sessions/search. Sessions whose repository is named only inside their agent config — dashboard starts, cron, handoffs — do not match. */
@@ -9006,7 +8754,7 @@ interface operations {
9006
8754
  [name: string]: unknown;
9007
8755
  };
9008
8756
  content: {
9009
- 'application/json': components['schemas']['ListAgentSessionsResponse'];
8757
+ 'application/json': components['schemas']['SessionsListResponse'];
9010
8758
  };
9011
8759
  };
9012
8760
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -9127,7 +8875,7 @@ interface operations {
9127
8875
  /** @description Attributed GitHub user account ids. */
9128
8876
  author_id?: number[] | null;
9129
8877
  /** @description Saved agent config ids (ORed with author_id). */
9130
- agent_config_id?: string[] | null;
8878
+ config_id?: string[] | null;
9131
8879
  session_ids?: string[] | null;
9132
8880
  /** @description "owner/name" (exact) or a bare repo name. */
9133
8881
  repo?: string | null;
@@ -9150,10 +8898,10 @@ interface operations {
9150
8898
  [name: string]: unknown;
9151
8899
  };
9152
8900
  content: {
9153
- 'application/json': components['schemas']['SearchSessionsWireResponse'];
8901
+ 'application/json': components['schemas']['SessionSearchResponse'];
9154
8902
  };
9155
8903
  };
9156
- /** @description The search query is too short, or limit is out of range. */
8904
+ /** @description The search query is too short. */
9157
8905
  400: {
9158
8906
  headers: {
9159
8907
  [name: string]: unknown;
@@ -9281,7 +9029,7 @@ interface operations {
9281
9029
  [name: string]: unknown;
9282
9030
  };
9283
9031
  content: {
9284
- 'application/json': components['schemas']['AgentSessionWire'];
9032
+ 'application/json': components['schemas']['SessionResponse'];
9285
9033
  };
9286
9034
  };
9287
9035
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -9341,7 +9089,7 @@ interface operations {
9341
9089
  [name: string]: unknown;
9342
9090
  };
9343
9091
  content: {
9344
- 'application/json': components['schemas']['ListSessionExecutionsResponse'];
9092
+ 'application/json': components['schemas']['SessionExecutionsListResponse'];
9345
9093
  };
9346
9094
  };
9347
9095
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -9534,7 +9282,7 @@ interface operations {
9534
9282
  [name: string]: unknown;
9535
9283
  };
9536
9284
  content: {
9537
- 'application/json': components['schemas']['SessionMessageWire'];
9285
+ 'application/json': components['schemas']['SessionMessageResponse'];
9538
9286
  };
9539
9287
  };
9540
9288
  /** @description The message is empty. */
@@ -9666,7 +9414,7 @@ interface operations {
9666
9414
  get_agent_session_records: {
9667
9415
  parameters: {
9668
9416
  query?: {
9669
- after_seq?: number;
9417
+ cursor?: string | null;
9670
9418
  limit?: number | null;
9671
9419
  };
9672
9420
  header?: {
@@ -9685,7 +9433,7 @@ interface operations {
9685
9433
  [name: string]: unknown;
9686
9434
  };
9687
9435
  content: {
9688
- 'application/json': components['schemas']['ListSessionRecordsResponse'];
9436
+ 'application/json': components['schemas']['SessionRecordsListResponse'];
9689
9437
  };
9690
9438
  };
9691
9439
  /** @description The bearer token is missing, invalid, or revoked. */
@@ -9749,7 +9497,7 @@ interface operations {
9749
9497
  [name: string]: unknown;
9750
9498
  };
9751
9499
  content: {
9752
- 'application/json': components['schemas']['AgentSessionWire'];
9500
+ 'application/json': components['schemas']['SessionResponse'];
9753
9501
  };
9754
9502
  };
9755
9503
  /** @description The session is a laptop session (not replayable), the named config does not exist, or the config override is invalid. */
@@ -9818,7 +9566,7 @@ interface operations {
9818
9566
  [name: string]: unknown;
9819
9567
  };
9820
9568
  content: {
9821
- 'application/json': components['schemas']['AgentSessionWire'];
9569
+ 'application/json': components['schemas']['SessionResponse'];
9822
9570
  };
9823
9571
  };
9824
9572
  /** @description The session runs on a developer laptop and cannot be stopped from the cloud. */
@@ -9950,66 +9698,6 @@ interface operations {
9950
9698
  };
9951
9699
  };
9952
9700
  };
9953
- get_agent_session_turns: {
9954
- parameters: {
9955
- query?: never;
9956
- header?: {
9957
- 'user-agent'?: string | null;
9958
- };
9959
- path: {
9960
- session_id: string;
9961
- };
9962
- cookie?: never;
9963
- };
9964
- requestBody?: never;
9965
- responses: {
9966
- /** @description Successful Response */
9967
- 200: {
9968
- headers: {
9969
- [name: string]: unknown;
9970
- };
9971
- content: {
9972
- 'application/json': components['schemas']['ListSessionTurnsResponse'];
9973
- };
9974
- };
9975
- /** @description The bearer token is missing, invalid, or revoked. */
9976
- 401: {
9977
- headers: {
9978
- [name: string]: unknown;
9979
- };
9980
- content: {
9981
- 'application/json': components['schemas']['ErrorResponse'];
9982
- };
9983
- };
9984
- /** @description The credential may not perform this action, or the account is blocked. */
9985
- 403: {
9986
- headers: {
9987
- [name: string]: unknown;
9988
- };
9989
- content: {
9990
- 'application/json': components['schemas']['ErrorResponse'];
9991
- };
9992
- };
9993
- /** @description No such session in your account. */
9994
- 404: {
9995
- headers: {
9996
- [name: string]: unknown;
9997
- };
9998
- content: {
9999
- 'application/json': components['schemas']['ErrorResponse'];
10000
- };
10001
- };
10002
- /** @description Validation Error */
10003
- 422: {
10004
- headers: {
10005
- [name: string]: unknown;
10006
- };
10007
- content: {
10008
- 'application/json': components['schemas']['HTTPValidationError'];
10009
- };
10010
- };
10011
- };
10012
- };
10013
9701
  get_usage_endpoint: {
10014
9702
  parameters: {
10015
9703
  query?: never;
@@ -10150,23 +9838,19 @@ interface SnapshotFrame {
10150
9838
  /**
10151
9839
  * The session's open (pending) inbox messages.
10152
9840
  */
10153
- messages: SessionMessageWire[];
9841
+ messages: SessionMessage[];
10154
9842
  /**
10155
9843
  * Echoes the protocol version the server is serving.
10156
9844
  */
10157
9845
  protocol: number;
10158
- session: AgentSessionWire;
9846
+ session: Session;
10159
9847
  type: 'snapshot';
10160
9848
  }
10161
9849
  /**
10162
9850
  * One message in a session's inbox: what a queued message renders and
10163
9851
  * retires on. The webhook provenance internals stay off the wire.
10164
9852
  */
10165
- interface SessionMessageWire {
10166
- /**
10167
- * Identifier of the session the message belongs to.
10168
- */
10169
- agent_session_id: string;
9853
+ interface SessionMessage {
10170
9854
  /**
10171
9855
  * Display attribution of the message's sender.
10172
9856
  */
@@ -10203,16 +9887,16 @@ interface SessionMessageWire {
10203
9887
  * Kind of principal that sent the message, if attributed.
10204
9888
  */
10205
9889
  sender_attribution_type: AttributionType | null;
9890
+ /**
9891
+ * Identifier of the session the message belongs to.
9892
+ */
9893
+ session_id: string;
10206
9894
  status: SessionMessageStatus;
10207
9895
  }
10208
9896
  /**
10209
9897
  * The session's current state.
10210
9898
  */
10211
- interface AgentSessionWire {
10212
- /**
10213
- * Identifier of the saved agent config the session ran on, if any.
10214
- */
10215
- agent_config_id: string | null;
9899
+ interface Session {
10216
9900
  /**
10217
9901
  * The GitHub user the session is attributed to, when the attribution is a GitHub user.
10218
9902
  */
@@ -10229,6 +9913,10 @@ interface AgentSessionWire {
10229
9913
  * Version of the client that started the session, if reported.
10230
9914
  */
10231
9915
  client_version: string | null;
9916
+ /**
9917
+ * Identifier of the saved agent config the session ran on, if any.
9918
+ */
9919
+ config_id: string | null;
10232
9920
  /**
10233
9921
  * The partial-config diff applied for this run; null when the config was unmodified.
10234
9922
  */
@@ -10259,10 +9947,6 @@ interface AgentSessionWire {
10259
9947
  * When the session was created.
10260
9948
  */
10261
9949
  created_at: string;
10262
- /**
10263
- * Identifier of the account that owns the session.
10264
- */
10265
- customer_id: string;
10266
9950
  /**
10267
9951
  * How the session's config was resolved from the account's defaults, when no explicit config was given.
10268
9952
  */
@@ -10298,14 +9982,14 @@ interface AgentSessionWire {
10298
9982
  * Pull requests the session created or updated.
10299
9983
  */
10300
9984
  output_prs: AgentSessionPr[] | null;
10301
- /**
10302
- * Identifier of the parent session that spawned this one, if any.
10303
- */
10304
- parent_agent_session_id: string | null;
10305
9985
  /**
10306
9986
  * How this session relates to its parent session, if any.
10307
9987
  */
10308
9988
  parent_kind: ParentKind | null;
9989
+ /**
9990
+ * Identifier of the parent session that spawned this one, if any.
9991
+ */
9992
+ parent_session_id: string | null;
10309
9993
  /**
10310
9994
  * The per-session prompt the session was started with.
10311
9995
  */
@@ -10446,7 +10130,7 @@ interface RecordsAppendFrame {
10446
10130
  /**
10447
10131
  * New session records, ordered by feed_seq.
10448
10132
  */
10449
- records: SessionRecordWire[];
10133
+ records: SessionRecord[];
10450
10134
  type: 'records_append';
10451
10135
  }
10452
10136
  /**
@@ -10454,11 +10138,7 @@ interface RecordsAppendFrame {
10454
10138
  * native payload. Internal-only columns are deliberately absent so internal
10455
10139
  * model evolution stays free.
10456
10140
  */
10457
- interface SessionRecordWire {
10458
- /**
10459
- * Identifier of the session the record belongs to.
10460
- */
10461
- agent_session_id: string;
10141
+ interface SessionRecord {
10462
10142
  /**
10463
10143
  * Identifier of the turn the record belongs to, if any.
10464
10144
  */
@@ -10501,6 +10181,10 @@ interface SessionRecordWire {
10501
10181
  * The record's type within its format.
10502
10182
  */
10503
10183
  record_type: string;
10184
+ /**
10185
+ * Identifier of the session the record belongs to.
10186
+ */
10187
+ session_id: string;
10504
10188
  /**
10505
10189
  * Correlates a user-echo record back to the session message it echoes, so clients can retire queued messages by id.
10506
10190
  */
@@ -10547,17 +10231,13 @@ interface TokensInfo {
10547
10231
  * state, and cost updates arrive. Resent whole on any field change.
10548
10232
  */
10549
10233
  interface SessionFrame {
10550
- session: AgentSessionWire1;
10234
+ session: Session1;
10551
10235
  type: 'session';
10552
10236
  }
10553
10237
  /**
10554
10238
  * The session's current state.
10555
10239
  */
10556
- interface AgentSessionWire1 {
10557
- /**
10558
- * Identifier of the saved agent config the session ran on, if any.
10559
- */
10560
- agent_config_id: string | null;
10240
+ interface Session1 {
10561
10241
  /**
10562
10242
  * The GitHub user the session is attributed to, when the attribution is a GitHub user.
10563
10243
  */
@@ -10574,6 +10254,10 @@ interface AgentSessionWire1 {
10574
10254
  * Version of the client that started the session, if reported.
10575
10255
  */
10576
10256
  client_version: string | null;
10257
+ /**
10258
+ * Identifier of the saved agent config the session ran on, if any.
10259
+ */
10260
+ config_id: string | null;
10577
10261
  /**
10578
10262
  * The partial-config diff applied for this run; null when the config was unmodified.
10579
10263
  */
@@ -10604,10 +10288,6 @@ interface AgentSessionWire1 {
10604
10288
  * When the session was created.
10605
10289
  */
10606
10290
  created_at: string;
10607
- /**
10608
- * Identifier of the account that owns the session.
10609
- */
10610
- customer_id: string;
10611
10291
  /**
10612
10292
  * How the session's config was resolved from the account's defaults, when no explicit config was given.
10613
10293
  */
@@ -10643,14 +10323,14 @@ interface AgentSessionWire1 {
10643
10323
  * Pull requests the session created or updated.
10644
10324
  */
10645
10325
  output_prs: AgentSessionPr[] | null;
10646
- /**
10647
- * Identifier of the parent session that spawned this one, if any.
10648
- */
10649
- parent_agent_session_id: string | null;
10650
10326
  /**
10651
10327
  * How this session relates to its parent session, if any.
10652
10328
  */
10653
10329
  parent_kind: ParentKind | null;
10330
+ /**
10331
+ * Identifier of the parent session that spawned this one, if any.
10332
+ */
10333
+ parent_session_id: string | null;
10654
10334
  /**
10655
10335
  * The per-session prompt the session was started with.
10656
10336
  */
@@ -10795,15 +10475,15 @@ type StreamFrame = SessionStreamFrame | {
10795
10475
  [key: string]: unknown;
10796
10476
  };
10797
10477
  type SendSessionMessageRequest = components['schemas']['SendSessionMessageRequest'];
10798
- type ListSessionRecordsResponse = components['schemas']['ListSessionRecordsResponse'];
10799
- type ListSessionTurnsResponse = components['schemas']['ListSessionTurnsResponse'];
10800
- type AgentTurn = components['schemas']['AgentTurn'];
10801
- type AgentTurnStatus = components['schemas']['AgentTurnStatus'];
10802
- type ListSessionExecutionsResponse = components['schemas']['ListSessionExecutionsResponse'];
10803
- type SessionExecutionWire = components['schemas']['SessionExecutionWire'];
10478
+ type SessionRecordsListResponse = components['schemas']['SessionRecordsListResponse'];
10479
+ type SessionExecutionsListResponse = components['schemas']['SessionExecutionsListResponse'];
10480
+ type SessionExecution = components['schemas']['SessionExecution'];
10481
+ type SessionResponse = components['schemas']['SessionResponse'];
10482
+ type SessionMessageResponse = components['schemas']['SessionMessageResponse'];
10483
+ type SessionsListResponse = components['schemas']['SessionsListResponse'];
10804
10484
  type CreateReviewRequest = components['schemas']['CreateReviewRequest'];
10805
10485
  type Review = components['schemas']['Review'];
10806
- type ListReviewsResponse = components['schemas']['ListReviewsResponse'];
10486
+ type ReviewsListResponse = components['schemas']['ReviewsListResponse'];
10807
10487
  type ReviewScope = components['schemas']['ReviewScope'];
10808
10488
  type ReviewScopeKind = components['schemas']['ReviewScopeKind'];
10809
10489
  type ResolvedReviewScope = components['schemas']['ResolvedReviewScope'];
@@ -10815,4 +10495,4 @@ type ReviewRequester = components['schemas']['ReviewRequester'];
10815
10495
  type ReviewFinding = components['schemas']['ReviewFinding'];
10816
10496
  type Finding = ReviewFinding;
10817
10497
 
10818
- export type { AgentSessionWire as A, BudgetSource as B, CreateReviewRequest as C, DefaultResolution as D, ErrorFrame as E, Finding as F, GithubAccountSnippet as G, Harness as H, SessionExecutionWire as I, SessionFrame as J, SessionLiveness as K, ListSessionRecordsResponse as L, SessionMessageStatus as M, SessionPrompting as N, SessionRecordWire as O, ParentKind as P, SessionState as Q, Review as R, SessionMessageWire as S, SessionStreamFrame as T, SessionSurface as U, SnapshotFrame as V, StreamFrame as W, TokensInfo as X, components as Y, paths as Z, ListSessionTurnsResponse as a, ListSessionExecutionsResponse as b, ListReviewsResponse as c, AgentSessionExitStatus as d, AgentSessionPr as e, AgentSessionSource as f, AgentSessionStatus as g, AgentTurn as h, AgentTurnStatus as i, AttributionType as j, DeltaFrame as k, DoneFrame as l, GithubAccountType as m, HeartbeatFrame as n, PromptBlockedReason as o, RecordsAppendFrame as p, ResolvedReviewScope as q, ReviewConfiguration as r, ReviewCounters as s, ReviewFinding as t, ReviewRequester as u, ReviewScope as v, ReviewScopeKind as w, ReviewStage as x, ReviewedCommit as y, SendSessionMessageRequest as z };
10498
+ export type { AgentSessionExitStatus as A, BudgetSource as B, CreateReviewRequest as C, DefaultResolution as D, ErrorFrame as E, Finding as F, GithubAccountSnippet as G, Harness as H, SessionMessage as I, SessionMessageResponse as J, SessionMessageStatus as K, SessionPrompting as L, SessionRecord as M, SessionRecordsListResponse as N, SessionResponse as O, ParentKind as P, SessionState as Q, RecordsAppendFrame as R, SendSessionMessageRequest as S, SessionStreamFrame as T, SessionSurface as U, SessionsListResponse as V, SnapshotFrame as W, StreamFrame as X, TokensInfo as Y, paths as Z, AgentSessionPr as a, AgentSessionSource as b, components as c, AgentSessionStatus as d, AttributionType as e, DeltaFrame as f, DoneFrame as g, GithubAccountType as h, HeartbeatFrame as i, PromptBlockedReason as j, ResolvedReviewScope as k, Review as l, ReviewConfiguration as m, ReviewCounters as n, ReviewFinding as o, ReviewRequester as p, ReviewScope as q, ReviewScopeKind as r, ReviewStage as s, ReviewedCommit as t, ReviewsListResponse as u, Session as v, SessionExecution as w, SessionExecutionsListResponse as x, SessionFrame as y, SessionLiveness as z };