update .gitignore, add example environment file, and modify consent handling in components

This commit is contained in:
2025-08-10 10:40:42 +03:00
parent e43a8b0865
commit d09664ad57
10 changed files with 50 additions and 59 deletions

View File

@ -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 = {

View File

@ -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({