@constructive-io/react 1.19.9 → 1.19.10
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/auth/hooks/mutation-keys.d.ts +4 -0
- package/auth/hooks/mutation-keys.js +6 -0
- package/auth/hooks/mutations/index.d.ts +2 -0
- package/auth/hooks/mutations/index.js +2 -0
- package/auth/hooks/mutations/useSendStepUpCodeMutation.d.ts +20 -0
- package/auth/hooks/mutations/useSendStepUpCodeMutation.js +26 -0
- package/auth/hooks/mutations/useVerifyStepUpCodeMutation.d.ts +20 -0
- package/auth/hooks/mutations/useVerifyStepUpCodeMutation.js +26 -0
- package/auth/orm/index.d.ts +10 -0
- package/auth/orm/input-types.d.ts +26 -0
- package/auth/orm/mutation/index.d.ts +17 -1
- package/auth/orm/mutation/index.js +24 -0
- package/auth/schema-types.d.ts +17 -0
- package/esm/auth/hooks/mutation-keys.d.ts +4 -0
- package/esm/auth/hooks/mutation-keys.js +6 -0
- package/esm/auth/hooks/mutations/index.d.ts +2 -0
- package/esm/auth/hooks/mutations/index.js +2 -0
- package/esm/auth/hooks/mutations/useSendStepUpCodeMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useSendStepUpCodeMutation.js +23 -0
- package/esm/auth/hooks/mutations/useVerifyStepUpCodeMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useVerifyStepUpCodeMutation.js +23 -0
- package/esm/auth/orm/index.d.ts +10 -0
- package/esm/auth/orm/input-types.d.ts +26 -0
- package/esm/auth/orm/mutation/index.d.ts +17 -1
- package/esm/auth/orm/mutation/index.js +24 -0
- package/esm/auth/schema-types.d.ts +17 -0
- package/package.json +2 -2
|
@@ -130,6 +130,7 @@ export declare const customMutationKeys: {
|
|
|
130
130
|
/** Mutation key for sendMfaChallengeCode */ readonly sendMfaChallengeCode: (identifier?: string) => readonly ["mutation", "sendMfaChallengeCode", string] | readonly ["mutation", "sendMfaChallengeCode"];
|
|
131
131
|
/** Mutation key for sendPhoneVerificationCode */ readonly sendPhoneVerificationCode: (identifier?: string) => readonly ["mutation", "sendPhoneVerificationCode", string] | readonly ["mutation", "sendPhoneVerificationCode"];
|
|
132
132
|
/** Mutation key for sendSmsOtp */ readonly sendSmsOtp: (identifier?: string) => readonly ["mutation", "sendSmsOtp", string] | readonly ["mutation", "sendSmsOtp"];
|
|
133
|
+
/** Mutation key for sendStepUpCode */ readonly sendStepUpCode: (identifier?: string) => readonly ["mutation", "sendStepUpCode", string] | readonly ["mutation", "sendStepUpCode"];
|
|
133
134
|
/** Mutation key for sendVerificationEmail */ readonly sendVerificationEmail: (identifier?: string) => readonly ["mutation", "sendVerificationEmail", string] | readonly ["mutation", "sendVerificationEmail"];
|
|
134
135
|
/** Mutation key for setPassword */ readonly setPassword: (identifier?: string) => readonly ["mutation", "setPassword", string] | readonly ["mutation", "setPassword"];
|
|
135
136
|
/** Mutation key for setPrincipalEntities */ readonly setPrincipalEntities: (identifier?: string) => readonly ["mutation", "setPrincipalEntities", string] | readonly ["mutation", "setPrincipalEntities"];
|
|
@@ -146,6 +147,7 @@ export declare const customMutationKeys: {
|
|
|
146
147
|
/** Mutation key for verifyEmail */ readonly verifyEmail: (identifier?: string) => readonly ["mutation", "verifyEmail", string] | readonly ["mutation", "verifyEmail"];
|
|
147
148
|
/** Mutation key for verifyPassword */ readonly verifyPassword: (identifier?: string) => readonly ["mutation", "verifyPassword", string] | readonly ["mutation", "verifyPassword"];
|
|
148
149
|
/** Mutation key for verifyPhone */ readonly verifyPhone: (identifier?: string) => readonly ["mutation", "verifyPhone", string] | readonly ["mutation", "verifyPhone"];
|
|
150
|
+
/** Mutation key for verifyStepUpCode */ readonly verifyStepUpCode: (identifier?: string) => readonly ["mutation", "verifyStepUpCode", string] | readonly ["mutation", "verifyStepUpCode"];
|
|
149
151
|
/** Mutation key for verifyTotp */ readonly verifyTotp: (identifier?: string) => readonly ["mutation", "verifyTotp", string] | readonly ["mutation", "verifyTotp"];
|
|
150
152
|
};
|
|
151
153
|
/**
|
|
@@ -298,6 +300,7 @@ export declare const mutationKeys: {
|
|
|
298
300
|
/** Mutation key for sendMfaChallengeCode */ readonly sendMfaChallengeCode: (identifier?: string) => readonly ["mutation", "sendMfaChallengeCode", string] | readonly ["mutation", "sendMfaChallengeCode"];
|
|
299
301
|
/** Mutation key for sendPhoneVerificationCode */ readonly sendPhoneVerificationCode: (identifier?: string) => readonly ["mutation", "sendPhoneVerificationCode", string] | readonly ["mutation", "sendPhoneVerificationCode"];
|
|
300
302
|
/** Mutation key for sendSmsOtp */ readonly sendSmsOtp: (identifier?: string) => readonly ["mutation", "sendSmsOtp", string] | readonly ["mutation", "sendSmsOtp"];
|
|
303
|
+
/** Mutation key for sendStepUpCode */ readonly sendStepUpCode: (identifier?: string) => readonly ["mutation", "sendStepUpCode", string] | readonly ["mutation", "sendStepUpCode"];
|
|
301
304
|
/** Mutation key for sendVerificationEmail */ readonly sendVerificationEmail: (identifier?: string) => readonly ["mutation", "sendVerificationEmail", string] | readonly ["mutation", "sendVerificationEmail"];
|
|
302
305
|
/** Mutation key for setPassword */ readonly setPassword: (identifier?: string) => readonly ["mutation", "setPassword", string] | readonly ["mutation", "setPassword"];
|
|
303
306
|
/** Mutation key for setPrincipalEntities */ readonly setPrincipalEntities: (identifier?: string) => readonly ["mutation", "setPrincipalEntities", string] | readonly ["mutation", "setPrincipalEntities"];
|
|
@@ -314,6 +317,7 @@ export declare const mutationKeys: {
|
|
|
314
317
|
/** Mutation key for verifyEmail */ readonly verifyEmail: (identifier?: string) => readonly ["mutation", "verifyEmail", string] | readonly ["mutation", "verifyEmail"];
|
|
315
318
|
/** Mutation key for verifyPassword */ readonly verifyPassword: (identifier?: string) => readonly ["mutation", "verifyPassword", string] | readonly ["mutation", "verifyPassword"];
|
|
316
319
|
/** Mutation key for verifyPhone */ readonly verifyPhone: (identifier?: string) => readonly ["mutation", "verifyPhone", string] | readonly ["mutation", "verifyPhone"];
|
|
320
|
+
/** Mutation key for verifyStepUpCode */ readonly verifyStepUpCode: (identifier?: string) => readonly ["mutation", "verifyStepUpCode", string] | readonly ["mutation", "verifyStepUpCode"];
|
|
317
321
|
/** Mutation key for verifyTotp */ readonly verifyTotp: (identifier?: string) => readonly ["mutation", "verifyTotp", string] | readonly ["mutation", "verifyTotp"];
|
|
318
322
|
};
|
|
319
323
|
};
|
|
@@ -223,6 +223,9 @@ exports.customMutationKeys = {
|
|
|
223
223
|
/** Mutation key for sendSmsOtp */ sendSmsOtp: (identifier) => identifier
|
|
224
224
|
? ['mutation', 'sendSmsOtp', identifier]
|
|
225
225
|
: ['mutation', 'sendSmsOtp'],
|
|
226
|
+
/** Mutation key for sendStepUpCode */ sendStepUpCode: (identifier) => identifier
|
|
227
|
+
? ['mutation', 'sendStepUpCode', identifier]
|
|
228
|
+
: ['mutation', 'sendStepUpCode'],
|
|
226
229
|
/** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier) => identifier
|
|
227
230
|
? ['mutation', 'sendVerificationEmail', identifier]
|
|
228
231
|
: ['mutation', 'sendVerificationEmail'],
|
|
@@ -267,6 +270,9 @@ exports.customMutationKeys = {
|
|
|
267
270
|
/** Mutation key for verifyPhone */ verifyPhone: (identifier) => identifier
|
|
268
271
|
? ['mutation', 'verifyPhone', identifier]
|
|
269
272
|
: ['mutation', 'verifyPhone'],
|
|
273
|
+
/** Mutation key for verifyStepUpCode */ verifyStepUpCode: (identifier) => identifier
|
|
274
|
+
? ['mutation', 'verifyStepUpCode', identifier]
|
|
275
|
+
: ['mutation', 'verifyStepUpCode'],
|
|
270
276
|
/** Mutation key for verifyTotp */ verifyTotp: (identifier) => identifier
|
|
271
277
|
? ['mutation', 'verifyTotp', identifier]
|
|
272
278
|
: ['mutation', 'verifyTotp'],
|
|
@@ -72,6 +72,7 @@ export * from './useSendAccountDeletionEmailMutation';
|
|
|
72
72
|
export * from './useSendMfaChallengeCodeMutation';
|
|
73
73
|
export * from './useSendPhoneVerificationCodeMutation';
|
|
74
74
|
export * from './useSendSmsOtpMutation';
|
|
75
|
+
export * from './useSendStepUpCodeMutation';
|
|
75
76
|
export * from './useSendVerificationEmailMutation';
|
|
76
77
|
export * from './useSetPasswordMutation';
|
|
77
78
|
export * from './useSetPrincipalEntitiesMutation';
|
|
@@ -88,4 +89,5 @@ export * from './useUpdatePrincipalMutation';
|
|
|
88
89
|
export * from './useVerifyEmailMutation';
|
|
89
90
|
export * from './useVerifyPasswordMutation';
|
|
90
91
|
export * from './useVerifyPhoneMutation';
|
|
92
|
+
export * from './useVerifyStepUpCodeMutation';
|
|
91
93
|
export * from './useVerifyTotpMutation';
|
|
@@ -88,6 +88,7 @@ __exportStar(require("./useSendAccountDeletionEmailMutation"), exports);
|
|
|
88
88
|
__exportStar(require("./useSendMfaChallengeCodeMutation"), exports);
|
|
89
89
|
__exportStar(require("./useSendPhoneVerificationCodeMutation"), exports);
|
|
90
90
|
__exportStar(require("./useSendSmsOtpMutation"), exports);
|
|
91
|
+
__exportStar(require("./useSendStepUpCodeMutation"), exports);
|
|
91
92
|
__exportStar(require("./useSendVerificationEmailMutation"), exports);
|
|
92
93
|
__exportStar(require("./useSetPasswordMutation"), exports);
|
|
93
94
|
__exportStar(require("./useSetPrincipalEntitiesMutation"), exports);
|
|
@@ -104,4 +105,5 @@ __exportStar(require("./useUpdatePrincipalMutation"), exports);
|
|
|
104
105
|
__exportStar(require("./useVerifyEmailMutation"), exports);
|
|
105
106
|
__exportStar(require("./useVerifyPasswordMutation"), exports);
|
|
106
107
|
__exportStar(require("./useVerifyPhoneMutation"), exports);
|
|
108
|
+
__exportStar(require("./useVerifyStepUpCodeMutation"), exports);
|
|
107
109
|
__exportStar(require("./useVerifyTotpMutation"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for sendStepUpCode
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { SendStepUpCodeVariables } from '../../orm/mutation';
|
|
8
|
+
import type { SendStepUpCodePayloadSelect, SendStepUpCodePayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { SendStepUpCodeVariables } from '../../orm/mutation';
|
|
11
|
+
export type { SendStepUpCodePayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useSendStepUpCodeMutation<S extends SendStepUpCodePayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & SendStepUpCodePayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, SendStepUpCodePayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
sendStepUpCode: InferSelectResult<SendStepUpCodePayload, S> | null;
|
|
18
|
+
}, Error, SendStepUpCodeVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
sendStepUpCode: InferSelectResult<SendStepUpCodePayload, S> | null;
|
|
20
|
+
}, Error, SendStepUpCodeVariables>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Custom mutation hook for sendStepUpCode
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useSendStepUpCodeMutation = useSendStepUpCodeMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
13
|
+
function useSendStepUpCodeMutation(params) {
|
|
14
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
15
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
16
|
+
void _selection;
|
|
17
|
+
return (0, react_query_1.useMutation)({
|
|
18
|
+
mutationKey: mutation_keys_1.customMutationKeys.sendStepUpCode(),
|
|
19
|
+
mutationFn: (variables) => (0, client_1.getClient)()
|
|
20
|
+
.mutation.sendStepUpCode(variables, {
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...mutationOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for verifyStepUpCode
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { VerifyStepUpCodeVariables } from '../../orm/mutation';
|
|
8
|
+
import type { VerifyStepUpCodePayloadSelect, VerifyStepUpCodePayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { VerifyStepUpCodeVariables } from '../../orm/mutation';
|
|
11
|
+
export type { VerifyStepUpCodePayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useVerifyStepUpCodeMutation<S extends VerifyStepUpCodePayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & VerifyStepUpCodePayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, VerifyStepUpCodePayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
verifyStepUpCode: InferSelectResult<VerifyStepUpCodePayload, S> | null;
|
|
18
|
+
}, Error, VerifyStepUpCodeVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
verifyStepUpCode: InferSelectResult<VerifyStepUpCodePayload, S> | null;
|
|
20
|
+
}, Error, VerifyStepUpCodeVariables>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Custom mutation hook for verifyStepUpCode
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useVerifyStepUpCodeMutation = useVerifyStepUpCodeMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
13
|
+
function useVerifyStepUpCodeMutation(params) {
|
|
14
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
15
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
16
|
+
void _selection;
|
|
17
|
+
return (0, react_query_1.useMutation)({
|
|
18
|
+
mutationKey: mutation_keys_1.customMutationKeys.verifyStepUpCode(),
|
|
19
|
+
mutationFn: (variables) => (0, client_1.getClient)()
|
|
20
|
+
.mutation.verifyStepUpCode(variables, {
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...mutationOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
package/auth/orm/index.d.ts
CHANGED
|
@@ -273,6 +273,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
273
273
|
} & import("./select-types").StrictSelect<S, import("./input-types").SendSmsOtpPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
274
274
|
sendSmsOtp: import("./select-types").InferSelectResult<import("./input-types").SendSmsOtpPayload, S> | null;
|
|
275
275
|
}>;
|
|
276
|
+
sendStepUpCode: <S extends import("./input-types").SendStepUpCodePayloadSelect>(args: import("./mutation").SendStepUpCodeVariables, options: {
|
|
277
|
+
select: S;
|
|
278
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SendStepUpCodePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
279
|
+
sendStepUpCode: import("./select-types").InferSelectResult<import("./input-types").SendStepUpCodePayload, S> | null;
|
|
280
|
+
}>;
|
|
276
281
|
sendVerificationEmail: <S extends import("./input-types").SendVerificationEmailPayloadSelect>(args: import("./mutation").SendVerificationEmailVariables, options: {
|
|
277
282
|
select: S;
|
|
278
283
|
} & import("./select-types").StrictSelect<S, import("./input-types").SendVerificationEmailPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -353,6 +358,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
353
358
|
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyPhonePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
354
359
|
verifyPhone: import("./select-types").InferSelectResult<import("./input-types").VerifyPhonePayload, S> | null;
|
|
355
360
|
}>;
|
|
361
|
+
verifyStepUpCode: <S extends import("./input-types").VerifyStepUpCodePayloadSelect>(args: import("./mutation").VerifyStepUpCodeVariables, options: {
|
|
362
|
+
select: S;
|
|
363
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyStepUpCodePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
364
|
+
verifyStepUpCode: import("./select-types").InferSelectResult<import("./input-types").VerifyStepUpCodePayload, S> | null;
|
|
365
|
+
}>;
|
|
356
366
|
verifyTotp: <S extends import("./input-types").VerifyTotpPayloadSelect>(args: import("./mutation").VerifyTotpVariables, options: {
|
|
357
367
|
select: S;
|
|
358
368
|
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyTotpPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -1884,6 +1884,10 @@ export interface SendSmsOtpInput {
|
|
|
1884
1884
|
clientMutationId?: string;
|
|
1885
1885
|
phone?: string;
|
|
1886
1886
|
}
|
|
1887
|
+
export interface SendStepUpCodeInput {
|
|
1888
|
+
clientMutationId?: string;
|
|
1889
|
+
method?: string;
|
|
1890
|
+
}
|
|
1887
1891
|
export interface SendVerificationEmailInput {
|
|
1888
1892
|
clientMutationId?: string;
|
|
1889
1893
|
email?: ConstructiveInternalTypeEmail;
|
|
@@ -1980,6 +1984,10 @@ export interface VerifyPhoneInput {
|
|
|
1980
1984
|
code?: string;
|
|
1981
1985
|
phone?: string;
|
|
1982
1986
|
}
|
|
1987
|
+
export interface VerifyStepUpCodeInput {
|
|
1988
|
+
clientMutationId?: string;
|
|
1989
|
+
code: string;
|
|
1990
|
+
}
|
|
1983
1991
|
export interface VerifyTotpInput {
|
|
1984
1992
|
clientMutationId?: string;
|
|
1985
1993
|
totpValue: string;
|
|
@@ -3619,6 +3627,14 @@ export type SendSmsOtpPayloadSelect = {
|
|
|
3619
3627
|
clientMutationId?: boolean;
|
|
3620
3628
|
result?: boolean;
|
|
3621
3629
|
};
|
|
3630
|
+
export interface SendStepUpCodePayload {
|
|
3631
|
+
clientMutationId?: string | null;
|
|
3632
|
+
result?: string | null;
|
|
3633
|
+
}
|
|
3634
|
+
export type SendStepUpCodePayloadSelect = {
|
|
3635
|
+
clientMutationId?: boolean;
|
|
3636
|
+
result?: boolean;
|
|
3637
|
+
};
|
|
3622
3638
|
export interface SendVerificationEmailPayload {
|
|
3623
3639
|
clientMutationId?: string | null;
|
|
3624
3640
|
result?: boolean | null;
|
|
@@ -3759,6 +3775,14 @@ export type VerifyPhonePayloadSelect = {
|
|
|
3759
3775
|
clientMutationId?: boolean;
|
|
3760
3776
|
result?: boolean;
|
|
3761
3777
|
};
|
|
3778
|
+
export interface VerifyStepUpCodePayload {
|
|
3779
|
+
clientMutationId?: string | null;
|
|
3780
|
+
result?: boolean | null;
|
|
3781
|
+
}
|
|
3782
|
+
export type VerifyStepUpCodePayloadSelect = {
|
|
3783
|
+
clientMutationId?: boolean;
|
|
3784
|
+
result?: boolean;
|
|
3785
|
+
};
|
|
3762
3786
|
export interface VerifyTotpPayload {
|
|
3763
3787
|
clientMutationId?: string | null;
|
|
3764
3788
|
result?: boolean | null;
|
|
@@ -4268,6 +4292,7 @@ export interface SignInRecord {
|
|
|
4268
4292
|
isVerified?: boolean | null;
|
|
4269
4293
|
mfaChallengeToken?: string | null;
|
|
4270
4294
|
mfaRequired?: boolean | null;
|
|
4295
|
+
mfaSetupRequired?: boolean | null;
|
|
4271
4296
|
outDeviceToken?: string | null;
|
|
4272
4297
|
totpEnabled?: boolean | null;
|
|
4273
4298
|
userId?: string | null;
|
|
@@ -4280,6 +4305,7 @@ export type SignInRecordSelect = {
|
|
|
4280
4305
|
isVerified?: boolean;
|
|
4281
4306
|
mfaChallengeToken?: boolean;
|
|
4282
4307
|
mfaRequired?: boolean;
|
|
4308
|
+
mfaSetupRequired?: boolean;
|
|
4283
4309
|
outDeviceToken?: boolean;
|
|
4284
4310
|
totpEnabled?: boolean;
|
|
4285
4311
|
userId?: boolean;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { ApproveDeviceInput, CheckPasswordInput, CompleteMfaChallengeInput, ConfirmDeleteAccountInput, ConfirmTotpSetupInput, CreateApiKeyInput, CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, DisableEmailMfaInput, DisableSmsMfaInput, DisableTotpInput, DisconnectAccountInput, EnableEmailMfaInput, EnableSmsMfaInput, EnableTotpInput, ExtendTokenExpiresInput, ForgotPasswordInput, GenerateBackupCodesInput, LinkIdentityInput, MintAccessTokenInput, ProvisionBucketInput, RefreshAccessTokenInput, RequestCrossOriginTokenInput, RequestMagicLinkInput, ResetPasswordInput, RevokeApiKeyInput, RevokeOrgApiKeyInput, RevokeSessionInput, SendAccountDeletionEmailInput, SendMfaChallengeCodeInput, SendPhoneVerificationCodeInput, SendSmsOtpInput, SendVerificationEmailInput, SetPasswordInput, SetPrincipalEntitiesInput, SetPrincipalScopeInput, SignInInput, SignInCrossOriginInput, SignInMagicLinkInput, SignInSmsOtpInput, SignOutInput, SignUpInput, SignUpMagicLinkInput, SignUpSmsInput, UpdatePrincipalInput, VerifyEmailInput, VerifyPasswordInput, VerifyPhoneInput, VerifyTotpInput, ApproveDevicePayload, CheckPasswordPayload, CompleteMfaChallengePayload, ConfirmDeleteAccountPayload, ConfirmTotpSetupPayload, CreateApiKeyPayload, CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, DisableEmailMfaPayload, DisableSmsMfaPayload, DisableTotpPayload, DisconnectAccountPayload, EnableEmailMfaPayload, EnableSmsMfaPayload, EnableTotpPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, GenerateBackupCodesPayload, LinkIdentityPayload, MintAccessTokenPayload, ProvisionBucketPayload, RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, RequestMagicLinkPayload, ResetPasswordPayload, RevokeApiKeyPayload, RevokeOrgApiKeyPayload, RevokeSessionPayload, SendAccountDeletionEmailPayload, SendMfaChallengeCodePayload, SendPhoneVerificationCodePayload, SendSmsOtpPayload, SendVerificationEmailPayload, SetPasswordPayload, SetPrincipalEntitiesPayload, SetPrincipalScopePayload, SignInPayload, SignInCrossOriginPayload, SignInMagicLinkPayload, SignInSmsOtpPayload, SignOutPayload, SignUpPayload, SignUpMagicLinkPayload, SignUpSmsPayload, UpdatePrincipalPayload, VerifyEmailPayload, VerifyPasswordPayload, VerifyPhonePayload, VerifyTotpPayload, ApproveDevicePayloadSelect, CheckPasswordPayloadSelect, CompleteMfaChallengePayloadSelect, ConfirmDeleteAccountPayloadSelect, ConfirmTotpSetupPayloadSelect, CreateApiKeyPayloadSelect, CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, DisableEmailMfaPayloadSelect, DisableSmsMfaPayloadSelect, DisableTotpPayloadSelect, DisconnectAccountPayloadSelect, EnableEmailMfaPayloadSelect, EnableSmsMfaPayloadSelect, EnableTotpPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, GenerateBackupCodesPayloadSelect, LinkIdentityPayloadSelect, MintAccessTokenPayloadSelect, ProvisionBucketPayloadSelect, RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, RequestMagicLinkPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, RevokeOrgApiKeyPayloadSelect, RevokeSessionPayloadSelect, SendAccountDeletionEmailPayloadSelect, SendMfaChallengeCodePayloadSelect, SendPhoneVerificationCodePayloadSelect, SendSmsOtpPayloadSelect, SendVerificationEmailPayloadSelect, SetPasswordPayloadSelect, SetPrincipalEntitiesPayloadSelect, SetPrincipalScopePayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, SignInMagicLinkPayloadSelect, SignInSmsOtpPayloadSelect, SignOutPayloadSelect, SignUpPayloadSelect, SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, UpdatePrincipalPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, VerifyPhonePayloadSelect, VerifyTotpPayloadSelect } from '../input-types';
|
|
9
|
+
import type { ApproveDeviceInput, CheckPasswordInput, CompleteMfaChallengeInput, ConfirmDeleteAccountInput, ConfirmTotpSetupInput, CreateApiKeyInput, CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, DisableEmailMfaInput, DisableSmsMfaInput, DisableTotpInput, DisconnectAccountInput, EnableEmailMfaInput, EnableSmsMfaInput, EnableTotpInput, ExtendTokenExpiresInput, ForgotPasswordInput, GenerateBackupCodesInput, LinkIdentityInput, MintAccessTokenInput, ProvisionBucketInput, RefreshAccessTokenInput, RequestCrossOriginTokenInput, RequestMagicLinkInput, ResetPasswordInput, RevokeApiKeyInput, RevokeOrgApiKeyInput, RevokeSessionInput, SendAccountDeletionEmailInput, SendMfaChallengeCodeInput, SendPhoneVerificationCodeInput, SendSmsOtpInput, SendStepUpCodeInput, SendVerificationEmailInput, SetPasswordInput, SetPrincipalEntitiesInput, SetPrincipalScopeInput, SignInInput, SignInCrossOriginInput, SignInMagicLinkInput, SignInSmsOtpInput, SignOutInput, SignUpInput, SignUpMagicLinkInput, SignUpSmsInput, UpdatePrincipalInput, VerifyEmailInput, VerifyPasswordInput, VerifyPhoneInput, VerifyStepUpCodeInput, VerifyTotpInput, ApproveDevicePayload, CheckPasswordPayload, CompleteMfaChallengePayload, ConfirmDeleteAccountPayload, ConfirmTotpSetupPayload, CreateApiKeyPayload, CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, DisableEmailMfaPayload, DisableSmsMfaPayload, DisableTotpPayload, DisconnectAccountPayload, EnableEmailMfaPayload, EnableSmsMfaPayload, EnableTotpPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, GenerateBackupCodesPayload, LinkIdentityPayload, MintAccessTokenPayload, ProvisionBucketPayload, RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, RequestMagicLinkPayload, ResetPasswordPayload, RevokeApiKeyPayload, RevokeOrgApiKeyPayload, RevokeSessionPayload, SendAccountDeletionEmailPayload, SendMfaChallengeCodePayload, SendPhoneVerificationCodePayload, SendSmsOtpPayload, SendStepUpCodePayload, SendVerificationEmailPayload, SetPasswordPayload, SetPrincipalEntitiesPayload, SetPrincipalScopePayload, SignInPayload, SignInCrossOriginPayload, SignInMagicLinkPayload, SignInSmsOtpPayload, SignOutPayload, SignUpPayload, SignUpMagicLinkPayload, SignUpSmsPayload, UpdatePrincipalPayload, VerifyEmailPayload, VerifyPasswordPayload, VerifyPhonePayload, VerifyStepUpCodePayload, VerifyTotpPayload, ApproveDevicePayloadSelect, CheckPasswordPayloadSelect, CompleteMfaChallengePayloadSelect, ConfirmDeleteAccountPayloadSelect, ConfirmTotpSetupPayloadSelect, CreateApiKeyPayloadSelect, CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, DisableEmailMfaPayloadSelect, DisableSmsMfaPayloadSelect, DisableTotpPayloadSelect, DisconnectAccountPayloadSelect, EnableEmailMfaPayloadSelect, EnableSmsMfaPayloadSelect, EnableTotpPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, GenerateBackupCodesPayloadSelect, LinkIdentityPayloadSelect, MintAccessTokenPayloadSelect, ProvisionBucketPayloadSelect, RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, RequestMagicLinkPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, RevokeOrgApiKeyPayloadSelect, RevokeSessionPayloadSelect, SendAccountDeletionEmailPayloadSelect, SendMfaChallengeCodePayloadSelect, SendPhoneVerificationCodePayloadSelect, SendSmsOtpPayloadSelect, SendStepUpCodePayloadSelect, SendVerificationEmailPayloadSelect, SetPasswordPayloadSelect, SetPrincipalEntitiesPayloadSelect, SetPrincipalScopePayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, SignInMagicLinkPayloadSelect, SignInSmsOtpPayloadSelect, SignOutPayloadSelect, SignUpPayloadSelect, SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, UpdatePrincipalPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, VerifyPhonePayloadSelect, VerifyStepUpCodePayloadSelect, VerifyTotpPayloadSelect } from '../input-types';
|
|
10
10
|
export interface ApproveDeviceVariables {
|
|
11
11
|
input: ApproveDeviceInput;
|
|
12
12
|
}
|
|
@@ -123,6 +123,9 @@ export interface SendPhoneVerificationCodeVariables {
|
|
|
123
123
|
export interface SendSmsOtpVariables {
|
|
124
124
|
input: SendSmsOtpInput;
|
|
125
125
|
}
|
|
126
|
+
export interface SendStepUpCodeVariables {
|
|
127
|
+
input: SendStepUpCodeInput;
|
|
128
|
+
}
|
|
126
129
|
export interface SendVerificationEmailVariables {
|
|
127
130
|
input: SendVerificationEmailInput;
|
|
128
131
|
}
|
|
@@ -171,6 +174,9 @@ export interface VerifyPasswordVariables {
|
|
|
171
174
|
export interface VerifyPhoneVariables {
|
|
172
175
|
input: VerifyPhoneInput;
|
|
173
176
|
}
|
|
177
|
+
export interface VerifyStepUpCodeVariables {
|
|
178
|
+
input: VerifyStepUpCodeInput;
|
|
179
|
+
}
|
|
174
180
|
export interface VerifyTotpVariables {
|
|
175
181
|
input: VerifyTotpInput;
|
|
176
182
|
}
|
|
@@ -355,6 +361,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
355
361
|
} & StrictSelect<S, SendSmsOtpPayloadSelect>) => QueryBuilder<{
|
|
356
362
|
sendSmsOtp: InferSelectResult<SendSmsOtpPayload, S> | null;
|
|
357
363
|
}>;
|
|
364
|
+
sendStepUpCode: <S extends SendStepUpCodePayloadSelect>(args: SendStepUpCodeVariables, options: {
|
|
365
|
+
select: S;
|
|
366
|
+
} & StrictSelect<S, SendStepUpCodePayloadSelect>) => QueryBuilder<{
|
|
367
|
+
sendStepUpCode: InferSelectResult<SendStepUpCodePayload, S> | null;
|
|
368
|
+
}>;
|
|
358
369
|
sendVerificationEmail: <S extends SendVerificationEmailPayloadSelect>(args: SendVerificationEmailVariables, options: {
|
|
359
370
|
select: S;
|
|
360
371
|
} & StrictSelect<S, SendVerificationEmailPayloadSelect>) => QueryBuilder<{
|
|
@@ -435,6 +446,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
435
446
|
} & StrictSelect<S, VerifyPhonePayloadSelect>) => QueryBuilder<{
|
|
436
447
|
verifyPhone: InferSelectResult<VerifyPhonePayload, S> | null;
|
|
437
448
|
}>;
|
|
449
|
+
verifyStepUpCode: <S extends VerifyStepUpCodePayloadSelect>(args: VerifyStepUpCodeVariables, options: {
|
|
450
|
+
select: S;
|
|
451
|
+
} & StrictSelect<S, VerifyStepUpCodePayloadSelect>) => QueryBuilder<{
|
|
452
|
+
verifyStepUpCode: InferSelectResult<VerifyStepUpCodePayload, S> | null;
|
|
453
|
+
}>;
|
|
438
454
|
verifyTotp: <S extends VerifyTotpPayloadSelect>(args: VerifyTotpVariables, options: {
|
|
439
455
|
select: S;
|
|
440
456
|
} & StrictSelect<S, VerifyTotpPayloadSelect>) => QueryBuilder<{
|
|
@@ -437,6 +437,18 @@ function createMutationOperations(client) {
|
|
|
437
437
|
},
|
|
438
438
|
], input_types_1.connectionFieldsMap, 'SendSmsOtpPayload'),
|
|
439
439
|
}),
|
|
440
|
+
sendStepUpCode: (args, options) => new query_builder_1.QueryBuilder({
|
|
441
|
+
client,
|
|
442
|
+
operation: 'mutation',
|
|
443
|
+
operationName: 'SendStepUpCode',
|
|
444
|
+
fieldName: 'sendStepUpCode',
|
|
445
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SendStepUpCode', 'sendStepUpCode', options.select, args, [
|
|
446
|
+
{
|
|
447
|
+
name: 'input',
|
|
448
|
+
type: 'SendStepUpCodeInput!',
|
|
449
|
+
},
|
|
450
|
+
], input_types_1.connectionFieldsMap, 'SendStepUpCodePayload'),
|
|
451
|
+
}),
|
|
440
452
|
sendVerificationEmail: (args, options) => new query_builder_1.QueryBuilder({
|
|
441
453
|
client,
|
|
442
454
|
operation: 'mutation',
|
|
@@ -629,6 +641,18 @@ function createMutationOperations(client) {
|
|
|
629
641
|
},
|
|
630
642
|
], input_types_1.connectionFieldsMap, 'VerifyPhonePayload'),
|
|
631
643
|
}),
|
|
644
|
+
verifyStepUpCode: (args, options) => new query_builder_1.QueryBuilder({
|
|
645
|
+
client,
|
|
646
|
+
operation: 'mutation',
|
|
647
|
+
operationName: 'VerifyStepUpCode',
|
|
648
|
+
fieldName: 'verifyStepUpCode',
|
|
649
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'VerifyStepUpCode', 'verifyStepUpCode', options.select, args, [
|
|
650
|
+
{
|
|
651
|
+
name: 'input',
|
|
652
|
+
type: 'VerifyStepUpCodeInput!',
|
|
653
|
+
},
|
|
654
|
+
], input_types_1.connectionFieldsMap, 'VerifyStepUpCodePayload'),
|
|
655
|
+
}),
|
|
632
656
|
verifyTotp: (args, options) => new query_builder_1.QueryBuilder({
|
|
633
657
|
client,
|
|
634
658
|
operation: 'mutation',
|
package/auth/schema-types.d.ts
CHANGED
|
@@ -1024,6 +1024,10 @@ export interface SendSmsOtpInput {
|
|
|
1024
1024
|
clientMutationId?: string;
|
|
1025
1025
|
phone?: string;
|
|
1026
1026
|
}
|
|
1027
|
+
export interface SendStepUpCodeInput {
|
|
1028
|
+
clientMutationId?: string;
|
|
1029
|
+
method?: string;
|
|
1030
|
+
}
|
|
1027
1031
|
export interface SendVerificationEmailInput {
|
|
1028
1032
|
clientMutationId?: string;
|
|
1029
1033
|
email?: ConstructiveInternalTypeEmail;
|
|
@@ -1560,6 +1564,10 @@ export interface VerifyPhoneInput {
|
|
|
1560
1564
|
code?: string;
|
|
1561
1565
|
phone?: string;
|
|
1562
1566
|
}
|
|
1567
|
+
export interface VerifyStepUpCodeInput {
|
|
1568
|
+
clientMutationId?: string;
|
|
1569
|
+
code: string;
|
|
1570
|
+
}
|
|
1563
1571
|
export interface VerifyTotpInput {
|
|
1564
1572
|
clientMutationId?: string;
|
|
1565
1573
|
totpValue: string;
|
|
@@ -2030,6 +2038,10 @@ export interface SendSmsOtpPayload {
|
|
|
2030
2038
|
clientMutationId?: string | null;
|
|
2031
2039
|
result?: boolean | null;
|
|
2032
2040
|
}
|
|
2041
|
+
export interface SendStepUpCodePayload {
|
|
2042
|
+
clientMutationId?: string | null;
|
|
2043
|
+
result?: string | null;
|
|
2044
|
+
}
|
|
2033
2045
|
export interface SendVerificationEmailPayload {
|
|
2034
2046
|
clientMutationId?: string | null;
|
|
2035
2047
|
result?: boolean | null;
|
|
@@ -2147,6 +2159,10 @@ export interface VerifyPhonePayload {
|
|
|
2147
2159
|
clientMutationId?: string | null;
|
|
2148
2160
|
result?: boolean | null;
|
|
2149
2161
|
}
|
|
2162
|
+
export interface VerifyStepUpCodePayload {
|
|
2163
|
+
clientMutationId?: string | null;
|
|
2164
|
+
result?: boolean | null;
|
|
2165
|
+
}
|
|
2150
2166
|
export interface VerifyTotpPayload {
|
|
2151
2167
|
clientMutationId?: string | null;
|
|
2152
2168
|
result?: boolean | null;
|
|
@@ -2327,6 +2343,7 @@ export interface SignInRecord {
|
|
|
2327
2343
|
isVerified?: boolean | null;
|
|
2328
2344
|
mfaChallengeToken?: string | null;
|
|
2329
2345
|
mfaRequired?: boolean | null;
|
|
2346
|
+
mfaSetupRequired?: boolean | null;
|
|
2330
2347
|
outDeviceToken?: string | null;
|
|
2331
2348
|
totpEnabled?: boolean | null;
|
|
2332
2349
|
userId?: string | null;
|
|
@@ -130,6 +130,7 @@ export declare const customMutationKeys: {
|
|
|
130
130
|
/** Mutation key for sendMfaChallengeCode */ readonly sendMfaChallengeCode: (identifier?: string) => readonly ["mutation", "sendMfaChallengeCode", string] | readonly ["mutation", "sendMfaChallengeCode"];
|
|
131
131
|
/** Mutation key for sendPhoneVerificationCode */ readonly sendPhoneVerificationCode: (identifier?: string) => readonly ["mutation", "sendPhoneVerificationCode", string] | readonly ["mutation", "sendPhoneVerificationCode"];
|
|
132
132
|
/** Mutation key for sendSmsOtp */ readonly sendSmsOtp: (identifier?: string) => readonly ["mutation", "sendSmsOtp", string] | readonly ["mutation", "sendSmsOtp"];
|
|
133
|
+
/** Mutation key for sendStepUpCode */ readonly sendStepUpCode: (identifier?: string) => readonly ["mutation", "sendStepUpCode", string] | readonly ["mutation", "sendStepUpCode"];
|
|
133
134
|
/** Mutation key for sendVerificationEmail */ readonly sendVerificationEmail: (identifier?: string) => readonly ["mutation", "sendVerificationEmail", string] | readonly ["mutation", "sendVerificationEmail"];
|
|
134
135
|
/** Mutation key for setPassword */ readonly setPassword: (identifier?: string) => readonly ["mutation", "setPassword", string] | readonly ["mutation", "setPassword"];
|
|
135
136
|
/** Mutation key for setPrincipalEntities */ readonly setPrincipalEntities: (identifier?: string) => readonly ["mutation", "setPrincipalEntities", string] | readonly ["mutation", "setPrincipalEntities"];
|
|
@@ -146,6 +147,7 @@ export declare const customMutationKeys: {
|
|
|
146
147
|
/** Mutation key for verifyEmail */ readonly verifyEmail: (identifier?: string) => readonly ["mutation", "verifyEmail", string] | readonly ["mutation", "verifyEmail"];
|
|
147
148
|
/** Mutation key for verifyPassword */ readonly verifyPassword: (identifier?: string) => readonly ["mutation", "verifyPassword", string] | readonly ["mutation", "verifyPassword"];
|
|
148
149
|
/** Mutation key for verifyPhone */ readonly verifyPhone: (identifier?: string) => readonly ["mutation", "verifyPhone", string] | readonly ["mutation", "verifyPhone"];
|
|
150
|
+
/** Mutation key for verifyStepUpCode */ readonly verifyStepUpCode: (identifier?: string) => readonly ["mutation", "verifyStepUpCode", string] | readonly ["mutation", "verifyStepUpCode"];
|
|
149
151
|
/** Mutation key for verifyTotp */ readonly verifyTotp: (identifier?: string) => readonly ["mutation", "verifyTotp", string] | readonly ["mutation", "verifyTotp"];
|
|
150
152
|
};
|
|
151
153
|
/**
|
|
@@ -298,6 +300,7 @@ export declare const mutationKeys: {
|
|
|
298
300
|
/** Mutation key for sendMfaChallengeCode */ readonly sendMfaChallengeCode: (identifier?: string) => readonly ["mutation", "sendMfaChallengeCode", string] | readonly ["mutation", "sendMfaChallengeCode"];
|
|
299
301
|
/** Mutation key for sendPhoneVerificationCode */ readonly sendPhoneVerificationCode: (identifier?: string) => readonly ["mutation", "sendPhoneVerificationCode", string] | readonly ["mutation", "sendPhoneVerificationCode"];
|
|
300
302
|
/** Mutation key for sendSmsOtp */ readonly sendSmsOtp: (identifier?: string) => readonly ["mutation", "sendSmsOtp", string] | readonly ["mutation", "sendSmsOtp"];
|
|
303
|
+
/** Mutation key for sendStepUpCode */ readonly sendStepUpCode: (identifier?: string) => readonly ["mutation", "sendStepUpCode", string] | readonly ["mutation", "sendStepUpCode"];
|
|
301
304
|
/** Mutation key for sendVerificationEmail */ readonly sendVerificationEmail: (identifier?: string) => readonly ["mutation", "sendVerificationEmail", string] | readonly ["mutation", "sendVerificationEmail"];
|
|
302
305
|
/** Mutation key for setPassword */ readonly setPassword: (identifier?: string) => readonly ["mutation", "setPassword", string] | readonly ["mutation", "setPassword"];
|
|
303
306
|
/** Mutation key for setPrincipalEntities */ readonly setPrincipalEntities: (identifier?: string) => readonly ["mutation", "setPrincipalEntities", string] | readonly ["mutation", "setPrincipalEntities"];
|
|
@@ -314,6 +317,7 @@ export declare const mutationKeys: {
|
|
|
314
317
|
/** Mutation key for verifyEmail */ readonly verifyEmail: (identifier?: string) => readonly ["mutation", "verifyEmail", string] | readonly ["mutation", "verifyEmail"];
|
|
315
318
|
/** Mutation key for verifyPassword */ readonly verifyPassword: (identifier?: string) => readonly ["mutation", "verifyPassword", string] | readonly ["mutation", "verifyPassword"];
|
|
316
319
|
/** Mutation key for verifyPhone */ readonly verifyPhone: (identifier?: string) => readonly ["mutation", "verifyPhone", string] | readonly ["mutation", "verifyPhone"];
|
|
320
|
+
/** Mutation key for verifyStepUpCode */ readonly verifyStepUpCode: (identifier?: string) => readonly ["mutation", "verifyStepUpCode", string] | readonly ["mutation", "verifyStepUpCode"];
|
|
317
321
|
/** Mutation key for verifyTotp */ readonly verifyTotp: (identifier?: string) => readonly ["mutation", "verifyTotp", string] | readonly ["mutation", "verifyTotp"];
|
|
318
322
|
};
|
|
319
323
|
};
|
|
@@ -220,6 +220,9 @@ export const customMutationKeys = {
|
|
|
220
220
|
/** Mutation key for sendSmsOtp */ sendSmsOtp: (identifier) => identifier
|
|
221
221
|
? ['mutation', 'sendSmsOtp', identifier]
|
|
222
222
|
: ['mutation', 'sendSmsOtp'],
|
|
223
|
+
/** Mutation key for sendStepUpCode */ sendStepUpCode: (identifier) => identifier
|
|
224
|
+
? ['mutation', 'sendStepUpCode', identifier]
|
|
225
|
+
: ['mutation', 'sendStepUpCode'],
|
|
223
226
|
/** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier) => identifier
|
|
224
227
|
? ['mutation', 'sendVerificationEmail', identifier]
|
|
225
228
|
: ['mutation', 'sendVerificationEmail'],
|
|
@@ -264,6 +267,9 @@ export const customMutationKeys = {
|
|
|
264
267
|
/** Mutation key for verifyPhone */ verifyPhone: (identifier) => identifier
|
|
265
268
|
? ['mutation', 'verifyPhone', identifier]
|
|
266
269
|
: ['mutation', 'verifyPhone'],
|
|
270
|
+
/** Mutation key for verifyStepUpCode */ verifyStepUpCode: (identifier) => identifier
|
|
271
|
+
? ['mutation', 'verifyStepUpCode', identifier]
|
|
272
|
+
: ['mutation', 'verifyStepUpCode'],
|
|
267
273
|
/** Mutation key for verifyTotp */ verifyTotp: (identifier) => identifier
|
|
268
274
|
? ['mutation', 'verifyTotp', identifier]
|
|
269
275
|
: ['mutation', 'verifyTotp'],
|
|
@@ -72,6 +72,7 @@ export * from './useSendAccountDeletionEmailMutation';
|
|
|
72
72
|
export * from './useSendMfaChallengeCodeMutation';
|
|
73
73
|
export * from './useSendPhoneVerificationCodeMutation';
|
|
74
74
|
export * from './useSendSmsOtpMutation';
|
|
75
|
+
export * from './useSendStepUpCodeMutation';
|
|
75
76
|
export * from './useSendVerificationEmailMutation';
|
|
76
77
|
export * from './useSetPasswordMutation';
|
|
77
78
|
export * from './useSetPrincipalEntitiesMutation';
|
|
@@ -88,4 +89,5 @@ export * from './useUpdatePrincipalMutation';
|
|
|
88
89
|
export * from './useVerifyEmailMutation';
|
|
89
90
|
export * from './useVerifyPasswordMutation';
|
|
90
91
|
export * from './useVerifyPhoneMutation';
|
|
92
|
+
export * from './useVerifyStepUpCodeMutation';
|
|
91
93
|
export * from './useVerifyTotpMutation';
|
|
@@ -72,6 +72,7 @@ export * from './useSendAccountDeletionEmailMutation';
|
|
|
72
72
|
export * from './useSendMfaChallengeCodeMutation';
|
|
73
73
|
export * from './useSendPhoneVerificationCodeMutation';
|
|
74
74
|
export * from './useSendSmsOtpMutation';
|
|
75
|
+
export * from './useSendStepUpCodeMutation';
|
|
75
76
|
export * from './useSendVerificationEmailMutation';
|
|
76
77
|
export * from './useSetPasswordMutation';
|
|
77
78
|
export * from './useSetPrincipalEntitiesMutation';
|
|
@@ -88,4 +89,5 @@ export * from './useUpdatePrincipalMutation';
|
|
|
88
89
|
export * from './useVerifyEmailMutation';
|
|
89
90
|
export * from './useVerifyPasswordMutation';
|
|
90
91
|
export * from './useVerifyPhoneMutation';
|
|
92
|
+
export * from './useVerifyStepUpCodeMutation';
|
|
91
93
|
export * from './useVerifyTotpMutation';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for sendStepUpCode
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { SendStepUpCodeVariables } from '../../orm/mutation';
|
|
8
|
+
import type { SendStepUpCodePayloadSelect, SendStepUpCodePayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { SendStepUpCodeVariables } from '../../orm/mutation';
|
|
11
|
+
export type { SendStepUpCodePayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useSendStepUpCodeMutation<S extends SendStepUpCodePayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & SendStepUpCodePayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, SendStepUpCodePayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
sendStepUpCode: InferSelectResult<SendStepUpCodePayload, S> | null;
|
|
18
|
+
}, Error, SendStepUpCodeVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
sendStepUpCode: InferSelectResult<SendStepUpCodePayload, S> | null;
|
|
20
|
+
}, Error, SendStepUpCodeVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for sendStepUpCode
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useSendStepUpCodeMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.sendStepUpCode(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.sendStepUpCode(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for verifyStepUpCode
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { VerifyStepUpCodeVariables } from '../../orm/mutation';
|
|
8
|
+
import type { VerifyStepUpCodePayloadSelect, VerifyStepUpCodePayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { VerifyStepUpCodeVariables } from '../../orm/mutation';
|
|
11
|
+
export type { VerifyStepUpCodePayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useVerifyStepUpCodeMutation<S extends VerifyStepUpCodePayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & VerifyStepUpCodePayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, VerifyStepUpCodePayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
verifyStepUpCode: InferSelectResult<VerifyStepUpCodePayload, S> | null;
|
|
18
|
+
}, Error, VerifyStepUpCodeVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
verifyStepUpCode: InferSelectResult<VerifyStepUpCodePayload, S> | null;
|
|
20
|
+
}, Error, VerifyStepUpCodeVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for verifyStepUpCode
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useVerifyStepUpCodeMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.verifyStepUpCode(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.verifyStepUpCode(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
package/esm/auth/orm/index.d.ts
CHANGED
|
@@ -273,6 +273,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
273
273
|
} & import("./select-types").StrictSelect<S, import("./input-types").SendSmsOtpPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
274
274
|
sendSmsOtp: import("./select-types").InferSelectResult<import("./input-types").SendSmsOtpPayload, S> | null;
|
|
275
275
|
}>;
|
|
276
|
+
sendStepUpCode: <S extends import("./input-types").SendStepUpCodePayloadSelect>(args: import("./mutation").SendStepUpCodeVariables, options: {
|
|
277
|
+
select: S;
|
|
278
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SendStepUpCodePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
279
|
+
sendStepUpCode: import("./select-types").InferSelectResult<import("./input-types").SendStepUpCodePayload, S> | null;
|
|
280
|
+
}>;
|
|
276
281
|
sendVerificationEmail: <S extends import("./input-types").SendVerificationEmailPayloadSelect>(args: import("./mutation").SendVerificationEmailVariables, options: {
|
|
277
282
|
select: S;
|
|
278
283
|
} & import("./select-types").StrictSelect<S, import("./input-types").SendVerificationEmailPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -353,6 +358,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
353
358
|
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyPhonePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
354
359
|
verifyPhone: import("./select-types").InferSelectResult<import("./input-types").VerifyPhonePayload, S> | null;
|
|
355
360
|
}>;
|
|
361
|
+
verifyStepUpCode: <S extends import("./input-types").VerifyStepUpCodePayloadSelect>(args: import("./mutation").VerifyStepUpCodeVariables, options: {
|
|
362
|
+
select: S;
|
|
363
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyStepUpCodePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
364
|
+
verifyStepUpCode: import("./select-types").InferSelectResult<import("./input-types").VerifyStepUpCodePayload, S> | null;
|
|
365
|
+
}>;
|
|
356
366
|
verifyTotp: <S extends import("./input-types").VerifyTotpPayloadSelect>(args: import("./mutation").VerifyTotpVariables, options: {
|
|
357
367
|
select: S;
|
|
358
368
|
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyTotpPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -1884,6 +1884,10 @@ export interface SendSmsOtpInput {
|
|
|
1884
1884
|
clientMutationId?: string;
|
|
1885
1885
|
phone?: string;
|
|
1886
1886
|
}
|
|
1887
|
+
export interface SendStepUpCodeInput {
|
|
1888
|
+
clientMutationId?: string;
|
|
1889
|
+
method?: string;
|
|
1890
|
+
}
|
|
1887
1891
|
export interface SendVerificationEmailInput {
|
|
1888
1892
|
clientMutationId?: string;
|
|
1889
1893
|
email?: ConstructiveInternalTypeEmail;
|
|
@@ -1980,6 +1984,10 @@ export interface VerifyPhoneInput {
|
|
|
1980
1984
|
code?: string;
|
|
1981
1985
|
phone?: string;
|
|
1982
1986
|
}
|
|
1987
|
+
export interface VerifyStepUpCodeInput {
|
|
1988
|
+
clientMutationId?: string;
|
|
1989
|
+
code: string;
|
|
1990
|
+
}
|
|
1983
1991
|
export interface VerifyTotpInput {
|
|
1984
1992
|
clientMutationId?: string;
|
|
1985
1993
|
totpValue: string;
|
|
@@ -3619,6 +3627,14 @@ export type SendSmsOtpPayloadSelect = {
|
|
|
3619
3627
|
clientMutationId?: boolean;
|
|
3620
3628
|
result?: boolean;
|
|
3621
3629
|
};
|
|
3630
|
+
export interface SendStepUpCodePayload {
|
|
3631
|
+
clientMutationId?: string | null;
|
|
3632
|
+
result?: string | null;
|
|
3633
|
+
}
|
|
3634
|
+
export type SendStepUpCodePayloadSelect = {
|
|
3635
|
+
clientMutationId?: boolean;
|
|
3636
|
+
result?: boolean;
|
|
3637
|
+
};
|
|
3622
3638
|
export interface SendVerificationEmailPayload {
|
|
3623
3639
|
clientMutationId?: string | null;
|
|
3624
3640
|
result?: boolean | null;
|
|
@@ -3759,6 +3775,14 @@ export type VerifyPhonePayloadSelect = {
|
|
|
3759
3775
|
clientMutationId?: boolean;
|
|
3760
3776
|
result?: boolean;
|
|
3761
3777
|
};
|
|
3778
|
+
export interface VerifyStepUpCodePayload {
|
|
3779
|
+
clientMutationId?: string | null;
|
|
3780
|
+
result?: boolean | null;
|
|
3781
|
+
}
|
|
3782
|
+
export type VerifyStepUpCodePayloadSelect = {
|
|
3783
|
+
clientMutationId?: boolean;
|
|
3784
|
+
result?: boolean;
|
|
3785
|
+
};
|
|
3762
3786
|
export interface VerifyTotpPayload {
|
|
3763
3787
|
clientMutationId?: string | null;
|
|
3764
3788
|
result?: boolean | null;
|
|
@@ -4268,6 +4292,7 @@ export interface SignInRecord {
|
|
|
4268
4292
|
isVerified?: boolean | null;
|
|
4269
4293
|
mfaChallengeToken?: string | null;
|
|
4270
4294
|
mfaRequired?: boolean | null;
|
|
4295
|
+
mfaSetupRequired?: boolean | null;
|
|
4271
4296
|
outDeviceToken?: string | null;
|
|
4272
4297
|
totpEnabled?: boolean | null;
|
|
4273
4298
|
userId?: string | null;
|
|
@@ -4280,6 +4305,7 @@ export type SignInRecordSelect = {
|
|
|
4280
4305
|
isVerified?: boolean;
|
|
4281
4306
|
mfaChallengeToken?: boolean;
|
|
4282
4307
|
mfaRequired?: boolean;
|
|
4308
|
+
mfaSetupRequired?: boolean;
|
|
4283
4309
|
outDeviceToken?: boolean;
|
|
4284
4310
|
totpEnabled?: boolean;
|
|
4285
4311
|
userId?: boolean;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { ApproveDeviceInput, CheckPasswordInput, CompleteMfaChallengeInput, ConfirmDeleteAccountInput, ConfirmTotpSetupInput, CreateApiKeyInput, CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, DisableEmailMfaInput, DisableSmsMfaInput, DisableTotpInput, DisconnectAccountInput, EnableEmailMfaInput, EnableSmsMfaInput, EnableTotpInput, ExtendTokenExpiresInput, ForgotPasswordInput, GenerateBackupCodesInput, LinkIdentityInput, MintAccessTokenInput, ProvisionBucketInput, RefreshAccessTokenInput, RequestCrossOriginTokenInput, RequestMagicLinkInput, ResetPasswordInput, RevokeApiKeyInput, RevokeOrgApiKeyInput, RevokeSessionInput, SendAccountDeletionEmailInput, SendMfaChallengeCodeInput, SendPhoneVerificationCodeInput, SendSmsOtpInput, SendVerificationEmailInput, SetPasswordInput, SetPrincipalEntitiesInput, SetPrincipalScopeInput, SignInInput, SignInCrossOriginInput, SignInMagicLinkInput, SignInSmsOtpInput, SignOutInput, SignUpInput, SignUpMagicLinkInput, SignUpSmsInput, UpdatePrincipalInput, VerifyEmailInput, VerifyPasswordInput, VerifyPhoneInput, VerifyTotpInput, ApproveDevicePayload, CheckPasswordPayload, CompleteMfaChallengePayload, ConfirmDeleteAccountPayload, ConfirmTotpSetupPayload, CreateApiKeyPayload, CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, DisableEmailMfaPayload, DisableSmsMfaPayload, DisableTotpPayload, DisconnectAccountPayload, EnableEmailMfaPayload, EnableSmsMfaPayload, EnableTotpPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, GenerateBackupCodesPayload, LinkIdentityPayload, MintAccessTokenPayload, ProvisionBucketPayload, RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, RequestMagicLinkPayload, ResetPasswordPayload, RevokeApiKeyPayload, RevokeOrgApiKeyPayload, RevokeSessionPayload, SendAccountDeletionEmailPayload, SendMfaChallengeCodePayload, SendPhoneVerificationCodePayload, SendSmsOtpPayload, SendVerificationEmailPayload, SetPasswordPayload, SetPrincipalEntitiesPayload, SetPrincipalScopePayload, SignInPayload, SignInCrossOriginPayload, SignInMagicLinkPayload, SignInSmsOtpPayload, SignOutPayload, SignUpPayload, SignUpMagicLinkPayload, SignUpSmsPayload, UpdatePrincipalPayload, VerifyEmailPayload, VerifyPasswordPayload, VerifyPhonePayload, VerifyTotpPayload, ApproveDevicePayloadSelect, CheckPasswordPayloadSelect, CompleteMfaChallengePayloadSelect, ConfirmDeleteAccountPayloadSelect, ConfirmTotpSetupPayloadSelect, CreateApiKeyPayloadSelect, CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, DisableEmailMfaPayloadSelect, DisableSmsMfaPayloadSelect, DisableTotpPayloadSelect, DisconnectAccountPayloadSelect, EnableEmailMfaPayloadSelect, EnableSmsMfaPayloadSelect, EnableTotpPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, GenerateBackupCodesPayloadSelect, LinkIdentityPayloadSelect, MintAccessTokenPayloadSelect, ProvisionBucketPayloadSelect, RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, RequestMagicLinkPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, RevokeOrgApiKeyPayloadSelect, RevokeSessionPayloadSelect, SendAccountDeletionEmailPayloadSelect, SendMfaChallengeCodePayloadSelect, SendPhoneVerificationCodePayloadSelect, SendSmsOtpPayloadSelect, SendVerificationEmailPayloadSelect, SetPasswordPayloadSelect, SetPrincipalEntitiesPayloadSelect, SetPrincipalScopePayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, SignInMagicLinkPayloadSelect, SignInSmsOtpPayloadSelect, SignOutPayloadSelect, SignUpPayloadSelect, SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, UpdatePrincipalPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, VerifyPhonePayloadSelect, VerifyTotpPayloadSelect } from '../input-types';
|
|
9
|
+
import type { ApproveDeviceInput, CheckPasswordInput, CompleteMfaChallengeInput, ConfirmDeleteAccountInput, ConfirmTotpSetupInput, CreateApiKeyInput, CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, DisableEmailMfaInput, DisableSmsMfaInput, DisableTotpInput, DisconnectAccountInput, EnableEmailMfaInput, EnableSmsMfaInput, EnableTotpInput, ExtendTokenExpiresInput, ForgotPasswordInput, GenerateBackupCodesInput, LinkIdentityInput, MintAccessTokenInput, ProvisionBucketInput, RefreshAccessTokenInput, RequestCrossOriginTokenInput, RequestMagicLinkInput, ResetPasswordInput, RevokeApiKeyInput, RevokeOrgApiKeyInput, RevokeSessionInput, SendAccountDeletionEmailInput, SendMfaChallengeCodeInput, SendPhoneVerificationCodeInput, SendSmsOtpInput, SendStepUpCodeInput, SendVerificationEmailInput, SetPasswordInput, SetPrincipalEntitiesInput, SetPrincipalScopeInput, SignInInput, SignInCrossOriginInput, SignInMagicLinkInput, SignInSmsOtpInput, SignOutInput, SignUpInput, SignUpMagicLinkInput, SignUpSmsInput, UpdatePrincipalInput, VerifyEmailInput, VerifyPasswordInput, VerifyPhoneInput, VerifyStepUpCodeInput, VerifyTotpInput, ApproveDevicePayload, CheckPasswordPayload, CompleteMfaChallengePayload, ConfirmDeleteAccountPayload, ConfirmTotpSetupPayload, CreateApiKeyPayload, CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, DisableEmailMfaPayload, DisableSmsMfaPayload, DisableTotpPayload, DisconnectAccountPayload, EnableEmailMfaPayload, EnableSmsMfaPayload, EnableTotpPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, GenerateBackupCodesPayload, LinkIdentityPayload, MintAccessTokenPayload, ProvisionBucketPayload, RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, RequestMagicLinkPayload, ResetPasswordPayload, RevokeApiKeyPayload, RevokeOrgApiKeyPayload, RevokeSessionPayload, SendAccountDeletionEmailPayload, SendMfaChallengeCodePayload, SendPhoneVerificationCodePayload, SendSmsOtpPayload, SendStepUpCodePayload, SendVerificationEmailPayload, SetPasswordPayload, SetPrincipalEntitiesPayload, SetPrincipalScopePayload, SignInPayload, SignInCrossOriginPayload, SignInMagicLinkPayload, SignInSmsOtpPayload, SignOutPayload, SignUpPayload, SignUpMagicLinkPayload, SignUpSmsPayload, UpdatePrincipalPayload, VerifyEmailPayload, VerifyPasswordPayload, VerifyPhonePayload, VerifyStepUpCodePayload, VerifyTotpPayload, ApproveDevicePayloadSelect, CheckPasswordPayloadSelect, CompleteMfaChallengePayloadSelect, ConfirmDeleteAccountPayloadSelect, ConfirmTotpSetupPayloadSelect, CreateApiKeyPayloadSelect, CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, DisableEmailMfaPayloadSelect, DisableSmsMfaPayloadSelect, DisableTotpPayloadSelect, DisconnectAccountPayloadSelect, EnableEmailMfaPayloadSelect, EnableSmsMfaPayloadSelect, EnableTotpPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, GenerateBackupCodesPayloadSelect, LinkIdentityPayloadSelect, MintAccessTokenPayloadSelect, ProvisionBucketPayloadSelect, RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, RequestMagicLinkPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, RevokeOrgApiKeyPayloadSelect, RevokeSessionPayloadSelect, SendAccountDeletionEmailPayloadSelect, SendMfaChallengeCodePayloadSelect, SendPhoneVerificationCodePayloadSelect, SendSmsOtpPayloadSelect, SendStepUpCodePayloadSelect, SendVerificationEmailPayloadSelect, SetPasswordPayloadSelect, SetPrincipalEntitiesPayloadSelect, SetPrincipalScopePayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, SignInMagicLinkPayloadSelect, SignInSmsOtpPayloadSelect, SignOutPayloadSelect, SignUpPayloadSelect, SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, UpdatePrincipalPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, VerifyPhonePayloadSelect, VerifyStepUpCodePayloadSelect, VerifyTotpPayloadSelect } from '../input-types';
|
|
10
10
|
export interface ApproveDeviceVariables {
|
|
11
11
|
input: ApproveDeviceInput;
|
|
12
12
|
}
|
|
@@ -123,6 +123,9 @@ export interface SendPhoneVerificationCodeVariables {
|
|
|
123
123
|
export interface SendSmsOtpVariables {
|
|
124
124
|
input: SendSmsOtpInput;
|
|
125
125
|
}
|
|
126
|
+
export interface SendStepUpCodeVariables {
|
|
127
|
+
input: SendStepUpCodeInput;
|
|
128
|
+
}
|
|
126
129
|
export interface SendVerificationEmailVariables {
|
|
127
130
|
input: SendVerificationEmailInput;
|
|
128
131
|
}
|
|
@@ -171,6 +174,9 @@ export interface VerifyPasswordVariables {
|
|
|
171
174
|
export interface VerifyPhoneVariables {
|
|
172
175
|
input: VerifyPhoneInput;
|
|
173
176
|
}
|
|
177
|
+
export interface VerifyStepUpCodeVariables {
|
|
178
|
+
input: VerifyStepUpCodeInput;
|
|
179
|
+
}
|
|
174
180
|
export interface VerifyTotpVariables {
|
|
175
181
|
input: VerifyTotpInput;
|
|
176
182
|
}
|
|
@@ -355,6 +361,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
355
361
|
} & StrictSelect<S, SendSmsOtpPayloadSelect>) => QueryBuilder<{
|
|
356
362
|
sendSmsOtp: InferSelectResult<SendSmsOtpPayload, S> | null;
|
|
357
363
|
}>;
|
|
364
|
+
sendStepUpCode: <S extends SendStepUpCodePayloadSelect>(args: SendStepUpCodeVariables, options: {
|
|
365
|
+
select: S;
|
|
366
|
+
} & StrictSelect<S, SendStepUpCodePayloadSelect>) => QueryBuilder<{
|
|
367
|
+
sendStepUpCode: InferSelectResult<SendStepUpCodePayload, S> | null;
|
|
368
|
+
}>;
|
|
358
369
|
sendVerificationEmail: <S extends SendVerificationEmailPayloadSelect>(args: SendVerificationEmailVariables, options: {
|
|
359
370
|
select: S;
|
|
360
371
|
} & StrictSelect<S, SendVerificationEmailPayloadSelect>) => QueryBuilder<{
|
|
@@ -435,6 +446,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
435
446
|
} & StrictSelect<S, VerifyPhonePayloadSelect>) => QueryBuilder<{
|
|
436
447
|
verifyPhone: InferSelectResult<VerifyPhonePayload, S> | null;
|
|
437
448
|
}>;
|
|
449
|
+
verifyStepUpCode: <S extends VerifyStepUpCodePayloadSelect>(args: VerifyStepUpCodeVariables, options: {
|
|
450
|
+
select: S;
|
|
451
|
+
} & StrictSelect<S, VerifyStepUpCodePayloadSelect>) => QueryBuilder<{
|
|
452
|
+
verifyStepUpCode: InferSelectResult<VerifyStepUpCodePayload, S> | null;
|
|
453
|
+
}>;
|
|
438
454
|
verifyTotp: <S extends VerifyTotpPayloadSelect>(args: VerifyTotpVariables, options: {
|
|
439
455
|
select: S;
|
|
440
456
|
} & StrictSelect<S, VerifyTotpPayloadSelect>) => QueryBuilder<{
|
|
@@ -434,6 +434,18 @@ export function createMutationOperations(client) {
|
|
|
434
434
|
},
|
|
435
435
|
], connectionFieldsMap, 'SendSmsOtpPayload'),
|
|
436
436
|
}),
|
|
437
|
+
sendStepUpCode: (args, options) => new QueryBuilder({
|
|
438
|
+
client,
|
|
439
|
+
operation: 'mutation',
|
|
440
|
+
operationName: 'SendStepUpCode',
|
|
441
|
+
fieldName: 'sendStepUpCode',
|
|
442
|
+
...buildCustomDocument('mutation', 'SendStepUpCode', 'sendStepUpCode', options.select, args, [
|
|
443
|
+
{
|
|
444
|
+
name: 'input',
|
|
445
|
+
type: 'SendStepUpCodeInput!',
|
|
446
|
+
},
|
|
447
|
+
], connectionFieldsMap, 'SendStepUpCodePayload'),
|
|
448
|
+
}),
|
|
437
449
|
sendVerificationEmail: (args, options) => new QueryBuilder({
|
|
438
450
|
client,
|
|
439
451
|
operation: 'mutation',
|
|
@@ -626,6 +638,18 @@ export function createMutationOperations(client) {
|
|
|
626
638
|
},
|
|
627
639
|
], connectionFieldsMap, 'VerifyPhonePayload'),
|
|
628
640
|
}),
|
|
641
|
+
verifyStepUpCode: (args, options) => new QueryBuilder({
|
|
642
|
+
client,
|
|
643
|
+
operation: 'mutation',
|
|
644
|
+
operationName: 'VerifyStepUpCode',
|
|
645
|
+
fieldName: 'verifyStepUpCode',
|
|
646
|
+
...buildCustomDocument('mutation', 'VerifyStepUpCode', 'verifyStepUpCode', options.select, args, [
|
|
647
|
+
{
|
|
648
|
+
name: 'input',
|
|
649
|
+
type: 'VerifyStepUpCodeInput!',
|
|
650
|
+
},
|
|
651
|
+
], connectionFieldsMap, 'VerifyStepUpCodePayload'),
|
|
652
|
+
}),
|
|
629
653
|
verifyTotp: (args, options) => new QueryBuilder({
|
|
630
654
|
client,
|
|
631
655
|
operation: 'mutation',
|
|
@@ -1024,6 +1024,10 @@ export interface SendSmsOtpInput {
|
|
|
1024
1024
|
clientMutationId?: string;
|
|
1025
1025
|
phone?: string;
|
|
1026
1026
|
}
|
|
1027
|
+
export interface SendStepUpCodeInput {
|
|
1028
|
+
clientMutationId?: string;
|
|
1029
|
+
method?: string;
|
|
1030
|
+
}
|
|
1027
1031
|
export interface SendVerificationEmailInput {
|
|
1028
1032
|
clientMutationId?: string;
|
|
1029
1033
|
email?: ConstructiveInternalTypeEmail;
|
|
@@ -1560,6 +1564,10 @@ export interface VerifyPhoneInput {
|
|
|
1560
1564
|
code?: string;
|
|
1561
1565
|
phone?: string;
|
|
1562
1566
|
}
|
|
1567
|
+
export interface VerifyStepUpCodeInput {
|
|
1568
|
+
clientMutationId?: string;
|
|
1569
|
+
code: string;
|
|
1570
|
+
}
|
|
1563
1571
|
export interface VerifyTotpInput {
|
|
1564
1572
|
clientMutationId?: string;
|
|
1565
1573
|
totpValue: string;
|
|
@@ -2030,6 +2038,10 @@ export interface SendSmsOtpPayload {
|
|
|
2030
2038
|
clientMutationId?: string | null;
|
|
2031
2039
|
result?: boolean | null;
|
|
2032
2040
|
}
|
|
2041
|
+
export interface SendStepUpCodePayload {
|
|
2042
|
+
clientMutationId?: string | null;
|
|
2043
|
+
result?: string | null;
|
|
2044
|
+
}
|
|
2033
2045
|
export interface SendVerificationEmailPayload {
|
|
2034
2046
|
clientMutationId?: string | null;
|
|
2035
2047
|
result?: boolean | null;
|
|
@@ -2147,6 +2159,10 @@ export interface VerifyPhonePayload {
|
|
|
2147
2159
|
clientMutationId?: string | null;
|
|
2148
2160
|
result?: boolean | null;
|
|
2149
2161
|
}
|
|
2162
|
+
export interface VerifyStepUpCodePayload {
|
|
2163
|
+
clientMutationId?: string | null;
|
|
2164
|
+
result?: boolean | null;
|
|
2165
|
+
}
|
|
2150
2166
|
export interface VerifyTotpPayload {
|
|
2151
2167
|
clientMutationId?: string | null;
|
|
2152
2168
|
result?: boolean | null;
|
|
@@ -2327,6 +2343,7 @@ export interface SignInRecord {
|
|
|
2327
2343
|
isVerified?: boolean | null;
|
|
2328
2344
|
mfaChallengeToken?: string | null;
|
|
2329
2345
|
mfaRequired?: boolean | null;
|
|
2346
|
+
mfaSetupRequired?: boolean | null;
|
|
2330
2347
|
outDeviceToken?: string | null;
|
|
2331
2348
|
totpEnabled?: boolean | null;
|
|
2332
2349
|
userId?: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/react",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.10",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive React - Auto-generated React Query hooks and ORM client",
|
|
6
6
|
"main": "index.js",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"tsx": "^4.19.0",
|
|
60
60
|
"typescript": "^6.0.3"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "5bfd326dedbe898ef9495530cd842cff4034957f"
|
|
63
63
|
}
|