@openfort/openfort-js 0.8.22 → 0.8.24

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/index.cjs CHANGED
@@ -3492,7 +3492,7 @@ class KeyPair extends signingKey.SigningKey {
3492
3492
  }
3493
3493
  }
3494
3494
 
3495
- const VERSION = '0.8.22';
3495
+ const VERSION = '0.8.24';
3496
3496
 
3497
3497
  var Event;
3498
3498
  (function (Event) {
@@ -6804,7 +6804,11 @@ const buildOpenfortTransactions$2 = async (params, backendApiClients, account, a
6804
6804
  return transactionResponse.data;
6805
6805
  };
6806
6806
  const revokeSession = async ({ params, signer, account, authentication, backendClient, policyId, }) => {
6807
- const openfortTransaction = await buildOpenfortTransactions$2(params, backendClient, account, authentication, policyId);
6807
+ const param = params[0];
6808
+ if (!param.permissionContext) {
6809
+ return {};
6810
+ }
6811
+ const openfortTransaction = await buildOpenfortTransactions$2(param, backendClient, account, authentication, policyId);
6808
6812
  let response;
6809
6813
  if (openfortTransaction?.nextAction?.payload?.signableHash) {
6810
6814
  let signature;
@@ -7158,7 +7162,7 @@ class EvmProvider {
7158
7162
  }
7159
7163
  this.#validateAndRefreshSession();
7160
7164
  return await revokeSession({
7161
- params: (request.params || {}),
7165
+ params: (request.params || []),
7162
7166
  signer,
7163
7167
  account,
7164
7168
  authentication,
package/dist/index.d.ts CHANGED
@@ -282,17 +282,19 @@ interface AuthPlayerResponsePlayer {
282
282
  'transactionIntents'?: Array<TransactionIntentResponse>;
283
283
  'accounts'?: Array<PlayerResponseAccountsInner>;
284
284
  }
285
- interface PrismaInputJsonValue {
286
- }
287
285
  interface LinkedAccountResponse {
288
286
  'provider': AuthProvider;
289
287
  'email'?: string;
290
288
  'externalUserId'?: string;
291
289
  'verified'?: boolean;
292
290
  'disabled': boolean;
291
+ 'walletClientType'?: string;
292
+ 'connectorType'?: string;
293
293
  'updatedAt'?: number;
294
294
  'address'?: string;
295
- 'metadata'?: PrismaInputJsonValue;
295
+ 'metadata'?: {
296
+ [key: string]: PlayerMetadataValue;
297
+ };
296
298
  }
297
299
  interface AuthPlayerResponse {
298
300
  'player'?: AuthPlayerResponsePlayer;
package/dist/index.js CHANGED
@@ -3469,7 +3469,7 @@ class KeyPair extends SigningKey {
3469
3469
  }
3470
3470
  }
3471
3471
 
3472
- const VERSION = '0.8.22';
3472
+ const VERSION = '0.8.24';
3473
3473
 
3474
3474
  var Event;
3475
3475
  (function (Event) {
@@ -6781,7 +6781,11 @@ const buildOpenfortTransactions$2 = async (params, backendApiClients, account, a
6781
6781
  return transactionResponse.data;
6782
6782
  };
6783
6783
  const revokeSession = async ({ params, signer, account, authentication, backendClient, policyId, }) => {
6784
- const openfortTransaction = await buildOpenfortTransactions$2(params, backendClient, account, authentication, policyId);
6784
+ const param = params[0];
6785
+ if (!param.permissionContext) {
6786
+ return {};
6787
+ }
6788
+ const openfortTransaction = await buildOpenfortTransactions$2(param, backendClient, account, authentication, policyId);
6785
6789
  let response;
6786
6790
  if (openfortTransaction?.nextAction?.payload?.signableHash) {
6787
6791
  let signature;
@@ -7135,7 +7139,7 @@ class EvmProvider {
7135
7139
  }
7136
7140
  this.#validateAndRefreshSession();
7137
7141
  return await revokeSession({
7138
- params: (request.params || {}),
7142
+ params: (request.params || []),
7139
7143
  signer,
7140
7144
  account,
7141
7145
  authentication,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfort/openfort-js",
3
- "version": "0.8.22",
3
+ "version": "0.8.24",
4
4
  "author": "Openfort (https://www.openfort.xyz)",
5
5
  "bugs": "https://github.com/openfort-xyz/openfort-js/issues",
6
6
  "repository": "openfort-xyz/openfort-js.git",