@fern-api/venus-api-sdk 5.3.0 → 5.5.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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
46
- "X-Fern-SDK-Version": "5.3.0",
47
- "User-Agent": "@fern-api/venus-api-sdk/5.3.0",
46
+ "X-Fern-SDK-Version": "5.5.0",
47
+ "User-Agent": "@fern-api/venus-api-sdk/5.5.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -43,4 +43,26 @@ export declare class FernVenusApiClient {
43
43
  */
44
44
  healthHealthGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernVenusApi.healthHealthGet.Error>>;
45
45
  private __healthHealthGet;
46
+ /**
47
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
48
+ *
49
+ * @example
50
+ * await client.pingPingGet()
51
+ */
52
+ pingPingGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<string, FernVenusApi.pingPingGet.Error>>;
53
+ private __pingPingGet;
54
+ /**
55
+ * RDS smoke check: ping each configured RDS engine.
56
+ *
57
+ * Returns 200 only if every configured RDS engine answers ``SELECT 1``;
58
+ * 503 if any engine is unhealthy. Returns 200 with ``configured: false``
59
+ * when no RDS engines are configured.
60
+ *
61
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @example
64
+ * await client.healthRdsHealthRdsGet()
65
+ */
66
+ healthRdsHealthRdsGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernVenusApi.healthRdsHealthRdsGet.Error>>;
67
+ private __healthRdsHealthRdsGet;
46
68
  }
@@ -171,5 +171,104 @@ class FernVenusApiClient {
171
171
  };
172
172
  });
173
173
  }
174
+ /**
175
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
176
+ *
177
+ * @example
178
+ * await client.pingPingGet()
179
+ */
180
+ pingPingGet(requestOptions) {
181
+ return core.HttpResponsePromise.fromPromise(this.__pingPingGet(requestOptions));
182
+ }
183
+ __pingPingGet(requestOptions) {
184
+ return __awaiter(this, void 0, void 0, function* () {
185
+ var _a, _b, _c, _d, _e, _f, _g, _h;
186
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
187
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
188
+ const _response = yield core.fetcher({
189
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "ping"),
190
+ method: "GET",
191
+ headers: _headers,
192
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
193
+ responseType: "text",
194
+ timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
195
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
196
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
197
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
198
+ logging: this._options.logging,
199
+ });
200
+ if (_response.ok) {
201
+ return {
202
+ data: {
203
+ ok: true,
204
+ body: _response.body,
205
+ headers: _response.headers,
206
+ rawResponse: _response.rawResponse,
207
+ },
208
+ rawResponse: _response.rawResponse,
209
+ };
210
+ }
211
+ return {
212
+ data: {
213
+ ok: false,
214
+ error: FernVenusApi.pingPingGet.Error._unknown(_response.error),
215
+ rawResponse: _response.rawResponse,
216
+ },
217
+ rawResponse: _response.rawResponse,
218
+ };
219
+ });
220
+ }
221
+ /**
222
+ * RDS smoke check: ping each configured RDS engine.
223
+ *
224
+ * Returns 200 only if every configured RDS engine answers ``SELECT 1``;
225
+ * 503 if any engine is unhealthy. Returns 200 with ``configured: false``
226
+ * when no RDS engines are configured.
227
+ *
228
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
229
+ *
230
+ * @example
231
+ * await client.healthRdsHealthRdsGet()
232
+ */
233
+ healthRdsHealthRdsGet(requestOptions) {
234
+ return core.HttpResponsePromise.fromPromise(this.__healthRdsHealthRdsGet(requestOptions));
235
+ }
236
+ __healthRdsHealthRdsGet(requestOptions) {
237
+ return __awaiter(this, void 0, void 0, function* () {
238
+ var _a, _b, _c, _d, _e, _f, _g, _h;
239
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
240
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
241
+ const _response = yield core.fetcher({
242
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "health/rds"),
243
+ method: "GET",
244
+ headers: _headers,
245
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
246
+ timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
247
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
248
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
249
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
250
+ logging: this._options.logging,
251
+ });
252
+ if (_response.ok) {
253
+ return {
254
+ data: {
255
+ ok: true,
256
+ body: _response.body,
257
+ headers: _response.headers,
258
+ rawResponse: _response.rawResponse,
259
+ },
260
+ rawResponse: _response.rawResponse,
261
+ };
262
+ }
263
+ return {
264
+ data: {
265
+ ok: false,
266
+ error: FernVenusApi.healthRdsHealthRdsGet.Error._unknown(_response.error),
267
+ rawResponse: _response.rawResponse,
268
+ },
269
+ rawResponse: _response.rawResponse,
270
+ };
271
+ });
272
+ }
174
273
  }
