UNPKG

@linode/validation

Version:

Yup validation schemas for use with the Linode APIv4

62 lines 2.1 kB
export declare const createPersonalAccessTokenSchema: import("yup").ObjectSchema<{ scopes: string | undefined; expiry: string | undefined; label: string | undefined; }, import("yup").AnyObject, { scopes: undefined; expiry: undefined; label: undefined; }, "">; export declare const createSSHKeySchema: import("yup").ObjectSchema<{ label: string; ssh_key: string | undefined; }, import("yup").AnyObject, { label: undefined; ssh_key: undefined; }, "">; export declare const updateSSHKeySchema: import("yup").ObjectSchema<{ label: string; }, import("yup").AnyObject, { label: undefined; }, "">; export declare const emailSchema: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">; export declare const updateProfileSchema: import("yup").ObjectSchema<{ email: string | undefined; timezone: string | undefined; email_notifications: boolean | undefined; authorized_keys: (string | undefined)[] | undefined; restricted: boolean | undefined; two_factor_auth: boolean | undefined; lish_auth_method: string | undefined; authentication_type: string | undefined; }, import("yup").AnyObject, { email: undefined; timezone: undefined; email_notifications: undefined; authorized_keys: ""; restricted: undefined; two_factor_auth: undefined; lish_auth_method: undefined; authentication_type: undefined; }, "">; export declare const SendCodeToPhoneNumberSchema: import("yup").ObjectSchema<{ iso_code: string; phone_number: string | undefined; }, import("yup").AnyObject, { iso_code: undefined; phone_number: undefined; }, "">; export declare const VerifyPhoneNumberCodeSchema: import("yup").ObjectSchema<{ otp_code: string; }, import("yup").AnyObject, { otp_code: undefined; }, "">; export declare const SecurityQuestionsSchema: import("yup").ObjectSchema<{ security_questions: { question_id: number; response: string; }[]; }, import("yup").AnyObject, { security_questions: ""; }, "">; //# sourceMappingURL=profile.schema.d.ts.map