update .gitignore, add example environment file, and modify consent handling in components
This commit is contained in:
@ -42,6 +42,10 @@ export type VerifyOtpResponse = {
|
||||
* Status of the verification
|
||||
*/
|
||||
ok: boolean;
|
||||
/**
|
||||
* Confirmation message
|
||||
*/
|
||||
message: string;
|
||||
};
|
||||
|
||||
export type AcceptConsentRequest = {
|
||||
@ -49,6 +53,10 @@ export type AcceptConsentRequest = {
|
||||
* The consent challenge to accept
|
||||
*/
|
||||
consent_challenge: string;
|
||||
/**
|
||||
* Phone number associated with the consent
|
||||
*/
|
||||
phone_number: string;
|
||||
};
|
||||
|
||||
export type AcceptConsentResponse = {
|
||||
|
||||
@ -19,11 +19,13 @@ export const zVerifyOtpRequest = z.object({
|
||||
|
||||
export const zVerifyOtpResponse = z.object({
|
||||
redirect_url: z.string(),
|
||||
ok: z.boolean()
|
||||
ok: z.boolean(),
|
||||
message: z.string()
|
||||
});
|
||||
|
||||
export const zAcceptConsentRequest = z.object({
|
||||
consent_challenge: z.string()
|
||||
consent_challenge: z.string(),
|
||||
phone_number: z.string().max(15)
|
||||
});
|
||||
|
||||
export const zAcceptConsentResponse = z.object({
|
||||
|
||||
Reference in New Issue
Block a user