@fern-api/venus-api-sdk 6.1.0 → 7.0.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": "6.1.0",
47
- "User-Agent": "@fern-api/venus-api-sdk/6.1.0",
46
+ "X-Fern-SDK-Version": "7.0.0",
47
+ "User-Agent": "@fern-api/venus-api-sdk/7.0.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);
@@ -25,16 +25,6 @@ export declare class FernVenusApiClient {
25
25
  get organization(): OrganizationClient;
26
26
  get registry(): RegistryClient;
27
27
  get user(): UserClient;
28
- /**
29
- * Endpoint that serves Prometheus metrics.
30
- *
31
- * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
32
- *
33
- * @example
34
- * await client.metricsMetricsGet()
35
- */
36
- metricsMetricsGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernVenusApi.metricsMetricsGet.Error>>;
37
- private __metricsMetricsGet;
38
28
  /**
39
29
  * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
40
30
  *
@@ -77,54 +77,6 @@ class FernVenusApiClient {
77
77
  var _a;
78
78
  return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_5.UserClient(this._options)));
79
79
  }
80
- /**
81
- * Endpoint that serves Prometheus metrics.
82
- *
83
- * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
84
- *
85
- * @example
86
- * await client.metricsMetricsGet()
87
- */
88
- metricsMetricsGet(requestOptions) {
89
- return core.HttpResponsePromise.fromPromise(this.__metricsMetricsGet(requestOptions));
90
- }
91
- __metricsMetricsGet(requestOptions) {
92
- return __awaiter(this, void 0, void 0, function* () {
93
- var _a, _b, _c, _d, _e, _f, _g, _h;
94
- const _authRequest = yield this._options.authProvider.getAuthRequest();
95
- 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);
96
- const _response = yield core.fetcher({
97
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "metrics"),
98
- method: "GET",
99
- headers: _headers,
100
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
101
- 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,
102
- 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,
103
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
105
- logging: this._options.logging,
106
- });
107
- if (_response.ok) {
108
- return {
109
- data: {
110
- ok: true,
111
- body: _response.body,
112
- headers: _response.headers,
113
- rawResponse: _response.rawResponse,
114
- },
115
- rawResponse: _response.rawResponse,
116
- };
117
- }
118
- return {
119
- data: {
120
- ok: false,
121
- error: FernVenusApi.metricsMetricsGet.Error._unknown(_response.error),
122
- rawResponse: _response.rawResponse,
123
- },
124
- rawResponse: _response.rawResponse,
125
- };
126
- });
127
- }
128
80
  /**
129
81
  * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
130
82
  *
@@ -1,4 +1,3 @@
1
1
  export * as healthHealthGet from "./healthHealthGet.js";
2
2
  export * as healthRdsHealthRdsGet from "./healthRdsHealthRdsGet.js";
3
- export * as metricsMetricsGet from "./metricsMetricsGet.js";
4
3
  export * as pingPingGet from "./pingPingGet.js";
@@ -33,8 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.pingPingGet = exports.metricsMetricsGet = exports.healthRdsHealthRdsGet = exports.healthHealthGet = void 0;
36
+ exports.pingPingGet = exports.healthRdsHealthRdsGet = exports.healthHealthGet = void 0;
37
37
  exports.healthHealthGet = __importStar(require("./healthHealthGet.js"));
38
38
  exports.healthRdsHealthRdsGet = __importStar(require("./healthRdsHealthRdsGet.js"));
39
- exports.metricsMetricsGet = __importStar(require("./metricsMetricsGet.js"));
40
39
  exports.pingPingGet = __importStar(require("./pingPingGet.js"));
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.1.0";
1
+ export declare const SDK_VERSION = "7.0.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 = "6.1.0";
4
+ exports.SDK_VERSION = "7.0.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": "6.1.0",
10
- "User-Agent": "@fern-api/venus-api-sdk/6.1.0",
9
+ "X-Fern-SDK-Version": "7.0.0",
10
+ "User-Agent": "@fern-api/venus-api-sdk/7.0.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);
@@ -25,16 +25,6 @@ export declare class FernVenusApiClient {
25
25
  get organization(): OrganizationClient;
26
26
  get registry(): RegistryClient;
27
27
  get user(): UserClient;
28
- /**
29
- * Endpoint that serves Prometheus metrics.
30
- *
31
- * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
32
- *
33
- * @example
34
- * await client.metricsMetricsGet()
35
- */
36
- metricsMetricsGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernVenusApi.metricsMetricsGet.Error>>;
37
- private __metricsMetricsGet;
38
28
  /**
39
29
  * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
40
30
  *
@@ -41,54 +41,6 @@ export class FernVenusApiClient {
41
41
  var _a;
42
42
  return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new UserClient(this._options)));
43
43
  }
44
- /**
45
- * Endpoint that serves Prometheus metrics.
46
- *
47
- * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
48
- *
49
- * @example
50
- * await client.metricsMetricsGet()
51
- */
52
- metricsMetricsGet(requestOptions) {
53
- return core.HttpResponsePromise.fromPromise(this.__metricsMetricsGet(requestOptions));
54
- }
55
- __metricsMetricsGet(requestOptions) {
56
- return __awaiter(this, void 0, void 0, function* () {
57
- var _a, _b, _c, _d, _e, _f, _g, _h;
58
- const _authRequest = yield this._options.authProvider.getAuthRequest();
59
- 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);
60
- const _response = yield core.fetcher({
61
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "metrics"),
62
- method: "GET",
63
- headers: _headers,
64
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
65
- 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,
66
- 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,
67
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
68
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
69
- logging: this._options.logging,
70
- });
71
- if (_response.ok) {
72
- return {
73
- data: {
74
- ok: true,
75
- body: _response.body,
76
- headers: _response.headers,
77
- rawResponse: _response.rawResponse,
78
- },
79
- rawResponse: _response.rawResponse,
80
- };
81
- }
82
- return {
83
- data: {
84
- ok: false,
85
- error: FernVenusApi.metricsMetricsGet.Error._unknown(_response.error),
86
- rawResponse: _response.rawResponse,
87
- },
88
- rawResponse: _response.rawResponse,
89
- };
90
- });
91
- }
92
44
  /**
93
45
  * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
94
46
  *
@@ -1,4 +1,3 @@
1
1
  export * as healthHealthGet from "./healthHealthGet.mjs";
2
2
  export * as healthRdsHealthRdsGet from "./healthRdsHealthRdsGet.mjs";
3
- export * as metricsMetricsGet from "./metricsMetricsGet.mjs";
4
3
  export * as pingPingGet from "./pingPingGet.mjs";
@@ -1,4 +1,3 @@
1
1
  export * as healthHealthGet from "./healthHealthGet.mjs";
2
2
  export * as healthRdsHealthRdsGet from "./healthRdsHealthRdsGet.mjs";
3
- export * as metricsMetricsGet from "./metricsMetricsGet.mjs";
4
3
  export * as pingPingGet from "./pingPingGet.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.1.0";
1
+ export declare const SDK_VERSION = "7.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "6.1.0";
1
+ export const SDK_VERSION = "7.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/venus-api-sdk",
3
- "version": "6.1.0",
3
+ "version": "7.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -1,59 +1,4 @@
1
1
  # Reference
2
- <details><summary><code>client.<a href="/src/Client.ts">metricsMetricsGet</a>() -> core.APIResponse&lt;unknown, FernVenusApi.metricsMetricsGet.Error&gt;</code></summary>
3
- <dl>
4
- <dd>
5
-
6
- #### 📝 Description
7
-
8
- <dl>
9
- <dd>
10
-
11
- <dl>
12
- <dd>
13
-
14
- Endpoint that serves Prometheus metrics.
15
- </dd>
16
- </dl>
17
- </dd>
18
- </dl>
19
-
20
- #### 🔌 Usage
21
-
22
- <dl>
23
- <dd>
24
-
25
- <dl>
26
- <dd>
27
-
28
- ```typescript
29
- await client.metricsMetricsGet();
30
-
31
- ```
32
- </dd>
33
- </dl>
34
- </dd>
35
- </dl>
36
-
37
- #### ⚙️ Parameters
38
-
39
- <dl>
40
- <dd>
41
-
42
- <dl>
43
- <dd>
44
-
45
- **requestOptions:** `FernVenusApiClient.RequestOptions`
46
-
47
- </dd>
48
- </dl>
49
- </dd>
50
- </dl>
51
-
52
-
53
- </dd>
54
- </dl>
55
- </details>
56
-
57
2
  <details><summary><code>client.<a href="/src/Client.ts">healthHealthGet</a>() -> core.APIResponse&lt;unknown, FernVenusApi.healthHealthGet.Error&gt;</code></summary>
58
3
  <dl>
59
4
  <dd>
@@ -1,19 +0,0 @@
1
- import type * as core from "../../core/index.js";
2
- import * as FernVenusApi from "../index.js";
3
- export type Error = FernVenusApi.metricsMetricsGet.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.metricsMetricsGet.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.metricsMetricsGet.Error._Unknown;
18
- readonly _visit: <_Result>(value: FernVenusApi.metricsMetricsGet.Error, visitor: FernVenusApi.metricsMetricsGet.Error._Visitor<_Result>) => _Result;
19
- };
@@ -1,55 +0,0 @@
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.metricsMetricsGet.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,19 +0,0 @@
1
- import type * as core from "../../core/index.mjs";
2
- import * as FernVenusApi from "../index.mjs";
3
- export type Error = FernVenusApi.metricsMetricsGet.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.metricsMetricsGet.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.metricsMetricsGet.Error._Unknown;
18
- readonly _visit: <_Result>(value: FernVenusApi.metricsMetricsGet.Error, visitor: FernVenusApi.metricsMetricsGet.Error._Visitor<_Result>) => _Result;
19
- };
@@ -1,19 +0,0 @@
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.metricsMetricsGet.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
- };