@ellipsis-dev/sdk 0.32.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -300,8 +300,8 @@ var EllipsisAccountApiKeys = class {
300
300
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
301
301
  * Higher permission levels include lower levels: read < write < delete.
302
302
  */
303
- async revoke(api_key_id) {
304
- const path = `/v1/account/api-keys/${enc(api_key_id)}`;
303
+ async revoke(id) {
304
+ const path = `/v1/account/api-keys/${enc(id)}`;
305
305
  return await this.transport.request("DELETE", path);
306
306
  }
307
307
  };
@@ -336,8 +336,8 @@ var EllipsisAccountBillingAutoRecharge = class {
336
336
  * Requires a human account administrator; API keys and session tokens
337
337
  * cannot change this policy. Supply enabled explicitly. Saving amounts
338
338
  * with enabled=false keeps recharge off; enabling requires a saved card.
339
- * A recharge buys amount_cents of credit and charges the platform fee
340
- * in addition. Amounts and thresholds preserve exact cents.
339
+ * A recharge buys `amount` of credit and charges the platform fee in
340
+ * addition. Amounts and thresholds are millicents in whole cents.
341
341
  *
342
342
  * Required permissions: write:account.
343
343
  * API key: Requires a CLI user token belonging to an account administrator.
@@ -347,7 +347,7 @@ var EllipsisAccountBillingAutoRecharge = class {
347
347
  */
348
348
  async set(options) {
349
349
  const path = "/v1/account/billing/auto-recharge";
350
- const body = buildBody({ amount_cents: options.amount_cents, enabled: options.enabled, threshold_cents: options.threshold_cents });
350
+ const body = buildBody({ amount: options.amount, enabled: options.enabled, threshold: options.threshold });
351
351
  return await this.transport.request("PUT", path, { body });
352
352
  }
353
353
  };
@@ -384,7 +384,7 @@ var EllipsisAccountBilling = class {
384
384
  *
385
385
  * Requires a human account administrator. Open the returned URL to
386
386
  * complete payment. Credit is granted only after payment succeeds;
387
- * the platform fee is charged in addition to amount_cents. Returning
387
+ * the platform fee is charged in addition to `amount`. Returning
388
388
  * to Billing carries the checkout session ID for receipt lookup.
389
389
  *
390
390
  * Required permissions: write:account.
@@ -395,7 +395,7 @@ var EllipsisAccountBilling = class {
395
395
  */
396
396
  async checkout(options) {
397
397
  const path = "/v1/account/billing/checkout";
398
- const body = buildBody({ amount_cents: options.amount_cents });
398
+ const body = buildBody({ amount: options.amount });
399
399
  return await this.transport.request("POST", path, { body });
400
400
  }
401
401
  /**
@@ -419,7 +419,7 @@ var EllipsisAccountBilling = class {
419
419
  /**
420
420
  * Get Fee Schedule
421
421
  *
422
- * Get the account's rate card, in US dollars.
422
+ * Get the account's rate card, in millicents.
423
423
  *
424
424
  * Required permissions: read:account.
425
425
  * API key: Supported.
@@ -463,8 +463,8 @@ var EllipsisAccountBilling = class {
463
463
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
464
464
  * Higher permission levels include lower levels: read < write < delete.
465
465
  */
466
- async purchase(checkout_id) {
467
- const path = `/v1/account/billing/purchases/${enc(checkout_id)}`;
466
+ async purchase(id) {
467
+ const path = `/v1/account/billing/purchases/${enc(id)}`;
468
468
  return await this.transport.request("GET", path);
469
469
  }
470
470
  /**
@@ -472,7 +472,7 @@ var EllipsisAccountBilling = class {
472
472
  *
473
473
  * Get credit purchase bounds and the platform fee.
474
474
  *
475
- * All amounts are integer US cents. The fee is added to the credit
475
+ * All amounts are in millicents. The fee is added to the credit
476
476
  * amount; it does not reduce the credit granted.
477
477
  *
478
478
  * Required permissions: read:account.
@@ -631,7 +631,7 @@ var EllipsisAccountSettings = class {
631
631
  *
632
632
  * Set the organization settings.
633
633
  *
634
- * `budget_ceiling.session` is in US dollars, at most the platform
634
+ * `budget_ceiling.session` is in millicents, at most the platform
635
635
  * ceiling, and null clears it.
636
636
  * Refused for session tokens (potentially prompt-injected code must
637
637
  * not raise the organization's ceiling).
@@ -721,8 +721,7 @@ var EllipsisAccount = class {
721
721
  * Budgets cover the trailing 1, 7 and 28 days; they do not replenish
722
722
  * prepaid credit. Amounts include measured usage from active sessions.
723
723
  * Each paid LLM request requires positive credit and budget headroom.
724
- * An admitted request can overshoot; concurrent paid requests are limited
725
- * by your account and per-session allowances.
724
+ * An admitted request can overshoot.
726
725
  *
727
726
  * Required permissions: read:account.
728
727
  * API key: Supported.
@@ -775,13 +774,13 @@ var EllipsisAccount = class {
775
774
  /**
776
775
  * Get Usage
777
776
  *
778
- * Get usage for a calendar month, including its funding sources.
777
+ * Get usage for a calendar month, split by billing source.
779
778
  *
780
- * Omit period_start for the current UTC month; select a period returned
781
- * in billing_periods to view history. Credit debits are distinct from
782
- * rated token usage through a developer's Claude or Codex
783
- * subscription. Rated usage estimates are not provider invoices.
784
- * Pending and unresolved requests identify missing measurements.
779
+ * Omit period_start for the current UTC month. Pass a period from
780
+ * billing_periods to view history. Platform usage is charged to
781
+ * Ellipsis credit. Tokens paid by a developer's Claude or Codex
782
+ * subscription show their cost at Ellipsis rates and charge no
783
+ * credit. Pending and unresolved requests are missing measurements.
785
784
  *
786
785
  * Required permissions: read:account.
787
786
  * API key: Supported.
@@ -805,7 +804,7 @@ var EllipsisAgents = class {
805
804
  *
806
805
  * Create an agent, managed through the API: no file, live
807
806
  * immediately. To put its definition in a repository instead, create
808
- * it here and then POST /v1/agents/{agent_id}/link.
807
+ * it here and then POST /v1/agents/{id}/link.
809
808
  *
810
809
  * 409 when another live agent already holds the name.
811
810
  *
@@ -837,8 +836,8 @@ var EllipsisAgents = class {
837
836
  * Higher permission levels include lower levels: read < write < delete.
838
837
  * Grant match patterns can further restrict access to individual resources.
839
838
  */
840
- async delete(agent_id) {
841
- const path = `/v1/agents/${enc(agent_id)}`;
839
+ async delete(id) {
840
+ const path = `/v1/agents/${enc(id)}`;
842
841
  await this.transport.request("DELETE", path);
843
842
  }
844
843
  /**
@@ -853,8 +852,8 @@ var EllipsisAgents = class {
853
852
  * Higher permission levels include lower levels: read < write < delete.
854
853
  * Grant match patterns can further restrict access to individual resources.
855
854
  */
856
- async get(agent_id) {
857
- const path = `/v1/agents/${enc(agent_id)}`;
855
+ async get(id) {
856
+ const path = `/v1/agents/${enc(id)}`;
858
857
  return await this.transport.request("GET", path);
859
858
  }
860
859
  /**
@@ -874,8 +873,8 @@ var EllipsisAgents = class {
874
873
  * Higher permission levels include lower levels: read < write < delete.
875
874
  * Grant match patterns can further restrict access to individual resources.
876
875
  */
877
- async link(agent_id, options) {
878
- const path = `/v1/agents/${enc(agent_id)}/link`;
876
+ async link(id, options) {
877
+ const path = `/v1/agents/${enc(id)}/link`;
879
878
  const body = buildBody({ path: options.path, repository: options.repository });
880
879
  return await this.transport.request("POST", path, { body });
881
880
  }
@@ -913,8 +912,8 @@ var EllipsisAgents = class {
913
912
  * Higher permission levels include lower levels: read < write < delete.
914
913
  * Grant match patterns can further restrict access to individual resources.
915
914
  */
916
- async metrics(agent_id) {
917
- const path = `/v1/agents/${enc(agent_id)}/metrics`;
915
+ async metrics(id) {
916
+ const path = `/v1/agents/${enc(id)}/metrics`;
918
917
  return await this.transport.request("GET", path);
919
918
  }
920
919
  /**
@@ -941,8 +940,8 @@ var EllipsisAgents = class {
941
940
  * Higher permission levels include lower levels: read < write < delete.
942
941
  * Grant match patterns can further restrict access to individual resources.
943
942
  */
944
- async start(agent_id, options = {}) {
945
- const path = `/v1/agents/${enc(agent_id)}/sessions`;
943
+ async start(id, options = {}) {
944
+ const path = `/v1/agents/${enc(id)}/sessions`;
946
945
  const body = buildBody({ budget: options.budget, claude_code: options.claude_code, codex: options.codex, conversation: options.conversation, environment: options.environment, force_rebuild: options.force_rebuild, images: options.images, input: options.input, metadata: options.metadata, output: options.output, permissions: options.permissions, skills: options.skills });
947
946
  return await this.transport.request("POST", path, { body });
948
947
  }
@@ -976,8 +975,8 @@ var EllipsisAgents = class {
976
975
  * Higher permission levels include lower levels: read < write < delete.
977
976
  * Grant match patterns can further restrict access to individual resources.
978
977
  */
979
- async unlink(agent_id) {
980
- const path = `/v1/agents/${enc(agent_id)}/unlink`;
978
+ async unlink(id) {
979
+ const path = `/v1/agents/${enc(id)}/unlink`;
981
980
  return await this.transport.request("POST", path);
982
981
  }
983
982
  /**
@@ -997,8 +996,8 @@ var EllipsisAgents = class {
997
996
  * Higher permission levels include lower levels: read < write < delete.
998
997
  * Grant match patterns can further restrict access to individual resources.
999
998
  */
1000
- async update(agent_id, options) {
1001
- const path = `/v1/agents/${enc(agent_id)}`;
999
+ async update(id, options) {
1000
+ const path = `/v1/agents/${enc(id)}`;
1002
1001
  const body = buildBody({ agent: options.agent });
1003
1002
  return await this.transport.request("PUT", path, { body });
1004
1003
  }
@@ -1021,8 +1020,8 @@ var EllipsisAlerts = class {
1021
1020
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
1022
1021
  * Higher permission levels include lower levels: read < write < delete.
1023
1022
  */
1024
- async dismiss(alert_id) {
1025
- const path = `/v1/alerts/${enc(alert_id)}/dismiss`;
1023
+ async dismiss(id) {
1024
+ const path = `/v1/alerts/${enc(id)}/dismiss`;
1026
1025
  return await this.transport.request("POST", path);
1027
1026
  }
1028
1027
  /**
@@ -1038,8 +1037,8 @@ var EllipsisAlerts = class {
1038
1037
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
1039
1038
  * Higher permission levels include lower levels: read < write < delete.
1040
1039
  */
1041
- async get(alert_id) {
1042
- const path = `/v1/alerts/${enc(alert_id)}`;
1040
+ async get(id) {
1041
+ const path = `/v1/alerts/${enc(id)}`;
1043
1042
  return await this.transport.request("GET", path);
1044
1043
  }
1045
1044
  /**
@@ -1224,8 +1223,8 @@ var EllipsisEnvironments = class {
1224
1223
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
1225
1224
  * Higher permission levels include lower levels: read < write < delete.
1226
1225
  */
1227
- async delete(environment_id) {
1228
- const path = `/v1/environments/${enc(environment_id)}`;
1226
+ async delete(id) {
1227
+ const path = `/v1/environments/${enc(id)}`;
1229
1228
  await this.transport.request("DELETE", path);
1230
1229
  }
1231
1230
  /**
@@ -1239,8 +1238,8 @@ var EllipsisEnvironments = class {
1239
1238
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
1240
1239
  * Higher permission levels include lower levels: read < write < delete.
1241
1240
  */
1242
- async get(environment_id) {
1243
- const path = `/v1/environments/${enc(environment_id)}`;
1241
+ async get(id) {
1242
+ const path = `/v1/environments/${enc(id)}`;
1244
1243
  return await this.transport.request("GET", path);
1245
1244
  }
1246
1245
  /**
@@ -1274,8 +1273,8 @@ var EllipsisEnvironments = class {
1274
1273
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
1275
1274
  * Higher permission levels include lower levels: read < write < delete.
1276
1275
  */
1277
- async update(environment_id, options) {
1278
- const path = `/v1/environments/${enc(environment_id)}`;
1276
+ async update(id, options) {
1277
+ const path = `/v1/environments/${enc(id)}`;
1279
1278
  const body = buildBody({ environment: options.environment });
1280
1279
  return await this.transport.request("PUT", path, { body });
1281
1280
  }
@@ -1335,8 +1334,8 @@ var EllipsisHandlers = class {
1335
1334
  * Higher permission levels include lower levels: read < write < delete.
1336
1335
  * Grant match patterns can further restrict access to individual resources.
1337
1336
  */
1338
- async metrics(handler_id, options = {}) {
1339
- const path = `/v1/handlers/${enc(handler_id)}/metrics`;
1337
+ async metrics(id, options = {}) {
1338
+ const path = `/v1/handlers/${enc(id)}/metrics`;
1340
1339
  const query = buildQuery({ start: options.start, end: options.end });
1341
1340
  return await this.transport.request("GET", path, { query });
1342
1341
  }
@@ -1459,8 +1458,8 @@ var EllipsisIntegrationsSentry = class {
1459
1458
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
1460
1459
  * Higher permission levels include lower levels: read < write < delete.
1461
1460
  */
1462
- async delete(integration_id) {
1463
- const path = `/v1/integrations/sentry/${enc(integration_id)}`;
1461
+ async delete(id) {
1462
+ const path = `/v1/integrations/sentry/${enc(id)}`;
1464
1463
  return await this.transport.request("DELETE", path);
1465
1464
  }
1466
1465
  /**
@@ -1618,8 +1617,8 @@ var EllipsisReviews = class {
1618
1617
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
1619
1618
  * Higher permission levels include lower levels: read < write < delete.
1620
1619
  */
1621
- async get(review_id) {
1622
- const path = `/v1/reviews/${enc(review_id)}`;
1620
+ async get(id) {
1621
+ const path = `/v1/reviews/${enc(id)}`;
1623
1622
  return await this.transport.request("GET", path);
1624
1623
  }
1625
1624
  /**
@@ -1730,8 +1729,8 @@ var EllipsisSessionsTurns = class {
1730
1729
  * Higher permission levels include lower levels: read < write < delete.
1731
1730
  * Grant match patterns can further restrict access to individual resources.
1732
1731
  */
1733
- async get(session_id, turn_id) {
1734
- const path = `/v1/sessions/${enc(session_id)}/turns/${enc(turn_id)}`;
1732
+ async get(session_id, id) {
1733
+ const path = `/v1/sessions/${enc(session_id)}/turns/${enc(id)}`;
1735
1734
  return await this.transport.request("GET", path);
1736
1735
  }
1737
1736
  /**
@@ -1750,8 +1749,8 @@ var EllipsisSessionsTurns = class {
1750
1749
  * Higher permission levels include lower levels: read < write < delete.
1751
1750
  * Grant match patterns can further restrict access to individual resources.
1752
1751
  */
1753
- async list(session_id) {
1754
- const path = `/v1/sessions/${enc(session_id)}/turns`;
1752
+ async list(id) {
1753
+ const path = `/v1/sessions/${enc(id)}/turns`;
1755
1754
  return await this.transport.request("GET", path);
1756
1755
  }
1757
1756
  };
@@ -1782,8 +1781,8 @@ var EllipsisSessions = class {
1782
1781
  * Higher permission levels include lower levels: read < write < delete.
1783
1782
  * Grant match patterns can further restrict access to individual resources.
1784
1783
  */
1785
- async analytics(session_id) {
1786
- const path = `/v1/sessions/${enc(session_id)}/analytics`;
1784
+ async analytics(id) {
1785
+ const path = `/v1/sessions/${enc(id)}/analytics`;
1787
1786
  return await this.transport.request("GET", path);
1788
1787
  }
1789
1788
  /**
@@ -1804,8 +1803,8 @@ var EllipsisSessions = class {
1804
1803
  * Higher permission levels include lower levels: read < write < delete.
1805
1804
  * Grant match patterns can further restrict access to individual resources.
1806
1805
  */
1807
- async diff(session_id) {
1808
- const path = `/v1/sessions/${enc(session_id)}/diff`;
1806
+ async diff(id) {
1807
+ const path = `/v1/sessions/${enc(id)}/diff`;
1809
1808
  return await this.transport.request("GET", path);
1810
1809
  }
1811
1810
  /**
@@ -1829,8 +1828,8 @@ var EllipsisSessions = class {
1829
1828
  * Higher permission levels include lower levels: read < write < delete.
1830
1829
  * Grant match patterns can further restrict access to individual resources.
1831
1830
  */
1832
- async download(session_id) {
1833
- const path = `/v1/sessions/${enc(session_id)}/download`;
1831
+ async download(id) {
1832
+ const path = `/v1/sessions/${enc(id)}/download`;
1834
1833
  return await this.transport.request("GET", path);
1835
1834
  }
1836
1835
  /**
@@ -1852,8 +1851,8 @@ var EllipsisSessions = class {
1852
1851
  * Higher permission levels include lower levels: read < write < delete.
1853
1852
  * Grant match patterns can further restrict access to individual resources.
1854
1853
  */
1855
- async get(session_id) {
1856
- const path = `/v1/sessions/${enc(session_id)}`;
1854
+ async get(id) {
1855
+ const path = `/v1/sessions/${enc(id)}`;
1857
1856
  return await this.transport.request("GET", path);
1858
1857
  }
1859
1858
  /**
@@ -1871,8 +1870,8 @@ var EllipsisSessions = class {
1871
1870
  * Higher permission levels include lower levels: read < write < delete.
1872
1871
  * Grant match patterns can further restrict access to individual resources.
1873
1872
  */
1874
- async git(session_id) {
1875
- const path = `/v1/sessions/${enc(session_id)}/git`;
1873
+ async git(id) {
1874
+ const path = `/v1/sessions/${enc(id)}/git`;
1876
1875
  return await this.transport.request("GET", path);
1877
1876
  }
1878
1877
  /**
@@ -1893,8 +1892,8 @@ var EllipsisSessions = class {
1893
1892
  * Higher permission levels include lower levels: read < write < delete.
1894
1893
  * Grant match patterns can further restrict access to individual resources.
1895
1894
  */
1896
- async ingestTranscript(session_id, options) {
1897
- const path = `/v1/sessions/${enc(session_id)}/transcript`;
1895
+ async ingestTranscript(id, options) {
1896
+ const path = `/v1/sessions/${enc(id)}/transcript`;
1898
1897
  const body = buildBody({ lines: options.lines, offset: options.offset });
1899
1898
  return await this.transport.request("POST", path, { body });
1900
1899
  }
@@ -1939,8 +1938,8 @@ var EllipsisSessions = class {
1939
1938
  * Higher permission levels include lower levels: read < write < delete.
1940
1939
  * Grant match patterns can further restrict access to individual resources.
1941
1940
  */
1942
- async metrics(session_id) {
1943
- const path = `/v1/sessions/${enc(session_id)}/metrics`;
1941
+ async metrics(id) {
1942
+ const path = `/v1/sessions/${enc(id)}/metrics`;
1944
1943
  return await this.transport.request("GET", path);
1945
1944
  }
1946
1945
  /**
@@ -1961,14 +1960,14 @@ var EllipsisSessions = class {
1961
1960
  * Higher permission levels include lower levels: read < write < delete.
1962
1961
  * Grant match patterns can further restrict access to individual resources.
1963
1962
  */
1964
- async records(session_id, options = {}) {
1965
- const path = `/v1/sessions/${enc(session_id)}/records`;
1963
+ async records(id, options = {}) {
1964
+ const path = `/v1/sessions/${enc(id)}/records`;
1966
1965
  const query = buildQuery({ cursor: options.cursor, limit: options.limit });
1967
1966
  const response = await this.transport.request("GET", path, { query });
1968
1967
  return new Page(
1969
1968
  response,
1970
1969
  "records",
1971
- (cursor) => this.records(session_id, { ...options, cursor })
1970
+ (cursor) => this.records(id, { ...options, cursor })
1972
1971
  );
1973
1972
  }
1974
1973
  /**
@@ -2002,8 +2001,8 @@ var EllipsisSessions = class {
2002
2001
  * Higher permission levels include lower levels: read < write < delete.
2003
2002
  * Grant match patterns can further restrict access to individual resources.
2004
2003
  */
2005
- async sendMessage(session_id, options) {
2006
- const path = `/v1/sessions/${enc(session_id)}/messages`;
2004
+ async sendMessage(id, options) {
2005
+ const path = `/v1/sessions/${enc(id)}/messages`;
2007
2006
  const body = buildBody({ idempotency_key: options.idempotency_key, images: options.images, message: options.message });
2008
2007
  return await this.transport.request("POST", path, { body });
2009
2008
  }
@@ -2017,8 +2016,8 @@ var EllipsisSessions = class {
2017
2016
  * Higher permission levels include lower levels: read < write < delete.
2018
2017
  * Grant match patterns can further restrict access to individual resources.
2019
2018
  */
2020
- async sessionStreamTicket(session_id) {
2021
- const path = `/v1/sessions/${enc(session_id)}/stream-ticket`;
2019
+ async sessionStreamTicket(id) {
2020
+ const path = `/v1/sessions/${enc(id)}/stream-ticket`;
2022
2021
  return await this.transport.request("GET", path);
2023
2022
  }
2024
2023
  /**
@@ -2037,7 +2036,7 @@ var EllipsisSessions = class {
2037
2036
  * turn, waiting for one. 400 when `conversation.interactive` is false
2038
2037
  * and there is no prompt, or when `budget.session` exceeds the
2039
2038
  * organization's per-session ceiling. To start a session from a saved
2040
- * agent, use POST /v1/agents/{agent_id}/sessions.
2039
+ * agent, use POST /v1/agents/{id}/sessions.
2041
2040
  *
2042
2041
  * Required permissions: write:sessions.
2043
2042
  * API key: Supported.
@@ -2057,7 +2056,7 @@ var EllipsisSessions = class {
2057
2056
  * Stop the turn in progress and return the session.
2058
2057
  *
2059
2058
  * The turn ends `stopped`; the conversation stays open. 409 when no
2060
- * turn is pending or running. The stopping user is recorded only
2059
+ * turn is queued, preparing, or running. The stopping user is recorded only
2061
2060
  * when the caller's credential maps to a GitHub account.
2062
2061
  *
2063
2062
  * Required permissions: write:sessions.
@@ -2067,8 +2066,8 @@ var EllipsisSessions = class {
2067
2066
  * Higher permission levels include lower levels: read < write < delete.
2068
2067
  * Grant match patterns can further restrict access to individual resources.
2069
2068
  */
2070
- async stop(session_id) {
2071
- const path = `/v1/sessions/${enc(session_id)}/stop`;
2069
+ async stop(id) {
2070
+ const path = `/v1/sessions/${enc(id)}/stop`;
2072
2071
  return await this.transport.request("POST", path);
2073
2072
  }
2074
2073
  /**
@@ -2105,8 +2104,8 @@ var EllipsisSessions = class {
2105
2104
  * Higher permission levels include lower levels: read < write < delete.
2106
2105
  * Grant match patterns can further restrict access to individual resources.
2107
2106
  */
2108
- async update(session_id, options) {
2109
- const path = `/v1/sessions/${enc(session_id)}`;
2107
+ async update(id, options) {
2108
+ const path = `/v1/sessions/${enc(id)}`;
2110
2109
  const body = buildBody({ archived: options.archived });
2111
2110
  return await this.transport.request("PUT", path, { body });
2112
2111
  }
@@ -2193,8 +2192,8 @@ var EllipsisTemplates = class {
2193
2192
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
2194
2193
  * Higher permission levels include lower levels: read < write < delete.
2195
2194
  */
2196
- async get(template_id) {
2197
- const path = `/v1/templates/${enc(template_id)}`;
2195
+ async get(id) {
2196
+ const path = `/v1/templates/${enc(id)}`;
2198
2197
  return await this.transport.request("GET", path);
2199
2198
  }
2200
2199
  /**
@@ -2369,8 +2368,8 @@ var EllipsisUserTokens = class {
2369
2368
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2370
2369
  * Higher permission levels include lower levels: read < write < delete.
2371
2370
  */
2372
- async revoke(token_id) {
2373
- const path = `/v1/user/tokens/${enc(token_id)}`;
2371
+ async revoke(id) {
2372
+ const path = `/v1/user/tokens/${enc(id)}`;
2374
2373
  return await this.transport.request("DELETE", path);
2375
2374
  }
2376
2375
  };
@@ -2398,8 +2397,8 @@ var EllipsisVmExecutions = class {
2398
2397
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own sandbox.
2399
2398
  * Higher permission levels include lower levels: read < write < delete.
2400
2399
  */
2401
- async get(vm_execution_id) {
2402
- const path = `/v1/vm-executions/${enc(vm_execution_id)}`;
2400
+ async get(id) {
2401
+ const path = `/v1/vm-executions/${enc(id)}`;
2403
2402
  return await this.transport.request("GET", path);
2404
2403
  }
2405
2404
  /**
@@ -2424,8 +2423,8 @@ var EllipsisVmExecutions = class {
2424
2423
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own sandbox.
2425
2424
  * Higher permission levels include lower levels: read < write < delete.
2426
2425
  */
2427
- async streamTicket(vm_execution_id) {
2428
- const path = `/v1/vm-executions/${enc(vm_execution_id)}/stream-ticket`;
2426
+ async streamTicket(id) {
2427
+ const path = `/v1/vm-executions/${enc(id)}/stream-ticket`;
2429
2428
  return await this.transport.request("GET", path);
2430
2429
  }
2431
2430
  };
@@ -2445,8 +2444,8 @@ var EllipsisVmImages = class {
2445
2444
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2446
2445
  * Higher permission levels include lower levels: read < write < delete.
2447
2446
  */
2448
- async get(image_id) {
2449
- const path = `/v1/vm-images/${enc(image_id)}`;
2447
+ async get(id) {
2448
+ const path = `/v1/vm-images/${enc(id)}`;
2450
2449
  return await this.transport.request("GET", path);
2451
2450
  }
2452
2451
  /**
@@ -2484,8 +2483,8 @@ var EllipsisVms = class {
2484
2483
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own VM.
2485
2484
  * Higher permission levels include lower levels: read < write < delete.
2486
2485
  */
2487
- async get(vm_id) {
2488
- const path = `/v1/vms/${enc(vm_id)}`;
2486
+ async get(id) {
2487
+ const path = `/v1/vms/${enc(id)}`;
2489
2488
  return await this.transport.request("GET", path);
2490
2489
  }
2491
2490
  /**
@@ -2519,8 +2518,8 @@ var EllipsisVms = class {
2519
2518
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own VM.
2520
2519
  * Higher permission levels include lower levels: read < write < delete.
2521
2520
  */
2522
- async metrics(vm_id, options = {}) {
2523
- const path = `/v1/vms/${enc(vm_id)}/metrics`;
2521
+ async metrics(id, options = {}) {
2522
+ const path = `/v1/vms/${enc(id)}/metrics`;
2524
2523
  const query = buildQuery({ start: options.start, end: options.end });
2525
2524
  return await this.transport.request("GET", path, { query });
2526
2525
  }
@@ -2544,8 +2543,8 @@ var EllipsisWebhooksDeliveries = class {
2544
2543
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2545
2544
  * Higher permission levels include lower levels: read < write < delete.
2546
2545
  */
2547
- async get(delivery_id) {
2548
- const path = `/v1/webhooks/deliveries/${enc(delivery_id)}`;
2546
+ async get(id) {
2547
+ const path = `/v1/webhooks/deliveries/${enc(id)}`;
2549
2548
  return await this.transport.request("GET", path);
2550
2549
  }
2551
2550
  /**
@@ -2615,8 +2614,8 @@ var EllipsisWebhooks = class {
2615
2614
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2616
2615
  * Higher permission levels include lower levels: read < write < delete.
2617
2616
  */
2618
- async delete(webhook_id) {
2619
- const path = `/v1/webhooks/${enc(webhook_id)}`;
2617
+ async delete(id) {
2618
+ const path = `/v1/webhooks/${enc(id)}`;
2620
2619
  await this.transport.request("DELETE", path);
2621
2620
  }
2622
2621
  /**
@@ -2630,8 +2629,8 @@ var EllipsisWebhooks = class {
2630
2629
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2631
2630
  * Higher permission levels include lower levels: read < write < delete.
2632
2631
  */
2633
- async get(webhook_id) {
2634
- const path = `/v1/webhooks/${enc(webhook_id)}`;
2632
+ async get(id) {
2633
+ const path = `/v1/webhooks/${enc(id)}`;
2635
2634
  return await this.transport.request("GET", path);
2636
2635
  }
2637
2636
  /**
@@ -2665,8 +2664,8 @@ var EllipsisWebhooks = class {
2665
2664
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2666
2665
  * Higher permission levels include lower levels: read < write < delete.
2667
2666
  */
2668
- async ping(webhook_id) {
2669
- const path = `/v1/webhooks/${enc(webhook_id)}/ping`;
2667
+ async ping(id) {
2668
+ const path = `/v1/webhooks/${enc(id)}/ping`;
2670
2669
  await this.transport.request("POST", path);
2671
2670
  }
2672
2671
  /**
@@ -2684,8 +2683,8 @@ var EllipsisWebhooks = class {
2684
2683
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2685
2684
  * Higher permission levels include lower levels: read < write < delete.
2686
2685
  */
2687
- async update(webhook_id, options) {
2688
- const path = `/v1/webhooks/${enc(webhook_id)}`;
2686
+ async update(id, options) {
2687
+ const path = `/v1/webhooks/${enc(id)}`;
2689
2688
  const body = buildBody({ description: options.description, events: options.events, url: options.url });
2690
2689
  return await this.transport.request("PUT", path, { body });
2691
2690
  }
@@ -1,4 +1,4 @@
1
- import { r as CodexAgentMessage, cp as SessionRecord, L as CodexFileChangeItem, J as CodexEvent, Y as CodexMcpToolCallItem, bM as SdkRecord, bZ as Session, ci as SessionMessage, cI as StreamFrame } from '../types-DjY1VcOe.js';
1
+ import { s as CodexAgentMessage, cA as SessionRecord, M as CodexFileChangeItem, K as CodexEvent, Z as CodexMcpToolCallItem, bZ as SdkRecord, ca as Session, ct as SessionMessage, cS as StreamFrame } from '../types-sNAOvELB.js';
2
2
 
3
3
  type WorkPhase = 'queued' | 'preparing' | 'starting' | 'working';
4
4
  interface TurnTiming {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SESSION_STREAM_PROTOCOL_VERSION
3
- } from "../chunk-G2AEYZW2.js";
3
+ } from "../chunk-6V7QTLLF.js";
4
4
 
5
5
  // src/store/claude.ts
6
6
  function claudePayload(record) {
@@ -316,6 +316,8 @@ function lifecycleText(recordType, payload) {
316
316
  if (duration) parts.push(duration);
317
317
  return parts.join(", ");
318
318
  }
319
+ case "turn_queued":
320
+ return typeof payload.limit === "number" ? `Waiting because ${payload.limit} sessions are already alive on this account` : null;
319
321
  case "turn_ended":
320
322
  return turnEndedText(payload);
321
323
  case "session_closed":
@@ -719,7 +721,7 @@ function foldCosts(events) {
719
721
  }
720
722
  function statusActivityText(status) {
721
723
  switch (status) {
722
- case "pending":
724
+ case "queued":
723
725
  return "Waiting to start";
724
726
  default:
725
727
  return null;
@@ -1,6 +1,6 @@
1
- import { cI as StreamFrame, bZ as Session } from '../types-DjY1VcOe.js';
1
+ import { cS as StreamFrame, ca as Session } from '../types-sNAOvELB.js';
2
2
 
3
- declare const SESSION_STREAM_PROTOCOL_VERSION = 6;
3
+ declare const SESSION_STREAM_PROTOCOL_VERSION = 7;
4
4
  declare const WS_CLOSE_NORMAL = 1000;
5
5
  declare const WS_CLOSE_GOING_AWAY = 1001;
6
6
  declare const WS_CLOSE_UNSUPPORTED_PROTOCOL_VERSION = 1002;
@@ -15,7 +15,7 @@ import {
15
15
  sessionStatusWord,
16
16
  streamQuery,
17
17
  streamSession
18
- } from "../chunk-G2AEYZW2.js";
18
+ } from "../chunk-6V7QTLLF.js";
19
19
  export {
20
20
  SESSION_STREAM_PROTOCOL_VERSION,
21
21
  StreamAuthError,