netlify-api 0.2.1 → 0.3.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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +10 -0
- package/dist/index.d.ts +68 -131
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> netlify-api@0.
|
|
2
|
+
> netlify-api@0.3.0 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 [1m5.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 [1m5.1s[22m[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -29,9 +29,72 @@ type ErrorWrapper<TError> = TError | {
|
|
|
29
29
|
/**
|
|
30
30
|
* Generated by @openapi-codegen
|
|
31
31
|
*
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.27.0
|
|
33
33
|
*/
|
|
34
34
|
type UpdateSiteMetadataMetadata = Record<string, any>;
|
|
35
|
+
type CreateHookBySiteIdHook = {
|
|
36
|
+
id?: string;
|
|
37
|
+
site_id?: string;
|
|
38
|
+
type?: string;
|
|
39
|
+
event?: string;
|
|
40
|
+
data?: Record<string, any>;
|
|
41
|
+
/**
|
|
42
|
+
* @format dateTime
|
|
43
|
+
*/
|
|
44
|
+
created_at?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @format dateTime
|
|
47
|
+
*/
|
|
48
|
+
updated_at?: string;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
};
|
|
51
|
+
type CreateSiteSnippetSnippet = {
|
|
52
|
+
/**
|
|
53
|
+
* @format int32
|
|
54
|
+
*/
|
|
55
|
+
id?: number;
|
|
56
|
+
site_id?: string;
|
|
57
|
+
title?: string;
|
|
58
|
+
general?: string;
|
|
59
|
+
general_position?: string;
|
|
60
|
+
goal?: string;
|
|
61
|
+
goal_position?: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @format binary
|
|
65
|
+
*/
|
|
66
|
+
type UploadDeployFileFileBody = Blob;
|
|
67
|
+
type CreateSiteDeployDeploy = {
|
|
68
|
+
files?: Record<string, any>;
|
|
69
|
+
draft?: boolean;
|
|
70
|
+
async?: boolean;
|
|
71
|
+
functions?: Record<string, any>;
|
|
72
|
+
function_schedules?: {
|
|
73
|
+
name?: string;
|
|
74
|
+
cron?: string;
|
|
75
|
+
}[];
|
|
76
|
+
functions_config?: {
|
|
77
|
+
[key: string]: {
|
|
78
|
+
display_name?: string;
|
|
79
|
+
generator?: string;
|
|
80
|
+
build_data?: Record<string, any>;
|
|
81
|
+
routes?: {
|
|
82
|
+
pattern?: string;
|
|
83
|
+
literal?: string;
|
|
84
|
+
expression?: string;
|
|
85
|
+
methods?: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS')[];
|
|
86
|
+
prefer_static?: boolean;
|
|
87
|
+
}[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
branch?: string;
|
|
91
|
+
framework?: string;
|
|
92
|
+
framework_version?: string;
|
|
93
|
+
};
|
|
94
|
+
type CreateSiteBuildHookBuildhook = {
|
|
95
|
+
title?: string;
|
|
96
|
+
branch?: string;
|
|
97
|
+
};
|
|
35
98
|
type CreateSiteSite = {
|
|
36
99
|
id?: string;
|
|
37
100
|
state?: string;
|
|
@@ -99,9 +162,6 @@ type CreateSiteSite = {
|
|
|
99
162
|
context?: string;
|
|
100
163
|
locked?: boolean;
|
|
101
164
|
review_url?: string;
|
|
102
|
-
site_capabilities?: {
|
|
103
|
-
large_media_enabled?: boolean;
|
|
104
|
-
};
|
|
105
165
|
framework?: string;
|
|
106
166
|
function_schedules?: {
|
|
107
167
|
name?: string;
|
|
@@ -166,69 +226,6 @@ type CreateSiteSite = {
|
|
|
166
226
|
stop_builds?: boolean;
|
|
167
227
|
};
|
|
168
228
|
};
|
|
169
|
-
type CreateHookBySiteIdHook = {
|
|
170
|
-
id?: string;
|
|
171
|
-
site_id?: string;
|
|
172
|
-
type?: string;
|
|
173
|
-
event?: string;
|
|
174
|
-
data?: Record<string, any>;
|
|
175
|
-
/**
|
|
176
|
-
* @format dateTime
|
|
177
|
-
*/
|
|
178
|
-
created_at?: string;
|
|
179
|
-
/**
|
|
180
|
-
* @format dateTime
|
|
181
|
-
*/
|
|
182
|
-
updated_at?: string;
|
|
183
|
-
disabled?: boolean;
|
|
184
|
-
};
|
|
185
|
-
type CreateSiteSnippetSnippet = {
|
|
186
|
-
/**
|
|
187
|
-
* @format int32
|
|
188
|
-
*/
|
|
189
|
-
id?: number;
|
|
190
|
-
site_id?: string;
|
|
191
|
-
title?: string;
|
|
192
|
-
general?: string;
|
|
193
|
-
general_position?: string;
|
|
194
|
-
goal?: string;
|
|
195
|
-
goal_position?: string;
|
|
196
|
-
};
|
|
197
|
-
/**
|
|
198
|
-
* @format binary
|
|
199
|
-
*/
|
|
200
|
-
type UploadDeployFileFileBody = Blob;
|
|
201
|
-
type CreateSiteDeployDeploy = {
|
|
202
|
-
files?: Record<string, any>;
|
|
203
|
-
draft?: boolean;
|
|
204
|
-
async?: boolean;
|
|
205
|
-
functions?: Record<string, any>;
|
|
206
|
-
function_schedules?: {
|
|
207
|
-
name?: string;
|
|
208
|
-
cron?: string;
|
|
209
|
-
}[];
|
|
210
|
-
functions_config?: {
|
|
211
|
-
[key: string]: {
|
|
212
|
-
display_name?: string;
|
|
213
|
-
generator?: string;
|
|
214
|
-
build_data?: Record<string, any>;
|
|
215
|
-
routes?: {
|
|
216
|
-
pattern?: string;
|
|
217
|
-
literal?: string;
|
|
218
|
-
expression?: string;
|
|
219
|
-
methods?: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS')[];
|
|
220
|
-
prefer_static?: boolean;
|
|
221
|
-
}[];
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
branch?: string;
|
|
225
|
-
framework?: string;
|
|
226
|
-
framework_version?: string;
|
|
227
|
-
};
|
|
228
|
-
type CreateSiteBuildHookBuildhook = {
|
|
229
|
-
title?: string;
|
|
230
|
-
branch?: string;
|
|
231
|
-
};
|
|
232
229
|
type CreateSplitTestBranchTests = {
|
|
233
230
|
branch_tests?: Record<string, any>;
|
|
234
231
|
};
|
|
@@ -252,7 +249,7 @@ type ServerErrorStatus = Exclude<ComputeRange<600>[number], ComputeRange<500>[nu
|
|
|
252
249
|
/**
|
|
253
250
|
* Generated by @openapi-codegen
|
|
254
251
|
*
|
|
255
|
-
* @version 2.
|
|
252
|
+
* @version 2.27.0
|
|
256
253
|
*/
|
|
257
254
|
|
|
258
255
|
type ListSitesQueryParams = {
|
|
@@ -344,9 +341,6 @@ type ListSitesResponse = {
|
|
|
344
341
|
context?: string;
|
|
345
342
|
locked?: boolean;
|
|
346
343
|
review_url?: string;
|
|
347
|
-
site_capabilities?: {
|
|
348
|
-
large_media_enabled?: boolean;
|
|
349
|
-
};
|
|
350
344
|
framework?: string;
|
|
351
345
|
function_schedules?: {
|
|
352
346
|
name?: string;
|
|
@@ -479,9 +473,6 @@ type CreateSiteResponse = {
|
|
|
479
473
|
context?: string;
|
|
480
474
|
locked?: boolean;
|
|
481
475
|
review_url?: string;
|
|
482
|
-
site_capabilities?: {
|
|
483
|
-
large_media_enabled?: boolean;
|
|
484
|
-
};
|
|
485
476
|
framework?: string;
|
|
486
477
|
function_schedules?: {
|
|
487
478
|
name?: string;
|
|
@@ -618,9 +609,6 @@ type GetSiteResponse = {
|
|
|
618
609
|
context?: string;
|
|
619
610
|
locked?: boolean;
|
|
620
611
|
review_url?: string;
|
|
621
|
-
site_capabilities?: {
|
|
622
|
-
large_media_enabled?: boolean;
|
|
623
|
-
};
|
|
624
612
|
framework?: string;
|
|
625
613
|
function_schedules?: {
|
|
626
614
|
name?: string;
|
|
@@ -754,9 +742,6 @@ type UpdateSiteResponse = {
|
|
|
754
742
|
context?: string;
|
|
755
743
|
locked?: boolean;
|
|
756
744
|
review_url?: string;
|
|
757
|
-
site_capabilities?: {
|
|
758
|
-
large_media_enabled?: boolean;
|
|
759
|
-
};
|
|
760
745
|
framework?: string;
|
|
761
746
|
function_schedules?: {
|
|
762
747
|
name?: string;
|
|
@@ -2491,9 +2476,6 @@ type ListSiteDeploysResponse = {
|
|
|
2491
2476
|
context?: string;
|
|
2492
2477
|
locked?: boolean;
|
|
2493
2478
|
review_url?: string;
|
|
2494
|
-
site_capabilities?: {
|
|
2495
|
-
large_media_enabled?: boolean;
|
|
2496
|
-
};
|
|
2497
2479
|
framework?: string;
|
|
2498
2480
|
function_schedules?: {
|
|
2499
2481
|
name?: string;
|
|
@@ -2564,9 +2546,6 @@ type CreateSiteDeployResponse = {
|
|
|
2564
2546
|
context?: string;
|
|
2565
2547
|
locked?: boolean;
|
|
2566
2548
|
review_url?: string;
|
|
2567
|
-
site_capabilities?: {
|
|
2568
|
-
large_media_enabled?: boolean;
|
|
2569
|
-
};
|
|
2570
2549
|
framework?: string;
|
|
2571
2550
|
function_schedules?: {
|
|
2572
2551
|
name?: string;
|
|
@@ -2631,9 +2610,6 @@ type GetSiteDeployResponse = {
|
|
|
2631
2610
|
context?: string;
|
|
2632
2611
|
locked?: boolean;
|
|
2633
2612
|
review_url?: string;
|
|
2634
|
-
site_capabilities?: {
|
|
2635
|
-
large_media_enabled?: boolean;
|
|
2636
|
-
};
|
|
2637
2613
|
framework?: string;
|
|
2638
2614
|
function_schedules?: {
|
|
2639
2615
|
name?: string;
|
|
@@ -2696,9 +2672,6 @@ type UpdateSiteDeployResponse = {
|
|
|
2696
2672
|
context?: string;
|
|
2697
2673
|
locked?: boolean;
|
|
2698
2674
|
review_url?: string;
|
|
2699
|
-
site_capabilities?: {
|
|
2700
|
-
large_media_enabled?: boolean;
|
|
2701
|
-
};
|
|
2702
2675
|
framework?: string;
|
|
2703
2676
|
function_schedules?: {
|
|
2704
2677
|
name?: string;
|
|
@@ -2779,9 +2752,6 @@ type CancelSiteDeployResponse = {
|
|
|
2779
2752
|
context?: string;
|
|
2780
2753
|
locked?: boolean;
|
|
2781
2754
|
review_url?: string;
|
|
2782
|
-
site_capabilities?: {
|
|
2783
|
-
large_media_enabled?: boolean;
|
|
2784
|
-
};
|
|
2785
2755
|
framework?: string;
|
|
2786
2756
|
function_schedules?: {
|
|
2787
2757
|
name?: string;
|
|
@@ -2844,9 +2814,6 @@ type RestoreSiteDeployResponse = {
|
|
|
2844
2814
|
context?: string;
|
|
2845
2815
|
locked?: boolean;
|
|
2846
2816
|
review_url?: string;
|
|
2847
|
-
site_capabilities?: {
|
|
2848
|
-
large_media_enabled?: boolean;
|
|
2849
|
-
};
|
|
2850
2817
|
framework?: string;
|
|
2851
2818
|
function_schedules?: {
|
|
2852
2819
|
name?: string;
|
|
@@ -3025,9 +2992,6 @@ type UnlinkSiteRepoResponse = {
|
|
|
3025
2992
|
context?: string;
|
|
3026
2993
|
locked?: boolean;
|
|
3027
2994
|
review_url?: string;
|
|
3028
|
-
site_capabilities?: {
|
|
3029
|
-
large_media_enabled?: boolean;
|
|
3030
|
-
};
|
|
3031
2995
|
framework?: string;
|
|
3032
2996
|
function_schedules?: {
|
|
3033
2997
|
name?: string;
|
|
@@ -3380,9 +3344,6 @@ type GetDeployResponse = {
|
|
|
3380
3344
|
context?: string;
|
|
3381
3345
|
locked?: boolean;
|
|
3382
3346
|
review_url?: string;
|
|
3383
|
-
site_capabilities?: {
|
|
3384
|
-
large_media_enabled?: boolean;
|
|
3385
|
-
};
|
|
3386
3347
|
framework?: string;
|
|
3387
3348
|
function_schedules?: {
|
|
3388
3349
|
name?: string;
|
|
@@ -3461,9 +3422,6 @@ type LockDeployResponse = {
|
|
|
3461
3422
|
context?: string;
|
|
3462
3423
|
locked?: boolean;
|
|
3463
3424
|
review_url?: string;
|
|
3464
|
-
site_capabilities?: {
|
|
3465
|
-
large_media_enabled?: boolean;
|
|
3466
|
-
};
|
|
3467
3425
|
framework?: string;
|
|
3468
3426
|
function_schedules?: {
|
|
3469
3427
|
name?: string;
|
|
@@ -3525,9 +3483,6 @@ type UnlockDeployResponse = {
|
|
|
3525
3483
|
context?: string;
|
|
3526
3484
|
locked?: boolean;
|
|
3527
3485
|
review_url?: string;
|
|
3528
|
-
site_capabilities?: {
|
|
3529
|
-
large_media_enabled?: boolean;
|
|
3530
|
-
};
|
|
3531
3486
|
framework?: string;
|
|
3532
3487
|
function_schedules?: {
|
|
3533
3488
|
name?: string;
|
|
@@ -4193,9 +4148,6 @@ type CreateSiteInTeamResponse = {
|
|
|
4193
4148
|
context?: string;
|
|
4194
4149
|
locked?: boolean;
|
|
4195
4150
|
review_url?: string;
|
|
4196
|
-
site_capabilities?: {
|
|
4197
|
-
large_media_enabled?: boolean;
|
|
4198
|
-
};
|
|
4199
4151
|
framework?: string;
|
|
4200
4152
|
function_schedules?: {
|
|
4201
4153
|
name?: string;
|
|
@@ -4308,9 +4260,6 @@ type CreateSiteInTeamRequestBody = {
|
|
|
4308
4260
|
context?: string;
|
|
4309
4261
|
locked?: boolean;
|
|
4310
4262
|
review_url?: string;
|
|
4311
|
-
site_capabilities?: {
|
|
4312
|
-
large_media_enabled?: boolean;
|
|
4313
|
-
};
|
|
4314
4263
|
framework?: string;
|
|
4315
4264
|
function_schedules?: {
|
|
4316
4265
|
name?: string;
|
|
@@ -4475,9 +4424,6 @@ type ListSitesForAccountResponse = {
|
|
|
4475
4424
|
context?: string;
|
|
4476
4425
|
locked?: boolean;
|
|
4477
4426
|
review_url?: string;
|
|
4478
|
-
site_capabilities?: {
|
|
4479
|
-
large_media_enabled?: boolean;
|
|
4480
|
-
};
|
|
4481
4427
|
framework?: string;
|
|
4482
4428
|
function_schedules?: {
|
|
4483
4429
|
name?: string;
|
|
@@ -7051,7 +6997,7 @@ type RefreshTokenResult = {
|
|
|
7051
6997
|
/**
|
|
7052
6998
|
* Generated by @openapi-codegen
|
|
7053
6999
|
*
|
|
7054
|
-
* @version 2.
|
|
7000
|
+
* @version 2.27.0
|
|
7055
7001
|
*/
|
|
7056
7002
|
type SplitTestSetup = {
|
|
7057
7003
|
branch_tests?: Record<string, any>;
|
|
@@ -7204,9 +7150,6 @@ type Site = {
|
|
|
7204
7150
|
context?: string;
|
|
7205
7151
|
locked?: boolean;
|
|
7206
7152
|
review_url?: string;
|
|
7207
|
-
site_capabilities?: {
|
|
7208
|
-
large_media_enabled?: boolean;
|
|
7209
|
-
};
|
|
7210
7153
|
framework?: string;
|
|
7211
7154
|
function_schedules?: {
|
|
7212
7155
|
name?: string;
|
|
@@ -7319,9 +7262,6 @@ type SiteSetup = {
|
|
|
7319
7262
|
context?: string;
|
|
7320
7263
|
locked?: boolean;
|
|
7321
7264
|
review_url?: string;
|
|
7322
|
-
site_capabilities?: {
|
|
7323
|
-
large_media_enabled?: boolean;
|
|
7324
|
-
};
|
|
7325
7265
|
framework?: string;
|
|
7326
7266
|
function_schedules?: {
|
|
7327
7267
|
name?: string;
|
|
@@ -7661,9 +7601,6 @@ type Deploy = {
|
|
|
7661
7601
|
context?: string;
|
|
7662
7602
|
locked?: boolean;
|
|
7663
7603
|
review_url?: string;
|
|
7664
|
-
site_capabilities?: {
|
|
7665
|
-
large_media_enabled?: boolean;
|
|
7666
|
-
};
|
|
7667
7604
|
framework?: string;
|
|
7668
7605
|
function_schedules?: {
|
|
7669
7606
|
name?: string;
|
|
@@ -8301,7 +8238,7 @@ declare namespace schemas {
|
|
|
8301
8238
|
/**
|
|
8302
8239
|
* Generated by @openapi-codegen
|
|
8303
8240
|
*
|
|
8304
|
-
* @version 2.
|
|
8241
|
+
* @version 2.27.0
|
|
8305
8242
|
*/
|
|
8306
8243
|
/**
|
|
8307
8244
|
* @format int32
|
|
@@ -8323,7 +8260,7 @@ declare namespace parameters {
|
|
|
8323
8260
|
/**
|
|
8324
8261
|
* Generated by @openapi-codegen
|
|
8325
8262
|
*
|
|
8326
|
-
* @version 2.
|
|
8263
|
+
* @version 2.27.0
|
|
8327
8264
|
*/
|
|
8328
8265
|
type Error = {
|
|
8329
8266
|
/**
|