@fern-api/venus-api-sdk 2.1.0 → 3.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.
Files changed (74) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/BaseClient.d.ts +2 -8
  3. package/dist/cjs/BaseClient.js +2 -14
  4. package/dist/cjs/Client.d.ts +2 -2
  5. package/dist/cjs/Client.js +1 -1
  6. package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +2 -2
  7. package/dist/cjs/api/resources/apiKeys/client/Client.js +6 -11
  8. package/dist/cjs/api/resources/auth/client/Client.d.ts +2 -2
  9. package/dist/cjs/api/resources/auth/client/Client.js +3 -5
  10. package/dist/cjs/api/resources/organization/client/Client.d.ts +2 -2
  11. package/dist/cjs/api/resources/organization/client/Client.js +13 -25
  12. package/dist/cjs/api/resources/registry/client/Client.d.ts +2 -2
  13. package/dist/cjs/api/resources/registry/client/Client.js +3 -5
  14. package/dist/cjs/api/resources/user/client/Client.d.ts +2 -2
  15. package/dist/cjs/api/resources/user/client/Client.js +4 -7
  16. package/dist/cjs/core/index.d.ts +0 -2
  17. package/dist/cjs/core/index.js +0 -2
  18. package/dist/cjs/version.d.ts +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/esm/BaseClient.d.mts +2 -8
  21. package/dist/esm/BaseClient.mjs +2 -13
  22. package/dist/esm/Client.d.mts +2 -2
  23. package/dist/esm/Client.mjs +2 -2
  24. package/dist/esm/api/resources/apiKeys/client/Client.d.mts +2 -2
  25. package/dist/esm/api/resources/apiKeys/client/Client.mjs +7 -12
  26. package/dist/esm/api/resources/auth/client/Client.d.mts +2 -2
  27. package/dist/esm/api/resources/auth/client/Client.mjs +4 -6
  28. package/dist/esm/api/resources/organization/client/Client.d.mts +2 -2
  29. package/dist/esm/api/resources/organization/client/Client.mjs +14 -26
  30. package/dist/esm/api/resources/registry/client/Client.d.mts +2 -2
  31. package/dist/esm/api/resources/registry/client/Client.mjs +4 -6
  32. package/dist/esm/api/resources/user/client/Client.d.mts +2 -2
  33. package/dist/esm/api/resources/user/client/Client.mjs +5 -8
  34. package/dist/esm/core/index.d.mts +0 -2
  35. package/dist/esm/core/index.mjs +0 -2
  36. package/dist/esm/version.d.mts +1 -1
  37. package/dist/esm/version.mjs +1 -1
  38. package/package.json +1 -1
  39. package/dist/cjs/auth/BearerAuthProvider.d.ts +0 -20
  40. package/dist/cjs/auth/BearerAuthProvider.js +0 -76
  41. package/dist/cjs/auth/index.d.ts +0 -1
  42. package/dist/cjs/auth/index.js +0 -5
  43. package/dist/cjs/core/auth/AuthProvider.d.ts +0 -7
  44. package/dist/cjs/core/auth/AuthProvider.js +0 -2
  45. package/dist/cjs/core/auth/AuthRequest.d.ts +0 -9
  46. package/dist/cjs/core/auth/AuthRequest.js +0 -2
  47. package/dist/cjs/core/auth/BasicAuth.d.ts +0 -8
  48. package/dist/cjs/core/auth/BasicAuth.js +0 -27
  49. package/dist/cjs/core/auth/BearerToken.d.ts +0 -7
  50. package/dist/cjs/core/auth/BearerToken.js +0 -16
  51. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +0 -5
  52. package/dist/cjs/core/auth/NoOpAuthProvider.js +0 -9
  53. package/dist/cjs/core/auth/index.d.ts +0 -5
  54. package/dist/cjs/core/auth/index.js +0 -9
  55. package/dist/cjs/core/base64.d.ts +0 -2
  56. package/dist/cjs/core/base64.js +0 -26
  57. package/dist/esm/auth/BearerAuthProvider.d.mts +0 -20
  58. package/dist/esm/auth/BearerAuthProvider.mjs +0 -39
  59. package/dist/esm/auth/index.d.mts +0 -1
  60. package/dist/esm/auth/index.mjs +0 -1
  61. package/dist/esm/core/auth/AuthProvider.d.mts +0 -7
  62. package/dist/esm/core/auth/AuthProvider.mjs +0 -1
  63. package/dist/esm/core/auth/AuthRequest.d.mts +0 -9
  64. package/dist/esm/core/auth/AuthRequest.mjs +0 -1
  65. package/dist/esm/core/auth/BasicAuth.d.mts +0 -8
  66. package/dist/esm/core/auth/BasicAuth.mjs +0 -24
  67. package/dist/esm/core/auth/BearerToken.d.mts +0 -7
  68. package/dist/esm/core/auth/BearerToken.mjs +0 -13
  69. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +0 -5
  70. package/dist/esm/core/auth/NoOpAuthProvider.mjs +0 -5
  71. package/dist/esm/core/auth/index.d.mts +0 -5
  72. package/dist/esm/core/auth/index.mjs +0 -3
  73. package/dist/esm/core/base64.d.mts +0 -2
  74. package/dist/esm/core/base64.mjs +0 -22
