pub struct StartOAuthRequest {
pub agent_id: Option<String>,
pub name: Option<String>,
pub scopes: Option<Vec<String>>,
pub connector_id: Option<String>,
pub extra: Option<Map<String, Value>>,
}Expand description
StartOAuthRequest model.
Fields§
§agent_id: Option<String>Optional. Was declared REQUIRED here while the route has treated it as optional
(routes/integrations.ts: “agent_id is now optional — if provided, validate it exists”), so
a generated client had to invent one to connect an integration that belongs to no agent.
name: Option<String>§scopes: Option<Vec<String>>§connector_id: Option<String>The destination connector when it differs from the OAuth provider in the path —
google_calendar through google, for example. The route reads it and resolves scopes from
it; the document did not declare it, so a client generated from this document could not send
it and multi-connector OAuth silently asked for the provider’s scopes instead of the
connector’s. Wrong scopes, no error.
extra: Option<Map<String, Value>>Provider-specific parameters the authorize URL needs, e.g. { "subdomain": "acme" } for
Zendesk. Read by the route, previously undeclared.
Trait Implementations§
Source§impl Clone for StartOAuthRequest
impl Clone for StartOAuthRequest
Source§fn clone(&self) -> StartOAuthRequest
fn clone(&self) -> StartOAuthRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more