netlify-api 0.10.2 → 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 ADDED
@@ -0,0 +1,435 @@
1
+ /**
2
+ * Generated by Kubb (https://kubb.dev/).
3
+ * Do not edit manually.
4
+ */ /**
5
+ * @description Request body for creating a database
6
+ * @type object
7
+ */ const databaseBranchesResponseBranchesStateEnum = {
8
+ init: "init",
9
+ creating: "creating",
10
+ resetting: "resetting",
11
+ ready: "ready",
12
+ archived: "archived"
13
+ };
14
+ const databaseBranchesResponseBranchesComputeCurrentStateEnum = {
15
+ active: "active",
16
+ idle: "idle"
17
+ };
18
+ const databaseBranchDetailStateEnum = {
19
+ init: "init",
20
+ creating: "creating",
21
+ resetting: "resetting",
22
+ ready: "ready",
23
+ archived: "archived"
24
+ };
25
+ const databaseBranchDetailComputeCurrentStateEnum = {
26
+ active: "active",
27
+ idle: "idle"
28
+ };
29
+ const databaseBranchComputeCurrentStateEnum = {
30
+ active: "active",
31
+ idle: "idle"
32
+ };
33
+ const envVarScopesEnum = {
34
+ builds: "builds",
35
+ functions: "functions",
36
+ runtime: "runtime",
37
+ "post-processing": "post-processing"
38
+ };
39
+ const envVarValuesContextEnum = {
40
+ all: "all",
41
+ dev: "dev",
42
+ "dev-server": "dev-server",
43
+ "branch-deploy": "branch-deploy",
44
+ "deploy-preview": "deploy-preview",
45
+ production: "production",
46
+ branch: "branch"
47
+ };
48
+ const envVarValueContextEnum = {
49
+ all: "all",
50
+ dev: "dev",
51
+ "dev-server": "dev-server",
52
+ "branch-deploy": "branch-deploy",
53
+ "deploy-preview": "deploy-preview",
54
+ production: "production",
55
+ branch: "branch"
56
+ };
57
+ const deployEnvironmentVariableScopesEnum = {
58
+ builds: "builds",
59
+ functions: "functions",
60
+ runtime: "runtime",
61
+ "post-processing": "post-processing"
62
+ };
63
+ const typeEnum = {
64
+ ip: "ip",
65
+ domain: "domain"
66
+ };
67
+ const deployFilesEnvironmentScopesEnum = {
68
+ builds: "builds",
69
+ functions: "functions",
70
+ runtime: "runtime",
71
+ "post-processing": "post-processing"
72
+ };
73
+ const buildLogMsgSectionEnum = {
74
+ initializing: "initializing",
75
+ building: "building",
76
+ deploying: "deploying",
77
+ cleanup: "cleanup",
78
+ postprocessing: "postprocessing"
79
+ };
80
+ const accountSetupPeriodEnum = {
81
+ monthly: "monthly",
82
+ yearly: "yearly"
83
+ };
84
+ const accountAddMemberSetupRoleEnum = {
85
+ Owner: "Owner",
86
+ Developer: "Developer",
87
+ "Billing Admin": "Billing Admin",
88
+ Reviewer: "Reviewer"
89
+ };
90
+ const accountUpdateMemberSetupRoleEnum = {
91
+ Owner: "Owner",
92
+ Developer: "Developer",
93
+ "Billing Admin": "Billing Admin",
94
+ Reviewer: "Reviewer"
95
+ };
96
+ const accountUpdateMemberSetupSiteAccessEnum = {
97
+ all: "all",
98
+ none: "none",
99
+ selected: "selected"
100
+ };
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"
112
+ };
113
+ const functionRouteMethodsEnum = {
114
+ GET: "GET",
115
+ POST: "POST",
116
+ PUT: "PUT",
117
+ PATCH: "PATCH",
118
+ DELETE: "DELETE",
119
+ OPTIONS: "OPTIONS"
120
+ };
121
+ const trafficRulesConfigActionConfigAggregateKeysTypeEnum = {
122
+ ip: "ip",
123
+ domain: "domain"
124
+ };
125
+ const trafficRulesAggregateConfigKeysTypeEnum = {
126
+ ip: "ip",
127
+ domain: "domain"
128
+ };
129
+ const devServerHookTypeEnum = {
130
+ new_dev_server: "new_dev_server",
131
+ content_refresh: "content_refresh"
132
+ };
133
+ const devServerHookSetupTypeEnum = {
134
+ new_dev_server: "new_dev_server",
135
+ content_refresh: "content_refresh"
136
+ };
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"
161
+ };
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 = {
353
+ Owner: "Owner",
354
+ Developer: "Developer",
355
+ "Billing Admin": "Billing Admin",
356
+ Reviewer: "Reviewer"
357
+ };
358
+ const updateAccountMemberRequestRoleEnum = {
359
+ Owner: "Owner",
360
+ Developer: "Developer",
361
+ "Billing Admin": "Billing Admin",
362
+ Reviewer: "Reviewer"
363
+ };
364
+ const updateAccountMemberRequestSiteAccessEnum = {
365
+ all: "all",
366
+ none: "none",
367
+ selected: "selected"
368
+ };
369
+ const createAccountRequestPeriodEnum = {
370
+ monthly: "monthly",
371
+ yearly: "yearly"
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
+ };
434
+
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,36 +1,82 @@
1
1
  {
2
2
  "name": "netlify-api",
3
- "version": "0.10.2",
3
+ "version": "1.3.0",
4
4
  "description": "Netlify auto-generated type-safe API client",
5
+ "type": "module",
5
6
  "author": "SferaDev",
6
7
  "license": "ISC",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/SferaDev/SferaDev.git"
11
+ },
7
12
  "bugs": {
8
- "url": "https://github.com/SferaDev/openapi-clients/issues"
13
+ "url": "https://github.com/SferaDev/SferaDev/issues"
14
+ },
15
+ "homepage": "https://github.com/SferaDev/SferaDev#readme",
16
+ "dependencies": {
17
+ "@sferadev/openapi-utils": "0.0.1",
18
+ "zod": "4.4.3"
19
+ },
20
+ "devDependencies": {
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
+ "rimraf": "6.1.3",
27
+ "typescript": "7.0.2"
9
28
  },
