@faable/deploy-sdk 2.12.0 → 2.13.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/FaableDeployApi.d.ts +12 -4
- package/dist/FaableDeployApi.d.ts.map +1 -1
- package/dist/api/api-types.d.ts +8 -1
- package/dist/api/api-types.d.ts.map +1 -1
- package/dist/api/generated-client.d.ts +182 -47
- package/dist/api/generated-client.d.ts.map +1 -1
- package/dist/api/generated-client.js +54 -43
- package/dist/api/types.d.ts +509 -220
- package/dist/api/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/spec/openapi.json +1742 -669
|
@@ -9,31 +9,6 @@ import { requireId } from "../helpers.js";
|
|
|
9
9
|
* helpers, and deprecated aliases.
|
|
10
10
|
*/
|
|
11
11
|
export class GeneratedFaableDeployApi extends FaableApi {
|
|
12
|
-
/**
|
|
13
|
-
* `GET /analyzer/scan` — operationId: `analyzer/listScans`
|
|
14
|
-
*
|
|
15
|
-
* List analyzer scans
|
|
16
|
-
*/
|
|
17
|
-
analyzerListScans(params) {
|
|
18
|
-
return this.fetcher.request({ method: "GET", url: `/analyzer/scan`, params });
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* `POST /analyzer/rescan/{app_id}` — operationId: `analyzer/rescan`
|
|
22
|
-
*
|
|
23
|
-
* Rescan a deployment
|
|
24
|
-
*/
|
|
25
|
-
analyzerRescan(app_id, params) {
|
|
26
|
-
requireId("app_id", app_id);
|
|
27
|
-
return this.fetcher.request({ method: "POST", url: `/analyzer/rescan/${app_id}`, data: {}, params });
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* `GET /analyzer/stats` — operationId: `analyzer/stats`
|
|
31
|
-
*
|
|
32
|
-
* Analyzer stats
|
|
33
|
-
*/
|
|
34
|
-
analyzerStats() {
|
|
35
|
-
return this.fetcher.get(`/analyzer/stats`);
|
|
36
|
-
}
|
|
37
12
|
/**
|
|
38
13
|
* `GET /app/checkname` — operationId: `app/checkname`
|
|
39
14
|
*
|
|
@@ -130,6 +105,15 @@ export class GeneratedFaableDeployApi extends FaableApi {
|
|
|
130
105
|
requireId("id", id);
|
|
131
106
|
return this.fetcher.get(`/app/${id}/repo/config`);
|
|
132
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* `GET /app/{id}/repo/directories` — operationId: `app/repo_directories`
|
|
110
|
+
*
|
|
111
|
+
* List repository directories
|
|
112
|
+
*/
|
|
113
|
+
appRepoDirectories(id) {
|
|
114
|
+
requireId("id", id);
|
|
115
|
+
return this.fetcher.get(`/app/${id}/repo/directories`);
|
|
116
|
+
}
|
|
133
117
|
/**
|
|
134
118
|
* `GET /app/{id}/repo/workflows` — operationId: `app/repo_workflows`
|
|
135
119
|
*
|
|
@@ -157,6 +141,15 @@ export class GeneratedFaableDeployApi extends FaableApi {
|
|
|
157
141
|
requireId("id", id);
|
|
158
142
|
return this.fetcher.post(`/app/${id}/deploy-mode`, data);
|
|
159
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* `POST /app/{id}/root-dir` — operationId: `app/set_root_dir`
|
|
146
|
+
*
|
|
147
|
+
* Set the Root Directory
|
|
148
|
+
*/
|
|
149
|
+
appSetRootDir(id, data) {
|
|
150
|
+
requireId("id", id);
|
|
151
|
+
return this.fetcher.post(`/app/${id}/root-dir`, data);
|
|
152
|
+
}
|
|
160
153
|
/**
|
|
161
154
|
* `GET /app/slug/{slug}` — operationId: `app/slug`
|
|
162
155
|
*
|
|
@@ -193,6 +186,33 @@ export class GeneratedFaableDeployApi extends FaableApi {
|
|
|
193
186
|
requireId("id", id);
|
|
194
187
|
return this.fetcher.post(`/app/${id}`, data);
|
|
195
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* `GET /app/{app_id}/waf` — operationId: `app/waf`
|
|
191
|
+
*
|
|
192
|
+
* Get App WAF
|
|
193
|
+
*/
|
|
194
|
+
appWaf(app_id) {
|
|
195
|
+
requireId("app_id", app_id);
|
|
196
|
+
return this.fetcher.get(`/app/${app_id}/waf`);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* `POST /app/{app_id}/waf/rules` — operationId: `app/waf/addRule`
|
|
200
|
+
*
|
|
201
|
+
* Add App WAF Rule
|
|
202
|
+
*/
|
|
203
|
+
appWafAddRule(app_id, data) {
|
|
204
|
+
requireId("app_id", app_id);
|
|
205
|
+
return this.fetcher.post(`/app/${app_id}/waf/rules`, data);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* `DELETE /app/{app_id}/waf/rules` — operationId: `app/waf/removeRule`
|
|
209
|
+
*
|
|
210
|
+
* Remove App WAF Rule
|
|
211
|
+
*/
|
|
212
|
+
appWafRemoveRule(app_id, data) {
|
|
213
|
+
requireId("app_id", app_id);
|
|
214
|
+
return this.fetcher.delete(`/app/${app_id}/waf/rules`);
|
|
215
|
+
}
|
|
196
216
|
/**
|
|
197
217
|
* `GET /deploy-quota` — operationId: `deploy_quota/get`
|
|
198
218
|
*
|
|
@@ -209,6 +229,15 @@ export class GeneratedFaableDeployApi extends FaableApi {
|
|
|
209
229
|
deployQuotaRelease() {
|
|
210
230
|
return this.fetcher.post(`/deploy-quota/release`, {});
|
|
211
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* `POST /deployment/{deployment_id}/cancel` — operationId: `deployment/cancel`
|
|
234
|
+
*
|
|
235
|
+
* Cancel a queued or building deployment
|
|
236
|
+
*/
|
|
237
|
+
deploymentCancel(deployment_id) {
|
|
238
|
+
requireId("deployment_id", deployment_id);
|
|
239
|
+
return this.fetcher.post(`/deployment/${deployment_id}/cancel`, {});
|
|
240
|
+
}
|
|
212
241
|
/**
|
|
213
242
|
* `POST /deployment` — operationId: `deployment/create`
|
|
214
243
|
*
|
|
@@ -366,24 +395,6 @@ export class GeneratedFaableDeployApi extends FaableApi {
|
|
|
366
395
|
requireId("user_id", user_id);
|
|
367
396
|
return this.fetcher.delete(`/project/${id}/collaborator/${user_id}`);
|
|
368
397
|
}
|
|
369
|
-
/**
|
|
370
|
-
* `POST /project/{id}/restore` — operationId: `project/restore`
|
|
371
|
-
*
|
|
372
|
-
* Restore a project
|
|
373
|
-
*/
|
|
374
|
-
projectRestore(id) {
|
|
375
|
-
requireId("id", id);
|
|
376
|
-
return this.fetcher.post(`/project/${id}/restore`, {});
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* `POST /project/{id}/suspend` — operationId: `project/suspend`
|
|
380
|
-
*
|
|
381
|
-
* Suspend a project
|
|
382
|
-
*/
|
|
383
|
-
projectSuspend(id) {
|
|
384
|
-
requireId("id", id);
|
|
385
|
-
return this.fetcher.post(`/project/${id}/suspend`, {});
|
|
386
|
-
}
|
|
387
398
|
/**
|
|
388
399
|
* `POST /project/{id}` — operationId: `project/update`
|
|
389
400
|
*
|