@faable/deploy-sdk 2.0.0 → 2.2.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 +132 -122
- package/dist/FaableDeployApi.d.ts.map +1 -1
- package/dist/FaableDeployApi.js +72 -45
- package/dist/api/api-types.d.ts +46 -68
- package/dist/api/api-types.d.ts.map +1 -1
- package/dist/api/api-types.js +4 -0
- package/dist/api/custom-types.d.ts +66 -0
- package/dist/api/custom-types.d.ts.map +1 -0
- package/dist/api/custom-types.js +5 -0
- package/dist/api/generated-client.d.ts +895 -0
- package/dist/api/generated-client.d.ts.map +1 -0
- package/dist/api/generated-client.js +315 -0
- package/dist/api/types.d.ts +2 -0
- package/dist/api/types.d.ts.map +1 -1
- package/dist/helpers.d.ts +2 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +11 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +9 -0
- package/package.json +6 -4
- package/scripts/fetch-spec.mjs +24 -0
- package/scripts/gen-client.mjs +241 -0
- package/spec/openapi.json +6603 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-client.d.ts","sourceRoot":"","sources":["../../src/api/generated-client.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAI7C,KAAK,MAAM,CAAC,CAAC,SAAS,MAAM,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,SAAS;IAC9D,WAAW,EAAE;QAAE,OAAO,EAAE;YAAE,kBAAkB,EAAE,MAAM,CAAC,CAAA;SAAE,CAAA;KAAE,CAAC;CAC3D,GACG,CAAC,GACD,KAAK,CAAC;AAsBV,KAAK,OAAO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AC,gBAAgB,CAAC;;;;;;;;;;;IAKxD;;;;OAIG;IACH,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;kBA1TtD,CAAA;oBAA0B,CAAC;;;;;;;;;;;;;IA8T1C;;;;OAIG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC;;;;;;;;;;;IAKxD;;;;OAIG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;;IAIvD;;;;OAIG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM;IAK/B;;;;OAIG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC;;iBAuBiptB,0CAAsB;;IAlB9utB;;;;OAIG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC;;;;;;;;;;;;;;;IAI5C;;;;OAIG;IACH,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGb"}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/gen-client.mjs — do not edit by hand.
|
|
2
|
+
// Regenerated from the OpenAPI spec on every build (npm run gentypes).
|
|
3
|
+
// Source of truth: the deploy API's operationIds + security.
|
|
4
|
+
import { FaableApi } from "@faable/sdk-base";
|
|
5
|
+
import { requireId } from "../helpers.js";
|
|
6
|
+
/**
|
|
7
|
+
* Auto-generated deploy-API methods, one per secured operation in the OpenAPI
|
|
8
|
+
* spec. `DeployApi` extends this and adds the constructor, custom-logic
|
|
9
|
+
* helpers, and deprecated aliases.
|
|
10
|
+
*/
|
|
11
|
+
export class GeneratedFaableDeployApi extends FaableApi {
|
|
12
|
+
/**
|
|
13
|
+
* `GET /app/checkname` — operationId: `app/checkname`
|
|
14
|
+
*
|
|
15
|
+
* Check if an app name is availiable
|
|
16
|
+
*/
|
|
17
|
+
appCheckname(params) {
|
|
18
|
+
return this.fetcher.request({ method: "GET", url: `/app/checkname`, params });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* `POST /app` — operationId: `app/create`
|
|
22
|
+
*
|
|
23
|
+
* Create App
|
|
24
|
+
*/
|
|
25
|
+
appCreate(data) {
|
|
26
|
+
return this.fetcher.post(`/app`, data);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* `DELETE /app/{id}` — operationId: `app/delete`
|
|
30
|
+
*
|
|
31
|
+
* Delete App
|
|
32
|
+
*/
|
|
33
|
+
appDelete(id) {
|
|
34
|
+
requireId("id", id);
|
|
35
|
+
return this.fetcher.delete(`/app/${id}`);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* `GET /app/{id}` — operationId: `app/get`
|
|
39
|
+
*
|
|
40
|
+
* Get App
|
|
41
|
+
*/
|
|
42
|
+
appGet(id, params) {
|
|
43
|
+
requireId("id", id);
|
|
44
|
+
return this.fetcher.request({ method: "GET", url: `/app/${id}`, params });
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* `GET /app/{id}/deploy-workflow` — operationId: `app/get_deploy_workflow`
|
|
48
|
+
*
|
|
49
|
+
* Get deploy workflow status
|
|
50
|
+
*/
|
|
51
|
+
appGetDeployWorkflow(id) {
|
|
52
|
+
requireId("id", id);
|
|
53
|
+
return this.fetcher.get(`/app/${id}/deploy-workflow`);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* `GET /app/{app_id}/registry` — operationId: `app/get_registry`
|
|
57
|
+
*
|
|
58
|
+
* Get app registry
|
|
59
|
+
*/
|
|
60
|
+
appGetRegistry(app_id) {
|
|
61
|
+
requireId("app_id", app_id);
|
|
62
|
+
return this.fetcher.get(`/app/${app_id}/registry`);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* `POST /app/{id}/link-repository` — operationId: `app/link_repository`
|
|
66
|
+
*
|
|
67
|
+
* Link a GitHub repository to an app
|
|
68
|
+
*/
|
|
69
|
+
appLinkRepository(id, data) {
|
|
70
|
+
requireId("id", id);
|
|
71
|
+
return this.fetcher.post(`/app/${id}/link-repository`, data);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* `GET /app` — operationId: `app/list`
|
|
75
|
+
*
|
|
76
|
+
* List Apps
|
|
77
|
+
*/
|
|
78
|
+
appList(params) {
|
|
79
|
+
return this.paginator({ url: `/app`, params });
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* `GET /app/{app_id}/logs` — operationId: `app/logs`
|
|
83
|
+
*
|
|
84
|
+
* Get app logs
|
|
85
|
+
*/
|
|
86
|
+
appLogs(app_id, params) {
|
|
87
|
+
requireId("app_id", app_id);
|
|
88
|
+
return this.fetcher.request({ method: "GET", url: `/app/${app_id}/logs`, params });
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* `POST /app/{id}/deploy-workflow` — operationId: `app/setup_deploy_workflow`
|
|
92
|
+
*
|
|
93
|
+
* Set up deploy workflow
|
|
94
|
+
*/
|
|
95
|
+
appSetupDeployWorkflow(id) {
|
|
96
|
+
requireId("id", id);
|
|
97
|
+
return this.fetcher.post(`/app/${id}/deploy-workflow`, {});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* `GET /app/slug/{slug}` — operationId: `app/slug`
|
|
101
|
+
*
|
|
102
|
+
* Get App by unique slug
|
|
103
|
+
*/
|
|
104
|
+
appSlug(slug) {
|
|
105
|
+
requireId("slug", slug);
|
|
106
|
+
return this.fetcher.get(`/app/slug/${slug}`);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* `GET /app/{app_id}/traffic` — operationId: `app/traffic`
|
|
110
|
+
*
|
|
111
|
+
* Get App Traffic
|
|
112
|
+
*/
|
|
113
|
+
appTraffic(app_id, params) {
|
|
114
|
+
requireId("app_id", app_id);
|
|
115
|
+
return this.fetcher.request({ method: "GET", url: `/app/${app_id}/traffic`, params });
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* `POST /app/{id}/unlink-repository` — operationId: `app/unlink_repository`
|
|
119
|
+
*
|
|
120
|
+
* Unlink the GitHub repository from an app
|
|
121
|
+
*/
|
|
122
|
+
appUnlinkRepository(id) {
|
|
123
|
+
requireId("id", id);
|
|
124
|
+
return this.fetcher.post(`/app/${id}/unlink-repository`, {});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* `POST /app/{id}` — operationId: `app/update`
|
|
128
|
+
*
|
|
129
|
+
* Update App
|
|
130
|
+
*/
|
|
131
|
+
appUpdate(id, data) {
|
|
132
|
+
requireId("id", id);
|
|
133
|
+
return this.fetcher.post(`/app/${id}`, data);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* `POST /deployment` — operationId: `deployment/create`
|
|
137
|
+
*
|
|
138
|
+
* Create Deployment
|
|
139
|
+
*/
|
|
140
|
+
deploymentCreate(data) {
|
|
141
|
+
return this.fetcher.post(`/deployment`, data);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* `DELETE /deployment/{id}` — operationId: `deployment/delete`
|
|
145
|
+
*
|
|
146
|
+
* Delete Deployment
|
|
147
|
+
*/
|
|
148
|
+
deploymentDelete(id) {
|
|
149
|
+
requireId("id", id);
|
|
150
|
+
return this.fetcher.delete(`/deployment/${id}`);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* `GET /deployment/{id}` — operationId: `deployment/get`
|
|
154
|
+
*
|
|
155
|
+
* Get Deployment
|
|
156
|
+
*/
|
|
157
|
+
deploymentGet(id) {
|
|
158
|
+
requireId("id", id);
|
|
159
|
+
return this.fetcher.get(`/deployment/${id}`);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* `GET /deployment` — operationId: `deployment/list`
|
|
163
|
+
*
|
|
164
|
+
* List Deployments
|
|
165
|
+
*/
|
|
166
|
+
deploymentList(params) {
|
|
167
|
+
return this.paginator({ url: `/deployment`, params });
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* `POST /domain` — operationId: `domain/create`
|
|
171
|
+
*
|
|
172
|
+
* Create Domain
|
|
173
|
+
*/
|
|
174
|
+
domainCreate(data) {
|
|
175
|
+
return this.fetcher.post(`/domain`, data);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* `DELETE /domain/{id}` — operationId: `domain/delete`
|
|
179
|
+
*
|
|
180
|
+
* Delete Domain
|
|
181
|
+
*/
|
|
182
|
+
domainDelete(id) {
|
|
183
|
+
requireId("id", id);
|
|
184
|
+
return this.fetcher.delete(`/domain/${id}`);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* `GET /domain/fqdn/{fqdn}` — operationId: `domain/fqdn`
|
|
188
|
+
*
|
|
189
|
+
* Get domain by FQDN
|
|
190
|
+
*/
|
|
191
|
+
domainFqdn(fqdn) {
|
|
192
|
+
requireId("fqdn", fqdn);
|
|
193
|
+
return this.fetcher.get(`/domain/fqdn/${fqdn}`);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* `GET /domain/{id}` — operationId: `domain/get`
|
|
197
|
+
*
|
|
198
|
+
* Get Domain
|
|
199
|
+
*/
|
|
200
|
+
domainGet(id) {
|
|
201
|
+
requireId("id", id);
|
|
202
|
+
return this.fetcher.get(`/domain/${id}`);
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* `GET /domain` — operationId: `domain/list`
|
|
206
|
+
*
|
|
207
|
+
* List Domains
|
|
208
|
+
*/
|
|
209
|
+
domainList(params) {
|
|
210
|
+
return this.paginator({ url: `/domain`, params });
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* `POST /domain/{id}` — operationId: `domain/update`
|
|
214
|
+
*
|
|
215
|
+
* Update Domain
|
|
216
|
+
*/
|
|
217
|
+
domainUpdate(id, data) {
|
|
218
|
+
requireId("id", id);
|
|
219
|
+
return this.fetcher.post(`/domain/${id}`, data);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* `POST /project` — operationId: `project/create`
|
|
223
|
+
*
|
|
224
|
+
* Create Project
|
|
225
|
+
*/
|
|
226
|
+
projectCreate(data) {
|
|
227
|
+
return this.fetcher.post(`/project`, data);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* `DELETE /project/{id}` — operationId: `project/delete`
|
|
231
|
+
*
|
|
232
|
+
* Delete Project
|
|
233
|
+
*/
|
|
234
|
+
projectDelete(id) {
|
|
235
|
+
requireId("id", id);
|
|
236
|
+
return this.fetcher.delete(`/project/${id}`);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* `GET /project/{id}` — operationId: `project/get`
|
|
240
|
+
*
|
|
241
|
+
* Get Project
|
|
242
|
+
*/
|
|
243
|
+
projectGet(id) {
|
|
244
|
+
requireId("id", id);
|
|
245
|
+
return this.fetcher.get(`/project/${id}`);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* `POST /project/{id}/invite` — operationId: `project/invite`
|
|
249
|
+
*
|
|
250
|
+
* Invite collaborators to project
|
|
251
|
+
*/
|
|
252
|
+
projectInvite(id, data) {
|
|
253
|
+
requireId("id", id);
|
|
254
|
+
return this.fetcher.post(`/project/${id}/invite`, data);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* `GET /project` — operationId: `project/list`
|
|
258
|
+
*
|
|
259
|
+
* List Projects
|
|
260
|
+
*/
|
|
261
|
+
projectList(params) {
|
|
262
|
+
return this.paginator({ url: `/project`, params });
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* `POST /project/{id}` — operationId: `project/update`
|
|
266
|
+
*
|
|
267
|
+
* Update Project
|
|
268
|
+
*/
|
|
269
|
+
projectUpdate(id, data) {
|
|
270
|
+
requireId("id", id);
|
|
271
|
+
return this.fetcher.post(`/project/${id}`, data);
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* `POST /secret/createbatch` — operationId: `secrets/create_batch`
|
|
275
|
+
*
|
|
276
|
+
* Create secrets in batch
|
|
277
|
+
*/
|
|
278
|
+
secretsCreateBatch(data) {
|
|
279
|
+
return this.fetcher.post(`/secret/createbatch`, data);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* `DELETE /secret/{secret_id}` — operationId: `secrets/delete`
|
|
283
|
+
*
|
|
284
|
+
* Delete a secret
|
|
285
|
+
*/
|
|
286
|
+
secretsDelete(secret_id) {
|
|
287
|
+
requireId("secret_id", secret_id);
|
|
288
|
+
return this.fetcher.delete(`/secret/${secret_id}`);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* `GET /secret/{context_id}` — operationId: `secrets/list_app`
|
|
292
|
+
*
|
|
293
|
+
* List all secrets assigned to an App or Profile contexts
|
|
294
|
+
*/
|
|
295
|
+
secretsListApp(context_id, params) {
|
|
296
|
+
requireId("context_id", context_id);
|
|
297
|
+
return this.fetcher.request({ method: "GET", url: `/secret/${context_id}`, params });
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* `POST /secret` — operationId: `secrets/upsert`
|
|
301
|
+
*
|
|
302
|
+
* Upsert a secret
|
|
303
|
+
*/
|
|
304
|
+
secretsUpsert(data) {
|
|
305
|
+
return this.fetcher.post(`/secret`, data);
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* `GET /usage/summary` — operationId: `usage/summary`
|
|
309
|
+
*
|
|
310
|
+
* Get team usage summary for the current billing period
|
|
311
|
+
*/
|
|
312
|
+
usageSummary() {
|
|
313
|
+
return this.fetcher.get(`/usage/summary`);
|
|
314
|
+
}
|
|
315
|
+
}
|
package/dist/api/types.d.ts
CHANGED
|
@@ -1390,6 +1390,8 @@ export interface components {
|
|
|
1390
1390
|
default_branch: string;
|
|
1391
1391
|
/** @description Id of the Faable GitHub App installation that grants access */
|
|
1392
1392
|
installation_id: number;
|
|
1393
|
+
/** @description Repository description from GitHub */
|
|
1394
|
+
description?: string;
|
|
1393
1395
|
permissions?: {
|
|
1394
1396
|
admin: boolean;
|
|
1395
1397
|
push: boolean;
|