netlify-api 0.2.1 → 0.3.1

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.2.1 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
2
+ > netlify-api@0.3.1 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 8.1s
7
+ created dist/index.cjs, dist/index.mjs in 5.4s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 8.2s
10
+ created dist/index.d.ts in 5.2s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # netlify-api
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1eaed14: Update OpenAPI codegen version to 2.28.0
8
+
9
+ ## 0.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 201584c: Update site capabilities schema
14
+
15
+ ### Patch Changes
16
+
17
+ - e3ad5fd: Update OpenAPI codegen version to 2.26.1
18
+
3
19
  ## 0.2.1
4
20
 
5
21
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -29,9 +29,73 @@ type ErrorWrapper<TError> = TError | {
29
29
  /**
30
30
  * Generated by @openapi-codegen
31
31
  *
32
- * @version 2.26.0
32
+ * @version 2.28.0
33
33
  */
34
+ type CreateSiteDeployDeploy = {
35
+ files?: Record<string, any>;
36
+ draft?: boolean;
37
+ async?: boolean;
38
+ functions?: Record<string, any>;
39
+ function_schedules?: {
40
+ name?: string;
41
+ cron?: string;
42
+ }[];
43
+ functions_config?: {
44
+ [key: string]: {
45
+ display_name?: string;
46
+ generator?: string;
47
+ build_data?: Record<string, any>;
48
+ routes?: {
49
+ pattern?: string;
50
+ literal?: string;
51
+ expression?: string;
52
+ methods?: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS')[];
53
+ prefer_static?: boolean;
54
+ }[];
55
+ priority?: number;
56
+ };
57
+ };
58
+ branch?: string;
59
+ framework?: string;
60
+ framework_version?: string;
61
+ };
34
62
  type UpdateSiteMetadataMetadata = Record<string, any>;
63
+ type CreateHookBySiteIdHook = {
64
+ id?: string;
65
+ site_id?: string;
66
+ type?: string;
67
+ event?: string;
68
+ data?: Record<string, any>;
69
+ /**
70
+ * @format dateTime
71
+ */
72
+ created_at?: string;
73
+ /**
74
+ * @format dateTime
75
+ */
76
+ updated_at?: string;
77
+ disabled?: boolean;
78
+ };
79
+ type CreateSiteSnippetSnippet = {
80
+ /**
81
+ * @format int32
82
+ */
83
+ id?: number;
84
+ site_id?: string;
85
+ title?: string;
86
+ general?: string;
87
+ general_position?: string;
88
+ goal?: string;
89
+ goal_position?: string;
90
+ };
91
+ /**
92
+ * @format binary
93
+ */
94
+ type UploadDeployFileFileBody = Blob;
95
+ type CreateSiteBuildHookBuildhook = {
96
+ title?: string;
97
+ branch?: string;
98
+ };
35
99
  type CreateSiteSite = {
36
100
  id?: string;
37
101
  state?: string;
@@ -99,9 +163,6 @@ type CreateSiteSite = {
99
163
  context?: string;
100
164
  locked?: boolean;
101
165
  review_url?: string;
102
- site_capabilities?: {
103
- large_media_enabled?: boolean;
104
- };
105
166
  framework?: string;
106
167
  function_schedules?: {
107
168
  name?: string;
@@ -166,69 +227,6 @@ type CreateSiteSite = {
166
227
  stop_builds?: boolean;
167
228
  };
168
229
  };
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
230
  type CreateSplitTestBranchTests = {
233
231
  branch_tests?: Record<string, any>;
234
232
  };
@@ -252,7 +250,7 @@ type ServerErrorStatus = Exclude<ComputeRange<600>[number], ComputeRange<500>[nu
252
250
  /**
253
251
  * Generated by @openapi-codegen
254
252
  *
255
- * @version 2.26.0
253
+ * @version 2.28.0
256
254
  */
257
255
 
258
256
  type ListSitesQueryParams = {
@@ -344,9 +342,6 @@ type ListSitesResponse = {
344
342
  context?: string;
345
343
  locked?: boolean;
346
344
  review_url?: string;
347
- site_capabilities?: {
348
- large_media_enabled?: boolean;
349
- };
350
345
  framework?: string;
351
346
  function_schedules?: {
352
347
  name?: string;
@@ -479,9 +474,6 @@ type CreateSiteResponse = {
479
474
  context?: string;
480
475
  locked?: boolean;
481
476
  review_url?: string;
482
- site_capabilities?: {
483
- large_media_enabled?: boolean;
484
- };
485
477
  framework?: string;
486
478
  function_schedules?: {
487
479
  name?: string;
@@ -618,9 +610,6 @@ type GetSiteResponse = {
618
610
  context?: string;
619
611
  locked?: boolean;
620
612
  review_url?: string;
621
- site_capabilities?: {
622
- large_media_enabled?: boolean;
623
- };
624
613
  framework?: string;
625
614
  function_schedules?: {
626
615
  name?: string;
@@ -754,9 +743,6 @@ type UpdateSiteResponse = {
754
743
  context?: string;
755
744
  locked?: boolean;
756
745
  review_url?: string;
757
- site_capabilities?: {
758
- large_media_enabled?: boolean;
759
- };
760
746
  framework?: string;
761
747
  function_schedules?: {
762
748
  name?: string;
@@ -2491,9 +2477,6 @@ type ListSiteDeploysResponse = {
2491
2477
  context?: string;
2492
2478
  locked?: boolean;
2493
2479
  review_url?: string;
2494
- site_capabilities?: {
2495
- large_media_enabled?: boolean;
2496
- };
2497
2480
  framework?: string;
2498
2481
  function_schedules?: {
2499
2482
  name?: string;
@@ -2564,9 +2547,6 @@ type CreateSiteDeployResponse = {
2564
2547
  context?: string;
2565
2548
  locked?: boolean;
2566
2549
  review_url?: string;
2567
- site_capabilities?: {
2568
- large_media_enabled?: boolean;
2569
- };
2570
2550
  framework?: string;
2571
2551
  function_schedules?: {
2572
2552
  name?: string;
@@ -2631,9 +2611,6 @@ type GetSiteDeployResponse = {
2631
2611
  context?: string;
2632
2612
  locked?: boolean;
2633
2613
  review_url?: string;
2634
- site_capabilities?: {
2635
- large_media_enabled?: boolean;
2636
- };
2637
2614
  framework?: string;
2638
2615
  function_schedules?: {
2639
2616
  name?: string;
@@ -2696,9 +2673,6 @@ type UpdateSiteDeployResponse = {
2696
2673
  context?: string;
2697
2674
  locked?: boolean;
2698
2675
  review_url?: string;
2699
- site_capabilities?: {
2700
- large_media_enabled?: boolean;
2701
- };
2702
2676
  framework?: string;
2703
2677
  function_schedules?: {
2704
2678
  name?: string;
@@ -2779,9 +2753,6 @@ type CancelSiteDeployResponse = {
2779
2753
  context?: string;
2780
2754
  locked?: boolean;
2781
2755
  review_url?: string;
2782
- site_capabilities?: {
2783
- large_media_enabled?: boolean;
2784
- };
2785
2756
  framework?: string;
2786
2757
  function_schedules?: {
2787
2758
  name?: string;
@@ -2844,9 +2815,6 @@ type RestoreSiteDeployResponse = {
2844
2815
  context?: string;
2845
2816
  locked?: boolean;
2846
2817
  review_url?: string;
2847
- site_capabilities?: {
2848
- large_media_enabled?: boolean;
2849
- };
2850
2818
  framework?: string;
2851
2819
  function_schedules?: {
2852
2820
  name?: string;
@@ -3025,9 +2993,6 @@ type UnlinkSiteRepoResponse = {
3025
2993
  context?: string;
3026
2994
  locked?: boolean;
3027
2995
  review_url?: string;
3028
- site_capabilities?: {
3029
- large_media_enabled?: boolean;
3030
- };
3031
2996
  framework?: string;
3032
2997
  function_schedules?: {
3033
2998
  name?: string;
@@ -3380,9 +3345,6 @@ type GetDeployResponse = {
3380
3345
  context?: string;
3381
3346
  locked?: boolean;
3382
3347
  review_url?: string;
3383
- site_capabilities?: {
3384
- large_media_enabled?: boolean;
3385
- };
3386
3348
  framework?: string;
3387
3349
  function_schedules?: {
3388
3350
  name?: string;
@@ -3461,9 +3423,6 @@ type LockDeployResponse = {
3461
3423
  context?: string;
3462
3424
  locked?: boolean;
3463
3425
  review_url?: string;
3464
- site_capabilities?: {
3465
- large_media_enabled?: boolean;
3466
- };
3467
3426
  framework?: string;
3468
3427
  function_schedules?: {
3469
3428
  name?: string;
@@ -3525,9 +3484,6 @@ type UnlockDeployResponse = {
3525
3484
  context?: string;
3526
3485
  locked?: boolean;
3527
3486
  review_url?: string;
3528
- site_capabilities?: {
3529
- large_media_enabled?: boolean;
3530
- };
3531
3487
  framework?: string;
3532
3488
  function_schedules?: {
3533
3489
  name?: string;
@@ -4193,9 +4149,6 @@ type CreateSiteInTeamResponse = {
4193
4149
  context?: string;
4194
4150
  locked?: boolean;
4195
4151
  review_url?: string;
4196
- site_capabilities?: {
4197
- large_media_enabled?: boolean;
4198
- };
4199
4152
  framework?: string;
4200
4153
  function_schedules?: {
4201
4154
  name?: string;
@@ -4308,9 +4261,6 @@ type CreateSiteInTeamRequestBody = {
4308
4261
  context?: string;
4309
4262
  locked?: boolean;
4310
4263
  review_url?: string;
4311
- site_capabilities?: {
4312
- large_media_enabled?: boolean;
4313
- };
4314
4264
  framework?: string;
4315
4265
  function_schedules?: {
4316
4266
  name?: string;
@@ -4475,9 +4425,6 @@ type ListSitesForAccountResponse = {
4475
4425
  context?: string;
4476
4426
  locked?: boolean;
4477
4427
  review_url?: string;
4478
- site_capabilities?: {
4479
- large_media_enabled?: boolean;
4480
- };
4481
4428
  framework?: string;
4482
4429
  function_schedules?: {
4483
4430
  name?: string;
@@ -7051,7 +6998,7 @@ type RefreshTokenResult = {
7051
6998
  /**
7052
6999
  * Generated by @openapi-codegen
7053
7000
  *
7054
- * @version 2.26.0
7001
+ * @version 2.28.0
7055
7002
  */
7056
7003
  type SplitTestSetup = {
7057
7004
  branch_tests?: Record<string, any>;
@@ -7204,9 +7151,6 @@ type Site = {
7204
7151
  context?: string;
7205
7152
  locked?: boolean;
7206
7153
  review_url?: string;
7207
- site_capabilities?: {
7208
- large_media_enabled?: boolean;
7209
- };
7210
7154
  framework?: string;
7211
7155
  function_schedules?: {
7212
7156
  name?: string;
@@ -7319,9 +7263,6 @@ type SiteSetup = {
7319
7263
  context?: string;
7320
7264
  locked?: boolean;
7321
7265
  review_url?: string;
7322
- site_capabilities?: {
7323
- large_media_enabled?: boolean;
7324
- };
7325
7266
  framework?: string;
7326
7267
  function_schedules?: {
7327
7268
  name?: string;
@@ -7661,9 +7602,6 @@ type Deploy = {
7661
7602
  context?: string;
7662
7603
  locked?: boolean;
7663
7604
  review_url?: string;
7664
- site_capabilities?: {
7665
- large_media_enabled?: boolean;
7666
- };
7667
7605
  framework?: string;
7668
7606
  function_schedules?: {
7669
7607
  name?: string;
@@ -7691,6 +7629,7 @@ type DeployFiles = {
7691
7629
  methods?: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS')[];
7692
7630
  prefer_static?: boolean;
7693
7631
  }[];
7632
+ priority?: number;
7694
7633
  };
7695
7634
  };
7696
7635
  branch?: string;
@@ -8212,6 +8151,7 @@ type FunctionConfig = {
8212
8151
  methods?: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS')[];
8213
8152
  prefer_static?: boolean;
8214
8153
  }[];
8154
+ priority?: number;
8215
8155
  };
8216
8156
  type FunctionRoute = {
8217
8157
  pattern?: string;
@@ -8301,7 +8241,7 @@ declare namespace schemas {
8301
8241
  /**
8302
8242
  * Generated by @openapi-codegen
8303
8243
  *
8304
- * @version 2.26.0
8244
+ * @version 2.28.0
8305
8245
  */
8306
8246
  /**
8307
8247
  * @format int32
@@ -8323,7 +8263,7 @@ declare namespace parameters {
8323
8263
  /**
8324
8264
  * Generated by @openapi-codegen
8325
8265
  *
8326
- * @version 2.26.0
8266
+ * @version 2.28.0
8327
8267
  */
8328
8268
  type Error = {
8329
8269
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netlify-api",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "Netlify API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",