@netlify/open-api 2.59.0 → 2.61.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 +431 -14
- package/dist/swagger.json +2222 -412
- 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;
|
|
@@ -4449,19 +4635,28 @@ export interface operations {
|
|
|
4449
4635
|
default: components["responses"]["error"];
|
|
4450
4636
|
};
|
|
4451
4637
|
};
|
|
4452
|
-
/**
|
|
4638
|
+
/**
|
|
4639
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/listAgentRunners | `listAgentRunners`}
|
|
4640
|
+
*
|
|
4641
|
+
* Lists a site's agent runs, most recently active first. Archived runs are left out unless `state` is `archived`.
|
|
4642
|
+
*/
|
|
4453
4643
|
listAgentRunners: {
|
|
4454
4644
|
parameters: {
|
|
4455
4645
|
query: {
|
|
4456
|
-
account_id: string;
|
|
4457
4646
|
site_id: string;
|
|
4647
|
+
account_id: string;
|
|
4458
4648
|
page?: components["parameters"]["page"];
|
|
4459
4649
|
per_page?: components["parameters"]["perPage"];
|
|
4460
|
-
state
|
|
4650
|
+
/** Only runs in this state: `new`, `running`, `await_input`, `interrupted`, `error`, `done`, `cancelled` or `archived`. */
|
|
4651
|
+
state?: string;
|
|
4461
4652
|
title?: string;
|
|
4462
4653
|
branch?: string;
|
|
4463
4654
|
result_branch?: string;
|
|
4655
|
+
/** Only runs started by this user. */
|
|
4656
|
+
user_id?: string;
|
|
4657
|
+
/** Unix timestamp. Only runs created at or after this time. */
|
|
4464
4658
|
from?: number;
|
|
4659
|
+
/** Unix timestamp. Only runs created before this time. */
|
|
4465
4660
|
to?: number;
|
|
4466
4661
|
};
|
|
4467
4662
|
};
|
|
@@ -4504,6 +4699,63 @@ export interface operations {
|
|
|
4504
4699
|
default: components["responses"]["error"];
|
|
4505
4700
|
};
|
|
4506
4701
|
};
|
|
4702
|
+
/**
|
|
4703
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/createSiteAgentRunner | `createSiteAgentRunner`}
|
|
4704
|
+
*
|
|
4705
|
+
* Starts an agent run on the site.
|
|
4706
|
+
*/
|
|
4707
|
+
createSiteAgentRunner: {
|
|
4708
|
+
parameters: {
|
|
4709
|
+
path: {
|
|
4710
|
+
/** The site's ID or one of its hostnames. */
|
|
4711
|
+
site_id: string;
|
|
4712
|
+
};
|
|
4713
|
+
};
|
|
4714
|
+
responses: {
|
|
4715
|
+
/** OK */
|
|
4716
|
+
200: {
|
|
4717
|
+
content: {
|
|
4718
|
+
"application/json": components["schemas"]["agentRunner"];
|
|
4719
|
+
};
|
|
4720
|
+
};
|
|
4721
|
+
/** `prompt_required` or `invalid_request`. */
|
|
4722
|
+
400: {
|
|
4723
|
+
content: {
|
|
4724
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4725
|
+
};
|
|
4726
|
+
};
|
|
4727
|
+
/** `plan_not_eligible` or `ai_credit_limit_disabled`. */
|
|
4728
|
+
403: {
|
|
4729
|
+
content: {
|
|
4730
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4731
|
+
};
|
|
4732
|
+
};
|
|
4733
|
+
/** 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. */
|
|
4734
|
+
404: {
|
|
4735
|
+
content: {
|
|
4736
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4737
|
+
};
|
|
4738
|
+
};
|
|
4739
|
+
/** `deploy_zip_unavailable`. */
|
|
4740
|
+
422: {
|
|
4741
|
+
content: {
|
|
4742
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4743
|
+
};
|
|
4744
|
+
};
|
|
4745
|
+
/** `concurrency_limit_reached`, `ai_credit_limit_exceeded` or `ai_credit_limit_reached`. */
|
|
4746
|
+
429: {
|
|
4747
|
+
content: {
|
|
4748
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4749
|
+
};
|
|
4750
|
+
};
|
|
4751
|
+
default: components["responses"]["error"];
|
|
4752
|
+
};
|
|
4753
|
+
requestBody: {
|
|
4754
|
+
content: {
|
|
4755
|
+
"application/json": components["schemas"]["agentRunnerSetup"];
|
|
4756
|
+
};
|
|
4757
|
+
};
|
|
4758
|
+
};
|
|
4507
4759
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/getAgentRunner | `getAgentRunner`} */
|
|
4508
4760
|
getAgentRunner: {
|
|
4509
4761
|
parameters: {
|
|
@@ -4521,7 +4773,11 @@ export interface operations {
|
|
|
4521
4773
|
default: components["responses"]["error"];
|
|
4522
4774
|
};
|
|
4523
4775
|
};
|
|
4524
|
-
/**
|
|
4776
|
+
/**
|
|
4777
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/hiddenAgentRunner/operation/deleteAgentRunner | `deleteAgentRunner`}
|
|
4778
|
+
*
|
|
4779
|
+
* Same as `POST /agent_runners/{agent_runner_id}/stop`. Doesn't delete the run.
|
|
4780
|
+
*/
|
|
4525
4781
|
deleteAgentRunner: {
|
|
4526
4782
|
parameters: {
|
|
4527
4783
|
path: {
|
|
@@ -4551,6 +4807,52 @@ export interface operations {
|
|
|
4551
4807
|
default: components["responses"]["error"];
|
|
4552
4808
|
};
|
|
4553
4809
|
};
|
|
4810
|
+
/**
|
|
4811
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/stopAgentRunner | `stopAgentRunner`}
|
|
4812
|
+
*
|
|
4813
|
+
* Stops the run's active session. Stopping happens in the background.
|
|
4814
|
+
*/
|
|
4815
|
+
stopAgentRunner: {
|
|
4816
|
+
parameters: {
|
|
4817
|
+
path: {
|
|
4818
|
+
agent_runner_id: string;
|
|
4819
|
+
};
|
|
4820
|
+
};
|
|
4821
|
+
responses: {
|
|
4822
|
+
/** Accepted */
|
|
4823
|
+
202: unknown;
|
|
4824
|
+
default: components["responses"]["error"];
|
|
4825
|
+
};
|
|
4826
|
+
};
|
|
4827
|
+
/**
|
|
4828
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/getAgentRunnerDiff | `getAgentRunnerDiff`}
|
|
4829
|
+
*
|
|
4830
|
+
* Returns the run's changes as a unified diff. With `page`, returns that page of changed files and sets pagination headers.
|
|
4831
|
+
*/
|
|
4832
|
+
getAgentRunnerDiff: {
|
|
4833
|
+
parameters: {
|
|
4834
|
+
path: {
|
|
4835
|
+
agent_runner_id: string;
|
|
4836
|
+
};
|
|
4837
|
+
query: {
|
|
4838
|
+
page?: components["parameters"]["page"];
|
|
4839
|
+
per_page?: components["parameters"]["perPage"];
|
|
4840
|
+
/** Replace binary file contents with a placeholder, keeping the file headers. */
|
|
4841
|
+
strip_binary?: boolean;
|
|
4842
|
+
};
|
|
4843
|
+
};
|
|
4844
|
+
responses: {
|
|
4845
|
+
/** OK */
|
|
4846
|
+
200: {
|
|
4847
|
+
content: {
|
|
4848
|
+
"text/plain": string;
|
|
4849
|
+
};
|
|
4850
|
+
};
|
|
4851
|
+
/** The run has no changes. */
|
|
4852
|
+
404: unknown;
|
|
4853
|
+
default: components["responses"]["error"];
|
|
4854
|
+
};
|
|
4855
|
+
};
|
|
4554
4856
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunner/operation/archiveAgentRunner | `archiveAgentRunner`} */
|
|
4555
4857
|
archiveAgentRunner: {
|
|
4556
4858
|
parameters: {
|
|
@@ -4577,8 +4879,11 @@ export interface operations {
|
|
|
4577
4879
|
query: {
|
|
4578
4880
|
page?: components["parameters"]["page"];
|
|
4579
4881
|
per_page?: components["parameters"]["perPage"];
|
|
4580
|
-
state
|
|
4882
|
+
/** Only sessions in this state: `new`, `running`, `await_input`, `interrupted`, `error`, `done` or `cancelled`. */
|
|
4883
|
+
state?: string;
|
|
4884
|
+
/** Unix timestamp. Only sessions created at or after this time. */
|
|
4581
4885
|
from?: number;
|
|
4886
|
+
/** Unix timestamp. Only sessions created before this time. */
|
|
4582
4887
|
to?: number;
|
|
4583
4888
|
order_by?: "asc" | "desc";
|
|
4584
4889
|
};
|
|
@@ -4593,16 +4898,24 @@ export interface operations {
|
|
|
4593
4898
|
default: components["responses"]["error"];
|
|
4594
4899
|
};
|
|
4595
4900
|
};
|
|
4596
|
-
/**
|
|
4901
|
+
/**
|
|
4902
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/createAgentRunnerSession | `createAgentRunnerSession`}
|
|
4903
|
+
*
|
|
4904
|
+
* Starts a follow-up session on the run.
|
|
4905
|
+
*/
|
|
4597
4906
|
createAgentRunnerSession: {
|
|
4598
4907
|
parameters: {
|
|
4599
4908
|
path: {
|
|
4600
4909
|
agent_runner_id: string;
|
|
4601
4910
|
};
|
|
4602
4911
|
query: {
|
|
4912
|
+
/** Use the request body instead. */
|
|
4603
4913
|
prompt?: string;
|
|
4914
|
+
/** Use the request body instead. */
|
|
4604
4915
|
agent?: string;
|
|
4916
|
+
/** Use the request body instead. */
|
|
4605
4917
|
model?: string;
|
|
4918
|
+
/** Use the request body instead. */
|
|
4606
4919
|
file_keys?: string[];
|
|
4607
4920
|
};
|
|
4608
4921
|
};
|
|
@@ -4613,12 +4926,49 @@ export interface operations {
|
|
|
4613
4926
|
"application/json": components["schemas"]["agentRunnerSession"];
|
|
4614
4927
|
};
|
|
4615
4928
|
};
|
|
4929
|
+
/** `prompt_required` or `invalid_request`. */
|
|
4930
|
+
400: {
|
|
4931
|
+
content: {
|
|
4932
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4933
|
+
};
|
|
4934
|
+
};
|
|
4935
|
+
/** `plan_not_eligible` or `ai_credit_limit_disabled`. */
|
|
4936
|
+
403: {
|
|
4937
|
+
content: {
|
|
4938
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4939
|
+
};
|
|
4940
|
+
};
|
|
4616
4941
|
/** Not Found */
|
|
4617
|
-
404:
|
|
4618
|
-
|
|
4619
|
-
|
|
4942
|
+
404: {
|
|
4943
|
+
content: {
|
|
4944
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4945
|
+
};
|
|
4946
|
+
};
|
|
4947
|
+
/** `active_session_exists` while a session is still running, or `follow_up_unavailable` once the run is publishing or published. */
|
|
4948
|
+
409: {
|
|
4949
|
+
content: {
|
|
4950
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4951
|
+
};
|
|
4952
|
+
};
|
|
4953
|
+
/** `deploy_zip_unavailable`. */
|
|
4954
|
+
422: {
|
|
4955
|
+
content: {
|
|
4956
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4957
|
+
};
|
|
4958
|
+
};
|
|
4959
|
+
/** `concurrency_limit_reached`, `ai_credit_limit_exceeded` or `ai_credit_limit_reached`. */
|
|
4960
|
+
429: {
|
|
4961
|
+
content: {
|
|
4962
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
4963
|
+
};
|
|
4964
|
+
};
|
|
4620
4965
|
default: components["responses"]["error"];
|
|
4621
4966
|
};
|
|
4967
|
+
requestBody: {
|
|
4968
|
+
content: {
|
|
4969
|
+
"application/json": components["schemas"]["agentRunnerSessionSetup"];
|
|
4970
|
+
};
|
|
4971
|
+
};
|
|
4622
4972
|
};
|
|
4623
4973
|
/** API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/getAgentRunnerSession | `getAgentRunnerSession`} */
|
|
4624
4974
|
getAgentRunnerSession: {
|
|
@@ -4638,7 +4988,11 @@ export interface operations {
|
|
|
4638
4988
|
default: components["responses"]["error"];
|
|
4639
4989
|
};
|
|
4640
4990
|
};
|
|
4641
|
-
/**
|
|
4991
|
+
/**
|
|
4992
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/hiddenAgentRunner/operation/deleteAgentRunnerSession | `deleteAgentRunnerSession`}
|
|
4993
|
+
*
|
|
4994
|
+
* Same as `POST /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop`. Doesn't delete the session.
|
|
4995
|
+
*/
|
|
4642
4996
|
deleteAgentRunnerSession: {
|
|
4643
4997
|
parameters: {
|
|
4644
4998
|
path: {
|
|
@@ -4673,6 +5027,69 @@ export interface operations {
|
|
|
4673
5027
|
default: components["responses"]["error"];
|
|
4674
5028
|
};
|
|
4675
5029
|
};
|
|
5030
|
+
/**
|
|
5031
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/stopAgentRunnerSession | `stopAgentRunnerSession`}
|
|
5032
|
+
*
|
|
5033
|
+
* Stops the session. Stopping happens in the background.
|
|
5034
|
+
*/
|
|
5035
|
+
stopAgentRunnerSession: {
|
|
5036
|
+
parameters: {
|
|
5037
|
+
path: {
|
|
5038
|
+
agent_runner_id: string;
|
|
5039
|
+
agent_runner_session_id: string;
|
|
5040
|
+
};
|
|
5041
|
+
};
|
|
5042
|
+
responses: {
|
|
5043
|
+
/** Accepted */
|
|
5044
|
+
202: unknown;
|
|
5045
|
+
default: components["responses"]["error"];
|
|
5046
|
+
};
|
|
5047
|
+
};
|
|
5048
|
+
/**
|
|
5049
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/agentRunnerSession/operation/answerAgentRunnerSession | `answerAgentRunnerSession`}
|
|
5050
|
+
*
|
|
5051
|
+
* Answers or skips a pending interaction and resumes the session. A session waiting on an interaction is in the `await_input` state.
|
|
5052
|
+
*/
|
|
5053
|
+
answerAgentRunnerSession: {
|
|
5054
|
+
parameters: {
|
|
5055
|
+
path: {
|
|
5056
|
+
agent_runner_id: string;
|
|
5057
|
+
agent_runner_session_id: string;
|
|
5058
|
+
};
|
|
5059
|
+
};
|
|
5060
|
+
responses: {
|
|
5061
|
+
/** OK */
|
|
5062
|
+
200: {
|
|
5063
|
+
content: {
|
|
5064
|
+
"application/json": components["schemas"]["agentRunnerSession"];
|
|
5065
|
+
};
|
|
5066
|
+
};
|
|
5067
|
+
/** `ref_id_required`, `invalid_response`, or `interaction_can_only_be_skipped` when answering an `authorization` or `setup_request` interaction. */
|
|
5068
|
+
400: {
|
|
5069
|
+
content: {
|
|
5070
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
5071
|
+
};
|
|
5072
|
+
};
|
|
5073
|
+
/** `interaction_not_found` or `interaction_not_pending`. */
|
|
5074
|
+
422: {
|
|
5075
|
+
content: {
|
|
5076
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
5077
|
+
};
|
|
5078
|
+
};
|
|
5079
|
+
/** `concurrency_limit_reached`. */
|
|
5080
|
+
429: {
|
|
5081
|
+
content: {
|
|
5082
|
+
"application/json": components["schemas"]["agentRunnerError"];
|
|
5083
|
+
};
|
|
5084
|
+
};
|
|
5085
|
+
default: components["responses"]["error"];
|
|
5086
|
+
};
|
|
5087
|
+
requestBody: {
|
|
5088
|
+
content: {
|
|
5089
|
+
"application/json": components["schemas"]["agentRunnerSessionAnswer"];
|
|
5090
|
+
};
|
|
5091
|
+
};
|
|
5092
|
+
};
|
|
4676
5093
|
/** API Reference: {@link https://open-api.netlify.com/#tag/submission/operation/listFormSubmission | `listFormSubmission`} */
|
|
4677
5094
|
listFormSubmission: {
|
|
4678
5095
|
parameters: {
|