@trymellon/js 1.7.6 → 1.7.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.
- package/dist/angular.cjs +1 -1
- package/dist/angular.cjs.map +1 -1
- package/dist/angular.d.cts +1 -1
- package/dist/angular.d.ts +1 -1
- package/dist/angular.js +1 -1
- package/dist/angular.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.global.js +2 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/{trymellon-NM6i2RKa.d.cts → trymellon-CItwBg_1.d.cts} +8 -1
- package/dist/{trymellon-NM6i2RKa.d.ts → trymellon-CItwBg_1.d.ts} +8 -1
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.ts +1 -1
- package/package.json +1 -1
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-
|
|
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-CItwBg_1.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-
|
|
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-CItwBg_1.js';
|
|
4
4
|
|
|
5
5
|
declare function TryMellonProvider(props: {
|
|
6
6
|
client: TryMellon;
|
|
@@ -141,6 +141,8 @@ type RecoveryCompleteResponse = {
|
|
|
141
141
|
metadata?: Record<string, unknown>;
|
|
142
142
|
};
|
|
143
143
|
credential_id: string;
|
|
144
|
+
/** Set when successUrl was passed and allowed by application allowlist. */
|
|
145
|
+
redirect_url?: string;
|
|
144
146
|
};
|
|
145
147
|
type RecoverAccountOptions = {
|
|
146
148
|
/** The external user ID of the account being recovered. */
|
|
@@ -163,6 +165,8 @@ interface RecoverAccountResult {
|
|
|
163
165
|
email?: string;
|
|
164
166
|
metadata?: Record<string, unknown>;
|
|
165
167
|
};
|
|
168
|
+
/** Set when successUrl was passed and allowed by application allowlist. */
|
|
169
|
+
redirectUrl?: string;
|
|
166
170
|
}
|
|
167
171
|
type OnboardingStartOptions = {
|
|
168
172
|
user_role: 'maintainer' | 'app_user';
|
|
@@ -185,6 +189,8 @@ type CrossDeviceStatusResult = {
|
|
|
185
189
|
status: 'pending' | 'authenticated' | 'completed';
|
|
186
190
|
user_id?: string;
|
|
187
191
|
session_token?: string;
|
|
192
|
+
/** Set when backend allows redirect; returned in GET cross-device/status when status=completed. */
|
|
193
|
+
redirect_url?: string;
|
|
188
194
|
};
|
|
189
195
|
/** Context for auth: request options (get). */
|
|
190
196
|
type CrossDeviceContextAuth = {
|
|
@@ -316,7 +322,7 @@ interface AuthFinishResponse {
|
|
|
316
322
|
email?: string;
|
|
317
323
|
metadata?: Record<string, unknown>;
|
|
318
324
|
};
|
|
319
|
-
signals
|
|
325
|
+
signals?: {
|
|
320
326
|
userVerification?: boolean;
|
|
321
327
|
backupEligible?: boolean;
|
|
322
328
|
backupStatus?: boolean;
|
|
@@ -543,6 +549,7 @@ declare class TryMellon {
|
|
|
543
549
|
waitForSession: (sessionId: string, signal?: AbortSignal, pollingToken?: string | null) => Promise<Result<{
|
|
544
550
|
session_token: string;
|
|
545
551
|
user_id: string;
|
|
552
|
+
redirectUrl?: string;
|
|
546
553
|
}, TryMellonError>>;
|
|
547
554
|
getContext: (sessionId: string) => Promise<Result<CrossDeviceContextResult, TryMellonError>>;
|
|
548
555
|
approve: (sessionId: string) => Promise<Result<void, TryMellonError>>;
|
|
@@ -141,6 +141,8 @@ type RecoveryCompleteResponse = {
|
|
|
141
141
|
metadata?: Record<string, unknown>;
|
|
142
142
|
};
|
|
143
143
|
credential_id: string;
|
|
144
|
+
/** Set when successUrl was passed and allowed by application allowlist. */
|
|
145
|
+
redirect_url?: string;
|
|
144
146
|
};
|
|
145
147
|
type RecoverAccountOptions = {
|
|
146
148
|
/** The external user ID of the account being recovered. */
|
|
@@ -163,6 +165,8 @@ interface RecoverAccountResult {
|
|
|
163
165
|
email?: string;
|
|
164
166
|
metadata?: Record<string, unknown>;
|
|
165
167
|
};
|
|
168
|
+
/** Set when successUrl was passed and allowed by application allowlist. */
|
|
169
|
+
redirectUrl?: string;
|
|
166
170
|
}
|
|
167
171
|
type OnboardingStartOptions = {
|
|
168
172
|
user_role: 'maintainer' | 'app_user';
|
|
@@ -185,6 +189,8 @@ type CrossDeviceStatusResult = {
|
|
|
185
189
|
status: 'pending' | 'authenticated' | 'completed';
|
|
186
190
|
user_id?: string;
|
|
187
191
|
session_token?: string;
|
|
192
|
+
/** Set when backend allows redirect; returned in GET cross-device/status when status=completed. */
|
|
193
|
+
redirect_url?: string;
|
|
188
194
|
};
|
|
189
195
|
/** Context for auth: request options (get). */
|
|
190
196
|
type CrossDeviceContextAuth = {
|
|
@@ -316,7 +322,7 @@ interface AuthFinishResponse {
|
|
|
316
322
|
email?: string;
|
|
317
323
|
metadata?: Record<string, unknown>;
|
|
318
324
|
};
|
|
319
|
-
signals
|
|
325
|
+
signals?: {
|
|
320
326
|
userVerification?: boolean;
|
|
321
327
|
backupEligible?: boolean;
|
|
322
328
|
backupStatus?: boolean;
|
|
@@ -543,6 +549,7 @@ declare class TryMellon {
|
|
|
543
549
|
waitForSession: (sessionId: string, signal?: AbortSignal, pollingToken?: string | null) => Promise<Result<{
|
|
544
550
|
session_token: string;
|
|
545
551
|
user_id: string;
|
|
552
|
+
redirectUrl?: string;
|
|
546
553
|
}, TryMellonError>>;
|
|
547
554
|
getContext: (sessionId: string) => Promise<Result<CrossDeviceContextResult, TryMellonError>>;
|
|
548
555
|
approve: (sessionId: string) => Promise<Result<void, 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-
|
|
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-CItwBg_1.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-
|
|
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-CItwBg_1.js';
|
|
3
3
|
|
|
4
4
|
declare const TryMellonKey: InjectionKey<TryMellon>;
|
|
5
5
|
declare function provideTryMellon(client: TryMellon): void;
|