@amerged/ohmyhost-sdk 0.1.35 → 0.1.37

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.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/dist/generated/index.d.ts +2 -2
  3. package/dist/generated/index.d.ts.map +1 -1
  4. package/dist/generated/index.js +1 -1
  5. package/dist/generated/index.js.map +1 -1
  6. package/dist/generated/sdk.gen.d.ts +184 -1
  7. package/dist/generated/sdk.gen.d.ts.map +1 -1
  8. package/dist/generated/sdk.gen.js +459 -0
  9. package/dist/generated/sdk.gen.js.map +1 -1
  10. package/dist/generated/shared-mail-response.d.ts +10 -0
  11. package/dist/generated/shared-mail-response.d.ts.map +1 -0
  12. package/dist/generated/shared-mail-response.js +220 -0
  13. package/dist/generated/shared-mail-response.js.map +1 -0
  14. package/dist/generated/types.gen.d.ts +1079 -1
  15. package/dist/generated/types.gen.d.ts.map +1 -1
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +1 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/shared-mail-response.d.ts +2 -0
  21. package/dist/shared-mail-response.d.ts.map +1 -0
  22. package/dist/shared-mail-response.js +2 -0
  23. package/dist/shared-mail-response.js.map +1 -0
  24. package/dist/shared-mail.d.ts +62 -0
  25. package/dist/shared-mail.d.ts.map +1 -0
  26. package/dist/shared-mail.js +125 -0
  27. package/dist/shared-mail.js.map +1 -0
  28. package/package.json +1 -1
  29. package/src/packages/sdk-ts/package.json +1 -1
  30. package/src/packages/sdk-ts/src/generated/index.ts +112 -0
  31. package/src/packages/sdk-ts/src/generated/sdk.gen.ts +870 -0
  32. package/src/packages/sdk-ts/src/generated/shared-mail-response.ts +238 -0
  33. package/src/packages/sdk-ts/src/generated/types.gen.ts +1208 -0
  34. package/src/packages/sdk-ts/src/index.ts +2 -0
  35. package/src/packages/sdk-ts/src/shared-mail-response.ts +1 -0
  36. package/src/packages/sdk-ts/src/shared-mail.ts +225 -0
@@ -4,6 +4,90 @@ export type ClientOptions = {
4
4
  baseUrl: "https://app.ohmyho.st" | "https://dev.app.ohmyho.st" | (string & {});
5
5
  };
6
6
 
