@faable/deploy-sdk 2.11.0 → 2.12.1

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.
@@ -23,6 +23,26 @@ export interface paths {
23
23
  patch?: never;
24
24
  trace?: never;
25
25
  };
26
+ "/project/{id}/collaborator/{user_id}": {
27
+ parameters: {
28
+ query?: never;
29
+ header?: never;
30
+ path?: never;
31
+ cookie?: never;
32
+ };
33
+ get?: never;
34
+ put?: never;
35
+ post?: never;
36
+ /**
37
+ * Remove a collaborator from a project
38
+ * @description Remove a collaborator from a project
39
+ */
40
+ delete: operations["project/removeCollaborator"];
41
+ options?: never;
42
+ head?: never;
43
+ patch?: never;
44
+ trace?: never;
45
+ };
26
46
  "/project": {
27
47
  parameters: {
28
48
  query?: never;
@@ -712,6 +732,14 @@ export interface components {
712
732
  ProjectInvite: {
713
733
  emails: string[];
714
734
  };
735
+ ProjectInviteResult: {
736
+ project: components["schemas"]["Project"];
737
+ results: {
738
+ email: string;
739
+ status: "invited" | "invited_created_account" | "already_member" | "failed";
740
+ user_id?: string;
741
+ }[];
742
+ };
715
743
  /** @description Project */
716
744
  Project: {
717
745
  /** @description Project ID */
@@ -722,6 +750,8 @@ export interface components {
722
750
  team: string;
723
751
  user_id?: string;
724
752
  collaborators: string[];
753
+ owner_suspended?: boolean;
754
+ owner_email?: string;
725
755
  /** @description Project creation date */
726
756
  createdAt: string;
727
757
  /** @description Project updated date */
@@ -759,7 +789,6 @@ export interface components {
759
789
  ProjectUpdate: {
760
790
  name?: string;
761
791
  description?: string;
762
- collaborators?: string[];
763
792
  };
764
793
  AppStatus: {
765
794
  /**
@@ -812,10 +841,24 @@ export interface components {
812
841
  * @default null
813
842
  */
814
843
  secrets_revision: string | null;
844
+ /** @description Runtime resource-pressure flag (admin/owner-facing upgrade prompt) */
845
+ resource_health?: {
846
+ /**
847
+ * @description The runtime exceeded its memory limit (OOMKilled)
848
+ * @enum {string}
849
+ */
850
+ state: "memory_exceeded";
851
+ /** @description Deployment whose pod tripped the limit */
852
+ deployment: string;
853
+ /** @description ISO time the limit was last observed being hit */
854
+ at: string;
855
+ /** @description Container that was OOMKilled */
856
+ container?: string;
857
+ } | null;
815
858
  };
816
859
  AppRuntimeStrategy: string;
817
860
  /** @enum {unknown} */
818
- AppRuntime: "node" | "php";
861
+ AppRuntime: "node" | "php" | "python";
819
862
  /**
820
863
  * @default standard
821
864
  * @enum {unknown}
@@ -844,6 +887,14 @@ export interface components {
844
887
  disabled_reason?: string | null;
845
888
  runtime: components["schemas"]["AppRuntime"];
846
889
  runtime_strategy: string | null;
890
+ detected?: {
891
+ buildpack: string;
892
+ framework?: string;
893
+ runtime: {
894
+ name: string;
895
+ version?: string;
896
+ };
897
+ } | null;
847
898
  mode: components["schemas"]["AppMode"];
848
899
  build_mode?: ("local" | "remote") | null;
849
900
  deploy_output?: ("image" | "artifact") | null;
@@ -867,6 +918,10 @@ export interface components {
867
918
  github_installation_id?: string;
868
919
  /** @description Platform GitHub access health, maintained by installation lifecycle webhooks. Absent/null = ok; 'deleted' | 'suspended' | 'repo_removed' = access broken until re-linked. */
869
920
  github_installation_state?: string | null;
921
+ /** @description The linked repository stopped being readable after the app was created, per the GitHub `repository` webhook. Absent/null = visible; 'deleted' | 'privatized' | 'archived' = the source was pulled after deploying (the analyzer re-scores the promoted deployment against our own build artifact). */
922
+ github_repo_hidden?: string | null;
923
+ /** @description Why the platform cleared the repository link automatically. Absent/null = never auto-disconnected (or re-linked since); 'push_flood' = the repo exceeded the hourly push limit and must be re-linked by the user. */
924
+ github_disconnect_reason?: string | null;
870
925
  /** @description Push-to-deploy trigger. Absent/null = 'workflow' (committed GitHub Action); 'webhook' = the push webhook creates deployments server-side (deploy v4). */
871
926
  deploy_trigger?: string | null;
872
927
  /** @description Wait-for-CI gate for webhook triggers. Absent/null = deploy on push; 'ci' = deploy only after the commit's check suites complete green. */
@@ -985,16 +1040,24 @@ export interface components {
985
1040
  format: "tar.zst";
986
1041
  runtime: {
987
1042
  /** @enum {unknown} */
988
- name: "node" | "python" | "static";
1043
+ name: "node" | "python" | "php" | "static";
989
1044
  version?: string | null;
990
1045
  };
991
1046
  /** @enum {unknown} */
992
- profile: "node-full" | "next-standalone" | "static" | "python-venv";
1047
+ profile: "node-full" | "next-standalone" | "static" | "python-venv" | "php";
993
1048
  start_command?: string | null;
994
1049
  static?: {
995
1050
  spa: boolean;
996
1051
  };
997
1052
  };
1053
+ DeploymentDetected: {
1054
+ buildpack: string;
1055
+ framework?: string;
1056
+ runtime: {
1057
+ name: string;
1058
+ version?: string;
1059
+ };
1060
+ };
998
1061
  /** @description Deployment */
999
1062
  Deployment: {
1000
1063
  /** @description Deployment ID */
@@ -1014,6 +1077,7 @@ export interface components {
1014
1077
  /** Format: date-time */
1015
1078
  quota_released_at?: string;
1016
1079
  trigger?: string | null;
1080
+ detected?: components["schemas"]["DeploymentDetected"];
1017
1081
  status: components["schemas"]["DeploymentStatus"];
1018
1082
  /** @default {} */
1019
1083
  metadata: {
@@ -1063,6 +1127,7 @@ export interface components {
1063
1127
  image?: string;
1064
1128
  artifact?: components["schemas"]["DeploymentArtifact"];
1065
1129
  type?: string;
1130
+ detected?: components["schemas"]["DeploymentDetected"];
1066
1131
  };
1067
1132
  DomainStatus: {
1068
1133
  /**
@@ -1177,7 +1242,8 @@ export interface components {
1177
1242
  */
1178
1243
  app_id: string | null;
1179
1244
  source: "builtin" | "manual" | "auto";
1180
- action: "deny" | "ratelimit";
1245
+ action: "deny" | "ratelimit" | "probe";
1246
+ match: "path" | "user_agent";
1181
1247
  apply: "all" | "node" | "php" | "manual";
1182
1248
  rules: {
1183
1249
  /** @description RE2 path-regex fragment */
@@ -1231,7 +1297,8 @@ export interface components {
1231
1297
  /** @description Owning App */
1232
1298
  app_id?: string;
1233
1299
  source?: "builtin" | "manual" | "auto";
1234
- action?: "deny" | "ratelimit";
1300
+ action?: "deny" | "ratelimit" | "probe";
1301
+ match?: "path" | "user_agent";
1235
1302
  apply?: "all" | "node" | "php" | "manual";
1236
1303
  rules?: {
1237
1304
  /** @description RE2 path-regex fragment */
@@ -1246,7 +1313,8 @@ export interface components {
1246
1313
  };
1247
1314
  WafProfileUpdate: {
1248
1315
  name?: string;
1249
- action?: "deny" | "ratelimit";
1316
+ action?: "deny" | "ratelimit" | "probe";
1317
+ match?: "path" | "user_agent";
1250
1318
  apply?: "all" | "node" | "php" | "manual";
1251
1319
  rules?: {
1252
1320
  /** @description RE2 path-regex fragment */
@@ -1578,6 +1646,29 @@ export interface operations {
1578
1646
  "application/json": components["schemas"]["ProjectInvite"];
1579
1647
  };
1580
1648
  };
1649
+ responses: {
1650
+ /** @description Default Response */
1651
+ 200: {
1652
+ headers: {
1653
+ [name: string]: unknown;
1654
+ };
1655
+ content: {
1656
+ "application/json": components["schemas"]["ProjectInviteResult"];
1657
+ };
1658
+ };
1659
+ };
1660
+ };
1661
+ "project/removeCollaborator": {
1662
+ parameters: {
1663
+ query?: never;
1664
+ header?: never;
1665
+ path: {
1666
+ id: string;
1667
+ user_id: string;
1668
+ };
1669
+ cookie?: never;
1670
+ };
1671
+ requestBody?: never;
1581
1672
  responses: {
1582
1673
  /** @description Project */
1583
1674
  200: {
@@ -1656,6 +1747,8 @@ export interface operations {
1656
1747
  team: string;
1657
1748
  user_id?: string;
1658
1749
  collaborators: string[];
1750
+ owner_suspended?: boolean;
1751
+ owner_email?: string;
1659
1752
  /** @description Project creation date */
1660
1753
  createdAt: string;
1661
1754
  /** @description Project updated date */
@@ -1691,6 +1784,8 @@ export interface operations {
1691
1784
  team: string;
1692
1785
  user_id?: string;
1693
1786
  collaborators: string[];
1787
+ owner_suspended?: boolean;
1788
+ owner_email?: string;
1694
1789
  /** @description Project creation date */
1695
1790
  createdAt: string;
1696
1791
  /** @description Project updated date */
@@ -1714,7 +1809,6 @@ export interface operations {
1714
1809
  "application/json": {
1715
1810
  name?: string;
1716
1811
  description?: string;
1717
- collaborators?: string[];
1718
1812
  };
1719
1813
  };
1720
1814
  };
@@ -1734,6 +1828,8 @@ export interface operations {
1734
1828
  team: string;
1735
1829
  user_id?: string;
1736
1830
  collaborators: string[];
1831
+ owner_suspended?: boolean;
1832
+ owner_email?: string;
1737
1833
  /** @description Project creation date */
1738
1834
  createdAt: string;
1739
1835
  /** @description Project updated date */
@@ -1769,6 +1865,8 @@ export interface operations {
1769
1865
  team: string;
1770
1866
  user_id?: string;
1771
1867
  collaborators: string[];
1868
+ owner_suspended?: boolean;
1869
+ owner_email?: string;
1772
1870
  /** @description Project creation date */
1773
1871
  createdAt: string;
1774
1872
  /** @description Project updated date */
@@ -1848,6 +1946,14 @@ export interface operations {
1848
1946
  disabled_reason?: string | null;
1849
1947
  runtime: components["schemas"]["AppRuntime"];
1850
1948
  runtime_strategy: string | null;
1949
+ detected?: {
1950
+ buildpack: string;
1951
+ framework?: string;
1952
+ runtime: {
1953
+ name: string;
1954
+ version?: string;
1955
+ };
1956
+ } | null;
1851
1957
  mode: components["schemas"]["AppMode"];
1852
1958
  build_mode?: ("local" | "remote") | null;
1853
1959
  deploy_output?: ("image" | "artifact") | null;
@@ -1871,6 +1977,10 @@ export interface operations {
1871
1977
  github_installation_id?: string;
1872
1978
  /** @description Platform GitHub access health, maintained by installation lifecycle webhooks. Absent/null = ok; 'deleted' | 'suspended' | 'repo_removed' = access broken until re-linked. */
1873
1979
  github_installation_state?: string | null;
1980
+ /** @description The linked repository stopped being readable after the app was created, per the GitHub `repository` webhook. Absent/null = visible; 'deleted' | 'privatized' | 'archived' = the source was pulled after deploying (the analyzer re-scores the promoted deployment against our own build artifact). */
1981
+ github_repo_hidden?: string | null;
1982
+ /** @description Why the platform cleared the repository link automatically. Absent/null = never auto-disconnected (or re-linked since); 'push_flood' = the repo exceeded the hourly push limit and must be re-linked by the user. */
1983
+ github_disconnect_reason?: string | null;
1874
1984
  /** @description Push-to-deploy trigger. Absent/null = 'workflow' (committed GitHub Action); 'webhook' = the push webhook creates deployments server-side (deploy v4). */
1875
1985
  deploy_trigger?: string | null;
1876
1986
  /** @description Wait-for-CI gate for webhook triggers. Absent/null = deploy on push; 'ci' = deploy only after the commit's check suites complete green. */
@@ -1921,6 +2031,14 @@ export interface operations {
1921
2031
  disabled_reason?: string | null;
1922
2032
  runtime: components["schemas"]["AppRuntime"];
1923
2033
  runtime_strategy: string | null;
2034
+ detected?: {
2035
+ buildpack: string;
2036
+ framework?: string;
2037
+ runtime: {
2038
+ name: string;
2039
+ version?: string;
2040
+ };
2041
+ } | null;
1924
2042
  mode: components["schemas"]["AppMode"];
1925
2043
  build_mode?: ("local" | "remote") | null;
1926
2044
  deploy_output?: ("image" | "artifact") | null;
@@ -1944,6 +2062,10 @@ export interface operations {
1944
2062
  github_installation_id?: string;
1945
2063
  /** @description Platform GitHub access health, maintained by installation lifecycle webhooks. Absent/null = ok; 'deleted' | 'suspended' | 'repo_removed' = access broken until re-linked. */
1946
2064
  github_installation_state?: string | null;
2065
+ /** @description The linked repository stopped being readable after the app was created, per the GitHub `repository` webhook. Absent/null = visible; 'deleted' | 'privatized' | 'archived' = the source was pulled after deploying (the analyzer re-scores the promoted deployment against our own build artifact). */
2066
+ github_repo_hidden?: string | null;
2067
+ /** @description Why the platform cleared the repository link automatically. Absent/null = never auto-disconnected (or re-linked since); 'push_flood' = the repo exceeded the hourly push limit and must be re-linked by the user. */
2068
+ github_disconnect_reason?: string | null;
1947
2069
  /** @description Push-to-deploy trigger. Absent/null = 'workflow' (committed GitHub Action); 'webhook' = the push webhook creates deployments server-side (deploy v4). */
1948
2070
  deploy_trigger?: string | null;
1949
2071
  /** @description Wait-for-CI gate for webhook triggers. Absent/null = deploy on push; 'ci' = deploy only after the commit's check suites complete green. */
@@ -2002,6 +2124,14 @@ export interface operations {
2002
2124
  disabled_reason?: string | null;
2003
2125
  runtime: components["schemas"]["AppRuntime"];
2004
2126
  runtime_strategy: string | null;
2127
+ detected?: {
2128
+ buildpack: string;
2129
+ framework?: string;
2130
+ runtime: {
2131
+ name: string;
2132
+ version?: string;
2133
+ };
2134
+ } | null;
2005
2135
  mode: components["schemas"]["AppMode"];
2006
2136
  build_mode?: ("local" | "remote") | null;
2007
2137
  deploy_output?: ("image" | "artifact") | null;
@@ -2025,6 +2155,10 @@ export interface operations {
2025
2155
  github_installation_id?: string;
2026
2156
  /** @description Platform GitHub access health, maintained by installation lifecycle webhooks. Absent/null = ok; 'deleted' | 'suspended' | 'repo_removed' = access broken until re-linked. */
2027
2157
  github_installation_state?: string | null;
2158
+ /** @description The linked repository stopped being readable after the app was created, per the GitHub `repository` webhook. Absent/null = visible; 'deleted' | 'privatized' | 'archived' = the source was pulled after deploying (the analyzer re-scores the promoted deployment against our own build artifact). */
2159
+ github_repo_hidden?: string | null;
2160
+ /** @description Why the platform cleared the repository link automatically. Absent/null = never auto-disconnected (or re-linked since); 'push_flood' = the repo exceeded the hourly push limit and must be re-linked by the user. */
2161
+ github_disconnect_reason?: string | null;
2028
2162
  /** @description Push-to-deploy trigger. Absent/null = 'workflow' (committed GitHub Action); 'webhook' = the push webhook creates deployments server-side (deploy v4). */
2029
2163
  deploy_trigger?: string | null;
2030
2164
  /** @description Wait-for-CI gate for webhook triggers. Absent/null = deploy on push; 'ci' = deploy only after the commit's check suites complete green. */
@@ -2072,6 +2206,14 @@ export interface operations {
2072
2206
  disabled_reason?: string | null;
2073
2207
  runtime: components["schemas"]["AppRuntime"];
2074
2208
  runtime_strategy: string | null;
2209
+ detected?: {
2210
+ buildpack: string;
2211
+ framework?: string;
2212
+ runtime: {
2213
+ name: string;
2214
+ version?: string;
2215
+ };
2216
+ } | null;
2075
2217
  mode: components["schemas"]["AppMode"];
2076
2218
  build_mode?: ("local" | "remote") | null;
2077
2219
  deploy_output?: ("image" | "artifact") | null;
@@ -2095,6 +2237,10 @@ export interface operations {
2095
2237
  github_installation_id?: string;
2096
2238
  /** @description Platform GitHub access health, maintained by installation lifecycle webhooks. Absent/null = ok; 'deleted' | 'suspended' | 'repo_removed' = access broken until re-linked. */
2097
2239
  github_installation_state?: string | null;
2240
+ /** @description The linked repository stopped being readable after the app was created, per the GitHub `repository` webhook. Absent/null = visible; 'deleted' | 'privatized' | 'archived' = the source was pulled after deploying (the analyzer re-scores the promoted deployment against our own build artifact). */
2241
+ github_repo_hidden?: string | null;
2242
+ /** @description Why the platform cleared the repository link automatically. Absent/null = never auto-disconnected (or re-linked since); 'push_flood' = the repo exceeded the hourly push limit and must be re-linked by the user. */
2243
+ github_disconnect_reason?: string | null;
2098
2244
  /** @description Push-to-deploy trigger. Absent/null = 'workflow' (committed GitHub Action); 'webhook' = the push webhook creates deployments server-side (deploy v4). */
2099
2245
  deploy_trigger?: string | null;
2100
2246
  /** @description Wait-for-CI gate for webhook triggers. Absent/null = deploy on push; 'ci' = deploy only after the commit's check suites complete green. */
@@ -2588,6 +2734,7 @@ export interface operations {
2588
2734
  /** Format: date-time */
2589
2735
  quota_released_at?: string;
2590
2736
  trigger?: string | null;
2737
+ detected?: components["schemas"]["DeploymentDetected"];
2591
2738
  status: components["schemas"]["DeploymentStatus"];
2592
2739
  /** @default {} */
2593
2740
  metadata: {
@@ -2637,6 +2784,7 @@ export interface operations {
2637
2784
  /** Format: date-time */
2638
2785
  quota_released_at?: string;
2639
2786
  trigger?: string | null;
2787
+ detected?: components["schemas"]["DeploymentDetected"];
2640
2788
  status: components["schemas"]["DeploymentStatus"];
2641
2789
  /** @default {} */
2642
2790
  metadata: {
@@ -2666,6 +2814,7 @@ export interface operations {
2666
2814
  image?: string;
2667
2815
  artifact?: components["schemas"]["DeploymentArtifact"];
2668
2816
  type?: string;
2817
+ detected?: components["schemas"]["DeploymentDetected"];
2669
2818
  };
2670
2819
  };
2671
2820
  };
@@ -2694,6 +2843,7 @@ export interface operations {
2694
2843
  /** Format: date-time */
2695
2844
  quota_released_at?: string;
2696
2845
  trigger?: string | null;
2846
+ detected?: components["schemas"]["DeploymentDetected"];
2697
2847
  status: components["schemas"]["DeploymentStatus"];
2698
2848
  /** @default {} */
2699
2849
  metadata: {
@@ -2743,6 +2893,7 @@ export interface operations {
2743
2893
  /** Format: date-time */
2744
2894
  quota_released_at?: string;
2745
2895
  trigger?: string | null;
2896
+ detected?: components["schemas"]["DeploymentDetected"];
2746
2897
  status: components["schemas"]["DeploymentStatus"];
2747
2898
  /** @default {} */
2748
2899
  metadata: {