@amerged/ohmyhost-sdk 0.1.58 → 0.1.60

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,20 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: "https://app.ohmyho.st" | "https://dev.app.ohmyho.st" | (string & {});
3
3
  };
4
+ export type Preview = {
5
+ id: Ulid;
6
+ project_id: Ulid;
7
+ environment: "dev" | "prod";
8
+ status: "cold" | "starting" | "ready" | "sleeping";
9
+ /**
10
+ * Stable private capability URL without an expiration time.
11
+ */
12
+ url: string;
13
+ source: null | {
14
+ sequence: number;
15
+ commit_sha: string;
16
+ };
17
+ };
4
18
  export type NativeAuthConfiguration = {
5
19
  /**
6
20
  * Persistent Owner setting; source deployment cannot clear a pause.
@@ -1842,6 +1856,10 @@ export type DeploymentPlanWritable = {
1842
1856
  created_at: string;
1843
1857
  expires_at: string;
1844
1858
  };
1859
+ /**
1860
+ * The concrete project environment to preview.
1861
+ */
1862
+ export type PreviewEnvironment = "dev" | "prod";
1845
1863
  /**
1846
1864
  * Opaque continuation cursor returned by the preceding page.
1847
1865
  */
@@ -1962,6 +1980,230 @@ export type ProjectFilter = Ulid;
1962
1980
  * Restricts the page to one visible operation.
1963
1981
  */
1964
1982
  export type OperationFilter = Ulid;
1983
+ export type StopProjectPreviewData = {
1984
+ body?: never;
1985
+ headers: {
1986
+ /**
1987
+ * Optional caller-provided correlation identifier.
1988
+ */
1989
+ "X-Request-Id"?: string;
1990
+ /**
1991
+ * Identifies one mutation and its canonical request payload.
1992
+ */
1993
+ "Idempotency-Key": string;
1994
+ };
1995
+ path: {
1996
+ /**
1997
+ * Project identifier.
1998
+ */
1999
+ project_id: Ulid;
2000
+ };
2001
+ query: {
2002
+ /**
2003
+ * The concrete project environment to preview.
2004
+ */
2005
+ environment: "dev" | "prod";
2006
+ };
2007
+ url: "/v1/projects/{project_id}/preview";
2008
+ };
2009
+ export type StopProjectPreviewErrors = {
2010
+ /**
2011
+ * The request failed.
2012
+ */
2013
+ 400: ProblemDetails;
2014
+ /**
2015
+ * The request failed.
2016
+ */
2017
+ 401: ProblemDetails;
2018
+ /**
2019
+ * The resource does not exist or is not visible to the authenticated principal.
2020
+ */
2021
+ 404: ProblemDetails;
2022
+ /**
2023
+ * The request failed.
2024
+ */
2025
+ 409: ProblemDetails;
2026
+ /**
2027
+ * The request failed.
2028
+ */
2029
+ 429: ProblemDetails;
2030
+ /**
2031
+ * The request failed.
2032
+ */
2033
+ 503: ProblemDetails;
2034
+ };
2035
+ export type StopProjectPreviewError = StopProjectPreviewErrors[keyof StopProjectPreviewErrors];
2036
+ export type StopProjectPreviewResponses = {
2037
+ /**
2038
+ * The authorized preview and its private capability URL. Do not cache or publish the URL.
2039
+ */
2040
+ 200: Preview;
2041
+ };
2042
+ export type StopProjectPreviewResponse = StopProjectPreviewResponses[keyof StopProjectPreviewResponses];
2043
+ export type GetProjectPreviewData = {
2044
+ body?: never;
2045
+ headers?: {
2046
+ /**
2047
+ * Optional caller-provided correlation identifier.
2048
+ */
2049
+ "X-Request-Id"?: string;
2050
+ };
2051
+ path: {
2052
+ /**
2053
+ * Project identifier.
2054
+ */
2055
+ project_id: Ulid;
2056
+ };
2057
+ query: {
2058
+ /**
2059
+ * The concrete project environment to preview.
2060
+ */
2061
+ environment: "dev" | "prod";
2062
+ };
2063
+ url: "/v1/projects/{project_id}/preview";
2064
+ };
2065
+ export type GetProjectPreviewErrors = {
2066
+ /**
2067
+ * The request failed.
2068
+ */
2069
+ 400: ProblemDetails;
2070
+ /**
2071
+ * The request failed.
2072
+ */
2073
+ 401: ProblemDetails;
2074
+ /**
2075
+ * The resource does not exist or is not visible to the authenticated principal.
2076
+ */
2077
+ 404: ProblemDetails;
2078
+ /**
2079
+ * The request failed.
2080
+ */
2081
+ 429: ProblemDetails;
2082
+ /**
2083
+ * The request failed.
2084
+ */
2085
+ 503: ProblemDetails;
2086
+ };
2087
+ export type GetProjectPreviewError = GetProjectPreviewErrors[keyof GetProjectPreviewErrors];
2088
+ export type GetProjectPreviewResponses = {
2089
+ /**
2090
+ * The authorized preview and its private capability URL. Do not cache or publish the URL.
2091
+ */
2092
+ 200: Preview;
2093
+ };
2094
+ export type GetProjectPreviewResponse = GetProjectPreviewResponses[keyof GetProjectPreviewResponses];
2095
+ export type OpenProjectPreviewData = {
2096
+ body?: never;
2097
+ headers?: {
2098
+ /**
2099
+ * Optional caller-provided correlation identifier.
2100
+ */
2101
+ "X-Request-Id"?: string;
2102
+ };
2103
+ path: {
2104
+ /**
2105
+ * Project identifier.
2106
+ */
2107
+ project_id: Ulid;
2108
+ };
2109
+ query: {
2110
+ /**
2111
+ * The concrete project environment to preview.
2112
+ */
2113
+ environment: "dev" | "prod";
2114
+ };
2115
+ url: "/v1/projects/{project_id}/preview";
2116
+ };
2117
+ export type OpenProjectPreviewErrors = {
2118
+ /**
2119
+ * The request failed.
2120
+ */
2121
+ 400: ProblemDetails;
2122
+ /**
2123
+ * The request failed.
2124
+ */
2125
+ 401: ProblemDetails;
2126
+ /**
2127
+ * The resource does not exist or is not visible to the authenticated principal.
2128
+ */
2129
+ 404: ProblemDetails;
2130
+ /**
2131
+ * The request failed.
2132
+ */
2133
+ 429: ProblemDetails;
2134
+ /**
2135
+ * The request failed.
2136
+ */
2137
+ 503: ProblemDetails;
2138
+ };
2139
+ export type OpenProjectPreviewError = OpenProjectPreviewErrors[keyof OpenProjectPreviewErrors];
2140
+ export type OpenProjectPreviewResponses = {
2141
+ /**
2142
+ * The authorized preview and its private capability URL. Do not cache or publish the URL.
2143
+ */
2144
+ 200: Preview;
2145
+ };
2146
+ export type OpenProjectPreviewResponse = OpenProjectPreviewResponses[keyof OpenProjectPreviewResponses];
2147
+ export type RotateProjectPreviewTokenData = {
2148
+ body?: never;
2149
+ headers: {
2150
+ /**
2151
+ * Optional caller-provided correlation identifier.
2152
+ */
2153
+ "X-Request-Id"?: string;
2154
+ /**
2155
+ * Identifies one mutation and its canonical request payload.
2156
+ */
2157
+ "Idempotency-Key": string;
2158
+ };
2159
+ path: {
2160
+ /**
2161
+ * Project identifier.
2162
+ */
2163
+ project_id: Ulid;
2164
+ };
2165
+ query: {
2166
+ /**
2167
+ * The concrete project environment to preview.
2168
+ */
2169
+ environment: "dev" | "prod";
2170
+ };
2171
+ url: "/v1/projects/{project_id}/preview/token";
2172
+ };
2173
+ export type RotateProjectPreviewTokenErrors = {
2174
+ /**
2175
+ * The request failed.
2176
+ */
2177
+ 400: ProblemDetails;
2178
+ /**
2179
+ * The request failed.
2180
+ */
2181
+ 401: ProblemDetails;
2182
+ /**
2183
+ * The resource does not exist or is not visible to the authenticated principal.
2184
+ */
2185
+ 404: ProblemDetails;
2186
+ /**
2187
+ * The request failed.
2188
+ */
2189
+ 409: ProblemDetails;
2190
+ /**
2191
+ * The request failed.
2192
+ */
2193
+ 429: ProblemDetails;
2194
+ /**
2195
+ * The request failed.
2196
+ */
2197
+ 503: ProblemDetails;
2198
+ };
2199
+ export type RotateProjectPreviewTokenError = RotateProjectPreviewTokenErrors[keyof RotateProjectPreviewTokenErrors];
2200
+ export type RotateProjectPreviewTokenResponses = {
2201
+ /**
2202
+ * The authorized preview and its private capability URL. Do not cache or publish the URL.
2203
+ */
2204
+ 200: Preview;
2205
+ };
2206
+ export type RotateProjectPreviewTokenResponse = RotateProjectPreviewTokenResponses[keyof RotateProjectPreviewTokenResponses];
1965
2207
  export type GetNativeAuthConfigurationData = {
1966
2208
  body?: never;
1967
2209
  headers?: {