netlify-api 0.1.5 → 0.1.7
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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +8 -1
- package/dist/index.d.ts +95 -16
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> netlify-api@0.1.
|
|
2
|
+
> netlify-api@0.1.7 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
|
|
3
3
|
> rimraf dist && rollup -c
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.ts[22m → [1mdist/index.cjs, dist/index.mjs[22m...[39m
|
|
7
|
-
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m7.
|
|
7
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m7.8s[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
|
10
|
-
[32mcreated [1mdist/index.d.ts[22m in [1m7.
|
|
10
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m7.3s[22m[39m
|
package/CHANGELOG.md
CHANGED
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, SuppressedError, Symbol */
|
|
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");
|
|
@@ -26,7 +28,12 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
|
26
28
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
27
29
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
28
30
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
29
|
-
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
34
|
+
var e = new Error(message);
|
|
35
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
36
|
+
};
|
|
30
37
|
|
|
31
38
|
const baseUrl = 'https://api.netlify.com';
|
|
32
39
|
async function fetch$1({ url, method, body, headers, pathParams, queryParams, signal, token, fetchImpl, basePath }) {
|
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.
|
|
32
|
+
* @version 2.19.1
|
|
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.
|
|
266
|
+
* @version 2.19.1
|
|
267
267
|
*/
|
|
268
268
|
|
|
269
269
|
type ListSitesQueryParams = {
|
|
@@ -571,6 +571,9 @@ declare const createSite: (variables: CreateSiteVariables, signal?: AbortSignal)
|
|
|
571
571
|
type GetSitePathParams = {
|
|
572
572
|
siteId: string;
|
|
573
573
|
};
|
|
574
|
+
type GetSiteQueryParams = {
|
|
575
|
+
feature_flags?: string;
|
|
576
|
+
};
|
|
574
577
|
type GetSiteError = ErrorWrapper<{
|
|
575
578
|
status: Exclude<ClientErrorStatus | ServerErrorStatus, 200>;
|
|
576
579
|
payload: {
|
|
@@ -709,6 +712,7 @@ type GetSiteResponse = {
|
|
|
709
712
|
};
|
|
710
713
|
type GetSiteVariables = {
|
|
711
714
|
pathParams: GetSitePathParams;
|
|
715
|
+
queryParams?: GetSiteQueryParams;
|
|
712
716
|
} & FetcherExtraProps;
|
|
713
717
|
/**
|
|
714
718
|
* **Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables.
|
|
@@ -1012,8 +1016,16 @@ type GetEnvVarsResponse = {
|
|
|
1012
1016
|
/**
|
|
1013
1017
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1014
1018
|
*/
|
|
1015
|
-
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
|
|
1019
|
+
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
|
|
1020
|
+
/**
|
|
1021
|
+
* An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
|
|
1022
|
+
*/
|
|
1023
|
+
context_parameter?: string;
|
|
1016
1024
|
}[];
|
|
1025
|
+
/**
|
|
1026
|
+
* Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
|
|
1027
|
+
*/
|
|
1028
|
+
is_secret?: boolean;
|
|
1017
1029
|
/**
|
|
1018
1030
|
* The timestamp of when the value was last updated
|
|
1019
1031
|
*
|
|
@@ -1110,8 +1122,16 @@ type CreateEnvVarsResponse = {
|
|
|
1110
1122
|
/**
|
|
1111
1123
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1112
1124
|
*/
|
|
1113
|
-
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
|
|
1125
|
+
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
|
|
1126
|
+
/**
|
|
1127
|
+
* An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
|
|
1128
|
+
*/
|
|
1129
|
+
context_parameter?: string;
|
|
1114
1130
|
}[];
|
|
1131
|
+
/**
|
|
1132
|
+
* Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
|
|
1133
|
+
*/
|
|
1134
|
+
is_secret?: boolean;
|
|
1115
1135
|
/**
|
|
1116
1136
|
* The timestamp of when the value was last updated
|
|
1117
1137
|
*
|
|
@@ -1171,8 +1191,16 @@ type CreateEnvVarsRequestBody = {
|
|
|
1171
1191
|
/**
|
|
1172
1192
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1173
1193
|
*/
|
|
1174
|
-
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
|
|
1194
|
+
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
|
|
1195
|
+
/**
|
|
1196
|
+
* An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
|
|
1197
|
+
*/
|
|
1198
|
+
context_parameter?: string;
|
|
1175
1199
|
}[];
|
|
1200
|
+
/**
|
|
1201
|
+
* Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
|
|
1202
|
+
*/
|
|
1203
|
+
is_secret?: boolean;
|
|
1176
1204
|
}[];
|
|
1177
1205
|
type CreateEnvVarsVariables = {
|
|
1178
1206
|
body?: CreateEnvVarsRequestBody;
|
|
@@ -1241,8 +1269,16 @@ type GetEnvVarResponse = {
|
|
|
1241
1269
|
/**
|
|
1242
1270
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1243
1271
|
*/
|
|
1244
|
-
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
|
|
1272
|
+
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
|
|
1273
|
+
/**
|
|
1274
|
+
* An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
|
|
1275
|
+
*/
|
|
1276
|
+
context_parameter?: string;
|
|
1245
1277
|
}[];
|
|
1278
|
+
/**
|
|
1279
|
+
* Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
|
|
1280
|
+
*/
|
|
1281
|
+
is_secret?: boolean;
|
|
1246
1282
|
/**
|
|
1247
1283
|
* The timestamp of when the value was last updated
|
|
1248
1284
|
*
|
|
@@ -1343,8 +1379,16 @@ type UpdateEnvVarResponse = {
|
|
|
1343
1379
|
/**
|
|
1344
1380
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1345
1381
|
*/
|
|
1346
|
-
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
|
|
1382
|
+
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
|
|
1383
|
+
/**
|
|
1384
|
+
* An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
|
|
1385
|
+
*/
|
|
1386
|
+
context_parameter?: string;
|
|
1347
1387
|
}[];
|
|
1388
|
+
/**
|
|
1389
|
+
* Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
|
|
1390
|
+
*/
|
|
1391
|
+
is_secret?: boolean;
|
|
1348
1392
|
/**
|
|
1349
1393
|
* The timestamp of when the value was last updated
|
|
1350
1394
|
*
|
|
@@ -1404,8 +1448,16 @@ type UpdateEnvVarRequestBody = {
|
|
|
1404
1448
|
/**
|
|
1405
1449
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1406
1450
|
*/
|
|
1407
|
-
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
|
|
1451
|
+
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
|
|
1452
|
+
/**
|
|
1453
|
+
* An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
|
|
1454
|
+
*/
|
|
1455
|
+
context_parameter?: string;
|
|
1408
1456
|
}[];
|
|
1457
|
+
/**
|
|
1458
|
+
* Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
|
|
1459
|
+
*/
|
|
1460
|
+
is_secret?: boolean;
|
|
1409
1461
|
};
|
|
1410
1462
|
type UpdateEnvVarVariables = {
|
|
1411
1463
|
body?: UpdateEnvVarRequestBody;
|
|
@@ -1474,8 +1526,16 @@ type SetEnvVarValueResponse = {
|
|
|
1474
1526
|
/**
|
|
1475
1527
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1476
1528
|
*/
|
|
1477
|
-
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
|
|
1529
|
+
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
|
|
1530
|
+
/**
|
|
1531
|
+
* An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
|
|
1532
|
+
*/
|
|
1533
|
+
context_parameter?: string;
|
|
1478
1534
|
}[];
|
|
1535
|
+
/**
|
|
1536
|
+
* Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
|
|
1537
|
+
*/
|
|
1538
|
+
is_secret?: boolean;
|
|
1479
1539
|
/**
|
|
1480
1540
|
* The timestamp of when the value was last updated
|
|
1481
1541
|
*
|
|
@@ -1512,9 +1572,13 @@ type SetEnvVarValueResponse = {
|
|
|
1512
1572
|
};
|
|
1513
1573
|
type SetEnvVarValueRequestBody = {
|
|
1514
1574
|
/**
|
|
1515
|
-
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1575
|
+
* 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`.
|
|
1576
|
+
*/
|
|
1577
|
+
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
|
|
1578
|
+
/**
|
|
1579
|
+
* An additional parameter for custom branches. Currently, this is used for providing a branch name when `context=branch`.
|
|
1516
1580
|
*/
|
|
1517
|
-
|
|
1581
|
+
context_parameter?: string;
|
|
1518
1582
|
/**
|
|
1519
1583
|
* The environment variable's unencrypted value
|
|
1520
1584
|
*/
|
|
@@ -3419,6 +3483,7 @@ type UploadDeployFunctionPathParams = {
|
|
|
3419
3483
|
};
|
|
3420
3484
|
type UploadDeployFunctionQueryParams = {
|
|
3421
3485
|
runtime?: string;
|
|
3486
|
+
invocation_mode?: string;
|
|
3422
3487
|
size?: number;
|
|
3423
3488
|
};
|
|
3424
3489
|
type UploadDeployFunctionHeaders = {
|
|
@@ -6254,6 +6319,7 @@ type components_GetSiteMetadataError = GetSiteMetadataError;
|
|
|
6254
6319
|
type components_GetSiteMetadataPathParams = GetSiteMetadataPathParams;
|
|
6255
6320
|
type components_GetSiteMetadataVariables = GetSiteMetadataVariables;
|
|
6256
6321
|
type components_GetSitePathParams = GetSitePathParams;
|
|
6322
|
+
type components_GetSiteQueryParams = GetSiteQueryParams;
|
|
6257
6323
|
type components_GetSiteResponse = GetSiteResponse;
|
|
6258
6324
|
type components_GetSiteSnippetError = GetSiteSnippetError;
|
|
6259
6325
|
type components_GetSiteSnippetPathParams = GetSiteSnippetPathParams;
|
|
@@ -6857,6 +6923,7 @@ declare namespace components {
|
|
|
6857
6923
|
components_GetSiteMetadataPathParams as GetSiteMetadataPathParams,
|
|
6858
6924
|
components_GetSiteMetadataVariables as GetSiteMetadataVariables,
|
|
6859
6925
|
components_GetSitePathParams as GetSitePathParams,
|
|
6926
|
+
components_GetSiteQueryParams as GetSiteQueryParams,
|
|
6860
6927
|
components_GetSiteResponse as GetSiteResponse,
|
|
6861
6928
|
components_GetSiteSnippetError as GetSiteSnippetError,
|
|
6862
6929
|
components_GetSiteSnippetPathParams as GetSiteSnippetPathParams,
|
|
@@ -7498,7 +7565,7 @@ type RefreshTokenResult = {
|
|
|
7498
7565
|
/**
|
|
7499
7566
|
* Generated by @openapi-codegen
|
|
7500
7567
|
*
|
|
7501
|
-
* @version 2.
|
|
7568
|
+
* @version 2.19.1
|
|
7502
7569
|
*/
|
|
7503
7570
|
type SplitTestSetup = {
|
|
7504
7571
|
branch_tests?: Record<string, any>;
|
|
@@ -7929,8 +7996,16 @@ type EnvVar = {
|
|
|
7929
7996
|
/**
|
|
7930
7997
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
7931
7998
|
*/
|
|
7932
|
-
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
|
|
7999
|
+
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
|
|
8000
|
+
/**
|
|
8001
|
+
* An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
|
|
8002
|
+
*/
|
|
8003
|
+
context_parameter?: string;
|
|
7933
8004
|
}[];
|
|
8005
|
+
/**
|
|
8006
|
+
* Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
|
|
8007
|
+
*/
|
|
8008
|
+
is_secret?: boolean;
|
|
7934
8009
|
/**
|
|
7935
8010
|
* The timestamp of when the value was last updated
|
|
7936
8011
|
*
|
|
@@ -7984,7 +8059,11 @@ type EnvVarValue = {
|
|
|
7984
8059
|
/**
|
|
7985
8060
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
7986
8061
|
*/
|
|
7987
|
-
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production';
|
|
8062
|
+
context?: 'all' | 'dev' | 'branch-deploy' | 'deploy-preview' | 'production' | 'branch';
|
|
8063
|
+
/**
|
|
8064
|
+
* An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
|
|
8065
|
+
*/
|
|
8066
|
+
context_parameter?: string;
|
|
7988
8067
|
};
|
|
7989
8068
|
type EnvVarUser = {
|
|
7990
8069
|
/**
|
|
@@ -8782,7 +8861,7 @@ declare namespace schemas {
|
|
|
8782
8861
|
/**
|
|
8783
8862
|
* Generated by @openapi-codegen
|
|
8784
8863
|
*
|
|
8785
|
-
* @version 2.
|
|
8864
|
+
* @version 2.19.1
|
|
8786
8865
|
*/
|
|
8787
8866
|
/**
|
|
8788
8867
|
* @format int32
|
|
@@ -8808,7 +8887,7 @@ declare namespace parameters {
|
|
|
8808
8887
|
/**
|
|
8809
8888
|
* Generated by @openapi-codegen
|
|
8810
8889
|
*
|
|
8811
|
-
* @version 2.
|
|
8890
|
+
* @version 2.19.1
|
|
8812
8891
|
*/
|
|
8813
8892
|
type Error = {
|
|
8814
8893
|
/**
|
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, SuppressedError, Symbol */
|
|
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");
|
|
@@ -24,7 +26,12 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
|
24
26
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
25
27
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
26
28
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
27
|
-
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
32
|
+
var e = new Error(message);
|
|
33
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
34
|
+
};
|
|
28
35
|
|
|
29
36
|
const baseUrl = 'https://api.netlify.com';
|
|
30
37
|
async function fetch$1({ url, method, body, headers, pathParams, queryParams, signal, token, fetchImpl, basePath }) {
|