@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/index.d.ts
CHANGED
|
@@ -603,15 +603,37 @@ export interface paths {
|
|
|
603
603
|
};
|
|
604
604
|
};
|
|
605
605
|
"/agent_runners": {
|
|
606
|
-
/**
|
|
606
|
+
/**
|
|
607
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/listAgentRunners | `listAgentRunners`}
|
|
608
|
+
*
|
|
609
|
+
* Lists a site's agent runs, most recently active first. Archived runs are left out unless `state` is `archived`.
|
|
610
|
+
*/
|
|
607
611
|
get: operations["listAgentRunners"];
|
|
608
612
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/createAgentRunner | `createAgentRunner`} */
|
|
609
613
|
post: operations["createAgentRunner"];
|
|
610
614
|
};
|
|
615
|
+
"/sites/{site_id}/agent_runners": {
|
|
616
|
+
/**
|
|
617
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/createSiteAgentRunner | `createSiteAgentRunner`}
|
|
618
|
+
*
|
|
619
|
+
* Starts an agent run on the site.
|
|
620
|
+
*/
|
|
621
|
+
post: operations["createSiteAgentRunner"];
|
|
622
|
+
parameters: {
|
|
623
|
+
path: {
|
|
624
|
+
/** The site's ID or one of its hostnames. */
|
|
625
|
+
site_id: string;
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
};
|
|
611
629
|
"/agent_runners/{agent_runner_id}": {
|
|
612
630
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/getAgentRunner | `getAgentRunner`} */
|
|
613
631
|
get: operations["getAgentRunner"];
|
|
614
|
-
/**
|
|
632
|
+
/**
|
|
633
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/hiddenAgentRunner/operation/deleteAgentRunner | `deleteAgentRunner`}
|
|
634
|
+
*
|
|
635
|
+
* Same as `POST /agent_runners/{agent_runner_id}/stop`. Doesn't delete the run.
|
|
636
|
+
*/
|
|
615
637
|
delete: operations["deleteAgentRunner"];
|
|
616
638
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/updateAgentRunner | `updateAgentRunner`} */
|
|
617
639
|
patch: operations["updateAgentRunner"];
|
|
@@ -621,6 +643,32 @@ export interface paths {
|
|
|
621
643
|
};
|
|
622
644
|
};
|
|
623
645
|
};
|
|
646
|
+
"/agent_runners/{agent_runner_id}/stop": {
|
|
647
|
+
/**
|
|
648
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/stopAgentRunner | `stopAgentRunner`}
|
|
649
|
+
*
|
|
650
|
+
* Stops the run's active session. Stopping happens in the background.
|
|
651
|
+
*/
|
|
652
|
+
post: operations["stopAgentRunner"];
|
|
653
|
+
parameters: {
|
|
654
|
+
path: {
|
|
655
|
+
agent_runner_id: string;
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
"/agent_runners/{agent_runner_id}/diff": {
|
|
660
|
+
/**
|
|
661
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/getAgentRunnerDiff | `getAgentRunnerDiff`}
|
|
662
|
+
*
|
|
663
|
+
* Returns the run's changes as a unified diff. With `page`, returns that page of changed files and sets pagination headers.
|
|
664
|
+
*/
|
|
665
|
+
get: operations["getAgentRunnerDiff"];
|
|
666
|
+
parameters: {
|
|
667
|
+
path: {
|
|
668
|
+
agent_runner_id: string;
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
};
|
|
624
672
|
"/agent_runners/{agent_runner_id}/archive": {
|
|
625
673
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/archiveAgentRunner | `archiveAgentRunner`} */
|
|
626
674
|
post: operations["archiveAgentRunner"];
|
|
@@ -647,7 +695,11 @@ export interface paths {
|
|
|
647
695
|
"/agent_runners/{agent_runner_id}/sessions": {
|
|
648
696
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/listAgentRunnerSessions | `listAgentRunnerSessions`} */
|
|
649
697
|
get: operations["listAgentRunnerSessions"];
|
|
650
|
-
/**
|
|
698
|
+
/**
|
|
699
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/createAgentRunnerSession | `createAgentRunnerSession`}
|
|
700
|
+
*
|
|
701
|
+
* Starts a follow-up session on the run.
|
|
702
|
+
*/
|
|
651
703
|
post: operations["createAgentRunnerSession"];
|
|
652
704
|
parameters: {
|
|
653
705
|
path: {
|
|
@@ -658,7 +710,11 @@ export interface paths {
|
|
|
658
710
|
"/agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}": {
|
|
659
711
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/getAgentRunnerSession | `getAgentRunnerSession`} */
|
|
660
712
|
get: operations["getAgentRunnerSession"];
|
|
661
|
-
/**
|
|
713
|
+
/**
|
|
714
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/hiddenAgentRunner/operation/deleteAgentRunnerSession | `deleteAgentRunnerSession`}
|
|
715
|
+
*
|
|
716
|
+
* Same as `POST /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop`. Doesn't delete the session.
|
|
717
|
+
*/
|
|
662
718
|
delete: operations["deleteAgentRunnerSession"];
|
|
663
719
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/updateAgentRunnerSession | `updateAgentRunnerSession`} */
|
|
664
720
|
patch: operations["updateAgentRunnerSession"];
|
|
@@ -669,6 +725,34 @@ export interface paths {
|
|
|
669
725
|
};
|
|
670
726
|
};
|
|
671
727
|
};
|
|
728
|
+
"/agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop": {
|
|
729
|
+
/**
|
|
730
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/stopAgentRunnerSession | `stopAgentRunnerSession`}
|
|
731
|
+
*
|
|
732
|
+
* Stops the session. Stopping happens in the background.
|
|
733
|
+
*/
|
|
734
|
+
post: operations["stopAgentRunnerSession"];
|
|
735
|
+
parameters: {
|
|
736
|
+
path: {
|
|
737
|
+
agent_runner_id: string;
|
|
738
|
+
agent_runner_session_id: string;
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
"/agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/answers": {
|
|
743
|
+
/**
|
|
744
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/answerAgentRunnerSession | `answerAgentRunnerSession`}
|
|
745
|
+
*
|
|
746
|
+
* Answers or skips a pending interaction and resumes the session. A session waiting on an interaction is in the `await_input` state.
|
|
747
|
+
*/
|
|
748
|
+
post: operations["answerAgentRunnerSession"];
|
|
749
|
+
parameters: {
|
|
750
|
+
path: {
|
|
751
|
+
agent_runner_id: string;
|
|
752
|
+
agent_runner_session_id: string;
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
};
|
|
672
756
|
"/submissions/{submission_id}": {
|
|
673
757
|
/** API Reference: {@link https://open-api.netlify.com/#tag/submission/operation/listFormSubmission | `listFormSubmission`} */
|
|
674
758
|
get: operations["listFormSubmission"];
|
|
@@ -1778,6 +1862,22 @@ export interface components {
|
|
|
1778
1862
|
* when absent.
|
|
1779
1863
|
*/
|
|
1780
1864
|
region?: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* @description The size of the instances the server runs on. A default size is used when
|
|
1867
|
+
* absent.
|
|
1868
|
+
*
|
|
1869
|
+
* @enum {string}
|
|
1870
|
+
*/
|
|
1871
|
+
instance_size?: "small" | "medium" | "large";
|
|
1872
|
+
/** @description The paths the server handles. */
|
|
1873
|
+
routes?: components["schemas"]["functionRoute"][];
|
|
1874
|
+
/** @description Paths within `routes` that the server does not handle. */
|
|
1875
|
+
excluded_routes?: components["schemas"]["excludedFunctionRoute"][];
|
|
1876
|
+
/**
|
|
1877
|
+
* @description The runtime version the server was built for, such as `nodejs24.x`. A
|
|
1878
|
+
* default version is used when absent.
|
|
1879
|
+
*/
|
|
1880
|
+
runtime_version?: string;
|
|
1781
1881
|
};
|
|
1782
1882
|
function_schedules?: components["schemas"]["functionSchedule"][];
|
|
1783
1883
|
functions_config?: {
|
|
@@ -2083,6 +2183,7 @@ export interface components {
|
|
|
2083
2183
|
id?: string;
|
|
2084
2184
|
site_id?: string;
|
|
2085
2185
|
parent_agent_runner_id?: string;
|
|
2186
|
+
/** @description One of `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`. */
|
|
2086
2187
|
state?: string;
|
|
2087
2188
|
/** Format: dateTime */
|
|
2088
2189
|
created_at?: string;
|
|
@@ -2095,10 +2196,12 @@ export interface components {
|
|
|
2095
2196
|
result_branch?: string;
|
|
2096
2197
|
pr_url?: string;
|
|
2097
2198
|
pr_branch?: string;
|
|
2199
|
+
/** @description One of `open`, `draft`, `merged` or `closed`. */
|
|
2098
2200
|
pr_state?: string;
|
|
2099
2201
|
pr_number?: number;
|
|
2100
2202
|
pr_is_being_created?: boolean;
|
|
2101
2203
|
pr_error?: string;
|
|
2204
|
+
/** @description What the agent is working on in the active session. */
|
|
2102
2205
|
current_task?: string;
|
|
2103
2206
|
result_diff?: string;
|
|
2104
2207
|
sha?: string;
|
|
@@ -2109,14 +2212,40 @@ export interface components {
|
|
|
2109
2212
|
attached_file_keys?: string[];
|
|
2110
2213
|
/** Format: dateTime */
|
|
2111
2214
|
active_session_created_at?: string;
|
|
2215
|
+
/** @description Whether the run has changes, available from `GET /agent_runners/{agent_runner_id}/diff`. */
|
|
2216
|
+
has_result_diff?: boolean;
|
|
2112
2217
|
latest_session_deploy_id?: string;
|
|
2113
2218
|
latest_session_deploy_url?: string;
|
|
2219
|
+
/** @description State of the deploy building the latest preview. Null until that deploy exists; `ready` once the preview is live. */
|
|
2220
|
+
preview_state?: string;
|
|
2114
2221
|
user?: components["schemas"]["agentRunnerUser"];
|
|
2115
2222
|
};
|
|
2223
|
+
agentRunnerSetup: {
|
|
2224
|
+
prompt: string;
|
|
2225
|
+
/** @description Branch to start from. Defaults to the site's production branch. */
|
|
2226
|
+
branch?: string;
|
|
2227
|
+
/** @description Deploy to start from. Takes precedence over `branch`. */
|
|
2228
|
+
deploy_id?: string;
|
|
2229
|
+
/** @description Agent to run, for example `claude` or `codex`. */
|
|
2230
|
+
agent?: string;
|
|
2231
|
+
/** @description Model for the agent to use. Omit to let Netlify choose. */
|
|
2232
|
+
model?: string;
|
|
2233
|
+
/**
|
|
2234
|
+
* @description Reasoning effort. Omit to let the agent decide.
|
|
2235
|
+
* @enum {string}
|
|
2236
|
+
*/
|
|
2237
|
+
effort?: "low" | "medium" | "high";
|
|
2238
|
+
/**
|
|
2239
|
+
* @description `normal` (the default) changes code; `ask` answers questions without changing code.
|
|
2240
|
+
* @enum {string}
|
|
2241
|
+
*/
|
|
2242
|
+
mode?: "normal" | "ask";
|
|
2243
|
+
};
|
|
2116
2244
|
agentRunnerSession: {
|
|
2117
2245
|
id?: string;
|
|
2118
2246
|
agent_runner_id?: string;
|
|
2119
2247
|
dev_server_id?: string;
|
|
2248
|
+
/** @description One of `new`, `running`, `await_input`, `interrupted`, `error`, `done` or `cancelled`. */
|
|
2120
2249
|
state?: string;
|
|
2121
2250
|
/** Format: dateTime */
|
|
2122
2251
|
created_at?: string;
|
|
@@ -2124,21 +2253,78 @@ export interface components {
|
|
|
2124
2253
|
updated_at?: string;
|
|
2125
2254
|
/** Format: dateTime */
|
|
2126
2255
|
done_at?: string;
|
|
2256
|
+
/**
|
|
2257
|
+
* Format: dateTime
|
|
2258
|
+
* @description When the session paused waiting on an interaction. Null once it resumes.
|
|
2259
|
+
*/
|
|
2260
|
+
paused_at?: string;
|
|
2127
2261
|
title?: string;
|
|
2128
2262
|
prompt?: string;
|
|
2129
2263
|
agent_config?: components["schemas"]["agentRunnerSessionConfig"];
|
|
2264
|
+
/** @description The agent's summary of what it did. */
|
|
2130
2265
|
result?: string;
|
|
2131
2266
|
result_diff?: string;
|
|
2132
2267
|
commit_sha?: string;
|
|
2133
2268
|
deploy_id?: string;
|
|
2269
|
+
/** @description URL of the session's deploy preview. */
|
|
2134
2270
|
deploy_url?: string;
|
|
2135
2271
|
duration?: number;
|
|
2272
|
+
usage?: components["schemas"]["agentRunnerSessionUsage"];
|
|
2273
|
+
/** @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. */
|
|
2274
|
+
interactions?: {
|
|
2275
|
+
[key: string]: components["schemas"]["agentRunnerSessionInteraction"];
|
|
2276
|
+
};
|
|
2136
2277
|
steps?: components["schemas"]["agentRunnerSessionStep"][];
|
|
2137
2278
|
user?: components["schemas"]["agentRunnerUser"];
|
|
2138
2279
|
attached_file_keys?: string[];
|
|
2139
2280
|
result_zip_file_name?: string;
|
|
2140
2281
|
is_published?: boolean;
|
|
2141
2282
|
};
|
|
2283
|
+
agentRunnerSessionSetup: {
|
|
2284
|
+
/** @description What the agent should do. Required. */
|
|
2285
|
+
prompt?: string;
|
|
2286
|
+
agent?: string;
|
|
2287
|
+
/** @description Model for the agent to use. Omit to let Netlify choose. */
|
|
2288
|
+
model?: string;
|
|
2289
|
+
/**
|
|
2290
|
+
* @description `normal` (the default) changes code; `ask` answers questions without changing code.
|
|
2291
|
+
* @enum {string}
|
|
2292
|
+
*/
|
|
2293
|
+
mode?: "normal" | "ask";
|
|
2294
|
+
};
|
|
2295
|
+
agentRunnerSessionUsage: {
|
|
2296
|
+
total_input_tokens?: number;
|
|
2297
|
+
total_output_tokens?: number;
|
|
2298
|
+
total_cached_input_tokens?: number;
|
|
2299
|
+
total_cached_output_tokens?: number;
|
|
2300
|
+
total_tokens?: number;
|
|
2301
|
+
/** @description Credits the session used. */
|
|
2302
|
+
total_credits_cost?: number;
|
|
2303
|
+
};
|
|
2304
|
+
agentRunnerSessionInteraction: {
|
|
2305
|
+
/** @description One of `question`, `authorization` or `setup_request`. Only questions can be answered; the others can only be skipped. */
|
|
2306
|
+
type?: string;
|
|
2307
|
+
/** @description One of `pending`, `answered` or `skipped`. */
|
|
2308
|
+
status?: string;
|
|
2309
|
+
/** @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. */
|
|
2310
|
+
payload?: unknown;
|
|
2311
|
+
/** @description Answers aligned to `payload`; null entries were skipped. */
|
|
2312
|
+
response?: unknown[];
|
|
2313
|
+
};
|
|
2314
|
+
agentRunnerSessionAnswer: {
|
|
2315
|
+
/** @description Key of the pending interaction in the session's `interactions`. */
|
|
2316
|
+
refId: string;
|
|
2317
|
+
/** @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. */
|
|
2318
|
+
response?: unknown[];
|
|
2319
|
+
/** @description Skip the whole interaction instead of answering it. */
|
|
2320
|
+
skipped?: boolean;
|
|
2321
|
+
/** @description Instruction for the agent when skipping. */
|
|
2322
|
+
instruction?: string;
|
|
2323
|
+
};
|
|
2324
|
+
agentRunnerError: components["schemas"]["error"] & {
|
|
2325
|
+
/** @description Machine-readable reason. Each operation lists the codes it can return. */
|
|
2326
|
+
error_code?: string;
|
|
2327
|
+
};
|
|
2142
2328
|
agentRunnerSessionStep: {
|
|
2143
2329
|
title?: string;
|
|
2144
2330
|
message?: string;
|
|
@@ -3098,7 +3284,7 @@ export interface operations {
|
|
|
3098
3284
|
*/
|
|
3099
3285
|
purgeCache: {
|
|
3100
3286
|
responses: {
|
|
3101
|
-
/**
|
|
3287
|
+
/** 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. */
|
|
3102
3288
|
202: unknown;
|
|
3103
3289
|
/** Invalid request parameters */
|
|
3104
3290
|
400: unknown;
|
|
@@ -3521,8 +3707,14 @@ export interface operations {
|
|
|
3521
3707
|
branch?: string;
|
|
3522
3708
|
/** Whether to clear the build cache before building */
|
|
3523
3709
|
clear_cache?: boolean;
|
|
3710
|
+
/** 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 */
|
|
3711
|
+
commit_sha?: string;
|
|
3712
|
+
/** Whether to create a draft deploy, which uses the deploy-preview context and is never published; review_id builds are always drafts */
|
|
3713
|
+
draft?: boolean;
|
|
3524
3714
|
/** The build image tag to use for the build */
|
|
3525
3715
|
image?: string;
|
|
3716
|
+
/** The merge/pull request ID to build; triggers a deploy preview. Ignored for zip uploads */
|
|
3717
|
+
review_id?: number;
|
|
3526
3718
|
/** The build template to use for the build */
|
|
3527
3719
|
template_id?: string;
|
|
3528
3720
|
/** The title of the build */
|
|
@@ -4449,19 +4641,28 @@ export interface operations {
|
|
|
4449
4641
|
default: components["responses"]["error"];
|
|
4450
4642
|
};
|
|
4451
4643
|
};
|
|
4452
|
-
/**
|
|
4644
|
+
/**
|
|
4645
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/listAgentRunners | `listAgentRunners`}
|
|
4646
|
+
*
|
|
4647
|
+
* Lists a site's agent runs, most recently active first. Archived runs are left out unless `state` is `archived`.
|
|
4648
|
+
*/
|
|
4453
4649
|
listAgentRunners: {
|
|
4454
4650
|
parameters: {
|
|
4455
4651
|
query: {
|
|
4456
|
-
account_id: string;
|
|
4457
4652
|
site_id: string;
|
|
4653
|
+
account_id: string;
|
|
4458
4654
|
page?: components["parameters"]["page"];
|
|
4459
4655
|
per_page?: components["parameters"]["perPage"];
|
|
4460
|
-
state
|
|
4656
|
+
/** Only runs in this state: `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`. */
|
|
4657
|
+
state?: string;
|
|
4461
4658
|
title?: string;
|
|
4462
4659
|
branch?: string;
|
|
4463
4660
|
result_branch?: string;
|
|
4661
|
+
/** Only runs started by this user. */
|
|
4662
|
+
user_id?: string;
|
|
4663
|
+
/** Unix timestamp. Only runs created at or after this time. */
|
|
4464
4664
|
from?: number;
|
|
4665
|
+
/** Unix timestamp. Only runs created before this time. */
|
|
4465
4666
|
to?: number;
|
|
4466
4667
|
};
|
|
4467
4668
|
};
|
|
@@ -4504,6 +4705,63 @@ export interface operations {
|
|
|
4504
4705
|
default: components["responses"]["error"];
|
|
4505
4706
|
};
|
|
4506
4707
|
};
|
|
4708
|
+
/**
|
|
4709
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/createSiteAgentRunner | `createSiteAgentRunner`}
|
|
4710
|
+
*
|
|
4711
|
+
* Starts an agent run on the site.
|
|
4712
|
+
*/
|
|
4713
|
+
createSiteAgentRunner: {
|
|
4714
|
+
parameters: {
|
|
4715
|
+
path: {
|
|
4716
|
+
/** The site's ID or one of its hostnames. */
|
|
4717
|
+
site_id: string;
|
|
4718
|
+
};
|
|
4719
|
+
};
|
|
4720
|
+
responses: {
|
|
4721
|
+
/** OK */
|
|
4722
|
+
200: {
|
|
4723
|
+
content: {
|
|
4724
|
+
"application/json": components["schemas"]["agentRunner"];
|
|
4725
|
+
};
|
|
4726
|
+
};
|
|
4727
|
+
/** `prompt_required` or `invalid_request`. */
|
|
4728
|
+
400: {
|
|
4729
|
+
content: {
|
|
4730
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4731
|
+
};
|
|
4732
|
+
};
|
|
4733
|
+
/** `plan_not_eligible` or `ai_credit_limit_disabled`. */
|
|
4734
|
+
403: {
|
|
4735
|
+
content: {
|
|
4736
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4737
|
+
};
|
|
4738
|
+
};
|
|
4739
|
+
/** 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. */
|
|
4740
|
+
404: {
|
|
4741
|
+
content: {
|
|
4742
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4743
|
+
};
|
|
4744
|
+
};
|
|
4745
|
+
/** `deploy_zip_unavailable`. */
|
|
4746
|
+
422: {
|
|
4747
|
+
content: {
|
|
4748
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4749
|
+
};
|
|
4750
|
+
};
|
|
4751
|
+
/** `concurrency_limit_reached`, `ai_credit_limit_exceeded` or `ai_credit_limit_reached`. */
|
|
4752
|
+
429: {
|
|
4753
|
+
content: {
|
|
4754
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4755
|
+
};
|
|
4756
|
+
};
|
|
4757
|
+
default: components["responses"]["error"];
|
|
4758
|
+
};
|
|
4759
|
+
requestBody: {
|
|
4760
|
+
content: {
|
|
4761
|
+
"application/json": components["schemas"]["agentRunnerSetup"];
|
|
4762
|
+
};
|
|
4763
|
+
};
|
|
4764
|
+
};
|
|
4507
4765
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/getAgentRunner | `getAgentRunner`} */
|
|
4508
4766
|
getAgentRunner: {
|
|
4509
4767
|
parameters: {
|
|
@@ -4521,7 +4779,11 @@ export interface operations {
|
|
|
4521
4779
|
default: components["responses"]["error"];
|
|
4522
4780
|
};
|
|
4523
4781
|
};
|
|
4524
|
-
/**
|
|
4782
|
+
/**
|
|
4783
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/hiddenAgentRunner/operation/deleteAgentRunner | `deleteAgentRunner`}
|
|
4784
|
+
*
|
|
4785
|
+
* Same as `POST /agent_runners/{agent_runner_id}/stop`. Doesn't delete the run.
|
|
4786
|
+
*/
|
|
4525
4787
|
deleteAgentRunner: {
|
|
4526
4788
|
parameters: {
|
|
4527
4789
|
path: {
|
|
@@ -4529,7 +4791,7 @@ export interface operations {
|
|
|
4529
4791
|
};
|
|
4530
4792
|
};
|
|
4531
4793
|
responses: {
|
|
4532
|
-
/** Accepted */
|
|
4794
|
+
/** 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`. */
|
|
4533
4795
|
202: unknown;
|
|
4534
4796
|
default: components["responses"]["error"];
|
|
4535
4797
|
};
|
|
@@ -4551,6 +4813,52 @@ export interface operations {
|
|
|
4551
4813
|
default: components["responses"]["error"];
|
|
4552
4814
|
};
|
|
4553
4815
|
};
|
|
4816
|
+
/**
|
|
4817
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/stopAgentRunner | `stopAgentRunner`}
|
|
4818
|
+
*
|
|
4819
|
+
* Stops the run's active session. Stopping happens in the background.
|
|
4820
|
+
*/
|
|
4821
|
+
stopAgentRunner: {
|
|
4822
|
+
parameters: {
|
|
4823
|
+
path: {
|
|
4824
|
+
agent_runner_id: string;
|
|
4825
|
+
};
|
|
4826
|
+
};
|
|
4827
|
+
responses: {
|
|
4828
|
+
/** 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`. */
|
|
4829
|
+
202: unknown;
|
|
4830
|
+
default: components["responses"]["error"];
|
|
4831
|
+
};
|
|
4832
|
+
};
|
|
4833
|
+
/**
|
|
4834
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/getAgentRunnerDiff | `getAgentRunnerDiff`}
|
|
4835
|
+
*
|
|
4836
|
+
* Returns the run's changes as a unified diff. With `page`, returns that page of changed files and sets pagination headers.
|
|
4837
|
+
*/
|
|
4838
|
+
getAgentRunnerDiff: {
|
|
4839
|
+
parameters: {
|
|
4840
|
+
path: {
|
|
4841
|
+
agent_runner_id: string;
|
|
4842
|
+
};
|
|
4843
|
+
query: {
|
|
4844
|
+
page?: components["parameters"]["page"];
|
|
4845
|
+
per_page?: components["parameters"]["perPage"];
|
|
4846
|
+
/** Replace binary file contents with a placeholder, keeping the file headers. */
|
|
4847
|
+
strip_binary?: boolean;
|
|
4848
|
+
};
|
|
4849
|
+
};
|
|
4850
|
+
responses: {
|
|
4851
|
+
/** OK */
|
|
4852
|
+
200: {
|
|
4853
|
+
content: {
|
|
4854
|
+
"text/plain": string;
|
|
4855
|
+
};
|
|
4856
|
+
};
|
|
4857
|
+
/** The run has no changes. */
|
|
4858
|
+
404: unknown;
|
|
4859
|
+
default: components["responses"]["error"];
|
|
4860
|
+
};
|
|
4861
|
+
};
|
|
4554
4862
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/archiveAgentRunner | `archiveAgentRunner`} */
|
|
4555
4863
|
archiveAgentRunner: {
|
|
4556
4864
|
parameters: {
|
|
@@ -4559,7 +4867,7 @@ export interface operations {
|
|
|
4559
4867
|
};
|
|
4560
4868
|
};
|
|
4561
4869
|
responses: {
|
|
4562
|
-
/** Accepted */
|
|
4870
|
+
/** Accepted. The response has no body. The archive is applied before this returns: `getAgentRunner` (`GET /agent_runners/{agent_runner_id}`) reports `state` as `archived`. */
|
|
4563
4871
|
202: unknown;
|
|
4564
4872
|
/** Not Found */
|
|
4565
4873
|
404: unknown;
|
|
@@ -4577,8 +4885,11 @@ export interface operations {
|
|
|
4577
4885
|
query: {
|
|
4578
4886
|
page?: components["parameters"]["page"];
|
|
4579
4887
|
per_page?: components["parameters"]["perPage"];
|
|
4580
|
-
state
|
|
4888
|
+
/** Only sessions in this state: `new`, `running`, `await_input`, `interrupted`, `error`, `done` or `cancelled`. */
|
|
4889
|
+
state?: string;
|
|
4890
|
+
/** Unix timestamp. Only sessions created at or after this time. */
|
|
4581
4891
|
from?: number;
|
|
4892
|
+
/** Unix timestamp. Only sessions created before this time. */
|
|
4582
4893
|
to?: number;
|
|
4583
4894
|
order_by?: "asc" | "desc";
|
|
4584
4895
|
};
|
|
@@ -4593,16 +4904,24 @@ export interface operations {
|
|
|
4593
4904
|
default: components["responses"]["error"];
|
|
4594
4905
|
};
|
|
4595
4906
|
};
|
|
4596
|
-
/**
|
|
4907
|
+
/**
|
|
4908
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/createAgentRunnerSession | `createAgentRunnerSession`}
|
|
4909
|
+
*
|
|
4910
|
+
* Starts a follow-up session on the run.
|
|
4911
|
+
*/
|
|
4597
4912
|
createAgentRunnerSession: {
|
|
4598
4913
|
parameters: {
|
|
4599
4914
|
path: {
|
|
4600
4915
|
agent_runner_id: string;
|
|
4601
4916
|
};
|
|
4602
4917
|
query: {
|
|
4918
|
+
/** Use the request body instead. */
|
|
4603
4919
|
prompt?: string;
|
|
4920
|
+
/** Use the request body instead. */
|
|
4604
4921
|
agent?: string;
|
|
4922
|
+
/** Use the request body instead. */
|
|
4605
4923
|
model?: string;
|
|
4924
|
+
/** Use the request body instead. */
|
|
4606
4925
|
file_keys?: string[];
|
|
4607
4926
|
};
|
|
4608
4927
|
};
|
|
@@ -4613,12 +4932,49 @@ export interface operations {
|
|
|
4613
4932
|
"application/json": components["schemas"]["agentRunnerSession"];
|
|
4614
4933
|
};
|
|
4615
4934
|
};
|
|
4935
|
+
/** `prompt_required` or `invalid_request`. */
|
|
4936
|
+
400: {
|
|
4937
|
+
content: {
|
|
4938
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4939
|
+
};
|
|
4940
|
+
};
|
|
4941
|
+
/** `plan_not_eligible` or `ai_credit_limit_disabled`. */
|
|
4942
|
+
403: {
|
|
4943
|
+
content: {
|
|
4944
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4945
|
+
};
|
|
4946
|
+
};
|
|
4616
4947
|
/** Not Found */
|
|
4617
|
-
404:
|
|
4618
|
-
|
|
4619
|
-
|
|
4948
|
+
404: {
|
|
4949
|
+
content: {
|
|
4950
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4951
|
+
};
|
|
4952
|
+
};
|
|
4953
|
+
/** `active_session_exists` while a session is still running, or `follow_up_unavailable` once the run is publishing or published. */
|
|
4954
|
+
409: {
|
|
4955
|
+
content: {
|
|
4956
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4957
|
+
};
|
|
4958
|
+
};
|
|
4959
|
+
/** `deploy_zip_unavailable`. */
|
|
4960
|
+
422: {
|
|
4961
|
+
content: {
|
|
4962
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4963
|
+
};
|
|
4964
|
+
};
|
|
4965
|
+
/** `concurrency_limit_reached`, `ai_credit_limit_exceeded` or `ai_credit_limit_reached`. */
|
|
4966
|
+
429: {
|
|
4967
|
+
content: {
|
|
4968
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4969
|
+
};
|
|
4970
|
+
};
|
|
4620
4971
|
default: components["responses"]["error"];
|
|
4621
4972
|
};
|
|
4973
|
+
requestBody: {
|
|
4974
|
+
content: {
|
|
4975
|
+
"application/json": components["schemas"]["agentRunnerSessionSetup"];
|
|
4976
|
+
};
|
|
4977
|
+
};
|
|
4622
4978
|
};
|
|
4623
4979
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/getAgentRunnerSession | `getAgentRunnerSession`} */
|
|
4624
4980
|
getAgentRunnerSession: {
|
|
@@ -4638,7 +4994,11 @@ export interface operations {
|
|
|
4638
4994
|
default: components["responses"]["error"];
|
|
4639
4995
|
};
|
|
4640
4996
|
};
|
|
4641
|
-
/**
|
|
4997
|
+
/**
|
|
4998
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/hiddenAgentRunner/operation/deleteAgentRunnerSession | `deleteAgentRunnerSession`}
|
|
4999
|
+
*
|
|
5000
|
+
* Same as `POST /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop`. Doesn't delete the session.
|
|
5001
|
+
*/
|
|
4642
5002
|
deleteAgentRunnerSession: {
|
|
4643
5003
|
parameters: {
|
|
4644
5004
|
path: {
|
|
@@ -4647,7 +5007,7 @@ export interface operations {
|
|
|
4647
5007
|
};
|
|
4648
5008
|
};
|
|
4649
5009
|
responses: {
|
|
4650
|
-
/** Accepted */
|
|
5010
|
+
/** 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`. */
|
|
4651
5011
|
202: unknown;
|
|
4652
5012
|
default: components["responses"]["error"];
|
|
4653
5013
|
};
|
|
@@ -4673,6 +5033,69 @@ export interface operations {
|
|
|
4673
5033
|
default: components["responses"]["error"];
|
|
4674
5034
|
};
|
|
4675
5035
|
};
|
|
5036
|
+
/**
|
|
5037
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/stopAgentRunnerSession | `stopAgentRunnerSession`}
|
|
5038
|
+
*
|
|
5039
|
+
* Stops the session. Stopping happens in the background.
|
|
5040
|
+
*/
|
|
5041
|
+
stopAgentRunnerSession: {
|
|
5042
|
+
parameters: {
|
|
5043
|
+
path: {
|
|
5044
|
+
agent_runner_id: string;
|
|
5045
|
+
agent_runner_session_id: string;
|
|
5046
|
+
};
|
|
5047
|
+
};
|
|
5048
|
+
responses: {
|
|
5049
|
+
/** 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`. */
|
|
5050
|
+
202: unknown;
|
|
5051
|
+
default: components["responses"]["error"];
|
|
5052
|
+
};
|
|
5053
|
+
};
|
|
5054
|
+
/**
|
|
5055
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/answerAgentRunnerSession | `answerAgentRunnerSession`}
|
|
5056
|
+
*
|
|
5057
|
+
* Answers or skips a pending interaction and resumes the session. A session waiting on an interaction is in the `await_input` state.
|
|
5058
|
+
*/
|
|
5059
|
+
answerAgentRunnerSession: {
|
|
5060
|
+
parameters: {
|
|
5061
|
+
path: {
|
|
5062
|
+
agent_runner_id: string;
|
|
5063
|
+
agent_runner_session_id: string;
|
|
5064
|
+
};
|
|
5065
|
+
};
|
|
5066
|
+
responses: {
|
|
5067
|
+
/** OK */
|
|
5068
|
+
200: {
|
|
5069
|
+
content: {
|
|
5070
|
+
"application/json": components["schemas"]["agentRunnerSession"];
|
|
5071
|
+
};
|
|
5072
|
+
};
|
|
5073
|
+
/** `ref_id_required`, `invalid_response`, or `interaction_can_only_be_skipped` when answering an `authorization` or `setup_request` interaction. */
|
|
5074
|
+
400: {
|
|
5075
|
+
content: {
|
|
5076
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
5077
|
+
};
|
|
5078
|
+
};
|
|
5079
|
+
/** `interaction_not_found` or `interaction_not_pending`. */
|
|
5080
|
+
422: {
|
|
5081
|
+
content: {
|
|
5082
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
5083
|
+
};
|
|
5084
|
+
};
|
|
5085
|
+
/** `concurrency_limit_reached`. */
|
|
5086
|
+
429: {
|
|
5087
|
+
content: {
|
|
5088
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
5089
|
+
};
|
|
5090
|
+
};
|
|
5091
|
+
default: components["responses"]["error"];
|
|
5092
|
+
};
|
|
5093
|
+
requestBody: {
|
|
5094
|
+
content: {
|
|
5095
|
+
"application/json": components["schemas"]["agentRunnerSessionAnswer"];
|
|
5096
|
+
};
|
|
5097
|
+
};
|
|
5098
|
+
};
|
|
4676
5099
|
/** API Reference: {@link https://open-api.netlify.com/#tag/submission/operation/listFormSubmission | `listFormSubmission`} */
|
|
4677
5100
|
listFormSubmission: {
|
|
4678
5101
|
parameters: {
|
|
@@ -5169,7 +5592,7 @@ export interface operations {
|
|
|
5169
5592
|
};
|
|
5170
5593
|
};
|
|
5171
5594
|
responses: {
|
|
5172
|
-
/**
|
|
5595
|
+
/** 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`). */
|
|
5173
5596
|
202: unknown;
|
|
5174
5597
|
default: components["responses"]["error"];
|
|
5175
5598
|
};
|