175
274
  exports.FernVenusApiClient = FernVenusApiClient;
@@ -0,0 +1,19 @@
1
+ import type * as core from "../../core/index.js";
2
+ import * as FernVenusApi from "../index.js";
3
+ export type Error = FernVenusApi.healthRdsHealthRdsGet.Error._Unknown;
4
+ export declare namespace Error {
5
+ interface _Unknown extends _Utils {
6
+ statusCode: void;
7
+ content: core.Fetcher.Error;
8
+ }
9
+ interface _Utils {
10
+ _visit: <_Result>(visitor: FernVenusApi.healthRdsHealthRdsGet.Error._Visitor<_Result>) => _Result;
11
+ }
12
+ interface _Visitor<_Result> {
13
+ _other: (value: core.Fetcher.Error) => _Result;
14
+ }
15
+ }
16
+ export declare const Error: {
17
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.healthRdsHealthRdsGet.Error._Unknown;
18
+ readonly _visit: <_Result>(value: FernVenusApi.healthRdsHealthRdsGet.Error, visitor: FernVenusApi.healthRdsHealthRdsGet.Error._Visitor<_Result>) => _Result;
19
+ };
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.Error = void 0;
38
+ const FernVenusApi = __importStar(require("../index.js"));
39
+ exports.Error = {
40
+ _unknown: (fetcherError) => {
41
+ return {
42
+ statusCode: undefined,
43
+ content: fetcherError,
44
+ _visit: function (visitor) {
45
+ return FernVenusApi.healthRdsHealthRdsGet.Error._visit(this, visitor);
46
+ },
47
+ };
48
+ },
49
+ _visit: (value, visitor) => {
50
+ switch (value.statusCode) {
51
+ default:
52
+ return visitor._other(value.content);
53
+ }
54
+ },
55
+ };
@@ -1,2 +1,4 @@
1
1
  export * as healthHealthGet from "./healthHealthGet.js";
2
+ export * as healthRdsHealthRdsGet from "./healthRdsHealthRdsGet.js";
2
3
  export * as metricsMetricsGet from "./metricsMetricsGet.js";
4
+ export * as pingPingGet from "./pingPingGet.js";
@@ -33,6 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.metricsMetricsGet = exports.healthHealthGet = void 0;
36
+ exports.pingPingGet = exports.metricsMetricsGet = exports.healthRdsHealthRdsGet = exports.healthHealthGet = void 0;
37
37
  exports.healthHealthGet = __importStar(require("./healthHealthGet.js"));
38
+ exports.healthRdsHealthRdsGet = __importStar(require("./healthRdsHealthRdsGet.js"));
38
39
  exports.metricsMetricsGet = __importStar(require("./metricsMetricsGet.js"));
