@ellipsis-dev/sdk 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { c as components } from './types-DjY1VcOe.js';
2
- export { A as AgentConfig, a as AgentIdentity, b as AttributionType, B as BudgetConfig, C as CheckRunAction, d as ClaudeAssistantEvent, e as ClaudeAssistantMessage, f as ClaudeConfig, g as ClaudeConversationResetEvent, h as ClaudeNativeEvent, i as ClaudeNativeSessionRecord, j as ClaudeNativeUsage, k as ClaudeRateLimitEvent, l as ClaudeRateLimitInfo, m as ClaudeResultEvent, n as ClaudeSessionRecord, o as ClaudeSystemEvent, p as ClaudeUserEvent, q as ClaudeUserMessage, r as CodexAgentMessage, s as CodexAgentMessageItem, t as CodexAppServerError, u as CodexAppServerEvent, v as CodexAppServerItem, w as CodexAppServerNotification, x as CodexAppServerSessionRecord, y as CodexCommandExecution, z as CodexCommandExecutionItem, D as CodexConfig, E as CodexContextCompaction, F as CodexEffortLevel, G as CodexErrorEvent, H as CodexErrorItem, I as CodexErrorParams, J as CodexEvent, K as CodexFileChange, L as CodexFileChangeItem, M as CodexFileUpdate, N as CodexItem, O as CodexItemCompleted, P as CodexItemCompletedEvent, Q as CodexItemParams, R as CodexItemStarted, S as CodexItemStartedEvent, T as CodexItemUpdatedEvent, U as CodexLocalImageInput, V as CodexMcpToolCall, W as CodexMcpToolCallAppContext, X as CodexMcpToolCallError, Y as CodexMcpToolCallItem, Z as CodexMcpToolCallResult, _ as CodexPlan, $ as CodexReasoning, a0 as CodexReasoningItem, a1 as CodexSessionRecord, a2 as CodexTextInput, a3 as CodexThread, a4 as CodexThreadStarted, a5 as CodexThreadStartedEvent, a6 as CodexThreadStartedParams, a7 as CodexThreadTokenUsage, a8 as CodexTodoListItem, a9 as CodexTokenUsageBreakdown, aa as CodexTokenUsageParams, ab as CodexTokenUsageUpdated, ac as CodexTurn, ad as CodexTurnCompleted, ae as CodexTurnCompletedEvent, af as CodexTurnError, ag as CodexTurnFailedEvent, ah as CodexTurnParams, ai as CodexTurnStarted, aj as CodexTurnStartedEvent, ak as CodexUsage, al as CodexUserInput, am as CodexUserMessage, an as CodexWebSearch, ao as CodexWebSearchItem, ap as ComputeConfig, aq as ComputeConfig1, ar as ConfigMetadata, 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 GithubAccountFilter, aO as GithubAccountSelector, aP as GithubAccountSnippet, aQ as GithubAccountType, aR as GithubCheckRunEvent, aS as GithubIssueEvent, aT as GithubPermissions, aU as GithubPullRequestEvent, aV as GithubPushEvent, aW as GithubReleaseEvent, aX as HandlerService, aY as HeartbeatFrame, aZ as InputContract, a_ as IssueAction, a$ as LegacyAssistantPayload, b0 as LegacyNativeUsage, b1 as LegacyResultPayload, b2 as Level, b3 as LifecycleSessionRecord, b4 as LinearIssueAction, b5 as LinearIssueEvent, b6 as McpRemoteServer, b7 as McpServerRef, b8 as McpStdioServer, b9 as MemorySize, ba as MessageDeliveredPayload, bb as MessageDeliveredRecord, bc as MessageReceivedPayload, bd as MessageReceivedRecord, be as MessageRequeuedPayload, bf as MessageRequeuedRecord, bg as OutputConfig, bh as PermissionsConfig, bi as PermissionsConfig1, bj as PlatformSessionRecord, bk as PromptBlockedReason, bl as PullRequestAction, bm as ReactCheckRun, bn as ReactIssue, bo as ReactLinearIssue, bp as ReactPullRequest, bq as ReactPush, br as ReactRelease, bs as ReactSentry, bt as ReactSlackChannel, bu as ReactTrigger, bv as RecordsAppendFrame, bw as ReleaseAction, bx as RepositoryFilter, by as RepositoryRef, bz as Review, bA as ReviewComment, bB as ReviewConfig, bC as ReviewConfigsListResponse, bD as ReviewPullRequest, bE as ReviewPullRequestAuthor, bF as ReviewReviewer, bG as ReviewSummary, 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 SessionConversationConfig, c7 as SessionCost, c8 as SessionCost1, c9 as SessionEnvironment, ca as SessionEventActor, cb as SessionFrame, cc as SessionGit, cd as SessionGitCommit, ce as SessionGitFile, cf as SessionGitPr, cg as SessionGitRepo, ch as SessionHandler, ci as SessionMessage, cj as SessionMessageImage, ck as SessionMessageResponse, cl as SessionMessageStatus, cm as SessionOutput, cn as SessionParent, co as SessionPrompting, cp as SessionRecord, cq as SessionRecordsListResponse, cr as SessionResponse, cs as SessionSource, ct as SessionState, cu as SessionStopped, cv as SessionStreamFrame, cw as SessionSummary, cx as SessionTokens, cy as SessionTokens1, cz as SessionTurn, cA as SessionTurnResponse, cB as SessionTurnsListResponse, cC as SessionsListResponse, cD as SettingsRef, cE as SkillRef, cF as SlackChannelCreatedEvent, cG as SlackMessageEvent, cH as SnapshotFrame, cI as StreamFrame, cJ as TokensInfo, cK as TurnEndedPayload, cL as TurnEndedRecord, cM as TurnReason, cN as TurnStartedPayload, cO as TurnStartedRecord, cP as TurnStatus, cQ as UnknownSessionRecord, cR as UpdateSessionRequest, cS as paths } from './types-DjY1VcOe.js';
1
+ import { c as components } from './types-CtvhpMyt.js';
2
+ export { A as AgentConfig, a as AgentIdentity, b as AttributionType, B as BudgetConfig, C as CheckRunAction, d as CheckSuiteAction, e as ClaudeAssistantEvent, f as ClaudeAssistantMessage, g as ClaudeConfig, h as ClaudeConversationResetEvent, i as ClaudeNativeEvent, j as ClaudeNativeSessionRecord, k as ClaudeNativeUsage, l as ClaudeRateLimitEvent, m as ClaudeRateLimitInfo, n as ClaudeResultEvent, o as ClaudeSessionRecord, p as ClaudeSystemEvent, q as ClaudeUserEvent, r as ClaudeUserMessage, s as CodexAgentMessage, t as CodexAgentMessageItem, u as CodexAppServerError, v as CodexAppServerEvent, w as CodexAppServerItem, x as CodexAppServerNotification, y as CodexAppServerSessionRecord, z as CodexCommandExecution, D as CodexCommandExecutionItem, E as CodexConfig, F as CodexContextCompaction, G as CodexEffortLevel, H as CodexErrorEvent, I as CodexErrorItem, J as CodexErrorParams, K as CodexEvent, L as CodexFileChange, M as CodexFileChangeItem, N as CodexFileUpdate, O as CodexItem, P as CodexItemCompleted, Q as CodexItemCompletedEvent, R as CodexItemParams, S as CodexItemStarted, T as CodexItemStartedEvent, U as CodexItemUpdatedEvent, V as CodexLocalImageInput, W as CodexMcpToolCall, X as CodexMcpToolCallAppContext, Y as CodexMcpToolCallError, Z as CodexMcpToolCallItem, _ as CodexMcpToolCallResult, $ as CodexPlan, a0 as CodexReasoning, a1 as CodexReasoningItem, a2 as CodexSessionRecord, a3 as CodexTextInput, a4 as CodexThread, a5 as CodexThreadStarted, a6 as CodexThreadStartedEvent, a7 as CodexThreadStartedParams, a8 as CodexThreadTokenUsage, a9 as CodexTodoListItem, aa as CodexTokenUsageBreakdown, ab as CodexTokenUsageParams, ac as CodexTokenUsageUpdated, ad as CodexTurn, ae as CodexTurnCompleted, af as CodexTurnCompletedEvent, ag as CodexTurnError, ah as CodexTurnFailedEvent, ai as CodexTurnParams, aj as CodexTurnStarted, ak as CodexTurnStartedEvent, al as CodexUsage, am as CodexUserInput, an as CodexUserMessage, ao as CodexWebSearch, ap as CodexWebSearchItem, aq as ComputeConfig, ar as ComputeConfig1, as as ConfigMetadata, at as Cost, au as Cost1, av as CronTrigger, aw as DeltaFrame, ax as DoneFrame, ay as Duration, az as EffortLevel, aA as EllipsisGrant, aB as EllipsisPermissions, aC as EnvironmentBaseBuild, aD as EnvironmentConfig, aE as EnvironmentHooks, aF as EnvironmentHooks1, aG as EnvironmentOutputPayload, aH as EnvironmentOutputRecord, aI as EnvironmentPhasePayload, aJ as EnvironmentPhaseRecord, aK as EnvironmentReadyPayload, aL as EnvironmentReadyRecord, aM as EnvironmentScript, aN as EnvironmentSource, aO as EnvironmentVariable, aP as ErrorFrame, aQ as GithubAccountFilter, aR as GithubAccountSelector, aS as GithubAccountSnippet, aT as GithubAccountType, aU as GithubCheckRunEvent, aV as GithubCheckSuiteEvent, aW as GithubIssueEvent, aX as GithubPermissions, aY as GithubPullRequestEvent, aZ as GithubPushEvent, a_ as GithubReleaseEvent, a$ as GithubStatusEvent, b0 as GithubWorkflowRunEvent, b1 as HandlerService, b2 as HeartbeatFrame, b3 as InputContract, b4 as IssueAction, b5 as LegacyAssistantPayload, b6 as LegacyNativeUsage, b7 as LegacyResultPayload, b8 as Level, b9 as LifecycleSessionRecord, ba as LinearIssueAction, bb as LinearIssueEvent, bc as LlmCost, bd as LlmCostSplit, be as McpRemoteServer, bf as McpServerRef, bg as McpStdioServer, bh as MemorySize, bi as MessageDeliveredPayload, bj as MessageDeliveredRecord, bk as MessageReceivedPayload, bl as MessageReceivedRecord, bm as MessageRequeuedPayload, bn as MessageRequeuedRecord, bo as ModelLlmCostSplit, bp as ModelTokenCounts, bq as OutputConfig, br as PermissionsConfig, bs as PermissionsConfig1, bt as PlatformSessionRecord, bu as PromptBlockedReason, bv as PullRequestAction, bw as ReactCheckRun, bx as ReactCheckSuite, by as ReactIssue, bz as ReactLinearIssue, bA as ReactPullRequest, bB as ReactPush, bC as ReactRelease, bD as ReactSentry, bE as ReactSlackChannel, bF as ReactStatus, bG as ReactTrigger, bH as ReactWorkflowRun, bI as RecordsAppendFrame, bJ as ReleaseAction, bK as RepositoryFilter, bL as RepositoryRef, bM as Review, bN as ReviewComment, bO as ReviewConfig, bP as ReviewConfigsListResponse, bQ as ReviewPullRequest, bR as ReviewPullRequestAuthor, bS as ReviewReviewer, bT as ReviewSummary, bU as ReviewsListResponse, bV as SdkAssistantRecord, bW as SdkCacheCreation, bX as SdkContentBlock, bY as SdkRateLimitRecord, bZ as SdkRecord, b_ as SdkResultRecord, b$ as SdkServerToolResultBlock, c0 as SdkServerToolUseBlock, c1 as SdkSystemRecord, c2 as SdkTextBlock, c3 as SdkThinkingBlock, c4 as SdkToolResultBlock, c5 as SdkToolUseBlock, c6 as SdkUserRecord, c7 as SendSessionMessageRequest, c8 as SentryAction, c9 as SentryAlertEvent, ca as Session, cb as Session1, cc as SessionAgent, cd as SessionArchived, ce as SessionAttribution, cf as SessionClosedPayload, cg as SessionClosedRecord, ch as SessionConfig, ci as SessionConversation, cj as SessionConversationConfig, ck as SessionEnvironment, cl as SessionEventActor, cm as SessionFrame, cn as SessionGit, co as SessionGitCommit, cp as SessionGitFile, cq as SessionGitPr, cr as SessionGitRepo, cs as SessionHandler, ct as SessionMessage, cu as SessionMessageImage, cv as SessionMessageResponse, cw as SessionMessageStatus, cx as SessionOutput, cy as SessionParent, cz as SessionPrompting, cA as SessionRecord, cB as SessionRecordsListResponse, cC as SessionResponse, cD as SessionSource, cE as SessionState, cF as SessionStopped, cG as SessionStreamFrame, cH as SessionSummary, cI as SessionTurn, cJ as SessionTurnResponse, cK as SessionTurnsListResponse, cL as SessionsListResponse, cM as SettingsRef, cN as SkillRef, cO as SlackChannelCreatedEvent, cP as SlackMessageEvent, cQ as SnapshotFrame, cR as StatusAction, cS as StreamFrame, cT as TokenCounts, cU as Tokens, cV as Tokens1, cW as TokensInfo, cX as TurnEndedPayload, cY as TurnEndedRecord, cZ as TurnReason, c_ as TurnStartedPayload, c$ as TurnStartedRecord, d0 as TurnStatus, d1 as UnknownSessionRecord, d2 as UpdateSessionRequest, d3 as WorkflowRunAction, d4 as paths } from './types-CtvhpMyt.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.
@@ -22,7 +22,7 @@ type Session = {
22
22
  archived: SessionArchived | null;
23
23
  attribution: SessionAttribution;
24
24
  /**
25
- * The spend budget enforced for this session, in US dollars, after resolving defaults and ceilings.
25
+ * The spend budget enforced for this session, in millicents, after resolving defaults and ceilings.
26
26
  */
27
27
  budget: number;
28
28
  /**
@@ -34,7 +34,7 @@ type Session = {
34
34
  */
35
35
  codex: CodexConfig | null;
36
36
  conversation: SessionConversation;
37
- cost: SessionCost;
37
+ cost: Cost;
38
38
  /**
39
39
  * When the session was created.
40
40
  */
@@ -43,7 +43,7 @@ type Session = {
43
43
  /**
44
44
  * The typed external event that started the session; null for direct and scheduled starts.
45
45
  */
46
- event: (GithubPullRequestEvent | GithubIssueEvent | GithubPushEvent | GithubCheckRunEvent | GithubReleaseEvent | LinearIssueEvent | SlackMessageEvent | SlackChannelCreatedEvent | SentryAlertEvent) | null;
46
+ event: (GithubPullRequestEvent | GithubIssueEvent | GithubPushEvent | GithubCheckRunEvent | GithubCheckSuiteEvent | GithubWorkflowRunEvent | GithubStatusEvent | GithubReleaseEvent | LinearIssueEvent | SlackMessageEvent | SlackChannelCreatedEvent | SentryAlertEvent) | null;
47
47
  /**
48
48
  * What the session did to git, one entry per repository in its workspace: the commit and branch it sits on, per-file line counts for its uncommitted changes, and the pull requests it opened. Null if nothing was ever captured.
49
49
  */
@@ -80,7 +80,7 @@ type Session = {
80
80
  * The latest live summary of the session's progress while it runs, and when it was generated.
81
81
  */
82
82
  summary: SessionSummary | null;
83
- tokens: SessionTokens;
83
+ tokens: Tokens;
84
84
  /**
85
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
86
  */
@@ -158,16 +158,17 @@ type GithubAccountFilter = {
158
158
  include: string[] | boolean;
159
159
  } | boolean | string[];
160
160
  /**
161
- * What a completed check run did. `failed` covers the conclusions that
162
- * mean the check did not pass on its own merits (`failure`, `timed_out`); a
163
- * cancelled, skipped, neutral or stale check is not a failure and never
164
- * fires (see FAILED_CHECK_RUN_CONCLUSIONS).
161
+ * The state of a check run when GitHub reports it. A run created before it finishes fires its status, and `in_progress` is `started`. A finished run fires its conclusion, `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.
165
162
  */
166
- type CheckRunAction = 'failed';
163
+ type CheckRunAction = 'requested' | 'queued' | 'waiting' | 'pending' | 'started' | 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale';
167
164
  type RepositoryFilter = {
168
165
  exclude: string[];
169
166
  include: string[];
170
167
  } | string[];
168
+ /**
169
+ * The conclusion of a finished check suite. `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.
170
+ */
171
+ type CheckSuiteAction = 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale' | 'startup_failure';
171
172
  type IssueAction = 'opened' | 'closed' | 'commented';
172
173
  type LinearIssueAction = 'opened';
173
174
  type PullRequestAction = 'opened' | 'pushed' | 'merged' | 'closed' | 'review_submitted' | 'commented';
@@ -178,6 +179,14 @@ type PullRequestAction = 'opened' | 'pushed' | 'merged' | 'closed' | 'review_sub
178
179
  */
179
180
  type ReleaseAction = 'published';
180
181
  type SentryAction = 'issue_alert' | 'metric_alert';
182
+ /**
183
+ * The state of a commit status. `success` is `passed`, `failure` is `failed`, and `error` is `errored`.
184
+ */
185
+ type StatusAction = 'pending' | 'passed' | 'failed' | 'errored';
186
+ /**
187
+ * The state of a GitHub Actions workflow run when GitHub reports it. Before the run finishes it is the status, and `in_progress` is `started`. After it finishes it is the conclusion, `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.
188
+ */
189
+ type WorkflowRunAction = 'requested' | 'queued' | 'waiting' | 'pending' | 'started' | 'passed' | 'failed' | 'timed_out' | 'cancelled' | 'skipped' | 'neutral' | 'action_required' | 'stale' | 'startup_failure';
181
190
  type GithubAccountType = 'User' | 'Organization' | 'Bot' | 'Mannequin';
182
191
  type AttributionType = 'github_user' | 'linear_user' | 'slack_user' | 'api_key';
183
192
  /**
@@ -616,8 +625,8 @@ interface EllipsisGrant {
616
625
  *
617
626
  * By default the token carries the installation's full permissions on all of
618
627
  * the installation's repositories. `permissions` narrows what it may do:
619
- * the string `read_only` grants read access to contents, issues, metadata and
620
- * pull requests; a map requests explicit levels per GitHub App permission
628
+ * the string `read_only` grants read access to every scope the installation
629
+ * granted; a map requests explicit levels per GitHub App permission
621
630
  * scope (e.g. `{contents: read, pull_requests: write}`) and may never exceed
622
631
  * what the installation granted. `repositories` scopes the token to exactly
623
632
  * the listed repos, by name (they must belong to the installation).
@@ -665,6 +674,7 @@ interface CronTrigger {
665
674
  */
666
675
  interface ReactTrigger {
667
676
  check_run: ReactCheckRun | null;
677
+ check_suite: ReactCheckSuite | null;
668
678
  enabled: boolean;
669
679
  issue: ReactIssue | null;
670
680
  linear_issue: ReactLinearIssue | null;
@@ -673,19 +683,12 @@ interface ReactTrigger {
673
683
  release: ReactRelease | null;
674
684
  sentry: ReactSentry | null;
675
685
  slack_channel: ReactSlackChannel | null;
686
+ status: ReactStatus | null;
676
687
  type: 'react';
688
+ workflow_run: ReactWorkflowRun | null;
677
689
  }
678
690
  /**
679
- * A CI/CD check completing on a commit — a `check_run` from GitHub
680
- * Actions or any other app that reports checks. `names` narrows to the check
681
- * runs whose name matches (exact, or a prefix ending in `*`); `branch` is the
682
- * check suite's head branch. The `for:` audience is the commit's author (the
683
- * pull request author when the check is attached to one), never the CI app
684
- * that completed the check — a check run's sender is always a bot.
685
- *
686
- * Delivery needs the Ellipsis GitHub App's `checks` permission on the
687
- * installation; without it GitHub sends no check events and the webhook
688
- * handler refuses the ones it does see.
691
+ * A check run changing state on a commit. A check run is a GitHub Actions job or a check another CI app reports. `on` lists the states that fire. `names` matches check names exactly or by a prefix ending in `*`. `branch` is the branch the check ran on. `for` is the author of the commit the check ran on. Needs the Checks permission.
689
692
  */
690
693
  interface ReactCheckRun {
691
694
  branch: string[];
@@ -715,6 +718,16 @@ interface GithubAccountSelector {
715
718
  teams: string[];
716
719
  users: GithubAccountFilter;
717
720
  }
721
+ /**
722
+ * Every check one CI app reported on a commit finishing. GitHub reports a check suite only when it finishes, so `on` takes only finished states. `apps` matches the reporting app slug, such as `github-actions`, exactly or by a prefix ending in `*`. `branch` and `for` work as on `check_run`. Needs the Checks permission.
723
+ */
724
+ interface ReactCheckSuite {
725
+ apps: string[];
726
+ branch: string[];
727
+ for: GithubAccountSelector;
728
+ on: CheckSuiteAction[];
729
+ repositories: RepositoryFilter;
730
+ }
718
731
  interface ReactIssue {
719
732
  for: GithubAccountSelector;
720
733
  labels: string[];
@@ -762,6 +775,26 @@ interface ReactSentry {
762
775
  }
763
776
  interface ReactSlackChannel {
764
777
  }
778
+ /**
779
+ * A commit status changing state, from CI that posts statuses instead of checks. `names` matches status contexts exactly or by a prefix ending in `*`. `branch` matches when any branch GitHub lists for the commit matches. `for` works as on `check_run`. Needs the Commit statuses permission.
780
+ */
781
+ interface ReactStatus {
782
+ branch: string[];
783
+ for: GithubAccountSelector;
784
+ names: string[];
785
+ on: StatusAction[];
786
+ repositories: RepositoryFilter;
787
+ }
788
+ /**
789
+ * A GitHub Actions workflow run changing state. `names` matches workflow names exactly or by a prefix ending in `*`. `branch` is the branch the run is for. `for` works as on `check_run`. Needs the Actions permission.
790
+ */
791
+ interface ReactWorkflowRun {
792
+ branch: string[];
793
+ for: GithubAccountSelector;
794
+ names: string[];
795
+ on: WorkflowRunAction[];
796
+ repositories: RepositoryFilter;
797
+ }
765
798
  /**
766
799
  * When the session was archived and the GitHub user who archived it.
767
800
  */
@@ -831,9 +864,13 @@ interface SessionPrompting {
831
864
  surface_name: string | null;
832
865
  }
833
866
  /**
834
- * What the session has cost so far, in millicents, broken down by leg and carrying its own total.
867
+ * What the session has cost so far.
835
868
  */
836
- interface SessionCost {
869
+ interface Cost {
870
+ /**
871
+ * What Ellipsis charged to credit, in millicents. It is everything except subscription tokens, and it is what the budget caps.
872
+ */
873
+ charged: number;
837
874
  /**
838
875
  * CPU spend in millicents.
839
876
  */
@@ -842,16 +879,69 @@ interface SessionCost {
842
879
  * Platform fee in millicents.
843
880
  */
844
881
  fee: number;
845
- /**
846
- * LLM spend in millicents.
847
- */
848
- llm: number;
882
+ llm: LlmCost;
849
883
  /**
850
884
  * Memory spend in millicents.
851
885
  */
852
886
  memory: number;
853
887
  /**
854
- * The grand total in millicents: llm + cpu + memory + fee.
888
+ * Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee.
889
+ */
890
+ total: number;
891
+ }
892
+ /**
893
+ * LLM token cost, in total and by model, split by who paid.
894
+ */
895
+ interface LlmCost {
896
+ all: LlmCostSplit;
897
+ /**
898
+ * Token cost for each model that used tokens.
899
+ */
900
+ by_model: ModelLlmCostSplit[];
901
+ }
902
+ /**
903
+ * Token cost across every model.
904
+ */
905
+ interface LlmCostSplit {
906
+ /**
907
+ * Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.
908
+ */
909
+ claude_subscription: number;
910
+ /**
911
+ * Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.
912
+ */
913
+ codex_subscription: number;
914
+ /**
915
+ * Token cost charged to Ellipsis credit, in millicents.
916
+ */
917
+ platform: number;
918
+ /**
919
+ * All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.
920
+ */
921
+ total: number;
922
+ }
923
+ /**
924
+ * What one model's tokens cost, in millicents, split by who paid.
925
+ */
926
+ interface ModelLlmCostSplit {
927
+ /**
928
+ * Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.
929
+ */
930
+ claude_subscription: number;
931
+ /**
932
+ * Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.
933
+ */
934
+ codex_subscription: number;
935
+ /**
936
+ * The model that used these tokens.
937
+ */
938
+ model: string;
939
+ /**
940
+ * Token cost charged to Ellipsis credit, in millicents.
941
+ */
942
+ platform: number;
943
+ /**
944
+ * All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.
855
945
  */
856
946
  total: number;
857
947
  }
@@ -978,6 +1068,43 @@ interface GithubCheckRunEvent {
978
1068
  type: 'github.check_run';
979
1069
  url: string;
980
1070
  }
1071
+ interface GithubCheckSuiteEvent {
1072
+ action: CheckSuiteAction;
1073
+ actor: SessionEventActor | null;
1074
+ app: string | null;
1075
+ branch: string | null;
1076
+ conclusion: string | null;
1077
+ head_sha: string;
1078
+ pull_request_number: number | null;
1079
+ repository: string;
1080
+ type: 'github.check_suite';
1081
+ url: string;
1082
+ }
1083
+ interface GithubWorkflowRunEvent {
1084
+ action: WorkflowRunAction;
1085
+ actor: SessionEventActor | null;
1086
+ branch: string | null;
1087
+ conclusion: string | null;
1088
+ head_sha: string;
1089
+ name: string;
1090
+ pull_request_number: number | null;
1091
+ repository: string;
1092
+ run_number: number;
1093
+ type: 'github.workflow_run';
1094
+ url: string;
1095
+ }
1096
+ interface GithubStatusEvent {
1097
+ action: StatusAction;
1098
+ actor: SessionEventActor | null;
1099
+ branch: string | null;
1100
+ context: string;
1101
+ head_sha: string;
1102
+ pull_request_number: number | null;
1103
+ repository: string;
1104
+ state: string;
1105
+ type: 'github.status';
1106
+ url: string;
1107
+ }
981
1108
  interface GithubReleaseEvent {
982
1109
  action: ReleaseAction;
983
1110
  actor: SessionEventActor | null;
@@ -1148,9 +1275,44 @@ interface SessionSummary {
1148
1275
  description: string;
1149
1276
  }
1150
1277
  /**
1151
- * The tokens the session spent and the model they went to. `total` includes the prompt-cache lanes.
1278
+ * The tokens the session has used so far.
1279
+ */
1280
+ interface Tokens {
1281
+ all: TokenCounts;
1282
+ /**
1283
+ * Token counts for each model that used tokens.
1284
+ */
1285
+ by_model: ModelTokenCounts[];
1286
+ }
1287
+ /**
1288
+ * Token counts across every model.
1289
+ */
1290
+ interface TokenCounts {
1291
+ /**
1292
+ * Tokens written to the prompt cache.
1293
+ */
1294
+ cache_creation: number;
1295
+ /**
1296
+ * Tokens read from the prompt cache.
1297
+ */
1298
+ cache_read: number;
1299
+ /**
1300
+ * Input tokens used.
1301
+ */
1302
+ input: number;
1303
+ /**
1304
+ * Output tokens used.
1305
+ */
1306
+ output: number;
1307
+ /**
1308
+ * All tokens used, including prompt cache reads and writes. Token cost is priced on this.
1309
+ */
1310
+ total: number;
1311
+ }
1312
+ /**
1313
+ * Token counts for one model.
1152
1314
  */
1153
- interface SessionTokens {
1315
+ interface ModelTokenCounts {
1154
1316
  /**
1155
1317
  * Tokens written to the prompt cache.
1156
1318
  */
@@ -1164,7 +1326,7 @@ interface SessionTokens {
1164
1326
  */
1165
1327
  input: number;
1166
1328
  /**
1167
- * The model the token counts are attributed to.
1329
+ * The model that used these tokens.
1168
1330
  */
1169
1331
  model: string;
1170
1332
  /**
@@ -1172,7 +1334,7 @@ interface SessionTokens {
1172
1334
  */
1173
1335
  output: number;
1174
1336
  /**
1175
- * Total tokens consumed, INCLUDING the prompt-cache reads and writes — the same basis the token cost is priced on.
1337
+ * All tokens used, including prompt cache reads and writes. Token cost is priced on this.
1176
1338
  */
1177
1339
  total: number;
1178
1340
  }
@@ -1183,7 +1345,7 @@ interface SessionTokens {
1183
1345
  * `cancelled`.
1184
1346
  */
1185
1347
  interface SessionTurn {
1186
- cost: SessionCost1;
1348
+ cost: Cost1;
1187
1349
  /**
1188
1350
  * When the turn's message was received.
1189
1351
  */
@@ -1217,12 +1379,16 @@ interface SessionTurn {
1217
1379
  * When and by whom a stop was requested; null when none was.
1218
1380
  */
1219
1381
  stopped: SessionStopped | null;
1220
- tokens: SessionTokens1;
1382
+ tokens: Tokens1;
1221
1383
  }
1222
1384
  /**
1223
1385
  * What the turn cost so far, in millicents, broken down by leg.
1224
1386
  */
1225
- interface SessionCost1 {
1387
+ interface Cost1 {
1388
+ /**
1389
+ * What Ellipsis charged to credit, in millicents. It is everything except subscription tokens, and it is what the budget caps.
1390
+ */
1391
+ charged: number;
1226
1392
  /**
1227
1393
  * CPU spend in millicents.
1228
1394
  */
@@ -1231,16 +1397,13 @@ interface SessionCost1 {
1231
1397
  * Platform fee in millicents.
1232
1398
  */
1233
1399
  fee: number;
1234
- /**
1235
- * LLM spend in millicents.
1236
- */
1237
- llm: number;
1400
+ llm: LlmCost;
1238
1401
  /**
1239
1402
  * Memory spend in millicents.
1240
1403
  */
1241
1404
  memory: number;
1242
1405
  /**
1243
- * The grand total in millicents: llm + cpu + memory + fee.
1406
+ * Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee.
1244
1407
  */
1245
1408
  total: number;
1246
1409
  }
@@ -1260,31 +1423,12 @@ interface SessionStopped {
1260
1423
  /**
1261
1424
  * The tokens the turn spent and the model they went to.
1262
1425
  */
1263
- interface SessionTokens1 {
1426
+ interface Tokens1 {
1427
+ all: TokenCounts;
1264
1428
  /**
1265
- * Tokens written to the prompt cache.
1266
- */
1267
- cache_creation: number;
1268
- /**
1269
- * Tokens read from the prompt cache.
1429
+ * Token counts for each model that used tokens.
1270
1430
  */
1271
- cache_read: number;
1272
- /**
1273
- * Input tokens used.
1274
- */
1275
- input: number;
1276
- /**
1277
- * The model the token counts are attributed to.
1278
- */
1279
- model: string;
1280
- /**
1281
- * Output tokens used.
1282
- */
1283
- output: number;
1284
- /**
1285
- * Total tokens consumed, INCLUDING the prompt-cache reads and writes — the same basis the token cost is priced on.
1286
- */
1287
- total: number;
1431
+ by_model: ModelTokenCounts[];
1288
1432
  }
1289
1433
  interface AgentListStreamMessage {
1290
1434
  agents: Agent[];
@@ -1337,6 +1481,10 @@ interface Agent {
1337
1481
  * The open pull request that adds this agent's file. Non-null means the agent is not live yet: it starts running once the pull request merges and syncs.
1338
1482
  */
1339
1483
  pending_pull_request_url: string | null;
1484
+ /**
1485
+ * The agent's YAML: the file as written for agents defined in a repository, or the definition rendered as YAML for agents managed through the API. A failed sync keeps the last valid YAML.
1486
+ */
1487
+ raw_yaml: string;
1340
1488
  /**
1341
1489
  * The definition's content identity: the version fingerprint frozen onto each session that runs it.
1342
1490
  */
@@ -1571,7 +1719,7 @@ declare class EllipsisAccountApiKeys {
1571
1719
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
1572
1720
  * Higher permission levels include lower levels: read < write < delete.
1573
1721
  */
1574
- revoke(api_key_id: string): Promise<S['TokenRevokedResponse']>;
1722
+ revoke(id: string): Promise<S['TokenRevokedResponse']>;
1575
1723
  }
1576
1724
  declare class EllipsisAccountBillingAutoRecharge {
1577
1725
  private readonly transport;
@@ -1599,8 +1747,8 @@ declare class EllipsisAccountBillingAutoRecharge {
1599
1747
  * Requires a human account administrator; API keys and session tokens
1600
1748
  * cannot change this policy. Supply enabled explicitly. Saving amounts
1601
1749
  * with enabled=false keeps recharge off; enabling requires a saved card.
1602
- * A recharge buys amount_cents of credit and charges the platform fee
1603
- * in addition. Amounts and thresholds preserve exact cents.
1750
+ * A recharge buys `amount` of credit and charges the platform fee in
1751
+ * addition. Amounts and thresholds are millicents in whole cents.
1604
1752
  *
1605
1753
  * Required permissions: write:account.
1606
1754
  * API key: Requires a CLI user token belonging to an account administrator.
@@ -1609,9 +1757,9 @@ declare class EllipsisAccountBillingAutoRecharge {
1609
1757
  * Higher permission levels include lower levels: read < write < delete.
1610
1758
  */
1611
1759
  set(options: {
1612
- amount_cents: number;
1760
+ amount: number;
1613
1761
  enabled: boolean;
1614
- threshold_cents: number;
1762
+ threshold: number;
1615
1763
  }): Promise<S['AutoRechargeSettings']>;
1616
1764
  }
1617
1765
  declare class EllipsisAccountBilling {
@@ -1641,7 +1789,7 @@ declare class EllipsisAccountBilling {
1641
1789
  *
1642
1790
  * Requires a human account administrator. Open the returned URL to
1643
1791
  * complete payment. Credit is granted only after payment succeeds;
1644
- * the platform fee is charged in addition to amount_cents. Returning
1792
+ * the platform fee is charged in addition to `amount`. Returning
1645
1793
  * to Billing carries the checkout session ID for receipt lookup.
1646
1794
  *
1647
1795
  * Required permissions: write:account.
@@ -1651,7 +1799,7 @@ declare class EllipsisAccountBilling {
1651
1799
  * Higher permission levels include lower levels: read < write < delete.
1652
1800
  */
1653
1801
  checkout(options: {
1654
- amount_cents: number;
1802
+ amount: number;
1655
1803
  }): Promise<S['BillingCheckout']>;
1656
1804
  /**
1657
1805
  * Claim Signup Credit
@@ -1671,7 +1819,7 @@ declare class EllipsisAccountBilling {
1671
1819
  /**
1672
1820
  * Get Fee Schedule
1673
1821
  *
1674
- * Get the account's rate card, in US dollars.
1822
+ * Get the account's rate card, in millicents.
1675
1823
  *
1676
1824
  * Required permissions: read:account.
1677
1825
  * API key: Supported.
@@ -1709,13 +1857,13 @@ declare class EllipsisAccountBilling {
1709
1857
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
1710
1858
  * Higher permission levels include lower levels: read < write < delete.
1711
1859
  */
1712
- purchase(checkout_id: string): Promise<S['CreditPurchaseReceipt']>;
1860
+ purchase(id: string): Promise<S['CreditPurchaseReceipt']>;
1713
1861
  /**
1714
1862
  * Get Credit Purchase Options
1715
1863
  *
1716
1864
  * Get credit purchase bounds and the platform fee.
1717
1865
  *
1718
- * All amounts are integer US cents. The fee is added to the credit
1866
+ * All amounts are in millicents. The fee is added to the credit
1719
1867
  * amount; it does not reduce the credit granted.
1720
1868
  *
1721
1869
  * Required permissions: read:account.
@@ -1850,7 +1998,7 @@ declare class EllipsisAccountSettings {
1850
1998
  *
1851
1999
  * Set the organization settings.
1852
2000
  *
1853
- * `budget_ceiling.session` is in US dollars, at most the platform
2001
+ * `budget_ceiling.session` is in millicents, at most the platform
1854
2002
  * ceiling, and null clears it.
1855
2003
  * Refused for session tokens (potentially prompt-injected code must
1856
2004
  * not raise the organization's ceiling).
@@ -1974,13 +2122,13 @@ declare class EllipsisAccount {
1974
2122
  /**
1975
2123
  * Get Usage
1976
2124
  *
1977
- * Get usage for a calendar month, including its funding sources.
2125
+ * Get usage for a calendar month, split by billing source.
1978
2126
  *
1979
- * Omit period_start for the current UTC month; select a period returned
1980
- * in billing_periods to view history. Credit debits are distinct from
1981
- * rated token usage through a developer's Claude or Codex
1982
- * subscription. Rated usage estimates are not provider invoices.
1983
- * Pending and unresolved requests identify missing measurements.
2127
+ * Omit period_start for the current UTC month. Pass a period from
2128
+ * billing_periods to view history. Platform usage is charged to
2129
+ * Ellipsis credit. Tokens paid by a developer's Claude or Codex
2130
+ * subscription show their cost at Ellipsis rates and charge no
2131
+ * credit. Pending and unresolved requests are missing measurements.
1984
2132
  *
1985
2133
  * Required permissions: read:account.
1986
2134
  * API key: Supported.
@@ -2000,7 +2148,7 @@ declare class EllipsisAgents {
2000
2148
  *
2001
2149
  * Create an agent, managed through the API: no file, live
2002
2150
  * immediately. To put its definition in a repository instead, create
2003
- * it here and then POST /v1/agents/{agent_id}/link.
2151
+ * it here and then POST /v1/agents/{id}/link.
2004
2152
  *
2005
2153
  * 409 when another live agent already holds the name.
2006
2154
  *
@@ -2030,7 +2178,7 @@ declare class EllipsisAgents {
2030
2178
  * Higher permission levels include lower levels: read < write < delete.
2031
2179
  * Grant match patterns can further restrict access to individual resources.
2032
2180
  */
2033
- delete(agent_id: string): Promise<void>;
2181
+ delete(id: string): Promise<void>;
2034
2182
  /**
2035
2183
  * Get Agent
2036
2184
  *
@@ -2043,7 +2191,7 @@ declare class EllipsisAgents {
2043
2191
  * Higher permission levels include lower levels: read < write < delete.
2044
2192
  * Grant match patterns can further restrict access to individual resources.
2045
2193
  */
2046
- get(agent_id: string): Promise<S['AgentResponse']>;
2194
+ get(id: string): Promise<S['AgentResponse']>;
2047
2195
  /**
2048
2196
  * Link Agent
2049
2197
  *
@@ -2061,7 +2209,7 @@ declare class EllipsisAgents {
2061
2209
  * Higher permission levels include lower levels: read < write < delete.
2062
2210
  * Grant match patterns can further restrict access to individual resources.
2063
2211
  */
2064
- link(agent_id: string, options: {
2212
+ link(id: string, options: {
2065
2213
  path?: string | null;
2066
2214
  repository: string;
2067
2215
  }): Promise<S['LinkAgentResponse']>;
@@ -2096,7 +2244,7 @@ declare class EllipsisAgents {
2096
2244
  * Higher permission levels include lower levels: read < write < delete.
2097
2245
  * Grant match patterns can further restrict access to individual resources.
2098
2246
  */
2099
- metrics(agent_id: string): Promise<S['AgentMetricsResponse']>;
2247
+ metrics(id: string): Promise<S['AgentMetricsResponse']>;
2100
2248
  /**
2101
2249
  * Start Agent Session
2102
2250
  *
@@ -2121,7 +2269,7 @@ declare class EllipsisAgents {
2121
2269
  * Higher permission levels include lower levels: read < write < delete.
2122
2270
  * Grant match patterns can further restrict access to individual resources.
2123
2271
  */
2124
- start(agent_id: string, options?: {
2272
+ start(id: string, options?: {
2125
2273
  budget?: S['RunBudget'] | null;
2126
2274
  claude_code?: S['ClaudeOverrides'] | null;
2127
2275
  codex?: S['CodexOverrides'] | null;
@@ -2162,7 +2310,7 @@ declare class EllipsisAgents {
2162
2310
  * Higher permission levels include lower levels: read < write < delete.
2163
2311
  * Grant match patterns can further restrict access to individual resources.
2164
2312
  */
2165
- unlink(agent_id: string): Promise<S['AgentResponse']>;
2313
+ unlink(id: string): Promise<S['AgentResponse']>;
2166
2314
  /**
2167
2315
  * Update Agent
2168
2316
  *
@@ -2180,7 +2328,7 @@ declare class EllipsisAgents {
2180
2328
  * Higher permission levels include lower levels: read < write < delete.
2181
2329
  * Grant match patterns can further restrict access to individual resources.
2182
2330
  */
2183
- update(agent_id: string, options: {
2331
+ update(id: string, options: {
2184
2332
  agent: S['AgentConfig-Input'];
2185
2333
  }): Promise<S['AgentResponse']>;
2186
2334
  }
@@ -2200,7 +2348,7 @@ declare class EllipsisAlerts {
2200
2348
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
2201
2349
  * Higher permission levels include lower levels: read < write < delete.
2202
2350
  */
2203
- dismiss(alert_id: string): Promise<S['AlertResponse']>;
2351
+ dismiss(id: string): Promise<S['AlertResponse']>;
2204
2352
  /**
2205
2353
  * Get Alert
2206
2354
  *
@@ -2214,7 +2362,7 @@ declare class EllipsisAlerts {
2214
2362
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
2215
2363
  * Higher permission levels include lower levels: read < write < delete.
2216
2364
  */
2217
- get(alert_id: string): Promise<S['AlertResponse']>;
2365
+ get(id: string): Promise<S['AlertResponse']>;
2218
2366
  /**
2219
2367
  * List Alerts
2220
2368
  *
@@ -2389,7 +2537,7 @@ declare class EllipsisEnvironments {
2389
2537
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2390
2538
  * Higher permission levels include lower levels: read < write < delete.
2391
2539
  */
2392
- delete(environment_id: string): Promise<void>;
2540
+ delete(id: string): Promise<void>;
2393
2541
  /**
2394
2542
  * Get Environment
2395
2543
  *
@@ -2401,7 +2549,7 @@ declare class EllipsisEnvironments {
2401
2549
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
2402
2550
  * Higher permission levels include lower levels: read < write < delete.
2403
2551
  */
2404
- get(environment_id: string): Promise<S['EnvironmentResponse']>;
2552
+ get(id: string): Promise<S['EnvironmentResponse']>;
2405
2553
  /**
2406
2554
  * List Environments
2407
2555
  *
@@ -2430,7 +2578,7 @@ declare class EllipsisEnvironments {
2430
2578
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2431
2579
  * Higher permission levels include lower levels: read < write < delete.
2432
2580
  */
2433
- update(environment_id: string, options: {
2581
+ update(id: string, options: {
2434
2582
  environment: S['EnvironmentDocument-Input'];
2435
2583
  }): Promise<S['EnvironmentResponse']>;
2436
2584
  }
@@ -2484,7 +2632,7 @@ declare class EllipsisHandlers {
2484
2632
  * Higher permission levels include lower levels: read < write < delete.
2485
2633
  * Grant match patterns can further restrict access to individual resources.
2486
2634
  */
2487
- metrics(handler_id: string, options?: {
2635
+ metrics(id: string, options?: {
2488
2636
  start?: string | null;
2489
2637
  end?: string | null;
2490
2638
  }): Promise<S['HandlerMetricsResponse']>;
@@ -2585,7 +2733,7 @@ declare class EllipsisIntegrationsSentry {
2585
2733
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
2586
2734
  * Higher permission levels include lower levels: read < write < delete.
2587
2735
  */
2588
- delete(integration_id: string): Promise<S['AccountActionResponse']>;
2736
+ delete(id: string): Promise<S['AccountActionResponse']>;
2589
2737
  /**
2590
2738
  * List Sentry Organizations
2591
2739
  *
@@ -2707,7 +2855,7 @@ declare class EllipsisReviews {
2707
2855
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
2708
2856
  * Higher permission levels include lower levels: read < write < delete.
2709
2857
  */
2710
- get(review_id: string): Promise<S['Review']>;
2858
+ get(id: string): Promise<S['Review']>;
2711
2859
  /**
2712
2860
  * List Reviews
2713
2861
  *
@@ -2803,7 +2951,7 @@ declare class EllipsisSessionsTurns {
2803
2951
  * Higher permission levels include lower levels: read < write < delete.
2804
2952
  * Grant match patterns can further restrict access to individual resources.
2805
2953
  */
2806
- get(session_id: string, turn_id: string): Promise<S['SessionTurnResponse']>;
2954
+ get(session_id: string, id: string): Promise<S['SessionTurnResponse']>;
2807
2955
  /**
2808
2956
  * Get Session Turns
2809
2957
  *
@@ -2820,7 +2968,7 @@ declare class EllipsisSessionsTurns {
2820
2968
  * Higher permission levels include lower levels: read < write < delete.
2821
2969
  * Grant match patterns can further restrict access to individual resources.
2822
2970
  */
2823
- list(session_id: string): Promise<S['SessionTurnsListResponse']>;
2971
+ list(id: string): Promise<S['SessionTurnsListResponse']>;
2824
2972
  }
2825
2973
  declare class EllipsisSessions {
2826
2974
  private readonly transport;
@@ -2846,7 +2994,7 @@ declare class EllipsisSessions {
2846
2994
  * Higher permission levels include lower levels: read < write < delete.
2847
2995
  * Grant match patterns can further restrict access to individual resources.
2848
2996
  */
2849
- analytics(session_id: string): Promise<S['SessionAnalytics']>;
2997
+ analytics(id: string): Promise<S['SessionAnalytics']>;
2850
2998
  /**
2851
2999
  * Get Session Diff
2852
3000
  *
@@ -2865,7 +3013,7 @@ declare class EllipsisSessions {
2865
3013
  * Higher permission levels include lower levels: read < write < delete.
2866
3014
  * Grant match patterns can further restrict access to individual resources.
2867
3015
  */
2868
- diff(session_id: string): Promise<S['SessionDiffResponse']>;
3016
+ diff(id: string): Promise<S['SessionDiffResponse']>;
2869
3017
  /**
2870
3018
  * Download Session
2871
3019
  *
@@ -2887,7 +3035,7 @@ declare class EllipsisSessions {
2887
3035
  * Higher permission levels include lower levels: read < write < delete.
2888
3036
  * Grant match patterns can further restrict access to individual resources.
2889
3037
  */
2890
- download(session_id: string): Promise<S['GetSessionLogResponse']>;
3038
+ download(id: string): Promise<S['GetSessionLogResponse']>;
2891
3039
  /**
2892
3040
  * Get Session
2893
3041
  *
@@ -2907,7 +3055,7 @@ declare class EllipsisSessions {
2907
3055
  * Higher permission levels include lower levels: read < write < delete.
2908
3056
  * Grant match patterns can further restrict access to individual resources.
2909
3057
  */
2910
- get(session_id: string): Promise<S['SessionResponse']>;
3058
+ get(id: string): Promise<S['SessionResponse']>;
2911
3059
  /**
2912
3060
  * Get Session Git
2913
3061
  *
@@ -2923,7 +3071,7 @@ declare class EllipsisSessions {
2923
3071
  * Higher permission levels include lower levels: read < write < delete.
2924
3072
  * Grant match patterns can further restrict access to individual resources.
2925
3073
  */
2926
- git(session_id: string): Promise<S['SessionGitResponse']>;
3074
+ git(id: string): Promise<S['SessionGitResponse']>;
2927
3075
  /**
2928
3076
  * Ingest Session Transcript
2929
3077
  *
@@ -2942,7 +3090,7 @@ declare class EllipsisSessions {
2942
3090
  * Higher permission levels include lower levels: read < write < delete.
2943
3091
  * Grant match patterns can further restrict access to individual resources.
2944
3092
  */
2945
- ingestTranscript(session_id: string, options: {
3093
+ ingestTranscript(id: string, options: {
2946
3094
  lines: (string)[];
2947
3095
  offset?: number;
2948
3096
  }): Promise<S['TranscriptIngestResult']>;
@@ -2991,7 +3139,7 @@ declare class EllipsisSessions {
2991
3139
  * Higher permission levels include lower levels: read < write < delete.
2992
3140
  * Grant match patterns can further restrict access to individual resources.
2993
3141
  */
2994
- metrics(session_id: string): Promise<S['VMMetricsResponse']>;
3142
+ metrics(id: string): Promise<S['VMMetricsResponse']>;
2995
3143
  /**
2996
3144
  * Get Session Records
2997
3145
  *
@@ -3010,7 +3158,7 @@ declare class EllipsisSessions {
3010
3158
  * Higher permission levels include lower levels: read < write < delete.
3011
3159
  * Grant match patterns can further restrict access to individual resources.
3012
3160
  */
3013
- records(session_id: string, options?: {
3161
+ records(id: string, options?: {
3014
3162
  cursor?: string | null;
3015
3163
  limit?: number | null;
3016
3164
  }): Promise<Page<S['SessionRecord'], S['SessionRecordsListResponse']>>;
@@ -3055,7 +3203,7 @@ declare class EllipsisSessions {
3055
3203
  * Higher permission levels include lower levels: read < write < delete.
3056
3204
  * Grant match patterns can further restrict access to individual resources.
3057
3205
  */
3058
- sendMessage(session_id: string, options: {
3206
+ sendMessage(id: string, options: {
3059
3207
  idempotency_key?: string | null;
3060
3208
  images?: (S['ImageAttachment'])[];
3061
3209
  message: string;
@@ -3070,7 +3218,7 @@ declare class EllipsisSessions {
3070
3218
  * Higher permission levels include lower levels: read < write < delete.
3071
3219
  * Grant match patterns can further restrict access to individual resources.
3072
3220
  */
3073
- sessionStreamTicket(session_id: string): Promise<S['StreamTicketResponse']>;
3221
+ sessionStreamTicket(id: string): Promise<S['StreamTicketResponse']>;
3074
3222
  /**
3075
3223
  * Start Session
3076
3224
  *
@@ -3087,7 +3235,7 @@ declare class EllipsisSessions {
3087
3235
  * turn, waiting for one. 400 when `conversation.interactive` is false
3088
3236
  * and there is no prompt, or when `budget.session` exceeds the
3089
3237
  * organization's per-session ceiling. To start a session from a saved
3090
- * agent, use POST /v1/agents/{agent_id}/sessions.
3238
+ * agent, use POST /v1/agents/{id}/sessions.
3091
3239
  *
3092
3240
  * Required permissions: write:sessions.
3093
3241
  * API key: Supported.
@@ -3125,7 +3273,7 @@ declare class EllipsisSessions {
3125
3273
  * Higher permission levels include lower levels: read < write < delete.
3126
3274
  * Grant match patterns can further restrict access to individual resources.
3127
3275
  */
3128
- stop(session_id: string): Promise<S['SessionResponse']>;
3276
+ stop(id: string): Promise<S['SessionResponse']>;
3129
3277
  /**
3130
3278
  * Get Sessions Stream Ticket
3131
3279
  *
@@ -3157,7 +3305,7 @@ declare class EllipsisSessions {
3157
3305
  * Higher permission levels include lower levels: read < write < delete.
3158
3306
  * Grant match patterns can further restrict access to individual resources.
3159
3307
  */
3160
- update(session_id: string, options: {
3308
+ update(id: string, options: {
3161
3309
  archived: boolean;
3162
3310
  }): Promise<S['SessionResponse']>;
3163
3311
  /** Start a session and return a handle over it. */
@@ -3224,7 +3372,7 @@ declare class EllipsisTemplates {
3224
3372
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
3225
3373
  * Higher permission levels include lower levels: read < write < delete.
3226
3374
  */
3227
- get(template_id: string): Promise<S['AgentTemplate']>;
3375
+ get(id: string): Promise<S['AgentTemplate']>;
3228
3376
  /**
3229
3377
  * List Agent Templates
3230
3378
  *
@@ -3370,7 +3518,7 @@ declare class EllipsisUserTokens {
3370
3518
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
3371
3519
  * Higher permission levels include lower levels: read < write < delete.
3372
3520
  */
3373
- revoke(token_id: string): Promise<S['TokenRevokedResponse']>;
3521
+ revoke(id: string): Promise<S['TokenRevokedResponse']>;
3374
3522
  }
3375
3523
  declare class EllipsisUser {
3376
3524
  private readonly transport;
@@ -3390,7 +3538,7 @@ declare class EllipsisVmExecutions {
3390
3538
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own sandbox.
3391
3539
  * Higher permission levels include lower levels: read < write < delete.
3392
3540
  */
3393
- get(vm_execution_id: string): Promise<S['VMExecutionResponse']>;
3541
+ get(id: string): Promise<S['VMExecutionResponse']>;
3394
3542
  /**
3395
3543
  * Get Vm Executions
3396
3544
  *
@@ -3410,7 +3558,7 @@ declare class EllipsisVmExecutions {
3410
3558
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own sandbox.
3411
3559
  * Higher permission levels include lower levels: read < write < delete.
3412
3560
  */
3413
- streamTicket(vm_execution_id: string): Promise<S['StreamTicketResponse']>;
3561
+ streamTicket(id: string): Promise<S['StreamTicketResponse']>;
3414
3562
  }
3415
3563
  declare class EllipsisVmImages {
3416
3564
  private readonly transport;
@@ -3426,7 +3574,7 @@ declare class EllipsisVmImages {
3426
3574
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
3427
3575
  * Higher permission levels include lower levels: read < write < delete.
3428
3576
  */
3429
- get(image_id: string): Promise<S['VMImageResponse']>;
3577
+ get(id: string): Promise<S['VMImageResponse']>;
3430
3578
  /**
3431
3579
  * List Vm Images
3432
3580
  *
@@ -3459,7 +3607,7 @@ declare class EllipsisVms {
3459
3607
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own VM.
3460
3608
  * Higher permission levels include lower levels: read < write < delete.
3461
3609
  */
3462
- get(vm_id: string): Promise<S['VM']>;
3610
+ get(id: string): Promise<S['VM']>;
3463
3611
  /**
3464
3612
  * List Vms
3465
3613
  *
@@ -3490,7 +3638,7 @@ declare class EllipsisVms {
3490
3638
  * Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own VM.
3491
3639
  * Higher permission levels include lower levels: read < write < delete.
3492
3640
  */
3493
- metrics(vm_id: string, options?: {
3641
+ metrics(id: string, options?: {
3494
3642
  start?: string | null;
3495
3643
  end?: string | null;
3496
3644
  }): Promise<S['VMMetricsResponse']>;
@@ -3512,7 +3660,7 @@ declare class EllipsisWebhooksDeliveries {
3512
3660
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
3513
3661
  * Higher permission levels include lower levels: read < write < delete.
3514
3662
  */
3515
- get(delivery_id: string): Promise<S['WebhookDeliveryResponse']>;
3663
+ get(id: string): Promise<S['WebhookDeliveryResponse']>;
3516
3664
  /**
3517
3665
  * List Webhook Deliveries
3518
3666
  *
@@ -3576,7 +3724,7 @@ declare class EllipsisWebhooks {
3576
3724
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
3577
3725
  * Higher permission levels include lower levels: read < write < delete.
3578
3726
  */
3579
- delete(webhook_id: string): Promise<void>;
3727
+ delete(id: string): Promise<void>;
3580
3728
  /**
3581
3729
  * Get Webhook
3582
3730
  *
@@ -3588,7 +3736,7 @@ declare class EllipsisWebhooks {
3588
3736
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
3589
3737
  * Higher permission levels include lower levels: read < write < delete.
3590
3738
  */
3591
- get(webhook_id: string): Promise<S['WebhookResponse']>;
3739
+ get(id: string): Promise<S['WebhookResponse']>;
3592
3740
  /**
3593
3741
  * List Webhooks
3594
3742
  *
@@ -3617,7 +3765,7 @@ declare class EllipsisWebhooks {
3617
3765
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
3618
3766
  * Higher permission levels include lower levels: read < write < delete.
3619
3767
  */
3620
- ping(webhook_id: string): Promise<void>;
3768
+ ping(id: string): Promise<void>;
3621
3769
  /**
3622
3770
  * Update Webhook
3623
3771
  *
@@ -3633,7 +3781,7 @@ declare class EllipsisWebhooks {
3633
3781
  * Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
3634
3782
  * Higher permission levels include lower levels: read < write < delete.
3635
3783
  */
3636
- update(webhook_id: string, options: {
3784
+ update(id: string, options: {
3637
3785
  description?: string | null;
3638
3786
  events: ("session.create")[];
3639
3787
  url: string;