@ellipsis-dev/sdk 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-G2AEYZW2.js → chunk-6V7QTLLF.js} +1 -1
- package/dist/index.d.ts +281 -134
- package/dist/index.js +105 -106
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.js +4 -2
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/index.js +1 -1
- package/dist/{types-DjY1VcOe.d.ts → types-sNAOvELB.d.ts} +1198 -660
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +830 -125
- package/schema/frames.schema.json +1103 -215
- package/schema/lifecycle.schema.json +30 -1
- package/schema/openapi.v1.json +1694 -736
- package/schema/trigger_fields.schema.json +348 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as components } from './types-
|
|
2
|
-
export { A as AgentConfig, a as AgentIdentity, b as AttributionType, B as BudgetConfig, C as CheckRunAction, d as
|
|
1
|
+
import { c as components } from './types-sNAOvELB.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 TurnQueuedPayload, c_ as TurnQueuedRecord, c$ as TurnReason, d0 as TurnStartedPayload, d1 as TurnStartedRecord, d2 as TurnStatus, d3 as UnknownSessionRecord, d4 as UpdateSessionRequest, d5 as WorkflowRunAction, d6 as paths } from './types-sNAOvELB.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
|
|
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:
|
|
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:
|
|
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
|
-
*
|
|
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
|
/**
|
|
@@ -212,7 +221,7 @@ type TurnReason = 'error' | 'tool_call_failed' | 'budget_hit' | 'payment_require
|
|
|
212
221
|
/**
|
|
213
222
|
* Where the turn is.
|
|
214
223
|
*/
|
|
215
|
-
type TurnStatus = '
|
|
224
|
+
type TurnStatus = 'queued' | 'preparing' | 'running' | 'completed' | 'failed' | 'stopped' | 'cancelled';
|
|
216
225
|
/**
|
|
217
226
|
* 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.
|
|
218
227
|
*/
|
|
@@ -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
|
|
620
|
-
*
|
|
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
|
|
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
|
|
867
|
+
* What the session has cost so far.
|
|
835
868
|
*/
|
|
836
|
-
interface
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
|
1329
|
+
* The model that used these tokens.
|
|
1168
1330
|
*/
|
|
1169
1331
|
model: string;
|
|
1170
1332
|
/**
|
|
@@ -1172,24 +1334,24 @@ interface SessionTokens {
|
|
|
1172
1334
|
*/
|
|
1173
1335
|
output: number;
|
|
1174
1336
|
/**
|
|
1175
|
-
*
|
|
1337
|
+
* All tokens used, including prompt cache reads and writes. Token cost is priced on this.
|
|
1176
1338
|
*/
|
|
1177
1339
|
total: number;
|
|
1178
1340
|
}
|
|
1179
1341
|
/**
|
|
1180
|
-
* One message and the agent's answer to it. A turn is `
|
|
1181
|
-
* moment its message is received
|
|
1182
|
-
* while the agent works, then `completed`, `failed`,
|
|
1183
|
-
* `cancelled`.
|
|
1342
|
+
* One message and the agent's answer to it. A turn is `queued` from the
|
|
1343
|
+
* moment its message is received, `preparing` while its environment is set
|
|
1344
|
+
* up, `running` while the agent works, then `completed`, `failed`,
|
|
1345
|
+
* `stopped`, or `cancelled`.
|
|
1184
1346
|
*/
|
|
1185
1347
|
interface SessionTurn {
|
|
1186
|
-
cost:
|
|
1348
|
+
cost: Cost1;
|
|
1187
1349
|
/**
|
|
1188
1350
|
* When the turn's message was received.
|
|
1189
1351
|
*/
|
|
1190
1352
|
created_at: string;
|
|
1191
1353
|
/**
|
|
1192
|
-
* A human-readable explanation of a failed, stopped, or cancelled turn.
|
|
1354
|
+
* A human-readable explanation of a failed, stopped, or cancelled turn, or of why a queued turn waits.
|
|
1193
1355
|
*/
|
|
1194
1356
|
detail: string | null;
|
|
1195
1357
|
/**
|
|
@@ -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:
|
|
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
|
|
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
|
-
*
|
|
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
|
|
1426
|
+
interface Tokens1 {
|
|
1427
|
+
all: TokenCounts;
|
|
1264
1428
|
/**
|
|
1265
|
-
*
|
|
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
|
-
|
|
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(
|
|
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
|
|
1603
|
-
*
|
|
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
|
-
|
|
1760
|
+
amount: number;
|
|
1613
1761
|
enabled: boolean;
|
|
1614
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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).
|
|
@@ -1925,8 +2073,7 @@ declare class EllipsisAccount {
|
|
|
1925
2073
|
* Budgets cover the trailing 1, 7 and 28 days; they do not replenish
|
|
1926
2074
|
* prepaid credit. Amounts include measured usage from active sessions.
|
|
1927
2075
|
* Each paid LLM request requires positive credit and budget headroom.
|
|
1928
|
-
* An admitted request can overshoot
|
|
1929
|
-
* by your account and per-session allowances.
|
|
2076
|
+
* An admitted request can overshoot.
|
|
1930
2077
|
*
|
|
1931
2078
|
* Required permissions: read:account.
|
|
1932
2079
|
* API key: Supported.
|
|
@@ -1974,13 +2121,13 @@ declare class EllipsisAccount {
|
|
|
1974
2121
|
/**
|
|
1975
2122
|
* Get Usage
|
|
1976
2123
|
*
|
|
1977
|
-
* Get usage for a calendar month,
|
|
2124
|
+
* Get usage for a calendar month, split by billing source.
|
|
1978
2125
|
*
|
|
1979
|
-
* Omit period_start for the current UTC month
|
|
1980
|
-
*
|
|
1981
|
-
*
|
|
1982
|
-
* subscription
|
|
1983
|
-
* Pending and unresolved requests
|
|
2126
|
+
* Omit period_start for the current UTC month. Pass a period from
|
|
2127
|
+
* billing_periods to view history. Platform usage is charged to
|
|
2128
|
+
* Ellipsis credit. Tokens paid by a developer's Claude or Codex
|
|
2129
|
+
* subscription show their cost at Ellipsis rates and charge no
|
|
2130
|
+
* credit. Pending and unresolved requests are missing measurements.
|
|
1984
2131
|
*
|
|
1985
2132
|
* Required permissions: read:account.
|
|
1986
2133
|
* API key: Supported.
|
|
@@ -2000,7 +2147,7 @@ declare class EllipsisAgents {
|
|
|
2000
2147
|
*
|
|
2001
2148
|
* Create an agent, managed through the API: no file, live
|
|
2002
2149
|
* immediately. To put its definition in a repository instead, create
|
|
2003
|
-
* it here and then POST /v1/agents/{
|
|
2150
|
+
* it here and then POST /v1/agents/{id}/link.
|
|
2004
2151
|
*
|
|
2005
2152
|
* 409 when another live agent already holds the name.
|
|
2006
2153
|
*
|
|
@@ -2030,7 +2177,7 @@ declare class EllipsisAgents {
|
|
|
2030
2177
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2031
2178
|
* Grant match patterns can further restrict access to individual resources.
|
|
2032
2179
|
*/
|
|
2033
|
-
delete(
|
|
2180
|
+
delete(id: string): Promise<void>;
|
|
2034
2181
|
/**
|
|
2035
2182
|
* Get Agent
|
|
2036
2183
|
*
|
|
@@ -2043,7 +2190,7 @@ declare class EllipsisAgents {
|
|
|
2043
2190
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2044
2191
|
* Grant match patterns can further restrict access to individual resources.
|
|
2045
2192
|
*/
|
|
2046
|
-
get(
|
|
2193
|
+
get(id: string): Promise<S['AgentResponse']>;
|
|
2047
2194
|
/**
|
|
2048
2195
|
* Link Agent
|
|
2049
2196
|
*
|
|
@@ -2061,7 +2208,7 @@ declare class EllipsisAgents {
|
|
|
2061
2208
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2062
2209
|
* Grant match patterns can further restrict access to individual resources.
|
|
2063
2210
|
*/
|
|
2064
|
-
link(
|
|
2211
|
+
link(id: string, options: {
|
|
2065
2212
|
path?: string | null;
|
|
2066
2213
|
repository: string;
|
|
2067
2214
|
}): Promise<S['LinkAgentResponse']>;
|
|
@@ -2096,7 +2243,7 @@ declare class EllipsisAgents {
|
|
|
2096
2243
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2097
2244
|
* Grant match patterns can further restrict access to individual resources.
|
|
2098
2245
|
*/
|
|
2099
|
-
metrics(
|
|
2246
|
+
metrics(id: string): Promise<S['AgentMetricsResponse']>;
|
|
2100
2247
|
/**
|
|
2101
2248
|
* Start Agent Session
|
|
2102
2249
|
*
|
|
@@ -2121,7 +2268,7 @@ declare class EllipsisAgents {
|
|
|
2121
2268
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2122
2269
|
* Grant match patterns can further restrict access to individual resources.
|
|
2123
2270
|
*/
|
|
2124
|
-
start(
|
|
2271
|
+
start(id: string, options?: {
|
|
2125
2272
|
budget?: S['RunBudget'] | null;
|
|
2126
2273
|
claude_code?: S['ClaudeOverrides'] | null;
|
|
2127
2274
|
codex?: S['CodexOverrides'] | null;
|
|
@@ -2162,7 +2309,7 @@ declare class EllipsisAgents {
|
|
|
2162
2309
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2163
2310
|
* Grant match patterns can further restrict access to individual resources.
|
|
2164
2311
|
*/
|
|
2165
|
-
unlink(
|
|
2312
|
+
unlink(id: string): Promise<S['AgentResponse']>;
|
|
2166
2313
|
/**
|
|
2167
2314
|
* Update Agent
|
|
2168
2315
|
*
|
|
@@ -2180,7 +2327,7 @@ declare class EllipsisAgents {
|
|
|
2180
2327
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2181
2328
|
* Grant match patterns can further restrict access to individual resources.
|
|
2182
2329
|
*/
|
|
2183
|
-
update(
|
|
2330
|
+
update(id: string, options: {
|
|
2184
2331
|
agent: S['AgentConfig-Input'];
|
|
2185
2332
|
}): Promise<S['AgentResponse']>;
|
|
2186
2333
|
}
|
|
@@ -2200,7 +2347,7 @@ declare class EllipsisAlerts {
|
|
|
2200
2347
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2201
2348
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2202
2349
|
*/
|
|
2203
|
-
dismiss(
|
|
2350
|
+
dismiss(id: string): Promise<S['AlertResponse']>;
|
|
2204
2351
|
/**
|
|
2205
2352
|
* Get Alert
|
|
2206
2353
|
*
|
|
@@ -2214,7 +2361,7 @@ declare class EllipsisAlerts {
|
|
|
2214
2361
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2215
2362
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2216
2363
|
*/
|
|
2217
|
-
get(
|
|
2364
|
+
get(id: string): Promise<S['AlertResponse']>;
|
|
2218
2365
|
/**
|
|
2219
2366
|
* List Alerts
|
|
2220
2367
|
*
|
|
@@ -2389,7 +2536,7 @@ declare class EllipsisEnvironments {
|
|
|
2389
2536
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2390
2537
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2391
2538
|
*/
|
|
2392
|
-
delete(
|
|
2539
|
+
delete(id: string): Promise<void>;
|
|
2393
2540
|
/**
|
|
2394
2541
|
* Get Environment
|
|
2395
2542
|
*
|
|
@@ -2401,7 +2548,7 @@ declare class EllipsisEnvironments {
|
|
|
2401
2548
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2402
2549
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2403
2550
|
*/
|
|
2404
|
-
get(
|
|
2551
|
+
get(id: string): Promise<S['EnvironmentResponse']>;
|
|
2405
2552
|
/**
|
|
2406
2553
|
* List Environments
|
|
2407
2554
|
*
|
|
@@ -2430,7 +2577,7 @@ declare class EllipsisEnvironments {
|
|
|
2430
2577
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2431
2578
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2432
2579
|
*/
|
|
2433
|
-
update(
|
|
2580
|
+
update(id: string, options: {
|
|
2434
2581
|
environment: S['EnvironmentDocument-Input'];
|
|
2435
2582
|
}): Promise<S['EnvironmentResponse']>;
|
|
2436
2583
|
}
|
|
@@ -2484,7 +2631,7 @@ declare class EllipsisHandlers {
|
|
|
2484
2631
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2485
2632
|
* Grant match patterns can further restrict access to individual resources.
|
|
2486
2633
|
*/
|
|
2487
|
-
metrics(
|
|
2634
|
+
metrics(id: string, options?: {
|
|
2488
2635
|
start?: string | null;
|
|
2489
2636
|
end?: string | null;
|
|
2490
2637
|
}): Promise<S['HandlerMetricsResponse']>;
|
|
@@ -2585,7 +2732,7 @@ declare class EllipsisIntegrationsSentry {
|
|
|
2585
2732
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2586
2733
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2587
2734
|
*/
|
|
2588
|
-
delete(
|
|
2735
|
+
delete(id: string): Promise<S['AccountActionResponse']>;
|
|
2589
2736
|
/**
|
|
2590
2737
|
* List Sentry Organizations
|
|
2591
2738
|
*
|
|
@@ -2707,7 +2854,7 @@ declare class EllipsisReviews {
|
|
|
2707
2854
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2708
2855
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2709
2856
|
*/
|
|
2710
|
-
get(
|
|
2857
|
+
get(id: string): Promise<S['Review']>;
|
|
2711
2858
|
/**
|
|
2712
2859
|
* List Reviews
|
|
2713
2860
|
*
|
|
@@ -2803,7 +2950,7 @@ declare class EllipsisSessionsTurns {
|
|
|
2803
2950
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2804
2951
|
* Grant match patterns can further restrict access to individual resources.
|
|
2805
2952
|
*/
|
|
2806
|
-
get(session_id: string,
|
|
2953
|
+
get(session_id: string, id: string): Promise<S['SessionTurnResponse']>;
|
|
2807
2954
|
/**
|
|
2808
2955
|
* Get Session Turns
|
|
2809
2956
|
*
|
|
@@ -2820,7 +2967,7 @@ declare class EllipsisSessionsTurns {
|
|
|
2820
2967
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2821
2968
|
* Grant match patterns can further restrict access to individual resources.
|
|
2822
2969
|
*/
|
|
2823
|
-
list(
|
|
2970
|
+
list(id: string): Promise<S['SessionTurnsListResponse']>;
|
|
2824
2971
|
}
|
|
2825
2972
|
declare class EllipsisSessions {
|
|
2826
2973
|
private readonly transport;
|
|
@@ -2846,7 +2993,7 @@ declare class EllipsisSessions {
|
|
|
2846
2993
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2847
2994
|
* Grant match patterns can further restrict access to individual resources.
|
|
2848
2995
|
*/
|
|
2849
|
-
analytics(
|
|
2996
|
+
analytics(id: string): Promise<S['SessionAnalytics']>;
|
|
2850
2997
|
/**
|
|
2851
2998
|
* Get Session Diff
|
|
2852
2999
|
*
|
|
@@ -2865,7 +3012,7 @@ declare class EllipsisSessions {
|
|
|
2865
3012
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2866
3013
|
* Grant match patterns can further restrict access to individual resources.
|
|
2867
3014
|
*/
|
|
2868
|
-
diff(
|
|
3015
|
+
diff(id: string): Promise<S['SessionDiffResponse']>;
|
|
2869
3016
|
/**
|
|
2870
3017
|
* Download Session
|
|
2871
3018
|
*
|
|
@@ -2887,7 +3034,7 @@ declare class EllipsisSessions {
|
|
|
2887
3034
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2888
3035
|
* Grant match patterns can further restrict access to individual resources.
|
|
2889
3036
|
*/
|
|
2890
|
-
download(
|
|
3037
|
+
download(id: string): Promise<S['GetSessionLogResponse']>;
|
|
2891
3038
|
/**
|
|
2892
3039
|
* Get Session
|
|
2893
3040
|
*
|
|
@@ -2907,7 +3054,7 @@ declare class EllipsisSessions {
|
|
|
2907
3054
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2908
3055
|
* Grant match patterns can further restrict access to individual resources.
|
|
2909
3056
|
*/
|
|
2910
|
-
get(
|
|
3057
|
+
get(id: string): Promise<S['SessionResponse']>;
|
|
2911
3058
|
/**
|
|
2912
3059
|
* Get Session Git
|
|
2913
3060
|
*
|
|
@@ -2923,7 +3070,7 @@ declare class EllipsisSessions {
|
|
|
2923
3070
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2924
3071
|
* Grant match patterns can further restrict access to individual resources.
|
|
2925
3072
|
*/
|
|
2926
|
-
git(
|
|
3073
|
+
git(id: string): Promise<S['SessionGitResponse']>;
|
|
2927
3074
|
/**
|
|
2928
3075
|
* Ingest Session Transcript
|
|
2929
3076
|
*
|
|
@@ -2942,7 +3089,7 @@ declare class EllipsisSessions {
|
|
|
2942
3089
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2943
3090
|
* Grant match patterns can further restrict access to individual resources.
|
|
2944
3091
|
*/
|
|
2945
|
-
ingestTranscript(
|
|
3092
|
+
ingestTranscript(id: string, options: {
|
|
2946
3093
|
lines: (string)[];
|
|
2947
3094
|
offset?: number;
|
|
2948
3095
|
}): Promise<S['TranscriptIngestResult']>;
|
|
@@ -2991,7 +3138,7 @@ declare class EllipsisSessions {
|
|
|
2991
3138
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2992
3139
|
* Grant match patterns can further restrict access to individual resources.
|
|
2993
3140
|
*/
|
|
2994
|
-
metrics(
|
|
3141
|
+
metrics(id: string): Promise<S['VMMetricsResponse']>;
|
|
2995
3142
|
/**
|
|
2996
3143
|
* Get Session Records
|
|
2997
3144
|
*
|
|
@@ -3010,7 +3157,7 @@ declare class EllipsisSessions {
|
|
|
3010
3157
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3011
3158
|
* Grant match patterns can further restrict access to individual resources.
|
|
3012
3159
|
*/
|
|
3013
|
-
records(
|
|
3160
|
+
records(id: string, options?: {
|
|
3014
3161
|
cursor?: string | null;
|
|
3015
3162
|
limit?: number | null;
|
|
3016
3163
|
}): Promise<Page<S['SessionRecord'], S['SessionRecordsListResponse']>>;
|
|
@@ -3055,7 +3202,7 @@ declare class EllipsisSessions {
|
|
|
3055
3202
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3056
3203
|
* Grant match patterns can further restrict access to individual resources.
|
|
3057
3204
|
*/
|
|
3058
|
-
sendMessage(
|
|
3205
|
+
sendMessage(id: string, options: {
|
|
3059
3206
|
idempotency_key?: string | null;
|
|
3060
3207
|
images?: (S['ImageAttachment'])[];
|
|
3061
3208
|
message: string;
|
|
@@ -3070,7 +3217,7 @@ declare class EllipsisSessions {
|
|
|
3070
3217
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3071
3218
|
* Grant match patterns can further restrict access to individual resources.
|
|
3072
3219
|
*/
|
|
3073
|
-
sessionStreamTicket(
|
|
3220
|
+
sessionStreamTicket(id: string): Promise<S['StreamTicketResponse']>;
|
|
3074
3221
|
/**
|
|
3075
3222
|
* Start Session
|
|
3076
3223
|
*
|
|
@@ -3087,7 +3234,7 @@ declare class EllipsisSessions {
|
|
|
3087
3234
|
* turn, waiting for one. 400 when `conversation.interactive` is false
|
|
3088
3235
|
* and there is no prompt, or when `budget.session` exceeds the
|
|
3089
3236
|
* organization's per-session ceiling. To start a session from a saved
|
|
3090
|
-
* agent, use POST /v1/agents/{
|
|
3237
|
+
* agent, use POST /v1/agents/{id}/sessions.
|
|
3091
3238
|
*
|
|
3092
3239
|
* Required permissions: write:sessions.
|
|
3093
3240
|
* API key: Supported.
|
|
@@ -3115,7 +3262,7 @@ declare class EllipsisSessions {
|
|
|
3115
3262
|
* Stop the turn in progress and return the session.
|
|
3116
3263
|
*
|
|
3117
3264
|
* The turn ends `stopped`; the conversation stays open. 409 when no
|
|
3118
|
-
* turn is
|
|
3265
|
+
* turn is queued, preparing, or running. The stopping user is recorded only
|
|
3119
3266
|
* when the caller's credential maps to a GitHub account.
|
|
3120
3267
|
*
|
|
3121
3268
|
* Required permissions: write:sessions.
|
|
@@ -3125,7 +3272,7 @@ declare class EllipsisSessions {
|
|
|
3125
3272
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3126
3273
|
* Grant match patterns can further restrict access to individual resources.
|
|
3127
3274
|
*/
|
|
3128
|
-
stop(
|
|
3275
|
+
stop(id: string): Promise<S['SessionResponse']>;
|
|
3129
3276
|
/**
|
|
3130
3277
|
* Get Sessions Stream Ticket
|
|
3131
3278
|
*
|
|
@@ -3157,7 +3304,7 @@ declare class EllipsisSessions {
|
|
|
3157
3304
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3158
3305
|
* Grant match patterns can further restrict access to individual resources.
|
|
3159
3306
|
*/
|
|
3160
|
-
update(
|
|
3307
|
+
update(id: string, options: {
|
|
3161
3308
|
archived: boolean;
|
|
3162
3309
|
}): Promise<S['SessionResponse']>;
|
|
3163
3310
|
/** Start a session and return a handle over it. */
|
|
@@ -3224,7 +3371,7 @@ declare class EllipsisTemplates {
|
|
|
3224
3371
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
3225
3372
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3226
3373
|
*/
|
|
3227
|
-
get(
|
|
3374
|
+
get(id: string): Promise<S['AgentTemplate']>;
|
|
3228
3375
|
/**
|
|
3229
3376
|
* List Agent Templates
|
|
3230
3377
|
*
|
|
@@ -3370,7 +3517,7 @@ declare class EllipsisUserTokens {
|
|
|
3370
3517
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3371
3518
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3372
3519
|
*/
|
|
3373
|
-
revoke(
|
|
3520
|
+
revoke(id: string): Promise<S['TokenRevokedResponse']>;
|
|
3374
3521
|
}
|
|
3375
3522
|
declare class EllipsisUser {
|
|
3376
3523
|
private readonly transport;
|
|
@@ -3390,7 +3537,7 @@ declare class EllipsisVmExecutions {
|
|
|
3390
3537
|
* 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
3538
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3392
3539
|
*/
|
|
3393
|
-
get(
|
|
3540
|
+
get(id: string): Promise<S['VMExecutionResponse']>;
|
|
3394
3541
|
/**
|
|
3395
3542
|
* Get Vm Executions
|
|
3396
3543
|
*
|
|
@@ -3410,7 +3557,7 @@ declare class EllipsisVmExecutions {
|
|
|
3410
3557
|
* 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
3558
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3412
3559
|
*/
|
|
3413
|
-
streamTicket(
|
|
3560
|
+
streamTicket(id: string): Promise<S['StreamTicketResponse']>;
|
|
3414
3561
|
}
|
|
3415
3562
|
declare class EllipsisVmImages {
|
|
3416
3563
|
private readonly transport;
|
|
@@ -3426,7 +3573,7 @@ declare class EllipsisVmImages {
|
|
|
3426
3573
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3427
3574
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3428
3575
|
*/
|
|
3429
|
-
get(
|
|
3576
|
+
get(id: string): Promise<S['VMImageResponse']>;
|
|
3430
3577
|
/**
|
|
3431
3578
|
* List Vm Images
|
|
3432
3579
|
*
|
|
@@ -3459,7 +3606,7 @@ declare class EllipsisVms {
|
|
|
3459
3606
|
* 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
3607
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3461
3608
|
*/
|
|
3462
|
-
get(
|
|
3609
|
+
get(id: string): Promise<S['VM']>;
|
|
3463
3610
|
/**
|
|
3464
3611
|
* List Vms
|
|
3465
3612
|
*
|
|
@@ -3490,7 +3637,7 @@ declare class EllipsisVms {
|
|
|
3490
3637
|
* 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
3638
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3492
3639
|
*/
|
|
3493
|
-
metrics(
|
|
3640
|
+
metrics(id: string, options?: {
|
|
3494
3641
|
start?: string | null;
|
|
3495
3642
|
end?: string | null;
|
|
3496
3643
|
}): Promise<S['VMMetricsResponse']>;
|
|
@@ -3512,7 +3659,7 @@ declare class EllipsisWebhooksDeliveries {
|
|
|
3512
3659
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3513
3660
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3514
3661
|
*/
|
|
3515
|
-
get(
|
|
3662
|
+
get(id: string): Promise<S['WebhookDeliveryResponse']>;
|
|
3516
3663
|
/**
|
|
3517
3664
|
* List Webhook Deliveries
|
|
3518
3665
|
*
|
|
@@ -3576,7 +3723,7 @@ declare class EllipsisWebhooks {
|
|
|
3576
3723
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3577
3724
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3578
3725
|
*/
|
|
3579
|
-
delete(
|
|
3726
|
+
delete(id: string): Promise<void>;
|
|
3580
3727
|
/**
|
|
3581
3728
|
* Get Webhook
|
|
3582
3729
|
*
|
|
@@ -3588,7 +3735,7 @@ declare class EllipsisWebhooks {
|
|
|
3588
3735
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3589
3736
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3590
3737
|
*/
|
|
3591
|
-
get(
|
|
3738
|
+
get(id: string): Promise<S['WebhookResponse']>;
|
|
3592
3739
|
/**
|
|
3593
3740
|
* List Webhooks
|
|
3594
3741
|
*
|
|
@@ -3617,7 +3764,7 @@ declare class EllipsisWebhooks {
|
|
|
3617
3764
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3618
3765
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3619
3766
|
*/
|
|
3620
|
-
ping(
|
|
3767
|
+
ping(id: string): Promise<void>;
|
|
3621
3768
|
/**
|
|
3622
3769
|
* Update Webhook
|
|
3623
3770
|
*
|
|
@@ -3633,7 +3780,7 @@ declare class EllipsisWebhooks {
|
|
|
3633
3780
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
3634
3781
|
* Higher permission levels include lower levels: read < write < delete.
|
|
3635
3782
|
*/
|
|
3636
|
-
update(
|
|
3783
|
+
update(id: string, options: {
|
|
3637
3784
|
description?: string | null;
|
|
3638
3785
|
events: ("session.create")[];
|
|
3639
3786
|
url: string;
|