@ellipsis-dev/sdk 0.6.0 → 0.7.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 +2 -2
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-BtzdOaNv.d.ts → types-BOEnwGiJ.d.ts} +233 -229
- package/package.json +1 -1
- package/schema/openapi.v1.json +318 -286
package/schema/openapi.v1.json
CHANGED
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
},
|
|
473
473
|
"AgentConfigEnvironment": {
|
|
474
474
|
"additionalProperties": false,
|
|
475
|
-
"description": "Everything about the environment (the sandbox) the agent runs in: which\n`repositories` are cloned into it, which environment `variables` it gets,\nits `compute` sizing, how its `image` is customized, and lifecycle `hooks`.\nWhat the agent may *do* from that environment is the top-level\n`permissions:` block, not this one.\n\nEach `variables` entry names a variable to inject; with an inline `value` it\nis hardcoded, without one it is resolved from the account's sandbox-
|
|
475
|
+
"description": "Everything about the environment (the sandbox) the agent runs in: which\n`repositories` are cloned into it, which environment `variables` it gets,\nits `compute` sizing, how its `image` is customized, and lifecycle `hooks`.\nWhat the agent may *do* from that environment is the top-level\n`permissions:` block, not this one.\n\nEach `variables` entry names a variable to inject; with an inline `value` it\nis hardcoded, without one it is resolved from the account's sandbox-secrets\nstore. Only the named variables reach this agent; the rest of the account's\nstored variables never do. This is how a config brings in the config and\ncredentials a custom CLI needs.",
|
|
476
476
|
"properties": {
|
|
477
477
|
"compute": {
|
|
478
478
|
"$ref": "#/components/schemas/AgentConfigCompute",
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
},
|
|
582
582
|
"AgentConfigEnvironmentVariable": {
|
|
583
583
|
"additionalProperties": false,
|
|
584
|
-
"description": "One environment variable injected into the agent's sandbox.\n\n`value`, when set, is a literal injected as-is \u2014 use it for non-secret\nconfig (LOG_LEVEL, an API base URL). When `value` is omitted the value is\nresolved at run time from the account's sandbox-
|
|
584
|
+
"description": "One environment variable injected into the agent's sandbox.\n\n`value`, when set, is a literal injected as-is \u2014 use it for non-secret\nconfig (LOG_LEVEL, an API base URL). When `value` is omitted the value is\nresolved at run time from the account's sandbox-secrets store (dashboard\n/ `PUT /secrets`) by `name`, so a secret can be injected without\never putting it in the config file. Either way the variable only reaches\nagents that name it.",
|
|
585
585
|
"properties": {
|
|
586
586
|
"name": {
|
|
587
587
|
"title": "Name",
|
|
@@ -2273,58 +2273,6 @@
|
|
|
2273
2273
|
"title": "AnalyticsRepoUsage",
|
|
2274
2274
|
"type": "object"
|
|
2275
2275
|
},
|
|
2276
|
-
"AssetView": {
|
|
2277
|
-
"description": "An asset's metadata \u2014 the file itself is fetched via a separate\ndownload URL.",
|
|
2278
|
-
"properties": {
|
|
2279
|
-
"agent_session_id": {
|
|
2280
|
-
"anyOf": [
|
|
2281
|
-
{
|
|
2282
|
-
"type": "string"
|
|
2283
|
-
},
|
|
2284
|
-
{
|
|
2285
|
-
"type": "null"
|
|
2286
|
-
}
|
|
2287
|
-
],
|
|
2288
|
-
"description": "The agent session that produced this asset, when it was uploaded from a sandbox. Null for uploads made outside an agent session.",
|
|
2289
|
-
"title": "Agent Session Id"
|
|
2290
|
-
},
|
|
2291
|
-
"content_type": {
|
|
2292
|
-
"description": "The asset's MIME type.",
|
|
2293
|
-
"title": "Content Type",
|
|
2294
|
-
"type": "string"
|
|
2295
|
-
},
|
|
2296
|
-
"created_at": {
|
|
2297
|
-
"description": "When the asset was uploaded.",
|
|
2298
|
-
"format": "date-time",
|
|
2299
|
-
"title": "Created At",
|
|
2300
|
-
"type": "string"
|
|
2301
|
-
},
|
|
2302
|
-
"filename": {
|
|
2303
|
-
"description": "The original file basename, for display.",
|
|
2304
|
-
"title": "Filename",
|
|
2305
|
-
"type": "string"
|
|
2306
|
-
},
|
|
2307
|
-
"id": {
|
|
2308
|
-
"description": "The asset's unique identifier.",
|
|
2309
|
-
"title": "Id",
|
|
2310
|
-
"type": "string"
|
|
2311
|
-
},
|
|
2312
|
-
"size_bytes": {
|
|
2313
|
-
"description": "The size of the stored file in bytes.",
|
|
2314
|
-
"title": "Size Bytes",
|
|
2315
|
-
"type": "integer"
|
|
2316
|
-
}
|
|
2317
|
-
},
|
|
2318
|
-
"required": [
|
|
2319
|
-
"id",
|
|
2320
|
-
"filename",
|
|
2321
|
-
"content_type",
|
|
2322
|
-
"size_bytes",
|
|
2323
|
-
"created_at"
|
|
2324
|
-
],
|
|
2325
|
-
"title": "AssetView",
|
|
2326
|
-
"type": "object"
|
|
2327
|
-
},
|
|
2328
2276
|
"AttributionType": {
|
|
2329
2277
|
"enum": [
|
|
2330
2278
|
"github_user",
|
|
@@ -2588,8 +2536,8 @@
|
|
|
2588
2536
|
"title": "CreateAgentConfigRequest",
|
|
2589
2537
|
"type": "object"
|
|
2590
2538
|
},
|
|
2591
|
-
"
|
|
2592
|
-
"description": "Upload a file
|
|
2539
|
+
"CreateFileRequest": {
|
|
2540
|
+
"description": "Upload a file owned by the calling account.",
|
|
2593
2541
|
"properties": {
|
|
2594
2542
|
"content_type": {
|
|
2595
2543
|
"description": "The MIME type of the file. Only image/png is currently supported, and the uploaded bytes must actually be a PNG.",
|
|
@@ -2612,27 +2560,27 @@
|
|
|
2612
2560
|
"content_type",
|
|
2613
2561
|
"data_b64"
|
|
2614
2562
|
],
|
|
2615
|
-
"title": "
|
|
2563
|
+
"title": "CreateFileRequest",
|
|
2616
2564
|
"type": "object"
|
|
2617
2565
|
},
|
|
2618
|
-
"
|
|
2619
|
-
"description": "The stored
|
|
2566
|
+
"CreateFileResponse": {
|
|
2567
|
+
"description": "The stored file and the shareable link to it.",
|
|
2620
2568
|
"properties": {
|
|
2621
|
-
"
|
|
2622
|
-
"$ref": "#/components/schemas/
|
|
2623
|
-
"description": "The stored
|
|
2569
|
+
"file": {
|
|
2570
|
+
"$ref": "#/components/schemas/FileView",
|
|
2571
|
+
"description": "The stored file's metadata."
|
|
2624
2572
|
},
|
|
2625
2573
|
"url": {
|
|
2626
|
-
"description": "The
|
|
2574
|
+
"description": "The file's dashboard URL (app.ellipsis.dev/files/{id}). Access is gated to members of the owning organization, so this link is safe to share, e.g. in a pull request comment.",
|
|
2627
2575
|
"title": "Url",
|
|
2628
2576
|
"type": "string"
|
|
2629
2577
|
}
|
|
2630
2578
|
},
|
|
2631
2579
|
"required": [
|
|
2632
|
-
"
|
|
2580
|
+
"file",
|
|
2633
2581
|
"url"
|
|
2634
2582
|
],
|
|
2635
|
-
"title": "
|
|
2583
|
+
"title": "CreateFileResponse",
|
|
2636
2584
|
"type": "object"
|
|
2637
2585
|
},
|
|
2638
2586
|
"CreateReviewRequest": {
|
|
@@ -2781,7 +2729,7 @@
|
|
|
2781
2729
|
"ErrorInfo": {
|
|
2782
2730
|
"properties": {
|
|
2783
2731
|
"code": {
|
|
2784
|
-
"description": "Stable machine-readable error code. Open vocabulary \u2014 handle unknown codes by HTTP status. Known values: account_blocked,
|
|
2732
|
+
"description": "Stable machine-readable error code. Open vocabulary \u2014 handle unknown codes by HTTP status. Known values: account_blocked, conflict, default_config_broken, failed_dependency, file_quota_exceeded, forbidden, internal_error, invalid_request, not_found, rate_limited, review_in_flight, session_closed, session_ephemeral_trigger, session_finished, session_harness_single_turn, session_laptop, session_mention_surface, session_non_interactive, unauthorized, unavailable.",
|
|
2785
2733
|
"title": "Code",
|
|
2786
2734
|
"type": "string"
|
|
2787
2735
|
},
|
|
@@ -2833,6 +2781,58 @@
|
|
|
2833
2781
|
"title": "ExecutionStatus",
|
|
2834
2782
|
"type": "string"
|
|
2835
2783
|
},
|
|
2784
|
+
"FileView": {
|
|
2785
|
+
"description": "A file's metadata \u2014 the file itself is fetched via a separate\ndownload URL.",
|
|
2786
|
+
"properties": {
|
|
2787
|
+
"agent_session_id": {
|
|
2788
|
+
"anyOf": [
|
|
2789
|
+
{
|
|
2790
|
+
"type": "string"
|
|
2791
|
+
},
|
|
2792
|
+
{
|
|
2793
|
+
"type": "null"
|
|
2794
|
+
}
|
|
2795
|
+
],
|
|
2796
|
+
"description": "The agent session that produced this file, when it was uploaded from a sandbox. Null for uploads made outside an agent session.",
|
|
2797
|
+
"title": "Agent Session Id"
|
|
2798
|
+
},
|
|
2799
|
+
"content_type": {
|
|
2800
|
+
"description": "The file's MIME type.",
|
|
2801
|
+
"title": "Content Type",
|
|
2802
|
+
"type": "string"
|
|
2803
|
+
},
|
|
2804
|
+
"created_at": {
|
|
2805
|
+
"description": "When the file was uploaded.",
|
|
2806
|
+
"format": "date-time",
|
|
2807
|
+
"title": "Created At",
|
|
2808
|
+
"type": "string"
|
|
2809
|
+
},
|
|
2810
|
+
"filename": {
|
|
2811
|
+
"description": "The original file basename, for display.",
|
|
2812
|
+
"title": "Filename",
|
|
2813
|
+
"type": "string"
|
|
2814
|
+
},
|
|
2815
|
+
"id": {
|
|
2816
|
+
"description": "The file's unique identifier.",
|
|
2817
|
+
"title": "Id",
|
|
2818
|
+
"type": "string"
|
|
2819
|
+
},
|
|
2820
|
+
"size_bytes": {
|
|
2821
|
+
"description": "The size of the stored file in bytes.",
|
|
2822
|
+
"title": "Size Bytes",
|
|
2823
|
+
"type": "integer"
|
|
2824
|
+
}
|
|
2825
|
+
},
|
|
2826
|
+
"required": [
|
|
2827
|
+
"id",
|
|
2828
|
+
"filename",
|
|
2829
|
+
"content_type",
|
|
2830
|
+
"size_bytes",
|
|
2831
|
+
"created_at"
|
|
2832
|
+
],
|
|
2833
|
+
"title": "FileView",
|
|
2834
|
+
"type": "object"
|
|
2835
|
+
},
|
|
2836
2836
|
"FindingAnchor": {
|
|
2837
2837
|
"description": "Where a finding's line anchor landed relative to the PR diff.",
|
|
2838
2838
|
"enum": [
|
|
@@ -3000,30 +3000,30 @@
|
|
|
3000
3000
|
"title": "GetAnalyticsReviewsResponse",
|
|
3001
3001
|
"type": "object"
|
|
3002
3002
|
},
|
|
3003
|
-
"
|
|
3004
|
-
"description": "One
|
|
3003
|
+
"GetFileResponse": {
|
|
3004
|
+
"description": "One file's metadata plus its shareable link and a short-lived\ndownload URL.",
|
|
3005
3005
|
"properties": {
|
|
3006
|
-
"asset": {
|
|
3007
|
-
"$ref": "#/components/schemas/AssetView",
|
|
3008
|
-
"description": "The asset's metadata."
|
|
3009
|
-
},
|
|
3010
3006
|
"download_url": {
|
|
3011
3007
|
"description": "A short-lived presigned URL for downloading the file bytes. Fetch it immediately \u2014 it expires within about a minute.",
|
|
3012
3008
|
"title": "Download Url",
|
|
3013
3009
|
"type": "string"
|
|
3014
3010
|
},
|
|
3011
|
+
"file": {
|
|
3012
|
+
"$ref": "#/components/schemas/FileView",
|
|
3013
|
+
"description": "The file's metadata."
|
|
3014
|
+
},
|
|
3015
3015
|
"url": {
|
|
3016
|
-
"description": "The
|
|
3016
|
+
"description": "The file's dashboard URL \u2014 the same shareable link returned when the file was created.",
|
|
3017
3017
|
"title": "Url",
|
|
3018
3018
|
"type": "string"
|
|
3019
3019
|
}
|
|
3020
3020
|
},
|
|
3021
3021
|
"required": [
|
|
3022
|
-
"
|
|
3022
|
+
"file",
|
|
3023
3023
|
"url",
|
|
3024
3024
|
"download_url"
|
|
3025
3025
|
],
|
|
3026
|
-
"title": "
|
|
3026
|
+
"title": "GetFileResponse",
|
|
3027
3027
|
"type": "object"
|
|
3028
3028
|
},
|
|
3029
3029
|
"GetIntegrationsResponse": {
|
|
@@ -4194,22 +4194,22 @@
|
|
|
4194
4194
|
"title": "ListAlertsResponse",
|
|
4195
4195
|
"type": "object"
|
|
4196
4196
|
},
|
|
4197
|
-
"
|
|
4198
|
-
"description": "The calling account's
|
|
4197
|
+
"ListFilesResponse": {
|
|
4198
|
+
"description": "The calling account's files, newest first. Metadata only \u2014 fetch an\nindividual file to get a download URL.",
|
|
4199
4199
|
"properties": {
|
|
4200
|
-
"
|
|
4201
|
-
"description": "The account's
|
|
4200
|
+
"files": {
|
|
4201
|
+
"description": "The account's files, newest first.",
|
|
4202
4202
|
"items": {
|
|
4203
|
-
"$ref": "#/components/schemas/
|
|
4203
|
+
"$ref": "#/components/schemas/FileView"
|
|
4204
4204
|
},
|
|
4205
|
-
"title": "
|
|
4205
|
+
"title": "Files",
|
|
4206
4206
|
"type": "array"
|
|
4207
4207
|
}
|
|
4208
4208
|
},
|
|
4209
4209
|
"required": [
|
|
4210
|
-
"
|
|
4210
|
+
"files"
|
|
4211
4211
|
],
|
|
4212
|
-
"title": "
|
|
4212
|
+
"title": "ListFilesResponse",
|
|
4213
4213
|
"type": "object"
|
|
4214
4214
|
},
|
|
4215
4215
|
"ListGithubMembersResponse": {
|
|
@@ -4577,11 +4577,13 @@
|
|
|
4577
4577
|
"type": "object"
|
|
4578
4578
|
},
|
|
4579
4579
|
"ModelManufacturer": {
|
|
4580
|
-
"description": "Who BUILT a model. Never who serves it.\n\nServing path is irrelevant here. Anthropic built every Claude model, so all of\nthem are ANTHROPIC whether we reach them through the first-party Anthropic API\nor through Bedrock -- a choice made per
|
|
4580
|
+
"description": "Who BUILT a model. Never who serves it.\n\nServing path is irrelevant here. Anthropic built every Claude model, so all of\nthem are ANTHROPIC whether we reach them through the first-party Anthropic API\nor through Bedrock -- a choice made per request by the llm_providers chain, so\nit is not even a fixed property of the model. Likewise the `bedrock-gpt-5.6-*`\nrows are OPENAI (OpenAI's models, served by AWS), and GLM is ZAI (Z.ai's model,\nserved by Wafer or Concentrate over an OpenAI-compatible API).\n\nSo this is deliberately NOT derived from `EgressRoute.provider`: routing is an\ninfrastructure fact that changes when we move a model between providers, while\nthe manufacturer is a property of the model itself and never changes.\n\nThe frontend renders a vendor logo per model, which is why it needs the maker.\nKeying that UI off the egress provider would put an AWS logo on a GPT model and\nan OpenAI logo on GLM.",
|
|
4581
4581
|
"enum": [
|
|
4582
4582
|
"anthropic",
|
|
4583
4583
|
"openai",
|
|
4584
|
-
"zai"
|
|
4584
|
+
"zai",
|
|
4585
|
+
"minimax",
|
|
4586
|
+
"moonshot"
|
|
4585
4587
|
],
|
|
4586
4588
|
"title": "ModelManufacturer",
|
|
4587
4589
|
"type": "string"
|
|
@@ -10753,60 +10755,26 @@
|
|
|
10753
10755
|
]
|
|
10754
10756
|
}
|
|
10755
10757
|
},
|
|
10756
|
-
"/
|
|
10757
|
-
"
|
|
10758
|
-
"description": "
|
|
10759
|
-
"operationId": "
|
|
10760
|
-
"
|
|
10761
|
-
{
|
|
10762
|
-
"
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
"anyOf": [
|
|
10767
|
-
{
|
|
10768
|
-
"type": "string"
|
|
10769
|
-
},
|
|
10770
|
-
{
|
|
10771
|
-
"type": "null"
|
|
10772
|
-
}
|
|
10773
|
-
],
|
|
10774
|
-
"title": "Agent Session Id"
|
|
10775
|
-
}
|
|
10776
|
-
},
|
|
10777
|
-
{
|
|
10778
|
-
"in": "query",
|
|
10779
|
-
"name": "limit",
|
|
10780
|
-
"required": false,
|
|
10781
|
-
"schema": {
|
|
10782
|
-
"default": 50,
|
|
10783
|
-
"title": "Limit",
|
|
10784
|
-
"type": "integer"
|
|
10758
|
+
"/auth/cli/poll": {
|
|
10759
|
+
"post": {
|
|
10760
|
+
"description": "Poll a device-code auth flow for its token.\n\nUnauthenticated; the device code identifies the flow.",
|
|
10761
|
+
"operationId": "cli_auth_poll",
|
|
10762
|
+
"requestBody": {
|
|
10763
|
+
"content": {
|
|
10764
|
+
"application/json": {
|
|
10765
|
+
"schema": {
|
|
10766
|
+
"$ref": "#/components/schemas/CliAuthPollRequest"
|
|
10767
|
+
}
|
|
10785
10768
|
}
|
|
10786
10769
|
},
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
"name": "user-agent",
|
|
10790
|
-
"required": false,
|
|
10791
|
-
"schema": {
|
|
10792
|
-
"anyOf": [
|
|
10793
|
-
{
|
|
10794
|
-
"type": "string"
|
|
10795
|
-
},
|
|
10796
|
-
{
|
|
10797
|
-
"type": "null"
|
|
10798
|
-
}
|
|
10799
|
-
],
|
|
10800
|
-
"title": "User-Agent"
|
|
10801
|
-
}
|
|
10802
|
-
}
|
|
10803
|
-
],
|
|
10770
|
+
"required": true
|
|
10771
|
+
},
|
|
10804
10772
|
"responses": {
|
|
10805
10773
|
"200": {
|
|
10806
10774
|
"content": {
|
|
10807
10775
|
"application/json": {
|
|
10808
10776
|
"schema": {
|
|
10809
|
-
"$ref": "#/components/schemas/
|
|
10777
|
+
"$ref": "#/components/schemas/PollCliAuthResponse"
|
|
10810
10778
|
}
|
|
10811
10779
|
}
|
|
10812
10780
|
},
|
|
@@ -10832,6 +10800,16 @@
|
|
|
10832
10800
|
},
|
|
10833
10801
|
"description": "The credential may not perform this action, or the account is blocked."
|
|
10834
10802
|
},
|
|
10803
|
+
"404": {
|
|
10804
|
+
"content": {
|
|
10805
|
+
"application/json": {
|
|
10806
|
+
"schema": {
|
|
10807
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
10808
|
+
}
|
|
10809
|
+
}
|
|
10810
|
+
},
|
|
10811
|
+
"description": "Unknown device code."
|
|
10812
|
+
},
|
|
10835
10813
|
"422": {
|
|
10836
10814
|
"content": {
|
|
10837
10815
|
"application/json": {
|
|
@@ -10843,68 +10821,27 @@
|
|
|
10843
10821
|
"description": "Validation Error"
|
|
10844
10822
|
}
|
|
10845
10823
|
},
|
|
10846
|
-
"
|
|
10847
|
-
{
|
|
10848
|
-
"HTTPBearer": []
|
|
10849
|
-
}
|
|
10850
|
-
],
|
|
10851
|
-
"summary": "List Assets",
|
|
10824
|
+
"summary": "Cli Auth Poll",
|
|
10852
10825
|
"tags": [
|
|
10853
10826
|
"v1"
|
|
10854
10827
|
]
|
|
10855
|
-
}
|
|
10828
|
+
}
|
|
10829
|
+
},
|
|
10830
|
+
"/auth/cli/start": {
|
|
10856
10831
|
"post": {
|
|
10857
|
-
"description": "
|
|
10858
|
-
"operationId": "
|
|
10859
|
-
"parameters": [
|
|
10860
|
-
{
|
|
10861
|
-
"in": "header",
|
|
10862
|
-
"name": "user-agent",
|
|
10863
|
-
"required": false,
|
|
10864
|
-
"schema": {
|
|
10865
|
-
"anyOf": [
|
|
10866
|
-
{
|
|
10867
|
-
"type": "string"
|
|
10868
|
-
},
|
|
10869
|
-
{
|
|
10870
|
-
"type": "null"
|
|
10871
|
-
}
|
|
10872
|
-
],
|
|
10873
|
-
"title": "User-Agent"
|
|
10874
|
-
}
|
|
10875
|
-
}
|
|
10876
|
-
],
|
|
10877
|
-
"requestBody": {
|
|
10878
|
-
"content": {
|
|
10879
|
-
"application/json": {
|
|
10880
|
-
"schema": {
|
|
10881
|
-
"$ref": "#/components/schemas/CreateAssetRequest"
|
|
10882
|
-
}
|
|
10883
|
-
}
|
|
10884
|
-
},
|
|
10885
|
-
"required": true
|
|
10886
|
-
},
|
|
10832
|
+
"description": "Start a device-code auth flow for the CLI.\n\nUnauthenticated: the CLI has no credential yet \u2014 that's what\nit's obtaining. The human authorizes out-of-band in the\ndashboard.",
|
|
10833
|
+
"operationId": "cli_auth_start",
|
|
10887
10834
|
"responses": {
|
|
10888
10835
|
"201": {
|
|
10889
10836
|
"content": {
|
|
10890
10837
|
"application/json": {
|
|
10891
10838
|
"schema": {
|
|
10892
|
-
"$ref": "#/components/schemas/
|
|
10839
|
+
"$ref": "#/components/schemas/StartCliAuthResponse"
|
|
10893
10840
|
}
|
|
10894
10841
|
}
|
|
10895
10842
|
},
|
|
10896
10843
|
"description": "Successful Response"
|
|
10897
10844
|
},
|
|
10898
|
-
"400": {
|
|
10899
|
-
"content": {
|
|
10900
|
-
"application/json": {
|
|
10901
|
-
"schema": {
|
|
10902
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
10903
|
-
}
|
|
10904
|
-
}
|
|
10905
|
-
},
|
|
10906
|
-
"description": "The upload is not a valid PNG, is empty, exceeds the size limit, or is not valid base64."
|
|
10907
|
-
},
|
|
10908
10845
|
"401": {
|
|
10909
10846
|
"content": {
|
|
10910
10847
|
"application/json": {
|
|
@@ -10924,53 +10861,19 @@
|
|
|
10924
10861
|
}
|
|
10925
10862
|
},
|
|
10926
10863
|
"description": "The credential may not perform this action, or the account is blocked."
|
|
10927
|
-
},
|
|
10928
|
-
"422": {
|
|
10929
|
-
"content": {
|
|
10930
|
-
"application/json": {
|
|
10931
|
-
"schema": {
|
|
10932
|
-
"$ref": "#/components/schemas/HTTPValidationError"
|
|
10933
|
-
}
|
|
10934
|
-
}
|
|
10935
|
-
},
|
|
10936
|
-
"description": "Validation Error"
|
|
10937
|
-
},
|
|
10938
|
-
"429": {
|
|
10939
|
-
"content": {
|
|
10940
|
-
"application/json": {
|
|
10941
|
-
"schema": {
|
|
10942
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
10943
|
-
}
|
|
10944
|
-
}
|
|
10945
|
-
},
|
|
10946
|
-
"description": "An asset quota was exceeded (per-session, per-day, or account-wide)."
|
|
10947
10864
|
}
|
|
10948
10865
|
},
|
|
10949
|
-
"
|
|
10950
|
-
{
|
|
10951
|
-
"HTTPBearer": []
|
|
10952
|
-
}
|
|
10953
|
-
],
|
|
10954
|
-
"summary": "Create Asset",
|
|
10866
|
+
"summary": "Cli Auth Start",
|
|
10955
10867
|
"tags": [
|
|
10956
10868
|
"v1"
|
|
10957
10869
|
]
|
|
10958
10870
|
}
|
|
10959
10871
|
},
|
|
10960
|
-
"/
|
|
10961
|
-
"
|
|
10962
|
-
"description": "
|
|
10963
|
-
"operationId": "
|
|
10872
|
+
"/budget": {
|
|
10873
|
+
"get": {
|
|
10874
|
+
"description": "Return the caller's current budget summary.",
|
|
10875
|
+
"operationId": "get_budget",
|
|
10964
10876
|
"parameters": [
|
|
10965
|
-
{
|
|
10966
|
-
"in": "path",
|
|
10967
|
-
"name": "asset_id",
|
|
10968
|
-
"required": true,
|
|
10969
|
-
"schema": {
|
|
10970
|
-
"title": "Asset Id",
|
|
10971
|
-
"type": "string"
|
|
10972
|
-
}
|
|
10973
|
-
},
|
|
10974
10877
|
{
|
|
10975
10878
|
"in": "header",
|
|
10976
10879
|
"name": "user-agent",
|
|
@@ -10989,20 +10892,17 @@
|
|
|
10989
10892
|
}
|
|
10990
10893
|
],
|
|
10991
10894
|
"responses": {
|
|
10992
|
-
"
|
|
10993
|
-
"description": "Successful Response"
|
|
10994
|
-
},
|
|
10995
|
-
"401": {
|
|
10895
|
+
"200": {
|
|
10996
10896
|
"content": {
|
|
10997
10897
|
"application/json": {
|
|
10998
10898
|
"schema": {
|
|
10999
|
-
"$ref": "#/components/schemas/
|
|
10899
|
+
"$ref": "#/components/schemas/BudgetSummary"
|
|
11000
10900
|
}
|
|
11001
10901
|
}
|
|
11002
10902
|
},
|
|
11003
|
-
"description": "
|
|
10903
|
+
"description": "Successful Response"
|
|
11004
10904
|
},
|
|
11005
|
-
"
|
|
10905
|
+
"401": {
|
|
11006
10906
|
"content": {
|
|
11007
10907
|
"application/json": {
|
|
11008
10908
|
"schema": {
|
|
@@ -11010,9 +10910,9 @@
|
|
|
11010
10910
|
}
|
|
11011
10911
|
}
|
|
11012
10912
|
},
|
|
11013
|
-
"description": "The
|
|
10913
|
+
"description": "The bearer token is missing, invalid, or revoked."
|
|
11014
10914
|
},
|
|
11015
|
-
"
|
|
10915
|
+
"403": {
|
|
11016
10916
|
"content": {
|
|
11017
10917
|
"application/json": {
|
|
11018
10918
|
"schema": {
|
|
@@ -11020,7 +10920,7 @@
|
|
|
11020
10920
|
}
|
|
11021
10921
|
}
|
|
11022
10922
|
},
|
|
11023
|
-
"description": "
|
|
10923
|
+
"description": "The credential may not perform this action, or the account is blocked."
|
|
11024
10924
|
},
|
|
11025
10925
|
"422": {
|
|
11026
10926
|
"content": {
|
|
@@ -11038,22 +10938,41 @@
|
|
|
11038
10938
|
"HTTPBearer": []
|
|
11039
10939
|
}
|
|
11040
10940
|
],
|
|
11041
|
-
"summary": "
|
|
10941
|
+
"summary": "Get Budget",
|
|
11042
10942
|
"tags": [
|
|
11043
10943
|
"v1"
|
|
11044
10944
|
]
|
|
11045
|
-
}
|
|
10945
|
+
}
|
|
10946
|
+
},
|
|
10947
|
+
"/files": {
|
|
11046
10948
|
"get": {
|
|
11047
|
-
"description": "
|
|
11048
|
-
"operationId": "
|
|
10949
|
+
"description": "List uploaded files, newest first.\n\nMetadata only \u2014 download URLs are minted per explicit GET, not\nper row. agent_session_id scopes the list to one run's uploads.",
|
|
10950
|
+
"operationId": "list_files",
|
|
11049
10951
|
"parameters": [
|
|
11050
10952
|
{
|
|
11051
|
-
"in": "
|
|
11052
|
-
"name": "
|
|
11053
|
-
"required":
|
|
10953
|
+
"in": "query",
|
|
10954
|
+
"name": "agent_session_id",
|
|
10955
|
+
"required": false,
|
|
11054
10956
|
"schema": {
|
|
11055
|
-
"
|
|
11056
|
-
|
|
10957
|
+
"anyOf": [
|
|
10958
|
+
{
|
|
10959
|
+
"type": "string"
|
|
10960
|
+
},
|
|
10961
|
+
{
|
|
10962
|
+
"type": "null"
|
|
10963
|
+
}
|
|
10964
|
+
],
|
|
10965
|
+
"title": "Agent Session Id"
|
|
10966
|
+
}
|
|
10967
|
+
},
|
|
10968
|
+
{
|
|
10969
|
+
"in": "query",
|
|
10970
|
+
"name": "limit",
|
|
10971
|
+
"required": false,
|
|
10972
|
+
"schema": {
|
|
10973
|
+
"default": 50,
|
|
10974
|
+
"title": "Limit",
|
|
10975
|
+
"type": "integer"
|
|
11057
10976
|
}
|
|
11058
10977
|
},
|
|
11059
10978
|
{
|
|
@@ -11078,7 +10997,7 @@
|
|
|
11078
10997
|
"content": {
|
|
11079
10998
|
"application/json": {
|
|
11080
10999
|
"schema": {
|
|
11081
|
-
"$ref": "#/components/schemas/
|
|
11000
|
+
"$ref": "#/components/schemas/ListFilesResponse"
|
|
11082
11001
|
}
|
|
11083
11002
|
}
|
|
11084
11003
|
},
|
|
@@ -11104,16 +11023,6 @@
|
|
|
11104
11023
|
},
|
|
11105
11024
|
"description": "The credential may not perform this action, or the account is blocked."
|
|
11106
11025
|
},
|
|
11107
|
-
"404": {
|
|
11108
|
-
"content": {
|
|
11109
|
-
"application/json": {
|
|
11110
|
-
"schema": {
|
|
11111
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
11112
|
-
}
|
|
11113
|
-
}
|
|
11114
|
-
},
|
|
11115
|
-
"description": "No such asset in your account."
|
|
11116
|
-
},
|
|
11117
11026
|
"422": {
|
|
11118
11027
|
"content": {
|
|
11119
11028
|
"application/json": {
|
|
@@ -11130,38 +11039,54 @@
|
|
|
11130
11039
|
"HTTPBearer": []
|
|
11131
11040
|
}
|
|
11132
11041
|
],
|
|
11133
|
-
"summary": "
|
|
11042
|
+
"summary": "List Files",
|
|
11134
11043
|
"tags": [
|
|
11135
11044
|
"v1"
|
|
11136
11045
|
]
|
|
11137
|
-
}
|
|
11138
|
-
},
|
|
11139
|
-
"/auth/cli/poll": {
|
|
11046
|
+
},
|
|
11140
11047
|
"post": {
|
|
11141
|
-
"description": "
|
|
11142
|
-
"operationId": "
|
|
11048
|
+
"description": "Upload a file that outlives the sandbox.\n\nv1: PNG images only, base64 in the JSON body, 10 MiB cap. The\nprimary caller is the in-sandbox `agent file upload` CLI (an\nagent persisting a screenshot to link on a PR), but all\ncredential types work. Returns the org-membership-gated\ndashboard URL so callers never hard-code URL shapes.",
|
|
11049
|
+
"operationId": "create_file",
|
|
11050
|
+
"parameters": [
|
|
11051
|
+
{
|
|
11052
|
+
"in": "header",
|
|
11053
|
+
"name": "user-agent",
|
|
11054
|
+
"required": false,
|
|
11055
|
+
"schema": {
|
|
11056
|
+
"anyOf": [
|
|
11057
|
+
{
|
|
11058
|
+
"type": "string"
|
|
11059
|
+
},
|
|
11060
|
+
{
|
|
11061
|
+
"type": "null"
|
|
11062
|
+
}
|
|
11063
|
+
],
|
|
11064
|
+
"title": "User-Agent"
|
|
11065
|
+
}
|
|
11066
|
+
}
|
|
11067
|
+
],
|
|
11143
11068
|
"requestBody": {
|
|
11144
11069
|
"content": {
|
|
11145
11070
|
"application/json": {
|
|
11146
11071
|
"schema": {
|
|
11147
|
-
"$ref": "#/components/schemas/
|
|
11072
|
+
"$ref": "#/components/schemas/CreateFileRequest"
|
|
11148
11073
|
}
|
|
11149
11074
|
}
|
|
11150
11075
|
},
|
|
11151
11076
|
"required": true
|
|
11152
11077
|
},
|
|
11153
11078
|
"responses": {
|
|
11154
|
-
"
|
|
11079
|
+
"201": {
|
|
11155
11080
|
"content": {
|
|
11156
11081
|
"application/json": {
|
|
11157
11082
|
"schema": {
|
|
11158
|
-
"$ref": "#/components/schemas/
|
|
11083
|
+
"$ref": "#/components/schemas/CreateFileResponse"
|
|
11159
11084
|
}
|
|
11160
11085
|
}
|
|
11161
11086
|
},
|
|
11162
11087
|
"description": "Successful Response"
|
|
11163
11088
|
},
|
|
11164
|
-
"
|
|
11089
|
+
"400": {
|
|
11165
11090
|
"content": {
|
|
11166
11091
|
"application/json": {
|
|
11167
11092
|
"schema": {
|
|
@@ -11169,9 +11094,9 @@
|
|
|
11169
11094
|
}
|
|
11170
11095
|
}
|
|
11171
11096
|
},
|
|
11172
|
-
"description": "The
|
|
11097
|
+
"description": "The upload is not a valid PNG, is empty, exceeds the size limit, or is not valid base64."
|
|
11173
11098
|
},
|
|
11174
|
-
"
|
|
11099
|
+
"401": {
|
|
11175
11100
|
"content": {
|
|
11176
11101
|
"application/json": {
|
|
11177
11102
|
"schema": {
|
|
@@ -11179,9 +11104,9 @@
|
|
|
11179
11104
|
}
|
|
11180
11105
|
}
|
|
11181
11106
|
},
|
|
11182
|
-
"description": "The
|
|
11107
|
+
"description": "The bearer token is missing, invalid, or revoked."
|
|
11183
11108
|
},
|
|
11184
|
-
"
|
|
11109
|
+
"403": {
|
|
11185
11110
|
"content": {
|
|
11186
11111
|
"application/json": {
|
|
11187
11112
|
"schema": {
|
|
@@ -11189,7 +11114,7 @@
|
|
|
11189
11114
|
}
|
|
11190
11115
|
}
|
|
11191
11116
|
},
|
|
11192
|
-
"description": "
|
|
11117
|
+
"description": "The credential may not perform this action, or the account is blocked."
|
|
11193
11118
|
},
|
|
11194
11119
|
"422": {
|
|
11195
11120
|
"content": {
|
|
@@ -11200,30 +11125,75 @@
|
|
|
11200
11125
|
}
|
|
11201
11126
|
},
|
|
11202
11127
|
"description": "Validation Error"
|
|
11128
|
+
},
|
|
11129
|
+
"429": {
|
|
11130
|
+
"content": {
|
|
11131
|
+
"application/json": {
|
|
11132
|
+
"schema": {
|
|
11133
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
11134
|
+
}
|
|
11135
|
+
}
|
|
11136
|
+
},
|
|
11137
|
+
"description": "A file quota was exceeded (per-session, per-day, or account-wide)."
|
|
11203
11138
|
}
|
|
11204
11139
|
},
|
|
11205
|
-
"
|
|
11140
|
+
"security": [
|
|
11141
|
+
{
|
|
11142
|
+
"HTTPBearer": []
|
|
11143
|
+
}
|
|
11144
|
+
],
|
|
11145
|
+
"summary": "Create File",
|
|
11206
11146
|
"tags": [
|
|
11207
11147
|
"v1"
|
|
11208
11148
|
]
|
|
11209
11149
|
}
|
|
11210
11150
|
},
|
|
11211
|
-
"/
|
|
11212
|
-
"
|
|
11213
|
-
"description": "
|
|
11214
|
-
"operationId": "
|
|
11151
|
+
"/files/{file_id}": {
|
|
11152
|
+
"delete": {
|
|
11153
|
+
"description": "Delete a file.\n\nA foreign, missing, or already-deleted id is an\nindistinguishable 404, so ids can't be enumerated. Sandbox\ntokens get a 403 (a sandbox token sits next to\npotentially-untrusted code and must not be able to destroy the\naccount's files \u2014 uploading is fine, destruction is not); API\nkeys and user tokens may delete.",
|
|
11154
|
+
"operationId": "delete_file",
|
|
11155
|
+
"parameters": [
|
|
11156
|
+
{
|
|
11157
|
+
"in": "path",
|
|
11158
|
+
"name": "file_id",
|
|
11159
|
+
"required": true,
|
|
11160
|
+
"schema": {
|
|
11161
|
+
"title": "File Id",
|
|
11162
|
+
"type": "string"
|
|
11163
|
+
}
|
|
11164
|
+
},
|
|
11165
|
+
{
|
|
11166
|
+
"in": "header",
|
|
11167
|
+
"name": "user-agent",
|
|
11168
|
+
"required": false,
|
|
11169
|
+
"schema": {
|
|
11170
|
+
"anyOf": [
|
|
11171
|
+
{
|
|
11172
|
+
"type": "string"
|
|
11173
|
+
},
|
|
11174
|
+
{
|
|
11175
|
+
"type": "null"
|
|
11176
|
+
}
|
|
11177
|
+
],
|
|
11178
|
+
"title": "User-Agent"
|
|
11179
|
+
}
|
|
11180
|
+
}
|
|
11181
|
+
],
|
|
11215
11182
|
"responses": {
|
|
11216
|
-
"
|
|
11183
|
+
"204": {
|
|
11184
|
+
"description": "Successful Response"
|
|
11185
|
+
},
|
|
11186
|
+
"401": {
|
|
11217
11187
|
"content": {
|
|
11218
11188
|
"application/json": {
|
|
11219
11189
|
"schema": {
|
|
11220
|
-
"$ref": "#/components/schemas/
|
|
11190
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
11221
11191
|
}
|
|
11222
11192
|
}
|
|
11223
11193
|
},
|
|
11224
|
-
"description": "
|
|
11194
|
+
"description": "The bearer token is missing, invalid, or revoked."
|
|
11225
11195
|
},
|
|
11226
|
-
"
|
|
11196
|
+
"403": {
|
|
11227
11197
|
"content": {
|
|
11228
11198
|
"application/json": {
|
|
11229
11199
|
"schema": {
|
|
@@ -11231,9 +11201,9 @@
|
|
|
11231
11201
|
}
|
|
11232
11202
|
}
|
|
11233
11203
|
},
|
|
11234
|
-
"description": "The
|
|
11204
|
+
"description": "The credential may not perform this action, or the account is blocked."
|
|
11235
11205
|
},
|
|
11236
|
-
"
|
|
11206
|
+
"404": {
|
|
11237
11207
|
"content": {
|
|
11238
11208
|
"application/json": {
|
|
11239
11209
|
"schema": {
|
|
@@ -11241,20 +11211,42 @@
|
|
|
11241
11211
|
}
|
|
11242
11212
|
}
|
|
11243
11213
|
},
|
|
11244
|
-
"description": "
|
|
11214
|
+
"description": "No such file in your account."
|
|
11215
|
+
},
|
|
11216
|
+
"422": {
|
|
11217
|
+
"content": {
|
|
11218
|
+
"application/json": {
|
|
11219
|
+
"schema": {
|
|
11220
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
11221
|
+
}
|
|
11222
|
+
}
|
|
11223
|
+
},
|
|
11224
|
+
"description": "Validation Error"
|
|
11245
11225
|
}
|
|
11246
11226
|
},
|
|
11247
|
-
"
|
|
11227
|
+
"security": [
|
|
11228
|
+
{
|
|
11229
|
+
"HTTPBearer": []
|
|
11230
|
+
}
|
|
11231
|
+
],
|
|
11232
|
+
"summary": "Delete File",
|
|
11248
11233
|
"tags": [
|
|
11249
11234
|
"v1"
|
|
11250
11235
|
]
|
|
11251
|
-
}
|
|
11252
|
-
},
|
|
11253
|
-
"/budget": {
|
|
11236
|
+
},
|
|
11254
11237
|
"get": {
|
|
11255
|
-
"description": "Return the
|
|
11256
|
-
"operationId": "
|
|
11238
|
+
"description": "Return one file's metadata and download link.\n\nIncludes the gated dashboard URL and a short-lived presigned\n`download_url`.\n\nTo fetch the bytes locally, call this and then GET download_url\nimmediately \u2014 the JSON API never carries the file. The CLI's\n`agent file get` wraps exactly that two-step.",
|
|
11239
|
+
"operationId": "get_file",
|
|
11257
11240
|
"parameters": [
|
|
11241
|
+
{
|
|
11242
|
+
"in": "path",
|
|
11243
|
+
"name": "file_id",
|
|
11244
|
+
"required": true,
|
|
11245
|
+
"schema": {
|
|
11246
|
+
"title": "File Id",
|
|
11247
|
+
"type": "string"
|
|
11248
|
+
}
|
|
11249
|
+
},
|
|
11258
11250
|
{
|
|
11259
11251
|
"in": "header",
|
|
11260
11252
|
"name": "user-agent",
|
|
@@ -11277,7 +11269,7 @@
|
|
|
11277
11269
|
"content": {
|
|
11278
11270
|
"application/json": {
|
|
11279
11271
|
"schema": {
|
|
11280
|
-
"$ref": "#/components/schemas/
|
|
11272
|
+
"$ref": "#/components/schemas/GetFileResponse"
|
|
11281
11273
|
}
|
|
11282
11274
|
}
|
|
11283
11275
|
},
|
|
@@ -11303,6 +11295,16 @@
|
|
|
11303
11295
|
},
|
|
11304
11296
|
"description": "The credential may not perform this action, or the account is blocked."
|
|
11305
11297
|
},
|
|
11298
|
+
"404": {
|
|
11299
|
+
"content": {
|
|
11300
|
+
"application/json": {
|
|
11301
|
+
"schema": {
|
|
11302
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
11303
|
+
}
|
|
11304
|
+
}
|
|
11305
|
+
},
|
|
11306
|
+
"description": "No such file in your account."
|
|
11307
|
+
},
|
|
11306
11308
|
"422": {
|
|
11307
11309
|
"content": {
|
|
11308
11310
|
"application/json": {
|
|
@@ -11319,7 +11321,7 @@
|
|
|
11319
11321
|
"HTTPBearer": []
|
|
11320
11322
|
}
|
|
11321
11323
|
],
|
|
11322
|
-
"summary": "Get
|
|
11324
|
+
"summary": "Get File",
|
|
11323
11325
|
"tags": [
|
|
11324
11326
|
"v1"
|
|
11325
11327
|
]
|
|
@@ -12662,7 +12664,7 @@
|
|
|
12662
12664
|
},
|
|
12663
12665
|
"/sessions": {
|
|
12664
12666
|
"get": {
|
|
12665
|
-
"description": "List cloud agent sessions.\n\nOptionally filtered by config, source, time window,
|
|
12667
|
+
"description": "List cloud agent sessions.\n\nOptionally filtered by config, source, time window, attributed\nauthor, repository, and whether the session is still going.",
|
|
12666
12668
|
"operationId": "list_agent_sessions",
|
|
12667
12669
|
"parameters": [
|
|
12668
12670
|
{
|
|
@@ -12778,6 +12780,36 @@
|
|
|
12778
12780
|
"title": "Author Id"
|
|
12779
12781
|
}
|
|
12780
12782
|
},
|
|
12783
|
+
{
|
|
12784
|
+
"description": "\"owner/name\" (exact) or a bare repo name, matched the same way as on GET /v1/sessions/search. Sessions whose repository is named only inside their agent config \u2014 dashboard starts, cron, handoffs \u2014 do not match.",
|
|
12785
|
+
"in": "query",
|
|
12786
|
+
"name": "repo",
|
|
12787
|
+
"required": false,
|
|
12788
|
+
"schema": {
|
|
12789
|
+
"anyOf": [
|
|
12790
|
+
{
|
|
12791
|
+
"type": "string"
|
|
12792
|
+
},
|
|
12793
|
+
{
|
|
12794
|
+
"type": "null"
|
|
12795
|
+
}
|
|
12796
|
+
],
|
|
12797
|
+
"description": "\"owner/name\" (exact) or a bare repo name, matched the same way as on GET /v1/sessions/search. Sessions whose repository is named only inside their agent config \u2014 dashboard starts, cron, handoffs \u2014 do not match.",
|
|
12798
|
+
"title": "Repo"
|
|
12799
|
+
}
|
|
12800
|
+
},
|
|
12801
|
+
{
|
|
12802
|
+
"description": "Keep only sessions whose conversation is still going \u2014 live or sleeping \u2014 dropping the ones that completed, errored, or were stopped or cancelled. A session parked between turns counts as unfinished.",
|
|
12803
|
+
"in": "query",
|
|
12804
|
+
"name": "unfinished",
|
|
12805
|
+
"required": false,
|
|
12806
|
+
"schema": {
|
|
12807
|
+
"default": false,
|
|
12808
|
+
"description": "Keep only sessions whose conversation is still going \u2014 live or sleeping \u2014 dropping the ones that completed, errored, or were stopped or cancelled. A session parked between turns counts as unfinished.",
|
|
12809
|
+
"title": "Unfinished",
|
|
12810
|
+
"type": "boolean"
|
|
12811
|
+
}
|
|
12812
|
+
},
|
|
12781
12813
|
{
|
|
12782
12814
|
"in": "header",
|
|
12783
12815
|
"name": "user-agent",
|
|
@@ -13624,7 +13656,7 @@
|
|
|
13624
13656
|
},
|
|
13625
13657
|
"/sessions/{session_id}/log": {
|
|
13626
13658
|
"get": {
|
|
13627
|
-
"description": "Download the complete session log.\n\nThe complete, ordered history of the session (agent output, tool calls, thinking,\nlifecycle events, sandbox output, message events) as an ordered\nmanifest of presigned segment URLs.\n\nSegments are gzip members: download in order and concatenate\nfor one file. The JSON API never carries the bytes (same\ntwo-step as
|
|
13659
|
+
"description": "Download the complete session log.\n\nThe complete, ordered history of the session (agent output, tool calls, thinking,\nlifecycle events, sandbox output, message events) as an ordered\nmanifest of presigned segment URLs.\n\nSegments are gzip members: download in order and concatenate\nfor one file. The JSON API never carries the bytes (same\ntwo-step as files). /records is the paged live view of the\nsame data.",
|
|
13628
13660
|
"operationId": "get_agent_session_log",
|
|
13629
13661
|
"parameters": [
|
|
13630
13662
|
{
|