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.mjs CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */ /**
2
+ * Generated by Kubb (https://kubb.dev/).
3
+ * Do not edit manually.
4
+ */ /**
5
5
  * @description Request body for creating a database
6
6
  * @type object
7
- */ const stateEnum = {
7
+ */ const databaseBranchesResponseBranchesStateEnum = {
8
8
  init: "init",
9
9
  creating: "creating",
10
10
  resetting: "resetting",
11
11
  ready: "ready",
12
12
  archived: "archived"
13
13
  };
14
- const currentStateEnum = {
14
+ const databaseBranchesResponseBranchesComputeCurrentStateEnum = {
15
15
  active: "active",
16
16
  idle: "idle"
17
17
  };
@@ -36,7 +36,7 @@ const envVarScopesEnum = {
36
36
  runtime: "runtime",
37
37
  "post-processing": "post-processing"
38
38
  };
39
- const contextEnum = {
39
+ const envVarValuesContextEnum = {
40
40
  all: "all",
41
41
  dev: "dev",
42
42
  "dev-server": "dev-server",
@@ -60,13 +60,16 @@ const deployEnvironmentVariableScopesEnum = {
60
60
  runtime: "runtime",
61
61
  "post-processing": "post-processing"
62
62
  };
63
- const algorithmEnum = {
64
- sliding_window: "sliding_window"
65
- };
66
63
  const typeEnum = {
67
64
  ip: "ip",
68
65
  domain: "domain"
69
66
  };
67
+ const deployFilesEnvironmentScopesEnum = {
68
+ builds: "builds",
69
+ functions: "functions",
70
+ runtime: "runtime",
71
+ "post-processing": "post-processing"
72
+ };
70
73
  const buildLogMsgSectionEnum = {
71
74
  initializing: "initializing",
72
75
  building: "building",
@@ -95,8 +98,17 @@ const accountUpdateMemberSetupSiteAccessEnum = {
95
98
  none: "none",
96
99
  selected: "selected"
97
100
  };
98
- const functionConfigTrafficRulesActionConfigRateLimitConfigAlgorithmEnum = {
99
- sliding_window: "sliding_window"
101
+ const functionConfigRoutesMethodsEnum = {
102
+ GET: "GET",
103
+ POST: "POST",
104
+ PUT: "PUT",
105
+ PATCH: "PATCH",
106
+ DELETE: "DELETE",
107
+ OPTIONS: "OPTIONS"
108
+ };
109
+ const functionConfigTrafficRulesActionConfigAggregateKeysTypeEnum = {
110
+ ip: "ip",
111
+ domain: "domain"
100
112
  };
101
113
  const functionRouteMethodsEnum = {
102
114
  GET: "GET",
@@ -106,11 +118,13 @@ const functionRouteMethodsEnum = {
106
118
  DELETE: "DELETE",
107
119
  OPTIONS: "OPTIONS"
108
120
  };
109
- const trafficRulesConfigActionConfigRateLimitConfigAlgorithmEnum = {
110
- sliding_window: "sliding_window"
121
+ const trafficRulesConfigActionConfigAggregateKeysTypeEnum = {
122
+ ip: "ip",
123
+ domain: "domain"
111
124
  };
112
- const trafficRulesRateLimitConfigAlgorithmEnum = {
113
- sliding_window: "sliding_window"
125
+ const trafficRulesAggregateConfigKeysTypeEnum = {
126
+ ip: "ip",
127
+ domain: "domain"
114
128
  };
115
129
  const devServerHookTypeEnum = {
116
130
  new_dev_server: "new_dev_server",
@@ -120,24 +134,302 @@ const devServerHookSetupTypeEnum = {
120
134
  new_dev_server: "new_dev_server",
121
135
  content_refresh: "content_refresh"
122
136
  };
123
- const createSiteDevServerHookDevserverhookTypeEnum = {
124
- new_dev_server: "new_dev_server",
125
- content_refresh: "content_refresh"
137
+ const listSitesFilter = {
138
+ all: "all",
139
+ owner: "owner",
140
+ guest: "guest"
141
+ };
142
+ const getEnvVarsContextName = {
143
+ all: "all",
144
+ dev: "dev",
145
+ "dev-server": "dev-server",
146
+ "branch-deploy": "branch-deploy",
147
+ "deploy-preview": "deploy-preview",
148
+ production: "production"
149
+ };
150
+ const getEnvVarsScope = {
151
+ builds: "builds",
152
+ functions: "functions",
153
+ runtime: "runtime",
154
+ "post-processing": "post-processing"
155
+ };
156
+ const getEnvVarsStatus200ScopesEnum = {
157
+ builds: "builds",
158
+ functions: "functions",
159
+ runtime: "runtime",
160
+ "post-processing": "post-processing"
126
161
  };
127
- const roleEnum = {
162
+ const getEnvVarsStatus200ValuesContextEnum = {
163
+ all: "all",
164
+ dev: "dev",
165
+ "dev-server": "dev-server",
166
+ "branch-deploy": "branch-deploy",
167
+ "deploy-preview": "deploy-preview",
168
+ production: "production",
169
+ branch: "branch"
170
+ };
171
+ const createEnvVarsStatus201ScopesEnum = {
172
+ builds: "builds",
173
+ functions: "functions",
174
+ runtime: "runtime",
175
+ "post-processing": "post-processing"
176
+ };
177
+ const createEnvVarsStatus201ValuesContextEnum = {
178
+ all: "all",
179
+ dev: "dev",
180
+ "dev-server": "dev-server",
181
+ "branch-deploy": "branch-deploy",
182
+ "deploy-preview": "deploy-preview",
183
+ production: "production",
184
+ branch: "branch"
185
+ };
186
+ const createEnvVarsRequestScopesEnum = {
187
+ builds: "builds",
188
+ functions: "functions",
189
+ runtime: "runtime",
190
+ "post-processing": "post-processing"
191
+ };
192
+ const createEnvVarsRequestValuesContextEnum = {
193
+ all: "all",
194
+ dev: "dev",
195
+ "dev-server": "dev-server",
196
+ "branch-deploy": "branch-deploy",
197
+ "deploy-preview": "deploy-preview",
198
+ production: "production",
199
+ branch: "branch"
200
+ };
201
+ const getSiteEnvVarsContextName = {
202
+ all: "all",
203
+ dev: "dev",
204
+ "dev-server": "dev-server",
205
+ "branch-deploy": "branch-deploy",
206
+ "deploy-preview": "deploy-preview",
207
+ production: "production"
208
+ };
209
+ const getSiteEnvVarsScope = {
210
+ builds: "builds",
211
+ functions: "functions",
212
+ runtime: "runtime",
213
+ post_processing: "post_processing"
214
+ };
215
+ const getSiteEnvVarsStatus200ScopesEnum = {
216
+ builds: "builds",
217
+ functions: "functions",
218
+ runtime: "runtime",
219
+ "post-processing": "post-processing"
220
+ };
221
+ const getSiteEnvVarsStatus200ValuesContextEnum = {
222
+ all: "all",
223
+ dev: "dev",
224
+ "dev-server": "dev-server",
225
+ "branch-deploy": "branch-deploy",
226
+ "deploy-preview": "deploy-preview",
227
+ production: "production",
228
+ branch: "branch"
229
+ };
230
+ const getEnvVarStatus200ScopesEnum = {
231
+ builds: "builds",
232
+ functions: "functions",
233
+ runtime: "runtime",
234
+ "post-processing": "post-processing"
235
+ };
236
+ const getEnvVarStatus200ValuesContextEnum = {
237
+ all: "all",
238
+ dev: "dev",
239
+ "dev-server": "dev-server",
240
+ "branch-deploy": "branch-deploy",
241
+ "deploy-preview": "deploy-preview",
242
+ production: "production",
243
+ branch: "branch"
244
+ };
245
+ const updateEnvVarStatus200ScopesEnum = {
246
+ builds: "builds",
247
+ functions: "functions",
248
+ runtime: "runtime",
249
+ "post-processing": "post-processing"
250
+ };
251
+ const updateEnvVarStatus200ValuesContextEnum = {
252
+ all: "all",
253
+ dev: "dev",
254
+ "dev-server": "dev-server",
255
+ "branch-deploy": "branch-deploy",
256
+ "deploy-preview": "deploy-preview",
257
+ production: "production",
258
+ branch: "branch"
259
+ };
260
+ const updateEnvVarRequestScopesEnum = {
261
+ builds: "builds",
262
+ functions: "functions",
263
+ runtime: "runtime",
264
+ "post-processing": "post-processing"
265
+ };
266
+ const updateEnvVarRequestValuesContextEnum = {
267
+ all: "all",
268
+ dev: "dev",
269
+ "dev-server": "dev-server",
270
+ "branch-deploy": "branch-deploy",
271
+ "deploy-preview": "deploy-preview",
272
+ production: "production",
273
+ branch: "branch"
274
+ };
275
+ const setEnvVarValueStatus201ScopesEnum = {
276
+ builds: "builds",
277
+ functions: "functions",
278
+ runtime: "runtime",
279
+ "post-processing": "post-processing"
280
+ };
281
+ const setEnvVarValueStatus201ValuesContextEnum = {
282
+ all: "all",
283
+ dev: "dev",
284
+ "dev-server": "dev-server",
285
+ "branch-deploy": "branch-deploy",
286
+ "deploy-preview": "deploy-preview",
287
+ production: "production",
288
+ branch: "branch"
289
+ };
290
+ const setEnvVarValueRequestContextEnum = {
291
+ all: "all",
292
+ dev: "dev",
293
+ "dev-server": "dev-server",
294
+ "branch-deploy": "branch-deploy",
295
+ "deploy-preview": "deploy-preview",
296
+ production: "production",
297
+ branch: "branch"
298
+ };
299
+ const listSiteDeploysState = {
300
+ new: "new",
301
+ pending_review: "pending_review",
302
+ accepted: "accepted",
303
+ rejected: "rejected",
304
+ enqueued: "enqueued",
305
+ building: "building",
306
+ uploading: "uploading",
307
+ uploaded: "uploaded",
308
+ preparing: "preparing",
309
+ prepared: "prepared",
310
+ processing: "processing",
311
+ processed: "processed",
312
+ ready: "ready",
313
+ error: "error",
314
+ retrying: "retrying"
315
+ };
316
+ const createSiteDeployState = {
317
+ new: "new",
318
+ pending_review: "pending_review",
319
+ accepted: "accepted",
320
+ rejected: "rejected",
321
+ enqueued: "enqueued",
322
+ building: "building",
323
+ uploading: "uploading",
324
+ uploaded: "uploaded",
325
+ preparing: "preparing",
326
+ prepared: "prepared",
327
+ processing: "processing",
328
+ processed: "processed",
329
+ ready: "ready",
330
+ error: "error",
331
+ retrying: "retrying"
332
+ };
333
+ const createSiteDeployRequestEnvironmentScopesEnum = {
334
+ builds: "builds",
335
+ functions: "functions",
336
+ runtime: "runtime",
337
+ "post-processing": "post-processing"
338
+ };
339
+ const updateSiteDeployRequestEnvironmentScopesEnum = {
340
+ builds: "builds",
341
+ functions: "functions",
342
+ runtime: "runtime",
343
+ "post-processing": "post-processing"
344
+ };
345
+ const updateSiteBuildLogRequestSectionEnum = {
346
+ initializing: "initializing",
347
+ building: "building",
348
+ deploying: "deploying",
349
+ cleanup: "cleanup",
350
+ postprocessing: "postprocessing"
351
+ };
352
+ const addMemberToAccountRequestRoleEnum = {
128
353
  Owner: "Owner",
129
354
  Developer: "Developer",
130
355
  "Billing Admin": "Billing Admin",
131
356
  Reviewer: "Reviewer"
132
357
  };
133
- const siteAccessEnum = {
358
+ const updateAccountMemberRequestRoleEnum = {
359
+ Owner: "Owner",
360
+ Developer: "Developer",
361
+ "Billing Admin": "Billing Admin",
362
+ Reviewer: "Reviewer"
363
+ };
364
+ const updateAccountMemberRequestSiteAccessEnum = {
134
365
  all: "all",
135
366
  none: "none",
136
367
  selected: "selected"
137
368
  };
138
- const periodEnum = {
369
+ const createAccountRequestPeriodEnum = {
139
370
  monthly: "monthly",
140
371
  yearly: "yearly"
141
372
  };
373
+ const listAgentRunnersState = {
374
+ live: "live",
375
+ error: "error"
376
+ };
377
+ const listAgentRunnerSessionsState = {
378
+ live: "live",
379
+ error: "error"
380
+ };
381
+ const listAgentRunnerSessionsOrderBy = {
382
+ asc: "asc",
383
+ desc: "desc"
384
+ };
385
+ const updateDevServerStateRequestStateEnum = {
386
+ starting: "starting",
387
+ live: "live",
388
+ error: "error",
389
+ done: "done"
390
+ };
391
+ const listSiteDevServerHooksStatus200TypeEnum = {
392
+ new_dev_server: "new_dev_server",
393
+ content_refresh: "content_refresh"
394
+ };
395
+ const createSiteDevServerHookStatus201TypeEnum = {
396
+ new_dev_server: "new_dev_server",
397
+ content_refresh: "content_refresh"
398
+ };
399
+ const createSiteDevServerHookRequestTypeEnum = {
400
+ new_dev_server: "new_dev_server",
401
+ content_refresh: "content_refresh"
402
+ };
403
+ const getSiteDevServerHookStatus200TypeEnum = {
404
+ new_dev_server: "new_dev_server",
405
+ content_refresh: "content_refresh"
406
+ };
407
+ const updateSiteDevServerHookRequestTypeEnum = {
408
+ new_dev_server: "new_dev_server",
409
+ content_refresh: "content_refresh"
410
+ };
411
+ const getSiteDatabaseRole = {
412
+ netlifydb_owner: "netlifydb_owner",
413
+ netlifydb_readonly: "netlifydb_readonly"
414
+ };
415
+ const listSiteDatabaseBranchesStatus200BranchesStateEnum = {
416
+ init: "init",
417
+ creating: "creating",
418
+ resetting: "resetting",
419
+ ready: "ready",
420
+ archived: "archived"
421
+ };
422
+ const listSiteDatabaseBranchesStatus200BranchesComputeCurrentStateEnum = {
423
+ active: "active",
424
+ idle: "idle"
425
+ };
426
+ const getSiteDatabaseBranchRole = {
427
+ netlifydb_owner: "netlifydb_owner",
428
+ netlifydb_readonly: "netlifydb_readonly"
429
+ };
430
+ const resetSiteDatabaseBranchRole = {
431
+ netlifydb_owner: "netlifydb_owner",
432
+ netlifydb_readonly: "netlifydb_readonly"
433
+ };
142
434
 
143
- export { accountAddMemberSetupRoleEnum, accountSetupPeriodEnum, accountUpdateMemberSetupRoleEnum, accountUpdateMemberSetupSiteAccessEnum, algorithmEnum, buildLogMsgSectionEnum, contextEnum, createSiteDevServerHookDevserverhookTypeEnum, currentStateEnum, databaseBranchComputeCurrentStateEnum, databaseBranchDetailComputeCurrentStateEnum, databaseBranchDetailStateEnum, deployEnvironmentVariableScopesEnum, devServerHookSetupTypeEnum, devServerHookTypeEnum, envVarScopesEnum, envVarValueContextEnum, functionConfigTrafficRulesActionConfigRateLimitConfigAlgorithmEnum, functionRouteMethodsEnum, periodEnum, roleEnum, siteAccessEnum, stateEnum, trafficRulesConfigActionConfigRateLimitConfigAlgorithmEnum, trafficRulesRateLimitConfigAlgorithmEnum, typeEnum };
435
+ export { accountAddMemberSetupRoleEnum, accountSetupPeriodEnum, accountUpdateMemberSetupRoleEnum, accountUpdateMemberSetupSiteAccessEnum, addMemberToAccountRequestRoleEnum, buildLogMsgSectionEnum, createAccountRequestPeriodEnum, createEnvVarsRequestScopesEnum, createEnvVarsRequestValuesContextEnum, createEnvVarsStatus201ScopesEnum, createEnvVarsStatus201ValuesContextEnum, createSiteDeployRequestEnvironmentScopesEnum, createSiteDeployState, createSiteDevServerHookRequestTypeEnum, createSiteDevServerHookStatus201TypeEnum, databaseBranchComputeCurrentStateEnum, databaseBranchDetailComputeCurrentStateEnum, databaseBranchDetailStateEnum, databaseBranchesResponseBranchesComputeCurrentStateEnum, databaseBranchesResponseBranchesStateEnum, deployEnvironmentVariableScopesEnum, deployFilesEnvironmentScopesEnum, devServerHookSetupTypeEnum, devServerHookTypeEnum, envVarScopesEnum, envVarValueContextEnum, envVarValuesContextEnum, functionConfigRoutesMethodsEnum, functionConfigTrafficRulesActionConfigAggregateKeysTypeEnum, functionRouteMethodsEnum, getEnvVarStatus200ScopesEnum, getEnvVarStatus200ValuesContextEnum, getEnvVarsContextName, getEnvVarsScope, getEnvVarsStatus200ScopesEnum, getEnvVarsStatus200ValuesContextEnum, getSiteDatabaseBranchRole, getSiteDatabaseRole, getSiteDevServerHookStatus200TypeEnum, getSiteEnvVarsContextName, getSiteEnvVarsScope, getSiteEnvVarsStatus200ScopesEnum, getSiteEnvVarsStatus200ValuesContextEnum, listAgentRunnerSessionsOrderBy, listAgentRunnerSessionsState, listAgentRunnersState, listSiteDatabaseBranchesStatus200BranchesComputeCurrentStateEnum, listSiteDatabaseBranchesStatus200BranchesStateEnum, listSiteDeploysState, listSiteDevServerHooksStatus200TypeEnum, listSitesFilter, resetSiteDatabaseBranchRole, setEnvVarValueRequestContextEnum, setEnvVarValueStatus201ScopesEnum, setEnvVarValueStatus201ValuesContextEnum, trafficRulesAggregateConfigKeysTypeEnum, trafficRulesConfigActionConfigAggregateKeysTypeEnum, typeEnum, updateAccountMemberRequestRoleEnum, updateAccountMemberRequestSiteAccessEnum, updateDevServerStateRequestStateEnum, updateEnvVarRequestScopesEnum, updateEnvVarRequestValuesContextEnum, updateEnvVarStatus200ScopesEnum, updateEnvVarStatus200ValuesContextEnum, updateSiteBuildLogRequestSectionEnum, updateSiteDeployRequestEnvironmentScopesEnum, updateSiteDevServerHookRequestTypeEnum };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netlify-api",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Netlify auto-generated type-safe API client",
5
5
  "type": "module",
6
6
  "author": "SferaDev",
@@ -14,18 +14,17 @@
14
14
  },
15
15
  "homepage": "https://github.com/SferaDev/SferaDev#readme",
16
16
  "dependencies": {
17
- "zod": "4.4.3",
18
- "@sferadev/openapi-utils": "0.0.1"
17
+ "@sferadev/openapi-utils": "0.0.1",
18
+ "zod": "4.4.3"
19
19
  },
20
20
  "devDependencies": {
21
- "@kubb/cli": "5.0.0-beta.10",
22
- "kubb": "5.0.0-beta.10",
23
- "effect": "3.21.3",
24
- "@types/node": "25.9.2",
25
- "bunchee": "6.11.0",
21
+ "kubb": "5.0.3",
22
+ "effect": "3.22.1",
23
+ "@sferadev/tsconfig": "0.0.0",
24
+ "@types/node": "26.4.0",
25
+ "bunchee": "7.0.1",
26
26
  "rimraf": "6.1.3",
27
- "typescript": "6.0.3",
28
- "@sferadev/tsconfig": "0.0.0"
27
+ "typescript": "7.0.2"
29
28
  },
30
29
  "peerDependencies": {
31
30
  "effect": "^3.0.0"