@trymellon/js 1.6.2 → 1.7.1

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/react.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { T as TryMellon, R as Result, a as RegisterResult, b as TryMellonError, c as RegisterOptions, A as AuthenticateResult, d as AuthenticateOptions } from './trymellon-BkIVfr7x.cjs';
3
+ import { T as TryMellon, R as Result, a as RegisterResult, b as TryMellonError, c as RegisterOptions, A as AuthenticateResult, d as AuthenticateOptions } from './trymellon-DcpBmlJ1.cjs';
4
4
 
5
5
  declare function TryMellonProvider(props: {
6
6
  client: TryMellon;
package/dist/react.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { T as TryMellon, R as Result, a as RegisterResult, b as TryMellonError, c as RegisterOptions, A as AuthenticateResult, d as AuthenticateOptions } from './trymellon-BkIVfr7x.js';
3
+ import { T as TryMellon, R as Result, a as RegisterResult, b as TryMellonError, c as RegisterOptions, A as AuthenticateResult, d as AuthenticateOptions } from './trymellon-DcpBmlJ1.js';
4
4
 
5
5
  declare function TryMellonProvider(props: {
6
6
  client: TryMellon;
@@ -180,11 +180,15 @@ type CrossDeviceStatusResult = {
180
180
  type CrossDeviceContextAuth = {
181
181
  type: 'auth';
182
182
  options: AuthStartResponse['challenge'];
183
+ approval_context?: string;
184
+ application_name?: string;
183
185
  };
184
186
  /** Context for registration: creation options (create). */
185
187
  type CrossDeviceContextRegistration = {
186
188
  type: 'registration';
187
189
  options: RegisterStartResponse['challenge'];
190
+ approval_context?: string;
191
+ application_name?: string;
188
192
  };
189
193
  /**
190
194
  * Contract: response of getCrossDeviceContext.
@@ -510,6 +514,7 @@ declare class TryMellon {
510
514
  session_token: string;
511
515
  user_id: string;
512
516
  }, TryMellonError>>;
517
+ getContext: (sessionId: string) => Promise<Result<CrossDeviceContextResult, TryMellonError>>;
513
518
  approve: (sessionId: string) => Promise<Result<void, TryMellonError>>;
514
519
  };
515
520
  recoverAccount: (options: RecoverAccountOptions) => Promise<Result<RecoverAccountResult, TryMellonError>>;
@@ -180,11 +180,15 @@ type CrossDeviceStatusResult = {
180
180
  type CrossDeviceContextAuth = {
181
181
  type: 'auth';
182
182
  options: AuthStartResponse['challenge'];
183
+ approval_context?: string;
184
+ application_name?: string;
183
185
  };
184
186
  /** Context for registration: creation options (create). */
185
187
  type CrossDeviceContextRegistration = {
186
188
  type: 'registration';
187
189
  options: RegisterStartResponse['challenge'];
190
+ approval_context?: string;
191
+ application_name?: string;
188
192
  };
189
193
  /**
190
194
  * Contract: response of getCrossDeviceContext.
@@ -510,6 +514,7 @@ declare class TryMellon {
510
514
  session_token: string;
511
515
  user_id: string;
512
516
  }, TryMellonError>>;
517
+ getContext: (sessionId: string) => Promise<Result<CrossDeviceContextResult, TryMellonError>>;
513
518
  approve: (sessionId: string) => Promise<Result<void, TryMellonError>>;
514
519
  };
515
520
  recoverAccount: (options: RecoverAccountOptions) => Promise<Result<RecoverAccountResult, TryMellonError>>;
package/dist/vue.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
- import { T as TryMellon, R as Result, a as RegisterResult, b as TryMellonError, c as RegisterOptions, A as AuthenticateResult, d as AuthenticateOptions } from './trymellon-BkIVfr7x.cjs';
2
+ import { T as TryMellon, R as Result, a as RegisterResult, b as TryMellonError, c as RegisterOptions, A as AuthenticateResult, d as AuthenticateOptions } from './trymellon-DcpBmlJ1.cjs';
3
3
 
4
4
  declare const TryMellonKey: InjectionKey<TryMellon>;
5
5
  declare function provideTryMellon(client: TryMellon): void;
package/dist/vue.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
- import { T as TryMellon, R as Result, a as RegisterResult, b as TryMellonError, c as RegisterOptions, A as AuthenticateResult, d as AuthenticateOptions } from './trymellon-BkIVfr7x.js';
2
+ import { T as TryMellon, R as Result, a as RegisterResult, b as TryMellonError, c as RegisterOptions, A as AuthenticateResult, d as AuthenticateOptions } from './trymellon-DcpBmlJ1.js';
3
3
 
4
4
  declare const TryMellonKey: InjectionKey<TryMellon>;
5
5
  declare function provideTryMellon(client: TryMellon): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trymellon/js",
3
- "version": "1.6.2",
3
+ "version": "1.7.1",
4
4
  "description": "SDK oficial de TryMellon para integrar autenticación passwordless con Passkeys / WebAuthn",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",