40
+ exports.pingPingGet = __importStar(require("./pingPingGet.js"));
@@ -0,0 +1,19 @@
1
+ import type * as core from "../../core/index.js";
2
+ import * as FernVenusApi from "../index.js";
3
+ export type Error = FernVenusApi.pingPingGet.Error._Unknown;
4
+ export declare namespace Error {
5
+ interface _Unknown extends _Utils {
6
+ statusCode: void;
7
+ content: core.Fetcher.Error;
8
+ }
9
+ interface _Utils {
10
+ _visit: <_Result>(visitor: FernVenusApi.pingPingGet.Error._Visitor<_Result>) => _Result;
11
+ }
12
+ interface _Visitor<_Result> {
13
+ _other: (value: core.Fetcher.Error) => _Result;
14
+ }
15
+ }
16
+ export declare const Error: {
17
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.pingPingGet.Error._Unknown;
18
+ readonly _visit: <_Result>(value: FernVenusApi.pingPingGet.Error, visitor: FernVenusApi.pingPingGet.Error._Visitor<_Result>) => _Result;
19
+ };
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.Error = void 0;
38
+ const FernVenusApi = __importStar(require("../index.js"));
39
+ exports.Error = {
40
+ _unknown: (fetcherError) => {
41
+ return {
42
+ statusCode: undefined,
43
+ content: fetcherError,
44
+ _visit: function (visitor) {
45
+ return FernVenusApi.pingPingGet.Error._visit(this, visitor);
46
+ },
47
+ };
48
+ },
49
+ _visit: (value, visitor) => {
50
+ switch (value.statusCode) {
51
+ default:
52
+ return visitor._other(value.content);
53
+ }
54
+ },
55
+ };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.3.0";
1
+ export declare const SDK_VERSION = "5.5.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "5.3.0";
4
+ exports.SDK_VERSION = "5.5.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
9
- "X-Fern-SDK-Version": "5.3.0",
10
- "User-Agent": "@fern-api/venus-api-sdk/5.3.0",
9
+ "X-Fern-SDK-Version": "5.5.0",
10
+ "User-Agent": "@fern-api/venus-api-sdk/5.5.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -43,4 +43,26 @@ export declare class FernVenusApiClient {
43
43
  */
44
44
  healthHealthGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernVenusApi.healthHealthGet.Error>>;
45
45
  private __healthHealthGet;
46
+ /**
47
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
48
+ *
49
+ * @example
50
+ * await client.pingPingGet()
51
+ */
52
+ pingPingGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<string, FernVenusApi.pingPingGet.Error>>;
53
+ private __pingPingGet;
54
+ /**
55
+ * RDS smoke check: ping each configured RDS engine.
56
+ *
57
+ * Returns 200 only if every configured RDS engine answers ``SELECT 1``;
58
+ * 503 if any engine is unhealthy. Returns 200 with ``configured: false``
59
+ * when no RDS engines are configured.
60
+ *
61
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @example
64
+ * await client.healthRdsHealthRdsGet()
65
+ */
66
+ healthRdsHealthRdsGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernVenusApi.healthRdsHealthRdsGet.Error>>;
67
+ private __healthRdsHealthRdsGet;
46
68
  }
@@ -135,4 +135,103 @@ export class FernVenusApiClient {
135
135
  };
136
136
  });
137
137
  }
138
+ /**
139
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
140
+ *
141
+ * @example
142
+ * await client.pingPingGet()
143
+ */
144
+ pingPingGet(requestOptions) {
145
+ return core.HttpResponsePromise.fromPromise(this.__pingPingGet(requestOptions));
146
+ }
147
+ __pingPingGet(requestOptions) {
148
+ return __awaiter(this, void 0, void 0, function* () {
149
+ var _a, _b, _c, _d, _e, _f, _g, _h;
150
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
151
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
+ const _response = yield core.fetcher({
153
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "ping"),
154
+ method: "GET",
155
+ headers: _headers,
156
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
157
+ responseType: "text",
158
+ timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
159
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
160
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
161
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
162
+ logging: this._options.logging,
163
+ });
164
+ if (_response.ok) {
165
+ return {
166
+ data: {
167
+ ok: true,
168
+ body: _response.body,
169
+ headers: _response.headers,
170
+ rawResponse: _response.rawResponse,
171
+ },
172
+ rawResponse: _response.rawResponse,
173
+ };
174
+ }
175
+ return {
176
+ data: {
177
+ ok: false,
178
+ error: FernVenusApi.pingPingGet.Error._unknown(_response.error),
179
+ rawResponse: _response.rawResponse,
180
+ },
181
+ rawResponse: _response.rawResponse,
182
+ };
183
+ });
184
+ }
185
+ /**
186
+ * RDS smoke check: ping each configured RDS engine.
187
+ *
188
+ * Returns 200 only if every configured RDS engine answers ``SELECT 1``;
189
+ * 503 if any engine is unhealthy. Returns 200 with ``configured: false``
190
+ * when no RDS engines are configured.
191
+ *
192
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
193
+ *
194
+ * @example
195
+ * await client.healthRdsHealthRdsGet()
196
+ */
197
+ healthRdsHealthRdsGet(requestOptions) {
198
+ return core.HttpResponsePromise.fromPromise(this.__healthRdsHealthRdsGet(requestOptions));
199
+ }
200
+ __healthRdsHealthRdsGet(requestOptions) {
201
+ return __awaiter(this, void 0, void 0, function* () {
202
+ var _a, _b, _c, _d, _e, _f, _g, _h;
203
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
204
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
205
+ const _response = yield core.fetcher({
206
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "health/rds"),
207
+ method: "GET",
208
+ headers: _headers,
209
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
210
+ timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
211
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
212
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
213
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
214
+ logging: this._options.logging,
215
+ });
216
+ if (_response.ok) {
217
+ return {
218
+ data: {
219
+ ok: true,
220
+ body: _response.body,
221
+ headers: _response.headers,
222
+ rawResponse: _response.rawResponse,
223
+ },
224
+ rawResponse: _response.rawResponse,
225
+ };
226
+ }
227
+ return {
228
+ data: {
229
+ ok: false,
230
+ error: FernVenusApi.healthRdsHealthRdsGet.Error._unknown(_response.error),
231
+ rawResponse: _response.rawResponse,
232
+ },
233
+ rawResponse: _response.rawResponse,
234
+ };
235
+ });
236
+ }
138
237
  }
