netlify-api 0.1.4 → 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.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +83 -20
- package/dist/index.mjs +2 -0
- 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.6 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 [
|
|
7
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m7.5s[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 [
|
|
10
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m8.3s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# netlify-api
|
|
2
2
|
|
|
3
|
+
## 0.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5da1e9e: [OpenAPI] Add context branch parameter
|
|
8
|
+
|
|
9
|
+
## 0.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- bd49651: Add `branch_deploy_custom_domain` and `deploy_preview_custom_domain`
|
|
14
|
+
|
|
3
15
|
## 0.1.4
|
|
4
16
|
|
|
5
17
|
### 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.
|
|
32
|
+
* @version 2.18.0
|
|
33
33
|
*/
|
|
34
34
|
type CreateSiteDeployDeploy = {
|
|
35
35
|
files?: Record<string, any>;
|
|
@@ -82,6 +82,10 @@ type CreateSiteSnippetSnippet = {
|
|
|
82
82
|
* @format binary
|
|
83
83
|
*/
|
|
84
84
|
type UploadDeployFileFileBody = Blob;
|
|
85
|
+
type CreateSiteBuildHookBuildhook = {
|
|
86
|
+
title?: string;
|
|
87
|
+
branch?: string;
|
|
88
|
+
};
|
|
85
89
|
type CreateSiteSite = {
|
|
86
90
|
id?: string;
|
|
87
91
|
state?: string;
|
|
@@ -89,6 +93,8 @@ type CreateSiteSite = {
|
|
|
89
93
|
name?: string;
|
|
90
94
|
custom_domain?: string;
|
|
91
95
|
domain_aliases?: string[];
|
|
96
|
+
branch_deploy_custom_domain?: string;
|
|
97
|
+
deploy_preview_custom_domain?: string;
|
|
92
98
|
password?: string;
|
|
93
99
|
notification_email?: string;
|
|
94
100
|
url?: string;
|
|
@@ -225,10 +231,6 @@ type CreateSiteSite = {
|
|
|
225
231
|
stop_builds?: boolean;
|
|
226
232
|
};
|
|
227
233
|
};
|
|
228
|
-
type CreateSiteBuildHookBuildhook = {
|
|
229
|
-
title?: string;
|
|
230
|
-
branch?: string;
|
|
231
|
-
};
|
|
232
234
|
type CreateSplitTestBranchTests = {
|
|
233
235
|
branch_tests?: Record<string, any>;
|
|
234
236
|
};
|
|
@@ -261,7 +263,7 @@ type ServerErrorStatus = Exclude<ComputeRange<600>[number], ComputeRange<500>[nu
|
|
|
261
263
|
/**
|
|
262
264
|
* Generated by @openapi-codegen
|
|
263
265
|
*
|
|
264
|
-
* @version 2.
|
|
266
|
+
* @version 2.18.0
|
|
265
267
|
*/
|
|
266
268
|
|
|
267
269
|
type ListSitesQueryParams = {
|
|
@@ -293,6 +295,8 @@ type ListSitesResponse = {
|
|
|
293
295
|
name?: string;
|
|
294
296
|
custom_domain?: string;
|
|
295
297
|
domain_aliases?: string[];
|
|
298
|
+
branch_deploy_custom_domain?: string;
|
|
299
|
+
deploy_preview_custom_domain?: string;
|
|
296
300
|
password?: string;
|
|
297
301
|
notification_email?: string;
|
|
298
302
|
url?: string;
|
|
@@ -437,6 +441,8 @@ type CreateSiteResponse = {
|
|
|
437
441
|
name?: string;
|
|
438
442
|
custom_domain?: string;
|
|
439
443
|
domain_aliases?: string[];
|
|
444
|
+
branch_deploy_custom_domain?: string;
|
|
445
|
+
deploy_preview_custom_domain?: string;
|
|
440
446
|
password?: string;
|
|
441
447
|
notification_email?: string;
|
|
442
448
|
url?: string;
|
|
@@ -582,6 +588,8 @@ type GetSiteResponse = {
|
|
|
582
588
|
name?: string;
|
|
583
589
|
custom_domain?: string;
|
|
584
590
|
domain_aliases?: string[];
|
|
591
|
+
branch_deploy_custom_domain?: string;
|
|
592
|
+
deploy_preview_custom_domain?: string;
|
|
585
593
|
password?: string;
|
|
586
594
|
notification_email?: string;
|
|
587
595
|
url?: string;
|
|
@@ -726,6 +734,8 @@ type UpdateSiteResponse = {
|
|
|
726
734
|
name?: string;
|
|
727
735
|
custom_domain?: string;
|
|
728
736
|
domain_aliases?: string[];
|
|
737
|
+
branch_deploy_custom_domain?: string;
|
|
738
|
+
deploy_preview_custom_domain?: string;
|
|
729
739
|
password?: string;
|
|
730
740
|
notification_email?: string;
|
|
731
741
|
url?: string;
|
|
@@ -1002,7 +1012,11 @@ type GetEnvVarsResponse = {
|
|
|
1002
1012
|
/**
|
|
1003
1013
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1004
1014
|
*/
|
|
1005
|
-
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;
|
|
1006
1020
|
}[];
|
|
1007
1021
|
/**
|
|
1008
1022
|
* The timestamp of when the value was last updated
|
|
@@ -1100,7 +1114,11 @@ type CreateEnvVarsResponse = {
|
|
|
1100
1114
|
/**
|
|
1101
1115
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1102
1116
|
*/
|
|
1103
|
-
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;
|
|
1104
1122
|
}[];
|
|
1105
1123
|
/**
|
|
1106
1124
|
* The timestamp of when the value was last updated
|
|
@@ -1161,7 +1179,11 @@ type CreateEnvVarsRequestBody = {
|
|
|
1161
1179
|
/**
|
|
1162
1180
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1163
1181
|
*/
|
|
1164
|
-
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;
|
|
1165
1187
|
}[];
|
|
1166
1188
|
}[];
|
|
1167
1189
|
type CreateEnvVarsVariables = {
|
|
@@ -1231,7 +1253,11 @@ type GetEnvVarResponse = {
|
|
|
1231
1253
|
/**
|
|
1232
1254
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1233
1255
|
*/
|
|
1234
|
-
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;
|
|
1235
1261
|
}[];
|
|
1236
1262
|
/**
|
|
1237
1263
|
* The timestamp of when the value was last updated
|
|
@@ -1333,7 +1359,11 @@ type UpdateEnvVarResponse = {
|
|
|
1333
1359
|
/**
|
|
1334
1360
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1335
1361
|
*/
|
|
1336
|
-
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;
|
|
1337
1367
|
}[];
|
|
1338
1368
|
/**
|
|
1339
1369
|
* The timestamp of when the value was last updated
|
|
@@ -1394,7 +1424,11 @@ type UpdateEnvVarRequestBody = {
|
|
|
1394
1424
|
/**
|
|
1395
1425
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1396
1426
|
*/
|
|
1397
|
-
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;
|
|
1398
1432
|
}[];
|
|
1399
1433
|
};
|
|
1400
1434
|
type UpdateEnvVarVariables = {
|
|
@@ -1464,7 +1498,11 @@ type SetEnvVarValueResponse = {
|
|
|
1464
1498
|
/**
|
|
1465
1499
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
1466
1500
|
*/
|
|
1467
|
-
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;
|
|
1468
1506
|
}[];
|
|
1469
1507
|
/**
|
|
1470
1508
|
* The timestamp of when the value was last updated
|
|
@@ -1502,9 +1540,13 @@ type SetEnvVarValueResponse = {
|
|
|
1502
1540
|
};
|
|
1503
1541
|
type SetEnvVarValueRequestBody = {
|
|
1504
1542
|
/**
|
|
1505
|
-
* 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`.
|
|
1506
1548
|
*/
|
|
1507
|
-
|
|
1549
|
+
context_parameter?: string;
|
|
1508
1550
|
/**
|
|
1509
1551
|
* The environment variable's unencrypted value
|
|
1510
1552
|
*/
|
|
@@ -2791,6 +2833,8 @@ type UnlinkSiteRepoResponse = {
|
|
|
2791
2833
|
name?: string;
|
|
2792
2834
|
custom_domain?: string;
|
|
2793
2835
|
domain_aliases?: string[];
|
|
2836
|
+
branch_deploy_custom_domain?: string;
|
|
2837
|
+
deploy_preview_custom_domain?: string;
|
|
2794
2838
|
password?: string;
|
|
2795
2839
|
notification_email?: string;
|
|
2796
2840
|
url?: string;
|
|
@@ -3407,6 +3451,7 @@ type UploadDeployFunctionPathParams = {
|
|
|
3407
3451
|
};
|
|
3408
3452
|
type UploadDeployFunctionQueryParams = {
|
|
3409
3453
|
runtime?: string;
|
|
3454
|
+
invocation_mode?: string;
|
|
3410
3455
|
size?: number;
|
|
3411
3456
|
};
|
|
3412
3457
|
type UploadDeployFunctionHeaders = {
|
|
@@ -3962,6 +4007,8 @@ type CreateSiteInTeamResponse = {
|
|
|
3962
4007
|
name?: string;
|
|
3963
4008
|
custom_domain?: string;
|
|
3964
4009
|
domain_aliases?: string[];
|
|
4010
|
+
branch_deploy_custom_domain?: string;
|
|
4011
|
+
deploy_preview_custom_domain?: string;
|
|
3965
4012
|
password?: string;
|
|
3966
4013
|
notification_email?: string;
|
|
3967
4014
|
url?: string;
|
|
@@ -4086,6 +4133,8 @@ type CreateSiteInTeamRequestBody = {
|
|
|
4086
4133
|
name?: string;
|
|
4087
4134
|
custom_domain?: string;
|
|
4088
4135
|
domain_aliases?: string[];
|
|
4136
|
+
branch_deploy_custom_domain?: string;
|
|
4137
|
+
deploy_preview_custom_domain?: string;
|
|
4089
4138
|
password?: string;
|
|
4090
4139
|
notification_email?: string;
|
|
4091
4140
|
url?: string;
|
|
@@ -4262,6 +4311,8 @@ type ListSitesForAccountResponse = {
|
|
|
4262
4311
|
name?: string;
|
|
4263
4312
|
custom_domain?: string;
|
|
4264
4313
|
domain_aliases?: string[];
|
|
4314
|
+
branch_deploy_custom_domain?: string;
|
|
4315
|
+
deploy_preview_custom_domain?: string;
|
|
4265
4316
|
password?: string;
|
|
4266
4317
|
notification_email?: string;
|
|
4267
4318
|
url?: string;
|
|
@@ -7480,7 +7531,7 @@ type RefreshTokenResult = {
|
|
|
7480
7531
|
/**
|
|
7481
7532
|
* Generated by @openapi-codegen
|
|
7482
7533
|
*
|
|
7483
|
-
* @version 2.
|
|
7534
|
+
* @version 2.18.0
|
|
7484
7535
|
*/
|
|
7485
7536
|
type SplitTestSetup = {
|
|
7486
7537
|
branch_tests?: Record<string, any>;
|
|
@@ -7573,6 +7624,8 @@ type Site = {
|
|
|
7573
7624
|
name?: string;
|
|
7574
7625
|
custom_domain?: string;
|
|
7575
7626
|
domain_aliases?: string[];
|
|
7627
|
+
branch_deploy_custom_domain?: string;
|
|
7628
|
+
deploy_preview_custom_domain?: string;
|
|
7576
7629
|
password?: string;
|
|
7577
7630
|
notification_email?: string;
|
|
7578
7631
|
url?: string;
|
|
@@ -7697,6 +7750,8 @@ type SiteSetup = {
|
|
|
7697
7750
|
name?: string;
|
|
7698
7751
|
custom_domain?: string;
|
|
7699
7752
|
domain_aliases?: string[];
|
|
7753
|
+
branch_deploy_custom_domain?: string;
|
|
7754
|
+
deploy_preview_custom_domain?: string;
|
|
7700
7755
|
password?: string;
|
|
7701
7756
|
notification_email?: string;
|
|
7702
7757
|
url?: string;
|
|
@@ -7907,7 +7962,11 @@ type EnvVar = {
|
|
|
7907
7962
|
/**
|
|
7908
7963
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
7909
7964
|
*/
|
|
7910
|
-
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;
|
|
7911
7970
|
}[];
|
|
7912
7971
|
/**
|
|
7913
7972
|
* The timestamp of when the value was last updated
|
|
@@ -7962,7 +8021,11 @@ type EnvVarValue = {
|
|
|
7962
8021
|
/**
|
|
7963
8022
|
* The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
7964
8023
|
*/
|
|
7965
|
-
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;
|
|
7966
8029
|
};
|
|
7967
8030
|
type EnvVarUser = {
|
|
7968
8031
|
/**
|
|
@@ -8760,7 +8823,7 @@ declare namespace schemas {
|
|
|
8760
8823
|
/**
|
|
8761
8824
|
* Generated by @openapi-codegen
|
|
8762
8825
|
*
|
|
8763
|
-
* @version 2.
|
|
8826
|
+
* @version 2.18.0
|
|
8764
8827
|
*/
|
|
8765
8828
|
/**
|
|
8766
8829
|
* @format int32
|
|
@@ -8786,7 +8849,7 @@ declare namespace parameters {
|
|
|
8786
8849
|
/**
|
|
8787
8850
|
* Generated by @openapi-codegen
|
|
8788
8851
|
*
|
|
8789
|
-
* @version 2.
|
|
8852
|
+
* @version 2.18.0
|
|
8790
8853
|
*/
|
|
8791
8854
|
type Error = {
|
|
8792
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");
|