@tidecloak/js 0.13.6 → 0.13.11

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/README.md CHANGED
@@ -501,7 +501,7 @@ IAMService.doLogin(); // redirects to SSO
501
501
  IAMService.doLogout(); // clears cookie & redirects
502
502
 
503
503
  // Data encryption / decryption (TideCloak service)
504
- await IAMService.doEncrypt([{ data: { secret: 123 }, tags: ["tag1"] }]);
504
+ await IAMService.doEncrypt([{ data: "secret", tags: ["tag1"] }]);
505
505
  await IAMService.doDecrypt([{ encrypted: "...", tags: ["tag1"] }]);
506
506
  ```
507
507
 
@@ -517,3 +517,4 @@ await IAMService.doDecrypt([{ encrypted: "...", tags: ["tag1"] }]);
517
517
  * **Redirect URI**: If using a custom `redirectUri`, ensure the route or file exists.
518
518
 
519
519
  ---
520
+
@@ -641,7 +641,7 @@ class TideCloak {
641
641
  /**
642
642
  * Request Tide operator approval.
643
643
  * @param {{id: string, request: Uint8Array}[]} requests
644
- * @returns {Promise<{approved: {id: string, request: Uint8Array}[], denied: {id: string}[], pending: {id: string}[]}>}
644
+ * @returns {Promise<{ id: string; request: Uint8Array; status: "approved" | "denied" | "pending" }[]>}
645
645
  */
646
646
  async requestTideOperatorApproval(requests) {
647
647
  await this.ensureTokenReady();
@@ -641,7 +641,7 @@ class TideCloak {
641
641
  /**
642
642
  * Request Tide operator approval.
643
643
  * @param {{id: string, request: Uint8Array}[]} requests
644
- * @returns {Promise<{approved: {id: string, request: Uint8Array}[], denied: {id: string}[], pending: {id: string}[]}>}
644
+ * @returns {Promise<{ id: string; request: Uint8Array; status: "approved" | "denied" | "pending" }[]>}
645
645
  */
646
646
  async requestTideOperatorApproval(requests) {
647
647
  await this.ensureTokenReady();
@@ -197,23 +197,16 @@ export default class TideCloak {
197
197
  /**
198
198
  * Request Tide operator approval.
199
199
  * @param {{id: string, request: Uint8Array}[]} requests
200
- * @returns {Promise<{approved: {id: string, request: Uint8Array}[], denied: {id: string}[], pending: {id: string}[]}>}
200
+ * @returns {Promise<{ id: string; request: Uint8Array; status: "approved" | "denied" | "pending" }[]>}
201
201
  */
202
202
  requestTideOperatorApproval(requests: {
203
203
  id: string;
204
204
  request: Uint8Array;
205
205
  }[]): Promise<{
206
- approved: {
207
- id: string;
208
- request: Uint8Array;
209
- }[];
210
- denied: {
211
- id: string;
212
- }[];
213
- pending: {
214
- id: string;
215
- }[];
216
- }>;
206
+ id: string;
207
+ request: Uint8Array;
208
+ status: "approved" | "denied" | "pending";
209
+ }[]>;
217
210
  /**
218
211
  * Execute a Tide Sign Request
219
212
  * @param {Uint8Array} request
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidecloak/js",
3
- "version": "0.13.6",
3
+ "version": "0.13.11",
4
4
  "type": "module",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "module": "dist/esm/src/index.js",
@@ -32,6 +32,6 @@
32
32
  "silent-check-sso.html"
33
33
  ],
34
34
  "dependencies": {
35
- "heimdall-tide": "^0.13.6"
35
+ "heimdall-tide": "^0.13.11"
36
36
  }
37
37
  }