package/README.md CHANGED
@@ -40,7 +40,7 @@ Instantiate and use the client with the following:
40
40
  ```typescript
41
41
  import { FernApiClient } from "@fern-api/venus-api-sdk";
42
42
 
43
- const client = new FernApiClient({ environment: "YOUR_BASE_URL", token: "YOUR_TOKEN" });
43
+ const client = new FernApiClient({ environment: "YOUR_BASE_URL" });
44
44
  await client.apiKeys.create({
45
45
  organizationId: "organizationId"
46
46
  });
@@ -1,6 +1,5 @@
1
- import { BearerAuthProvider } from "./auth/BearerAuthProvider.js";
2
1
  import * as core from "./core/index.js";
3
- export type BaseClientOptions = {
2
+ export interface BaseClientOptions {
4
3
  environment: core.Supplier<string>;
5
4
  /** Specify a custom URL to connect the client to. */
6
5
  baseUrl?: core.Supplier<string>;
@@ -14,7 +13,7 @@ export type BaseClientOptions = {
14
13
  fetch?: typeof fetch;
15
14
  /** Configure logging for the client. */
16
15
  logging?: core.logging.LogConfig | core.logging.Logger;
17
- } & BearerAuthProvider.AuthOptions;
16
+ }
18
17
  export interface BaseRequestOptions {
19
18
  /** The maximum time to wait for a response in seconds. */
20
19
  timeoutInSeconds?: number;
@@ -29,10 +28,5 @@ export interface BaseRequestOptions {
29
28
  }
30
29
  export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
31
30
  logging: core.logging.Logger;
32
- authProvider?: core.AuthProvider;
33
- };
34
- export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
35
- authProvider: core.AuthProvider;
36
31
  };
37
32
  export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
38
- export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
@@ -35,28 +35,16 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.normalizeClientOptions = normalizeClientOptions;
38
- exports.normalizeClientOptionsWithAuth = normalizeClientOptionsWithAuth;
39
- const BearerAuthProvider_js_1 = require("./auth/BearerAuthProvider.js");
40
38
  const headers_js_1 = require("./core/headers.js");
41
39
  const core = __importStar(require("./core/index.js"));
42
40
  function normalizeClientOptions(options) {
43
41
  const headers = (0, headers_js_1.mergeHeaders)({
44
42
  "X-Fern-Language": "JavaScript",
45
43
  "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
46
- "X-Fern-SDK-Version": "2.1.0",
47
- "User-Agent": "@fern-api/venus-api-sdk/2.1.0",
44
+ "X-Fern-SDK-Version": "3.0.0",
45
+ "User-Agent": "@fern-api/venus-api-sdk/3.0.0",
48
46
  "X-Fern-Runtime": core.RUNTIME.type,
49
47
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
48
  }, options === null || options === void 0 ? void 0 : options.headers);
51
49
  return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
52
50
  }
53
- function normalizeClientOptionsWithAuth(options) {
54
- var _a;
55
- const normalized = normalizeClientOptions(options);
56
- const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
57
- (_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new BearerAuthProvider_js_1.BearerAuthProvider(normalizedWithNoOpAuthProvider));
58
- return normalized;
59
- }
60
- function withNoOpAuthProvider(options) {
61
- return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
62
- }
@@ -5,7 +5,7 @@ import { OrganizationClient } from "./api/resources/organization/client/Client.j
5
5
  import { RegistryClient } from "./api/resources/registry/client/Client.js";
6
6
  import { UserClient } from "./api/resources/user/client/Client.js";
7
7
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
8
- import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
8
+ import { type NormalizedClientOptions } from "./BaseClient.js";
9
9
  import * as core from "./core/index.js";
10
10
  export declare namespace FernApiClient {
11
11
  type Options = BaseClientOptions;
@@ -13,7 +13,7 @@ export declare namespace FernApiClient {
13
13
  }
14
14
  }
15
15
  export declare class FernApiClient {
16
- protected readonly _options: NormalizedClientOptionsWithAuth<FernApiClient.Options>;
16
+ protected readonly _options: NormalizedClientOptions<FernApiClient.Options>;
17
17
  protected _apiKeys: ApiKeysClient | undefined;
18
18
  protected _auth: AuthClient | undefined;
19
19
  protected _organization: OrganizationClient | undefined;
@@ -55,7 +55,7 @@ const headers_js_1 = require("./core/headers.js");
55
55
  const core = __importStar(require("./core/index.js"));
56
56
  class FernApiClient {
57
57
  constructor(options) {
58
- this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
58
+ this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
59
59
  }
60
60
  get apiKeys() {
61
61
  var _a;
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient.js";
3
3
  import * as core from "../../../../core/index.js";
4
4
  import * as FernApi from "../../../index.js";
5
5
  export declare namespace ApiKeysClient {
@@ -8,7 +8,7 @@ export declare namespace ApiKeysClient {
8
8
  }
9
9
  }
10
10
  export declare class ApiKeysClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<ApiKeysClient.Options>;
11
+ protected readonly _options: NormalizedClientOptions<ApiKeysClient.Options>;
12
12
  constructor(options: ApiKeysClient.Options);
13
13
  /**
14
14
  * @param {FernApi.CreateApiKeyRequest} request
@@ -51,7 +51,7 @@ const serializers = __importStar(require("../../../../serialization/index.js"));
51
51
  const FernApi = __importStar(require("../../../index.js"));
52
52
  class ApiKeysClient {
53
53
  constructor(options) {
54
- this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
54
+ this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
55
55
  }
56
56
  /**
57
57
  * @param {FernApi.CreateApiKeyRequest} request
@@ -68,8 +68,7 @@ class ApiKeysClient {
68
68
  __create(request, requestOptions) {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
70
  var _a, _b, _c, _d, _e, _f, _g, _h;
71
- const _authRequest = yield this._options.authProvider.getAuthRequest();
72
- 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);
71
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
72
  const _response = yield core.fetcher({
74
73
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "api-keys/create"),
75
74
  method: "POST",
@@ -148,8 +147,7 @@ class ApiKeysClient {
148
147
  __getTokenMetadata(request, requestOptions) {
149
148
  return __awaiter(this, void 0, void 0, function* () {
150
149
  var _a, _b, _c, _d, _e, _f, _g, _h;
151
- const _authRequest = yield this._options.authProvider.getAuthRequest();
152
- 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);
150
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
153
151
  const _response = yield core.fetcher({
154
152
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "api-keys/metadata"),
155
153
  method: "POST",
@@ -229,8 +227,7 @@ class ApiKeysClient {
229
227
  return __awaiter(this, void 0, void 0, function* () {
230
228
  var _a, _b, _c, _d, _e, _f, _g, _h;
231
229
  const { organizationId } = request;
232
- const _authRequest = yield this._options.authProvider.getAuthRequest();
233
- 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);
230
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
234
231
  const _response = yield core.fetcher({
235
232
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `api-keys/organization/${core.url.encodePathParam(organizationId)}`),
236
233
  method: "GET",
@@ -304,8 +301,7 @@ class ApiKeysClient {
304
301
  return __awaiter(this, void 0, void 0, function* () {
305
302
  var _a, _b, _c, _d, _e, _f, _g, _h;
306
303
  const { tokenId } = request;
307
- const _authRequest = yield this._options.authProvider.getAuthRequest();
308
- 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);
304
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
309
305
  const _response = yield core.fetcher({
310
306
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `api-keys/revoke/${core.url.encodePathParam(tokenId)}`),
311
307
  method: "POST",
@@ -372,8 +368,7 @@ class ApiKeysClient {
372
368
  __revokeToken(request, requestOptions) {
373
369
  return __awaiter(this, void 0, void 0, function* () {
374
370
  var _a, _b, _c, _d, _e, _f, _g, _h;
375
- const _authRequest = yield this._options.authProvider.getAuthRequest();
376
- 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);
371
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
377
372
  const _response = yield core.fetcher({
378
373
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "api-keys/revoke"),
379
374
  method: "POST",
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient.js";
3
3
  import * as core from "../../../../core/index.js";
4
4
  import * as FernApi from "../../../index.js";
5
5
  export declare namespace AuthClient {
@@ -8,7 +8,7 @@ export declare namespace AuthClient {
8
8
  }
9
9
  }
10
10
  export declare class AuthClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<AuthClient.Options>;
11
+ protected readonly _options: NormalizedClientOptions<AuthClient.Options>;
12
12
  constructor(options: AuthClient.Options);
13
13
  /**
14
14
  * Look up the Fern organization ID for a GitHub owner.
@@ -51,7 +51,7 @@ const serializers = __importStar(require("../../../../serialization/index.js"));
51
51
  const FernApi = __importStar(require("../../../index.js"));
52
52
  class AuthClient {
53
53
  constructor(options) {
54
- this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
54
+ this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
55
55
  }
56
56
  /**
57
57
  * Look up the Fern organization ID for a GitHub owner.
@@ -152,8 +152,7 @@ class AuthClient {
152
152
  __getAutopilotToken(request, requestOptions) {
153
153
  return __awaiter(this, void 0, void 0, function* () {
154
154
  var _a, _b, _c, _d, _e, _f, _g, _h;
155
- const _authRequest = yield this._options.authProvider.getAuthRequest();
156
- 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);
155
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
157
156
  const _response = yield core.fetcher({
158
157
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "auth/autopilot-token"),
159
158
  method: "POST",
@@ -236,8 +235,7 @@ class AuthClient {
236
235
  __getJwt(request, requestOptions) {
237
236
  return __awaiter(this, void 0, void 0, function* () {
238
237
  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);
238
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
241
239
  const _response = yield core.fetcher({
242
240
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "auth/jwt"),
243
241
  method: "POST",
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient.js";
3
3
  import * as core from "../../../../core/index.js";
4
4
  import * as FernApi from "../../../index.js";
5
5
  export declare namespace OrganizationClient {
@@ -8,7 +8,7 @@ export declare namespace OrganizationClient {
8
8
  }
9
9
  }
10
10
  export declare class OrganizationClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationClient.Options>;
11
+ protected readonly _options: NormalizedClientOptions<OrganizationClient.Options>;
12
12
  constructor(options: OrganizationClient.Options);
13
13
  /**
14
14
  * @param {FernApi.CreateOrganizationRequest} request
@@ -62,7 +62,7 @@ const serializers = __importStar(require("../../../../serialization/index.js"));
62
62
  const FernApi = __importStar(require("../../../index.js"));
63
63
  class OrganizationClient {
64
64
  constructor(options) {
65
- this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
65
+ this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
66
66
  }
67
67
  /**
68
68
  * @param {FernApi.CreateOrganizationRequest} request
@@ -79,8 +79,7 @@ class OrganizationClient {
79
79
  __create(request, requestOptions) {
80
80
  return __awaiter(this, void 0, void 0, function* () {
81
81
  var _a, _b, _c, _d, _e, _f, _g, _h;
82
- const _authRequest = yield this._options.authProvider.getAuthRequest();
83
- 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);
82
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
84
83
  const _response = yield core.fetcher({
85
84
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/create"),
86
85
  method: "POST",
@@ -160,8 +159,7 @@ class OrganizationClient {
160
159
  return __awaiter(this, void 0, void 0, function* () {
161
160
  var _a, _b, _c, _d, _e, _f, _g, _h;
162
161
  const { orgId } = request, _body = __rest(request, ["orgId"]);
163
- const _authRequest = yield this._options.authProvider.getAuthRequest();
164
- 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);
162
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
165
163
  const _response = yield core.fetcher({
166
164
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}/update`),
167
165
  method: "POST",
