@@ -156,6 +156,9 @@ func (r *AuthConnectionService) Submit(ctx context.Context, id string, body Auth
156156type LoginRequestParam struct {
157157 // If provided, saves credentials under this name upon successful login
158158 SaveCredentialAs param.Opt [string ] `json:"save_credential_as,omitzero"`
159+ // Proxy selection. Provide either id or name. The proxy must belong to the
160+ // caller's org.
161+ Proxy LoginRequestProxyParam `json:"proxy,omitzero"`
159162 paramObj
160163}
161164
@@ -167,6 +170,24 @@ func (r *LoginRequestParam) UnmarshalJSON(data []byte) error {
167170 return apijson .UnmarshalRoot (data , r )
168171}
169172
173+ // Proxy selection. Provide either id or name. The proxy must belong to the
174+ // caller's org.
175+ type LoginRequestProxyParam struct {
176+ // Proxy ID
177+ ID param.Opt [string ] `json:"id,omitzero"`
178+ // Proxy name
179+ Name param.Opt [string ] `json:"name,omitzero"`
180+ paramObj
181+ }
182+
183+ func (r LoginRequestProxyParam ) MarshalJSON () (data []byte , err error ) {
184+ type shadow LoginRequestProxyParam
185+ return param .MarshalObject (r , (* shadow )(& r ))
186+ }
187+ func (r * LoginRequestProxyParam ) UnmarshalJSON (data []byte ) error {
188+ return apijson .UnmarshalRoot (data , r )
189+ }
190+
170191// Response from starting a login flow
171192type LoginResponse struct {
172193 // Auth connection ID
@@ -537,7 +558,8 @@ type ManagedAuthCreateRequestParam struct {
537558 // - { provider, path } for external provider item
538559 // - { provider, auto: true } for external provider domain lookup
539560 Credential ManagedAuthCreateRequestCredentialParam `json:"credential,omitzero"`
540- // Optional proxy configuration
561+ // Proxy selection. Provide either id or name. The proxy must belong to the
562+ // caller's org.
541563 Proxy ManagedAuthCreateRequestProxyParam `json:"proxy,omitzero"`
542564 paramObj
543565}
@@ -575,10 +597,13 @@ func (r *ManagedAuthCreateRequestCredentialParam) UnmarshalJSON(data []byte) err
575597 return apijson .UnmarshalRoot (data , r )
576598}
577599
578- // Optional proxy configuration
600+ // Proxy selection. Provide either id or name. The proxy must belong to the
601+ // caller's org.
579602type ManagedAuthCreateRequestProxyParam struct {
580- // ID of the proxy to use
581- ProxyID param.Opt [string ] `json:"proxy_id,omitzero"`
603+ // Proxy ID
604+ ID param.Opt [string ] `json:"id,omitzero"`
605+ // Proxy name
606+ Name param.Opt [string ] `json:"name,omitzero"`
582607 paramObj
583608}
584609
0 commit comments