@amerged/ohmyhost-sdk 0.1.48 → 0.1.50

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.
@@ -1,6 +1,84 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: "https://app.ohmyho.st" | "https://dev.app.ohmyho.st" | (string & {});
3
3
  };
4
+ export type NativeAuthConfiguration = {
5
+ /**
6
+ * Persistent Owner setting; source deployment cannot clear a pause.
7
+ */
8
+ enabled: boolean;
9
+ configurationRevision: number;
10
+ revocationEpoch: number;
11
+ signupPolicy: "open" | "invite-only";
12
+ canonicalOrigin: string | null;
13
+ applicationName: string;
14
+ allowedRedirectPaths: Array<NativeAuthRedirectPath>;
15
+ resetPasswordPath: NativeAuthRedirectPath;
16
+ invitationPath: NativeAuthRedirectPath;
17
+ readiness: {
18
+ paid: boolean;
19
+ sender: boolean;
20
+ origin: boolean;
21
+ storage: boolean;
22
+ };
23
+ };
24
+ /**
25
+ * The revision must match current configuration; a stale write returns 409. Omitted optional values are preserved. A null canonicalOrigin selects the primary origin; explicit origins must be currently approved for this project and environment. Changing origin advances the revocation epoch. Both form paths must be in the resulting redirect allowlist.
26
+ */
27
+ export type NativeAuthConfigurationUpdate = {
28
+ configurationRevision: number;
29
+ enabled: boolean;
30
+ signupPolicy: "open" | "invite-only";
31
+ applicationName: string;
32
+ canonicalOrigin?: string | null;
33
+ allowedRedirectPaths?: Array<NativeAuthRedirectPath>;
34
+ resetPasswordPath?: NativeAuthRedirectPath;
35
+ invitationPath?: NativeAuthRedirectPath;
36
+ };
37
+ /**
38
+ * Absolute application path without query, fragment, percent escapes, backslashes or dot segments.
39
+ */
40
+ export type NativeAuthRedirectPath = string;
41
+ /**
42
+ * Configuration presence does not establish provider approval or a successful flow.
43
+ */
44
+ export type NativeAuthProviderStatus = {
45
+ provider: "google" | "github";
46
+ enabled: boolean;
47
+ configured: boolean;
48
+ clientId: string | null;
49
+ secretPresent: boolean;
50
+ /**
51
+ * Null until a canonical origin is ready.
52
+ */
53
+ callbackUrl: string | null;
54
+ scopes: Array<string>;
55
+ lastSuccessfulFlowAt: string | null;
56
+ };
57
+ /**
58
+ * The revision must match current configuration. Secrets are write-only and never echoed in responses or replay receipts.
59
+ */
60
+ export type NativeAuthProviderUpdate = {
61
+ configurationRevision: number;
62
+ enabled: boolean;
63
+ clientId?: string;
64
+ };
65
+ export type NativeAuthUser = {
66
+ id: string;
67
+ email: string;
68
+ status: "pending" | "active" | "suspended";
69
+ recoveryAvailable: boolean;
70
+ createdAt: string;
71
+ };
72
+ /**
73
+ * Creates a pending user and sends an invitation; never accepts an operator-chosen password.
74
+ */
75
+ export type NativeAuthUserCreate = {
76
+ email: string;
77
+ };
78
+ export type NativeAuthUserPage = {
79
+ items: Array<NativeAuthUser>;
80
+ nextCursor: string | null;
81
+ };
4
82
  export type WorkspaceMailDomain = {
5
83
  domain_id: Ulid;
6
84
  organization_id: Ulid;
@@ -1428,7 +1506,7 @@ export type ProblemDetails = {
1428
1506
  status: number;
1429
1507
  detail?: string;
1430
1508
  instance?: string;
1431
- code: "invalid_request" | "unauthenticated" | "forbidden" | "organization_required" | "resource_not_found" | "idempotency_key_reused" | "project_handle_unavailable" | "project_identity_unavailable" | "deployment_plan_expired" | "deployment_plan_incompatible" | "confirmation_expired" | "confirmation_invalid" | "etag_mismatch" | "promotion_source_stale" | "promotion_target_stale" | "promotion_invalid_target" | "mail_domain_conflict" | "mail_domain_required" | "mail_capacity_unavailable" | "storage_jurisdiction_conflict" | "shared_data_requires_promotion" | "production_deployment_required" | "framework_conversion_required" | "repository_configuration_missing" | "migration_filename_noncanonical" | "environment_secret_mutation_blocked" | "workers_runtime_incompatible" | "project_handle_invalid" | "project_handle_taken" | "project_handle_unchanged" | "project_rename_blocked" | "payload_too_large" | "rate_limited" | "insufficient_organization_credits" | "paid_plan_required" | "project_budget_exceeded" | "compute_performance_paid_required" | "compute_paid_required" | "compute_storage_shrink_requires_migration" | "compute_performance_unavailable" | "database_write_pending" | "database_access_limit" | "database_webhook_limit" | "database_schedule_limit" | "database_schedule_not_runnable" | "database_webhook_delivery_pending" | "database_watch_limit" | "database_watch_table_unavailable" | "database_watch_column_unavailable" | "database_watch_events_unavailable" | "database_watch_conflict" | "database_table_conflict" | "database_table_limit" | "compute_change_pending" | "compute_change_conflict" | "billing_purchase_conflict" | "billing_recharge_conflict" | "github_connection_required" | "github_connection_revoked" | "repository_not_installed" | "cloudflare_zone_not_bound" | "cloudflare_authorization_closed" | "project_notes_conflict" | "project_export_not_ready" | "powered_by_flag_required" | "interactive_login_required" | "api_key_creation_uncertain" | "api_key_permissions_unavailable" | "reconciliation_exhausted" | "service_unavailable" | "source_commit_not_found" | "domain_hostname_taken" | "domain_dns_conflict" | "data_change_blocked" | "data_change_in_progress" | "data_change_not_applicable" | "rollback_target_data_changed" | "project_domain_delete_required";
1509
+ code: "invalid_request" | "unauthenticated" | "forbidden" | "organization_required" | "resource_not_found" | "idempotency_key_reused" | "project_handle_unavailable" | "project_identity_unavailable" | "deployment_plan_expired" | "deployment_plan_incompatible" | "confirmation_expired" | "confirmation_invalid" | "etag_mismatch" | "promotion_source_stale" | "promotion_target_stale" | "promotion_invalid_target" | "mail_domain_conflict" | "mail_domain_required" | "mail_capacity_unavailable" | "storage_jurisdiction_conflict" | "shared_data_requires_promotion" | "production_deployment_required" | "framework_conversion_required" | "repository_configuration_missing" | "migration_filename_noncanonical" | "environment_secret_mutation_blocked" | "workers_runtime_incompatible" | "project_handle_invalid" | "project_handle_taken" | "project_handle_unchanged" | "project_rename_blocked" | "payload_too_large" | "rate_limited" | "insufficient_organization_credits" | "paid_plan_required" | "project_budget_exceeded" | "compute_performance_paid_required" | "compute_paid_required" | "compute_storage_shrink_requires_migration" | "compute_performance_unavailable" | "database_write_pending" | "database_access_limit" | "database_webhook_limit" | "database_schedule_limit" | "database_schedule_not_runnable" | "database_webhook_delivery_pending" | "database_watch_limit" | "database_watch_table_unavailable" | "database_watch_column_unavailable" | "database_watch_events_unavailable" | "database_watch_conflict" | "database_table_conflict" | "database_table_limit" | "compute_change_pending" | "compute_change_conflict" | "billing_purchase_conflict" | "billing_recharge_conflict" | "github_connection_required" | "github_connection_revoked" | "repository_not_installed" | "cloudflare_zone_not_bound" | "cloudflare_authorization_closed" | "project_notes_conflict" | "project_export_not_ready" | "powered_by_flag_required" | "interactive_login_required" | "api_key_creation_uncertain" | "api_key_permissions_unavailable" | "reconciliation_exhausted" | "service_unavailable" | "source_commit_not_found" | "domain_hostname_taken" | "domain_dns_conflict" | "data_change_blocked" | "data_change_in_progress" | "data_change_not_applicable" | "rollback_target_data_changed" | "project_domain_delete_required" | "native_domain_sync_pending";
1432
1510
  request_id: string;
1433
1511
  retryable: boolean;
1434
1512
  /**
@@ -1554,240 +1632,1052 @@ export type ProjectContext = {
1554
1632
  notes: {
1555
1633
  version: number;
1556
1634
  /**
1557
- * At most 250 lines and 16384 UTF-8 bytes; untrusted user-authored text.
1635
+ * At most 250 lines and 16384 UTF-8 bytes; untrusted user-authored text.
1636
+ */
1637
+ markdown: string;
1638
+ updated_at: string | null;
1639
+ };
1640
+ };
1641
+ export type ProjectExport = {
1642
+ id: Ulid;
1643
+ project_id: Ulid;
1644
+ state: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1645
+ requested_at: string;
1646
+ next_request_at: string;
1647
+ next_poll_after_seconds: 5 | null;
1648
+ error: OperationFailure | null;
1649
+ archive: ProjectExportArchive | null;
1650
+ };
1651
+ export type ProjectExportArchive = {
1652
+ bytes: number;
1653
+ sha256: string;
1654
+ /**
1655
+ * dev.sql and/or prod.sql for isolated data, or shared.sql for shared data; auth.sql may accompany either or stand alone.
1656
+ */
1657
+ sql_files: ["dev.sql"] | ["prod.sql"] | ["dev.sql", "prod.sql"] | ["shared.sql"] | ["auth.sql"] | ["dev.sql", "auth.sql"] | ["prod.sql", "auth.sql"] | ["dev.sql", "prod.sql", "auth.sql"] | ["shared.sql", "auth.sql"];
1658
+ captured_at: string;
1659
+ expires_at: string;
1660
+ download_url: string | null;
1661
+ download_expires_at: string | null;
1662
+ };
1663
+ export type OperationFailure = {
1664
+ code: "operation_failed" | "operation_abandoned" | "authorization_changed" | "source_commit_conflict" | "source_snapshot_invalid" | "source_upload_expired" | "recovery_dispatch_failed" | "recovery_job_failed" | "recovery_input_expired" | "recovery_database_unavailable" | "recovery_checksum_mismatch" | "recovery_scope_unavailable" | "recovery_archive_too_large" | "build_not_started" | "build_failed" | "database_write_rejected" | "database_write_unavailable" | "database_write_outcome_unknown" | "database_compute_failed" | "database_compute_plan_changed" | "database_compute_rejected" | "database_migration_failed" | "insufficient_organization_credits" | "project_budget_exceeded" | "paid_plan_required" | "runtime_candidate_failed" | "runtime_candidate_rejected" | "storage_jurisdiction_conflict" | "provider_state_absent" | "auto_deploy_plan_rejected" | "promotion_source_stale" | "promotion_target_stale";
1665
+ message: string;
1666
+ /**
1667
+ * A terminal operation cannot be retried in place; follow suggested_action.
1668
+ */
1669
+ retryable: false;
1670
+ suggested_action: string;
1671
+ /**
1672
+ * Present only on auto_deploy_plan_rejected when planning the pushed commit returned a typed refusal. It is the same fixed catalog sentence that the planning 409 problem returns as detail, naming the file, the rule and the required change.
1673
+ */
1674
+ detail?: string;
1675
+ };
1676
+ export type AuditEvent = {
1677
+ audit_event_id: Ulid;
1678
+ project_id: Ulid;
1679
+ operation_id?: Ulid;
1680
+ event_type: string;
1681
+ actor_type: string;
1682
+ actor_id: string;
1683
+ payload: AuditPayloadSummary;
1684
+ occurred_at: string;
1685
+ };
1686
+ /**
1687
+ * A redacted, public summary of an internal audit payload.
1688
+ */
1689
+ export type AuditPayloadSummary = {
1690
+ summary: string;
1691
+ };
1692
+ export type AuditEventPage = {
1693
+ items: Array<AuditEvent>;
1694
+ next_cursor?: string | null;
1695
+ };
1696
+ export type Ulid = string;
1697
+ /**
1698
+ * Owner-confirmed assignment change. No application data is copied; physical resources are provisioned lazily.
1699
+ */
1700
+ export type ProjectDataChangeKind = "isolate_prod_keeps_data" | "isolate_dev_keeps_data" | "share_prod_keeps_data" | "reset_dev";
1701
+ export type ProjectDataChangeRequest = {
1702
+ change: ProjectDataChangeKind;
1703
+ };
1704
+ /**
1705
+ * An action-bound ten-minute plan naming retained, retired and lazily created data areas. The workspace Owner confirms its destructive effects before execution.
1706
+ */
1707
+ export type ProjectDataChangePlan = {
1708
+ action: "data_change";
1709
+ project_id: Ulid;
1710
+ change: ProjectDataChangeKind;
1711
+ data_mode_before: "shared" | "isolated";
1712
+ data_mode_after: "shared" | "isolated";
1713
+ effects: Array<string>;
1714
+ destructive_effects: Array<string>;
1715
+ redeploy_environments: ["dev" | "prod"];
1716
+ risks: Array<string>;
1717
+ /**
1718
+ * Send as If-Match with this plan's confirmation token.
1719
+ */
1720
+ resource_etag: string;
1721
+ confirmation_token: ConfirmationToken;
1722
+ created_at: string;
1723
+ expires_at: string;
1724
+ };
1725
+ /**
1726
+ * The revision must match current configuration. Secrets are write-only and never echoed in responses or replay receipts.
1727
+ */
1728
+ export type NativeAuthProviderUpdateWritable = {
1729
+ configurationRevision: number;
1730
+ enabled: boolean;
1731
+ clientId?: string;
1732
+ /**
1733
+ * At most 5120 UTF-8 bytes. The value is accepted only by this write-only operation.
1734
+ */
1735
+ clientSecret?: string;
1736
+ };
1737
+ /**
1738
+ * A platform event type, data.<topic> for the rows of one watched table, or data.* for every watched table. A bare * is not accepted and never matches data events.
1739
+ */
1740
+ export type DatabaseWebhookEventPatternWritable = DatabaseWebhookEventType | string;
1741
+ /**
1742
+ * Immutable pre-build deployment plan. It expires exactly 24 hours after creation.
1743
+ */
1744
+ export type DeploymentPlanWritable = {
1745
+ id: Ulid;
1746
+ project_id: Ulid;
1747
+ /**
1748
+ * The environment this plan builds into.
1749
+ */
1750
+ environment: "dev" | "prod";
1751
+ commit_sha: GitCommitSha;
1752
+ source_digest: Sha256Digest;
1753
+ build_plan_digest: Sha256Digest;
1754
+ artifact_digest?: Sha256Digest;
1755
+ runtime: "cloudflare_workers_static_assets" | "cloudflare_workers_edge_ssr";
1756
+ /**
1757
+ * Server-derived project-isolated public deployment URL; clients cannot select its gateway host or target Worker.
1758
+ */
1759
+ route: string;
1760
+ resource_effects: Array<string>;
1761
+ limits: Array<string>;
1762
+ estimated_cost: CostEstimate;
1763
+ risks: Array<string>;
1764
+ destructive_effects: Array<string>;
1765
+ required_confirmations: Array<string>;
1766
+ created_at: string;
1767
+ expires_at: string;
1768
+ };
1769
+ /**
1770
+ * Opaque continuation cursor returned by the preceding page.
1771
+ */
1772
+ export type AuditCursor = string;
1773
+ /**
1774
+ * Maximum number of audit events to return.
1775
+ */
1776
+ export type AuditLimit = number;
1777
+ /**
1778
+ * Identifies one mutation and its canonical request payload.
1779
+ */
1780
+ export type IdempotencyKey = string;
1781
+ /**
1782
+ * Use resource_etag from a fresh rollback, promotion, deletion or data-change plan. For a project address change, use etag from project status; an ETag from another representation is not accepted.
1783
+ */
1784
+ export type IfMatch = string;
1785
+ /**
1786
+ * Ten-minute token bound to the planned action, project, target resource, and resource ETag.
1787
+ */
1788
+ export type ConfirmationToken2 = ConfirmationToken;
1789
+ /**
1790
+ * Optional caller-provided correlation identifier.
1791
+ */
1792
+ export type RequestId = string;
1793
+ /**
1794
+ * Project identifier.
1795
+ */
1796
+ export type ProjectId = Ulid;
1797
+ /**
1798
+ * Issued database credential identifier.
1799
+ */
1800
+ export type DatabaseAccessId = Ulid;
1801
+ /**
1802
+ * Application environment to read; dev when omitted.
1803
+ */
1804
+ export type DatabaseEnvironmentRead = "dev" | "prod";
1805
+ /**
1806
+ * Restrict the listing to one application environment.
1807
+ */
1808
+ export type DatabaseEnvironmentFilter = "dev" | "prod";
1809
+ /**
1810
+ * Application environment the mutation applies to.
1811
+ */
1812
+ export type DatabaseEnvironment = "dev" | "prod";
1813
+ /**
1814
+ * Database webhook identifier.
1815
+ */
1816
+ export type DatabaseWebhookId = string;
1817
+ /**
1818
+ * Database webhook delivery identifier.
1819
+ */
1820
+ export type DatabaseWebhookDeliveryId = string;
1821
+ /**
1822
+ * Database watch identifier, derived from the watched schema and table.
1823
+ */
1824
+ export type DatabaseWatchId = string;
1825
+ /**
1826
+ * Database schedule name, unique per project environment.
1827
+ */
1828
+ export type DatabaseScheduleName = string;
1829
+ /**
1830
+ * Opaque continuation cursor returned by the preceding project page.
1831
+ */
1832
+ export type ProjectCursor = Ulid;
1833
+ /**
1834
+ * Maximum number of projects to return.
1835
+ */
1836
+ export type ProjectLimit = number;
1837
+ /**
1838
+ * Environment identifier.
1839
+ */
1840
+ export type EnvironmentId = Ulid;
1841
+ /**
1842
+ * Uppercase environment-variable name.
1843
+ */
1844
+ export type SecretName = string;
1845
+ /**
1846
+ * Feedback receipt identifier returned on submission.
1847
+ */
1848
+ export type FeedbackId = Ulid;
1849
+ /**
1850
+ * Operation identifier.
1851
+ */
1852
+ export type OperationId = Ulid;
1853
+ /**
1854
+ * Deployment identifier.
1855
+ */
1856
+ export type DeploymentId = Ulid;
1857
+ /**
1858
+ * Immutable deployment selected as the rollback target.
1859
+ */
1860
+ export type TargetDeploymentId = Ulid;
1861
+ /**
1862
+ * Current succeeded dev deployment whose immutable artifact will be promoted.
1863
+ */
1864
+ export type SourceDeploymentId = Ulid;
1865
+ /**
1866
+ * Opaque continuation cursor returned by the preceding deployment page.
1867
+ */
1868
+ export type DeploymentCursor = string;
1869
+ /**
1870
+ * Maximum number of deployments to return.
1871
+ */
1872
+ export type DeploymentLimit = number;
1873
+ /**
1874
+ * Restricts the page to one visible project.
1875
+ */
1876
+ export type ProjectFilter = Ulid;
1877
+ /**
1878
+ * Restricts the page to one visible operation.
1879
+ */
1880
+ export type OperationFilter = Ulid;
1881
+ export type GetNativeAuthConfigurationData = {
1882
+ body?: never;
1883
+ headers?: {
1884
+ /**
1885
+ * Optional caller-provided correlation identifier.
1886
+ */
1887
+ "X-Request-Id"?: string;
1888
+ };
1889
+ path: {
1890
+ /**
1891
+ * Project identifier.
1892
+ */
1893
+ project_id: Ulid;
1894
+ /**
1895
+ * Environment identifier.
1896
+ */
1897
+ environment_id: Ulid;
1898
+ };
1899
+ query?: never;
1900
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth";
1901
+ };
1902
+ export type GetNativeAuthConfigurationErrors = {
1903
+ /**
1904
+ * The request failed.
1905
+ */
1906
+ 400: ProblemDetails;
1907
+ /**
1908
+ * The request failed.
1909
+ */
1910
+ 401: ProblemDetails;
1911
+ /**
1912
+ * The request failed.
1913
+ */
1914
+ 402: ProblemDetails;
1915
+ /**
1916
+ * The request failed.
1917
+ */
1918
+ 403: ProblemDetails;
1919
+ /**
1920
+ * The resource does not exist or is not visible to the authenticated principal.
1921
+ */
1922
+ 404: ProblemDetails;
1923
+ /**
1924
+ * The request failed.
1925
+ */
1926
+ 409: ProblemDetails;
1927
+ /**
1928
+ * The request failed.
1929
+ */
1930
+ 429: ProblemDetails;
1931
+ /**
1932
+ * The request failed.
1933
+ */
1934
+ 503: ProblemDetails;
1935
+ };
1936
+ export type GetNativeAuthConfigurationError = GetNativeAuthConfigurationErrors[keyof GetNativeAuthConfigurationErrors];
1937
+ export type GetNativeAuthConfigurationResponses = {
1938
+ /**
1939
+ * Current authorized resource.
1940
+ */
1941
+ 200: NativeAuthConfiguration;
1942
+ };
1943
+ export type GetNativeAuthConfigurationResponse = GetNativeAuthConfigurationResponses[keyof GetNativeAuthConfigurationResponses];
1944
+ export type UpdateNativeAuthConfigurationData = {
1945
+ body: NativeAuthConfigurationUpdate;
1946
+ headers: {
1947
+ /**
1948
+ * Optional caller-provided correlation identifier.
1949
+ */
1950
+ "X-Request-Id"?: string;
1951
+ /**
1952
+ * Identifies one mutation and its canonical request payload.
1953
+ */
1954
+ "Idempotency-Key": string;
1955
+ };
1956
+ path: {
1957
+ /**
1958
+ * Project identifier.
1959
+ */
1960
+ project_id: Ulid;
1961
+ /**
1962
+ * Environment identifier.
1963
+ */
1964
+ environment_id: Ulid;
1965
+ };
1966
+ query?: never;
1967
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth";
1968
+ };
1969
+ export type UpdateNativeAuthConfigurationErrors = {
1970
+ /**
1971
+ * The request failed.
1972
+ */
1973
+ 400: ProblemDetails;
1974
+ /**
1975
+ * The request failed.
1976
+ */
1977
+ 401: ProblemDetails;
1978
+ /**
1979
+ * The request failed.
1980
+ */
1981
+ 402: ProblemDetails;
1982
+ /**
1983
+ * The request failed.
1984
+ */
1985
+ 403: ProblemDetails;
1986
+ /**
1987
+ * The resource does not exist or is not visible to the authenticated principal.
1988
+ */
1989
+ 404: ProblemDetails;
1990
+ /**
1991
+ * The request failed.
1992
+ */
1993
+ 409: ProblemDetails;
1994
+ /**
1995
+ * The request failed.
1996
+ */
1997
+ 429: ProblemDetails;
1998
+ /**
1999
+ * The request failed.
2000
+ */
2001
+ 503: ProblemDetails;
2002
+ };
2003
+ export type UpdateNativeAuthConfigurationError = UpdateNativeAuthConfigurationErrors[keyof UpdateNativeAuthConfigurationErrors];
2004
+ export type UpdateNativeAuthConfigurationResponses = {
2005
+ /**
2006
+ * Current authorized resource.
2007
+ */
2008
+ 200: NativeAuthConfiguration;
2009
+ };
2010
+ export type UpdateNativeAuthConfigurationResponse = UpdateNativeAuthConfigurationResponses[keyof UpdateNativeAuthConfigurationResponses];
2011
+ export type GetNativeAuthProviderData = {
2012
+ body?: never;
2013
+ headers?: {
2014
+ /**
2015
+ * Optional caller-provided correlation identifier.
2016
+ */
2017
+ "X-Request-Id"?: string;
2018
+ };
2019
+ path: {
2020
+ /**
2021
+ * Project identifier.
2022
+ */
2023
+ project_id: Ulid;
2024
+ /**
2025
+ * Environment identifier.
2026
+ */
2027
+ environment_id: Ulid;
2028
+ provider: "google" | "github";
2029
+ };
2030
+ query?: never;
2031
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/providers/{provider}";
2032
+ };
2033
+ export type GetNativeAuthProviderErrors = {
2034
+ /**
2035
+ * The request failed.
2036
+ */
2037
+ 400: ProblemDetails;
2038
+ /**
2039
+ * The request failed.
2040
+ */
2041
+ 401: ProblemDetails;
2042
+ /**
2043
+ * The request failed.
2044
+ */
2045
+ 402: ProblemDetails;
2046
+ /**
2047
+ * The request failed.
2048
+ */
2049
+ 403: ProblemDetails;
2050
+ /**
2051
+ * The resource does not exist or is not visible to the authenticated principal.
2052
+ */
2053
+ 404: ProblemDetails;
2054
+ /**
2055
+ * The request failed.
2056
+ */
2057
+ 409: ProblemDetails;
2058
+ /**
2059
+ * The request failed.
2060
+ */
2061
+ 429: ProblemDetails;
2062
+ /**
2063
+ * The request failed.
2064
+ */
2065
+ 503: ProblemDetails;
2066
+ };
2067
+ export type GetNativeAuthProviderError = GetNativeAuthProviderErrors[keyof GetNativeAuthProviderErrors];
2068
+ export type GetNativeAuthProviderResponses = {
2069
+ /**
2070
+ * Current authorized resource.
2071
+ */
2072
+ 200: NativeAuthProviderStatus;
2073
+ };
2074
+ export type GetNativeAuthProviderResponse = GetNativeAuthProviderResponses[keyof GetNativeAuthProviderResponses];
2075
+ export type UpdateNativeAuthProviderData = {
2076
+ body: NativeAuthProviderUpdateWritable;
2077
+ headers: {
2078
+ /**
2079
+ * Optional caller-provided correlation identifier.
2080
+ */
2081
+ "X-Request-Id"?: string;
2082
+ /**
2083
+ * Identifies one mutation and its canonical request payload.
2084
+ */
2085
+ "Idempotency-Key": string;
2086
+ };
2087
+ path: {
2088
+ /**
2089
+ * Project identifier.
2090
+ */
2091
+ project_id: Ulid;
2092
+ /**
2093
+ * Environment identifier.
2094
+ */
2095
+ environment_id: Ulid;
2096
+ provider: "google" | "github";
2097
+ };
2098
+ query?: never;
2099
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/providers/{provider}";
2100
+ };
2101
+ export type UpdateNativeAuthProviderErrors = {
2102
+ /**
2103
+ * The request failed.
2104
+ */
2105
+ 400: ProblemDetails;
2106
+ /**
2107
+ * The request failed.
2108
+ */
2109
+ 401: ProblemDetails;
2110
+ /**
2111
+ * The request failed.
2112
+ */
2113
+ 402: ProblemDetails;
2114
+ /**
2115
+ * The request failed.
2116
+ */
2117
+ 403: ProblemDetails;
2118
+ /**
2119
+ * The resource does not exist or is not visible to the authenticated principal.
2120
+ */
2121
+ 404: ProblemDetails;
2122
+ /**
2123
+ * The request failed.
2124
+ */
2125
+ 409: ProblemDetails;
2126
+ /**
2127
+ * The request failed.
2128
+ */
2129
+ 429: ProblemDetails;
2130
+ /**
2131
+ * The request failed.
2132
+ */
2133
+ 503: ProblemDetails;
2134
+ };
2135
+ export type UpdateNativeAuthProviderError = UpdateNativeAuthProviderErrors[keyof UpdateNativeAuthProviderErrors];
2136
+ export type UpdateNativeAuthProviderResponses = {
2137
+ /**
2138
+ * Current authorized resource.
2139
+ */
2140
+ 200: NativeAuthProviderStatus;
2141
+ };
2142
+ export type UpdateNativeAuthProviderResponse = UpdateNativeAuthProviderResponses[keyof UpdateNativeAuthProviderResponses];
2143
+ export type ListNativeAuthUsersData = {
2144
+ body?: never;
2145
+ headers?: {
2146
+ /**
2147
+ * Optional caller-provided correlation identifier.
2148
+ */
2149
+ "X-Request-Id"?: string;
2150
+ };
2151
+ path: {
2152
+ /**
2153
+ * Project identifier.
2154
+ */
2155
+ project_id: Ulid;
2156
+ /**
2157
+ * Environment identifier.
2158
+ */
2159
+ environment_id: Ulid;
2160
+ };
2161
+ query?: {
2162
+ limit?: number;
2163
+ cursor?: string;
2164
+ search?: string;
2165
+ };
2166
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users";
2167
+ };
2168
+ export type ListNativeAuthUsersErrors = {
2169
+ /**
2170
+ * The request failed.
2171
+ */
2172
+ 400: ProblemDetails;
2173
+ /**
2174
+ * The request failed.
2175
+ */
2176
+ 401: ProblemDetails;
2177
+ /**
2178
+ * The request failed.
2179
+ */
2180
+ 402: ProblemDetails;
2181
+ /**
2182
+ * The request failed.
2183
+ */
2184
+ 403: ProblemDetails;
2185
+ /**
2186
+ * The resource does not exist or is not visible to the authenticated principal.
2187
+ */
2188
+ 404: ProblemDetails;
2189
+ /**
2190
+ * The request failed.
2191
+ */
2192
+ 409: ProblemDetails;
2193
+ /**
2194
+ * The request failed.
2195
+ */
2196
+ 429: ProblemDetails;
2197
+ /**
2198
+ * The request failed.
2199
+ */
2200
+ 503: ProblemDetails;
2201
+ };
2202
+ export type ListNativeAuthUsersError = ListNativeAuthUsersErrors[keyof ListNativeAuthUsersErrors];
2203
+ export type ListNativeAuthUsersResponses = {
2204
+ /**
2205
+ * Current authorized resource.
2206
+ */
2207
+ 200: NativeAuthUserPage;
2208
+ };
2209
+ export type ListNativeAuthUsersResponse = ListNativeAuthUsersResponses[keyof ListNativeAuthUsersResponses];
2210
+ export type CreateNativeAuthUserData = {
2211
+ body: NativeAuthUserCreate;
2212
+ headers: {
2213
+ /**
2214
+ * Optional caller-provided correlation identifier.
2215
+ */
2216
+ "X-Request-Id"?: string;
2217
+ /**
2218
+ * Identifies one mutation and its canonical request payload.
2219
+ */
2220
+ "Idempotency-Key": string;
2221
+ };
2222
+ path: {
2223
+ /**
2224
+ * Project identifier.
2225
+ */
2226
+ project_id: Ulid;
2227
+ /**
2228
+ * Environment identifier.
2229
+ */
2230
+ environment_id: Ulid;
2231
+ };
2232
+ query?: never;
2233
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users";
2234
+ };
2235
+ export type CreateNativeAuthUserErrors = {
2236
+ /**
2237
+ * The request failed.
2238
+ */
2239
+ 400: ProblemDetails;
2240
+ /**
2241
+ * The request failed.
2242
+ */
2243
+ 401: ProblemDetails;
2244
+ /**
2245
+ * The request failed.
2246
+ */
2247
+ 402: ProblemDetails;
2248
+ /**
2249
+ * The request failed.
2250
+ */
2251
+ 403: ProblemDetails;
2252
+ /**
2253
+ * The resource does not exist or is not visible to the authenticated principal.
2254
+ */
2255
+ 404: ProblemDetails;
2256
+ /**
2257
+ * The request failed.
2258
+ */
2259
+ 409: ProblemDetails;
2260
+ /**
2261
+ * The request failed.
2262
+ */
2263
+ 429: ProblemDetails;
2264
+ /**
2265
+ * The request failed.
2266
+ */
2267
+ 503: ProblemDetails;
2268
+ };
2269
+ export type CreateNativeAuthUserError = CreateNativeAuthUserErrors[keyof CreateNativeAuthUserErrors];
2270
+ export type CreateNativeAuthUserResponses = {
2271
+ /**
2272
+ * Current authorized resource.
2273
+ */
2274
+ 201: NativeAuthUser;
2275
+ };
2276
+ export type CreateNativeAuthUserResponse = CreateNativeAuthUserResponses[keyof CreateNativeAuthUserResponses];
2277
+ export type DeleteNativeAuthUserData = {
2278
+ body?: never;
2279
+ headers: {
2280
+ /**
2281
+ * Optional caller-provided correlation identifier.
2282
+ */
2283
+ "X-Request-Id"?: string;
2284
+ /**
2285
+ * Identifies one mutation and its canonical request payload.
2286
+ */
2287
+ "Idempotency-Key": string;
2288
+ };
2289
+ path: {
2290
+ /**
2291
+ * Project identifier.
2292
+ */
2293
+ project_id: Ulid;
2294
+ /**
2295
+ * Environment identifier.
2296
+ */
2297
+ environment_id: Ulid;
2298
+ user_id: string;
2299
+ };
2300
+ query?: never;
2301
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}";
2302
+ };
2303
+ export type DeleteNativeAuthUserErrors = {
2304
+ /**
2305
+ * The request failed.
2306
+ */
2307
+ 400: ProblemDetails;
2308
+ /**
2309
+ * The request failed.
2310
+ */
2311
+ 401: ProblemDetails;
2312
+ /**
2313
+ * The request failed.
2314
+ */
2315
+ 402: ProblemDetails;
2316
+ /**
2317
+ * The request failed.
2318
+ */
2319
+ 403: ProblemDetails;
2320
+ /**
2321
+ * The resource does not exist or is not visible to the authenticated principal.
2322
+ */
2323
+ 404: ProblemDetails;
2324
+ /**
2325
+ * The request failed.
2326
+ */
2327
+ 409: ProblemDetails;
2328
+ /**
2329
+ * The request failed.
2330
+ */
2331
+ 429: ProblemDetails;
2332
+ /**
2333
+ * The request failed.
2334
+ */
2335
+ 503: ProblemDetails;
2336
+ };
2337
+ export type DeleteNativeAuthUserError = DeleteNativeAuthUserErrors[keyof DeleteNativeAuthUserErrors];
2338
+ export type DeleteNativeAuthUserResponses = {
2339
+ /**
2340
+ * User deleted and sessions revoked.
2341
+ */
2342
+ 204: void;
2343
+ };
2344
+ export type DeleteNativeAuthUserResponse = DeleteNativeAuthUserResponses[keyof DeleteNativeAuthUserResponses];
2345
+ export type GetNativeAuthUserData = {
2346
+ body?: never;
2347
+ headers?: {
2348
+ /**
2349
+ * Optional caller-provided correlation identifier.
2350
+ */
2351
+ "X-Request-Id"?: string;
2352
+ };
2353
+ path: {
2354
+ /**
2355
+ * Project identifier.
2356
+ */
2357
+ project_id: Ulid;
2358
+ /**
2359
+ * Environment identifier.
2360
+ */
2361
+ environment_id: Ulid;
2362
+ user_id: string;
2363
+ };
2364
+ query?: never;
2365
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}";
2366
+ };
2367
+ export type GetNativeAuthUserErrors = {
2368
+ /**
2369
+ * The request failed.
2370
+ */
2371
+ 400: ProblemDetails;
2372
+ /**
2373
+ * The request failed.
2374
+ */
2375
+ 401: ProblemDetails;
2376
+ /**
2377
+ * The request failed.
2378
+ */
2379
+ 402: ProblemDetails;
2380
+ /**
2381
+ * The request failed.
2382
+ */
2383
+ 403: ProblemDetails;
2384
+ /**
2385
+ * The resource does not exist or is not visible to the authenticated principal.
2386
+ */
2387
+ 404: ProblemDetails;
2388
+ /**
2389
+ * The request failed.
2390
+ */
2391
+ 409: ProblemDetails;
2392
+ /**
2393
+ * The request failed.
2394
+ */
2395
+ 429: ProblemDetails;
2396
+ /**
2397
+ * The request failed.
2398
+ */
2399
+ 503: ProblemDetails;
2400
+ };
2401
+ export type GetNativeAuthUserError = GetNativeAuthUserErrors[keyof GetNativeAuthUserErrors];
2402
+ export type GetNativeAuthUserResponses = {
2403
+ /**
2404
+ * Current authorized resource.
2405
+ */
2406
+ 200: NativeAuthUser;
2407
+ };
2408
+ export type GetNativeAuthUserResponse = GetNativeAuthUserResponses[keyof GetNativeAuthUserResponses];
2409
+ export type ResendNativeAuthInvitationData = {
2410
+ body?: never;
2411
+ headers: {
2412
+ /**
2413
+ * Optional caller-provided correlation identifier.
2414
+ */
2415
+ "X-Request-Id"?: string;
2416
+ /**
2417
+ * Identifies one mutation and its canonical request payload.
2418
+ */
2419
+ "Idempotency-Key": string;
2420
+ };
2421
+ path: {
2422
+ /**
2423
+ * Project identifier.
2424
+ */
2425
+ project_id: Ulid;
2426
+ /**
2427
+ * Environment identifier.
2428
+ */
2429
+ environment_id: Ulid;
2430
+ user_id: string;
2431
+ };
2432
+ query?: never;
2433
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}/invite";
2434
+ };
2435
+ export type ResendNativeAuthInvitationErrors = {
2436
+ /**
2437
+ * The request failed.
2438
+ */
2439
+ 400: ProblemDetails;
2440
+ /**
2441
+ * The request failed.
2442
+ */
2443
+ 401: ProblemDetails;
2444
+ /**
2445
+ * The request failed.
2446
+ */
2447
+ 402: ProblemDetails;
2448
+ /**
2449
+ * The request failed.
2450
+ */
2451
+ 403: ProblemDetails;
2452
+ /**
2453
+ * The resource does not exist or is not visible to the authenticated principal.
2454
+ */
2455
+ 404: ProblemDetails;
2456
+ /**
2457
+ * The request failed.
2458
+ */
2459
+ 409: ProblemDetails;
2460
+ /**
2461
+ * The request failed.
2462
+ */
2463
+ 429: ProblemDetails;
2464
+ /**
2465
+ * The request failed.
2466
+ */
2467
+ 503: ProblemDetails;
2468
+ };
2469
+ export type ResendNativeAuthInvitationError = ResendNativeAuthInvitationErrors[keyof ResendNativeAuthInvitationErrors];
2470
+ export type ResendNativeAuthInvitationResponses = {
2471
+ /**
2472
+ * Current authorized resource.
2473
+ */
2474
+ 200: NativeAuthUser;
2475
+ };
2476
+ export type ResendNativeAuthInvitationResponse = ResendNativeAuthInvitationResponses[keyof ResendNativeAuthInvitationResponses];
2477
+ export type SuspendNativeAuthUserData = {
2478
+ body?: never;
2479
+ headers: {
2480
+ /**
2481
+ * Optional caller-provided correlation identifier.
2482
+ */
2483
+ "X-Request-Id"?: string;
2484
+ /**
2485
+ * Identifies one mutation and its canonical request payload.
2486
+ */
2487
+ "Idempotency-Key": string;
2488
+ };
2489
+ path: {
2490
+ /**
2491
+ * Project identifier.
2492
+ */
2493
+ project_id: Ulid;
2494
+ /**
2495
+ * Environment identifier.
2496
+ */
2497
+ environment_id: Ulid;
2498
+ user_id: string;
2499
+ };
2500
+ query?: never;
2501
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}/suspend";
2502
+ };
2503
+ export type SuspendNativeAuthUserErrors = {
2504
+ /**
2505
+ * The request failed.
2506
+ */
2507
+ 400: ProblemDetails;
2508
+ /**
2509
+ * The request failed.
2510
+ */
2511
+ 401: ProblemDetails;
2512
+ /**
2513
+ * The request failed.
2514
+ */
2515
+ 402: ProblemDetails;
2516
+ /**
2517
+ * The request failed.
2518
+ */
2519
+ 403: ProblemDetails;
2520
+ /**
2521
+ * The resource does not exist or is not visible to the authenticated principal.
2522
+ */
2523
+ 404: ProblemDetails;
2524
+ /**
2525
+ * The request failed.
2526
+ */
2527
+ 409: ProblemDetails;
2528
+ /**
2529
+ * The request failed.
2530
+ */
2531
+ 429: ProblemDetails;
2532
+ /**
2533
+ * The request failed.
2534
+ */
2535
+ 503: ProblemDetails;
2536
+ };
2537
+ export type SuspendNativeAuthUserError = SuspendNativeAuthUserErrors[keyof SuspendNativeAuthUserErrors];
2538
+ export type SuspendNativeAuthUserResponses = {
2539
+ /**
2540
+ * Current authorized resource.
2541
+ */
2542
+ 200: NativeAuthUser;
2543
+ };
2544
+ export type SuspendNativeAuthUserResponse = SuspendNativeAuthUserResponses[keyof SuspendNativeAuthUserResponses];
2545
+ export type ReactivateNativeAuthUserData = {
2546
+ body?: never;
2547
+ headers: {
2548
+ /**
2549
+ * Optional caller-provided correlation identifier.
2550
+ */
2551
+ "X-Request-Id"?: string;
2552
+ /**
2553
+ * Identifies one mutation and its canonical request payload.
2554
+ */
2555
+ "Idempotency-Key": string;
2556
+ };
2557
+ path: {
2558
+ /**
2559
+ * Project identifier.
2560
+ */
2561
+ project_id: Ulid;
2562
+ /**
2563
+ * Environment identifier.
2564
+ */
2565
+ environment_id: Ulid;
2566
+ user_id: string;
2567
+ };
2568
+ query?: never;
2569
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}/reactivate";
2570
+ };
2571
+ export type ReactivateNativeAuthUserErrors = {
2572
+ /**
2573
+ * The request failed.
2574
+ */
2575
+ 400: ProblemDetails;
2576
+ /**
2577
+ * The request failed.
2578
+ */
2579
+ 401: ProblemDetails;
2580
+ /**
2581
+ * The request failed.
2582
+ */
2583
+ 402: ProblemDetails;
2584
+ /**
2585
+ * The request failed.
2586
+ */
2587
+ 403: ProblemDetails;
2588
+ /**
2589
+ * The resource does not exist or is not visible to the authenticated principal.
2590
+ */
2591
+ 404: ProblemDetails;
2592
+ /**
2593
+ * The request failed.
2594
+ */
2595
+ 409: ProblemDetails;
2596
+ /**
2597
+ * The request failed.
2598
+ */
2599
+ 429: ProblemDetails;
2600
+ /**
2601
+ * The request failed.
2602
+ */
2603
+ 503: ProblemDetails;
2604
+ };
2605
+ export type ReactivateNativeAuthUserError = ReactivateNativeAuthUserErrors[keyof ReactivateNativeAuthUserErrors];
2606
+ export type ReactivateNativeAuthUserResponses = {
2607
+ /**
2608
+ * Current authorized resource.
2609
+ */
2610
+ 200: NativeAuthUser;
2611
+ };
2612
+ export type ReactivateNativeAuthUserResponse = ReactivateNativeAuthUserResponses[keyof ReactivateNativeAuthUserResponses];
2613
+ export type RevokeNativeAuthUserSessionsData = {
2614
+ body?: never;
2615
+ headers: {
2616
+ /**
2617
+ * Optional caller-provided correlation identifier.
2618
+ */
2619
+ "X-Request-Id"?: string;
2620
+ /**
2621
+ * Identifies one mutation and its canonical request payload.
1558
2622
  */
1559
- markdown: string;
1560
- updated_at: string | null;
2623
+ "Idempotency-Key": string;
1561
2624
  };
2625
+ path: {
2626
+ /**
2627
+ * Project identifier.
2628
+ */
2629
+ project_id: Ulid;
2630
+ /**
2631
+ * Environment identifier.
2632
+ */
2633
+ environment_id: Ulid;
2634
+ user_id: string;
2635
+ };
2636
+ query?: never;
2637
+ url: "/v1/projects/{project_id}/environments/{environment_id}/auth/users/{user_id}/revoke-sessions";
1562
2638
  };