@@ -0,0 +1,19 @@
1
+ import type * as core from "../../core/index.mjs";
2
+ import * as FernVenusApi from "../index.mjs";
3
+ export type Error = FernVenusApi.healthRdsHealthRdsGet.Error._Unknown;
4
+ export declare namespace Error {
5
+ interface _Unknown extends _Utils {
6
+ statusCode: void;
7
+ content: core.Fetcher.Error;
8
+ }
9
+ interface _Utils {
10
+ _visit: <_Result>(visitor: FernVenusApi.healthRdsHealthRdsGet.Error._Visitor<_Result>) => _Result;
11
+ }
12
+ interface _Visitor<_Result> {
13
+ _other: (value: core.Fetcher.Error) => _Result;
14
+ }
15
+ }
16
+ export declare const Error: {
17
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.healthRdsHealthRdsGet.Error._Unknown;
18
+ readonly _visit: <_Result>(value: FernVenusApi.healthRdsHealthRdsGet.Error, visitor: FernVenusApi.healthRdsHealthRdsGet.Error._Visitor<_Result>) => _Result;
19
+ };
@@ -0,0 +1,19 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as FernVenusApi from "../index.mjs";
3
+ export const Error = {
4
+ _unknown: (fetcherError) => {
5
+ return {
6
+ statusCode: undefined,
7
+ content: fetcherError,
8
+ _visit: function (visitor) {
9
+ return FernVenusApi.healthRdsHealthRdsGet.Error._visit(this, visitor);
10
+ },
11
+ };
12
+ },
13
+ _visit: (value, visitor) => {
14
+ switch (value.statusCode) {
15
+ default:
16
+ return visitor._other(value.content);
17
+ }
18
+ },
19
+ };
@@ -1,2 +1,4 @@
1
1
  export * as healthHealthGet from "./healthHealthGet.mjs";
2
+ export * as healthRdsHealthRdsGet from "./healthRdsHealthRdsGet.mjs";
2
3
  export * as metricsMetricsGet from "./metricsMetricsGet.mjs";
4
+ export * as pingPingGet from "./pingPingGet.mjs";
@@ -1,2 +1,4 @@
1
1
  export * as healthHealthGet from "./healthHealthGet.mjs";
2
+ export * as healthRdsHealthRdsGet from "./healthRdsHealthRdsGet.mjs";
2
3
  export * as metricsMetricsGet from "./metricsMetricsGet.mjs";
