// WithSessionTimeout overrides the DefaultTimeout and should be parseable by time.ParseDuration
8739
func WithSessionTimeout(timeout string) ClientOptionFunc {
	return func(c *Client) error {
		if timeout == "" {
			c.sessionTimeout = DefaultTimeout
			return nil
		}

		t, err := time.ParseDuration(timeout)
		if err != nil {
			return client.InvalidTimeoutError{Timeout: timeout}
		}
		c.sessionTimeout = t
		return nil
	}
}
847606
func WithRequestTimeout(t time.Duration) Option {
	return func(c *config) {
		c.requestTimeout = t
	}
}
674071
func (o *GetEndpointIDLogParams) WithTimeout(timeout time.Duration) *GetEndpointIDLogParams {
	o.SetTimeout(timeout)
	return o
}
933522
func (o *GetHelloParams) WithTimeout(timeout time.Duration) *GetHelloParams {
	o.SetTimeout(timeout)
	return o
}
242924
func (o *GetConsentRequestParams) WithTimeout(timeout time.Duration) *GetConsentRequestParams {
	o.SetTimeout(timeout)
	return o
}
1284558
func (o *AcceptLoginRequestParams) WithTimeout(timeout time.Duration) *AcceptLoginRequestParams {
	o.SetTimeout(timeout)
	return o
}
745245
func (o *RevokeOAuth2TokenParams) WithTimeout(timeout time.Duration) *RevokeOAuth2TokenParams {
	o.SetTimeout(timeout)
	return o
}
876375
func (o *PatchEndpointIDParams) WithTimeout(timeout time.Duration) *PatchEndpointIDParams {
	o.SetTimeout(timeout)
	return o
}
625734
func (ctx *Context) WithTimeout(timeout time.Duration) (context.Context, context.CancelFunc) {
	return context.WithTimeout(ctx._ctx, timeout)
}
460223
func (c *Client) WithSessionToken(sessionToken string) *Client {
	newClient, _ := NewClient(c.appID, c.restApiKey)
	newClient.sessionToken = sessionToken
	newClient.logger = c.logger
	return newClient
}
586510
func WithTimeout(timeoutType fab.TimeoutType, timeout time.Duration) RequestOption {
	return func(ctx context.Client, o *requestOptions) error {
		if o.Timeouts == nil {
			o.Timeouts = make(map[fab.TimeoutType]time.Duration)
		}
		o.Timeouts[timeoutType] = timeout
		return nil
	}
}
431909
func (o *GetPrefilterParams) WithTimeout(timeout time.Duration) *GetPrefilterParams {
	o.SetTimeout(timeout)
	return o
}
811720
func (o *AcceptConsentRequestParams) WithTimeout(timeout time.Duration) *AcceptConsentRequestParams {
	o.SetTimeout(timeout)
	return o
}
1190455
func (o *GetEndpointIDLabelsParams) WithTimeout(timeout time.Duration) *GetEndpointIDLabelsParams {
	o.SetTimeout(timeout)
	return o
}
474049
func (o *WellKnownParams) WithTimeout(timeout time.Duration) *WellKnownParams {
	o.SetTimeout(timeout)
	return o
}
639182
func (o *IsInstanceAliveParams) WithTimeout(timeout time.Duration) *IsInstanceAliveParams {
	o.SetTimeout(timeout)
	return o
}
79615
func (o *GetTaskDetailsParams) WithTimeout(timeout time.Duration) *GetTaskDetailsParams {
	o.SetTimeout(timeout)
	return o
}