@faable/deploy-sdk 2.10.0 → 2.12.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 +44 -0
- package/dist/FaableDeployApi.d.ts.map +1 -1
- package/dist/api/api-types.d.ts +3 -0
- package/dist/api/api-types.d.ts.map +1 -1
- package/dist/api/generated-client.d.ts +213 -11
- package/dist/api/generated-client.d.ts.map +1 -1
- package/dist/api/generated-client.js +63 -2
- package/dist/api/types.d.ts +425 -10
- package/dist/api/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/scripts/gen-client.mjs +15 -11
- package/spec/openapi.json +1752 -190
|
@@ -18,6 +18,24 @@ type OpQuery<K extends keyof operations> = operations[K] extends {
|
|
|
18
18
|
* helpers, and deprecated aliases.
|
|
19
19
|
*/
|
|
20
20
|
export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
21
|
+
/**
|
|
22
|
+
* `GET /analyzer/scan` — operationId: `analyzer/listScans`
|
|
23
|
+
*
|
|
24
|
+
* List analyzer scans
|
|
25
|
+
*/
|
|
26
|
+
analyzerListScans(params?: OpQuery<"analyzer/listScans">): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* `POST /analyzer/rescan/{app_id}` — operationId: `analyzer/rescan`
|
|
29
|
+
*
|
|
30
|
+
* Rescan a deployment
|
|
31
|
+
*/
|
|
32
|
+
analyzerRescan(app_id: string, params?: OpQuery<"analyzer/rescan">): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* `GET /analyzer/stats` — operationId: `analyzer/stats`
|
|
35
|
+
*
|
|
36
|
+
* Analyzer stats
|
|
37
|
+
*/
|
|
38
|
+
analyzerStats(): Promise<void>;
|
|
21
39
|
/**
|
|
22
40
|
* `GET /app/checkname` — operationId: `app/checkname`
|
|
23
41
|
*
|
|
@@ -46,6 +64,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
46
64
|
disabled_reason?: string | null;
|
|
47
65
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
48
66
|
runtime_strategy: string | null;
|
|
67
|
+
detected?: {
|
|
68
|
+
buildpack: string;
|
|
69
|
+
framework?: string;
|
|
70
|
+
runtime: {
|
|
71
|
+
name: string;
|
|
72
|
+
version?: string;
|
|
73
|
+
};
|
|
74
|
+
} | null;
|
|
49
75
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
50
76
|
build_mode?: ("local" | "remote") | null;
|
|
51
77
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -61,6 +87,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
61
87
|
github_branch?: string;
|
|
62
88
|
github_installation_id?: string;
|
|
63
89
|
github_installation_state?: string | null;
|
|
90
|
+
github_repo_hidden?: string | null;
|
|
91
|
+
github_disconnect_reason?: string | null;
|
|
64
92
|
deploy_trigger?: string | null;
|
|
65
93
|
deploy_gate?: string | null;
|
|
66
94
|
metadata: {
|
|
@@ -85,6 +113,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
85
113
|
disabled_reason?: string | null;
|
|
86
114
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
87
115
|
runtime_strategy: string | null;
|
|
116
|
+
detected?: {
|
|
117
|
+
buildpack: string;
|
|
118
|
+
framework?: string;
|
|
119
|
+
runtime: {
|
|
120
|
+
name: string;
|
|
121
|
+
version?: string;
|
|
122
|
+
};
|
|
123
|
+
} | null;
|
|
88
124
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
89
125
|
build_mode?: ("local" | "remote") | null;
|
|
90
126
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -100,6 +136,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
100
136
|
github_branch?: string;
|
|
101
137
|
github_installation_id?: string;
|
|
102
138
|
github_installation_state?: string | null;
|
|
139
|
+
github_repo_hidden?: string | null;
|
|
140
|
+
github_disconnect_reason?: string | null;
|
|
103
141
|
deploy_trigger?: string | null;
|
|
104
142
|
deploy_gate?: string | null;
|
|
105
143
|
metadata: {
|
|
@@ -134,6 +172,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
134
172
|
disabled_reason?: string | null;
|
|
135
173
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
136
174
|
runtime_strategy: string | null;
|
|
175
|
+
detected?: {
|
|
176
|
+
buildpack: string;
|
|
177
|
+
framework?: string;
|
|
178
|
+
runtime: {
|
|
179
|
+
name: string;
|
|
180
|
+
version?: string;
|
|
181
|
+
};
|
|
182
|
+
} | null;
|
|
137
183
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
138
184
|
build_mode?: ("local" | "remote") | null;
|
|
139
185
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -149,6 +195,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
149
195
|
github_branch?: string;
|
|
150
196
|
github_installation_id?: string;
|
|
151
197
|
github_installation_state?: string | null;
|
|
198
|
+
github_repo_hidden?: string | null;
|
|
199
|
+
github_disconnect_reason?: string | null;
|
|
152
200
|
deploy_trigger?: string | null;
|
|
153
201
|
deploy_gate?: string | null;
|
|
154
202
|
metadata: {
|
|
@@ -186,6 +234,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
186
234
|
disabled_reason?: string | null;
|
|
187
235
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
188
236
|
runtime_strategy: string | null;
|
|
237
|
+
detected?: {
|
|
238
|
+
buildpack: string;
|
|
239
|
+
framework?: string;
|
|
240
|
+
runtime: {
|
|
241
|
+
name: string;
|
|
242
|
+
version?: string;
|
|
243
|
+
};
|
|
244
|
+
} | null;
|
|
189
245
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
190
246
|
build_mode?: ("local" | "remote") | null;
|
|
191
247
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -201,6 +257,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
201
257
|
github_branch?: string;
|
|
202
258
|
github_installation_id?: string;
|
|
203
259
|
github_installation_state?: string | null;
|
|
260
|
+
github_repo_hidden?: string | null;
|
|
261
|
+
github_disconnect_reason?: string | null;
|
|
204
262
|
deploy_trigger?: string | null;
|
|
205
263
|
deploy_gate?: string | null;
|
|
206
264
|
metadata: {
|
|
@@ -226,6 +284,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
226
284
|
disabled_reason?: string | null;
|
|
227
285
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
228
286
|
runtime_strategy: string | null;
|
|
287
|
+
detected?: {
|
|
288
|
+
buildpack: string;
|
|
289
|
+
framework?: string;
|
|
290
|
+
runtime: {
|
|
291
|
+
name: string;
|
|
292
|
+
version?: string;
|
|
293
|
+
};
|
|
294
|
+
} | null;
|
|
229
295
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
230
296
|
build_mode?: ("local" | "remote") | null;
|
|
231
297
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -241,6 +307,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
241
307
|
github_branch?: string;
|
|
242
308
|
github_installation_id?: string;
|
|
243
309
|
github_installation_state?: string | null;
|
|
310
|
+
github_repo_hidden?: string | null;
|
|
311
|
+
github_disconnect_reason?: string | null;
|
|
244
312
|
deploy_trigger?: string | null;
|
|
245
313
|
deploy_gate?: string | null;
|
|
246
314
|
metadata: {
|
|
@@ -260,6 +328,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
260
328
|
disabled_reason?: string | null;
|
|
261
329
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
262
330
|
runtime_strategy: string | null;
|
|
331
|
+
detected?: {
|
|
332
|
+
buildpack: string;
|
|
333
|
+
framework?: string;
|
|
334
|
+
runtime: {
|
|
335
|
+
name: string;
|
|
336
|
+
version?: string;
|
|
337
|
+
};
|
|
338
|
+
} | null;
|
|
263
339
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
264
340
|
build_mode?: ("local" | "remote") | null;
|
|
265
341
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -275,6 +351,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
275
351
|
github_branch?: string;
|
|
276
352
|
github_installation_id?: string;
|
|
277
353
|
github_installation_state?: string | null;
|
|
354
|
+
github_repo_hidden?: string | null;
|
|
355
|
+
github_disconnect_reason?: string | null;
|
|
278
356
|
deploy_trigger?: string | null;
|
|
279
357
|
deploy_gate?: string | null;
|
|
280
358
|
metadata: {
|
|
@@ -297,6 +375,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
297
375
|
disabled_reason?: string | null;
|
|
298
376
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
299
377
|
runtime_strategy: string | null;
|
|
378
|
+
detected?: {
|
|
379
|
+
buildpack: string;
|
|
380
|
+
framework?: string;
|
|
381
|
+
runtime: {
|
|
382
|
+
name: string;
|
|
383
|
+
version?: string;
|
|
384
|
+
};
|
|
385
|
+
} | null;
|
|
300
386
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
301
387
|
build_mode?: ("local" | "remote") | null;
|
|
302
388
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -312,6 +398,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
312
398
|
github_branch?: string;
|
|
313
399
|
github_installation_id?: string;
|
|
314
400
|
github_installation_state?: string | null;
|
|
401
|
+
github_repo_hidden?: string | null;
|
|
402
|
+
github_disconnect_reason?: string | null;
|
|
315
403
|
deploy_trigger?: string | null;
|
|
316
404
|
deploy_gate?: string | null;
|
|
317
405
|
metadata: {
|
|
@@ -381,6 +469,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
381
469
|
disabled_reason?: string | null;
|
|
382
470
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
383
471
|
runtime_strategy: string | null;
|
|
472
|
+
detected?: {
|
|
473
|
+
buildpack: string;
|
|
474
|
+
framework?: string;
|
|
475
|
+
runtime: {
|
|
476
|
+
name: string;
|
|
477
|
+
version?: string;
|
|
478
|
+
};
|
|
479
|
+
} | null;
|
|
384
480
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
385
481
|
build_mode?: ("local" | "remote") | null;
|
|
386
482
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -396,6 +492,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
396
492
|
github_branch?: string;
|
|
397
493
|
github_installation_id?: string;
|
|
398
494
|
github_installation_state?: string | null;
|
|
495
|
+
github_repo_hidden?: string | null;
|
|
496
|
+
github_disconnect_reason?: string | null;
|
|
399
497
|
deploy_trigger?: string | null;
|
|
400
498
|
deploy_gate?: string | null;
|
|
401
499
|
metadata: {
|
|
@@ -420,6 +518,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
420
518
|
disabled_reason?: string | null;
|
|
421
519
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
422
520
|
runtime_strategy: string | null;
|
|
521
|
+
detected?: {
|
|
522
|
+
buildpack: string;
|
|
523
|
+
framework?: string;
|
|
524
|
+
runtime: {
|
|
525
|
+
name: string;
|
|
526
|
+
version?: string;
|
|
527
|
+
};
|
|
528
|
+
} | null;
|
|
423
529
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
424
530
|
build_mode?: ("local" | "remote") | null;
|
|
425
531
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -435,6 +541,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
435
541
|
github_branch?: string;
|
|
436
542
|
github_installation_id?: string;
|
|
437
543
|
github_installation_state?: string | null;
|
|
544
|
+
github_repo_hidden?: string | null;
|
|
545
|
+
github_disconnect_reason?: string | null;
|
|
438
546
|
deploy_trigger?: string | null;
|
|
439
547
|
deploy_gate?: string | null;
|
|
440
548
|
metadata: {
|
|
@@ -517,6 +625,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
517
625
|
disabled_reason?: string | null;
|
|
518
626
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
519
627
|
runtime_strategy: string | null;
|
|
628
|
+
detected?: {
|
|
629
|
+
buildpack: string;
|
|
630
|
+
framework?: string;
|
|
631
|
+
runtime: {
|
|
632
|
+
name: string;
|
|
633
|
+
version?: string;
|
|
634
|
+
};
|
|
635
|
+
} | null;
|
|
520
636
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
521
637
|
build_mode?: ("local" | "remote") | null;
|
|
522
638
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -532,6 +648,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
532
648
|
github_branch?: string;
|
|
533
649
|
github_installation_id?: string;
|
|
534
650
|
github_installation_state?: string | null;
|
|
651
|
+
github_repo_hidden?: string | null;
|
|
652
|
+
github_disconnect_reason?: string | null;
|
|
535
653
|
deploy_trigger?: string | null;
|
|
536
654
|
deploy_gate?: string | null;
|
|
537
655
|
metadata: {
|
|
@@ -556,6 +674,14 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
556
674
|
disabled_reason?: string | null;
|
|
557
675
|
runtime: import("./types.js").components["schemas"]["AppRuntime"];
|
|
558
676
|
runtime_strategy: string | null;
|
|
677
|
+
detected?: {
|
|
678
|
+
buildpack: string;
|
|
679
|
+
framework?: string;
|
|
680
|
+
runtime: {
|
|
681
|
+
name: string;
|
|
682
|
+
version?: string;
|
|
683
|
+
};
|
|
684
|
+
} | null;
|
|
559
685
|
mode: import("./types.js").components["schemas"]["AppMode"];
|
|
560
686
|
build_mode?: ("local" | "remote") | null;
|
|
561
687
|
deploy_output?: ("image" | "artifact") | null;
|
|
@@ -571,6 +697,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
571
697
|
github_branch?: string;
|
|
572
698
|
github_installation_id?: string;
|
|
573
699
|
github_installation_state?: string | null;
|
|
700
|
+
github_repo_hidden?: string | null;
|
|
701
|
+
github_disconnect_reason?: string | null;
|
|
574
702
|
deploy_trigger?: string | null;
|
|
575
703
|
deploy_gate?: string | null;
|
|
576
704
|
metadata: {
|
|
@@ -621,6 +749,7 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
621
749
|
redeploy_of?: string;
|
|
622
750
|
quota_released_at?: string;
|
|
623
751
|
trigger?: string | null;
|
|
752
|
+
detected?: import("./types.js").components["schemas"]["DeploymentDetected"];
|
|
624
753
|
status: import("./types.js").components["schemas"]["DeploymentStatus"];
|
|
625
754
|
metadata: {
|
|
626
755
|
[key: string]: unknown;
|
|
@@ -648,6 +777,7 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
648
777
|
redeploy_of?: string;
|
|
649
778
|
quota_released_at?: string;
|
|
650
779
|
trigger?: string | null;
|
|
780
|
+
detected?: import("./types.js").components["schemas"]["DeploymentDetected"];
|
|
651
781
|
status: import("./types.js").components["schemas"]["DeploymentStatus"];
|
|
652
782
|
metadata: {
|
|
653
783
|
[key: string]: unknown;
|
|
@@ -675,6 +805,7 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
675
805
|
redeploy_of?: string;
|
|
676
806
|
quota_released_at?: string;
|
|
677
807
|
trigger?: string | null;
|
|
808
|
+
detected?: import("./types.js").components["schemas"]["DeploymentDetected"];
|
|
678
809
|
status: import("./types.js").components["schemas"]["DeploymentStatus"];
|
|
679
810
|
metadata: {
|
|
680
811
|
[key: string]: unknown;
|
|
@@ -722,6 +853,7 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
722
853
|
redeploy_of?: string;
|
|
723
854
|
quota_released_at?: string;
|
|
724
855
|
trigger?: string | null;
|
|
856
|
+
detected?: import("./types.js").components["schemas"]["DeploymentDetected"];
|
|
725
857
|
status: import("./types.js").components["schemas"]["DeploymentStatus"];
|
|
726
858
|
metadata: {
|
|
727
859
|
[key: string]: unknown;
|
|
@@ -744,6 +876,7 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
744
876
|
redeploy_of?: string;
|
|
745
877
|
quota_released_at?: string;
|
|
746
878
|
trigger?: string | null;
|
|
879
|
+
detected?: import("./types.js").components["schemas"]["DeploymentDetected"];
|
|
747
880
|
status: import("./types.js").components["schemas"]["DeploymentStatus"];
|
|
748
881
|
metadata: {
|
|
749
882
|
[key: string]: unknown;
|
|
@@ -769,6 +902,7 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
769
902
|
redeploy_of?: string;
|
|
770
903
|
quota_released_at?: string;
|
|
771
904
|
trigger?: string | null;
|
|
905
|
+
detected?: import("./types.js").components["schemas"]["DeploymentDetected"];
|
|
772
906
|
status: import("./types.js").components["schemas"]["DeploymentStatus"];
|
|
773
907
|
metadata: {
|
|
774
908
|
[key: string]: unknown;
|
|
@@ -797,6 +931,7 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
797
931
|
redeploy_of?: string;
|
|
798
932
|
quota_released_at?: string;
|
|
799
933
|
trigger?: string | null;
|
|
934
|
+
detected?: import("./types.js").components["schemas"]["DeploymentDetected"];
|
|
800
935
|
status: import("./types.js").components["schemas"]["DeploymentStatus"];
|
|
801
936
|
metadata: {
|
|
802
937
|
[key: string]: unknown;
|
|
@@ -980,6 +1115,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
980
1115
|
team: string;
|
|
981
1116
|
user_id?: string;
|
|
982
1117
|
collaborators: string[];
|
|
1118
|
+
owner_suspended?: boolean;
|
|
1119
|
+
owner_email?: string;
|
|
983
1120
|
createdAt: string;
|
|
984
1121
|
updatedAt?: string;
|
|
985
1122
|
}>;
|
|
@@ -996,6 +1133,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
996
1133
|
team: string;
|
|
997
1134
|
user_id?: string;
|
|
998
1135
|
collaborators: string[];
|
|
1136
|
+
owner_suspended?: boolean;
|
|
1137
|
+
owner_email?: string;
|
|
999
1138
|
createdAt: string;
|
|
1000
1139
|
updatedAt?: string;
|
|
1001
1140
|
}>;
|
|
@@ -1012,6 +1151,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
1012
1151
|
team: string;
|
|
1013
1152
|
user_id?: string;
|
|
1014
1153
|
collaborators: string[];
|
|
1154
|
+
owner_suspended?: boolean;
|
|
1155
|
+
owner_email?: string;
|
|
1015
1156
|
createdAt: string;
|
|
1016
1157
|
updatedAt?: string;
|
|
1017
1158
|
}>;
|
|
@@ -1021,15 +1162,12 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
1021
1162
|
* Invite collaborators to project
|
|
1022
1163
|
*/
|
|
1023
1164
|
projectInvite(id: string, data: OpBody<"project/invite">): Promise<{
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
collaborators: string[];
|
|
1031
|
-
createdAt: string;
|
|
1032
|
-
updatedAt?: string;
|
|
1165
|
+
project: import("./types.js").components["schemas"]["Project"];
|
|
1166
|
+
results: {
|
|
1167
|
+
email: string;
|
|
1168
|
+
status: "invited" | "invited_created_account" | "already_member" | "failed";
|
|
1169
|
+
user_id?: string;
|
|
1170
|
+
}[];
|
|
1033
1171
|
}>;
|
|
1034
1172
|
/**
|
|
1035
1173
|
* `GET /project` — operationId: `project/list`
|
|
@@ -1045,6 +1183,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
1045
1183
|
team: string;
|
|
1046
1184
|
user_id?: string;
|
|
1047
1185
|
collaborators: string[];
|
|
1186
|
+
owner_suspended?: boolean;
|
|
1187
|
+
owner_email?: string;
|
|
1048
1188
|
createdAt: string;
|
|
1049
1189
|
updatedAt?: string;
|
|
1050
1190
|
}[]>;
|
|
@@ -1056,6 +1196,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
1056
1196
|
team: string;
|
|
1057
1197
|
user_id?: string;
|
|
1058
1198
|
collaborators: string[];
|
|
1199
|
+
owner_suspended?: boolean;
|
|
1200
|
+
owner_email?: string;
|
|
1059
1201
|
createdAt: string;
|
|
1060
1202
|
updatedAt?: string;
|
|
1061
1203
|
}>>;
|
|
@@ -1070,10 +1212,48 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
1070
1212
|
team: string;
|
|
1071
1213
|
user_id?: string;
|
|
1072
1214
|
collaborators: string[];
|
|
1215
|
+
owner_suspended?: boolean;
|
|
1216
|
+
owner_email?: string;
|
|
1073
1217
|
createdAt: string;
|
|
1074
1218
|
updatedAt?: string;
|
|
1075
1219
|
}>>;
|
|
1076
1220
|
};
|
|
1221
|
+
/**
|
|
1222
|
+
* `DELETE /project/{id}/collaborator/{user_id}` — operationId: `project/removeCollaborator`
|
|
1223
|
+
*
|
|
1224
|
+
* Remove a collaborator from a project
|
|
1225
|
+
*/
|
|
1226
|
+
projectRemoveCollaborator(id: string, user_id: string): Promise<{
|
|
1227
|
+
id: string;
|
|
1228
|
+
name: string;
|
|
1229
|
+
description: string;
|
|
1230
|
+
slug: string;
|
|
1231
|
+
team: string;
|
|
1232
|
+
user_id?: string;
|
|
1233
|
+
collaborators: string[];
|
|
1234
|
+
owner_suspended?: boolean;
|
|
1235
|
+
owner_email?: string;
|
|
1236
|
+
createdAt: string;
|
|
1237
|
+
updatedAt?: string;
|
|
1238
|
+
}>;
|
|
1239
|
+
/**
|
|
1240
|
+
* `POST /project/{id}/restore` — operationId: `project/restore`
|
|
1241
|
+
*
|
|
1242
|
+
* Restore a project
|
|
1243
|
+
*/
|
|
1244
|
+
projectRestore(id: string): Promise<{
|
|
1245
|
+
count: number;
|
|
1246
|
+
app_ids: string[];
|
|
1247
|
+
}>;
|
|
1248
|
+
/**
|
|
1249
|
+
* `POST /project/{id}/suspend` — operationId: `project/suspend`
|
|
1250
|
+
*
|
|
1251
|
+
* Suspend a project
|
|
1252
|
+
*/
|
|
1253
|
+
projectSuspend(id: string): Promise<{
|
|
1254
|
+
count: number;
|
|
1255
|
+
app_ids: string[];
|
|
1256
|
+
}>;
|
|
1077
1257
|
/**
|
|
1078
1258
|
* `POST /project/{id}` — operationId: `project/update`
|
|
1079
1259
|
*
|
|
@@ -1087,6 +1267,8 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
1087
1267
|
team: string;
|
|
1088
1268
|
user_id?: string;
|
|
1089
1269
|
collaborators: string[];
|
|
1270
|
+
owner_suspended?: boolean;
|
|
1271
|
+
owner_email?: string;
|
|
1090
1272
|
createdAt: string;
|
|
1091
1273
|
updatedAt?: string;
|
|
1092
1274
|
}>;
|
|
@@ -1150,7 +1332,7 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
1150
1332
|
*
|
|
1151
1333
|
* Get team usage summary for the current billing period
|
|
1152
1334
|
*/
|
|
1153
|
-
usageSummary(): Promise<{
|
|
1335
|
+
usageSummary(params?: OpQuery<"usage/summary">): Promise<{
|
|
1154
1336
|
resources: {
|
|
1155
1337
|
apps: number;
|
|
1156
1338
|
domains: number;
|
|
@@ -1159,7 +1341,7 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
1159
1341
|
traffic: {
|
|
1160
1342
|
used_gb: number;
|
|
1161
1343
|
cost_estimate_cents: number;
|
|
1162
|
-
};
|
|
1344
|
+
} | null;
|
|
1163
1345
|
teams: {
|
|
1164
1346
|
id: string;
|
|
1165
1347
|
name: string;
|
|
@@ -1182,6 +1364,26 @@ export declare abstract class GeneratedFaableDeployApi extends FaableApi {
|
|
|
1182
1364
|
cost_estimate_cents: number;
|
|
1183
1365
|
} | null;
|
|
1184
1366
|
}[];
|
|
1367
|
+
billing_available: boolean;
|
|
1368
|
+
}>;
|
|
1369
|
+
/**
|
|
1370
|
+
* `GET /usage/traffic` — operationId: `usage/traffic`
|
|
1371
|
+
*
|
|
1372
|
+
* Get metered traffic usage per team for the current period
|
|
1373
|
+
*/
|
|
1374
|
+
usageTraffic(): Promise<{
|
|
1375
|
+
traffic: {
|
|
1376
|
+
used_gb: number;
|
|
1377
|
+
cost_estimate_cents: number;
|
|
1378
|
+
} | null;
|
|
1379
|
+
teams: {
|
|
1380
|
+
id: string;
|
|
1381
|
+
traffic: {
|
|
1382
|
+
used_gb: number;
|
|
1383
|
+
cost_estimate_cents: number;
|
|
1384
|
+
} | null;
|
|
1385
|
+
}[];
|
|
1386
|
+
billing_available: boolean;
|
|
1185
1387
|
}>;
|
|
1186
1388
|
}
|
|
1187
1389
|
export {};
|
|
@@ -1 +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,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c,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBApatD,CAAA;oBAA0B,CAAC;;;;;;;;;;;;;;;IAwa1C;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;;;;;;;;;;;IAMrD;;;;OAIG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM;;;;IAKzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM;;;;IAKzB;;;;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;;iBAgCm4hC,0CAAsB;;IA3Bh+hC;;;;OAIG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC;;;;;;;;;;;;;;;IAI5C;;;;OAIG;IACH,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI9C;;;;OAIG;IACH,YAAY;;;;;;;;;;;;;;CAGb"}
|
|
@@ -9,6 +9,31 @@ 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
|
+
}
|
|
12
37
|
/**
|
|
13
38
|
* `GET /app/checkname` — operationId: `app/checkname`
|
|
14
39
|
*
|
|
@@ -331,6 +356,34 @@ export class GeneratedFaableDeployApi extends FaableApi {
|
|
|
331
356
|
projectList(params) {
|
|
332
357
|
return this.paginator({ url: `/project`, params });
|
|
333
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* `DELETE /project/{id}/collaborator/{user_id}` — operationId: `project/removeCollaborator`
|
|
361
|
+
*
|
|
362
|
+
* Remove a collaborator from a project
|
|
363
|
+
*/
|
|
364
|
+
projectRemoveCollaborator(id, user_id) {
|
|
365
|
+
requireId("id", id);
|
|
366
|
+
requireId("user_id", user_id);
|
|
367
|
+
return this.fetcher.delete(`/project/${id}/collaborator/${user_id}`);
|
|
368
|
+
}
|
|
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
|
+
}
|
|
334
387
|
/**
|
|
335
388
|
* `POST /project/{id}` — operationId: `project/update`
|
|
336
389
|
*
|
|
@@ -379,7 +432,15 @@ export class GeneratedFaableDeployApi extends FaableApi {
|
|
|
379
432
|
*
|
|
380
433
|
* Get team usage summary for the current billing period
|
|
381
434
|
*/
|
|
382
|
-
usageSummary() {
|
|
383
|
-
return this.fetcher.
|
|
435
|
+
usageSummary(params) {
|
|
436
|
+
return this.fetcher.request({ method: "GET", url: `/usage/summary`, params });
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* `GET /usage/traffic` — operationId: `usage/traffic`
|
|
440
|
+
*
|
|
441
|
+
* Get metered traffic usage per team for the current period
|
|
442
|
+
*/
|
|
443
|
+
usageTraffic() {
|
|
444
|
+
return this.fetcher.get(`/usage/traffic`);
|
|
384
445
|
}
|
|
385
446
|
}
|