@ellipsis-dev/sdk 0.34.0 → 0.35.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
@@ -490,9 +490,9 @@ var EllipsisAccountBilling = class {
490
490
  *
491
491
  * Explain whether your account can start sessions.
492
492
  *
493
- * Uses the same account gate as session admission, including credit,
494
- * contact email, and personal subscription eligibility. Scoped
495
- * spend limits are reported separately by /v1/account/budget.
493
+ * Uses the same account gate as session admission, including credit
494
+ * and contact email. Scoped spend limits are reported separately by
495
+ * /v1/account/budget.
496
496
  *
497
497
  * Required permissions: read:account.
498
498
  * API key: Supported.
@@ -522,7 +522,7 @@ var EllipsisAccountModels = class {
522
522
  * client's model picker can never drift from what's offered. The
523
523
  * selectable set is global.
524
524
  *
525
- * Required permissions: read:templates.
525
+ * Required permissions: read:account.
526
526
  * API key: Supported.
527
527
  * CLI user token: Supported.
528
528
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
@@ -942,7 +942,7 @@ var EllipsisAgents = class {
942
942
  */
943
943
  async start(id, options = {}) {
944
944
  const path = `/v1/agents/${enc(id)}/sessions`;
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 });
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, gemini: options.gemini, images: options.images, input: options.input, metadata: options.metadata, output: options.output, permissions: options.permissions, skills: options.skills });
946
946
  return await this.transport.request("POST", path, { body });
947
947
  }
948
948
  /**
@@ -1081,10 +1081,11 @@ var EllipsisAnalytics = class {
1081
1081
  * The same data as the analytics dashboard.
1082
1082
  *
1083
1083
  * Windowing: pass explicit start/end, or days (default: the last
1084
- * 30 days). account_type in all|user|bot scopes the authors (bot =
1085
- * the apps/agents). Available to all credential types: the
1086
- * responses expose the organization's own GitHub PR/review activity,
1087
- * no secrets.
1084
+ * 30 days). `interval` names the width of each entry in `series`,
1085
+ * chosen from the window's length. account_type in all|user|bot
1086
+ * scopes the authors (bot = the apps/agents). Available to all
1087
+ * credential types: the responses expose the organization's own
1088
+ * GitHub PR/review activity, no secrets.
1088
1089
  *
1089
1090
  * Required permissions: read:account.
1090
1091
  * API key: Supported.
@@ -1103,7 +1104,9 @@ var EllipsisAnalytics = class {
1103
1104
  * Return pull-request analytics.
1104
1105
  *
1105
1106
  * Windowing: pass explicit start/end, or days (default: the last
1106
- * 30 days). account_type in all|user|bot scopes the authors.
1107
+ * 30 days). `interval` names the width of each entry in `series`,
1108
+ * chosen from the window's length. account_type in all|user|bot
1109
+ * scopes the authors.
1107
1110
  *
1108
1111
  * Required permissions: read:account.
1109
1112
  * API key: Supported.
@@ -1124,7 +1127,8 @@ var EllipsisAnalytics = class {
1124
1127
  * account_type scopes reviewers (bot|user|all) — e.g. "what apps
1125
1128
  * review the most PRs?" is the reviewer facets here with
1126
1129
  * account_type=bot. Windowing: pass explicit start/end, or days
1127
- * (default: the last 30 days).
1130
+ * (default: the last 30 days). `interval` names the width of each
1131
+ * entry in `series`, chosen from the window's length.
1128
1132
  *
1129
1133
  * Required permissions: read:account.
1130
1134
  * API key: Supported.
@@ -1320,8 +1324,9 @@ var EllipsisHandlers = class {
1320
1324
  * Only sessions carrying this exact saved handler id are counted;
1321
1325
  * legacy sessions without handler provenance are excluded.
1322
1326
  *
1323
- * spend_windows reports current trailing 1-, 7-, and 28-day credit
1324
- * debits and effective handler budgets across all attributed sessions.
1327
+ * spend_windows reports current trailing 1-, 7-, and 28-day spend,
1328
+ * including subscription tokens, and effective handler budgets across
1329
+ * all attributed sessions.
1325
1330
  * Those windows use usage timestamps and are independent of start/end.
1326
1331
  *
1327
1332
  * Requires configs:read matching handlers/{service} and unrestricted
@@ -2047,7 +2052,7 @@ var EllipsisSessions = class {
2047
2052
  */
