@kard-financial/sdk 1.0.0 → 2.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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/users/resources/auth/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/users/resources/auth/client/Client.js +4 -4
- package/dist/cjs/api/resources/users/resources/auth/types/{WebviewTokenResponse.d.ts → WebViewTokenResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/users/resources/auth/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/users/resources/auth/types/index.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/api/resources/users/resources/auth/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/users/resources/auth/client/Client.mjs +4 -4
- package/dist/esm/api/resources/users/resources/auth/types/{WebviewTokenResponse.d.mts → WebViewTokenResponse.d.mts} +1 -1
- package/dist/esm/api/resources/users/resources/auth/types/index.d.mts +1 -1
- package/dist/esm/api/resources/users/resources/auth/types/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +3 -3
- /package/dist/cjs/api/resources/users/resources/auth/types/{WebviewTokenResponse.js → WebViewTokenResponse.js} +0 -0
- /package/dist/esm/api/resources/users/resources/auth/types/{WebviewTokenResponse.mjs → WebViewTokenResponse.mjs} +0 -0
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": "@kard-financial/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/
|
|
46
|
+
"X-Fern-SDK-Version": "2.0.0",
|
|
47
|
+
"User-Agent": "@kard-financial/sdk/2.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);
|
|
@@ -22,8 +22,8 @@ export declare class AuthClient {
|
|
|
22
22
|
* @throws {@link KardApi.UnauthorizedError}
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* await client.users.auth.
|
|
25
|
+
* await client.users.auth.getWebViewToken("organization-123", "user-123")
|
|
26
26
|
*/
|
|
27
|
-
|
|
28
|
-
private
|
|
27
|
+
getWebViewToken(organizationId: KardApi.OrganizationId, userId: KardApi.UserId, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<KardApi.users.WebViewTokenResponse>;
|
|
28
|
+
private __getWebViewToken;
|
|
29
29
|
}
|
|
@@ -65,12 +65,12 @@ class AuthClient {
|
|
|
65
65
|
* @throws {@link KardApi.UnauthorizedError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.users.auth.
|
|
68
|
+
* await client.users.auth.getWebViewToken("organization-123", "user-123")
|
|
69
69
|
*/
|
|
70
|
-
|
|
71
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
70
|
+
getWebViewToken(organizationId, userId, requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__getWebViewToken(organizationId, userId, requestOptions));
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
__getWebViewToken(organizationId, userId, requestOptions) {
|
|
74
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
75
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
76
76
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./WebViewTokenResponse.js";
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./WebViewTokenResponse.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0";
|
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": "@kard-financial/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "
|
|
10
|
-
"User-Agent": "@kard-financial/sdk/
|
|
9
|
+
"X-Fern-SDK-Version": "2.0.0",
|
|
10
|
+
"User-Agent": "@kard-financial/sdk/2.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);
|
|
@@ -22,8 +22,8 @@ export declare class AuthClient {
|
|
|
22
22
|
* @throws {@link KardApi.UnauthorizedError}
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* await client.users.auth.
|
|
25
|
+
* await client.users.auth.getWebViewToken("organization-123", "user-123")
|
|
26
26
|
*/
|
|
27
|
-
|
|
28
|
-
private
|
|
27
|
+
getWebViewToken(organizationId: KardApi.OrganizationId, userId: KardApi.UserId, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<KardApi.users.WebViewTokenResponse>;
|
|
28
|
+
private __getWebViewToken;
|
|
29
29
|
}
|
|
@@ -29,12 +29,12 @@ export class AuthClient {
|
|
|
29
29
|
* @throws {@link KardApi.UnauthorizedError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.users.auth.
|
|
32
|
+
* await client.users.auth.getWebViewToken("organization-123", "user-123")
|
|
33
33
|
*/
|
|
34
|
-
|
|
35
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
34
|
+
getWebViewToken(organizationId, userId, requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__getWebViewToken(organizationId, userId, requestOptions));
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
__getWebViewToken(organizationId, userId, requestOptions) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
40
40
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./WebViewTokenResponse.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./WebViewTokenResponse.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "2.0.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1240,8 +1240,8 @@ await client.users.attributions.create("organization-123", "user-123", {
|
|
|
1240
1240
|
</dl>
|
|
1241
1241
|
</details>
|
|
1242
1242
|
|
|
1243
|
-
##
|
|
1244
|
-
<details><summary><code>client.users.auth.<a href="/src/api/resources/users/resources/auth/client/Client.ts">
|
|
1243
|
+
## WebView
|
|
1244
|
+
<details><summary><code>client.users.auth.<a href="/src/api/resources/users/resources/auth/client/Client.ts">getWebViewToken</a>(organizationId, userId) -> KardApi.WebViewTokenResponse</code></summary>
|
|
1245
1245
|
<dl>
|
|
1246
1246
|
<dd>
|
|
1247
1247
|
|
|
@@ -1268,7 +1268,7 @@ Retrieves an OAuth token for webview authentication.
|
|
|
1268
1268
|
<dd>
|
|
1269
1269
|
|
|
1270
1270
|
```typescript
|
|
1271
|
-
await client.users.auth.
|
|
1271
|
+
await client.users.auth.getWebViewToken("organization-123", "user-123");
|
|
1272
1272
|
|
|
1273
1273
|
```
|
|
1274
1274
|
</dd>
|
|
File without changes
|
|
File without changes
|