@faable/deploy-sdk 2.7.1 → 2.9.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.
@@ -267,30 +267,6 @@ export interface paths {
267
267
  patch?: never;
268
268
  trace?: never;
269
269
  };
270
- "/app/{id}/deploy-workflow": {
271
- parameters: {
272
- query?: never;
273
- header?: never;
274
- path?: never;
275
- cookie?: never;
276
- };
277
- /**
278
- * Get deploy workflow status
279
- * @description Check whether the app’s linked repository has a GitHub Actions workflow that deploys to Faable.
280
- */
281
- get: operations["app/get_deploy_workflow"];
282
- put?: never;
283
- /**
284
- * Set up deploy workflow
285
- * @description Commit the Faable deploy GitHub Actions workflow to the app’s linked repository (no-op if already present; upgrades an unmodified legacy workflow).
286
- */
287
- post: operations["app/setup_deploy_workflow"];
288
- delete?: never;
289
- options?: never;
290
- head?: never;
291
- patch?: never;
292
- trace?: never;
293
- };
294
270
  "/app/{id}/deploy-branch": {
295
271
  parameters: {
296
272
  query?: never;
@@ -302,7 +278,7 @@ export interface paths {
302
278
  put?: never;
303
279
  /**
304
280
  * Change the deploy branch
305
- * @description Change the branch the app deploys from. Also rewrites the committed deploy workflow to trigger on the new branch, unless the user has customized it.
281
+ * @description Change the branch the app deploys from. Apps deploying from their own GitHub Actions workflow must update the branch trigger in the workflow file themselves.
306
282
  */
307
283
  post: operations["app/set_deploy_branch"];
308
284
  delete?: never;
@@ -643,17 +619,6 @@ export interface components {
643
619
  deployment_previous: string | {
644
620
  [key: string]: unknown;
645
621
  } | null;
646
- /**
647
- * @description Observed state of the push-to-deploy workflow on the linked repository
648
- * @default null
649
- */
650
- deploy_workflow: {
651
- /** @description Whether a Faable deploy workflow exists on the repository */
652
- configured: boolean;
653
- path: string | null;
654
- verified_at: string | null;
655
- commit: string | null;
656
- } | null;
657
622
  /**
658
623
  * @description Last commited cache Purge
659
624
  * @default null
@@ -683,6 +648,8 @@ export interface components {
683
648
  /** @description GC-eligibility deadline for a coexisting version (demotion + drain window). Null on the promoted entry. */
684
649
  drain_until: string | null;
685
650
  }[] | null;
651
+ /** @description Scale-to-zero sub-state of the promoted deployment (admin-only) */
652
+ cold_state?: "asleep" | "waking" | null;
686
653
  /**
687
654
  * @description Opaque revision token; changes whenever the app secrets change
688
655
  * @default null
@@ -735,10 +702,18 @@ export interface components {
735
702
  * @enum {unknown}
736
703
  */
737
704
  region: "gui1" | "poz1" | "ams1";
705
+ /** @description Success deploy emails (first deploy + every promote). Absent/null = enabled; false = muted. Failure emails are never gated by this. */
706
+ notify_deploy_success?: boolean | null;
738
707
  status: components["schemas"]["AppStatus"];
739
708
  repository?: string;
740
709
  github_branch?: string;
741
710
  github_installation_id?: string;
711
+ /** @description Platform GitHub access health, maintained by installation lifecycle webhooks. Absent/null = ok; 'deleted' | 'suspended' | 'repo_removed' = access broken until re-linked. */
712
+ github_installation_state?: string | null;
713
+ /** @description Push-to-deploy trigger. Absent/null = 'workflow' (committed GitHub Action); 'webhook' = the push webhook creates deployments server-side (deploy v4). */
714
+ deploy_trigger?: string | null;
715
+ /** @description Wait-for-CI gate for webhook triggers. Absent/null = deploy on push; 'ci' = deploy only after the commit's check suites complete green. */
716
+ deploy_gate?: string | null;
742
717
  /** @default {} */
743
718
  metadata: {
744
719
  [key: string]: unknown;
@@ -783,16 +758,11 @@ export interface components {
783
758
  runtime?: components["schemas"]["AppRuntime"];
784
759
  runtime_strategy?: components["schemas"]["AppRuntimeStrategy"];
785
760
  instance_type?: string;
786
- };
787
- DeployWorkflowStatus: {
788
- configured: boolean;
789
- workflow_path?: string;
790
- updated?: boolean;
761
+ notify_deploy_success?: boolean | null;
791
762
  };
792
763
  DeployBranchResult: {
793
764
  github_branch: string;
794
765
  workflow_synced: boolean;
795
- workflow_path?: string;
796
766
  };
797
767
  DeploymentStatus: {
798
768
  /**
@@ -800,7 +770,7 @@ export interface components {
800
770
  * @default QUEUED
801
771
  * @enum {unknown}
802
772
  */
803
- phase: "UNKNOWN" | "QUEUED" | "BUILDING" | "ERROR" | "BUILD_ERROR" | "INITIALIZING" | "READY" | "CANCELED" | "TERMINATING";
773
+ phase: "UNKNOWN" | "QUEUED" | "BUILDING" | "ERROR" | "BUILD_ERROR" | "INITIALIZING" | "READY" | "CANCELED" | "TERMINATING" | "SUPERSEDED";
804
774
  /**
805
775
  * Format: date-time
806
776
  * @description When a controller took control of this deployment
@@ -810,16 +780,22 @@ export interface components {
810
780
  controlled_by?: string;
811
781
  /** @description Why the deployment failed (shown to the user on ERROR) */
812
782
  reason?: string;
783
+ /** @description Scale-to-zero sub-state (admin-only): asleep, waking or null */
784
+ cold_state?: "asleep" | "waking" | null;
813
785
  /** @description Digest-pinned runtime image stamped at first materialization (artifact deploys) */
814
786
  runtime_image?: string;
815
787
  };
816
788
  DeploymentSource: {
817
- manifest: {
789
+ manifest?: {
818
790
  path: string;
819
791
  sha: string;
820
792
  size: number;
821
793
  mode?: number;
822
794
  }[];
795
+ git?: {
796
+ sha: string;
797
+ ref?: string;
798
+ };
823
799
  plan?: {
824
800
  [key: string]: unknown;
825
801
  };
@@ -849,12 +825,16 @@ export interface components {
849
825
  team: string;
850
826
  app_id: string;
851
827
  image?: string;
828
+ release?: string;
852
829
  github_commit?: string;
853
830
  github_ref?: string;
854
831
  github_actor?: string;
855
832
  github_commit_message?: string;
856
- source?: components["schemas"]["DeploymentSource"];
857
- artifact?: components["schemas"]["DeploymentArtifact"];
833
+ artifact_id?: string;
834
+ /** Format: date-time */
835
+ artifact_ready_at?: string;
836
+ redeploy_of?: string;
837
+ trigger?: string | null;
858
838
  status: components["schemas"]["DeploymentStatus"];
859
839
  /** @default {} */
860
840
  metadata: {
@@ -892,6 +872,7 @@ export interface components {
892
872
  DeploymentCreate: {
893
873
  app_id: string;
894
874
  image?: string;
875
+ release?: string;
895
876
  github_commit?: string;
896
877
  github_ref?: string;
897
878
  github_actor?: string;
@@ -1690,10 +1671,18 @@ export interface operations {
1690
1671
  * @enum {unknown}
1691
1672
  */
1692
1673
  region: "gui1" | "poz1" | "ams1";
1674
+ /** @description Success deploy emails (first deploy + every promote). Absent/null = enabled; false = muted. Failure emails are never gated by this. */
1675
+ notify_deploy_success?: boolean | null;
1693
1676
  status: components["schemas"]["AppStatus"];
1694
1677
  repository?: string;
1695
1678
  github_branch?: string;
1696
1679
  github_installation_id?: string;
1680
+ /** @description Platform GitHub access health, maintained by installation lifecycle webhooks. Absent/null = ok; 'deleted' | 'suspended' | 'repo_removed' = access broken until re-linked. */
1681
+ github_installation_state?: string | null;
1682
+ /** @description Push-to-deploy trigger. Absent/null = 'workflow' (committed GitHub Action); 'webhook' = the push webhook creates deployments server-side (deploy v4). */
1683
+ deploy_trigger?: string | null;
1684
+ /** @description Wait-for-CI gate for webhook triggers. Absent/null = deploy on push; 'ci' = deploy only after the commit's check suites complete green. */
1685
+ deploy_gate?: string | null;
1697
1686
  /** @default {} */
1698
1687
  metadata: {
1699
1688
  [key: string]: unknown;
@@ -1755,10 +1744,18 @@ export interface operations {
1755
1744
  * @enum {unknown}
1756
1745
  */
1757
1746
  region: "gui1" | "poz1" | "ams1";
1747
+ /** @description Success deploy emails (first deploy + every promote). Absent/null = enabled; false = muted. Failure emails are never gated by this. */
1748
+ notify_deploy_success?: boolean | null;
1758
1749
  status: components["schemas"]["AppStatus"];
1759
1750
  repository?: string;
1760
1751
  github_branch?: string;
1761
1752
  github_installation_id?: string;
1753
+ /** @description Platform GitHub access health, maintained by installation lifecycle webhooks. Absent/null = ok; 'deleted' | 'suspended' | 'repo_removed' = access broken until re-linked. */
1754
+ github_installation_state?: string | null;
1755
+ /** @description Push-to-deploy trigger. Absent/null = 'workflow' (committed GitHub Action); 'webhook' = the push webhook creates deployments server-side (deploy v4). */
1756
+ deploy_trigger?: string | null;
1757
+ /** @description Wait-for-CI gate for webhook triggers. Absent/null = deploy on push; 'ci' = deploy only after the commit's check suites complete green. */
1758
+ deploy_gate?: string | null;
1762
1759
  /** @default {} */
1763
1760
  metadata: {
1764
1761
  [key: string]: unknown;
@@ -1789,6 +1786,7 @@ export interface operations {
1789
1786
  runtime?: components["schemas"]["AppRuntime"];
1790
1787
  runtime_strategy?: components["schemas"]["AppRuntimeStrategy"];
1791
1788
  instance_type?: string;
1789
+ notify_deploy_success?: boolean | null;
1792
1790
  };
1793
1791
  };
1794
1792
  };
@@ -1827,10 +1825,18 @@ export interface operations {
1827
1825
  * @enum {unknown}
1828
1826
  */
1829
1827
  region: "gui1" | "poz1" | "ams1";
1828
+ /** @description Success deploy emails (first deploy + every promote). Absent/null = enabled; false = muted. Failure emails are never gated by this. */
1829
+ notify_deploy_success?: boolean | null;
1830
1830
  status: components["schemas"]["AppStatus"];
1831
1831
  repository?: string;
1832
1832
  github_branch?: string;
1833
1833
  github_installation_id?: string;
1834
+ /** @description Platform GitHub access health, maintained by installation lifecycle webhooks. Absent/null = ok; 'deleted' | 'suspended' | 'repo_removed' = access broken until re-linked. */
1835
+ github_installation_state?: string | null;
1836
+ /** @description Push-to-deploy trigger. Absent/null = 'workflow' (committed GitHub Action); 'webhook' = the push webhook creates deployments server-side (deploy v4). */
1837
+ deploy_trigger?: string | null;
1838
+ /** @description Wait-for-CI gate for webhook triggers. Absent/null = deploy on push; 'ci' = deploy only after the commit's check suites complete green. */
1839
+ deploy_gate?: string | null;
1834
1840
  /** @default {} */
1835
1841
  metadata: {
1836
1842
  [key: string]: unknown;
@@ -1889,10 +1895,18 @@ export interface operations {
1889
1895
  * @enum {unknown}
1890
1896
  */
1891
1897
  region: "gui1" | "poz1" | "ams1";
1898
+ /** @description Success deploy emails (first deploy + every promote). Absent/null = enabled; false = muted. Failure emails are never gated by this. */
1899
+ notify_deploy_success?: boolean | null;
1892
1900
  status: components["schemas"]["AppStatus"];
1893
1901
  repository?: string;
1894
1902
  github_branch?: string;
1895
1903
  github_installation_id?: string;
1904
+ /** @description Platform GitHub access health, maintained by installation lifecycle webhooks. Absent/null = ok; 'deleted' | 'suspended' | 'repo_removed' = access broken until re-linked. */
1905
+ github_installation_state?: string | null;
1906
+ /** @description Push-to-deploy trigger. Absent/null = 'workflow' (committed GitHub Action); 'webhook' = the push webhook creates deployments server-side (deploy v4). */
1907
+ deploy_trigger?: string | null;
1908
+ /** @description Wait-for-CI gate for webhook triggers. Absent/null = deploy on push; 'ci' = deploy only after the commit's check suites complete green. */
1909
+ deploy_gate?: string | null;
1896
1910
  /** @default {} */
1897
1911
  metadata: {
1898
1912
  [key: string]: unknown;
@@ -2140,58 +2154,6 @@ export interface operations {
2140
2154
  };
2141
2155
  };
2142
2156
  };
2143
- "app/get_deploy_workflow": {
2144
- parameters: {
2145
- query?: never;
2146
- header?: never;
2147
- path: {
2148
- id: string;
2149
- };
2150
- cookie?: never;
2151
- };
2152
- requestBody?: never;
2153
- responses: {
2154
- /** @description Default Response */
2155
- 200: {
2156
- headers: {
2157
- [name: string]: unknown;
2158
- };
2159
- content: {
2160
- "application/json": {
2161
- configured: boolean;
2162
- workflow_path?: string;
2163
- updated?: boolean;
2164
- };
2165
- };
2166
- };
2167
- };
2168
- };
2169
- "app/setup_deploy_workflow": {
2170
- parameters: {
2171
- query?: never;
2172
- header?: never;
2173
- path: {
2174
- id: string;
2175
- };
2176
- cookie?: never;
2177
- };
2178
- requestBody?: never;
2179
- responses: {
2180
- /** @description Default Response */
2181
- 200: {
2182
- headers: {
2183
- [name: string]: unknown;
2184
- };
2185
- content: {
2186
- "application/json": {
2187
- configured: boolean;
2188
- workflow_path?: string;
2189
- updated?: boolean;
2190
- };
2191
- };
2192
- };
2193
- };
2194
- };
2195
2157
  "app/set_deploy_branch": {
2196
2158
  parameters: {
2197
2159
  query?: never;
@@ -2218,7 +2180,6 @@ export interface operations {
2218
2180
  "application/json": {
2219
2181
  github_branch: string;
2220
2182
  workflow_synced: boolean;
2221
- workflow_path?: string;
2222
2183
  };
2223
2184
  };
2224
2185
  };
@@ -2268,6 +2229,7 @@ export interface operations {
2268
2229
  "application/json": {
2269
2230
  app_id: string;
2270
2231
  image?: string;
2232
+ release?: string;
2271
2233
  github_commit?: string;
2272
2234
  github_ref?: string;
2273
2235
  github_actor?: string;
@@ -2290,12 +2252,16 @@ export interface operations {
2290
2252
  team: string;
2291
2253
  app_id: string;
2292
2254
  image?: string;
2255
+ release?: string;
2293
2256
  github_commit?: string;
2294
2257
  github_ref?: string;
2295
2258
  github_actor?: string;
2296
2259
  github_commit_message?: string;
2297
- source?: components["schemas"]["DeploymentSource"];
2298
- artifact?: components["schemas"]["DeploymentArtifact"];
2260
+ artifact_id?: string;
2261
+ /** Format: date-time */
2262
+ artifact_ready_at?: string;
2263
+ redeploy_of?: string;
2264
+ trigger?: string | null;
2299
2265
  status: components["schemas"]["DeploymentStatus"];
2300
2266
  /** @default {} */
2301
2267
  metadata: {
@@ -2333,12 +2299,16 @@ export interface operations {
2333
2299
  team: string;
2334
2300
  app_id: string;
2335
2301
  image?: string;
2302
+ release?: string;
2336
2303
  github_commit?: string;
2337
2304
  github_ref?: string;
2338
2305
  github_actor?: string;
2339
2306
  github_commit_message?: string;
2340
- source?: components["schemas"]["DeploymentSource"];
2341
- artifact?: components["schemas"]["DeploymentArtifact"];
2307
+ artifact_id?: string;
2308
+ /** Format: date-time */
2309
+ artifact_ready_at?: string;
2310
+ redeploy_of?: string;
2311
+ trigger?: string | null;
2342
2312
  status: components["schemas"]["DeploymentStatus"];
2343
2313
  /** @default {} */
2344
2314
  metadata: {
@@ -2384,12 +2354,16 @@ export interface operations {
2384
2354
  team: string;
2385
2355
  app_id: string;
2386
2356
  image?: string;
2357
+ release?: string;
2387
2358
  github_commit?: string;
2388
2359
  github_ref?: string;
2389
2360
  github_actor?: string;
2390
2361
  github_commit_message?: string;
2391
- source?: components["schemas"]["DeploymentSource"];
2392
- artifact?: components["schemas"]["DeploymentArtifact"];
2362
+ artifact_id?: string;
2363
+ /** Format: date-time */
2364
+ artifact_ready_at?: string;
2365
+ redeploy_of?: string;
2366
+ trigger?: string | null;
2393
2367
  status: components["schemas"]["DeploymentStatus"];
2394
2368
  /** @default {} */
2395
2369
  metadata: {
@@ -2427,12 +2401,16 @@ export interface operations {
2427
2401
  team: string;
2428
2402
  app_id: string;
2429
2403
  image?: string;
2404
+ release?: string;
2430
2405
  github_commit?: string;
2431
2406
  github_ref?: string;
2432
2407
  github_actor?: string;
2433
2408
  github_commit_message?: string;
2434
- source?: components["schemas"]["DeploymentSource"];
2435
- artifact?: components["schemas"]["DeploymentArtifact"];
2409
+ artifact_id?: string;
2410
+ /** Format: date-time */
2411
+ artifact_ready_at?: string;
2412
+ redeploy_of?: string;
2413
+ trigger?: string | null;
2436
2414
  status: components["schemas"]["DeploymentStatus"];
2437
2415
  /** @default {} */
2438
2416
  metadata: {