@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
package/dist/api/types.d.ts
CHANGED
|
@@ -43,46 +43,6 @@ export interface paths {
|
|
|
43
43
|
patch?: never;
|
|
44
44
|
trace?: never;
|
|
45
45
|
};
|
|
46
|
-
"/project/{id}/suspend": {
|
|
47
|
-
parameters: {
|
|
48
|
-
query?: never;
|
|
49
|
-
header?: never;
|
|
50
|
-
path?: never;
|
|
51
|
-
cookie?: never;
|
|
52
|
-
};
|
|
53
|
-
get?: never;
|
|
54
|
-
put?: never;
|
|
55
|
-
/**
|
|
56
|
-
* Suspend a project
|
|
57
|
-
* @description Take down every app in a project (superadmin)
|
|
58
|
-
*/
|
|
59
|
-
post: operations["project/suspend"];
|
|
60
|
-
delete?: never;
|
|
61
|
-
options?: never;
|
|
62
|
-
head?: never;
|
|
63
|
-
patch?: never;
|
|
64
|
-
trace?: never;
|
|
65
|
-
};
|
|
66
|
-
"/project/{id}/restore": {
|
|
67
|
-
parameters: {
|
|
68
|
-
query?: never;
|
|
69
|
-
header?: never;
|
|
70
|
-
path?: never;
|
|
71
|
-
cookie?: never;
|
|
72
|
-
};
|
|
73
|
-
get?: never;
|
|
74
|
-
put?: never;
|
|
75
|
-
/**
|
|
76
|
-
* Restore a project
|
|
77
|
-
* @description Re-enable every app in a project (superadmin)
|
|
78
|
-
*/
|
|
79
|
-
post: operations["project/restore"];
|
|
80
|
-
delete?: never;
|
|
81
|
-
options?: never;
|
|
82
|
-
head?: never;
|
|
83
|
-
patch?: never;
|
|
84
|
-
trace?: never;
|
|
85
|
-
};
|
|
86
46
|
"/project": {
|
|
87
47
|
parameters: {
|
|
88
48
|
query?: never;
|
|
@@ -407,6 +367,46 @@ export interface paths {
|
|
|
407
367
|
patch?: never;
|
|
408
368
|
trace?: never;
|
|
409
369
|
};
|
|
370
|
+
"/app/{id}/repo/directories": {
|
|
371
|
+
parameters: {
|
|
372
|
+
query?: never;
|
|
373
|
+
header?: never;
|
|
374
|
+
path?: never;
|
|
375
|
+
cookie?: never;
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* List repository directories
|
|
379
|
+
* @description Directories of the linked repository on the deploy branch, flagged with whether each one holds a buildable manifest. Feeds the Root Directory picker so a monorepo is configured from what the repository actually contains. Limited to three levels deep; dotted directories and node_modules are excluded.
|
|
380
|
+
*/
|
|
381
|
+
get: operations["app/repo_directories"];
|
|
382
|
+
put?: never;
|
|
383
|
+
post?: never;
|
|
384
|
+
delete?: never;
|
|
385
|
+
options?: never;
|
|
386
|
+
head?: never;
|
|
387
|
+
patch?: never;
|
|
388
|
+
trace?: never;
|
|
389
|
+
};
|
|
390
|
+
"/app/{id}/root-dir": {
|
|
391
|
+
parameters: {
|
|
392
|
+
query?: never;
|
|
393
|
+
header?: never;
|
|
394
|
+
path?: never;
|
|
395
|
+
cookie?: never;
|
|
396
|
+
};
|
|
397
|
+
get?: never;
|
|
398
|
+
put?: never;
|
|
399
|
+
/**
|
|
400
|
+
* Set the Root Directory
|
|
401
|
+
* @description Set the platform Root Directory: the subdirectory of the repository the build runs from. Takes precedence over the repo's faable.json `rootDir`; `null` clears it and hands precedence back. The path must exist on the deploy branch.
|
|
402
|
+
*/
|
|
403
|
+
post: operations["app/set_root_dir"];
|
|
404
|
+
delete?: never;
|
|
405
|
+
options?: never;
|
|
406
|
+
head?: never;
|
|
407
|
+
patch?: never;
|
|
408
|
+
trace?: never;
|
|
409
|
+
};
|
|
410
410
|
"/app/{id}/deploy-mode": {
|
|
411
411
|
parameters: {
|
|
412
412
|
query?: never;
|
|
@@ -447,6 +447,50 @@ export interface paths {
|
|
|
447
447
|
patch?: never;
|
|
448
448
|
trace?: never;
|
|
449
449
|
};
|
|
450
|
+
"/app/{app_id}/waf": {
|
|
451
|
+
parameters: {
|
|
452
|
+
query?: never;
|
|
453
|
+
header?: never;
|
|
454
|
+
path?: never;
|
|
455
|
+
cookie?: never;
|
|
456
|
+
};
|
|
457
|
+
/**
|
|
458
|
+
* Get App WAF
|
|
459
|
+
* @description Get the WAF rules in effect for an App
|
|
460
|
+
*/
|
|
461
|
+
get: operations["app/waf"];
|
|
462
|
+
put?: never;
|
|
463
|
+
post?: never;
|
|
464
|
+
delete?: never;
|
|
465
|
+
options?: never;
|
|
466
|
+
head?: never;
|
|
467
|
+
patch?: never;
|
|
468
|
+
trace?: never;
|
|
469
|
+
};
|
|
470
|
+
"/app/{app_id}/waf/rules": {
|
|
471
|
+
parameters: {
|
|
472
|
+
query?: never;
|
|
473
|
+
header?: never;
|
|
474
|
+
path?: never;
|
|
475
|
+
cookie?: never;
|
|
476
|
+
};
|
|
477
|
+
get?: never;
|
|
478
|
+
put?: never;
|
|
479
|
+
/**
|
|
480
|
+
* Add App WAF Rule
|
|
481
|
+
* @description Add a WAF rule to an App
|
|
482
|
+
*/
|
|
483
|
+
post: operations["app/waf/addRule"];
|
|
484
|
+
/**
|
|
485
|
+
* Remove App WAF Rule
|
|
486
|
+
* @description Remove a WAF rule from an App
|
|
487
|
+
*/
|
|
488
|
+
delete: operations["app/waf/removeRule"];
|
|
489
|
+
options?: never;
|
|
490
|
+
head?: never;
|
|
491
|
+
patch?: never;
|
|
492
|
+
trace?: never;
|
|
493
|
+
};
|
|
450
494
|
"/deployment": {
|
|
451
495
|
parameters: {
|
|
452
496
|
query?: never;
|
|
@@ -519,6 +563,26 @@ export interface paths {
|
|
|
519
563
|
patch?: never;
|
|
520
564
|
trace?: never;
|
|
521
565
|
};
|
|
566
|
+
"/deployment/{deployment_id}/cancel": {
|
|
567
|
+
parameters: {
|
|
568
|
+
query?: never;
|
|
569
|
+
header?: never;
|
|
570
|
+
path?: never;
|
|
571
|
+
cookie?: never;
|
|
572
|
+
};
|
|
573
|
+
get?: never;
|
|
574
|
+
put?: never;
|
|
575
|
+
/**
|
|
576
|
+
* Cancel a queued or building deployment
|
|
577
|
+
* @description Cancel a deployment that has not been handed over to the controller yet (QUEUED or BUILDING)
|
|
578
|
+
*/
|
|
579
|
+
post: operations["deployment/cancel"];
|
|
580
|
+
delete?: never;
|
|
581
|
+
options?: never;
|
|
582
|
+
head?: never;
|
|
583
|
+
patch?: never;
|
|
584
|
+
trace?: never;
|
|
585
|
+
};
|
|
522
586
|
"/domain": {
|
|
523
587
|
parameters: {
|
|
524
588
|
query?: never;
|
|
@@ -691,66 +755,6 @@ export interface paths {
|
|
|
691
755
|
patch?: never;
|
|
692
756
|
trace?: never;
|
|
693
757
|
};
|
|
694
|
-
"/analyzer/scan": {
|
|
695
|
-
parameters: {
|
|
696
|
-
query?: never;
|
|
697
|
-
header?: never;
|
|
698
|
-
path?: never;
|
|
699
|
-
cookie?: never;
|
|
700
|
-
};
|
|
701
|
-
/**
|
|
702
|
-
* List analyzer scans
|
|
703
|
-
* @description List analyzer scan results, newest first (superadmin). The abuse-detection corpus + takedown audit trail.
|
|
704
|
-
*/
|
|
705
|
-
get: operations["analyzer/listScans"];
|
|
706
|
-
put?: never;
|
|
707
|
-
post?: never;
|
|
708
|
-
delete?: never;
|
|
709
|
-
options?: never;
|
|
710
|
-
head?: never;
|
|
711
|
-
patch?: never;
|
|
712
|
-
trace?: never;
|
|
713
|
-
};
|
|
714
|
-
"/analyzer/stats": {
|
|
715
|
-
parameters: {
|
|
716
|
-
query?: never;
|
|
717
|
-
header?: never;
|
|
718
|
-
path?: never;
|
|
719
|
-
cookie?: never;
|
|
720
|
-
};
|
|
721
|
-
/**
|
|
722
|
-
* Analyzer stats
|
|
723
|
-
* @description Analyzer detection stats: counts per verdict + top signatures (superadmin).
|
|
724
|
-
*/
|
|
725
|
-
get: operations["analyzer/stats"];
|
|
726
|
-
put?: never;
|
|
727
|
-
post?: never;
|
|
728
|
-
delete?: never;
|
|
729
|
-
options?: never;
|
|
730
|
-
head?: never;
|
|
731
|
-
patch?: never;
|
|
732
|
-
trace?: never;
|
|
733
|
-
};
|
|
734
|
-
"/analyzer/rescan/{app_id}": {
|
|
735
|
-
parameters: {
|
|
736
|
-
query?: never;
|
|
737
|
-
header?: never;
|
|
738
|
-
path?: never;
|
|
739
|
-
cookie?: never;
|
|
740
|
-
};
|
|
741
|
-
get?: never;
|
|
742
|
-
put?: never;
|
|
743
|
-
/**
|
|
744
|
-
* Rescan a deployment
|
|
745
|
-
* @description Re-scan an app's promoted deployment (or ?deployment_id=…). Forces a fresh scan + enforcement; use after a signature update. Superadmin.
|
|
746
|
-
*/
|
|
747
|
-
post: operations["analyzer/rescan"];
|
|
748
|
-
delete?: never;
|
|
749
|
-
options?: never;
|
|
750
|
-
head?: never;
|
|
751
|
-
patch?: never;
|
|
752
|
-
trace?: never;
|
|
753
|
-
};
|
|
754
758
|
"/usage/summary": {
|
|
755
759
|
parameters: {
|
|
756
760
|
query?: never;
|
|
@@ -840,10 +844,6 @@ export interface components {
|
|
|
840
844
|
user_id?: string;
|
|
841
845
|
}[];
|
|
842
846
|
};
|
|
843
|
-
ProjectModerationResult: {
|
|
844
|
-
count: number;
|
|
845
|
-
app_ids: string[];
|
|
846
|
-
};
|
|
847
847
|
/** @description Project */
|
|
848
848
|
Project: {
|
|
849
849
|
/** @description Project ID */
|
|
@@ -959,6 +959,26 @@ export interface components {
|
|
|
959
959
|
/** @description Container that was OOMKilled */
|
|
960
960
|
container?: string;
|
|
961
961
|
} | null;
|
|
962
|
+
/** @description Runtime health flag for the promoted deployment (owner-facing outage signal) */
|
|
963
|
+
runtime_health?: {
|
|
964
|
+
/**
|
|
965
|
+
* @description The container keeps exiting and being restarted (CrashLoopBackOff)
|
|
966
|
+
* @enum {string}
|
|
967
|
+
*/
|
|
968
|
+
state: "crash_loop";
|
|
969
|
+
/** @description Deployment whose pod is crash-looping */
|
|
970
|
+
deployment: string;
|
|
971
|
+
/** @description ISO time the crash loop was last observed */
|
|
972
|
+
at: string;
|
|
973
|
+
/** @description Container that is crash-looping */
|
|
974
|
+
container?: string;
|
|
975
|
+
/** @description Restart count when observed */
|
|
976
|
+
restarts?: number;
|
|
977
|
+
/** @description Last exit code, when reported */
|
|
978
|
+
exit_code?: number;
|
|
979
|
+
/** @description K8s waiting/terminated reason */
|
|
980
|
+
reason?: string;
|
|
981
|
+
} | null;
|
|
962
982
|
};
|
|
963
983
|
AppRuntimeStrategy: string;
|
|
964
984
|
/** @enum {unknown} */
|
|
@@ -989,7 +1009,7 @@ export interface components {
|
|
|
989
1009
|
active: boolean;
|
|
990
1010
|
/** @description Reason the app was administratively disabled. Null when the app is active. */
|
|
991
1011
|
disabled_reason?: string | null;
|
|
992
|
-
runtime:
|
|
1012
|
+
runtime: ("node" | "php" | "python") | null;
|
|
993
1013
|
runtime_strategy: string | null;
|
|
994
1014
|
detected?: {
|
|
995
1015
|
buildpack: string;
|
|
@@ -1094,12 +1114,36 @@ export interface components {
|
|
|
1094
1114
|
root_dir: string | null;
|
|
1095
1115
|
root_dir_source: "platform" | "faable.json" | null;
|
|
1096
1116
|
};
|
|
1117
|
+
RepoDirectories: {
|
|
1118
|
+
directories: {
|
|
1119
|
+
path: string;
|
|
1120
|
+
buildable: boolean;
|
|
1121
|
+
}[];
|
|
1122
|
+
truncated: boolean;
|
|
1123
|
+
};
|
|
1097
1124
|
DeployNowResult: {
|
|
1098
1125
|
/** @enum {string} */
|
|
1099
1126
|
status: "created";
|
|
1100
1127
|
commit: string;
|
|
1101
1128
|
branch: string;
|
|
1102
1129
|
};
|
|
1130
|
+
AppWafView: {
|
|
1131
|
+
enabled: boolean;
|
|
1132
|
+
platform_profiles: {
|
|
1133
|
+
name: string;
|
|
1134
|
+
action: string;
|
|
1135
|
+
rule_count: number;
|
|
1136
|
+
rules?: {
|
|
1137
|
+
pattern: string;
|
|
1138
|
+
description?: string;
|
|
1139
|
+
}[];
|
|
1140
|
+
}[];
|
|
1141
|
+
rules: {
|
|
1142
|
+
pattern: string;
|
|
1143
|
+
action: string;
|
|
1144
|
+
description?: string;
|
|
1145
|
+
}[];
|
|
1146
|
+
};
|
|
1103
1147
|
DeploymentStatus: {
|
|
1104
1148
|
/**
|
|
1105
1149
|
* @description High-level summary of where the Deployment is in its lifecycle
|
|
@@ -1118,8 +1162,12 @@ export interface components {
|
|
|
1118
1162
|
reason?: string;
|
|
1119
1163
|
/** @description Scale-to-zero sub-state (admin-only): asleep, waking or null */
|
|
1120
1164
|
cold_state?: "asleep" | "waking" | null;
|
|
1121
|
-
/** @description
|
|
1165
|
+
/** @description Runtime image (immutable version tag) this artifact deployment runs */
|
|
1122
1166
|
runtime_image?: string;
|
|
1167
|
+
/** @description Fetcher image (immutable version tag) of the artifact-prepare initContainer */
|
|
1168
|
+
fetcher_image?: string;
|
|
1169
|
+
/** @description Builder image (immutable version tag) that built this deployment */
|
|
1170
|
+
builder_image?: string;
|
|
1123
1171
|
};
|
|
1124
1172
|
DeploymentSource: {
|
|
1125
1173
|
manifest?: {
|
|
@@ -1177,6 +1225,9 @@ export interface components {
|
|
|
1177
1225
|
artifact_id?: string;
|
|
1178
1226
|
/** Format: date-time */
|
|
1179
1227
|
artifact_ready_at?: string;
|
|
1228
|
+
/** Format: date-time */
|
|
1229
|
+
build_started_at?: string;
|
|
1230
|
+
build_ms?: number;
|
|
1180
1231
|
redeploy_of?: string;
|
|
1181
1232
|
/** Format: date-time */
|
|
1182
1233
|
quota_released_at?: string;
|
|
@@ -1346,9 +1397,11 @@ export interface components {
|
|
|
1346
1397
|
*/
|
|
1347
1398
|
app_id: string | null;
|
|
1348
1399
|
source: "builtin" | "manual" | "auto";
|
|
1349
|
-
action: "deny" | "ratelimit" | "probe";
|
|
1400
|
+
action: "deny" | "sink" | "ratelimit" | "probe";
|
|
1350
1401
|
match: "path" | "user_agent";
|
|
1351
1402
|
apply: "all" | "node" | "php" | "manual";
|
|
1403
|
+
/** @description Runtimes excluded from `apply` (e.g. ["php"]) */
|
|
1404
|
+
except?: ("all" | "node" | "php" | "manual")[];
|
|
1352
1405
|
rules: {
|
|
1353
1406
|
/** @description RE2 path-regex fragment */
|
|
1354
1407
|
pattern: string;
|
|
@@ -1401,7 +1454,7 @@ export interface components {
|
|
|
1401
1454
|
/** @description Owning App */
|
|
1402
1455
|
app_id?: string;
|
|
1403
1456
|
source?: "builtin" | "manual" | "auto";
|
|
1404
|
-
action?: "deny" | "ratelimit" | "probe";
|
|
1457
|
+
action?: "deny" | "sink" | "ratelimit" | "probe";
|
|
1405
1458
|
match?: "path" | "user_agent";
|
|
1406
1459
|
apply?: "all" | "node" | "php" | "manual";
|
|
1407
1460
|
rules?: {
|
|
@@ -1417,7 +1470,7 @@ export interface components {
|
|
|
1417
1470
|
};
|
|
1418
1471
|
WafProfileUpdate: {
|
|
1419
1472
|
name?: string;
|
|
1420
|
-
action?: "deny" | "ratelimit" | "probe";
|
|
1473
|
+
action?: "deny" | "sink" | "ratelimit" | "probe";
|
|
1421
1474
|
match?: "path" | "user_agent";
|
|
1422
1475
|
apply?: "all" | "node" | "php" | "manual";
|
|
1423
1476
|
rules?: {
|
|
@@ -1683,6 +1736,98 @@ export interface components {
|
|
|
1683
1736
|
released: string[];
|
|
1684
1737
|
canceled: string[];
|
|
1685
1738
|
};
|
|
1739
|
+
/** @description PlatformImage */
|
|
1740
|
+
PlatformImage: {
|
|
1741
|
+
/** @description PlatformImage ID */
|
|
1742
|
+
id: string;
|
|
1743
|
+
team: string;
|
|
1744
|
+
kind: "runtime" | "builder" | "fetcher" | "buildkit";
|
|
1745
|
+
/** @description Canonical key: node:22, python:3.11, static, fetcher, buildkit */
|
|
1746
|
+
key: string;
|
|
1747
|
+
/** @description Repository ref without tag */
|
|
1748
|
+
repository: string;
|
|
1749
|
+
/** @description Version served to NEW deployments/builds */
|
|
1750
|
+
current: string;
|
|
1751
|
+
/** @description Floor: deployments stamped below it are rolled to current (mandatory update) */
|
|
1752
|
+
min_version: string;
|
|
1753
|
+
/** @description A CI registration of a newer release moves current */
|
|
1754
|
+
auto_promote: boolean;
|
|
1755
|
+
versions: {
|
|
1756
|
+
/** @description Buildpacks release, X.Y.Z */
|
|
1757
|
+
version: string;
|
|
1758
|
+
/** @description Immutable image tag, e.g. 22-v1.20.1 */
|
|
1759
|
+
tag: string;
|
|
1760
|
+
/** @description sha256 the tag resolved to in ECR */
|
|
1761
|
+
digest: string;
|
|
1762
|
+
/** @default null */
|
|
1763
|
+
size: number | null;
|
|
1764
|
+
/** Format: date-time */
|
|
1765
|
+
registered_at: string;
|
|
1766
|
+
source: "ci" | "seed" | "manual";
|
|
1767
|
+
}[];
|
|
1768
|
+
/**
|
|
1769
|
+
* Format: date-time
|
|
1770
|
+
* @default null
|
|
1771
|
+
*/
|
|
1772
|
+
updated_at: string | null;
|
|
1773
|
+
/** @default {} */
|
|
1774
|
+
metadata: {
|
|
1775
|
+
[key: string]: unknown;
|
|
1776
|
+
};
|
|
1777
|
+
/** @description PlatformImage creation date */
|
|
1778
|
+
createdAt: string;
|
|
1779
|
+
/** @description PlatformImage updated date */
|
|
1780
|
+
updatedAt?: string;
|
|
1781
|
+
};
|
|
1782
|
+
/** @description Event Platformimage Create */
|
|
1783
|
+
EventPlatformimageCreate: {
|
|
1784
|
+
/** @enum {string} */
|
|
1785
|
+
type: "platformimage.create";
|
|
1786
|
+
/** @description Timestamp */
|
|
1787
|
+
produced_at: number;
|
|
1788
|
+
payload: components["schemas"]["PlatformImage"];
|
|
1789
|
+
};
|
|
1790
|
+
/** @description Event Platformimage Update */
|
|
1791
|
+
EventPlatformimageUpdate: {
|
|
1792
|
+
/** @enum {string} */
|
|
1793
|
+
type: "platformimage.update";
|
|
1794
|
+
/** @description Timestamp */
|
|
1795
|
+
produced_at: number;
|
|
1796
|
+
payload: components["schemas"]["PlatformImage"];
|
|
1797
|
+
};
|
|
1798
|
+
/** @description Event Platformimage Delete */
|
|
1799
|
+
EventPlatformimageDelete: {
|
|
1800
|
+
/** @enum {string} */
|
|
1801
|
+
type: "platformimage.delete";
|
|
1802
|
+
/** @description Timestamp */
|
|
1803
|
+
produced_at: number;
|
|
1804
|
+
payload: components["schemas"]["PlatformImage"];
|
|
1805
|
+
};
|
|
1806
|
+
PlatformImageCreate: {
|
|
1807
|
+
kind: "runtime" | "builder" | "fetcher" | "buildkit";
|
|
1808
|
+
key: string;
|
|
1809
|
+
repository: string;
|
|
1810
|
+
current: string;
|
|
1811
|
+
min_version: string;
|
|
1812
|
+
auto_promote?: boolean;
|
|
1813
|
+
versions?: {
|
|
1814
|
+
/** @description Buildpacks release, X.Y.Z */
|
|
1815
|
+
version: string;
|
|
1816
|
+
/** @description Immutable image tag, e.g. 22-v1.20.1 */
|
|
1817
|
+
tag: string;
|
|
1818
|
+
/** @description sha256 the tag resolved to in ECR */
|
|
1819
|
+
digest: string;
|
|
1820
|
+
/** @default null */
|
|
1821
|
+
size: number | null;
|
|
1822
|
+
/** Format: date-time */
|
|
1823
|
+
registered_at: string;
|
|
1824
|
+
source: "ci" | "seed" | "manual";
|
|
1825
|
+
}[];
|
|
1826
|
+
};
|
|
1827
|
+
PlatformImageUpdate: {
|
|
1828
|
+
auto_promote?: boolean;
|
|
1829
|
+
repository?: string;
|
|
1830
|
+
};
|
|
1686
1831
|
AppChecknameResponse: {
|
|
1687
1832
|
name: string;
|
|
1688
1833
|
slug: string;
|
|
@@ -1785,50 +1930,6 @@ export interface operations {
|
|
|
1785
1930
|
};
|
|
1786
1931
|
};
|
|
1787
1932
|
};
|
|
1788
|
-
"project/suspend": {
|
|
1789
|
-
parameters: {
|
|
1790
|
-
query?: never;
|
|
1791
|
-
header?: never;
|
|
1792
|
-
path: {
|
|
1793
|
-
id: string;
|
|
1794
|
-
};
|
|
1795
|
-
cookie?: never;
|
|
1796
|
-
};
|
|
1797
|
-
requestBody?: never;
|
|
1798
|
-
responses: {
|
|
1799
|
-
/** @description Default Response */
|
|
1800
|
-
200: {
|
|
1801
|
-
headers: {
|
|
1802
|
-
[name: string]: unknown;
|
|
1803
|
-
};
|
|
1804
|
-
content: {
|
|
1805
|
-
"application/json": components["schemas"]["ProjectModerationResult"];
|
|
1806
|
-
};
|
|
1807
|
-
};
|
|
1808
|
-
};
|
|
1809
|
-
};
|
|
1810
|
-
"project/restore": {
|
|
1811
|
-
parameters: {
|
|
1812
|
-
query?: never;
|
|
1813
|
-
header?: never;
|
|
1814
|
-
path: {
|
|
1815
|
-
id: string;
|
|
1816
|
-
};
|
|
1817
|
-
cookie?: never;
|
|
1818
|
-
};
|
|
1819
|
-
requestBody?: never;
|
|
1820
|
-
responses: {
|
|
1821
|
-
/** @description Default Response */
|
|
1822
|
-
200: {
|
|
1823
|
-
headers: {
|
|
1824
|
-
[name: string]: unknown;
|
|
1825
|
-
};
|
|
1826
|
-
content: {
|
|
1827
|
-
"application/json": components["schemas"]["ProjectModerationResult"];
|
|
1828
|
-
};
|
|
1829
|
-
};
|
|
1830
|
-
};
|
|
1831
|
-
};
|
|
1832
1933
|
"project/list": {
|
|
1833
1934
|
parameters: {
|
|
1834
1935
|
query?: {
|
|
@@ -2092,7 +2193,7 @@ export interface operations {
|
|
|
2092
2193
|
active: boolean;
|
|
2093
2194
|
/** @description Reason the app was administratively disabled. Null when the app is active. */
|
|
2094
2195
|
disabled_reason?: string | null;
|
|
2095
|
-
runtime:
|
|
2196
|
+
runtime: ("node" | "php" | "python") | null;
|
|
2096
2197
|
runtime_strategy: string | null;
|
|
2097
2198
|
detected?: {
|
|
2098
2199
|
buildpack: string;
|
|
@@ -2177,7 +2278,7 @@ export interface operations {
|
|
|
2177
2278
|
active: boolean;
|
|
2178
2279
|
/** @description Reason the app was administratively disabled. Null when the app is active. */
|
|
2179
2280
|
disabled_reason?: string | null;
|
|
2180
|
-
runtime:
|
|
2281
|
+
runtime: ("node" | "php" | "python") | null;
|
|
2181
2282
|
runtime_strategy: string | null;
|
|
2182
2283
|
detected?: {
|
|
2183
2284
|
buildpack: string;
|
|
@@ -2270,7 +2371,7 @@ export interface operations {
|
|
|
2270
2371
|
active: boolean;
|
|
2271
2372
|
/** @description Reason the app was administratively disabled. Null when the app is active. */
|
|
2272
2373
|
disabled_reason?: string | null;
|
|
2273
|
-
runtime:
|
|
2374
|
+
runtime: ("node" | "php" | "python") | null;
|
|
2274
2375
|
runtime_strategy: string | null;
|
|
2275
2376
|
detected?: {
|
|
2276
2377
|
buildpack: string;
|
|
@@ -2352,7 +2453,7 @@ export interface operations {
|
|
|
2352
2453
|
active: boolean;
|
|
2353
2454
|
/** @description Reason the app was administratively disabled. Null when the app is active. */
|
|
2354
2455
|
disabled_reason?: string | null;
|
|
2355
|
-
runtime:
|
|
2456
|
+
runtime: ("node" | "php" | "python") | null;
|
|
2356
2457
|
runtime_strategy: string | null;
|
|
2357
2458
|
detected?: {
|
|
2358
2459
|
buildpack: string;
|
|
@@ -2748,6 +2849,62 @@ export interface operations {
|
|
|
2748
2849
|
};
|
|
2749
2850
|
};
|
|
2750
2851
|
};
|
|
2852
|
+
"app/repo_directories": {
|
|
2853
|
+
parameters: {
|
|
2854
|
+
query?: never;
|
|
2855
|
+
header?: never;
|
|
2856
|
+
path: {
|
|
2857
|
+
id: string;
|
|
2858
|
+
};
|
|
2859
|
+
cookie?: never;
|
|
2860
|
+
};
|
|
2861
|
+
requestBody?: never;
|
|
2862
|
+
responses: {
|
|
2863
|
+
/** @description Default Response */
|
|
2864
|
+
200: {
|
|
2865
|
+
headers: {
|
|
2866
|
+
[name: string]: unknown;
|
|
2867
|
+
};
|
|
2868
|
+
content: {
|
|
2869
|
+
"application/json": {
|
|
2870
|
+
directories: {
|
|
2871
|
+
path: string;
|
|
2872
|
+
buildable: boolean;
|
|
2873
|
+
}[];
|
|
2874
|
+
truncated: boolean;
|
|
2875
|
+
};
|
|
2876
|
+
};
|
|
2877
|
+
};
|
|
2878
|
+
};
|
|
2879
|
+
};
|
|
2880
|
+
"app/set_root_dir": {
|
|
2881
|
+
parameters: {
|
|
2882
|
+
query?: never;
|
|
2883
|
+
header?: never;
|
|
2884
|
+
path: {
|
|
2885
|
+
id: string;
|
|
2886
|
+
};
|
|
2887
|
+
cookie?: never;
|
|
2888
|
+
};
|
|
2889
|
+
requestBody: {
|
|
2890
|
+
content: {
|
|
2891
|
+
"application/json": {
|
|
2892
|
+
root_dir: string | null;
|
|
2893
|
+
};
|
|
2894
|
+
};
|
|
2895
|
+
};
|
|
2896
|
+
responses: {
|
|
2897
|
+
/** @description App */
|
|
2898
|
+
200: {
|
|
2899
|
+
headers: {
|
|
2900
|
+
[name: string]: unknown;
|
|
2901
|
+
};
|
|
2902
|
+
content: {
|
|
2903
|
+
"application/json": components["schemas"]["App"];
|
|
2904
|
+
};
|
|
2905
|
+
};
|
|
2906
|
+
};
|
|
2907
|
+
};
|
|
2751
2908
|
"app/set_deploy_mode": {
|
|
2752
2909
|
parameters: {
|
|
2753
2910
|
query?: never;
|
|
@@ -2803,6 +2960,136 @@ export interface operations {
|
|
|
2803
2960
|
};
|
|
2804
2961
|
};
|
|
2805
2962
|
};
|
|
2963
|
+
"app/waf": {
|
|
2964
|
+
parameters: {
|
|
2965
|
+
query?: never;
|
|
2966
|
+
header?: never;
|
|
2967
|
+
path: {
|
|
2968
|
+
app_id: string;
|
|
2969
|
+
};
|
|
2970
|
+
cookie?: never;
|
|
2971
|
+
};
|
|
2972
|
+
requestBody?: never;
|
|
2973
|
+
responses: {
|
|
2974
|
+
/** @description Default Response */
|
|
2975
|
+
200: {
|
|
2976
|
+
headers: {
|
|
2977
|
+
[name: string]: unknown;
|
|
2978
|
+
};
|
|
2979
|
+
content: {
|
|
2980
|
+
"application/json": {
|
|
2981
|
+
enabled: boolean;
|
|
2982
|
+
platform_profiles: {
|
|
2983
|
+
name: string;
|
|
2984
|
+
action: string;
|
|
2985
|
+
rule_count: number;
|
|
2986
|
+
rules?: {
|
|
2987
|
+
pattern: string;
|
|
2988
|
+
description?: string;
|
|
2989
|
+
}[];
|
|
2990
|
+
}[];
|
|
2991
|
+
rules: {
|
|
2992
|
+
pattern: string;
|
|
2993
|
+
action: string;
|
|
2994
|
+
description?: string;
|
|
2995
|
+
}[];
|
|
2996
|
+
};
|
|
2997
|
+
};
|
|
2998
|
+
};
|
|
2999
|
+
};
|
|
3000
|
+
};
|
|
3001
|
+
"app/waf/addRule": {
|
|
3002
|
+
parameters: {
|
|
3003
|
+
query?: never;
|
|
3004
|
+
header?: never;
|
|
3005
|
+
path: {
|
|
3006
|
+
app_id: string;
|
|
3007
|
+
};
|
|
3008
|
+
cookie?: never;
|
|
3009
|
+
};
|
|
3010
|
+
requestBody: {
|
|
3011
|
+
content: {
|
|
3012
|
+
"application/json": {
|
|
3013
|
+
/** @description RE2 path-regex fragment, e.g. ^/robots\.txt$ */
|
|
3014
|
+
pattern: string;
|
|
3015
|
+
/** @description deny → 403 at the edge; sink → synthetic 404 from the platform (the app is never woken) */
|
|
3016
|
+
action: "deny" | "sink";
|
|
3017
|
+
description?: string;
|
|
3018
|
+
};
|
|
3019
|
+
};
|
|
3020
|
+
};
|
|
3021
|
+
responses: {
|
|
3022
|
+
/** @description Default Response */
|
|
3023
|
+
201: {
|
|
3024
|
+
headers: {
|
|
3025
|
+
[name: string]: unknown;
|
|
3026
|
+
};
|
|
3027
|
+
content: {
|
|
3028
|
+
"application/json": {
|
|
3029
|
+
enabled: boolean;
|
|
3030
|
+
platform_profiles: {
|
|
3031
|
+
name: string;
|
|
3032
|
+
action: string;
|
|
3033
|
+
rule_count: number;
|
|
3034
|
+
rules?: {
|
|
3035
|
+
pattern: string;
|
|
3036
|
+
description?: string;
|
|
3037
|
+
}[];
|
|
3038
|
+
}[];
|
|
3039
|
+
rules: {
|
|
3040
|
+
pattern: string;
|
|
3041
|
+
action: string;
|
|
3042
|
+
description?: string;
|
|
3043
|
+
}[];
|
|
3044
|
+
};
|
|
3045
|
+
};
|
|
3046
|
+
};
|
|
3047
|
+
};
|
|
3048
|
+
};
|
|
3049
|
+
"app/waf/removeRule": {
|
|
3050
|
+
parameters: {
|
|
3051
|
+
query?: never;
|
|
3052
|
+
header?: never;
|
|
3053
|
+
path: {
|
|
3054
|
+
app_id: string;
|
|
3055
|
+
};
|
|
3056
|
+
cookie?: never;
|
|
3057
|
+
};
|
|
3058
|
+
requestBody: {
|
|
3059
|
+
content: {
|
|
3060
|
+
"application/json": {
|
|
3061
|
+
pattern: string;
|
|
3062
|
+
};
|
|
3063
|
+
};
|
|
3064
|
+
};
|
|
3065
|
+
responses: {
|
|
3066
|
+
/** @description Default Response */
|
|
3067
|
+
200: {
|
|
3068
|
+
headers: {
|
|
3069
|
+
[name: string]: unknown;
|
|
3070
|
+
};
|
|
3071
|
+
content: {
|
|
3072
|
+
"application/json": {
|
|
3073
|
+
enabled: boolean;
|
|
3074
|
+
platform_profiles: {
|
|
3075
|
+
name: string;
|
|
3076
|
+
action: string;
|
|
3077
|
+
rule_count: number;
|
|
3078
|
+
rules?: {
|
|
3079
|
+
pattern: string;
|
|
3080
|
+
description?: string;
|
|
3081
|
+
}[];
|
|
3082
|
+
}[];
|
|
3083
|
+
rules: {
|
|
3084
|
+
pattern: string;
|
|
3085
|
+
action: string;
|
|
3086
|
+
description?: string;
|
|
3087
|
+
}[];
|
|
3088
|
+
};
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
};
|
|
2806
3093
|
"deployment/list": {
|
|
2807
3094
|
parameters: {
|
|
2808
3095
|
query?: {
|
|
@@ -2878,6 +3165,9 @@ export interface operations {
|
|
|
2878
3165
|
artifact_id?: string;
|
|
2879
3166
|
/** Format: date-time */
|
|
2880
3167
|
artifact_ready_at?: string;
|
|
3168
|
+
/** Format: date-time */
|
|
3169
|
+
build_started_at?: string;
|
|
3170
|
+
build_ms?: number;
|
|
2881
3171
|
redeploy_of?: string;
|
|
2882
3172
|
/** Format: date-time */
|
|
2883
3173
|
quota_released_at?: string;
|
|
@@ -2928,6 +3218,9 @@ export interface operations {
|
|
|
2928
3218
|
artifact_id?: string;
|
|
2929
3219
|
/** Format: date-time */
|
|
2930
3220
|
artifact_ready_at?: string;
|
|
3221
|
+
/** Format: date-time */
|
|
3222
|
+
build_started_at?: string;
|
|
3223
|
+
build_ms?: number;
|
|
2931
3224
|
redeploy_of?: string;
|
|
2932
3225
|
/** Format: date-time */
|
|
2933
3226
|
quota_released_at?: string;
|
|
@@ -2987,6 +3280,9 @@ export interface operations {
|
|
|
2987
3280
|
artifact_id?: string;
|
|
2988
3281
|
/** Format: date-time */
|
|
2989
3282
|
artifact_ready_at?: string;
|
|
3283
|
+
/** Format: date-time */
|
|
3284
|
+
build_started_at?: string;
|
|
3285
|
+
build_ms?: number;
|
|
2990
3286
|
redeploy_of?: string;
|
|
2991
3287
|
/** Format: date-time */
|
|
2992
3288
|
quota_released_at?: string;
|
|
@@ -3037,6 +3333,9 @@ export interface operations {
|
|
|
3037
3333
|
artifact_id?: string;
|
|
3038
3334
|
/** Format: date-time */
|
|
3039
3335
|
artifact_ready_at?: string;
|
|
3336
|
+
/** Format: date-time */
|
|
3337
|
+
build_started_at?: string;
|
|
3338
|
+
build_ms?: number;
|
|
3040
3339
|
redeploy_of?: string;
|
|
3041
3340
|
/** Format: date-time */
|
|
3042
3341
|
quota_released_at?: string;
|
|
@@ -3091,6 +3390,59 @@ export interface operations {
|
|
|
3091
3390
|
};
|
|
3092
3391
|
};
|
|
3093
3392
|
};
|
|
3393
|
+
"deployment/cancel": {
|
|
3394
|
+
parameters: {
|
|
3395
|
+
query?: never;
|
|
3396
|
+
header?: never;
|
|
3397
|
+
path: {
|
|
3398
|
+
deployment_id: string;
|
|
3399
|
+
};
|
|
3400
|
+
cookie?: never;
|
|
3401
|
+
};
|
|
3402
|
+
requestBody?: never;
|
|
3403
|
+
responses: {
|
|
3404
|
+
/** @description Deployment */
|
|
3405
|
+
200: {
|
|
3406
|
+
headers: {
|
|
3407
|
+
[name: string]: unknown;
|
|
3408
|
+
};
|
|
3409
|
+
content: {
|
|
3410
|
+
"application/json": {
|
|
3411
|
+
/** @description Deployment ID */
|
|
3412
|
+
id: string;
|
|
3413
|
+
team: string;
|
|
3414
|
+
app_id: string;
|
|
3415
|
+
image?: string;
|
|
3416
|
+
release?: string;
|
|
3417
|
+
github_commit?: string;
|
|
3418
|
+
github_ref?: string;
|
|
3419
|
+
github_actor?: string;
|
|
3420
|
+
github_commit_message?: string;
|
|
3421
|
+
artifact_id?: string;
|
|
3422
|
+
/** Format: date-time */
|
|
3423
|
+
artifact_ready_at?: string;
|
|
3424
|
+
/** Format: date-time */
|
|
3425
|
+
build_started_at?: string;
|
|
3426
|
+
build_ms?: number;
|
|
3427
|
+
redeploy_of?: string;
|
|
3428
|
+
/** Format: date-time */
|
|
3429
|
+
quota_released_at?: string;
|
|
3430
|
+
trigger?: string | null;
|
|
3431
|
+
detected?: components["schemas"]["DeploymentDetected"];
|
|
3432
|
+
status: components["schemas"]["DeploymentStatus"];
|
|
3433
|
+
/** @default {} */
|
|
3434
|
+
metadata: {
|
|
3435
|
+
[key: string]: unknown;
|
|
3436
|
+
};
|
|
3437
|
+
/** @description Deployment creation date */
|
|
3438
|
+
createdAt: string;
|
|
3439
|
+
/** @description Deployment updated date */
|
|
3440
|
+
updatedAt?: string;
|
|
3441
|
+
};
|
|
3442
|
+
};
|
|
3443
|
+
};
|
|
3444
|
+
};
|
|
3445
|
+
};
|
|
3094
3446
|
"domain/list": {
|
|
3095
3447
|
parameters: {
|
|
3096
3448
|
query?: {
|
|
@@ -3495,69 +3847,6 @@ export interface operations {
|
|
|
3495
3847
|
};
|
|
3496
3848
|
};
|
|
3497
3849
|
};
|
|
3498
|
-
"analyzer/listScans": {
|
|
3499
|
-
parameters: {
|
|
3500
|
-
query?: {
|
|
3501
|
-
verdict?: "clean" | "review" | "quarantine" | "skipped";
|
|
3502
|
-
app_id?: string;
|
|
3503
|
-
user_id?: string;
|
|
3504
|
-
limit?: number;
|
|
3505
|
-
};
|
|
3506
|
-
header?: never;
|
|
3507
|
-
path?: never;
|
|
3508
|
-
cookie?: never;
|
|
3509
|
-
};
|
|
3510
|
-
requestBody?: never;
|
|
3511
|
-
responses: {
|
|
3512
|
-
/** @description Default Response */
|
|
3513
|
-
200: {
|
|
3514
|
-
headers: {
|
|
3515
|
-
[name: string]: unknown;
|
|
3516
|
-
};
|
|
3517
|
-
content?: never;
|
|
3518
|
-
};
|
|
3519
|
-
};
|
|
3520
|
-
};
|
|
3521
|
-
"analyzer/stats": {
|
|
3522
|
-
parameters: {
|
|
3523
|
-
query?: never;
|
|
3524
|
-
header?: never;
|
|
3525
|
-
path?: never;
|
|
3526
|
-
cookie?: never;
|
|
3527
|
-
};
|
|
3528
|
-
requestBody?: never;
|
|
3529
|
-
responses: {
|
|
3530
|
-
/** @description Default Response */
|
|
3531
|
-
200: {
|
|
3532
|
-
headers: {
|
|
3533
|
-
[name: string]: unknown;
|
|
3534
|
-
};
|
|
3535
|
-
content?: never;
|
|
3536
|
-
};
|
|
3537
|
-
};
|
|
3538
|
-
};
|
|
3539
|
-
"analyzer/rescan": {
|
|
3540
|
-
parameters: {
|
|
3541
|
-
query?: {
|
|
3542
|
-
deployment_id?: string;
|
|
3543
|
-
};
|
|
3544
|
-
header?: never;
|
|
3545
|
-
path: {
|
|
3546
|
-
app_id: string;
|
|
3547
|
-
};
|
|
3548
|
-
cookie?: never;
|
|
3549
|
-
};
|
|
3550
|
-
requestBody?: never;
|
|
3551
|
-
responses: {
|
|
3552
|
-
/** @description Default Response */
|
|
3553
|
-
200: {
|
|
3554
|
-
headers: {
|
|
3555
|
-
[name: string]: unknown;
|
|
3556
|
-
};
|
|
3557
|
-
content?: never;
|
|
3558
|
-
};
|
|
3559
|
-
};
|
|
3560
|
-
};
|
|
3561
3850
|
"usage/summary": {
|
|
3562
3851
|
parameters: {
|
|
3563
3852
|
query?: {
|