1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
/*
* Ory APIs
*
* Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
*
* The version of the OpenAPI document: v1.1.7
* Contact: support@ory.sh
* Generated by: https://openapi-generator.tech
*/
/// UpdateSettingsFlowBody : Update Settings Flow Request Body
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "method")]
pub enum UpdateSettingsFlowBody {
#[serde(rename="lookup_secret")]
UpdateSettingsFlowWithLookupMethod {
/// CSRFToken is the anti-CSRF token
#[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
csrf_token: Option<String>,
/// If set to true will save the regenerated lookup secrets
#[serde(rename = "lookup_secret_confirm", skip_serializing_if = "Option::is_none")]
// false, false, , bool, false
lookup_secret_confirm: Option<bool>,
/// Disables this method if true.
#[serde(rename = "lookup_secret_disable", skip_serializing_if = "Option::is_none")]
// false, false, , bool, false
lookup_secret_disable: Option<bool>,
/// If set to true will regenerate the lookup secrets
#[serde(rename = "lookup_secret_regenerate", skip_serializing_if = "Option::is_none")]
// false, false, , bool, false
lookup_secret_regenerate: Option<bool>,
/// If set to true will reveal the lookup secrets
#[serde(rename = "lookup_secret_reveal", skip_serializing_if = "Option::is_none")]
// false, false, , bool, false
lookup_secret_reveal: Option<bool>,
},
#[serde(rename="oidc")]
UpdateSettingsFlowWithOidcMethod {
/// Flow ID is the flow's ID. in: query
#[serde(rename = "flow", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
flow: Option<String>,
/// Link this provider Either this or `unlink` must be set. type: string in: body
#[serde(rename = "link", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
link: Option<String>,
/// The identity's traits in: body
#[serde(rename = "traits", skip_serializing_if = "Option::is_none")]
// false, false, , serde_json::Value, false
traits: Option<serde_json::Value>,
/// Unlink this provider Either this or `link` must be set. type: string in: body
#[serde(rename = "unlink", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
unlink: Option<String>,
},
#[serde(rename="password")]
UpdateSettingsFlowWithPasswordMethod {
/// CSRFToken is the anti-CSRF token
#[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
csrf_token: Option<String>,
/// Password is the updated password
#[serde(rename = "password")]
// true, false, , String, false
password: String,
},
#[serde(rename="profile")]
UpdateSettingsFlowWithProfileMethod {
/// The Anti-CSRF Token This token is only required when performing browser flows.
#[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
csrf_token: Option<String>,
/// Traits The identity's traits.
#[serde(rename = "traits")]
// true, false, , serde_json::Value, false
traits: serde_json::Value,
},
#[serde(rename="totp")]
UpdateSettingsFlowWithTotpMethod {
/// CSRFToken is the anti-CSRF token
#[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
csrf_token: Option<String>,
/// ValidationTOTP must contain a valid TOTP based on the
#[serde(rename = "totp_code", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
totp_code: Option<String>,
/// UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device.
#[serde(rename = "totp_unlink", skip_serializing_if = "Option::is_none")]
// false, false, , bool, false
totp_unlink: Option<bool>,
},
#[serde(rename="webauthn")]
UpdateSettingsFlowWithWebAuthnMethod {
/// CSRFToken is the anti-CSRF token
#[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
csrf_token: Option<String>,
/// Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here.
#[serde(rename = "webauthn_register", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
webauthn_register: Option<String>,
/// Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added.
#[serde(rename = "webauthn_register_displayname", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
webauthn_register_displayname: Option<String>,
/// Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection.
#[serde(rename = "webauthn_remove", skip_serializing_if = "Option::is_none")]
// false, false, , String, false
webauthn_remove: Option<String>,
},
}