@netlify/open-api 2.60.0 → 2.62.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 +442 -19
- package/dist/swagger.json +2211 -380
- package/package.json +1 -1
package/dist/swagger.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"swagger": "2.0",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.62.0",
|
|
5
5
|
"title": "Netlify's API documentation",
|
|
6
6
|
"description": "Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.\n\nThis document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify's API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).\n\nAdditionally, we have two API clients for your convenience:\n- [Go Client](https://github.com/netlify/open-api#go-client)\n- [JS Client](https://github.com/netlify/build/tree/main/packages/js-client)",
|
|
7
7
|
"termsOfService": "https://www.netlify.com/legal/terms-of-use/",
|
|
@@ -4863,7 +4863,7 @@
|
|
|
4863
4863
|
],
|
|
4864
4864
|
"responses": {
|
|
4865
4865
|
"202": {
|
|
4866
|
-
"description": "
|
|
4866
|
+
"description": "Accepted. The purge is queued and propagates across the CDN asynchronously. The response has no body and there is no status resource to poll for completion."
|
|
4867
4867
|
},
|
|
4868
4868
|
"400": {
|
|
4869
4869
|
"description": "Invalid request parameters"
|
|
@@ -5889,6 +5889,74 @@
|
|
|
5889
5889
|
"region": {
|
|
5890
5890
|
"type": "string",
|
|
5891
5891
|
"description": "Where the server runs. Defaults to the region configured at the site level\nwhen absent.\n"
|
|
5892
|
+
},
|
|
5893
|
+
"instance_size": {
|
|
5894
|
+
"type": "string",
|
|
5895
|
+
"enum": [
|
|
5896
|
+
"small",
|
|
5897
|
+
"medium",
|
|
5898
|
+
"large"
|
|
5899
|
+
],
|
|
5900
|
+
"description": "The size of the instances the server runs on. A default size is used when\nabsent.\n"
|
|
5901
|
+
},
|
|
5902
|
+
"routes": {
|
|
5903
|
+
"type": "array",
|
|
5904
|
+
"description": "The paths the server handles.",
|
|
5905
|
+
"x-omitempty": true,
|
|
5906
|
+
"items": {
|
|
5907
|
+
"type": "object",
|
|
5908
|
+
"properties": {
|
|
5909
|
+
"pattern": {
|
|
5910
|
+
"type": "string"
|
|
5911
|
+
},
|
|
5912
|
+
"literal": {
|
|
5913
|
+
"type": "string"
|
|
5914
|
+
},
|
|
5915
|
+
"expression": {
|
|
5916
|
+
"type": "string"
|
|
5917
|
+
},
|
|
5918
|
+
"methods": {
|
|
5919
|
+
"type": "array",
|
|
5920
|
+
"items": {
|
|
5921
|
+
"type": "string",
|
|
5922
|
+
"enum": [
|
|
5923
|
+
"GET",
|
|
5924
|
+
"POST",
|
|
5925
|
+
"PUT",
|
|
5926
|
+
"PATCH",
|
|
5927
|
+
"DELETE",
|
|
5928
|
+
"OPTIONS"
|
|
5929
|
+
]
|
|
5930
|
+
}
|
|
5931
|
+
},
|
|
5932
|
+
"prefer_static": {
|
|
5933
|
+
"type": "boolean"
|
|
5934
|
+
}
|
|
5935
|
+
}
|
|
5936
|
+
}
|
|
5937
|
+
},
|
|
5938
|
+
"excluded_routes": {
|
|
5939
|
+
"type": "array",
|
|
5940
|
+
"description": "Paths within `routes` that the server does not handle.",
|
|
5941
|
+
"x-omitempty": true,
|
|
5942
|
+
"items": {
|
|
5943
|
+
"type": "object",
|
|
5944
|
+
"properties": {
|
|
5945
|
+
"pattern": {
|
|
5946
|
+
"type": "string"
|
|
5947
|
+
},
|
|
5948
|
+
"literal": {
|
|
5949
|
+
"type": "string"
|
|
5950
|
+
},
|
|
5951
|
+
"expression": {
|
|
5952
|
+
"type": "string"
|
|
5953
|
+
}
|
|
5954
|
+
}
|
|
5955
|
+
}
|
|
5956
|
+
},
|
|
5957
|
+
"runtime_version": {
|
|
5958
|
+
"type": "string",
|
|
5959
|
+
"description": "The runtime version the server was built for, such as `nodejs24.x`. A\ndefault version is used when absent.\n"
|
|
5892
5960
|
}
|
|
5893
5961
|
}
|
|
5894
5962
|
},
|
|
@@ -6542,6 +6610,74 @@
|
|
|
6542
6610
|
"region": {
|
|
6543
6611
|
"type": "string",
|
|
6544
6612
|
"description": "Where the server runs. Defaults to the region configured at the site level\nwhen absent.\n"
|
|
6613
|
+
},
|
|
6614
|
+
"instance_size": {
|
|
6615
|
+
"type": "string",
|
|
6616
|
+
"enum": [
|
|
6617
|
+
"small",
|
|
6618
|
+
"medium",
|
|
6619
|
+
"large"
|
|
6620
|
+
],
|
|
6621
|
+
"description": "The size of the instances the server runs on. A default size is used when\nabsent.\n"
|
|
6622
|
+
},
|
|
6623
|
+
"routes": {
|
|
6624
|
+
"type": "array",
|
|
6625
|
+
"description": "The paths the server handles.",
|
|
6626
|
+
"x-omitempty": true,
|
|
6627
|
+
"items": {
|
|
6628
|
+
"type": "object",
|
|
6629
|
+
"properties": {
|
|
6630
|
+
"pattern": {
|
|
6631
|
+
"type": "string"
|
|
6632
|
+
},
|
|
6633
|
+
"literal": {
|
|
6634
|
+
"type": "string"
|
|
6635
|
+
},
|
|
6636
|
+
"expression": {
|
|
6637
|
+
"type": "string"
|
|
6638
|
+
},
|
|
6639
|
+
"methods": {
|
|
6640
|
+
"type": "array",
|
|
6641
|
+
"items": {
|
|
6642
|
+
"type": "string",
|
|
6643
|
+
"enum": [
|
|
6644
|
+
"GET",
|
|
6645
|
+
"POST",
|
|
6646
|
+
"PUT",
|
|
6647
|
+
"PATCH",
|
|
6648
|
+
"DELETE",
|
|
6649
|
+
"OPTIONS"
|
|
6650
|
+
]
|
|
6651
|
+
}
|
|
6652
|
+
},
|
|
6653
|
+
"prefer_static": {
|
|
6654
|
+
"type": "boolean"
|
|
6655
|
+
}
|
|
6656
|
+
}
|
|
6657
|
+
}
|
|
6658
|
+
},
|
|
6659
|
+
"excluded_routes": {
|
|
6660
|
+
"type": "array",
|
|
6661
|
+
"description": "Paths within `routes` that the server does not handle.",
|
|
6662
|
+
"x-omitempty": true,
|
|
6663
|
+
"items": {
|
|
6664
|
+
"type": "object",
|
|
6665
|
+
"properties": {
|
|
6666
|
+
"pattern": {
|
|
6667
|
+
"type": "string"
|
|
6668
|
+
},
|
|
6669
|
+
"literal": {
|
|
6670
|
+
"type": "string"
|
|
6671
|
+
},
|
|
6672
|
+
"expression": {
|
|
6673
|
+
"type": "string"
|
|
6674
|
+
}
|
|
6675
|
+
}
|
|
6676
|
+
}
|
|
6677
|
+
},
|
|
6678
|
+
"runtime_version": {
|
|
6679
|
+
"type": "string",
|
|
6680
|
+
"description": "The runtime version the server was built for, such as `nodejs24.x`. A\ndefault version is used when absent.\n"
|
|
6545
6681
|
}
|
|
6546
6682
|
}
|
|
6547
6683
|
},
|
|
@@ -7471,6 +7607,20 @@
|
|
|
7471
7607
|
"in": "query",
|
|
7472
7608
|
"type": "boolean"
|
|
7473
7609
|
},
|
|
7610
|
+
{
|
|
7611
|
+
"name": "commit_sha",
|
|
7612
|
+
"description": "The commit SHA to build; when omitted, the head of the branch or pull request is fetched from the git host. Ignored for zip uploads",
|
|
7613
|
+
"required": false,
|
|
7614
|
+
"in": "query",
|
|
7615
|
+
"type": "string"
|
|
7616
|
+
},
|
|
7617
|
+
{
|
|
7618
|
+
"name": "draft",
|
|
7619
|
+
"description": "Whether to create a draft deploy, which uses the deploy-preview context and is never published; review_id builds are always drafts",
|
|
7620
|
+
"required": false,
|
|
7621
|
+
"in": "query",
|
|
7622
|
+
"type": "boolean"
|
|
7623
|
+
},
|
|
7474
7624
|
{
|
|
7475
7625
|
"name": "image",
|
|
7476
7626
|
"description": "The build image tag to use for the build",
|
|
@@ -7478,6 +7628,13 @@
|
|
|
7478
7628
|
"in": "query",
|
|
7479
7629
|
"type": "string"
|
|
7480
7630
|
},
|
|
7631
|
+
{
|
|
7632
|
+
"name": "review_id",
|
|
7633
|
+
"description": "The merge/pull request ID to build; triggers a deploy preview. Ignored for zip uploads",
|
|
7634
|
+
"required": false,
|
|
7635
|
+
"in": "query",
|
|
7636
|
+
"type": "integer"
|
|
7637
|
+
},
|
|
7481
7638
|
{
|
|
7482
7639
|
"name": "template_id",
|
|
7483
7640
|
"description": "The build template to use for the build",
|
|
@@ -13351,15 +13508,16 @@
|
|
|
13351
13508
|
"tags": [
|
|
13352
13509
|
"agentRunner"
|
|
13353
13510
|
],
|
|
13511
|
+
"description": "Lists a site's agent runs, most recently active first. Archived runs are left out unless `state` is `archived`.",
|
|
13354
13512
|
"parameters": [
|
|
13355
13513
|
{
|
|
13356
|
-
"name": "
|
|
13514
|
+
"name": "site_id",
|
|
13357
13515
|
"type": "string",
|
|
13358
13516
|
"in": "query",
|
|
13359
13517
|
"required": true
|
|
13360
13518
|
},
|
|
13361
13519
|
{
|
|
13362
|
-
"name": "
|
|
13520
|
+
"name": "account_id",
|
|
13363
13521
|
"type": "string",
|
|
13364
13522
|
"in": "query",
|
|
13365
13523
|
"required": true
|
|
@@ -13382,10 +13540,7 @@
|
|
|
13382
13540
|
"name": "state",
|
|
13383
13541
|
"type": "string",
|
|
13384
13542
|
"in": "query",
|
|
13385
|
-
"
|
|
13386
|
-
"live",
|
|
13387
|
-
"error"
|
|
13388
|
-
]
|
|
13543
|
+
"description": "Only runs in this state: `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`."
|
|
13389
13544
|
},
|
|
13390
13545
|
{
|
|
13391
13546
|
"name": "title",
|
|
@@ -13402,15 +13557,23 @@
|
|
|
13402
13557
|
"type": "string",
|
|
13403
13558
|
"in": "query"
|
|
13404
13559
|
},
|
|
13560
|
+
{
|
|
13561
|
+
"name": "user_id",
|
|
13562
|
+
"type": "string",
|
|
13563
|
+
"in": "query",
|
|
13564
|
+
"description": "Only runs started by this user."
|
|
13565
|
+
},
|
|
13405
13566
|
{
|
|
13406
13567
|
"name": "from",
|
|
13407
13568
|
"type": "integer",
|
|
13408
|
-
"in": "query"
|
|
13569
|
+
"in": "query",
|
|
13570
|
+
"description": "Unix timestamp. Only runs created at or after this time."
|
|
13409
13571
|
},
|
|
13410
13572
|
{
|
|
13411
13573
|
"name": "to",
|
|
13412
13574
|
"type": "integer",
|
|
13413
|
-
"in": "query"
|
|
13575
|
+
"in": "query",
|
|
13576
|
+
"description": "Unix timestamp. Only runs created before this time."
|
|
13414
13577
|
}
|
|
13415
13578
|
],
|
|
13416
13579
|
"responses": {
|
|
@@ -13431,7 +13594,8 @@
|
|
|
13431
13594
|
"type": "string"
|
|
13432
13595
|
},
|
|
13433
13596
|
"state": {
|
|
13434
|
-
"type": "string"
|
|
13597
|
+
"type": "string",
|
|
13598
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`."
|
|
13435
13599
|
},
|
|
13436
13600
|
"created_at": {
|
|
13437
13601
|
"type": "string",
|
|
@@ -13461,7 +13625,8 @@
|
|
|
13461
13625
|
"type": "string"
|
|
13462
13626
|
},
|
|
13463
13627
|
"pr_state": {
|
|
13464
|
-
"type": "string"
|
|
13628
|
+
"type": "string",
|
|
13629
|
+
"description": "One of `open`, `draft`, `merged` or `closed`."
|
|
13465
13630
|
},
|
|
13466
13631
|
"pr_number": {
|
|
13467
13632
|
"type": "integer"
|
|
@@ -13473,7 +13638,8 @@
|
|
|
13473
13638
|
"type": "string"
|
|
13474
13639
|
},
|
|
13475
13640
|
"current_task": {
|
|
13476
|
-
"type": "string"
|
|
13641
|
+
"type": "string",
|
|
13642
|
+
"description": "What the agent is working on in the active session."
|
|
13477
13643
|
},
|
|
13478
13644
|
"result_diff": {
|
|
13479
13645
|
"type": "string"
|
|
@@ -13503,12 +13669,20 @@
|
|
|
13503
13669
|
"type": "string",
|
|
13504
13670
|
"format": "dateTime"
|
|
13505
13671
|
},
|
|
13672
|
+
"has_result_diff": {
|
|
13673
|
+
"type": "boolean",
|
|
13674
|
+
"description": "Whether the run has changes, available from `GET /agent_runners/{agent_runner_id}/diff`."
|
|
13675
|
+
},
|
|
13506
13676
|
"latest_session_deploy_id": {
|
|
13507
13677
|
"type": "string"
|
|
13508
13678
|
},
|
|
13509
13679
|
"latest_session_deploy_url": {
|
|
13510
13680
|
"type": "string"
|
|
13511
13681
|
},
|
|
13682
|
+
"preview_state": {
|
|
13683
|
+
"type": "string",
|
|
13684
|
+
"description": "State of the deploy building the latest preview. Null until that deploy exists; `ready` once the preview is live."
|
|
13685
|
+
},
|
|
13512
13686
|
"user": {
|
|
13513
13687
|
"type": "object",
|
|
13514
13688
|
"properties": {
|
|
@@ -13623,7 +13797,8 @@
|
|
|
13623
13797
|
"type": "string"
|
|
13624
13798
|
},
|
|
13625
13799
|
"state": {
|
|
13626
|
-
"type": "string"
|
|
13800
|
+
"type": "string",
|
|
13801
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`."
|
|
13627
13802
|
},
|
|
13628
13803
|
"created_at": {
|
|
13629
13804
|
"type": "string",
|
|
@@ -13653,7 +13828,8 @@
|
|
|
13653
13828
|
"type": "string"
|
|
13654
13829
|
},
|
|
13655
13830
|
"pr_state": {
|
|
13656
|
-
"type": "string"
|
|
13831
|
+
"type": "string",
|
|
13832
|
+
"description": "One of `open`, `draft`, `merged` or `closed`."
|
|
13657
13833
|
},
|
|
13658
13834
|
"pr_number": {
|
|
13659
13835
|
"type": "integer"
|
|
@@ -13665,7 +13841,8 @@
|
|
|
13665
13841
|
"type": "string"
|
|
13666
13842
|
},
|
|
13667
13843
|
"current_task": {
|
|
13668
|
-
"type": "string"
|
|
13844
|
+
"type": "string",
|
|
13845
|
+
"description": "What the agent is working on in the active session."
|
|
13669
13846
|
},
|
|
13670
13847
|
"result_diff": {
|
|
13671
13848
|
"type": "string"
|
|
@@ -13695,12 +13872,20 @@
|
|
|
13695
13872
|
"type": "string",
|
|
13696
13873
|
"format": "dateTime"
|
|
13697
13874
|
},
|
|
13875
|
+
"has_result_diff": {
|
|
13876
|
+
"type": "boolean",
|
|
13877
|
+
"description": "Whether the run has changes, available from `GET /agent_runners/{agent_runner_id}/diff`."
|
|
13878
|
+
},
|
|
13698
13879
|
"latest_session_deploy_id": {
|
|
13699
13880
|
"type": "string"
|
|
13700
13881
|
},
|
|
13701
13882
|
"latest_session_deploy_url": {
|
|
13702
13883
|
"type": "string"
|
|
13703
13884
|
},
|
|
13885
|
+
"preview_state": {
|
|
13886
|
+
"type": "string",
|
|
13887
|
+
"description": "State of the deploy building the latest preview. Null until that deploy exists; `ready` once the preview is live."
|
|
13888
|
+
},
|
|
13704
13889
|
"user": {
|
|
13705
13890
|
"type": "object",
|
|
13706
13891
|
"properties": {
|
|
@@ -13749,78 +13934,72 @@
|
|
|
13749
13934
|
}
|
|
13750
13935
|
}
|
|
13751
13936
|
},
|
|
13752
|
-
"/agent_runners
|
|
13937
|
+
"/sites/{site_id}/agent_runners": {
|
|
13938
|
+
"parameters": [
|
|
13939
|
+
{
|
|
13940
|
+
"name": "site_id",
|
|
13941
|
+
"type": "string",
|
|
13942
|
+
"in": "path",
|
|
13943
|
+
"required": true,
|
|
13944
|
+
"description": "The site's ID or one of its hostnames."
|
|
13945
|
+
}
|
|
13946
|
+
],
|
|
13753
13947
|
"post": {
|
|
13754
|
-
"
|
|
13755
|
-
"operationId": "createAgentRunnerUploadUrl",
|
|
13948
|
+
"operationId": "createSiteAgentRunner",
|
|
13756
13949
|
"tags": [
|
|
13757
13950
|
"agentRunner"
|
|
13758
13951
|
],
|
|
13952
|
+
"description": "Starts an agent run on the site.",
|
|
13759
13953
|
"parameters": [
|
|
13760
13954
|
{
|
|
13761
|
-
"name": "
|
|
13762
|
-
"
|
|
13763
|
-
"
|
|
13764
|
-
"required": true
|
|
13765
|
-
},
|
|
13766
|
-
{
|
|
13767
|
-
"name": "filename",
|
|
13768
|
-
"type": "string",
|
|
13769
|
-
"in": "query",
|
|
13770
|
-
"required": true
|
|
13771
|
-
},
|
|
13772
|
-
{
|
|
13773
|
-
"name": "content_type",
|
|
13774
|
-
"type": "string",
|
|
13775
|
-
"in": "query",
|
|
13776
|
-
"required": true
|
|
13777
|
-
}
|
|
13778
|
-
],
|
|
13779
|
-
"responses": {
|
|
13780
|
-
"200": {
|
|
13781
|
-
"description": "OK"
|
|
13782
|
-
},
|
|
13783
|
-
"400": {
|
|
13784
|
-
"description": "Bad Request"
|
|
13785
|
-
},
|
|
13786
|
-
"422": {
|
|
13787
|
-
"description": "Unprocessable Entity"
|
|
13788
|
-
},
|
|
13789
|
-
"default": {
|
|
13790
|
-
"description": "error",
|
|
13955
|
+
"name": "agent_runner",
|
|
13956
|
+
"in": "body",
|
|
13957
|
+
"required": true,
|
|
13791
13958
|
"schema": {
|
|
13792
13959
|
"type": "object",
|
|
13793
13960
|
"required": [
|
|
13794
|
-
"
|
|
13961
|
+
"prompt"
|
|
13795
13962
|
],
|
|
13796
13963
|
"properties": {
|
|
13797
|
-
"
|
|
13798
|
-
"type": "
|
|
13799
|
-
"format": "int64"
|
|
13964
|
+
"prompt": {
|
|
13965
|
+
"type": "string"
|
|
13800
13966
|
},
|
|
13801
|
-
"
|
|
13967
|
+
"branch": {
|
|
13802
13968
|
"type": "string",
|
|
13803
|
-
"
|
|
13969
|
+
"description": "Branch to start from. Defaults to the site's production branch."
|
|
13970
|
+
},
|
|
13971
|
+
"deploy_id": {
|
|
13972
|
+
"type": "string",
|
|
13973
|
+
"description": "Deploy to start from. Takes precedence over `branch`."
|
|
13974
|
+
},
|
|
13975
|
+
"agent": {
|
|
13976
|
+
"type": "string",
|
|
13977
|
+
"description": "Agent to run, for example `claude` or `codex`."
|
|
13978
|
+
},
|
|
13979
|
+
"model": {
|
|
13980
|
+
"type": "string",
|
|
13981
|
+
"description": "Model for the agent to use. Omit to let Netlify choose."
|
|
13982
|
+
},
|
|
13983
|
+
"effort": {
|
|
13984
|
+
"type": "string",
|
|
13985
|
+
"enum": [
|
|
13986
|
+
"low",
|
|
13987
|
+
"medium",
|
|
13988
|
+
"high"
|
|
13989
|
+
],
|
|
13990
|
+
"description": "Reasoning effort. Omit to let the agent decide."
|
|
13991
|
+
},
|
|
13992
|
+
"mode": {
|
|
13993
|
+
"type": "string",
|
|
13994
|
+
"enum": [
|
|
13995
|
+
"normal",
|
|
13996
|
+
"ask"
|
|
13997
|
+
],
|
|
13998
|
+
"description": "`normal` (the default) changes code; `ask` answers questions without changing code."
|
|
13804
13999
|
}
|
|
13805
14000
|
}
|
|
13806
14001
|
}
|
|
13807
14002
|
}
|
|
13808
|
-
}
|
|
13809
|
-
}
|
|
13810
|
-
},
|
|
13811
|
-
"/agent_runners/{agent_runner_id}": {
|
|
13812
|
-
"parameters": [
|
|
13813
|
-
{
|
|
13814
|
-
"name": "agent_runner_id",
|
|
13815
|
-
"type": "string",
|
|
13816
|
-
"in": "path",
|
|
13817
|
-
"required": true
|
|
13818
|
-
}
|
|
13819
|
-
],
|
|
13820
|
-
"get": {
|
|
13821
|
-
"operationId": "getAgentRunner",
|
|
13822
|
-
"tags": [
|
|
13823
|
-
"agentRunner"
|
|
13824
14003
|
],
|
|
13825
14004
|
"responses": {
|
|
13826
14005
|
"200": {
|
|
@@ -13838,7 +14017,8 @@
|
|
|
13838
14017
|
"type": "string"
|
|
13839
14018
|
},
|
|
13840
14019
|
"state": {
|
|
13841
|
-
"type": "string"
|
|
14020
|
+
"type": "string",
|
|
14021
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`."
|
|
13842
14022
|
},
|
|
13843
14023
|
"created_at": {
|
|
13844
14024
|
"type": "string",
|
|
@@ -13868,7 +14048,8 @@
|
|
|
13868
14048
|
"type": "string"
|
|
13869
14049
|
},
|
|
13870
14050
|
"pr_state": {
|
|
13871
|
-
"type": "string"
|
|
14051
|
+
"type": "string",
|
|
14052
|
+
"description": "One of `open`, `draft`, `merged` or `closed`."
|
|
13872
14053
|
},
|
|
13873
14054
|
"pr_number": {
|
|
13874
14055
|
"type": "integer"
|
|
@@ -13880,7 +14061,8 @@
|
|
|
13880
14061
|
"type": "string"
|
|
13881
14062
|
},
|
|
13882
14063
|
"current_task": {
|
|
13883
|
-
"type": "string"
|
|
14064
|
+
"type": "string",
|
|
14065
|
+
"description": "What the agent is working on in the active session."
|
|
13884
14066
|
},
|
|
13885
14067
|
"result_diff": {
|
|
13886
14068
|
"type": "string"
|
|
@@ -13910,12 +14092,20 @@
|
|
|
13910
14092
|
"type": "string",
|
|
13911
14093
|
"format": "dateTime"
|
|
13912
14094
|
},
|
|
14095
|
+
"has_result_diff": {
|
|
14096
|
+
"type": "boolean",
|
|
14097
|
+
"description": "Whether the run has changes, available from `GET /agent_runners/{agent_runner_id}/diff`."
|
|
14098
|
+
},
|
|
13913
14099
|
"latest_session_deploy_id": {
|
|
13914
14100
|
"type": "string"
|
|
13915
14101
|
},
|
|
13916
14102
|
"latest_session_deploy_url": {
|
|
13917
14103
|
"type": "string"
|
|
13918
14104
|
},
|
|
14105
|
+
"preview_state": {
|
|
14106
|
+
"type": "string",
|
|
14107
|
+
"description": "State of the deploy building the latest preview. Null until that deploy exists; `ready` once the preview is live."
|
|
14108
|
+
},
|
|
13919
14109
|
"user": {
|
|
13920
14110
|
"type": "object",
|
|
13921
14111
|
"properties": {
|
|
@@ -13936,33 +14126,257 @@
|
|
|
13936
14126
|
}
|
|
13937
14127
|
}
|
|
13938
14128
|
},
|
|
13939
|
-
"
|
|
13940
|
-
"description": "
|
|
14129
|
+
"400": {
|
|
14130
|
+
"description": "`prompt_required` or `invalid_request`.",
|
|
13941
14131
|
"schema": {
|
|
13942
|
-
"
|
|
13943
|
-
|
|
13944
|
-
|
|
13945
|
-
|
|
13946
|
-
|
|
13947
|
-
|
|
13948
|
-
"
|
|
13949
|
-
|
|
14132
|
+
"allOf": [
|
|
14133
|
+
{
|
|
14134
|
+
"type": "object",
|
|
14135
|
+
"required": [
|
|
14136
|
+
"message"
|
|
14137
|
+
],
|
|
14138
|
+
"properties": {
|
|
14139
|
+
"code": {
|
|
14140
|
+
"type": "integer",
|
|
14141
|
+
"format": "int64"
|
|
14142
|
+
},
|
|
14143
|
+
"message": {
|
|
14144
|
+
"type": "string",
|
|
14145
|
+
"x-nullable": false
|
|
14146
|
+
}
|
|
14147
|
+
}
|
|
13950
14148
|
},
|
|
13951
|
-
|
|
13952
|
-
"
|
|
13953
|
-
|
|
14149
|
+
{
|
|
14150
|
+
"properties": {
|
|
14151
|
+
"error_code": {
|
|
14152
|
+
"type": "string",
|
|
14153
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
14154
|
+
}
|
|
14155
|
+
}
|
|
13954
14156
|
}
|
|
13955
|
-
|
|
14157
|
+
]
|
|
13956
14158
|
}
|
|
13957
|
-
}
|
|
13958
|
-
|
|
13959
|
-
|
|
13960
|
-
|
|
13961
|
-
|
|
13962
|
-
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
|
|
14159
|
+
},
|
|
14160
|
+
"403": {
|
|
14161
|
+
"description": "`plan_not_eligible` or `ai_credit_limit_disabled`.",
|
|
14162
|
+
"schema": {
|
|
14163
|
+
"allOf": [
|
|
14164
|
+
{
|
|
14165
|
+
"type": "object",
|
|
14166
|
+
"required": [
|
|
14167
|
+
"message"
|
|
14168
|
+
],
|
|
14169
|
+
"properties": {
|
|
14170
|
+
"code": {
|
|
14171
|
+
"type": "integer",
|
|
14172
|
+
"format": "int64"
|
|
14173
|
+
},
|
|
14174
|
+
"message": {
|
|
14175
|
+
"type": "string",
|
|
14176
|
+
"x-nullable": false
|
|
14177
|
+
}
|
|
14178
|
+
}
|
|
14179
|
+
},
|
|
14180
|
+
{
|
|
14181
|
+
"properties": {
|
|
14182
|
+
"error_code": {
|
|
14183
|
+
"type": "string",
|
|
14184
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
14185
|
+
}
|
|
14186
|
+
}
|
|
14187
|
+
}
|
|
14188
|
+
]
|
|
14189
|
+
}
|
|
14190
|
+
},
|
|
14191
|
+
"404": {
|
|
14192
|
+
"description": "The site or deploy wasn't found (`deploy_not_found`), the deploy's files are no longer available (`deploy_zip_unavailable`), or agent runners aren't enabled for the site.",
|
|
14193
|
+
"schema": {
|
|
14194
|
+
"allOf": [
|
|
14195
|
+
{
|
|
14196
|
+
"type": "object",
|
|
14197
|
+
"required": [
|
|
14198
|
+
"message"
|
|
14199
|
+
],
|
|
14200
|
+
"properties": {
|
|
14201
|
+
"code": {
|
|
14202
|
+
"type": "integer",
|
|
14203
|
+
"format": "int64"
|
|
14204
|
+
},
|
|
14205
|
+
"message": {
|
|
14206
|
+
"type": "string",
|
|
14207
|
+
"x-nullable": false
|
|
14208
|
+
}
|
|
14209
|
+
}
|
|
14210
|
+
},
|
|
14211
|
+
{
|
|
14212
|
+
"properties": {
|
|
14213
|
+
"error_code": {
|
|
14214
|
+
"type": "string",
|
|
14215
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
14216
|
+
}
|
|
14217
|
+
}
|
|
14218
|
+
}
|
|
14219
|
+
]
|
|
14220
|
+
}
|
|
14221
|
+
},
|
|
14222
|
+
"422": {
|
|
14223
|
+
"description": "`deploy_zip_unavailable`.",
|
|
14224
|
+
"schema": {
|
|
14225
|
+
"allOf": [
|
|
14226
|
+
{
|
|
14227
|
+
"type": "object",
|
|
14228
|
+
"required": [
|
|
14229
|
+
"message"
|
|
14230
|
+
],
|
|
14231
|
+
"properties": {
|
|
14232
|
+
"code": {
|
|
14233
|
+
"type": "integer",
|
|
14234
|
+
"format": "int64"
|
|
14235
|
+
},
|
|
14236
|
+
"message": {
|
|
14237
|
+
"type": "string",
|
|
14238
|
+
"x-nullable": false
|
|
14239
|
+
}
|
|
14240
|
+
}
|
|
14241
|
+
},
|
|
14242
|
+
{
|
|
14243
|
+
"properties": {
|
|
14244
|
+
"error_code": {
|
|
14245
|
+
"type": "string",
|
|
14246
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
14247
|
+
}
|
|
14248
|
+
}
|
|
14249
|
+
}
|
|
14250
|
+
]
|
|
14251
|
+
}
|
|
14252
|
+
},
|
|
14253
|
+
"429": {
|
|
14254
|
+
"description": "`concurrency_limit_reached`, `ai_credit_limit_exceeded` or `ai_credit_limit_reached`.",
|
|
14255
|
+
"schema": {
|
|
14256
|
+
"allOf": [
|
|
14257
|
+
{
|
|
14258
|
+
"type": "object",
|
|
14259
|
+
"required": [
|
|
14260
|
+
"message"
|
|
14261
|
+
],
|
|
14262
|
+
"properties": {
|
|
14263
|
+
"code": {
|
|
14264
|
+
"type": "integer",
|
|
14265
|
+
"format": "int64"
|
|
14266
|
+
},
|
|
14267
|
+
"message": {
|
|
14268
|
+
"type": "string",
|
|
14269
|
+
"x-nullable": false
|
|
14270
|
+
}
|
|
14271
|
+
}
|
|
14272
|
+
},
|
|
14273
|
+
{
|
|
14274
|
+
"properties": {
|
|
14275
|
+
"error_code": {
|
|
14276
|
+
"type": "string",
|
|
14277
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
14278
|
+
}
|
|
14279
|
+
}
|
|
14280
|
+
}
|
|
14281
|
+
]
|
|
14282
|
+
}
|
|
14283
|
+
},
|
|
14284
|
+
"default": {
|
|
14285
|
+
"description": "error",
|
|
14286
|
+
"schema": {
|
|
14287
|
+
"type": "object",
|
|
14288
|
+
"required": [
|
|
14289
|
+
"message"
|
|
14290
|
+
],
|
|
14291
|
+
"properties": {
|
|
14292
|
+
"code": {
|
|
14293
|
+
"type": "integer",
|
|
14294
|
+
"format": "int64"
|
|
14295
|
+
},
|
|
14296
|
+
"message": {
|
|
14297
|
+
"type": "string",
|
|
14298
|
+
"x-nullable": false
|
|
14299
|
+
}
|
|
14300
|
+
}
|
|
14301
|
+
}
|
|
14302
|
+
}
|
|
14303
|
+
}
|
|
14304
|
+
}
|
|
14305
|
+
},
|
|
14306
|
+
"/agent_runners/upload_url": {
|
|
14307
|
+
"post": {
|
|
14308
|
+
"x-internal": true,
|
|
14309
|
+
"operationId": "createAgentRunnerUploadUrl",
|
|
14310
|
+
"tags": [
|
|
14311
|
+
"agentRunner"
|
|
14312
|
+
],
|
|
14313
|
+
"parameters": [
|
|
14314
|
+
{
|
|
14315
|
+
"name": "account_id",
|
|
14316
|
+
"type": "string",
|
|
14317
|
+
"in": "query",
|
|
14318
|
+
"required": true
|
|
14319
|
+
},
|
|
14320
|
+
{
|
|
14321
|
+
"name": "filename",
|
|
14322
|
+
"type": "string",
|
|
14323
|
+
"in": "query",
|
|
14324
|
+
"required": true
|
|
14325
|
+
},
|
|
14326
|
+
{
|
|
14327
|
+
"name": "content_type",
|
|
14328
|
+
"type": "string",
|
|
14329
|
+
"in": "query",
|
|
14330
|
+
"required": true
|
|
14331
|
+
}
|
|
14332
|
+
],
|
|
14333
|
+
"responses": {
|
|
14334
|
+
"200": {
|
|
14335
|
+
"description": "OK"
|
|
14336
|
+
},
|
|
14337
|
+
"400": {
|
|
14338
|
+
"description": "Bad Request"
|
|
14339
|
+
},
|
|
14340
|
+
"422": {
|
|
14341
|
+
"description": "Unprocessable Entity"
|
|
14342
|
+
},
|
|
14343
|
+
"default": {
|
|
14344
|
+
"description": "error",
|
|
14345
|
+
"schema": {
|
|
14346
|
+
"type": "object",
|
|
14347
|
+
"required": [
|
|
14348
|
+
"message"
|
|
14349
|
+
],
|
|
14350
|
+
"properties": {
|
|
14351
|
+
"code": {
|
|
14352
|
+
"type": "integer",
|
|
14353
|
+
"format": "int64"
|
|
14354
|
+
},
|
|
14355
|
+
"message": {
|
|
14356
|
+
"type": "string",
|
|
14357
|
+
"x-nullable": false
|
|
14358
|
+
}
|
|
14359
|
+
}
|
|
14360
|
+
}
|
|
14361
|
+
}
|
|
14362
|
+
}
|
|
14363
|
+
}
|
|
14364
|
+
},
|
|
14365
|
+
"/agent_runners/{agent_runner_id}": {
|
|
14366
|
+
"parameters": [
|
|
14367
|
+
{
|
|
14368
|
+
"name": "agent_runner_id",
|
|
14369
|
+
"type": "string",
|
|
14370
|
+
"in": "path",
|
|
14371
|
+
"required": true
|
|
14372
|
+
}
|
|
14373
|
+
],
|
|
14374
|
+
"get": {
|
|
14375
|
+
"operationId": "getAgentRunner",
|
|
14376
|
+
"tags": [
|
|
14377
|
+
"agentRunner"
|
|
14378
|
+
],
|
|
14379
|
+
"responses": {
|
|
13966
14380
|
"200": {
|
|
13967
14381
|
"description": "OK",
|
|
13968
14382
|
"schema": {
|
|
@@ -13978,7 +14392,8 @@
|
|
|
13978
14392
|
"type": "string"
|
|
13979
14393
|
},
|
|
13980
14394
|
"state": {
|
|
13981
|
-
"type": "string"
|
|
14395
|
+
"type": "string",
|
|
14396
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`."
|
|
13982
14397
|
},
|
|
13983
14398
|
"created_at": {
|
|
13984
14399
|
"type": "string",
|
|
@@ -14008,7 +14423,8 @@
|
|
|
14008
14423
|
"type": "string"
|
|
14009
14424
|
},
|
|
14010
14425
|
"pr_state": {
|
|
14011
|
-
"type": "string"
|
|
14426
|
+
"type": "string",
|
|
14427
|
+
"description": "One of `open`, `draft`, `merged` or `closed`."
|
|
14012
14428
|
},
|
|
14013
14429
|
"pr_number": {
|
|
14014
14430
|
"type": "integer"
|
|
@@ -14020,7 +14436,8 @@
|
|
|
14020
14436
|
"type": "string"
|
|
14021
14437
|
},
|
|
14022
14438
|
"current_task": {
|
|
14023
|
-
"type": "string"
|
|
14439
|
+
"type": "string",
|
|
14440
|
+
"description": "What the agent is working on in the active session."
|
|
14024
14441
|
},
|
|
14025
14442
|
"result_diff": {
|
|
14026
14443
|
"type": "string"
|
|
@@ -14050,12 +14467,20 @@
|
|
|
14050
14467
|
"type": "string",
|
|
14051
14468
|
"format": "dateTime"
|
|
14052
14469
|
},
|
|
14470
|
+
"has_result_diff": {
|
|
14471
|
+
"type": "boolean",
|
|
14472
|
+
"description": "Whether the run has changes, available from `GET /agent_runners/{agent_runner_id}/diff`."
|
|
14473
|
+
},
|
|
14053
14474
|
"latest_session_deploy_id": {
|
|
14054
14475
|
"type": "string"
|
|
14055
14476
|
},
|
|
14056
14477
|
"latest_session_deploy_url": {
|
|
14057
14478
|
"type": "string"
|
|
14058
14479
|
},
|
|
14480
|
+
"preview_state": {
|
|
14481
|
+
"type": "string",
|
|
14482
|
+
"description": "State of the deploy building the latest preview. Null until that deploy exists; `ready` once the preview is live."
|
|
14483
|
+
},
|
|
14059
14484
|
"user": {
|
|
14060
14485
|
"type": "object",
|
|
14061
14486
|
"properties": {
|
|
@@ -14097,60 +14522,166 @@
|
|
|
14097
14522
|
}
|
|
14098
14523
|
}
|
|
14099
14524
|
},
|
|
14100
|
-
"
|
|
14101
|
-
"operationId": "
|
|
14525
|
+
"patch": {
|
|
14526
|
+
"operationId": "updateAgentRunner",
|
|
14102
14527
|
"tags": [
|
|
14103
14528
|
"agentRunner"
|
|
14104
14529
|
],
|
|
14105
14530
|
"responses": {
|
|
14106
|
-
"
|
|
14107
|
-
"description": "
|
|
14108
|
-
},
|
|
14109
|
-
"default": {
|
|
14110
|
-
"description": "error",
|
|
14531
|
+
"200": {
|
|
14532
|
+
"description": "OK",
|
|
14111
14533
|
"schema": {
|
|
14112
14534
|
"type": "object",
|
|
14113
|
-
"required": [
|
|
14114
|
-
"message"
|
|
14115
|
-
],
|
|
14116
14535
|
"properties": {
|
|
14117
|
-
"
|
|
14118
|
-
"type": "
|
|
14119
|
-
"format": "int64"
|
|
14536
|
+
"id": {
|
|
14537
|
+
"type": "string"
|
|
14120
14538
|
},
|
|
14121
|
-
"
|
|
14539
|
+
"site_id": {
|
|
14540
|
+
"type": "string"
|
|
14541
|
+
},
|
|
14542
|
+
"parent_agent_runner_id": {
|
|
14543
|
+
"type": "string"
|
|
14544
|
+
},
|
|
14545
|
+
"state": {
|
|
14122
14546
|
"type": "string",
|
|
14123
|
-
"
|
|
14124
|
-
}
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
|
|
14134
|
-
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14547
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`."
|
|
14548
|
+
},
|
|
14549
|
+
"created_at": {
|
|
14550
|
+
"type": "string",
|
|
14551
|
+
"format": "dateTime"
|
|
14552
|
+
},
|
|
14553
|
+
"updated_at": {
|
|
14554
|
+
"type": "string",
|
|
14555
|
+
"format": "dateTime"
|
|
14556
|
+
},
|
|
14557
|
+
"done_at": {
|
|
14558
|
+
"type": "string",
|
|
14559
|
+
"format": "dateTime"
|
|
14560
|
+
},
|
|
14561
|
+
"title": {
|
|
14562
|
+
"type": "string"
|
|
14563
|
+
},
|
|
14564
|
+
"branch": {
|
|
14565
|
+
"type": "string"
|
|
14566
|
+
},
|
|
14567
|
+
"result_branch": {
|
|
14568
|
+
"type": "string"
|
|
14569
|
+
},
|
|
14570
|
+
"pr_url": {
|
|
14571
|
+
"type": "string"
|
|
14572
|
+
},
|
|
14573
|
+
"pr_branch": {
|
|
14574
|
+
"type": "string"
|
|
14575
|
+
},
|
|
14576
|
+
"pr_state": {
|
|
14577
|
+
"type": "string",
|
|
14578
|
+
"description": "One of `open`, `draft`, `merged` or `closed`."
|
|
14579
|
+
},
|
|
14580
|
+
"pr_number": {
|
|
14581
|
+
"type": "integer"
|
|
14582
|
+
},
|
|
14583
|
+
"pr_is_being_created": {
|
|
14584
|
+
"type": "boolean"
|
|
14585
|
+
},
|
|
14586
|
+
"pr_error": {
|
|
14587
|
+
"type": "string"
|
|
14588
|
+
},
|
|
14589
|
+
"current_task": {
|
|
14590
|
+
"type": "string",
|
|
14591
|
+
"description": "What the agent is working on in the active session."
|
|
14592
|
+
},
|
|
14593
|
+
"result_diff": {
|
|
14594
|
+
"type": "string"
|
|
14595
|
+
},
|
|
14596
|
+
"sha": {
|
|
14597
|
+
"type": "string"
|
|
14598
|
+
},
|
|
14599
|
+
"merge_commit_sha": {
|
|
14600
|
+
"type": "string"
|
|
14601
|
+
},
|
|
14602
|
+
"merge_commit_error": {
|
|
14603
|
+
"type": "string"
|
|
14604
|
+
},
|
|
14605
|
+
"merge_commit_is_being_created": {
|
|
14606
|
+
"type": "boolean"
|
|
14607
|
+
},
|
|
14608
|
+
"base_deploy_id": {
|
|
14609
|
+
"type": "string"
|
|
14610
|
+
},
|
|
14611
|
+
"attached_file_keys": {
|
|
14612
|
+
"type": "array",
|
|
14613
|
+
"items": {
|
|
14614
|
+
"type": "string"
|
|
14615
|
+
}
|
|
14616
|
+
},
|
|
14617
|
+
"active_session_created_at": {
|
|
14618
|
+
"type": "string",
|
|
14619
|
+
"format": "dateTime"
|
|
14620
|
+
},
|
|
14621
|
+
"has_result_diff": {
|
|
14622
|
+
"type": "boolean",
|
|
14623
|
+
"description": "Whether the run has changes, available from `GET /agent_runners/{agent_runner_id}/diff`."
|
|
14624
|
+
},
|
|
14625
|
+
"latest_session_deploy_id": {
|
|
14626
|
+
"type": "string"
|
|
14627
|
+
},
|
|
14628
|
+
"latest_session_deploy_url": {
|
|
14629
|
+
"type": "string"
|
|
14630
|
+
},
|
|
14631
|
+
"preview_state": {
|
|
14632
|
+
"type": "string",
|
|
14633
|
+
"description": "State of the deploy building the latest preview. Null until that deploy exists; `ready` once the preview is live."
|
|
14634
|
+
},
|
|
14635
|
+
"user": {
|
|
14636
|
+
"type": "object",
|
|
14637
|
+
"properties": {
|
|
14638
|
+
"id": {
|
|
14639
|
+
"type": "string"
|
|
14640
|
+
},
|
|
14641
|
+
"full_name": {
|
|
14642
|
+
"type": "string"
|
|
14643
|
+
},
|
|
14644
|
+
"email": {
|
|
14645
|
+
"type": "string"
|
|
14646
|
+
},
|
|
14647
|
+
"avatar_url": {
|
|
14648
|
+
"type": "string"
|
|
14649
|
+
}
|
|
14650
|
+
}
|
|
14651
|
+
}
|
|
14652
|
+
}
|
|
14653
|
+
}
|
|
14654
|
+
},
|
|
14655
|
+
"default": {
|
|
14656
|
+
"description": "error",
|
|
14657
|
+
"schema": {
|
|
14658
|
+
"type": "object",
|
|
14659
|
+
"required": [
|
|
14660
|
+
"message"
|
|
14661
|
+
],
|
|
14662
|
+
"properties": {
|
|
14663
|
+
"code": {
|
|
14664
|
+
"type": "integer",
|
|
14665
|
+
"format": "int64"
|
|
14666
|
+
},
|
|
14667
|
+
"message": {
|
|
14668
|
+
"type": "string",
|
|
14669
|
+
"x-nullable": false
|
|
14670
|
+
}
|
|
14671
|
+
}
|
|
14672
|
+
}
|
|
14673
|
+
}
|
|
14674
|
+
}
|
|
14675
|
+
},
|
|
14676
|
+
"delete": {
|
|
14677
|
+
"operationId": "deleteAgentRunner",
|
|
14678
|
+
"tags": [
|
|
14679
|
+
"hiddenAgentRunner"
|
|
14680
|
+
],
|
|
14681
|
+
"description": "Same as `POST /agent_runners/{agent_runner_id}/stop`. Doesn't delete the run.",
|
|
14682
|
+
"responses": {
|
|
14683
|
+
"202": {
|
|
14684
|
+
"description": "Accepted. Same behavior as `stopAgentRunner`: the response has no body, the run's active sessions are set to `cancelled` before it returns, and the sandbox shuts down in the background. To confirm, poll `getAgentRunnerSession` (`GET /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}`) and check that `state` is `cancelled`."
|
|
14154
14685
|
},
|
|
14155
14686
|
"default": {
|
|
14156
14687
|
"description": "error",
|
|
@@ -14174,7 +14705,7 @@
|
|
|
14174
14705
|
}
|
|
14175
14706
|
}
|
|
14176
14707
|
},
|
|
14177
|
-
"/agent_runners/{agent_runner_id}/
|
|
14708
|
+
"/agent_runners/{agent_runner_id}/stop": {
|
|
14178
14709
|
"parameters": [
|
|
14179
14710
|
{
|
|
14180
14711
|
"name": "agent_runner_id",
|
|
@@ -14184,20 +14715,129 @@
|
|
|
14184
14715
|
}
|
|
14185
14716
|
],
|
|
14186
14717
|
"post": {
|
|
14187
|
-
"
|
|
14188
|
-
"
|
|
14718
|
+
"operationId": "stopAgentRunner",
|
|
14719
|
+
"tags": [
|
|
14720
|
+
"agentRunner"
|
|
14721
|
+
],
|
|
14722
|
+
"description": "Stops the run's active session. Stopping happens in the background.",
|
|
14723
|
+
"responses": {
|
|
14724
|
+
"202": {
|
|
14725
|
+
"description": "Accepted. The response has no body. The run's active sessions are set to `cancelled` before this returns, and the sandbox shuts down in the background. To confirm, poll `getAgentRunnerSession` (`GET /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}`) and check that `state` is `cancelled`."
|
|
14726
|
+
},
|
|
14727
|
+
"default": {
|
|
14728
|
+
"description": "error",
|
|
14729
|
+
"schema": {
|
|
14730
|
+
"type": "object",
|
|
14731
|
+
"required": [
|
|
14732
|
+
"message"
|
|
14733
|
+
],
|
|
14734
|
+
"properties": {
|
|
14735
|
+
"code": {
|
|
14736
|
+
"type": "integer",
|
|
14737
|
+
"format": "int64"
|
|
14738
|
+
},
|
|
14739
|
+
"message": {
|
|
14740
|
+
"type": "string",
|
|
14741
|
+
"x-nullable": false
|
|
14742
|
+
}
|
|
14743
|
+
}
|
|
14744
|
+
}
|
|
14745
|
+
}
|
|
14746
|
+
}
|
|
14747
|
+
}
|
|
14748
|
+
},
|
|
14749
|
+
"/agent_runners/{agent_runner_id}/diff": {
|
|
14750
|
+
"parameters": [
|
|
14751
|
+
{
|
|
14752
|
+
"name": "agent_runner_id",
|
|
14753
|
+
"type": "string",
|
|
14754
|
+
"in": "path",
|
|
14755
|
+
"required": true
|
|
14756
|
+
}
|
|
14757
|
+
],
|
|
14758
|
+
"get": {
|
|
14759
|
+
"operationId": "getAgentRunnerDiff",
|
|
14189
14760
|
"tags": [
|
|
14190
14761
|
"agentRunner"
|
|
14191
14762
|
],
|
|
14763
|
+
"description": "Returns the run's changes as a unified diff. With `page`, returns that page of changed files and sets pagination headers.",
|
|
14764
|
+
"produces": [
|
|
14765
|
+
"text/plain"
|
|
14766
|
+
],
|
|
14767
|
+
"parameters": [
|
|
14768
|
+
{
|
|
14769
|
+
"type": "integer",
|
|
14770
|
+
"format": "int32",
|
|
14771
|
+
"name": "page",
|
|
14772
|
+
"required": false,
|
|
14773
|
+
"in": "query"
|
|
14774
|
+
},
|
|
14775
|
+
{
|
|
14776
|
+
"type": "integer",
|
|
14777
|
+
"format": "int32",
|
|
14778
|
+
"name": "per_page",
|
|
14779
|
+
"required": false,
|
|
14780
|
+
"in": "query"
|
|
14781
|
+
},
|
|
14782
|
+
{
|
|
14783
|
+
"name": "strip_binary",
|
|
14784
|
+
"type": "boolean",
|
|
14785
|
+
"in": "query",
|
|
14786
|
+
"description": "Replace binary file contents with a placeholder, keeping the file headers."
|
|
14787
|
+
}
|
|
14788
|
+
],
|
|
14192
14789
|
"responses": {
|
|
14193
14790
|
"200": {
|
|
14194
|
-
"description": "OK"
|
|
14791
|
+
"description": "OK",
|
|
14792
|
+
"schema": {
|
|
14793
|
+
"type": "string"
|
|
14794
|
+
}
|
|
14195
14795
|
},
|
|
14196
|
-
"
|
|
14197
|
-
"description": "
|
|
14796
|
+
"404": {
|
|
14797
|
+
"description": "The run has no changes."
|
|
14198
14798
|
},
|
|
14199
|
-
"
|
|
14200
|
-
"description": "
|
|
14799
|
+
"default": {
|
|
14800
|
+
"description": "error",
|
|
14801
|
+
"schema": {
|
|
14802
|
+
"type": "object",
|
|
14803
|
+
"required": [
|
|
14804
|
+
"message"
|
|
14805
|
+
],
|
|
14806
|
+
"properties": {
|
|
14807
|
+
"code": {
|
|
14808
|
+
"type": "integer",
|
|
14809
|
+
"format": "int64"
|
|
14810
|
+
},
|
|
14811
|
+
"message": {
|
|
14812
|
+
"type": "string",
|
|
14813
|
+
"x-nullable": false
|
|
14814
|
+
}
|
|
14815
|
+
}
|
|
14816
|
+
}
|
|
14817
|
+
}
|
|
14818
|
+
}
|
|
14819
|
+
}
|
|
14820
|
+
},
|
|
14821
|
+
"/agent_runners/{agent_runner_id}/archive": {
|
|
14822
|
+
"parameters": [
|
|
14823
|
+
{
|
|
14824
|
+
"name": "agent_runner_id",
|
|
14825
|
+
"type": "string",
|
|
14826
|
+
"in": "path",
|
|
14827
|
+
"required": true
|
|
14828
|
+
}
|
|
14829
|
+
],
|
|
14830
|
+
"post": {
|
|
14831
|
+
"operationId": "archiveAgentRunner",
|
|
14832
|
+
"tags": [
|
|
14833
|
+
"agentRunner"
|
|
14834
|
+
],
|
|
14835
|
+
"responses": {
|
|
14836
|
+
"202": {
|
|
14837
|
+
"description": "Accepted. The response has no body. The archive is applied before this returns: `getAgentRunner` (`GET /agent_runners/{agent_runner_id}`) reports `state` as `archived`."
|
|
14838
|
+
},
|
|
14839
|
+
"404": {
|
|
14840
|
+
"description": "Not Found"
|
|
14201
14841
|
},
|
|
14202
14842
|
"422": {
|
|
14203
14843
|
"description": "Unprocessable Entity"
|
|
@@ -14224,7 +14864,7 @@
|
|
|
14224
14864
|
}
|
|
14225
14865
|
}
|
|
14226
14866
|
},
|
|
14227
|
-
"/agent_runners/{agent_runner_id}/
|
|
14867
|
+
"/agent_runners/{agent_runner_id}/pull_request": {
|
|
14228
14868
|
"parameters": [
|
|
14229
14869
|
{
|
|
14230
14870
|
"name": "agent_runner_id",
|
|
@@ -14235,18 +14875,10 @@
|
|
|
14235
14875
|
],
|
|
14236
14876
|
"post": {
|
|
14237
14877
|
"x-internal": true,
|
|
14238
|
-
"operationId": "
|
|
14878
|
+
"operationId": "agentRunnerPullRequest",
|
|
14239
14879
|
"tags": [
|
|
14240
14880
|
"agentRunner"
|
|
14241
14881
|
],
|
|
14242
|
-
"parameters": [
|
|
14243
|
-
{
|
|
14244
|
-
"name": "target_branch",
|
|
14245
|
-
"type": "string",
|
|
14246
|
-
"in": "query",
|
|
14247
|
-
"required": true
|
|
14248
|
-
}
|
|
14249
|
-
],
|
|
14250
14882
|
"responses": {
|
|
14251
14883
|
"200": {
|
|
14252
14884
|
"description": "OK"
|
|
@@ -14282,7 +14914,65 @@
|
|
|
14282
14914
|
}
|
|
14283
14915
|
}
|
|
14284
14916
|
},
|
|
14285
|
-
"/agent_runners/{agent_runner_id}/
|
|
14917
|
+
"/agent_runners/{agent_runner_id}/commit": {
|
|
14918
|
+
"parameters": [
|
|
14919
|
+
{
|
|
14920
|
+
"name": "agent_runner_id",
|
|
14921
|
+
"type": "string",
|
|
14922
|
+
"in": "path",
|
|
14923
|
+
"required": true
|
|
14924
|
+
}
|
|
14925
|
+
],
|
|
14926
|
+
"post": {
|
|
14927
|
+
"x-internal": true,
|
|
14928
|
+
"operationId": "agentRunnerCommitToBranch",
|
|
14929
|
+
"tags": [
|
|
14930
|
+
"agentRunner"
|
|
14931
|
+
],
|
|
14932
|
+
"parameters": [
|
|
14933
|
+
{
|
|
14934
|
+
"name": "target_branch",
|
|
14935
|
+
"type": "string",
|
|
14936
|
+
"in": "query",
|
|
14937
|
+
"required": true
|
|
14938
|
+
}
|
|
14939
|
+
],
|
|
14940
|
+
"responses": {
|
|
14941
|
+
"200": {
|
|
14942
|
+
"description": "OK"
|
|
14943
|
+
},
|
|
14944
|
+
"400": {
|
|
14945
|
+
"description": "Bad Request"
|
|
14946
|
+
},
|
|
14947
|
+
"409": {
|
|
14948
|
+
"description": "Conflict"
|
|
14949
|
+
},
|
|
14950
|
+
"422": {
|
|
14951
|
+
"description": "Unprocessable Entity"
|
|
14952
|
+
},
|
|
14953
|
+
"default": {
|
|
14954
|
+
"description": "error",
|
|
14955
|
+
"schema": {
|
|
14956
|
+
"type": "object",
|
|
14957
|
+
"required": [
|
|
14958
|
+
"message"
|
|
14959
|
+
],
|
|
14960
|
+
"properties": {
|
|
14961
|
+
"code": {
|
|
14962
|
+
"type": "integer",
|
|
14963
|
+
"format": "int64"
|
|
14964
|
+
},
|
|
14965
|
+
"message": {
|
|
14966
|
+
"type": "string",
|
|
14967
|
+
"x-nullable": false
|
|
14968
|
+
}
|
|
14969
|
+
}
|
|
14970
|
+
}
|
|
14971
|
+
}
|
|
14972
|
+
}
|
|
14973
|
+
}
|
|
14974
|
+
},
|
|
14975
|
+
"/agent_runners/{agent_runner_id}/sessions": {
|
|
14286
14976
|
"parameters": [
|
|
14287
14977
|
{
|
|
14288
14978
|
"name": "agent_runner_id",
|
|
@@ -14315,20 +15005,19 @@
|
|
|
14315
15005
|
"name": "state",
|
|
14316
15006
|
"type": "string",
|
|
14317
15007
|
"in": "query",
|
|
14318
|
-
"
|
|
14319
|
-
"live",
|
|
14320
|
-
"error"
|
|
14321
|
-
]
|
|
15008
|
+
"description": "Only sessions in this state: `new`, `running`, `await_input`, `interrupted`, `error`, `done` or `cancelled`."
|
|
14322
15009
|
},
|
|
14323
15010
|
{
|
|
14324
15011
|
"name": "from",
|
|
14325
15012
|
"type": "integer",
|
|
14326
|
-
"in": "query"
|
|
15013
|
+
"in": "query",
|
|
15014
|
+
"description": "Unix timestamp. Only sessions created at or after this time."
|
|
14327
15015
|
},
|
|
14328
15016
|
{
|
|
14329
15017
|
"name": "to",
|
|
14330
15018
|
"type": "integer",
|
|
14331
|
-
"in": "query"
|
|
15019
|
+
"in": "query",
|
|
15020
|
+
"description": "Unix timestamp. Only sessions created before this time."
|
|
14332
15021
|
},
|
|
14333
15022
|
{
|
|
14334
15023
|
"name": "order_by",
|
|
@@ -14344,114 +15033,609 @@
|
|
|
14344
15033
|
"200": {
|
|
14345
15034
|
"description": "OK",
|
|
14346
15035
|
"schema": {
|
|
14347
|
-
"type": "array",
|
|
14348
|
-
"items": {
|
|
14349
|
-
"type": "object",
|
|
14350
|
-
"properties": {
|
|
14351
|
-
"id": {
|
|
14352
|
-
"type": "string"
|
|
14353
|
-
},
|
|
14354
|
-
"agent_runner_id": {
|
|
14355
|
-
"type": "string"
|
|
14356
|
-
},
|
|
14357
|
-
"dev_server_id": {
|
|
14358
|
-
"type": "string"
|
|
14359
|
-
},
|
|
14360
|
-
"state": {
|
|
14361
|
-
"type": "string"
|
|
14362
|
-
|
|
14363
|
-
|
|
14364
|
-
|
|
14365
|
-
"
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
|
|
14369
|
-
"
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
"
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
|
|
14379
|
-
"
|
|
14380
|
-
},
|
|
14381
|
-
"
|
|
14382
|
-
"type": "
|
|
14383
|
-
|
|
14384
|
-
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
15036
|
+
"type": "array",
|
|
15037
|
+
"items": {
|
|
15038
|
+
"type": "object",
|
|
15039
|
+
"properties": {
|
|
15040
|
+
"id": {
|
|
15041
|
+
"type": "string"
|
|
15042
|
+
},
|
|
15043
|
+
"agent_runner_id": {
|
|
15044
|
+
"type": "string"
|
|
15045
|
+
},
|
|
15046
|
+
"dev_server_id": {
|
|
15047
|
+
"type": "string"
|
|
15048
|
+
},
|
|
15049
|
+
"state": {
|
|
15050
|
+
"type": "string",
|
|
15051
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done` or `cancelled`."
|
|
15052
|
+
},
|
|
15053
|
+
"created_at": {
|
|
15054
|
+
"type": "string",
|
|
15055
|
+
"format": "dateTime"
|
|
15056
|
+
},
|
|
15057
|
+
"updated_at": {
|
|
15058
|
+
"type": "string",
|
|
15059
|
+
"format": "dateTime"
|
|
15060
|
+
},
|
|
15061
|
+
"done_at": {
|
|
15062
|
+
"type": "string",
|
|
15063
|
+
"format": "dateTime"
|
|
15064
|
+
},
|
|
15065
|
+
"paused_at": {
|
|
15066
|
+
"type": "string",
|
|
15067
|
+
"format": "dateTime",
|
|
15068
|
+
"description": "When the session paused waiting on an interaction. Null once it resumes."
|
|
15069
|
+
},
|
|
15070
|
+
"title": {
|
|
15071
|
+
"type": "string"
|
|
15072
|
+
},
|
|
15073
|
+
"prompt": {
|
|
15074
|
+
"type": "string"
|
|
15075
|
+
},
|
|
15076
|
+
"agent_config": {
|
|
15077
|
+
"type": "object",
|
|
15078
|
+
"properties": {
|
|
15079
|
+
"agent": {
|
|
15080
|
+
"type": "string"
|
|
15081
|
+
},
|
|
15082
|
+
"model": {
|
|
15083
|
+
"type": "string"
|
|
15084
|
+
}
|
|
15085
|
+
}
|
|
15086
|
+
},
|
|
15087
|
+
"result": {
|
|
15088
|
+
"type": "string",
|
|
15089
|
+
"description": "The agent's summary of what it did."
|
|
15090
|
+
},
|
|
15091
|
+
"result_diff": {
|
|
15092
|
+
"type": "string"
|
|
15093
|
+
},
|
|
15094
|
+
"commit_sha": {
|
|
15095
|
+
"type": "string"
|
|
15096
|
+
},
|
|
15097
|
+
"deploy_id": {
|
|
15098
|
+
"type": "string"
|
|
15099
|
+
},
|
|
15100
|
+
"deploy_url": {
|
|
15101
|
+
"type": "string",
|
|
15102
|
+
"description": "URL of the session's deploy preview."
|
|
15103
|
+
},
|
|
15104
|
+
"duration": {
|
|
15105
|
+
"type": "integer"
|
|
15106
|
+
},
|
|
15107
|
+
"usage": {
|
|
15108
|
+
"type": "object",
|
|
15109
|
+
"properties": {
|
|
15110
|
+
"total_input_tokens": {
|
|
15111
|
+
"type": "integer"
|
|
15112
|
+
},
|
|
15113
|
+
"total_output_tokens": {
|
|
15114
|
+
"type": "integer"
|
|
15115
|
+
},
|
|
15116
|
+
"total_cached_input_tokens": {
|
|
15117
|
+
"type": "integer"
|
|
15118
|
+
},
|
|
15119
|
+
"total_cached_output_tokens": {
|
|
15120
|
+
"type": "integer"
|
|
15121
|
+
},
|
|
15122
|
+
"total_tokens": {
|
|
15123
|
+
"type": "integer"
|
|
15124
|
+
},
|
|
15125
|
+
"total_credits_cost": {
|
|
15126
|
+
"type": "number",
|
|
15127
|
+
"description": "Credits the session used."
|
|
15128
|
+
}
|
|
15129
|
+
}
|
|
15130
|
+
},
|
|
15131
|
+
"interactions": {
|
|
15132
|
+
"type": "object",
|
|
15133
|
+
"description": "Questions and requests from the agent, keyed by reference ID. A pending one pauses the session in `await_input` until it's answered or skipped.",
|
|
15134
|
+
"additionalProperties": {
|
|
15135
|
+
"type": "object",
|
|
15136
|
+
"properties": {
|
|
15137
|
+
"type": {
|
|
15138
|
+
"type": "string",
|
|
15139
|
+
"description": "One of `question`, `authorization` or `setup_request`. Only questions can be answered; the others can only be skipped."
|
|
15140
|
+
},
|
|
15141
|
+
"status": {
|
|
15142
|
+
"type": "string",
|
|
15143
|
+
"description": "One of `pending`, `answered` or `skipped`."
|
|
15144
|
+
},
|
|
15145
|
+
"payload": {
|
|
15146
|
+
"description": "For a question, an array of questions, each with `question`, an optional `header`, `multiSelect` and `options` (each with `label` and an optional `description`). For `authorization` and `setup_request`, an object describing the request."
|
|
15147
|
+
},
|
|
15148
|
+
"response": {
|
|
15149
|
+
"type": "array",
|
|
15150
|
+
"description": "Answers aligned to `payload`; null entries were skipped.",
|
|
15151
|
+
"items": {}
|
|
15152
|
+
}
|
|
15153
|
+
}
|
|
15154
|
+
}
|
|
15155
|
+
},
|
|
15156
|
+
"steps": {
|
|
15157
|
+
"type": "array",
|
|
15158
|
+
"items": {
|
|
15159
|
+
"type": "object",
|
|
15160
|
+
"properties": {
|
|
15161
|
+
"title": {
|
|
15162
|
+
"type": "string"
|
|
15163
|
+
},
|
|
15164
|
+
"message": {
|
|
15165
|
+
"type": "string"
|
|
15166
|
+
}
|
|
15167
|
+
}
|
|
15168
|
+
}
|
|
15169
|
+
},
|
|
15170
|
+
"user": {
|
|
15171
|
+
"type": "object",
|
|
15172
|
+
"properties": {
|
|
15173
|
+
"id": {
|
|
15174
|
+
"type": "string"
|
|
15175
|
+
},
|
|
15176
|
+
"full_name": {
|
|
15177
|
+
"type": "string"
|
|
15178
|
+
},
|
|
15179
|
+
"email": {
|
|
15180
|
+
"type": "string"
|
|
15181
|
+
},
|
|
15182
|
+
"avatar_url": {
|
|
15183
|
+
"type": "string"
|
|
15184
|
+
}
|
|
15185
|
+
}
|
|
15186
|
+
},
|
|
15187
|
+
"attached_file_keys": {
|
|
15188
|
+
"type": "array",
|
|
15189
|
+
"items": {
|
|
15190
|
+
"type": "string"
|
|
15191
|
+
}
|
|
15192
|
+
},
|
|
15193
|
+
"result_zip_file_name": {
|
|
15194
|
+
"type": "string"
|
|
15195
|
+
},
|
|
15196
|
+
"is_published": {
|
|
15197
|
+
"type": "boolean"
|
|
15198
|
+
}
|
|
15199
|
+
}
|
|
15200
|
+
}
|
|
15201
|
+
}
|
|
15202
|
+
},
|
|
15203
|
+
"default": {
|
|
15204
|
+
"description": "error",
|
|
15205
|
+
"schema": {
|
|
15206
|
+
"type": "object",
|
|
15207
|
+
"required": [
|
|
15208
|
+
"message"
|
|
15209
|
+
],
|
|
15210
|
+
"properties": {
|
|
15211
|
+
"code": {
|
|
15212
|
+
"type": "integer",
|
|
15213
|
+
"format": "int64"
|
|
15214
|
+
},
|
|
15215
|
+
"message": {
|
|
15216
|
+
"type": "string",
|
|
15217
|
+
"x-nullable": false
|
|
15218
|
+
}
|
|
15219
|
+
}
|
|
15220
|
+
}
|
|
15221
|
+
}
|
|
15222
|
+
}
|
|
15223
|
+
},
|
|
15224
|
+
"post": {
|
|
15225
|
+
"operationId": "createAgentRunnerSession",
|
|
15226
|
+
"tags": [
|
|
15227
|
+
"agentRunnerSession"
|
|
15228
|
+
],
|
|
15229
|
+
"description": "Starts a follow-up session on the run.",
|
|
15230
|
+
"parameters": [
|
|
15231
|
+
{
|
|
15232
|
+
"name": "agent_runner_session",
|
|
15233
|
+
"in": "body",
|
|
15234
|
+
"schema": {
|
|
15235
|
+
"type": "object",
|
|
15236
|
+
"properties": {
|
|
15237
|
+
"prompt": {
|
|
15238
|
+
"type": "string",
|
|
15239
|
+
"description": "What the agent should do. Required."
|
|
15240
|
+
},
|
|
15241
|
+
"agent": {
|
|
15242
|
+
"type": "string"
|
|
15243
|
+
},
|
|
15244
|
+
"model": {
|
|
15245
|
+
"type": "string",
|
|
15246
|
+
"description": "Model for the agent to use. Omit to let Netlify choose."
|
|
15247
|
+
},
|
|
15248
|
+
"mode": {
|
|
15249
|
+
"type": "string",
|
|
15250
|
+
"enum": [
|
|
15251
|
+
"normal",
|
|
15252
|
+
"ask"
|
|
15253
|
+
],
|
|
15254
|
+
"description": "`normal` (the default) changes code; `ask` answers questions without changing code."
|
|
15255
|
+
}
|
|
15256
|
+
}
|
|
15257
|
+
}
|
|
15258
|
+
},
|
|
15259
|
+
{
|
|
15260
|
+
"name": "prompt",
|
|
15261
|
+
"type": "string",
|
|
15262
|
+
"in": "query",
|
|
15263
|
+
"description": "Use the request body instead."
|
|
15264
|
+
},
|
|
15265
|
+
{
|
|
15266
|
+
"name": "agent",
|
|
15267
|
+
"type": "string",
|
|
15268
|
+
"in": "query",
|
|
15269
|
+
"description": "Use the request body instead."
|
|
15270
|
+
},
|
|
15271
|
+
{
|
|
15272
|
+
"name": "model",
|
|
15273
|
+
"type": "string",
|
|
15274
|
+
"in": "query",
|
|
15275
|
+
"description": "Use the request body instead."
|
|
15276
|
+
},
|
|
15277
|
+
{
|
|
15278
|
+
"name": "file_keys",
|
|
15279
|
+
"type": "array",
|
|
15280
|
+
"in": "query",
|
|
15281
|
+
"items": {
|
|
15282
|
+
"type": "string"
|
|
15283
|
+
},
|
|
15284
|
+
"description": "Use the request body instead."
|
|
15285
|
+
}
|
|
15286
|
+
],
|
|
15287
|
+
"responses": {
|
|
15288
|
+
"200": {
|
|
15289
|
+
"description": "OK",
|
|
15290
|
+
"schema": {
|
|
15291
|
+
"type": "object",
|
|
15292
|
+
"properties": {
|
|
15293
|
+
"id": {
|
|
15294
|
+
"type": "string"
|
|
15295
|
+
},
|
|
15296
|
+
"agent_runner_id": {
|
|
15297
|
+
"type": "string"
|
|
15298
|
+
},
|
|
15299
|
+
"dev_server_id": {
|
|
15300
|
+
"type": "string"
|
|
15301
|
+
},
|
|
15302
|
+
"state": {
|
|
15303
|
+
"type": "string",
|
|
15304
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done` or `cancelled`."
|
|
15305
|
+
},
|
|
15306
|
+
"created_at": {
|
|
15307
|
+
"type": "string",
|
|
15308
|
+
"format": "dateTime"
|
|
15309
|
+
},
|
|
15310
|
+
"updated_at": {
|
|
15311
|
+
"type": "string",
|
|
15312
|
+
"format": "dateTime"
|
|
15313
|
+
},
|
|
15314
|
+
"done_at": {
|
|
15315
|
+
"type": "string",
|
|
15316
|
+
"format": "dateTime"
|
|
15317
|
+
},
|
|
15318
|
+
"paused_at": {
|
|
15319
|
+
"type": "string",
|
|
15320
|
+
"format": "dateTime",
|
|
15321
|
+
"description": "When the session paused waiting on an interaction. Null once it resumes."
|
|
15322
|
+
},
|
|
15323
|
+
"title": {
|
|
15324
|
+
"type": "string"
|
|
15325
|
+
},
|
|
15326
|
+
"prompt": {
|
|
15327
|
+
"type": "string"
|
|
15328
|
+
},
|
|
15329
|
+
"agent_config": {
|
|
15330
|
+
"type": "object",
|
|
15331
|
+
"properties": {
|
|
15332
|
+
"agent": {
|
|
15333
|
+
"type": "string"
|
|
15334
|
+
},
|
|
15335
|
+
"model": {
|
|
15336
|
+
"type": "string"
|
|
15337
|
+
}
|
|
15338
|
+
}
|
|
15339
|
+
},
|
|
15340
|
+
"result": {
|
|
15341
|
+
"type": "string",
|
|
15342
|
+
"description": "The agent's summary of what it did."
|
|
15343
|
+
},
|
|
15344
|
+
"result_diff": {
|
|
15345
|
+
"type": "string"
|
|
15346
|
+
},
|
|
15347
|
+
"commit_sha": {
|
|
15348
|
+
"type": "string"
|
|
15349
|
+
},
|
|
15350
|
+
"deploy_id": {
|
|
15351
|
+
"type": "string"
|
|
15352
|
+
},
|
|
15353
|
+
"deploy_url": {
|
|
15354
|
+
"type": "string",
|
|
15355
|
+
"description": "URL of the session's deploy preview."
|
|
15356
|
+
},
|
|
15357
|
+
"duration": {
|
|
15358
|
+
"type": "integer"
|
|
15359
|
+
},
|
|
15360
|
+
"usage": {
|
|
15361
|
+
"type": "object",
|
|
15362
|
+
"properties": {
|
|
15363
|
+
"total_input_tokens": {
|
|
15364
|
+
"type": "integer"
|
|
15365
|
+
},
|
|
15366
|
+
"total_output_tokens": {
|
|
15367
|
+
"type": "integer"
|
|
15368
|
+
},
|
|
15369
|
+
"total_cached_input_tokens": {
|
|
15370
|
+
"type": "integer"
|
|
15371
|
+
},
|
|
15372
|
+
"total_cached_output_tokens": {
|
|
15373
|
+
"type": "integer"
|
|
15374
|
+
},
|
|
15375
|
+
"total_tokens": {
|
|
15376
|
+
"type": "integer"
|
|
15377
|
+
},
|
|
15378
|
+
"total_credits_cost": {
|
|
15379
|
+
"type": "number",
|
|
15380
|
+
"description": "Credits the session used."
|
|
15381
|
+
}
|
|
15382
|
+
}
|
|
15383
|
+
},
|
|
15384
|
+
"interactions": {
|
|
15385
|
+
"type": "object",
|
|
15386
|
+
"description": "Questions and requests from the agent, keyed by reference ID. A pending one pauses the session in `await_input` until it's answered or skipped.",
|
|
15387
|
+
"additionalProperties": {
|
|
15388
|
+
"type": "object",
|
|
15389
|
+
"properties": {
|
|
15390
|
+
"type": {
|
|
15391
|
+
"type": "string",
|
|
15392
|
+
"description": "One of `question`, `authorization` or `setup_request`. Only questions can be answered; the others can only be skipped."
|
|
15393
|
+
},
|
|
15394
|
+
"status": {
|
|
15395
|
+
"type": "string",
|
|
15396
|
+
"description": "One of `pending`, `answered` or `skipped`."
|
|
15397
|
+
},
|
|
15398
|
+
"payload": {
|
|
15399
|
+
"description": "For a question, an array of questions, each with `question`, an optional `header`, `multiSelect` and `options` (each with `label` and an optional `description`). For `authorization` and `setup_request`, an object describing the request."
|
|
15400
|
+
},
|
|
15401
|
+
"response": {
|
|
15402
|
+
"type": "array",
|
|
15403
|
+
"description": "Answers aligned to `payload`; null entries were skipped.",
|
|
15404
|
+
"items": {}
|
|
15405
|
+
}
|
|
15406
|
+
}
|
|
15407
|
+
}
|
|
15408
|
+
},
|
|
15409
|
+
"steps": {
|
|
15410
|
+
"type": "array",
|
|
15411
|
+
"items": {
|
|
15412
|
+
"type": "object",
|
|
15413
|
+
"properties": {
|
|
15414
|
+
"title": {
|
|
15415
|
+
"type": "string"
|
|
15416
|
+
},
|
|
15417
|
+
"message": {
|
|
15418
|
+
"type": "string"
|
|
15419
|
+
}
|
|
15420
|
+
}
|
|
15421
|
+
}
|
|
15422
|
+
},
|
|
15423
|
+
"user": {
|
|
15424
|
+
"type": "object",
|
|
15425
|
+
"properties": {
|
|
15426
|
+
"id": {
|
|
15427
|
+
"type": "string"
|
|
15428
|
+
},
|
|
15429
|
+
"full_name": {
|
|
15430
|
+
"type": "string"
|
|
15431
|
+
},
|
|
15432
|
+
"email": {
|
|
15433
|
+
"type": "string"
|
|
15434
|
+
},
|
|
15435
|
+
"avatar_url": {
|
|
15436
|
+
"type": "string"
|
|
15437
|
+
}
|
|
15438
|
+
}
|
|
15439
|
+
},
|
|
15440
|
+
"attached_file_keys": {
|
|
15441
|
+
"type": "array",
|
|
15442
|
+
"items": {
|
|
15443
|
+
"type": "string"
|
|
15444
|
+
}
|
|
15445
|
+
},
|
|
15446
|
+
"result_zip_file_name": {
|
|
15447
|
+
"type": "string"
|
|
15448
|
+
},
|
|
15449
|
+
"is_published": {
|
|
15450
|
+
"type": "boolean"
|
|
15451
|
+
}
|
|
15452
|
+
}
|
|
15453
|
+
}
|
|
15454
|
+
},
|
|
15455
|
+
"400": {
|
|
15456
|
+
"description": "`prompt_required` or `invalid_request`.",
|
|
15457
|
+
"schema": {
|
|
15458
|
+
"allOf": [
|
|
15459
|
+
{
|
|
15460
|
+
"type": "object",
|
|
15461
|
+
"required": [
|
|
15462
|
+
"message"
|
|
15463
|
+
],
|
|
15464
|
+
"properties": {
|
|
15465
|
+
"code": {
|
|
15466
|
+
"type": "integer",
|
|
15467
|
+
"format": "int64"
|
|
15468
|
+
},
|
|
15469
|
+
"message": {
|
|
15470
|
+
"type": "string",
|
|
15471
|
+
"x-nullable": false
|
|
15472
|
+
}
|
|
15473
|
+
}
|
|
15474
|
+
},
|
|
15475
|
+
{
|
|
15476
|
+
"properties": {
|
|
15477
|
+
"error_code": {
|
|
15478
|
+
"type": "string",
|
|
15479
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
15480
|
+
}
|
|
15481
|
+
}
|
|
15482
|
+
}
|
|
15483
|
+
]
|
|
15484
|
+
}
|
|
15485
|
+
},
|
|
15486
|
+
"403": {
|
|
15487
|
+
"description": "`plan_not_eligible` or `ai_credit_limit_disabled`.",
|
|
15488
|
+
"schema": {
|
|
15489
|
+
"allOf": [
|
|
15490
|
+
{
|
|
15491
|
+
"type": "object",
|
|
15492
|
+
"required": [
|
|
15493
|
+
"message"
|
|
15494
|
+
],
|
|
15495
|
+
"properties": {
|
|
15496
|
+
"code": {
|
|
15497
|
+
"type": "integer",
|
|
15498
|
+
"format": "int64"
|
|
15499
|
+
},
|
|
15500
|
+
"message": {
|
|
15501
|
+
"type": "string",
|
|
15502
|
+
"x-nullable": false
|
|
15503
|
+
}
|
|
15504
|
+
}
|
|
15505
|
+
},
|
|
15506
|
+
{
|
|
15507
|
+
"properties": {
|
|
15508
|
+
"error_code": {
|
|
15509
|
+
"type": "string",
|
|
15510
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
15511
|
+
}
|
|
15512
|
+
}
|
|
15513
|
+
}
|
|
15514
|
+
]
|
|
15515
|
+
}
|
|
15516
|
+
},
|
|
15517
|
+
"404": {
|
|
15518
|
+
"description": "Not Found",
|
|
15519
|
+
"schema": {
|
|
15520
|
+
"allOf": [
|
|
15521
|
+
{
|
|
15522
|
+
"type": "object",
|
|
15523
|
+
"required": [
|
|
15524
|
+
"message"
|
|
15525
|
+
],
|
|
15526
|
+
"properties": {
|
|
15527
|
+
"code": {
|
|
15528
|
+
"type": "integer",
|
|
15529
|
+
"format": "int64"
|
|
15530
|
+
},
|
|
15531
|
+
"message": {
|
|
15532
|
+
"type": "string",
|
|
15533
|
+
"x-nullable": false
|
|
15534
|
+
}
|
|
15535
|
+
}
|
|
15536
|
+
},
|
|
15537
|
+
{
|
|
15538
|
+
"properties": {
|
|
15539
|
+
"error_code": {
|
|
15540
|
+
"type": "string",
|
|
15541
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
15542
|
+
}
|
|
15543
|
+
}
|
|
15544
|
+
}
|
|
15545
|
+
]
|
|
15546
|
+
}
|
|
15547
|
+
},
|
|
15548
|
+
"409": {
|
|
15549
|
+
"description": "`active_session_exists` while a session is still running, or `follow_up_unavailable` once the run is publishing or published.",
|
|
15550
|
+
"schema": {
|
|
15551
|
+
"allOf": [
|
|
15552
|
+
{
|
|
15553
|
+
"type": "object",
|
|
15554
|
+
"required": [
|
|
15555
|
+
"message"
|
|
15556
|
+
],
|
|
15557
|
+
"properties": {
|
|
15558
|
+
"code": {
|
|
15559
|
+
"type": "integer",
|
|
15560
|
+
"format": "int64"
|
|
15561
|
+
},
|
|
15562
|
+
"message": {
|
|
15563
|
+
"type": "string",
|
|
15564
|
+
"x-nullable": false
|
|
15565
|
+
}
|
|
15566
|
+
}
|
|
15567
|
+
},
|
|
15568
|
+
{
|
|
15569
|
+
"properties": {
|
|
15570
|
+
"error_code": {
|
|
15571
|
+
"type": "string",
|
|
15572
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
15573
|
+
}
|
|
15574
|
+
}
|
|
15575
|
+
}
|
|
15576
|
+
]
|
|
15577
|
+
}
|
|
15578
|
+
},
|
|
15579
|
+
"422": {
|
|
15580
|
+
"description": "`deploy_zip_unavailable`.",
|
|
15581
|
+
"schema": {
|
|
15582
|
+
"allOf": [
|
|
15583
|
+
{
|
|
15584
|
+
"type": "object",
|
|
15585
|
+
"required": [
|
|
15586
|
+
"message"
|
|
15587
|
+
],
|
|
15588
|
+
"properties": {
|
|
15589
|
+
"code": {
|
|
15590
|
+
"type": "integer",
|
|
15591
|
+
"format": "int64"
|
|
15592
|
+
},
|
|
15593
|
+
"message": {
|
|
15594
|
+
"type": "string",
|
|
15595
|
+
"x-nullable": false
|
|
14390
15596
|
}
|
|
14391
|
-
}
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
"commit_sha": {
|
|
14399
|
-
"type": "string"
|
|
14400
|
-
},
|
|
14401
|
-
"deploy_id": {
|
|
14402
|
-
"type": "string"
|
|
14403
|
-
},
|
|
14404
|
-
"deploy_url": {
|
|
14405
|
-
"type": "string"
|
|
14406
|
-
},
|
|
14407
|
-
"duration": {
|
|
14408
|
-
"type": "integer"
|
|
14409
|
-
},
|
|
14410
|
-
"steps": {
|
|
14411
|
-
"type": "array",
|
|
14412
|
-
"items": {
|
|
14413
|
-
"type": "object",
|
|
14414
|
-
"properties": {
|
|
14415
|
-
"title": {
|
|
14416
|
-
"type": "string"
|
|
14417
|
-
},
|
|
14418
|
-
"message": {
|
|
14419
|
-
"type": "string"
|
|
14420
|
-
}
|
|
14421
|
-
}
|
|
15597
|
+
}
|
|
15598
|
+
},
|
|
15599
|
+
{
|
|
15600
|
+
"properties": {
|
|
15601
|
+
"error_code": {
|
|
15602
|
+
"type": "string",
|
|
15603
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
14422
15604
|
}
|
|
14423
|
-
}
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
|
|
14431
|
-
|
|
14432
|
-
|
|
14433
|
-
|
|
14434
|
-
|
|
14435
|
-
|
|
14436
|
-
|
|
14437
|
-
|
|
14438
|
-
|
|
15605
|
+
}
|
|
15606
|
+
}
|
|
15607
|
+
]
|
|
15608
|
+
}
|
|
15609
|
+
},
|
|
15610
|
+
"429": {
|
|
15611
|
+
"description": "`concurrency_limit_reached`, `ai_credit_limit_exceeded` or `ai_credit_limit_reached`.",
|
|
15612
|
+
"schema": {
|
|
15613
|
+
"allOf": [
|
|
15614
|
+
{
|
|
15615
|
+
"type": "object",
|
|
15616
|
+
"required": [
|
|
15617
|
+
"message"
|
|
15618
|
+
],
|
|
15619
|
+
"properties": {
|
|
15620
|
+
"code": {
|
|
15621
|
+
"type": "integer",
|
|
15622
|
+
"format": "int64"
|
|
15623
|
+
},
|
|
15624
|
+
"message": {
|
|
15625
|
+
"type": "string",
|
|
15626
|
+
"x-nullable": false
|
|
14439
15627
|
}
|
|
14440
|
-
}
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
|
|
14444
|
-
|
|
15628
|
+
}
|
|
15629
|
+
},
|
|
15630
|
+
{
|
|
15631
|
+
"properties": {
|
|
15632
|
+
"error_code": {
|
|
15633
|
+
"type": "string",
|
|
15634
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
14445
15635
|
}
|
|
14446
|
-
},
|
|
14447
|
-
"result_zip_file_name": {
|
|
14448
|
-
"type": "string"
|
|
14449
|
-
},
|
|
14450
|
-
"is_published": {
|
|
14451
|
-
"type": "boolean"
|
|
14452
15636
|
}
|
|
14453
15637
|
}
|
|
14454
|
-
|
|
15638
|
+
]
|
|
14455
15639
|
}
|
|
14456
15640
|
},
|
|
14457
15641
|
"default": {
|
|
@@ -14474,37 +15658,28 @@
|
|
|
14474
15658
|
}
|
|
14475
15659
|
}
|
|
14476
15660
|
}
|
|
14477
|
-
}
|
|
14478
|
-
|
|
14479
|
-
|
|
15661
|
+
}
|
|
15662
|
+
},
|
|
15663
|
+
"/agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}": {
|
|
15664
|
+
"parameters": [
|
|
15665
|
+
{
|
|
15666
|
+
"name": "agent_runner_id",
|
|
15667
|
+
"type": "string",
|
|
15668
|
+
"in": "path",
|
|
15669
|
+
"required": true
|
|
15670
|
+
},
|
|
15671
|
+
{
|
|
15672
|
+
"name": "agent_runner_session_id",
|
|
15673
|
+
"type": "string",
|
|
15674
|
+
"in": "path",
|
|
15675
|
+
"required": true
|
|
15676
|
+
}
|
|
15677
|
+
],
|
|
15678
|
+
"get": {
|
|
15679
|
+
"operationId": "getAgentRunnerSession",
|
|
14480
15680
|
"tags": [
|
|
14481
15681
|
"agentRunnerSession"
|
|
14482
15682
|
],
|
|
14483
|
-
"parameters": [
|
|
14484
|
-
{
|
|
14485
|
-
"name": "prompt",
|
|
14486
|
-
"type": "string",
|
|
14487
|
-
"in": "query"
|
|
14488
|
-
},
|
|
14489
|
-
{
|
|
14490
|
-
"name": "agent",
|
|
14491
|
-
"type": "string",
|
|
14492
|
-
"in": "query"
|
|
14493
|
-
},
|
|
14494
|
-
{
|
|
14495
|
-
"name": "model",
|
|
14496
|
-
"type": "string",
|
|
14497
|
-
"in": "query"
|
|
14498
|
-
},
|
|
14499
|
-
{
|
|
14500
|
-
"name": "file_keys",
|
|
14501
|
-
"type": "array",
|
|
14502
|
-
"in": "query",
|
|
14503
|
-
"items": {
|
|
14504
|
-
"type": "string"
|
|
14505
|
-
}
|
|
14506
|
-
}
|
|
14507
|
-
],
|
|
14508
15683
|
"responses": {
|
|
14509
15684
|
"200": {
|
|
14510
15685
|
"description": "OK",
|
|
@@ -14521,7 +15696,8 @@
|
|
|
14521
15696
|
"type": "string"
|
|
14522
15697
|
},
|
|
14523
15698
|
"state": {
|
|
14524
|
-
"type": "string"
|
|
15699
|
+
"type": "string",
|
|
15700
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done` or `cancelled`."
|
|
14525
15701
|
},
|
|
14526
15702
|
"created_at": {
|
|
14527
15703
|
"type": "string",
|
|
@@ -14535,6 +15711,11 @@
|
|
|
14535
15711
|
"type": "string",
|
|
14536
15712
|
"format": "dateTime"
|
|
14537
15713
|
},
|
|
15714
|
+
"paused_at": {
|
|
15715
|
+
"type": "string",
|
|
15716
|
+
"format": "dateTime",
|
|
15717
|
+
"description": "When the session paused waiting on an interaction. Null once it resumes."
|
|
15718
|
+
},
|
|
14538
15719
|
"title": {
|
|
14539
15720
|
"type": "string"
|
|
14540
15721
|
},
|
|
@@ -14553,7 +15734,8 @@
|
|
|
14553
15734
|
}
|
|
14554
15735
|
},
|
|
14555
15736
|
"result": {
|
|
14556
|
-
"type": "string"
|
|
15737
|
+
"type": "string",
|
|
15738
|
+
"description": "The agent's summary of what it did."
|
|
14557
15739
|
},
|
|
14558
15740
|
"result_diff": {
|
|
14559
15741
|
"type": "string"
|
|
@@ -14565,11 +15747,61 @@
|
|
|
14565
15747
|
"type": "string"
|
|
14566
15748
|
},
|
|
14567
15749
|
"deploy_url": {
|
|
14568
|
-
"type": "string"
|
|
15750
|
+
"type": "string",
|
|
15751
|
+
"description": "URL of the session's deploy preview."
|
|
14569
15752
|
},
|
|
14570
15753
|
"duration": {
|
|
14571
15754
|
"type": "integer"
|
|
14572
15755
|
},
|
|
15756
|
+
"usage": {
|
|
15757
|
+
"type": "object",
|
|
15758
|
+
"properties": {
|
|
15759
|
+
"total_input_tokens": {
|
|
15760
|
+
"type": "integer"
|
|
15761
|
+
},
|
|
15762
|
+
"total_output_tokens": {
|
|
15763
|
+
"type": "integer"
|
|
15764
|
+
},
|
|
15765
|
+
"total_cached_input_tokens": {
|
|
15766
|
+
"type": "integer"
|
|
15767
|
+
},
|
|
15768
|
+
"total_cached_output_tokens": {
|
|
15769
|
+
"type": "integer"
|
|
15770
|
+
},
|
|
15771
|
+
"total_tokens": {
|
|
15772
|
+
"type": "integer"
|
|
15773
|
+
},
|
|
15774
|
+
"total_credits_cost": {
|
|
15775
|
+
"type": "number",
|
|
15776
|
+
"description": "Credits the session used."
|
|
15777
|
+
}
|
|
15778
|
+
}
|
|
15779
|
+
},
|
|
15780
|
+
"interactions": {
|
|
15781
|
+
"type": "object",
|
|
15782
|
+
"description": "Questions and requests from the agent, keyed by reference ID. A pending one pauses the session in `await_input` until it's answered or skipped.",
|
|
15783
|
+
"additionalProperties": {
|
|
15784
|
+
"type": "object",
|
|
15785
|
+
"properties": {
|
|
15786
|
+
"type": {
|
|
15787
|
+
"type": "string",
|
|
15788
|
+
"description": "One of `question`, `authorization` or `setup_request`. Only questions can be answered; the others can only be skipped."
|
|
15789
|
+
},
|
|
15790
|
+
"status": {
|
|
15791
|
+
"type": "string",
|
|
15792
|
+
"description": "One of `pending`, `answered` or `skipped`."
|
|
15793
|
+
},
|
|
15794
|
+
"payload": {
|
|
15795
|
+
"description": "For a question, an array of questions, each with `question`, an optional `header`, `multiSelect` and `options` (each with `label` and an optional `description`). For `authorization` and `setup_request`, an object describing the request."
|
|
15796
|
+
},
|
|
15797
|
+
"response": {
|
|
15798
|
+
"type": "array",
|
|
15799
|
+
"description": "Answers aligned to `payload`; null entries were skipped.",
|
|
15800
|
+
"items": {}
|
|
15801
|
+
}
|
|
15802
|
+
}
|
|
15803
|
+
}
|
|
15804
|
+
},
|
|
14573
15805
|
"steps": {
|
|
14574
15806
|
"type": "array",
|
|
14575
15807
|
"items": {
|
|
@@ -14616,12 +15848,6 @@
|
|
|
14616
15848
|
}
|
|
14617
15849
|
}
|
|
14618
15850
|
},
|
|
14619
|
-
"404": {
|
|
14620
|
-
"description": "Not Found"
|
|
14621
|
-
},
|
|
14622
|
-
"422": {
|
|
14623
|
-
"description": "Unprocessable Entity"
|
|
14624
|
-
},
|
|
14625
15851
|
"default": {
|
|
14626
15852
|
"description": "error",
|
|
14627
15853
|
"schema": {
|
|
@@ -14633,37 +15859,28 @@
|
|
|
14633
15859
|
"code": {
|
|
14634
15860
|
"type": "integer",
|
|
14635
15861
|
"format": "int64"
|
|
14636
|
-
},
|
|
14637
|
-
"message": {
|
|
14638
|
-
"type": "string",
|
|
14639
|
-
"x-nullable": false
|
|
14640
|
-
}
|
|
14641
|
-
}
|
|
14642
|
-
}
|
|
14643
|
-
}
|
|
14644
|
-
}
|
|
14645
|
-
}
|
|
14646
|
-
},
|
|
14647
|
-
"/agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}": {
|
|
14648
|
-
"parameters": [
|
|
14649
|
-
{
|
|
14650
|
-
"name": "agent_runner_id",
|
|
14651
|
-
"type": "string",
|
|
14652
|
-
"in": "path",
|
|
14653
|
-
"required": true
|
|
14654
|
-
},
|
|
14655
|
-
{
|
|
14656
|
-
"name": "agent_runner_session_id",
|
|
14657
|
-
"type": "string",
|
|
14658
|
-
"in": "path",
|
|
14659
|
-
"required": true
|
|
15862
|
+
},
|
|
15863
|
+
"message": {
|
|
15864
|
+
"type": "string",
|
|
15865
|
+
"x-nullable": false
|
|
15866
|
+
}
|
|
15867
|
+
}
|
|
15868
|
+
}
|
|
15869
|
+
}
|
|
14660
15870
|
}
|
|
14661
|
-
|
|
14662
|
-
"
|
|
14663
|
-
"operationId": "
|
|
15871
|
+
},
|
|
15872
|
+
"patch": {
|
|
15873
|
+
"operationId": "updateAgentRunnerSession",
|
|
14664
15874
|
"tags": [
|
|
14665
15875
|
"agentRunnerSession"
|
|
14666
15876
|
],
|
|
15877
|
+
"parameters": [
|
|
15878
|
+
{
|
|
15879
|
+
"name": "is_published",
|
|
15880
|
+
"type": "boolean",
|
|
15881
|
+
"in": "query"
|
|
15882
|
+
}
|
|
15883
|
+
],
|
|
14667
15884
|
"responses": {
|
|
14668
15885
|
"200": {
|
|
14669
15886
|
"description": "OK",
|
|
@@ -14680,7 +15897,8 @@
|
|
|
14680
15897
|
"type": "string"
|
|
14681
15898
|
},
|
|
14682
15899
|
"state": {
|
|
14683
|
-
"type": "string"
|
|
15900
|
+
"type": "string",
|
|
15901
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done` or `cancelled`."
|
|
14684
15902
|
},
|
|
14685
15903
|
"created_at": {
|
|
14686
15904
|
"type": "string",
|
|
@@ -14694,6 +15912,11 @@
|
|
|
14694
15912
|
"type": "string",
|
|
14695
15913
|
"format": "dateTime"
|
|
14696
15914
|
},
|
|
15915
|
+
"paused_at": {
|
|
15916
|
+
"type": "string",
|
|
15917
|
+
"format": "dateTime",
|
|
15918
|
+
"description": "When the session paused waiting on an interaction. Null once it resumes."
|
|
15919
|
+
},
|
|
14697
15920
|
"title": {
|
|
14698
15921
|
"type": "string"
|
|
14699
15922
|
},
|
|
@@ -14712,7 +15935,8 @@
|
|
|
14712
15935
|
}
|
|
14713
15936
|
},
|
|
14714
15937
|
"result": {
|
|
14715
|
-
"type": "string"
|
|
15938
|
+
"type": "string",
|
|
15939
|
+
"description": "The agent's summary of what it did."
|
|
14716
15940
|
},
|
|
14717
15941
|
"result_diff": {
|
|
14718
15942
|
"type": "string"
|
|
@@ -14724,11 +15948,61 @@
|
|
|
14724
15948
|
"type": "string"
|
|
14725
15949
|
},
|
|
14726
15950
|
"deploy_url": {
|
|
14727
|
-
"type": "string"
|
|
15951
|
+
"type": "string",
|
|
15952
|
+
"description": "URL of the session's deploy preview."
|
|
14728
15953
|
},
|
|
14729
15954
|
"duration": {
|
|
14730
15955
|
"type": "integer"
|
|
14731
15956
|
},
|
|
15957
|
+
"usage": {
|
|
15958
|
+
"type": "object",
|
|
15959
|
+
"properties": {
|
|
15960
|
+
"total_input_tokens": {
|
|
15961
|
+
"type": "integer"
|
|
15962
|
+
},
|
|
15963
|
+
"total_output_tokens": {
|
|
15964
|
+
"type": "integer"
|
|
15965
|
+
},
|
|
15966
|
+
"total_cached_input_tokens": {
|
|
15967
|
+
"type": "integer"
|
|
15968
|
+
},
|
|
15969
|
+
"total_cached_output_tokens": {
|
|
15970
|
+
"type": "integer"
|
|
15971
|
+
},
|
|
15972
|
+
"total_tokens": {
|
|
15973
|
+
"type": "integer"
|
|
15974
|
+
},
|
|
15975
|
+
"total_credits_cost": {
|
|
15976
|
+
"type": "number",
|
|
15977
|
+
"description": "Credits the session used."
|
|
15978
|
+
}
|
|
15979
|
+
}
|
|
15980
|
+
},
|
|
15981
|
+
"interactions": {
|
|
15982
|
+
"type": "object",
|
|
15983
|
+
"description": "Questions and requests from the agent, keyed by reference ID. A pending one pauses the session in `await_input` until it's answered or skipped.",
|
|
15984
|
+
"additionalProperties": {
|
|
15985
|
+
"type": "object",
|
|
15986
|
+
"properties": {
|
|
15987
|
+
"type": {
|
|
15988
|
+
"type": "string",
|
|
15989
|
+
"description": "One of `question`, `authorization` or `setup_request`. Only questions can be answered; the others can only be skipped."
|
|
15990
|
+
},
|
|
15991
|
+
"status": {
|
|
15992
|
+
"type": "string",
|
|
15993
|
+
"description": "One of `pending`, `answered` or `skipped`."
|
|
15994
|
+
},
|
|
15995
|
+
"payload": {
|
|
15996
|
+
"description": "For a question, an array of questions, each with `question`, an optional `header`, `multiSelect` and `options` (each with `label` and an optional `description`). For `authorization` and `setup_request`, an object describing the request."
|
|
15997
|
+
},
|
|
15998
|
+
"response": {
|
|
15999
|
+
"type": "array",
|
|
16000
|
+
"description": "Answers aligned to `payload`; null entries were skipped.",
|
|
16001
|
+
"items": {}
|
|
16002
|
+
}
|
|
16003
|
+
}
|
|
16004
|
+
}
|
|
16005
|
+
},
|
|
14732
16006
|
"steps": {
|
|
14733
16007
|
"type": "array",
|
|
14734
16008
|
"items": {
|
|
@@ -14796,16 +16070,136 @@
|
|
|
14796
16070
|
}
|
|
14797
16071
|
}
|
|
14798
16072
|
},
|
|
14799
|
-
"
|
|
14800
|
-
"operationId": "
|
|
16073
|
+
"delete": {
|
|
16074
|
+
"operationId": "deleteAgentRunnerSession",
|
|
16075
|
+
"tags": [
|
|
16076
|
+
"hiddenAgentRunner"
|
|
16077
|
+
],
|
|
16078
|
+
"description": "Same as `POST /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop`. Doesn't delete the session.",
|
|
16079
|
+
"responses": {
|
|
16080
|
+
"202": {
|
|
16081
|
+
"description": "Accepted. Same behavior as `stopAgentRunnerSession`: the response has no body, the session is set to `cancelled` before it returns, and the sandbox shuts down in the background. To confirm, poll `getAgentRunnerSession` (`GET /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}`) and check that `state` is `cancelled`."
|
|
16082
|
+
},
|
|
16083
|
+
"default": {
|
|
16084
|
+
"description": "error",
|
|
16085
|
+
"schema": {
|
|
16086
|
+
"type": "object",
|
|
16087
|
+
"required": [
|
|
16088
|
+
"message"
|
|
16089
|
+
],
|
|
16090
|
+
"properties": {
|
|
16091
|
+
"code": {
|
|
16092
|
+
"type": "integer",
|
|
16093
|
+
"format": "int64"
|
|
16094
|
+
},
|
|
16095
|
+
"message": {
|
|
16096
|
+
"type": "string",
|
|
16097
|
+
"x-nullable": false
|
|
16098
|
+
}
|
|
16099
|
+
}
|
|
16100
|
+
}
|
|
16101
|
+
}
|
|
16102
|
+
}
|
|
16103
|
+
}
|
|
16104
|
+
},
|
|
16105
|
+
"/agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop": {
|
|
16106
|
+
"parameters": [
|
|
16107
|
+
{
|
|
16108
|
+
"name": "agent_runner_id",
|
|
16109
|
+
"type": "string",
|
|
16110
|
+
"in": "path",
|
|
16111
|
+
"required": true
|
|
16112
|
+
},
|
|
16113
|
+
{
|
|
16114
|
+
"name": "agent_runner_session_id",
|
|
16115
|
+
"type": "string",
|
|
16116
|
+
"in": "path",
|
|
16117
|
+
"required": true
|
|
16118
|
+
}
|
|
16119
|
+
],
|
|
16120
|
+
"post": {
|
|
16121
|
+
"operationId": "stopAgentRunnerSession",
|
|
16122
|
+
"tags": [
|
|
16123
|
+
"agentRunnerSession"
|
|
16124
|
+
],
|
|
16125
|
+
"description": "Stops the session. Stopping happens in the background.",
|
|
16126
|
+
"responses": {
|
|
16127
|
+
"202": {
|
|
16128
|
+
"description": "Accepted. The response has no body. The session is set to `cancelled` before this returns, and the sandbox shuts down in the background. To confirm, poll `getAgentRunnerSession` (`GET /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}`) and check that `state` is `cancelled`."
|
|
16129
|
+
},
|
|
16130
|
+
"default": {
|
|
16131
|
+
"description": "error",
|
|
16132
|
+
"schema": {
|
|
16133
|
+
"type": "object",
|
|
16134
|
+
"required": [
|
|
16135
|
+
"message"
|
|
16136
|
+
],
|
|
16137
|
+
"properties": {
|
|
16138
|
+
"code": {
|
|
16139
|
+
"type": "integer",
|
|
16140
|
+
"format": "int64"
|
|
16141
|
+
},
|
|
16142
|
+
"message": {
|
|
16143
|
+
"type": "string",
|
|
16144
|
+
"x-nullable": false
|
|
16145
|
+
}
|
|
16146
|
+
}
|
|
16147
|
+
}
|
|
16148
|
+
}
|
|
16149
|
+
}
|
|
16150
|
+
}
|
|
16151
|
+
},
|
|
16152
|
+
"/agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/answers": {
|
|
16153
|
+
"parameters": [
|
|
16154
|
+
{
|
|
16155
|
+
"name": "agent_runner_id",
|
|
16156
|
+
"type": "string",
|
|
16157
|
+
"in": "path",
|
|
16158
|
+
"required": true
|
|
16159
|
+
},
|
|
16160
|
+
{
|
|
16161
|
+
"name": "agent_runner_session_id",
|
|
16162
|
+
"type": "string",
|
|
16163
|
+
"in": "path",
|
|
16164
|
+
"required": true
|
|
16165
|
+
}
|
|
16166
|
+
],
|
|
16167
|
+
"post": {
|
|
16168
|
+
"operationId": "answerAgentRunnerSession",
|
|
14801
16169
|
"tags": [
|
|
14802
16170
|
"agentRunnerSession"
|
|
14803
16171
|
],
|
|
16172
|
+
"description": "Answers or skips a pending interaction and resumes the session. A session waiting on an interaction is in the `await_input` state.",
|
|
14804
16173
|
"parameters": [
|
|
14805
16174
|
{
|
|
14806
|
-
"name": "
|
|
14807
|
-
"
|
|
14808
|
-
"
|
|
16175
|
+
"name": "answer",
|
|
16176
|
+
"in": "body",
|
|
16177
|
+
"required": true,
|
|
16178
|
+
"schema": {
|
|
16179
|
+
"type": "object",
|
|
16180
|
+
"required": [
|
|
16181
|
+
"refId"
|
|
16182
|
+
],
|
|
16183
|
+
"properties": {
|
|
16184
|
+
"refId": {
|
|
16185
|
+
"type": "string",
|
|
16186
|
+
"description": "Key of the pending interaction in the session's `interactions`."
|
|
16187
|
+
},
|
|
16188
|
+
"response": {
|
|
16189
|
+
"type": "array",
|
|
16190
|
+
"description": "One entry per question in the interaction's `payload`: a string, an array of strings for a multi-select question, or null to skip that question.",
|
|
16191
|
+
"items": {}
|
|
16192
|
+
},
|
|
16193
|
+
"skipped": {
|
|
16194
|
+
"type": "boolean",
|
|
16195
|
+
"description": "Skip the whole interaction instead of answering it."
|
|
16196
|
+
},
|
|
16197
|
+
"instruction": {
|
|
16198
|
+
"type": "string",
|
|
16199
|
+
"description": "Instruction for the agent when skipping."
|
|
16200
|
+
}
|
|
16201
|
+
}
|
|
16202
|
+
}
|
|
14809
16203
|
}
|
|
14810
16204
|
],
|
|
14811
16205
|
"responses": {
|
|
@@ -14824,7 +16218,8 @@
|
|
|
14824
16218
|
"type": "string"
|
|
14825
16219
|
},
|
|
14826
16220
|
"state": {
|
|
14827
|
-
"type": "string"
|
|
16221
|
+
"type": "string",
|
|
16222
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done` or `cancelled`."
|
|
14828
16223
|
},
|
|
14829
16224
|
"created_at": {
|
|
14830
16225
|
"type": "string",
|
|
@@ -14838,6 +16233,11 @@
|
|
|
14838
16233
|
"type": "string",
|
|
14839
16234
|
"format": "dateTime"
|
|
14840
16235
|
},
|
|
16236
|
+
"paused_at": {
|
|
16237
|
+
"type": "string",
|
|
16238
|
+
"format": "dateTime",
|
|
16239
|
+
"description": "When the session paused waiting on an interaction. Null once it resumes."
|
|
16240
|
+
},
|
|
14841
16241
|
"title": {
|
|
14842
16242
|
"type": "string"
|
|
14843
16243
|
},
|
|
@@ -14856,7 +16256,8 @@
|
|
|
14856
16256
|
}
|
|
14857
16257
|
},
|
|
14858
16258
|
"result": {
|
|
14859
|
-
"type": "string"
|
|
16259
|
+
"type": "string",
|
|
16260
|
+
"description": "The agent's summary of what it did."
|
|
14860
16261
|
},
|
|
14861
16262
|
"result_diff": {
|
|
14862
16263
|
"type": "string"
|
|
@@ -14868,11 +16269,61 @@
|
|
|
14868
16269
|
"type": "string"
|
|
14869
16270
|
},
|
|
14870
16271
|
"deploy_url": {
|
|
14871
|
-
"type": "string"
|
|
16272
|
+
"type": "string",
|
|
16273
|
+
"description": "URL of the session's deploy preview."
|
|
14872
16274
|
},
|
|
14873
16275
|
"duration": {
|
|
14874
16276
|
"type": "integer"
|
|
14875
16277
|
},
|
|
16278
|
+
"usage": {
|
|
16279
|
+
"type": "object",
|
|
16280
|
+
"properties": {
|
|
16281
|
+
"total_input_tokens": {
|
|
16282
|
+
"type": "integer"
|
|
16283
|
+
},
|
|
16284
|
+
"total_output_tokens": {
|
|
16285
|
+
"type": "integer"
|
|
16286
|
+
},
|
|
16287
|
+
"total_cached_input_tokens": {
|
|
16288
|
+
"type": "integer"
|
|
16289
|
+
},
|
|
16290
|
+
"total_cached_output_tokens": {
|
|
16291
|
+
"type": "integer"
|
|
16292
|
+
},
|
|
16293
|
+
"total_tokens": {
|
|
16294
|
+
"type": "integer"
|
|
16295
|
+
},
|
|
16296
|
+
"total_credits_cost": {
|
|
16297
|
+
"type": "number",
|
|
16298
|
+
"description": "Credits the session used."
|
|
16299
|
+
}
|
|
16300
|
+
}
|
|
16301
|
+
},
|
|
16302
|
+
"interactions": {
|
|
16303
|
+
"type": "object",
|
|
16304
|
+
"description": "Questions and requests from the agent, keyed by reference ID. A pending one pauses the session in `await_input` until it's answered or skipped.",
|
|
16305
|
+
"additionalProperties": {
|
|
16306
|
+
"type": "object",
|
|
16307
|
+
"properties": {
|
|
16308
|
+
"type": {
|
|
16309
|
+
"type": "string",
|
|
16310
|
+
"description": "One of `question`, `authorization` or `setup_request`. Only questions can be answered; the others can only be skipped."
|
|
16311
|
+
},
|
|
16312
|
+
"status": {
|
|
16313
|
+
"type": "string",
|
|
16314
|
+
"description": "One of `pending`, `answered` or `skipped`."
|
|
16315
|
+
},
|
|
16316
|
+
"payload": {
|
|
16317
|
+
"description": "For a question, an array of questions, each with `question`, an optional `header`, `multiSelect` and `options` (each with `label` and an optional `description`). For `authorization` and `setup_request`, an object describing the request."
|
|
16318
|
+
},
|
|
16319
|
+
"response": {
|
|
16320
|
+
"type": "array",
|
|
16321
|
+
"description": "Answers aligned to `payload`; null entries were skipped.",
|
|
16322
|
+
"items": {}
|
|
16323
|
+
}
|
|
16324
|
+
}
|
|
16325
|
+
}
|
|
16326
|
+
},
|
|
14876
16327
|
"steps": {
|
|
14877
16328
|
"type": "array",
|
|
14878
16329
|
"items": {
|
|
@@ -14916,38 +16367,101 @@
|
|
|
14916
16367
|
"is_published": {
|
|
14917
16368
|
"type": "boolean"
|
|
14918
16369
|
}
|
|
14919
|
-
}
|
|
16370
|
+
}
|
|
16371
|
+
}
|
|
16372
|
+
},
|
|
16373
|
+
"400": {
|
|
16374
|
+
"description": "`ref_id_required`, `invalid_response`, or `interaction_can_only_be_skipped` when answering an `authorization` or `setup_request` interaction.",
|
|
16375
|
+
"schema": {
|
|
16376
|
+
"allOf": [
|
|
16377
|
+
{
|
|
16378
|
+
"type": "object",
|
|
16379
|
+
"required": [
|
|
16380
|
+
"message"
|
|
16381
|
+
],
|
|
16382
|
+
"properties": {
|
|
16383
|
+
"code": {
|
|
16384
|
+
"type": "integer",
|
|
16385
|
+
"format": "int64"
|
|
16386
|
+
},
|
|
16387
|
+
"message": {
|
|
16388
|
+
"type": "string",
|
|
16389
|
+
"x-nullable": false
|
|
16390
|
+
}
|
|
16391
|
+
}
|
|
16392
|
+
},
|
|
16393
|
+
{
|
|
16394
|
+
"properties": {
|
|
16395
|
+
"error_code": {
|
|
16396
|
+
"type": "string",
|
|
16397
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
16398
|
+
}
|
|
16399
|
+
}
|
|
16400
|
+
}
|
|
16401
|
+
]
|
|
16402
|
+
}
|
|
16403
|
+
},
|
|
16404
|
+
"422": {
|
|
16405
|
+
"description": "`interaction_not_found` or `interaction_not_pending`.",
|
|
16406
|
+
"schema": {
|
|
16407
|
+
"allOf": [
|
|
16408
|
+
{
|
|
16409
|
+
"type": "object",
|
|
16410
|
+
"required": [
|
|
16411
|
+
"message"
|
|
16412
|
+
],
|
|
16413
|
+
"properties": {
|
|
16414
|
+
"code": {
|
|
16415
|
+
"type": "integer",
|
|
16416
|
+
"format": "int64"
|
|
16417
|
+
},
|
|
16418
|
+
"message": {
|
|
16419
|
+
"type": "string",
|
|
16420
|
+
"x-nullable": false
|
|
16421
|
+
}
|
|
16422
|
+
}
|
|
16423
|
+
},
|
|
16424
|
+
{
|
|
16425
|
+
"properties": {
|
|
16426
|
+
"error_code": {
|
|
16427
|
+
"type": "string",
|
|
16428
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
16429
|
+
}
|
|
16430
|
+
}
|
|
16431
|
+
}
|
|
16432
|
+
]
|
|
14920
16433
|
}
|
|
14921
16434
|
},
|
|
14922
|
-
"
|
|
14923
|
-
"description": "
|
|
16435
|
+
"429": {
|
|
16436
|
+
"description": "`concurrency_limit_reached`.",
|
|
14924
16437
|
"schema": {
|
|
14925
|
-
"
|
|
14926
|
-
|
|
14927
|
-
|
|
14928
|
-
|
|
14929
|
-
|
|
14930
|
-
|
|
14931
|
-
"
|
|
14932
|
-
|
|
16438
|
+
"allOf": [
|
|
16439
|
+
{
|
|
16440
|
+
"type": "object",
|
|
16441
|
+
"required": [
|
|
16442
|
+
"message"
|
|
16443
|
+
],
|
|
16444
|
+
"properties": {
|
|
16445
|
+
"code": {
|
|
16446
|
+
"type": "integer",
|
|
16447
|
+
"format": "int64"
|
|
16448
|
+
},
|
|
16449
|
+
"message": {
|
|
16450
|
+
"type": "string",
|
|
16451
|
+
"x-nullable": false
|
|
16452
|
+
}
|
|
16453
|
+
}
|
|
14933
16454
|
},
|
|
14934
|
-
|
|
14935
|
-
"
|
|
14936
|
-
|
|
16455
|
+
{
|
|
16456
|
+
"properties": {
|
|
16457
|
+
"error_code": {
|
|
16458
|
+
"type": "string",
|
|
16459
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
16460
|
+
}
|
|
16461
|
+
}
|
|
14937
16462
|
}
|
|
14938
|
-
|
|
16463
|
+
]
|
|
14939
16464
|
}
|
|
14940
|
-
}
|
|
14941
|
-
}
|
|
14942
|
-
},
|
|
14943
|
-
"delete": {
|
|
14944
|
-
"operationId": "deleteAgentRunnerSession",
|
|
14945
|
-
"tags": [
|
|
14946
|
-
"agentRunnerSession"
|
|
14947
|
-
],
|
|
14948
|
-
"responses": {
|
|
14949
|
-
"202": {
|
|
14950
|
-
"description": "Accepted"
|
|
14951
16465
|
},
|
|
14952
16466
|
"default": {
|
|
14953
16467
|
"description": "error",
|
|
@@ -17384,7 +18898,7 @@
|
|
|
17384
18898
|
],
|
|
17385
18899
|
"responses": {
|
|
17386
18900
|
"202": {
|
|
17387
|
-
"description": "
|
|
18901
|
+
"description": "Accepted. The response has no body. The branch's active dev servers are set to `stopping` before this returns and shut down in the background. Poll `getSiteDevServer` (`GET /sites/{site_id}/dev_servers/{dev_server_id}`) or `listSiteDevServers` (`GET /sites/{site_id}/dev_servers`) until `state` is `done` (or `error`)."
|
|
17388
18902
|
},
|
|
17389
18903
|
"default": {
|
|
17390
18904
|
"description": "error",
|
|
@@ -22238,6 +23752,74 @@
|
|
|
22238
23752
|
"region": {
|
|
22239
23753
|
"type": "string",
|
|
22240
23754
|
"description": "Where the server runs. Defaults to the region configured at the site level\nwhen absent.\n"
|
|
23755
|
+
},
|
|
23756
|
+
"instance_size": {
|
|
23757
|
+
"type": "string",
|
|
23758
|
+
"enum": [
|
|
23759
|
+
"small",
|
|
23760
|
+
"medium",
|
|
23761
|
+
"large"
|
|
23762
|
+
],
|
|
23763
|
+
"description": "The size of the instances the server runs on. A default size is used when\nabsent.\n"
|
|
23764
|
+
},
|
|
23765
|
+
"routes": {
|
|
23766
|
+
"type": "array",
|
|
23767
|
+
"description": "The paths the server handles.",
|
|
23768
|
+
"x-omitempty": true,
|
|
23769
|
+
"items": {
|
|
23770
|
+
"type": "object",
|
|
23771
|
+
"properties": {
|
|
23772
|
+
"pattern": {
|
|
23773
|
+
"type": "string"
|
|
23774
|
+
},
|
|
23775
|
+
"literal": {
|
|
23776
|
+
"type": "string"
|
|
23777
|
+
},
|
|
23778
|
+
"expression": {
|
|
23779
|
+
"type": "string"
|
|
23780
|
+
},
|
|
23781
|
+
"methods": {
|
|
23782
|
+
"type": "array",
|
|
23783
|
+
"items": {
|
|
23784
|
+
"type": "string",
|
|
23785
|
+
"enum": [
|
|
23786
|
+
"GET",
|
|
23787
|
+
"POST",
|
|
23788
|
+
"PUT",
|
|
23789
|
+
"PATCH",
|
|
23790
|
+
"DELETE",
|
|
23791
|
+
"OPTIONS"
|
|
23792
|
+
]
|
|
23793
|
+
}
|
|
23794
|
+
},
|
|
23795
|
+
"prefer_static": {
|
|
23796
|
+
"type": "boolean"
|
|
23797
|
+
}
|
|
23798
|
+
}
|
|
23799
|
+
}
|
|
23800
|
+
},
|
|
23801
|
+
"excluded_routes": {
|
|
23802
|
+
"type": "array",
|
|
23803
|
+
"description": "Paths within `routes` that the server does not handle.",
|
|
23804
|
+
"x-omitempty": true,
|
|
23805
|
+
"items": {
|
|
23806
|
+
"type": "object",
|
|
23807
|
+
"properties": {
|
|
23808
|
+
"pattern": {
|
|
23809
|
+
"type": "string"
|
|
23810
|
+
},
|
|
23811
|
+
"literal": {
|
|
23812
|
+
"type": "string"
|
|
23813
|
+
},
|
|
23814
|
+
"expression": {
|
|
23815
|
+
"type": "string"
|
|
23816
|
+
}
|
|
23817
|
+
}
|
|
23818
|
+
}
|
|
23819
|
+
},
|
|
23820
|
+
"runtime_version": {
|
|
23821
|
+
"type": "string",
|
|
23822
|
+
"description": "The runtime version the server was built for, such as `nodejs24.x`. A\ndefault version is used when absent.\n"
|
|
22241
23823
|
}
|
|
22242
23824
|
}
|
|
22243
23825
|
},
|
|
@@ -23506,7 +25088,8 @@
|
|
|
23506
25088
|
"type": "string"
|
|
23507
25089
|
},
|
|
23508
25090
|
"state": {
|
|
23509
|
-
"type": "string"
|
|
25091
|
+
"type": "string",
|
|
25092
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`."
|
|
23510
25093
|
},
|
|
23511
25094
|
"created_at": {
|
|
23512
25095
|
"type": "string",
|
|
@@ -23536,7 +25119,8 @@
|
|
|
23536
25119
|
"type": "string"
|
|
23537
25120
|
},
|
|
23538
25121
|
"pr_state": {
|
|
23539
|
-
"type": "string"
|
|
25122
|
+
"type": "string",
|
|
25123
|
+
"description": "One of `open`, `draft`, `merged` or `closed`."
|
|
23540
25124
|
},
|
|
23541
25125
|
"pr_number": {
|
|
23542
25126
|
"type": "integer"
|
|
@@ -23548,7 +25132,8 @@
|
|
|
23548
25132
|
"type": "string"
|
|
23549
25133
|
},
|
|
23550
25134
|
"current_task": {
|
|
23551
|
-
"type": "string"
|
|
25135
|
+
"type": "string",
|
|
25136
|
+
"description": "What the agent is working on in the active session."
|
|
23552
25137
|
},
|
|
23553
25138
|
"result_diff": {
|
|
23554
25139
|
"type": "string"
|
|
@@ -23578,12 +25163,20 @@
|
|
|
23578
25163
|
"type": "string",
|
|
23579
25164
|
"format": "dateTime"
|
|
23580
25165
|
},
|
|
25166
|
+
"has_result_diff": {
|
|
25167
|
+
"type": "boolean",
|
|
25168
|
+
"description": "Whether the run has changes, available from `GET /agent_runners/{agent_runner_id}/diff`."
|
|
25169
|
+
},
|
|
23581
25170
|
"latest_session_deploy_id": {
|
|
23582
25171
|
"type": "string"
|
|
23583
25172
|
},
|
|
23584
25173
|
"latest_session_deploy_url": {
|
|
23585
25174
|
"type": "string"
|
|
23586
25175
|
},
|
|
25176
|
+
"preview_state": {
|
|
25177
|
+
"type": "string",
|
|
25178
|
+
"description": "State of the deploy building the latest preview. Null until that deploy exists; `ready` once the preview is live."
|
|
25179
|
+
},
|
|
23587
25180
|
"user": {
|
|
23588
25181
|
"type": "object",
|
|
23589
25182
|
"properties": {
|
|
@@ -23603,6 +25196,50 @@
|
|
|
23603
25196
|
}
|
|
23604
25197
|
}
|
|
23605
25198
|
},
|
|
25199
|
+
"agentRunnerSetup": {
|
|
25200
|
+
"type": "object",
|
|
25201
|
+
"required": [
|
|
25202
|
+
"prompt"
|
|
25203
|
+
],
|
|
25204
|
+
"properties": {
|
|
25205
|
+
"prompt": {
|
|
25206
|
+
"type": "string"
|
|
25207
|
+
},
|
|
25208
|
+
"branch": {
|
|
25209
|
+
"type": "string",
|
|
25210
|
+
"description": "Branch to start from. Defaults to the site's production branch."
|
|
25211
|
+
},
|
|
25212
|
+
"deploy_id": {
|
|
25213
|
+
"type": "string",
|
|
25214
|
+
"description": "Deploy to start from. Takes precedence over `branch`."
|
|
25215
|
+
},
|
|
25216
|
+
"agent": {
|
|
25217
|
+
"type": "string",
|
|
25218
|
+
"description": "Agent to run, for example `claude` or `codex`."
|
|
25219
|
+
},
|
|
25220
|
+
"model": {
|
|
25221
|
+
"type": "string",
|
|
25222
|
+
"description": "Model for the agent to use. Omit to let Netlify choose."
|
|
25223
|
+
},
|
|
25224
|
+
"effort": {
|
|
25225
|
+
"type": "string",
|
|
25226
|
+
"enum": [
|
|
25227
|
+
"low",
|
|
25228
|
+
"medium",
|
|
25229
|
+
"high"
|
|
25230
|
+
],
|
|
25231
|
+
"description": "Reasoning effort. Omit to let the agent decide."
|
|
25232
|
+
},
|
|
25233
|
+
"mode": {
|
|
25234
|
+
"type": "string",
|
|
25235
|
+
"enum": [
|
|
25236
|
+
"normal",
|
|
25237
|
+
"ask"
|
|
25238
|
+
],
|
|
25239
|
+
"description": "`normal` (the default) changes code; `ask` answers questions without changing code."
|
|
25240
|
+
}
|
|
25241
|
+
}
|
|
25242
|
+
},
|
|
23606
25243
|
"agentRunnerSession": {
|
|
23607
25244
|
"type": "object",
|
|
23608
25245
|
"properties": {
|
|
@@ -23616,7 +25253,8 @@
|
|
|
23616
25253
|
"type": "string"
|
|
23617
25254
|
},
|
|
23618
25255
|
"state": {
|
|
23619
|
-
"type": "string"
|
|
25256
|
+
"type": "string",
|
|
25257
|
+
"description": "One of `new`, `running`, `await_input`, `interrupted`, `error`, `done` or `cancelled`."
|
|
23620
25258
|
},
|
|
23621
25259
|
"created_at": {
|
|
23622
25260
|
"type": "string",
|
|
@@ -23630,6 +25268,11 @@
|
|
|
23630
25268
|
"type": "string",
|
|
23631
25269
|
"format": "dateTime"
|
|
23632
25270
|
},
|
|
25271
|
+
"paused_at": {
|
|
25272
|
+
"type": "string",
|
|
25273
|
+
"format": "dateTime",
|
|
25274
|
+
"description": "When the session paused waiting on an interaction. Null once it resumes."
|
|
25275
|
+
},
|
|
23633
25276
|
"title": {
|
|
23634
25277
|
"type": "string"
|
|
23635
25278
|
},
|
|
@@ -23648,7 +25291,8 @@
|
|
|
23648
25291
|
}
|
|
23649
25292
|
},
|
|
23650
25293
|
"result": {
|
|
23651
|
-
"type": "string"
|
|
25294
|
+
"type": "string",
|
|
25295
|
+
"description": "The agent's summary of what it did."
|
|
23652
25296
|
},
|
|
23653
25297
|
"result_diff": {
|
|
23654
25298
|
"type": "string"
|
|
@@ -23660,11 +25304,61 @@
|
|
|
23660
25304
|
"type": "string"
|
|
23661
25305
|
},
|
|
23662
25306
|
"deploy_url": {
|
|
23663
|
-
"type": "string"
|
|
25307
|
+
"type": "string",
|
|
25308
|
+
"description": "URL of the session's deploy preview."
|
|
23664
25309
|
},
|
|
23665
25310
|
"duration": {
|
|
23666
25311
|
"type": "integer"
|
|
23667
25312
|
},
|
|
25313
|
+
"usage": {
|
|
25314
|
+
"type": "object",
|
|
25315
|
+
"properties": {
|
|
25316
|
+
"total_input_tokens": {
|
|
25317
|
+
"type": "integer"
|
|
25318
|
+
},
|
|
25319
|
+
"total_output_tokens": {
|
|
25320
|
+
"type": "integer"
|
|
25321
|
+
},
|
|
25322
|
+
"total_cached_input_tokens": {
|
|
25323
|
+
"type": "integer"
|
|
25324
|
+
},
|
|
25325
|
+
"total_cached_output_tokens": {
|
|
25326
|
+
"type": "integer"
|
|
25327
|
+
},
|
|
25328
|
+
"total_tokens": {
|
|
25329
|
+
"type": "integer"
|
|
25330
|
+
},
|
|
25331
|
+
"total_credits_cost": {
|
|
25332
|
+
"type": "number",
|
|
25333
|
+
"description": "Credits the session used."
|
|
25334
|
+
}
|
|
25335
|
+
}
|
|
25336
|
+
},
|
|
25337
|
+
"interactions": {
|
|
25338
|
+
"type": "object",
|
|
25339
|
+
"description": "Questions and requests from the agent, keyed by reference ID. A pending one pauses the session in `await_input` until it's answered or skipped.",
|
|
25340
|
+
"additionalProperties": {
|
|
25341
|
+
"type": "object",
|
|
25342
|
+
"properties": {
|
|
25343
|
+
"type": {
|
|
25344
|
+
"type": "string",
|
|
25345
|
+
"description": "One of `question`, `authorization` or `setup_request`. Only questions can be answered; the others can only be skipped."
|
|
25346
|
+
},
|
|
25347
|
+
"status": {
|
|
25348
|
+
"type": "string",
|
|
25349
|
+
"description": "One of `pending`, `answered` or `skipped`."
|
|
25350
|
+
},
|
|
25351
|
+
"payload": {
|
|
25352
|
+
"description": "For a question, an array of questions, each with `question`, an optional `header`, `multiSelect` and `options` (each with `label` and an optional `description`). For `authorization` and `setup_request`, an object describing the request."
|
|
25353
|
+
},
|
|
25354
|
+
"response": {
|
|
25355
|
+
"type": "array",
|
|
25356
|
+
"description": "Answers aligned to `payload`; null entries were skipped.",
|
|
25357
|
+
"items": {}
|
|
25358
|
+
}
|
|
25359
|
+
}
|
|
25360
|
+
}
|
|
25361
|
+
},
|
|
23668
25362
|
"steps": {
|
|
23669
25363
|
"type": "array",
|
|
23670
25364
|
"items": {
|
|
@@ -23710,6 +25404,128 @@
|
|
|
23710
25404
|
}
|
|
23711
25405
|
}
|
|
23712
25406
|
},
|
|
25407
|
+
"agentRunnerSessionSetup": {
|
|
25408
|
+
"type": "object",
|
|
25409
|
+
"properties": {
|
|
25410
|
+
"prompt": {
|
|
25411
|
+
"type": "string",
|
|
25412
|
+
"description": "What the agent should do. Required."
|
|
25413
|
+
},
|
|
25414
|
+
"agent": {
|
|
25415
|
+
"type": "string"
|
|
25416
|
+
},
|
|
25417
|
+
"model": {
|
|
25418
|
+
"type": "string",
|
|
25419
|
+
"description": "Model for the agent to use. Omit to let Netlify choose."
|
|
25420
|
+
},
|
|
25421
|
+
"mode": {
|
|
25422
|
+
"type": "string",
|
|
25423
|
+
"enum": [
|
|
25424
|
+
"normal",
|
|
25425
|
+
"ask"
|
|
25426
|
+
],
|
|
25427
|
+
"description": "`normal` (the default) changes code; `ask` answers questions without changing code."
|
|
25428
|
+
}
|
|
25429
|
+
}
|
|
25430
|
+
},
|
|
25431
|
+
"agentRunnerSessionUsage": {
|
|
25432
|
+
"type": "object",
|
|
25433
|
+
"properties": {
|
|
25434
|
+
"total_input_tokens": {
|
|
25435
|
+
"type": "integer"
|
|
25436
|
+
},
|
|
25437
|
+
"total_output_tokens": {
|
|
25438
|
+
"type": "integer"
|
|
25439
|
+
},
|
|
25440
|
+
"total_cached_input_tokens": {
|
|
25441
|
+
"type": "integer"
|
|
25442
|
+
},
|
|
25443
|
+
"total_cached_output_tokens": {
|
|
25444
|
+
"type": "integer"
|
|
25445
|
+
},
|
|
25446
|
+
"total_tokens": {
|
|
25447
|
+
"type": "integer"
|
|
25448
|
+
},
|
|
25449
|
+
"total_credits_cost": {
|
|
25450
|
+
"type": "number",
|
|
25451
|
+
"description": "Credits the session used."
|
|
25452
|
+
}
|
|
25453
|
+
}
|
|
25454
|
+
},
|
|
25455
|
+
"agentRunnerSessionInteraction": {
|
|
25456
|
+
"type": "object",
|
|
25457
|
+
"properties": {
|
|
25458
|
+
"type": {
|
|
25459
|
+
"type": "string",
|
|
25460
|
+
"description": "One of `question`, `authorization` or `setup_request`. Only questions can be answered; the others can only be skipped."
|
|
25461
|
+
},
|
|
25462
|
+
"status": {
|
|
25463
|
+
"type": "string",
|
|
25464
|
+
"description": "One of `pending`, `answered` or `skipped`."
|
|
25465
|
+
},
|
|
25466
|
+
"payload": {
|
|
25467
|
+
"description": "For a question, an array of questions, each with `question`, an optional `header`, `multiSelect` and `options` (each with `label` and an optional `description`). For `authorization` and `setup_request`, an object describing the request."
|
|
25468
|
+
},
|
|
25469
|
+
"response": {
|
|
25470
|
+
"type": "array",
|
|
25471
|
+
"description": "Answers aligned to `payload`; null entries were skipped.",
|
|
25472
|
+
"items": {}
|
|
25473
|
+
}
|
|
25474
|
+
}
|
|
25475
|
+
},
|
|
25476
|
+
"agentRunnerSessionAnswer": {
|
|
25477
|
+
"type": "object",
|
|
25478
|
+
"required": [
|
|
25479
|
+
"refId"
|
|
25480
|
+
],
|
|
25481
|
+
"properties": {
|
|
25482
|
+
"refId": {
|
|
25483
|
+
"type": "string",
|
|
25484
|
+
"description": "Key of the pending interaction in the session's `interactions`."
|
|
25485
|
+
},
|
|
25486
|
+
"response": {
|
|
25487
|
+
"type": "array",
|
|
25488
|
+
"description": "One entry per question in the interaction's `payload`: a string, an array of strings for a multi-select question, or null to skip that question.",
|
|
25489
|
+
"items": {}
|
|
25490
|
+
},
|
|
25491
|
+
"skipped": {
|
|
25492
|
+
"type": "boolean",
|
|
25493
|
+
"description": "Skip the whole interaction instead of answering it."
|
|
25494
|
+
},
|
|
25495
|
+
"instruction": {
|
|
25496
|
+
"type": "string",
|
|
25497
|
+
"description": "Instruction for the agent when skipping."
|
|
25498
|
+
}
|
|
25499
|
+
}
|
|
25500
|
+
},
|
|
25501
|
+
"agentRunnerError": {
|
|
25502
|
+
"allOf": [
|
|
25503
|
+
{
|
|
25504
|
+
"type": "object",
|
|
25505
|
+
"required": [
|
|
25506
|
+
"message"
|
|
25507
|
+
],
|
|
25508
|
+
"properties": {
|
|
25509
|
+
"code": {
|
|
25510
|
+
"type": "integer",
|
|
25511
|
+
"format": "int64"
|
|
25512
|
+
},
|
|
25513
|
+
"message": {
|
|
25514
|
+
"type": "string",
|
|
25515
|
+
"x-nullable": false
|
|
25516
|
+
}
|
|
25517
|
+
}
|
|
25518
|
+
},
|
|
25519
|
+
{
|
|
25520
|
+
"properties": {
|
|
25521
|
+
"error_code": {
|
|
25522
|
+
"type": "string",
|
|
25523
|
+
"description": "Machine-readable reason. Each operation lists the codes it can return."
|
|
25524
|
+
}
|
|
25525
|
+
}
|
|
25526
|
+
}
|
|
25527
|
+
]
|
|
25528
|
+
},
|
|
23713
25529
|
"agentRunnerSessionStep": {
|
|
23714
25530
|
"type": "object",
|
|
23715
25531
|
"properties": {
|
|
@@ -24521,6 +26337,13 @@
|
|
|
24521
26337
|
"devServer"
|
|
24522
26338
|
]
|
|
24523
26339
|
},
|
|
26340
|
+
{
|
|
26341
|
+
"name": "Agent runners",
|
|
26342
|
+
"tags": [
|
|
26343
|
+
"agentRunner",
|
|
26344
|
+
"agentRunnerSession"
|
|
26345
|
+
]
|
|
26346
|
+
},
|
|
24524
26347
|
{
|
|
24525
26348
|
"name": "Webhooks and notifications",
|
|
24526
26349
|
"tags": [
|
|
@@ -24707,6 +26530,14 @@
|
|
|
24707
26530
|
"name": "devServerHook",
|
|
24708
26531
|
"x-displayName": "Dev server hook"
|
|
24709
26532
|
},
|
|
26533
|
+
{
|
|
26534
|
+
"name": "agentRunner",
|
|
26535
|
+
"x-displayName": "Agent runner"
|
|
26536
|
+
},
|
|
26537
|
+
{
|
|
26538
|
+
"name": "agentRunnerSession",
|
|
26539
|
+
"x-displayName": "Agent runner session"
|
|
26540
|
+
},
|
|
24710
26541
|
{
|
|
24711
26542
|
"name": "database",
|
|
24712
26543
|
"x-displayName": "Database"
|