@extrahorizon/javascript-sdk 8.13.0-feat-185-88d4738 → 8.13.0-feat-186-3871cf2
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/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [8.13.0]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
- Added the `exh.auth.oauth2.refreshTokens.find*` methods to retrieve refresh tokens
|
|
12
|
+
- Added the `exh.auth.oauth2.refreshTokens.remove` method to delete a refresh token
|
|
13
|
+
|
|
10
14
|
### Fixed
|
|
11
15
|
- The following methods are now correctly typed
|
|
12
16
|
- `exh.auth.oauth1.consumeSsoToken`
|
package/build/index.cjs.js
CHANGED
|
@@ -3453,7 +3453,7 @@ function createRefreshTokenService(client, httpWithAuth) {
|
|
|
3453
3453
|
return addPagersFn(find, options, result);
|
|
3454
3454
|
},
|
|
3455
3455
|
async findAll(options) {
|
|
3456
|
-
return await findAllGeneric(
|
|
3456
|
+
return await findAllGeneric(find, options);
|
|
3457
3457
|
},
|
|
3458
3458
|
async findFirst(options) {
|
|
3459
3459
|
const result = await find(options);
|
|
@@ -5693,7 +5693,7 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5693
5693
|
};
|
|
5694
5694
|
};
|
|
5695
5695
|
|
|
5696
|
-
const version = '8.13.0-feat-
|
|
5696
|
+
const version = '8.13.0-feat-186-3871cf2';
|
|
5697
5697
|
|
|
5698
5698
|
/**
|
|
5699
5699
|
* Create ExtraHorizon client.
|
package/build/index.mjs
CHANGED
|
@@ -3423,7 +3423,7 @@ function createRefreshTokenService(client, httpWithAuth) {
|
|
|
3423
3423
|
return addPagersFn(find, options, result);
|
|
3424
3424
|
},
|
|
3425
3425
|
async findAll(options) {
|
|
3426
|
-
return await findAllGeneric(
|
|
3426
|
+
return await findAllGeneric(find, options);
|
|
3427
3427
|
},
|
|
3428
3428
|
async findFirst(options) {
|
|
3429
3429
|
const result = await find(options);
|
|
@@ -5663,7 +5663,7 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5663
5663
|
};
|
|
5664
5664
|
};
|
|
5665
5665
|
|
|
5666
|
-
const version = '8.13.0-feat-
|
|
5666
|
+
const version = '8.13.0-feat-186-3871cf2';
|
|
5667
5667
|
|
|
5668
5668
|
/**
|
|
5669
5669
|
* Create ExtraHorizon client.
|
|
@@ -114,7 +114,7 @@ export interface OAuth2RefreshTokenService {
|
|
|
114
114
|
* VIEW_OAUTH2_REFRESH_TOKENS or VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 refresh tokens for any account
|
|
115
115
|
* Using VIEW_AUTHORIZATIONS for this endpoint is deprecated; use VIEW_OAUTH2_REFRESH_TOKENS instead
|
|
116
116
|
* @param options.rql Add filters to the requested list
|
|
117
|
-
* @returns {Promise<OAuth2RefreshToken | undefined>
|
|
117
|
+
* @returns {Promise<OAuth2RefreshToken | undefined>}
|
|
118
118
|
*/
|
|
119
119
|
findFirst(options?: OptionsWithRql): Promise<OAuth2RefreshToken | undefined>;
|
|
120
120
|
/**
|
|
@@ -127,7 +127,7 @@ export interface OAuth2RefreshTokenService {
|
|
|
127
127
|
* Using VIEW_AUTHORIZATIONS for this endpoint is deprecated; use VIEW_OAUTH2_REFRESH_TOKENS instead
|
|
128
128
|
* @param id the refresh token id
|
|
129
129
|
* @param options.rql Add filters to the requested list
|
|
130
|
-
* @returns {Promise<OAuth2RefreshToken | undefined>
|
|
130
|
+
* @returns {Promise<OAuth2RefreshToken | undefined>}
|
|
131
131
|
*/
|
|
132
132
|
findById(id: string, options?: OptionsWithRql): Promise<OAuth2RefreshToken | undefined>;
|
|
133
133
|
/**
|
|
@@ -136,11 +136,11 @@ export interface OAuth2RefreshTokenService {
|
|
|
136
136
|
* Permission | Scope | Effect
|
|
137
137
|
* - | - | -
|
|
138
138
|
* DELETE_OAUTH2_REFRESH_TOKEN or DELETE_AUTHORIZATIONS | global | Required for this endpoint
|
|
139
|
-
* Using DELETE_AUTHORIZATIONS for this endpoint is deprecated; use
|
|
139
|
+
* Using DELETE_AUTHORIZATIONS for this endpoint is deprecated; use DELETE_OAUTH2_REFRESH_TOKEN instead
|
|
140
140
|
* @param id the refresh token id
|
|
141
141
|
* @returns AffectedRecords
|
|
142
142
|
*/
|
|
143
|
-
remove(id: string, options
|
|
143
|
+
remove(id: string, options?: OptionsBase): Promise<AffectedRecords>;
|
|
144
144
|
}
|
|
145
145
|
export interface OAuth2AuthorizationCreation {
|
|
146
146
|
responseType: string;
|
|
@@ -114,7 +114,7 @@ export interface OAuth2RefreshTokenService {
|
|
|
114
114
|
* VIEW_OAUTH2_REFRESH_TOKENS or VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 refresh tokens for any account
|
|
115
115
|
* Using VIEW_AUTHORIZATIONS for this endpoint is deprecated; use VIEW_OAUTH2_REFRESH_TOKENS instead
|
|
116
116
|
* @param options.rql Add filters to the requested list
|
|
117
|
-
* @returns {Promise<OAuth2RefreshToken | undefined>
|
|
117
|
+
* @returns {Promise<OAuth2RefreshToken | undefined>}
|
|
118
118
|
*/
|
|
119
119
|
findFirst(options?: OptionsWithRql): Promise<OAuth2RefreshToken | undefined>;
|
|
120
120
|
/**
|
|
@@ -127,7 +127,7 @@ export interface OAuth2RefreshTokenService {
|
|
|
127
127
|
* Using VIEW_AUTHORIZATIONS for this endpoint is deprecated; use VIEW_OAUTH2_REFRESH_TOKENS instead
|
|
128
128
|
* @param id the refresh token id
|
|
129
129
|
* @param options.rql Add filters to the requested list
|
|
130
|
-
* @returns {Promise<OAuth2RefreshToken | undefined>
|
|
130
|
+
* @returns {Promise<OAuth2RefreshToken | undefined>}
|
|
131
131
|
*/
|
|
132
132
|
findById(id: string, options?: OptionsWithRql): Promise<OAuth2RefreshToken | undefined>;
|
|
133
133
|
/**
|
|
@@ -136,11 +136,11 @@ export interface OAuth2RefreshTokenService {
|
|
|
136
136
|
* Permission | Scope | Effect
|
|
137
137
|
* - | - | -
|
|
138
138
|
* DELETE_OAUTH2_REFRESH_TOKEN or DELETE_AUTHORIZATIONS | global | Required for this endpoint
|
|
139
|
-
* Using DELETE_AUTHORIZATIONS for this endpoint is deprecated; use
|
|
139
|
+
* Using DELETE_AUTHORIZATIONS for this endpoint is deprecated; use DELETE_OAUTH2_REFRESH_TOKEN instead
|
|
140
140
|
* @param id the refresh token id
|
|
141
141
|
* @returns AffectedRecords
|
|
142
142
|
*/
|
|
143
|
-
remove(id: string, options
|
|
143
|
+
remove(id: string, options?: OptionsBase): Promise<AffectedRecords>;
|
|
144
144
|
}
|
|
145
145
|
export interface OAuth2AuthorizationCreation {
|
|
146
146
|
responseType: string;
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.13.0-feat-
|
|
1
|
+
export declare const version = "8.13.0-feat-186-3871cf2";
|
package/build/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.13.0-feat-
|
|
1
|
+
export declare const version = "8.13.0-feat-186-3871cf2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extrahorizon/javascript-sdk",
|
|
3
|
-
"version": "8.13.0-feat-
|
|
3
|
+
"version": "8.13.0-feat-186-3871cf2",
|
|
4
4
|
"description": "This package serves as a JavaScript wrapper around all Extra Horizon cloud services.",
|
|
5
5
|
"main": "build/index.cjs.js",
|
|
6
6
|
"types": "build/types/index.d.ts",
|