7
+ export type WorkspaceMailDomain = {
8
+ domain_id: Ulid;
9
+ organization_id: Ulid;
10
+ domain: string;
11
+ registrable_domain: string;
12
+ revision: number;
13
+ status: "active" | "retiring" | "retired";
14
+ sending: "disabled" | "pending" | "ready" | "failed";
15
+ receiving: "disabled" | "pending" | "ready" | "failed";
16
+ configured_at: string;
17
+ observed_at: string | null;
18
+ dns_records: Array<ManagedMailDnsRecord>;
19
+ bindings_count: number;
20
+ };
21
+
22
+ export type WorkspaceMailDomainPage = {
23
+ items: Array<WorkspaceMailDomain>;
24
+ };
25
+
26
+ export type CreateWorkspaceMailDomainRequest = {
27
+ domain: string;
28
+ sending: true;
29
+ };
30
+
31
+ export type MailRevisionRequest = {
32
+ expected_revision: number;
33
+ };
34
+
35
+ export type SharedMailDnsAuthorizationRequest = {
36
+ expected_revision: number;
37
+ zone: string;
38
+ };
39
+
40
+ export type ProjectMailDomainBindingRequest = {
41
+ mail_domain_id: Ulid;
42
+ sending: boolean;
43
+ sender_addresses: Array<string>;
44
+ default_from: string;
45
+ default_reply_to: string | null;
46
+ expected_revision: number;
47
+ };
48
+
49
+ export type ApplicationDomainIdentitySummary = {
50
+ hostname: string;
51
+ registrable_domain: string;
52
+ revision: number;
53
+ status: "pending" | "verified" | "expired" | "revoked";
54
+ };
55
+
56
+ export type ProjectMailDomainBinding = {
57
+ mail_domain_id: Ulid;
58
+ organization_id: Ulid;
59
+ project_id: Ulid;
60
+ environment_id: Ulid;
61
+ revision: number;
62
+ sending: boolean;
63
+ sender_addresses: Array<string>;
64
+ default_from: string | null;
65
+ default_reply_to: string | null;
66
+ legacy: boolean;
67
+ status: "active" | "detached" | "suspended";
68
+ application_domain_identity: ApplicationDomainIdentitySummary | null;
69
+ };
70
+
71
+ export type ApplicationDomainIdentityRequest = {
72
+ hostname: string;
73
+ };
74
+
75
+ export type ApplicationDomainIdentity = {
76
+ organization_id: Ulid;
77
+ project_id: Ulid;
78
+ hostname: string;
79
+ registrable_domain: string;
80
+ status: "pending" | "verified" | "expired" | "revoked";
81
+ revision: number;
82
+ challenge: {
83
+ type: "TXT";
84
+ name: string;
85
+ value: string;
86
+ };
87
+ verified_at: string | null;
88
+ expires_at: string;
89
+ };
90
+
7
91
  export type ManagedMailDomainRequest = {
8
92
  domain: string;
9
93
  sending: boolean;
@@ -1485,6 +1569,7 @@ export type OperationFailure = {
1485
1569
  | "database_compute_rejected"
1486
1570
  | "database_migration_failed"
1487
1571
  | "insufficient_organization_credits"
1572
+ | "project_budget_exceeded"
1488
1573
  | "paid_plan_required"
1489
1574
  | "runtime_candidate_failed"
1490
1575
  | "runtime_candidate_rejected"
@@ -1704,6 +1789,1129 @@ export type ProjectFilter = Ulid;
1704
1789
  */
1705
1790
  export type OperationFilter = Ulid;
1706
1791
 
1792
+ export type ListWorkspaceMailDomainsData = {
1793
+ body?: never;
1794
+ headers?: {
1795
+ /**
1796
+ * Optional caller-provided correlation identifier.
1797
+ */
1798
+ "X-Request-Id"?: string;
1799
+ };
1800
+ path: {
1801
+ organization_id: Ulid;
1802
+ };
1803
+ query?: never;
1804
+ url: "/v1/organizations/{organization_id}/mail-domains";
1805
+ };
1806
+
1807
+ export type ListWorkspaceMailDomainsErrors = {
1808
+ /**
1809
+ * The request failed.
1810
+ */
1811
+ 400: ProblemDetails;
1812
+ /**
1813
+ * The request failed.
1814
+ */
1815
+ 401: ProblemDetails;
1816
+ /**
1817
+ * The request failed.
1818
+ */
1819
+ 402: ProblemDetails;
1820
+ /**
1821
+ * The request failed.
1822
+ */
1823
+ 403: ProblemDetails;
1824
+ /**
1825
+ * The request failed.
1826
+ */
1827
+ 404: ProblemDetails;
1828
+ /**
1829
+ * The request failed.
1830
+ */
1831
+ 409: ProblemDetails;
1832
+ /**
1833
+ * The request failed.
1834
+ */
1835
+ 429: ProblemDetails;
1836
+ /**
1837
+ * The request failed.
1838
+ */
1839
+ 503: ProblemDetails;
1840
+ };
1841
+
1842
+ export type ListWorkspaceMailDomainsError =
1843
+ ListWorkspaceMailDomainsErrors[keyof ListWorkspaceMailDomainsErrors];
1844
+
1845
+ export type ListWorkspaceMailDomainsResponses = {
1846
+ /**
1847
+ * Authorized exact resource result.
1848
+ */
1849
+ 200: WorkspaceMailDomainPage;
1850
+ };
1851
+
1852
+ export type ListWorkspaceMailDomainsResponse =
1853
+ ListWorkspaceMailDomainsResponses[keyof ListWorkspaceMailDomainsResponses];
1854
+
1855
+ export type CreateWorkspaceMailDomainData = {
1856
+ body: CreateWorkspaceMailDomainRequest;
1857
+ headers: {
1858
+ /**
1859
+ * Optional caller-provided correlation identifier.
1860
+ */
1861
+ "X-Request-Id"?: string;
1862
+ /**
1863
+ * Identifies one mutation and its canonical request payload.
1864
+ */
1865
+ "Idempotency-Key": string;
1866
+ };
1867
+ path: {
1868
+ organization_id: Ulid;
1869
+ };
1870
+ query?: never;
1871
+ url: "/v1/organizations/{organization_id}/mail-domains";
1872
+ };
1873
+
1874
+ export type CreateWorkspaceMailDomainErrors = {
1875
+ /**
1876
+ * The request failed.
1877
+ */
1878
+ 400: ProblemDetails;
1879
+ /**
1880
+ * The request failed.
1881
+ */
1882
+ 401: ProblemDetails;
1883
+ /**
1884
+ * The request failed.
1885
+ */
1886
+ 402: ProblemDetails;
1887
+ /**
1888
+ * The request failed.
1889
+ */
1890
+ 403: ProblemDetails;
1891
+ /**
1892
+ * The request failed.
1893
+ */
1894
+ 404: ProblemDetails;
1895
+ /**
1896
+ * The request failed.
1897
+ */
1898
+ 409: ProblemDetails;
1899
+ /**
1900
+ * The request failed.
1901
+ */
1902
+ 429: ProblemDetails;
1903
+ /**
1904
+ * The request failed.
1905
+ */
1906
+ 503: ProblemDetails;
1907
+ };
1908
+
1909
+ export type CreateWorkspaceMailDomainError =
1910
+ CreateWorkspaceMailDomainErrors[keyof CreateWorkspaceMailDomainErrors];
1911
+
1912
+ export type CreateWorkspaceMailDomainResponses = {
1913
+ /**
1914
+ * Authorized exact resource result.
1915
+ */
1916
+ 200: WorkspaceMailDomain;
1917
+ };
1918
+
1919
+ export type CreateWorkspaceMailDomainResponse =
1920
+ CreateWorkspaceMailDomainResponses[keyof CreateWorkspaceMailDomainResponses];
1921
+
1922
+ export type RetireWorkspaceMailDomainData = {
1923
+ body: MailRevisionRequest;
1924
+ headers: {
1925
+ /**
1926
+ * Optional caller-provided correlation identifier.
1927
+ */
1928
+ "X-Request-Id"?: string;
1929
+ /**
1930
+ * Identifies one mutation and its canonical request payload.
1931
+ */
1932
+ "Idempotency-Key": string;
1933
+ };
1934
+ path: {
1935
+ organization_id: Ulid;
1936
+ mail_domain_id: Ulid;
1937
+ };
1938
+ query?: never;
1939
+ url: "/v1/organizations/{organization_id}/mail-domains/{mail_domain_id}";
1940
+ };
1941
+
1942
+ export type RetireWorkspaceMailDomainErrors = {
1943
+ /**
1944
+ * The request failed.
1945
+ */
1946
+ 400: ProblemDetails;
1947
+ /**
1948
+ * The request failed.
1949
+ */
1950
+ 401: ProblemDetails;
1951
+ /**
1952
+ * The request failed.
1953
+ */
1954
+ 402: ProblemDetails;
1955
+ /**
1956
+ * The request failed.
1957
+ */
1958
+ 403: ProblemDetails;
1959
+ /**
1960
+ * The request failed.
1961
+ */
1962
+ 404: ProblemDetails;
1963
+ /**
1964
+ * The request failed.
1965
+ */
1966
+ 409: ProblemDetails;
1967
+ /**
1968
+ * The request failed.
1969
+ */
1970
+ 429: ProblemDetails;
1971
+ /**
1972
+ * The request failed.
1973
+ */
1974
+ 503: ProblemDetails;
1975
+ };
1976
+
1977
+ export type RetireWorkspaceMailDomainError =
1978
+ RetireWorkspaceMailDomainErrors[keyof RetireWorkspaceMailDomainErrors];
1979
+
1980
+ export type RetireWorkspaceMailDomainResponses = {
1981
+ /**
1982
+ * Authorized exact resource result.
1983
+ */
1984
+ 200: WorkspaceMailDomain;
1985
+ };
1986
+
1987
+ export type RetireWorkspaceMailDomainResponse =
1988
+ RetireWorkspaceMailDomainResponses[keyof RetireWorkspaceMailDomainResponses];
1989
+
1990
+ export type GetWorkspaceMailDomainData = {
1991
+ body?: never;
1992
+ headers?: {
1993
+ /**
1994
+ * Optional caller-provided correlation identifier.
1995
+ */
1996
+ "X-Request-Id"?: string;
1997
+ };
1998
+ path: {
1999
+ organization_id: Ulid;
2000
+ mail_domain_id: Ulid;
2001
+ };
2002
+ query?: never;
2003
+ url: "/v1/organizations/{organization_id}/mail-domains/{mail_domain_id}";
2004
+ };
2005
+
2006
+ export type GetWorkspaceMailDomainErrors = {
2007
+ /**
2008
+ * The request failed.
2009
+ */
2010
+ 400: ProblemDetails;
2011
+ /**
2012
+ * The request failed.
2013
+ */
2014
+ 401: ProblemDetails;
2015
+ /**
2016
+ * The request failed.
2017
+ */
2018
+ 402: ProblemDetails;
2019
+ /**
2020
+ * The request failed.
2021
+ */
2022
+ 403: ProblemDetails;
2023
+ /**
2024
+ * The request failed.
2025
+ */
2026
+ 404: ProblemDetails;
2027
+ /**
2028
+ * The request failed.
2029
+ */
2030
+ 409: ProblemDetails;
2031
+ /**
2032
+ * The request failed.
2033
+ */
2034
+ 429: ProblemDetails;
2035
+ /**
2036
+ * The request failed.
2037
+ */
2038
+ 503: ProblemDetails;
2039
+ };
2040
+
2041
+ export type GetWorkspaceMailDomainError =
2042
+ GetWorkspaceMailDomainErrors[keyof GetWorkspaceMailDomainErrors];
2043
+
2044
+ export type GetWorkspaceMailDomainResponses = {
2045
+ /**
2046
+ * Authorized exact resource result.
2047
+ */
2048
+ 200: WorkspaceMailDomain;
2049
+ };
2050
+
2051
+ export type GetWorkspaceMailDomainResponse =
2052
+ GetWorkspaceMailDomainResponses[keyof GetWorkspaceMailDomainResponses];
2053
+
2054
+ export type RevokeWorkspaceMailDomainDnsAuthorizationData = {
2055
+ body: MailRevisionRequest;
2056
+ headers: {
2057
+ /**
2058
+ * Optional caller-provided correlation identifier.
2059
+ */
2060
+ "X-Request-Id"?: string;
2061
+ /**
2062
+ * Identifies one mutation and its canonical request payload.
2063
+ */
2064
+ "Idempotency-Key": string;
2065
+ };
2066
+ path: {
2067
+ organization_id: Ulid;
2068
+ mail_domain_id: Ulid;
2069
+ };
2070
+ query?: never;
2071
+ url: "/v1/organizations/{organization_id}/mail-domains/{mail_domain_id}/dns-authorization";
2072
+ };
2073
+
2074
+ export type RevokeWorkspaceMailDomainDnsAuthorizationErrors = {
2075
+ /**
2076
+ * The request failed.
2077
+ */
2078
+ 400: ProblemDetails;
2079
+ /**
2080
+ * The request failed.
2081
+ */
2082
+ 401: ProblemDetails;
2083
+ /**
2084
+ * The request failed.
2085
+ */
2086
+ 402: ProblemDetails;
2087
+ /**
2088
+ * The request failed.
2089
+ */
2090
+ 403: ProblemDetails;
2091
+ /**
2092
+ * The request failed.
2093
+ */
2094
+ 404: ProblemDetails;
2095
+ /**
2096
+ * The request failed.
2097
+ */
2098
+ 409: ProblemDetails;
2099
+ /**
2100
+ * The request failed.
2101
+ */
2102
+ 429: ProblemDetails;
2103
+ /**
2104
+ * The request failed.
2105
+ */
2106
+ 503: ProblemDetails;
2107
+ };
2108
+
2109
+ export type RevokeWorkspaceMailDomainDnsAuthorizationError =
2110
+ RevokeWorkspaceMailDomainDnsAuthorizationErrors[keyof RevokeWorkspaceMailDomainDnsAuthorizationErrors];
2111
+
2112
+ export type RevokeWorkspaceMailDomainDnsAuthorizationResponses = {
2113
+ /**
2114
+ * Authorized exact resource result.
2115
+ */
2116
+ 200: CloudflareDnsAuthorizationStatus;
2117
+ };
2118
+
2119
+ export type RevokeWorkspaceMailDomainDnsAuthorizationResponse =
2120
+ RevokeWorkspaceMailDomainDnsAuthorizationResponses[keyof RevokeWorkspaceMailDomainDnsAuthorizationResponses];
2121
+
2122
+ export type GetWorkspaceMailDomainDnsAuthorizationData = {
2123
+ body?: never;
2124
+ headers?: {
2125
+ /**
2126
+ * Optional caller-provided correlation identifier.
2127
+ */
2128
+ "X-Request-Id"?: string;
2129
+ };
2130
+ path: {
2131
+ organization_id: Ulid;
2132
+ mail_domain_id: Ulid;
2133
+ };
2134
+ query?: never;
2135
+ url: "/v1/organizations/{organization_id}/mail-domains/{mail_domain_id}/dns-authorization";
2136
+ };
2137
+
2138
+ export type GetWorkspaceMailDomainDnsAuthorizationErrors = {
2139
+ /**
2140
+ * The request failed.
2141
+ */
2142
+ 400: ProblemDetails;
2143
+ /**
2144
+ * The request failed.
2145
+ */
2146
+ 401: ProblemDetails;
2147
+ /**
2148
+ * The request failed.
2149
+ */
2150
+ 402: ProblemDetails;
2151
+ /**
2152
+ * The request failed.
2153
+ */
2154
+ 403: ProblemDetails;
2155
+ /**
2156
+ * The request failed.
2157
+ */
2158
+ 404: ProblemDetails;
2159
+ /**
2160
+ * The request failed.
2161
+ */
2162
+ 409: ProblemDetails;
2163
+ /**
2164
+ * The request failed.
2165
+ */
2166
+ 429: ProblemDetails;
2167
+ /**
2168
+ * The request failed.
2169
+ */
2170
+ 503: ProblemDetails;
2171
+ };
2172
+
2173
+ export type GetWorkspaceMailDomainDnsAuthorizationError =
2174
+ GetWorkspaceMailDomainDnsAuthorizationErrors[keyof GetWorkspaceMailDomainDnsAuthorizationErrors];
2175
+
2176
+ export type GetWorkspaceMailDomainDnsAuthorizationResponses = {
2177
+ /**
2178
+ * Authorized exact resource result.
2179
+ */
2180
+ 200: CloudflareDnsAuthorizationStatus;
2181
+ };
2182
+
2183
+ export type GetWorkspaceMailDomainDnsAuthorizationResponse =
2184
+ GetWorkspaceMailDomainDnsAuthorizationResponses[keyof GetWorkspaceMailDomainDnsAuthorizationResponses];
2185
+
2186
+ export type AuthorizeWorkspaceMailDomainDnsData = {
2187
+ body: SharedMailDnsAuthorizationRequest;
2188
+ headers: {
2189
+ /**
2190
+ * Optional caller-provided correlation identifier.
2191
+ */
2192
+ "X-Request-Id"?: string;
2193
+ /**
2194
+ * Identifies one mutation and its canonical request payload.
2195
+ */
2196
+ "Idempotency-Key": string;
2197
+ };
2198
+ path: {
2199
+ organization_id: Ulid;
2200
+ mail_domain_id: Ulid;
2201
+ };
2202
+ query?: never;
2203
+ url: "/v1/organizations/{organization_id}/mail-domains/{mail_domain_id}/dns-authorization";
2204
+ };
2205
+
2206
+ export type AuthorizeWorkspaceMailDomainDnsErrors = {
2207
+ /**
2208
+ * The request failed.
2209
+ */
2210
+ 400: ProblemDetails;
2211
+ /**
2212
+ * The request failed.
2213
+ */
2214
+ 401: ProblemDetails;
2215
+ /**
2216
+ * The request failed.
2217
+ */
2218
+ 402: ProblemDetails;
2219
+ /**
2220
+ * The request failed.
2221
+ */
2222
+ 403: ProblemDetails;
2223
+ /**
2224
+ * The request failed.
2225
+ */
2226
+ 404: ProblemDetails;
2227
+ /**
2228
+ * The request failed.
2229
+ */
2230
+ 409: ProblemDetails;
2231
+ /**
2232
+ * The request failed.
2233
+ */
2234
+ 429: ProblemDetails;
2235
+ /**
2236
+ * The request failed.
2237
+ */
2238
+ 503: ProblemDetails;
2239
+ };
2240
+
2241
+ export type AuthorizeWorkspaceMailDomainDnsError =
2242
+ AuthorizeWorkspaceMailDomainDnsErrors[keyof AuthorizeWorkspaceMailDomainDnsErrors];
2243
+
2244
+ export type AuthorizeWorkspaceMailDomainDnsResponses = {
2245
+ /**
2246
+ * Authorized exact resource result.
2247
+ */
2248
+ 200: CloudflareDnsAuthorization;
2249
+ };
2250
+
2251
+ export type AuthorizeWorkspaceMailDomainDnsResponse =
2252
+ AuthorizeWorkspaceMailDomainDnsResponses[keyof AuthorizeWorkspaceMailDomainDnsResponses];
2253
+
2254
+ export type DetachProjectMailDomainBindingData = {
2255
+ body: MailRevisionRequest;
2256
+ headers: {
2257
+ /**
2258
+ * Optional caller-provided correlation identifier.
2259
+ */
2260
+ "X-Request-Id"?: string;
2261
+ /**
2262
+ * Identifies one mutation and its canonical request payload.
2263
+ */
2264
+ "Idempotency-Key": string;
2265
+ };
2266
+ path: {
2267
+ project_id: Ulid;
2268
+ environment_id: Ulid;
2269
+ };
2270
+ query?: never;
2271
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain-binding";
2272
+ };
2273
+
2274
+ export type DetachProjectMailDomainBindingErrors = {
2275
+ /**
2276
+ * The request failed.
2277
+ */
2278
+ 400: ProblemDetails;
2279
+ /**
2280
+ * The request failed.
2281
+ */
2282
+ 401: ProblemDetails;
2283
+ /**
2284
+ * The request failed.
2285
+ */
2286
+ 402: ProblemDetails;
2287
+ /**
2288
+ * The request failed.
2289
+ */
2290
+ 403: ProblemDetails;
2291
+ /**
2292
+ * The request failed.
2293
+ */
2294
+ 404: ProblemDetails;
2295
+ /**
2296
+ * The request failed.
2297
+ */
2298
+ 409: ProblemDetails;
2299
+ /**
2300
+ * The request failed.
2301
+ */
2302
+ 429: ProblemDetails;
2303
+ /**
2304
+ * The request failed.
2305
+ */
2306
+ 503: ProblemDetails;
2307
+ };
2308
+
2309
+ export type DetachProjectMailDomainBindingError =
2310
+ DetachProjectMailDomainBindingErrors[keyof DetachProjectMailDomainBindingErrors];
2311
+
2312
+ export type DetachProjectMailDomainBindingResponses = {
2313
+ /**
2314
+ * Authorized exact resource result.
2315
+ */
2316
+ 200: ProjectMailDomainBinding;
2317
+ };
2318
+
2319
+ export type DetachProjectMailDomainBindingResponse =
2320
+ DetachProjectMailDomainBindingResponses[keyof DetachProjectMailDomainBindingResponses];
2321
+
2322
+ export type GetProjectMailDomainBindingData = {
2323
+ body?: never;
2324
+ headers?: {
2325
+ /**
2326
+ * Optional caller-provided correlation identifier.
2327
+ */
2328
+ "X-Request-Id"?: string;
2329
+ };
2330
+ path: {
2331
+ project_id: Ulid;
2332
+ environment_id: Ulid;
2333
+ };
2334
+ query?: never;
2335
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain-binding";
2336
+ };
2337
+
2338
+ export type GetProjectMailDomainBindingErrors = {
2339
+ /**
2340
+ * The request failed.
2341
+ */
2342
+ 400: ProblemDetails;
2343
+ /**
2344
+ * The request failed.
2345
+ */
2346
+ 401: ProblemDetails;
2347
+ /**
2348
+ * The request failed.
2349
+ */
2350
+ 402: ProblemDetails;
2351
+ /**
2352
+ * The request failed.
2353
+ */
2354
+ 403: ProblemDetails;
2355
+ /**
2356
+ * The request failed.
2357
+ */
2358
+ 404: ProblemDetails;
2359
+ /**
2360
+ * The request failed.
2361
+ */
2362
+ 409: ProblemDetails;
2363
+ /**
2364
+ * The request failed.
2365
+ */
2366
+ 429: ProblemDetails;
2367
+ /**
2368
+ * The request failed.
2369
+ */
2370
+ 503: ProblemDetails;
2371
+ };
2372
+
2373
+ export type GetProjectMailDomainBindingError =
2374
+ GetProjectMailDomainBindingErrors[keyof GetProjectMailDomainBindingErrors];
2375
+
2376
+ export type GetProjectMailDomainBindingResponses = {
2377
+ /**
2378
+ * Authorized exact resource result.
2379
+ */
2380
+ 200: ProjectMailDomainBinding;
2381
+ };
2382
+
2383
+ export type GetProjectMailDomainBindingResponse =
2384
+ GetProjectMailDomainBindingResponses[keyof GetProjectMailDomainBindingResponses];
2385
+
2386
+ export type PutProjectMailDomainBindingData = {
2387
+ body: ProjectMailDomainBindingRequest;
2388
+ headers: {
2389
+ /**
2390
+ * Optional caller-provided correlation identifier.
2391
+ */
2392
+ "X-Request-Id"?: string;
2393
+ /**
2394
+ * Identifies one mutation and its canonical request payload.
2395
+ */
2396
+ "Idempotency-Key": string;
2397
+ };
2398
+ path: {
2399
+ project_id: Ulid;
2400
+ environment_id: Ulid;
2401
+ };
2402
+ query?: never;
2403
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain-binding";
2404
+ };
2405
+
2406
+ export type PutProjectMailDomainBindingErrors = {
2407
+ /**
2408
+ * The request failed.
2409
+ */
2410
+ 400: ProblemDetails;
2411
+ /**
2412
+ * The request failed.
2413
+ */
2414
+ 401: ProblemDetails;
2415
+ /**
2416
+ * The request failed.
2417
+ */
2418
+ 402: ProblemDetails;
2419
+ /**
2420
+ * The request failed.
2421
+ */
2422
+ 403: ProblemDetails;
2423
+ /**
2424
+ * The request failed.
2425
+ */
2426
+ 404: ProblemDetails;
2427
+ /**
2428
+ * The request failed.
2429
+ */
2430
+ 409: ProblemDetails;
2431
+ /**
2432
+ * The request failed.
2433
+ */
2434
+ 429: ProblemDetails;
2435
+ /**
2436
+ * The request failed.
2437
+ */
2438
+ 503: ProblemDetails;
2439
+ };
2440
+
2441
+ export type PutProjectMailDomainBindingError =
2442
+ PutProjectMailDomainBindingErrors[keyof PutProjectMailDomainBindingErrors];
2443
+
2444
+ export type PutProjectMailDomainBindingResponses = {
2445
+ /**
2446
+ * Authorized exact resource result.
2447
+ */
2448
+ 200: ProjectMailDomainBinding;
2449
+ };
2450
+
2451
+ export type PutProjectMailDomainBindingResponse =
2452
+ PutProjectMailDomainBindingResponses[keyof PutProjectMailDomainBindingResponses];
2453
+
2454
+ export type RevokeApplicationDomainIdentityData = {
2455
+ body: MailRevisionRequest;
2456
+ headers: {
2457
+ /**
2458
+ * Optional caller-provided correlation identifier.
2459
+ */
2460
+ "X-Request-Id"?: string;
2461
+ /**
2462
+ * Identifies one mutation and its canonical request payload.
2463
+ */
2464
+ "Idempotency-Key": string;
2465
+ };
2466
+ path: {
2467
+ project_id: Ulid;
2468
+ };
2469
+ query?: never;
2470
+ url: "/v1/projects/{project_id}/application-domain-identity";
2471
+ };
2472
+
2473
+ export type RevokeApplicationDomainIdentityErrors = {
2474
+ /**
2475
+ * The request failed.
2476
+ */
2477
+ 400: ProblemDetails;
2478
+ /**
2479
+ * The request failed.
2480
+ */
2481
+ 401: ProblemDetails;
2482
+ /**
2483
+ * The request failed.
2484
+ */
2485
+ 402: ProblemDetails;
2486
+ /**
2487
+ * The request failed.
2488
+ */
2489
+ 403: ProblemDetails;
2490
+ /**
2491
+ * The request failed.
2492
+ */
2493
+ 404: ProblemDetails;
2494
+ /**
2495
+ * The request failed.
2496
+ */
2497
+ 409: ProblemDetails;
2498
+ /**
2499
+ * The request failed.
2500
+ */
2501
+ 429: ProblemDetails;
2502
+ /**
2503
+ * The request failed.
2504
+ */
2505
+ 503: ProblemDetails;
2506
+ };
2507
+
2508
+ export type RevokeApplicationDomainIdentityError =
2509
+ RevokeApplicationDomainIdentityErrors[keyof RevokeApplicationDomainIdentityErrors];
2510
+
2511
+ export type RevokeApplicationDomainIdentityResponses = {
2512
+ /**
2513
+ * Authorized exact resource result.
2514
+ */
2515
+ 200: ApplicationDomainIdentity;
2516
+ };
2517
+
2518
+ export type RevokeApplicationDomainIdentityResponse =
2519
+ RevokeApplicationDomainIdentityResponses[keyof RevokeApplicationDomainIdentityResponses];
2520
+
2521
+ export type GetApplicationDomainIdentityData = {
2522
+ body?: never;
2523
+ headers?: {
2524
+ /**
2525
+ * Optional caller-provided correlation identifier.
2526
+ */
2527
+ "X-Request-Id"?: string;
2528
+ };
2529
+ path: {
2530
+ project_id: Ulid;
2531
+ };
2532
+ query?: never;
2533
+ url: "/v1/projects/{project_id}/application-domain-identity";
2534
+ };
2535
+
2536
+ export type GetApplicationDomainIdentityErrors = {
2537
+ /**
2538
+ * The request failed.
2539
+ */
2540
+ 400: ProblemDetails;
2541
+ /**
2542
+ * The request failed.
2543
+ */
2544
+ 401: ProblemDetails;
2545
+ /**
2546
+ * The request failed.
2547
+ */
2548
+ 402: ProblemDetails;
2549
+ /**
2550
+ * The request failed.
2551
+ */
2552
+ 403: ProblemDetails;
2553
+ /**
2554
+ * The request failed.
2555
+ */
2556
+ 404: ProblemDetails;
2557
+ /**
2558
+ * The request failed.
2559
+ */
2560
+ 409: ProblemDetails;
2561
+ /**
2562
+ * The request failed.
2563
+ */
2564
+ 429: ProblemDetails;
2565
+ /**
2566
+ * The request failed.
2567
+ */
2568
+ 503: ProblemDetails;
2569
+ };
2570
+
2571
+ export type GetApplicationDomainIdentityError =
2572
+ GetApplicationDomainIdentityErrors[keyof GetApplicationDomainIdentityErrors];
2573
+
2574
+ export type GetApplicationDomainIdentityResponses = {
2575
+ /**
2576
+ * Authorized exact resource result.
2577
+ */
2578
+ 200: ApplicationDomainIdentity;
2579
+ };
2580
+
2581
+ export type GetApplicationDomainIdentityResponse =
2582
+ GetApplicationDomainIdentityResponses[keyof GetApplicationDomainIdentityResponses];
2583
+
2584
+ export type DeclareApplicationDomainIdentityData = {
2585
+ body: ApplicationDomainIdentityRequest;
2586
+ headers: {
2587
+ /**
2588
+ * Optional caller-provided correlation identifier.
2589
+ */
2590
+ "X-Request-Id"?: string;
2591
+ /**
2592
+ * Identifies one mutation and its canonical request payload.
2593
+ */
2594
+ "Idempotency-Key": string;
2595
+ };
2596
+ path: {
2597
+ project_id: Ulid;
2598
+ };
2599
+ query?: never;
2600
+ url: "/v1/projects/{project_id}/application-domain-identity";
2601
+ };
2602
+
2603
+ export type DeclareApplicationDomainIdentityErrors = {
2604
+ /**
2605
+ * The request failed.
2606
+ */
2607
+ 400: ProblemDetails;
2608
+ /**
2609
+ * The request failed.
2610
+ */
2611
+ 401: ProblemDetails;
2612
+ /**
2613
+ * The request failed.
2614
+ */
2615
+ 402: ProblemDetails;
2616
+ /**
2617
+ * The request failed.
2618
+ */
2619
+ 403: ProblemDetails;
2620
+ /**
2621
+ * The request failed.
2622
+ */
2623
+ 404: ProblemDetails;
2624
+ /**
2625
+ * The request failed.
2626
+ */
2627
+ 409: ProblemDetails;
2628
+ /**
2629
+ * The request failed.
2630
+ */
2631
+ 429: ProblemDetails;
2632
+ /**
2633
+ * The request failed.
2634
+ */
2635
+ 503: ProblemDetails;
2636
+ };
2637
+
2638
+ export type DeclareApplicationDomainIdentityError =
2639
+ DeclareApplicationDomainIdentityErrors[keyof DeclareApplicationDomainIdentityErrors];
2640
+
2641
+ export type DeclareApplicationDomainIdentityResponses = {
2642
+ /**
2643
+ * Authorized exact resource result.
2644
+ */
2645
+ 200: ApplicationDomainIdentity;
2646
+ };
2647
+
2648
+ export type DeclareApplicationDomainIdentityResponse =
2649
+ DeclareApplicationDomainIdentityResponses[keyof DeclareApplicationDomainIdentityResponses];
2650
+
2651
+ export type VerifyApplicationDomainIdentityData = {
2652
+ body: MailRevisionRequest;
2653
+ headers: {
2654
+ /**
2655
+ * Optional caller-provided correlation identifier.
2656
+ */
2657
+ "X-Request-Id"?: string;
2658
+ /**
2659
+ * Identifies one mutation and its canonical request payload.
2660
+ */
2661
+ "Idempotency-Key": string;
2662
+ };
2663
+ path: {
2664
+ project_id: Ulid;
2665
+ };
2666
+ query?: never;
2667
+ url: "/v1/projects/{project_id}/application-domain-identity/verify";
2668
+ };
2669
+
2670
+ export type VerifyApplicationDomainIdentityErrors = {
2671
+ /**
2672
+ * The request failed.
2673
+ */
2674
+ 400: ProblemDetails;
2675
+ /**
2676
+ * The request failed.
2677
+ */
2678
+ 401: ProblemDetails;
2679
+ /**
2680
+ * The request failed.
2681
+ */
2682
+ 402: ProblemDetails;
2683
+ /**
2684
+ * The request failed.
2685
+ */
2686
+ 403: ProblemDetails;
2687
+ /**
2688
+ * The request failed.
2689
+ */
2690
+ 404: ProblemDetails;
2691
+ /**
2692
+ * The request failed.
2693
+ */
2694
+ 409: ProblemDetails;
2695
+ /**
2696
+ * The request failed.
2697
+ */
2698
+ 429: ProblemDetails;
2699
+ /**
2700
+ * The request failed.
2701
+ */
2702
+ 503: ProblemDetails;
2703
+ };
2704
+
2705
+ export type VerifyApplicationDomainIdentityError =
2706
+ VerifyApplicationDomainIdentityErrors[keyof VerifyApplicationDomainIdentityErrors];
2707
+
2708
+ export type VerifyApplicationDomainIdentityResponses = {
2709
+ /**
2710
+ * Authorized exact resource result.
2711
+ */
2712
+ 200: ApplicationDomainIdentity;
2713
+ };
2714
+
2715
+ export type VerifyApplicationDomainIdentityResponse =
2716
+ VerifyApplicationDomainIdentityResponses[keyof VerifyApplicationDomainIdentityResponses];
2717
+
2718
+ export type RevokeApplicationDomainIdentityDnsAuthorizationData = {
2719
+ body: MailRevisionRequest;
2720
+ headers: {
2721
+ /**
2722
+ * Optional caller-provided correlation identifier.
2723
+ */
2724
+ "X-Request-Id"?: string;
2725
+ /**
2726
+ * Identifies one mutation and its canonical request payload.
2727
+ */
2728
+ "Idempotency-Key": string;
2729
+ };
2730
+ path: {
2731
+ project_id: Ulid;
2732
+ };
2733
+ query?: never;
2734
+ url: "/v1/projects/{project_id}/application-domain-identity/dns-authorization";
2735
+ };
2736
+
2737
+ export type RevokeApplicationDomainIdentityDnsAuthorizationErrors = {
2738
+ /**
2739
+ * The request failed.
2740
+ */
2741
+ 400: ProblemDetails;
2742
+ /**
2743
+ * The request failed.
2744
+ */
2745
+ 401: ProblemDetails;
2746
+ /**
2747
+ * The request failed.
2748
+ */
2749
+ 402: ProblemDetails;
2750
+ /**
2751
+ * The request failed.
2752
+ */
2753
+ 403: ProblemDetails;
2754
+ /**
2755
+ * The request failed.
2756
+ */
2757
+ 404: ProblemDetails;
2758
+ /**
2759
+ * The request failed.
2760
+ */
2761
+ 409: ProblemDetails;
2762
+ /**
2763
+ * The request failed.
2764
+ */
2765
+ 429: ProblemDetails;
2766
+ /**
2767
+ * The request failed.
2768
+ */
2769
+ 503: ProblemDetails;
2770
+ };
2771
+
2772
+ export type RevokeApplicationDomainIdentityDnsAuthorizationError =
2773
+ RevokeApplicationDomainIdentityDnsAuthorizationErrors[keyof RevokeApplicationDomainIdentityDnsAuthorizationErrors];
2774
+
2775
+ export type RevokeApplicationDomainIdentityDnsAuthorizationResponses = {
2776
+ /**
2777
+ * Authorized exact resource result.
2778
+ */
2779
+ 200: CloudflareDnsAuthorizationStatus;
2780
+ };
2781
+
2782
+ export type RevokeApplicationDomainIdentityDnsAuthorizationResponse =
2783
+ RevokeApplicationDomainIdentityDnsAuthorizationResponses[keyof RevokeApplicationDomainIdentityDnsAuthorizationResponses];
2784
+
2785
+ export type GetApplicationDomainIdentityDnsAuthorizationData = {
2786
+ body?: never;
2787
+ headers?: {
2788
+ /**
2789
+ * Optional caller-provided correlation identifier.
2790
+ */
2791
+ "X-Request-Id"?: string;
2792
+ };
2793
+ path: {
2794
+ project_id: Ulid;
2795
+ };
2796
+ query?: never;
2797
+ url: "/v1/projects/{project_id}/application-domain-identity/dns-authorization";
2798
+ };
2799
+
2800
+ export type GetApplicationDomainIdentityDnsAuthorizationErrors = {
2801
+ /**
2802
+ * The request failed.
2803
+ */
2804
+ 400: ProblemDetails;
2805
+ /**
2806
+ * The request failed.
2807
+ */
2808
+ 401: ProblemDetails;
2809
+ /**
2810
+ * The request failed.
2811
+ */
2812
+ 402: ProblemDetails;
2813
+ /**
2814
+ * The request failed.
2815
+ */
2816
+ 403: ProblemDetails;
2817
+ /**
2818
+ * The request failed.
2819
+ */
2820
+ 404: ProblemDetails;
2821
+ /**
2822
+ * The request failed.
2823
+ */
2824
+ 409: ProblemDetails;
2825
+ /**
2826
+ * The request failed.
2827
+ */
2828
+ 429: ProblemDetails;
2829
+ /**
2830
+ * The request failed.
2831
+ */
2832
+ 503: ProblemDetails;
2833
+ };
2834
+
2835
+ export type GetApplicationDomainIdentityDnsAuthorizationError =
2836
+ GetApplicationDomainIdentityDnsAuthorizationErrors[keyof GetApplicationDomainIdentityDnsAuthorizationErrors];
2837
+
2838
+ export type GetApplicationDomainIdentityDnsAuthorizationResponses = {
2839
+ /**
2840
+ * Authorized exact resource result.
2841
+ */
2842
+ 200: CloudflareDnsAuthorizationStatus;
2843
+ };
2844
+
2845
+ export type GetApplicationDomainIdentityDnsAuthorizationResponse =
2846
+ GetApplicationDomainIdentityDnsAuthorizationResponses[keyof GetApplicationDomainIdentityDnsAuthorizationResponses];
2847
+
2848
+ export type AuthorizeApplicationDomainIdentityDnsData = {
2849
+ body: SharedMailDnsAuthorizationRequest;
2850
+ headers: {
2851
+ /**
2852
+ * Optional caller-provided correlation identifier.
2853
+ */
2854
+ "X-Request-Id"?: string;
2855
+ /**
2856
+ * Identifies one mutation and its canonical request payload.
2857
+ */
2858
+ "Idempotency-Key": string;
2859
+ };
2860
+ path: {
2861
+ project_id: Ulid;
2862
+ };
2863
+ query?: never;
2864
+ url: "/v1/projects/{project_id}/application-domain-identity/dns-authorization";
2865
+ };
2866
+
2867
+ export type AuthorizeApplicationDomainIdentityDnsErrors = {
2868
+ /**
2869
+ * The request failed.
2870
+ */
2871
+ 400: ProblemDetails;
2872
+ /**
2873
+ * The request failed.
2874
+ */
2875
+ 401: ProblemDetails;
2876
+ /**
2877
+ * The request failed.
2878
+ */
2879
+ 402: ProblemDetails;
2880
+ /**
2881
+ * The request failed.
2882
+ */
2883
+ 403: ProblemDetails;
2884
+ /**
2885
+ * The request failed.
2886
+ */
2887
+ 404: ProblemDetails;
2888
+ /**
2889
+ * The request failed.
2890
+ */
2891
+ 409: ProblemDetails;
2892
+ /**
2893
+ * The request failed.
2894
+ */
2895
+ 429: ProblemDetails;
2896
+ /**
2897
+ * The request failed.
2898
+ */
2899
+ 503: ProblemDetails;
2900
+ };
2901
+
2902
+ export type AuthorizeApplicationDomainIdentityDnsError =
2903
+ AuthorizeApplicationDomainIdentityDnsErrors[keyof AuthorizeApplicationDomainIdentityDnsErrors];
2904
+
2905
+ export type AuthorizeApplicationDomainIdentityDnsResponses = {
2906
+ /**
2907
+ * Authorized exact resource result.
2908
+ */
2909
+ 200: CloudflareDnsAuthorization;
2910
+ };
2911
+
2912
+ export type AuthorizeApplicationDomainIdentityDnsResponse =
2913
+ AuthorizeApplicationDomainIdentityDnsResponses[keyof AuthorizeApplicationDomainIdentityDnsResponses];
2914
+
1707
2915
  export type GetAccountProfileData = {
1708
2916
  body?: never;
1709
2917
  path?: never;