import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * With this resource, you can create and manage Forms for a tenant. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // Example: * const myForm = new auth0.Form("my_form", { * name: "My KYC Form", * start: JSON.stringify({ * coordinates: { * x: 0, * y: 0, * }, * next_node: "step_ggeX", * }), * nodes: JSON.stringify([{ * alias: "New step", * config: { * components: [ * { * category: "FIELD", * config: { * max_length: 50, * min_length: 1, * multiline: false, * }, * id: "full_name", * label: "Your Name", * required: true, * sensitive: false, * type: "TEXT", * }, * { * category: "BLOCK", * config: { * text: "Continue", * }, * id: "next_button_3FbA", * type: "NEXT_BUTTON", * }, * ], * next_node: "$ending", * }, * coordinates: { * x: 500, * y: 0, * }, * id: "step_ggeX", * type: "STEP", * }]), * ending: JSON.stringify({ * after_submit: { * flow_id: "", * }, * coordinates: { * x: 1250, * y: 0, * }, * resume_flow: true, * }), * style: JSON.stringify({ * css: `h1 { * color: white; * text-align: center; * }`, * }), * translations: JSON.stringify({ * es: { * components: { * rich_text_uctu: { * config: { * content: "

Help us verify your personal information

We want to learn more about you so that we can validate and protect your account...

", * }, * }, * }, * messages: { * custom: {}, * errors: { * ERR_ACCEPTANCE_REQUIRED: "Por favor, marca este campo para continuar.", * }, * }, * }, * }), * messages: [{ * errors: JSON.stringify({ * ERR_REQUIRED_PROPERTY: "This field is required for user kyc.", * }), * }], * languages: [{ * "default": "en", * primary: "en", * }], * }); * ``` * * ## Import * * This resource can be imported using the form ID. * * Example: * * ```sh * $ pulumi import auth0:index/form:Form my_form "ap_ojkKbiPMG6J5E5VCKdeCzK" * ``` */ export declare class Form extends pulumi.CustomResource { /** * Get an existing Form resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FormState, opts?: pulumi.CustomResourceOptions): Form; /** * Returns true if the given object is an instance of Form. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Form; /** * Submission configuration of the form. (JSON encoded) */ readonly ending: pulumi.Output; /** * Language specific configuration for the form. */ readonly languages: pulumi.Output; /** * Message specific configuration for the form. */ readonly messages: pulumi.Output; /** * Name of the form. */ readonly name: pulumi.Output; /** * Nodes of the form. (JSON encoded) */ readonly nodes: pulumi.Output; /** * Input setup of the form. (JSON encoded) */ readonly start: pulumi.Output; /** * Style specific configuration for the form. (JSON encoded) */ readonly style: pulumi.Output; /** * Translations of the form. (JSON encoded) */ readonly translations: pulumi.Output; /** * Create a Form resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: FormArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Form resources. */ export interface FormState { /** * Submission configuration of the form. (JSON encoded) */ ending?: pulumi.Input; /** * Language specific configuration for the form. */ languages?: pulumi.Input[]>; /** * Message specific configuration for the form. */ messages?: pulumi.Input[]>; /** * Name of the form. */ name?: pulumi.Input; /** * Nodes of the form. (JSON encoded) */ nodes?: pulumi.Input; /** * Input setup of the form. (JSON encoded) */ start?: pulumi.Input; /** * Style specific configuration for the form. (JSON encoded) */ style?: pulumi.Input; /** * Translations of the form. (JSON encoded) */ translations?: pulumi.Input; } /** * The set of arguments for constructing a Form resource. */ export interface FormArgs { /** * Submission configuration of the form. (JSON encoded) */ ending?: pulumi.Input; /** * Language specific configuration for the form. */ languages?: pulumi.Input[]>; /** * Message specific configuration for the form. */ messages?: pulumi.Input[]>; /** * Name of the form. */ name?: pulumi.Input; /** * Nodes of the form. (JSON encoded) */ nodes?: pulumi.Input; /** * Input setup of the form. (JSON encoded) */ start?: pulumi.Input; /** * Style specific configuration for the form. (JSON encoded) */ style?: pulumi.Input; /** * Translations of the form. (JSON encoded) */ translations?: pulumi.Input; }