@netlify/open-api 2.61.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 CHANGED
@@ -3284,7 +3284,7 @@ export interface operations {
3284
3284
  */
3285
3285
  purgeCache: {
3286
3286
  responses: {
3287
- /** OK */
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. */
3288
3288
  202: unknown;
3289
3289
  /** Invalid request parameters */
3290
3290
  400: unknown;
@@ -3707,8 +3707,14 @@ export interface operations {
3707
3707
  branch?: string;
3708
3708
  /** Whether to clear the build cache before building */
3709
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;
3710
3714
  /** The build image tag to use for the build */
3711
3715
  image?: string;
3716
+ /** The merge/pull request ID to build; triggers a deploy preview. Ignored for zip uploads */
3717
+ review_id?: number;
3712
3718
  /** The build template to use for the build */
3713
3719
  template_id?: string;
3714
3720
  /** The title of the build */
@@ -4785,7 +4791,7 @@ export interface operations {
4785
4791
  };
4786
4792
  };
4787
4793
  responses: {
4788
- /** 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`. */
4789
4795
  202: unknown;
4790
4796
  default: components["responses"]["error"];
4791
4797
  };
@@ -4819,7 +4825,7 @@ export interface operations {
4819
4825
  };
4820
4826
  };
4821
4827
  responses: {
4822
- /** Accepted */
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`. */
4823
4829
  202: unknown;
4824
4830
  default: components["responses"]["error"];
4825
4831
  };
@@ -4861,7 +4867,7 @@ export interface operations {
4861
4867
  };
4862
4868
  };
4863
4869
  responses: {
4864
- /** 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`. */
4865
4871
  202: unknown;
4866
4872
  /** Not Found */
4867
4873
  404: unknown;
@@ -5001,7 +5007,7 @@ export interface operations {
5001
5007
  };
5002
5008
  };
5003
5009
  responses: {
5004
- /** 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`. */
5005
5011
  202: unknown;
5006
5012
  default: components["responses"]["error"];
5007
5013
  };
@@ -5040,7 +5046,7 @@ export interface operations {
5040
5046
  };
5041
5047
  };
5042
5048
  responses: {
5043
- /** Accepted */
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`. */
5044
5050
  202: unknown;
5045
5051
  default: components["responses"]["error"];
5046
5052
  };
@@ -5586,7 +5592,7 @@ export interface operations {
5586
5592
  };
5587
5593
  };
5588
5594
  responses: {
5589
- /** OK */
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`). */
5590
5596
  202: unknown;
5591
5597
  default: components["responses"]["error"];
5592
5598
  };
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.61.0",
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": "OK"
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"
@@ -7607,6 +7607,20 @@
7607
7607
  "in": "query",
7608
7608
  "type": "boolean"
7609
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
+ },
7610
7624
  {
7611
7625
  "name": "image",
7612
7626
  "description": "The build image tag to use for the build",
@@ -7614,6 +7628,13 @@
7614
7628
  "in": "query",
7615
7629
  "type": "string"
7616
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
+ },
7617
7638
  {
7618
7639
  "name": "template_id",
7619
7640
  "description": "The build template to use for the build",
@@ -14660,7 +14681,7 @@
14660
14681
  "description": "Same as `POST /agent_runners/{agent_runner_id}/stop`. Doesn't delete the run.",
14661
14682
  "responses": {
14662
14683
  "202": {
14663
- "description": "Accepted"
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`."
14664
14685
  },
14665
14686
  "default": {
14666
14687
  "description": "error",
@@ -14701,7 +14722,7 @@
14701
14722
  "description": "Stops the run's active session. Stopping happens in the background.",
14702
14723
  "responses": {
14703
14724
  "202": {
14704
- "description": "Accepted"
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`."
14705
14726
  },
14706
14727
  "default": {
14707
14728
  "description": "error",
@@ -14813,7 +14834,7 @@
14813
14834
  ],
14814
14835
  "responses": {
14815
14836
  "202": {
14816
- "description": "Accepted"
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`."
14817
14838
  },
14818
14839
  "404": {
14819
14840
  "description": "Not Found"
@@ -16057,7 +16078,7 @@
16057
16078
  "description": "Same as `POST /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop`. Doesn't delete the session.",
16058
16079
  "responses": {
16059
16080
  "202": {
16060
- "description": "Accepted"
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`."
16061
16082
  },
16062
16083
  "default": {
16063
16084
  "description": "error",
@@ -16104,7 +16125,7 @@
16104
16125
  "description": "Stops the session. Stopping happens in the background.",
16105
16126
  "responses": {
16106
16127
  "202": {
16107
- "description": "Accepted"
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`."
16108
16129
  },
16109
16130
  "default": {
16110
16131
  "description": "error",
@@ -18877,7 +18898,7 @@
18877
18898
  ],
18878
18899
  "responses": {
18879
18900
  "202": {
18880
- "description": "OK"
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`)."
18881
18902
  },
18882
18903
  "default": {
18883
18904
  "description": "error",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/open-api",
3
3
  "description": "Netlify's open-api definition as a module",
4
- "version": "2.61.0",
4
+ "version": "2.62.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [