@faable/deploy-sdk 2.1.0 → 2.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.
@@ -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,CAAC,CAAC,SAAS,MAAM,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,SAAS;IAC/D,UAAU,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;CACjC,GACG,WAAW,CAAC,CAAC,CAAC,GACd,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE1B;;;;GAIG;AACH,8BAAsB,wBAAyB,SAAQ,SAAS;IAC9D;;;;OAIG;IACH,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC;;;;;;;IAI9C;;;;OAIG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC;;;;;;;;;iBAkWuwwC,0CAAsB;;cAAsG,0CAAsB;;;;;;gBAAyuB,0CAAsB;;;;;;;;;;IA9V5ryC;;;;OAIG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM;;;;;;;;;iBAyVyugD,0CAAsB;;cAAsG,0CAAsB;;;;;;gBAAyuB,0CAAsB;;;;;;;;;;IApV9oiD;;;;OAIG;IACH,MAAM,CAAC,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;;;;;;kBAxVtD,CAAA;oBAA0B,CAAC;;;;;;;;;;;;;IA4V1C;;;;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;;iBAuB09vB,0CAAsB;;IAlBvjwB;;;;OAIG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC;;;;;;;;;;;;;;;IAI5C;;;;OAIG;IACH,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGb"}
@@ -0,0 +1,342 @@
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-branch` — operationId: `app/set_deploy_branch`
92
+ *
93
+ * Change the deploy branch
94
+ */
95
+ appSetDeployBranch(id, data) {
96
+ requireId("id", id);
97
+ return this.fetcher.post(`/app/${id}/deploy-branch`, data);
98
+ }
99
+ /**
100
+ * `POST /app/{id}/deploy-workflow` — operationId: `app/setup_deploy_workflow`
101
+ *
102
+ * Set up deploy workflow
103
+ */
104
+ appSetupDeployWorkflow(id) {
105
+ requireId("id", id);
106
+ return this.fetcher.post(`/app/${id}/deploy-workflow`, {});
107
+ }
108
+ /**
109
+ * `GET /app/slug/{slug}` — operationId: `app/slug`
110
+ *
111
+ * Get App by unique slug
112
+ */
113
+ appSlug(slug) {
114
+ requireId("slug", slug);
115
+ return this.fetcher.get(`/app/slug/${slug}`);
116
+ }
117
+ /**
118
+ * `GET /app/{app_id}/traffic` — operationId: `app/traffic`
119
+ *
120
+ * Get App Traffic
121
+ */
122
+ appTraffic(app_id, params) {
123
+ requireId("app_id", app_id);
124
+ return this.fetcher.request({ method: "GET", url: `/app/${app_id}/traffic`, params });
125
+ }
126
+ /**
127
+ * `POST /app/{id}/unlink-repository` — operationId: `app/unlink_repository`
128
+ *
129
+ * Unlink the GitHub repository from an app
130
+ */
131
+ appUnlinkRepository(id) {
132
+ requireId("id", id);
133
+ return this.fetcher.post(`/app/${id}/unlink-repository`, {});
134
+ }
135
+ /**
136
+ * `POST /app/{id}` — operationId: `app/update`
137
+ *
138
+ * Update App
139
+ */
140
+ appUpdate(id, data) {
141
+ requireId("id", id);
142
+ return this.fetcher.post(`/app/${id}`, data);
143
+ }
144
+ /**
145
+ * `POST /deployment` — operationId: `deployment/create`
146
+ *
147
+ * Create Deployment
148
+ */
149
+ deploymentCreate(data) {
150
+ return this.fetcher.post(`/deployment`, data);
151
+ }
152
+ /**
153
+ * `DELETE /deployment/{id}` — operationId: `deployment/delete`
154
+ *
155
+ * Delete Deployment
156
+ */
157
+ deploymentDelete(id) {
158
+ requireId("id", id);
159
+ return this.fetcher.delete(`/deployment/${id}`);
160
+ }
161
+ /**
162
+ * `GET /deployment/{id}` — operationId: `deployment/get`
163
+ *
164
+ * Get Deployment
165
+ */
166
+ deploymentGet(id) {
167
+ requireId("id", id);
168
+ return this.fetcher.get(`/deployment/${id}`);
169
+ }
170
+ /**
171
+ * `GET /deployment/{deployment_id}/logs` — operationId: `deployment/get_logs`
172
+ *
173
+ * Get deployment build logs
174
+ */
175
+ deploymentGetLogs(deployment_id) {
176
+ requireId("deployment_id", deployment_id);
177
+ return this.fetcher.get(`/deployment/${deployment_id}/logs`);
178
+ }
179
+ /**
180
+ * `GET /deployment` — operationId: `deployment/list`
181
+ *
182
+ * List Deployments
183
+ */
184
+ deploymentList(params) {
185
+ return this.paginator({ url: `/deployment`, params });
186
+ }
187
+ /**
188
+ * `POST /deployment/{id}` — operationId: `deployment/update`
189
+ *
190
+ * Update Deployment
191
+ */
192
+ deploymentUpdate(id, data) {
193
+ requireId("id", id);
194
+ return this.fetcher.post(`/deployment/${id}`, data);
195
+ }
196
+ /**
197
+ * `POST /domain` — operationId: `domain/create`
198
+ *
199
+ * Create Domain
200
+ */
201
+ domainCreate(data) {
202
+ return this.fetcher.post(`/domain`, data);
203
+ }
204
+ /**
205
+ * `DELETE /domain/{id}` — operationId: `domain/delete`
206
+ *
207
+ * Delete Domain
208
+ */
209
+ domainDelete(id) {
210
+ requireId("id", id);
211
+ return this.fetcher.delete(`/domain/${id}`);
212
+ }
213
+ /**
214
+ * `GET /domain/fqdn/{fqdn}` — operationId: `domain/fqdn`
215
+ *
216
+ * Get domain by FQDN
217
+ */
218
+ domainFqdn(fqdn) {
219
+ requireId("fqdn", fqdn);
220
+ return this.fetcher.get(`/domain/fqdn/${fqdn}`);
221
+ }
222
+ /**
223
+ * `GET /domain/{id}` — operationId: `domain/get`
224
+ *
225
+ * Get Domain
226
+ */
227
+ domainGet(id) {
228
+ requireId("id", id);
229
+ return this.fetcher.get(`/domain/${id}`);
230
+ }
231
+ /**
232
+ * `GET /domain` — operationId: `domain/list`
233
+ *
234
+ * List Domains
235
+ */
236
+ domainList(params) {
237
+ return this.paginator({ url: `/domain`, params });
238
+ }
239
+ /**
240
+ * `POST /domain/{id}` — operationId: `domain/update`
241
+ *
242
+ * Update Domain
243
+ */
244
+ domainUpdate(id, data) {
245
+ requireId("id", id);
246
+ return this.fetcher.post(`/domain/${id}`, data);
247
+ }
248
+ /**
249
+ * `POST /project` — operationId: `project/create`
250
+ *
251
+ * Create Project
252
+ */
253
+ projectCreate(data) {
254
+ return this.fetcher.post(`/project`, data);
255
+ }
256
+ /**
257
+ * `DELETE /project/{id}` — operationId: `project/delete`
258
+ *
259
+ * Delete Project
260
+ */
261
+ projectDelete(id) {
262
+ requireId("id", id);
263
+ return this.fetcher.delete(`/project/${id}`);
264
+ }
265
+ /**
266
+ * `GET /project/{id}` — operationId: `project/get`
267
+ *
268
+ * Get Project
269
+ */
270
+ projectGet(id) {
271
+ requireId("id", id);
272
+ return this.fetcher.get(`/project/${id}`);
273
+ }
274
+ /**
275
+ * `POST /project/{id}/invite` — operationId: `project/invite`
276
+ *
277
+ * Invite collaborators to project
278
+ */
279
+ projectInvite(id, data) {
280
+ requireId("id", id);
281
+ return this.fetcher.post(`/project/${id}/invite`, data);
282
+ }
283
+ /**
284
+ * `GET /project` — operationId: `project/list`
285
+ *
286
+ * List Projects
287
+ */
288
+ projectList(params) {
289
+ return this.paginator({ url: `/project`, params });
290
+ }
291
+ /**
292
+ * `POST /project/{id}` — operationId: `project/update`
293
+ *
294
+ * Update Project
295
+ */
296
+ projectUpdate(id, data) {
297
+ requireId("id", id);
298
+ return this.fetcher.post(`/project/${id}`, data);
299
+ }
300
+ /**
301
+ * `POST /secret/createbatch` — operationId: `secrets/create_batch`
302
+ *
303
+ * Create secrets in batch
304
+ */
305
+ secretsCreateBatch(data) {
306
+ return this.fetcher.post(`/secret/createbatch`, data);
307
+ }
308
+ /**
309
+ * `DELETE /secret/{secret_id}` — operationId: `secrets/delete`
310
+ *
311
+ * Delete a secret
312
+ */
313
+ secretsDelete(secret_id) {
314
+ requireId("secret_id", secret_id);
315
+ return this.fetcher.delete(`/secret/${secret_id}`);
316
+ }
317
+ /**
318
+ * `GET /secret/{context_id}` — operationId: `secrets/list_app`
319
+ *
320
+ * List all secrets assigned to an App or Profile contexts
321
+ */
322
+ secretsListApp(context_id, params) {
323
+ requireId("context_id", context_id);
324
+ return this.fetcher.request({ method: "GET", url: `/secret/${context_id}`, params });
325
+ }
326
+ /**
327
+ * `POST /secret` — operationId: `secrets/upsert`
328
+ *
329
+ * Upsert a secret
330
+ */
331
+ secretsUpsert(data) {
332
+ return this.fetcher.post(`/secret`, data);
333
+ }
334
+ /**
335
+ * `GET /usage/summary` — operationId: `usage/summary`
336
+ *
337
+ * Get team usage summary for the current billing period
338
+ */
339
+ usageSummary() {
340
+ return this.fetcher.get(`/usage/summary`);
341
+ }
342
+ }