2048
2053
  async start(options = {}) {
2049
2054
  const path = "/v1/sessions";
2050
- 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, metadata: options.metadata, output: options.output, permissions: options.permissions, skills: options.skills });
2055
+ 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, gemini: options.gemini, images: options.images, metadata: options.metadata, output: options.output, permissions: options.permissions, skills: options.skills });
2051
2056
  return await this.transport.request("POST", path, { body });
2052
2057
  }
2053
2058
  /**
@@ -2176,171 +2181,6 @@ var EllipsisSupport = class {
2176
2181
  transport;
2177
2182
  slack;
2178
2183
  };
2179
- var EllipsisTemplates = class {
2180
- constructor(transport) {
2181
- this.transport = transport;
2182
- }
2183
- transport;
2184
- /**
2185
- * Get Agent Template
2186
- *
2187
- * Return one built-in agent template by slug.
2188
- *
2189
- * Required permissions: read:templates.
2190
- * API key: Supported.
2191
- * CLI user token: Supported.
2192
- * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
2193
- * Higher permission levels include lower levels: read < write < delete.
2194
- */
2195
- async get(id) {
2196
- const path = `/v1/templates/${enc(id)}`;
2197
- return await this.transport.request("GET", path);
2198
- }
2199
- /**
2200
- * List Agent Templates
2201
- *
2202
- * List the built-in starter agent templates.
2203
- *
2204
- * Behind auth but not account-scoped — the data is static
2205
- * product content shared by the dashboard, landing site, and CLI.
2206
- *
2207
- * Required permissions: read:templates.
2208
- * API key: Supported.
2209
- * CLI user token: Supported.
2210
- * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
2211
- * Higher permission levels include lower levels: read < write < delete.
2212
- */
2213
- async list() {
2214
- const path = "/v1/templates";
2215
- return await this.transport.request("GET", path);
2216
- }
2217
- };
2218
- var EllipsisUserSubscriptionTokens = class {
2219
- constructor(transport) {
2220
- this.transport = transport;
2221
- }
2222
- transport;
2223
- /**
2224
- * Delete Subscription Token
2225
- *
2226
- * Delete your subscription token for a provider.
2227
- *
2228
- * Your sessions stop billing your subscription immediately, and the
2229
- * usage reading goes with it — it described that token's plan.
2230
- *
2231
- * Required permissions: delete:user.
2232
- * API key: Requires a CLI user token.
2233
- * CLI user token: Supported.
2234
- * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2235
- * Higher permission levels include lower levels: read < write < delete.
2236
- */
2237
- async delete(provider) {
2238
- const path = `/v1/user/subscription_tokens/${enc(String(provider))}`;
2239
- await this.transport.request("DELETE", path);
2240
- }
2241
- /**
2242
- * Get Subscription Token
2243
- *
2244
- * Get one provider's subscription token.
2245
- *
2246
- * `configured` is false when nothing is saved. The token itself is
2247
- * never returned, only `token_last4`.
2248
- *
2249
- * Required permissions: read:user.
2250
- * API key: Requires a CLI user token.
2251
- * CLI user token: Supported.
2252
- * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2253
- * Higher permission levels include lower levels: read < write < delete.
2254
- */
2255
- async get(provider) {
2256
- const path = `/v1/user/subscription_tokens/${enc(String(provider))}`;
2257
- return await this.transport.request("GET", path);
2258
- }
2259
- /**
2260
- * List Subscription Tokens
2261
- *
2262
- * List your subscription tokens.
2263
- *
2264
- * One entry per supported provider, whether or not you have saved a
2265
- * token for it. Tokens are write-only: the response carries only
2266
- * `token_last4`, never the token.
2267
- *
2268
- * Required permissions: read:user.
2269
- * API key: Requires a CLI user token.
2270
- * CLI user token: Supported.
2271
- * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2272
- * Higher permission levels include lower levels: read < write < delete.
2273
- */
2274
- async list() {
2275
- const path = "/v1/user/subscription_tokens";
2276
- return await this.transport.request("GET", path);
2277
- }
2278
- /**
2279
- * Set Subscription Token
2280
- *
2281
- * Save your subscription token for a provider.
2282
- *
2283
- * Replaces whatever was stored. The token is saved DISABLED and
2284
- * routes nothing until `POST /v1/user/subscription_tokens/{provider}/verify`
2285
- * succeeds. For Claude, use `claude setup-token`. For Codex, paste
2286
- * the auth.json credentials from a ChatGPT login. Each subscription
2287
- * pays only for models from its corresponding provider.
2288
- *
2289
- * Required permissions: write:user.
2290
- * API key: Requires a CLI user token.
2291
- * CLI user token: Supported.
2292
- * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2293
- * Higher permission levels include lower levels: read < write < delete.
2294
- */
2295
- async set(provider, options) {
2296
- const path = `/v1/user/subscription_tokens/${enc(String(provider))}`;
2297
- const body = buildBody({ token: options.token });
2298
- return await this.transport.request("POST", path, { body });
2299
- }
2300
- /**
2301
- * Get Subscription Usage
2302
- *
2303
- * Get your plan's last-observed rate-limit windows.
2304
- *
2305
- * Display-only, and only as fresh as your last call through Ellipsis
2306
- * (`observed_at`) — the same plan used outside Ellipsis moves the
2307
- * real windows without us seeing them. Null unless a token is
2308
- * enabled for the provider: a disabled token routes nothing, so any
2309
- * reading behind it is stale by construction.
2310
- *
2311
- * Required permissions: read:user.
2312
- * API key: Requires a CLI user token.
2313
- * CLI user token: Supported.
2314
- * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2315
- * Higher permission levels include lower levels: read < write < delete.
2316
- */
2317
- async usage(provider) {
2318
- const path = `/v1/user/subscription_tokens/${enc(String(provider))}/usage`;
2319
- return await this.transport.request("GET", path);
2320
- }
2321
- /**
2322
- * Verify Subscription Token
2323
- *
2324
- * Verify the stored token by using it.
2325
- *
2326
- * Makes one minimal call on the exact runtime path, so a pass proves
2327
- * the token is what will pay. This is the gate on routing: success
2328
- * enables the token, failure disables it, so verifying a revoked
2329
- * token is how you stop it routing. A 200 with `ok: false` is the
2330
- * normal way a bad token is reported — it is an answer, not a
2331
- * transport failure.
2332
- *
2333
- * Required permissions: write:user.
2334
- * API key: Requires a CLI user token.
2335
- * CLI user token: Supported.
2336
- * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2337
- * Higher permission levels include lower levels: read < write < delete.
2338
- */
2339
- async verify(provider) {
2340
- const path = `/v1/user/subscription_tokens/${enc(String(provider))}/verify`;
2341
- return await this.transport.request("POST", path);
2342
- }
2343
- };
2344
2184
  var EllipsisUserTokens = class {
2345
2185
  constructor(transport) {
2346
2186
  this.transport = transport;
@@ -2376,11 +2216,9 @@ var EllipsisUserTokens = class {
2376
2216
  var EllipsisUser = class {
2377
2217
  constructor(transport) {
2378
2218
  this.transport = transport;
2379
- this.subscriptionTokens = new EllipsisUserSubscriptionTokens(transport);
2380
2219
  this.tokens = new EllipsisUserTokens(transport);
2381
2220
  }
2382
2221
  transport;
2383
- subscriptionTokens;
2384
2222
  tokens;
2385
2223
  };
2386
2224
  var EllipsisVmExecutions = class {
@@ -2703,7 +2541,6 @@ var Ellipsis = class {
2703
2541
  secrets;
2704
2542
  sessions;
2705
2543
  support;
2706
- templates;
2707
2544
  user;
2708
2545
  vmExecutions;
2709
2546
  vmImages;
@@ -2723,7 +2560,6 @@ var Ellipsis = class {
2723
2560
  this.secrets = new EllipsisSecrets(this.transport);
2724
2561
  this.sessions = new EllipsisSessions(this.transport);
2725
2562
  this.support = new EllipsisSupport(this.transport);
2726
- this.templates = new EllipsisTemplates(this.transport);
2727
2563
  this.user = new EllipsisUser(this.transport);
2728
2564
  this.vmExecutions = new EllipsisVmExecutions(this.transport);
2729
2565
  this.vmImages = new EllipsisVmImages(this.transport);
@@ -1,4 +1,4 @@
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';
1
+ import { s as CodexAgentMessage, cM as SessionRecord, M as CodexFileChangeItem, K as CodexEvent, Z as CodexMcpToolCallItem, c9 as SdkRecord, cm as Session, cF as SessionMessage, d2 as StreamFrame } from '../types-BrLpRRde.js';
2
2
 
3
3
  type WorkPhase = 'queued' | 'preparing' | 'starting' | 'working';
4
4
  interface TurnTiming {