@ellipsis-dev/sdk 0.30.0 → 0.31.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/README.md +4 -4
- package/dist/{chunk-K252XHLI.js → chunk-G2AEYZW2.js} +4 -8
- package/dist/index.d.ts +469 -529
- package/dist/index.js +244 -378
- package/dist/store/index.d.ts +24 -26
- package/dist/store/index.js +189 -277
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/index.js +1 -1
- package/dist/{types-DrPhhfOb.d.ts → types-BQxZcD0_.d.ts} +3133 -5348
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +265 -248
- package/schema/frames.schema.json +3245 -5445
- package/schema/lifecycle.schema.json +182 -323
- package/schema/openapi.v1.json +3369 -6810
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { c as components } from './types-
|
|
2
|
-
export { A as AgentConfig, a as AgentIdentity, b as AttributionType, B as BudgetConfig, C as ClaudeAssistantEvent, d as ClaudeAssistantMessage, e as ClaudeConfig, f as ClaudeConversationResetEvent, g as ClaudeNativeEvent, h as ClaudeNativeSessionRecord, i as ClaudeNativeUsage, j as ClaudeRateLimitEvent, k as ClaudeRateLimitInfo, l as ClaudeResultEvent, m as ClaudeSessionRecord, n as ClaudeSystemEvent, o as ClaudeUserEvent, p as ClaudeUserMessage, q as CodexAgentMessage, r as CodexAgentMessageItem, s as CodexAppServerError, t as CodexAppServerEvent, u as CodexAppServerItem, v as CodexAppServerNotification, w as CodexAppServerSessionRecord, x as CodexCommandExecution, y as CodexCommandExecutionItem, z as CodexConfig, D as CodexContextCompaction, E as CodexEffortLevel, F as CodexErrorEvent, G as CodexErrorItem, H as CodexErrorParams, I as CodexEvent, J as CodexFileChange, K as CodexFileChangeItem, L as CodexFileUpdate, M as CodexItem, N as CodexItemCompleted, O as CodexItemCompletedEvent, P as CodexItemParams, Q as CodexItemStarted, R as CodexItemStartedEvent, S as CodexItemUpdatedEvent, T as CodexLocalImageInput, U as CodexMcpToolCall, V as CodexMcpToolCallAppContext, W as CodexMcpToolCallError, X as CodexMcpToolCallItem, Y as CodexMcpToolCallResult, Z as CodexPlan, _ as CodexReasoning, $ as CodexReasoningItem, a0 as CodexSessionRecord, a1 as CodexTextInput, a2 as CodexThread, a3 as CodexThreadStarted, a4 as CodexThreadStartedEvent, a5 as CodexThreadStartedParams, a6 as CodexThreadTokenUsage, a7 as CodexTodoListItem, a8 as CodexTokenUsageBreakdown, a9 as CodexTokenUsageParams, aa as CodexTokenUsageUpdated, ab as CodexTurn, ac as CodexTurnCompleted, ad as CodexTurnCompletedEvent, ae as CodexTurnError, af as CodexTurnFailedEvent, ag as CodexTurnParams, ah as CodexTurnStarted, ai as CodexTurnStartedEvent, aj as CodexUsage, ak as CodexUserInput, al as CodexUserMessage, am as CodexWebSearch, an as CodexWebSearchItem, ao as ComputeConfig, ap as ComputeConfig1, aq as ConfigMetadata, ar as
|
|
1
|
+
import { c as components } from './types-BQxZcD0_.js';
|
|
2
|
+
export { A as AgentConfig, a as AgentIdentity, b as AttributionType, B as BudgetConfig, C as ClaudeAssistantEvent, d as ClaudeAssistantMessage, e as ClaudeConfig, f as ClaudeConversationResetEvent, g as ClaudeNativeEvent, h as ClaudeNativeSessionRecord, i as ClaudeNativeUsage, j as ClaudeRateLimitEvent, k as ClaudeRateLimitInfo, l as ClaudeResultEvent, m as ClaudeSessionRecord, n as ClaudeSystemEvent, o as ClaudeUserEvent, p as ClaudeUserMessage, q as CodexAgentMessage, r as CodexAgentMessageItem, s as CodexAppServerError, t as CodexAppServerEvent, u as CodexAppServerItem, v as CodexAppServerNotification, w as CodexAppServerSessionRecord, x as CodexCommandExecution, y as CodexCommandExecutionItem, z as CodexConfig, D as CodexContextCompaction, E as CodexEffortLevel, F as CodexErrorEvent, G as CodexErrorItem, H as CodexErrorParams, I as CodexEvent, J as CodexFileChange, K as CodexFileChangeItem, L as CodexFileUpdate, M as CodexItem, N as CodexItemCompleted, O as CodexItemCompletedEvent, P as CodexItemParams, Q as CodexItemStarted, R as CodexItemStartedEvent, S as CodexItemUpdatedEvent, T as CodexLocalImageInput, U as CodexMcpToolCall, V as CodexMcpToolCallAppContext, W as CodexMcpToolCallError, X as CodexMcpToolCallItem, Y as CodexMcpToolCallResult, Z as CodexPlan, _ as CodexReasoning, $ as CodexReasoningItem, a0 as CodexSessionRecord, a1 as CodexTextInput, a2 as CodexThread, a3 as CodexThreadStarted, a4 as CodexThreadStartedEvent, a5 as CodexThreadStartedParams, a6 as CodexThreadTokenUsage, a7 as CodexTodoListItem, a8 as CodexTokenUsageBreakdown, a9 as CodexTokenUsageParams, aa as CodexTokenUsageUpdated, ab as CodexTurn, ac as CodexTurnCompleted, ad as CodexTurnCompletedEvent, ae as CodexTurnError, af as CodexTurnFailedEvent, ag as CodexTurnParams, ah as CodexTurnStarted, ai as CodexTurnStartedEvent, aj as CodexUsage, ak as CodexUserInput, al as CodexUserMessage, am as CodexWebSearch, an as CodexWebSearchItem, ao as ComputeConfig, ap as ComputeConfig1, aq as ConfigMetadata, ar as CreateReviewRequest, as as CronTrigger, at as DeltaFrame, au as DoneFrame, av as Duration, aw as EffortLevel, ax as EllipsisGrant, ay as EllipsisPermissions, az as EnvironmentBaseBuild, aA as EnvironmentConfig, aB as EnvironmentHooks, aC as EnvironmentHooks1, aD as EnvironmentOutputPayload, aE as EnvironmentOutputRecord, aF as EnvironmentPhasePayload, aG as EnvironmentPhaseRecord, aH as EnvironmentReadyPayload, aI as EnvironmentReadyRecord, aJ as EnvironmentScript, aK as EnvironmentSource, aL as EnvironmentVariable, aM as ErrorFrame, aN as Finding, aO as GithubAccountFilter, aP as GithubAccountSelector, aQ as GithubAccountSnippet, aR as GithubAccountType, aS as GithubIssueEvent, aT as GithubPermissions, aU as GithubPullRequestEvent, aV as GithubPushEvent, aW as HandlerService, aX as HeartbeatFrame, aY as InputContract, aZ as IssueAction, a_ as LegacyAssistantPayload, a$ as LegacyNativeUsage, b0 as LegacyResultPayload, b1 as Level, b2 as LifecycleSessionRecord, b3 as LinearIssueAction, b4 as LinearIssueEvent, b5 as McpRemoteServer, b6 as McpServerRef, b7 as McpStdioServer, b8 as MemorySize, b9 as MessageDeliveredPayload, ba as MessageDeliveredRecord, bb as MessageReceivedPayload, bc as MessageReceivedRecord, bd as MessageRequeuedPayload, be as MessageRequeuedRecord, bf as OutboxCollectedPayload, bg as OutboxCollectedRecord, bh as OutputConfig, bi as PermissionsConfig, bj as PermissionsConfig1, bk as PlatformSessionRecord, bl as PromptBlockedReason, bm as PullRequestAction, bn as ReactIssue, bo as ReactLinearIssue, bp as ReactPullRequest, bq as ReactPush, br as ReactSentry, bs as ReactSlackChannel, bt as ReactTrigger, bu as RecordsAppendFrame, bv as RepositoryFilter, bw as RepositoryRef, bx as ResolvedReviewScope, by as Review, bz as ReviewConfiguration, bA as ReviewCounters, bB as ReviewFinding, bC as ReviewRequester, bD as ReviewScope, bE as ReviewScopeKind, bF as ReviewStage, bG as ReviewedCommit, bH as ReviewsListResponse, bI as SdkAssistantRecord, bJ as SdkCacheCreation, bK as SdkContentBlock, bL as SdkRateLimitRecord, bM as SdkRecord, bN as SdkResultRecord, bO as SdkServerToolResultBlock, bP as SdkServerToolUseBlock, bQ as SdkSystemRecord, bR as SdkTextBlock, bS as SdkThinkingBlock, bT as SdkToolResultBlock, bU as SdkToolUseBlock, bV as SdkUserRecord, bW as SendSessionMessageRequest, bX as SentryAction, bY as SentryAlertEvent, bZ as Session, b_ as Session1, b$ as SessionAgent, c0 as SessionArchived, c1 as SessionAttribution, c2 as SessionClosedPayload, c3 as SessionClosedRecord, c4 as SessionConfig, c5 as SessionConversation, c6 as SessionCost, c7 as SessionCost1, c8 as SessionEnvironment, c9 as SessionEventActor, ca as SessionFrame, cb as SessionGit, cc as SessionGitCommit, cd as SessionGitFile, ce as SessionGitPr, cf as SessionGitRepo, cg as SessionHandler, ch as SessionMessage, ci as SessionMessageImage, cj as SessionMessageResponse, ck as SessionMessageStatus, cl as SessionParent, cm as SessionPrompting, cn as SessionRecord, co as SessionRecordsListResponse, cp as SessionResponse, cq as SessionSource, cr as SessionState, cs as SessionStopped, ct as SessionStreamFrame, cu as SessionSummary, cv as SessionTokens, cw as SessionTokens1, cx as SessionTurn, cy as SessionTurnResponse, cz as SessionTurnsListResponse, cA as SessionsListResponse, cB as SettingsRef, cC as SkillRef, cD as SlackChannelCreatedEvent, cE as SlackMessageEvent, cF as SnapshotFrame, cG as StreamFrame, cH as TokensInfo, cI as TurnEndedPayload, cJ as TurnEndedRecord, cK as TurnReason, cL as TurnStartedPayload, cM as TurnStartedRecord, cN as TurnStatus, cO as UnknownSessionRecord, cP as UpdateSessionRequest, cQ as paths } from './types-BQxZcD0_.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Frames on /v1/sessions/stream, /v1/agents/stream and /v1/vm-executions/{id}/stream. Ignore unknown frame types.
|
|
6
6
|
*/
|
|
7
7
|
type CollectionStreamFrame = SessionListStreamMessage | AgentListStreamMessage | CollectionStreamHeartbeat | SandboxSnapshotFrame | SandboxUpdateFrame;
|
|
8
8
|
/**
|
|
9
|
-
* An agent session: one conversation with an agent
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* An agent session: one conversation with an agent. Returned by
|
|
10
|
+
* `GET /v1/sessions/{id}` and carried by the session stream's
|
|
11
|
+
* `session`/`snapshot` frames; REST and stream never disagree about what a
|
|
12
|
+
* session looks like.
|
|
13
13
|
*/
|
|
14
14
|
type Session = {
|
|
15
15
|
/**
|
|
16
16
|
* The agent the session was started from, or null for a raw session started with POST /v1/sessions.
|
|
17
17
|
*/
|
|
18
18
|
agent: SessionAgent | null;
|
|
19
|
+
/**
|
|
20
|
+
* When and by whom the session was archived; null when unarchived. Archiving does not stop or close a session.
|
|
21
|
+
*/
|
|
22
|
+
archived: SessionArchived | null;
|
|
19
23
|
attribution: SessionAttribution;
|
|
20
24
|
/**
|
|
21
25
|
* The spend budget enforced for this session, in US dollars, after resolving defaults and ceilings.
|
|
@@ -29,7 +33,12 @@ type Session = {
|
|
|
29
33
|
* Codex input and native options. Set exactly one of claude_code or codex.
|
|
30
34
|
*/
|
|
31
35
|
codex: CodexConfig | null;
|
|
36
|
+
conversation: SessionConversation;
|
|
32
37
|
cost: SessionCost;
|
|
38
|
+
/**
|
|
39
|
+
* When the session was created.
|
|
40
|
+
*/
|
|
41
|
+
created_at: string;
|
|
33
42
|
environment: SessionEnvironment;
|
|
34
43
|
/**
|
|
35
44
|
* The typed external event that started the session; null for direct and scheduled starts.
|
|
@@ -47,7 +56,6 @@ type Session = {
|
|
|
47
56
|
* Unique identifier of the session.
|
|
48
57
|
*/
|
|
49
58
|
id: string;
|
|
50
|
-
lifecycle: SessionLifecycle;
|
|
51
59
|
/**
|
|
52
60
|
* Caller-supplied metadata key-value pairs.
|
|
53
61
|
*/
|
|
@@ -73,6 +81,14 @@ type Session = {
|
|
|
73
81
|
*/
|
|
74
82
|
summary: SessionSummary | null;
|
|
75
83
|
tokens: SessionTokens;
|
|
84
|
+
/**
|
|
85
|
+
* The turn in progress, or the latest one when none is running. Null until the session has a message. Wait on it: the message you sent is answered when the turn with your message's `turn_id` reaches a final status.
|
|
86
|
+
*/
|
|
87
|
+
turn: SessionTurn | null;
|
|
88
|
+
/**
|
|
89
|
+
* When the session was last updated.
|
|
90
|
+
*/
|
|
91
|
+
updated_at: string;
|
|
76
92
|
} & ({
|
|
77
93
|
claude_code: {
|
|
78
94
|
[k: string]: unknown;
|
|
@@ -142,15 +158,23 @@ type RepositoryFilter = {
|
|
|
142
158
|
type LinearIssueAction = 'opened';
|
|
143
159
|
type PullRequestAction = 'opened' | 'pushed' | 'merged' | 'closed' | 'review_submitted' | 'commented';
|
|
144
160
|
type SentryAction = 'issue_alert' | 'metric_alert';
|
|
145
|
-
type AttributionType = 'github_user' | 'linear_user' | 'slack_user' | 'api_key';
|
|
146
161
|
type GithubAccountType = 'User' | 'Organization' | 'Bot' | 'Mannequin';
|
|
162
|
+
type AttributionType = 'github_user' | 'linear_user' | 'slack_user' | 'api_key';
|
|
163
|
+
/**
|
|
164
|
+
* Why direct prompting is refused. Absent when prompting is allowed.
|
|
165
|
+
*/
|
|
166
|
+
type PromptBlockedReason = 'mention_surface' | 'ephemeral_trigger' | 'non_interactive' | 'harness_single_turn' | 'budget_exhausted' | 'closed';
|
|
167
|
+
/**
|
|
168
|
+
* `open` while the session can take messages; `closed` is permanent.
|
|
169
|
+
*/
|
|
170
|
+
type SessionState = 'open' | 'closed';
|
|
147
171
|
/**
|
|
148
172
|
* How a session's environment was chosen. None (the field is nullable)
|
|
149
173
|
* when the config carried an inline environment block and no resolution ran —
|
|
150
174
|
* an inline environment is not a reference, so there is nothing to record.
|
|
151
175
|
*
|
|
152
176
|
* Not derivable from the row: `environment_id` says WHICH environment, not
|
|
153
|
-
* how it was chosen, and is null for the built-in basic
|
|
177
|
+
* how it was chosen, and is null for the built-in basic environment.
|
|
154
178
|
*/
|
|
155
179
|
type EnvironmentSource = 'request' | 'agent' | 'repo_default' | 'account_default' | 'platform_default';
|
|
156
180
|
/**
|
|
@@ -158,25 +182,17 @@ type EnvironmentSource = 'request' | 'agent' | 'repo_default' | 'account_default
|
|
|
158
182
|
*/
|
|
159
183
|
type HandlerService = 'slack' | 'github' | 'linear' | 'sentry';
|
|
160
184
|
/**
|
|
161
|
-
*
|
|
162
|
-
*/
|
|
163
|
-
type ConversationState = 'open' | 'closed';
|
|
164
|
-
/**
|
|
165
|
-
* Why the last execution ended; completed also includes parking an open conversation.
|
|
166
|
-
*/
|
|
167
|
-
type SessionExitStatus = 'completed' | 'budget_hit' | 'payment_required' | 'tool_call_failed' | 'lifecycle_hook_failed' | 'missing_repo_access' | 'missing_token_permissions' | 'missing_sandbox_variables' | 'blocked' | 'contact_email_required' | 'cancelled' | 'interrupted' | 'error' | 'stopped';
|
|
168
|
-
/**
|
|
169
|
-
* Why direct prompting is refused. Absent when prompting is allowed.
|
|
185
|
+
* Where the session came from (e.g. react, web, api, cli, mention, cron).
|
|
170
186
|
*/
|
|
171
|
-
type
|
|
187
|
+
type SessionSource = 'react' | 'web' | 'api' | 'cli' | 'mention' | 'cron';
|
|
172
188
|
/**
|
|
173
|
-
*
|
|
189
|
+
* Why a turn failed or was cancelled. Null on every other outcome.
|
|
174
190
|
*/
|
|
175
|
-
type
|
|
191
|
+
type TurnReason = 'error' | 'tool_call_failed' | 'budget_hit' | 'payment_required' | 'blocked' | 'contact_email_required' | 'lifecycle_hook_failed' | 'missing_repo_access' | 'missing_token_permissions' | 'missing_environment_variables' | 'missing_github_integration' | 'agent_unavailable' | 'upstream_unavailable' | 'unsupported_configuration' | 'execution_disabled' | 'interrupted';
|
|
176
192
|
/**
|
|
177
|
-
* Where the
|
|
193
|
+
* Where the turn is.
|
|
178
194
|
*/
|
|
179
|
-
type
|
|
195
|
+
type TurnStatus = 'pending' | 'running' | 'completed' | 'failed' | 'stopped' | 'cancelled';
|
|
180
196
|
/**
|
|
181
197
|
* Which writer owns this agent. "github" agents are defined by a file in a repository and are changed by editing that file; "api" agents have no file and are changed through this API.
|
|
182
198
|
*/
|
|
@@ -279,7 +295,7 @@ interface ClaudeConfig {
|
|
|
279
295
|
max_turns: number | null;
|
|
280
296
|
model: string | null;
|
|
281
297
|
/**
|
|
282
|
-
* The initial user message, passed verbatim. Omit to start an interactive session
|
|
298
|
+
* The initial user message, passed verbatim. Omit to start an interactive session with no turn, waiting for a message.
|
|
283
299
|
*/
|
|
284
300
|
prompt: string | null;
|
|
285
301
|
settings: SettingsRef | null;
|
|
@@ -314,19 +330,19 @@ interface CodexConfig {
|
|
|
314
330
|
effort: CodexEffortLevel | null;
|
|
315
331
|
model: string;
|
|
316
332
|
/**
|
|
317
|
-
* The initial user message, passed verbatim. Omit to start an interactive session
|
|
333
|
+
* The initial user message, passed verbatim. Omit to start an interactive session with no turn, waiting for a message.
|
|
318
334
|
*/
|
|
319
335
|
prompt: string | null;
|
|
320
336
|
}
|
|
321
337
|
/**
|
|
322
|
-
* Everything about the environment
|
|
338
|
+
* Everything about the environment the agent runs in: which
|
|
323
339
|
* `repositories` are cloned into it, which environment `variables` it gets,
|
|
324
340
|
* its `compute` sizing, and lifecycle `hooks`.
|
|
325
341
|
* What the agent may *do* from that environment is the top-level
|
|
326
342
|
* `permissions:` block, not this one.
|
|
327
343
|
*
|
|
328
344
|
* Each `variables` entry names a variable to inject; with an inline `value` it
|
|
329
|
-
* is hardcoded, without one it is resolved from the account's
|
|
345
|
+
* is hardcoded, without one it is resolved from the account's secrets
|
|
330
346
|
* store. Only the named variables reach this agent; the rest of the account's
|
|
331
347
|
* stored variables never do. This is how a config brings in the config and
|
|
332
348
|
* credentials a custom CLI needs.
|
|
@@ -339,26 +355,24 @@ interface EnvironmentConfig {
|
|
|
339
355
|
variables: EnvironmentVariable[];
|
|
340
356
|
}
|
|
341
357
|
/**
|
|
342
|
-
*
|
|
343
|
-
* platform default (2 vCPU / 4096 MiB / 3600s
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
* being clamped silently.
|
|
358
|
+
* Environment compute sizing. Every field is optional; an omitted field
|
|
359
|
+
* inherits the platform default (2 vCPU / 4096 MiB / 3600s). A resolved value
|
|
360
|
+
* outside the platform bounds fails validation loudly (a sync error on the
|
|
361
|
+
* config) rather than being clamped silently.
|
|
347
362
|
*
|
|
348
363
|
* `memory` and `timeout` each accept a shorthand string ("8GB", "30m") or an
|
|
349
364
|
* explicit units object ({gb: 8}, {minutes: 30}); the `memory_mib` /
|
|
350
365
|
* `timeout_seconds` properties resolve either form to the canonical integer
|
|
351
|
-
* the
|
|
366
|
+
* the environment is sized with.
|
|
352
367
|
*
|
|
353
|
-
* `timeout` is the max wall-clock the agent may run
|
|
354
|
-
* stopped, capped at 1h (
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
* ceiling is derived from that cap, so a run at the max stays owned by its
|
|
358
|
-
* worker for its whole life.
|
|
368
|
+
* `timeout` is the max wall-clock the agent may run in one environment before
|
|
369
|
+
* it is stopped, capped at 1h (equal to the default, so today the knob only
|
|
370
|
+
* shortens a session; the cap matches the 1-hour validity of the session's
|
|
371
|
+
* GitHub token).
|
|
359
372
|
*
|
|
360
|
-
* Compute currently uses a temporary flat one-cent amount
|
|
361
|
-
*
|
|
373
|
+
* Compute currently uses a temporary flat one-cent amount each time an
|
|
374
|
+
* environment is started for a session, subject to the account's existing
|
|
375
|
+
* free-compute exemptions.
|
|
362
376
|
*/
|
|
363
377
|
interface ComputeConfig {
|
|
364
378
|
cpu: number | null;
|
|
@@ -387,8 +401,8 @@ interface Duration {
|
|
|
387
401
|
/**
|
|
388
402
|
* Environment lifecycle scripts, in order: build_base, after_checkout,
|
|
389
403
|
* before_start. The first two produce reusable snapshots; before_start runs
|
|
390
|
-
* before an agent starts or resumes its session. Scripts run as the
|
|
391
|
-
* user in
|
|
404
|
+
* before an agent starts or resumes its session. Scripts run as the environment's
|
|
405
|
+
* user in the workspace directory `/sandbox`. A nonzero exit fails the session.
|
|
392
406
|
*
|
|
393
407
|
* Legacy post_start/post_clone scripts remain supported for existing configs;
|
|
394
408
|
* both run after workspace preparation, before the agent starts or resumes.
|
|
@@ -396,11 +410,11 @@ interface Duration {
|
|
|
396
410
|
*/
|
|
397
411
|
interface EnvironmentHooks {
|
|
398
412
|
/**
|
|
399
|
-
* Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared
|
|
413
|
+
* Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared environment. Skipped when that prepared environment is reused.
|
|
400
414
|
*/
|
|
401
415
|
after_checkout: EnvironmentScript | string | null;
|
|
402
416
|
/**
|
|
403
|
-
* Run before the agent starts or resumes a session, after the
|
|
417
|
+
* Run before the agent starts or resumes a session, after the environment is ready. This hook is not cached and adds to session startup time.
|
|
404
418
|
*/
|
|
405
419
|
before_start: EnvironmentScript | string | null;
|
|
406
420
|
/**
|
|
@@ -417,11 +431,12 @@ interface EnvironmentHooks {
|
|
|
417
431
|
post_start: string | null;
|
|
418
432
|
}
|
|
419
433
|
/**
|
|
420
|
-
* An inline shell script run as the
|
|
434
|
+
* An inline shell script run as the environment's user, with the workspace
|
|
435
|
+
* directory `/sandbox` as cwd.
|
|
421
436
|
*/
|
|
422
437
|
interface EnvironmentScript {
|
|
423
438
|
/**
|
|
424
|
-
* Shell script to run in
|
|
439
|
+
* Shell script to run in the workspace directory `/sandbox`.
|
|
425
440
|
*/
|
|
426
441
|
run: string;
|
|
427
442
|
}
|
|
@@ -430,11 +445,11 @@ interface EnvironmentScript {
|
|
|
430
445
|
*/
|
|
431
446
|
interface EnvironmentBaseBuild {
|
|
432
447
|
/**
|
|
433
|
-
* Exact files relative to
|
|
448
|
+
* Exact files relative to the workspace directory `/sandbox`, including the repository name. Only these files are available during build_base and their contents and modes determine reuse. Omit to use all repositories and invalidate on any source change; [] means no repository files.
|
|
434
449
|
*/
|
|
435
450
|
inputs: string[] | null;
|
|
436
451
|
/**
|
|
437
|
-
* Shell script to run in
|
|
452
|
+
* Shell script to run in the workspace directory `/sandbox`.
|
|
438
453
|
*/
|
|
439
454
|
run: string;
|
|
440
455
|
}
|
|
@@ -452,8 +467,8 @@ interface McpServerRef {
|
|
|
452
467
|
}
|
|
453
468
|
/**
|
|
454
469
|
* A bring-your-own stdio MCP server: the harness spawns `command` inside
|
|
455
|
-
* the
|
|
456
|
-
* runnable in the
|
|
470
|
+
* the environment and speaks JSON-RPC over its stdin/stdout. The command must
|
|
471
|
+
* be runnable in the environment image — install its runtime via `hooks.build_base` /
|
|
457
472
|
* `hooks.after_checkout` if the managed environment lacks it.
|
|
458
473
|
*
|
|
459
474
|
* `env` values may embed `${NAME}` references, resolved at run time from the
|
|
@@ -470,7 +485,7 @@ interface McpStdioServer {
|
|
|
470
485
|
}
|
|
471
486
|
/**
|
|
472
487
|
* A bring-your-own remote MCP server: the harness talks HTTP to `url`.
|
|
473
|
-
* Nothing runs in the
|
|
488
|
+
* Nothing runs in the environment image. `headers` carry static auth (e.g.
|
|
474
489
|
* `Authorization: Bearer ${TOKEN}`); values may embed `${NAME}` secret
|
|
475
490
|
* references, resolved at run time from the account's secrets store.
|
|
476
491
|
*/
|
|
@@ -482,11 +497,11 @@ interface McpRemoteServer {
|
|
|
482
497
|
url: string;
|
|
483
498
|
}
|
|
484
499
|
/**
|
|
485
|
-
* One environment variable injected into the
|
|
500
|
+
* One environment variable injected into the session's environment.
|
|
486
501
|
*
|
|
487
502
|
* `value`, when set, is a literal injected as-is — use it for non-secret
|
|
488
503
|
* config (LOG_LEVEL, an API base URL). When `value` is omitted the value is
|
|
489
|
-
* resolved at run time from the account's
|
|
504
|
+
* resolved at run time from the account's secrets store (dashboard
|
|
490
505
|
* / `PUT /v1/secrets`) by `name`, so a secret can be injected without
|
|
491
506
|
* ever putting it in the config file. Either way the variable only reaches
|
|
492
507
|
* agents that name it.
|
|
@@ -505,18 +520,18 @@ interface OutputConfig {
|
|
|
505
520
|
}
|
|
506
521
|
/**
|
|
507
522
|
* What the agent is allowed to touch, per credential the platform mints
|
|
508
|
-
* into its
|
|
509
|
-
* runs; this is what it may do from there.
|
|
523
|
+
* into its session's environment. Distinct from `environment:`, which is
|
|
524
|
+
* where the agent runs; this is what it may do from there.
|
|
510
525
|
*
|
|
511
|
-
* `ellipsis` scopes the
|
|
512
|
-
*
|
|
513
|
-
*
|
|
514
|
-
* ceiling — everything a
|
|
526
|
+
* `ellipsis` scopes the session's Ellipsis API token (`ELLIPSIS_API_TOKEN`,
|
|
527
|
+
* what the `agent` CLI running inside the session authenticates with).
|
|
528
|
+
* `true` / the string `all` (the default) grant the full session token
|
|
529
|
+
* ceiling — everything a session token can ever do. A map narrows it per
|
|
515
530
|
* resource (see `EllipsisPermissions`); the minted token carries
|
|
516
531
|
* the intersection, so a config can only ever reduce access. `false` fails
|
|
517
532
|
* validation — an agent with no API token cannot report its own progress.
|
|
518
533
|
*
|
|
519
|
-
* `github` scopes the
|
|
534
|
+
* `github` scopes the session's GitHub installation token (`GH_TOKEN`) —
|
|
520
535
|
* see `GithubPermissions`. GitHub enforces it at mint time.
|
|
521
536
|
*/
|
|
522
537
|
interface PermissionsConfig {
|
|
@@ -527,8 +542,8 @@ interface PermissionsConfig {
|
|
|
527
542
|
* `permissions.ellipsis` as a map: resource → level | grant | list of
|
|
528
543
|
* grants. Levels are hierarchical (read < write < delete), so `write`
|
|
529
544
|
* includes `read`. An unlisted resource is denied. The whole block is
|
|
530
|
-
* intersected with the platform's
|
|
531
|
-
* narrow what a
|
|
545
|
+
* intersected with the platform's session token ceiling at token mint — it can
|
|
546
|
+
* narrow what a session token may do, never exceed it.
|
|
532
547
|
*/
|
|
533
548
|
interface EllipsisPermissions {
|
|
534
549
|
[k: string]: Level | EllipsisGrant | (Level | EllipsisGrant)[];
|
|
@@ -544,8 +559,8 @@ interface EllipsisGrant {
|
|
|
544
559
|
}
|
|
545
560
|
/**
|
|
546
561
|
* The agent's GitHub access: the scope of the installation token minted for
|
|
547
|
-
* its
|
|
548
|
-
* authenticate with.
|
|
562
|
+
* its session's environment — the credential `git`, `gh`, and the GitHub MCP
|
|
563
|
+
* server authenticate with.
|
|
549
564
|
*
|
|
550
565
|
* By default the token carries the installation's full permissions on all of
|
|
551
566
|
* the installation's repositories. `permissions` narrows what it may do:
|
|
@@ -556,7 +571,7 @@ interface EllipsisGrant {
|
|
|
556
571
|
* the listed repos, by name (they must belong to the installation).
|
|
557
572
|
*
|
|
558
573
|
* Restriction is enforced by GitHub, not by Ellipsis: the token itself is
|
|
559
|
-
* minted with the reduced scope, so nothing running in the
|
|
574
|
+
* minted with the reduced scope, so nothing running in the environment can
|
|
560
575
|
* exceed it.
|
|
561
576
|
*/
|
|
562
577
|
interface GithubPermissions {
|
|
@@ -631,21 +646,17 @@ interface ReactSentry {
|
|
|
631
646
|
interface ReactSlackChannel {
|
|
632
647
|
}
|
|
633
648
|
/**
|
|
634
|
-
*
|
|
649
|
+
* When the session was archived and the GitHub user who archived it.
|
|
635
650
|
*/
|
|
636
|
-
interface
|
|
637
|
-
/**
|
|
638
|
-
* Identifier of the principal the session is attributed to.
|
|
639
|
-
*/
|
|
640
|
-
id: string | null;
|
|
651
|
+
interface SessionArchived {
|
|
641
652
|
/**
|
|
642
|
-
*
|
|
653
|
+
* When the session was archived.
|
|
643
654
|
*/
|
|
644
|
-
|
|
655
|
+
at: string;
|
|
645
656
|
/**
|
|
646
|
-
* The GitHub user
|
|
657
|
+
* The GitHub user who archived the session; null if unknown or unavailable.
|
|
647
658
|
*/
|
|
648
|
-
|
|
659
|
+
by: GithubAccountSnippet | null;
|
|
649
660
|
}
|
|
650
661
|
/**
|
|
651
662
|
* Sometimes the GitHub API returns a user of github (can include bots)
|
|
@@ -661,11 +672,52 @@ interface GithubAccountSnippet {
|
|
|
661
672
|
type: GithubAccountType;
|
|
662
673
|
}
|
|
663
674
|
/**
|
|
664
|
-
*
|
|
675
|
+
* The principal this session is attributed to.
|
|
676
|
+
*/
|
|
677
|
+
interface SessionAttribution {
|
|
678
|
+
/**
|
|
679
|
+
* Identifier of the principal the session is attributed to.
|
|
680
|
+
*/
|
|
681
|
+
id: string | null;
|
|
682
|
+
/**
|
|
683
|
+
* Kind of principal the session is attributed to (e.g. a GitHub user or an API key).
|
|
684
|
+
*/
|
|
685
|
+
type: AttributionType | null;
|
|
686
|
+
/**
|
|
687
|
+
* The GitHub user the session is attributed to, resolved at read time. Null when the attribution is not a GitHub user.
|
|
688
|
+
*/
|
|
689
|
+
user: GithubAccountSnippet | null;
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* Whether the session can take more messages, and whether an agent is warm to answer one.
|
|
693
|
+
*/
|
|
694
|
+
interface SessionConversation {
|
|
695
|
+
/**
|
|
696
|
+
* Whether the session stays open after its first turn.
|
|
697
|
+
*/
|
|
698
|
+
interactive: boolean;
|
|
699
|
+
prompting: SessionPrompting;
|
|
700
|
+
state: SessionState;
|
|
701
|
+
/**
|
|
702
|
+
* Whether an agent is ready to answer the next message right away. When false, the next message first prepares an environment, which takes longer. A hint only; clients need no logic on it.
|
|
703
|
+
*/
|
|
704
|
+
warm: boolean;
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* The session's policy for direct messages. Caller authorization and message validation are checked separately.
|
|
708
|
+
*/
|
|
709
|
+
interface SessionPrompting {
|
|
710
|
+
blocked_reason: PromptBlockedReason | null;
|
|
711
|
+
detail: string | null;
|
|
712
|
+
enabled: boolean;
|
|
713
|
+
surface_name: string | null;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* What the session has cost so far, in millicents, broken down by leg and carrying its own total.
|
|
665
717
|
*/
|
|
666
718
|
interface SessionCost {
|
|
667
719
|
/**
|
|
668
|
-
*
|
|
720
|
+
* CPU spend in millicents.
|
|
669
721
|
*/
|
|
670
722
|
cpu: number;
|
|
671
723
|
/**
|
|
@@ -677,7 +729,7 @@ interface SessionCost {
|
|
|
677
729
|
*/
|
|
678
730
|
llm: number;
|
|
679
731
|
/**
|
|
680
|
-
*
|
|
732
|
+
* Memory spend in millicents.
|
|
681
733
|
*/
|
|
682
734
|
memory: number;
|
|
683
735
|
/**
|
|
@@ -692,7 +744,7 @@ interface SessionEnvironment {
|
|
|
692
744
|
compute: ComputeConfig1;
|
|
693
745
|
hooks: EnvironmentHooks1;
|
|
694
746
|
/**
|
|
695
|
-
* Identifier of the saved environment the session's config resolved. Null for an inline environment block or the built-in basic
|
|
747
|
+
* Identifier of the saved environment the session's config resolved. Null for an inline environment block or the built-in basic environment.
|
|
696
748
|
*/
|
|
697
749
|
id: string | null;
|
|
698
750
|
mcp_servers: (string | McpServerRef | McpStdioServer | McpRemoteServer)[];
|
|
@@ -704,26 +756,24 @@ interface SessionEnvironment {
|
|
|
704
756
|
variables: EnvironmentVariable[];
|
|
705
757
|
}
|
|
706
758
|
/**
|
|
707
|
-
*
|
|
708
|
-
* platform default (2 vCPU / 4096 MiB / 3600s
|
|
709
|
-
*
|
|
710
|
-
*
|
|
711
|
-
* being clamped silently.
|
|
759
|
+
* Environment compute sizing. Every field is optional; an omitted field
|
|
760
|
+
* inherits the platform default (2 vCPU / 4096 MiB / 3600s). A resolved value
|
|
761
|
+
* outside the platform bounds fails validation loudly (a sync error on the
|
|
762
|
+
* config) rather than being clamped silently.
|
|
712
763
|
*
|
|
713
764
|
* `memory` and `timeout` each accept a shorthand string ("8GB", "30m") or an
|
|
714
765
|
* explicit units object ({gb: 8}, {minutes: 30}); the `memory_mib` /
|
|
715
766
|
* `timeout_seconds` properties resolve either form to the canonical integer
|
|
716
|
-
* the
|
|
767
|
+
* the environment is sized with.
|
|
717
768
|
*
|
|
718
|
-
* `timeout` is the max wall-clock the agent may run
|
|
719
|
-
* stopped, capped at 1h (
|
|
720
|
-
*
|
|
721
|
-
*
|
|
722
|
-
* ceiling is derived from that cap, so a run at the max stays owned by its
|
|
723
|
-
* worker for its whole life.
|
|
769
|
+
* `timeout` is the max wall-clock the agent may run in one environment before
|
|
770
|
+
* it is stopped, capped at 1h (equal to the default, so today the knob only
|
|
771
|
+
* shortens a session; the cap matches the 1-hour validity of the session's
|
|
772
|
+
* GitHub token).
|
|
724
773
|
*
|
|
725
|
-
* Compute currently uses a temporary flat one-cent amount
|
|
726
|
-
*
|
|
774
|
+
* Compute currently uses a temporary flat one-cent amount each time an
|
|
775
|
+
* environment is started for a session, subject to the account's existing
|
|
776
|
+
* free-compute exemptions.
|
|
727
777
|
*/
|
|
728
778
|
interface ComputeConfig1 {
|
|
729
779
|
cpu: number | null;
|
|
@@ -733,8 +783,8 @@ interface ComputeConfig1 {
|
|
|
733
783
|
/**
|
|
734
784
|
* Environment lifecycle scripts, in order: build_base, after_checkout,
|
|
735
785
|
* before_start. The first two produce reusable snapshots; before_start runs
|
|
736
|
-
* before an agent starts or resumes its session. Scripts run as the
|
|
737
|
-
* user in
|
|
786
|
+
* before an agent starts or resumes its session. Scripts run as the environment's
|
|
787
|
+
* user in the workspace directory `/sandbox`. A nonzero exit fails the session.
|
|
738
788
|
*
|
|
739
789
|
* Legacy post_start/post_clone scripts remain supported for existing configs;
|
|
740
790
|
* both run after workspace preparation, before the agent starts or resumes.
|
|
@@ -742,11 +792,11 @@ interface ComputeConfig1 {
|
|
|
742
792
|
*/
|
|
743
793
|
interface EnvironmentHooks1 {
|
|
744
794
|
/**
|
|
745
|
-
* Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared
|
|
795
|
+
* Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared environment. Skipped when that prepared environment is reused.
|
|
746
796
|
*/
|
|
747
797
|
after_checkout: EnvironmentScript | string | null;
|
|
748
798
|
/**
|
|
749
|
-
* Run before the agent starts or resumes a session, after the
|
|
799
|
+
* Run before the agent starts or resumes a session, after the environment is ready. This hook is not cached and adds to session startup time.
|
|
750
800
|
*/
|
|
751
801
|
before_start: EnvironmentScript | string | null;
|
|
752
802
|
/**
|
|
@@ -841,8 +891,8 @@ interface SessionGit {
|
|
|
841
891
|
repos: SessionGitRepo[];
|
|
842
892
|
}
|
|
843
893
|
/**
|
|
844
|
-
* One checkout in the session's
|
|
845
|
-
* it, split by whether it survived the
|
|
894
|
+
* One checkout in the session's environment and everything the session did
|
|
895
|
+
* to it, split by whether it survived the environment.
|
|
846
896
|
*/
|
|
847
897
|
interface SessionGitRepo {
|
|
848
898
|
commits: SessionGitCommit[];
|
|
@@ -856,7 +906,7 @@ interface SessionGitRepo {
|
|
|
856
906
|
}
|
|
857
907
|
/**
|
|
858
908
|
* One commit the session created in this repo (everything past the
|
|
859
|
-
* provisioning checkout's sha), captured from the
|
|
909
|
+
* provisioning checkout's sha), captured from the environment rather than the
|
|
860
910
|
* transcript so it stays correct through amends, rebases, and commits made by
|
|
861
911
|
* scripts. The repo is the parent object, so it is not repeated here.
|
|
862
912
|
*/
|
|
@@ -908,135 +958,149 @@ interface SessionHandler {
|
|
|
908
958
|
sha: string;
|
|
909
959
|
}
|
|
910
960
|
/**
|
|
911
|
-
* The session
|
|
961
|
+
* The predecessor session this session continues.
|
|
912
962
|
*/
|
|
913
|
-
interface
|
|
963
|
+
interface SessionParent {
|
|
914
964
|
/**
|
|
915
|
-
*
|
|
965
|
+
* Identifier of the predecessor session this session continues, if any.
|
|
916
966
|
*/
|
|
917
|
-
|
|
918
|
-
|
|
967
|
+
session_id: string | null;
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* What the session may touch, per minted credential.
|
|
971
|
+
*/
|
|
972
|
+
interface PermissionsConfig1 {
|
|
973
|
+
ellipsis: (true | 'all') | EllipsisPermissions;
|
|
974
|
+
github: GithubPermissions;
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* A live one-line summary of what the session is doing, refreshed
|
|
978
|
+
* every few steps while it runs.
|
|
979
|
+
*/
|
|
980
|
+
interface SessionSummary {
|
|
919
981
|
/**
|
|
920
|
-
*
|
|
982
|
+
* When this summary line was generated. Null on summaries written before generation time was tracked.
|
|
921
983
|
*/
|
|
922
|
-
|
|
984
|
+
created_at: string | null;
|
|
923
985
|
/**
|
|
924
|
-
*
|
|
986
|
+
* One-line description of what the session is doing.
|
|
925
987
|
*/
|
|
926
|
-
|
|
988
|
+
description: string;
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* The tokens the session spent and the model they went to. `total` includes the prompt-cache lanes.
|
|
992
|
+
*/
|
|
993
|
+
interface SessionTokens {
|
|
927
994
|
/**
|
|
928
|
-
*
|
|
995
|
+
* Tokens written to the prompt cache.
|
|
929
996
|
*/
|
|
930
|
-
|
|
931
|
-
prompting: SessionPrompting;
|
|
932
|
-
status: SessionLifecycleStatus;
|
|
997
|
+
cache_creation: number;
|
|
933
998
|
/**
|
|
934
|
-
*
|
|
999
|
+
* Tokens read from the prompt cache.
|
|
935
1000
|
*/
|
|
936
|
-
|
|
937
|
-
timestamps: SessionTimestamps;
|
|
938
|
-
}
|
|
939
|
-
/**
|
|
940
|
-
* When the session was archived and the GitHub user who archived it.
|
|
941
|
-
*/
|
|
942
|
-
interface SessionArchived {
|
|
1001
|
+
cache_read: number;
|
|
943
1002
|
/**
|
|
944
|
-
*
|
|
1003
|
+
* Input tokens used.
|
|
945
1004
|
*/
|
|
946
|
-
|
|
1005
|
+
input: number;
|
|
947
1006
|
/**
|
|
948
|
-
* The
|
|
1007
|
+
* The model the token counts are attributed to.
|
|
949
1008
|
*/
|
|
950
|
-
|
|
951
|
-
}
|
|
952
|
-
/**
|
|
953
|
-
* Outcome of the last finished execution, retained across subsequent resumes.
|
|
954
|
-
*
|
|
955
|
-
* An execution spans a start or resume through parking or termination, and may
|
|
956
|
-
* contain several turns. Admission failures also produce a result, even when
|
|
957
|
-
* provisioning never starts.
|
|
958
|
-
*/
|
|
959
|
-
interface SessionExecutionResult {
|
|
960
|
-
completion_reason: SessionExitStatus;
|
|
1009
|
+
model: string;
|
|
961
1010
|
/**
|
|
962
|
-
*
|
|
1011
|
+
* Output tokens used.
|
|
963
1012
|
*/
|
|
964
|
-
|
|
1013
|
+
output: number;
|
|
1014
|
+
/**
|
|
1015
|
+
* Total tokens consumed, INCLUDING the prompt-cache reads and writes — the same basis the token cost is priced on.
|
|
1016
|
+
*/
|
|
1017
|
+
total: number;
|
|
965
1018
|
}
|
|
966
1019
|
/**
|
|
967
|
-
*
|
|
1020
|
+
* One message and the agent's answer to it. A turn is `pending` from the
|
|
1021
|
+
* moment its message is received until the agent starts on it, `running`
|
|
1022
|
+
* while the agent works, then `completed`, `failed`, `stopped`, or
|
|
1023
|
+
* `cancelled`.
|
|
968
1024
|
*/
|
|
969
|
-
interface
|
|
970
|
-
|
|
1025
|
+
interface SessionTurn {
|
|
1026
|
+
cost: SessionCost1;
|
|
1027
|
+
/**
|
|
1028
|
+
* When the turn's message was received.
|
|
1029
|
+
*/
|
|
1030
|
+
created_at: string;
|
|
1031
|
+
/**
|
|
1032
|
+
* A human-readable explanation of a failed, stopped, or cancelled turn.
|
|
1033
|
+
*/
|
|
971
1034
|
detail: string | null;
|
|
972
|
-
enabled: boolean;
|
|
973
|
-
surface_name: string | null;
|
|
974
|
-
}
|
|
975
|
-
/**
|
|
976
|
-
* When a stop was requested and the GitHub user who requested it.
|
|
977
|
-
*/
|
|
978
|
-
interface SessionStopped {
|
|
979
1035
|
/**
|
|
980
|
-
* When
|
|
1036
|
+
* When the turn reached its final status.
|
|
981
1037
|
*/
|
|
982
|
-
|
|
1038
|
+
ended_at: string | null;
|
|
983
1039
|
/**
|
|
984
|
-
*
|
|
1040
|
+
* Unique identifier of the turn.
|
|
985
1041
|
*/
|
|
986
|
-
|
|
987
|
-
}
|
|
988
|
-
interface SessionTimestamps {
|
|
1042
|
+
id: string;
|
|
989
1043
|
/**
|
|
990
|
-
*
|
|
1044
|
+
* Position in the session, starting at 0.
|
|
991
1045
|
*/
|
|
992
|
-
|
|
1046
|
+
index: number;
|
|
993
1047
|
/**
|
|
994
|
-
*
|
|
1048
|
+
* Why the turn failed or was cancelled; null on every other status.
|
|
995
1049
|
*/
|
|
996
|
-
|
|
1050
|
+
reason: TurnReason | null;
|
|
997
1051
|
/**
|
|
998
|
-
* When the
|
|
1052
|
+
* When the agent started on the message.
|
|
999
1053
|
*/
|
|
1000
|
-
|
|
1054
|
+
started_at: string | null;
|
|
1055
|
+
status: TurnStatus;
|
|
1001
1056
|
/**
|
|
1002
|
-
* When
|
|
1057
|
+
* When and by whom a stop was requested; null when none was.
|
|
1003
1058
|
*/
|
|
1004
|
-
|
|
1059
|
+
stopped: SessionStopped | null;
|
|
1060
|
+
tokens: SessionTokens1;
|
|
1005
1061
|
}
|
|
1006
1062
|
/**
|
|
1007
|
-
*
|
|
1063
|
+
* What the turn cost so far, in millicents, broken down by leg.
|
|
1008
1064
|
*/
|
|
1009
|
-
interface
|
|
1065
|
+
interface SessionCost1 {
|
|
1010
1066
|
/**
|
|
1011
|
-
*
|
|
1067
|
+
* CPU spend in millicents.
|
|
1012
1068
|
*/
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1069
|
+
cpu: number;
|
|
1070
|
+
/**
|
|
1071
|
+
* Platform fee in millicents.
|
|
1072
|
+
*/
|
|
1073
|
+
fee: number;
|
|
1074
|
+
/**
|
|
1075
|
+
* LLM spend in millicents.
|
|
1076
|
+
*/
|
|
1077
|
+
llm: number;
|
|
1078
|
+
/**
|
|
1079
|
+
* Memory spend in millicents.
|
|
1080
|
+
*/
|
|
1081
|
+
memory: number;
|
|
1082
|
+
/**
|
|
1083
|
+
* The grand total in millicents: llm + cpu + memory + fee.
|
|
1084
|
+
*/
|
|
1085
|
+
total: number;
|
|
1021
1086
|
}
|
|
1022
1087
|
/**
|
|
1023
|
-
*
|
|
1024
|
-
* every few steps while it runs.
|
|
1088
|
+
* When a stop was requested and the GitHub user who requested it.
|
|
1025
1089
|
*/
|
|
1026
|
-
interface
|
|
1090
|
+
interface SessionStopped {
|
|
1027
1091
|
/**
|
|
1028
|
-
* When
|
|
1092
|
+
* When a stop was requested.
|
|
1029
1093
|
*/
|
|
1030
|
-
|
|
1094
|
+
at: string;
|
|
1031
1095
|
/**
|
|
1032
|
-
*
|
|
1096
|
+
* The GitHub user who stopped the session, resolved at read time. Null if the user is unknown or unavailable.
|
|
1033
1097
|
*/
|
|
1034
|
-
|
|
1098
|
+
by: GithubAccountSnippet | null;
|
|
1035
1099
|
}
|
|
1036
1100
|
/**
|
|
1037
|
-
* The tokens the
|
|
1101
|
+
* The tokens the turn spent and the model they went to.
|
|
1038
1102
|
*/
|
|
1039
|
-
interface
|
|
1103
|
+
interface SessionTokens1 {
|
|
1040
1104
|
/**
|
|
1041
1105
|
* Tokens written to the prompt cache.
|
|
1042
1106
|
*/
|
|
@@ -1138,7 +1202,7 @@ interface AgentConfig1 {
|
|
|
1138
1202
|
/**
|
|
1139
1203
|
* Identifies the file a GitHub-sourced agent is synced from.
|
|
1140
1204
|
*
|
|
1141
|
-
*
|
|
1205
|
+
* Identified by the repository ID (not owner/name) so repository and org renames
|
|
1142
1206
|
* don't orphan the config; resolve display names from gh_repositories at
|
|
1143
1207
|
* read time.
|
|
1144
1208
|
*/
|
|
@@ -1186,8 +1250,8 @@ interface VMExecutionResponse {
|
|
|
1186
1250
|
/**
|
|
1187
1251
|
* Environment lifecycle scripts, in order: build_base, after_checkout,
|
|
1188
1252
|
* before_start. The first two produce reusable snapshots; before_start runs
|
|
1189
|
-
* before an agent starts or resumes its session. Scripts run as the
|
|
1190
|
-
* user in
|
|
1253
|
+
* before an agent starts or resumes its session. Scripts run as the environment's
|
|
1254
|
+
* user in the workspace directory `/sandbox`. A nonzero exit fails the session.
|
|
1191
1255
|
*
|
|
1192
1256
|
* Legacy post_start/post_clone scripts remain supported for existing configs;
|
|
1193
1257
|
* both run after workspace preparation, before the agent starts or resumes.
|
|
@@ -1195,11 +1259,11 @@ interface VMExecutionResponse {
|
|
|
1195
1259
|
*/
|
|
1196
1260
|
interface EnvironmentHooks2 {
|
|
1197
1261
|
/**
|
|
1198
|
-
* Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared
|
|
1262
|
+
* Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared environment. Skipped when that prepared environment is reused.
|
|
1199
1263
|
*/
|
|
1200
1264
|
after_checkout: EnvironmentScript | string | null;
|
|
1201
1265
|
/**
|
|
1202
|
-
* Run before the agent starts or resumes a session, after the
|
|
1266
|
+
* Run before the agent starts or resumes a session, after the environment is ready. This hook is not cached and adds to session startup time.
|
|
1203
1267
|
*/
|
|
1204
1268
|
before_start: EnvironmentScript | string | null;
|
|
1205
1269
|
/**
|
|
@@ -1253,7 +1317,7 @@ declare class Page<ItemT, ResponseT extends CursorResponse> implements AsyncIter
|
|
|
1253
1317
|
}
|
|
1254
1318
|
|
|
1255
1319
|
type S$1 = components['schemas'];
|
|
1256
|
-
declare
|
|
1320
|
+
declare function isTurnFinal(status: string): boolean;
|
|
1257
1321
|
interface SessionsApi {
|
|
1258
1322
|
get(sessionId: string): Promise<S$1['SessionResponse']>;
|
|
1259
1323
|
stop(sessionId: string): Promise<S$1['SessionResponse']>;
|
|
@@ -1262,26 +1326,25 @@ interface SessionsApi {
|
|
|
1262
1326
|
images?: S$1['ImageAttachment'][];
|
|
1263
1327
|
idempotency_key?: string | null;
|
|
1264
1328
|
}): Promise<S$1['SessionMessageResponse']>;
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
}): Promise<unknown>;
|
|
1329
|
+
turns: {
|
|
1330
|
+
get(sessionId: string, turnId: string): Promise<S$1['SessionTurnResponse']>;
|
|
1331
|
+
};
|
|
1269
1332
|
}
|
|
1270
|
-
declare function isSettled(session: S$1['Session']): boolean;
|
|
1271
1333
|
declare class SessionHandle {
|
|
1272
1334
|
private readonly sessions;
|
|
1273
1335
|
readonly id: string;
|
|
1274
1336
|
session: S$1['Session'];
|
|
1337
|
+
turnId: string | null;
|
|
1275
1338
|
constructor(sessions: SessionsApi, session: S$1['Session']);
|
|
1276
1339
|
refresh(): Promise<S$1['Session']>;
|
|
1277
1340
|
wait(options?: {
|
|
1278
1341
|
timeoutMs?: number;
|
|
1279
1342
|
pollIntervalMs?: number;
|
|
1280
|
-
}): Promise<S$1['
|
|
1343
|
+
}): Promise<S$1['SessionTurn'] | null>;
|
|
1281
1344
|
send(message: string, options?: {
|
|
1282
1345
|
images?: S$1['ImageAttachment'][];
|
|
1283
1346
|
idempotencyKey?: string;
|
|
1284
|
-
}): Promise<S$1['
|
|
1347
|
+
}): Promise<S$1['SessionMessageResponse']>;
|
|
1285
1348
|
stop(): Promise<S$1['Session']>;
|
|
1286
1349
|
}
|
|
1287
1350
|
|
|
@@ -1321,7 +1384,7 @@ declare class EllipsisAccountApiKeys {
|
|
|
1321
1384
|
* Required permissions: write:tokens.
|
|
1322
1385
|
* API key: Requires a CLI user token belonging to an account administrator.
|
|
1323
1386
|
* CLI user token: Requires an account administrator.
|
|
1324
|
-
*
|
|
1387
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1325
1388
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1326
1389
|
*/
|
|
1327
1390
|
create(options: {
|
|
@@ -1333,7 +1396,7 @@ declare class EllipsisAccountApiKeys {
|
|
|
1333
1396
|
* Required permissions: read:tokens.
|
|
1334
1397
|
* API key: Supported.
|
|
1335
1398
|
* CLI user token: Supported.
|
|
1336
|
-
*
|
|
1399
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1337
1400
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1338
1401
|
*/
|
|
1339
1402
|
list(): Promise<S['ListApiKeysResponse']>;
|
|
@@ -1345,7 +1408,7 @@ declare class EllipsisAccountApiKeys {
|
|
|
1345
1408
|
* Required permissions: delete:tokens.
|
|
1346
1409
|
* API key: Requires a CLI user token belonging to an account administrator.
|
|
1347
1410
|
* CLI user token: Requires an account administrator.
|
|
1348
|
-
*
|
|
1411
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1349
1412
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1350
1413
|
*/
|
|
1351
1414
|
revoke(api_key_id: string): Promise<S['TokenRevokedResponse']>;
|
|
@@ -1364,7 +1427,7 @@ declare class EllipsisAccountBillingAutoRecharge {
|
|
|
1364
1427
|
* Required permissions: read:account.
|
|
1365
1428
|
* API key: Supported.
|
|
1366
1429
|
* CLI user token: Supported.
|
|
1367
|
-
*
|
|
1430
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1368
1431
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1369
1432
|
*/
|
|
1370
1433
|
get(): Promise<S['AutoRechargeSettings']>;
|
|
@@ -1373,7 +1436,7 @@ declare class EllipsisAccountBillingAutoRecharge {
|
|
|
1373
1436
|
*
|
|
1374
1437
|
* Set your automatic credit recharge policy.
|
|
1375
1438
|
*
|
|
1376
|
-
* Requires a human account administrator; API keys and
|
|
1439
|
+
* Requires a human account administrator; API keys and session tokens
|
|
1377
1440
|
* cannot change this policy. Supply enabled explicitly. Saving amounts
|
|
1378
1441
|
* with enabled=false keeps recharge off; enabling requires a saved card.
|
|
1379
1442
|
* A recharge buys amount_cents of credit and charges the platform fee
|
|
@@ -1382,7 +1445,7 @@ declare class EllipsisAccountBillingAutoRecharge {
|
|
|
1382
1445
|
* Required permissions: write:account.
|
|
1383
1446
|
* API key: Requires a CLI user token belonging to an account administrator.
|
|
1384
1447
|
* CLI user token: Requires an account administrator.
|
|
1385
|
-
*
|
|
1448
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1386
1449
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1387
1450
|
*/
|
|
1388
1451
|
set(options: {
|
|
@@ -1407,7 +1470,7 @@ declare class EllipsisAccountBilling {
|
|
|
1407
1470
|
* Required permissions: write:account.
|
|
1408
1471
|
* API key: Requires a CLI user token belonging to an account administrator.
|
|
1409
1472
|
* CLI user token: Requires an account administrator.
|
|
1410
|
-
*
|
|
1473
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1411
1474
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1412
1475
|
*/
|
|
1413
1476
|
cardSetup(): Promise<S['BillingCheckout']>;
|
|
@@ -1424,7 +1487,7 @@ declare class EllipsisAccountBilling {
|
|
|
1424
1487
|
* Required permissions: write:account.
|
|
1425
1488
|
* API key: Requires a CLI user token belonging to an account administrator.
|
|
1426
1489
|
* CLI user token: Requires an account administrator.
|
|
1427
|
-
*
|
|
1490
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1428
1491
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1429
1492
|
*/
|
|
1430
1493
|
checkout(options: {
|
|
@@ -1441,7 +1504,7 @@ declare class EllipsisAccountBilling {
|
|
|
1441
1504
|
* Required permissions: write:account.
|
|
1442
1505
|
* API key: Supported.
|
|
1443
1506
|
* CLI user token: Supported.
|
|
1444
|
-
*
|
|
1507
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1445
1508
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1446
1509
|
*/
|
|
1447
1510
|
claimSignupCredit(): Promise<S['BillingStatus']>;
|
|
@@ -1453,7 +1516,7 @@ declare class EllipsisAccountBilling {
|
|
|
1453
1516
|
* Required permissions: read:account.
|
|
1454
1517
|
* API key: Supported.
|
|
1455
1518
|
* CLI user token: Supported.
|
|
1456
|
-
*
|
|
1519
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1457
1520
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1458
1521
|
*/
|
|
1459
1522
|
feeSchedule(): Promise<S['FeeScheduleResponse']>;
|
|
@@ -1468,7 +1531,7 @@ declare class EllipsisAccountBilling {
|
|
|
1468
1531
|
* Required permissions: read:account.
|
|
1469
1532
|
* API key: Supported.
|
|
1470
1533
|
* CLI user token: Supported.
|
|
1471
|
-
*
|
|
1534
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1472
1535
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1473
1536
|
*/
|
|
1474
1537
|
grants(): Promise<S['CreditGrantsResponse']>;
|
|
@@ -1483,7 +1546,7 @@ declare class EllipsisAccountBilling {
|
|
|
1483
1546
|
* Required permissions: read:account.
|
|
1484
1547
|
* API key: Supported.
|
|
1485
1548
|
* CLI user token: Supported.
|
|
1486
|
-
*
|
|
1549
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1487
1550
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1488
1551
|
*/
|
|
1489
1552
|
purchase(checkout_id: string): Promise<S['CreditPurchaseReceipt']>;
|
|
@@ -1498,7 +1561,7 @@ declare class EllipsisAccountBilling {
|
|
|
1498
1561
|
* Required permissions: read:account.
|
|
1499
1562
|
* API key: Supported.
|
|
1500
1563
|
* CLI user token: Supported.
|
|
1501
|
-
*
|
|
1564
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1502
1565
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1503
1566
|
*/
|
|
1504
1567
|
purchaseOptions(): Promise<S['CreditPurchaseOptions']>;
|
|
@@ -1514,7 +1577,7 @@ declare class EllipsisAccountBilling {
|
|
|
1514
1577
|
* Required permissions: read:account.
|
|
1515
1578
|
* API key: Supported.
|
|
1516
1579
|
* CLI user token: Supported.
|
|
1517
|
-
*
|
|
1580
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1518
1581
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1519
1582
|
*/
|
|
1520
1583
|
status(): Promise<S['BillingStatus']>;
|
|
@@ -1539,7 +1602,7 @@ declare class EllipsisAccountModels {
|
|
|
1539
1602
|
* Required permissions: read:templates.
|
|
1540
1603
|
* API key: Supported.
|
|
1541
1604
|
* CLI user token: Supported.
|
|
1542
|
-
*
|
|
1605
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1543
1606
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1544
1607
|
*/
|
|
1545
1608
|
list(): Promise<S['ModelsListResponse']>;
|
|
@@ -1557,7 +1620,7 @@ declare class EllipsisAccountNotifications {
|
|
|
1557
1620
|
* Required permissions: write:account.
|
|
1558
1621
|
* API key: Supported.
|
|
1559
1622
|
* CLI user token: Supported.
|
|
1560
|
-
*
|
|
1623
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1561
1624
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1562
1625
|
*/
|
|
1563
1626
|
testEmail(options: {
|
|
@@ -1575,7 +1638,7 @@ declare class EllipsisAccountOnboarding {
|
|
|
1575
1638
|
* Required permissions: read:account.
|
|
1576
1639
|
* API key: Supported.
|
|
1577
1640
|
* CLI user token: Supported.
|
|
1578
|
-
*
|
|
1641
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1579
1642
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1580
1643
|
*/
|
|
1581
1644
|
get(): Promise<S['AccountOnboardingResponse']>;
|
|
@@ -1588,14 +1651,14 @@ declare class EllipsisAccountOnboarding {
|
|
|
1588
1651
|
* Saving use cases requires a valid organization work email and at
|
|
1589
1652
|
* least one choice. When Other is the only choice, describe it.
|
|
1590
1653
|
* Personal accounts save a null work email. This does not change the
|
|
1591
|
-
* billing contact email.
|
|
1654
|
+
* billing contact email. Session tokens cannot update answers.
|
|
1592
1655
|
* Supplying an organization work email requires a human user and sends
|
|
1593
1656
|
* a Slack Connect invitation. Slack failures do not undo saved answers.
|
|
1594
1657
|
*
|
|
1595
1658
|
* Required permissions: write:account.
|
|
1596
1659
|
* API key: Supported.
|
|
1597
1660
|
* CLI user token: Supported.
|
|
1598
|
-
*
|
|
1661
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1599
1662
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1600
1663
|
*/
|
|
1601
1664
|
update(options?: {
|
|
@@ -1613,7 +1676,7 @@ declare class EllipsisAccountProvidersAnthropic {
|
|
|
1613
1676
|
* Required permissions: delete:account.
|
|
1614
1677
|
* API key: Supported.
|
|
1615
1678
|
* CLI user token: Supported.
|
|
1616
|
-
*
|
|
1679
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1617
1680
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1618
1681
|
*/
|
|
1619
1682
|
delete(): Promise<void>;
|
|
@@ -1623,7 +1686,7 @@ declare class EllipsisAccountProvidersAnthropic {
|
|
|
1623
1686
|
* Required permissions: read:account.
|
|
1624
1687
|
* API key: Supported.
|
|
1625
1688
|
* CLI user token: Supported.
|
|
1626
|
-
*
|
|
1689
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1627
1690
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1628
1691
|
*/
|
|
1629
1692
|
get(): Promise<S['AnthropicConfigResponse']>;
|
|
@@ -1633,7 +1696,7 @@ declare class EllipsisAccountProvidersAnthropic {
|
|
|
1633
1696
|
* Required permissions: write:account.
|
|
1634
1697
|
* API key: Supported.
|
|
1635
1698
|
* CLI user token: Supported.
|
|
1636
|
-
*
|
|
1699
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1637
1700
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1638
1701
|
*/
|
|
1639
1702
|
set(options: {
|
|
@@ -1645,63 +1708,14 @@ declare class EllipsisAccountProvidersAnthropic {
|
|
|
1645
1708
|
* Required permissions: write:account.
|
|
1646
1709
|
* API key: Supported.
|
|
1647
1710
|
* CLI user token: Supported.
|
|
1648
|
-
*
|
|
1711
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1649
1712
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1650
1713
|
*/
|
|
1651
1714
|
validate(): Promise<S['ValidateAnthropicConfigResponse']>;
|
|
1652
1715
|
}
|
|
1653
|
-
declare class EllipsisAccountProvidersBedrock {
|
|
1654
|
-
private readonly transport;
|
|
1655
|
-
constructor(transport: Transport);
|
|
1656
|
-
/**
|
|
1657
|
-
* Delete Bedrock Config
|
|
1658
|
-
*
|
|
1659
|
-
* Required permissions: delete:account.
|
|
1660
|
-
* API key: Supported.
|
|
1661
|
-
* CLI user token: Supported.
|
|
1662
|
-
* Sandbox token: Not supported by sandbox tokens, even with permissions.ellipsis enabled.
|
|
1663
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
1664
|
-
*/
|
|
1665
|
-
delete(): Promise<void>;
|
|
1666
|
-
/**
|
|
1667
|
-
* Get Bedrock Config
|
|
1668
|
-
*
|
|
1669
|
-
* Required permissions: read:account.
|
|
1670
|
-
* API key: Supported.
|
|
1671
|
-
* CLI user token: Supported.
|
|
1672
|
-
* Sandbox token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1673
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
1674
|
-
*/
|
|
1675
|
-
get(): Promise<S['BedrockConfigResponse']>;
|
|
1676
|
-
/**
|
|
1677
|
-
* Put Bedrock Config
|
|
1678
|
-
*
|
|
1679
|
-
* Required permissions: write:account.
|
|
1680
|
-
* API key: Supported.
|
|
1681
|
-
* CLI user token: Supported.
|
|
1682
|
-
* Sandbox token: Not supported by sandbox tokens, even with permissions.ellipsis enabled.
|
|
1683
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
1684
|
-
*/
|
|
1685
|
-
set(options: {
|
|
1686
|
-
model_map: Record<string, string>;
|
|
1687
|
-
region: string;
|
|
1688
|
-
role_arn: string;
|
|
1689
|
-
}): Promise<S['BedrockConfigResponse']>;
|
|
1690
|
-
/**
|
|
1691
|
-
* Validate Bedrock Config
|
|
1692
|
-
*
|
|
1693
|
-
* Required permissions: write:account.
|
|
1694
|
-
* API key: Supported.
|
|
1695
|
-
* CLI user token: Supported.
|
|
1696
|
-
* Sandbox token: Not supported by sandbox tokens, even with permissions.ellipsis enabled.
|
|
1697
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
1698
|
-
*/
|
|
1699
|
-
validate(): Promise<S['ValidateBedrockConfigResponse']>;
|
|
1700
|
-
}
|
|
1701
1716
|
declare class EllipsisAccountProviders {
|
|
1702
1717
|
private readonly transport;
|
|
1703
1718
|
readonly anthropic: EllipsisAccountProvidersAnthropic;
|
|
1704
|
-
readonly bedrock: EllipsisAccountProvidersBedrock;
|
|
1705
1719
|
constructor(transport: Transport);
|
|
1706
1720
|
}
|
|
1707
1721
|
declare class EllipsisAccountSettings {
|
|
@@ -1719,7 +1733,7 @@ declare class EllipsisAccountSettings {
|
|
|
1719
1733
|
* Required permissions: read:defaults.
|
|
1720
1734
|
* API key: Supported.
|
|
1721
1735
|
* CLI user token: Supported.
|
|
1722
|
-
*
|
|
1736
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1723
1737
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1724
1738
|
*/
|
|
1725
1739
|
get(): Promise<S['AccountSettings']>;
|
|
@@ -1733,13 +1747,13 @@ declare class EllipsisAccountSettings {
|
|
|
1733
1747
|
* default a session's model resolves against);
|
|
1734
1748
|
* `budget_ceiling.session` is in US dollars, at most the platform
|
|
1735
1749
|
* ceiling, and null clears it.
|
|
1736
|
-
* Refused for
|
|
1750
|
+
* Refused for session tokens (potentially prompt-injected code must
|
|
1737
1751
|
* not repoint the organization's defaults).
|
|
1738
1752
|
*
|
|
1739
1753
|
* Required permissions: write:defaults.
|
|
1740
1754
|
* API key: Requires a CLI user token belonging to an account administrator.
|
|
1741
1755
|
* CLI user token: Requires an account administrator.
|
|
1742
|
-
*
|
|
1756
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1743
1757
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1744
1758
|
*/
|
|
1745
1759
|
set(options: {
|
|
@@ -1756,7 +1770,7 @@ declare class EllipsisAccountSettings {
|
|
|
1756
1770
|
* Required permissions: write:defaults.
|
|
1757
1771
|
* API key: Cannot set budget_ceiling, default_model to a non-null value; those changes require a CLI user token belonging to an account administrator.
|
|
1758
1772
|
* CLI user token: Requires an account administrator when setting budget_ceiling, default_model to a non-null value.
|
|
1759
|
-
*
|
|
1773
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1760
1774
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1761
1775
|
*/
|
|
1762
1776
|
update(options?: {
|
|
@@ -1788,7 +1802,7 @@ declare class EllipsisAccount {
|
|
|
1788
1802
|
* Required permissions: read:account.
|
|
1789
1803
|
* API key: Supported.
|
|
1790
1804
|
* CLI user token: Supported.
|
|
1791
|
-
*
|
|
1805
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1792
1806
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1793
1807
|
*/
|
|
1794
1808
|
activity(): Promise<S['AccountActivity']>;
|
|
@@ -1798,7 +1812,7 @@ declare class EllipsisAccount {
|
|
|
1798
1812
|
* Required permissions: read:account.
|
|
1799
1813
|
* API key: Supported.
|
|
1800
1814
|
* CLI user token: Supported.
|
|
1801
|
-
*
|
|
1815
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1802
1816
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1803
1817
|
*/
|
|
1804
1818
|
auditLog(): Promise<S['AccountAuditLogResponse']>;
|
|
@@ -1816,7 +1830,7 @@ declare class EllipsisAccount {
|
|
|
1816
1830
|
* Required permissions: read:account.
|
|
1817
1831
|
* API key: Supported.
|
|
1818
1832
|
* CLI user token: Supported.
|
|
1819
|
-
*
|
|
1833
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1820
1834
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1821
1835
|
*/
|
|
1822
1836
|
budget(): Promise<S['BudgetSummary']>;
|
|
@@ -1826,11 +1840,11 @@ declare class EllipsisAccount {
|
|
|
1826
1840
|
* Required permissions: write:account.
|
|
1827
1841
|
* API key: Supported.
|
|
1828
1842
|
* CLI user token: Supported.
|
|
1829
|
-
*
|
|
1843
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1830
1844
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1831
1845
|
*/
|
|
1832
1846
|
update(options?: {
|
|
1833
|
-
|
|
1847
|
+
can_start_sessions?: boolean | null;
|
|
1834
1848
|
contact_email?: string | null;
|
|
1835
1849
|
}): Promise<S['AccountResponse']>;
|
|
1836
1850
|
/**
|
|
@@ -1842,14 +1856,14 @@ declare class EllipsisAccount {
|
|
|
1842
1856
|
* preserved. Set policy.developer_defaults to null to disable developer
|
|
1843
1857
|
* limits. Null override windows inherit their default. API keys use
|
|
1844
1858
|
* their stable ID, not their secret. Changes apply to the next paid
|
|
1845
|
-
* request, including sessions already running. API keys and
|
|
1846
|
-
*
|
|
1859
|
+
* request, including sessions already running. API keys and session
|
|
1860
|
+
* tokens cannot edit budgets. The session ceiling remains at
|
|
1847
1861
|
* /account/settings; purchasing credits is separate from budget policy.
|
|
1848
1862
|
*
|
|
1849
1863
|
* Required permissions: write:defaults.
|
|
1850
1864
|
* API key: Requires a CLI user token belonging to an account administrator.
|
|
1851
1865
|
* CLI user token: Requires an account administrator.
|
|
1852
|
-
*
|
|
1866
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1853
1867
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1854
1868
|
*/
|
|
1855
1869
|
updateBudget(options?: {
|
|
@@ -1863,14 +1877,14 @@ declare class EllipsisAccount {
|
|
|
1863
1877
|
*
|
|
1864
1878
|
* Omit period_start for the current UTC month; select a period returned
|
|
1865
1879
|
* in billing_periods to view history. Credit debits are distinct from
|
|
1866
|
-
* rated token usage through BYOK
|
|
1867
|
-
*
|
|
1880
|
+
* rated token usage through BYOK or a developer's Claude or Codex
|
|
1881
|
+
* subscription. Rated usage estimates are not provider invoices.
|
|
1868
1882
|
* Pending and unresolved requests identify missing measurements.
|
|
1869
1883
|
*
|
|
1870
1884
|
* Required permissions: read:account.
|
|
1871
1885
|
* API key: Supported.
|
|
1872
1886
|
* CLI user token: Supported.
|
|
1873
|
-
*
|
|
1887
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1874
1888
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1875
1889
|
*/
|
|
1876
1890
|
usage(options?: {
|
|
@@ -1892,7 +1906,7 @@ declare class EllipsisAgents {
|
|
|
1892
1906
|
* Required permissions: write:configs.
|
|
1893
1907
|
* API key: Supported.
|
|
1894
1908
|
* CLI user token: Supported.
|
|
1895
|
-
*
|
|
1909
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1896
1910
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1897
1911
|
* Grant match patterns can further restrict access to individual resources.
|
|
1898
1912
|
*/
|
|
@@ -1911,7 +1925,7 @@ declare class EllipsisAgents {
|
|
|
1911
1925
|
* Required permissions: write:configs.
|
|
1912
1926
|
* API key: Supported.
|
|
1913
1927
|
* CLI user token: Supported.
|
|
1914
|
-
*
|
|
1928
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1915
1929
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1916
1930
|
* Grant match patterns can further restrict access to individual resources.
|
|
1917
1931
|
*/
|
|
@@ -1924,7 +1938,7 @@ declare class EllipsisAgents {
|
|
|
1924
1938
|
* Required permissions: read:configs.
|
|
1925
1939
|
* API key: Supported.
|
|
1926
1940
|
* CLI user token: Supported.
|
|
1927
|
-
*
|
|
1941
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1928
1942
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1929
1943
|
* Grant match patterns can further restrict access to individual resources.
|
|
1930
1944
|
*/
|
|
@@ -1942,7 +1956,7 @@ declare class EllipsisAgents {
|
|
|
1942
1956
|
* Required permissions: write:configs.
|
|
1943
1957
|
* API key: Supported.
|
|
1944
1958
|
* CLI user token: Supported.
|
|
1945
|
-
*
|
|
1959
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1946
1960
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1947
1961
|
* Grant match patterns can further restrict access to individual resources.
|
|
1948
1962
|
*/
|
|
@@ -1958,7 +1972,7 @@ declare class EllipsisAgents {
|
|
|
1958
1972
|
* Required permissions: read:configs.
|
|
1959
1973
|
* API key: Supported.
|
|
1960
1974
|
* CLI user token: Supported.
|
|
1961
|
-
*
|
|
1975
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1962
1976
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1963
1977
|
* Grant match patterns can further restrict access to individual resources.
|
|
1964
1978
|
*/
|
|
@@ -1977,7 +1991,7 @@ declare class EllipsisAgents {
|
|
|
1977
1991
|
* Required permissions: read:configs.
|
|
1978
1992
|
* API key: Supported.
|
|
1979
1993
|
* CLI user token: Supported.
|
|
1980
|
-
*
|
|
1994
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1981
1995
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1982
1996
|
* Grant match patterns can further restrict access to individual resources.
|
|
1983
1997
|
*/
|
|
@@ -2000,7 +2014,7 @@ declare class EllipsisAgents {
|
|
|
2000
2014
|
* Required permissions: write:sessions.
|
|
2001
2015
|
* API key: Supported.
|
|
2002
2016
|
* CLI user token: Supported.
|
|
2003
|
-
*
|
|
2017
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2004
2018
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2005
2019
|
* Grant match patterns can further restrict access to individual resources.
|
|
2006
2020
|
*/
|
|
@@ -2016,7 +2030,7 @@ declare class EllipsisAgents {
|
|
|
2016
2030
|
* Required permissions: read:configs.
|
|
2017
2031
|
* API key: Supported.
|
|
2018
2032
|
* CLI user token: Supported.
|
|
2019
|
-
*
|
|
2033
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2020
2034
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2021
2035
|
* Grant match patterns can further restrict access to individual resources.
|
|
2022
2036
|
*/
|
|
@@ -2033,7 +2047,7 @@ declare class EllipsisAgents {
|
|
|
2033
2047
|
* Required permissions: write:configs.
|
|
2034
2048
|
* API key: Supported.
|
|
2035
2049
|
* CLI user token: Supported.
|
|
2036
|
-
*
|
|
2050
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2037
2051
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2038
2052
|
* Grant match patterns can further restrict access to individual resources.
|
|
2039
2053
|
*/
|
|
@@ -2051,7 +2065,7 @@ declare class EllipsisAgents {
|
|
|
2051
2065
|
* Required permissions: write:configs.
|
|
2052
2066
|
* API key: Supported.
|
|
2053
2067
|
* CLI user token: Supported.
|
|
2054
|
-
*
|
|
2068
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2055
2069
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2056
2070
|
* Grant match patterns can further restrict access to individual resources.
|
|
2057
2071
|
*/
|
|
@@ -2072,7 +2086,7 @@ declare class EllipsisAlerts {
|
|
|
2072
2086
|
* Required permissions: write:alerts.
|
|
2073
2087
|
* API key: Supported.
|
|
2074
2088
|
* CLI user token: Supported.
|
|
2075
|
-
*
|
|
2089
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2076
2090
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2077
2091
|
*/
|
|
2078
2092
|
dismiss(alert_id: string): Promise<S['AlertResponse']>;
|
|
@@ -2086,7 +2100,7 @@ declare class EllipsisAlerts {
|
|
|
2086
2100
|
* Required permissions: read:alerts.
|
|
2087
2101
|
* API key: Supported.
|
|
2088
2102
|
* CLI user token: Supported.
|
|
2089
|
-
*
|
|
2103
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2090
2104
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2091
2105
|
*/
|
|
2092
2106
|
get(alert_id: string): Promise<S['AlertResponse']>;
|
|
@@ -2103,7 +2117,7 @@ declare class EllipsisAlerts {
|
|
|
2103
2117
|
* Required permissions: read:alerts.
|
|
2104
2118
|
* API key: Supported.
|
|
2105
2119
|
* CLI user token: Supported.
|
|
2106
|
-
*
|
|
2120
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2107
2121
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2108
2122
|
*/
|
|
2109
2123
|
list(options?: {
|
|
@@ -2132,7 +2146,7 @@ declare class EllipsisAnalytics {
|
|
|
2132
2146
|
* Required permissions: read:account.
|
|
2133
2147
|
* API key: Supported.
|
|
2134
2148
|
* CLI user token: Supported.
|
|
2135
|
-
*
|
|
2149
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2136
2150
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2137
2151
|
*/
|
|
2138
2152
|
metrics(options?: {
|
|
@@ -2155,7 +2169,7 @@ declare class EllipsisAnalytics {
|
|
|
2155
2169
|
* Required permissions: read:account.
|
|
2156
2170
|
* API key: Supported.
|
|
2157
2171
|
* CLI user token: Supported.
|
|
2158
|
-
*
|
|
2172
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2159
2173
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2160
2174
|
*/
|
|
2161
2175
|
pullRequests(options?: {
|
|
@@ -2180,7 +2194,7 @@ declare class EllipsisAnalytics {
|
|
|
2180
2194
|
* Required permissions: read:account.
|
|
2181
2195
|
* API key: Supported.
|
|
2182
2196
|
* CLI user token: Supported.
|
|
2183
|
-
*
|
|
2197
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2184
2198
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2185
2199
|
*/
|
|
2186
2200
|
reviews(options?: {
|
|
@@ -2241,7 +2255,7 @@ declare class EllipsisEnvironments {
|
|
|
2241
2255
|
* Required permissions: write:environments.
|
|
2242
2256
|
* API key: Supported.
|
|
2243
2257
|
* CLI user token: Supported.
|
|
2244
|
-
*
|
|
2258
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2245
2259
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2246
2260
|
*/
|
|
2247
2261
|
create(options: {
|
|
@@ -2261,7 +2275,7 @@ declare class EllipsisEnvironments {
|
|
|
2261
2275
|
* Required permissions: delete:environments.
|
|
2262
2276
|
* API key: Supported.
|
|
2263
2277
|
* CLI user token: Supported.
|
|
2264
|
-
*
|
|
2278
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2265
2279
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2266
2280
|
*/
|
|
2267
2281
|
delete(environment_id: string): Promise<void>;
|
|
@@ -2273,7 +2287,7 @@ declare class EllipsisEnvironments {
|
|
|
2273
2287
|
* Required permissions: read:environments.
|
|
2274
2288
|
* API key: Supported.
|
|
2275
2289
|
* CLI user token: Supported.
|
|
2276
|
-
*
|
|
2290
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2277
2291
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2278
2292
|
*/
|
|
2279
2293
|
get(environment_id: string): Promise<S['EnvironmentResponse']>;
|
|
@@ -2285,7 +2299,7 @@ declare class EllipsisEnvironments {
|
|
|
2285
2299
|
* Required permissions: read:environments.
|
|
2286
2300
|
* API key: Supported.
|
|
2287
2301
|
* CLI user token: Supported.
|
|
2288
|
-
*
|
|
2302
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2289
2303
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2290
2304
|
*/
|
|
2291
2305
|
list(): Promise<S['EnvironmentsListResponse']>;
|
|
@@ -2302,108 +2316,13 @@ declare class EllipsisEnvironments {
|
|
|
2302
2316
|
* Required permissions: write:environments.
|
|
2303
2317
|
* API key: Supported.
|
|
2304
2318
|
* CLI user token: Supported.
|
|
2305
|
-
*
|
|
2319
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2306
2320
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2307
2321
|
*/
|
|
2308
2322
|
update(environment_id: string, options: {
|
|
2309
2323
|
environment: S['EnvironmentDocument-Input'];
|
|
2310
2324
|
}): Promise<S['EnvironmentResponse']>;
|
|
2311
2325
|
}
|
|
2312
|
-
declare class EllipsisFiles {
|
|
2313
|
-
private readonly transport;
|
|
2314
|
-
constructor(transport: Transport);
|
|
2315
|
-
/**
|
|
2316
|
-
* Create File
|
|
2317
|
-
*
|
|
2318
|
-
* Upload a file that outlives the sandbox.
|
|
2319
|
-
*
|
|
2320
|
-
* v1: PNG images only, base64 in the JSON body, 10 MiB cap. The
|
|
2321
|
-
* primary caller is the in-sandbox `agent file upload` CLI (an
|
|
2322
|
-
* agent persisting a screenshot to link on a PR), but all
|
|
2323
|
-
* credential types work. Returns the org-membership-gated
|
|
2324
|
-
* dashboard URL so callers never hard-code URL shapes.
|
|
2325
|
-
*
|
|
2326
|
-
* Required permissions: write:files.
|
|
2327
|
-
* API key: Supported.
|
|
2328
|
-
* CLI user token: Supported.
|
|
2329
|
-
* Sandbox token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2330
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
2331
|
-
* Grant match patterns can further restrict access to individual resources.
|
|
2332
|
-
*/
|
|
2333
|
-
create(options: {
|
|
2334
|
-
content_type: string;
|
|
2335
|
-
data_b64: string;
|
|
2336
|
-
filename: string;
|
|
2337
|
-
}): Promise<S['CreateFileResponse']>;
|
|
2338
|
-
/**
|
|
2339
|
-
* Delete File
|
|
2340
|
-
*
|
|
2341
|
-
* Delete a file.
|
|
2342
|
-
*
|
|
2343
|
-
* A foreign, missing, or already-deleted id is an
|
|
2344
|
-
* indistinguishable 404, so ids can't be enumerated. Sandbox
|
|
2345
|
-
* tokens get a 403 (a sandbox token sits next to
|
|
2346
|
-
* potentially-untrusted code and must not be able to destroy the
|
|
2347
|
-
* account's files — uploading is fine, destruction is not); API
|
|
2348
|
-
* keys and user tokens may delete.
|
|
2349
|
-
*
|
|
2350
|
-
* Required permissions: delete:files.
|
|
2351
|
-
* API key: Supported.
|
|
2352
|
-
* CLI user token: Supported.
|
|
2353
|
-
* Sandbox token: Not supported by sandbox tokens, even with permissions.ellipsis enabled.
|
|
2354
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
2355
|
-
* Grant match patterns can further restrict access to individual resources.
|
|
2356
|
-
*/
|
|
2357
|
-
delete(file_id: string): Promise<void>;
|
|
2358
|
-
/**
|
|
2359
|
-
* Get File
|
|
2360
|
-
*
|
|
2361
|
-
* Return one file's metadata and download link.
|
|
2362
|
-
*
|
|
2363
|
-
* Includes the gated dashboard URL and a short-lived presigned
|
|
2364
|
-
* `download_url`, plus the owning account's GitHub login.
|
|
2365
|
-
*
|
|
2366
|
-
* Signed-in dashboard users are checked against the file's owning
|
|
2367
|
-
* account, regardless of their selected organization. API keys,
|
|
2368
|
-
* CLI user tokens, and sandbox tokens remain restricted to their
|
|
2369
|
-
* own account. Missing, deleted, and inaccessible files return 404.
|
|
2370
|
-
*
|
|
2371
|
-
* To fetch the bytes locally, call this and then GET download_url
|
|
2372
|
-
* immediately — the JSON API never carries the file. The CLI's
|
|
2373
|
-
* `agent file get` wraps exactly that two-step.
|
|
2374
|
-
*
|
|
2375
|
-
* Required permissions: read:files.
|
|
2376
|
-
* API key: Supported.
|
|
2377
|
-
* CLI user token: Supported.
|
|
2378
|
-
* Sandbox token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2379
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
2380
|
-
* Grant match patterns can further restrict access to individual resources.
|
|
2381
|
-
*/
|
|
2382
|
-
get(file_id: string): Promise<S['GetFileResponse']>;
|
|
2383
|
-
/**
|
|
2384
|
-
* List Files
|
|
2385
|
-
*
|
|
2386
|
-
* List uploaded files, newest first.
|
|
2387
|
-
*
|
|
2388
|
-
* Metadata only by default. Set include_download_urls=true to get
|
|
2389
|
-
* a download_urls map keyed by file id for thumbnails or batch
|
|
2390
|
-
* downloads. URLs expire within about a minute. session_id scopes
|
|
2391
|
-
* the list to one session's uploads.
|
|
2392
|
-
*
|
|
2393
|
-
* Required permissions: read:files.
|
|
2394
|
-
* API key: Supported.
|
|
2395
|
-
* CLI user token: Supported.
|
|
2396
|
-
* Sandbox token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2397
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
2398
|
-
* Grant match patterns can further restrict access to individual resources.
|
|
2399
|
-
*/
|
|
2400
|
-
list(options?: {
|
|
2401
|
-
session_id?: string | null;
|
|
2402
|
-
limit?: number;
|
|
2403
|
-
cursor?: string | null;
|
|
2404
|
-
include_download_urls?: boolean;
|
|
2405
|
-
}): Promise<Page<S['File'], S['FilesListResponse']>>;
|
|
2406
|
-
}
|
|
2407
2326
|
declare class EllipsisHandlers {
|
|
2408
2327
|
private readonly transport;
|
|
2409
2328
|
constructor(transport: Transport);
|
|
@@ -2418,12 +2337,12 @@ declare class EllipsisHandlers {
|
|
|
2418
2337
|
* state without fetching GitHub or triggering synchronization.
|
|
2419
2338
|
*
|
|
2420
2339
|
* Requires configs:read; scoped grants match handlers/{service}.
|
|
2421
|
-
*
|
|
2340
|
+
* Session tokens with that grant may read handlers.
|
|
2422
2341
|
*
|
|
2423
2342
|
* Required permissions: read:configs.
|
|
2424
2343
|
* API key: Supported.
|
|
2425
2344
|
* CLI user token: Supported.
|
|
2426
|
-
*
|
|
2345
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2427
2346
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2428
2347
|
* Grant match patterns can further restrict access to individual resources.
|
|
2429
2348
|
*/
|
|
@@ -2434,8 +2353,8 @@ declare class EllipsisHandlers {
|
|
|
2434
2353
|
* Return session counts and accumulated spend for a saved handler.
|
|
2435
2354
|
*
|
|
2436
2355
|
* Filters only by session creation time. Omitted bounds include all
|
|
2437
|
-
* history. Counts use the current conversation
|
|
2438
|
-
*
|
|
2356
|
+
* history. Counts use the current turn and conversation state, so an open
|
|
2357
|
+
* conversation awaiting another message remains active. Spend includes the selected sessions' full
|
|
2439
2358
|
* accumulated cost, including activity after the creation-time window.
|
|
2440
2359
|
* Only sessions carrying this exact saved handler id are counted;
|
|
2441
2360
|
* legacy sessions without handler provenance are excluded.
|
|
@@ -2445,12 +2364,12 @@ declare class EllipsisHandlers {
|
|
|
2445
2364
|
* Those windows use usage timestamps and are independent of start/end.
|
|
2446
2365
|
*
|
|
2447
2366
|
* Requires configs:read matching handlers/{service} and unrestricted
|
|
2448
|
-
* sessions:read.
|
|
2367
|
+
* sessions:read. Session tokens with both grants may read metrics.
|
|
2449
2368
|
*
|
|
2450
2369
|
* Required permissions: read:sessions, read:configs.
|
|
2451
2370
|
* API key: Supported.
|
|
2452
2371
|
* CLI user token: Supported.
|
|
2453
|
-
*
|
|
2372
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2454
2373
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2455
2374
|
* Grant match patterns can further restrict access to individual resources.
|
|
2456
2375
|
*/
|
|
@@ -2476,7 +2395,7 @@ declare class EllipsisIntegrationsGithub {
|
|
|
2476
2395
|
* Required permissions: read:integrations.
|
|
2477
2396
|
* API key: Supported.
|
|
2478
2397
|
* CLI user token: Supported.
|
|
2479
|
-
*
|
|
2398
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2480
2399
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2481
2400
|
*/
|
|
2482
2401
|
members(): Promise<S['GithubMembersListResponse']>;
|
|
@@ -2488,7 +2407,7 @@ declare class EllipsisIntegrationsGithub {
|
|
|
2488
2407
|
* Required permissions: read:integrations.
|
|
2489
2408
|
* API key: Supported.
|
|
2490
2409
|
* CLI user token: Supported.
|
|
2491
|
-
*
|
|
2410
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2492
2411
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2493
2412
|
*/
|
|
2494
2413
|
repos(): Promise<S['GithubRepositoriesListResponse']>;
|
|
@@ -2498,7 +2417,7 @@ declare class EllipsisIntegrationsGithub {
|
|
|
2498
2417
|
* Required permissions: write:integrations.
|
|
2499
2418
|
* API key: Supported.
|
|
2500
2419
|
* CLI user token: Supported.
|
|
2501
|
-
*
|
|
2420
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2502
2421
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2503
2422
|
*/
|
|
2504
2423
|
uninstall(options: {
|
|
@@ -2514,7 +2433,7 @@ declare class EllipsisIntegrationsLinear {
|
|
|
2514
2433
|
* Required permissions: delete:integrations.
|
|
2515
2434
|
* API key: Supported.
|
|
2516
2435
|
* CLI user token: Supported.
|
|
2517
|
-
*
|
|
2436
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2518
2437
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2519
2438
|
*/
|
|
2520
2439
|
delete(): Promise<S['AccountActionResponse']>;
|
|
@@ -2526,7 +2445,7 @@ declare class EllipsisIntegrationsLinear {
|
|
|
2526
2445
|
* Required permissions: read:integrations.
|
|
2527
2446
|
* API key: Supported.
|
|
2528
2447
|
* CLI user token: Supported.
|
|
2529
|
-
*
|
|
2448
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2530
2449
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2531
2450
|
*/
|
|
2532
2451
|
teams(): Promise<S['LinearTeamsListResponse']>;
|
|
@@ -2536,7 +2455,7 @@ declare class EllipsisIntegrationsLinear {
|
|
|
2536
2455
|
* Required permissions: write:integrations.
|
|
2537
2456
|
* API key: Supported.
|
|
2538
2457
|
* CLI user token: Supported.
|
|
2539
|
-
*
|
|
2458
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2540
2459
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2541
2460
|
*/
|
|
2542
2461
|
updateSettings(options: {
|
|
@@ -2553,7 +2472,7 @@ declare class EllipsisIntegrationsSentry {
|
|
|
2553
2472
|
* Required permissions: delete:integrations.
|
|
2554
2473
|
* API key: Supported.
|
|
2555
2474
|
* CLI user token: Supported.
|
|
2556
|
-
*
|
|
2475
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2557
2476
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2558
2477
|
*/
|
|
2559
2478
|
delete(integration_id: string): Promise<S['AccountActionResponse']>;
|
|
@@ -2565,7 +2484,7 @@ declare class EllipsisIntegrationsSentry {
|
|
|
2565
2484
|
* Required permissions: read:integrations.
|
|
2566
2485
|
* API key: Supported.
|
|
2567
2486
|
* CLI user token: Supported.
|
|
2568
|
-
*
|
|
2487
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2569
2488
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2570
2489
|
*/
|
|
2571
2490
|
organizations(): Promise<S['SentryOrganizationsListResponse']>;
|
|
@@ -2582,7 +2501,7 @@ declare class EllipsisIntegrationsSlack {
|
|
|
2582
2501
|
* Required permissions: read:integrations.
|
|
2583
2502
|
* API key: Supported.
|
|
2584
2503
|
* CLI user token: Supported.
|
|
2585
|
-
*
|
|
2504
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2586
2505
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2587
2506
|
*/
|
|
2588
2507
|
channels(): Promise<S['SlackChannelsListResponse']>;
|
|
@@ -2592,7 +2511,7 @@ declare class EllipsisIntegrationsSlack {
|
|
|
2592
2511
|
* Required permissions: write:integrations.
|
|
2593
2512
|
* API key: Supported.
|
|
2594
2513
|
* CLI user token: Supported.
|
|
2595
|
-
*
|
|
2514
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2596
2515
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2597
2516
|
*/
|
|
2598
2517
|
createOperationsChannel(): Promise<S['SlackChannel']>;
|
|
@@ -2602,7 +2521,7 @@ declare class EllipsisIntegrationsSlack {
|
|
|
2602
2521
|
* Required permissions: delete:integrations.
|
|
2603
2522
|
* API key: Supported.
|
|
2604
2523
|
* CLI user token: Supported.
|
|
2605
|
-
*
|
|
2524
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2606
2525
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2607
2526
|
*/
|
|
2608
2527
|
delete(): Promise<S['AccountActionResponse']>;
|
|
@@ -2615,7 +2534,7 @@ declare class EllipsisIntegrationsSlack {
|
|
|
2615
2534
|
* Required permissions: read:integrations.
|
|
2616
2535
|
* API key: Supported.
|
|
2617
2536
|
* CLI user token: Supported.
|
|
2618
|
-
*
|
|
2537
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2619
2538
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2620
2539
|
*/
|
|
2621
2540
|
members(): Promise<S['SlackMembersListResponse']>;
|
|
@@ -2625,7 +2544,7 @@ declare class EllipsisIntegrationsSlack {
|
|
|
2625
2544
|
* Required permissions: write:integrations.
|
|
2626
2545
|
* API key: Supported.
|
|
2627
2546
|
* CLI user token: Supported.
|
|
2628
|
-
*
|
|
2547
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2629
2548
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2630
2549
|
*/
|
|
2631
2550
|
updateSettings(options: {
|
|
@@ -2648,13 +2567,13 @@ declare class EllipsisIntegrations {
|
|
|
2648
2567
|
* config can learn which repositories, channels, teams, and
|
|
2649
2568
|
* organizations it may name before POST /agents.
|
|
2650
2569
|
*
|
|
2651
|
-
* Available to all credential types including
|
|
2570
|
+
* Available to all credential types including session tokens: the
|
|
2652
2571
|
* responses never include OAuth tokens or any other secret.
|
|
2653
2572
|
*
|
|
2654
2573
|
* Required permissions: read:integrations.
|
|
2655
2574
|
* API key: Supported.
|
|
2656
2575
|
* CLI user token: Supported.
|
|
2657
|
-
*
|
|
2576
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2658
2577
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2659
2578
|
*/
|
|
2660
2579
|
list(): Promise<S['GetIntegrationsResponse']>;
|
|
@@ -2678,7 +2597,7 @@ declare class EllipsisMemories {
|
|
|
2678
2597
|
* Required permissions: write:memories.
|
|
2679
2598
|
* API key: Supported.
|
|
2680
2599
|
* CLI user token: Supported.
|
|
2681
|
-
*
|
|
2600
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2682
2601
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2683
2602
|
* Grant match patterns can further restrict access to individual resources.
|
|
2684
2603
|
*/
|
|
@@ -2699,7 +2618,7 @@ declare class EllipsisMemories {
|
|
|
2699
2618
|
* Required permissions: delete:memories.
|
|
2700
2619
|
* API key: Supported.
|
|
2701
2620
|
* CLI user token: Supported.
|
|
2702
|
-
*
|
|
2621
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2703
2622
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2704
2623
|
* Grant match patterns can further restrict access to individual resources.
|
|
2705
2624
|
*/
|
|
@@ -2721,7 +2640,7 @@ declare class EllipsisMemories {
|
|
|
2721
2640
|
* Required permissions: write:memories.
|
|
2722
2641
|
* API key: Supported.
|
|
2723
2642
|
* CLI user token: Supported.
|
|
2724
|
-
*
|
|
2643
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2725
2644
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2726
2645
|
* Grant match patterns can further restrict access to individual resources.
|
|
2727
2646
|
*/
|
|
@@ -2740,7 +2659,7 @@ declare class EllipsisMemories {
|
|
|
2740
2659
|
* Required permissions: read:memories.
|
|
2741
2660
|
* API key: Supported.
|
|
2742
2661
|
* CLI user token: Supported.
|
|
2743
|
-
*
|
|
2662
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2744
2663
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2745
2664
|
* Grant match patterns can further restrict access to individual resources.
|
|
2746
2665
|
*/
|
|
@@ -2758,7 +2677,7 @@ declare class EllipsisMemories {
|
|
|
2758
2677
|
* Required permissions: read:memories.
|
|
2759
2678
|
* API key: Supported.
|
|
2760
2679
|
* CLI user token: Supported.
|
|
2761
|
-
*
|
|
2680
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2762
2681
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2763
2682
|
* Grant match patterns can further restrict access to individual resources.
|
|
2764
2683
|
*/
|
|
@@ -2775,7 +2694,7 @@ declare class EllipsisReviews {
|
|
|
2775
2694
|
* Required permissions: read:reviews.
|
|
2776
2695
|
* API key: Supported.
|
|
2777
2696
|
* CLI user token: Supported.
|
|
2778
|
-
*
|
|
2697
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2779
2698
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2780
2699
|
*/
|
|
2781
2700
|
configs(): Promise<S['GetCodeReviewConfigsResponse']>;
|
|
@@ -2790,7 +2709,7 @@ declare class EllipsisReviews {
|
|
|
2790
2709
|
* the automatic one.
|
|
2791
2710
|
*
|
|
2792
2711
|
* A review is one pipeline run over one commit range, with one
|
|
2793
|
-
* agent session per stage: `review.id` is the
|
|
2712
|
+
* agent session per stage: `review.id` is the review id, and
|
|
2794
2713
|
* `stages[].session_id` is where a client streams
|
|
2795
2714
|
* (/sessions/{id}/stream on a stage session), since the review
|
|
2796
2715
|
* itself is a pipeline rather than one process.
|
|
@@ -2798,7 +2717,7 @@ declare class EllipsisReviews {
|
|
|
2798
2717
|
* Required permissions: write:reviews.
|
|
2799
2718
|
* API key: Supported.
|
|
2800
2719
|
* CLI user token: Supported.
|
|
2801
|
-
*
|
|
2720
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2802
2721
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2803
2722
|
*/
|
|
2804
2723
|
create(options: {
|
|
@@ -2823,7 +2742,7 @@ declare class EllipsisReviews {
|
|
|
2823
2742
|
* Required permissions: read:reviews.
|
|
2824
2743
|
* API key: Supported.
|
|
2825
2744
|
* CLI user token: Supported.
|
|
2826
|
-
*
|
|
2745
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2827
2746
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2828
2747
|
*/
|
|
2829
2748
|
get(review_id: string): Promise<S['Review']>;
|
|
@@ -2843,7 +2762,7 @@ declare class EllipsisReviews {
|
|
|
2843
2762
|
* Required permissions: read:reviews.
|
|
2844
2763
|
* API key: Supported.
|
|
2845
2764
|
* CLI user token: Supported.
|
|
2846
|
-
*
|
|
2765
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2847
2766
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2848
2767
|
*/
|
|
2849
2768
|
list(options?: {
|
|
@@ -2864,13 +2783,13 @@ declare class EllipsisSecrets {
|
|
|
2864
2783
|
*
|
|
2865
2784
|
* Delete a secret by name.
|
|
2866
2785
|
*
|
|
2867
|
-
* Refused for
|
|
2786
|
+
* Refused for session tokens; mutations require an API key or
|
|
2868
2787
|
* user token.
|
|
2869
2788
|
*
|
|
2870
2789
|
* Required permissions: delete:secrets.
|
|
2871
2790
|
* API key: Supported.
|
|
2872
2791
|
* CLI user token: Supported.
|
|
2873
|
-
*
|
|
2792
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2874
2793
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2875
2794
|
* Grant match patterns can further restrict access to individual resources.
|
|
2876
2795
|
*/
|
|
@@ -2886,7 +2805,7 @@ declare class EllipsisSecrets {
|
|
|
2886
2805
|
* Required permissions: read:secrets.
|
|
2887
2806
|
* API key: Supported.
|
|
2888
2807
|
* CLI user token: Supported.
|
|
2889
|
-
*
|
|
2808
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2890
2809
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2891
2810
|
* Grant match patterns can further restrict access to individual resources.
|
|
2892
2811
|
*/
|
|
@@ -2897,14 +2816,14 @@ declare class EllipsisSecrets {
|
|
|
2897
2816
|
* Upsert secrets.
|
|
2898
2817
|
*
|
|
2899
2818
|
* Returns only the secrets this call wrote, names and timestamps
|
|
2900
|
-
* only — values are write-only. Refused for
|
|
2901
|
-
* potentially-untrusted
|
|
2902
|
-
* API key or user token.
|
|
2819
|
+
* only — values are write-only. Refused for session tokens (held by
|
|
2820
|
+
* potentially-untrusted code running inside a session); mutations
|
|
2821
|
+
* require an API key or user token.
|
|
2903
2822
|
*
|
|
2904
2823
|
* Required permissions: write:secrets.
|
|
2905
2824
|
* API key: Supported.
|
|
2906
2825
|
* CLI user token: Supported.
|
|
2907
|
-
*
|
|
2826
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2908
2827
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2909
2828
|
* Grant match patterns can further restrict access to individual resources.
|
|
2910
2829
|
*/
|
|
@@ -2912,8 +2831,46 @@ declare class EllipsisSecrets {
|
|
|
2912
2831
|
secrets: (S['SecretInput'])[];
|
|
2913
2832
|
}): Promise<S['SecretsListResponse']>;
|
|
2914
2833
|
}
|
|
2834
|
+
declare class EllipsisSessionsTurns {
|
|
2835
|
+
private readonly transport;
|
|
2836
|
+
constructor(transport: Transport);
|
|
2837
|
+
/**
|
|
2838
|
+
* Get Session Turn
|
|
2839
|
+
*
|
|
2840
|
+
* Return one turn.
|
|
2841
|
+
*
|
|
2842
|
+
* Poll this after sending a message: the message is answered when
|
|
2843
|
+
* the turn's status is completed, failed, stopped, or cancelled.
|
|
2844
|
+
*
|
|
2845
|
+
* Required permissions: read:sessions.
|
|
2846
|
+
* API key: Supported.
|
|
2847
|
+
* CLI user token: Supported.
|
|
2848
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2849
|
+
* Higher permission levels include lower levels: read < write < delete.
|
|
2850
|
+
* Grant match patterns can further restrict access to individual resources.
|
|
2851
|
+
*/
|
|
2852
|
+
get(session_id: string, turn_id: string): Promise<S['SessionTurnResponse']>;
|
|
2853
|
+
/**
|
|
2854
|
+
* Get Session Turns
|
|
2855
|
+
*
|
|
2856
|
+
* Return the session's turns and messages, oldest first.
|
|
2857
|
+
*
|
|
2858
|
+
* One turn per message: pending until the agent starts on it,
|
|
2859
|
+
* running while it works, then completed, failed, stopped, or
|
|
2860
|
+
* cancelled.
|
|
2861
|
+
*
|
|
2862
|
+
* Required permissions: read:sessions.
|
|
2863
|
+
* API key: Supported.
|
|
2864
|
+
* CLI user token: Supported.
|
|
2865
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2866
|
+
* Higher permission levels include lower levels: read < write < delete.
|
|
2867
|
+
* Grant match patterns can further restrict access to individual resources.
|
|
2868
|
+
*/
|
|
2869
|
+
list(session_id: string): Promise<S['SessionTurnsListResponse']>;
|
|
2870
|
+
}
|
|
2915
2871
|
declare class EllipsisSessions {
|
|
2916
2872
|
private readonly transport;
|
|
2873
|
+
readonly turns: EllipsisSessionsTurns;
|
|
2917
2874
|
constructor(transport: Transport);
|
|
2918
2875
|
/**
|
|
2919
2876
|
* Get Session Analytics
|
|
@@ -2922,16 +2879,16 @@ declare class EllipsisSessions {
|
|
|
2922
2879
|
*
|
|
2923
2880
|
* Token lanes use the request's saved rates. Content attribution
|
|
2924
2881
|
* apportions input/cache spend by text size, counting carried context
|
|
2925
|
-
* on every request. It is an estimate, not a tool
|
|
2882
|
+
* on every request. It is an estimate, not a tool call fee.
|
|
2926
2883
|
* Only the latest 200 retained request bodies are inspected; missing
|
|
2927
2884
|
* or unsupported context remains explicitly unattributed. No raw
|
|
2928
|
-
* prompts or tool results are returned.
|
|
2885
|
+
* prompts or tool results are returned. Session tokens may read only
|
|
2929
2886
|
* their own session's analytics.
|
|
2930
2887
|
*
|
|
2931
2888
|
* Required permissions: read:sessions.
|
|
2932
2889
|
* API key: Supported.
|
|
2933
2890
|
* CLI user token: Supported.
|
|
2934
|
-
*
|
|
2891
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own session.
|
|
2935
2892
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2936
2893
|
* Grant match patterns can further restrict access to individual resources.
|
|
2937
2894
|
*/
|
|
@@ -2942,15 +2899,15 @@ declare class EllipsisSessions {
|
|
|
2942
2899
|
* Return the session's uncommitted changes as a patch.
|
|
2943
2900
|
*
|
|
2944
2901
|
* One unified-diff section per changed file, captured from the
|
|
2945
|
-
*
|
|
2902
|
+
* environment's working tree when the session ended. The per-file
|
|
2946
2903
|
* counts ride on the session itself (`git.repos[].files`); this
|
|
2947
2904
|
* is the text behind them. Empty when the tree was clean. A
|
|
2948
|
-
*
|
|
2905
|
+
* session token may read only its own session's diff.
|
|
2949
2906
|
*
|
|
2950
2907
|
* Required permissions: read:sessions.
|
|
2951
2908
|
* API key: Supported.
|
|
2952
2909
|
* CLI user token: Supported.
|
|
2953
|
-
*
|
|
2910
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own session.
|
|
2954
2911
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2955
2912
|
* Grant match patterns can further restrict access to individual resources.
|
|
2956
2913
|
*/
|
|
@@ -2961,7 +2918,7 @@ declare class EllipsisSessions {
|
|
|
2961
2918
|
* Download the complete session history.
|
|
2962
2919
|
*
|
|
2963
2920
|
* The complete, ordered history of the session (agent output, tool calls, thinking,
|
|
2964
|
-
* lifecycle events,
|
|
2921
|
+
* lifecycle events, environment output, message events) as an ordered
|
|
2965
2922
|
* manifest of presigned segment URLs.
|
|
2966
2923
|
*
|
|
2967
2924
|
* Segments are gzip members: download in order and concatenate
|
|
@@ -2972,37 +2929,19 @@ declare class EllipsisSessions {
|
|
|
2972
2929
|
* Required permissions: read:sessions.
|
|
2973
2930
|
* API key: Supported.
|
|
2974
2931
|
* CLI user token: Supported.
|
|
2975
|
-
*
|
|
2932
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2976
2933
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2977
2934
|
* Grant match patterns can further restrict access to individual resources.
|
|
2978
2935
|
*/
|
|
2979
2936
|
download(session_id: string): Promise<S['GetSessionLogResponse']>;
|
|
2980
|
-
/**
|
|
2981
|
-
* List Session Executions
|
|
2982
|
-
*
|
|
2983
|
-
* Return the session's execution attempts, oldest first.
|
|
2984
|
-
*
|
|
2985
|
-
* Includes the selected harness, model, resolved instructions, initial
|
|
2986
|
-
* query, and common result summary. Complete native outputs remain in
|
|
2987
|
-
* the session's records. Internal launch options and checkpoint storage
|
|
2988
|
-
* references are excluded.
|
|
2989
|
-
*
|
|
2990
|
-
* Required permissions: read:sessions.
|
|
2991
|
-
* API key: Supported.
|
|
2992
|
-
* CLI user token: Supported.
|
|
2993
|
-
* Sandbox token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2994
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
2995
|
-
* Grant match patterns can further restrict access to individual resources.
|
|
2996
|
-
*/
|
|
2997
|
-
executions(session_id: string): Promise<S['SessionExecutionsListResponse']>;
|
|
2998
2937
|
/**
|
|
2999
2938
|
* Get Session
|
|
3000
2939
|
*
|
|
3001
2940
|
* Return one session.
|
|
3002
2941
|
*
|
|
3003
|
-
* The public wire shape
|
|
3004
|
-
*
|
|
3005
|
-
*
|
|
2942
|
+
* The public wire shape, the same shape the stream's session frames
|
|
2943
|
+
* carry, with attribution, stop, and archive actors resolved at read
|
|
2944
|
+
* time. `turn` is the turn in progress or the latest one.
|
|
3006
2945
|
*
|
|
3007
2946
|
* The heavy near-static blobs (config snapshot, input/output)
|
|
3008
2947
|
* live on the detail endpoints, not here.
|
|
@@ -3010,7 +2949,7 @@ declare class EllipsisSessions {
|
|
|
3010
2949
|
* Required permissions: read:sessions.
|
|
3011
2950
|
* API key: Supported.
|
|
3012
2951
|
* CLI user token: Supported.
|
|
3013
|
-
*
|
|
2952
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3014
2953
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3015
2954
|
* Grant match patterns can further restrict access to individual resources.
|
|
3016
2955
|
*/
|
|
@@ -3026,7 +2965,7 @@ declare class EllipsisSessions {
|
|
|
3026
2965
|
* Required permissions: read:sessions.
|
|
3027
2966
|
* API key: Supported.
|
|
3028
2967
|
* CLI user token: Supported.
|
|
3029
|
-
*
|
|
2968
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3030
2969
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3031
2970
|
* Grant match patterns can further restrict access to individual resources.
|
|
3032
2971
|
*/
|
|
@@ -3036,15 +2975,16 @@ declare class EllipsisSessions {
|
|
|
3036
2975
|
*
|
|
3037
2976
|
* Append transcript lines to a session's record.
|
|
3038
2977
|
*
|
|
3039
|
-
*
|
|
2978
|
+
* The transcript tailer running inside the session's environment, for
|
|
2979
|
+
* interactive sessions.
|
|
3040
2980
|
*
|
|
3041
|
-
*
|
|
3042
|
-
*
|
|
2981
|
+
* A session token may only push its own session's transcript.
|
|
2982
|
+
* Idempotent by transcript line uuid; tolerant of malformed lines.
|
|
3043
2983
|
*
|
|
3044
2984
|
* Required permissions: write:sessions.
|
|
3045
2985
|
* API key: Supported.
|
|
3046
2986
|
* CLI user token: Supported.
|
|
3047
|
-
*
|
|
2987
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own session.
|
|
3048
2988
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3049
2989
|
* Grant match patterns can further restrict access to individual resources.
|
|
3050
2990
|
*/
|
|
@@ -3064,7 +3004,7 @@ declare class EllipsisSessions {
|
|
|
3064
3004
|
* Required permissions: read:sessions.
|
|
3065
3005
|
* API key: Supported.
|
|
3066
3006
|
* CLI user token: Supported.
|
|
3067
|
-
*
|
|
3007
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3068
3008
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3069
3009
|
* Grant match patterns can further restrict access to individual resources.
|
|
3070
3010
|
*/
|
|
@@ -3091,13 +3031,13 @@ declare class EllipsisSessions {
|
|
|
3091
3031
|
* The payload the agent submitted through its config-declared
|
|
3092
3032
|
* output.json_schema, as the raw JSON body with no envelope. 404
|
|
3093
3033
|
* while the session is still running (poll GET /v1/sessions/{id}),
|
|
3094
|
-
* when the agent declares no output block, or when no
|
|
3034
|
+
* when the agent declares no output block, or when no turn
|
|
3095
3035
|
* produced output.
|
|
3096
3036
|
*
|
|
3097
3037
|
* Required permissions: read:sessions.
|
|
3098
3038
|
* API key: Supported.
|
|
3099
3039
|
* CLI user token: Supported.
|
|
3100
|
-
*
|
|
3040
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3101
3041
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3102
3042
|
* Grant match patterns can further restrict access to individual resources.
|
|
3103
3043
|
*/
|
|
@@ -3108,7 +3048,7 @@ declare class EllipsisSessions {
|
|
|
3108
3048
|
* Return the session's stored transcript records, oldest first.
|
|
3109
3049
|
*
|
|
3110
3050
|
* Pagination is opt-in (cursor/limit); a bare call returns the
|
|
3111
|
-
* full retained transcript. Available to
|
|
3051
|
+
* full retained transcript. Available to session tokens too: an
|
|
3112
3052
|
* agent answering "did X look into Y?" needs to read the sessions
|
|
3113
3053
|
* it finds, and any org member sees the same transcript in the
|
|
3114
3054
|
* dashboard.
|
|
@@ -3116,7 +3056,7 @@ declare class EllipsisSessions {
|
|
|
3116
3056
|
* Required permissions: read:sessions.
|
|
3117
3057
|
* API key: Supported.
|
|
3118
3058
|
* CLI user token: Supported.
|
|
3119
|
-
*
|
|
3059
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3120
3060
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3121
3061
|
* Grant match patterns can further restrict access to individual resources.
|
|
3122
3062
|
*/
|
|
@@ -3130,7 +3070,7 @@ declare class EllipsisSessions {
|
|
|
3130
3070
|
* Required permissions: read:sessions.
|
|
3131
3071
|
* API key: Supported.
|
|
3132
3072
|
* CLI user token: Supported.
|
|
3133
|
-
*
|
|
3073
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3134
3074
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3135
3075
|
* Grant match patterns can further restrict access to individual resources.
|
|
3136
3076
|
*/
|
|
@@ -3144,7 +3084,7 @@ declare class EllipsisSessions {
|
|
|
3144
3084
|
agent_id?: (string)[] | null;
|
|
3145
3085
|
session_ids?: (string)[] | null;
|
|
3146
3086
|
repo?: (string)[] | null;
|
|
3147
|
-
status?: (S['
|
|
3087
|
+
status?: (S['TurnStatus'])[] | null;
|
|
3148
3088
|
start?: string | null;
|
|
3149
3089
|
end?: string | null;
|
|
3150
3090
|
limit?: number;
|
|
@@ -3154,15 +3094,14 @@ declare class EllipsisSessions {
|
|
|
3154
3094
|
*
|
|
3155
3095
|
* Send a message to a session.
|
|
3156
3096
|
*
|
|
3157
|
-
* 409 for react/cron, non-interactive, and
|
|
3158
|
-
* Returns the created message
|
|
3159
|
-
*
|
|
3160
|
-
* message.
|
|
3097
|
+
* 409 for react/cron, non-interactive, closed, and out-of-budget
|
|
3098
|
+
* sessions. Returns the created message and its turn; a retried send
|
|
3099
|
+
* with the same idempotency_key returns the original ones.
|
|
3161
3100
|
*
|
|
3162
3101
|
* Required permissions: write:sessions.
|
|
3163
3102
|
* API key: Supported.
|
|
3164
3103
|
* CLI user token: Supported.
|
|
3165
|
-
*
|
|
3104
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3166
3105
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3167
3106
|
* Grant match patterns can further restrict access to individual resources.
|
|
3168
3107
|
*/
|
|
@@ -3177,7 +3116,7 @@ declare class EllipsisSessions {
|
|
|
3177
3116
|
* Required permissions: read:sessions.
|
|
3178
3117
|
* API key: Supported.
|
|
3179
3118
|
* CLI user token: Supported.
|
|
3180
|
-
*
|
|
3119
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3181
3120
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3182
3121
|
* Grant match patterns can further restrict access to individual resources.
|
|
3183
3122
|
*/
|
|
@@ -3188,21 +3127,22 @@ declare class EllipsisSessions {
|
|
|
3188
3127
|
* Start a cloud agent session.
|
|
3189
3128
|
*
|
|
3190
3129
|
* The daily driver: a prompt, optionally where to run it
|
|
3191
|
-
* (`environment`) and the
|
|
3130
|
+
* (`environment`) and the session's own settings, in the AgentConfig
|
|
3192
3131
|
* vocabulary. What you send is what runs: omit `environment` and the
|
|
3193
|
-
* session runs in the built-in basic
|
|
3132
|
+
* session runs in the built-in basic environment. A missing model or
|
|
3194
3133
|
* budget comes from the organization's settings, so
|
|
3195
3134
|
* `{"claude_code": {"prompt": "..."}}` is a complete request.
|
|
3196
3135
|
* Set exactly one of `claude_code` or `codex`. Its `prompt` is the
|
|
3197
|
-
* first message; omit the prompt and the session starts
|
|
3198
|
-
* one. 400 when `
|
|
3199
|
-
* when `budget` exceeds the organization's
|
|
3200
|
-
* run a saved agent, use
|
|
3136
|
+
* first message; omit the prompt and the session starts with no
|
|
3137
|
+
* turn, waiting for one. 400 when `conversation.interactive` is false
|
|
3138
|
+
* and there is no prompt, or when `budget` exceeds the organization's
|
|
3139
|
+
* per-session ceiling. To run a saved agent, use
|
|
3140
|
+
* POST /v1/agents/{agent_id}/sessions.
|
|
3201
3141
|
*
|
|
3202
3142
|
* Required permissions: write:sessions.
|
|
3203
3143
|
* API key: Supported.
|
|
3204
3144
|
* CLI user token: Supported.
|
|
3205
|
-
*
|
|
3145
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3206
3146
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3207
3147
|
* Grant match patterns can further restrict access to individual resources.
|
|
3208
3148
|
*/
|
|
@@ -3210,10 +3150,10 @@ declare class EllipsisSessions {
|
|
|
3210
3150
|
budget?: number | null;
|
|
3211
3151
|
claude_code?: S['ClaudeConfig-Input'] | null;
|
|
3212
3152
|
codex?: S['CodexConfig-Input'] | null;
|
|
3153
|
+
conversation?: S['SessionConversationConfig'];
|
|
3213
3154
|
environment?: string | S['EnvironmentConfig-Input'] | null;
|
|
3214
3155
|
force_rebuild?: boolean;
|
|
3215
3156
|
images?: (S['ImageAttachment'])[];
|
|
3216
|
-
lifecycle?: S['SessionLifecycleConfig'];
|
|
3217
3157
|
metadata?: Record<string, string>;
|
|
3218
3158
|
output?: S['OutputConfig'] | null;
|
|
3219
3159
|
permissions?: S['PermissionsConfig-Input'] | null;
|
|
@@ -3223,15 +3163,16 @@ declare class EllipsisSessions {
|
|
|
3223
3163
|
/**
|
|
3224
3164
|
* Stop Session
|
|
3225
3165
|
*
|
|
3226
|
-
* Stop
|
|
3166
|
+
* Stop the turn in progress and return the session.
|
|
3227
3167
|
*
|
|
3228
|
-
*
|
|
3229
|
-
*
|
|
3168
|
+
* The turn ends `stopped`; the conversation stays open. 409 when no
|
|
3169
|
+
* turn is pending or running. The stopping user is recorded only
|
|
3170
|
+
* when the caller's credential maps to a GitHub account.
|
|
3230
3171
|
*
|
|
3231
3172
|
* Required permissions: write:sessions.
|
|
3232
3173
|
* API key: Supported.
|
|
3233
3174
|
* CLI user token: Supported.
|
|
3234
|
-
*
|
|
3175
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3235
3176
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3236
3177
|
* Grant match patterns can further restrict access to individual resources.
|
|
3237
3178
|
*/
|
|
@@ -3242,7 +3183,7 @@ declare class EllipsisSessions {
|
|
|
3242
3183
|
* Required permissions: read:sessions.
|
|
3243
3184
|
* API key: Supported.
|
|
3244
3185
|
* CLI user token: Supported.
|
|
3245
|
-
*
|
|
3186
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3246
3187
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3247
3188
|
* Grant match patterns can further restrict access to individual resources.
|
|
3248
3189
|
*/
|
|
@@ -3263,7 +3204,7 @@ declare class EllipsisSessions {
|
|
|
3263
3204
|
* Required permissions: write:sessions.
|
|
3264
3205
|
* API key: Supported.
|
|
3265
3206
|
* CLI user token: Supported.
|
|
3266
|
-
*
|
|
3207
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3267
3208
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3268
3209
|
* Grant match patterns can further restrict access to individual resources.
|
|
3269
3210
|
*/
|
|
@@ -3284,7 +3225,7 @@ declare class EllipsisSupportSlack {
|
|
|
3284
3225
|
* Required permissions: write:account.
|
|
3285
3226
|
* API key: Requires a CLI user token.
|
|
3286
3227
|
* CLI user token: Supported.
|
|
3287
|
-
*
|
|
3228
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3288
3229
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3289
3230
|
*/
|
|
3290
3231
|
create(options: {
|
|
@@ -3297,7 +3238,7 @@ declare class EllipsisSupportSlack {
|
|
|
3297
3238
|
* Required permissions: read:account.
|
|
3298
3239
|
* API key: Supported.
|
|
3299
3240
|
* CLI user token: Supported.
|
|
3300
|
-
*
|
|
3241
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3301
3242
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3302
3243
|
*/
|
|
3303
3244
|
get(): Promise<void>;
|
|
@@ -3307,7 +3248,7 @@ declare class EllipsisSupportSlack {
|
|
|
3307
3248
|
* Required permissions: write:account.
|
|
3308
3249
|
* API key: Requires a CLI user token.
|
|
3309
3250
|
* CLI user token: Supported.
|
|
3310
|
-
*
|
|
3251
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3311
3252
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3312
3253
|
*/
|
|
3313
3254
|
invite(options: {
|
|
@@ -3331,7 +3272,7 @@ declare class EllipsisTemplates {
|
|
|
3331
3272
|
* Required permissions: read:templates.
|
|
3332
3273
|
* API key: Supported.
|
|
3333
3274
|
* CLI user token: Supported.
|
|
3334
|
-
*
|
|
3275
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3335
3276
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3336
3277
|
*/
|
|
3337
3278
|
get(template_id: string): Promise<S['AgentTemplate']>;
|
|
@@ -3346,7 +3287,7 @@ declare class EllipsisTemplates {
|
|
|
3346
3287
|
* Required permissions: read:templates.
|
|
3347
3288
|
* API key: Supported.
|
|
3348
3289
|
* CLI user token: Supported.
|
|
3349
|
-
*
|
|
3290
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3350
3291
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3351
3292
|
*/
|
|
3352
3293
|
list(): Promise<S['AgentTemplatesListResponse']>;
|
|
@@ -3365,7 +3306,7 @@ declare class EllipsisUserSubscriptionTokens {
|
|
|
3365
3306
|
* Required permissions: delete:user.
|
|
3366
3307
|
* API key: Requires a CLI user token.
|
|
3367
3308
|
* CLI user token: Supported.
|
|
3368
|
-
*
|
|
3309
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3369
3310
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3370
3311
|
*/
|
|
3371
3312
|
delete(provider: S['SubscriptionProvider']): Promise<void>;
|
|
@@ -3380,7 +3321,7 @@ declare class EllipsisUserSubscriptionTokens {
|
|
|
3380
3321
|
* Required permissions: read:user.
|
|
3381
3322
|
* API key: Requires a CLI user token.
|
|
3382
3323
|
* CLI user token: Supported.
|
|
3383
|
-
*
|
|
3324
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3384
3325
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3385
3326
|
*/
|
|
3386
3327
|
get(provider: S['SubscriptionProvider']): Promise<S['SubscriptionToken']>;
|
|
@@ -3396,7 +3337,7 @@ declare class EllipsisUserSubscriptionTokens {
|
|
|
3396
3337
|
* Required permissions: read:user.
|
|
3397
3338
|
* API key: Requires a CLI user token.
|
|
3398
3339
|
* CLI user token: Supported.
|
|
3399
|
-
*
|
|
3340
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3400
3341
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3401
3342
|
*/
|
|
3402
3343
|
list(): Promise<S['SubscriptionTokensListResponse']>;
|
|
@@ -3414,7 +3355,7 @@ declare class EllipsisUserSubscriptionTokens {
|
|
|
3414
3355
|
* Required permissions: write:user.
|
|
3415
3356
|
* API key: Requires a CLI user token.
|
|
3416
3357
|
* CLI user token: Supported.
|
|
3417
|
-
*
|
|
3358
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3418
3359
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3419
3360
|
*/
|
|
3420
3361
|
set(provider: S['SubscriptionProvider'], options: {
|
|
@@ -3434,7 +3375,7 @@ declare class EllipsisUserSubscriptionTokens {
|
|
|
3434
3375
|
* Required permissions: read:user.
|
|
3435
3376
|
* API key: Requires a CLI user token.
|
|
3436
3377
|
* CLI user token: Supported.
|
|
3437
|
-
*
|
|
3378
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3438
3379
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3439
3380
|
*/
|
|
3440
3381
|
usage(provider: S['SubscriptionProvider']): Promise<S['SubscriptionUsageResponse']>;
|
|
@@ -3453,7 +3394,7 @@ declare class EllipsisUserSubscriptionTokens {
|
|
|
3453
3394
|
* Required permissions: write:user.
|
|
3454
3395
|
* API key: Requires a CLI user token.
|
|
3455
3396
|
* CLI user token: Supported.
|
|
3456
|
-
*
|
|
3397
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3457
3398
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3458
3399
|
*/
|
|
3459
3400
|
verify(provider: S['SubscriptionProvider']): Promise<S['VerifySubscriptionTokenResponse']>;
|
|
@@ -3467,7 +3408,7 @@ declare class EllipsisUserTokens {
|
|
|
3467
3408
|
* Required permissions: read:user.
|
|
3468
3409
|
* API key: Requires a CLI user token.
|
|
3469
3410
|
* CLI user token: Supported.
|
|
3470
|
-
*
|
|
3411
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3471
3412
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3472
3413
|
*/
|
|
3473
3414
|
list(): Promise<S['ListUserTokensResponse']>;
|
|
@@ -3477,7 +3418,7 @@ declare class EllipsisUserTokens {
|
|
|
3477
3418
|
* Required permissions: delete:user.
|
|
3478
3419
|
* API key: Requires a CLI user token.
|
|
3479
3420
|
* CLI user token: Supported.
|
|
3480
|
-
*
|
|
3421
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3481
3422
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3482
3423
|
*/
|
|
3483
3424
|
revoke(token_id: string): Promise<S['TokenRevokedResponse']>;
|
|
@@ -3497,7 +3438,7 @@ declare class EllipsisVmExecutions {
|
|
|
3497
3438
|
* Required permissions: read:environments.
|
|
3498
3439
|
* API key: Supported.
|
|
3499
3440
|
* CLI user token: Supported.
|
|
3500
|
-
*
|
|
3441
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own sandbox.
|
|
3501
3442
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3502
3443
|
*/
|
|
3503
3444
|
get(vm_execution_id: string): Promise<S['VMExecutionResponse']>;
|
|
@@ -3507,7 +3448,7 @@ declare class EllipsisVmExecutions {
|
|
|
3507
3448
|
* Required permissions: read:environments.
|
|
3508
3449
|
* API key: Supported.
|
|
3509
3450
|
* CLI user token: Supported.
|
|
3510
|
-
*
|
|
3451
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own sandbox.
|
|
3511
3452
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3512
3453
|
*/
|
|
3513
3454
|
list(): Promise<void>;
|
|
@@ -3517,7 +3458,7 @@ declare class EllipsisVmExecutions {
|
|
|
3517
3458
|
* Required permissions: read:environments.
|
|
3518
3459
|
* API key: Supported.
|
|
3519
3460
|
* CLI user token: Supported.
|
|
3520
|
-
*
|
|
3461
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own sandbox.
|
|
3521
3462
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3522
3463
|
*/
|
|
3523
3464
|
streamTicket(vm_execution_id: string): Promise<S['StreamTicketResponse']>;
|
|
@@ -3533,7 +3474,7 @@ declare class EllipsisVmImages {
|
|
|
3533
3474
|
* Required permissions: read:environments.
|
|
3534
3475
|
* API key: Supported.
|
|
3535
3476
|
* CLI user token: Supported.
|
|
3536
|
-
*
|
|
3477
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3537
3478
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3538
3479
|
*/
|
|
3539
3480
|
get(image_id: string): Promise<S['VMImageResponse']>;
|
|
@@ -3547,7 +3488,7 @@ declare class EllipsisVmImages {
|
|
|
3547
3488
|
* Required permissions: read:environments.
|
|
3548
3489
|
* API key: Supported.
|
|
3549
3490
|
* CLI user token: Supported.
|
|
3550
|
-
*
|
|
3491
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3551
3492
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3552
3493
|
*/
|
|
3553
3494
|
list(options?: {
|
|
@@ -3566,7 +3507,7 @@ declare class EllipsisVms {
|
|
|
3566
3507
|
* Required permissions: read:environments.
|
|
3567
3508
|
* API key: Supported.
|
|
3568
3509
|
* CLI user token: Supported.
|
|
3569
|
-
*
|
|
3510
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own VM.
|
|
3570
3511
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3571
3512
|
*/
|
|
3572
3513
|
get(vm_id: string): Promise<S['VM']>;
|
|
@@ -3580,7 +3521,7 @@ declare class EllipsisVms {
|
|
|
3580
3521
|
* Required permissions: read:environments.
|
|
3581
3522
|
* API key: Supported.
|
|
3582
3523
|
* CLI user token: Supported.
|
|
3583
|
-
*
|
|
3524
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own VM.
|
|
3584
3525
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3585
3526
|
*/
|
|
3586
3527
|
list(options?: {
|
|
@@ -3602,7 +3543,7 @@ declare class EllipsisWebhooksDeliveries {
|
|
|
3602
3543
|
* Required permissions: read:webhooks.
|
|
3603
3544
|
* API key: Supported.
|
|
3604
3545
|
* CLI user token: Supported.
|
|
3605
|
-
*
|
|
3546
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3606
3547
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3607
3548
|
*/
|
|
3608
3549
|
get(delivery_id: string): Promise<S['WebhookDeliveryResponse']>;
|
|
@@ -3617,7 +3558,7 @@ declare class EllipsisWebhooksDeliveries {
|
|
|
3617
3558
|
* Required permissions: read:webhooks.
|
|
3618
3559
|
* API key: Supported.
|
|
3619
3560
|
* CLI user token: Supported.
|
|
3620
|
-
*
|
|
3561
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3621
3562
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3622
3563
|
*/
|
|
3623
3564
|
list(options?: {
|
|
@@ -3647,7 +3588,7 @@ declare class EllipsisWebhooks {
|
|
|
3647
3588
|
* Required permissions: write:webhooks.
|
|
3648
3589
|
* API key: Supported.
|
|
3649
3590
|
* CLI user token: Supported.
|
|
3650
|
-
*
|
|
3591
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3651
3592
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3652
3593
|
*/
|
|
3653
3594
|
create(options: {
|
|
@@ -3666,7 +3607,7 @@ declare class EllipsisWebhooks {
|
|
|
3666
3607
|
* Required permissions: delete:webhooks.
|
|
3667
3608
|
* API key: Supported.
|
|
3668
3609
|
* CLI user token: Supported.
|
|
3669
|
-
*
|
|
3610
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3670
3611
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3671
3612
|
*/
|
|
3672
3613
|
delete(webhook_id: string): Promise<void>;
|
|
@@ -3678,7 +3619,7 @@ declare class EllipsisWebhooks {
|
|
|
3678
3619
|
* Required permissions: read:webhooks.
|
|
3679
3620
|
* API key: Supported.
|
|
3680
3621
|
* CLI user token: Supported.
|
|
3681
|
-
*
|
|
3622
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3682
3623
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3683
3624
|
*/
|
|
3684
3625
|
get(webhook_id: string): Promise<S['WebhookResponse']>;
|
|
@@ -3690,7 +3631,7 @@ declare class EllipsisWebhooks {
|
|
|
3690
3631
|
* Required permissions: read:webhooks.
|
|
3691
3632
|
* API key: Supported.
|
|
3692
3633
|
* CLI user token: Supported.
|
|
3693
|
-
*
|
|
3634
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3694
3635
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3695
3636
|
*/
|
|
3696
3637
|
list(): Promise<S['WebhooksListResponse']>;
|
|
@@ -3707,7 +3648,7 @@ declare class EllipsisWebhooks {
|
|
|
3707
3648
|
* Required permissions: write:webhooks.
|
|
3708
3649
|
* API key: Supported.
|
|
3709
3650
|
* CLI user token: Supported.
|
|
3710
|
-
*
|
|
3651
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3711
3652
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3712
3653
|
*/
|
|
3713
3654
|
ping(webhook_id: string): Promise<void>;
|
|
@@ -3723,7 +3664,7 @@ declare class EllipsisWebhooks {
|
|
|
3723
3664
|
* Required permissions: write:webhooks.
|
|
3724
3665
|
* API key: Supported.
|
|
3725
3666
|
* CLI user token: Supported.
|
|
3726
|
-
*
|
|
3667
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3727
3668
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3728
3669
|
*/
|
|
3729
3670
|
update(webhook_id: string, options: {
|
|
@@ -3740,7 +3681,6 @@ declare class Ellipsis {
|
|
|
3740
3681
|
readonly analytics: EllipsisAnalytics;
|
|
3741
3682
|
readonly auth: EllipsisAuth;
|
|
3742
3683
|
readonly environments: EllipsisEnvironments;
|
|
3743
|
-
readonly files: EllipsisFiles;
|
|
3744
3684
|
readonly handlers: EllipsisHandlers;
|
|
3745
3685
|
readonly integrations: EllipsisIntegrations;
|
|
3746
3686
|
readonly memories: EllipsisMemories;
|
|
@@ -3763,7 +3703,7 @@ declare class Ellipsis {
|
|
|
3763
3703
|
* Required permissions: read:account.
|
|
3764
3704
|
* API key: Supported.
|
|
3765
3705
|
* CLI user token: Supported.
|
|
3766
|
-
*
|
|
3706
|
+
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3767
3707
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3768
3708
|
*/
|
|
3769
3709
|
identity(): Promise<S['Identity']>;
|
|
@@ -3801,4 +3741,4 @@ declare class RateLimitError extends APIError {
|
|
|
3801
3741
|
declare class ServerError extends APIError {
|
|
3802
3742
|
}
|
|
3803
3743
|
|
|
3804
|
-
export { APIError, type AgentListStreamMessage, AuthenticationError, type CollectionStreamFrame, type CollectionStreamHeartbeat, ConflictError, DEFAULT_BASE_URL, Ellipsis, EllipsisError, ForbiddenError, NotFoundError, Page, RateLimitError, type SandboxSnapshotFrame, type SandboxUpdateFrame, ServerError, SessionHandle, type SessionListStreamMessage,
|
|
3744
|
+
export { APIError, type AgentListStreamMessage, AuthenticationError, type CollectionStreamFrame, type CollectionStreamHeartbeat, ConflictError, DEFAULT_BASE_URL, Ellipsis, EllipsisError, ForbiddenError, NotFoundError, Page, RateLimitError, type SandboxSnapshotFrame, type SandboxUpdateFrame, ServerError, SessionHandle, type SessionListStreamMessage, Transport, TransportError, type TransportOptions, UnprocessableError, components, isTurnFinal };
|