netlify-api 0.1.5 → 0.1.6

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.
@@ -1,10 +1,10 @@
1
1
 
2
- > netlify-api@0.1.5 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
2
+ > netlify-api@0.1.6 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
3
3
  > rimraf dist && rollup -c
4
4
 
5
5
  
6
6
  ./src/index.ts → dist/index.cjs, dist/index.mjs...
7
- created dist/index.cjs, dist/index.mjs in 7.2s
7
+ created dist/index.cjs, dist/index.mjs in 7.5s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 7.6s
10
+ created dist/index.d.ts in 8.3s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # netlify-api
2
2
 
3
+ ## 0.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 5da1e9e: [OpenAPI] Add context branch parameter
8
+
3
9
  ## 0.1.5
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -14,6 +14,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
14
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
16
  ***************************************************************************** */
17
+ /* global Reflect, Promise */
18
+
17
19
 
18
20
  function __classPrivateFieldGet(receiver, state, kind, f) {
19
21
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ type ErrorWrapper<TError> = TError | {
29
29
  /**
30
30
  * Generated by @openapi-codegen
31
31
  *
32
- * @version 2.16.0
32
+ * @version 2.18.0
33
33
  */
34
34
  type CreateSiteDeployDeploy = {
35
35
  files?: Record<string, any>;
@@ -263,7 +263,7 @@ type ServerErrorStatus = Exclude<ComputeRange<600>[number], ComputeRange<500>[nu
263
263
  /**
264
264
  * Generated by @openapi-codegen
265
265
  *
266
- * @version 2.16.0
266
+ * @version 2.18.0
267
267
  */
268
268
 
269
269
  type ListSitesQueryParams = {
@@ -1012,7 +1012,11 @@ type GetEnvVarsResponse = {
1012
1012
  /**
1013
1013
  * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
1014
1014
  */
1015
- context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
1015
+ context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
1016
+ /**
1017
+ * An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
1018
+ */
1019
+ context_parameter?: string;
1016
1020
  }[];
1017
1021
  /**
1018
1022
  * The timestamp of when the value was last updated
@@ -1110,7 +1114,11 @@ type CreateEnvVarsResponse = {
1110
1114
  /**
1111
1115
  * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
1112
1116
  */
1113
- context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
1117
+ context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
1118
+ /**
1119
+ * An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
1120
+ */
1121
+ context_parameter?: string;
1114
1122
  }[];
1115
1123
  /**
1116
1124
  * The timestamp of when the value was last updated
@@ -1171,7 +1179,11 @@ type CreateEnvVarsRequestBody = {
1171
1179
  /**
1172
1180
  * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
1173
1181
  */
1174
- context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
1182
+ context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
1183
+ /**
1184
+ * An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
1185
+ */
1186
+ context_parameter?: string;
1175
1187
  }[];
1176
1188
  }[];
1177
1189
  type CreateEnvVarsVariables = {
@@ -1241,7 +1253,11 @@ type GetEnvVarResponse = {
1241
1253
  /**
1242
1254
  * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
1243
1255
  */
1244
- context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
1256
+ context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
1257
+ /**
1258
+ * An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
1259
+ */
1260
+ context_parameter?: string;
1245
1261
  }[];
1246
1262
  /**
1247
1263
  * The timestamp of when the value was last updated
@@ -1343,7 +1359,11 @@ type UpdateEnvVarResponse = {
1343
1359
  /**
1344
1360
  * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
1345
1361
  */
1346
- context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
1362
+ context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
1363
+ /**
1364
+ * An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
1365
+ */
1366
+ context_parameter?: string;
1347
1367
  }[];
1348
1368
  /**
1349
1369
  * The timestamp of when the value was last updated
@@ -1404,7 +1424,11 @@ type UpdateEnvVarRequestBody = {
1404
1424
  /**
1405
1425
  * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
1406
1426
  */
1407
- context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
1427
+ context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
1428
+ /**
1429
+ * An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
1430
+ */
1431
+ context_parameter?: string;
1408
1432
  }[];
1409
1433
  };
1410
1434
  type UpdateEnvVarVariables = {
@@ -1474,7 +1498,11 @@ type SetEnvVarValueResponse = {
1474
1498
  /**
1475
1499
  * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
1476
1500
  */
1477
- context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
1501
+ context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
1502
+ /**
1503
+ * An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
1504
+ */
1505
+ context_parameter?: string;
1478
1506
  }[];
1479
1507
  /**
1480
1508
  * The timestamp of when the value was last updated
@@ -1512,9 +1540,13 @@ type SetEnvVarValueResponse = {
1512
1540
  };
1513
1541
  type SetEnvVarValueRequestBody = {
1514
1542
  /**
1515
- * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
1543
+ * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`. `branch` must be provided with a value in `context_parameter`.
1544
+ */
1545
+ context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
1546
+ /**
1547
+ * An additional parameter for custom branches. Currently, this is used for providing a branch name when `context=branch`.
1516
1548
  */
1517
- context?: 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
1549
+ context_parameter?: string;
1518
1550
  /**
1519
1551
  * The environment variable's unencrypted value
1520
1552
  */
@@ -3419,6 +3451,7 @@ type UploadDeployFunctionPathParams = {
3419
3451
  };
3420
3452
  type UploadDeployFunctionQueryParams = {
3421
3453
  runtime?: string;
3454
+ invocation_mode?: string;
3422
3455
  size?: number;
3423
3456
  };
3424
3457
  type UploadDeployFunctionHeaders = {
@@ -7498,7 +7531,7 @@ type RefreshTokenResult = {
7498
7531
  /**
7499
7532
  * Generated by @openapi-codegen
7500
7533
  *
7501
- * @version 2.16.0
7534
+ * @version 2.18.0
7502
7535
  */
7503
7536
  type SplitTestSetup = {
7504
7537
  branch_tests?: Record<string, any>;
@@ -7929,7 +7962,11 @@ type EnvVar = {
7929
7962
  /**
7930
7963
  * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
7931
7964
  */
7932
- context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
7965
+ context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
7966
+ /**
7967
+ * An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
7968
+ */
7969
+ context_parameter?: string;
7933
7970
  }[];
7934
7971
  /**
7935
7972
  * The timestamp of when the value was last updated
@@ -7984,7 +8021,11 @@ type EnvVarValue = {
7984
8021
  /**
7985
8022
  * The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
7986
8023
  */
7987
- context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
8024
+ context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
8025
+ /**
8026
+ * An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
8027
+ */
8028
+ context_parameter?: string;
7988
8029
  };
7989
8030
  type EnvVarUser = {
7990
8031
  /**
@@ -8782,7 +8823,7 @@ declare namespace schemas {
8782
8823
  /**
8783
8824
  * Generated by @openapi-codegen
8784
8825
  *
8785
- * @version 2.16.0
8826
+ * @version 2.18.0
8786
8827
  */
8787
8828
  /**
8788
8829
  * @format int32
@@ -8808,7 +8849,7 @@ declare namespace parameters {
8808
8849
  /**
8809
8850
  * Generated by @openapi-codegen
8810
8851
  *
8811
- * @version 2.16.0
8852
+ * @version 2.18.0
8812
8853
  */
8813
8854
  type Error = {
8814
8855
  /**
package/dist/index.mjs CHANGED
@@ -12,6 +12,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */
15
+ /* global Reflect, Promise */
16
+
15
17
 
16
18
  function __classPrivateFieldGet(receiver, state, kind, f) {
17
19
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netlify-api",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Netlify API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",