@sasjs/adapter 6.1.6 → 6.1.7

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.
@@ -221,6 +221,12 @@ export declare class SASViyaApiClient {
221
221
  refreshTokens(clientId: string, clientSecret: string, refreshToken: string): Promise<SasAuthResponse>;
222
222
  /**
223
223
  * Deletes the client representing the supplied ID.
224
+ *
225
+ * @deprecated Removing an OAuth client is an identity provider's administrative
226
+ * action: on Viya it takes an administrator's token, and the client it removes
227
+ * is a credential other callers sign in with. Nothing in this framework calls
228
+ * it, from a browser or from the CLI, so it is kept only until the next major
229
+ * release and will be removed then.
224
230
  * @param clientId - the client ID to authenticate with.
225
231
  * @param accessToken - an access token for authorizing the request.
226
232
  */
@@ -542,6 +542,12 @@ class SASViyaApiClient {
542
542
  }
543
543
  /**
544
544
  * Deletes the client representing the supplied ID.
545
+ *
546
+ * @deprecated Removing an OAuth client is an identity provider's administrative
547
+ * action: on Viya it takes an administrator's token, and the client it removes
548
+ * is a credential other callers sign in with. Nothing in this framework calls
549
+ * it, from a browser or from the CLI, so it is kept only until the next major
550
+ * release and will be removed then.
545
551
  * @param clientId - the client ID to authenticate with.
546
552
  * @param accessToken - an access token for authorizing the request.
547
553
  */
package/SASjs.d.ts CHANGED
@@ -229,6 +229,15 @@ export default class SASjs {
229
229
  * @param refreshToken - the refresh token received from the server.
230
230
  */
231
231
  refreshTokens(clientId: string, clientSecret: string, refreshToken: string): Promise<SasAuthResponse | SASjsAuthResponse>;
232
+ /**
233
+ * Deletes the client representing the supplied ID.
234
+ *
235
+ * @deprecated Nothing in the framework calls it - no CLI command, no SASjs
236
+ * Server route and no published app - and deleting an OAuth client is an estate
237
+ * administrator's action, taken in the platform against an administrator's
238
+ * token, so a browser or CLI client has no use for it. It keeps working until
239
+ * the next major release, when it will be removed.
240
+ */
232
241
  deleteClient(clientId: string, accessToken: string): Promise<unknown>;
233
242
  /**
234
243
  * Returns the current SASjs configuration.
package/SASjs.js CHANGED
@@ -408,6 +408,15 @@ class SASjs {
408
408
  return yield this.sasViyaApiClient.refreshTokens(clientId, clientSecret, refreshToken);
409
409
  });
410
410
  }
411
+ /**
412
+ * Deletes the client representing the supplied ID.
413
+ *
414
+ * @deprecated Nothing in the framework calls it - no CLI command, no SASjs
415
+ * Server route and no published app - and deleting an OAuth client is an estate
416
+ * administrator's action, taken in the platform against an administrator's
417
+ * token, so a browser or CLI client has no use for it. It keeps working until
418
+ * the next major release, when it will be removed.
419
+ */
411
420
  deleteClient(clientId, accessToken) {
412
421
  return __awaiter(this, void 0, void 0, function* () {
413
422
  this.isMethodSupported('deleteClient', [types_2.ServerType.SasViya]);
@@ -3510,6 +3510,12 @@ class SASViyaApiClient {
3510
3510
  }
3511
3511
  /**
3512
3512
  * Deletes the client representing the supplied ID.
3513
+ *
3514
+ * @deprecated Removing an OAuth client is an identity provider's administrative
3515
+ * action: on Viya it takes an administrator's token, and the client it removes
3516
+ * is a credential other callers sign in with. Nothing in this framework calls
3517
+ * it, from a browser or from the CLI, so it is kept only until the next major
3518
+ * release and will be removed then.
3513
3519
  * @param clientId - the client ID to authenticate with.
3514
3520
  * @param accessToken - an access token for authorizing the request.
3515
3521
  */
@@ -4330,6 +4336,15 @@ class SASjs {
4330
4336
  return yield this.sasViyaApiClient.refreshTokens(clientId, clientSecret, refreshToken);
4331
4337
  });
4332
4338
  }
4339
+ /**
4340
+ * Deletes the client representing the supplied ID.
4341
+ *
4342
+ * @deprecated Nothing in the framework calls it - no CLI command, no SASjs
4343
+ * Server route and no published app - and deleting an OAuth client is an estate
4344
+ * administrator's action, taken in the platform against an administrator's
4345
+ * token, so a browser or CLI client has no use for it. It keeps working until
4346
+ * the next major release, when it will be removed.
4347
+ */
4333
4348
  deleteClient(clientId, accessToken) {
4334
4349
  return __awaiter(this, void 0, void 0, function* () {
4335
4350
  this.isMethodSupported('deleteClient', [types_2.ServerType.SasViya]);
package/package.json CHANGED
@@ -37,7 +37,7 @@
37
37
  "license": "ISC",
38
38
  "devDependencies": {
39
39
  "@cypress/webpack-preprocessor": "8.0.0",
40
- "@sasjs/release": "0.11.1",
40
+ "@sasjs/release": "0.18.0",
41
41
  "@types/cors": "2.8.19",
42
42
  "@types/express": "5.0.6",
43
43
  "@types/jest": "30.0.0",
@@ -120,7 +120,7 @@
120
120
  "safer-buffer": "npm:@socketregistry/safer-buffer@1.0.10",
121
121
  "side-channel": "npm:@socketregistry/side-channel@1.0.10"
122
122
  },
123
- "version": "6.1.6",
123
+ "version": "6.1.7",
124
124
  "engines": {
125
125
  "node": ">=22"
126
126
  },