@@ -238,8 +236,7 @@ class OrganizationClient {
238
236
  const _queryParams = {
239
237
  shouldIncludeFernUsers,
240
238
  };
241
- const _authRequest = yield this._options.authProvider.getAuthRequest();
242
- 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);
239
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
243
240
  const _response = yield core.fetcher({
244
241
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}`),
245
242
  method: "GET",
@@ -315,8 +312,7 @@ class OrganizationClient {
315
312
  return __awaiter(this, void 0, void 0, function* () {
316
313
  var _a, _b, _c, _d, _e, _f, _g, _h;
317
314
  const { orgId } = request;
318
- const _authRequest = yield this._options.authProvider.getAuthRequest();
319
- 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);
315
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
320
316
  const _response = yield core.fetcher({
321
317
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}`),
322
318
  method: "DELETE",
@@ -386,8 +382,7 @@ class OrganizationClient {
386
382
  return __awaiter(this, void 0, void 0, function* () {
387
383
  var _a, _b, _c, _d, _e, _f, _g, _h;
388
384
  const { postmanTeamId } = request;
389
- const _authRequest = yield this._options.authProvider.getAuthRequest();
390
- 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);
385
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
391
386
  const _response = yield core.fetcher({
392
387
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/postman-team/${core.url.encodePathParam(postmanTeamId)}`),
393
388
  method: "GET",
@@ -463,8 +458,7 @@ class OrganizationClient {
463
458
  return __awaiter(this, void 0, void 0, function* () {
464
459
  var _a, _b, _c, _d, _e, _f, _g, _h;
465
460
  const { orgId } = request;
466
- const _authRequest = yield this._options.authProvider.getAuthRequest();
467
- 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);
461
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
468
462
  const _response = yield core.fetcher({
469
463
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}/postman-team-id`),
470
464
  method: "GET",
@@ -538,8 +532,7 @@ class OrganizationClient {
538
532
  return __awaiter(this, void 0, void 0, function* () {
539
533
  var _a, _b, _c, _d, _e, _f, _g, _h;
540
534
  const { organizationId } = request;
541
- const _authRequest = yield this._options.authProvider.getAuthRequest();
542
- 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);
535
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
543
536
  const _response = yield core.fetcher({
544
537
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/belongs-to-organization/${core.url.encodePathParam(organizationId)}`),
545
538
  method: "POST",
@@ -616,8 +609,7 @@ class OrganizationClient {
616
609
  const _queryParams = {
617
610
  shouldIncludeFernUsers,
618
611
  };
619
- const _authRequest = yield this._options.authProvider.getAuthRequest();
620
- 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);
612
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
621
613
  const _response = yield core.fetcher({
622
614
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/myself"),
623
615
  method: "POST",
@@ -687,8 +679,7 @@ class OrganizationClient {
687
679
  __getOrgIdsFromToken(requestOptions) {
688
680
  return __awaiter(this, void 0, void 0, function* () {
689
681
  var _a, _b, _c, _d, _e, _f, _g, _h;
690
- const _authRequest = yield this._options.authProvider.getAuthRequest();
691
- 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);
682
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
692
683
  const _response = yield core.fetcher({
693
684
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations"),
694
685
  method: "POST",
@@ -743,8 +734,7 @@ class OrganizationClient {
743
734
  __addUser(request, requestOptions) {
744
735
  return __awaiter(this, void 0, void 0, function* () {
745
736
  var _a, _b, _c, _d, _e, _f, _g, _h;
746
- const _authRequest = yield this._options.authProvider.getAuthRequest();
747
- 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);
737
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
748
738
  const _response = yield core.fetcher({
749
739
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/add-user"),
750
740
  method: "POST",
@@ -818,8 +808,7 @@ class OrganizationClient {
818
808
  __inviteUser(request, requestOptions) {
819
809
  return __awaiter(this, void 0, void 0, function* () {
820
810
  var _a, _b, _c, _d, _e, _f, _g, _h;
821
- const _authRequest = yield this._options.authProvider.getAuthRequest();
822
- 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);
811
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
823
812
  const _response = yield core.fetcher({
824
813
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/invite"),
825
814
  method: "POST",
@@ -893,8 +882,7 @@ class OrganizationClient {
893
882
  __removeUser(request, requestOptions) {
894
883
  return __awaiter(this, void 0, void 0, function* () {
895
884
  var _a, _b, _c, _d, _e, _f, _g, _h;
896
- const _authRequest = yield this._options.authProvider.getAuthRequest();
897
- 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);
885
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
898
886
  const _response = yield core.fetcher({
899
887
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/user"),
900
888
  method: "DELETE",
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient.js";
3
3
  import * as core from "../../../../core/index.js";
4
4
  import * as FernApi from "../../../index.js";
5
5
  export declare namespace RegistryClient {
@@ -8,7 +8,7 @@ export declare namespace RegistryClient {
8
8
  }
9
9
  }
10
10
  export declare class RegistryClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<RegistryClient.Options>;
11
+ protected readonly _options: NormalizedClientOptions<RegistryClient.Options>;
12
12
  constructor(options: RegistryClient.Options);
13
13
  /**
14
14
  * @param {FernApi.GenerateRegistryTokensRequest} request
@@ -51,7 +51,7 @@ const serializers = __importStar(require("../../../../serialization/index.js"));
51
51
  const FernApi = __importStar(require("../../../index.js"));
52
52
  class RegistryClient {
53
53
  constructor(options) {
54
- this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
54
+ this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
55
55
  }
56
56
  /**
57
57
  * @param {FernApi.GenerateRegistryTokensRequest} request
@@ -68,8 +68,7 @@ class RegistryClient {
68
68
  __generateRegistryTokens(request, requestOptions) {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
70
  var _a, _b, _c, _d, _e, _f, _g, _h;
71
- const _authRequest = yield this._options.authProvider.getAuthRequest();
72
- 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);
71
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
72
  const _response = yield core.fetcher({
74
73
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "registry/generate-tokens"),
75
74
  method: "POST",
@@ -228,8 +227,7 @@ class RegistryClient {
228
227
  __revokeToken(request, requestOptions) {
229
228
  return __awaiter(this, void 0, void 0, function* () {
230
229
  var _a, _b, _c, _d, _e, _f, _g, _h;
231
- const _authRequest = yield this._options.authProvider.getAuthRequest();
232
- 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);
230
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
233
231
  const _response = yield core.fetcher({
234
232
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "registry/revoke-token"),
235
233
  method: "POST",
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient.js";
3
3
  import * as core from "../../../../core/index.js";
4
4
  import * as FernApi from "../../../index.js";
5
5
  export declare namespace UserClient {
@@ -8,7 +8,7 @@ export declare namespace UserClient {
8
8
  }
9
9
  }
10
10
  export declare class UserClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<UserClient.Options>;
11
+ protected readonly _options: NormalizedClientOptions<UserClient.Options>;
12
12
  constructor(options: UserClient.Options);
13
13
  /**
14
14
  * @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -51,7 +51,7 @@ const serializers = __importStar(require("../../../../serialization/index.js"));
51
51
  const FernApi = __importStar(require("../../../index.js"));
52
52
  class UserClient {
53
53
  constructor(options) {
54
- this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
54
+ this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
55
55
  }
56
56
  /**
57
57
  * @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -65,8 +65,7 @@ class UserClient {
65
65
  __getMyself(requestOptions) {
66
66
  return __awaiter(this, void 0, void 0, function* () {
67
67
  var _a, _b, _c, _d, _e, _f, _g, _h;
68
- const _authRequest = yield this._options.authProvider.getAuthRequest();
69
- 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);
68
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
70
69
  const _response = yield core.fetcher({
71
70
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "users"),
72
71
  method: "GET",
@@ -124,8 +123,7 @@ class UserClient {
124
123
  const _queryParams = {
125
124
  pageId,
126
125
  };
127
- const _authRequest = yield this._options.authProvider.getAuthRequest();
128
- 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);
126
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
129
127
  const _response = yield core.fetcher({
130
128
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "users/organizations"),
131
129
  method: "GET",
@@ -201,8 +199,7 @@ class UserClient {
201
199
  __linkAccounts(request, requestOptions) {
202
200
  return __awaiter(this, void 0, void 0, function* () {
203
201
  var _a, _b, _c, _d, _e, _f, _g, _h;
204
- const _authRequest = yield this._options.authProvider.getAuthRequest();
205
- 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);
202
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
206
203
  const _response = yield core.fetcher({
207
204
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "users/link-accounts"),
208
205
  method: "POST",
@@ -1,5 +1,3 @@
1
- export * from "./auth/index.js";
2
- export * from "./base64.js";
3
1
  export * from "./fetcher/index.js";
4
2
  export * as logging from "./logging/index.js";
5
3
  export * from "./runtime/index.js";
@@ -37,8 +37,6 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.url = exports.serialization = exports.logging = void 0;
40
- __exportStar(require("./auth/index.js"), exports);
41
- __exportStar(require("./base64.js"), exports);
42
40
  __exportStar(require("./fetcher/index.js"), exports);
43
41
  exports.logging = __importStar(require("./logging/index.js"));
44
42
  __exportStar(require("./runtime/index.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.1.0";
1
+ export declare const SDK_VERSION = "3.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 = "2.1.0";
4
+ exports.SDK_VERSION = "3.0.0";
@@ -1,6 +1,5 @@
1
- import { BearerAuthProvider } from "./auth/BearerAuthProvider.mjs";
2
1
  import * as core from "./core/index.mjs";
3
- export type BaseClientOptions = {
2
+ export interface BaseClientOptions {
4
3
  environment: core.Supplier<string>;
5
4
  /** Specify a custom URL to connect the client to. */
6
5
  baseUrl?: core.Supplier<string>;
@@ -14,7 +13,7 @@ export type BaseClientOptions = {
14
13
  fetch?: typeof fetch;
15
14
  /** Configure logging for the client. */
16
15
  logging?: core.logging.LogConfig | core.logging.Logger;
17
- } & BearerAuthProvider.AuthOptions;
16
+ }
18
17
  export interface BaseRequestOptions {
19
18
  /** The maximum time to wait for a response in seconds. */
20
19
  timeoutInSeconds?: number;
@@ -29,10 +28,5 @@ export interface BaseRequestOptions {
29
28
  }
30
29
  export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
31
30
  logging: core.logging.Logger;
32
- authProvider?: core.AuthProvider;
33
- };
34
- export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
35
- authProvider: core.AuthProvider;
36
31
  };
37
32
  export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
38
- export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
@@ -1,25 +1,14 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import { BearerAuthProvider } from "./auth/BearerAuthProvider.mjs";
3
2
  import { mergeHeaders } from "./core/headers.mjs";
4
3
  import * as core from "./core/index.mjs";
5
4
  export function normalizeClientOptions(options) {
6
5
  const headers = mergeHeaders({
7
6
  "X-Fern-Language": "JavaScript",
8
7
  "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
9
- "X-Fern-SDK-Version": "2.1.0",
10
- "User-Agent": "@fern-api/venus-api-sdk/2.1.0",
8
+ "X-Fern-SDK-Version": "3.0.0",
9
+ "User-Agent": "@fern-api/venus-api-sdk/3.0.0",
11
10
  "X-Fern-Runtime": core.RUNTIME.type,
12
11
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
12
  }, options === null || options === void 0 ? void 0 : options.headers);
14
13
  return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
15
14
  }
16
- export function normalizeClientOptionsWithAuth(options) {
17
- var _a;
18
- const normalized = normalizeClientOptions(options);
19
- const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
20
- (_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new BearerAuthProvider(normalizedWithNoOpAuthProvider));
21
- return normalized;
22
- }
23
- function withNoOpAuthProvider(options) {
24
- return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
25
- }
@@ -5,7 +5,7 @@ import { OrganizationClient } from "./api/resources/organization/client/Client.m
5
5
  import { RegistryClient } from "./api/resources/registry/client/Client.mjs";
6
6
  import { UserClient } from "./api/resources/user/client/Client.mjs";
7
7
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
8
- import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
8
+ import { type NormalizedClientOptions } from "./BaseClient.mjs";
9
9
  import * as core from "./core/index.mjs";
10
10
  export declare namespace FernApiClient {
11
11
  type Options = BaseClientOptions;
@@ -13,7 +13,7 @@ export declare namespace FernApiClient {
13
13
  }
14
14
  }
15
15
  export declare class FernApiClient {
16
- protected readonly _options: NormalizedClientOptionsWithAuth<FernApiClient.Options>;
16
+ protected readonly _options: NormalizedClientOptions<FernApiClient.Options>;
17
17
  protected _apiKeys: ApiKeysClient | undefined;
18
18
  protected _auth: AuthClient | undefined;
19
19
  protected _organization: OrganizationClient | undefined;
@@ -14,12 +14,12 @@ import { AuthClient } from "./api/resources/auth/client/Client.mjs";
14
14
  import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
15
15
  import { RegistryClient } from "./api/resources/registry/client/Client.mjs";
16
16
  import { UserClient } from "./api/resources/user/client/Client.mjs";
17
- import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
17
+ import { normalizeClientOptions } from "./BaseClient.mjs";
18
18
  import { mergeHeaders } from "./core/headers.mjs";
19
19
  import * as core from "./core/index.mjs";
20
20
  export class FernApiClient {
21
21
  constructor(options) {
22
- this._options = normalizeClientOptionsWithAuth(options);
22
+ this._options = normalizeClientOptions(options);
23
23
  }
24
24
  get apiKeys() {
25
25
  var _a;
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as FernApi from "../../../index.mjs";
5
5
  export declare namespace ApiKeysClient {
@@ -8,7 +8,7 @@ export declare namespace ApiKeysClient {
8
8
  }
9
9
  }
10
10
  export declare class ApiKeysClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<ApiKeysClient.Options>;
11
+ protected readonly _options: NormalizedClientOptions<ApiKeysClient.Options>;
12
12
  constructor(options: ApiKeysClient.Options);
13
13
  /**
14
14
  * @param {FernApi.CreateApiKeyRequest} request