netlify-api 1.2.0 → 1.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/dist/types.cjs CHANGED
@@ -1,19 +1,19 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
3
  /**
4
- * Generated by Kubb (https://kubb.dev/).
5
- * Do not edit manually.
6
- */ /**
4
+ * Generated by Kubb (https://kubb.dev/).
5
+ * Do not edit manually.
6
+ */ /**
7
7
  * @description Request body for creating a database
8
8
  * @type object
9
- */ const stateEnum = {
9
+ */ const databaseBranchesResponseBranchesStateEnum = {
10
10
  init: "init",
11
11
  creating: "creating",
12
12
  resetting: "resetting",
13
13
  ready: "ready",
14
14
  archived: "archived"
15
15
  };
16
- const currentStateEnum = {
16
+ const databaseBranchesResponseBranchesComputeCurrentStateEnum = {
17
17
  active: "active",
18
18
  idle: "idle"
19
19
  };
@@ -38,7 +38,7 @@ const envVarScopesEnum = {
38
38
  runtime: "runtime",
39
39
  "post-processing": "post-processing"
40
40
  };
41
- const contextEnum = {
41
+ const envVarValuesContextEnum = {
42
42
  all: "all",
43
43
  dev: "dev",
44
44
  "dev-server": "dev-server",
@@ -62,13 +62,16 @@ const deployEnvironmentVariableScopesEnum = {
62
62
  runtime: "runtime",
63
63
  "post-processing": "post-processing"
64
64
  };
65
- const algorithmEnum = {
66
- sliding_window: "sliding_window"
67
- };
68
65
  const typeEnum = {
69
66
  ip: "ip",
70
67
  domain: "domain"
71
68
  };
69
+ const deployFilesEnvironmentScopesEnum = {
70
+ builds: "builds",
71
+ functions: "functions",
72
+ runtime: "runtime",
73
+ "post-processing": "post-processing"
74
+ };
72
75
  const buildLogMsgSectionEnum = {
73
76
  initializing: "initializing",
74
77
  building: "building",
@@ -97,8 +100,17 @@ const accountUpdateMemberSetupSiteAccessEnum = {
97
100
  none: "none",
98
101
  selected: "selected"
99
102
  };
100
- const functionConfigTrafficRulesActionConfigRateLimitConfigAlgorithmEnum = {
101
- sliding_window: "sliding_window"
103
+ const functionConfigRoutesMethodsEnum = {
104
+ GET: "GET",
105
+ POST: "POST",
106
+ PUT: "PUT",
107
+ PATCH: "PATCH",
108
+ DELETE: "DELETE",
109
+ OPTIONS: "OPTIONS"
110
+ };
111
+ const functionConfigTrafficRulesActionConfigAggregateKeysTypeEnum = {
112
+ ip: "ip",
113
+ domain: "domain"
102
114
  };
103
115
  const functionRouteMethodsEnum = {
104
116
  GET: "GET",
@@ -108,11 +120,13 @@ const functionRouteMethodsEnum = {
108
120
  DELETE: "DELETE",
109
121
  OPTIONS: "OPTIONS"
110
122
  };
111
- const trafficRulesConfigActionConfigRateLimitConfigAlgorithmEnum = {
112
- sliding_window: "sliding_window"
123
+ const trafficRulesConfigActionConfigAggregateKeysTypeEnum = {
124
+ ip: "ip",
125
+ domain: "domain"
113
126
  };
114
- const trafficRulesRateLimitConfigAlgorithmEnum = {
115
- sliding_window: "sliding_window"
127
+ const trafficRulesAggregateConfigKeysTypeEnum = {
128
+ ip: "ip",
129
+ domain: "domain"
116
130
  };
117
131
  const devServerHookTypeEnum = {
118
132
  new_dev_server: "new_dev_server",
@@ -122,49 +136,369 @@ const devServerHookSetupTypeEnum = {
122
136
  new_dev_server: "new_dev_server",
123
137
  content_refresh: "content_refresh"
124
138
  };
125
- const createSiteDevServerHookDevserverhookTypeEnum = {
126
- new_dev_server: "new_dev_server",
127
- content_refresh: "content_refresh"
139
+ const listSitesFilter = {
140
+ all: "all",
141
+ owner: "owner",
142
+ guest: "guest"
143
+ };
144
+ const getEnvVarsContextName = {
145
+ all: "all",
146
+ dev: "dev",
147
+ "dev-server": "dev-server",
148
+ "branch-deploy": "branch-deploy",
149
+ "deploy-preview": "deploy-preview",
150
+ production: "production"
151
+ };
152
+ const getEnvVarsScope = {
153
+ builds: "builds",
154
+ functions: "functions",
155
+ runtime: "runtime",
156
+ "post-processing": "post-processing"
157
+ };
158
+ const getEnvVarsStatus200ScopesEnum = {
159
+ builds: "builds",
160
+ functions: "functions",
161
+ runtime: "runtime",
162
+ "post-processing": "post-processing"
128
163
  };
129
- const roleEnum = {
164
+ const getEnvVarsStatus200ValuesContextEnum = {
165
+ all: "all",
166
+ dev: "dev",
167
+ "dev-server": "dev-server",
168
+ "branch-deploy": "branch-deploy",
169
+ "deploy-preview": "deploy-preview",
170
+ production: "production",
171
+ branch: "branch"
172
+ };
173
+ const createEnvVarsStatus201ScopesEnum = {
174
+ builds: "builds",
175
+ functions: "functions",
176
+ runtime: "runtime",
177
+ "post-processing": "post-processing"
178
+ };
179
+ const createEnvVarsStatus201ValuesContextEnum = {
180
+ all: "all",
181
+ dev: "dev",
182
+ "dev-server": "dev-server",
183
+ "branch-deploy": "branch-deploy",
184
+ "deploy-preview": "deploy-preview",
185
+ production: "production",
186
+ branch: "branch"
187
+ };
188
+ const createEnvVarsRequestScopesEnum = {
189
+ builds: "builds",
190
+ functions: "functions",
191
+ runtime: "runtime",
192
+ "post-processing": "post-processing"
193
+ };
194
+ const createEnvVarsRequestValuesContextEnum = {
195
+ all: "all",
196
+ dev: "dev",
197
+ "dev-server": "dev-server",
198
+ "branch-deploy": "branch-deploy",
199
+ "deploy-preview": "deploy-preview",
200
+ production: "production",
201
+ branch: "branch"
202
+ };
203
+ const getSiteEnvVarsContextName = {
204
+ all: "all",
205
+ dev: "dev",
206
+ "dev-server": "dev-server",
207
+ "branch-deploy": "branch-deploy",
208
+ "deploy-preview": "deploy-preview",
209
+ production: "production"
210
+ };
211
+ const getSiteEnvVarsScope = {
212
+ builds: "builds",
213
+ functions: "functions",
214
+ runtime: "runtime",
215
+ post_processing: "post_processing"
216
+ };
217
+ const getSiteEnvVarsStatus200ScopesEnum = {
218
+ builds: "builds",
219
+ functions: "functions",
220
+ runtime: "runtime",
221
+ "post-processing": "post-processing"
222
+ };
223
+ const getSiteEnvVarsStatus200ValuesContextEnum = {
224
+ all: "all",
225
+ dev: "dev",
226
+ "dev-server": "dev-server",
227
+ "branch-deploy": "branch-deploy",
228
+ "deploy-preview": "deploy-preview",
229
+ production: "production",
230
+ branch: "branch"
231
+ };
232
+ const getEnvVarStatus200ScopesEnum = {
233
+ builds: "builds",
234
+ functions: "functions",
235
+ runtime: "runtime",
236
+ "post-processing": "post-processing"
237
+ };
238
+ const getEnvVarStatus200ValuesContextEnum = {
239
+ all: "all",
240
+ dev: "dev",
241
+ "dev-server": "dev-server",
242
+ "branch-deploy": "branch-deploy",
243
+ "deploy-preview": "deploy-preview",
244
+ production: "production",
245
+ branch: "branch"
246
+ };
247
+ const updateEnvVarStatus200ScopesEnum = {
248
+ builds: "builds",
249
+ functions: "functions",
250
+ runtime: "runtime",
251
+ "post-processing": "post-processing"
252
+ };
253
+ const updateEnvVarStatus200ValuesContextEnum = {
254
+ all: "all",
255
+ dev: "dev",
256
+ "dev-server": "dev-server",
257
+ "branch-deploy": "branch-deploy",
258
+ "deploy-preview": "deploy-preview",
259
+ production: "production",
260
+ branch: "branch"
261
+ };
262
+ const updateEnvVarRequestScopesEnum = {
263
+ builds: "builds",
264
+ functions: "functions",
265
+ runtime: "runtime",
266
+ "post-processing": "post-processing"
267
+ };
268
+ const updateEnvVarRequestValuesContextEnum = {
269
+ all: "all",
270
+ dev: "dev",
271
+ "dev-server": "dev-server",
272
+ "branch-deploy": "branch-deploy",
273
+ "deploy-preview": "deploy-preview",
274
+ production: "production",
275
+ branch: "branch"
276
+ };
277
+ const setEnvVarValueStatus201ScopesEnum = {
278
+ builds: "builds",
279
+ functions: "functions",
280
+ runtime: "runtime",
281
+ "post-processing": "post-processing"
282
+ };
283
+ const setEnvVarValueStatus201ValuesContextEnum = {
284
+ all: "all",
285
+ dev: "dev",
286
+ "dev-server": "dev-server",
287
+ "branch-deploy": "branch-deploy",
288
+ "deploy-preview": "deploy-preview",
289
+ production: "production",
290
+ branch: "branch"
291
+ };
292
+ const setEnvVarValueRequestContextEnum = {
293
+ all: "all",
294
+ dev: "dev",
295
+ "dev-server": "dev-server",
296
+ "branch-deploy": "branch-deploy",
297
+ "deploy-preview": "deploy-preview",
298
+ production: "production",
299
+ branch: "branch"
300
+ };
301
+ const listSiteDeploysState = {
302
+ new: "new",
303
+ pending_review: "pending_review",
304
+ accepted: "accepted",
305
+ rejected: "rejected",
306
+ enqueued: "enqueued",
307
+ building: "building",
308
+ uploading: "uploading",
309
+ uploaded: "uploaded",
310
+ preparing: "preparing",
311
+ prepared: "prepared",
312
+ processing: "processing",
313
+ processed: "processed",
314
+ ready: "ready",
315
+ error: "error",
316
+ retrying: "retrying"
317
+ };
318
+ const createSiteDeployState = {
319
+ new: "new",
320
+ pending_review: "pending_review",
321
+ accepted: "accepted",
322
+ rejected: "rejected",
323
+ enqueued: "enqueued",
324
+ building: "building",
325
+ uploading: "uploading",
326
+ uploaded: "uploaded",
327
+ preparing: "preparing",
328
+ prepared: "prepared",
329
+ processing: "processing",
330
+ processed: "processed",
331
+ ready: "ready",
332
+ error: "error",
333
+ retrying: "retrying"
334
+ };
335
+ const createSiteDeployRequestEnvironmentScopesEnum = {
336
+ builds: "builds",
337
+ functions: "functions",
338
+ runtime: "runtime",
339
+ "post-processing": "post-processing"
340
+ };
341
+ const updateSiteDeployRequestEnvironmentScopesEnum = {
342
+ builds: "builds",
343
+ functions: "functions",
344
+ runtime: "runtime",
345
+ "post-processing": "post-processing"
346
+ };
347
+ const updateSiteBuildLogRequestSectionEnum = {
348
+ initializing: "initializing",
349
+ building: "building",
350
+ deploying: "deploying",
351
+ cleanup: "cleanup",
352
+ postprocessing: "postprocessing"
353
+ };
354
+ const addMemberToAccountRequestRoleEnum = {
130
355
  Owner: "Owner",
131
356
  Developer: "Developer",
132
357
  "Billing Admin": "Billing Admin",
133
358
  Reviewer: "Reviewer"
134
359
  };
135
- const siteAccessEnum = {
360
+ const updateAccountMemberRequestRoleEnum = {
361
+ Owner: "Owner",
362
+ Developer: "Developer",
363
+ "Billing Admin": "Billing Admin",
364
+ Reviewer: "Reviewer"
365
+ };
366
+ const updateAccountMemberRequestSiteAccessEnum = {
136
367
  all: "all",
137
368
  none: "none",
138
369
  selected: "selected"
139
370
  };
140
- const periodEnum = {
371
+ const createAccountRequestPeriodEnum = {
141
372
  monthly: "monthly",
142
373
  yearly: "yearly"
143
374
  };
375
+ const listAgentRunnersState = {
376
+ live: "live",
377
+ error: "error"
378
+ };
379
+ const listAgentRunnerSessionsState = {
380
+ live: "live",
381
+ error: "error"
382
+ };
383
+ const listAgentRunnerSessionsOrderBy = {
384
+ asc: "asc",
385
+ desc: "desc"
386
+ };
387
+ const updateDevServerStateRequestStateEnum = {
388
+ starting: "starting",
389
+ live: "live",
390
+ error: "error",
391
+ done: "done"
392
+ };
393
+ const listSiteDevServerHooksStatus200TypeEnum = {
394
+ new_dev_server: "new_dev_server",
395
+ content_refresh: "content_refresh"
396
+ };
397
+ const createSiteDevServerHookStatus201TypeEnum = {
398
+ new_dev_server: "new_dev_server",
399
+ content_refresh: "content_refresh"
400
+ };
401
+ const createSiteDevServerHookRequestTypeEnum = {
402
+ new_dev_server: "new_dev_server",
403
+ content_refresh: "content_refresh"
404
+ };
405
+ const getSiteDevServerHookStatus200TypeEnum = {
406
+ new_dev_server: "new_dev_server",
407
+ content_refresh: "content_refresh"
408
+ };
409
+ const updateSiteDevServerHookRequestTypeEnum = {
410
+ new_dev_server: "new_dev_server",
411
+ content_refresh: "content_refresh"
412
+ };
413
+ const getSiteDatabaseRole = {
414
+ netlifydb_owner: "netlifydb_owner",
415
+ netlifydb_readonly: "netlifydb_readonly"
416
+ };
417
+ const listSiteDatabaseBranchesStatus200BranchesStateEnum = {
418
+ init: "init",
419
+ creating: "creating",
420
+ resetting: "resetting",
421
+ ready: "ready",
422
+ archived: "archived"
423
+ };
424
+ const listSiteDatabaseBranchesStatus200BranchesComputeCurrentStateEnum = {
425
+ active: "active",
426
+ idle: "idle"
427
+ };
428
+ const getSiteDatabaseBranchRole = {
429
+ netlifydb_owner: "netlifydb_owner",
430
+ netlifydb_readonly: "netlifydb_readonly"
431
+ };
432
+ const resetSiteDatabaseBranchRole = {
433
+ netlifydb_owner: "netlifydb_owner",
434
+ netlifydb_readonly: "netlifydb_readonly"
435
+ };
144
436
 
145
437
  exports.accountAddMemberSetupRoleEnum = accountAddMemberSetupRoleEnum;
146
438
  exports.accountSetupPeriodEnum = accountSetupPeriodEnum;
147
439
  exports.accountUpdateMemberSetupRoleEnum = accountUpdateMemberSetupRoleEnum;
148
440
  exports.accountUpdateMemberSetupSiteAccessEnum = accountUpdateMemberSetupSiteAccessEnum;
149
- exports.algorithmEnum = algorithmEnum;
441
+ exports.addMemberToAccountRequestRoleEnum = addMemberToAccountRequestRoleEnum;
150
442
  exports.buildLogMsgSectionEnum = buildLogMsgSectionEnum;
151
- exports.contextEnum = contextEnum;
152
- exports.createSiteDevServerHookDevserverhookTypeEnum = createSiteDevServerHookDevserverhookTypeEnum;
153
- exports.currentStateEnum = currentStateEnum;
443
+ exports.createAccountRequestPeriodEnum = createAccountRequestPeriodEnum;
444
+ exports.createEnvVarsRequestScopesEnum = createEnvVarsRequestScopesEnum;
445
+ exports.createEnvVarsRequestValuesContextEnum = createEnvVarsRequestValuesContextEnum;
446
+ exports.createEnvVarsStatus201ScopesEnum = createEnvVarsStatus201ScopesEnum;
447
+ exports.createEnvVarsStatus201ValuesContextEnum = createEnvVarsStatus201ValuesContextEnum;
448
+ exports.createSiteDeployRequestEnvironmentScopesEnum = createSiteDeployRequestEnvironmentScopesEnum;
449
+ exports.createSiteDeployState = createSiteDeployState;
450
+ exports.createSiteDevServerHookRequestTypeEnum = createSiteDevServerHookRequestTypeEnum;
451
+ exports.createSiteDevServerHookStatus201TypeEnum = createSiteDevServerHookStatus201TypeEnum;
154
452
  exports.databaseBranchComputeCurrentStateEnum = databaseBranchComputeCurrentStateEnum;
155
453
  exports.databaseBranchDetailComputeCurrentStateEnum = databaseBranchDetailComputeCurrentStateEnum;
156
454
  exports.databaseBranchDetailStateEnum = databaseBranchDetailStateEnum;
455
+ exports.databaseBranchesResponseBranchesComputeCurrentStateEnum = databaseBranchesResponseBranchesComputeCurrentStateEnum;
456
+ exports.databaseBranchesResponseBranchesStateEnum = databaseBranchesResponseBranchesStateEnum;
157
457
  exports.deployEnvironmentVariableScopesEnum = deployEnvironmentVariableScopesEnum;
458
+ exports.deployFilesEnvironmentScopesEnum = deployFilesEnvironmentScopesEnum;
158
459
  exports.devServerHookSetupTypeEnum = devServerHookSetupTypeEnum;
159
460
  exports.devServerHookTypeEnum = devServerHookTypeEnum;
160
461
  exports.envVarScopesEnum = envVarScopesEnum;
161
462
  exports.envVarValueContextEnum = envVarValueContextEnum;
162
- exports.functionConfigTrafficRulesActionConfigRateLimitConfigAlgorithmEnum = functionConfigTrafficRulesActionConfigRateLimitConfigAlgorithmEnum;
463
+ exports.envVarValuesContextEnum = envVarValuesContextEnum;
464
+ exports.functionConfigRoutesMethodsEnum = functionConfigRoutesMethodsEnum;
465
+ exports.functionConfigTrafficRulesActionConfigAggregateKeysTypeEnum = functionConfigTrafficRulesActionConfigAggregateKeysTypeEnum;
163
466
  exports.functionRouteMethodsEnum = functionRouteMethodsEnum;
164
- exports.periodEnum = periodEnum;
165
- exports.roleEnum = roleEnum;
166
- exports.siteAccessEnum = siteAccessEnum;
167
- exports.stateEnum = stateEnum;
168
- exports.trafficRulesConfigActionConfigRateLimitConfigAlgorithmEnum = trafficRulesConfigActionConfigRateLimitConfigAlgorithmEnum;
169
- exports.trafficRulesRateLimitConfigAlgorithmEnum = trafficRulesRateLimitConfigAlgorithmEnum;
467
+ exports.getEnvVarStatus200ScopesEnum = getEnvVarStatus200ScopesEnum;
468
+ exports.getEnvVarStatus200ValuesContextEnum = getEnvVarStatus200ValuesContextEnum;
469
+ exports.getEnvVarsContextName = getEnvVarsContextName;
470
+ exports.getEnvVarsScope = getEnvVarsScope;
471
+ exports.getEnvVarsStatus200ScopesEnum = getEnvVarsStatus200ScopesEnum;
472
+ exports.getEnvVarsStatus200ValuesContextEnum = getEnvVarsStatus200ValuesContextEnum;
473
+ exports.getSiteDatabaseBranchRole = getSiteDatabaseBranchRole;
474
+ exports.getSiteDatabaseRole = getSiteDatabaseRole;
475
+ exports.getSiteDevServerHookStatus200TypeEnum = getSiteDevServerHookStatus200TypeEnum;
476
+ exports.getSiteEnvVarsContextName = getSiteEnvVarsContextName;
477
+ exports.getSiteEnvVarsScope = getSiteEnvVarsScope;
478
+ exports.getSiteEnvVarsStatus200ScopesEnum = getSiteEnvVarsStatus200ScopesEnum;
479
+ exports.getSiteEnvVarsStatus200ValuesContextEnum = getSiteEnvVarsStatus200ValuesContextEnum;
480
+ exports.listAgentRunnerSessionsOrderBy = listAgentRunnerSessionsOrderBy;
481
+ exports.listAgentRunnerSessionsState = listAgentRunnerSessionsState;
482
+ exports.listAgentRunnersState = listAgentRunnersState;
483
+ exports.listSiteDatabaseBranchesStatus200BranchesComputeCurrentStateEnum = listSiteDatabaseBranchesStatus200BranchesComputeCurrentStateEnum;
484
+ exports.listSiteDatabaseBranchesStatus200BranchesStateEnum = listSiteDatabaseBranchesStatus200BranchesStateEnum;
485
+ exports.listSiteDeploysState = listSiteDeploysState;
486
+ exports.listSiteDevServerHooksStatus200TypeEnum = listSiteDevServerHooksStatus200TypeEnum;
487
+ exports.listSitesFilter = listSitesFilter;
488
+ exports.resetSiteDatabaseBranchRole = resetSiteDatabaseBranchRole;
489
+ exports.setEnvVarValueRequestContextEnum = setEnvVarValueRequestContextEnum;
490
+ exports.setEnvVarValueStatus201ScopesEnum = setEnvVarValueStatus201ScopesEnum;
491
+ exports.setEnvVarValueStatus201ValuesContextEnum = setEnvVarValueStatus201ValuesContextEnum;
492
+ exports.trafficRulesAggregateConfigKeysTypeEnum = trafficRulesAggregateConfigKeysTypeEnum;
493
+ exports.trafficRulesConfigActionConfigAggregateKeysTypeEnum = trafficRulesConfigActionConfigAggregateKeysTypeEnum;
170
494
  exports.typeEnum = typeEnum;
495
+ exports.updateAccountMemberRequestRoleEnum = updateAccountMemberRequestRoleEnum;
496
+ exports.updateAccountMemberRequestSiteAccessEnum = updateAccountMemberRequestSiteAccessEnum;
497
+ exports.updateDevServerStateRequestStateEnum = updateDevServerStateRequestStateEnum;
498
+ exports.updateEnvVarRequestScopesEnum = updateEnvVarRequestScopesEnum;
499
+ exports.updateEnvVarRequestValuesContextEnum = updateEnvVarRequestValuesContextEnum;
500
+ exports.updateEnvVarStatus200ScopesEnum = updateEnvVarStatus200ScopesEnum;
501
+ exports.updateEnvVarStatus200ValuesContextEnum = updateEnvVarStatus200ValuesContextEnum;
502
+ exports.updateSiteBuildLogRequestSectionEnum = updateSiteBuildLogRequestSectionEnum;
503
+ exports.updateSiteDeployRequestEnvironmentScopesEnum = updateSiteDeployRequestEnvironmentScopesEnum;
504
+ exports.updateSiteDevServerHookRequestTypeEnum = updateSiteDevServerHookRequestTypeEnum;