@corti/sdk 0.1.4-alpha → 0.1.5-alpha

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.
@@ -63,8 +63,8 @@ class CortiClient {
63
63
  "Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
64
64
  "X-Fern-Language": "JavaScript",
65
65
  "X-Fern-SDK-Name": "@corti/sdk",
66
- "X-Fern-SDK-Version": "0.1.4-alpha",
67
- "User-Agent": "@corti/sdk/0.1.4-alpha",
66
+ "X-Fern-SDK-Version": "0.1.5-alpha",
67
+ "User-Agent": "@corti/sdk/0.1.5-alpha",
68
68
  "X-Fern-Runtime": core.RUNTIME.type,
69
69
  "X-Fern-Runtime-Version": core.RUNTIME.version,
70
70
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -14,7 +14,7 @@
14
14
  import { Auth as FernAuth } from "../api/resources/auth/client/Client.js";
15
15
  import * as core from "../core/index.js";
16
16
  import * as Corti from "../api/index.js";
17
- import * as environments from "../environments";
17
+ import * as environments from "../environments.js";
18
18
  interface AuthorizationCodeClient {
19
19
  clientId: string;
20
20
  redirectUri: string;
@@ -61,13 +61,13 @@ const core = __importStar(require("../core/index.js"));
61
61
  const headers_js_1 = require("../core/headers.js");
62
62
  const serializers = __importStar(require("../serialization/index.js"));
63
63
  const errors = __importStar(require("../errors/index.js"));
64
- const getEnvironmentFromString_1 = require("./utils/getEnvironmentFromString");
64
+ const getEnvironmentFromString_js_1 = require("./utils/getEnvironmentFromString.js");
65
65
  class Auth extends Client_js_1.Auth {
66
66
  /**
67
67
  * Patch: use custom AuthOptions type to support string-based environment
68
68
  */
69
69
  constructor(_options) {
70
- super(Object.assign(Object.assign({}, _options), { environment: (0, getEnvironmentFromString_1.getEnvironment)(_options.environment) }));
70
+ super(Object.assign(Object.assign({}, _options), { environment: (0, getEnvironmentFromString_js_1.getEnvironment)(_options.environment) }));
71
71
  }
72
72
  /**
73
73
  * Patch: called custom implementation this.__getToken_custom instead of this.__getToken
@@ -84,7 +84,7 @@ const RefreshBearerProvider_js_1 = require("./RefreshBearerProvider.js");
84
84
  * Patch: added SDK_VERSION import
85
85
  */
86
86
  const version_js_1 = require("../version.js");
87
- const getEnvironmentFromString_1 = require("./utils/getEnvironmentFromString");
87
+ const getEnvironmentFromString_js_1 = require("./utils/getEnvironmentFromString.js");
88
88
  class CortiClient {
89
89
  constructor(_options) {
90
90
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
@@ -98,7 +98,7 @@ class CortiClient {
98
98
  "User-Agent": `@corti/sdk/${version_js_1.SDK_VERSION}`,
99
99
  "X-Fern-Runtime": core.RUNTIME.type,
100
100
  "X-Fern-Runtime-Version": core.RUNTIME.version,
101
- }, _options === null || _options === void 0 ? void 0 : _options.headers), clientId: "clientId" in _options.auth ? _options.auth.clientId : undefined, clientSecret: "clientSecret" in _options.auth ? _options.auth.clientSecret : undefined, token: "accessToken" in _options.auth ? _options.auth.accessToken : undefined, environment: (0, getEnvironmentFromString_1.getEnvironment)(_options.environment) });
101
+ }, _options === null || _options === void 0 ? void 0 : _options.headers), clientId: "clientId" in _options.auth ? _options.auth.clientId : undefined, clientSecret: "clientSecret" in _options.auth ? _options.auth.clientSecret : undefined, token: "accessToken" in _options.auth ? _options.auth.accessToken : undefined, environment: (0, getEnvironmentFromString_js_1.getEnvironment)(_options.environment) });
102
102
  /**
103
103
  * Patch: if `accessToken` is provided, use BearerProvider, otherwise use OAuthTokenProvider
104
104
  */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.4-alpha";
1
+ export declare const SDK_VERSION = "0.1.5-alpha";
@@ -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 = "0.1.4-alpha";
4
+ exports.SDK_VERSION = "0.1.5-alpha";
@@ -27,8 +27,8 @@ export class CortiClient {
27
27
  "Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
28
28
  "X-Fern-Language": "JavaScript",
29
29
  "X-Fern-SDK-Name": "@corti/sdk",
30
- "X-Fern-SDK-Version": "0.1.4-alpha",
31
- "User-Agent": "@corti/sdk/0.1.4-alpha",
30
+ "X-Fern-SDK-Version": "0.1.5-alpha",
31
+ "User-Agent": "@corti/sdk/0.1.5-alpha",
32
32
  "X-Fern-Runtime": core.RUNTIME.type,
33
33
  "X-Fern-Runtime-Version": core.RUNTIME.version,
34
34
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -14,7 +14,7 @@
14
14
  import { Auth as FernAuth } from "../api/resources/auth/client/Client.mjs";
15
15
  import * as core from "../core/index.mjs";
16
16
  import * as Corti from "../api/index.mjs";
17
- import * as environments from "../environments";
17
+ import * as environments from "../environments.mjs";
18
18
  interface AuthorizationCodeClient {
19
19
  clientId: string;
20
20
  redirectUri: string;
@@ -25,7 +25,7 @@ import * as core from "../core/index.mjs";
25
25
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../core/headers.mjs";
26
26
  import * as serializers from "../serialization/index.mjs";
27
27
  import * as errors from "../errors/index.mjs";
28
- import { getEnvironment } from "./utils/getEnvironmentFromString";
28
+ import { getEnvironment } from "./utils/getEnvironmentFromString.mjs";
29
29
  export class Auth extends FernAuth {
30
30
  /**
31
31
  * Patch: use custom AuthOptions type to support string-based environment
@@ -48,7 +48,7 @@ import { RefreshBearerProvider } from "./RefreshBearerProvider.mjs";
48
48
  * Patch: added SDK_VERSION import
49
49
  */
50
50
  import { SDK_VERSION } from '../version.mjs';
51
- import { getEnvironment } from "./utils/getEnvironmentFromString";
51
+ import { getEnvironment } from "./utils/getEnvironmentFromString.mjs";
52
52
  export class CortiClient {
53
53
  constructor(_options) {
54
54
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.4-alpha";
1
+ export declare const SDK_VERSION = "0.1.5-alpha";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.4-alpha";
1
+ export const SDK_VERSION = "0.1.5-alpha";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "0.1.4-alpha",
3
+ "version": "0.1.5-alpha",
4
4
  "private": false,
5
5
  "repository": "github:corticph/corti-sdk-typescript",
6
6
  "license": "MIT",