10
- "homepage": "https://github.com/SferaDev/openapi-clients#readme",
29
+ "peerDependencies": {
30
+ "effect": "^3.0.0"
31
+ },
32
+ "peerDependenciesMeta": {
33
+ "effect": {
34
+ "optional": true
35
+ }
36
+ },
37
+ "files": [
38
+ "dist"
39
+ ],
11
40
  "main": "dist/index.cjs",
12
41
  "module": "dist/index.mjs",
13
- "typings": "dist/index.d.ts",
42
+ "types": "dist/index.d.ts",
43
+ "sideEffects": false,
14
44
  "exports": {
15
45
  "./package.json": "./package.json",
16
46
  ".": {
17
- "import": {
18
- "types": "./dist/index.d.mts",
19
- "default": "./dist/index.mjs"
20
- },
21
- "require": {
22
- "types": "./dist/index.d.cts",
23
- "default": "./dist/index.cjs"
24
- }
47
+ "types": "./dist/index.d.ts",
48
+ "import": "./dist/index.mjs",
49
+ "require": "./dist/index.cjs"
50
+ },
51
+ "./types": {
52
+ "types": "./dist/types.d.mts",
53
+ "import": "./dist/types.mjs",
54
+ "require": "./dist/types.cjs"
55
+ },
56
+ "./schemas": {
57
+ "types": "./dist/schemas.d.mts",
58
+ "import": "./dist/schemas.mjs",
59
+ "require": "./dist/schemas.cjs"
60
+ },
61
+ "./components": {
62
+ "types": "./dist/components.d.mts",
63
+ "import": "./dist/components.mjs",
64
+ "require": "./dist/components.cjs"
65
+ },
66
+ "./effect": {
67
+ "types": "./dist/effect.d.mts",
68
+ "import": "./dist/effect.mjs",
69
+ "require": "./dist/effect.cjs"
25
70
  }
26
71
  },
27
- "repository": {
28
- "type": "git",
29
- "url": "git+https://github.com/SferaDev/openapi-clients.git"
72
+ "publishConfig": {
73
+ "access": "public",
74
+ "provenance": true
30
75
  },
31
76
  "scripts": {
32
77
  "tsc": "tsc --noEmit",
33
- "build": "unbuild",
34
- "generate": "openapi-codegen netlify"
78
+ "build": "bunchee",
79
+ "generate": "rimraf ./src/generated && kubb generate",
80
+ "is-tree-shakable": "is-tree-shakable"
35
81
  }
36
82
  }
@@ -1,14 +0,0 @@
1
-
2
- > netlify-api@0.10.2 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
3
- > unbuild
4
-
5
- [info] Automatically detected entries: src/index [esm] [cjs] [dts]
6
- [info] Building netlify-api
7
- [info] Cleaning dist directory: `./dist`
8
- [success] Build succeeded for netlify-api
9
- [log] dist/index.cjs (total size: 26.2 kB, chunk size: 26.2 kB, exports: NetlifyApi)
10
-
11
- [log] dist/index.mjs (total size: 26.2 kB, chunk size: 26.2 kB, exports: NetlifyApi)
12
-
13
- Σ Total dist size (byte size): 1.1 MB
14
- [log]