@extrahorizon/javascript-sdk 8.13.0-feat-185-88d4738 → 8.13.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/CHANGELOG.md CHANGED
@@ -7,12 +7,20 @@ 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`
13
17
  - `exh.auth.oauth2.createAuthorization`
14
18
  - `exh.auth.oauth2.getAuthorizations`
15
-
19
+ - `exh.auth.oauth2.deleteAuthorizations`
20
+ - `exh.auth.oauth2.find*`
21
+ - `exh.auth.oauth2.remove`
22
+ - Bumped form-data version to resolve `CVE-2026-12143` (vulnerable code was not in use)
23
+
16
24
  ### Deprecated
17
25
  - The following fields will be removed from responses returned by listing endpoints in a future version:
18
26
  - The `exh.auth.oauth1.find*` methods deprecate the `tokenSecret` field
@@ -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(this.find, options);
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-185-88d4738';
5696
+ const version = '8.13.0';
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(this.find, options);
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-185-88d4738';
5666
+ const version = '8.13.0';
5667
5667
 
5668
5668
  /**
5669
5669
  * Create ExtraHorizon client.
@@ -19,7 +19,8 @@ export interface AuthOauth2Service {
19
19
  *
20
20
  * Permission | Scope | Effect
21
21
  * - | - | -
22
- * VIEW_AUTHORIZATIONS | global | **Required** for this endpoint
22
+ * none | | Can only see a list of OAuth2 authorizations for this account
23
+ * VIEW_AUTHORIZATIONS | global | See any authorizations belonging to any user
23
24
  * @see https://swagger.extrahorizon.com/swagger-ui/?url=https://swagger.extrahorizon.com/auth-service/2.0.4-dev/openapi.yaml#/OAuth2/get_oauth2_authorizations
24
25
  */
25
26
  getAuthorizations(options?: OptionsWithRql): Promise<PagedResult<OAuth2Authorization>>;
@@ -28,7 +29,8 @@ export interface AuthOauth2Service {
28
29
  *
29
30
  * Permission | Scope | Effect
30
31
  * - | - | -
31
- * DELETE_AUTHORIZATIONS | global | **Required** for this endpoint
32
+ * none | | Can only delete OAuth2 authorizations for this account
33
+ * DELETE_AUTHORIZATIONS | global | Delete any authorizations belonging to any user
32
34
  * @see https://swagger.extrahorizon.com/swagger-ui/?url=https://swagger.extrahorizon.com/auth-service/2.0.4-dev/openapi.yaml#/OAuth2/delete_oauth2_authorizations__authorizationId_
33
35
  * @throws {ResourceUnknownError}
34
36
  */
@@ -41,7 +43,7 @@ export interface AuthOauth2TokenService {
41
43
  * Permission | Scope | Effect
42
44
  * - | - | -
43
45
  * none | | Can only see a list of OAuth2 tokens for this account
44
- * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
46
+ * VIEW_AUTHORIZATIONS | global | See any OAuth2 tokens belonging to any user
45
47
  */
46
48
  find(options?: OptionsWithRql): Promise<PagedResult<OAuth2Token>>;
47
49
  /**
@@ -50,7 +52,7 @@ export interface AuthOauth2TokenService {
50
52
  * Permission | Scope | Effect
51
53
  * - | - | -
52
54
  * none | | Can only see a list of OAuth2 tokens for this account
53
- * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
55
+ * VIEW_AUTHORIZATIONS | global | See any OAuth2 tokens belonging to any user
54
56
  */
55
57
  findAll(options?: OptionsWithRql): Promise<OAuth2Token[]>;
56
58
  /**
@@ -59,7 +61,7 @@ export interface AuthOauth2TokenService {
59
61
  * Permission | Scope | Effect
60
62
  * - | - | -
61
63
  * none | | Can only see a list of OAuth2 tokens for this account
62
- * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
64
+ * VIEW_AUTHORIZATIONS | global | See any OAuth2 tokens belonging to any user
63
65
  */
64
66
  findFirst(options?: OptionsWithRql): Promise<OAuth2Token | undefined>;
65
67
  /**
@@ -68,7 +70,7 @@ export interface AuthOauth2TokenService {
68
70
  * Permission | Scope | Effect
69
71
  * - | - | -
70
72
  * none | | Can only see a list of OAuth2 tokens for this account
71
- * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
73
+ * VIEW_AUTHORIZATIONS | global | See any OAuth2 tokens belonging to any user
72
74
  */
73
75
  findById(id: string, options?: OptionsWithRql): Promise<OAuth2Token | undefined>;
74
76
  /**
@@ -76,7 +78,8 @@ export interface AuthOauth2TokenService {
76
78
  *
77
79
  * Permission | Scope | Effect
78
80
  * - | - | -
79
- * DELETE_AUTHORIZATIONS | | Required for this endpoint
81
+ * none | | Can only delete OAuth2 tokens for this account
82
+ * DELETE_AUTHORIZATIONS | global | Delete any OAuth2 tokens belonging to any user
80
83
  */
81
84
  remove(id: string): Promise<AffectedRecords>;
82
85
  }
@@ -114,7 +117,7 @@ export interface OAuth2RefreshTokenService {
114
117
  * VIEW_OAUTH2_REFRESH_TOKENS or VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 refresh tokens for any account
115
118
  * Using VIEW_AUTHORIZATIONS for this endpoint is deprecated; use VIEW_OAUTH2_REFRESH_TOKENS instead
116
119
  * @param options.rql Add filters to the requested list
117
- * @returns {Promise<OAuth2RefreshToken | undefined>
120
+ * @returns {Promise<OAuth2RefreshToken | undefined>}
118
121
  */
119
122
  findFirst(options?: OptionsWithRql): Promise<OAuth2RefreshToken | undefined>;
120
123
  /**
@@ -127,7 +130,7 @@ export interface OAuth2RefreshTokenService {
127
130
  * Using VIEW_AUTHORIZATIONS for this endpoint is deprecated; use VIEW_OAUTH2_REFRESH_TOKENS instead
128
131
  * @param id the refresh token id
129
132
  * @param options.rql Add filters to the requested list
130
- * @returns {Promise<OAuth2RefreshToken | undefined>
133
+ * @returns {Promise<OAuth2RefreshToken | undefined>}
131
134
  */
132
135
  findById(id: string, options?: OptionsWithRql): Promise<OAuth2RefreshToken | undefined>;
133
136
  /**
@@ -135,12 +138,13 @@ export interface OAuth2RefreshTokenService {
135
138
  *
136
139
  * Permission | Scope | Effect
137
140
  * - | - | -
138
- * DELETE_OAUTH2_REFRESH_TOKEN or DELETE_AUTHORIZATIONS | global | Required for this endpoint
139
- * Using DELETE_AUTHORIZATIONS for this endpoint is deprecated; use VIEW_OAUTH2_REFRESH_TOKENS instead
141
+ * none | | Can only delete OAuth2 refresh tokens for this account
142
+ * DELETE_OAUTH2_REFRESH_TOKEN or DELETE_AUTHORIZATIONS | global | Delete any OAuth2 refresh tokens belonging to any user
143
+ * Using DELETE_AUTHORIZATIONS for this endpoint is deprecated; use DELETE_OAUTH2_REFRESH_TOKEN instead
140
144
  * @param id the refresh token id
141
145
  * @returns AffectedRecords
142
146
  */
143
- remove(id: string, options: OptionsBase): Promise<AffectedRecords>;
147
+ remove(id: string, options?: OptionsBase): Promise<AffectedRecords>;
144
148
  }
145
149
  export interface OAuth2AuthorizationCreation {
146
150
  responseType: string;
@@ -19,7 +19,8 @@ export interface AuthOauth2Service {
19
19
  *
20
20
  * Permission | Scope | Effect
21
21
  * - | - | -
22
- * VIEW_AUTHORIZATIONS | global | **Required** for this endpoint
22
+ * none | | Can only see a list of OAuth2 authorizations for this account
23
+ * VIEW_AUTHORIZATIONS | global | See any authorizations belonging to any user
23
24
  * @see https://swagger.extrahorizon.com/swagger-ui/?url=https://swagger.extrahorizon.com/auth-service/2.0.4-dev/openapi.yaml#/OAuth2/get_oauth2_authorizations
24
25
  */
25
26
  getAuthorizations(options?: OptionsWithRql): Promise<PagedResult<OAuth2Authorization>>;
@@ -28,7 +29,8 @@ export interface AuthOauth2Service {
28
29
  *
29
30
  * Permission | Scope | Effect
30
31
  * - | - | -
31
- * DELETE_AUTHORIZATIONS | global | **Required** for this endpoint
32
+ * none | | Can only delete OAuth2 authorizations for this account
33
+ * DELETE_AUTHORIZATIONS | global | Delete any authorizations belonging to any user
32
34
  * @see https://swagger.extrahorizon.com/swagger-ui/?url=https://swagger.extrahorizon.com/auth-service/2.0.4-dev/openapi.yaml#/OAuth2/delete_oauth2_authorizations__authorizationId_
33
35
  * @throws {ResourceUnknownError}
34
36
  */
@@ -41,7 +43,7 @@ export interface AuthOauth2TokenService {
41
43
  * Permission | Scope | Effect
42
44
  * - | - | -
43
45
  * none | | Can only see a list of OAuth2 tokens for this account
44
- * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
46
+ * VIEW_AUTHORIZATIONS | global | See any OAuth2 tokens belonging to any user
45
47
  */
46
48
  find(options?: OptionsWithRql): Promise<PagedResult<OAuth2Token>>;
47
49
  /**
@@ -50,7 +52,7 @@ export interface AuthOauth2TokenService {
50
52
  * Permission | Scope | Effect
51
53
  * - | - | -
52
54
  * none | | Can only see a list of OAuth2 tokens for this account
53
- * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
55
+ * VIEW_AUTHORIZATIONS | global | See any OAuth2 tokens belonging to any user
54
56
  */
55
57
  findAll(options?: OptionsWithRql): Promise<OAuth2Token[]>;
56
58
  /**
@@ -59,7 +61,7 @@ export interface AuthOauth2TokenService {
59
61
  * Permission | Scope | Effect
60
62
  * - | - | -
61
63
  * none | | Can only see a list of OAuth2 tokens for this account
62
- * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
64
+ * VIEW_AUTHORIZATIONS | global | See any OAuth2 tokens belonging to any user
63
65
  */
64
66
  findFirst(options?: OptionsWithRql): Promise<OAuth2Token | undefined>;
65
67
  /**
@@ -68,7 +70,7 @@ export interface AuthOauth2TokenService {
68
70
  * Permission | Scope | Effect
69
71
  * - | - | -
70
72
  * none | | Can only see a list of OAuth2 tokens for this account
71
- * VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
73
+ * VIEW_AUTHORIZATIONS | global | See any OAuth2 tokens belonging to any user
72
74
  */
73
75
  findById(id: string, options?: OptionsWithRql): Promise<OAuth2Token | undefined>;
74
76
  /**
@@ -76,7 +78,8 @@ export interface AuthOauth2TokenService {
76
78
  *
77
79
  * Permission | Scope | Effect
78
80
  * - | - | -
79
- * DELETE_AUTHORIZATIONS | | Required for this endpoint
81
+ * none | | Can only delete OAuth2 tokens for this account
82
+ * DELETE_AUTHORIZATIONS | global | Delete any OAuth2 tokens belonging to any user
80
83
  */
81
84
  remove(id: string): Promise<AffectedRecords>;
82
85
  }
@@ -114,7 +117,7 @@ export interface OAuth2RefreshTokenService {
114
117
  * VIEW_OAUTH2_REFRESH_TOKENS or VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 refresh tokens for any account
115
118
  * Using VIEW_AUTHORIZATIONS for this endpoint is deprecated; use VIEW_OAUTH2_REFRESH_TOKENS instead
116
119
  * @param options.rql Add filters to the requested list
117
- * @returns {Promise<OAuth2RefreshToken | undefined>
120
+ * @returns {Promise<OAuth2RefreshToken | undefined>}
118
121
  */
119
122
  findFirst(options?: OptionsWithRql): Promise<OAuth2RefreshToken | undefined>;
120
123
  /**
@@ -127,7 +130,7 @@ export interface OAuth2RefreshTokenService {
127
130
  * Using VIEW_AUTHORIZATIONS for this endpoint is deprecated; use VIEW_OAUTH2_REFRESH_TOKENS instead
128
131
  * @param id the refresh token id
129
132
  * @param options.rql Add filters to the requested list
130
- * @returns {Promise<OAuth2RefreshToken | undefined>
133
+ * @returns {Promise<OAuth2RefreshToken | undefined>}
131
134
  */
132
135
  findById(id: string, options?: OptionsWithRql): Promise<OAuth2RefreshToken | undefined>;
133
136
  /**
@@ -135,12 +138,13 @@ export interface OAuth2RefreshTokenService {
135
138
  *
136
139
  * Permission | Scope | Effect
137
140
  * - | - | -
138
- * DELETE_OAUTH2_REFRESH_TOKEN or DELETE_AUTHORIZATIONS | global | Required for this endpoint
139
- * Using DELETE_AUTHORIZATIONS for this endpoint is deprecated; use VIEW_OAUTH2_REFRESH_TOKENS instead
141
+ * none | | Can only delete OAuth2 refresh tokens for this account
142
+ * DELETE_OAUTH2_REFRESH_TOKEN or DELETE_AUTHORIZATIONS | global | Delete any OAuth2 refresh tokens belonging to any user
143
+ * Using DELETE_AUTHORIZATIONS for this endpoint is deprecated; use DELETE_OAUTH2_REFRESH_TOKEN instead
140
144
  * @param id the refresh token id
141
145
  * @returns AffectedRecords
142
146
  */
143
- remove(id: string, options: OptionsBase): Promise<AffectedRecords>;
147
+ remove(id: string, options?: OptionsBase): Promise<AffectedRecords>;
144
148
  }
145
149
  export interface OAuth2AuthorizationCreation {
146
150
  responseType: string;
@@ -1 +1 @@
1
- export declare const version = "8.13.0-feat-185-88d4738";
1
+ export declare const version = "8.13.0";
@@ -1 +1 @@
1
- export declare const version = "8.13.0-feat-185-88d4738";
1
+ export declare const version = "8.13.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/javascript-sdk",
3
- "version": "8.13.0-feat-185-88d4738",
3
+ "version": "8.13.0",
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",
@@ -35,7 +35,7 @@
35
35
  "axios": "0.32.0",
36
36
  "buffer": "6.0.3",
37
37
  "fflate": "0.8.2",
38
- "form-data": "4.0.4",
38
+ "form-data": "4.0.6",
39
39
  "platform-specific": "1.1.0",
40
40
  "qs": "6.15.2",
41
41
  "typescript-json-decoder": "1.0.11"