1563
- export type ProjectExport = {
1564
- id: Ulid;
1565
- project_id: Ulid;
1566
- state: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1567
- requested_at: string;
1568
- next_request_at: string;
1569
- next_poll_after_seconds: 5 | null;
1570
- error: OperationFailure | null;
1571
- archive: ProjectExportArchive | null;
1572
- };
1573
- export type ProjectExportArchive = {
1574
- bytes: number;
1575
- sha256: string;
2639
+ export type RevokeNativeAuthUserSessionsErrors = {
1576
2640
  /**
1577
- * dev.sql and/or prod.sql for isolated data, or shared.sql alone.
2641
+ * The request failed.
1578
2642
  */
1579
- sql_files: Array<"dev.sql" | "prod.sql" | "shared.sql">;
1580
- captured_at: string;
1581
- expires_at: string;
1582
- download_url: string | null;
1583
- download_expires_at: string | null;
1584
- };
1585
- export type OperationFailure = {
1586
- code: "operation_failed" | "operation_abandoned" | "authorization_changed" | "source_commit_conflict" | "source_snapshot_invalid" | "source_upload_expired" | "recovery_dispatch_failed" | "recovery_job_failed" | "recovery_input_expired" | "recovery_database_unavailable" | "recovery_checksum_mismatch" | "recovery_scope_unavailable" | "recovery_archive_too_large" | "build_not_started" | "build_failed" | "database_write_rejected" | "database_write_unavailable" | "database_write_outcome_unknown" | "database_compute_failed" | "database_compute_plan_changed" | "database_compute_rejected" | "database_migration_failed" | "insufficient_organization_credits" | "project_budget_exceeded" | "paid_plan_required" | "runtime_candidate_failed" | "runtime_candidate_rejected" | "storage_jurisdiction_conflict" | "provider_state_absent" | "auto_deploy_plan_rejected" | "promotion_source_stale" | "promotion_target_stale";
1587
- message: string;
2643
+ 400: ProblemDetails;
1588
2644
  /**
1589
- * A terminal operation cannot be retried in place; follow suggested_action.
2645
+ * The request failed.
1590
2646
  */
1591
- retryable: false;
1592
- suggested_action: string;
2647
+ 401: ProblemDetails;
1593
2648
  /**
1594
- * Present only on auto_deploy_plan_rejected when planning the pushed commit returned a typed refusal. It is the same fixed catalog sentence that the planning 409 problem returns as detail, naming the file, the rule and the required change.
2649
+ * The request failed.
1595
2650
  */
1596
- detail?: string;
1597
- };
1598
- export type AuditEvent = {
1599
- audit_event_id: Ulid;
1600
- project_id: Ulid;
1601
- operation_id?: Ulid;
1602
- event_type: string;
1603
- actor_type: string;
1604
- actor_id: string;
1605
- payload: AuditPayloadSummary;
1606
- occurred_at: string;
1607
- };
1608
- /**
1609
- * A redacted, public summary of an internal audit payload.
1610
- */
1611
- export type AuditPayloadSummary = {
1612
- summary: string;
1613
- };
1614
- export type AuditEventPage = {
1615
- items: Array<AuditEvent>;
1616
- next_cursor?: string | null;
1617
- };
1618
- export type Ulid = string;
1619
- /**
1620
- * Owner-confirmed assignment change. No application data is copied; physical resources are provisioned lazily.
1621
- */
1622
- export type ProjectDataChangeKind = "isolate_prod_keeps_data" | "isolate_dev_keeps_data" | "share_prod_keeps_data" | "reset_dev";
1623
- export type ProjectDataChangeRequest = {
1624
- change: ProjectDataChangeKind;
1625
- };
1626
- /**
1627
- * An action-bound ten-minute plan naming retained, retired and lazily created data areas. The workspace Owner confirms its destructive effects before execution.
1628
- */
1629
- export type ProjectDataChangePlan = {
1630
- action: "data_change";
1631
- project_id: Ulid;
1632
- change: ProjectDataChangeKind;
1633
- data_mode_before: "shared" | "isolated";
1634
- data_mode_after: "shared" | "isolated";
1635
- effects: Array<string>;
1636
- destructive_effects: Array<string>;
1637
- redeploy_environments: ["dev" | "prod"];
1638
- risks: Array<string>;
2651
+ 402: ProblemDetails;
1639
2652
  /**
1640
- * Send as If-Match with this plan's confirmation token.
2653
+ * The request failed.
1641
2654
  */
1642
- resource_etag: string;
1643
- confirmation_token: ConfirmationToken;
1644
- created_at: string;
1645
- expires_at: string;
1646
- };
1647
- /**
1648
- * A platform event type, data.<topic> for the rows of one watched table, or data.* for every watched table. A bare * is not accepted and never matches data events.
1649
- */
1650
- export type DatabaseWebhookEventPatternWritable = DatabaseWebhookEventType | string;
1651
- /**
1652
- * Immutable pre-build deployment plan. It expires exactly 24 hours after creation.
1653
- */
1654
- export type DeploymentPlanWritable = {
1655
- id: Ulid;
1656
- project_id: Ulid;
2655
+ 403: ProblemDetails;
1657
2656
  /**
1658
- * The environment this plan builds into.
2657
+ * The resource does not exist or is not visible to the authenticated principal.
1659
2658
  */
1660
- environment: "dev" | "prod";
1661
- commit_sha: GitCommitSha;
1662
- source_digest: Sha256Digest;
1663
- build_plan_digest: Sha256Digest;
1664
- artifact_digest?: Sha256Digest;
1665
- runtime: "cloudflare_workers_static_assets" | "cloudflare_workers_edge_ssr";
2659
+ 404: ProblemDetails;
1666
2660
  /**
1667
- * Server-derived project-isolated public deployment URL; clients cannot select its gateway host or target Worker.
2661
+ * The request failed.
1668
2662
  */
1669
- route: string;
1670
- resource_effects: Array<string>;
1671
- limits: Array<string>;
1672
- estimated_cost: CostEstimate;
1673
- risks: Array<string>;
1674
- destructive_effects: Array<string>;
1675
- required_confirmations: Array<string>;
1676
- created_at: string;
1677
- expires_at: string;
2663
+ 409: ProblemDetails;
2664
+ /**
2665
+ * The request failed.
2666
+ */
2667
+ 429: ProblemDetails;
2668
+ /**
2669
+ * The request failed.
2670
+ */
2671
+ 503: ProblemDetails;
1678
2672
  };
1679
- /**
1680
- * Opaque continuation cursor returned by the preceding page.
1681
- */
1682
- export type AuditCursor = string;
1683
- /**
1684
- * Maximum number of audit events to return.
1685
- */
1686
- export type AuditLimit = number;
1687
- /**
1688
- * Identifies one mutation and its canonical request payload.
1689
- */
1690
- export type IdempotencyKey = string;
1691
- /**
1692
- * Use resource_etag from a fresh rollback, promotion, deletion or data-change plan. For a project address change, use etag from project status; an ETag from another representation is not accepted.
1693
- */
1694
- export type IfMatch = string;
1695
- /**
1696
- * Ten-minute token bound to the planned action, project, target resource, and resource ETag.
1697
- */
1698
- export type ConfirmationToken2 = ConfirmationToken;
1699
- /**
1700
- * Optional caller-provided correlation identifier.
1701
- */
1702
- export type RequestId = string;
1703
- /**
1704
- * Project identifier.
1705
- */
1706
- export type ProjectId = Ulid;
1707
- /**
1708
- * Issued database credential identifier.
1709
- */
1710
- export type DatabaseAccessId = Ulid;
1711
- /**
1712
- * Application environment to read; dev when omitted.
1713
- */
1714
- export type DatabaseEnvironmentRead = "dev" | "prod";
1715
- /**
1716
- * Restrict the listing to one application environment.
1717
- */
1718
- export type DatabaseEnvironmentFilter = "dev" | "prod";
1719
- /**
1720
- * Application environment the mutation applies to.
1721
- */
1722
- export type DatabaseEnvironment = "dev" | "prod";
1723
- /**
1724
- * Database webhook identifier.
1725
- */
1726
- export type DatabaseWebhookId = string;
1727
- /**
1728
- * Database webhook delivery identifier.
1729
- */
1730
- export type DatabaseWebhookDeliveryId = string;
1731
- /**
1732
- * Database watch identifier, derived from the watched schema and table.
1733
- */
1734
- export type DatabaseWatchId = string;
1735
- /**
1736
- * Database schedule name, unique per project environment.
1737
- */
1738
- export type DatabaseScheduleName = string;
1739
- /**
1740
- * Opaque continuation cursor returned by the preceding project page.
1741
- */
1742
- export type ProjectCursor = Ulid;
1743
- /**
1744
- * Maximum number of projects to return.
1745
- */
1746
- export type ProjectLimit = number;
1747
- /**
1748
- * Environment identifier.
1749
- */
1750
- export type EnvironmentId = Ulid;
1751
- /**
1752
- * Uppercase environment-variable name.
1753
- */
1754
- export type SecretName = string;
1755
- /**
1756
- * Feedback receipt identifier returned on submission.
1757
- */
1758
- export type FeedbackId = Ulid;
1759
- /**
1760
- * Operation identifier.
1761
- */
1762
- export type OperationId = Ulid;
1763
- /**
1764
- * Deployment identifier.
1765
- */
1766
- export type DeploymentId = Ulid;
1767
- /**
1768
- * Immutable deployment selected as the rollback target.
1769
- */
1770
- export type TargetDeploymentId = Ulid;
1771
- /**
1772
- * Current succeeded dev deployment whose immutable artifact will be promoted.
1773
- */
1774
- export type SourceDeploymentId = Ulid;
1775
- /**
1776
- * Opaque continuation cursor returned by the preceding deployment page.
1777
- */
1778
- export type DeploymentCursor = string;
1779
- /**
1780
- * Maximum number of deployments to return.
1781
- */
1782
- export type DeploymentLimit = number;
1783
- /**
1784
- * Restricts the page to one visible project.
1785
- */
1786
- export type ProjectFilter = Ulid;
1787
- /**
1788
- * Restricts the page to one visible operation.
1789
- */
1790
- export type OperationFilter = Ulid;
2673
+ export type RevokeNativeAuthUserSessionsError = RevokeNativeAuthUserSessionsErrors[keyof RevokeNativeAuthUserSessionsErrors];
2674
+ export type RevokeNativeAuthUserSessionsResponses = {
2675
+ /**
2676
+ * Current authorized resource.
2677
+ */
2678
+ 200: NativeAuthUser;
2679
+ };
2680
+ export type RevokeNativeAuthUserSessionsResponse = RevokeNativeAuthUserSessionsResponses[keyof RevokeNativeAuthUserSessionsResponses];
1791
2681
  export type ListWorkspaceMailDomainsData = {
1792
2682
  body?: never;
1793
2683
  headers?: {
@@ -8924,6 +9814,10 @@ export type ListAuditEventsData = {
8924
9814
  };
8925
9815
  path?: never;
8926
9816
  query?: {
9817
+ /**
9818
+ * Authorized workspace to query; defaults to the active or only workspace.
9819
+ */
9820
+ organization_id?: Ulid;
8927
9821
  /**
8928
9822
  * Restricts the page to one visible project.
8929
9823
  */