@corti/sdk 0.1.2-rc.1 → 0.1.2-rc.4
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/api/index.d.ts +4 -0
- package/dist/cjs/api/index.js +4 -0
- package/dist/cjs/custom/RefreshBearerProvider.d.ts +4 -1
- package/dist/cjs/custom/index.d.ts +1 -0
- package/dist/cjs/custom/index.js +17 -0
- package/dist/esm/api/index.d.mts +4 -0
- package/dist/esm/api/index.mjs +4 -0
- package/dist/esm/custom/RefreshBearerProvider.d.mts +4 -1
- package/dist/esm/custom/index.d.mts +1 -0
- package/dist/esm/custom/index.mjs +1 -0
- package/package.json +1 -1
package/dist/cjs/api/index.d.ts
CHANGED
package/dist/cjs/api/index.js
CHANGED
|
@@ -17,3 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./resources/index.js"), exports);
|
|
18
18
|
__exportStar(require("./types/index.js"), exports);
|
|
19
19
|
__exportStar(require("./errors/index.js"), exports);
|
|
20
|
+
/**
|
|
21
|
+
* Patch: including custom types to main export of types
|
|
22
|
+
*/
|
|
23
|
+
__exportStar(require("../custom/index.js"), exports);
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../core/index.js";
|
|
5
5
|
import * as api from "../api/index.js";
|
|
6
|
-
type
|
|
6
|
+
type ExpectedTokenResponse = Omit<api.GetTokenResponse, 'tokenType'> & {
|
|
7
|
+
tokenType?: string;
|
|
8
|
+
};
|
|
9
|
+
type RefreshAccessTokenFunction = (refreshToken?: string) => Promise<ExpectedTokenResponse> | ExpectedTokenResponse;
|
|
7
10
|
export type BearerOptions = Partial<Omit<api.GetTokenResponse, 'accessToken'>> & ({
|
|
8
11
|
refreshAccessToken?: RefreshAccessTokenFunction;
|
|
9
12
|
accessToken: core.Supplier<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RefreshBearerProvider.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./RefreshBearerProvider.js"), exports);
|
package/dist/esm/api/index.d.mts
CHANGED
package/dist/esm/api/index.mjs
CHANGED
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../core/index.mjs";
|
|
5
5
|
import * as api from "../api/index.mjs";
|
|
6
|
-
type
|
|
6
|
+
type ExpectedTokenResponse = Omit<api.GetTokenResponse, 'tokenType'> & {
|
|
7
|
+
tokenType?: string;
|
|
8
|
+
};
|
|
9
|
+
type RefreshAccessTokenFunction = (refreshToken?: string) => Promise<ExpectedTokenResponse> | ExpectedTokenResponse;
|
|
7
10
|
export type BearerOptions = Partial<Omit<api.GetTokenResponse, 'accessToken'>> & ({
|
|
8
11
|
refreshAccessToken?: RefreshAccessTokenFunction;
|
|
9
12
|
accessToken: core.Supplier<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RefreshBearerProvider.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RefreshBearerProvider.mjs";
|