@corti/sdk 1.0.0-rc.2 → 1.0.0-rc.3
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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/custom/auth/CortiAuth.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/custom/auth/CortiAuth.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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": "@corti/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "1.0.0-rc.
|
|
47
|
-
"User-Agent": "@corti/sdk/1.0.0-rc.
|
|
46
|
+
"X-Fern-SDK-Version": "1.0.0-rc.3",
|
|
47
|
+
"User-Agent": "@corti/sdk/1.0.0-rc.3",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
|
@@ -172,7 +172,7 @@ class CortiAuth extends Client_js_1.AuthClient {
|
|
|
172
172
|
authorizeURL(_a, options_1) {
|
|
173
173
|
return __awaiter(this, arguments, void 0, function* ({ clientId, redirectUri, codeChallenge, scopes }, options) {
|
|
174
174
|
const envUrls = yield core.Supplier.get(this._options.environment);
|
|
175
|
-
const tenantName = yield core.Supplier.get(this.
|
|
175
|
+
const tenantName = yield core.Supplier.get(this._tenantName);
|
|
176
176
|
const authUrl = new URL(core.url.join(envUrls.login, tenantName, "protocol/openid-connect/auth"));
|
|
177
177
|
authUrl.searchParams.set("response_type", "code");
|
|
178
178
|
const allScopes = ["openid", "profile", ...(scopes !== null && scopes !== void 0 ? scopes : [])];
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-rc.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-rc.3";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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": "@corti/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "1.0.0-rc.
|
|
10
|
-
"User-Agent": "@corti/sdk/1.0.0-rc.
|
|
9
|
+
"X-Fern-SDK-Version": "1.0.0-rc.3",
|
|
10
|
+
"User-Agent": "@corti/sdk/1.0.0-rc.3",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
|
@@ -136,7 +136,7 @@ export class CortiAuth extends AuthClient {
|
|
|
136
136
|
authorizeURL(_a, options_1) {
|
|
137
137
|
return __awaiter(this, arguments, void 0, function* ({ clientId, redirectUri, codeChallenge, scopes }, options) {
|
|
138
138
|
const envUrls = yield core.Supplier.get(this._options.environment);
|
|
139
|
-
const tenantName = yield core.Supplier.get(this.
|
|
139
|
+
const tenantName = yield core.Supplier.get(this._tenantName);
|
|
140
140
|
const authUrl = new URL(core.url.join(envUrls.login, tenantName, "protocol/openid-connect/auth"));
|
|
141
141
|
authUrl.searchParams.set("response_type", "code");
|
|
142
142
|
const allScopes = ["openid", "profile", ...(scopes !== null && scopes !== void 0 ? scopes : [])];
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-rc.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-rc.3";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.0-rc.
|
|
1
|
+
export const SDK_VERSION = "1.0.0-rc.3";
|