4
+ export * as pingPingGet from "./pingPingGet.mjs";
@@ -0,0 +1,19 @@
1
+ import type * as core from "../../core/index.mjs";
2
+ import * as FernVenusApi from "../index.mjs";
3
+ export type Error = FernVenusApi.pingPingGet.Error._Unknown;
4
+ export declare namespace Error {
5
+ interface _Unknown extends _Utils {
6
+ statusCode: void;
7
+ content: core.Fetcher.Error;
8
+ }
9
+ interface _Utils {
10
+ _visit: <_Result>(visitor: FernVenusApi.pingPingGet.Error._Visitor<_Result>) => _Result;
11
+ }
12
+ interface _Visitor<_Result> {
13
+ _other: (value: core.Fetcher.Error) => _Result;
14
+ }
15
+ }
16
+ export declare const Error: {
17
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.pingPingGet.Error._Unknown;
18
+ readonly _visit: <_Result>(value: FernVenusApi.pingPingGet.Error, visitor: FernVenusApi.pingPingGet.Error._Visitor<_Result>) => _Result;
19
+ };
@@ -0,0 +1,19 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as FernVenusApi from "../index.mjs";
3
+ export const Error = {
4
+ _unknown: (fetcherError) => {
5
+ return {
6
+ statusCode: undefined,
7
+ content: fetcherError,
8
+ _visit: function (visitor) {
9
+ return FernVenusApi.pingPingGet.Error._visit(this, visitor);
10
+ },
11
+ };
12
+ },
13
+ _visit: (value, visitor) => {
14
+ switch (value.statusCode) {
15
+ default:
16
+ return visitor._other(value.content);
17
+ }
18
+ },
19
+ };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.3.0";
1
+ export declare const SDK_VERSION = "5.5.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "5.3.0";
1
+ export const SDK_VERSION = "5.5.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/venus-api-sdk",
3
- "version": "5.3.0",
3
+ "version": "5.5.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -91,6 +91,106 @@ await client.healthHealthGet();
91
91
  </dl>
92
92
 
93
93
 
94
+ </dd>
95
+ </dl>
96
+ </details>
97
+
98
+ <details><summary><code>client.<a href="/src/Client.ts">pingPingGet</a>() -> core.APIResponse&lt;string, FernVenusApi.pingPingGet.Error&gt;</code></summary>
99
+ <dl>
100
+ <dd>
101
+
102
+ #### 🔌 Usage
103
+
104
+ <dl>
105
+ <dd>
106
+
107
+ <dl>
108
+ <dd>
109
+
110
+ ```typescript
111
+ await client.pingPingGet();
112
+
113
+ ```
114
+ </dd>
115
+ </dl>
116
+ </dd>
117
+ </dl>
118
+
119
+ #### ⚙️ Parameters
120
+
121
+ <dl>
122
+ <dd>
123
+
124
+ <dl>
125
+ <dd>
126
+
127
+ **requestOptions:** `FernVenusApiClient.RequestOptions`
128
+
129
+ </dd>
130
+ </dl>
131
+ </dd>
132
+ </dl>
133
+
134
+
135
+ </dd>
136
+ </dl>
137
+ </details>
138
+
139
+ <details><summary><code>client.<a href="/src/Client.ts">healthRdsHealthRdsGet</a>() -> core.APIResponse&lt;unknown, FernVenusApi.healthRdsHealthRdsGet.Error&gt;</code></summary>
140
+ <dl>
141
+ <dd>
142
+
143
+ #### 📝 Description
144
+
145
+ <dl>
146
+ <dd>
147
+
148
+ <dl>
149
+ <dd>
150
+
151
+ RDS smoke check: ping each configured RDS engine.
152
+
153
+ Returns 200 only if every configured RDS engine answers ``SELECT 1``;
154
+ 503 if any engine is unhealthy. Returns 200 with ``configured: false``
155
+ when no RDS engines are configured.
156
+ </dd>
157
+ </dl>
158
+ </dd>
159
+ </dl>
160
+
161
+ #### 🔌 Usage
162
+
163
+ <dl>
164
+ <dd>
165
+
166
+ <dl>
167
+ <dd>
168
+
169
+ ```typescript
170
+ await client.healthRdsHealthRdsGet();
171
+
172
+ ```
173
+ </dd>
174
+ </dl>
175
+ </dd>
176
+ </dl>
177
+
178
+ #### ⚙️ Parameters
179
+
180
+ <dl>
181
+ <dd>
182
+
183
+ <dl>
184
+ <dd>
185
+
186
+ **requestOptions:** `FernVenusApiClient.RequestOptions`
187
+
188
+ </dd>
189
+ </dl>
190
+ </dd>
191
+ </dl>
192
+
193
+
94
194
  </dd>
95
195
  </dl>
96
196
  </details>